Files
plugins/packages/page-usage-board/static/echarts.min.js
T
orinsid 545ed66e74 page-usage-board: a usage dashboard page (#844)
Adds @magpie-community/page-usage-board: a usage dashboard page with its
own zero-dependency local service (quota cards with expiry tiers, TTFT,
7x24 heatmap, optional remote attribution).

Reviewed at 8ca2562: the author's 80137b0 plus a maintainer merge of main
(registry entry re-appended after upstream's newer packages).
Since the 6b2625d review: [::1] in MAGPIE_ADDR stays IPv6 loopback (only
0.0.0.0/[::] map to 127.0.0.1), the config-dir test compares real paths
so it passes on macOS, and the registry-block test tolerates CRLF.

Run on mote at 8ca2562: packages/page-usage-board `bun test` 36 pass,
`node --test test/*.test.mjs` 36 pass; `bun scripts/check.mjs` all ok.
Not tried this round: the page in a live magpie window.
2026-11-10 10:36:04 +08:00

50 lines
598 KiB
JavaScript

/* Apache ECharts v5.5.1 custom build (bar/line/pie/heatmap + tooltip/legend/grid/dataZoom/visualMap/axisPointer). Copyright 2018-2026 Apache Software Foundation, Apache-2.0. See NOTICE. */
(()=>{var TT=Object.defineProperty;var ze=(r,t)=>{for(var e in t)TT(r,e,{get:t[e],enumerable:!0})};var Bf={};ze(Bf,{Axis:()=>Uf,ChartView:()=>Ut,ComponentModel:()=>pt,ComponentView:()=>Lt,List:()=>lo,Model:()=>_t,PRIORITY:()=>wv,SeriesModel:()=>qt,color:()=>Uo,connect:()=>CL,dataTool:()=>RL,dependencies:()=>lL,disConnect:()=>DL,disconnect:()=>mS,dispose:()=>AL,env:()=>j,extendChartView:()=>KI,extendComponentModel:()=>ZI,extendComponentView:()=>XI,extendSeriesModel:()=>qI,format:()=>sd,getCoordinateSystemDimensions:()=>LL,getInstanceByDom:()=>Cv,getInstanceById:()=>EL,getMap:()=>PL,graphic:()=>od,helper:()=>$v,init:()=>ML,innerDrawElementOnCanvas:()=>no,matrix:()=>Qr,number:()=>ad,parseGeoJSON:()=>kf,parseGeoJson:()=>kf,registerAction:()=>Br,registerCoordinateSystem:()=>Lv,registerLayout:()=>Iv,registerLoading:()=>xf,registerLocale:()=>Au,registerMap:()=>Rv,registerPostInit:()=>Av,registerPostUpdate:()=>Ev,registerPreprocessor:()=>yf,registerProcessor:()=>_f,registerTheme:()=>Dv,registerTransform:()=>Ov,registerUpdateLifecycle:()=>Hs,registerVisual:()=>ci,setCanvasCreator:()=>IL,setPlatformAPI:()=>gl,throttle:()=>ja,time:()=>nd,use:()=>Bt,util:()=>ld,vector:()=>vr,version:()=>sL,zrUtil:()=>q,zrender:()=>Kl});var yh=function(r,t){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])},yh(r,t)};function I(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Kl={};ze(Kl,{dispose:()=>aC,disposeAll:()=>nC,getElementSSRData:()=>sC,getInstance:()=>oC,init:()=>ql,registerPainter:()=>vc,registerSSRDataGetter:()=>dc,version:()=>lC});var MT=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),CT=(function(){function r(){this.browser=new MT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),ji=new CT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ji.wxa=!0,ji.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ji.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ji.node=!0,ji.svgSupported=!0):DT(navigator.userAgent,ji);function DT(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),a&&(e.ie=!0,e.version=a[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var j=ji;var q={};ze(q,{HashMap:()=>Rm,RADIAN_TO_DEGREE:()=>xl,assert:()=>Ft,bind:()=>H,clone:()=>Y,concatArray:()=>wh,createCanvas:()=>VT,createHashMap:()=>W,createObject:()=>Xr,curry:()=>ct,defaults:()=>K,disableUserSelect:()=>Do,each:()=>b,eqNaN:()=>Ji,extend:()=>N,filter:()=>Mt,find:()=>BT,guid:()=>wo,hasOwn:()=>Ze,indexOf:()=>it,inherits:()=>To,isArray:()=>O,isArrayLike:()=>Ot,isBuiltInObject:()=>_h,isDom:()=>Qi,isFunction:()=>G,isGradientObject:()=>Zr,isImagePatternObject:()=>bh,isNumber:()=>nt,isObject:()=>F,isPrimitive:()=>cn,isRegExp:()=>HT,isString:()=>U,isStringSafe:()=>vn,isTypedArray:()=>Et,keys:()=>lt,logError:()=>$i,map:()=>k,merge:()=>tt,mergeAll:()=>UT,mixin:()=>Jt,noop:()=>Dt,normalizeCssArray:()=>Co,reduce:()=>fe,retrieve:()=>Dr,retrieve2:()=>et,retrieve3:()=>Ar,setAsPrimitive:()=>ta,slice:()=>Mo,trim:()=>te});var ml=12,AT="sans-serif",pr=ml+"px "+AT,ET=20,LT=100,IT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function PT(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),a=(r.charCodeAt(e)-ET)/LT;t[i]=a}return t}var RT=PT(IT),$t={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var a=$t.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==i&&(t=r.font=i||pr),r.measureText(e);e=e||"",i=i||pr;var n=/((?:\d+)?\.?\d*)px/.exec(i),o=n&&+n[1]||ml,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=RT[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function gl(r){for(var t in $t)r[t]&&($t[t]=r[t])}var Em=fe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Lm=fe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),pn=Object.prototype.toString,_l=Array.prototype,OT=_l.forEach,NT=_l.filter,xh=_l.slice,zT=_l.map,Am=function(){}.constructor,yl=Am?Am.prototype:null,Sh="__proto__",kT=2311;function wo(){return kT++}function $i(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Y(r){if(r==null||typeof r!="object")return r;var t=r,e=pn.call(r);if(e==="[object Array]"){if(!cn(r)){t=[];for(var i=0,a=r.length;i<a;i++)t[i]=Y(r[i])}}else if(Lm[e]){if(!cn(r)){var n=r.constructor;if(n.from)t=n.from(r);else{t=new n(r.length);for(var i=0,a=r.length;i<a;i++)t[i]=r[i]}}}else if(!Em[e]&&!cn(r)&&!Qi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Sh&&(t[o]=Y(r[o]))}return t}function tt(r,t,e){if(!F(t)||!F(r))return e?Y(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Sh){var a=r[i],n=t[i];F(n)&&F(a)&&!O(n)&&!O(a)&&!Qi(n)&&!Qi(a)&&!_h(n)&&!_h(a)&&!cn(n)&&!cn(a)?tt(a,n,e):(e||!(i in r))&&(r[i]=Y(t[i]))}return r}function UT(r,t){for(var e=r[0],i=1,a=r.length;i<a;i++)e=tt(e,r[i],t);return e}function N(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Sh&&(r[e]=t[e]);return r}function K(r,t,e){for(var i=lt(t),a=0;a<i.length;a++){var n=i[a];(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}return r}var VT=$t.createCanvas;function it(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function To(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function Jt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}else K(r,t,e)}function Ot(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function b(r,t,e){if(r&&t)if(r.forEach&&r.forEach===OT)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&t.call(e,r[n],n,r)}function k(r,t,e){if(!r)return[];if(!t)return Mo(r);if(r.map&&r.map===zT)return r.map(t,e);for(var i=[],a=0,n=r.length;a<n;a++)i.push(t.call(e,r[a],a,r));return i}function fe(r,t,e,i){if(r&&t){for(var a=0,n=r.length;a<n;a++)e=t.call(i,e,r[a],a,r);return e}}function Mt(r,t,e){if(!r)return[];if(!t)return Mo(r);if(r.filter&&r.filter===NT)return r.filter(t,e);for(var i=[],a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r)&&i.push(r[a]);return i}function BT(r,t,e){if(r&&t){for(var i=0,a=r.length;i<a;i++)if(t.call(e,r[i],i,r))return r[i]}}function lt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function FT(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(xh.call(arguments)))}}var H=yl&&G(yl.bind)?yl.call.bind(yl.bind):FT;function ct(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(xh.call(arguments)))}}function O(r){return Array.isArray?Array.isArray(r):pn.call(r)==="[object Array]"}function G(r){return typeof r=="function"}function U(r){return typeof r=="string"}function vn(r){return pn.call(r)==="[object String]"}function nt(r){return typeof r=="number"}function F(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function _h(r){return!!Em[pn.call(r)]}function Et(r){return!!Lm[pn.call(r)]}function Qi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Zr(r){return r.colorStops!=null}function bh(r){return r.image!=null}function HT(r){return pn.call(r)==="[object RegExp]"}function Ji(r){return r!==r}function Dr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function et(r,t){return r??t}function Ar(r,t,e){return r??t??e}function Mo(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return xh.apply(r,t)}function Co(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ft(r,t){if(!r)throw new Error(t)}function te(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Im="__ec_primitive__";function ta(r){r[Im]=!0}function cn(r){return r[Im]}var GT=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return lt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Pm=typeof Map=="function";function WT(){return Pm?new Map:new GT}var Rm=(function(){function r(t){var e=O(t);this.data=WT();var i=this;t instanceof r?t.each(a):t&&b(t,a);function a(n,o){e?i.set(n,o):i.set(o,n)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,a){t.call(e,i,a)})},r.prototype.keys=function(){var t=this.data.keys();return Pm?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function W(r){return new Rm(r)}function wh(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var a=r.length,i=0;i<t.length;i++)e[i+a]=t[i];return e}function Xr(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&N(e,t),e}function Do(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ze(r,t){return r.hasOwnProperty(t)}function Dt(){}var xl=180/Math.PI;var vr={};ze(vr,{add:()=>Sl,applyTransform:()=>Nt,clone:()=>Th,copy:()=>YT,create:()=>qr,dist:()=>dn,distSquare:()=>mi,distance:()=>Eo,distanceSquare:()=>Om,div:()=>QT,dot:()=>$T,len:()=>Ch,lenSquare:()=>Dh,length:()=>qT,lengthSquare:()=>KT,lerp:()=>Lo,max:()=>qe,min:()=>Xe,mul:()=>jT,negate:()=>JT,normalize:()=>Ah,scale:()=>Ao,scaleAndAdd:()=>XT,set:()=>ZT,sub:()=>Mh});function qr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function YT(r,t){return r[0]=t[0],r[1]=t[1],r}function Th(r){return[r[0],r[1]]}function ZT(r,t,e){return r[0]=t,r[1]=e,r}function Sl(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function XT(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function Mh(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Ch(r){return Math.sqrt(Dh(r))}var qT=Ch;function Dh(r){return r[0]*r[0]+r[1]*r[1]}var KT=Dh;function jT(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function QT(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function $T(r,t){return r[0]*t[0]+r[1]*t[1]}function Ao(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ah(r,t){var e=Ch(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Eo(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var dn=Eo;function Om(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var mi=Om;function JT(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Lo(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Nt(r,t,e){var i=t[0],a=t[1];return r[0]=e[0]*i+e[2]*a+e[4],r[1]=e[1]*i+e[3]*a+e[5],r}function Xe(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function qe(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var mn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),tM=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new mn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,a=t.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,e.drift(n,o,t),this.handler.dispatchToElement(new mn(e,t),"drag",t.event);var s=this.handler.findHover(i,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new mn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new mn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new mn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new mn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Nm=tM;var eM=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof e=="function"&&(a=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),n[t]||(n[t]=[]);for(var s=0;s<n[t].length;s++)if(n[t][s].h===i)return this;var l={h:i,query:e,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[t].length-1,f=n[t][u];return f&&f.callAtLast?n[t].splice(u,0,l):n[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var a=[],n=0,o=i[t].length;n<o;n++)i[t][n].h!==e&&a.push(i[t][n]);i[t]=a}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r})(),Wt=eM;var rM=Math.log(2);function Eh(r,t,e,i,a,n){var o=i+"-"+a,s=r.length;if(n.hasOwnProperty(o))return n[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/rM);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,p=0,c=0;p<s;p++){var v=1<<p;v&a||(h+=(c%2?-1:1)*r[e][p]*Eh(r,t-1,f,u,a|v,n),c++)}return n[o]=h,h}function Lh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},a=Eh(e,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*Eh(e,7,o===0?1:0,1<<o,1<<s,i)/a*t[o];return function(l,u,f){var h=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/h,l[1]=(u*n[3]+f*n[4]+n[5])/h}}}var zm="___zrEVENTSAVED",Ih=[];function km(r,t,e,i,a){return bl(Ih,t,i,a,!0)&&bl(r,e,Ih[0],Ih[1])}function bl(r,t,e,i,a){if(t.getBoundingClientRect&&j.domSupported&&!Ph(t)){var n=t[zm]||(t[zm]={}),o=iM(t,n),s=aM(o,n,a);if(s)return s(r,e,i),!0}return!1}function iM(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function aM(r,t,e){for(var i=e?"invTrans":"trans",a=t[i],n=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,p=f.left,c=f.top;o.push(p,c),l=l&&n&&p===n[h]&&c===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[i]=e?Lh(s,o):Lh(o,s))}function Ph(r){return r.nodeName.toUpperCase()==="CANVAS"}var nM=/([&<>"'])/g,oM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ee(r){return r==null?"":(r+"").replace(nM,function(t,e){return oM[e]})}var sM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Rh=[],lM=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function wl(r,t,e,i){return e=e||{},i?Um(r,t,e):lM&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Um(r,t,e),e}function Um(r,t,e){if(j.domSupported&&r.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(Ph(r)){var n=r.getBoundingClientRect();e.zrX=i-n.left,e.zrY=a-n.top;return}else if(bl(Rh,r,i,a)){e.zrX=Rh[0],e.zrY=Rh[1];return}}e.zrX=e.zrY=0}function Tl(r){return r||window.event}function Me(r,t,e){if(t=Tl(t),t.zrX!=null)return t;var i=t.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&wl(r,o,t,e)}else{wl(r,t,t,e);var n=uM(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&sM.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function uM(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var a=Math.abs(i!==0?i:e),n=i>0?-1:i<0?1:e>0?-1:1;return 3*a*n}function Vm(r,t,e,i){r.addEventListener(t,e,i)}function Bm(r,t,e,i){r.removeEventListener(t,e,i)}var Ce=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Oh(r){return r.which===2||r.which===3}var Hm=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var a=t.touches;if(a){for(var n={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=wl(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(t){for(var e in Nh)if(Nh.hasOwnProperty(e)){var i=Nh[e](this._track,t);if(i)return i}},r})();function Fm(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function fM(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Nh={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,a=(r[e-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=Fm(i)/Fm(a);!isFinite(n)&&(n=1),t.pinchScale=n;var o=fM(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};var Qr={};ze(Qr,{clone:()=>hM,copy:()=>Ml,create:()=>dr,identity:()=>Kr,invert:()=>jr,mul:()=>Ke,rotate:()=>ea,scale:()=>zh,translate:()=>yn});function dr(){return[1,0,0,1,0,0]}function Kr(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ml(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ke(r,t,e){var i=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function yn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ea(r,t,e,i){i===void 0&&(i=[0,0]);var a=t[0],n=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=a*h+s*f,r[1]=-a*f+s*h,r[2]=n*h+l*f,r[3]=-n*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function zh(r,t,e){var i=e[0],a=e[1];return r[0]=t[0]*i,r[1]=t[1]*a,r[2]=t[2]*i,r[3]=t[3]*a,r[4]=t[4]*i,r[5]=t[5]*a,r}function jr(r,t){var e=t[0],i=t[2],a=t[4],n=t[1],o=t[3],s=t[5],l=e*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-e*s)*l,r):null}function hM(r){var t=dr();return Ml(t,r),t}var cM=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,a){t.x=e.x+i.x*a,t.y=e.y+i.y*a},r.lerp=function(t,e,i,a){var n=1-a;t.x=n*e.x+a*i.x,t.y=n*e.y+a*i.y},r})(),rt=cM;var Cl=Math.min,Dl=Math.max,ra=new rt,ia=new rt,aa=new rt,na=new rt,Io=new rt,Po=new rt,pM=(function(){function r(t,e,i,a){i<0&&(t=t+i,i=-i),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=i,this.height=a}return r.prototype.union=function(t){var e=Cl(t.x,this.x),i=Cl(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Dl(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Dl(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,a=t.height/e.height,n=dr();return yn(n,n,[-e.x,-e.y]),zh(n,n,[i,a]),yn(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,p=!(n<l||u<a||s<f||h<o);if(e){var c=1/0,v=0,m=Math.abs(n-l),d=Math.abs(u-a),g=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(m,d),x=Math.min(g,y);n<l||u<a?_>v&&(v=_,m<d?rt.set(Po,-m,0):rt.set(Po,d,0)):_<c&&(c=_,m<d?rt.set(Io,m,0):rt.set(Io,-d,0)),s<f||h<o?x>v&&(v=x,g<y?rt.set(Po,0,-g):rt.set(Po,0,y)):_<c&&(c=_,g<y?rt.set(Io,0,g):rt.set(Io,0,-y))}return e&&rt.copy(e,p?Io:Po),p},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];t.x=e.x*a+o,t.y=e.y*n+s,t.width=e.width*a,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ra.x=aa.x=e.x,ra.y=na.y=e.y,ia.x=na.x=e.x+e.width,ia.y=aa.y=e.y+e.height,ra.transform(i),na.transform(i),ia.transform(i),aa.transform(i),t.x=Cl(ra.x,ia.x,aa.x,na.x),t.y=Cl(ra.y,ia.y,aa.y,na.y);var l=Dl(ra.x,ia.x,aa.x,na.x),u=Dl(ra.y,ia.y,aa.y,na.y);t.width=l-t.x,t.height=u-t.y},r})(),J=pM;var Wm="silent";function vM(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:dM}}function dM(){Ce(this.event)}var mM=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Wt),Ro=(function(){function r(t,e){this.x=t,this.y=e}return r})(),gM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],kh=new J(0,0,0,0),Ym=(function(r){I(t,r);function t(e,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Ro(0,0),s.storage=e,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new mM,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Nm(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(b(gM,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,a=e.zrY,n=Zm(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Ro(i,a):this.findHover(i,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ro(0,0)},t.prototype.dispatch=function(e,i){var a=this[e];a&&a.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,a){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var o="on"+i,s=vM(i,e,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,a){var n=this.storage.getDisplayList(),o=new Ro(e,i);if(Gm(n,o,e,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new J(e-u,i-u,l,l),h=n.length-1;h>=0;h--){var p=n[h];p!==a&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(kh.copy(p.getBoundingRect()),p.transform&&kh.applyTransform(p.transform),kh.intersect(f)&&s.push(p))}if(s.length)for(var c=4,v=Math.PI/12,m=Math.PI*2,d=0;d<u;d+=c)for(var g=0;g<m;g+=v){var y=e+d*Math.cos(g),_=i+d*Math.sin(g);if(Gm(s,o,y,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Hm);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;e.gestureEvent=o;var s=new Ro;s.target=n.target,this.dispatchToElement(s,o,n.event)}},t})(Wt);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Ym.prototype[r]=function(t){var e=t.zrX,i=t.zrY,a=Zm(this,e,i),n,o;if((r!=="mouseup"||!a)&&(n=this.findHover(e,i),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||dn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function yM(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s||i.parent}return a?Wm:!0}return!1}function Gm(r,t,e,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=yM(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Wm)){t.target=o;break}}}function Zm(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Xm=Ym;var jm=32,Oo=7;function _M(r){for(var t=0;r>=jm;)t|=r&1,r>>=1;return r+t}function qm(r,t,e,i){var a=t+1;if(a===e)return 1;if(i(r[a++],r[t])<0){for(;a<e&&i(r[a],r[a-1])<0;)a++;xM(r,t,a)}else for(;a<e&&i(r[a],r[a-1])>=0;)a++;return a-t}function xM(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Km(r,t,e,i,a){for(i===t&&i++;i<e;i++){for(var n=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Uh(r,t,e,i,a,n){var o=0,s=0,l=1;if(n(r,t[e+a])>0){for(s=i-a;l<s&&n(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,t[e+f])>0?o=f+1:l=f}return l}function Vh(r,t,e,i,a,n){var o=0,s=0,l=1;if(n(r,t[e+a])<0){for(s=a+1;l<s&&n(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(r,t[e+f])<0?l=f:o=f+1}return l}function SM(r,t){var e=Oo,i,a,n=0,o=[];i=[],a=[];function s(c,v){i[n]=c,a[n]=v,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;n>1;){var c=n-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var v=i[c],m=a[c],d=i[c+1],g=a[c+1];a[c]=m+g,c===n-3&&(i[c+1]=i[c+2],a[c+1]=a[c+2]),n--;var y=Vh(r[d],r,v,m,0,t);v+=y,m-=y,m!==0&&(g=Uh(r[v+m-1],r,d,g,g-1,t),g!==0&&(m<=g?h(v,m,d,g):p(v,m,d,g)))}function h(c,v,m,d){var g=0;for(g=0;g<v;g++)o[g]=r[c+g];var y=0,_=m,x=c;if(r[x++]=r[_++],--d===0){for(g=0;g<v;g++)r[x+g]=o[y+g];return}if(v===1){for(g=0;g<d;g++)r[x+g]=r[_+g];r[x+d]=o[y];return}for(var w=e,S,T,M;;){S=0,T=0,M=!1;do if(t(r[_],o[y])<0){if(r[x++]=r[_++],T++,S=0,--d===0){M=!0;break}}else if(r[x++]=o[y++],S++,T=0,--v===1){M=!0;break}while((S|T)<w);if(M)break;do{if(S=Vh(r[_],o,y,v,0,t),S!==0){for(g=0;g<S;g++)r[x+g]=o[y+g];if(x+=S,y+=S,v-=S,v<=1){M=!0;break}}if(r[x++]=r[_++],--d===0){M=!0;break}if(T=Uh(o[y],r,_,d,0,t),T!==0){for(g=0;g<T;g++)r[x+g]=r[_+g];if(x+=T,_+=T,d-=T,d===0){M=!0;break}}if(r[x++]=o[y++],--v===1){M=!0;break}w--}while(S>=Oo||T>=Oo);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),v===1){for(g=0;g<d;g++)r[x+g]=r[_+g];r[x+d]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[x+g]=o[y+g]}}function p(c,v,m,d){var g=0;for(g=0;g<d;g++)o[g]=r[m+g];var y=c+v-1,_=d-1,x=m+d-1,w=0,S=0;if(r[x--]=r[y--],--v===0){for(w=x-(d-1),g=0;g<d;g++)r[w+g]=o[g];return}if(d===1){for(x-=v,y-=v,S=x+1,w=y+1,g=v-1;g>=0;g--)r[S+g]=r[w+g];r[x]=o[_];return}for(var T=e;;){var M=0,D=0,A=!1;do if(t(o[_],r[y])<0){if(r[x--]=r[y--],M++,D=0,--v===0){A=!0;break}}else if(r[x--]=o[_--],D++,M=0,--d===1){A=!0;break}while((M|D)<T);if(A)break;do{if(M=v-Vh(o[_],r,c,v,v-1,t),M!==0){for(x-=M,y-=M,v-=M,S=x+1,w=y+1,g=M-1;g>=0;g--)r[S+g]=r[w+g];if(v===0){A=!0;break}}if(r[x--]=o[_--],--d===1){A=!0;break}if(D=d-Uh(r[y],o,0,d,d-1,t),D!==0){for(x-=D,_-=D,d-=D,S=x+1,w=_+1,g=0;g<D;g++)r[S+g]=o[w+g];if(d<=1){A=!0;break}}if(r[x--]=r[y--],--v===0){A=!0;break}T--}while(M>=Oo||D>=Oo);if(A)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(x-=v,y-=v,S=x+1,w=y+1,g=v-1;g>=0;g--)r[S+g]=r[w+g];r[x]=o[_]}else{if(d===0)throw new Error;for(w=x-(d-1),g=0;g<d;g++)r[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function oa(r,t,e,i){e||(e=0),i||(i=r.length);var a=i-e;if(!(a<2)){var n=0;if(a<jm){n=qm(r,e,i,t),Km(r,e,i,e+n,t);return}var o=SM(r,t),s=_M(a);do{if(n=qm(r,e,i,t),n<s){var l=a;l>s&&(l=s),Km(r,e,e+l,e+n,t),n=l}o.pushRun(e,n),o.mergeRuns(),a-=n,e+=n}while(a!==0);o.forceMergeRuns()}}var Ht=1,sa=2,gi=4;var Qm=!1;function Bh(){Qm||(Qm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $m(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var bM=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$m}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,a=0,n=e.length;a<n;a++)this._updateAndAddDisplayable(e[a],null,t);i.length=this._displayListLen,oa(i,$m)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var n=a,o=t;n;)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ht),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Bh(),f.z=0),isNaN(f.z2)&&(Bh(),f.z2=0),isNaN(f.zlevel)&&(Bh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var a=it(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Jm=bM;var tg;tg=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var No=tg;var Al={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Al.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?Al.bounceIn(r*2)*.5:Al.bounceOut(r*2-1)*.5+.5}},El=Al;var Ll=Math.pow,_i=Math.sqrt,Pl=1e-8,rg=1e-4,eg=_i(3),Il=1/3,Er=qr(),je=qr(),_n=qr();function yi(r){return r>-Pl&&r<Pl}function ig(r){return r>Pl||r<-Pl}function At(r,t,e,i,a){var n=1-a;return n*n*(n*r+3*a*t)+a*a*(a*i+3*n*e)}function Fh(r,t,e,i,a){var n=1-a;return 3*(((t-r)*n+2*(e-t)*a)*n+(i-e)*a*a)}function la(r,t,e,i,a,n){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,p=l*l-3*s*u,c=0;if(yi(f)&&yi(h))if(yi(s))n[0]=0;else{var v=-l/s;v>=0&&v<=1&&(n[c++]=v)}else{var m=h*h-4*f*p;if(yi(m)){var d=h/f,v=-s/o+d,g=-d/2;v>=0&&v<=1&&(n[c++]=v),g>=0&&g<=1&&(n[c++]=g)}else if(m>0){var y=_i(m),_=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);_<0?_=-Ll(-_,Il):_=Ll(_,Il),x<0?x=-Ll(-x,Il):x=Ll(x,Il);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(n[c++]=v)}else{var w=(2*f*s-3*o*h)/(2*_i(f*f*f)),S=Math.acos(w)/3,T=_i(f),M=Math.cos(S),v=(-s-2*T*M)/(3*o),g=(-s+T*(M+eg*Math.sin(S)))/(3*o),D=(-s+T*(M-eg*Math.sin(S)))/(3*o);v>=0&&v<=1&&(n[c++]=v),g>=0&&g<=1&&(n[c++]=g),D>=0&&D<=1&&(n[c++]=D)}}return c}function Rl(r,t,e,i,a){var n=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(yi(o)){if(ig(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(yi(f))a[0]=-n/(2*o);else if(f>0){var h=_i(f),u=(-n+h)/(2*o),p=(-n-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function xn(r,t,e,i,a,n){var o=(t-r)*a+r,s=(e-t)*a+t,l=(i-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=f,n[6]=l,n[7]=i}function ag(r,t,e,i,a,n,o,s,l,u,f){var h,p=.005,c=1/0,v,m,d,g;Er[0]=l,Er[1]=u;for(var y=0;y<1;y+=.05)je[0]=At(r,e,a,o,y),je[1]=At(t,i,n,s,y),d=mi(Er,je),d<c&&(h=y,c=d);c=1/0;for(var _=0;_<32&&!(p<rg);_++)v=h-p,m=h+p,je[0]=At(r,e,a,o,v),je[1]=At(t,i,n,s,v),d=mi(je,Er),v>=0&&d<c?(h=v,c=d):(_n[0]=At(r,e,a,o,m),_n[1]=At(t,i,n,s,m),g=mi(_n,Er),m<=1&&g<c?(h=m,c=g):p*=.5);return f&&(f[0]=At(r,e,a,o,h),f[1]=At(t,i,n,s,h)),_i(c)}function ng(r,t,e,i,a,n,o,s,l){for(var u=r,f=t,h=0,p=1/l,c=1;c<=l;c++){var v=c*p,m=At(r,e,a,o,v),d=At(t,i,n,s,v),g=m-u,y=d-f;h+=Math.sqrt(g*g+y*y),u=m,f=d}return h}function Yt(r,t,e,i){var a=1-i;return a*(a*r+2*i*t)+i*i*e}function Hh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function og(r,t,e,i,a){var n=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(yi(n)){if(ig(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(yi(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=_i(f),u=(-o+h)/(2*n),p=(-o-h)/(2*n);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function Ol(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Sn(r,t,e,i,a){var n=(t-r)*i+r,o=(e-t)*i+t,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function sg(r,t,e,i,a,n,o,s,l){var u,f=.005,h=1/0;Er[0]=o,Er[1]=s;for(var p=0;p<1;p+=.05){je[0]=Yt(r,e,a,p),je[1]=Yt(t,i,n,p);var c=mi(Er,je);c<h&&(u=p,h=c)}h=1/0;for(var v=0;v<32&&!(f<rg);v++){var m=u-f,d=u+f;je[0]=Yt(r,e,a,m),je[1]=Yt(t,i,n,m);var c=mi(je,Er);if(m>=0&&c<h)u=m,h=c;else{_n[0]=Yt(r,e,a,d),_n[1]=Yt(t,i,n,d);var g=mi(_n,Er);d<=1&&g<h?(u=d,h=g):f*=.5}}return l&&(l[0]=Yt(r,e,a,u),l[1]=Yt(t,i,n,u)),_i(h)}function lg(r,t,e,i,a,n,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var p=h*f,c=Yt(r,e,a,p),v=Yt(t,i,n,p),m=c-s,d=v-l;u+=Math.sqrt(m*m+d*d),s=c,l=v}return u}var wM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Nl(r){var t=r&&wM.exec(r);if(t){var e=t[1].split(","),i=+te(e[0]),a=+te(e[1]),n=+te(e[2]),o=+te(e[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:la(0,i,n,1,l,s)&&At(0,a,o,1,s[0])}}}var TM=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Dt,this.ondestroy=t.ondestroy||Dt,this.onrestart=t.onrestart||Dt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,a=t-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=G(t)?t:El[t]||Nl(t)},r})(),ug=TM;var Uo={};ze(Uo,{fastLerp:()=>wn,fastMapToColor:()=>LM,lerp:()=>kl,lift:()=>qh,liftColor:()=>Ul,lum:()=>fa,mapToColor:()=>IM,modifyAlpha:()=>Kh,modifyHSL:()=>ko,parse:()=>re,random:()=>PM,stringify:()=>De,toHex:()=>EM});var fg=(function(){function r(t){this.value=t}return r})();var MM=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new fg(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var CM=(function(){function r(t){this._list=new MM,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,a=this._map,n=null;if(a[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new fg(e),s.key=t,i.insertEntry(s),a[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),$r=CM;var hg={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 mr(r){return r=Math.round(r),r<0?0:r>255?255:r}function DM(r){return r=Math.round(r),r<0?0:r>360?360:r}function zo(r){return r<0?0:r>1?1:r}function Wh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?mr(parseFloat(t)/100*255):mr(parseInt(t,10))}function ua(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?zo(parseFloat(t)/100):zo(parseFloat(t))}function Yh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function xi(r,t,e){return r+(t-r)*e}function Qe(r,t,e,i,a){return r[0]=t,r[1]=e,r[2]=i,r[3]=a,r}function Zh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var pg=new $r(20),zl=null;function bn(r,t){zl&&Zh(zl,t),zl=pg.put(r,zl||t.slice())}function re(r,t){if(r){t=t||[];var e=pg.get(r);if(e)return Zh(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in hg)return Zh(t,hg[i]),bn(r,t),t;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){Qe(t,0,0,0,1);return}return Qe(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),bn(r,t),t}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){Qe(t,0,0,0,1);return}return Qe(t,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),bn(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qe(t,+u[0],+u[1],+u[2],1):Qe(t,0,0,0,1);f=ua(u.pop());case"rgb":if(u.length>=3)return Qe(t,Wh(u[0]),Wh(u[1]),Wh(u[2]),u.length===3?f:ua(u[3])),bn(r,t),t;Qe(t,0,0,0,1);return;case"hsla":if(u.length!==4){Qe(t,0,0,0,1);return}return u[3]=ua(u[3]),Xh(u,t),bn(r,t),t;case"hsl":if(u.length!==3){Qe(t,0,0,0,1);return}return Xh(u,t),bn(r,t),t;default:return}}Qe(t,0,0,0,1)}}function Xh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=ua(r[1]),a=ua(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return t=t||[],Qe(t,mr(Yh(o,n,e+1/3)*255),mr(Yh(o,n,e)*255),mr(Yh(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function AM(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,a=Math.min(t,e,i),n=Math.max(t,e,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-t)/6+o/2)/o,h=((n-e)/6+o/2)/o,p=((n-i)/6+o/2)/o;t===n?l=p-h:e===n?l=1/3+f-p:i===n&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function qh(r,t){var e=re(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return De(e,e.length===4?"rgba":"rgb")}}function EM(r){var t=re(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function wn(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),o=t[a],s=t[n],l=i-a;return e[0]=mr(xi(o[0],s[0],l)),e[1]=mr(xi(o[1],s[1],l)),e[2]=mr(xi(o[2],s[2],l)),e[3]=zo(xi(o[3],s[3],l)),e}}var LM=wn;function kl(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),o=re(t[a]),s=re(t[n]),l=i-a,u=De([mr(xi(o[0],s[0],l)),mr(xi(o[1],s[1],l)),mr(xi(o[2],s[2],l)),zo(xi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var IM=kl;function ko(r,t,e,i){var a=re(r);if(r)return a=AM(a),t!=null&&(a[0]=DM(t)),e!=null&&(a[1]=ua(e)),i!=null&&(a[2]=ua(i)),De(Xh(a),"rgba")}function Kh(r,t){var e=re(r);if(e&&t!=null)return e[3]=zo(t),De(e,"rgba")}function De(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function fa(r,t){var e=re(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function PM(){return De([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var cg=new $r(100);function Ul(r){if(U(r)){var t=cg.get(r);return t||(t=qh(r,-.1),cg.put(r,t)),t}else if(Zr(r)){var e=N({},r);return e.colorStops=k(r.colorStops,function(i){return{offset:i.offset,color:qh(i.color,-.1)}}),e}return r}function vg(r){return r.type==="linear"}function dg(r){return r.type==="radial"}var H2=(function(){return j.hasGlobalWindow&&G(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Qh=Array.prototype.slice;function Jr(r,t,e){return(t-r)*e+r}function jh(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=Jr(t[n],e[n],i);return r}function RM(r,t,e,i){for(var a=t.length,n=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=Jr(t[o][s],e[o][s],i)}return r}function Vl(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=t[n]+e[n]*i;return r}function mg(r,t,e,i){for(var a=t.length,n=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function OM(r,t){for(var e=r.length,i=t.length,a=e>i?t:r,n=Math.min(e,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(e,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function NM(r,t,e){var i=r,a=t;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(e===1?a[l]:Qh.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Fo(r){if(Ot(r)){var t=r.length;if(Ot(r[0])){for(var e=[],i=0;i<t;i++)e.push(Qh.call(r[i]));return e}return Qh.call(r)}return r}function Hl(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function zM(r){return Ot(r&&r[0])?2:1}var Bl=0,Gl=1,_g=2,Bo=3,$h=4,Jh=5,gg=6;function yg(r){return r===$h||r===Jh}function Fl(r){return r===Gl||r===_g}var Vo=[0,0,0,0],kM=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=gg,l=e;if(Ot(e)){var u=zM(e);s=u,(u===1&&!nt(e[0])||u===2&&!nt(e[0][0]))&&(o=!0)}else if(nt(e)&&!Ji(e))s=Bl;else if(U(e))if(!isNaN(+e))s=Bl;else{var f=re(e);f&&(l=f,s=Bo)}else if(Zr(e)){var h=N({},l);h.colorStops=k(e.colorStops,function(c){return{offset:c.offset,color:re(c.color)}}),vg(e)?s=$h:dg(e)&&(s=Jh),l=h}n===0?this.valType=s:(s!==this.valType||s===gg)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:El[i]||Nl(i)),a.push(p),p},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(m,d){return m.time-d.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=Fl(a),u=yg(a),f=0;f<n;f++){var h=i[f],p=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==n-1?NM(p,c,a):u&&OM(p.colorStops,c.colorStops))}if(!s&&a!==Jh&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var v=i[0].value,f=0;f<n;f++)a===Bl?i[f].additiveValue=i[f].value-v:a===Bo?i[f].additiveValue=Vl([],i[f].value,v,-1):Fl(a)&&(i[f].additiveValue=a===Gl?Vl([],i[f].value,v,-1):mg([],i[f].value,v,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Bo,f,h=this._lastFr,p=Math.min,c,v;if(s===1)c=v=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var m=p(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=e);f--);f=p(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=p(f-1,s-2)}v=o[f+1],c=o[f]}if(c&&v){this._lastFr=f,this._lastFrP=e;var d=v.percent-c.percent,g=d===0?1:p((e-c.percent)/d,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Vo:t[l];if((Fl(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?c.rawValue:v.rawValue;else if(Fl(n))n===Gl?jh(y,c[a],v[a],g):RM(y,c[a],v[a],g);else if(yg(n)){var _=c[a],x=v[a],w=n===$h;t[l]={type:w?"linear":"radial",x:Jr(_.x,x.x,g),y:Jr(_.y,x.y,g),colorStops:k(_.colorStops,function(T,M){var D=x.colorStops[M];return{offset:Jr(T.offset,D.offset,g),color:Hl(jh([],T.color,D.color,g))}}),global:x.global},w?(t[l].x2=Jr(_.x2,x.x2,g),t[l].y2=Jr(_.y2,x.y2,g)):t[l].r=Jr(_.r,x.r,g)}else if(u)jh(y,c[a],v[a],g),i||(t[l]=Hl(y));else{var S=Jr(c[a],v[a],g);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,a=this._additiveValue;e===Bl?t[i]=t[i]+a:e===Bo?(re(t[i],Vo),Vl(Vo,Vo,a,1),t[i]=Hl(Vo)):e===Gl?Vl(t[i],t[i],a,1):e===_g&&mg(t[i],t[i],a,1)},r})(),UM=(function(){function r(t,e,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){$i("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,lt(e),i)},r.prototype.whenWithKeys=function(t,e,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new kM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,p=h[h.length-1];u=p&&p.value,f.valType===Bo&&u&&(u=Hl(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Fo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Fo(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(t);n&&(e=n)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new ug({life:a,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var v=e._additiveAnimators;if(v){for(var m=!1,d=0;d<v.length;d++)if(v[d]._clip){m=!0;break}m||(e._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(e._target,c);var g=e._onframeCbs;if(g)for(var d=0;d<g.length;d++)g[d](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return k(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<t.length;n++){var o=i[t[n]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var n=e[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[n]=Fo(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||lt(t);for(var i=0;i<e.length;i++){var a=e[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,t[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})(),Ho=UM;function ha(){return new Date().getTime()}var VM=(function(r){I(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,a=e.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=ha()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(No(i),!e._paused&&e.update())}No(i)},t.prototype.start=function(){this._running||(this._time=ha(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ha(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ha()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var a=new Ho(e,i.loop);return this.addAnimator(a),a},t})(Wt),xg=VM;var BM=300,tc=j.domSupported,ec=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(r,function(a){var n=a.replace("mouse","pointer");return e.hasOwnProperty(n)?n:a});return{mouse:r,touch:t,pointer:i}})(),Sg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bg=!1;function ac(r){var t=r.pointerType;return t==="pen"||t==="touch"}function FM(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function rc(r){r&&(r.zrByTouch=!0)}function HM(r,t){return Me(r.dom,new GM(r,t),!0)}function Tg(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var GM=(function(){function r(t,e){this.stopPropagation=Dt,this.stopImmediatePropagation=Dt,this.preventDefault=Dt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),gr={mousedown:function(r){r=Me(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Me(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Me(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Me(this.dom,r);var t=r.toElement||r.relatedTarget;Tg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){bg=!0,r=Me(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){bg||(r=Me(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Me(this.dom,r),rc(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),gr.mousemove.call(this,r),gr.mousedown.call(this,r)},touchmove:function(r){r=Me(this.dom,r),rc(r),this.handler.processGesture(r,"change"),gr.mousemove.call(this,r)},touchend:function(r){r=Me(this.dom,r),rc(r),this.handler.processGesture(r,"end"),gr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<BM&&gr.click.call(this,r)},pointerdown:function(r){gr.mousedown.call(this,r)},pointermove:function(r){ac(r)||gr.mousemove.call(this,r)},pointerup:function(r){gr.mouseup.call(this,r)},pointerout:function(r){ac(r)||gr.mouseout.call(this,r)}};b(["click","dblclick","contextmenu"],function(r){gr[r]=function(t){t=Me(this.dom,t),this.trigger(r,t)}});var nc={pointermove:function(r){ac(r)||nc.mousemove.call(this,r)},pointerup:function(r){nc.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function WM(r,t){var e=t.domHandlers;j.pointerEventsSupported?b(ec.pointer,function(i){Wl(t,i,function(a){e[i].call(r,a)})}):(j.touchEventsSupported&&b(ec.touch,function(i){Wl(t,i,function(a){e[i].call(r,a),FM(t)})}),b(ec.mouse,function(i){Wl(t,i,function(a){a=Tl(a),t.touching||e[i].call(r,a)})}))}function YM(r,t){j.pointerEventsSupported?b(Sg.pointer,e):j.touchEventsSupported||b(Sg.mouse,e);function e(i){function a(n){n=Tl(n),Tg(r,n.target)||(n=HM(r,n),t.domHandlers[i].call(r,n))}Wl(t,i,a,{capture:!0})}}function Wl(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Vm(r.domTarget,t,e,i)}function ic(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Bm(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var wg=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),ZM=(function(r){I(t,r);function t(e,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=i,a._localHandlerScope=new wg(e,gr),tc&&(a._globalHandlerScope=new wg(document,nc)),WM(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ic(this._localHandlerScope),tc&&ic(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,tc&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?YM(this,i):ic(i)}},t})(Wt),Mg=ZM;var Cg=1;j.hasGlobalWindow&&(Cg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ca=Cg,Go=.4,Wo="#333",Yo="#ccc",Dg="#eee";var Ag=Kr,Eg=5e-5;function pa(r){return r>Eg||r<-Eg}var va=[],Tn=[],oc=dr(),sc=Math.abs,XM=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return pa(this.rotation)||pa(this.x)||pa(this.y)||pa(this.scaleX-1)||pa(this.scaleY-1)||pa(this.skewX)||pa(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Ag(i),this.invTransform=null);return}i=i||dr(),e?this.getLocalTransform(i):Ag(i),t&&(e?Ke(i,t,i):Ml(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(va);var i=va[0]<0?-1:1,a=va[1]<0?-1:1,n=((va[0]-i)*e+i)/va[0]||0,o=((va[1]-a)*e+a)/va[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||dr(),jr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),n=Math.PI/2+a-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||dr(),Ke(Tn,t.invTransform,e),e=Tn);var i=this.originX,a=this.originY;(i||a)&&(oc[4]=i,oc[5]=a,Ke(Tn,e,oc),Tn[4]-=i,Tn[5]-=a,e=Tn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],a=this.invTransform;return a&&Nt(i,i,a),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],a=this.transform;return a&&Nt(i,i,a),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&sc(t[0]-1)>1e-10&&sc(t[3]-1)>1e-10?Math.sqrt(sc(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){qM(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,a=t.originY||0,n=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||a||s||l){var v=i+s,m=a+l;e[4]=-v*n-p*m*o,e[5]=-m*o-c*v*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=c*n,e[2]=p*o,u&&ea(e,e,u),e[4]+=i+f,e[5]+=a+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qM(r,t){for(var e=0;e<da.length;e++){var i=da[e];r[i]=t[i]}}var Zo=XM;var Lg={};function Ae(r,t){t=t||pr;var e=Lg[t];e||(e=Lg[t]=new $r(500));var i=e.get(r);return i==null&&(i=$t.measureText(r,t).width,e.put(r,i)),i}function Ig(r,t,e,i){var a=Ae(r,t),n=Yl(t),o=Cn(0,a,e),s=ma(0,n,i),l=new J(o,s,a,n);return l}function Mn(r,t,e,i){var a=((r||"")+"").split(`
`),n=a.length;if(n===1)return Ig(a[0],t,e,i);for(var o=new J(0,0,0,0),s=0;s<a.length;s++){var l=Ig(a[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function Cn(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function ma(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Yl(r){return Ae("\u56FD",r)}function me(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function ga(r,t,e){var i=t.position||"inside",a=t.distance!=null?t.distance:5,n=e.height,o=e.width,s=n/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=me(i[0],e.width),u+=me(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var lc="__zr_normal__",uc=da.concat(["ignore"]),KM=fe(da,function(r,t){return r[t]=!0,r},{ignore:!1}),Dn={},jM=new J(0,0,0,0),cc=(function(){function r(t){this.id=wo(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=e.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(e),i.position!=null){var f=jM;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Dn,i,f):ga(Dn,i,f),n.x=Dn.x,n.y=Dn.y,o=Dn.align,s=Dn.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,c=void 0;h==="center"?(p=f.width*.5,c=f.height*.5):(p=me(h[0],f.width),c=me(h[1],f.height)),u=!0,n.originX=-n.x+p+(a?0:f.x),n.originY=-n.y+c+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var v=i.offset;v&&(n.x+=v[0],n.y+=v[1],u||(n.originX=-v[0],n.originY=-v[1]));var m=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,_=void 0;m&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),_=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==d.fill||y!==d.stroke||_!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(l=!0,d.fill=g,d.stroke=y,d.autoStroke=_,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=Ht,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yo:Wo},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&re(e);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,De(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(F(t))for(var i=t,a=lt(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==lc)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,uc)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var a=0;a<i.length;a++){var n=i[a];t[n]!=null&&!(n in e)&&(e[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(lc,!1,t)},r.prototype.useState=function(t,e,i,a){var n=t===lc,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!n){$i("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,i,f),p&&p.useState(t,e,i,f),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ht),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var a=[],n=this.currentStates,o=t.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(t[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var h=a[o-1],p=!!(h&&h.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&v&&v.duration>0,v);var m=this._textContent,d=this._textGuide;m&&m.useStates(t,e,p),d&&d.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ht)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=it(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var a=this.currentStates.slice(),n=it(a,t),o=it(a,e)>=0;n>=0?o?a.splice(n,1):a[n]=e:i&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,a=0;a<t.length;a++){var n=t[a];N(e,n),n.textConfig&&(i=i||{},N(i,n.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,a,n,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=N({},a?this.textConfig:i.textConfig),N(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<uc.length;f++){var h=uc[f],p=n&&KM[h];e&&e[h]!=null?p?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!n)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],v=c.targetName;c.getLoop()||c.__changeFinalValue(v?(e||i)[v]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Zo,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Ht;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var a=t?this[t]:this,n=new Ho(a,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},r.prototype.addAnimator=function(t,e){var i=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var n=a.animators,o=it(n,t);o>=0&&n.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!t||t===s.scope?s.stop(e):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(t,e,i){fc(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){fc(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,a){for(var n=fc(this,e,i,a),o=0;o<n.length;o++)n[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ht;var e={};function i(n,o,s){e[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(t,n,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))})(),r})();Jt(cc,Wt);Jt(cc,Zo);function fc(r,t,e,i,a){e=e||{};var n=[];Rg(r,"",r,t,e,i,n,a);var o=n.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&e.during&&n[0].during(function(v,m){e.during(m)});for(var p=0;p<n.length;p++){var c=n[p];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return n}function hc(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function QM(r){return Ot(r[0])}function $M(r,t,e){if(Ot(t[e]))if(Ot(r[e])||(r[e]=[]),Et(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),hc(r[e],t[e],i))}else{var a=t[e],n=r[e],o=a.length;if(QM(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?hc(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else hc(n,a,o);n.length=a.length}else r[e]=t[e]}function JM(r,t){return r===t||Ot(r)&&Ot(t)&&tC(r,t)}function tC(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function Rg(r,t,e,i,a,n,o,s){for(var l=lt(i),u=a.duration,f=a.delay,h=a.additive,p=a.setToFinal,c=!F(n),v=r.animators,m=[],d=0;d<l.length;d++){var g=l[d],y=i[g];if(y!=null&&e[g]!=null&&(c||n[g]))if(F(y)&&!Ot(y)&&!Zr(y)){if(t){s||(e[g]=y,r.updateDuringAnimation(t));continue}Rg(r,g,e[g],y,a,n&&n[g],o,s)}else m.push(g);else s||(e[g]=y,r.updateDuringAnimation(t),m.push(g))}var _=m.length;if(!h&&_)for(var x=0;x<v.length;x++){var w=v[x];if(w.targetName===t){var S=w.stopTracks(m);if(S){var T=it(v,w);v.splice(T,1)}}}if(a.force||(m=Mt(m,function(C){return!JM(i[C],e[C])}),_=m.length),_>0||a.force&&!o.length){var M=void 0,D=void 0,A=void 0;if(s){D={},p&&(M={});for(var x=0;x<_;x++){var g=m[x];D[g]=e[g],p?M[g]=i[g]:e[g]=i[g]}}else if(p){A={};for(var x=0;x<_;x++){var g=m[x];A[g]=Fo(e[g]),$M(e,i,g)}}var w=new Ho(e,!1,!1,h?Mt(v,function(E){return E.targetName===t}):null);w.targetName=t,a.scope&&(w.scope=a.scope),p&&M&&w.whenWithKeys(0,M,m),A&&w.whenWithKeys(0,A,m),w.whenWithKeys(u??500,s?D:i,m).delay(f||0),r.addAnimator(w,t),o.push(w)}}var Zl=cc;var Og=(function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===e)return i[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var a=it(this._children,e);return a>=0&&this.replaceAt(i,a),this},t.prototype.replaceAt=function(e,i){var a=this._children,n=a[i];if(e&&e!==this&&e.parent!==this&&e!==n){a[i]=e,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,a=this._children,n=it(a,e);return n<0?this:(a.splice(n,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,a=0;a<e.length;a++){var n=e[a];i&&n.removeSelfFromZr(i),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];e.call(i,o,n)}return this},t.prototype.traverse=function(e,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=e.call(i,n);n.isGroup&&!o&&n.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new J(0,0,0,0),a=e||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(J.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(Zl);Og.prototype.type="group";var ft=Og;var Xl={},ya={};function eC(r){delete ya[r]}function rC(r){if(!r)return!1;if(typeof r=="string")return fa(r,1)<Go;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,a=0;a<i;a++)e+=fa(t[a].color,1);return e/=i,e<Go}return!1}var iC=(function(){function r(t,e,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var n=new Jm,o=i.renderer||"canvas";Xl[o]||(o=lt(Xl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Xl[o](e,n,i,t),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!j.node&&!j.worker&&!l?new Mg(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?j.touchEventsSupported:!!f,p=44,c;h&&(c=et(i.pointerSize,p)),this.handler=new Xm(n,s,u,s.root,c),this.animation=new xg({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rC(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=ha();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=ha();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ft&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,eC(this.id))},r})();function ql(r,t){var e=new iC(wo(),r,t);return ya[e.id]=e,e}function aC(r){r.dispose()}function nC(){for(var r in ya)ya.hasOwnProperty(r)&&ya[r].dispose();ya={}}function oC(r){return ya[r]}function vc(r,t){Xl[r]=t}var pc;function sC(r){if(typeof pc=="function")return pc(r)}function dc(r){pc=r}var lC="5.6.0";var Ng=1e-4,zg=20;function uC(r){return r.replace(/^\s+|\s+$/g,"")}function gt(r,t,e,i){var a=t[0],n=t[1],o=e[0],s=e[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function yt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?uC(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function bt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),zg),r=(+r).toFixed(t),e?r:+r}function ke(r){return r.sort(function(t,e){return t-e}),r}function ge(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return mc(r)}function mc(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,a=e>0?e:t.length,n=t.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function An(r,t){var e=Math.log,i=Math.LN10,a=Math.floor(e(r[1]-r[0])/i),n=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function kg(r,t,e){if(!r[t])return 0;var i=gc(r,e);return i[t]||0}function gc(r,t){var e=fe(r,function(c,v){return c+(isNaN(v)?0:v)},0);if(e===0)return[];for(var i=Math.pow(10,t),a=k(r,function(c){return(isNaN(c)?0:c)/e*i*100}),n=i*100,o=k(a,function(c){return Math.floor(c)}),s=fe(o,function(c,v){return c+v},0),l=k(a,function(c,v){return c-o[v]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return k(o,function(c){return c/i})}function Ug(r,t){var e=Math.max(ge(r),ge(t)),i=r+t;return e>zg?i:bt(i,e)}var Vg=9007199254740991;function Xo(r){var t=Math.PI*2;return(r%t+t)%t}function _a(r){return r>-Ng&&r<Ng}var fC=/^(?:(\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 ie(r){if(r instanceof Date)return r;if(U(r)){var t=fC.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function jl(r){return Math.pow(10,En(r))}function En(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Ln(r,t){var e=En(r),i=Math.pow(10,e),a=r/i,n;return t?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Bg(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),a=+r[i-1],n=e-i;return n?a+n*(r[i]-a):a}function qo(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<r.length;){for(var a=r[i].interval,n=r[i].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,n[o]=o?1:1-e),t=a[o],e=n[o];a[0]===a[1]&&n[0]*n[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function $e(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function Ko(r){return!isNaN($e(r))}function Ql(){return Math.round(Math.random()*9)}function Fg(r,t){return t===0?r:Fg(t,r%t)}function yc(r,t){return r==null?t:t==null?r:r*t/Fg(r,t)}function ae(r){throw new Error(r)}function Hg(r,t,e){return(t-r)*e+r}var Gg="series\0",hC="\0_ec_\0";function wt(r){return r instanceof Array?r:r==null?[]:[r]}function Qo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,a=e.length;i<a;i++){var n=e[i];!r.emphasis[t].hasOwnProperty(n)&&r[t].hasOwnProperty(n)&&(r.emphasis[t][n]=r[t][n])}}}var _c=["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 ti(r){return F(r)&&!O(r)&&!(r instanceof Date)?r.value:r}function Wg(r){return F(r)&&!(r instanceof Array)}function Yg(r,t,e){var i=e==="normalMerge",a=e==="replaceMerge",n=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=W();b(t,function(l,u){if(!F(l)){t[u]=null;return}});var s=cC(r,o,e);return(i||a)&&pC(s,r,o,t),i&&vC(s,t),i||a?dC(s,t,a):n&&mC(s,t),gC(s),s}function cC(r,t,e){var i=[];if(e==="replaceAll")return i;for(var a=0;a<r.length;a++){var n=r[a];n&&n.id!=null&&t.set(n.id,a),i.push({existing:e==="replaceMerge"||In(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function pC(r,t,e,i){b(i,function(a,n){if(!(!a||a.id==null)){var o=jo(a.id),s=e.get(o);if(s!=null){var l=r[s];Ft(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],i[n]=null}}})}function vC(r,t){b(t,function(e,i){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var n=r[a].existing;if(!r[a].newOption&&n&&(n.id==null||e.id==null)&&!In(e)&&!In(n)&&Zg("name",n,e)){r[a].newOption=e,t[i]=null;return}}})}function dC(r,t,e){b(t,function(i){if(i){for(var a,n=0;(a=r[n])&&(a.newOption||In(a.existing)||a.existing&&i.id!=null&&!Zg("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),n++}})}function mC(r,t){b(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function gC(r){var t=W();b(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),b(r,function(e){var i=e.newOption;Ft(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),b(r,function(e,i){var a=e.existing,n=e.newOption,o=e.keyInfo;if(F(n)){if(o.name=n.name!=null?jo(n.name):a?a.name:Gg+i,a)o.id=jo(a.id);else if(n.id!=null)o.id=jo(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Zg(r,t,e){var i=Ee(t[r],null),a=Ee(e[r],null);return i!=null&&a!=null&&i===a}function jo(r){return Ee(r,"")}function Ee(r,t){return r==null?t:U(r)?r:nt(r)||vn(r)?r+"":t}function Pn(r){var t=r.name;return!!(t&&t.indexOf(Gg))}function In(r){return r&&r.id!=null&&jo(r.id).indexOf(hC)===0}function Xg(r,t,e){b(r,function(i){var a=i.newOption;F(a)&&(i.keyInfo.mainType=t,i.keyInfo.subType=yC(t,a,i.existing,e))})}function yC(r,t,e,i){var a=t.type?t.type:e?e.subType:i.determineSubType(r,t);return a}function qg(r,t){var e={},i={};return a(r||[],e),a(t||[],i,e),[n(e),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=Ee(o[u].seriesId,null);if(h==null)return;for(var p=wt(o[u].dataIndex),c=l&&l[h],v=0,m=p.length;v<m;v++){var d=p[v];c&&c[d]?c[d]=null:(s[h]||(s[h]={}))[d]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Je(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return O(t.dataIndex)?k(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return O(t.name)?k(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ht(){var r="__ec_inner_"+_C++;return function(t){return t[r]||(t[r]={})}}var _C=Ql();function $l(r,t,e){var i=$o(t,e),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var h=bi(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function $o(r,t){var e;if(U(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var a=W(),n={},o=!1;return b(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var p=a.get(f)||a.set(f,{});p[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var zt={useDefault:!0,enableAll:!1,enableNone:!1},Kg={useDefault:!1,enableAll:!0,enableNone:!0};function bi(r,t,e,i){i=i||zt;var a=e.index,n=e.id,o=e.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Ft(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ft(i.enableAll,'`"all"` is not a valid value on index option.'),a=n=o=null),s.models=r.queryComponents({mainType:t,index:a,id:n,name:o}),s)}function xc(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function jg(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Qg(r){return r==="auto"?j.domSupported?"html":"richText":r||"html"}function Sc(r,t,e,i,a){var n=t==null||t==="auto";if(i==null)return i;if(nt(i)){var o=Hg(e||0,i,a);return bt(o,n?Math.max(ge(e||0),ge(i)):t)}else{if(U(i))return a<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var p=r.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,v=u[h],o=Hg(c,v,a);s[h]=bt(o,n?Math.max(ge(c),ge(v)):t)}}return s}}var xC=".",xa="___EC__COMPONENT__CONTAINER___",$g="___EC__EXTENDED_CLASS___";function Le(r){var t={main:"",sub:""};if(r){var e=r.split(xC);t.main=e[0]||"",t.sub=e[1]||""}return t}function SC(r){Ft(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Jg(r){return!!(r&&r[$g])}function Rn(r,t){r.$constructor=r,r.extend=function(e){var i=this,a;return bC(i)?a=(function(n){I(o,n);function o(){return n.apply(this,arguments)||this}return o})(i):(a=function(){(e.$constructor||i).apply(this,arguments)},To(a,this)),N(a.prototype,e),a[$g]=!0,a.extend=this.extend,a.superCall=TC,a.superApply=MC,a.superClass=i,a}}function bC(r){return G(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Jl(r,t){r.extend=t.extend}var wC=Math.round(Math.random()*10);function ty(r){var t=["__\0is_clz",wC++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function TC(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function MC(r,t,e){return this.superClass.prototype[t].apply(r,e)}function wi(r){var t={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){SC(a),i.prototype.type=a;var n=Le(a);if(!n.sub)t[n.main]=i;else if(n.sub!==xa){var o=e(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=t[i];if(o&&o[xa]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var a=Le(i),n=[],o=t[a.main];return o&&o[xa]?b(o,function(s,l){l!==xa&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=Le(i);return!!t[a.main]},r.getAllClassMainTypes=function(){var i=[];return b(t,function(a,n){i.push(n)}),i},r.hasSubTypes=function(i){var a=Le(i),n=t[a.main];return n&&n[xa]};function e(i){var a=t[i.main];return(!a||!a[xa])&&(a=t[i.main]={},a[xa]=!0),a}}function Ir(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,a,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&it(a,l)>=0||n&&it(n,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var CC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DC=Ir(CC),ey=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return DC(this,t,e)},r})();var wc=new $r(50);function iy(r){if(typeof r=="string"){var t=wc.get(r);return t&&t.image}else return r}function Tc(r,t,e,i,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=wc.get(r),o={hostEl:e,cb:i,cbPayload:a};return n?(t=n.image,!On(t)&&n.pending.push(o)):(t=$t.loadImage(r,ry,ry),t.__zrImageSrc=r,wc.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function ry(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function On(r){return r&&r.width&&r.height}var Mc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function tu(r,t,e,i,a){if(!t)return"";var n=(r+"").split(`
`);a=ny(t,e,i,a);for(var o=0,s=n.length;o<s;o++)n[o]=oy(n[o],a);return n.join(`
`)}function ny(r,t,e,i){i=i||{};var a=N({},i);a.font=t,e=et(e,"..."),a.maxIterations=et(i.maxIterations,2);var n=a.minChar=et(i.minChar,0);a.cnCharWidth=Ae("\u56FD",t);var o=a.ascCharWidth=Ae("a",t);a.placeholder=et(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Ae(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function oy(r,t){var e=t.containerWidth,i=t.font,a=t.contentWidth;if(!e)return"";var n=Ae(r,i);if(n<=e)return r;for(var o=0;;o++){if(n<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?EC(r,a,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Ae(r,i)}return r===""&&(r=t.placeholder),r}function EC(r,t,e,i){for(var a=0,n=0,o=r.length;n<o&&a<t;n++){var s=r.charCodeAt(n);a+=0<=s&&s<=127?e:i}return n}function sy(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,a=t.font,n=e==="truncate",o=Yl(a),s=et(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?uy(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var p=h.length*s,c=et(t.height,p);if(p>c&&u){var v=Math.floor(c/s);h=h.slice(0,v)}if(r&&n&&f!=null)for(var m=ny(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;d<h.length;d++)h[d]=oy(h[d],m);for(var g=c,y=0,d=0;d<h.length;d++)y=Math.max(Ae(h[d],a),y);f==null&&(f=y);var _=y;return i&&(g+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:p,width:f}}var LC=(function(){function r(){}return r})(),ay=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),IC=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r})();function ly(r,t){var e=new IC;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,a=t.height,n=t.overflow,o=(n==="break"||n==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:n==="breakAll"}:null,s=Mc.lastIndex=0,l;(l=Mc.exec(r))!=null;){var u=l.index;u>s&&Cc(e,r.substring(s,u),t,o),Cc(e,l[2],t,o,l[1]),s=Mc.lastIndex}s<r.length&&Cc(e,r.substring(s,r.length),t,o);var f=[],h=0,p=0,c=t.padding,v=n==="truncate",m=t.lineOverflow==="truncate";function d(V,B,X){V.width=B,V.lineHeight=X,h+=X,p=Math.max(p,B)}t:for(var g=0;g<e.lines.length;g++){for(var y=e.lines[g],_=0,x=0,w=0;w<y.tokens.length;w++){var S=y.tokens[w],T=S.styleName&&t.rich[S.styleName]||{},M=S.textPadding=T.padding,D=M?M[1]+M[3]:0,A=S.font=T.font||t.font;S.contentHeight=Yl(A);var C=et(T.height,S.contentHeight);if(S.innerHeight=C,M&&(C+=M[0]+M[2]),S.height=C,S.lineHeight=Ar(T.lineHeight,t.lineHeight,C),S.align=T&&T.align||t.align,S.verticalAlign=T&&T.verticalAlign||"middle",m&&a!=null&&h+S.lineHeight>a){w>0?(y.tokens=y.tokens.slice(0,w),d(y,x,_),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var E=T.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,f.push(S),S.contentWidth=Ae(S.text,A);else{if(L){var P=T.backgroundColor,R=P&&P.image;R&&(R=iy(R),On(R)&&(S.width=Math.max(S.width,R.width*C/R.height)))}var z=v&&i!=null?i-x:null;z!=null&&z<S.width?!L||z<D?(S.text="",S.width=S.contentWidth=0):(S.text=tu(S.text,z-D,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Ae(S.text,A)):S.contentWidth=Ae(S.text,A)}S.width+=D,x+=S.width,T&&(_=Math.max(_,S.lineHeight))}d(y,x,_)}e.outerWidth=e.width=et(i,p),e.outerHeight=e.height=et(a,h),e.contentHeight=h,e.contentWidth=p,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var g=0;g<f.length;g++){var S=f[g],Z=S.percentWidth;S.width=parseInt(Z,10)/100*e.width}return e}function Cc(r,t,e,i,a){var n=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var p=o.padding,c=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=me(o.width,i.width)+c;s.length>0&&v+i.accumWidth>i.width&&(f=t.split(`
`),u=!0),i.accumWidth=v}else{var m=uy(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+c,h=m.linesWidths,f=m.lines}}else f=t.split(`
`);for(var d=0;d<f.length;d++){var g=f[d],y=new LC;if(y.styleName=a,y.text=g,y.isLineHolder=!g&&!n,typeof o.width=="number"?y.width=o.width:y.width=h?h[d]:Ae(g,l),!d&&!u){var _=(s[s.length-1]||(s[0]=new ay)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=y:(g||!x||n)&&_.push(y)}else s.push(new ay([y]))}}function PC(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var RC=fe(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function OC(r){return PC(r)?!!RC[r]:!0}function uy(r,t,e,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var p=r.charAt(h);if(p===`
`){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Ae(p,t),v=i?!1:!OC(p);if(n.length?f+c>e:a+f+c>e){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=p,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=p,f=c)):v?(n.push(l),o.push(u),l=p,u=c):(n.push(p),o.push(c));continue}f+=c,v?(l+=p,u+=c):(l&&(s+=l,l="",u=0),s+=p)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var Ec="__zr_style_"+Math.round(Math.random()*10),Pr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Sa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Pr[Ec]=!0;var fy=["z","z2","invisible"],NC=["invisible"],zC=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=lt(e),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(e[n]):r.prototype.attrKV.call(this,n,e[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kC(this,e,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new J(0,0,0,0)),i?J.applyTransform(e,a,i):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:N(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=sa,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&sa)},t.prototype.styleUpdated=function(){this.__dirty&=~sa},t.prototype.createStyle=function(e){return Xr(Pr,e)},t.prototype.useStyle=function(e){e[Ec]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ec]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,fy)},t.prototype._applyStateObj=function(e,i,a,n,o,s){r.prototype._applyStateObj.call(this,e,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.style?o?n?u=i.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(u,i.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=lt(f),p=0;p<h.length;p++){var c=h[p];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var v=lt(u),p=0;p<v.length;p++){var c=v[p];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?NC:fy,p=0;p<m.length;p++){var c=m[p];i&&i[c]!=null?this[c]=i[c]:l&&a[c]!=null&&(this[c]=a[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var o=e[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},t.prototype._mergeStyle=function(e,i){return N(e,i),e},t.prototype.getAnimationStyleProps=function(){return Sa},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Ht|sa})(),t})(Zl),Dc=new J(0,0,0,0),Ac=new J(0,0,0,0);function kC(r,t,e){return Dc.copy(r.getBoundingRect()),r.transform&&Dc.applyTransform(r.transform),Ac.width=t,Ac.height=e,!Dc.intersect(Ac)}var Rr=zC;var tr=Math.min,er=Math.max,Lc=Math.sin,Ic=Math.cos,ba=Math.PI*2,eu=qr(),ru=qr(),iu=qr();function Pc(r,t,e,i,a,n){a[0]=tr(r,e),a[1]=tr(t,i),n[0]=er(r,e),n[1]=er(t,i)}var hy=[],cy=[];function py(r,t,e,i,a,n,o,s,l,u){var f=Rl,h=At,p=f(r,e,a,o,hy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<p;c++){var v=h(r,e,a,o,hy[c]);l[0]=tr(v,l[0]),u[0]=er(v,u[0])}p=f(t,i,n,s,cy);for(var c=0;c<p;c++){var m=h(t,i,n,s,cy[c]);l[1]=tr(m,l[1]),u[1]=er(m,u[1])}l[0]=tr(r,l[0]),u[0]=er(r,u[0]),l[0]=tr(o,l[0]),u[0]=er(o,u[0]),l[1]=tr(t,l[1]),u[1]=er(t,u[1]),l[1]=tr(s,l[1]),u[1]=er(s,u[1])}function vy(r,t,e,i,a,n,o,s){var l=Ol,u=Yt,f=er(tr(l(r,e,a),1),0),h=er(tr(l(t,i,n),1),0),p=u(r,e,a,f),c=u(t,i,n,h);o[0]=tr(r,a,p),o[1]=tr(t,n,c),s[0]=er(r,a,p),s[1]=er(t,n,c)}function dy(r,t,e,i,a,n,o,s,l){var u=Xe,f=qe,h=Math.abs(a-n);if(h%ba<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(eu[0]=Ic(a)*e+r,eu[1]=Lc(a)*i+t,ru[0]=Ic(n)*e+r,ru[1]=Lc(n)*i+t,u(s,eu,ru),f(l,eu,ru),a=a%ba,a<0&&(a=a+ba),n=n%ba,n<0&&(n=n+ba),a>n&&!o?n+=ba:a<n&&o&&(a+=ba),o){var p=n;n=a,a=p}for(var c=0;c<n;c+=Math.PI/2)c>a&&(iu[0]=Ic(c)*e+r,iu[1]=Lc(c)*i+t,u(s,iu,s),f(l,iu,l))}var St={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wa=[],Ta=[],Or=[],Ti=[],Nr=[],zr=[],Rc=Math.min,Oc=Math.max,Ma=Math.cos,Ca=Math.sin,ei=Math.abs,kc=Math.PI,Mi=kc*2,Nc=typeof Float32Array<"u",Jo=[];function zc(r){var t=Math.round(r/kc*1e8)/1e8;return t%2*kc}function Uc(r,t){var e=zc(r[0]);e<0&&(e+=Mi);var i=e-r[0],a=r[1];a+=i,!t&&a-e>=Mi?a=e+Mi:t&&e-a>=Mi?a=e-Mi:!t&&e>a?a=e+(Mi-zc(e-a)):t&&e<a&&(a=e-(Mi-zc(a-e))),r[0]=e,r[1]=a}var UC=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=ei(i/ca/t)||0,this._uy=ei(i/ca/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(St.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=ei(t-this._xi),a=ei(e-this._yi),n=i>this._ux||a>this._uy;if(this.addData(St.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,a,n,o){return this._drawPendingPt(),this.addData(St.C,t,e,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,a){return this._drawPendingPt(),this.addData(St.Q,t,e,i,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(t,e,i,a,n,o){this._drawPendingPt(),Jo[0]=a,Jo[1]=n,Uc(Jo,o),a=Jo[0],n=Jo[1];var s=n-a;return this.addData(St.A,t,e,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,a,n,o),this._xi=Ma(n)*i+t,this._yi=Ca(n)*i+e,this},r.prototype.arcTo=function(t,e,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,a,n),this},r.prototype.rect=function(t,e,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,a),this.addData(St.R,t,e,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(St.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Nc&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,a=this._len,n=0;n<e;n++)i+=t[n].len();Nc&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(var n=0;n<e;n++)for(var o=t[n].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,i,a,n,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Nc&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Or[0]=Or[1]=Nr[0]=Nr[1]=Number.MAX_VALUE,Ti[0]=Ti[1]=zr[0]=zr[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],a=e,n=i),s){case St.M:e=a=t[o++],i=n=t[o++],Nr[0]=a,Nr[1]=n,zr[0]=a,zr[1]=n;break;case St.L:Pc(e,i,t[o],t[o+1],Nr,zr),e=t[o++],i=t[o++];break;case St.C:py(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Nr,zr),e=t[o++],i=t[o++];break;case St.Q:vy(e,i,t[o++],t[o++],t[o],t[o+1],Nr,zr),e=t[o++],i=t[o++];break;case St.A:var u=t[o++],f=t[o++],h=t[o++],p=t[o++],c=t[o++],v=t[o++]+c;o+=1;var m=!t[o++];l&&(a=Ma(c)*h+u,n=Ca(c)*p+f),dy(u,f,h,p,c,v,m,Nr,zr),e=Ma(v)*h+u,i=Ca(v)*p+f;break;case St.R:a=e=t[o++],n=i=t[o++];var d=t[o++],g=t[o++];Pc(a,n,a+d,n+g,Nr,zr);break;case St.Z:e=a,i=n;break}Xe(Or,Or,Nr),qe(Ti,Ti,zr)}return o===0&&(Or[0]=Or[1]=Ti[0]=Ti[1]=0),new J(Or[0],Or[1],Ti[0]-Or[0],Ti[1]-Or[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,p=0;p<e;){var c=t[p++],v=p===1;v&&(n=t[p],o=t[p+1],s=n,l=o);var m=-1;switch(c){case St.M:n=s=t[p++],o=l=t[p++];break;case St.L:{var d=t[p++],g=t[p++],y=d-n,_=g-o;(ei(y)>i||ei(_)>a||p===e-1)&&(m=Math.sqrt(y*y+_*_),n=d,o=g);break}case St.C:{var x=t[p++],w=t[p++],d=t[p++],g=t[p++],S=t[p++],T=t[p++];m=ng(n,o,x,w,d,g,S,T,10),n=S,o=T;break}case St.Q:{var x=t[p++],w=t[p++],d=t[p++],g=t[p++];m=lg(n,o,x,w,d,g,10),n=d,o=g;break}case St.A:var M=t[p++],D=t[p++],A=t[p++],C=t[p++],E=t[p++],L=t[p++],P=L+E;p+=1,v&&(s=Ma(E)*A+M,l=Ca(E)*C+D),m=Oc(A,C)*Rc(Mi,Math.abs(L)),n=Ma(P)*A+M,o=Ca(P)*C+D;break;case St.R:{s=n=t[p++],l=o=t[p++];var R=t[p++],z=t[p++];m=R*2+z*2;break}case St.Z:{var y=s-n,_=l-o;m=Math.sqrt(y*y+_*_),n=s,o=l;break}}m>=0&&(u[h++]=m,f+=m)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,h,p,c=e<1,v,m,d=0,g=0,y,_=0,x,w;if(!(c&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,y=e*m,!y)))t:for(var S=0;S<o;){var T=i[S++],M=S===1;switch(M&&(u=i[S],f=i[S+1],s=u,l=f),T!==St.L&&_>0&&(t.lineTo(x,w),_=0),T){case St.M:s=u=i[S++],l=f=i[S++],t.moveTo(u,f);break;case St.L:{h=i[S++],p=i[S++];var D=ei(h-u),A=ei(p-f);if(D>a||A>n){if(c){var C=v[g++];if(d+C>y){var E=(y-d)/C;t.lineTo(u*(1-E)+h*E,f*(1-E)+p*E);break t}d+=C}t.lineTo(h,p),u=h,f=p,_=0}else{var L=D*D+A*A;L>_&&(x=h,w=p,_=L)}break}case St.C:{var P=i[S++],R=i[S++],z=i[S++],Z=i[S++],V=i[S++],B=i[S++];if(c){var C=v[g++];if(d+C>y){var E=(y-d)/C;xn(u,P,z,V,E,wa),xn(f,R,Z,B,E,Ta),t.bezierCurveTo(wa[1],Ta[1],wa[2],Ta[2],wa[3],Ta[3]);break t}d+=C}t.bezierCurveTo(P,R,z,Z,V,B),u=V,f=B;break}case St.Q:{var P=i[S++],R=i[S++],z=i[S++],Z=i[S++];if(c){var C=v[g++];if(d+C>y){var E=(y-d)/C;Sn(u,P,z,E,wa),Sn(f,R,Z,E,Ta),t.quadraticCurveTo(wa[1],Ta[1],wa[2],Ta[2]);break t}d+=C}t.quadraticCurveTo(P,R,z,Z),u=z,f=Z;break}case St.A:var X=i[S++],Q=i[S++],$=i[S++],mt=i[S++],xt=i[S++],jt=i[S++],Tt=i[S++],Te=!i[S++],Ne=$>mt?$:mt,le=ei($-mt)>.001,Rt=xt+jt,ot=!1;if(c){var C=v[g++];d+C>y&&(Rt=xt+jt*(y-d)/C,ot=!0),d+=C}if(le&&t.ellipse?t.ellipse(X,Q,$,mt,Tt,xt,Rt,Te):t.arc(X,Q,Ne,xt,Rt,Te),ot)break t;M&&(s=Ma(xt)*$+X,l=Ca(xt)*mt+Q),u=Ma(Rt)*$+X,f=Ca(Rt)*mt+Q;break;case St.R:s=u=i[S],l=f=i[S+1],h=i[S++],p=i[S++];var dt=i[S++],Cr=i[S++];if(c){var C=v[g++];if(d+C>y){var Qt=y-d;t.moveTo(h,p),t.lineTo(h+Rc(Qt,dt),p),Qt-=dt,Qt>0&&t.lineTo(h+dt,p+Rc(Qt,Cr)),Qt-=Cr,Qt>0&&t.lineTo(h+Oc(dt-Qt,0),p+Cr),Qt-=dt,Qt>0&&t.lineTo(h,p+Oc(Cr-Qt,0));break t}d+=C}t.rect(h,p,dt,Cr);break;case St.Z:if(c){var C=v[g++];if(d+C>y){var E=(y-d)/C;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}d+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=St,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})(),ye=UC;function Da(r,t,e,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||n>r+s&&n>e+s||n<r-s&&n<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function my(r,t,e,i,a,n,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>n+h&&f>s+h||f<t-h&&f<i-h&&f<n-h&&f<s-h||u>r+h&&u>e+h&&u>a+h&&u>o+h||u<r-h&&u<e-h&&u<a-h&&u<o-h)return!1;var p=ag(r,t,e,i,a,n,o,s,u,f,null);return p<=h/2}function gy(r,t,e,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>n+u||l<t-u&&l<i-u&&l<n-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=sg(r,t,e,i,a,n,s,l,null);return f<=u/2}var yy=Math.PI*2;function ts(r){return r%=yy,r<0&&(r+=yy),r}var es=Math.PI*2;function _y(r,t,e,i,a,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-a)%es<1e-4)return!0;if(n){var h=i;i=ts(a),a=ts(h)}else i=ts(i),a=ts(a);i>a&&(a+=es);var p=Math.atan2(l,s);return p<0&&(p+=es),p>=i&&p<=a||p+es>=i&&p+es<=a}function rr(r,t,e,i,a,n){if(n>t&&n>i||n<t&&n<i||i===t)return 0;var o=(n-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var Ci=ye.CMD,Aa=Math.PI*2,GC=1e-4;function WC(r,t){return Math.abs(r-t)<GC}var _e=[-1,-1,-1],ir=[-1,-1];function YC(){var r=ir[0];ir[0]=ir[1],ir[1]=r}function ZC(r,t,e,i,a,n,o,s,l,u){if(u>t&&u>i&&u>n&&u>s||u<t&&u<i&&u<n&&u<s)return 0;var f=la(t,i,n,s,u,_e);if(f===0)return 0;for(var h=0,p=-1,c=void 0,v=void 0,m=0;m<f;m++){var d=_e[m],g=d===0||d===1?.5:1,y=At(r,e,a,o,d);y<l||(p<0&&(p=Rl(t,i,n,s,ir),ir[1]<ir[0]&&p>1&&YC(),c=At(t,i,n,s,ir[0]),p>1&&(v=At(t,i,n,s,ir[1]))),p===2?d<ir[0]?h+=c<t?g:-g:d<ir[1]?h+=v<c?g:-g:h+=s<v?g:-g:d<ir[0]?h+=c<t?g:-g:h+=s<c?g:-g)}return h}function XC(r,t,e,i,a,n,o,s){if(s>t&&s>i&&s>n||s<t&&s<i&&s<n)return 0;var l=og(t,i,n,s,_e);if(l===0)return 0;var u=Ol(t,i,n);if(u>=0&&u<=1){for(var f=0,h=Yt(t,i,n,u),p=0;p<l;p++){var c=_e[p]===0||_e[p]===1?.5:1,v=Yt(r,e,a,_e[p]);v<o||(_e[p]<u?f+=h<t?c:-c:f+=n<h?c:-c)}return f}else{var c=_e[0]===0||_e[0]===1?.5:1,v=Yt(r,e,a,_e[0]);return v<o?0:n<t?c:-c}}function qC(r,t,e,i,a,n,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);_e[0]=-l,_e[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Aa-1e-4){i=0,a=Aa;var f=n?1:-1;return o>=_e[0]+r&&o<=_e[1]+r?f:0}if(i>a){var h=i;i=a,a=h}i<0&&(i+=Aa,a+=Aa);for(var p=0,c=0;c<2;c++){var v=_e[c];if(v+r>o){var m=Math.atan2(s,v),f=n?1:-1;m<0&&(m=Aa+m),(m>=i&&m<=a||m+Aa>=i&&m+Aa<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),p+=f)}}return p}function xy(r,t,e,i,a){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,p,c,v=0;v<o;){var m=n[v++],d=v===1;switch(m===Ci.M&&v>1&&(e||(s+=rr(l,u,f,h,i,a))),d&&(l=n[v],u=n[v+1],f=l,h=u),m){case Ci.M:f=n[v++],h=n[v++],l=f,u=h;break;case Ci.L:if(e){if(Da(l,u,n[v],n[v+1],t,i,a))return!0}else s+=rr(l,u,n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Ci.C:if(e){if(my(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],t,i,a))return!0}else s+=ZC(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Ci.Q:if(e){if(gy(l,u,n[v++],n[v++],n[v],n[v+1],t,i,a))return!0}else s+=XC(l,u,n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Ci.A:var g=n[v++],y=n[v++],_=n[v++],x=n[v++],w=n[v++],S=n[v++];v+=1;var T=!!(1-n[v++]);p=Math.cos(w)*_+g,c=Math.sin(w)*x+y,d?(f=p,h=c):s+=rr(l,u,p,c,i,a);var M=(i-g)*x/_+g;if(e){if(_y(g,y,x,w,w+S,T,t,M,a))return!0}else s+=qC(g,y,x,w,w+S,T,M,a);l=Math.cos(w+S)*_+g,u=Math.sin(w+S)*x+y;break;case Ci.R:f=l=n[v++],h=u=n[v++];var D=n[v++],A=n[v++];if(p=f+D,c=h+A,e){if(Da(f,h,p,h,t,i,a)||Da(p,h,p,c,t,i,a)||Da(p,c,f,c,t,i,a)||Da(f,c,f,h,t,i,a))return!0}else s+=rr(p,h,p,c,i,a),s+=rr(f,c,f,h,i,a);break;case Ci.Z:if(e){if(Da(l,u,f,h,t,i,a))return!0}else s+=rr(l,u,f,h,i,a);l=f,u=h;break}}return!e&&!WC(u,h)&&(s+=rr(l,u,f,h,i,a)||0),s!==0}function Sy(r,t,e){return xy(r,0,!1,t,e)}function by(r,t,e,i){return xy(r,t,!0,e,i)}var Bc=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pr),jC={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Sa.style)},Vc=da.concat(["invisible","culling","z","z2","zlevel","parent"]),QC=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<Vc.length;++s)a[Vc[s]]=this[Vc[s]];a.__dirty|=Ht}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=lt(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=e[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(U(e)){var i=fa(e,0);return i>.5?Wo:i>.2?Dg:Yo}else if(e)return Yo}return Wo},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(U(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=fa(e,0)<Go;if(n===o)return i}},t.prototype.buildPath=function(e,i,a){},t.prototype.pathUpdated=function(){this.__dirty&=~gi},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ye(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,a=!e;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&gi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??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 e},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect(),o=this.style;if(e=a[0],i=a[1],n.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),by(s,l/u,e,i)))return!0}if(this.hasFill())return Sy(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=gi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=i:N(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&gi)},t.prototype.createStyle=function(e){return Xr(Bc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(e,i,a,n,o,s){r.prototype._applyStateObj.call(this,e,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=N({},a.shape),N(u,i.shape)):(u=N({},n?this.shape:a.shape),N(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},h=lt(u),p=0;p<h.length;p++){var c=h[p];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var o=e[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},t.prototype.getAnimationStyleProps=function(){return jC},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(n){I(o,n);function o(s){var l=n.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Y(e.style)},o.prototype.getDefaultShape=function(){return Y(e.shape)},o})(t);for(var a in e)typeof e[a]=="function"&&(i.prototype[a]=e[a]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Ht|sa|gi})(),t})(Rr),at=QC;var $C=K({strokeFirst:!0,font:pr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bc),wy=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Xr($C,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var a=Mn(i,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Rr);wy.prototype.type="tspan";var rs=wy;var JC=K({x:0,y:0},Pr),tD={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Sa.style)};function eD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ty=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Xr(JC,e)},t.prototype._getSize=function(e){var i=this.style,a=i[e];if(a!=null)return a;var n=eD(i.image)?i.image:this.__image;if(!n)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?n[e]:n[e]/n[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return tD},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Rr);Ty.prototype.type="image";var ne=Ty;function My(r,t){var e=t.x,i=t.y,a=t.width,n=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),n<0&&(i=i+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+f>n&&(h=s+f,s*=n/h,f*=n/h),r.moveTo(e+s,i),r.lineTo(e+a-l,i),l!==0&&r.arc(e+a-l,i+l,l,-Math.PI/2,0),r.lineTo(e+a,i+n-u),u!==0&&r.arc(e+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(e+f,i+n),f!==0&&r.arc(e+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Nn=Math.round;function au(r,t,e){if(t){var i=t.x1,a=t.x2,n=t.y1,o=t.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=e&&e.lineWidth;return s&&(Nn(i*2)===Nn(a*2)&&(r.x1=r.x2=Di(i,s,!0)),Nn(n*2)===Nn(o*2)&&(r.y1=r.y2=Di(n,s,!0))),r}}function nu(r,t,e){if(t){var i=t.x,a=t.y,n=t.width,o=t.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Di(i,s,!0),r.y=Di(a,s,!0),r.width=Math.max(Di(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Di(a+o,s,!1)-r.y,o===0?0:1)),r}}function Di(r,t,e){if(!t)return r;var i=Nn(r*2);return(i+Nn(t))%2===0?i/2:(i+(e?1:-1))/2}var aD=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var nD={},Cy=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aD},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=nu(nD,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?My(e,i):e.rect(a,n,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(at);Cy.prototype.type="rect";var st=Cy;var Dy={fill:"#000"},Ay=2,oD={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},Sa.style)},zy=(function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Dy,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,hD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),n=n||e.clone(),n.union(e)):(n=n||l.clone(),n.union(l))}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Dy},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var a=i.rich,n=e.rich||a&&{};return N(e,i),a&&n?(this._mergeRich(n,a),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,i){for(var a=lt(i),n=0;n<a.length;n++){var o=a[n];e[o]=e[o]||{},N(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return oD},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||pr,a=e.padding,n=Ny(e),o=sy(n,e),s=Fc(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,p=o.lines,c=o.lineHeight,v=this._defaultStyle,m=e.x||0,d=e.y||0,g=e.align||v.align||"left",y=e.verticalAlign||v.verticalAlign||"top",_=m,x=ma(d,o.contentHeight,y);if(s||a){var w=Cn(m,f,g),S=ma(d,u,y);s&&this._renderBackground(e,e,w,S,f,u)}x+=c/2,a&&(_=Oy(m,g,a),y==="top"?x+=a[0]:y==="bottom"&&(x-=a[2]));for(var T=0,M=!1,D=Ry("fill"in e?e.fill:(M=!0,v.fill)),A=Py("stroke"in e?e.stroke:!l&&(!v.autoStroke||M)?(T=Ay,v.stroke):null),C=e.textShadowBlur>0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<p.length;P++){var R=this._getOrCreateChild(rs),z=R.createStyle();R.useStyle(z),z.text=p[P],z.x=_,z.y=x,g&&(z.textAlign=g),z.textBaseline="middle",z.opacity=e.opacity,z.strokeFirst=!0,C&&(z.shadowBlur=e.textShadowBlur||0,z.shadowColor=e.textShadowColor||"transparent",z.shadowOffsetX=e.textShadowOffsetX||0,z.shadowOffsetY=e.textShadowOffsetY||0),z.stroke=A,z.fill=D,A&&(z.lineWidth=e.lineWidth||T,z.lineDash=e.lineDash,z.lineDashOffset=e.lineDashOffset||0),z.font=i,Ly(z,e),x+=c,E&&R.setBoundingRect(new J(Cn(z.x,e.width,z.textAlign),ma(z.y,L,z.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=Ny(e),a=ly(i,e),n=a.width,o=a.outerWidth,s=a.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,p=e.align||h.align,c=e.verticalAlign||h.verticalAlign,v=Cn(u,o,p),m=ma(f,s,c),d=v,g=m;l&&(d+=l[3],g+=l[0]);var y=d+n;Fc(e)&&this._renderBackground(e,e,v,m,o,s);for(var _=!!e.backgroundColor,x=0;x<a.lines.length;x++){for(var w=a.lines[x],S=w.tokens,T=S.length,M=w.lineHeight,D=w.width,A=0,C=d,E=y,L=T-1,P=void 0;A<T&&(P=S[A],!P.align||P.align==="left");)this._placeToken(P,e,M,g,C,"left",_),D-=P.width,C+=P.width,A++;for(;L>=0&&(P=S[L],P.align==="right");)this._placeToken(P,e,M,g,E,"right",_),D-=P.width,E-=P.width,L--;for(C+=(n-(C-d)-(y-E)-D)/2;A<=L;)P=S[A],this._placeToken(P,e,M,g,C+P.width/2,"center",_),C+=P.width,A++;g+=M}},t.prototype._placeToken=function(e,i,a,n,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=n+a/2;f==="top"?h=n+e.height/2:f==="bottom"&&(h=n+a-e.height/2);var p=!e.isLineHolder&&Fc(u);p&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,v=e.textPadding;v&&(o=Oy(o,s,v),h-=e.height/2-v[0]-e.innerHeight/2);var m=this._getOrCreateChild(rs),d=m.createStyle();m.useStyle(d);var g=this._defaultStyle,y=!1,_=0,x=Ry("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),w=Py("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!g.autoStroke||y)?(_=Ay,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=o,d.y=h,S&&(d.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,d.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=e.font||pr,d.opacity=Ar(u.opacity,i.opacity,1),Ly(d,u),w&&(d.lineWidth=Ar(u.lineWidth,i.lineWidth,_),d.lineDash=et(u.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=w),x&&(d.fill=x);var T=e.contentWidth,M=e.contentHeight;m.setBoundingRect(new J(Cn(d.x,T,d.textAlign),ma(d.y,M,d.textBaseline),T,M))},t.prototype._renderBackground=function(e,i,a,n,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,p=l&&!h,c=e.borderRadius,v=this,m,d;if(p||e.lineHeight||u&&f){m=this._getOrCreateChild(st),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=c,m.dirtyShape()}if(p){var y=m.style;y.fill=l||null,y.fillOpacity=et(e.fillOpacity,1)}else if(h){d=this._getOrCreateChild(ne),d.onload=function(){v.dirtyStyle()};var _=d.style;_.image=l.image,_.x=a,_.y=n,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=et(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(m||d).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=Ar(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return fD(e)&&(i=[e.fontStyle,e.fontWeight,uD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&te(i)||e.textFont||e.font},t})(Rr),sD={left:!0,right:1,center:1},lD={top:1,bottom:1,middle:1},Ey=["fontStyle","fontWeight","fontSize","fontFamily"];function uD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ml+"px":r+"px"}function Ly(r,t){for(var e=0;e<Ey.length;e++){var i=Ey[e],a=t[i];a!=null&&(r[i]=a)}}function fD(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function hD(r){return Iy(r),b(r.rich,Iy),r}function Iy(r){if(r){r.font=zy.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||sD[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||lD[e]?e:"top";var i=r.padding;i&&(r.padding=Co(r.padding))}}function Py(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Ry(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Oy(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Ny(r){var t=r.text;return t!=null&&(t+=""),t}function Fc(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var vt=zy;var ut=ht(),ky=function(r,t,e,i){if(i){var a=ut(i);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=ut(n);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}};var Uy=1,Vy={},Wy=ht(),Wc=ht(),Yc=0,is=1,as=2,xe=["emphasis","blur","select"],kn=["normal","emphasis","blur","select"],cD=10,pD=9,Ai="highlight",ns="downplay",Un="select",os="unselect",Vn="toggleSelect";function zn(r){return r!=null&&r!=="none"}function su(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Yy(r){su(r,"emphasis",as)}function Zy(r){r.hoverState===as&&su(r,"normal",Yc)}function Zc(r){su(r,"blur",is)}function Xy(r){r.hoverState===is&&su(r,"normal",Yc)}function vD(r){r.selected=!0}function dD(r){r.selected=!1}function By(r,t,e){t(r,e)}function ri(r,t,e){By(r,t,e),r.isGroup&&r.traverse(function(i){By(i,t,e)})}function Xc(r,t){switch(t){case"emphasis":r.hoverState=as;break;case"normal":r.hoverState=Yc;break;case"blur":r.hoverState=is;break;case"select":r.selected=!0}}function mD(r,t,e,i){for(var a=r.style,n={},o=0;o<t.length;o++){var s=t[o],l=a[s];n[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(n,t)}return n}function gD(r,t,e,i){var a=e&&it(e,"select")>=0,n=!1;if(r instanceof at){var o=Wy(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(zn(s)||zn(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=N({},i),u=N({},u),u.fill=s):!zn(u.fill)&&zn(s)?(n=!0,i=N({},i),u=N({},u),u.fill=Ul(s)):!zn(u.stroke)&&zn(l)&&(n||(i=N({},i),u=N({},u)),u.stroke=Ul(l)),i.style=u}}if(i&&i.z2==null){n||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??cD)}return i}function yD(r,t,e){if(e&&e.z2==null){e=N({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??pD)}return e}function _D(r,t,e){var i=it(r.currentStates,t)>=0,a=r.style.opacity,n=i?null:mD(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:i?a:n.opacity*.1},o),e.style=o),e}function Hc(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return gD(this,r,t,e);if(r==="blur")return _D(this,r,e);if(r==="select")return yD(this,r,e)}return e}function xD(r){r.stateProxy=Hc;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Hc),e&&(e.stateProxy=Hc)}function Fy(r,t){!Ky(r,t)&&!r.__highByOuter&&ri(r,Yy)}function Hy(r,t){!Ky(r,t)&&!r.__highByOuter&&ri(r,Zy)}function Ea(r,t){r.__highByOuter|=1<<(t||0),ri(r,Yy)}function La(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ri(r,Zy)}function qy(r){ri(r,Zc)}function qc(r){ri(r,Xy)}function Kc(r){ri(r,vD)}function jc(r){ri(r,dD)}function Ky(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Qc(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(a,n){var o=Wc(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){Xy(u)}),s&&e.push(n)),o.isBlured=!1}),b(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Gc(r,t,e,i){var a=i.getModel();e=e||"coordinateSystem";function n(u,f){for(var h=0;h<f.length;h++){var p=u.getItemGraphicEl(f[h]);p&&qc(p)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!p||t==="series"&&f)){var c=i.getViewOfSeriesModel(u);if(c.group.traverse(function(d){d.__highByOuter&&f&&t==="self"||Zc(d)}),Ot(t))n(u.getData(),t);else if(F(t))for(var v=lt(t),m=0;m<v.length;m++)n(u.getData(v[m]),t[v[m]]);l.push(u),Wc(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function ou(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){Wc(i).isBlured=!0;var a=e.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){Zc(n)})}}}function jy(r,t,e){var i=r.seriesIndex,a=r.getData(t.dataType);if(a){var n=Je(a,t);n=(O(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ut(o);Gc(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Gc(i,f,h,e)}}}function lu(r,t,e,i){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var n=i.getModel().getComponent(r,t);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Qy(r,t,e){var i=ut(r),a=lu(i.componentMainType,i.componentIndex,i.componentHighDownName,e),n=a.dispatchers,o=a.focusSelf;n?(o&&ou(i.componentMainType,i.componentIndex,e),b(n,function(s){return Fy(s,t)})):(Gc(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&ou(i.componentMainType,i.componentIndex,e),Fy(r,t))}function $y(r,t,e){Qc(e);var i=ut(r),a=lu(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;a?b(a,function(n){return Hy(n,t)}):Hy(r,t)}function Jy(r,t,e){if(fu(t)){var i=t.dataType,a=r.getData(i),n=Je(a,t);O(n)||(n=[n]),r[t.type===Vn?"toggleSelect":t.type===Un?"select":"unselect"](n,i)}}function $c(r){var t=r.getAllData();b(t,function(e){var i=e.data,a=e.type;i.eachItemGraphicEl(function(n,o){r.isSelected(o,a)?Kc(n):jc(n)})})}function t0(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();b(i,function(a){var n=a.data,o=a.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function Ei(r,t,e){uu(r,!0),ri(r,xD),bD(r,t,e)}function SD(r){uu(r,!1)}function yr(r,t,e,i){i?SD(r):Ei(r,t,e)}function bD(r,t,e){var i=ut(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Gy=["emphasis","blur","select"],wD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ia(r,t,e,i){e=e||"itemStyle";for(var a=0;a<Gy.length;a++){var n=Gy[a],o=t.getModel([n,e]),s=r.ensureState(n);s.style=i?i(o):o[wD[e]]()}}function uu(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function ss(r){return!!(r&&r.__highDownDispatcher)}function e0(r){var t=Vy[r];return t==null&&Uy<=32&&(t=Vy[r]=Uy++),t}function fu(r){var t=r.type;return t===Un||t===os||t===Vn}function Jc(r){var t=r.type;return t===Ai||t===ns}function r0(r){var t=Wy(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var It={};ze(It,{Arc:()=>Oa,BezierCurve:()=>ps,BoundingRect:()=>J,Circle:()=>Pa,CompoundPath:()=>du,Ellipse:()=>us,Group:()=>ft,Image:()=>ne,IncrementalDisplayable:()=>xu,Line:()=>Ve,LinearGradient:()=>Li,OrientedBoundingRect:()=>Hn,Path:()=>at,Point:()=>rt,Polygon:()=>ii,Polyline:()=>xr,RadialGradient:()=>gu,Rect:()=>st,Ring:()=>cs,Sector:()=>Ue,Text:()=>vt,applyTransform:()=>Sr,clipPointsByRect:()=>pp,clipRectByRect:()=>vp,createIcon:()=>Ba,extendPath:()=>up,extendShape:()=>lp,getShapeClass:()=>fp,getTransform:()=>ai,groupTransition:()=>cp,initProps:()=>Gt,isElementRemoved:()=>ka,lineLineIntersect:()=>I0,linePolygonIntersect:()=>iA,makeImage:()=>vs,makePath:()=>Yn,mergePath:()=>hp,registerShape:()=>Be,removeElement:()=>Gn,removeElementWithFadeOut:()=>Ua,resizePath:()=>wu,setTooltipConfig:()=>ms,subPixelOptimize:()=>eA,subPixelOptimizeLine:()=>Va,subPixelOptimizeRect:()=>tA,transformDirection:()=>ds,traverseElements:()=>ni,updateProps:()=>Ct});var Bn=ye.CMD,TD=[[],[],[]],i0=Math.sqrt,MD=Math.atan2;function tp(r,t){if(t){var e=r.data,i=r.len(),a,n,o,s,l,u,f=Bn.M,h=Bn.C,p=Bn.L,c=Bn.R,v=Bn.A,m=Bn.Q;for(o=0,s=0;o<i;){switch(a=e[o++],s=o,n=0,a){case f:n=1;break;case p:n=1;break;case h:n=3;break;case m:n=2;break;case v:var d=t[4],g=t[5],y=i0(t[0]*t[0]+t[1]*t[1]),_=i0(t[2]*t[2]+t[3]*t[3]),x=MD(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=d,e[o]*=_,e[o++]+=g,e[o++]*=y,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Nt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Nt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<n;l++){var w=TD[l];w[0]=e[o++],w[1]=e[o++],Nt(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var ep=Math.sqrt,hu=Math.sin,cu=Math.cos,ls=Math.PI;function a0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function rp(r,t){return(r[0]*t[0]+r[1]*t[1])/(a0(r)*a0(t))}function n0(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(rp(r,t))}function o0(r,t,e,i,a,n,o,s,l,u,f){var h=l*(ls/180),p=cu(h)*(r-e)/2+hu(h)*(t-i)/2,c=-1*hu(h)*(r-e)/2+cu(h)*(t-i)/2,v=p*p/(o*o)+c*c/(s*s);v>1&&(o*=ep(v),s*=ep(v));var m=(a===n?-1:1)*ep((o*o*(s*s)-o*o*(c*c)-s*s*(p*p))/(o*o*(c*c)+s*s*(p*p)))||0,d=m*o*c/s,g=m*-s*p/o,y=(r+e)/2+cu(h)*d-hu(h)*g,_=(t+i)/2+hu(h)*d+cu(h)*g,x=n0([1,0],[(p-d)/o,(c-g)/s]),w=[(p-d)/o,(c-g)/s],S=[(-1*p-d)/o,(-1*c-g)/s],T=n0(w,S);if(rp(w,S)<=-1&&(T=ls),rp(w,S)>=1&&(T=0),T<0){var M=Math.round(T/ls*1e6)/1e6;T=ls*2+M%2*ls}f.addData(u,y,_,o,s,x,T,h,n)}var CD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,DD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function AD(r){var t=new ye;if(!r)return t;var e=0,i=0,a=e,n=i,o,s=ye.CMD,l=r.match(CD);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),p=void 0,c=f.match(DD)||[],v=c.length,m=0;m<v;m++)c[m]=parseFloat(c[m]);for(var d=0;d<v;){var g=void 0,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0,T=void 0,M=e,D=i,A=void 0,C=void 0;switch(h){case"l":e+=c[d++],i+=c[d++],p=s.L,t.addData(p,e,i);break;case"L":e=c[d++],i=c[d++],p=s.L,t.addData(p,e,i);break;case"m":e+=c[d++],i+=c[d++],p=s.M,t.addData(p,e,i),a=e,n=i,h="l";break;case"M":e=c[d++],i=c[d++],p=s.M,t.addData(p,e,i),a=e,n=i,h="L";break;case"h":e+=c[d++],p=s.L,t.addData(p,e,i);break;case"H":e=c[d++],p=s.L,t.addData(p,e,i);break;case"v":i+=c[d++],p=s.L,t.addData(p,e,i);break;case"V":i=c[d++],p=s.L,t.addData(p,e,i);break;case"C":p=s.C,t.addData(p,c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),e=c[d-2],i=c[d-1];break;case"c":p=s.C,t.addData(p,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i),e+=c[d-2],i+=c[d-1];break;case"S":g=e,y=i,A=t.len(),C=t.data,o===s.C&&(g+=e-C[A-4],y+=i-C[A-3]),p=s.C,M=c[d++],D=c[d++],e=c[d++],i=c[d++],t.addData(p,g,y,M,D,e,i);break;case"s":g=e,y=i,A=t.len(),C=t.data,o===s.C&&(g+=e-C[A-4],y+=i-C[A-3]),p=s.C,M=e+c[d++],D=i+c[d++],e+=c[d++],i+=c[d++],t.addData(p,g,y,M,D,e,i);break;case"Q":M=c[d++],D=c[d++],e=c[d++],i=c[d++],p=s.Q,t.addData(p,M,D,e,i);break;case"q":M=c[d++]+e,D=c[d++]+i,e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,M,D,e,i);break;case"T":g=e,y=i,A=t.len(),C=t.data,o===s.Q&&(g+=e-C[A-4],y+=i-C[A-3]),e=c[d++],i=c[d++],p=s.Q,t.addData(p,g,y,e,i);break;case"t":g=e,y=i,A=t.len(),C=t.data,o===s.Q&&(g+=e-C[A-4],y+=i-C[A-3]),e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,g,y,e,i);break;case"A":_=c[d++],x=c[d++],w=c[d++],S=c[d++],T=c[d++],M=e,D=i,e=c[d++],i=c[d++],p=s.A,o0(M,D,e,i,S,T,_,x,w,p,t);break;case"a":_=c[d++],x=c[d++],w=c[d++],S=c[d++],T=c[d++],M=e,D=i,e+=c[d++],i+=c[d++],p=s.A,o0(M,D,e,i,S,T,_,x,w,p,t);break}}(h==="z"||h==="Z")&&(p=s.Z,t.addData(p),e=a,i=n),o=p}return t.toStatic(),t}var s0=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(at);function l0(r){return r.setData!=null}function u0(r,t){var e=AD(r),i=N({},t);return i.buildPath=function(a){if(l0(a)){a.setData(e.data);var n=a.getContext();n&&a.rebuildPath(n,1)}else{var n=a;e.rebuildPath(n,1)}},i.applyTransform=function(a){tp(e,a),this.dirtyShape()},i}function f0(r,t){return new s0(u0(r,t))}function h0(r,t){var e=u0(r,t),i=(function(a){I(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return n})(s0);return i}function c0(r,t){for(var e=[],i=r.length,a=0;a<i;a++){var n=r[a];e.push(n.getUpdatedPathProxy(!0))}var o=new at(t);return o.createPathProxy(),o.buildPath=function(s){if(l0(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var LD=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var p0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LD},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(at);p0.prototype.type="circle";var Pa=p0;var ID=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var v0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ID},t.prototype.buildPath=function(e,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;e.moveTo(n-s,o),e.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),e.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),e.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),e.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),e.closePath()},t})(at);v0.prototype.type="ellipse";var us=v0;var m0=Math.PI,ip=m0*2,Ra=Math.sin,Fn=Math.cos,PD=Math.acos,he=Math.atan2,d0=Math.abs,hs=Math.sqrt,fs=Math.max,kr=Math.min,_r=1e-4;function RD(r,t,e,i,a,n,o,s){var l=e-r,u=i-t,f=o-a,h=s-n,p=h*l-f*u;if(!(p*p<_r))return p=(f*(t-n)-h*(r-a))/p,[r+p*l,t+p*u]}function pu(r,t,e,i,a,n,o){var s=r-e,l=t-i,u=(o?n:-n)/hs(s*s+l*l),f=u*l,h=-u*s,p=r+f,c=t+h,v=e+f,m=i+h,d=(p+v)/2,g=(c+m)/2,y=v-p,_=m-c,x=y*y+_*_,w=a-n,S=p*m-v*c,T=(_<0?-1:1)*hs(fs(0,w*w*x-S*S)),M=(S*_-y*T)/x,D=(-S*y-_*T)/x,A=(S*_+y*T)/x,C=(-S*y+_*T)/x,E=M-d,L=D-g,P=A-d,R=C-g;return E*E+L*L>P*P+R*R&&(M=A,D=C),{cx:M,cy:D,x0:-f,y0:-h,x1:M*(a/w-1),y1:D*(a/w-1)}}function OD(r){var t;if(O(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function g0(r,t){var e,i=fs(t.r,0),a=fs(t.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,p=!!t.clockwise,c=d0(u-l),v=c>ip&&c%ip;if(v>_r&&(c=v),!(i>_r))r.moveTo(f,h);else if(c>ip-_r)r.moveTo(f+i*Fn(l),h+i*Ra(l)),r.arc(f,h,i,l,u,!p),a>_r&&(r.moveTo(f+a*Fn(u),h+a*Ra(u)),r.arc(f,h,a,u,l,p));else{var m=void 0,d=void 0,g=void 0,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0,T=void 0,M=void 0,D=void 0,A=void 0,C=void 0,E=void 0,L=void 0,P=void 0,R=i*Fn(l),z=i*Ra(l),Z=a*Fn(u),V=a*Ra(u),B=c>_r;if(B){var X=t.cornerRadius;X&&(e=OD(X),m=e[0],d=e[1],g=e[2],y=e[3]);var Q=d0(i-a)/2;if(_=kr(Q,g),x=kr(Q,y),w=kr(Q,m),S=kr(Q,d),D=T=fs(_,x),A=M=fs(w,S),(T>_r||M>_r)&&(C=i*Fn(u),E=i*Ra(u),L=a*Fn(l),P=a*Ra(l),c<m0)){var $=RD(R,z,L,P,C,E,Z,V);if($){var mt=R-$[0],xt=z-$[1],jt=C-$[0],Tt=E-$[1],Te=1/Ra(PD((mt*jt+xt*Tt)/(hs(mt*mt+xt*xt)*hs(jt*jt+Tt*Tt)))/2),Ne=hs($[0]*$[0]+$[1]*$[1]);D=kr(T,(i-Ne)/(Te+1)),A=kr(M,(a-Ne)/(Te-1))}}}if(!B)r.moveTo(f+R,h+z);else if(D>_r){var le=kr(g,D),Rt=kr(y,D),ot=pu(L,P,R,z,i,le,p),dt=pu(C,E,Z,V,i,Rt,p);r.moveTo(f+ot.cx+ot.x0,h+ot.cy+ot.y0),D<T&&le===Rt?r.arc(f+ot.cx,h+ot.cy,D,he(ot.y0,ot.x0),he(dt.y0,dt.x0),!p):(le>0&&r.arc(f+ot.cx,h+ot.cy,le,he(ot.y0,ot.x0),he(ot.y1,ot.x1),!p),r.arc(f,h,i,he(ot.cy+ot.y1,ot.cx+ot.x1),he(dt.cy+dt.y1,dt.cx+dt.x1),!p),Rt>0&&r.arc(f+dt.cx,h+dt.cy,Rt,he(dt.y1,dt.x1),he(dt.y0,dt.x0),!p))}else r.moveTo(f+R,h+z),r.arc(f,h,i,l,u,!p);if(!(a>_r)||!B)r.lineTo(f+Z,h+V);else if(A>_r){var le=kr(m,A),Rt=kr(d,A),ot=pu(Z,V,C,E,a,-Rt,p),dt=pu(R,z,L,P,a,-le,p);r.lineTo(f+ot.cx+ot.x0,h+ot.cy+ot.y0),A<M&&le===Rt?r.arc(f+ot.cx,h+ot.cy,A,he(ot.y0,ot.x0),he(dt.y0,dt.x0),!p):(Rt>0&&r.arc(f+ot.cx,h+ot.cy,Rt,he(ot.y0,ot.x0),he(ot.y1,ot.x1),!p),r.arc(f,h,a,he(ot.cy+ot.y1,ot.cx+ot.x1),he(dt.cy+dt.y1,dt.cx+dt.x1),p),le>0&&r.arc(f+dt.cx,h+dt.cy,le,he(dt.y1,dt.x1),he(dt.y0,dt.x0),!p))}else r.lineTo(f+Z,h+V),r.arc(f,h,a,u,l,p)}r.closePath()}}}var zD=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var y0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zD},t.prototype.buildPath=function(e,i){g0(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(at);y0.prototype.type="sector";var Ue=y0;var kD=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var _0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kD},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.PI*2;e.moveTo(a+i.r,n),e.arc(a,n,i.r,0,o,!1),e.moveTo(a+i.r0,n),e.arc(a,n,i.r0,0,o,!0)},t})(at);_0.prototype.type="ring";var cs=_0;function ap(r,t,e,i){var a=[],n=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,c=r.length;p<c;p++)Xe(f,f,r[p]),qe(h,h,r[p]);Xe(f,f,i[0]),qe(h,h,i[1])}for(var p=0,c=r.length;p<c;p++){var v=r[p];if(e)l=r[p?p-1:c-1],u=r[(p+1)%c];else if(p===0||p===c-1){a.push(Th(r[p]));continue}else l=r[p-1],u=r[p+1];Mh(n,u,l),Ao(n,n,t);var m=Eo(v,l),d=Eo(v,u),g=m+d;g!==0&&(m/=g,d/=g),Ao(o,n,-m),Ao(s,n,d);var y=Sl([],v,o),_=Sl([],v,s);i&&(qe(y,y,f),Xe(y,y,h),qe(_,_,f),Xe(_,_,h)),a.push(y),a.push(_)}return e&&a.push(a.shift()),a}function vu(r,t,e){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var n=ap(a,i,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var UD=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var S0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new UD},t.prototype.buildPath=function(e,i){vu(e,i,!0)},t})(at);S0.prototype.type="polygon";var ii=S0;var VD=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var b0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VD},t.prototype.buildPath=function(e,i){vu(e,i,!1)},t})(at);b0.prototype.type="polyline";var xr=b0;var BD={},FD=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var w0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FD},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=au(BD,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(at);w0.prototype.type="line";var Ve=w0;var Ie=[],HD=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function T0(r,t,e){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(e?Fh:At)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Fh:At)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Hh:Yt)(r.x1,r.cpx1,r.x2,t),(e?Hh:Yt)(r.y1,r.cpy1,r.y2,t)]}var M0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HD},t.prototype.buildPath=function(e,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(e.moveTo(a,n),f==null||h==null?(p<1&&(Sn(a,l,o,p,Ie),l=Ie[1],o=Ie[2],Sn(n,u,s,p,Ie),u=Ie[1],s=Ie[2]),e.quadraticCurveTo(l,u,o,s)):(p<1&&(xn(a,l,f,o,p,Ie),l=Ie[1],f=Ie[2],o=Ie[3],xn(n,u,h,s,p,Ie),u=Ie[1],h=Ie[2],s=Ie[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return T0(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=T0(this.shape,e,!0);return Ah(i,i)},t})(at);M0.prototype.type="bezier-curve";var ps=M0;var GD=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var C0=(function(r){I(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GD},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+a,h*o+n),e.arc(a,n,o,s,l,!u)},t})(at);C0.prototype.type="arc";var Oa=C0;var WD=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),a=0;a<e.length;a++)i=i||e[a].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(i[0],i[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(e,a[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),at.prototype.getBoundingRect.call(this)},t})(at),du=WD;var YD=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),mu=YD;var ZD=(function(r){I(t,r);function t(e,i,a,n,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return t})(mu),Li=ZD;var XD=(function(r){I(t,r);function t(e,i,a,n,o){var s=r.call(this,n)||this;return s.x=e??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t})(mu),gu=XD;var Na=[0,0],za=[0,0],yu=new rt,_u=new rt,qD=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new rt;for(var i=0;i<2;i++)this._axes[i]=new rt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,a=this._axes,n=t.x,o=t.y,s=n+t.width,l=o+t.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),e)for(var u=0;u<4;u++)i[u].transform(e);rt.sub(a[0],i[1],i[0]),rt.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,a=!e;return yu.set(1/0,1/0),_u.set(0,0),!this._intersectCheckOneSide(this,t,yu,_u,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,yu,_u,a,-1)&&(i=!1,a)||a||rt.copy(e,i?yu:_u),i},r.prototype._intersectCheckOneSide=function(t,e,i,a,n,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Na),this._getProjMinMaxOnAxis(l,e._corners,za),Na[1]<za[0]||Na[0]>za[1]){if(s=!1,n)return s;var f=Math.abs(za[0]-Na[1]),h=Math.abs(Na[0]-za[1]);Math.min(f,h)>a.len()&&(f<h?rt.scale(a,u,-f*o):rt.scale(a,u,h*o))}else if(i){var f=Math.abs(za[0]-Na[1]),h=Math.abs(Na[0]-za[1]);Math.min(f,h)<i.len()&&(f<h?rt.scale(i,u,f*o):rt.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var a=this._axes[t],n=this._origin,o=e[0].dot(a)+n[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+n[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r})(),Hn=qD;var KD=[],jD=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(KD)),e.union(n)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(Rr),xu=jD;var QD=ht();function $D(r,t,e,i,a){var n;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();n=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=et(i.duration,200),f=et(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(h=n.delay)),G(h)&&(h=h(e,a)),G(u)&&(u=u(e));var p={duration:u||0,delay:h,easing:f};return p}else return null}function np(r,t,e,i,a,n,o){var s=!1,l;G(a)?(o=n,n=a,a=null):F(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=$D(r,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var h=f.duration,p=f.delay,c=f.easing,v={duration:h,delay:p||0,easing:c,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),n&&n()}function Ct(r,t,e,i,a,n){np("update",r,t,e,i,a,n)}function Gt(r,t,e,i,a,n){np("enter",r,t,e,i,a,n)}function ka(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Gn(r,t,e,i,a,n){ka(r)||np("leave",r,t,e,i,a,n)}function D0(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Gn(r,{style:{opacity:0}},t,e,i)}function Ua(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||D0(a,t,e,i)}):D0(r,t,e,i)}function Wn(r){QD(r).oldStyle=r.style}var Su=Math.max,bu=Math.min,sp={};function lp(r){return at.extend(r)}var JD=h0;function up(r,t){return JD(r,t)}function Be(r,t){sp[r]=t}function fp(r){if(sp.hasOwnProperty(r))return sp[r]}function Yn(r,t,e,i){var a=f0(r,t);return e&&(i==="center"&&(e=L0(e,a.getBoundingRect())),wu(a,e)),a}function vs(r,t,e){var i=new ne({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var n={width:a.width,height:a.height};i.setStyle(L0(t,n))}}});return i}function L0(r,t){var e=t.width/t.height,i=r.height*e,a;i<=r.width?a=r.height:(i=r.width,a=i/e);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var hp=c0;function wu(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Va(r,t){return au(r,r,{lineWidth:t}),r}function tA(r){return nu(r.shape,r.shape,r.style),r}var eA=Di;function ai(r,t){for(var e=Kr([]);r&&r!==t;)Ke(e,r.getLocalTransform(),e),r=r.parent;return e}function Sr(r,t,e){return t&&!Ot(t)&&(t=Zo.getLocalTransform(t)),e&&(t=jr([],t)),Nt([],r,t)}function ds(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),n=[r==="left"?-i:r==="right"?i:0,r==="top"?-a:r==="bottom"?a:0];return n=Sr(n,t,e),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function A0(r){return!r.isGroup}function rA(r){return r.shape!=null}function cp(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){A0(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rA(o)&&(s.shape=N({},o.shape)),s}var n=i(r);t.traverse(function(o){if(A0(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Ct(o,l,e,ut(o).dataIndex)}}})}function pp(r,t){return k(r,function(e){var i=e[0];i=Su(i,t.x),i=bu(i,t.x+t.width);var a=e[1];return a=Su(a,t.y),a=bu(a,t.y+t.height),[i,a]})}function vp(r,t){var e=Su(r.x,t.x),i=bu(r.x+r.width,t.x+t.width),a=Su(r.y,t.y),n=bu(r.y+r.height,t.y+t.height);if(i>=e&&n>=a)return{x:e,y:a,width:i-e,height:n-a}}function Ba(r,t,e){var i=N({rectHover:!0},t),a=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),K(a,e),new ne(i)):Yn(r.replace("path://",""),i,e,"center")}function iA(r,t,e,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(I0(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function I0(r,t,e,i,a,n,o,s){var l=e-r,u=i-t,f=o-a,h=s-n,p=op(f,h,l,u);if(aA(p))return!1;var c=r-a,v=t-n,m=op(c,v,l,u)/p;if(m<0||m>1)return!1;var d=op(c,v,f,h)/p;return!(d<0||d>1)}function op(r,t,e,i){return r*i-e*t}function aA(r){return r<=1e-6&&r>=-1e-6}function ms(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,a=U(t)?{formatter:t}:t,n=e.mainType,o=e.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&b(lt(l),function(f){Ze(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:K({content:i,encodeHTMLContent:!0,formatterParams:s},a)}}function E0(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ni(r,t){if(r)if(O(r))for(var e=0;e<r.length;e++)E0(r[e],t);else E0(r,t)}Be("circle",Pa);Be("ellipse",us);Be("sector",Ue);Be("ring",cs);Be("polygon",ii);Be("polyline",xr);Be("rect",st);Be("line",Ve);Be("bezierCurve",ps);Be("arc",Oa);var Tu={};function nA(r,t){for(var e=0;e<xe.length;e++){var i=xe[e],a=t[i],n=r.ensureState(i);n.style=n.style||{},n.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function P0(r,t,e){var i=r.labelFetcher,a=r.labelDataIndex,n=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=G(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<xe.length;u++){var f=xe[u],h=t[f];l[f]=et(i?i.getFormattedLabel(a,f,null,n,h&&h.get("formatter")):null,s)}return l}function ar(r,t,e,i){e=e||Tu;for(var a=r instanceof vt,n=!1,o=0;o<kn.length;o++){var s=t[kn[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new vt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=P0(e,t),f=t.normal,h=!!f.getShallow("show"),p=Zt(f,i&&i.normal,e,!1,!a);p.text=u.normal,a||r.setTextConfig(R0(f,e,!1));for(var o=0;o<xe.length;o++){var c=xe[o],s=t[c];if(s){var v=l.ensureState(c),m=!!et(s.getShallow("show"),h);if(m!==h&&(v.ignore=!m),v.style=Zt(s,i&&i[c],e,!0,!a),v.style.text=u[c],!a){var d=r.ensureState(c);d.textConfig=R0(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),e.enableTextSetter&&(Zn(l).setLabelText=function(g){var y=P0(e,t,g);nA(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Fe(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<xe.length;i++){var a=xe[i];e[a]=r.getModel([a,t])}return e}function Zt(r,t,e,i,a){var n={};return oA(n,r,e,i,a),t&&N(n,t),n}function R0(r,t,e){t=t||{};var i={},a,n=r.getShallow("rotate"),o=et(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function oA(r,t,e,i,a){e=e||Tu;var n=t.ecModel,o=n&&n.option.textStyle,s=sA(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);k0(l[u]={},f,o,e,i,a,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var p=t.get("minMargin");p!=null&&(r.margin=p),k0(r,t,o,e,i,a,!0,!1)}function sA(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Tu).rich;if(e){t=t||{};for(var i=lt(e),a=0;a<i.length;a++){var n=i[a];t[n]=1}}r=r.parentModel}return t}var O0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],N0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],z0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function k0(r,t,e,i,a,n,o,s){e=!a&&e||Tu;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=et(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),n||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var p=et(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(r.lineWidth=p);var c=et(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var v=et(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);v!=null&&(r.lineDashOffset=v),!a&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!a&&!n&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var m=0;m<O0.length;m++){var d=O0[m],g=et(t.getShallow(d),e[d]);g!=null&&(r[d]=g)}for(var m=0;m<N0.length;m++){var d=N0[m],g=t.getShallow(d);g!=null&&(r[d]=g)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!i.disableBox){for(var m=0;m<z0.length;m++){var d=z0[m],g=t.getShallow(d);g!=null&&(r[d]=g)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function U0(r,t){var e=t&&t.getModel("textStyle");return te([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Zn=ht();function V0(r,t,e,i){if(r){var a=Zn(r);a.prevValue=a.value,a.value=e;var n=t.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=t)}}var lA=["textStyle","color"],dp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mp=new vt,uA=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(lA):null)},r.prototype.getFont=function(){return U0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<dp.length;i++)e[dp[i]]=this.getShallow(dp[i]);return mp.useStyle(e),mp.update(),mp.getBoundingRect()},r})(),B0=uA;var gp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],fA=Ir(gp),F0=(function(){function r(){}return r.prototype.getLineStyle=function(t){return fA(this,t)},r})();var yp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],hA=Ir(yp),H0=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return hA(this,t,e)},r})();var Fa=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){for(var a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},r.prototype.mergeOption=function(t,e){tt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,a=i==null?i:i[t];if(a==null&&!e){var n=this.parentModel;n&&(a=n.getShallow(t))}return a},r.prototype.getModel=function(t,e){var i=t!=null,a=i?this.parsePath(t):null,n=i?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(n,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Y(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!j.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var a=0;a<t.length&&!(t[a]&&(i=i&&typeof i=="object"?i[t[a]]:null,i==null));a++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();Rn(Fa);ty(Fa);Jt(Fa,F0);Jt(Fa,H0);Jt(Fa,ey);Jt(Fa,B0);var _t=Fa;var cA=Math.round(Math.random()*10);function Ii(r){return[r||"",cA++].join("_")}function G0(r){var t={};r.registerSubTypeDefaulter=function(e,i){var a=Le(e);t[a.main]=i},r.determineSubType=function(e,i){var a=i.type;if(!a){var n=Le(e).main;r.hasSubTypes(e)&&t[n]&&(a=t[n](i))}return a}}function W0(r,t){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=e(o),f=u.graph,h=u.noEntryList,p={};for(b(n,function(y){p[y]=!0});h.length;){var c=h.pop(),v=f[c],m=!!p[c];m&&(s.call(l,c,v.originalDeps.slice()),delete p[c]),b(v.successor,m?g:d)}b(p,function(){var y="";throw new Error(y)});function d(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){p[y]=!0,d(y)}};function e(n){var o={},s=[];return b(n,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=a(f,n);u.entryCount=h.length,u.entryCount===0&&s.push(l),b(h,function(p){it(u.predecessor,p)<0&&u.predecessor.push(p);var c=i(o,p);it(c.successor,p)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return b(n,function(l){it(o,l)>=0&&s.push(l)}),s}}function nr(r,t){return tt(tt({},r,!0),t,!0)}var Y0={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:". "}}}};var Z0={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 Cu="ZH",xp="EN",Xn=xp,Mu={},Sp={},Du=j.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Xn).toUpperCase();return r.indexOf(Cu)>-1?Cu:Xn})():Xn;function Au(r,t){r=r.toUpperCase(),Sp[r]=new _t(t),Mu[r]=t}function X0(r){if(U(r)){var t=Mu[r.toUpperCase()]||{};return r===Cu||r===xp?Y(t):tt(Y(t),Y(Mu[Xn]),!1)}else return tt(Y(r),Y(Mu[Xn]),!1)}function q0(r){return Sp[r]}function K0(){return Sp[Xn]}Au(xp,Y0);Au(Cu,Z0);var Lu=1e3,Iu=Lu*60,Kn=Iu*60,He=Kn*24,wp=He*365,gs={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}"},Eu="{yyyy}-{MM}-{dd}",Tp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Eu,hour:Eu+" "+gs.hour,minute:Eu+" "+gs.minute,second:Eu+" "+gs.second,millisecond:gs.none},bp=["year","month","day","hour","minute","second","millisecond"],Mp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ce(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ga(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function j0(r){return r===Ga(r)}function Q0(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oi(r,t,e,i){var a=ie(r),n=a[Pu(e)](),o=a[Ha(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ys(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[qn(e)](),h=(f-1)%12+1,p=a[_s(e)](),c=a[xs(e)](),v=a[Ss(e)](),m=f>=12?"pm":"am",d=m.toUpperCase(),g=i instanceof _t?i:q0(i||Du)||K0(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),w=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,ce(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ce(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ce(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ce(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ce(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ce(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ce(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ce(v,3)).replace(/{S}/g,v+"")}function $0(r,t,e,i,a){var n=null;if(U(e))n=e;else if(G(e))n=e(r.value,t,{level:r.level});else{var o=N({},gs);if(r.level>0)for(var s=0;s<bp.length;++s)o[bp[s]]="{primary|"+o[bp[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=J0(r.value,a);if(l[u])n=l[u];else if(l.inherit){for(var f=Mp.indexOf(u),s=f-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(O(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return oi(new Date(r.value),n,a,i)}function J0(r,t){var e=ie(r),i=e[Ha(t)]()+1,a=e[ys(t)](),n=e[qn(t)](),o=e[_s(t)](),s=e[xs(t)](),l=e[Ss(t)](),u=l===0,f=u&&s===0,h=f&&o===0,p=h&&n===0,c=p&&a===1,v=c&&i===1;return v?"year":c?"month":p?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Cp(r,t,e){var i=nt(r)?ie(r):r;switch(t=t||J0(r,e),t){case"year":return i[Pu(e)]();case"half-year":return i[Ha(e)]()>=6?1:0;case"quarter":return Math.floor((i[Ha(e)]()+1)/4);case"month":return i[Ha(e)]();case"day":return i[ys(e)]();case"half-day":return i[qn(e)]()/24;case"hour":return i[qn(e)]();case"minute":return i[_s(e)]();case"second":return i[xs(e)]();case"millisecond":return i[Ss(e)]()}}function Pu(r){return r?"getUTCFullYear":"getFullYear"}function Ha(r){return r?"getUTCMonth":"getMonth"}function ys(r){return r?"getUTCDate":"getDate"}function qn(r){return r?"getUTCHours":"getHours"}function _s(r){return r?"getUTCMinutes":"getMinutes"}function xs(r){return r?"getUTCSeconds":"getSeconds"}function Ss(r){return r?"getUTCMilliseconds":"getMilliseconds"}function t_(r){return r?"setUTCFullYear":"setFullYear"}function Dp(r){return r?"setUTCMonth":"setMonth"}function Ap(r){return r?"setUTCDate":"setDate"}function Ep(r){return r?"setUTCHours":"setHours"}function Lp(r){return r?"setUTCMinutes":"setMinutes"}function Ip(r){return r?"setUTCSeconds":"setSeconds"}function Pp(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Rp(r,t,e,i,a,n,o,s){var l=new vt({style:{text:r,font:t,align:e,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function bs(r){if(!Ko(r))return U(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function jn(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var or=Co;function Ru(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&te(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ie(r):r;if(isNaN(+l)){if(s)return"-"}else return oi(l,i,e)}if(t==="ordinal")return vn(r)?a(r):nt(r)&&n(r)?r+"":"-";var u=$e(r);return n(u)?bs(u):vn(r)?a(r):typeof r=="boolean"?r+"":"-"}var e_=["a","b","c","d","e","f","g"],Op=function(r,t){return"{"+r+(t??"")+"}"};function Qn(r,t,e){O(t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],n=0;n<a.length;n++){var o=e_[n];r=r.replace(Op(o),Op(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(Op(e_[l],s),e?ee(u):u)}return r}function Ou(r,t){var e=U(r)?{color:r,extraCssText:t}:r||{},i=e.color,a=e.type;t=e.extraCssText;var n=e.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ee(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ee(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function r_(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var i=ie(t),a=e?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),h=i[a+"Milliseconds"]();return r=r.replace("MM",ce(o,2)).replace("M",o).replace("yyyy",n).replace("yy",ce(n%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(f,2)).replace("s",f).replace("SSS",ce(h,3)),r}function i_(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function br(r,t){return t=t||"transparent",U(r)?r:F(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var zu=b,pA=["left","right","top","bottom","width","height"],Nu=[["width","left","right"],["height","top","bottom"]];function Np(r,t,e,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),c,v;if(r==="horizontal"){var m=f.width+(p?-p.x+f.x:0);c=n+m,c>i||l.newline?(n=0,c=m,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>a||l.newline?(n+=s+e,o=0,v=d,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+e:o=v+e)})}var si=Np,_V=ct(Np,"vertical"),xV=ct(Np,"horizontal");function pe(r,t,e){e=or(e||0);var i=t.width,a=t.height,n=yt(r.left,i),o=yt(r.top,a),s=yt(r.right,i),l=yt(r.bottom,a),u=yt(r.width,i),f=yt(r.height,a),h=e[2]+e[0],p=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-p-n),isNaN(f)&&(f=a-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(n)&&(n=i-s-u-p),isNaN(o)&&(o=a-l-f-h),r.left||r.right){case"center":n=i/2-u/2-e[3];break;case"right":n=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-h;break}n=n||0,o=o||0,isNaN(u)&&(u=i-p-n-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var v=new J(n+e[3],o+e[0],u,f);return v.margin=e,v}function a_(r,t,e,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new J(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=pe(K({width:u.width,height:u.height},t),e,i),p=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(n.x=p,n.y=c):(n.x+=p,n.y+=c),n===r&&r.markRedraw(),!0}function Pi(r){var t=r.layoutMode||r.constructor.layoutMode;return F(t)?t:t?{type:t}:null}function Ur(r,t,e){var i=e&&e.ignoreSize;!O(i)&&(i=[i,i]);var a=o(Nu[0],0),n=o(Nu[1],1);u(Nu[0],r,a),u(Nu[1],r,n);function o(f,h){var p={},c=0,v={},m=0,d=2;if(zu(f,function(_){v[_]=r[_]}),zu(f,function(_){s(t,_)&&(p[_]=v[_]=t[_]),l(p,_)&&c++,l(v,_)&&m++}),i[h])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(m===d||!c)return v;if(c>=d)return p;for(var g=0;g<f.length;g++){var y=f[g];if(!s(p,y)&&s(r,y)){p[y]=r[y];break}}return p}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,p){zu(f,function(c){h[c]=p[c]})}}function Vr(r){return vA({},r)}function vA(r,t){return t&&r&&zu(pA,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var dA=ht(),$n=(function(r){I(t,r);function t(e,i,a){var n=r.call(this,e,i,a)||this;return n.uid=Ii("ec_cpt_model"),n}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,i){var a=Pi(this),n=a?Vr(e):{},o=i.getTheme();tt(e,o.get(this.mainType)),tt(e,this.getDefaultOption()),a&&Ur(e,n,a)},t.prototype.mergeOption=function(e,i){tt(this.option,e,!0);var a=Pi(this);a&&Ur(this.option,e,a)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Jg(e))return e.defaultOption;var i=dA(this);if(!i.defaultOption){for(var a=[],n=e;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=tt(s,a[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var a=e+"Index",n=e+"Id";return bi(this.ecModel,e,{index:this.get(a,!0),id:this.get(n,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(_t);Jl($n,_t);wi($n);G0($n);W0($n,mA);function mA(r){var t=[];return b($n.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=k(t,function(e){return Le(e).main}),r!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var pt=$n;var n_="";typeof navigator<"u"&&(n_=navigator.platform||"");var Jn="rgba(0, 0, 0, 0.2)",o_={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:n_.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 ku=W(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),oe="original",se="arrayRows",Se="objectRows",Ge="keyedColumns",We="typedArray",zp="unknown",sr="column",li="row";var Xt={Must:1,Might:2,Not:3},s_=ht();function l_(r){s_(r).datasetMap=W()}function u_(r,t,e){var i={},a=Uu(t);if(!a||!r)return i;var n=[],o=[],s=t.ecModel,l=s_(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),b(r,function(m,d){var g=F(m)?m:r[d]={name:m};g.type==="ordinal"&&f==null&&(f=d,h=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});b(r,function(m,d){var g=m.name,y=v(m);if(f==null){var _=p.valueWayDim;c(i[g],_,y),c(o,_,y),p.valueWayDim+=y}else if(f===d)c(i[g],0,y),c(n,0,y);else{var _=p.categoryWayDim;c(i[g],_,y),c(o,_,y),p.categoryWayDim+=y}});function c(m,d,g){for(var y=0;y<g;y++)m.push(d+y)}function v(m){var d=m.dimsDef;return d?d.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function f_(r,t,e){var i={},a=Uu(r);if(!a)return i;var n=t.sourceFormat,o=t.dimensionsDefine,s;(n===Se||n===Ge)&&b(o,function(f,h){(F(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},p=[],c=0,v=Math.min(5,e);c<v;c++){var m=c_(t.data,n,t.seriesLayoutBy,o,t.startIndex,c);p.push(m);var d=m===Xt.Not;if(d&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!d&&p[f.n]===Xt.Not)&&(f.n=c),g(f)&&p[f.n]!==Xt.Not)return f;d||(m===Xt.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Uu(r){var t=r.get("data",!0);if(!t)return bi(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function h_(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:bi(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function Vu(r,t){return c_(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function c_(r,t,e,i,a,n){var o,s=5;if(Et(r))return Xt.Not;var l,u;if(i){var f=i[n];F(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?Xt.Must:Xt.Not;if(t===se){var h=r;if(e===li){for(var p=h[n],c=0;c<(p||[]).length&&c<s;c++)if((o=x(p[a+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var v=h[a+c];if(v&&(o=x(v[n]))!=null)return o}}else if(t===Se){var m=r;if(!l)return Xt.Not;for(var c=0;c<m.length&&c<s;c++){var d=m[c];if(d&&(o=x(d[l]))!=null)return o}}else if(t===Ge){var g=r;if(!l)return Xt.Not;var p=g[l];if(!p||Et(p))return Xt.Not;for(var c=0;c<p.length&&c<s;c++)if((o=x(p[c]))!=null)return o}else if(t===oe)for(var y=r,c=0;c<y.length&&c<s;c++){var d=y[c],_=ti(d);if(!O(_))return Xt.Not;if((o=x(_[n]))!=null)return o}function x(w){var S=U(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?Xt.Might:Xt.Not;if(S&&w!=="-")return Xt.Must}return Xt.Not}var gA=W();function p_(r,t,e){var i=gA.get(t);if(!i)return e;var a=i(r);if(!a)return e;if(0)for(var n;n<a.length;n++);return e.concat(a)}var v_=ht(),zV=ht(),Ts=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var a=wt(this.get("color",!0)),n=this.get("colorLayer",!0);return _A(this,v_,a,n,t,e,i)},r.prototype.clearColorPalette=function(){xA(this,v_)},r})();function yA(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function _A(r,t,e,i,a,n,o){n=n||r;var s=t(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?e:yA(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function xA(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Bu,Ms,d_,m_="\0_ec_inner",SA=1;var x_=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,a,n,o,s){n=n||{},this.option=null,this._theme=new _t(n),this._locale=new _t(o),this._optionManager=s},t.prototype.setOption=function(e,i,a){var n=__(i);this._optionManager.setOption(e,a,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,i){return this._resetOption(e,__(i))},t.prototype._resetOption=function(e,i){var a=!1,n=this._optionManager;if(!e||e==="recreate"){var o=n.mountOption(e==="recreate");!this.option||e==="recreate"?d_(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=n.getMediaOption(this);l.length&&b(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=i&&i.replaceMergeMainTypeMap;l_(this),b(e,function(h,p){h!=null&&(pt.hasClass(p)?p&&(s.push(p),l.set(p,!0)):a[p]=a[p]==null?Y(h):tt(a[p],h,!0))}),u&&u.each(function(h,p){pt.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),pt.topologicalTravel(s,pt.getAllClassMainTypes(),f,this);function f(h){var p=p_(this,h,wt(e[h])),c=n.get(h),v=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=Yg(c,p,v);Xg(m,h,pt),a[h]=null,n.set(h,null),o.set(h,0);var d=[],g=[],y=0,_,x;b(m,function(w,S){var T=w.existing,M=w.newOption;if(!M)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=h==="series",A=pt.getClass(h,w.keyInfo.subType,!D);if(!A){if(0)var C,E;return}if(h==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===A)T.name=w.keyInfo.name,T.mergeOption(M,this),T.optionUpdated(M,!1);else{var L=N({componentIndex:S},w.keyInfo);T=new A(M,this,this,L),N(T,L),w.brandNew&&(T.__requireNewView=!0),T.init(M,this,this),T.optionUpdated(null,!0)}}T?(d.push(T.option),g.push(T),y++):(d.push(void 0),g.push(void 0))},this),a[h]=d,n.set(h,g),o.set(h,y),h==="series"&&Bu(this)}this._seriesIndices||Bu(this)},t.prototype.getOption=function(){var e=Y(this.option);return b(e,function(i,a){if(pt.hasClass(a)){for(var n=wt(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!In(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,e[a]=n}}),delete e[m_],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var a=this._componentsMap.get(e);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var a=e.index,n=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],b(wt(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=g_("id",n,s):o!=null?l=g_("name",o,s):l=Mt(s,function(u){return!!u}),y_(l,e)},t.prototype.findComponents=function(e){var i=e.query,a=e.mainType,n=s(i),o=n?this.queryComponents(n):Mt(this._componentsMap.get(a),function(u){return!!u});return l(y_(o,e));function s(u){var f=a+"Index",h=a+"Id",p=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[p]!=null)?{mainType:a,index:u[f],id:u[h],name:u[p]}:null}function l(u){return e.filter?Mt(u,e.filter):u}},t.prototype.eachComponent=function(e,i,a){var n=this._componentsMap;if(G(e)){var o=i,s=e;n.each(function(h,p){for(var c=0;h&&c<h.length;c++){var v=h[c];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=U(e)?n.get(e):F(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Ee(e,null);return Mt(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Mt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Mt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Ms(this),b(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];e.call(i,n,a)},this)},t.prototype.eachRawSeries=function(e,i){b(this._componentsMap.get("series"),function(a){a&&e.call(i,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,a){Ms(this),b(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===e&&i.call(a,o,n)},this)},t.prototype.eachRawSeriesByType=function(e,i,a){return b(this.getSeriesByType(e),i,a)},t.prototype.isSeriesFiltered=function(e){return Ms(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Ms(this);var a=[];b(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];e.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=W(a)},t.prototype.restoreData=function(e){Bu(this);var i=this._componentsMap,a=[];i.each(function(n,o){pt.hasClass(o)&&a.push(o)}),pt.topologicalTravel(a,pt.getAllClassMainTypes(),function(n){b(i.get(n),function(o){o&&(n!=="series"||!bA(o,e))&&o.restoreData()})})},t.internalField=(function(){Bu=function(e){var i=e._seriesIndices=[];b(e._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),e._seriesIndicesMap=W(i)},Ms=function(e){},d_=function(e,i){e.option={},e.option[m_]=SA,e._componentsMap=W({series:[]}),e._componentsCount=W();var a=i.aria;F(a)&&a.enabled==null&&(a.enabled=!0),wA(i,e._theme.option),tt(i,o_,!1),e._mergeOption(i,null)}})(),t})(_t);function bA(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||a!=null&&r.name!==a}}function wA(r,t){var e=r.color&&!r.colorLayer;b(t,function(i,a){a==="colorLayer"&&e||pt.hasClass(a)||(typeof i=="object"?r[a]=r[a]?tt(r[a],i,!1):Y(i):r[a]==null&&(r[a]=i))})}function g_(r,t,e){if(O(t)){var i=W();return b(t,function(n){if(n!=null){var o=Ee(n,null);o!=null&&i.set(n,!0)}}),Mt(e,function(n){return n&&i.get(n[r])})}else{var a=Ee(t,null);return Mt(e,function(n){return n&&a!=null&&n[r]===a})}}function y_(r,t){return t.hasOwnProperty("subType")?Mt(r,function(e){return e&&e.subType===t.subType}):r}function __(r){var t=W();return r&&b(wt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Jt(x_,Ts);var Fu=x_;var TA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],MA=(function(){function r(t){b(TA,function(e){this[e]=H(t[e],t)},this)}return r})(),Hu=MA;var kp={},CA=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];b(kp,function(a,n){var o=a.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){b(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){kp[t]=e},r.get=function(t){return kp[t]},r})(),Ri=CA;var DA=/^(min|max)?(.+)$/,AA=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(b(wt(t.series),function(o){o&&o.data&&Et(o.data)&&ta(o.data)}),b(wt(t.dataset),function(o){o&&o.source&&Et(o.source)&&ta(o.source)})),t=Y(t);var a=this._optionBackup,n=EA(t,e,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Y(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var a=t.getComponent("timeline");a&&(e=Y(i[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)LA(a[l].query,e,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!PA(o,this._currentMediaIndices)&&(s=k(o,function(f){return Y(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function EA(r,t,e){var i=[],a,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((h||f)&&(r.options=r.media=null),n=r),f&&O(u)&&b(u,function(c){c&&c.option&&(c.query?i.push(c):a||(a=c))}),p(n),b(l,function(c){return p(c)}),b(i,function(c){return p(c.option)});function p(c){b(t,function(v){v(c,e)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function LA(r,t,e){var i={width:t,height:e,aspectratio:t/e},a=!0;return b(r,function(n,o){var s=o.match(DA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();IA(i[u],n,l)||(a=!1)}}),a}function IA(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function PA(r,t){return r.join(",")===t.join(",")}var S_=AA;var wr=b,Ds=F,b_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Up(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=b_.length;e<i;e++){var a=b_[e],n=t.normal,o=t.emphasis;n&&n[a]&&(r[a]=r[a]||{},r[a].normal?tt(r[a].normal,n[a]):r[a].normal=n[a],n[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?tt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function ve(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,a=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,K(r[t],i)):r[t]=i),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Cs(r){ve(r,"itemStyle"),ve(r,"lineStyle"),ve(r,"areaStyle"),ve(r,"label"),ve(r,"labelLine"),ve(r,"upperLabel"),ve(r,"edgeLabel")}function kt(r,t){var e=Ds(r)&&r[t],i=Ds(e)&&e.textStyle;if(i)for(var a=0,n=_c.length;a<n;a++){var o=_c[a];i.hasOwnProperty(o)&&(e[o]=i[o])}}function lr(r){r&&(Cs(r),kt(r,"label"),r.emphasis&&kt(r.emphasis,"label"))}function RA(r){if(Ds(r)){Up(r),Cs(r),kt(r,"label"),kt(r,"upperLabel"),kt(r,"edgeLabel"),r.emphasis&&(kt(r.emphasis,"label"),kt(r.emphasis,"upperLabel"),kt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Up(t),lr(t));var e=r.markLine;e&&(Up(e),lr(e));var i=r.markArea;i&&lr(i);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var n=r.links||r.edges;if(n&&!Et(n))for(var o=0;o<n.length;o++)lr(n[o]);b(r.categories,function(u){Cs(u)})}if(a&&!Et(a))for(var o=0;o<a.length;o++)lr(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)lr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)O(l[o])?(lr(l[o][0]),lr(l[o][1])):lr(l[o]);r.type==="gauge"?(kt(r,"axisLabel"),kt(r,"title"),kt(r,"detail")):r.type==="treemap"?(ve(r.breadcrumb,"itemStyle"),b(r.levels,function(u){Cs(u)})):r.type==="tree"&&Cs(r.leaves)}}function ui(r){return O(r)?r:r?[r]:[]}function w_(r){return(O(r)?r[0]:r)||{}}function Vp(r,t){wr(ui(r.series),function(i){Ds(i)&&RA(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),wr(e,function(i){wr(ui(r[i]),function(a){a&&(kt(a,"axisLabel"),kt(a.axisPointer,"label"))})}),wr(ui(r.parallel),function(i){var a=i&&i.parallelAxisDefault;kt(a,"axisLabel"),kt(a&&a.axisPointer,"label")}),wr(ui(r.calendar),function(i){ve(i,"itemStyle"),kt(i,"dayLabel"),kt(i,"monthLabel"),kt(i,"yearLabel")}),wr(ui(r.radar),function(i){kt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),wr(ui(r.geo),function(i){Ds(i)&&(lr(i),wr(ui(i.regions),function(a){lr(a)}))}),wr(ui(r.timeline),function(i){lr(i),ve(i,"label"),ve(i,"itemStyle"),ve(i,"controlStyle",!0);var a=i.data;O(a)&&b(a,function(n){F(n)&&(ve(n,"label"),ve(n,"itemStyle"))})}),wr(ui(r.toolbox),function(i){ve(i,"iconStyle"),wr(i.feature,function(a){ve(a,"iconStyle")})}),kt(w_(r.axisPointer),"label"),kt(w_(r.tooltip).axisPointer,"label")}function OA(r,t){for(var e=t.split(","),i=r,a=0;a<e.length&&(i=i&&i[e[a]],i!=null);a++);return i}function NA(r,t,e,i){for(var a=t.split(","),n=r,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=e)}function T_(r){r&&b(zA,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var zA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],kA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function As(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Bp.length;e++){var i=Bp[e][1],a=Bp[e][0];t[i]!=null&&(t[a]=t[i])}}function M_(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function C_(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function UA(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function D_(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&D_(r[e].children,t)}function Gu(r,t){Vp(r,t),r.series=wt(r.series),b(r.series,function(e){if(F(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),M_(e.label);var a=e.data;if(a&&!Et(a))for(var n=0;n<a.length;n++)M_(a[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=OA(e,"pointer.color");o!=null&&NA(e,"itemStyle.color",o)}else if(i==="bar"){As(e),As(e.backgroundStyle),As(e.emphasis);var a=e.data;if(a&&!Et(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(As(a[n]),As(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),C_(e),D_(e.data,C_)}else i==="graph"||i==="sankey"?UA(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&K(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),T_(e)}}),r.dataRange&&(r.visualMap=r.dataRange),b(kA,function(e){var i=r[e];i&&(O(i)||(i=[i]),b(i,function(a){T_(a)}))})}function Fp(r){var t=W();r.eachSeries(function(e){var i=e.get("stack");if(i){var a=t.get(i)||t.set(i,[]),n=e.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&n.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(VA)}function VA(r){b(r,function(t,e){var i=[],a=[NaN,NaN],n=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,h){var p=o.get(t.stackedDimension,h);if(isNaN(p))return a;var c,v;s?v=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var m=NaN,d=e-1;d>=0;d--){var g=r[d];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,c)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Ug(p,y),m=y;break}}}return i[0]=p,i[1]=m,i})})}var Wu=(function(){function r(t){this.data=t.data||(t.sourceFormat===Ge?{}:[]),this.sourceFormat=t.sourceFormat||zp,this.seriesLayoutBy=t.seriesLayoutBy||sr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var a=e[i];a.type==null&&Vu(this,i)===Xt.Must&&(a.type="ordinal")}}return r})();function to(r){return r instanceof Wu}function Es(r,t,e){e=e||Hp(r);var i=t.seriesLayoutBy,a=BA(r,e,i,t.sourceHeader,t.dimensions),n=new Wu({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Y(t)});return n}function eo(r){return new Wu({data:r,sourceFormat:Et(r)?We:oe})}function L_(r){return new Wu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Y(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Hp(r){var t=zp;if(Et(r))t=We;else if(O(r)){r.length===0&&(t=se);for(var e=0,i=r.length;e<i;e++){var a=r[e];if(a!=null){if(O(a)||Et(a)){t=se;break}else if(F(a)){t=Se;break}}}}else if(F(r)){for(var n in r)if(Ze(r,n)&&Ot(r[n])){t=Ge;break}}return t}function BA(r,t,e,i,a){var n,o;if(!r)return{dimensionsDefine:A_(a),startIndex:o,dimensionsDetectedCount:n};if(t===se){var s=r;i==="auto"||i==null?E_(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},e,s,10):o=nt(i)?i:i?1:0,!a&&o===1&&(a=[],E_(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),n=a?a.length:e===li?s.length:s[0]?s[0].length:null}else if(t===Se)a||(a=FA(r));else if(t===Ge)a||(a=[],b(r,function(u,f){a.push(f)}));else if(t===oe){var l=ti(r[0]);n=O(l)&&l.length||1}return{startIndex:o,dimensionsDefine:A_(a),dimensionsDetectedCount:n}}function FA(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return lt(e)}function A_(r){if(r){var t=W();return k(r,function(e,i){e=F(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=t.get(a.name);return n?a.name+="-"+n.count++:t.set(a.name,{count:1}),a})}}function E_(r,t,e,i){if(t===li)for(var a=0;a<e.length&&a<i;a++)r(e[a]?e[a][0]:null,a);else for(var n=e[0]||[],a=0;a<n.length&&a<i;a++)r(n[a],a)}function Yu(r){var t=r.sourceFormat;return t===Se||t===Ge}var Ya,Za,Xa,I_,P_,Zu=(function(){function r(t,e){var i=to(t)?t:eo(t);this._source=i;var a=this._data=i.data;i.sourceFormat===We&&(this._offset=0,this._dimSize=e,this._data=a),P_(this,a,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;P_=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,c=I_[Xp(u,f)];if(N(o,c),u===We)o.getItem=e,o.count=a,o.fillStorage=i;else{var v=Wp(u,f);o.getItem=H(v,null,s,h,p);var m=Yp(u,f);o.count=H(m,null,s,h,p)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,p=0;p<h;p++){for(var c=u[p],v=c[0]==null?1/0:c[0],m=c[1]==null?-1/0:c[1],d=s-o,g=l[p],y=0;y<d;y++){var _=f[y*h+p];g[o+y]=_,_<v&&(v=_),_>m&&(m=_)}c[0]=v,c[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};I_=(t={},t[se+"_"+sr]={pure:!0,appendData:n},t[se+"_"+li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Se]={pure:!0,appendData:n},t[Ge]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[oe]={appendData:n},t[We]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var R_=function(r,t,e,i){return r[i]},HA=(Ya={},Ya[se+"_"+sr]=function(r,t,e,i){return r[i+t]},Ya[se+"_"+li]=function(r,t,e,i,a){i+=t;for(var n=a||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},Ya[Se]=R_,Ya[Ge]=function(r,t,e,i,a){for(var n=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];n[o]=l?l[i]:null}return n},Ya[oe]=R_,Ya);function Wp(r,t){var e=HA[Xp(r,t)];return e}var O_=function(r,t,e){return r.length},GA=(Za={},Za[se+"_"+sr]=function(r,t,e){return Math.max(0,r.length-t)},Za[se+"_"+li]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Za[Se]=O_,Za[Ge]=function(r,t,e){var i=e[0].name,a=r[i];return a?a.length:0},Za[oe]=O_,Za);function Yp(r,t){var e=GA[Xp(r,t)];return e}var Gp=function(r,t,e){return r[t]},WA=(Xa={},Xa[se]=Gp,Xa[Se]=function(r,t,e){return r[e]},Xa[Ge]=Gp,Xa[oe]=function(r,t,e){var i=ti(r);return i instanceof Array?i[t]:i},Xa[We]=Gp,Xa);function Zp(r){var t=WA[r];return t}function Xp(r,t){return r===se?r+"_"+t:r}function fi(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var a=r.getStore(),n=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return Zp(n)(i,o,s)}else{var l=i;return n===oe&&(l=ti(i)),l}}}}var YA=/\{@(.+?)\}/g,N_=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),a=this.getRawValue(t,e),n=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,p=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:n,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,a,n,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),a!=null&&O(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(t);n=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(G(n))return l.status=e,l.dimensionIndex=a,n(l);if(U(n)){var f=Qn(n,l);return f.replace(YA,function(h,p){var c=p.length,v=p;v.charAt(0)==="["&&v.charAt(c-1)==="]"&&(v=+v.slice(1,c-1));var m=fi(s,t,v);if(o&&O(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(m=o.interpolatedValue[d])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(t,e){return fi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function qp(r){var t,e;return F(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Oi(r){return new ZA(r)}var ZA=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(h||c<v)){var m=this._progress;if(O(m))for(var d=0;d<m.length;d++)this._doProgress(m[d],c,v,l,u);else this._doProgress(m,c,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,a,n){z_.reset(e,i,a,n),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:z_.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),O(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})();var z_=(function(){var r,t,e,i,a,n={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,a=Math.ceil(i/e),n.next=e>1&&i>0?s:o}};return n;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<i?l:t;return t++,u}})();function ro(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!nt(r)&&r!=null&&r!=="-"&&(r=+ie(r)),r==null||r===""?NaN:Number(r))}var LB=W({number:function(r){return parseFloat(r)},time:function(r){return+ie(r)},trim:function(r){return U(r)?te(r):r}});var XA={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},IB=(function(){function r(t,e){if(!nt(e)){var i="";ae(i)}this._opFn=XA[t],this._rvalFloat=$e(e)}return r.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn($e(t),this._rvalFloat)},r})(),k_=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=nt(t)?t:$e(t),a=nt(e)?e:$e(e),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=U(t),l=U(e);s&&(i=l?t:0),l&&(a=s?e:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},r})();var PB=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=$e(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=$e(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();var qA=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ro(t,e)},r})();function KA(r,t){var e=new qA,i=r.data,a=e.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==sr&&ae(o);var s=[],l={},u=r.dimensionsDefine;if(u)b(u,function(m,d){var g=m.name,y={index:d,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Ze(l,g)&&ae(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Wp(a,sr);t.__isBuiltIn&&(e.getRawDataItem=function(m){return h(i,n,s,m)},e.getRawData=H(jA,null,r)),e.cloneRawData=H(QA,null,r);var p=Yp(a,sr);e.count=H(p,null,i,n,s);var c=Zp(a);e.retrieveValue=function(m,d){var g=h(i,n,s,m);return v(g,d)};var v=e.retrieveValueFromItem=function(m,d){if(m!=null){var g=s[d];if(g)return c(m,d,g.name)}};return e.getDimensionInfo=H($A,null,s,l),e.cloneAllDimensionInfo=H(JA,null,s),e}function jA(r){var t=r.sourceFormat;if(!Kp(t)){var e="";ae(e)}return r.data}function QA(r){var t=r.sourceFormat,e=r.data;if(!Kp(t)){var i="";ae(i)}if(t===se){for(var a=[],n=0,o=e.length;n<o;n++)a.push(e[n].slice());return a}else if(t===Se){for(var a=[],n=0,o=e.length;n<o;n++)a.push(N({},e[n]));return a}}function $A(r,t,e){if(e!=null){if(nt(e)||!isNaN(e)&&!Ze(t,e))return r[e];if(Ze(t,e))return t[e]}}function JA(r){return Y(r)}var U_=W();function V_(r){r=Y(r);var t=r.type,e="";t||ae(e);var i=t.split(":");i.length!==2&&ae(e);var a=!1;i[0]==="echarts"&&(t=i[1],a=!0),r.__isBuiltIn=a,U_.set(t,r)}function B_(r,t,e){var i=wt(r),a=i.length,n="";a||ae(n);for(var o=0,s=a;o<s;o++){var l=i[o];t=tE(l,t,e,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function tE(r,t,e,i){var a="";t.length||ae(a),F(r)||ae(a);var n=r.type,o=U_.get(n);o||ae(a);var s=k(t,function(f){return KA(f,o)}),l=wt(o.transform({upstream:s[0],upstreamList:s,config:Y(r.config)}));if(0&&r.print)var u;return k(l,function(f,h){var p="";F(f)||ae(p),f.data||ae(p);var c=Hp(f.data);Kp(c)||ae(p);var v,m=t[0];if(m&&h===0&&!f.dimensions){var d=m.startIndex;d&&(f.data=m.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:sr,sourceHeader:d,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:sr,sourceHeader:0,dimensions:f.dimensions};return Es(f.data,v,null)})}function Kp(r){return r===se||r===Se}var Xu="undefined",eE=typeof Uint32Array===Xu?Array:Uint32Array,rE=typeof Uint16Array===Xu?Array:Uint16Array,Qp=typeof Int32Array===Xu?Array:Int32Array,F_=typeof Float64Array===Xu?Array:Float64Array,G_={float:F_,int:Qp,ordinal:Array,number:Array,time:F_},jp;function Ls(r){return r>65535?eE:rE}function io(){return[1/0,-1/0]}function iE(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function H_(r,t,e,i,a){var n=G_[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new n(i)}var aE=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),n=this.defaultDimValueGetter=jp[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=Yu(a);this._dimensions=k(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(t);if(n!=null){if(a[n].type===e)return n}else n=a.length;return a[n]={type:e},i.set(t,n),this._chunks[n]=new G_[e||"float"](this._rawCount),this._rawExtent[n]=io(),n},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],a=this._dimensions[t],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[t]=io());for(var l=n[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<n;u++){var f=a[u];H_(i,u,f.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var c=p-s,v=0;v<n;v++){var f=a[v],m=jp.arrayRows.call(this,t[c]||h,f.property,c,v);i[v][p]=m;var d=o[v];m<d[0]&&(d[0]=m),m>d[1]&&(d[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=k(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=io()),H_(n,f,h.type,e,i)}if(a.fillStorage)a.fillStorage(t,e,n,l);else for(var p=[],c=t;c<e;c++){p=a.getItem(c,p);for(var v=0;v<s;v++){var m=n[v],d=this._dimValueGetter(p,u[v],c,v);m[c]=d;var g=l[v];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],a=[];if(e==null){e=t,t=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=t;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var a=0,n=this.count();a<n;a++){var o=this.get(t,a);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(n){isNaN(n)||e.push(n)});var i=e.sort(function(n,o){return n-o}),a=this.count();return a===0?0:a%2===1?i[(a-1)/2]:(i[a/2]+i[a/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var a=this._chunks,n=a[t],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var p=this.getRawIndex(f),c=e-n[p],v=Math.abs(c);v<=i&&((v<s||v===s&&c>=0&&l<0)&&(s=v,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,a=this._count;if(i===Array){t=new i(a);for(var n=0;n<a;n++)t[n]=e[n]}else t=new i(e.buffer,0,a)}else{var i=Ls(this._rawCount);t=new i(this.count());for(var n=0;n<t.length;n++)t[n]=n}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=Ls(i._rawCount),o=new n(a),s=[],l=t.length,u=0,f=t[0],h=i._chunks,p=0;p<a;p++){var c=void 0,v=i.getRawIndex(p);if(l===0)c=e(p);else if(l===1){var m=h[f][v];c=e(m,p)}else{for(var d=0;d<l;d++)s[d]=h[t[d]][v];s[d]=p,c=e.apply(null,s)}c&&(o[u++]=v)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var a=lt(t),n=a.length;if(!n)return this;var o=e.count(),s=Ls(e._rawCount),l=new s(o),u=0,f=a[0],h=t[f][0],p=t[f][1],c=e._chunks,v=!1;if(!e._indices){var m=0;if(n===1){for(var d=c[a[0]],g=0;g<i;g++){var y=d[g];(y>=h&&y<=p||isNaN(y))&&(l[u++]=m),m++}v=!0}else if(n===2){for(var d=c[a[0]],_=c[a[1]],x=t[a[1]][0],w=t[a[1]][1],g=0;g<i;g++){var y=d[g],S=_[g];(y>=h&&y<=p||isNaN(y))&&(S>=x&&S<=w||isNaN(S))&&(l[u++]=m),m++}v=!0}}if(!v)if(n===1)for(var g=0;g<o;g++){var T=e.getRawIndex(g),y=c[a[0]][T];(y>=h&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var M=!0,T=e.getRawIndex(g),D=0;D<n;D++){var A=a[D],y=c[A][T];(y<t[A][0]||y>t[A][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(g))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var a=t._chunks,n=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=io();for(var h=0;h<s;h++){for(var p=t.getRawIndex(h),c=0;c<o;c++)l[c]=a[e[c]][p];l[o]=h;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(n[0]=v,v=n);for(var f=0;f<v.length;f++){var m=e[f],d=v[f],g=u[m],y=a[m];y&&(y[p]=d),d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),a=i._chunks,n=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,p,c=new(Ls(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var v=1;v<o-1;v+=l){for(var m=Math.min(v+l,o-1),d=Math.min(v+l*2,o),g=(d+m)/2,y=0,_=m;_<d;_++){var x=this.getRawIndex(_),w=n[x];isNaN(w)||(y+=w)}y/=d-m;var S=v,T=Math.min(v+l,o),M=v-1,D=n[u];f=-1,p=S;for(var A=-1,C=0,_=S;_<T;_++){var x=this.getRawIndex(_),w=n[x];if(isNaN(w)){C++,A<0&&(A=x);continue}h=Math.abs((M-g)*(w-D)-(M-_)*(y-D)),h>f&&(f=h,p=x)}C>0&&C<T-S&&(c[s++]=Math.min(A,p),p=Math.max(A,p)),c[s++]=p,u=p}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(t,e,i,a){for(var n=this.clone([t],!0),o=n._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=n._rawExtent[t]=io(),p=new(Ls(this._rawCount))(Math.ceil(f/l)),c=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var m=0;m<l;m++){var d=this.getRawIndex(v+m);s[m]=u[d]}var g=i(s),y=this.getRawIndex(Math.min(v+a(s,g)||0,f-1));u[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),p[c++]=y}return n._count=c,n._indices=p,n._updateGetRawIdx(),n},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:e(n);break;case 1:e(a[t[0]][s],n);break;case 2:e(a[t[0]][s],a[t[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[t[l]][s];u[l]=n,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=io();if(!e)return i;var a=this.count(),n=!this._indices,o;if(n)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][e]);return i},r.prototype.clone=function(t,e){var i=new r,a=this._chunks,n=t&&fe(t,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?iE(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Y(this._extent),t._rawExtent=Y(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var a=0;a<i;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,a,n){return ro(e[n],this._dimensions[n])}jp={arrayRows:t,objectRows:function(e,i,a,n){return ro(e[i],this._dimensions[n])},keyedColumns:t,original:function(e,i,a,n){var o=e&&(e.value==null?e:e.value);return ro(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(e,i,a,n){return e[n]}}})(),r})(),Is=aE;var Y_=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,a,n;if(qu(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=Et(s)?We:oe,n=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},c=et(h.seriesLayoutBy,p.seriesLayoutBy)||null,v=et(h.sourceHeader,p.sourceHeader),m=et(h.dimensions,p.dimensions),d=c!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||m;a=d?[Es(s,{seriesLayoutBy:c,sourceHeader:v,dimensions:m},l)]:[]}else{var g=t;if(i){var y=this._applyTransform(e);a=y.sourceList,n=y.upstreamSignList}else{var _=g.get("source",!0);a=[Es(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var n="";t.length!==1&&W_(n)}var o,s=[],l=[];return b(t,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&W_(h),s.push(f),l.push(u._getVersionSign())}),i?o=B_(i,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[L_(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];qu(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new Is,s.initData(new Zu(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(qu(t)){var e=Uu(t);return e?[e.getSourceManager()]:[]}else return k(h_(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,a;if(qu(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=t;e=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:a}},r})();function qu(r){return r.mainType==="series"}function W_(r){throw new Error(r)}var Z_="line-height:1";function X_(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,a=r.fontWeight||"400",n=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ee(i+"")+"px;color:"+ee(e)+";font-weight:"+ee(a+""),valueStyle:"font-size:"+ee(o+"")+"px;color:"+ee(n)+";font-weight:"+ee(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var nE=[0,10,20,30],oE=["",`
`,`
`,`
`];function qa(r,t){return t.type=r,t}function $p(r){return r.type==="section"}function q_(r){return $p(r)?sE:lE}function K_(r){if($p(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return b(r.blocks,function(a){var n=K_(a);n>=t&&(t=n+ +(i&&(!n||$p(a)&&!a.noHeader)))}),t}return 0}function sE(r,t,e,i){var a=t.noHeader,n=uE(K_(t)),o=[],s=t.blocks||[];Ft(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ze(u,l)){var f=new k_(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(v,m){var d=t.valueFormatter,g=q_(v)(d?N(N({},r),{valueFormatter:d}):r,v,m>0?n.html:0,i);g!=null&&o.push(g)});var h=r.renderMode==="richText"?o.join(n.richText):Jp(o.join(""),a?e:n.html);if(a)return h;var p=Ru(t.header,"ordinal",r.useUTC),c=X_(i,r.renderMode).nameStyle;return r.renderMode==="richText"?j_(r,p,c)+n.richText+h:Jp('<div style="'+c+";"+Z_+';">'+ee(p)+"</div>"+h,e)}function lE(r,t,e,i){var a=r.renderMode,n=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=O(x)?x:[x],k(x,function(w,S){return Ru(w,O(c)?c[S]:c,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),p=n?"":Ru(l,"ordinal",u),c=t.valueType,v=o?[]:f(t.value,t.dataIndex),m=!s||!n,d=!s&&n,g=X_(i,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":h)+(n?"":j_(r,p,y))+(o?"":cE(r,v,m,d,_)):Jp((s?"":h)+(n?"":fE(p,!s,y))+(o?"":hE(v,m,d,_)),e)}}function tv(r,t,e,i,a,n){if(r){var o=q_(r),s={useUTC:a,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function uE(r){return{html:nE[r],richText:oE[r]}}function Jp(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Z_+';">'+r+e+"</div>"}function fE(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+ee(r)+"</span>"}function hE(r,t,e,i){var a=e?"10px":"20px",n=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],'<span style="'+n+";"+i+'">'+k(r,function(o){return ee(o)}).join("&nbsp;&nbsp;")+"</span>"}function j_(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function cE(r,t,e,i,a){var n=[a],o=i?10:20;return e&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,n)}function Q_(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return br(i)}function Ku(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var ju=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ql()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var a=i==="richText"?this._generateStyleName():null,n=Ou({color:e,type:t,renderMode:i,markerId:a});return U(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};O(e)?b(e,function(n){return N(i,n)}):N(i,e);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+t+"}"},r})();function $_(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,a=t.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=t.getRawValue(e),l=O(s),u=Q_(t,e),f,h,p,c;if(o>1||l&&!o){var v=pE(s,t,e,n,u);f=v.inlineValues,h=v.inlineValueTypes,p=v.blocks,c=v.inlineValues[0]}else if(o){var m=a.getDimensionInfo(n[0]);c=f=fi(a,e,n[0]),h=m.type}else c=f=l?s[0]:s;var d=Pn(t),g=d&&t.name||"",y=a.getName(e),_=i?g:y;return qa("section",{header:g,noHeader:i||!d,sortParam:c,blocks:[qa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!te(_),value:f,valueType:h,dataIndex:e})].concat(p||[])})}function pE(r,t,e,i,a){var n=t.getData(),o=fe(r,function(h,p,c){var v=n.getDimensionInfo(c);return h=h||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(h){f(fi(n,e,h),h)}):b(r,f);function f(h,p){var c=n.getDimensionInfo(p);!c||c.otherDims.tooltip===!1||(o?u.push(qa("nameValue",{markerType:"subItem",markerColor:a,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ni=ht();function Qu(r,t){return r.getName(t)||r.getId(t)}var vE="__universalTransitionEnabled",$u=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,a){this.seriesIndex=this.componentIndex,this.dataTask=Oi({count:mE,reset:gE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var n=Ni(this).sourceManager=new Y_(this);n.prepareSource();var o=this.getInitialData(e,a);tx(o,this),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,J_(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var a=Pi(this),n=a?Vr(e):{},o=this.subType;pt.hasClass(o)&&(o+="Series"),tt(e,i.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),Qo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Ur(e,n,a)},t.prototype.mergeOption=function(e,i){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Pi(this);a&&Ur(this.option,e,a);var n=Ni(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(e,i);tx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,J_(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Et(e))for(var i=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&Qo(e[a],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=ev(this);if(i){var a=i.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return Ni(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=ev(this);if(i){var a=i.context;a.outputData=e,i!==this.dataTask&&(a.data=e)}Ni(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return W(e)},t.prototype.getSourceManager=function(){return Ni(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ni(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,a){return $_({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(j.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,a){var n=this.ecModel,o=Ts.prototype.getColorFromPalette.call(this,e,i,a);return o||(o=n.getColorFromPalette(e,i,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Qu(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var a=[],n=0;n<e.length;n++)a[0]=e[n],this.isSelected(e[n],i)?this.unselect(a,i):this.select(a,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=lt(e),a=[],n=0;n<i.length;n++){var o=e[i[n]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Qu(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[vE])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){F(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],p=Qu(e,h);u[p]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[l-1],p=Qu(e,c);o.selectedMap=(a={},a[p]=!0,a),this._selectedDataIndicesMap=(n={},n[p]=e.getRawIndex(c),n)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(a){var n=e.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return pt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(pt);Jt($u,N_);Jt($u,Ts);Jl($u,pt);function J_(r){var t=r.name;Pn(r)||(r.name=dE(r)||t)}function dE(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return b(e,function(a){var n=t.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function mE(r){return r.model.getRawData().count()}function gE(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),yE}function yE(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function tx(r,t){b(wh(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ct(_E,t))})}function _E(r,t){var e=ev(r);return e&&e.setOutputEnd((t||this).count()),t}function ev(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var qt=$u;var rv=(function(){function r(){this.group=new ft,this.uid=Ii("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,a){},r.prototype.updateLayout=function(t,e,i,a){},r.prototype.updateVisual=function(t,e,i,a){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Rn(rv);wi(rv);var Lt=rv;function Ka(){var r=ht();return function(t){var e=r(t),i=t.pipelineContext,a=!!e.large,n=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var ix=ht(),xE=Ka(),iv=(function(){function r(){this.group=new ft,this.uid=Ii("viewChart"),this.renderTask=Oi({plan:SE,reset:bE}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,a){},r.prototype.highlight=function(t,e,i,a){var n=t.getData(a&&a.dataType);n&&rx(n,a,"emphasis")},r.prototype.downplay=function(t,e,i,a){var n=t.getData(a&&a.dataType);n&&rx(n,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.updateLayout=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.updateVisual=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.eachRendered=function(t){ni(this.group,t)},r.markUpdateMethod=function(t,e){ix(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function ex(r,t,e){r&&ss(r)&&(t==="emphasis"?Ea:La)(r,e)}function rx(r,t,e){var i=Je(r,t),a=t&&t.highlightKey!=null?e0(t.highlightKey):null;i!=null?b(wt(i),function(n){ex(r.getItemGraphicEl(n),e,a)}):r.eachItemGraphicEl(function(n){ex(n,e,a)})}Rn(iv,["dispose"]);wi(iv);function SE(r){return xE(r.model)}function bE(r){var t=r.model,e=r.ecModel,i=r.api,a=r.payload,n=t.pipelineContext.progressiveRender,o=r.view,s=a&&ix(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,a),wE[l]}var wE={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ut=iv;var Ju="\0__throttleOriginMethod",ax="\0__throttleRate",nx="\0__throttleType";function ja(r,t,e){var i,a=0,n=0,o=null,s,l,u,f;t=t||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var c=[],v=0;v<arguments.length;v++)c[v]=arguments[v];i=new Date().getTime(),l=this,u=c;var m=f||t,d=f||e;f=null,s=i-(d?a:n)-m,clearTimeout(o),d?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),a=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(c){f=c},p}function zi(r,t,e,i){var a=r[t];if(a){var n=a[Ju]||a,o=a[nx],s=a[ax];if(s!==e||o!==i){if(e==null||!i)return r[t]=n;a=r[t]=ja(n,e,i==="debounce"),a[Ju]=n,a[nx]=i,a[ax]=e}return a}}function Qa(r,t){var e=r[t];e&&e[Ju]&&(e.clear&&e.clear(),r[t]=e[Ju])}var ox=ht(),sx={itemStyle:Ir(yp,!0),lineStyle:Ir(gp,!0)},TE={lineStyle:"stroke",itemStyle:"fill"};function lx(r,t){var e=r.visualStyleMapper||sx[t];return e||(console.warn("Unknown style type '"+t+"'."),sx.itemStyle)}function ux(r,t){var e=r.visualDrawType||TE[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=lx(r,i),o=n(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=ux(r,i),u=o[l],f=G(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var p=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=p,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?p:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,v){var m=r.getDataParams(v),d=N({},o);d[l]=f(m),c.setItemVisual(v,"style",d)}}}},Ps=new _t,hx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=lx(r,i),n=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Ps.option=l[i];var u=a(Ps),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Ps.option.decal&&(o.setItemVisual(s,"decal",Ps.option.decal),Ps.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cx={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+i,n=t.get(a);n||(n={},t.set(a,n)),ox(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),a={},n=e.getData(),o=ox(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=ux(e,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],h=n.getItemVisual(f,"colorFromPalette");if(h){var p=n.ensureUniqueItemVisual(f,"style"),c=i.getName(u)||u+"",v=i.count();p[l]=e.getColorFromPalette(c,o,v)}})}})}};var tf=Math.PI;function nv(r,t){t=t||{},K(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ft,i=new st({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var a=new vt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),n=new st({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(n);var o;return t.showSpinner&&(o=new Oa({shape:{startAngle:-tf/2,endAngle:-tf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:tf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:tf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var ME=(function(){function r(t,e,i,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),a=i.context,n=!e&&i.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),a=t.getData(),n=a.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,s=t.get("large")&&n>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?n:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=W();t.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;b(this._allHandlers,function(a){var n=t.get(a.uid)||t.set(a.uid,{}),o="";Ft(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,e,i),a.overallReset&&this._createOverallStageTask(a,n,e,i)},this)},r.prototype.prepareView=function(t,e,i,a){var n=t.renderTask,o=n.context;o.model=e,o.ecModel=i,o.api=a,n.__block=!t.incrementalPrepareRender,this._pipe(e,n)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,a){a=a||{};var n=!1,o=this;b(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,p=f.overallTask;if(p){var c,v=p.agentStubMap;v.each(function(d){s(a,d)&&(d.dirty(),c=!0)}),c&&p.dirty(),o.updatePayload(p,i);var m=o.getPerformArgs(p,a.block);v.each(function(d){d.perform(m)}),p.perform(m)&&(n=!0)}else h&&h.each(function(d,g){s(a,d)&&d.dirty();var y=o.getPerformArgs(d,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,a){var n=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(h){var p=h.uid,c=s.set(p,o&&o.get(p)||Oi({plan:LE,reset:IE,count:RE}));c.context={model:h,ecModel:i,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:n},n._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,a){var n=this,o=e.overallTask=e.overallTask||Oi({reset:CE});o.context={ecModel:i,api:a,overallReset:t.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,f=t.getTargetSeries,h=!0,p=!1,c="";Ft(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,v):f?f(i,a).each(v):(h=!1,b(i.getSeries(),v));function v(m){var d=m.uid,g=l.set(d,s&&s.get(d)||(p=!0,Oi({reset:DE,onDirty:EE})));g.context={model:m,overallProgress:h},g.agent=o,g.__block=h,n._pipe(m,g)}p&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return G(t)&&(t={overallReset:t,seriesType:OE(t)}),t.uid=Ii("stageHandler"),e&&(t.visualType=e),t},r})();function CE(r){r.overallReset(r.ecModel,r.api,r.payload)}function DE(r){return r.overallProgress&&AE}function AE(){this.agent.dirty(),this.getDownstream().dirty()}function EE(){this.agent&&this.agent.dirty()}function LE(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function IE(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=wt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?k(t,function(e,i){return px(i)}):PE}var PE=px(0);function px(r){return function(t,e){var i=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var n=t.start;n<t.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(t,i)}}function RE(r){return r.data.count()}function OE(r){ef=null;try{r(Rs,vx)}catch{}return ef}var Rs={},vx={},ef;dx(Rs,Fu);dx(vx,Hu);Rs.eachSeriesByType=Rs.eachRawSeriesByType=function(r){ef=r};Rs.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ef=r.subType)};function dx(r,t){for(var e in t.prototype)r[e]=Dt}var ov=ME;var mx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],gx={color:mx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],mx]};var be="#B9B8CE",yx="#100C2A",rf=function(){return{axisLine:{lineStyle:{color:be}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},_x=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],xx={darkMode:!0,color:_x,backgroundColor:yx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:be}},textStyle:{color:be},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:be}},dataZoom:{borderColor:"#71708A",textStyle:{color:be},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:be}},timeline:{lineStyle:{color:be},label:{color:be},controlStyle:{color:be,borderColor:be}},calendar:{itemStyle:{color:yx},dayLabel:{color:be},monthLabel:{color:be},yearLabel:{color:be}},timeAxis:rf(),logAxis:rf(),valueAxis:rf(),categoryAxis:rf(),line:{symbol:"circle"},graph:{color:_x},gauge:{title:{color:be},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:be},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};xx.categoryAxis.splitLine.show=!1;var Sx=xx;var bx=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},a={};if(U(t)){var n=Le(t);e.mainType=n.main||null,e.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var p=o[h],c=u.lastIndexOf(p);if(c>0&&c===u.length-p.length){var v=u.slice(0,c);v!=="data"&&(e.mainType=v,e[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:a}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,n));function f(h,p,c,v){return h[c]==null||p[v||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var sv=["symbol","symbolSize","symbolRotate","symbolOffset"],Tx=sv.concat(["symbolKeepAspect"]),Mx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o<sv.length;o++){var s=sv[o],l=r.get(s);G(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(N({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=lt(a);function f(h,p){for(var c=r.getRawValue(p),v=r.getDataParams(p),m=0;m<u.length;m++){var d=u[m];h.setItemVisual(p,d,a[d](c,v))}}return{dataEach:n?f:null}}},Cx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<Tx.length;s++){var l=Tx[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function af(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:}}function nf(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:}}function Dx(r,t,e,i){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[r.getVisual("drawType")]=i,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,i);break;default:}}function Ax(r,t){function e(i,a){var n=[];return i.eachComponent({mainType:"series",subType:r,query:a},function(o){n.push(o.seriesIndex)}),n}b([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(a,n,o){a=N({},a),o.dispatchAction(N(a,{type:i[1],seriesIndex:e(n,a)}))})})}function ao(r,t,e,i,a){var n=r+t;e.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),p=Je(h,a.fromActionPayload);e.trigger(n,{type:n,seriesId:o.id,name:O(p)?h.getName(p[0]):h.getName(p),selected:U(l)?l:N({},l)})}})}function Ex(r,t,e){r.on("selectchanged",function(i){var a=e.getModel();i.isFromClick?(ao("map","selectchanged",t,a,i),ao("pie","selectchanged",t,a,i)):i.fromAction==="select"?(ao("map","selected",t,a,i),ao("pie","selected",t,a,i)):i.fromAction==="unselect"&&(ao("map","unselected",t,a,i),ao("pie","unselected",t,a,i))})}function hi(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var NE=Math.round(Math.random()*9),zE=typeof Object.defineProperty=="function",kE=(function(){function r(){this._id="__ec_inner_"+NE++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return zE?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),Lx=kE;var UE=at.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,a=t.width/2,n=t.height/2;r.moveTo(e,i-n),r.lineTo(e+a,i+n),r.lineTo(e-a,i+n),r.closePath()}}),VE=at.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,a=t.width/2,n=t.height/2;r.moveTo(e,i-n),r.lineTo(e+a,i),r.lineTo(e,i+n),r.lineTo(e-a,i),r.closePath()}}),BE=at.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,a=t.width/5*3,n=Math.max(a,t.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),p=Math.cos(u),c=o*.6,v=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+p*c,e,i-v,e,i),r.bezierCurveTo(e,i-v,e-f+h*c,l+s+p*c,e-f,l+s),r.closePath()}}),FE=at.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,a=t.x,n=t.y,o=i/3*2;r.moveTo(a,n),r.lineTo(a+o,n+e),r.lineTo(a,n+e/4*3),r.lineTo(a-o,n+e),r.lineTo(a,n),r.closePath()}}),HE={line:Ve,rect:st,roundRect:st,square:st,circle:Pa,diamond:VE,pin:BE,arrow:FE,triangle:UE},GE={line:function(r,t,e,i,a){a.x1=r,a.y1=t+i/2,a.x2=r+e,a.y2=t+i/2},rect:function(r,t,e,i,a){a.x=r,a.y=t,a.width=e,a.height=i},roundRect:function(r,t,e,i,a){a.x=r,a.y=t,a.width=e,a.height=i,a.r=Math.min(e,i)/4},square:function(r,t,e,i,a){var n=Math.min(e,i);a.x=r,a.y=t,a.width=n,a.height=n},circle:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.r=Math.min(e,i)/2},diamond:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.width=e,a.height=i},pin:function(r,t,e,i,a){a.x=r+e/2,a.y=t+i/2,a.width=e,a.height=i},arrow:function(r,t,e,i,a){a.x=r+e/2,a.y=t+i/2,a.width=e,a.height=i},triangle:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.width=e,a.height=i}},Os={};b(HE,function(r,t){Os[t]=new r});var WE=at.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=ga(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var a=Os[i];a||(i="rect",a=Os[i]),GE[i](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function YE(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Vt(r,t,e,i,a,n,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=vs(r.slice(8),new J(t,e,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=Yn(r.slice(7),{},new J(t,e,i,a),o?"center":"cover"):l=new WE({shape:{symbolType:r,x:t,y:e,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=YE,n&&l.setColor(n),l}function Ix(r){return O(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function of(r,t){if(r!=null)return O(r)||(r=[r,r]),[yt(r[0],t[0])||0,yt(et(r[1],r[0]),t[1])||0]}function $a(r){return isFinite(r)}function ZE(r,t,e){var i=t.x==null?0:t.x,a=t.x2==null?1:t.x2,n=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,a=a*e.width+e.x,n=n*e.height+e.y,o=o*e.height+e.y),i=$a(i)?i:0,a=$a(a)?a:1,n=$a(n)?n:0,o=$a(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function XE(r,t,e){var i=e.width,a=e.height,n=Math.min(i,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*a+e.y,l=l*n),o=$a(o)?o:.5,s=$a(s)?s:.5,l=l>=0&&$a(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ns(r,t,e){for(var i=t.type==="radial"?XE(r,t,e):ZE(r,t,e),a=t.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function Px(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function sf(r){return parseInt(r,10)}function zs(r,t,e){var i=["width","height"][t],a=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[a]||sf(s[i])||sf(r.style[i]))-(sf(s[n])||0)-(sf(s[o])||0)|0}function qE(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:nt(r)?[r]:O(r)?r:null}function lv(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&qE(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=k(e,function(n){return n/a}),i/=a)}return[e,i]}var KE=new ye(!0);function lf(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Rx(r){return typeof r=="string"&&r!=="none"}function uf(r){var t=r.fill;return t!=null&&t!=="none"}function Ox(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Nx(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ff(r,t,e){var i=Tc(t.image,t.__image,e);if(On(i)){var a=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*xl),n.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(n)}return a}}function jE(r,t,e,i){var a,n=lf(e),o=uf(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||KE,h=t.__dirty;if(!i){var p=e.fill,c=e.stroke,v=o&&!!p.colorStops,m=n&&!!c.colorStops,d=o&&!!p.image,g=n&&!!c.image,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0;(v||m)&&(S=t.getBoundingRect()),v&&(y=h?Ns(r,p,S):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=h?Ns(r,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),d&&(x=h||!t.__canvasFillPattern?ff(r,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),g&&(w=h||!t.__canvasStrokePattern?ff(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),v?r.fillStyle=y:d&&(x?r.fillStyle=x:o=!1),m?r.strokeStyle=_:g&&(w?r.strokeStyle=w:n=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var M,D;r.setLineDash&&e.lineDash&&(a=lv(t),M=a[0],D=a[1]);var A=!0;(u||h&gi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=D),i||(e.strokeFirst?(n&&Nx(r,e),o&&Ox(r,e)):(o&&Ox(r,e),n&&Nx(r,e))),M&&r.setLineDash([])}function QE(r,t,e){var i=t.__image=Tc(e.image,t.__image,t,t.onload);if(!(!i||!On(i))){var a=e.x||0,n=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,a,n,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,p=s-f;r.drawImage(i,u,f,h,p,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function $E(r,t,e){var i,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||pr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=lv(t),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),e.strokeFirst?(lf(e)&&r.strokeText(a,e.x,e.y),uf(e)&&r.fillText(a,e.x,e.y)):(uf(e)&&r.fillText(a,e.x,e.y),lf(e)&&r.strokeText(a,e.x,e.y)),n&&r.setLineDash([])}}var zx=["shadowBlur","shadowOffsetX","shadowOffsetY"],kx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Gx(r,t,e,i,a){var n=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Pe(r,a),n=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Pr.opacity:o}(i||t.blend!==e.blend)&&(n||(Pe(r,a),n=!0),r.globalCompositeOperation=t.blend||Pr.blend);for(var s=0;s<zx.length;s++){var l=zx[s];(i||t[l]!==e[l])&&(n||(Pe(r,a),n=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(n||(Pe(r,a),n=!0),r.shadowColor=t.shadowColor||Pr.shadowColor),n}function Ux(r,t,e,i,a){var n=ks(t,a.inHover),o=i?null:e&&ks(e,a.inHover)||{};if(n===o)return!1;var s=Gx(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(Pe(r,a),s=!0),Rx(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(Pe(r,a),s=!0),Rx(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(Pe(r,a),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),t.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Pe(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<kx.length;f++){var h=kx[f],p=h[0];(i||n[p]!==o[p])&&(s||(Pe(r,a),s=!0),r[p]=n[p]||h[1])}return s}function JE(r,t,e,i,a){return Gx(r,ks(t,a.inHover),e&&ks(e,a.inHover),i,a)}function Wx(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function tL(r,t,e){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),Wx(t,n),t.beginPath(),n.buildPath(t,n.shape),t.clip()}e.allClipped=i}function eL(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Vx=1,Bx=2,Fx=3,Hx=4;function rL(r){var t=uf(r),e=lf(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Pe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ks(r,t){return t&&r.__hoverStyle||r.style}function no(r,t){ki(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ki(r,t,e,i){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Ht,t.__isRendered=!1;return}var n=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||Px(n,o))&&(o&&o.length&&(Pe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(Pe(r,e),r.save(),tL(n,r,e),s=!0),e.prevElClipPaths=n),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof at&&t.autoBatch&&rL(t.style);s||eL(a,u.transform)?(Pe(r,e),Wx(r,t)):f||Pe(r,e);var h=ks(t,e.inHover);t instanceof at?(e.lastDrawType!==Vx&&(l=!0,e.lastDrawType=Vx),Ux(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),jE(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof rs?(e.lastDrawType!==Fx&&(l=!0,e.lastDrawType=Fx),Ux(r,t,u,l,e),$E(r,t,h)):t instanceof ne?(e.lastDrawType!==Bx&&(l=!0,e.lastDrawType=Bx),JE(r,t,u,l,e),QE(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==Hx&&(l=!0,e.lastDrawType=Hx),iL(r,t,e)),f&&i&&Pe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function iL(r,t,e){var i=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ki(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ki(r,l,n,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var uv=new Lx,Yx=new $r(100),Zx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Us(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),a=i.painter.type==="svg";r.dirty&&uv.delete(r);var n=uv.get(r);if(n)return n;var o=K(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/e,uv.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,p=0;p<Zx.length;++p){var c=o[Zx[p]];if(c!=null&&!O(c)&&!U(c)&&!nt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var v;if(h){v=f.join(",")+(a?"-svg":"");var m=Yx.get(v);m&&(a?u.svgElement=m:u.image=m)}var d=qx(o.dashArrayX),g=aL(o.dashArrayY),y=Xx(o.symbol),_=nL(d),x=Kx(g),w=!a&&$t.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),M;w&&(w.width=T.width*e,w.height=T.height*e,M=w.getContext("2d")),A(),h&&Yx.put(v,w||S),u.image=w,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var C=1,E=0,L=_.length;E<L;++E)C=yc(C,_[E]);for(var P=1,E=0,L=y.length;E<L;++E)P=yc(P,y[E].length);C*=P;var R=x*_.length*y.length;if(0)var z;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){M&&(M.clearRect(0,0,w.width,w.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,w.width,w.height)));for(var C=0,E=0;E<g.length;++E)C+=g[E];if(C<=0)return;for(var L=-x,P=0,R=0,z=0;L<T.height;){if(P%2===0){for(var Z=R/2%y.length,V=0,B=0,X=0;V<T.width*2;){for(var Q=0,E=0;E<d[z].length;++E)Q+=d[z][E];if(Q<=0)break;if(B%2===0){var $=(1-o.symbolSize)*.5,mt=V+d[z][B]*$,xt=L+g[P]*$,jt=d[z][B]*o.symbolSize,Tt=g[P]*o.symbolSize,Te=X/2%y[Z].length;Ne(mt,xt,jt,Tt,y[Z][Te])}V+=d[z][B],++X,++B,B===d[z].length&&(B=0)}++z,z===d.length&&(z=0)}L+=g[P],++R,++P,P===g.length&&(P=0)}function Ne(le,Rt,ot,dt,Cr){var Qt=a?1:e,di=Vt(Cr,le*Qt,Rt*Qt,ot*Qt,dt*Qt,o.color,o.symbolKeepAspect);if(a){var Yr=i.painter.renderOneToVNode(di);Yr&&S.children.push(Yr)}else no(M,di)}}}}function Xx(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!U(r[e])){t=!1;break}if(t)return Xx([r]);for(var i=[],e=0;e<r.length;++e)U(r[e])?i.push([r[e]]):i.push(r[e]);return i}function qx(r){if(!r||r.length===0)return[[0,0]];if(nt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!nt(r[i])){e=!1;break}if(e)return qx([r]);for(var a=[],i=0;i<r.length;++i)if(nt(r[i])){var t=Math.ceil(r[i]);a.push([t,t])}else{var t=k(r[i],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function aL(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(nt(r)){var t=Math.ceil(r);return[t,t]}var e=k(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function nL(r){return k(r,function(t){return Kx(t)})}function Kx(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function fv(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Us(s,t)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=Us(a,t)}}})}var oL=new Wt,ur=oL;var jx={};function Qx(r,t){jx[r]=t}function hv(r){return jx[r]}var sL="5.5.1",lL={zrender:"5.6.0"},uL=1,fL=800,hL=900,cL=1e3,pL=2e3,vL=5e3,oS=1e3,dL=1100,bv=2e3,sS=3e3,mL=4e3,gf=4500,gL=4600,yL=5e3,_L=6e3,lS=7e3,wv={PROCESSOR:{FILTER:cL,SERIES_FILTER:fL,STATISTIC:vL},VISUAL:{LAYOUT:oS,PROGRESSIVE_LAYOUT:dL,GLOBAL:bv,CHART:sS,POST_CHART_LAYOUT:gL,COMPONENT:mL,BRUSH:yL,CHART_ITEM:gf,ARIA:_L,DECAL:lS}},de="__flagInMainProcess",Re="__pendingUpdate",cv="__needsUpdateStatus",$x=/^[a-zA-Z0-9_]+$/,pv="__connectUpdateStatus",Jx=0,xL=1,SL=2;function uS(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return hS(this,r,t)}}function fS(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return hS(this,r,t)}}function hS(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Wt.prototype[t].apply(r,e)}var cS=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Wt),pS=cS.prototype;pS.on=fS("on");pS.off=fS("off");var oo,vv,hf,Ui,dv,mv,gv,Vs,Bs,tS,eS,yv,rS,cf,iS,vS,fr,aS,pf=(function(r){I(t,r);function t(e,i,a){var n=r.call(this,new bx)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},U(i)&&(i=dS[i]),n._dom=e;var o="canvas",s="auto",l=!1;if(0)var u;a.ssr&&dc(function(c){var v=ut(c),m=v.dataIndex;if(m!=null){var d=W();return d.set("series_index",v.seriesIndex),d.set("data_index",m),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var f=n._zr=ql(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:et(a.useDirtyRect,l),useCoarsePointer:et(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=ja(H(f.flush,f),17),i=Y(i),i&&Gu(i,!0),n._theme=i,n._locale=X0(a.locale||Du),n._coordSysMgr=new Ri;var h=n._api=iS(n);function p(c,v){return c.__prio-v.__prio}return oa(df,p),oa(_v,p),n._scheduler=new ov(n,h,_v,df),n._messageCenter=new cS,n._initEvents(),n.resize=H(n.resize,n),f.animation.on("frame",n._onframe,n),tS(f,n),eS(f,n),ta(n),n}return t.prototype._onframe=function(){if(!this._disposed){aS(this);var e=this._scheduler;if(this[Re]){var i=this[Re].silent;this[de]=!0;try{oo(this),Ui.update.call(this,null,this[Re].updateParams)}catch(l){throw this[de]=!1,this[Re]=null,l}this._zr.flush(),this[de]=!1,this[Re]=null,Vs.call(this,i),Bs.call(this,i)}else if(e.unfinished){var a=uL,n=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),mv(this,n),e.performVisualTasks(n),cf(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,a){if(!this[de]){if(this._disposed){this.id;return}var n,o,s;if(F(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[de]=!0,!this._model||i){var l=new S_(this._api),u=this._theme,f=this._model=new Fu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},xv);var h={seriesTransition:s,optionChanged:!0};if(a)this[Re]={silent:n,updateParams:h},this[de]=!1,this.getZr().wakeUp();else{try{oo(this),Ui.update.call(this,null,h)}catch(p){throw this[Re]=null,this[de]=!1,p}this._ssr||this._zr.flush(),this[Re]=null,this[de]=!1,Vs.call(this,n),Bs.call(this,n)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||j.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(j.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return b(i,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,a=this._model,n=[],o=this;b(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return b(n,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(mf[a]){var l=s,u=s,f=-s,h=-s,p=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();b(Ja,function(_,x){if(_.group===a){var w=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Y(e)),S=_.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),h=o(S.bottom,h),p.push({dom:w,left:S.left,top:S.top})}}),l*=c,u*=c,f*=c,h*=c;var v=f-l,m=h-u,d=$t.createCanvas(),g=ql(d,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:m}),i){var y="";return b(p,function(_){var x=_.left-l,w=_.top-u;y+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new st({shape:{x:0,y:0,width:v,height:m},style:{fill:e.connectedBackgroundColor}})),b(p,function(_){var x=new ne({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),d.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return dv(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return dv(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var a=this._model,n,o=$l(a,e);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(i,u))}},this)},this),!!n},t.prototype.getVisual=function(e,i){var a=this._model,n=$l(a,e,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?af(s,l,i):nf(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;b(bL,function(i){var a=function(n){var o=e.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&hi(s,function(v){var m=ut(v);if(m&&m.dataIndex!=null){var d=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=d&&d.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=N({},m.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var p=f&&h!=null&&o.getComponent(f,h),c=p&&e[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=n,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:c},e.trigger(i,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(i,a,e)}),b(Fs,function(i,a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),b(["selectchanged"],function(i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),Ex(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&xc(this.getDom(),Mv,"");var i=this,a=i._api,n=i._model;b(i._componentsViews,function(o){o.dispose(n,a)}),b(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Ja[i.id]},t.prototype.resize=function(e){if(!this[de]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=e&&e.silent;this[Re]&&(n==null&&(n=this[Re].silent),a=!0,this[Re]=null),this[de]=!0;try{a&&oo(this),Ui.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[de]=!1,o}this[de]=!1,Vs.call(this,n),Bs.call(this,n)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(F(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Sv[e]){var a=Sv[e](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=N({},e);return i.type=Fs[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!vf[e.type]&&this._model){if(this[de]){this._pendingActions.push(e);return}var a=i.silent;gv.call(this,e,a);var n=i.flush;n?this._zr.flush():n!==!1&&j.browser.weChat&&this._throttledZrFlush(),Vs.call(this,a),Bs.call(this,a)}},t.prototype.updateLabelLayout=function(){ur.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){oo=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),vv(h,!0),vv(h,!1),p.plan()},vv=function(h,p){for(var c=h._model,v=h._scheduler,m=p?h._componentsViews:h._chartsViews,d=p?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;p?c.eachComponent(function(S,T){S!=="series"&&x(T)}):c.eachSeries(x);function x(S){var T=S.__requireNewView;S.__requireNewView=!1;var M="_ec_"+S.id+"_"+S.type,D=!T&&d[M];if(!D){var A=Le(S.type),C=p?Lt.getClass(A.main,A.sub):Ut.getClass(A.sub);D=new C,D.init(c,y),d[M]=D,m.push(D),g.add(D.group)}S.__viewId=D.__id=M,D.__alive=!0,D.__model=S,D.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&v.prepareView(D,S,c,y)}for(var _=0;_<m.length;){var w=m[_];w.__alive?_++:(!p&&w.renderTask.dispose(),g.remove(w.group),w.dispose(c,y),m.splice(_,1),d[w.__id]===w&&delete d[w.__id],w.__id=w.group.__ecComponentInfo=null)}},hf=function(h,p,c,v,m){var d=h._model;if(d.setUpdatePayload(c),!v){b([].concat(h._componentsViews).concat(h._chartsViews),w);return}var g={};g[v+"Id"]=c[v+"Id"],g[v+"Index"]=c[v+"Index"],g[v+"Name"]=c[v+"Name"];var y={mainType:v,query:g};m&&(y.subType=m);var _=c.excludeSeriesId,x;_!=null&&(x=W(),b(wt(_),function(S){var T=Ee(S,null);T!=null&&x.set(T,!0)})),d&&d.eachComponent(y,function(S){var T=x&&x.get(S.id)!=null;if(!T)if(Jc(c))if(S instanceof qt)c.type===Ai&&!c.notBlur&&!S.get(["emphasis","disabled"])&&jy(S,c,h._api);else{var M=lu(S.mainType,S.componentIndex,c.name,h._api),D=M.focusSelf,A=M.dispatchers;c.type===Ai&&D&&!c.notBlur&&ou(S.mainType,S.componentIndex,h._api),A&&b(A,function(C){c.type===Ai?Ea(C):La(C)})}else fu(c)&&S instanceof qt&&(Jy(S,c,h._api),$c(S),fr(h))},h),d&&d.eachComponent(y,function(S){var T=x&&x.get(S.id)!=null;T||w(h[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function w(S){S&&S.__alive&&S[p]&&S[p](S.__model,d,h._api,c)}},Ui={prepareAndUpdate:function(h){oo(this),Ui.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var c=this._model,v=this._api,m=this._zr,d=this._coordSysMgr,g=this._scheduler;if(c){c.setUpdatePayload(h),g.restoreData(c,h),g.performSeriesTasks(c),d.create(c,v),g.performDataProcessorTasks(c,h),mv(this,c),d.update(c,v),e(c),g.performVisualTasks(c,h),yv(this,c,v,h,p);var y=c.get("backgroundColor")||"transparent",_=c.get("darkMode");m.setBackgroundColor(y),_!=null&&_!=="auto"&&m.setDarkMode(_),ur.trigger("afterupdate",c,v)}},updateTransform:function(h){var p=this,c=this._model,v=this._api;if(c){c.setUpdatePayload(h);var m=[];c.eachComponent(function(g,y){if(g!=="series"){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,c,v,h);x&&x.update&&m.push(_)}else m.push(_)}});var d=W();c.eachSeries(function(g){var y=p._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,c,v,h);_&&_.update&&d.set(g.uid,1)}else d.set(g.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:d}),cf(this,c,v,h,{},d),ur.trigger("afterupdate",c,v)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),Ut.markUpdateMethod(h,"updateView"),e(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),yv(this,p,this._api,h,{}),ur.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(v){v.getData().clearAllVisual()}),Ut.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(v,m){if(v!=="series"){var d=p.getViewOfComponentModel(m);d&&d.__alive&&d.updateVisual(m,c,p._api,h)}}),c.eachSeries(function(v){var m=p._chartsMap[v.__viewId];m.updateVisual(v,c,p._api,h)}),ur.trigger("afterupdate",c,this._api))},updateLayout:function(h){Ui.update.call(this,h)}},dv=function(h,p,c,v){if(h._disposed){h.id;return}for(var m=h._model,d=h._coordSysMgr.getCoordinateSystems(),g,y=$l(m,c),_=0;_<d.length;_++){var x=d[_];if(x[p]&&(g=x[p](m,y,v))!=null)return g}},mv=function(h,p){var c=h._chartsMap,v=h._scheduler;p.eachSeries(function(m){v.updateStreamModes(m,c[m.__viewId])})},gv=function(h,p){var c=this,v=this.getModel(),m=h.type,d=h.escapeConnect,g=vf[m],y=g.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&Le(_[0]);this[de]=!0;var S=[h],T=!1;h.batch&&(T=!0,S=k(h.batch,function(P){return P=K(N({},P),h),P.batch=null,P}));var M=[],D,A=fu(h),C=Jc(h);if(C&&Qc(this._api),b(S,function(P){if(D=g.action(P,c._model,c._api),D=D||N({},P),D.type=y.event||D.type,M.push(D),C){var R=$o(h),z=R.queryOptionMap,Z=R.mainTypeSpecified,V=Z?z.keys()[0]:"series";hf(c,x,P,V),fr(c)}else A?(hf(c,x,P,"series"),fr(c)):w&&hf(c,x,P,w.main,w.sub)}),x!=="none"&&!C&&!A&&!w)try{this[Re]?(oo(this),Ui.update.call(this,h),this[Re]=null):Ui[x].call(this,h)}catch(P){throw this[de]=!1,P}if(T?D={type:y.event||m,escapeConnect:d,batch:M}:D=M[0],this[de]=!1,!p){var E=this._messageCenter;if(E.trigger(D.type,D),A){var L={type:"selectchanged",escapeConnect:d,selected:t0(v),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};E.trigger(L.type,L)}}},Vs=function(h){for(var p=this._pendingActions;p.length;){var c=p.shift();gv.call(this,c,h)}},Bs=function(h){!h&&this.trigger("updated")},tS=function(h,p){h.on("rendered",function(c){p.trigger("rendered",c),h.animation.isFinished()&&!p[Re]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},eS=function(h,p){h.on("mouseover",function(c){var v=c.target,m=hi(v,ss);m&&(Qy(m,c,p._api),fr(p))}).on("mouseout",function(c){var v=c.target,m=hi(v,ss);m&&($y(m,c,p._api),fr(p))}).on("click",function(c){var v=c.target,m=hi(v,function(y){return ut(y).dataIndex!=null},!0);if(m){var d=m.selected?"unselect":"select",g=ut(m);p._api.dispatchAction({type:d,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],c=[],v=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(y==="series"?c:p).push({zlevel:x,z:w,idx:_.componentIndex,type:y,key:S})}),v){var m=p.concat(c),d,g;oa(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(m,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,w=y.key;d!=null&&(x=Math.max(d,x)),w?(x===d&&w!==g&&x++,g=w):g&&(x===d&&x++,g=""),d=x,_.setZLevel(x)})}}yv=function(h,p,c,v,m){i(p),rS(h,p,c,v,m),b(h._chartsViews,function(d){d.__alive=!1}),cf(h,p,c,v,m),b(h._chartsViews,function(d){d.__alive||d.remove(p,c)})},rS=function(h,p,c,v,m,d){b(d||h._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,c,v),s(y,g),f(y,g)})},cf=function(h,p,c,v,m,d){var g=h._scheduler;m=N(m||{},{updatedSeries:p.getSeries()}),ur.trigger("series:beforeupdate",p,c,m);var y=!1;p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;g.updatePayload(w,v),u(_,x),d&&d.get(_.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),$c(_)}),g.unfinished=y||g.unfinished,ur.trigger("series:layoutlabels",p,c,m),ur.trigger("series:transition",p,c,m),p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];s(_,x),f(_,x)}),n(h,p),ur.trigger("series:afterupdate",p,c,m)},fr=function(h){h[cv]=!0,h.getZr().wakeUp()},aS=function(h){h[cv]&&(h.getZr().storage.traverse(function(p){ka(p)||a(p)}),h[cv]=!1)};function a(h){for(var p=[],c=h.currentStates,v=0;v<c.length;v++){var m=c[v];m==="emphasis"||m==="blur"||m==="select"||p.push(m)}h.selected&&h.states.select&&p.push("select"),h.hoverState===as&&h.states.emphasis?p.push("emphasis"):h.hoverState===is&&h.states.blur&&p.push("blur"),h.useStates(p)}function n(h,p){var c=h._zr,v=c.storage,m=0;v.traverse(function(d){d.isGroup||m++}),m>p.get("hoverLayerThreshold")&&!j.node&&!j.worker&&p.eachSeries(function(d){if(!d.preventUsingHoverLayer){var g=h._chartsMap[d.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,p){var c=h.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=c)})}function s(h,p){if(!h.preventAutoZ){var c=h.get("z")||0,v=h.get("zlevel")||0;p.eachRendered(function(m){return l(m,c,v,-1/0),!0})}}function l(h,p,c,v){var m=h.getTextContent(),d=h.getTextGuideLine(),g=h.isGroup;if(g)for(var y=h.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],p,c,v),v);else h.z=p,h.zlevel=c,v=Math.max(h.z2,v);if(m&&(m.z=p,m.zlevel=c,isFinite(v)&&(m.z2=v+2)),d){var x=h.textGuideLineConfig;d.z=p,d.zlevel=c,isFinite(v)&&(d.z2=v+(x&&x.showAbove?1:-1))}return v}function u(h,p){p.eachRendered(function(c){if(!ka(c)){var v=c.getTextContent(),m=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,p){var c=h.getModel("stateAnimation"),v=h.isAnimationEnabled(),m=c.get("duration"),d=m>0?{duration:m,delay:c.get("delay"),easing:c.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ka(g))return;if(g instanceof at&&r0(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=d;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=d),x&&(x.stateTransition=d)}g.__dirty&&a(g)}})}iS=function(h){return new((function(p){I(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);v=v.parent}},c.prototype.enterEmphasis=function(v,m){Ea(v,m),fr(h)},c.prototype.leaveEmphasis=function(v,m){La(v,m),fr(h)},c.prototype.enterBlur=function(v){qy(v),fr(h)},c.prototype.leaveBlur=function(v){qc(v),fr(h)},c.prototype.enterSelect=function(v){Kc(v),fr(h)},c.prototype.leaveSelect=function(v){jc(v),fr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(v){return h.getViewOfComponentModel(v)},c.prototype.getViewOfSeriesModel=function(v){return h.getViewOfSeriesModel(v)},c})(Hu))(h)},vS=function(h){function p(c,v){for(var m=0;m<c.length;m++){var d=c[m];d[pv]=v}}b(Fs,function(c,v){h._messageCenter.on(v,function(m){if(mf[h.group]&&h[pv]!==Jx){if(m&&m.escapeConnect)return;var d=h.makeActionFromEvent(m),g=[];b(Ja,function(y){y!==h&&y.group===h.group&&g.push(y)}),p(g,Jx),b(g,function(y){y[pv]!==xL&&y.dispatchAction(d)}),p(g,SL)}})})}})(),t})(Wt),Tv=pf.prototype;Tv.on=uS("on");Tv.off=uS("off");Tv.one=function(r,t,e){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(r,a)}this.on.call(this,r,a,e)};var bL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var vf={},Fs={},_v=[],xv=[],df=[],dS={},Sv={},Ja={},mf={},wL=+new Date-0,TL=+new Date-0,Mv="_echarts_instance_";function ML(r,t,e){var i=!(e&&e.ssr);if(i){var a=Cv(r);if(a)return a}var n=new pf(r,t,e);return n.id="ec_"+wL++,Ja[n.id]=n,i&&xc(r,Mv,n.id),vS(n),ur.trigger("afterinit",n),n}function CL(r){if(O(r)){var t=r;r=null,b(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+TL++,b(t,function(e){e.group=r})}return mf[r]=!0,r}function mS(r){mf[r]=!1}var DL=mS;function AL(r){U(r)?r=Ja[r]:r instanceof pf||(r=Cv(r)),r instanceof pf&&!r.isDisposed()&&r.dispose()}function Cv(r){return Ja[jg(r,Mv)]}function EL(r){return Ja[r]}function Dv(r,t){dS[r]=t}function yf(r){it(xv,r)<0&&xv.push(r)}function _f(r,t){Pv(_v,r,t,pL)}function Av(r){Hs("afterinit",r)}function Ev(r){Hs("afterupdate",r)}function Hs(r,t){ur.on(r,t)}function Br(r,t,e){G(t)&&(e=t,t="");var i=F(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!Fs[t]&&(Ft($x.test(i)&&$x.test(t)),vf[i]||(vf[i]={action:e,actionInfo:r}),Fs[t]=i)}function Lv(r,t){Ri.register(r,t)}function LL(r){var t=Ri.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Iv(r,t){Pv(df,r,t,oS,"layout")}function ci(r,t){Pv(df,r,t,sS,"visual")}var nS=[];function Pv(r,t,e,i,a){if((G(t)||F(t))&&(e=t,t=i),!(it(nS,e)>=0)){nS.push(e);var n=ov.wrapStageHandler(e,a);n.__prio=t,n.__raw=e,r.push(n)}}function xf(r,t){Sv[r]=t}function IL(r){gl({createCanvas:r})}function Rv(r,t,e){var i=hv("registerMap");i&&i(r,t,e)}function PL(r){var t=hv("getMap");return t&&t(r)}var Ov=V_;ci(bv,fx);ci(gf,hx);ci(gf,cx);ci(bv,Mx);ci(gf,Cx);ci(lS,fv);yf(Gu);_f(hL,Fp);xf("default",nv);Br({type:Ai,event:Ai,update:Ai},Dt);Br({type:ns,event:ns,update:ns},Dt);Br({type:Un,event:Un,update:Un},Dt);Br({type:os,event:os,update:os},Dt);Br({type:Vn,event:Vn,update:Vn},Dt);Dv("light",gx);Dv("dark",Sx);var RL={};function Gs(r){return r==null?0:r.length||1}function gS(r){return r}var NL=(function(){function r(t,e,i,a,n,o){this._old=t,this._new=e,this._oldKeyGetter=i||gS,this._newKeyGetter=a||gS,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},a=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,i,n,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=i[s],u=Gs(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},a={},n=[],o=[];this._initIndexMap(t,i,n,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],h=Gs(u),p=Gs(f);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&p===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var a=t[i],n=e[a],o=Gs(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);e[a]=null}},r.prototype._initIndexMap=function(t,e,i,a){for(var n=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(n||(i[o]=s),!!e){var l=e[s],u=Gs(l);u===0?(e[s]=o,n&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),yS=NL;var zL=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function _S(r,t){var e={},i=e.encode={},a=W(),n=[],o=[],s={};b(r.dimensions,function(p){var c=r.getDimensionInfo(p),v=c.coordDim;if(v){var m=c.coordDimIndex;Nv(i,v)[m]=p,c.isExtraCoord||(a.set(v,1),kL(c.type)&&(n[0]=p),Nv(s,v)[m]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(p)}ku.each(function(d,g){var y=Nv(i,g),_=c.otherDims[g];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};a.each(function(p,c){var v=i[c];u[c]=v[0],l=l.concat(v)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=k(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,e.userOutput=new zL(s,t),e}function Nv(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function xS(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function kL(r){return!(r==="ordinal"||r==="time")}var UL=(function(){function r(t){this.otherDims={},t!=null&&N(this,t)}return r})(),so=UL;var VL=ht(),BL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zv=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Uv(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return et(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Yu(this.source),i=!Vv(t),a="",n=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=e?p.name:null,u=p.type)}n.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=BL[u]||"f",f&&(a+=f.uid),a+="$"}var c=this.source,v=[c.seriesLayoutBy,c.startIndex,a].join("$$");return{dimensions:n,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===e)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Sf(r){return r instanceof zv}function kv(r){for(var t=W(),e=0;e<(r||[]).length;e++){var i=r[e],a=F(i)?i.name:i;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function Uv(r){var t=VL(r);return t.dimNameMap||(t.dimNameMap=kv(r.dimensionsDefine))}function Vv(r){return r>30}var Ws=F,Vi=k,FL=typeof Int32Array>"u"?Array:Int32Array,HL="e\0\0",SS=-1,GL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],WL=["_approximateExtent"],bS,bf,Ys,Zs,Bv,wf,Fv,YL=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;Sf(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,i=t),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],p=U(h)?new so({name:h}):h instanceof so?h:new so(h),c=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=c,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(c),n[c]=p,u[c]!=null&&(l=!0),p.createInvertedIndices&&(s[c]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),a&&(p.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=W();b(o,function(d){m.set(n[d].storeDimIndex,d)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(nt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var a=i.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var a=this,n;if(t instanceof Is&&(n=t),!n){var o=this.dimensions,s=to(t)||Ot(t)?new Zu(t,o.length):t;n=new Is;var l=Vi(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=_S(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=e[l],o&&Fv(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var a=this._dimInfos[e[i]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==We&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===oe;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&Wg(h)&&(this.hasItemOption=!0),h){var p=h.name;n[f]==null&&p!=null&&(n[f]=Ee(p,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Ee(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Fv(this,f);bS(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Ws(t)?N(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Ys(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[i]:i},r.prototype.getId=function(t){return bf(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,a=this._dimInfos[t];if(a)return i.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,a=this._dimInfos[t];if(a)return i.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,a=this._store;return O(t)?a.getValues(Vi(t,function(n){return i._getStoreDimIndex(n)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,a=e.length;i<a;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],a=i[e];return a==null||isNaN(a)?SS:a},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]);var a=i||this,n=Vi(Zs(t),this._getStoreDimIndex,this);this._store.each(n,a?H(e,a):e)},r.prototype.filterSelf=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]);var a=i||this,n=Vi(Zs(t),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?H(e,a):e),this},r.prototype.selectRange=function(t){"use strict";var e=this,i={},a=lt(t),n=[];return b(a,function(o){var s=e._getStoreDimIndex(o);i[s]=t[o],n.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){"use strict";G(t)&&(i=e,e=t,t=[]),i=i||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},i),a},r.prototype.map=function(t,e,i,a){"use strict";var n=i||a||this,o=Vi(Zs(t),this._getStoreDimIndex,this),s=wf(this);return s._store=this._store.map(o,n?H(e,n):e),s},r.prototype.modify=function(t,e,i,a){var n=this,o=i||a||this,s=Vi(Zs(t),this._getStoreDimIndex,this);this._store.modify(s,o?H(e,o):e)},r.prototype.downSample=function(t,e,i,a){var n=wf(this);return n._store=this._store.downSample(this._getStoreDimIndex(t),e,i,a),n},r.prototype.lttbDownSample=function(t,e){var i=wf(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new _t(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new yS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return bf(t,i)},function(i){return bf(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ws(t)?N(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],a=i&&i[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,a=i[t];a||(a=i[t]={});var n=a[e];return n==null&&(n=this.getVisual(e),O(n)?n=n.slice():Ws(n)&&(n=N({},n)),a[e]=n),n},r.prototype.setItemVisual=function(t,e,i){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Ws(e)?N(a,e):a[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ws(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;ky(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){b(this._graphicEls,function(i,a){i&&t&&t.call(e,i,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Vi(this.dimensions,this._getDimInfo,this),this.hostModel)),Bv(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=i.apply(this,arguments);return e.apply(this,[a].concat(Mo(arguments)))})},r.internalField=(function(){bS=function(t){var e=t._invertedIndicesMap;b(e,function(i,a){var n=t._dimInfos[a],o=n.ordinalMeta,s=t._store;if(o){i=e[a]=new FL(o.categories.length);for(var l=0;l<i.length;l++)i[l]=SS;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Ys=function(t,e,i){return Ee(t._getCategory(e,i),null)},bf=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Ys(t,t._idDimIdx,e)),i==null&&(i=HL+e),i},Zs=function(t){return O(t)||(t=t!=null?[t]:[]),t},wf=function(t){var e=new r(t._schema?t._schema:Vi(t.dimensions,t._getDimInfo,t),t.hostModel);return Bv(e,t),e},Bv=function(t,e){b(GL.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,b(WL,function(i){t[i]=Y(e[i])}),t._calculationInfo=N({},e._calculationInfo)},Fv=function(t,e){var i=t._nameList,a=t._idList,n=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=a[e];if(s==null&&n!=null&&(i[e]=s=Ys(t,n,e)),l==null&&o!=null&&(a[e]=l=Ys(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}})(),r})(),lo=YL;var $v={};ze($v,{createDimensions:()=>wS,createList:()=>AI,createScale:()=>LI,createSymbol:()=>Vt,createTextStyle:()=>PI,dataStack:()=>EI,enableHoverEmphasis:()=>Ei,getECData:()=>ut,getLayoutRect:()=>pe,mixinAxisModelCommonMethods:()=>II});function wS(r,t){return uo(r,t).dimensions}function uo(r,t){to(r)||(r=eo(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),n=[],o=XL(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Vv(o),l=i===r.dimensionsDefine,u=l?Uv(r):kv(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=W(f),p=new Qp(o),c=0;c<p.length;c++)p[c]=-1;function v(D){var A=p[D];if(A<0){var C=i[D],E=F(C)?C:{name:C},L=new so,P=E.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var R=n.length;return p[D]=R,L.storeDimIndex=D,n.push(L),L}return n[A]}if(!s)for(var c=0;c<o;c++)v(c);h.each(function(D,A){var C=wt(D).slice();if(C.length===1&&!U(C[0])&&C[0]<0){h.set(A,!1);return}var E=h.set(A,[]);b(C,function(L,P){var R=U(L)?u.get(L):L;R!=null&&R<o&&(E[P]=R,d(v(R),A,P))})});var m=0;b(e,function(D){var A,C,E,L;if(U(D))A=D,L={};else{L=D,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=P,C=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=wt(R),!R.length)for(var z=0;z<(C&&C.length||1);z++){for(;m<o&&v(m).coordDim!=null;)m++;m<o&&R.push(m++)}b(R,function(Z,V){var B=v(Z);if(l&&L.type!=null&&(B.type=L.type),d(K(B,L),A,V),B.name==null&&C){var X=C[V];!F(X)&&(X={name:X}),B.name=B.displayName=X.name,B.defaultTooltip=X.defaultTooltip}E&&K(B.otherDims,E)})}});function d(D,A,C){ku.get(A)!=null?D.otherDims[A]=C:(D.coordDim=A,D.coordDimIndex=C,a.set(A,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)b(n,function(D){w(D)}),n.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),M=T.coordDim;M==null&&(T.coordDim=qL(x,a,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),w(T),T.type==null&&(Vu(r,S)===Xt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return ZL(n),new zv({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function ZL(r){for(var t=W(),e=0;e<r.length;e++){var i=r[e],a=i.name,n=t.get(a)||0;n>0&&(i.name=a+(n-1)),n++,t.set(a,n)}}function XL(r,t,e,i){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return b(t,function(n){var o;F(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function qL(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var KL=(function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r})();function TS(r){var t=r.get("coordinateSystem"),e=new KL(t),i=jL[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var jL={cartesian2d:function(r,t,e,i){var a=r.getReferringComponents("xAxis",zt).models[0],n=r.getReferringComponents("yAxis",zt).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",n),fo(a)&&(i.set("x",a),t.firstCategoryDimIndex=0),fo(n)&&(i.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var a=r.getReferringComponents("singleAxis",zt).models[0];t.coordSysDims=["single"],e.set("single",a),fo(a)&&(i.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var a=r.getReferringComponents("polar",zt).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",o),fo(n)&&(i.set("radius",n),t.firstCategoryDimIndex=0),fo(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=n.dimensions.slice();b(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),fo(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function fo(r){return r.get("type")==="category"}function Tf(r,t,e){e=e||{};var i=e.byIndex,a=e.stackedCoordDimension,n,o,s;QL(t)?n=t:(o=t.schema,n=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,p;if(b(n,function(y,_){U(y)&&(n[_]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,v=f.type,m=0;b(n,function(y){y.coordDim===c&&m++});var d={name:h,coordDim:c,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},g={name:p,coordDim:p,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(d.storeDimIndex=s.ensureCalculationDimension(p,v),g.storeDimIndex=s.ensureCalculationDimension(h,v)),o.appendCalculationDimension(d),o.appendCalculationDimension(g)):(n.push(d),n.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function QL(r){return!Sf(r.schema)}function Tr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Mf(r,t){return Tr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $L(r,t){var e=r.get("coordinateSystem"),i=Ri.get(e),a;return t&&t.coordSysDims&&(a=k(t.coordSysDims,function(n){var o={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");o.type=xS(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function JL(r,t,e){var i,a;return e&&b(r,function(n,o){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function tI(r,t,e){e=e||{};var i=t.getSourceManager(),a,n=!1;r?(n=!0,a=eo(r)):(a=i.getSource(),n=a.sourceFormat===oe);var o=TS(t),s=$L(t,o),l=e.useEncodeDefaulter,u=G(l)?l:l?ct(u_,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=uo(a,f),p=JL(h.dimensions,e.createInvertedIndices,o),c=n?null:i.getSharedDataStore(h),v=Tf(t,{schema:h,store:c}),m=new lo(h,t);m.setCalculationInfo(v);var d=p!=null&&eI(a)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return m.hasItemOption=!1,m.initData(n?a:c,null,d),m}function eI(r){if(r.sourceFormat===oe){var t=rI(r.data||[]);return!O(ti(t))}}function rI(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Fr=tI;var MS=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();wi(MS);var Oe=MS;var iI=0,aI=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++iI}return r.createByAxisModel=function(t){var e=t.option,i=e.data,a=i&&k(i,nI);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!U(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r})();function nI(r){return F(r)&&r.value!=null?r.value:r+""}var Xs=aI;function qs(r){return r.type==="interval"||r.type==="log"}function DS(r,t,e,i){var a={},n=r[1]-r[0],o=a.interval=Ln(n/t,!0);e!=null&&o<e&&(o=a.interval=e),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Hv(o),l=a.niceTickExtent=[bt(Math.ceil(r[0]/o)*o,s),bt(Math.floor(r[1]/o)*o,s)];return oI(l,r),a}function Cf(r){var t=Math.pow(10,En(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,bt(e*t)}function Hv(r){return ge(r)+2}function CS(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function oI(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),CS(r,0,t),CS(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Bi(r,t){return r>=t[0]&&r<=t[1]}function Fi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Hi(r,t){return r*(t[1]-t[0])+t[0]}var AS=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Xs({})),O(a)&&(a=new Xs({categories:k(a,function(n){return F(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:U(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Bi(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Fi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Hi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,a=i[0];a<=i[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];a[o]=u,n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a.push(f),n[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Oe);Oe.registerClass(AS);var Gv=AS;var tn=bt,ES=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Bi(e,this._extent)},t.prototype.normalize=function(e){return Fi(e,this._extent)},t.prototype.scale=function(e){return Hi(e,this._extent)},t.prototype.setExtent=function(e,i){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(i)||(a[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hv(e)},t.prototype.getTicks=function(e){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]<n[0]&&(e?s.push({value:tn(n[0]-i,o)}):s.push({value:a[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=tn(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(e?s.push({value:tn(f+i,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,p=h/e;u<e-1;){var c=tn(l.value+(u+1)*p);c>n[0]&&c<n[1]&&f.push(c),u++}a.push(f)}return a},t.prototype.getLabel=function(e,i){if(e==null)return"";var a=i&&i.precision;a==null?a=ge(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var n=tn(e.value,a,!0);return bs(n)},t.prototype.calcNiceTicks=function(e,i,a){e=e||5;var n=this._extent,o=n[1]-n[0];if(isFinite(o)){o<0&&(o=-o,n.reverse());var s=DS(n,e,i,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var a=Math.abs(i[0]);e.fixMax||(i[1]+=a/2),i[0]-=a/2}else i[1]=1;var n=i[1]-i[0];isFinite(n)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=tn(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=tn(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t})(Oe);Oe.registerClass(ES);var pi=ES;var LS=typeof Float32Array<"u",sI=LS?Float32Array:Array;function Ye(r){return O(r)?LS?new Float32Array(r):r:new sI(r)}var lI="__ec_stack_";function Wv(r){return r.get("stack")||lI+r.seriesIndex}function Yv(r){return r.dim+r.index}function Zv(r,t){var e=[];return t.eachSeriesByType(r,function(i){OS(i)&&e.push(i)}),e}function uI(r){var t={};b(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),p=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),v=h.getStore(),m=0,d=v.count();m<d;++m){var g=v.get(c,m);t[p]?t[p].push(g):t[p]=[g]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];if(a){a.sort(function(l,u){return l-u});for(var n=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(n=n===null?s:Math.min(n,s))}e[i]=n}}return e}function Xv(r){var t=uI(r),e=[];return b(r,function(i){var a=i.coordinateSystem,n=a.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=t[l],f=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?f/p*u:f}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var v=yt(i.get("barWidth"),s),m=yt(i.get("barMaxWidth"),s),d=yt(i.get("barMinWidth")||(NS(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:d,barGap:g,barCategoryGap:y,axisKey:Yv(n),stackId:Wv(i)})}),fI(e)}function fI(r){var t={};b(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=t[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var p=i.barMinWidth;p&&(l[u].minWidth=p);var c=i.barGap;c!=null&&(s.gap=c);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var e={};return b(t,function(i,a){e[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=lt(n).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),f=yt(i.gap,1),h=i.remainedWidth,p=i.autoWidthCount,c=(h-u)/(p+(p-1)*f);c=Math.max(c,0),b(n,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var x=g.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),g.width=x,h-=x+f*x,p--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==c&&(g.width=x,h-=x+f*x,p--)}}),c=(h-u)/(p+(p-1)*f),c=Math.max(c,0);var v=0,m;b(n,function(g,y){g.width||(g.width=c),m=g,v+=g.width*(1+f)}),m&&(v-=m.width*f);var d=-v/2;b(n,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:d,width:g.width},d+=g.width*(1+f)})}),e}function IS(r,t,e){if(r&&t){var i=r[Yv(t)];return i!=null&&e!=null?i[Wv(e)]:i}}function PS(r,t){var e=Zv(r,t),i=Xv(e);b(e,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Wv(a),u=i[Yv(s)][l],f=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function RS(r){return{seriesType:r,plan:Ka(),reset:function(t){if(OS(t)){var e=t.getData(),i=t.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(n.dim),f=e.getCalculationInfo("stackResultDimension"),h=Tr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),p=n.isHorizontal(),c=hI(a,n),v=NS(t),m=t.get("barMinHeight")||0,d=f&&e.getDimensionIndex(f),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var w=_.count,S=v&&Ye(w*3),T=v&&l&&Ye(w*3),M=v&&Ye(w),D=i.master.getRect(),A=p?D.width:D.height,C,E=x.getStore(),L=0;(C=_.next())!=null;){var P=E.get(h?d:o,C),R=E.get(s,C),z=c,Z=void 0;h&&(Z=+P-E.get(o,C));var V=void 0,B=void 0,X=void 0,Q=void 0;if(p){var $=i.dataToPoint([P,R]);if(h){var mt=i.dataToPoint([Z,R]);z=mt[0]}V=z,B=$[1]+y,X=$[0]-z,Q=g,Math.abs(X)<m&&(X=(X<0?-1:1)*m)}else{var $=i.dataToPoint([R,P]);if(h){var mt=i.dataToPoint([R,Z]);z=mt[1]}V=$[0]+y,B=z,X=g,Q=$[1]-z,Math.abs(Q)<m&&(Q=(Q<=0?-1:1)*m)}v?(S[L]=V,S[L+1]=B,S[L+2]=p?X:Q,T&&(T[L]=p?D.x:V,T[L+1]=p?B:D.y,T[L+2]=A),M[C]=C):x.setItemLayout(C,{x:V,y:B,width:X,height:Q}),L+=3}v&&x.setLayout({largePoints:S,largeDataIndices:M,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function OS(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function NS(r){return r.pipelineContext&&r.pipelineContext.large}function hI(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var cI=function(r,t,e,i){for(;e<i;){var a=e+i>>>1;r[a][1]<t?e=a+1:i=a}return e},kS=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return oi(e.value,Tp[Q0(Ga(this._minLevelUnit))]||Tp.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,a){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return $0(e,i,a,o,n)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,a=[];if(!e)return a;a.push({value:i[0],level:0});var n=this.getSetting("useUTC"),o=_I(this._minLevelUnit,this._approxInterval,n,i);return a=a.concat(o),a.push({value:i[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=He,i[1]+=He),i[1]===-1/0&&i[0]===1/0){var a=new Date;i[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),i[0]=i[1]-He}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,a){e=e||10;var n=this._extent,o=n[1]-n[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Af.length,l=Math.min(cI(Af,this._approxInterval,0,s),s-1);this._interval=Af[l][1],this._minLevelUnit=Af[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return nt(e)?e:+ie(e)},t.prototype.contain=function(e){return Bi(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Fi(this.parse(e),this._extent)},t.prototype.scale=function(e){return Hi(e,this._extent)},t.type="time",t})(pi),Af=[["second",Lu],["minute",Iu],["hour",Kn],["quarter-day",Kn*6],["half-day",Kn*12],["day",He*1.2],["half-week",He*3.5],["week",He*7],["month",He*31],["quarter",He*95],["half-year",wp/2],["year",wp]];function pI(r,t,e,i){var a=ie(t),n=ie(e),o=function(v){return Cp(a,v,i)===Cp(n,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},p=function(){return h()&&o("second")},c=function(){return p()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return p();case"millisecond":return c()}}function vI(r,t){return r/=He,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function dI(r){var t=30*He;return r/=t,r>6?6:r>3?3:r>2?2:1}function mI(r){return r/=Kn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zS(r,t){return r/=t?Iu:Lu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function gI(r){return Ln(r,!0)}function yI(r,t,e){var i=new Date(r);switch(Ga(t)){case"year":case"month":i[Dp(e)](0);case"day":i[Ap(e)](1);case"hour":i[Ep(e)](0);case"minute":i[Lp(e)](0);case"second":i[Ip(e)](0),i[Pp(e)](0)}return i.getTime()}function _I(r,t,e,i){var a=1e4,n=Mp,o=0;function s(A,C,E,L,P,R,z){for(var Z=new Date(C),V=C,B=Z[L]();V<E&&V<=i[1];)z.push({value:V}),B+=A,Z[P](B),V=Z.getTime();z.push({value:V,notAdd:!0})}function l(A,C,E){var L=[],P=!C.length;if(!pI(Ga(A),i[0],i[1],e)){P&&(C=[{value:yI(new Date(i[0]),A,e)},{value:i[1]}]);for(var R=0;R<C.length-1;R++){var z=C[R].value,Z=C[R+1].value;if(z!==Z){var V=void 0,B=void 0,X=void 0,Q=!1;switch(A){case"year":V=Math.max(1,Math.round(t/He/365)),B=Pu(e),X=t_(e);break;case"half-year":case"quarter":case"month":V=dI(t),B=Ha(e),X=Dp(e);break;case"week":case"half-week":case"day":V=vI(t,31),B=ys(e),X=Ap(e),Q=!0;break;case"half-day":case"quarter-day":case"hour":V=mI(t),B=qn(e),X=Ep(e);break;case"minute":V=zS(t,!0),B=_s(e),X=Lp(e);break;case"second":V=zS(t,!1),B=xs(e),X=Ip(e);break;case"millisecond":V=gI(t),B=Ss(e),X=Pp(e);break}s(V,z,Z,B,X,Q,L),A==="year"&&E.length>1&&R===0&&E.unshift({value:E[0].value-V})}}for(var R=0;R<L.length;R++)E.push(L[R]);return L}}for(var u=[],f=[],h=0,p=0,c=0;c<n.length&&o++<a;++c){var v=Ga(n[c]);if(j0(n[c])){l(n[c],u[u.length-1]||[],f);var m=n[c+1]?Ga(n[c+1]):null;if(v!==m){if(f.length){p=h,f.sort(function(A,C){return A.value-C.value});for(var d=[],g=0;g<f.length;++g){var y=f[g].value;(g===0||f[g-1].value!==y)&&(d.push(f[g]),y>=i[0]&&y<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&p>_/1.5||(u.push(d),h>_||r===n[c]))break}f=[]}}}for(var x=Mt(k(u,function(A){return Mt(A,function(C){return C.value>=i[0]&&C.value<=i[1]&&!C.notAdd})}),function(A){return A.length>0}),w=[],S=x.length-1,c=0;c<x.length;++c)for(var T=x[c],M=0;M<T.length;++M)w.push({value:T[M].value,level:S-c});w.sort(function(A,C){return A.value-C.value});for(var D=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&D.push(w[c]);return D}Oe.registerClass(kS);var US=kS;var VS=Oe.prototype,Ks=pi.prototype,xI=bt,SI=Math.floor,bI=Math.ceil,Ef=Math.pow,Mr=Math.log,qv=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new pi,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,a=this._extent,n=i.getExtent(),o=Ks.getTicks.call(this,e);return k(o,function(s){var l=s.value,u=bt(Ef(this.base,l));return u=l===a[0]&&this._fixMin?Lf(u,n[0]):u,u=l===a[1]&&this._fixMax?Lf(u,n[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var a=Mr(this.base);e=Mr(Math.max(0,e))/a,i=Mr(Math.max(0,i))/a,Ks.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=VS.getExtent.call(this);i[0]=Ef(e,i[0]),i[1]=Ef(e,i[1]);var a=this._originalScale,n=a.getExtent();return this._fixMin&&(i[0]=Lf(i[0],n[0])),this._fixMax&&(i[1]=Lf(i[1],n[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Mr(e[0])/Mr(i),e[1]=Mr(e[1])/Mr(i),VS.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,a=i[1]-i[0];if(!(a===1/0||a<=0)){var n=jl(a),o=e/a*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[bt(bI(i[0]/n)*n),bt(SI(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ks.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Mr(e)/Mr(this.base),Bi(e,this._extent)},t.prototype.normalize=function(e){return e=Mr(e)/Mr(this.base),Fi(e,this._extent)},t.prototype.scale=function(e){return e=Hi(e,this._extent),Ef(this.base,e)},t.type="log",t})(Oe),BS=qv.prototype;BS.getMinorTicks=Ks.getMinorTicks;BS.getLabel=Ks.getLabel;function Lf(r,t){return xI(r,ge(t))}Oe.registerClass(qv);var FS=qv;var wI=(function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var n=e.get("min",!0);n==null&&(n=e.get("startValue",!0));var o=this._modelMinRaw=n;G(o)?this._modelMinNum=If(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=If(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(G(s)?this._modelMaxNum=If(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=If(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=O(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[me(u[0],1),me(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,a=this._axisDataLen,n=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:e-n[0]*o),l==null&&(l=t?a?a-1:NaN:i+n[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ji(s)||Ji(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var p=this._determinedMin,c=this._determinedMax;return p!=null&&(s=p,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[MI[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=TI[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r})();var TI={min:"_determinedMin",max:"_determinedMax"},MI={min:"_dataMin",max:"_dataMax"};function Pf(r,t,e){var i=r.rawExtentInfo;return i||(i=new wI(r,t,e),r.rawExtentInfo=i,i)}function If(r,t){return t==null?null:Ji(t)?NaN:r.parse(t)}function Kv(r,t){var e=r.type,i=Pf(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=t.ecModel;if(o&&e==="time"){var s=Zv("bar",o),l=!1;if(b(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Xv(s),f=CI(a,n,t,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function CI(r,t,e,i){var a=e.axis.getExtent(),n=a[1]-a[0],o=IS(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;b(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;b(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/n,p=f/h-f;return t+=p*(l/u),r-=p*(s/u),{min:r,max:t}}function js(r,t){var e=t,i=Kv(r,e),a=i.extent,n=e.get("splitNumber");r instanceof FS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Rf(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Gv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new US({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Oe.getClass(t)||pi)}}function HS(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function en(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}})(t):U(t)?(function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n??"");return o}})(t):G(t)?(function(i){return function(a,n){return e!=null&&(n=a.value-e),i(Qs(r,a),n,a.level!=null?{level:a.level}:null)}})(t):function(i){return r.scale.getLabel(i)}}function Qs(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function GS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,a,n=e.getExtent();e instanceof Gv?a=e.count():(i=e.getTicks(),a=i.length);var o=r.getLabelModel(),s=en(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var h=i?i[f]:{value:n[0]+f},p=s(h,f),c=o.getTextRect(p),v=DI(c,o.get("rotate")||0);l?l.union(v):l=v}return l}}function DI(r,t){var e=t*Math.PI/180,i=r.width,a=r.height,n=i*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new J(r.x,r.y,n,o);return s}function Of(r){var t=r.get("interval");return t??"auto"}function Nf(r){return r.type==="category"&&Of(r.getLabelModel())===0}function jv(r,t){var e={};return b(r.mapDimensionsAll(t),function(i){e[Mf(r,i)]=!0}),lt(e)}function WS(r,t,e){t&&b(jv(t,e),function(i){var a=t.getApproximateExtent(i);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var zf=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function AI(r){return Fr(null,r)}var EI={isDimensionStacked:Tr,enableDataStack:Tf,getStackedDimension:Mf};function LI(r,t){var e=t;t instanceof _t||(e=new _t(t));var i=Rf(e);return i.setExtent(r[0],r[1]),js(i,e),i}function II(r){Jt(r,zf)}function PI(r,t){return t=t||{},Zt(r,null,null,t.state!=="normal")}var YS=[],RI={registerPreprocessor:yf,registerProcessor:_f,registerPostInit:Av,registerPostUpdate:Ev,registerUpdateLifecycle:Hs,registerAction:Br,registerCoordinateSystem:Lv,registerLayout:Iv,registerVisual:ci,registerTransform:Ov,registerLoading:xf,registerMap:Rv,registerImpl:Qx,PRIORITY:wv,ComponentModel:pt,ComponentView:Lt,SeriesModel:qt,ChartView:Ut,registerComponentModel:function(r){pt.registerClass(r)},registerComponentView:function(r){Lt.registerClass(r)},registerSeriesModel:function(r){qt.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerSubTypeDefaulter:function(r,t){pt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){vc(r,t)}};function Bt(r){if(O(r)){b(r,function(t){Bt(t)});return}it(YS,r)>=0||(YS.push(r),G(r)&&(r={install:r}),r.install(RI))}var OI=1e-8;function ZS(r,t){return Math.abs(r-t)<OI}function Jv(r,t,e){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var o=r[n];i+=rr(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!ZS(a[0],s[0])||!ZS(a[1],s[1]))&&(i+=rr(a[0],a[1],s[0],s[1],t,e)),i!==0}var zI=[];function td(r,t){for(var e=0;e<r.length;e++)Nt(r[e],r[e],t)}function XS(r,t,e,i){for(var a=0;a<r.length;a++){var n=r[a];i&&(n=i.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(Xe(t,t,n),qe(e,e,n))}}function kI(r){for(var t=0,e=0,i=0,a=r.length,n=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;t+=f,e+=(n+l)*f,i+=(o+u)*f,n=l,o=u}return t?[e/t/3,i/t/3,t]:[r[0][0]||0,r[0][1]||0]}var qS=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})();var ed=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})();var rd=(function(){function r(t){this.type="linestring",this.points=t}return r})();var KS=(function(r){I(t,r);function t(e,i,a){var n=r.call(this,e)||this;return n.type="geoJSON",n.geometries=i,n._center=a&&[a[0],a[1]],n}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,a=0,n=0;n<e.length;n++){var o=e[n],s=o.exterior,l=s&&s.length;l>a&&(i=o,a=l)}if(i)return kI(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?XS(s.exterior,a,n,e):b(s.points,function(l){XS(l,a,n,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new J(a[0],a[1],n[0]-a[0],n[1]-a[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var n=0,o=a.length;n<o;n++){var s=a[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Jv(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Jv(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,a,n){var o=this.getBoundingRect(),s=o.width/o.height;a?n||(n=a/s):a=s*n;for(var l=new J(e,i,a,n),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var p=f[h];p.type==="polygon"?(td(p.exterior,u),b(p.interiors,function(c){td(c,u)})):b(p.points,function(c){td(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t})(qS);var R3=(function(r){I(t,r);function t(e,i){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=i,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),a=[i.x+i.width/2,i.y+i.height/2],n=Kr(zI),o=e;o&&!o.isGeoSVGGraphicRoot;)Ke(n,o.getLocalTransform(),n),o=o.parent;return jr(n,n),Nt(a,a,n),a},t})(qS);function UI(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return b(i,function(a){var n=a.geometry,o=n.encodeOffsets,s=n.coordinates;if(o)switch(n.type){case"LineString":n.coordinates=jS(s,o,e);break;case"Polygon":id(s,o,e);break;case"MultiLineString":id(s,o,e);break;case"MultiPolygon":b(s,function(l,u){return id(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function id(r,t,e){for(var i=0;i<r.length;i++)r[i]=jS(r[i],t[i],e)}function jS(r,t,e){for(var i=[],a=t[0],n=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/e,l/e])}return i}function kf(r,t){return r=UI(r),k(Mt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,a=e.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new ed(o[0],o.slice(1)));break;case"MultiPolygon":b(a.coordinates,function(l){l[0]&&n.push(new ed(l[0],l.slice(1)))});break;case"LineString":n.push(new rd([a.coordinates]));break;case"MultiLineString":n.push(new rd(a.coordinates))}var s=new KS(i[t||"name"],n,i.cp);return s.properties=i,s})}var ad={};ze(ad,{MAX_SAFE_INTEGER:()=>Vg,asc:()=>ke,getPercentWithPrecision:()=>kg,getPixelPrecision:()=>An,getPrecision:()=>ge,getPrecisionSafe:()=>mc,isNumeric:()=>Ko,isRadianAroundZero:()=>_a,linearMap:()=>gt,nice:()=>Ln,numericToNumber:()=>$e,parseDate:()=>ie,quantile:()=>Bg,quantity:()=>jl,quantityExponent:()=>En,reformIntervals:()=>qo,remRadian:()=>Xo,round:()=>bt});var nd={};ze(nd,{format:()=>oi,parse:()=>ie});var od={};ze(od,{Arc:()=>Oa,BezierCurve:()=>ps,BoundingRect:()=>J,Circle:()=>Pa,CompoundPath:()=>du,Ellipse:()=>us,Group:()=>ft,Image:()=>ne,IncrementalDisplayable:()=>xu,Line:()=>Ve,LinearGradient:()=>Li,Polygon:()=>ii,Polyline:()=>xr,RadialGradient:()=>gu,Rect:()=>st,Ring:()=>cs,Sector:()=>Ue,Text:()=>vt,clipPointsByRect:()=>pp,clipRectByRect:()=>vp,createIcon:()=>Ba,extendPath:()=>up,extendShape:()=>lp,getShapeClass:()=>fp,getTransform:()=>ai,initProps:()=>Gt,makeImage:()=>vs,makePath:()=>Yn,mergePath:()=>hp,registerShape:()=>Be,resizePath:()=>wu,updateProps:()=>Ct});var sd={};ze(sd,{addCommas:()=>bs,capitalFirst:()=>i_,encodeHTML:()=>ee,formatTime:()=>r_,formatTpl:()=>Qn,getTextRect:()=>Rp,getTooltipMarker:()=>Ou,normalizeCssArray:()=>or,toCamelCase:()=>jn,truncateText:()=>tu});var ld={};ze(ld,{bind:()=>H,clone:()=>Y,curry:()=>ct,defaults:()=>K,each:()=>b,extend:()=>N,filter:()=>Mt,indexOf:()=>it,inherits:()=>To,isArray:()=>O,isFunction:()=>G,isObject:()=>F,isString:()=>U,map:()=>k,merge:()=>tt,reduce:()=>fe});var $s=ht();function QS(r,t){var e=k(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function $S(r){var t=r.getLabelModel().get("customValues");if(t){var e=en(r);return{labels:QS(r,t).map(function(i){var a={value:i};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:i}})}}return r.type==="category"?VI(r):FI(r)}function JS(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:QS(r,e)}:r.type==="category"?BI(r,t):{ticks:k(r.scale.getTicks(),function(i){return i.value})}}function VI(r){var t=r.getLabelModel(),e=t1(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function t1(r,t){var e=e1(r,"labels"),i=Of(t),a=r1(e,i);if(a)return a;var n,o;return G(i)?n=o1(r,i):(o=i==="auto"?HI(r):i,n=n1(r,o)),i1(e,i,{labels:n,labelCategoryInterval:o})}function BI(r,t){var e=e1(r,"ticks"),i=Of(t),a=r1(e,i);if(a)return a;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),G(i))n=o1(r,i,!0);else if(i==="auto"){var s=t1(r,r.getLabelModel());o=s.labelCategoryInterval,n=k(s.labels,function(l){return l.tickValue})}else o=i,n=n1(r,o,!0);return i1(e,i,{ticks:n,tickCategoryInterval:o})}function FI(r){var t=r.scale.getTicks(),e=en(r);return{labels:k(t,function(i,a){return{level:i.level,formattedLabel:e(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function e1(r,t){return $s(r)[t]||($s(r)[t]=[])}function r1(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function i1(r,t,e){return r.push({key:t,value:e}),e}function HI(r){var t=$s(r).autoInterval;return t??($s(r).autoInterval=r.calculateCategoryInterval())}function a1(r){var t=GI(r),e=en(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,c=0;l<=n[1];l+=s){var v=0,m=0,d=Mn(e({value:l}),t.font,"center","top");v=d.width*1.3,m=d.height*1.3,p=Math.max(p,v,7),c=Math.max(c,m,7)}var g=p/f,y=c/h;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),x=$s(r.model),w=r.getExtent(),S=x.lastAutoInterval,T=x.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=S:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function GI(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function n1(r,t,e){var i=en(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Nf(r),p=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;p&&u!==n[0]&&m(n[0]);for(var v=u;v<=n[1];v+=l)m(v);c&&v-l!==n[1]&&m(n[1]);function m(d){var g={value:d};s.push(e?d:{formattedLabel:i(g),rawLabel:a.getLabel(g),tickValue:d})}return s}function o1(r,t,e){var i=r.scale,a=en(r),n=[];return b(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&n.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var s1=[0,1],WI=(function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=i&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return An(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(i=i.slice(),l1(i,a.count())),gt(t,s1,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),l1(i,a.count()));var n=gt(t,i,s1,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=JS(this,e),a=i.ticks,n=k(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return YI(this,n,o,t.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),a=k(i,function(n){return k(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return $S(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return a1(this)},r})();function l1(r,t){var e=r[1]-r[0],i=t,a=e/i/2;r[0]+=a,r[1]-=a}function YI(r,t,e,i){var a=t.length;if(!r.onBand||e||!a)return;var n=r.getExtent(),o,s;if(a===1)t[0].coord=n[0],o=t[1]={coord:n[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;b(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var h=n[0]>n[1];p(t[0].coord,n[0])&&(i?t[0].coord=n[0]:t.shift()),i&&p(n[0],t[0].coord)&&t.unshift({coord:n[0]}),p(n[1],o.coord)&&(i?o.coord=n[1]:t.pop()),i&&p(o.coord,n[1])&&t.push({coord:n[1]});function p(c,v){return c=bt(c),v=bt(v),h?c>v:c<v}}var Uf=WI;function ZI(r){var t=pt.extend(r);return pt.registerClass(t),t}function XI(r){var t=Lt.extend(r);return Lt.registerClass(t),t}function qI(r){var t=qt.extend(r);return qt.registerClass(t),t}function KI(r){var t=Ut.extend(r);return Ut.registerClass(t),t}var dW=Math.PI*2,mW=ye.CMD;function u1(r,t,e,i,a,n,o,s){var l=a-r,u=n-t,f=e-r,h=i-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var c=l*f+u*h,v=c/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var m=o[0]=r+v*f,d=o[1]=t+v*h;return Math.sqrt((m-a)*(m-a)+(d-n)*(d-n))}var Gi=new rt,Pt=new rt,ue=new rt,Wi=new rt,Hr=new rt;var Vf=[],we=new rt;function f1(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Gi.fromArray(r[0]),Pt.fromArray(r[1]),ue.fromArray(r[2]),rt.sub(Wi,Gi,Pt),rt.sub(Hr,ue,Pt);var e=Wi.len(),i=Hr.len();if(!(e<.001||i<.001)){Wi.scale(1/e),Hr.scale(1/i);var a=Wi.dot(Hr),n=Math.cos(t);if(n<a){var o=u1(Pt.x,Pt.y,ue.x,ue.y,Gi.x,Gi.y,Vf,!1);we.fromArray(Vf),we.scaleAndAdd(Hr,o/Math.tan(Math.PI-t));var s=ue.x!==Pt.x?(we.x-Pt.x)/(ue.x-Pt.x):(we.y-Pt.y)/(ue.y-Pt.y);if(isNaN(s))return;s<0?rt.copy(we,Pt):s>1&&rt.copy(we,ue),we.toArray(r[1])}}}}function h1(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Gi.fromArray(r[0]),Pt.fromArray(r[1]),ue.fromArray(r[2]),rt.sub(Wi,Pt,Gi),rt.sub(Hr,ue,Pt);var i=Wi.len(),a=Hr.len();if(!(i<.001||a<.001)){Wi.scale(1/i),Hr.scale(1/a);var n=Wi.dot(t),o=Math.cos(e);if(n<o){var s=u1(Pt.x,Pt.y,ue.x,ue.y,Gi.x,Gi.y,Vf,!1);we.fromArray(Vf);var l=Math.PI/2,u=Math.acos(Hr.dot(t)),f=l+u-e;if(f>=l)rt.copy(we,ue);else{we.scaleAndAdd(Hr,s/Math.tan(Math.PI/2-f));var h=ue.x!==Pt.x?(we.x-Pt.x)/(ue.x-Pt.x):(we.y-Pt.y)/(ue.y-Pt.y);if(isNaN(h))return;h<0?rt.copy(we,Pt):h>1&&rt.copy(we,ue)}we.toArray(r[1])}}}}function ud(r,t,e,i){var a=e==="normal",n=a?r:r.ensureState(e);n.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function jI(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var a=dn(i[0],i[1]),n=dn(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*e,s=Lo([],i[1],i[0],o/a),l=Lo([],i[1],i[2],o/n),u=Lo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function c1(r,t,e){var i=r.getTextGuideLine(),a=r.getTextContent();if(!a){i&&r.removeTextGuideLine();return}for(var n=t.normal,o=n.get("show"),s=a.ignore,l=0;l<kn.length;l++){var u=kn[l],f=t[u],h=u==="normal";if(f){var p=f.get("show"),c=h?s:et(a.states[u]&&a.states[u].ignore,s);if(c||!et(p,o)){var v=h?i:i&&i.states[u];v&&(v.ignore=!0),i&&ud(i,!0,u,f);continue}i||(i=new xr,r.setTextGuideLine(i),!h&&(s||!o)&&ud(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),ud(i,!1,u,f)}}if(i){K(i.style,e),i.style.fill=null;var m=n.get("showAbove"),d=r.textGuideLineConfig=r.textGuideLineConfig||{};d.showAbove=m||!1,i.buildPath=jI}}function p1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<xe.length;i++){var a=xe[i];e[a]=r.getModel([a,t])}return e}function v1(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var a=i.label,n=a.getComputedTransform(),o=a.getBoundingRect(),s=!n||n[1]<1e-5&&n[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(n),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Hn(o,n):null;t.push({label:a,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:n})}}return t}function QI(r,t,e,i,a,n){var o=r.length;if(o<2)return;r.sort(function(D,A){return D.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=[],h=0,p=0;p<o;p++){var c=r[p],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var m=Math.max(-l,0);f.push(m),h+=m,s=v[t]+v[e]}h>0&&n&&S(-h/o,0,o);var d=r[0],g=r[o-1],y,_;x(),y<0&&T(-y,.8),_<0&&T(_,.8),x(),w(y,_,1),w(_,y,-1),x(),y<0&&M(-y),_<0&&M(_);function x(){y=d.rect[t]-i,_=a-g.rect[t]-g.rect[e]}function w(D,A,C){if(D<0){var E=Math.min(A,-D);if(E>0){S(E*C,0,o);var L=E+D;L<0&&T(-L*C,1)}else T(-D*C,1)}}function S(D,A,C){D!==0&&(u=!0);for(var E=A;E<C;E++){var L=r[E],P=L.rect;P[t]+=D,L.label[t]+=D}}function T(D,A){for(var C=[],E=0,L=1;L<o;L++){var P=r[L-1].rect,R=Math.max(r[L].rect[t]-P[t]-P[e],0);C.push(R),E+=R}if(E){var z=Math.min(Math.abs(D)/E,A);if(D>0)for(var L=0;L<o-1;L++){var Z=C[L]*z;S(Z,0,L+1)}else for(var L=o-1;L>0;L--){var Z=C[L-1]*z;S(-Z,L,o)}}}function M(D){var A=D<0?-1:1;D=Math.abs(D);for(var C=Math.ceil(D/(o-1)),E=0;E<o-1;E++)if(A>0?S(C,0,E+1):S(-C,o-E-1,o),D-=C,D<=0)return}return u}function d1(r,t,e,i){return QI(r,"y","height",t,e,i)}function m1(r){var t=[];r.sort(function(m,d){return d.priority-m.priority});var e=new J(0,0,0,0);function i(m){if(!m.ignore){var d=m.ensureState("emphasis");d.ignore==null&&(d.ignore=!1)}m.ignore=!0}for(var a=0;a<r.length;a++){var n=r[a],o=n.axisAligned,s=n.localRect,l=n.transform,u=n.label,f=n.labelLine;e.copy(n.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=n.obb,p=!1,c=0;c<t.length;c++){var v=t[c];if(e.intersect(v.rect)){if(o&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new Hn(v.localRect,v.transform)),h||(h=new Hn(s,l)),h.intersect(v.obb)){p=!0;break}}}p?(i(u),f&&i(f)):(u.attr("ignore",n.defaultAttr.ignore),f&&f.attr("ignore",n.defaultAttr.labelGuideIgnore),t.push(n))}}var $I=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var i;return Fr(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new ft,a=Vt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(a),a.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=e.itemHeight*.8,u=Vt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(qt),g1=$I;function ho(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var a=fi(r,t,e[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<e.length;o++)n.push(fi(r,t,e[o]));return n.join(" ")}}function Ff(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!O(t))return t+"";for(var i=[],a=0;a<e.length;a++){var n=r.getDimensionIndex(e[a]);n>=0&&i.push(t[n])}return i.join(" ")}var JI=(function(r){I(t,r);function t(e,i,a,n){var o=r.call(this)||this;return o.updateData(e,i,a,n),o}return t.prototype._createSymbol=function(e,i,a,n,o){this.removeAll();var s=Vt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=tP,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ea(this.childAt(0))},t.prototype.downplay=function(){La(this.childAt(0))},t.prototype.setZ=function(e,i){var a=this.childAt(0);a.zlevel=e,a.z=i},t.prototype.setDraggable=function(e,i){var a=this.childAt(0);a.draggable=e,a.cursor=!i&&e?"move":a.cursor},t.prototype.updateData=function(e,i,a,n){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?p.attr(c):Ct(p,c,s,i),Wn(p)}if(this._updateCommon(e,i,l,a,n),u){var p=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Gt(p,c,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,a,n,o){var s=this.childAt(0),l=e.hostModel,u,f,h,p,c,v,m,d,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,h=n.selectItemStyle,p=n.focus,c=n.blurScope,m=n.labelStatesModels,d=n.hoverScale,g=n.cursorStyle,v=n.emphasisDisabled),!n||e.hasItemOption){var y=n&&n.itemModel?n.itemModel:e.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),c=_.get("blurScope"),v=_.get("disabled"),m=Fe(y),d=_.getShallow("scale"),g=y.getShallow("cursor")}var x=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=of(e.getItemVisual(i,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var S=e.getItemVisual(i,"style"),T=S.fill;if(s instanceof ne){var M=s.style;s.useStyle(N({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(i,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var C=o&&o.useNameLabel;ar(s,m,{labelFetcher:l,labelDataIndex:i,defaultText:E,inheritColor:T,defaultOpacity:S.opacity});function E(R){return C?e.getName(R):ho(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),yr(this,p,c,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,a){var n=this.childAt(0),o=ut(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Gn(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Gn(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Ix(e.getItemVisual(i,"symbolSize"))},t})(ft);function tP(r,t){this.parent.drift(r,t)}var Js=JI;function fd(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function y1(r){return r!=null&&!F(r)&&(r={isIgnore:r}),r||{}}function _1(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Fe(t),cursorStyle:t.get("cursor")}}var eP=(function(){function r(t){this.group=new ft,this._SymbolCtor=t||Js}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=y1(e);var i=this.group,a=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=_1(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};n||i.removeAll(),t.diff(n).add(function(h){var p=f(h);if(fd(t,p,h,e)){var c=new o(t,h,l,u);c.setPosition(p),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,p){var c=n.getItemGraphicEl(p),v=f(h);if(!fd(t,v,h,e)){i.remove(c);return}var m=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType();if(!c||d&&d!==m)i.remove(c),c=new o(t,h,l,u),c.setPosition(v);else{c.updateData(t,h,l,u);var g={x:v[0],y:v[1]};s?c.attr(g):Ct(c,g,a)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var p=n.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,a){var n=t._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_1(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=y1(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var o=e.getItemLayout(n);if(fd(e,o,n,i)){var s=new this._SymbolCtor(e,n,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){ni(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},i.hostModel)}):e.removeAll()},r})(),x1=eP;function Hf(r,t,e){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=rP(a,e),o=i.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=k(r.dimensions,function(v){return t.mapDimension(v)}),p=!1,c=t.getCalculationInfo("stackResultDimension");return Tr(t,h[0])&&(p=!0,h[0]=c),Tr(t,h[1])&&(p=!0,h[1]=c),{dataDimsForPoint:h,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function rP(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:nt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function Gf(r,t,e,i){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=e.get(r.baseDim,i),o[1-n]=a,t.dataToPoint(o)}function iP(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,a){e.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function hd(r,t,e,i,a,n,o,s){for(var l=iP(r,t),u=[],f=[],h=[],p=[],c=[],v=[],m=[],d=Hf(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,S=void 0,T=void 0;switch(x.cmd){case"=":S=x.idx*2,T=x.idx1*2;var M=g[S],D=g[S+1],A=y[T],C=y[T+1];(isNaN(M)||isNaN(D))&&(M=A,D=C),u.push(M,D),f.push(A,C),h.push(e[S],e[S+1]),p.push(i[T],i[T+1]),m.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,L=d.dataDimsForPoint,P=a.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);T=E*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var R=Gf(d,a,t,E);h.push(R[0],R[1]),p.push(i[T],i[T+1]),m.push(t.getRawIndex(E));break;case"-":w=!1}w&&(c.push(x),v.push(v.length))}v.sort(function(jt,Tt){return m[jt]-m[Tt]});for(var z=u.length,Z=Ye(z),V=Ye(z),B=Ye(z),X=Ye(z),Q=[],_=0;_<v.length;_++){var $=v[_],mt=_*2,xt=$*2;Z[mt]=u[xt],Z[mt+1]=u[xt+1],V[mt]=f[xt],V[mt+1]=f[xt+1],B[mt]=h[xt],B[mt+1]=h[xt+1],X[mt]=p[xt],X[mt+1]=p[xt+1],Q[_]=c[$]}return{current:Z,next:V,stackedOnCurrent:B,stackedOnNext:X,status:Q}}var Yi=Math.min,Zi=Math.max;function rn(r,t){return isNaN(r)||isNaN(t)}function cd(r,t,e,i,a,n,o,s,l){for(var u,f,h,p,c,v,m=e,d=0;d<i;d++){var g=t[m*2],y=t[m*2+1];if(m>=a||m<0)break;if(rn(g,y)){if(l){m+=n;continue}break}if(m===e)r[n>0?"moveTo":"lineTo"](g,y),h=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){m+=n;continue}if(o>0){for(var w=m+n,S=t[w*2],T=t[w*2+1];S===g&&T===y&&d<i;)d++,w+=n,m+=n,S=t[w*2],T=t[w*2+1],g=t[m*2],y=t[m*2+1],_=g-u,x=y-f;var M=d+1;if(l)for(;rn(S,T)&&M<i;)M++,w+=n,S=t[w*2],T=t[w*2+1];var D=.5,A=0,C=0,E=void 0,L=void 0;if(M>=i||rn(S,T))c=g,v=y;else{A=S-u,C=T-f;var P=g-u,R=S-g,z=y-f,Z=T-y,V=void 0,B=void 0;if(s==="x"){V=Math.abs(P),B=Math.abs(R);var X=A>0?1:-1;c=g-X*V*o,v=y,E=g+X*B*o,L=y}else if(s==="y"){V=Math.abs(z),B=Math.abs(Z);var Q=C>0?1:-1;c=g,v=y-Q*V*o,E=g,L=y+Q*B*o}else V=Math.sqrt(P*P+z*z),B=Math.sqrt(R*R+Z*Z),D=B/(B+V),c=g-A*o*(1-D),v=y-C*o*(1-D),E=g+A*o*D,L=y+C*o*D,E=Yi(E,Zi(S,g)),L=Yi(L,Zi(T,y)),E=Zi(E,Yi(S,g)),L=Zi(L,Yi(T,y)),A=E-g,C=L-y,c=g-A*V/B,v=y-C*V/B,c=Yi(c,Zi(u,g)),v=Yi(v,Zi(f,y)),c=Zi(c,Yi(u,g)),v=Zi(v,Yi(f,y)),A=g-c,C=y-v,E=g+A*B/V,L=y+C*B/V}r.bezierCurveTo(h,p,c,v,g,y),h=E,p=L}else r.lineTo(g,y)}u=g,f=y,m+=n}return d}var S1=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),b1=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new S1},t.prototype.buildPath=function(e,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&rn(a[o*2-2],a[o*2-1]);o--);for(;n<o&&rn(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=cd(e,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=ye.CMD,s,l,u=i==="x",f=[],h=0;h<n.length;){var p=n[h++],c=void 0,v=void 0,m=void 0,d=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=n[h++],l=n[h++];break;case o.L:if(c=n[h++],v=n[h++],_=u?(e-s)/(c-s):(e-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(c-s)*_+s;return u?[e,x]:[x,e]}s=c,l=v;break;case o.C:c=n[h++],v=n[h++],m=n[h++],d=n[h++],g=n[h++],y=n[h++];var w=u?la(s,c,m,g,e,f):la(l,v,d,y,e,f);if(w>0)for(var S=0;S<w;S++){var T=f[S];if(T<=1&&T>=0){var x=u?At(l,v,d,y,T):At(s,c,m,g,T);return u?[e,x]:[x,e]}}s=g,l=y;break}}},t})(at);var aP=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(S1),w1=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new aP},t.prototype.buildPath=function(e,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&rn(a[s*2-2],a[s*2-1]);s--);for(;o<s&&rn(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=cd(e,a,o,s,s,1,i.smooth,l,i.connectNulls);cd(e,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t})(at);function pd(r,t,e,i,a){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new st({shape:{x:o,y:s,width:l,height:u}});if(t){var p=r.getBaseAxis(),c=p.isHorizontal(),v=p.inverse;c?(v&&(h.shape.x+=l),h.shape.width=0):(v||(h.shape.y+=u),h.shape.height=0);var m=G(a)?function(d){a(d,h)}:null;Gt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,m)}return h}function vd(r,t,e){var i=r.getArea(),a=bt(i.r0,1),n=bt(i.r,1),o=new Ue({shape:{cx:bt(r.cx,1),cy:bt(r.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Gt(o,{shape:{endAngle:i.endAngle,r:n}},e)}return o}function T1(r,t,e,i,a){if(r){if(r.type==="polar")return vd(r,t,e);if(r.type==="cartesian2d")return pd(r,t,e,i,a)}else return null;return null}function an(r,t){return r.type===t}function M1(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function C1(r){for(var t=1/0,e=1/0,i=-1/0,a=-1/0,n=0;n<r.length;){var o=r[n++],s=r[n++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[i,a]]}function D1(r,t){var e=C1(r),i=e[0],a=e[1],n=C1(t),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function A1(r){return nt(r)?r:r?.5:0}function nP(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),a=Ye(i*2),n=0;n<i;n++){var o=Gf(e,r,t,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function Xi(r,t,e,i){var a=t.getBaseAxis(),n=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[n]=f[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var p=(u[n]+f[n])/2,c=[];l[n]=c[n]=p,l[1-n]=u[1-n],c[1-n]=f[1-n],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[n]=u[n],l[1-n]=f[1-n],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function oP(r,t){var e=[],i=r.length,a,n;function o(f,h,p){var c=f.coord,v=(p-c)/(h.coord-c),m=kl(v,[f.color,h.color]);return{coord:p,color:m}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){n?e.push(o(n,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),n=l}return e}function sP(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=t.getAxis(a),u=k(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var p=oP(u,a==="x"?e.getWidth():e.getHeight()),c=p.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var v=10,m=p[0].coord-v,d=p[c-1].coord+v,g=d-m;if(g<.001)return"transparent";b(p,function(_){_.offset=(_.coord-m)/g}),p.push({offset:c?p[c-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:c?p[0].offset:.5,color:h[0]||"transparent"});var y=new Li(0,0,0,0,p,!0);return y[a]=m,y[a+"2"]=d,y}}}function lP(r,t,e){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(a&&uP(n,t))){var o=t.mapDimension(n.dim),s={};return b(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function uP(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=t.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(Js.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function fP(r,t){return isNaN(r)||isNaN(t)}function hP(r){for(var t=r.length/2;t>0&&fP(r[t*2-2],r[t*2-1]);t--);return t-1}function E1(r,t){return[r[t*2],r[t*2+1]]}function cP(r,t,e){for(var i=r.length/2,a=e==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}function L1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<xe.length;t++)if(r.get([xe[t],"endLabel","show"]))return!0;return!1}function dd(r,t,e,i){if(an(t,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=L1(i)?function(c,v){r._endLabelOnDuring(c,v,o,s,n,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=pd(t,e,i,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,f),f}else return vd(t,e,i)}function pP(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),a=e.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var vP=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ft,i=new x1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,a){var n=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],p=o.type==="polar",c=this._coordSys,v=this._symbolDraw,m=this._polyline,d=this._polygon,g=this._lineGroup,y=!i.ssr&&e.get("animation"),_=!f.isEmpty(),x=f.get("origin"),w=Hf(o,l,x),S=_&&nP(o,l,w),T=e.get("showSymbol"),M=e.get("connectNulls"),D=T&&!p&&lP(e,l,o),A=this._data;A&&A.eachItemGraphicEl(function(Tt,Te){Tt.__temp&&(s.remove(Tt),A.setItemGraphicEl(Te,null))}),T||v.remove(),s.add(g);var C=p?!1:e.get("step"),E;o&&o.getArea&&e.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var L=sP(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&c.type===o.type&&C===this._step))T&&v.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Tt){return[h[Tt*2],h[Tt*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,E),C&&(h=Xi(h,o,C,M),S&&(S=Xi(S,o,C,M))),m=this._newPolyline(h),_?d=this._newPolygon(h,S):d&&(g.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,br(L)),g.setClipPath(dd(this,o,!0,e));else{_&&!d?d=this._newPolygon(h,S):d&&!_&&(g.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,br(L));var P=g.getClipPath();if(P){var R=dd(this,o,!1,e);Gt(P,{shape:R.shape},e)}else g.setClipPath(dd(this,o,!0,e));T&&v.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Tt){return[h[Tt*2],h[Tt*2+1]]}}),(!M1(this._stackedOnPoints,S)||!M1(this._points,h))&&(y?this._doUpdateAnimation(l,S,o,a,C,x,M):(C&&(h=Xi(h,o,C,M),S&&(S=Xi(S,o,C,M))),m.setShape({points:h}),d&&d.setShape({points:h,stackedOnPoints:S})))}var z=e.getModel("emphasis"),Z=z.get("focus"),V=z.get("blurScope"),B=z.get("disabled");if(m.useStyle(K(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ia(m,e,"lineStyle"),m.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var X=m.getState("emphasis").style;X.lineWidth=+m.style.lineWidth+1}ut(m).seriesIndex=e.seriesIndex,yr(m,Z,V,B);var Q=A1(e.get("smooth")),$=e.get("smoothMonotone");if(m.setShape({smooth:Q,smoothMonotone:$,connectNulls:M}),d){var mt=l.getCalculationInfo("stackedOnSeries"),xt=0;d.useStyle(K(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),mt&&(xt=A1(mt.get("smooth"))),d.setShape({smooth:Q,stackedOnSmooth:xt,smoothMonotone:$,connectNulls:M}),Ia(d,e,"areaStyle"),ut(d).seriesIndex=e.seriesIndex,yr(d,Z,V,B)}var jt=function(Tt){n._changePolyState(Tt)};l.eachItemGraphicEl(function(Tt){Tt&&(Tt.onHoverStateChange=jt)}),this._polyline.onHoverStateChange=jt,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=h,this._step=C,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,m),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,i){ut(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,a,n){var o=e.getData(),s=Je(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var p=e.get("zlevel")||0,c=e.get("z")||0;u=new Js(o,s),u.x=f,u.y=h,u.setZ(p,c);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=c,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,e,i,a,n)},t.prototype.downplay=function(e,i,a,n){var o=e.getData(),s=Je(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,e,i,a,n)},t.prototype._changePolyState=function(e){var i=this._polygon;Xc(this._polyline,e),i&&Xc(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new b1({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new w1({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var h=u.get("animationDelay")||0,p=G(h)?h(null):h;e.eachItemGraphicEl(function(c,v){var m=c;if(m){var d=[c.x,c.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var x=a,w=i.pointToCoord(d);n?(g=x.startAngle,y=x.endAngle,_=-w[1]/180*Math.PI):(g=x.r0,y=x.r,_=w[0])}else{var S=a;n?(g=S.x,y=S.x+S.width,_=c.x):(g=S.y+S.height,y=S.y,_=c.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var M=G(h)?h(v):f*T+p,D=m.getSymbolPath(),A=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:M}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,a){var n=e.getModel("endLabel");if(L1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new vt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hP(l);f>=0&&(ar(s,Fe(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(h,p,c){return c!=null?Ff(o,c):ho(o,h)},enableTextSetter:!0},pP(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=a.getLayout("points"),p=a.hostModel,c=p.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,d=l.getBaseAxis(),g=d.isHorizontal(),y=d.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?m:0)*(y?-1:1),S=(g?0:-m)*(y?-1:1),T=g?"x":"y",M=cP(h,x,T),D=M.range,A=D[1]-D[0],C=void 0;if(A>=1){if(A>1&&!c){var E=E1(h,D[0]);u.attr({x:E[0]+w,y:E[1]+S}),o&&(C=p.getRawValue(D[0]))}else{var E=f.getPointOn(x,T);E&&u.attr({x:E[0]+w,y:E[1]+S});var L=p.getRawValue(D[0]),P=p.getRawValue(D[1]);o&&(C=Sc(a,v,L,P,M.t))}n.lastFrameIndex=D[0]}else{var R=e===1||n.lastFrameIndex>0?D[0]:0,E=E1(h,R);o&&(C=p.getRawValue(R)),u.attr({x:E[0]+w,y:E[1]+S})}if(o){var z=Zn(u);typeof z.setLabelText=="function"&&z.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,p=hd(this._data,e,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),c=p.current,v=p.stackedOnCurrent,m=p.next,d=p.stackedOnNext;if(o&&(c=Xi(p.current,a,o,l),v=Xi(p.stackedOnCurrent,a,o,l),m=Xi(p.next,a,o,l),d=Xi(p.stackedOnNext,a,o,l)),D1(c,m)>3e3||f&&D1(v,d)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:d}));return}u.shape.__points=p.current,u.shape.points=c;var g={shape:{points:m}};p.current!==c&&(g.shape.__points=p.next),u.stopAnimation(),Ct(u,g,h),f&&(f.setShape({points:c,stackedOnPoints:v}),f.stopAnimation(),Ct(f,{shape:{stackedOnPoints:d}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var S=e.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,M=0;M<y.length;M++){var D=y[M].el,A=y[M].ptIdx*2;D.x=T[A],D.y=T[A+1],D.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ut),I1=vP;function md(r,t){return{seriesType:r,plan:Ka(),reset:function(e){var i=e.getData(),a=e.coordinateSystem,n=e.pipelineContext,o=t||n.large;if(a){var s=k(a.dimensions,function(c){return i.mapDimension(c)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Tr(i,s[0])&&(s[0]=u),Tr(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(c,v){for(var m=c.end-c.start,d=o&&Ye(m*l),g=[],y=[],_=c.start,x=0;_<c.end;_++){var w=void 0;if(l===1){var S=f.get(h,_);w=a.dataToPoint(S,null,y)}else g[0]=f.get(h,_),g[1]=f.get(p,_),w=a.dataToPoint(g,null,y);o?(d[x++]=w[0],d[x++]=w[1]):v.setItemLayout(_,w.slice())}o&&v.setLayout("points",d)}}}}}}var dP={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,i=0;i<r.length;i++){var a=r[i],n=Math.abs(a);n>t&&(t=n,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},mP=function(r){return Math.round(r.length/2)};function tl(r){return{seriesType:r,reset:function(t,e,i){var a=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/p);if(isFinite(c)&&c>1){n==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/c));var v=void 0;U(n)?v=dP[n]:G(n)&&(v=n),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/c,v,mP))}}}}}function gd(r){r.registerChartView(I1),r.registerSeriesModel(g1),r.registerLayout(md("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,tl("line"))}var P1=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return Fr(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(a)b(n.getAxes(),function(p,c){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),m=p.getTickModel().get("alignWithLabel"),d=o[c],g=i[c]==="x1"||i[c]==="y1";if(g&&!m&&(d+=1),v.length<2)return;if(v.length===2){s[c]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,w=0;w<v.length;w++){var S=v[w].coord,T=w===v.length-1?v[w-1].tickValue+x:v[w].tickValue;if(T===d){_=S;break}else if(T<d)y=S;else if(y!=null&&T>d){_=(S+y)/2;break}w===1&&(x=T-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[c]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(qt);qt.registerClass(P1);var yd=P1;var gP=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Fr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,a){return a.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nr(yd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(yd),R1=gP;var yP=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),_P=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new yP},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,p=i.clockwise,c=Math.PI*2,v=p?h-f<c:f-h<c;v||(f=h-(p?c:-c));var m=Math.cos(f),d=Math.sin(f),g=Math.cos(h),y=Math.sin(h);v?(e.moveTo(m*o+a,d*o+n),e.arc(m*u+a,d*u+n,l,-Math.PI+f,f,!p)):e.moveTo(m*s+a,d*s+n),e.arc(a,n,s,f,h,!p),e.arc(g*u+a,y*u+n,l,h-Math.PI*2,h-Math.PI,!p),o!==0&&e.arc(a,n,o,h,f,p)},t})(at),_d=_P;function O1(r,t){t=t||{};var e=t.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return ga(i,a,n);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,h=u.cy,p=u.r,c=u.r0,v=(p+c)/2,m=u.startAngle,d=u.endAngle,g=(m+d)/2,y=e?Math.abs(p-c)/2:0,_=Math.cos,x=Math.sin,w=f+p*_(m),S=h+p*x(m),T="left",M="top";switch(s){case"startArc":w=f+(c-l)*_(g),S=h+(c-l)*x(g),T="center",M="top";break;case"insideStartArc":w=f+(c+l)*_(g),S=h+(c+l)*x(g),T="center",M="bottom";break;case"startAngle":w=f+v*_(m)+Wf(m,l+y,!1),S=h+v*x(m)+Yf(m,l+y,!1),T="right",M="middle";break;case"insideStartAngle":w=f+v*_(m)+Wf(m,-l+y,!1),S=h+v*x(m)+Yf(m,-l+y,!1),T="left",M="middle";break;case"middle":w=f+v*_(g),S=h+v*x(g),T="center",M="middle";break;case"endArc":w=f+(p+l)*_(g),S=h+(p+l)*x(g),T="center",M="bottom";break;case"insideEndArc":w=f+(p-l)*_(g),S=h+(p-l)*x(g),T="center",M="top";break;case"endAngle":w=f+v*_(d)+Wf(d,l+y,!0),S=h+v*x(d)+Yf(d,l+y,!0),T="left",M="middle";break;case"insideEndAngle":w=f+v*_(d)+Wf(d,-l+y,!0),S=h+v*x(d)+Yf(d,-l+y,!0),T="right",M="middle";break;default:return ga(i,a,n)}return i=i||{},i.x=w,i.y=S,i.align=T,i.verticalAlign=M,i}}function N1(r,t,e,i){if(nt(i)){r.setTextConfig({rotation:i});return}else if(O(t)){r.setTextConfig({rotation:0});return}var a=r.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Wf(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Yf(r,t,e){return t*Math.cos(r)*(e?1:-1)}function nn(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;O(i)||(i=[i,i,i,i]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:k(i,function(n){return me(n,a)})}}var xd=Math.max,Sd=Math.min;function xP(r,t){var e=r.getArea&&r.getArea();if(an(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var a=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var SP=(function(r){I(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,a,n){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,a):this._renderNormal(e,i,a,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){ni(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,a,n){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var p=e.isAnimationEnabled()?e:null,c=bP(e,u);c&&this._enableRealtimeSort(c,s,a);var v=e.get("clip",!0)||c,m=xP(u,s);o.removeClipPath();var d=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],w=this._backgroundEls,S=n&&n.isInitSort,T=n&&n.type==="changeAxisOrder";function M(C){var E=Zf[u.type](s,C),L=EP(u,h,E);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[C]=L,L}s.diff(l).add(function(C){var E=s.getItemModel(C),L=Zf[u.type](s,C,E);if(g&&M(C),!(!s.hasValue(C)||!B1[u.type](L))){var P=!1;v&&(P=z1[u.type](m,L));var R=k1[u.type](e,s,C,L,h,p,f.model,!1,d);c&&(R.forceLabelAnimation=!0),F1(R,s,C,E,L,e,h,u.type==="polar"),S?R.attr({shape:L}):c?U1(c,p,R,L,C,h,!1,!1):Gt(R,{shape:L},e,C),s.setItemGraphicEl(C,R),o.add(R),R.ignore=P}}).update(function(C,E){var L=s.getItemModel(C),P=Zf[u.type](s,C,L);if(g){var R=void 0;w.length===0?R=M(E):(R=w[E],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[C]=R);var z=Zf[u.type](s,C),Z=Z1(h,z,u);Ct(R,{shape:Z},p,C)}var V=l.getItemGraphicEl(E);if(!s.hasValue(C)||!B1[u.type](P)){o.remove(V);return}var B=!1;if(v&&(B=z1[u.type](m,P),B&&o.remove(V)),V?Wn(V):V=k1[u.type](e,s,C,P,h,p,f.model,!!V,d),c&&(V.forceLabelAnimation=!0),T){var X=V.getTextContent();if(X){var Q=Zn(X);Q.prevValue!=null&&(Q.prevValue=Q.value)}}else F1(V,s,C,L,P,e,h,u.type==="polar");S?V.attr({shape:P}):c?U1(c,p,V,P,C,h,!0,T):Ct(V,{shape:P},e,C,null),s.setItemGraphicEl(C,V),V.ignore=B,o.add(V)}).remove(function(C){var E=l.getItemGraphicEl(C);E&&Ua(E,e,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new ft);D.removeAll();for(var A=0;A<x.length;++A)D.add(x[A]);o.add(D),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,i,a){this._clear(),G1(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),G1(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&T1(e.coordinateSystem,!1,e),a=this.group;i?a.setClipPath(i):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,a){var n=this;if(i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,a){var n=[];return e.each(e.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:k(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,a){for(var n=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,n.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,a,n){if(this._isOrderChangedWithinSameData(e,i,a)){var o=this._dataSort(e,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,a){var n=i.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){Ua(n,e,ut(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Ut),z1={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,n=r.y+r.height,o=xd(t.x,r.x),s=Sd(t.x+t.width,a),l=xd(t.y,r.y),u=Sd(t.y+t.height,n),f=s<o,h=u<l;return t.x=f&&o>a?s:o,t.y=h&&l>n?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var a=Sd(t.r,r.r),n=xd(t.r0,r.r0);t.r=a,t.r0=n;var o=a-n<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},k1={cartesian2d:function(r,t,e,i,a,n,o,s,l){var u=new st({shape:N({},i),z2:1});if(u.__dataIndex=e,u.name="item",n){var f=u.shape,h=a?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,a,n,o,s,l){var u=!a&&l?_d:Ue,f=new u({shape:i,z2:1});f.name="item";var h=Y1(a);if(f.calculateTextPosition=O1(h,{isRoundCap:u===_d}),n){var p=f.shape,c=a?"r":"endAngle",v={};p[c]=a?i.r0:i.startAngle,v[c]=i[c],(s?Ct:Gt)(f,{shape:v},n)}return f}};function bP(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function U1(r,t,e,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Ct:Gt)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Ct:Gt)(e,{shape:u},f,a)}function V1(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var wP=["x","y","width","height"],TP=["cx","cy","r","startAngle","endAngle"],B1={cartesian2d:function(r){return!V1(r,wP)},polar:function(r){return!V1(r,TP)}},Zf={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),a=e?CP(e,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function MP(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Y1(r){return(function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}})(r)}function F1(r,t,e,i,a,n,o,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var f=r.shape,h=nn(i.getModel("itemStyle"),f,!0);N(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var p=i.getShallow("cursor");p&&r.attr("cursor",p);var c=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Fe(i);ar(r,v,{labelFetcher:n,labelDataIndex:e,defaultText:ho(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var m=r.getTextContent();if(s&&m){var d=i.get(["label","position"]);r.textConfig.inside=d==="middle"?!0:null,N1(r,d==="outside"?c:d,Y1(o),i.get(["label","rotate"]))}V0(m,v,n.getRawValue(e),function(y){return Ff(t,y)});var g=i.getModel(["emphasis"]);yr(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ia(r,i),MP(a)&&(r.style.fill="none",r.style.stroke="none",b(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function CP(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,a,n)}var DP=(function(){function r(){}return r})(),H1=(function(r){I(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new DP},t.prototype.buildPath=function(e,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(at);function G1(r,t,e,i){var a=r.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new H1({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=n,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new H1({shape:{points:a.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),ut(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",W1),h.on("mousemove",W1)),e&&e.push(h)}var W1=ja(function(r){var t=this,e=AP(t,r.offsetX,r.offsetY);ut(t).dataIndex=e>=0?e:null},30,!1);function AP(r,t,e){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=n.length/3;f<h;f++){var p=f*3;if(l[i]=u,l[a]=n[p+2],s[i]=n[p+i],s[a]=n[p+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Z1(r,t,e){if(an(e,"cartesian2d")){var i=t,a=e.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=e.getArea(),n=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function EP(r,t,e){var i=r.type==="polar"?Ue:st;return new i({shape:Z1(t,e,r),silent:!0,z2:0})}var X1=SP;function bd(r){r.registerChartView(X1),r.registerSeriesModel(R1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(PS,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RS("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,tl("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var q1=Math.PI*2,Xf=Math.PI/180;function K1(r,t){return pe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function wd(r,t){var e=K1(r,t),i=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var n=yt(e.width,t.getWidth()),o=yt(e.height,t.getHeight()),s=Math.min(n,o),l=yt(a[0],s/2),u=yt(a[1],s/2),f,h,p=r.coordinateSystem;if(p){var c=p.dataToPoint(i);f=c[0]||0,h=c[1]||0}else O(i)||(i=[i,i]),f=yt(i[0],n)+e.x,h=yt(i[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function Td(r,t,e){t.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=K1(i,e),s=wd(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,p=-i.get("startAngle")*Xf,c=i.get("endAngle"),v=i.get("padAngle")*Xf;c=c==="auto"?p-q1:-c*Xf;var m=i.get("minAngle")*Xf,d=m+v,g=0;a.each(n,function(Z){!isNaN(Z)&&g++});var y=a.getSum(n),_=Math.PI/(y||g)*2,x=i.get("clockwise"),w=i.get("roseType"),S=i.get("stillShowZeroSum"),T=a.getDataExtent(n);T[0]=0;var M=x?1:-1,D=[p,c],A=M*v/2;Uc(D,!x),p=D[0],c=D[1];var C=Md(i);C.startAngle=p,C.endAngle=c,C.clockwise=x;var E=Math.abs(c-p),L=E,P=0,R=p;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(Z,V){var B;if(isNaN(Z)){a.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?B=y===0&&S?_:Z*_:B=E/g,B<d?(B=d,L-=d):P+=Z;var X=R+M*B,Q=0,$=0;v>B?(Q=R+M*B/2,$=Q):(Q=R+A,$=X-A),a.setItemLayout(V,{angle:B,startAngle:Q,endAngle:$,clockwise:x,cx:l,cy:u,r0:h,r:w?gt(Z,T,[h,f]):f}),R=X}),L<q1&&g)if(L<=.001){var z=E/g;a.each(n,function(Z,V){if(!isNaN(Z)){var B=a.getItemLayout(V);B.angle=z;var X=0,Q=0;z<v?(X=p+M*(V+1/2)*z,Q=X):(X=p+M*V*z+A,Q=p+M*(V+1)*z-A),B.startAngle=X,B.endAngle=Q}})}else _=L/P,R=p,a.each(n,function(Z,V){if(!isNaN(Z)){var B=a.getItemLayout(V),X=B.angle===d?d:Z*_,Q=0,$=0;X<v?(Q=R+M*X/2,$=Q):(Q=R+A,$=R+M*X-A),B.startAngle=Q,B.endAngle=$,R+=M*X}})})}var Md=ht();function Cd(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=t.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var LP=Math.PI/180;function j1(r,t,e,i,a,n,o,s,l,u){if(r.length<2)return;function f(m){for(var d=m.rB,g=d*d,y=0;y<m.list.length;y++){var _=m.list[y],x=Math.abs(_.label.y-e),w=i+_.len,S=w*w,T=Math.sqrt((1-Math.abs(x*x/g))*S),M=t+(T+_.len2)*a,D=M-_.label.x,A=_.targetTextWidth-D*a;Q1(_,A,!0),_.label.x=M}}function h(m){for(var d={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if(m[y].labelAlignTo==="none"){var _=m[y],x=_.label.y>e?g:d,w=Math.abs(_.label.y-e);if(w>=x.maxY){var S=_.label.x-t-_.len2*a,T=i+_.len,M=Math.abs(S)<T?Math.sqrt(w*w/(1-S*S/T/T)):T;x.rB=M,x.maxY=w}x.list.push(_)}f(d),f(g)}for(var p=r.length,c=0;c<p;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var v=r[c].label.x-u;r[c].linePoints[1][0]+=v,r[c].label.x=u}d1(r,l,l+o)&&h(r)}function IP(r,t,e,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<r.length;p++){var c=r[p].label;Dd(r[p])||(c.x<t?(f=Math.min(f,c.x),l.push(r[p])):(h=Math.max(h,c.x),u.push(r[p])))}for(var p=0;p<r.length;p++){var v=r[p];if(!Dd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var c=v.label,m=v.linePoints,d=void 0;v.labelAlignTo==="edge"?c.x<t?d=m[2][0]-v.labelDistance-o-v.edgeDistance:d=o+a-v.edgeDistance-m[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?c.x<t?d=f-o-v.bleedMargin:d=o+a-h-v.bleedMargin:c.x<t?d=c.x-o-v.bleedMargin:d=o+a-c.x-v.bleedMargin,v.targetTextWidth=d,Q1(v,d)}}j1(u,t,e,i,1,a,n,o,s,h),j1(l,t,e,i,-1,a,n,o,s,f);for(var p=0;p<r.length;p++){var v=r[p];if(!Dd(v)&&v.linePoints){var c=v.label,m=v.linePoints,g=v.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,x=c.style.backgroundColor?0:_,w=v.rect.width+x,S=m[1][0]-m[2][0];g?c.x<t?m[2][0]=o+v.edgeDistance+w+v.labelDistance:m[2][0]=o+a-v.edgeDistance-w-v.labelDistance:(c.x<t?m[2][0]=c.x+v.labelDistance:m[2][0]=c.x-v.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=c.y}}}function Q1(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var i=r.label,a=i.style,n=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(t<f||e){var h=n.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",o)}else{var c=t-l,v=t<f?c:e?c>r.unconstrainedWidth?null:c:null;i.setStyle("width",v)}var m=i.getBoundingRect();n.width=m.width;var d=(i.style.margin||0)+2.1;n.height=m.height+d,n.y-=(n.height-h)/2}}}function Dd(r){return r.position==="center"}function Ad(r){var t=r.getData(),e=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*LP,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,p=s.height;function c(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),M=T.shape,D=T.getTextContent(),A=T.getTextGuideLine(),C=t.getItemModel(S),E=C.getModel("label"),L=E.get("position")||C.get(["emphasis","label","position"]),P=E.get("distanceToLabelLine"),R=E.get("alignTo"),z=yt(E.get("edgeDistance"),u),Z=E.get("bleedMargin"),V=C.getModel("labelLine"),B=V.get("length");B=yt(B,u);var X=V.get("length2");if(X=yt(X,u),Math.abs(M.endAngle-M.startAngle)<o){b(D.states,c),D.ignore=!0,A&&(b(A.states,c),A.ignore=!0);return}if(v(D)){var Q=(M.startAngle+M.endAngle)/2,$=Math.cos(Q),mt=Math.sin(Q),xt,jt,Tt,Te;i=M.cx,a=M.cy;var Ne=L==="inside"||L==="inner";if(L==="center")xt=M.cx,jt=M.cy,Te="center";else{var le=(Ne?(M.r+M.r0)/2*$:M.r*$)+i,Rt=(Ne?(M.r+M.r0)/2*mt:M.r*mt)+a;if(xt=le+$*3,jt=Rt+mt*3,!Ne){var ot=le+$*(B+l-M.r),dt=Rt+mt*(B+l-M.r),Cr=ot+($<0?-1:1)*X,Qt=dt;R==="edge"?xt=$<0?f+z:f+u-z:xt=Cr+($<0?-P:P),jt=Qt,Tt=[[le,Rt],[ot,dt],[Cr,Qt]]}Te=Ne?"center":R==="edge"?$>0?"right":"left":$>0?"left":"right"}var di=Math.PI,Yr=0,So=E.get("rotate");if(nt(So))Yr=So*(di/180);else if(L==="center")Yr=0;else if(So==="radial"||So===!0){var bT=$<0?-Q+di:-Q;Yr=bT}else if(So==="tangential"&&L!=="outside"&&L!=="outer"){var hn=Math.atan2($,mt);hn<0&&(hn=di*2+hn);var wT=mt>0;wT&&(hn=di+hn),Yr=hn-di}if(n=!!Yr,D.x=xt,D.y=jt,D.rotation=Yr,D.setStyle({verticalAlign:"middle"}),Ne){D.setStyle({align:Te});var gh=D.states.select;gh&&(gh.x+=D.x,gh.y+=D.y)}else{var bo=D.getBoundingRect().clone();bo.applyTransform(D.getComputedTransform());var Dm=(D.style.margin||0)+2.1;bo.y-=Dm/2,bo.height+=Dm,e.push({label:D,labelLine:A,position:L,len:B,len2:X,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new rt($,mt),linePoints:Tt,textAlign:Te,labelDistance:P,labelAlignTo:R,edgeDistance:z,bleedMargin:Z,rect:bo,unconstrainedWidth:bo.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:Ne})}}),!n&&r.get("avoidLabelOverlap")&&IP(e,i,a,l,u,p,f,h);for(var m=0;m<e.length;m++){var d=e[m],g=d.label,y=d.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:d.textAlign}),_&&(b(g.states,c),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var w=d.linePoints;_||!w?(b(y.states,c),y.ignore=!0):(f1(w,d.minTurnAngle),h1(w,d.surfaceNormal,d.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new rt(w[0][0],w[0][1])})}}}var PP=(function(r){I(t,r);function t(e,i,a){var n=r.call(this)||this;n.z2=2;var o=new vt;return n.setTextContent(o),n.updateData(e,i,a,!0),n}return t.prototype.updateData=function(e,i,a,n){var o=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),f=e.getItemLayout(i),h=N(nn(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(n){o.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(Gt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):p==="scale"?(o.shape.r=f.r0,Gt(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Gt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Ct(o,{shape:{endAngle:f.endAngle}},s,i))}else Wn(o),Ct(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),Ia(o,l);var c=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),m=Math.cos(c)*v,d=Math.sin(c)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},nn(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:m,y:d,shape:nn(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:nn(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:m,y:d}),N(_.ensureState("select"),{x:m,y:d}),yr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ar(n,Fe(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||i.getName(a)});var h=n.getTextContent();n.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=e.get(["label","position"]);if(p!=="outside"&&p!=="outer")n.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new xr,this.setTextGuideLine(c)),c1(this,p1(o),{stroke:u,opacity:Ar(s.get(["lineStyle","opacity"]),f,1)})}},t})(Ue),RP=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,a,n){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var p=Md(e),c=new Ue({shape:N(wd(e,a),p)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var m=new PP(o,v,u);o.setItemGraphicEl(v,m),l.add(m)}).update(function(v,m){var d=s.getItemGraphicEl(m);d.updateData(o,v,u),d.off("click"),l.add(d),o.setItemGraphicEl(v,d)}).remove(function(v){var m=s.getItemGraphicEl(v);Ua(m,e,v)}).execute(),Ad(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},t.type="pie",t})(Ut),$1=RP;function Ed(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var i=r.getSource(),a=uo(i,t).dimensions,n=new lo(a,r);return n.initData(i,e),n}var OP=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r})(),J1=OP;var NP=ht(),zP=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new J1(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ed(this,{coordDimensions:["value"],encodeDefaulter:ct(f_,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),a=NP(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=gc(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=n[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Qo(e,"labelLine",["show"]);var i=e.labelLine,a=e.emphasis.labelLine;i.show=i.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},t})(qt),tb=zP;function Ld(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function Id(r){r.registerChartView($1),r.registerSeriesModel(tb),Ax("pie",r.registerAction),r.registerLayout(ct(Td,"pie")),r.registerProcessor(Cd("pie")),r.registerProcessor(Ld("pie"))}var kP=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(pt),eb=kP;var qf=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t})(pt);Jt(qf,zf);var rb={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)"]}}},UP=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rb),Pd=tt({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}}},rb),VP=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pd),BP=K({logBase:10},Pd),ib={category:UP,value:Pd,time:VP,log:BP};var ab={value:1,category:1,time:1,log:1};function Kf(r,t,e,i){b(ab,function(a,n){var o=tt(tt({},ib[n],!0),i,!0),s=(function(l){I(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var p=Pi(this),c=p?Vr(f):{},v=h.getTheme();tt(f,v.get(n+"Axis")),tt(f,this.getDefaultOption()),f.type=nb(f),p&&Ur(f,c,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Xs.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+n,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",nb)}function nb(r){return r.type||(r.data?"category":"value")}var FP=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return k(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Mt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),ob=FP;var jf=["x","y"];function sb(r){return r.type==="interval"||r.type==="time"}var HP=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=jf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!sb(e)||!sb(i))){var a=e.getExtent(),n=i.getExtent(),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=o[0]-a[0]*f,c=o[1]-n[0]*h,v=this._transform=[f,0,0,h,p,c];this._invTransform=jr([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var a=this.dataToPoint(e),n=this.dataToPoint(i),o=this.getArea(),s=new J(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,a){a=a||[];var n=e[0],o=e[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Nt(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},t.prototype.clampData=function(e,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(e[0]),u=n.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var a=[];if(this._invTransform)return Nt(a,e,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(e[0]),i),a[1]=o.coordToData(o.toLocalCoord(e[1]),i),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(i[0],i[1])-n+e,l=Math.max(a[0],a[1])-o+e;return new J(n,o,s,l)},t})(ob),lb=HP;var GP=(function(r){I(t,r);function t(e,i,a,n,o){var s=r.call(this,e,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Uf),ub=GP;function el(r,t,e){e=e||{};var i=r.coordinateSystem,a=t.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));v[p.onZero]=Math.max(Math.min(m,v[1]),v[0])}n.position=[u==="y"?v[p[l]]:h[0],u==="x"?v[p[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[s],n.labelOffset=o?v[p[s]]-v[p.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=t.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-g:g,n.z2=1,n}function Rd(r){return r.get("coordinateSystem")==="cartesian2d"}function Od(r){var t={xAxisModel:null,yAxisModel:null};return b(t,function(e,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,zt).models[0];t[i]=n}),t}var Nd=Math.log;function hb(r,t,e){var i=pi.prototype,a=i.getTicks.call(e),n=i.getTicks.call(e,!0),o=a.length-1,s=i.getInterval.call(e),l=Kv(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var p=Nd(r.base);u=[Nd(u[0])/p,Nd(u[1])/p]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var v=i.getInterval.call(r),m=u[0],d=u[1];if(f&&h)v=(d-m)/o;else if(f)for(d=u[0]+v*o;d<u[1]&&isFinite(d)&&isFinite(u[1]);)v=Cf(v),d=u[0]+v*o;else if(h)for(m=u[1]-v*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=Cf(v),m=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=Cf(v));var y=v*o;d=Math.ceil(u[1]/v)*v,m=bt(d-y),m<0&&u[0]>=0?(m=0,d=bt(y)):d>0&&u[1]<=0&&(d=0,m=-bt(y))}var _=(a[0].value-n[0].value)/s,x=(a[o].value-n[o].value)/s;if(i.setExtent.call(r,m+v*_,d+v*x),i.setInterval.call(r,v),(_||x)&&i.setNiceExtent.call(r,m+v,d-v),0)var w}var WP=(function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jf,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=lt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var p=+l[h],c=o[p],v=c.model,m=c.scale;qs(m)&&v.get("alignTicks")&&v.get("interval")==null?f.push(c):(js(m,v),qs(m)&&(s=c))}f.length&&(s||(s=f.pop(),js(s.scale,s.model)),b(f,function(d){hb(d.scale,d.model,s.scale)}))}}a(i.x),a(i.y);var n={};b(i.x,function(o){cb(i,"y",o,n)}),b(i.y,function(o){cb(i,"x",o,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var a=t.getBoxLayoutParams(),n=!i&&t.get("containLabel"),o=pe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(b(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=GS(u);if(f){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+p,u.position==="top"?o.y+=f.height+p:u.position==="left"&&(o.x+=f.width+p)}}}),l()),b(this._coordsList,function(u){u.calcAffineTransform()});function l(){b(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),YP(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}F(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===t||n[a].getAxis("y").index===e)return n[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",zt).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",zt).models[0],n=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,it(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var a=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,h){b(s.y,function(p,c){var v="x"+h+"y"+c,m=new lb(v);m.master=a,m.model=t,a._coordsMap[v]=m,a._coordsList.push(m),m.addAxis(f),m.addAxis(p)})});function u(f){return function(h,p){if(zd(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var v=new ub(f,Rf(h),[0,0],h.get("type"),c),m=v.type==="category";v.onBand=m&&h.get("boundaryGap"),v.inverse=h.get("inverse"),h.axis=v,v.model=h,v.grid=n,v.index=p,n._axesList.push(v),s[f][p]=v,l[f]++}}}},r.prototype._updateScale=function(t,e){b(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var n=a.model.get("categorySortInfo");a.scale.setSortInfo(n)}}),t.eachSeries(function(a){if(Rd(a)){var n=Od(a),o=n.xAxisModel,s=n.yAxisModel;if(!zd(o,e)||!zd(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(a,n){b(jv(a,n.dim),function(o){n.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return b(this.getCartesians(),function(a){var n=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(n);it(e,n)<0&&e.push(n),it(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(a,n){var o=new r(a,t,e);o.name="grid_"+n,o.resize(a,e,!0),a.coordinateSystem=o,i.push(o)}),t.eachSeries(function(a){if(Rd(a)){var n=Od(a),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=jf,r})();function zd(r,t){return r.getCoordSysModel()===t}function cb(r,t,e,i){e.getAxesOnZeroOf=function(){return n?[n]:[]};var a=r[t],n,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)pb(a[l])&&(n=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&pb(a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(h){return h.dim+"_"+h.index}}function pb(r){return r&&r.type!=="category"&&r.type!=="time"&&HS(r)}function YP(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return i-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return i-a+t}}var vb=WP;var qi=Math.PI,on=(function(){function r(t,e){this.group=new ft,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ft({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!db[t]},r.prototype.add=function(t){db[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var a=Xo(e-t),n,o;return _a(a)?(o=i>0?"top":"bottom",n="center"):_a(a-qi)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<qi?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),db={axisLine:function(r,t,e,i){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=t.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(Nt(s,s,o),Nt(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ve({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Va(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var c=t.get(["axisLine","symbolSize"]);U(p)&&(p=[p,p]),(U(c)||nt(c))&&(c=[c,c]);var v=of(t.get(["axisLine","symbolOffset"])||0,c),m=c[0],d=c[1];b([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(p[y]!=="none"&&p[y]!=null){var _=Vt(p[y],-m/2,-d/2,m,d,f.stroke,!0),x=g.r+g.offset,w=u?l:s;_.attr({rotation:g.rotate,x:w[0]+x*Math.cos(r.rotation),y:w[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var a=qP(e,i,t,r),n=jP(e,i,t,r);if(XP(t,n,a),KP(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=v1(k(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));m1(o)}},axisName:function(r,t,e,i){var a=Dr(r.axisName,t.get("name"));if(a){var n=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,gb(n)?r.labelOffset+o*l:0],p,c=t.get("nameRotate");c!=null&&(c=c*qi/180);var v;gb(n)?p=on.innerTextLayout(r.rotation,c??r.rotation,o):(p=ZP(r.rotation,n,c||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(p.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),d=t.get("nameTruncate",!0)||{},g=d.ellipsis,y=Dr(r.nameTruncateMaxWidth,d.maxWidth,v),_=new vt({x:h[0],y:h[1],rotation:p.rotation,silent:on.isLabelSilent(t),style:Zt(s,{text:a,font:m,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(ms({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var x=on.makeAxisEventDataBase(t);x.targetType="axisName",x.name=a,ut(_).eventData=x}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function ZP(r,t,e,i){var a=Xo(e-r),n,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return _a(a-qi/2)?(o=l?"bottom":"top",n="center"):_a(a-qi*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<qi*1.5&&a>qi/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function XP(r,t,e){if(!Nf(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var n=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],p=e[e.length-2];i===!1?(hr(n),hr(u)):mb(n,o)&&(i?(hr(o),hr(f)):(hr(n),hr(u))),a===!1?(hr(s),hr(h)):mb(l,s)&&(a?(hr(l),hr(p)):(hr(s),hr(h)))}}function hr(r){r&&(r.ignore=!0)}function mb(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var a=Kr([]);return ea(a,a,-r.rotation),e.applyTransform(Ke([],a,r.getLocalTransform())),i.applyTransform(Ke([],a,t.getLocalTransform())),e.intersect(i)}}function gb(r){return r==="middle"||r==="center"}function yb(r,t,e,i,a){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Nt(o,o,t),Nt(s,s,t));var f=new Ve({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Va(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,n.push(f)}return n}function qP(r,t,e,i){var a=e.axis,n=e.getModel("axisTick"),o=n.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=i.tickDirection*n.get("length"),u=a.getTicksCoords(),f=yb(u,t.transform,l,K(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function KP(r,t,e,i){var a=e.axis,n=e.getModel("minorTick");if(!(!n.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=n.getModel("lineStyle"),l=i*n.get("length"),u=K(s.getLineStyle(),K(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=yb(o[f],t.transform,l,u,"minorticks_"+f),p=0;p<h.length;p++)r.add(h[p])}}function jP(r,t,e,i){var a=e.axis,n=Dr(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!n||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Dr(i.labelRotate,o.get("rotate"))||0)*qi/180,f=on.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),p=[],c=on.isLabelSilent(e),v=e.get("triggerEvent");return b(l,function(m,d){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,y=m.formattedLabel,_=m.rawLabel,x=o;if(h&&h[g]){var w=h[g];F(w)&&w.textStyle&&(x=new _t(w.textStyle,o,e.ecModel))}var S=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(g),M=x.getShallow("align",!0)||f.textAlign,D=et(x.getShallow("alignMinLabel",!0),M),A=et(x.getShallow("alignMaxLabel",!0),M),C=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,E=et(x.getShallow("verticalAlignMinLabel",!0),C),L=et(x.getShallow("verticalAlignMaxLabel",!0),C),P=new vt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(m.level||0),style:Zt(x,{text:y,align:d===0?D:d===l.length-1?A:M,verticalAlign:d===0?E:d===l.length-1?L:C,fill:G(S)?S(a.type==="category"?_:a.type==="value"?g+"":g,d):S})});if(P.anid="label_"+g,v){var R=on.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=d,a.type==="category"&&(R.dataIndex=g),ut(P).eventData=R}t.add(P),P.updateTransform(),p.push(P),r.add(P),P.decomposeTransform()}),p}}var Qf=on;function _b(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return QP(e,r,t),e.seriesInvolved&&JP(e,r),e}function QP(r,t,e){var i=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];b(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=co(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(b(s.getAxes(),ct(m,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||c)&&b(v.baseAxes,ct(m,c?"cross":!0,p)),c&&b(v.otherAxes,ct(m,"cross",!1))}function m(d,g,y){var _=y.model.getModel("axisPointer",a),x=_.get("show");if(!(!x||x==="auto"&&!d&&!Ud(_))){g==null&&(g=_.get("triggerTooltip")),_=d?$P(y,h,a,t,d,g):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),T=co(y.model),M=g||w||y.type==="category",D=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:M,snap:w,useHandle:Ud(_),seriesModels:[],linkGroup:null};u[T]=D,r.seriesInvolved=r.seriesInvolved||M;var A=tR(n,y);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[T]=D,C.mapper=n[A].mapper,D.linkGroup=C}}}})}function $P(r,t,e,i,a,n){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(p){l[p]=Y(o.get(p))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var h=l.lineStyle=o.get("crossStyle");h&&K(u,h.textStyle)}}return r.model.getModel("axisPointer",new _t(l,e,i))}function JP(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),n=e.get(["tooltip","show"],!0);!i||a==="none"||a===!1||a==="item"||n===!1||e.get(["axisPointer","show"],!0)===!1||b(r.coordSysAxesInfo[co(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function tR(r,t){for(var e=t.model,i=t.dim,a=0;a<r.length;a++){var n=r[a]||{};if(kd(n[i+"AxisId"],e.id)||kd(n[i+"AxisIndex"],e.componentIndex)||kd(n[i+"AxisName"],e.name))return a}}function kd(r,t){return r==="all"||O(r)&&it(r,t)>=0||r===t}function xb(r){var t=$f(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,a=e.option,n=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Ud(e);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function $f(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[co(r)]}function Sb(r){var t=$f(r);return t&&t.axisPointerModel}function Ud(r){return!!r.get(["handle","show"])}function co(r){return r.type+"||"+r.id}var bb={},eR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a,n){this.axisPointerClass&&xb(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,i,a,n){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,i){var a=this._axisPointer;a&&a.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,a){var n=t.getAxisPointerClass(this.axisPointerClass);if(n){var o=Sb(e);o?(this._axisPointer||(this._axisPointer=new n)).render(e,o,i,a):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){bb[e]=i},t.getAxisPointerClass=function(e){return e&&bb[e]},t.type="axis",t})(Lt),Jf=eR;var Bd=ht();function wb(r,t,e,i){var a=e.axis;if(!a.scale.isBlank()){var n=e.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,clamp:!0});if(u.length){var f=s.length,h=Bd(r).splitAreaColors,p=W(),c=0;if(h)for(var v=0;v<u.length;v++){var m=h.get(u[v].tickValue);if(m!=null){c=(m+(f-1)*v)%f;break}}var d=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=O(s)?s:[s];for(var v=1;v<u.length;v++){var y=a.toGlobalCoord(u[v].coord),_=void 0,x=void 0,w=void 0,S=void 0;a.isHorizontal()?(_=d,x=l.y,w=y-_,S=l.height,d=_+w):(_=l.x,x=d,w=l.width,S=y-x,d=x+S);var T=u[v-1].tickValue;T!=null&&p.set(T,c),t.add(new st({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:w,height:S},style:K({fill:s[c]},g),autoBatch:!0,silent:!0})),c=(c+1)%f}Bd(r).splitAreaColors=p}}}function Tb(r){Bd(r).splitAreaColors=null}var rR=["axisLine","axisTickLabel","axisName"],iR=["splitArea","splitLine","minorSplitLine"],Mb=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ft,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=el(s,e),u=new Qf(e,N({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),c=0;c<p.length;c++)if(qs(p[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));b(rR,u.add,u),this._axisGroup.add(u.getGroup()),b(iR,function(h){e.get([h,"show"])&&aR[h](this,this._axisGroup,e,s)},this);var f=n&&n.type==="changeAxisOrder"&&n.isInitSort;f||cp(o,this._axisGroup,e),r.prototype.render.call(this,e,i,a,n)}},t.prototype.remove=function(){Tb(this)},t.type="cartesianAxis",t})(Jf),aR={splitLine:function(r,t,e,i){var a=e.axis;if(!a.scale.isBlank()){var n=e.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=O(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,h=a.getTicksCoords({tickModel:n}),p=[],c=[],v=o.getLineStyle(),m=0;m<h.length;m++){var d=a.toGlobalCoord(h[m].coord);u?(p[0]=d,p[1]=l.y,c[0]=d,c[1]=l.y+l.height):(p[0]=l.x,p[1]=d,c[0]=l.x+l.width,c[1]=d);var g=f++%s.length,y=h[m].tickValue,_=new Ve({anid:y!=null?"line_"+h[m].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]},style:K({stroke:s[g]},v),silent:!0});Va(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,i){var a=e.axis,n=e.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],h=[],p=o.getLineStyle(),c=0;c<u.length;c++)for(var v=0;v<u[c].length;v++){var m=a.toGlobalCoord(u[c][v].coord);l?(f[0]=m,f[1]=s.y,h[0]=m,h[1]=s.y+s.height):(f[0]=s.x,f[1]=m,h[0]=s.x+s.width,h[1]=m);var d=new Ve({anid:"minor_line_"+u[c][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:p,silent:!0});Va(d.shape,p.lineWidth),t.add(d)}},splitArea:function(r,t,e,i){wb(r,t,e,i)}},Fd=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(Mb);var Cb=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Fd.type,e}return t.type="yAxis",t})(Mb);var nR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new st({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Lt),Db={offset:0};function Ab(r){r.registerComponentView(nR),r.registerComponentModel(eb),r.registerCoordinateSystem("cartesian2d",vb),Kf(r,"x",qf,Db),Kf(r,"y",qf,Db),r.registerComponentView(Fd),r.registerComponentView(Cb),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Eb="\0_ec_interaction_mutex";function Hd(r,t){return!!oR(r)[t]}function oR(r){return r[Eb]||(r[Eb]={})}Br({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Dt);var lR=(function(r){I(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var a=H(i._mousedownHandler,i),n=H(i._mousemoveHandler,i),o=H(i._mouseupHandler,i),s=H(i._mousewheelHandler,i),l=H(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=K(Y(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",a),e.on("mousemove",n),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",a),e.off("mousemove",n),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Oh(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!th("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Hd(this._zr,"globalPan"))){var i=e.offsetX,a=e.offsetY,n=this._x,o=this._y,s=i-n,l=a-o;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&Ce(e.event),Lb(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:o,newX:i,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Oh(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=th("zoomOnMouseWheel",e,this._opt),a=th("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,o=Math.abs(n),s=e.offsetX,l=e.offsetY;if(!(n===0||!i&&!a)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;Gd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var h=Math.abs(n),p=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);Gd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Hd(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;Gd(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(Wt);function Gd(r,t,e,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Ce(i.event),Lb(r,t,e,i,a))}function Lb(r,t,e,i,a){a.isAvailableBehavior=H(th,null,e,i),r.trigger(t,a)}function th(r,t,e){var i=e[r];return!r||i&&(!U(i)||t.event[i+"Key"])}var Ib=lR;var al=b,uR=F,ih=-1,Xd=(function(){function r(t){var e=t.mappingMethod,i=t.type,a=this.option=Y(t);this.type=i,this.mappingMethod=e,this._normalizeData=cR[e];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(Wd(a),fR(a)):e==="category"?a.categories?hR(a):Wd(a,!0):(Ft(e!=="linear"||a.dataExtent),Wd(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return H(this._normalizeData,this)},r.listVisualTypes=function(){return lt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,i){F(t)?b(t,e,i):e.call(i,t)},r.mapVisual=function(t,e,i){var a,n=O(t)?[]:F(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},i;return t&&al(r.visualHandlers,function(a,n){t.hasOwnProperty(n)&&(e[n]=t[n],i=!0)}),i?e:null},r.prepareVisualTypes=function(t){if(O(t))t=t.slice();else if(uR(t)){var e=[];al(t,function(i,a){e.push(a)}),t=e}else return[];return t.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,i){for(var a,n=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||U(l)&&l===t+"")return o;i&&p(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(rh(h[1],t,f[1]))return o}else if(f[1]===1/0){if(rh(h[0],f[0],t))return o}else if(rh(h[0],f[0],t)&&rh(h[1],t,f[1]))return o;i&&p(f[0],o),i&&p(f[1],o)}}if(i)return t===1/0?e.length-1:t===-1/0?0:a;function p(c,v){var m=Math.abs(c-t);m<n&&(n=m,a=v)}},r.visualHandlers={color:{applyVisual:rl("color"),getColorMapper:function(){var t=this.option;return H(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),il.call(this,e)}:function(e,i,a){var n=!!a;return!i&&(e=this._normalizeData(e)),a=wn(e,t.parsedVisual,a),n?a:De(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return De(wn(t,this.option.parsedVisual),"rgba")},category:il,piecewise:function(t,e){var i=Zd.call(this,e);return i==null&&(i=De(wn(t,this.option.parsedVisual),"rgba")),i},fixed:sn}},colorHue:eh(function(t,e){return ko(t,e)}),colorSaturation:eh(function(t,e){return ko(t,null,e)}),colorLightness:eh(function(t,e){return ko(t,null,null,e)}),colorAlpha:eh(function(t,e){return Kh(t,e)}),decal:{applyVisual:rl("decal"),_normalizedToVisual:{linear:null,category:il,piecewise:null,fixed:null}},opacity:{applyVisual:rl("opacity"),_normalizedToVisual:Yd([0,1])},liftZ:{applyVisual:rl("liftZ"),_normalizedToVisual:{linear:sn,category:sn,piecewise:sn,fixed:sn}},symbol:{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("symbol",a)},_normalizedToVisual:{linear:Pb,category:il,piecewise:function(t,e){var i=Zd.call(this,e);return i==null&&(i=Pb.call(this,t)),i},fixed:sn}},symbolSize:{applyVisual:rl("symbolSize"),_normalizedToVisual:Yd([0,1])}},r})();function fR(r){var t=r.pieceList;r.hasSpecialVisual=!1,b(t,function(e,i){e.originIndex=i,e.visual!=null&&(r.hasSpecialVisual=!0)})}function hR(r){var t=r.categories,e=r.categoryMap={},i=r.visual;if(al(t,function(o,s){e[o]=s}),!O(i)){var a=[];F(i)?al(i,function(o,s){var l=e[s];a[l??ih]=o}):a[ih]=i,i=Rb(r,a)}for(var n=t.length-1;n>=0;n--)i[n]==null&&(delete e[t[n]],t.pop())}function Wd(r,t){var e=r.visual,i=[];F(e)?al(e,function(n){i.push(n)}):e!=null&&i.push(e);var a={color:1,symbol:1};!t&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),Rb(r,i)}function eh(r){return{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("color",r(e("color"),a))},_normalizedToVisual:Yd([0,1])}}function Pb(r){var t=this.option.visual;return t[Math.round(gt(r,[0,1],[0,t.length-1],!0))]||{}}function rl(r){return function(t,e,i){i(r,this.mapValueToVisual(t))}}function il(r){var t=this.option.visual;return t[this.option.loop&&r!==ih?r%t.length:r]}function sn(){return this.option.visual[0]}function Yd(r){return{linear:function(t){return gt(t,r,this.option.visual,!0)},category:il,piecewise:function(t,e){var i=Zd.call(this,e);return i==null&&(i=gt(t,r,this.option.visual,!0)),i},fixed:sn}}function Zd(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=Xd.findPieceIndex(r,e),a=e[i];if(a&&a.visual)return a.visual[this.type]}}function Rb(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=k(t,function(e){var i=re(e);return i||[0,0,0,1]})),t}var cR={linear:function(r){return gt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Xd.findPieceIndex(r,t,!0);if(e!=null)return gt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??ih},fixed:Dt};function rh(r,t,e){return r?t<=e:t<e}var Kt=Xd;function Gr(r,t,e,i,a,n){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=po(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=po(s,[0,o]),a=n=po(s,[a,n]),i=0}t[0]=po(t[0],e),t[1]=po(t[1],e);var l=qd(t,i);t[i]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=po(t[i],f);var h;return h=qd(t,i),a!=null&&(h.sign!==l.sign||h.span<a)&&(t[1-i]=t[i]+l.sign*a),h=qd(t,i),n!=null&&h.span>n&&(t[1-i]=t[i]+h.sign*n),t}function qd(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function po(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var pR=256,vR=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=$t.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,p=h.getContext("2d"),c=t.length;h.width=e,h.height=i;for(var v=0;v<c;++v){var m=t[v],d=m[0],g=m[1],y=m[2],_=a(y);p.globalAlpha=_,p.drawImage(s,d-f,g-f)}if(!h.width||!h.height)return h;for(var x=p.getImageData(0,0,h.width,h.height),w=x.data,S=0,T=w.length,M=this.minOpacity,D=this.maxOpacity,A=D-M;S<T;){var _=w[S+3]/256,C=Math.floor(_*(pR-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*A+M),w[S++]=E[C],w[S++]=E[C+1],w[S++]=E[C+2],w[S++]=E[C+3]*_*256}else S+=4}return p.putImageData(x,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=$t.createCanvas()),e=this.pointSize+this.blurSize,i=e*2;t.width=i,t.height=i;var a=t.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var i=this._gradientPixels,a=i[e]||(i[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r})(),Ob=vR;function dR(r,t,e){var i=r[1]-r[0];t=k(t,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=t.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&e[s]}}function mR(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(i){return i>=t[0]&&i<=t[1]}}function Nb(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var gR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):Nb(o)&&this._renderOnGeo(o,e,n,a)},t.prototype.incrementalPrepareRender=function(e,i,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,i,a,n){var o=i.coordinateSystem;o&&(Nb(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ni(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,i,a,n,o){var s=e.coordinateSystem,l=an(s,"cartesian2d"),u,f,h,p;if(l){var c=s.getAxis("x"),v=s.getAxis("y");u=c.getBandWidth()+.5,f=v.getBandWidth()+.5,h=c.scale.getExtent(),p=v.scale.getExtent()}for(var m=this.group,d=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),w=Fe(e),S=e.getModel("emphasis"),T=S.get("focus"),M=S.get("blurScope"),D=S.get("disabled"),A=l?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],C=a;C<n;C++){var E=void 0,L=d.getItemVisual(C,"style");if(l){var P=d.get(A[0],C),R=d.get(A[1],C);if(isNaN(d.get(A[2],C))||isNaN(P)||isNaN(R)||P<h[0]||P>h[1]||R<p[0]||R>p[1])continue;var z=s.dataToPoint([P,R]);E=new st({shape:{x:z[0]-u/2,y:z[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(d.get(A[1],C)))continue;E=new st({z2:1,shape:s.dataToRect([d.get(A[0],C)]).contentShape,style:L})}if(d.hasItemOption){var Z=d.getItemModel(C),V=Z.getModel("emphasis");g=V.getModel("itemStyle").getItemStyle(),y=Z.getModel(["blur","itemStyle"]).getItemStyle(),_=Z.getModel(["select","itemStyle"]).getItemStyle(),x=Z.get(["itemStyle","borderRadius"]),T=V.get("focus"),M=V.get("blurScope"),D=V.get("disabled"),w=Fe(Z)}E.shape.r=x;var B=e.getRawValue(C),X="-";B&&B[2]!=null&&(X=B[2]+""),ar(E,w,{labelFetcher:e,labelDataIndex:C,defaultOpacity:L.opacity,defaultText:X}),E.ensureState("emphasis").style=g,E.ensureState("blur").style=y,E.ensureState("select").style=_,yr(E,T,M,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),m.add(E),d.setItemGraphicEl(C,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(e,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new Ob;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=e.getViewRect().clone(),h=e.getRoamTransform();f.applyTransform(h);var p=Math.max(f.x,0),c=Math.max(f.y,0),v=Math.min(f.width+f.x,n.getWidth()),m=Math.min(f.height+f.y,n.getHeight()),d=v-p,g=m-c,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(T,M,D){var A=e.dataToPoint([T,M]);return A[0]-=p,A[1]-=c,A.push(D),A}),x=a.getExtent(),w=a.type==="visualMap.continuous"?mR(x,a.option.range):dR(x,a.getPieceList(),a.option.selected);u.update(_,d,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var S=new ne({style:{width:d,height:g,x:p,y:c,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t})(Ut),zb=gR;var yR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return Fr(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ri.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(qt),kb=yR;function Kd(r){r.registerChartView(zb),r.registerSeriesModel(kb)}var ln=ht(),Ub=Y,jd=H,_R=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,a){var n=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ft,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var p=ct(Vb,e,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}Fb(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),a=t.axis,n=a.type==="category",o=e.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=$f(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,a,n){},r.prototype.createPointerEl=function(t,e,i,a){var n=e.pointer;if(n){var o=ln(t).pointerEl=new It[n.type](Ub(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,a){if(e.label){var n=ln(t).labelEl=new vt(Ub(e.label));t.add(n),Bb(n,a)}},r.prototype.updatePointerEl=function(t,e,i){var a=ln(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),i(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,a){var n=ln(t).labelEl;n&&(n.setStyle(e.label.style),i(n,{x:e.label.x,y:e.label.y}),Bb(n,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=e.getModel("handle"),o=e.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ba(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ce(u.event)},onmousedown:jd(this._onHandleDragMove,this,0,0),drift:jd(this._onHandleDragMove,this),ondragend:jd(this._onHandleDragEnd,this)}),i.add(a)),Fb(a,e,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,zi(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Vb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Qd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(Qd(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(Qd(a)),ln(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,a=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Qa(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function Vb(r,t,e,i){Hb(ln(e).lastProp,i)||(ln(e).lastProp=i,t?Ct(e,i,r):(e.stopAnimation(),e.attr(i)))}function Hb(r,t){if(F(r)&&F(t)){var e=!0;return b(t,function(i,a){e=e&&Hb(r[a],i)}),!!e}else return r===t}function Bb(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Qd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Fb(r,t,e){var i=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=e)})}var Gb=_R;function Wb(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function xR(r,t,e,i,a){var n=e.get("value"),o=$d(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=or(s.get("padding")||0),u=s.getFont(),f=Mn(o,u),h=a.position,p=f.width+l[1]+l[3],c=f.height+l[0]+l[2],v=a.align;v==="right"&&(h[0]-=p),v==="center"&&(h[0]-=p/2);var m=a.verticalAlign;m==="bottom"&&(h[1]-=c),m==="middle"&&(h[1]-=c/2),SR(h,p,c,i);var d=s.get("backgroundColor");(!d||d==="auto")&&(d=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:d}),z2:10}}function SR(r,t,e,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function $d(r,t,e,i,a){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Qs(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};b(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?n=o.replace("{value}",n):G(o)&&(n=o(s))}return n}function Jd(r,t,e){var i=dr();return ea(i,i,e.rotation),yn(i,i,e.position),Sr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function Yb(r,t,e,i,a,n){var o=Qf.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),xR(t,i,a,n,{position:Jd(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Zb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Xb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var bR=(function(r){I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=Kb(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Wb(n),c=wR[u](s,h,f);c.style=p,e.graphicKey=c.type,e.pointer=c}var v=el(l.model,a);Yb(i,e,v,a,n,o)},t.prototype.getHandleTransform=function(e,i,a){var n=el(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Jd(i.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Kb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var p=(u[1]+u[0])/2,c=[p,p];c[f]=h[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:v[f]}},t})(Gb);function Kb(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var wR={line:function(r,t,e){var i=Zb([t,e[0]],[t,e[1]],jb(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Xb([t-i/2,e[0]],[i,a],jb(r))}}};function jb(r){return r.dim==="x"?0:1}var Qb=bR;var TR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(pt),$b=TR;var vi=ht(),MR=b;function ah(r,t,e){if(!j.node){var i=t.getZr();vi(i).records||(vi(i).records={}),CR(i,t);var a=vi(i).records[r]||(vi(i).records[r]={});a.handler=e}}function CR(r,t){if(vi(r).initialized)return;vi(r).initialized=!0,e("click",ct(Jb,"click")),e("mousemove",ct(Jb,"mousemove")),e("globalout",AR);function e(i,a){r.on(i,function(n){var o=ER(t);MR(vi(r).records,function(s){s&&a(s,n,o.dispatchAction)}),DR(o.pendings,t)})}}function DR(r,t){var e=r.showTip.length,i=r.hideTip.length,a;e?a=r.showTip[e-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function AR(r,t,e){r.handler("leave",null,e)}function Jb(r,t,e,i){t.handler(r,e,i)}function ER(r){var t={showTip:[],hideTip:[]},e=function(i){var a=t[i.type];a?a.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function nl(r,t){if(!j.node){var e=t.getZr(),i=(vi(e).records||{})[r];i&&(vi(e).records[r]=null)}}var LR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=i.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";ah("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){nl("axisPointer",i)},t.prototype.dispose=function(e,i){nl("axisPointer",i)},t.type="axisPointer",t})(Lt),ew=LR;function ol(r,t){var e=[],i=r.seriesIndex,a;if(i==null||!(a=t.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Je(n,r);if(o==null||o<0||O(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,p=u.dim,c=h==="x"||h==="radius"?1:0,v=n.mapDimension(p),m=[];m[c]=n.get(v,o),m[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(m)||[]}else e=l.dataToPoint(n.getValues(k(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var d=s.getBoundingRect().clone();d.applyTransform(s.transform),e=[d.x+d.width/2,d.y+d.height/2]}return{point:e,el:s}}var rw=ht();function tm(r,t,e){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||H(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){nh(a)&&(a=ol({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=nh(a),u=n.axesInfo,f=s.axesInfo,h=i==="leave"||nh(a),p={},c={},v={list:[],map:{}},m={showPointer:ct(PR,c),showTooltip:ct(RR,v)};b(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);b(s.coordSysAxesInfo[y],function(x,w){var S=x.axis,T=kR(u,x);if(!h&&_&&(!u||T)){var M=T&&T.value;M==null&&!l&&(M=S.pointToData(a)),M!=null&&iw(x,M,m,!1,p)}})});var d={};return b(f,function(g,y){var _=g.linkGroup;_&&!c[y]&&b(_.axesInfo,function(x,w){var S=c[w];if(x!==g&&S){var T=S.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,aw(x),aw(g)))),d[g.key]=T}})}),b(d,function(g,y){iw(f[y],g,m,!0,p)}),OR(c,f,p),NR(v,a,r,o),zR(f,o,e),p}}function iw(r,t,e,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=IR(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function IR(r,t){var e=t.axis,i=e.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return b(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);p=c.dataIndices,h=c.nestestValue}else{if(p=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!p.length)return;h=l.getData().get(f[0],p[0])}if(!(h==null||!isFinite(h))){var v=r-h,m=Math.abs(v);m<=o&&((m<o||v>=0&&s<0)&&(o=m,s=v,a=h,n.length=0),b(p,function(d){n.push({seriesIndex:l.seriesIndex,dataIndexInside:d,dataIndex:l.getData().getRawIndex(d)})}))}}),{payloadBatch:n,snapToValue:a}}function PR(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function RR(r,t,e,i){var a=e.payloadBatch,n=t.axis,o=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=co(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function OR(r,t,e){var i=e.axesInfo=[];b(t,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function NR(r,t,e,i){if(nh(t)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function zR(r,t,e){var i=e.getZr(),a="axisPointerLastHighlights",n=rw(i)[a]||{},o=rw(i)[a]={};b(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&b(h.seriesDataIndices,function(p){var c=p.seriesIndex+" | "+p.dataIndex;o[c]=p})});var s=[],l=[];b(n,function(u,f){!o[f]&&l.push(u)}),b(o,function(u,f){!n[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function kR(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function aw(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function nh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function un(r){Jf.registerAxisPointerClass("CartesianAxisPointer",Qb),r.registerComponentModel($b),r.registerComponentView(ew),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=_b(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tm)}function em(r){Bt(Ab),Bt(un)}var rm=["x","y","radius","angle","single"],UR=["cartesian2d","polar","singleAxis"];function nw(r){var t=r.get("coordinateSystem");return it(UR,t)>=0}function cr(r){return r+"Axis"}function ow(r,t){var e=W(),i=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(p,c){var v=e.get(p);v&&v[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,p){(e.get(h)||e.set(h,[]))[p]=!0})}return i}function oh(r){var t=r.ecModel,e={infoList:[],infoMap:W()};return r.eachTargetAxis(function(i,a){var n=t.getComponent(cr(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(n)}}}),e}var im=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),VR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,a){var n=sw(e);this.settledOption=n,this.mergeDefaultAndTheme(e,a),this._doInit(n)},t.prototype.mergeOption=function(e){var i=sw(e);tt(this.option,e,!0),tt(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;b([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return b(rm,function(a){var n=this.getReferringComponents(cr(a),Kg);if(n.specified){i=!0;var o=new im;b(n.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(h){var p=new im;if(p.add(h.componentIndex),e.set(f,p),n=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",zt).models[0];c&&b(u,function(v){h.componentIndex!==v.componentIndex&&c===v.getReferringComponents("grid",zt).models[0]&&p.add(v.componentIndex)})}}}n&&b(rm,function(u){if(n){var f=a.findComponents({mainType:cr(u),filter:function(p){return p.get("type",!0)==="category"}});if(f[0]){var h=new im;h.add(f[0].componentIndex),e.set(u,h),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,a=this.get("rangeMode");b([["start","startValue"],["end","endValue"]],function(n,o){var s=e[n[0]]!=null,l=e[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,a){e==null&&(e=this.ecModel.getComponent(cr(i),a))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(a,n){b(a.indexList,function(o){e.call(i,n,o)})})},t.prototype.getAxisProxy=function(e,i){var a=this.getAxisModel(e,i);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[i])return this.ecModel.getComponent(cr(e),i)},t.prototype.setRawRange=function(e){var i=this.option,a=this.settledOption;b([["start","startValue"],["end","endValue"]],function(n){(e[n[0]]!=null||e[n[1]]!=null)&&(i[n[0]]=a[n[0]]=e[n[0]],i[n[1]]=a[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;b(["start","startValue","end","endValue"],function(a){i[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var o=a[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(pt);function sw(r){var t={};return b(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var vo=VR;var BR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a,n){this.dataZoomModel=e,this.ecModel=i,this.api=a},t.type="dataZoom",t})(Lt),sh=BR;var mo=b,lw=ke,FR=(function(){function r(t,e,i,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=i}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(nw(e)){var i=cr(this._dimName),a=e.getReferringComponents(i,zt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Y(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;mo(["start","end"],function(p,c){var v=t[p],m=t[p+"Value"];n[c]==="percent"?(v==null&&(v=o[c]),m=a.parse(gt(v,o,e))):(u=!0,m=m==null?e[c]:a.parse(m),v=gt(m,e,o)),l[c]=m==null||isNaN(m)?e[c]:m,s[c]=v==null||isNaN(v)?o[c]:v}),lw(l),lw(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(p,c,v,m,d){var g=d?"Span":"ValueSpan";Gr(0,p,v,"all",f["min"+g],f["max"+g]);for(var y=0;y<2;y++)c[y]=gt(p[y],v,m,!0),d&&(c[y]=a.parse(c[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=HR(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,a=this.getTargetSeriesModels(),n=t.get("filterMode"),o=this._valueWindow;if(n==="none")return;mo(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(n==="weakFilter"){var h=u.getStore(),p=k(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var v,m,d,g=0;g<f.length;g++){var y=h.get(p[g],c),_=!isNaN(y),x=y<o[0],w=y>o[1];if(_&&!x&&!w)return!0;_&&(d=!0),x&&(v=!0),w&&(m=!0)}return d&&v&&m})}else mo(f,function(c){if(n==="empty")l.setData(u=u.map(c,function(m){return s(m)?m:NaN}));else{var v={};v[c]=o,u.selectRange(v)}});mo(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;mo(["min","max"],function(a){var n=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=gt(i[0]+o,i,[0,100],!0):n!=null&&(o=gt(n,[0,100],i,!0)-i[0]),t[a+"Span"]=n,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var a=An(i,[0,500]);a=Math.min(a,20);var n=t.axis.scale.rawExtentInfo;e[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),e[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r})();function HR(r,t,e){var i=[1/0,-1/0];mo(e,function(o){WS(i,o.getData(),t)});var a=r.getAxisModel(),n=Pf(a.axis.scale,a,i).calculate();return[n.min,n.max]}var uw=FR;var GR={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(cr(o),s);a(o,s,l,n)})})}t(function(a,n,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uw(a,n,s,r),e.push(o.__dzAxisProxy))});var i=W();return b(e,function(a){b(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,a){e.getAxisProxy(i,a).reset(e)}),e.eachTargetAxis(function(i,a){e.getAxisProxy(i,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},fw=GR;function am(r){r.registerAction("dataZoom",function(t,e){var i=ow(e,t);b(i,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var hw=!1;function sl(r){hw||(hw=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,fw),am(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cw(r,t){var e=or(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new st({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var WR=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(pt),pw=WR;function lh(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function vw(r){if(j.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var nm=vw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),dw=vw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function om(r,t){if(!r)return t;t=jn(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function mw(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var YR=om(dw,"transition"),sm=om(nm,"transform"),ZR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(j.transform3dSupported?"will-change:transform;":"");function XR(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function qR(r,t,e){if(!U(e)||e==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");t=br(t);var n=XR(e),o=Math.max(Math.round(a)*1.5,6),s="",l=sm+":",u;it(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+a,p=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-h)/2)*100)/100;s+=";"+n+":-"+c+"px";var v=t+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+m.join("")+'"></div>'}function KR(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,a="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,a+=j.transformSupported?","+sm+i:",left"+i+",top"+i),YR+":"+a}function gw(r,t,e){var i=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!j.transformSupported)return e?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=j.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return e?"top:0;left:0;"+sm+":"+o+";":[["top",0],["left",0],[nm,o]]}function jR(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&t.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),b(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function QR(r,t,e){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Ku(r,"html"),p=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+p),t&&a&&i.push(KR(a,e)),n&&i.push("background-color:"+n),b(["width","color","radius"],function(c){var v="border-"+c,m=jn(v),d=r.get(m);d!=null&&i.push(v+":"+d+(c==="color"?"":"px"))}),i.push(jR(f)),h!=null&&i.push("padding:"+or(h).join("px ")+"px"),i.join(";")+";"}function yw(r,t,e,i,a){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&km(r,o,e,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var $R=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,j.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=t.getZr(),n=e.appendTo,o=n&&(U(n)?document.querySelector(n):Qi(n)?n:G(n)&&n(t.getDom()));yw(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;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=a.handler,f=a.painter.getViewportRoot();Me(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=mw(e,"position"),a=e.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=ZR+QR(t,!this._firstShow,this._longHide)+gw(n[0],n[1],!0)+("border-color:"+br(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,a,n){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(n)&&i.get("trigger")==="item"&&!lh(i)&&(s=qR(i,a,n)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l<t.length;l++)Qi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var i=this._styleCoord;if(yw(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var a=this.el.style,n=gw(i[0],i[1]);b(n,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",j.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),_w=$R;var JR=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Sw(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,a,n){var o=this;F(t)&&ae(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new vt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Ku(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=xw(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var a=this._styleCoord;Sw(a,this._zr,t,e),t=a[0],e=a[1];var n=i.style,o=Ki(n.borderWidth||0),s=xw(n);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ki(r){return Math.max(0,r)}function xw(r){var t=Ki(r.shadowBlur||0),e=Ki(r.shadowOffsetX||0),i=Ki(r.shadowOffsetY||0);return{left:Ki(t-e),right:Ki(t+e),top:Ki(t-i),bottom:Ki(t+i)}}function Sw(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var bw=JR;var tO=new st({shape:{x:-1,y:-1,width:2,height:2}}),eO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(j.node||!i.getDom())){var a=e.getComponent("tooltip"),n=this._renderMode=Qg(a.get("renderMode"));this._tooltipContent=n==="richText"?new bw(i):new _w(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,i,a){if(!(j.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?zi(this,"_updatePosition",50,"fixRate"):Qa(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");ah("itemTooltip",this._api,H(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,a=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,a,n){if(!(n.from===this.uid||j.node||!a.getDom())){var o=ww(n,a);this._ticket="";var s=n.dataByCoordSys,l=nO(n,i,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=tO;f.x=n.x,f.y=n.y,f.update(),ut(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,a,n))return;var h=ol(n,i),p=h.point[0],c=h.point[1];p!=null&&c!=null&&this._tryShow({offsetX:p,offsetY:c,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(ww(n,a))},t.prototype._manuallyAxisShowTip=function(e,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=ll([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,i){var a=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=ut(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;hi(a,function(f){if(ut(f).dataIndex!=null)return l=f,!0;if(ut(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var a=e.get("showDelay");i=H(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},t.prototype._showAxisTooltip=function(e,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=ll([i.tooltipOption],n),l=this._renderMode,u=[],f=qa("section",{blocks:[],noHeader:!0}),h=[],p=new ju;b(e,function(y){b(y.dataByAxis,function(_){var x=a.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var S=$d(w,x.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=qa("section",{header:S,noHeader:!te(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),b(_.seriesDataIndices,function(M){var D=a.getSeriesByIndex(M.seriesIndex),A=M.dataIndexInside,C=D.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Qs(x.axis,{value:w}),C.axisValueLabel=S,C.marker=p.makeTooltipMarker("item",br(C.color),l);var E=qp(D.formatTooltip(A,!0,null)),L=E.frag;if(L){var P=ll([D],n).get("valueFormatter");T.blocks.push(P?N({valueFormatter:P},L):L)}E.text&&h.push(E.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,v=s.get("order"),m=tv(f,p,l,v,a.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var d=l==="richText"?`
`:"<br/>",g=h.join(d);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,p)})},t.prototype._showSeriesItemTooltip=function(e,i,a){var n=this._ecModel,o=ut(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,p=u.getData(h),c=this._renderMode,v=e.positionDefault,m=ll([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),d=m.get("trigger");if(!(d!=null&&d!=="item")){var g=u.getDataParams(f,h),y=new ju;g.marker=y.makeTooltipMarker("item",br(g.color),c);var _=qp(u.formatTooltip(f,!1,h)),x=m.get("order"),w=m.get("valueFormatter"),S=_.frag,T=S?tv(w?N({valueFormatter:w},S):S,y,c,x,n.get("useUTC"),m.get("textStyle")):_.text,M="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,T,g,M,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,a){var n=this._renderMode==="html",o=ut(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=Y(l),l.content=ee(l.content));var h=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&h.push(p),h.push({formatter:l.content});var c=e.positionDefault,v=ll(h,this._tooltipModel,c?{position:c}:null),m=v.get("content"),d=Math.random()+"",g=new ju;this._showOrMove(v,function(){var y=Y(v.get("formatterParams")||{});this._showTooltipContent(v,m,y,d,e.offsetX,e.offsetY,e.position,i,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,a,n,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var c=i,v=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),m=v.color;if(p)if(U(p)){var d=e.ecModel.get("useUTC"),g=O(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=p,y&&(c=oi(g.axisValue,c,d)),c=Qn(c,a,!0)}else if(G(p)){var _=H(function(x,w){x===this._ticket&&(h.setContent(w,f,e,m,l),this._updatePosition(e,l,o,s,h,a,u))},this);this._ticket=n,c=p(a,n,_)}else c=p;h.setContent(c,f,e,m,l),h.show(e,m),this._updatePosition(e,l,o,s,h,a,u)}},t.prototype._getNearestPoint=function(e,i,a,n){if(a==="axis"||O(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!O(i))return{color:n||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),p=e.get("align"),c=e.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),G(i)&&(i=i([a,n],s,o.el,v,{viewSize:[u,f],contentSize:h.slice()})),O(i))a=yt(i[0],u),n=yt(i[1],f);else if(F(i)){var m=i;m.width=h[0],m.height=h[1];var d=pe(m,{width:u,height:f});a=d.x,n=d.y,p=null,c=null}else if(U(i)&&l){var g=aO(i,v,h,e.get("borderWidth"));a=g[0],n=g[1]}else{var g=rO(a,n,o,u,f,p?null:20,c?null:20);a=g[0],n=g[1]}if(p&&(a-=Tw(p)?h[0]/2:p==="right"?h[0]:0),c&&(n-=Tw(c)?h[1]/2:c==="bottom"?h[1]:0),lh(e)){var g=iO(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===e.length;return o&&b(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&b(u,function(p,c){var v=h[c]||{},m=p.seriesDataIndices||[],d=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&m.length===d.length,o&&b(m,function(g,y){var _=d[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),n&&b(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=n[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){j.node||!i.getDom()||(Qa(this,"_updatePosition"),this._tooltipContent.dispose(),nl("itemTooltip",i))},t.type="tooltip",t})(Lt);function ll(r,t,e){var i=t.ecModel,a;e?(a=new _t(e,i,i),a=new _t(t.option,a,i)):a=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof _t&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(a=new _t(o,a,i)))}return a}function ww(r,t){return r.dispatchAction||H(t.dispatchAction,t)}function rO(r,t,e,i,a,n,o){var s=e.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function iO(r,t,e,i,a){var n=e.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function aO(r,t,e,i){var a=e[0],n=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-n/2;break;case"top":s=t.x+u/2-a/2,l=t.y-n-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-n/2;break;case"right":s=t.x+u+o,l=t.y+f/2-n/2}return[s,l]}function Tw(r){return r==="center"||r==="middle"}function nO(r,t,e){var i=$o(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=bi(t,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var Mw=eO;function lm(r){Bt(un),r.registerComponentModel(pw),r.registerComponentView(Mw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Dt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Dt)}var Cw=b;function Dw(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function um(r,t,e){var i={};return Cw(t,function(n){var o=i[n]=a();Cw(r[n],function(s,l){if(Kt.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new Kt(u),l==="opacity"&&(u=Y(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Kt(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function Aw(r,t,e){var i;b(e,function(a){t.hasOwnProperty(a)&&Dw(t[a])&&(i=!0)}),i&&b(e,function(a){t.hasOwnProperty(a)&&Dw(t[a])?r[a]=Y(t[a]):delete r[a]})}function Ew(r,t,e,i){var a={};return b(r,function(n){var o=Kt.prepareVisualTypes(t[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(w){return af(s,h,w)}function f(w,S){Dx(s,h,w,S)}for(var h,p=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var v=i!=null?p.get(l,h):h,m=e(v),d=t[m],g=a[m],y=0,_=g.length;y<_;y++){var x=g[y];d[x]&&d[x].applyVisual(v,u,f)}}}}}var oO=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},sO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,a=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),O(i)&&b(i,function(n,o){U(n)&&(n={type:n}),i[o]=tt(n,oO(a,n.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<e.length;a++){var n=e[a].get("name");if(this.isSelected(n)){this.select(n),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&Pn(l)&&i.push(l.name)}),this._availableNames=a;var n=this.get("data")||i,o=W(),s=k(n,function(l){return(U(l)||nt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new _t(l,this,this.ecModel))},this);this._data=Mt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var n=this._data;b(n,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;b(e,function(a){i[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;b(e,function(a){var n=a.get("name",!0);i.hasOwnProperty(n)||(i[n]=!0),i[n]=!i[n]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&it(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(pt),ul=sO;var go=ct,fm=b,uh=ft,lO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new uh),this.group.add(this._selectorGroup=new uh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,a,l,s,u);var f=e.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},p=e.get("padding"),c=pe(f,h,p),v=this.layoutInner(e,o,c,n,l,u),m=pe(K({width:v.width,height:v.height},f),h,p);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=cw(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,a,n,o,s,l){var u=this.getContentGroup(),f=W(),h=i.get("selectedMode"),p=[];a.eachRawSeries(function(c){!c.get("legendHoverLink")&&p.push(c.id)}),fm(i.getData(),function(c,v){var m=c.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var d=new uh;d.newline=!0,u.add(d);return}var g=a.getSeriesByName(m)[0];if(!f.get(m))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),w=y.getVisual("style"),S=this._createItem(g,m,v,c,i,e,_,w,x,h,n);S.on("click",go(Iw,m,null,n,p)).on("mouseover",go(hm,g.name,null,n,p)).on("mouseout",go(cm,g.name,null,n,p)),a.ssr&&S.eachChild(function(T){var M=ut(T);M.seriesIndex=g.seriesIndex,M.dataIndex=v,M.ssrType="legend"}),f.set(m,!0)}else a.eachRawSeries(function(T){if(!f.get(m)&&T.legendVisualProvider){var M=T.legendVisualProvider;if(!M.containName(m))return;var D=M.indexOfName(m),A=M.getItemVisual(D,"style"),C=M.getItemVisual(D,"legendIcon"),E=re(A.fill);E&&E[3]===0&&(E[3]=.2,A=N(N({},A),{fill:De(E,"rgba")}));var L=this._createItem(T,m,v,c,i,e,{},A,C,h,n);L.on("click",go(Iw,null,m,n,p)).on("mouseover",go(hm,null,m,n,p)).on("mouseout",go(cm,null,m,n,p)),a.ssr&&L.eachChild(function(P){var R=ut(P);R.seriesIndex=T.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},t.prototype._createSelector=function(e,i,a,n,o){var s=this.getSelectorGroup();fm(e,function(u){var f=u.type,h=new vt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var p=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);ar(h,{normal:p,emphasis:c},{defaultText:u.title}),Ei(h)})},t.prototype._createItem=function(e,i,a,n,o,s,l,u,f,h,p){var c=e.visualDrawType,v=o.get("itemWidth"),m=o.get("itemHeight"),d=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),_=n.get("icon");f=_||f||"roundRect";var x=uO(f,n,l,u,c,d,p),w=new uh,S=n.getModel("textStyle");if(G(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:v,itemHeight:m,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;w.add(fO({itemWidth:v,itemHeight:m,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?v+5:-5,D=s,A=o.get("formatter"),C=i;U(A)&&A?C=A.replace("{name}",i??""):G(A)&&(C=A(i));var E=d?S.getTextColor():n.get("inactiveColor");w.add(new vt({style:Zt(S,{text:C,x:M,y:m/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var L=new st({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&ms({el:L,componentModel:o,itemName:i,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),Ei(w),w.__legendDataIndex=a,w},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();si(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){si("horizontal",u,e.get("selectorItemGap",!0));var p=u.getBoundingRect(),c=[-p.x,-p.y],v=e.get("selectorButtonGap",!0),m=e.getOrient().index,d=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?c[m]+=f[d]+v:h[m]+=p[d]+v,c[1-m]+=f[g]/2-p[g]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[d]=f[d]+v+p[d],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+c[1-m]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Lt);function uO(r,t,e,i,a,n,o){function s(d,g){d.lineWidth==="auto"&&(d.lineWidth=g.lineWidth>0?2:0),fm(d,function(y,_){d[_]==="inherit"&&(d[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Us(h,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:e).opacity),s(u,i);var p=t.getModel("lineStyle"),c=p.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!n){var v=t.get("inactiveBorderWidth"),m=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=p.get("inactiveColor"),c.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function fO(r){var t=r.icon||"roundRect",e=Vt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Iw(r,t,e,i){cm(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),hm(r,t,e,i)}function Pw(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,a=t.length;i<a&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function hm(r,t,e,i){Pw(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function cm(r,t,e,i){Pw(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}var fh=lO;function pm(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function fl(r,t,e){var i={},a=r==="toggleSelected",n;return e.eachComponent("legend",function(o){a&&n!=null?o[n?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),n=o.isSelected(t.name));var s=o.getData();b(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function Rw(r){r.registerAction("legendToggleSelect","legendselectchanged",ct(fl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ct(fl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ct(fl,"inverseSelect")),r.registerAction("legendSelect","legendselected",ct(fl,"select")),r.registerAction("legendUnSelect","legendunselected",ct(fl,"unSelect"))}function hh(r){r.registerComponentModel(ul),r.registerComponentView(fh),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,pm),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Rw(r)}var hO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,a){var n=Vr(e);r.prototype.init.call(this,e,i,a),Ow(this,e,n)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Ow(this,this.option,e)},t.type="legend.scroll",t.defaultOption=nr(ul.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(ul);function Ow(r,t,e){var i=r.getOrient(),a=[1,1];a[i.index]=0,Ur(t,e,{type:"box",ignoreSize:!!a})}var Nw=hO;var zw=ft,vm=["width","height"],dm=["x","y"],cO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new zw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new zw)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,a,n,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,a,n,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),p=O(h)?h:[h,h];v("pagePrev",0);var c=i.getModel("pageTextStyle");f.add(new vt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,d){var g=m+"DataIndex",y=Ba(i.get("pageIcons",!0)[i.getOrient().name][d],{onclick:H(u._pageGo,u,g,i,n)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=m,f.add(y)}},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=vm[u],h=dm[u],p=vm[1-u],c=dm[1-u];o&&si("horizontal",l,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=l.getBoundingRect(),d=[-m.x,-m.y],g=Y(a);o&&(g[f]=a[f]-m[f]-v);var y=this._layoutContentAndController(e,n,g,u,f,p,c,h);if(o){if(s==="end")d[u]+=y[f]+v;else{var _=m[f]+v;d[u]-=_,y[h]-=_}y[f]+=m[f]+v,d[1-u]+=y[c]+y[p]/2-m[p]/2,y[p]=Math.max(y[p],m[p]),y[c]=Math.min(y[c],m[c]+d[1-u]),l.x=d[0],l.y=d[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,i,a,n,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;si(e.get("orient"),f,e.get("itemGap"),n?a.width:null,n?null:a.height),si("horizontal",p,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=c[o]>a[o],d=[-c.x,-c.y];i||(d[n]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=et(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var x=e.get("pageButtonPosition",!0);x==="end"?y[n]+=a[o]-v[o]:g[n]+=v[o]+_}y[1-n]+=c[s]/2-v[s]/2,f.setPosition(d),h.setPosition(g),p.setPosition(y);var w={x:0,y:0};if(w[o]=m?a[o]:c[o],w[s]=Math.max(c[s],v[s]),w[l]=Math.min(0,v[l]+y[1-n]),h.__rectSize=a[o],m){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=w[s],h.setClipPath(new st({shape:S})),h.__rectSize=S[o]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Ct(f,{x:T.contentPosition[0],y:T.contentPosition[1]},m?e:null),this._updatePageInfoView(e,T),w},t.prototype._pageGo=function(e,i,a){var n=this._getPageInfo(i)[e];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var a=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",p=i[h]!=null,c=a.childOfName(f);c&&(c.setStyle("fill",p?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=p?"pointer":"default")});var n=a.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,s=vm[o],l=dm[o],u=this._findTargetItemIndex(i),f=a.children(),h=f[u],p=f.length,c=p?1:0,v={contentPosition:[a.x,a.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return v;var m=x(h);v.contentPosition[o]=-m.s;for(var d=u+1,g=m,y=m,_=null;d<=p;++d)_=x(f[d]),(!_&&y.e>g.s+n||_&&!w(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var d=u-1,g=m,y=m,_=null;d>=-1;--d)_=x(f[d]),(!_||!w(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(S){if(S){var T=S.getBoundingRect(),M=T[l]+S[l];return{s:M,e:M+T[s],i:S.__legendDataIndex}}}function w(S,T){return S.e>=T&&S.s<=T+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(i=s)}),i??n},t.type="legend.scroll",t})(fh),kw=cO;function mm(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(i)})})}function Uw(r){Bt(hh),r.registerComponentModel(Nw),r.registerComponentView(kw),mm(r)}function gm(r){Bt(hh),Bt(Uw)}var pO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nr(vo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(vo),Vw=pO;var ym=ht();function Bw(r,t,e){ym(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Fw(r,t){for(var e=ym(r).coordSysRecordMap,i=e.keys(),a=0;a<i.length;a++){var n=i[a],o=e.get(n),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Hw(e,o))}}}function Hw(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function vO(r,t){var e={model:t,containsPoint:ct(mO,t),dispatchAction:ct(dO,r),dataZoomInfoMap:null,controller:null},i=e.controller=new Ib(r.getZr());return b(["pan","zoom","scrollMove"],function(a){i.on(a,function(n){var o=[];e.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function dO(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function mO(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function gO(r){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Gw(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=ym(e),a=i.coordSysRecordMap||(i.coordSysRecordMap=W());a.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=oh(n);b(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,vO(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=W());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Hw(a,n);return}var f=gO(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),zi(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var _O=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Bw(a,e,{pan:H(_m.pan,this),zoom:H(_m.zoom,this),scrollMove:H(_m.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Fw(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(sh),_m={zoom:function(r,t,e,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=xm[t](null,[i.originX,i.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Gr(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:Ww(function(r,t,e,i,a,n){var o=xm[i]([n.oldX,n.oldY],[n.newX,n.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Ww(function(r,t,e,i,a,n){var o=xm[i]([0,0],[n.scrollDelta,n.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*n.scrollDelta})};function Ww(r){return function(t,e,i,a){var n=this.range,o=n.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,i,a);if(Gr(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var xm={grid:function(r,t,e,i,a){var n=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,t,e,i,a){var n=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,t,e,i,a){var n=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},Yw=_O;function hl(r){sl(r),r.registerComponentModel(Vw),r.registerComponentView(Yw),Gw(r)}var xO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nr(vo.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})(vo),Zw=xO;var cl=st,Xw=7,SO=1,Sm=30,bO=7,pl="horizontal",qw="vertical",wO=5,TO=["line","bar","candlestick","scatter"],MO={easing:"cubicOut",duration:100,delay:0},CO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=H(this._onBrush,this),this._onBrushEnd=H(this._onBrushEnd,this)},t.prototype.render=function(e,i,a,n){if(r.prototype.render.apply(this,arguments),zi(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Qa(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ft;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,a=e.get("brushSelect"),n=a?bO:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===pl?{right:s.width-o.x-o.width,top:s.height-Sm-Xw-n,width:o.width,height:Sm}:{right:Xw,top:o.y,width:Sm,height:o.height},u=Vr(e.option);b(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=pe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===qw&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===pl&&!o?{scaleY:l?1:-1,scaleX:1}:a===pl&&o?{scaleY:l?1:-1,scaleX:-1}:a===qw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=e.get("brushSelect");a.add(new cl({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new cl({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:H(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,a=this._shadowSize||[],n=e.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var h=o.getDataExtent(l),p=(h[1]-h[0])*.3;h=[h[0]-p,h[1]+p];var c=[0,i[1]],v=[0,i[0]],m=[[i[0],0],[0,0]],d=[],g=v[1]/(o.count()-1),y=0,_=Math.round(o.count()/i[0]),x;o.each([l],function(D,A){if(_>0&&A%_){y+=g;return}var C=D==null||isNaN(D)||D==="",E=C?0:gt(D,h,c,!0);C&&!x&&A?(m.push([m[m.length-1][0],0]),d.push([d[d.length-1][0],0])):!C&&x&&(m.push([y,0]),d.push([y,0])),m.push([y,E]),d.push([y,E]),y+=g,x=C}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=d}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function S(D){var A=w.getModel(D?"selectedDataBackground":"dataBackground"),C=new ft,E=new ii({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new xr({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(E),C.add(L),C}for(var T=0;T<3;T++){var M=S(T===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();b(l,function(u){if(!a&&!(i!==!0&&it(TO,u.get("type"))<0)){var f=n.getComponent(cr(o),s).axis,h=DO(o),p,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(p=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),a={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:p}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),p=i.filler=new cl({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new cl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:SO,fill:"rgba(0,0,0,0)"}})),b([0,1],function(_){var x=l.get("handleIcon");!Os[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=Vt(x,-1,0,2,2,null,!0);w.attr({cursor:Kw(this._orient),draggable:!0,drift:H(this._onDragMove,this,_),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1),z2:5});var S=w.getBoundingRect(),T=l.get("handleSize");this._handleHeight=yt(T,this._size[1]),this._handleWidth=S.width/S.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(),Ei(w);var M=l.get("handleColor");M!=null&&(w.style.fill=M),o.add(a[_]=w);var D=l.getModel("textStyle");e.add(n[_]=new vt({silent:!0,invisible:!0,style:Zt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var c=p;if(h){var v=yt(l.get("moveHandleSize"),s[1]),m=i.moveHandle=new st({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),d=v*.8,g=i.moveHandleIcon=Vt(l.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0);g.silent=!0,g.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));c=i.moveZone=new st({invisible:!0,shape:{y:s[1]-y,height:v+y}}),c.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(g),o.add(c)}c.attr({draggable:!0,cursor:Kw(this._orient),drift:H(this._onDragMove,this,"all"),ondragstart:H(this._showDataInfo,this,!0),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[gt(e[0],[0,100],i,!0),gt(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Gr(i,n,o,a.get("zoomLock")?"all":e,s.minSpan!=null?gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?gt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ke([gt(n[0],o,l,!0),gt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,a=this._handleEnds,n=ke(a.slice()),o=this._size;b([0,1],function(c){var v=i.handles[c],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:a[c]+(c?-1:1),y:o[1]/2-m/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;f<l.length;f++){var h=l[f],p=h.getClipPath();p||(p=new st,h.setClipPath(p)),p.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,a=this._displayables,n=a.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var p=ke(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(v){var m=ai(a.handles[v].parent,this.group),d=ds(v===0?"right":"left",m),g=this._handleWidth/2+wO,y=Sr([p[v]+(v===0?-g:g),this._size[1]/2],m);n[v].setStyle({x:y[0],y:y[1],verticalAlign:o===pl?"middle":d,align:o===pl?d:"center",text:s[v]})}},t.prototype._formatLabel=function(e,i){var a=this.dataZoomModel,n=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return G(n)?n(e,s):U(n)?n.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,a=i.handleLabels;a[0].attr("invisible",!e),a[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,a,n){this._dragging=!0,Ce(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Sr([i,a],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>i[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,a=e.offsetY;this._brushStart=new rt(i,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ke([gt(a.x,o,s,!0),gt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ce(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new cl({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?MO:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=oh(this.dataZoomModel).infoList;if(!e&&i.length){var a=i[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var n=this.api.getWidth(),o=this.api.getHeight();e={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(sh);function DO(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Kw(r){return r==="vertical"?"ns-resize":"ew-resize"}var jw=CO;function vl(r){r.registerComponentModel(Zw),r.registerComponentView(jw),sl(r)}function bm(r){Bt(hl),Bt(vl)}var AO={get:function(r,t,e){var i=Y((EO[r]||{})[t]);return e&&O(i)?i[i.length-1]:i}},EO={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]}},ch=AO;var Qw=Kt.mapVisual,LO=Kt.eachVisual,IO=O,$w=b,PO=ke,RO=gt,OO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,i){var a=this.option;!i&&Aw(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=H(e,this),this.controllerVisuals=um(this.option.controller,i,e),this.targetVisuals=um(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,i=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=wt(e),i},t.prototype.eachTargetSeries=function(e,i){b(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&e.call(i,n)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(a){a===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],O(e)&&(e=e.slice(),u=!0);var f=i?e:u?[h(e[0]),h(e[1])]:h(e);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(G(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,i=PO([e.min,e.max]);this._dataExtent=i},t.prototype.getDataDimensionIndex=function(e){var i=this.option.dimension;if(i!=null)return e.getDimensionIndex(i);for(var a=e.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});tt(n,a),tt(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(h){IO(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,p,c){var v=h[p],m=h[c];v&&!m&&(m=h[c]={},$w(v,function(d,g){if(Kt.isValidType(g)){var y=ch.get(g,"inactive",s);y!=null&&(m[g]=y,g==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function f(h){var p=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),m=this.getItemSymbol(),d=m||"roundRect";$w(this.stateList,function(g){var y=this.itemSize,_=h[g];_||(_=h[g]={color:s?v:[v]}),_.symbol==null&&(_.symbol=p&&Y(p)||(s?d:[d])),_.symbolSize==null&&(_.symbolSize=c&&Y(c)||(s?y[0]:[y[0],y[0]])),_.symbol=Qw(_.symbol,function(S){return S==="none"?d:S});var x=_.symbolSize;if(x!=null){var w=-1/0;LO(x,function(S){S>w&&(w=S)}),_.symbolSize=Qw(x,function(S){return RO(S,[0,w],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(pt),yo=OO;var Jw=[20,140],NO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Jw[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Jw[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):O(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),b(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=ke((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]<e[0]&&(i[0]=e[0]),i[1]<e[0]&&(i[1]=e[0]),i},t.prototype.getValueState=function(e){var i=this.option.range,a=this.getExtent();return(i[0]<=a[0]||i[0]<=e)&&(i[1]>=a[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},t.prototype.getVisualMeta=function(e){var i=tT(this,"outOfRange",this.getExtent()),a=tT(this,"inRange",this.option.range.slice()),n=[];function o(c,v){n.push({value:c,color:e(c,v)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var h=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(h&&(n.length&&o(n[n.length-1].value,"outOfRange"),h=0),o(i[l],"outOfRange"));var p=n.length;return{stops:n,outerColors:[p?n[0].color:"transparent",p?n[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=nr(yo.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t})(yo);function tT(r,t,e){if(e[0]===e[1])return e.slice();for(var i=200,a=(e[1]-e[0])/i,n=e[0],o=[],s=0;s<=i&&n<e[1];s++)o.push(n),n+=a;return o.push(e[1]),o}var eT=NO;var zO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,a,n){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,i,a,n)},t.prototype.renderBackground=function(e){var i=this.visualMapModel,a=or(i.get("padding")||0),n=e.getBoundingRect();e.add(new st({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,v){s[c]=v}var h=o.controllerVisuals[n||o.getValueState(e)],p=Kt.prepareVisualTypes(h);return b(p,function(c){var v=h[c];a.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",v=h.__alphaForOpacity),Kt.dependsOn(c,i)&&v&&v.applyVisual(e,u,f)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,a=this.api;a_(e,i.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,i,a,n){},t.type="visualMap",t})(Lt),ph=zO;var rT=[["left","right","width"],["top","bottom","height"]];function vh(r,t,e){var i=r.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:t.getWidth(),height:t.getHeight()},o=i.orient==="horizontal"?1:0,s=rT[o],l=[0,null,10],u={},f=0;f<3;f++)u[rT[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:i[s[f]];var h=[["x","width",3],["y","height",0]][o],p=pe(u,n,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+p[h[1]]*.5<n[h[1]]*.5?0:1]}function _o(r,t){return b(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Wr=gt,kO=b,aT=Math.min,wm=Math.max,UO=12,VO=6,BO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,i){r.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=H(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=H(this._hideIndicator,this)},t.prototype.doRender=function(e,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,i=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(i);var a=e.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),h=this._applyTransform(a===0?"bottom":"top",u),p=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new vt({style:Zt(c,{x:f[0],y:f[1],verticalAlign:p==="horizontal"?"middle":h,align:p==="horizontal"?h:"center",text:n})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=vh(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new ft;u.add(f),f.add(a.outOfRange=nT()),f.add(a.inRange=nT(null,s?sT(this._orient):null,H(this._dragHandle,this,"all",!1),H(this._dragHandle,this,"all",!0))),f.setClipPath(new st({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),p=wm(h.width,h.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,p,o),this._createHandle(i,u,1,n,p,o)),this._createIndicator(i,u,n,p,o),e.add(u)},t.prototype._createHandle=function(e,i,a,n,o,s){var l=H(this._dragHandle,this,a,!1),u=H(this._dragHandle,this,a,!0),f=me(e.get("handleSize"),n[0]),h=Vt(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),p=sT(this._orient);h.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Ce(g.event)}}),h.x=n[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),uu(h,!0),i.add(h);var c=this.visualMapModel.textStyleModel,v=new vt({cursor:p,draggable:!0,drift:l,onmousemove:function(g){Ce(g.event)},ondragend:u,style:Zt(c,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var m=[f,0],d=this._shapes;d.handleThumbs[a]=h,d.handleLabelPoints[a]=m,d.handleLabels[a]=v},t.prototype._createIndicator=function(e,i,a,n,o){var s=me(e.get("indicatorSize"),a[0]),l=Vt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof ne){var f=l.style;l.useStyle(N({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,p=new vt({silent:!0,invisible:!0,style:Zt(h,{x:0,y:0,text:""})});this.group.add(p);var c=[(o==="horizontal"?n/2:VO)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=p,v.indicatorLabelPoint=c,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():oT(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),a=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[Wr(i[0],a,n,!0),Wr(i[1],a,n,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];Gr(i,n,o,e,0);var s=a.getExtent();this._dataInterval=[Wr(n[0],o,s,!0),Wr(n[1],o,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Li(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var a=100,n=[],o=(e[1]-e[0])/a;n.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),n},t.prototype._createBarPoints=function(e,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,a=this.visualMapModel.get("inverse");return new ft(i==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();kO([0,1],function(f){var h=o[f];h.setStyle("fill",i.handlesColor[f]),h.y=e[f];var p=Wr(e[f],[0,l[1]],u,!0),c=this.getControllerVisual(p,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var v=Sr(a.handleLabelPoints[f],ai(h,this.group));s[f].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var p={convertOpacityToAlpha:!0},c=this.getControllerVisual(e,"color",p),v=this.getControllerVisual(e,"symbolSize"),m=Wr(e,s,u,!0),d=l[0]-v/2,g={x:h.x,y:h.y};h.y=m,h.x=d;var y=Sr(f.indicatorLabelPoint,ai(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",f.mainGroup),w=this._orient,S=w==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:S?x:"middle",align:S?"center":x});var T={x:d,y:m,style:{fill:c}},M={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};h.x=g.x,h.y=g.y,h.animateTo(T,D),_.animateTo(M,D)}else h.attr(T),_.attr(M);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var C=0;C<A.length;C++)this.api.enterBlur(A[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,n=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);n[1]=aT(wm(0,n[1]),a[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();e=aT(wm(o[0],e),o[1]);var l=FO(a,s,o),u=[e-l,e+l],f=Wr(e,o,s,!0),h=[Wr(u[0],o,s,!0),Wr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var p=this._hoverLinkDataIndices,c=[];(i||oT(a))&&(c=this._hoverLinkDataIndices=a.findTargetDataIndices(h));var v=qg(p,c);this._dispatchHighDown("downplay",_o(v[0],a)),this._dispatchHighDown("highlight",_o(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(hi(e.target,function(l){var u=ut(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",_o(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,i,a,n){var o=ai(i,n?null:this.group);return O(e)?Sr(e,o,a):ds(e,o,a)},t.prototype._dispatchHighDown=function(e,i){i&&i.length&&this.api.dispatchAction({type:e,batch:i})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(ph);function nT(r,t,e,i){return new ii({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){Ce(a.event)},ondragend:i})}function FO(r,t,e){var i=UO/2,a=r.get("hoverLinkDataSize");return a&&(i=Wr(a,t,e,!0)/2),i}function oT(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function sT(r){return r==="vertical"?"ns-resize":"ew-resize"}var lT=BO;var uT={type:"selectDataRange",event:"dataRangeSelected",update:"update"},fT=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})};var hT=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(i){var a=r.pipelineContext;!i.isTargetSeries(r)||a&&a.large||e.push(Ew(i.stateList,i.targetVisuals,H(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),i=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var n=a.getVisualMeta(H(HO,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function HO(r,t,e,i){for(var a=t.targetVisuals[i],n=Kt.prepareVisualTypes(a),o={color:nf(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,h,p)}return o.color;function h(c){return o[c]}function p(c,v){o[c]=v}}var cT=b;function Tm(r){var t=r&&r.visualMap;O(t)||(t=t?[t]:[]),cT(t,function(e){if(e){xo(e,"splitList")&&!xo(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&O(i)&&cT(i,function(a){F(a)&&(xo(a,"start")&&!xo(a,"min")&&(a.min=a.start),xo(a,"end")&&!xo(a,"max")&&(a.max=a.end))})}})}function xo(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var pT=!1;function dl(r){pT||(pT=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(uT,fT),b(hT,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Tm))}function vT(r){r.registerComponentModel(eT),r.registerComponentView(lT),dl(r)}var GO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],WO[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Y(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=k(this._pieceList,function(l){return l=Y(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},a=Kt.listVisualTypes(),n=this.isCategory();b(e.pieces,function(s){b(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),b(i,function(s,l){var u=!1;b(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&b(this.stateList,function(f){(e[f]||(e[f]={}))[l]=ch.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var a=this.option,n=this._pieceList,o=(i?a:e).selected||{};if(a.selected=o,b(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;b(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Y(e)},t.prototype.getValueState=function(e){var i=Kt.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Kt.findPieceIndex(l,a);f===e&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var a=e.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,h){var p=n.getRepresentValue({interval:f});h||(h=n.getValueState(p));var c=e(p,h);f[0]===-1/0?a[0]=c:f[1]===1/0?a[1]=c:i.push({value:f[0],color:c},{value:f[1],color:c})}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 b(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:i,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nr(yo.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(yo),WO={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),qo(r),b(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;b(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),dT(t,r)},pieces:function(r){var t=this.option;b(t.pieces,function(e,i){F(e)||(e={value:e});var a={text:"",index:i};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var n=a.value=e.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var p=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=e[p[c]],s[h]=l[c],f[h]=c===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Kt.retrieveVisuals(e),r.push(a)},this),dT(t,r),qo(r),b(r,function(e){var i=e.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function dT(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var mT=GO;var YO=(function(r){I(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),h=f.endsText,p=Dr(i.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],u,p,l),b(f.viewPieceList,function(c){var v=c.piece,m=new ft;m.onclick=H(this._onItemClick,this,v),this._enableHoverLink(m,c.indexInModelPieceList);var d=i.getRepresentValue(v);if(this._createItemSymbol(m,d,[0,0,u[0],u[1]]),p){var g=this.visualMapModel.getValueState(d);m.add(new vt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}e.add(m)},this),h&&this._renderEndsText(e,h[1],u,p,l),si(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var a=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:_o(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return vh(e,this.api,e.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,i,a,n,o){if(i){var s=new ft,l=this.visualMapModel.textStyleModel;s.add(new vt({style:Zt(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=k(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),n=e.get("orient"),o=e.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},t.prototype._createItemSymbol=function(e,i,a){e.add(Vt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},t.prototype._onItemClick=function(e){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=Y(a.selected),s=i.getSelectedMapKey(e);n==="single"||n===!0?(o[s]=!0,b(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(ph),gT=YO;function yT(r){r.registerComponentModel(mT),r.registerComponentView(gT),dl(r)}function Mm(r){Bt(vT),Bt(yT)}function _T(r,t,e){var i=$t.createCanvas(),a=t.getWidth(),n=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=n+"px",i.setAttribute("data-zr-dom-id",r)),i.width=a*e,i.height=n*e,i}var ZO=(function(r){I(t,r);function t(e,i,a){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;a=a||ca,typeof e=="string"?o=_T(e,i,a):F(e)&&(o=e,e=o.id),n.id=e,n.dom=o;var s=o.style;return s&&(Do(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=i,n.dpr=a,n}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=_T("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,a,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new J(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,w=1/0,S=0,T=0;T<o.length;++T){var M=o[T];if(M.intersect(y)){var D=new J(0,0,0,0);D.copy(M),D.union(y),o[T]=D,x=!0;break}else if(l){u.copy(y),u.union(M);var A=y.width*y.height,C=M.width*M.height,E=u.width*u.height,L=E-A-C;L<w&&(w=L,S=T)}}if(l&&(o[S].union(y),x=!0),!x){var _=new J(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var p=e[h];if(p){var c=p.shouldBePainted(a,n,!0,!0),v=p.__isRendered&&(p.__dirty&Ht||!c)?p.getPrevPaintRect():null;v&&f(v);var m=c&&(p.__dirty&Ht||!p.__isRendered)?p.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p=i[h],c=p&&p.shouldBePainted(a,n,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered){var v=p.getPrevPaintRect();v&&f(v)}}var d;do{d=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(d=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(d);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var a=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),n.width=e*a,n.height=i*a,s&&(s.width=e*a,s.height=i*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,i,a){var n=this.dom,o=this.ctx,s=n.width,l=n.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/h,l/h));var c=this.domBack;function v(m,d,g,y){if(o.clearRect(m,d,g,y),i&&i!=="transparent"){var _=void 0;if(Zr(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||Ns(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else bh(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=ff(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(m,d,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,m,d,g,y),o.restore())}!a||u?v(0,0,s,l):a.length&&b(a,function(m){v(m.x*h,m.y*h,m.width*h,m.height*h)})},t})(Wt),dh=ZO;var xT=1e5,fn=314159,mh=.01,XO=.001;function qO(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function KO(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var jO=(function(){function r(t,e,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||ca,this._singleCanvas=n,this.root=t;var o=t.style;o&&(Do(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(n){var f=t,h=f.width,p=f.height;i.width!=null&&(h=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=p*this.dpr,this._width=h,this._height=p;var c=new dh(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[fn]=c,c.zlevel=fn,s.push(fn),this._domRoot=t}else{this._width=zs(t,0,i),this._height=zs(t,1,i);var u=this._domRoot=KO(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var n=0;n<a.length;n++){var o=a[n],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=n===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},n,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(xT)),n||(n=i.ctx,n.save()),ki(n,s,a,o===e-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(xT)},r.prototype.paintOne=function(t,e){no(t,e)},r.prototype._paintList=function(t,e,i,a){if(this._redrawId===a){i=i||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e,i),o=n.finished,s=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;No(function(){l._paintList(t,e,i,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(fn).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var a=this,n=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&n.push(u)}for(var f=!0,h=!1,p=function(m){var d=n[m],g=d.ctx,y=o&&d.createRepaintRects(t,e,c._width,c._height),_=i?d.__startIndex:d.__drawIndex,x=!i&&d.incremental&&Date.now,w=x&&Date.now(),S=d.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,S,y);else if(_===d.__startIndex){var T=t[_];(!T.incremental||!T.notClear||i)&&d.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=d.__startIndex);var M,D=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(M=_;M<d.__endIndex;M++){var R=t[M];if(R.__inHover&&(h=!0),a._doPaintEl(R,d,o,L,P,M===d.__endIndex-1),x){var z=Date.now()-w;if(z>15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)M=d.__endIndex;else for(var A=c.dpr,C=0;C<y.length;++C){var E=y[C];g.save(),g.beginPath(),g.rect(E.x*A,E.y*A,E.width*A,E.height*A),g.clip(),D(E),g.restore()}else g.save(),D(),g.restore();d.__drawIndex=M,d.__drawIndex<d.__endIndex&&(f=!1)},c=this,v=0;v<n.length;v++)p(v);return j.wxa&&b(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,a,n,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(ki(s,t,n,o),t.setPrevPaintRect(l))}else ki(s,t,n,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=fn);var i=this._layers[t];return i||(i=new dh("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?tt(i,this._layerConfig[t],!0):this._layerConfig[t-mh]&&tt(i,this._layerConfig[t-mh],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,a=this._zlevelList,n=a.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&qO(e)){if(n>0&&t>a[0]){for(l=0;l<n-1&&!(a[l]<t&&a[l+1]>t);l++);s=i[a[l]]}if(a.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a];t.call(e,this._layers[n],n)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],o=this._layers[n];o.__builtin__&&t.call(e,o,n)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],o=this._layers[n];o.__builtin__||t.call(e,o,n)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,p){h.__dirty=h.__used=!1});function e(h){n&&(n.__endIndex!==h&&(n.__dirty=!0),n.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var a=t[i];if(a.zlevel!==t[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var n=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+XO,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?mh:0),this._needsManuallyCompositing),f.__builtin__||$i("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),n=f),a.__dirty&Ht&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,b(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?tt(i[t],e,!0):i[t]=e;for(var a=0;a<this._zlevelList.length;a++){var n=this._zlevelList[a];if(n===t||n===t+mh){var o=this._layers[n];tt(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],i.splice(it(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,n=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=zs(n,0,a),e=zs(n,1,a),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(fn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[fn].dom;var e=new dh("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,n=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,a,n):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];ki(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),ST=jO;function Cm(r){r.registerPainter("canvas",ST)}Bt([bd,gd,Id,Kd,lm,gm,em,bm,hl,vl,Mm,un,Cm]);typeof window<"u"&&(window.echarts=Bf);var EK=Bf;})();
/*! Bundled license information:
tslib/tslib.es6.js:
(*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** *)
zrender/lib/zrender.js:
(*!
* 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
*)
*/