dsh-token-use 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/client.js CHANGED
@@ -1,28 +1,29 @@
1
- (()=>{var rE=Object.defineProperty;var Ut=(t,e)=>{for(var r in e)rE(t,r,{get:e[r],enumerable:!0})};var zm={};Ut(zm,{Axis:()=>Wc,ChartView:()=>ct,ComponentModel:()=>ge,ComponentView:()=>Je,List:()=>gc,Model:()=>Se,PRIORITY:()=>jd,SeriesModel:()=>wt,color:()=>iu,connect:()=>FL,dataTool:()=>ZL,dependencies:()=>TL,disConnect:()=>VL,disconnect:()=>ib,dispose:()=>HL,env:()=>J,extendChartView:()=>SR,extendComponentModel:()=>yR,extendComponentView:()=>_R,extendSeriesModel:()=>xR,format:()=>Rm,getCoordinateSystemDimensions:()=>WL,getInstanceByDom:()=>Jd,getInstanceById:()=>GL,getMap:()=>qL,graphic:()=>Pm,helper:()=>wm,init:()=>zL,innerDrawElementOnCanvas:()=>Mo,matrix:()=>ri,number:()=>Om,parseGeoJSON:()=>Hc,parseGeoJson:()=>Hc,registerAction:()=>ji,registerCoordinateSystem:()=>im,registerCustomSeries:()=>YL,registerLayout:()=>nm,registerLoading:()=>vc,registerLocale:()=>uf,registerMap:()=>om,registerPostInit:()=>tm,registerPostUpdate:()=>rm,registerPreprocessor:()=>pc,registerProcessor:()=>hc,registerTheme:()=>em,registerTransform:()=>sm,registerUpdateLifecycle:()=>ll,registerVisual:()=>mi,setCanvasCreator:()=>XL,setPlatformAPI:()=>kl,throttle:()=>ha,time:()=>Lm,use:()=>At,util:()=>Nm,vector:()=>_r,version:()=>SL,zrUtil:()=>oe,zrender:()=>gu});var yp=function(t,e){return yp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},yp(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var gu={};Ut(gu,{dispose:()=>FD,disposeAll:()=>VD,getElementSSRData:()=>GD,getInstance:()=>HD,init:()=>mu,registerPainter:()=>Ch,registerSSRDataGetter:()=>wh,version:()=>WD});var iE=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),nE=(function(){function t(){this.browser=new iE,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 t})(),Ti=new nE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ti.wxa=!0,Ti.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ti.worker=!0:!Ti.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ti.node=!0,Ti.svgSupported=!0):aE(navigator.userAgent,Ti);function aE(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var J=Ti;var oe={};Ut(oe,{EPSILON:()=>TE,HashMap:()=>Hg,RADIAN_TO_DEGREE:()=>Dp,assert:()=>Ve,assignProps:()=>bp,bind:()=>ce,clone:()=>$,concatArray:()=>Ep,createCanvas:()=>gE,createHashMap:()=>V,createObject:()=>ei,curry:()=>Te,defaults:()=>te,disableUserSelect:()=>$o,each:()=>b,eqNaN:()=>Jr,extend:()=>P,filter:()=>we,find:()=>Cp,guid:()=>Ko,hasOwn:()=>Ee,indexOf:()=>ie,inherits:()=>jo,isArray:()=>R,isArrayLike:()=>Fe,isBuiltInObject:()=>xp,isDom:()=>ln,isFunction:()=>G,isGradientObject:()=>$r,isImagePatternObject:()=>wp,isNumber:()=>se,isObject:()=>F,isPrimitive:()=>Aa,isRegExp:()=>_E,isString:()=>B,isStringSafe:()=>Ia,isTypedArray:()=>ke,keys:()=>ue,logError:()=>un,map:()=>U,merge:()=>le,mergeAll:()=>mE,mixin:()=>et,noop:()=>Le,normalizeCssArray:()=>cn,reduce:()=>pt,retrieve:()=>fn,retrieve2:()=>Y,retrieve3:()=>tr,setAsPrimitive:()=>pn,slice:()=>Qo,trim:()=>tt});var Nl=12,oE="sans-serif",er=Nl+"px "+oE,sE=20,lE=100,uE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fE(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-sE)/lE;e[i]=n}return e}var cE=fE(uE),Oe={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Oe.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||er),t.measureText(r);r=r||"",i=i||er;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Nl,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=cE[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function kl(t){for(var e in Oe)Oe.hasOwnProperty(e)&&t[e]&&(Oe[e]=t[e])}var Ug=pt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zg=pt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ma=Object.prototype.toString,Ul=Array.prototype,pE=Ul.forEach,hE=Ul.filter,Sp=Ul.slice,vE=Ul.map,Bg=function(){}.constructor,Bl=Bg?Bg.prototype:null,Tp="__proto__",_p=2311,dE=Math.pow(2,53)-1;function Ko(){return _p>=dE&&(_p=0),_p++}function un(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function $(t){if(t==null||typeof t!="object")return t;var e=t,r=Ma.call(t);if(r==="[object Array]"){if(!Aa(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=$(t[i])}}else if(zg[r]){if(!Aa(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!Ug[r]&&!Aa(t)&&!ln(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Tp&&(e[o]=$(t[o]))}return e}function le(t,e,r){if(!F(e)||!F(t))return r?$(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Tp){var n=t[i],a=e[i];F(a)&&F(n)&&!R(a)&&!R(n)&&!ln(a)&&!ln(n)&&!xp(a)&&!xp(n)&&!Aa(a)&&!Aa(n)?le(n,a,r):(r||!(i in t))&&(t[i]=$(e[i]))}return t}function mE(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=le(r,t[i],e);return r}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Tp&&(t[r]=e[r]);return t}function bp(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function te(t,e,r){for(var i=ue(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var gE=Oe.createCanvas;function ie(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function jo(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function et(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else te(t,e,r)}function Fe(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===pE)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return Qo(t);if(t.map&&t.map===vE)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function pt(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function we(t,e,r){if(!t)return[];if(!e)return Qo(t);if(t.filter&&t.filter===hE)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Cp(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function ue(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function yE(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Sp.call(arguments)))}}var ce=Bl&&G(Bl.bind)?Bl.call.bind(Bl.bind):yE;function Te(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Sp.call(arguments)))}}function R(t){return Array.isArray?Array.isArray(t):Ma.call(t)==="[object Array]"}function G(t){return typeof t=="function"}function B(t){return typeof t=="string"}function Ia(t){return Ma.call(t)==="[object String]"}function se(t){return typeof t=="number"}function F(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function xp(t){return!!Ug[Ma.call(t)]}function ke(t){return!!zg[Ma.call(t)]}function ln(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function $r(t){return t.colorStops!=null}function wp(t){return t.image!=null}function _E(t){return Ma.call(t)==="[object RegExp]"}function Jr(t){return t!==t}function fn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Y(t,e){return t??e}function tr(t,e,r){return t??e??r}function Qo(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Sp.apply(t,e)}function cn(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ve(t,e){if(!t)throw new Error(e)}function tt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Fg="__ec_primitive__";function pn(t){t[Fg]=!0}function Aa(t){return t[Fg]}var xE=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ue(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Vg=typeof Map=="function";function SE(){return Vg?new Map:new xE}var Hg=(function(){function t(e){var r=R(e);this.data=SE();var i=this;e instanceof t?e.each(n):e&&b(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Vg?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function V(t){return new Hg(t)}function Ep(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function ei(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function $o(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ee(t,e){return t.hasOwnProperty(e)}function Le(){}var Dp=180/Math.PI,TE=Number.EPSILON||Math.pow(2,-52);var _r={};Ut(_r,{add:()=>zl,applyTransform:()=>He,clone:()=>Ap,copy:()=>bE,create:()=>ti,dist:()=>Pp,distSquare:()=>bi,distance:()=>ts,distanceSquare:()=>Gg,div:()=>AE,dot:()=>ME,len:()=>Ip,lenSquare:()=>Op,length:()=>wE,lengthSquare:()=>EE,lerp:()=>OE,max:()=>ir,min:()=>rr,mul:()=>DE,negate:()=>IE,normalize:()=>Lp,scale:()=>es,scaleAndAdd:()=>CE,set:()=>Jo,sub:()=>Mp});function ti(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function bE(t,e){return t[0]=e[0],t[1]=e[1],t}function Ap(t){return[t[0],t[1]]}function Jo(t,e,r){return t[0]=e,t[1]=r,t}function zl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function CE(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function Mp(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Ip(t){return Math.sqrt(Op(t))}var wE=Ip;function Op(t){return t[0]*t[0]+t[1]*t[1]}var EE=Op;function DE(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function AE(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function ME(t,e){return t[0]*e[0]+t[1]*e[1]}function es(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Lp(t,e){var r=Ip(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ts(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Pp=ts;function Gg(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var bi=Gg;function IE(t,e){return t[0]=-e[0],t[1]=-e[1],t}function OE(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function He(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function rr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function ir(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Oa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),LE=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Oa(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new Oa(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Oa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Oa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Oa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Wg=LE;var PE=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),ot=PE;var RE=Math.log(2);function Rp(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/RE);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Rp(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Np(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Rp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Rp(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Fl="___zrEVENTSAVED",kp=[];function Yg(t,e,r,i,n){return Vl(kp,e,i,n,!0)&&Vl(t,r,kp[0],kp[1])}function Xg(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Fl];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Fl])}}function Vl(t,e,r,i,n){if(e.getBoundingClientRect&&J.domSupported&&!Bp(e)){var a=e[Fl]||(e[Fl]={}),o=NE(e,a),s=kE(o,a,n);if(s)return s(t,r,i),!0}return!1}function NE(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function kE(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Np(s,o):Np(o,s))}function Bp(t){return t.nodeName.toUpperCase()==="CANVAS"}var BE=/([&<>"'])/g,UE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function je(t){return t==null?"":(t+"").replace(BE,function(e,r){return UE[r]})}var zE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Up=[],FE=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function Hl(t,e,r,i){return r=r||{},i?qg(t,e,r):FE&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):qg(t,e,r),r}function qg(t,e,r){if(J.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Bp(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Vl(Up,t,i,n)){r.zrX=Up[0],r.zrY=Up[1];return}}r.zrX=r.zrY=0}function Gl(t){return t||window.event}function Mt(t,e,r){if(e=Gl(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Hl(t,o,e,r)}else{Hl(t,e,e,r);var a=VE(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&zE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function VE(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Zg(t,e,r,i){t.addEventListener(e,r,i)}function Kg(t,e,r,i){t.removeEventListener(e,r,i)}var Wl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Qg=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Hl(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Fp)if(Fp.hasOwnProperty(r)){var i=Fp[r](this._track,e);if(i)return i}},t})();function jg(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function HE(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Fp={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=jg(i)/jg(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=HE(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var ri={};Ut(ri,{clone:()=>GE,copy:()=>hn,create:()=>st,identity:()=>nr,invert:()=>zt,mul:()=>xr,rotate:()=>vn,scale:()=>Vp,translate:()=>La});function st(){return[1,0,0,1,0,0]}function nr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function hn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function xr(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function La(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function vn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function Vp(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function zt(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function GE(t){var e=st();return hn(e,t),e}var WE=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),be=WE;var _n=Math.min,Pa=Math.max,Wp=Math.abs,$g=["x","y"],YE=["width","height"],dn=new be,mn=new be,gn=new be,yn=new be,Ft=Xp(),rs=Ft.minTv,Yp=Ft.maxTv,is=[0,0],ii=(function(){function t(e,r,i,n){Hp(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=_n(e.x,this.x),i=_n(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pa(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return XE(st(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&be.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Hp(qE,e.x,e.y,e.width,e.height)),r instanceof t||(r=Hp(ZE,r.x,r.y,r.width,r.height));var s=!!i;Ft.reset(n,s);var l=Ft.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(is[0]=1/0,is[1]=0,ey(u,f,h,v,0,s,a,o),ey(c,p,d,m,1,s,a,o),s&&be.copy(i,g?Ft.useDir?Ft.dirMinTv:rs:Yp)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Jg(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Jg(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}dn.x=gn.x=r.x,dn.y=yn.y=r.y,mn.x=yn.x=r.x+r.width,mn.y=gn.y=r.y+r.height,dn.transform(i),yn.transform(i),mn.transform(i),gn.transform(i),e.x=_n(dn.x,mn.x,gn.x,yn.x),e.y=_n(dn.y,mn.y,gn.y,yn.y);var l=Pa(dn.x,mn.x,gn.x,yn.x),u=Pa(dn.y,mn.y,gn.y,yn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=nr(e||[]),La(e,e,Jo(Gp,-r.x,-r.y)),Vp(e,e,Jo(Gp,n,a)),La(e,e,Jo(Gp,i.x,i.y)),e},t})(),l2=ii.create,Hp=ii.set,Jg=ii.copy,XE=ii.calculateTransform,u2=ii.applyTransform,f2=ii.contain,qE=new ii(0,0,0,0),ZE=new ii(0,0,0,0),Gp=[];function ey(t,e,r,i,n,a,o,s){var l=Wp(e-r),u=Wp(i-t),f=_n(l,u),c=$g[n],p=$g[1-n],h=YE[n];e<r||i<t?l<u?(a&&(Yp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Yp[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Pa(t,r),o[h]=_n(e,i)-o[c]),a&&(f<is[0]||Ft.useDir)&&(is[0]=_n(f,is[0]),(l<u||!Ft.bidirectional)&&(rs[c]=l,rs[p]=0,Ft.useDir&&Ft.calcDirMTV()),(l>=u||!Ft.bidirectional)&&(rs[c]=-u,rs[p]=0,Ft.useDir&&Ft.calcDirMTV())))}function Xp(){var t=0,e=new be,r=new be,i={minTv:new be,maxTv:new be,useDir:!1,dirMinTv:new be,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Pa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Wp(a)<1e-10}return i}var j=ii;var ry="silent";function KE(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:jE}}function jE(){Wl(this.event)}var QE=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(ot),ns=(function(){function t(e,r){this.x=e,this.y=r}return t})(),$E=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qp=new j(0,0,0,0),iy=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new ns(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new QE,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Wg(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b($E,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=ny(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ns(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new ns(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=KE(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.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)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new ns(r,i);if(ty(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new j(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(qp.copy(p.getBoundingRect()),p.transform&&qp.applyTransform(p.transform),qp.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(ty(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Qg);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ns;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(ot);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){iy.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=ny(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Pp(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function JE(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?ry:!0}return!1}function ty(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=JE(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==ry)){e.target=o;break}}}function ny(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var ay=iy;var ly=32,as=7;function eD(t){for(var e=0;t>=ly;)e|=t&1,t>>=1;return t+e}function oy(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;tD(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function tD(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function sy(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Zp(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Kp(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function rD(t,e){var r=as,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=Kp(t[m],t,v,d,0,e);v+=y,d-=y,d!==0&&(g=Zp(t[v+d-1],t,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,T,C,w;;){T=0,C=0,w=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],C++,T=0,--m===0){w=!0;break}}else if(t[x++]=o[y++],T++,C=0,--v===1){w=!0;break}while((T|C)<S);if(w)break;do{if(T=Kp(t[_],o,y,v,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=o[y+g];if(x+=T,y+=T,v-=T,v<=1){w=!0;break}}if(t[x++]=t[_++],--m===0){w=!0;break}if(C=Zp(o[y],t,_,m,0,e),C!==0){for(g=0;g<C;g++)t[x+g]=t[_+g];if(x+=C,_+=C,m-=C,m===0){w=!0;break}}if(t[x++]=o[y++],--v===1){w=!0;break}S--}while(T>=as||C>=as);if(w)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,T=0;if(t[x--]=t[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_];return}for(var C=r;;){var w=0,D=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],w++,D=0,--v===0){E=!0;break}}else if(t[x--]=o[_--],D++,w=0,--m===1){E=!0;break}while((w|D)<C);if(E)break;do{if(w=v-Kp(o[_],t,h,v,v-1,e),w!==0){for(x-=w,y-=w,v-=w,T=x+1,S=y+1,g=w-1;g>=0;g--)t[T+g]=t[S+g];if(v===0){E=!0;break}}if(t[x--]=o[_--],--m===1){E=!0;break}if(D=m-Zp(t[y],o,0,m,m-1,e),D!==0){for(x-=D,_-=D,m-=D,T=x+1,S=_+1,g=0;g<D;g++)t[T+g]=o[S+g];if(m<=1){E=!0;break}}if(t[x--]=t[y--],--v===0){E=!0;break}C--}while(w>=as||D>=as);if(E)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function xn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<ly){a=oy(t,r,i,e),sy(t,r,i,r+a,e);return}var o=rD(t,e),s=eD(n);do{if(a=oy(t,r,i,e),a<s){var l=n;l>s&&(l=s),sy(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Ge=1,Sn=2,Ci=4;var uy=!1;function jp(){uy||(uy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function fy(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var iD=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fy}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,xn(i,fy)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Ge),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(jp(),v.z=0),isNaN(v.z2)&&(jp(),v.z2=0),isNaN(v.zlevel)&&(jp(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ie(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),cy=iD;var py;py=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var os=py;var Yl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Yl.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Yl.bounceIn(t*2)*.5:Yl.bounceOut(t*2-1)*.5+.5}},Xl=Yl;var ql=Math.pow,Ei=Math.sqrt,Kl=1e-8,vy=1e-4,hy=Ei(3),Zl=1/3,Nr=ti(),ar=ti(),Ra=ti();function wi(t){return t>-Kl&&t<Kl}function dy(t){return t>Kl||t<-Kl}function Pe(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function Qp(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Tn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(wi(f)&&wi(c))if(wi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(wi(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=Ei(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-ql(-_,Zl):_=ql(_,Zl),x<0?x=-ql(-x,Zl):x=ql(x,Zl);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Ei(f*f*f)),T=Math.acos(S)/3,C=Ei(f),w=Math.cos(T),v=(-s-2*C*w)/(3*o),g=(-s+C*(w+hy*Math.sin(T)))/(3*o),D=(-s+C*(w-hy*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),D>=0&&D<=1&&(a[h++]=D)}}return h}function jl(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(wi(o)){if(dy(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(wi(f))n[0]=-a/(2*o);else if(f>0){var c=Ei(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Na(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function my(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;Nr[0]=l,Nr[1]=u;for(var y=0;y<1;y+=.05)ar[0]=Pe(t,r,n,o,y),ar[1]=Pe(e,i,a,s,y),m=bi(Nr,ar),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<vy);_++)v=c-p,d=c+p,ar[0]=Pe(t,r,n,o,v),ar[1]=Pe(e,i,a,s,v),m=bi(ar,Nr),v>=0&&m<h?(c=v,h=m):(Ra[0]=Pe(t,r,n,o,d),Ra[1]=Pe(e,i,a,s,d),g=bi(Ra,Nr),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Pe(t,r,n,o,c),f[1]=Pe(e,i,a,s,c)),Ei(h)}function gy(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Pe(t,r,n,o,v),m=Pe(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function Qe(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function $p(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function yy(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(wi(a)){if(dy(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(wi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ei(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ql(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function ka(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function _y(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Nr[0]=o,Nr[1]=s;for(var p=0;p<1;p+=.05){ar[0]=Qe(t,r,n,p),ar[1]=Qe(e,i,a,p);var h=bi(Nr,ar);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<vy);v++){var d=u-f,m=u+f;ar[0]=Qe(t,r,n,d),ar[1]=Qe(e,i,a,d);var h=bi(ar,Nr);if(d>=0&&h<c)u=d,c=h;else{Ra[0]=Qe(t,r,n,m),Ra[1]=Qe(e,i,a,m);var g=bi(Ra,Nr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=Qe(t,r,n,u),l[1]=Qe(e,i,a,u)),Ei(c)}function xy(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Qe(t,r,n,p),v=Qe(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var nD=/cubic-bezier\(([0-9,\.e ]+)\)/;function $l(t){var e=t&&nD.exec(t);if(e){var r=e[1].split(","),i=+tt(r[0]),n=+tt(r[1]),a=+tt(r[2]),o=+tt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Tn(0,i,a,1,l,s)&&Pe(0,n,o,1,s[0])}}}var aD=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:Xl[e]||$l(e)},t})(),Sy=aD;var iu={};Ut(iu,{fastLerp:()=>Ey,fastMapToColor:()=>cD,lerp:()=>tu,lift:()=>ih,liftColor:()=>ru,lum:()=>bn,mapToColor:()=>pD,modifyAlpha:()=>hD,modifyHSL:()=>Ua,parse:()=>ht,parseCssFloat:()=>Ai,parseCssInt:()=>eu,random:()=>vD,stringify:()=>Br,toHex:()=>fD});var Ty=(function(){function t(e){this.value=e}return t})();var oD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Ty(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var sD=(function(){function t(e){this._list=new oD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Ty(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),kr=sD;var by={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 Sr(t){return t=Math.round(t),t<0?0:t>255?255:t}function lD(t){return t=Math.round(t),t<0?0:t>360?360:t}function ss(t){return t<0?0:t>1?1:t}function eu(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Sr(parseFloat(e)/100*255):Sr(parseInt(e,10))}function Ai(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ss(parseFloat(e)/100):ss(parseFloat(e))}function eh(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Di(t,e,r){return t+(e-t)*r}function or(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function th(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var wy=new kr(20),Jl=null;function Ba(t,e){Jl&&th(Jl,e),Jl=wy.put(t,Jl||e.slice())}function ht(t,e){if(t){e=e||[];var r=wy.get(t);if(r)return th(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in by)return th(e,by[i]),Ba(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){or(e,0,0,0,1);return}return or(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ba(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){or(e,0,0,0,1);return}return or(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ba(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){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?or(e,+u[0],+u[1],+u[2],1):or(e,0,0,0,1);f=Ai(u.pop());case"rgb":if(u.length>=3)return or(e,eu(u[0]),eu(u[1]),eu(u[2]),u.length===3?f:Ai(u[3])),Ba(t,e),e;or(e,0,0,0,1);return;case"hsla":if(u.length!==4){or(e,0,0,0,1);return}return u[3]=Ai(u[3]),rh(u,e),Ba(t,e),e;case"hsl":if(u.length!==3){or(e,0,0,0,1);return}return rh(u,e),Ba(t,e),e;default:return}}or(e,0,0,0,1)}}function rh(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ai(t[1]),n=Ai(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],or(e,Sr(eh(o,a,r+1/3)*255),Sr(eh(o,a,r)*255),Sr(eh(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function uD(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function ih(t,e){var r=ht(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Br(r,r.length===4?"rgba":"rgb")}}function fD(t){var e=ht(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ey(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=Sr(Di(o[0],s[0],l)),r[1]=Sr(Di(o[1],s[1],l)),r[2]=Sr(Di(o[2],s[2],l)),r[3]=ss(Di(o[3],s[3],l)),r}}var cD=Ey;function tu(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=ht(e[n]),s=ht(e[a]),l=i-n,u=Br([Sr(Di(o[0],s[0],l)),Sr(Di(o[1],s[1],l)),Sr(Di(o[2],s[2],l)),ss(Di(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var pD=tu;function Ua(t,e,r,i){var n=ht(t);if(t)return n=uD(n),e!=null&&(n[0]=lD(G(e)?e(n[0]):e)),r!=null&&(n[1]=Ai(G(r)?r(n[1]):r)),i!=null&&(n[2]=Ai(G(i)?i(n[2]):i)),Br(rh(n),"rgba")}function hD(t,e){var r=ht(t);if(r&&e!=null)return r[3]=ss(e),Br(r,"rgba")}function Br(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function bn(t,e){var r=ht(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function vD(){return Br([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Cy=new kr(100);function ru(t){if(B(t)){var e=Cy.get(t);return e||(e=ih(t,-.1),Cy.put(t,e)),e}else if($r(t)){var r=P({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:ih(i.color,-.1)}}),r}return t}function Dy(t){return t.type==="linear"}function Ay(t){return t.type==="radial"}var B2=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var ah=Array.prototype.slice;function ni(t,e,r){return(e-t)*r+t}function nh(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=ni(e[a],r[a],i);return t}function dD(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=ni(e[o][s],r[o][s],i)}return t}function nu(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function My(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function mD(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function gD(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:ah.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function fs(t){if(Fe(t)){var e=t.length;if(Fe(t[0])){for(var r=[],i=0;i<e;i++)r.push(ah.call(t[i]));return r}return ah.call(t)}return t}function su(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function yD(t){return Fe(t&&t[0])?2:1}var au=0,lu=1,Ly=2,us=3,oh=4,sh=5,Iy=6;function Oy(t){return t===oh||t===sh}function ou(t){return t===lu||t===Ly}var ls=[0,0,0,0],_D=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Iy,l=r;if(Fe(r)){var u=yD(r);s=u,(u===1&&!se(r[0])||u===2&&!se(r[0][0]))&&(o=!0)}else if(se(r)&&!Jr(r))s=au;else if(B(r))if(!isNaN(+r))s=au;else{var f=ht(r);f&&(l=f,s=us)}else if($r(r)){var c=P({},l);c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:ht(h.color)}}),Dy(r)?s=oh:Ay(r)&&(s=sh),l=c}a===0?this.valType=s:(s!==this.valType||s===Iy)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:Xl[i]||$l(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=ou(n),u=Oy(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?gD(p,h,n):u&&mD(p.colorStops,h.colorStops))}if(!s&&n!==sh&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===au?i[f].additiveValue=i[f].value-v:n===us?i[f].additiveValue=nu([],i[f].value,v,-1):ou(n)&&(i[f].additiveValue=n===lu?nu([],i[f].value,v,-1):My([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===us,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?ls:e[l];if((ou(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(ou(a))a===lu?nh(y,h[n],v[n],g):dD(y,h[n],v[n],g);else if(Oy(a)){var _=h[n],x=v[n],S=a===oh;e[l]={type:S?"linear":"radial",x:ni(_.x,x.x,g),y:ni(_.y,x.y,g),colorStops:U(_.colorStops,function(C,w){var D=x.colorStops[w];return{offset:ni(C.offset,D.offset,g),color:su(nh([],C.color,D.color,g))}}),global:x.global},S?(e[l].x2=ni(_.x2,x.x2,g),e[l].y2=ni(_.y2,x.y2,g)):e[l].r=ni(_.r,x.r,g)}else if(u)nh(y,h[n],v[n],g),i||(e[l]=su(y));else{var T=ni(h[n],v[n],g);i?this._additiveValue=T:e[l]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===au?e[i]=e[i]+n:r===us?(ht(e[i],ls),nu(ls,ls,n,1),e[i]=su(ls)):r===lu?nu(e[i],e[i],n,1):r===Ly&&My(e[i],e[i],n,1)},t})(),xD=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){un("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,ue(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new _D(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===us&&u&&(u=su(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,fs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,fs(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Sy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=fs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ue(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),cs=xD;function Cn(){return new Date().getTime()}var SD=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Cn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(os(i),!r._paused&&r.update())}os(i)},e.prototype.start=function(){this._running||(this._time=Cn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Cn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Cn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new cs(r,i.loop);return this.addAnimator(n),n},e})(ot),Py=SD;var TD=300,lh=J.domSupported,uh=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=U(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),Ry={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ny=!1;function ph(t){var e=t.pointerType;return e==="pen"||e==="touch"}function bD(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function fh(t){t&&(t.zrByTouch=!0)}function CD(t,e){return Mt(t.dom,new wD(t,e),!0)}function By(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var wD=(function(){function t(e,r){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Tr={mousedown:function(t){t=Mt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Mt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Mt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Mt(this.dom,t);var e=t.toElement||t.relatedTarget;By(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ny=!0,t=Mt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ny||(t=Mt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Mt(this.dom,t),fh(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Tr.mousemove.call(this,t),Tr.mousedown.call(this,t)},touchmove:function(t){t=Mt(this.dom,t),fh(t),this.handler.processGesture(t,"change"),Tr.mousemove.call(this,t)},touchend:function(t){t=Mt(this.dom,t),fh(t),this.handler.processGesture(t,"end"),Tr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<TD&&Tr.click.call(this,t)},pointerdown:function(t){Tr.mousedown.call(this,t)},pointermove:function(t){ph(t)||Tr.mousemove.call(this,t)},pointerup:function(t){Tr.mouseup.call(this,t)},pointerout:function(t){ph(t)||Tr.mouseout.call(this,t)}};b(["click","dblclick","contextmenu"],function(t){Tr[t]=function(e){e=Mt(this.dom,e),this.trigger(t,e)}});var hh={pointermove:function(t){ph(t)||hh.mousemove.call(this,t)},pointerup:function(t){hh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function ED(t,e){var r=e.domHandlers;J.pointerEventsSupported?b(uh.pointer,function(i){uu(e,i,function(n){r[i].call(t,n)})}):(J.touchEventsSupported&&b(uh.touch,function(i){uu(e,i,function(n){r[i].call(t,n),bD(e)})}),b(uh.mouse,function(i){uu(e,i,function(n){n=Gl(n),e.touching||r[i].call(t,n)})}))}function DD(t,e){J.pointerEventsSupported?b(Ry.pointer,r):J.touchEventsSupported||b(Ry.mouse,r);function r(i){function n(a){a=Gl(a),By(t,a.target)||(a=CD(t,a),e.domHandlers[i].call(t,a))}uu(e,i,n,{capture:!0})}}function uu(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Zg(t.domTarget,e,r,i)}function ch(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Kg(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var ky=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),AD=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new ky(r,Tr),lh&&(n._globalHandlerScope=new ky(document,hh)),ED(n,n._localHandlerScope),n}return e.prototype.dispose=function(){ch(this._localHandlerScope),lh&&ch(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,lh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?DD(this,i):ch(i)}},e})(ot),Uy=AD;var zy=1;J.hasGlobalWindow&&(zy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var wn=zy,ps=.4,hs="#333",vs="#ccc",Fy="#eee";var Vy=nr,Hy=5e-5;function En(t){return t>Hy||t<-Hy}var Dn=[],za=[],vh=st(),dh=Math.abs,Gy=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return MD(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return En(this.rotation)||En(this.x)||En(this.y)||En(this.scaleX-1)||En(this.scaleY-1)||En(this.skewX)||En(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(Vy(i),this.invTransform=null);return}i=i||st(),r?this.getLocalTransform(i):Vy(i),e&&(r?xr(i,e,i):hn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||st(),zt(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Dn);var i=Dn[0]<0?-1:1,n=Dn[1]<0?-1:1,a=((Dn[0]-i)*r+i)/Dn[0]||0,o=((Dn[1]-n)*r+n)/Dn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||st(),xr(za,e.invTransform,r),r=za);var i=this.originX,n=this.originY;(i||n)&&(vh[4]=i,vh[5]=n,xr(za,r,vh),za[4]-=i,za[5]-=n,r=za),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&He(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&He(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&dh(e[0]-1)>1e-10&&dh(e[3]-1)>1e-10?Math.sqrt(dh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Va(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&vn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),MD=Gy.getLocalTransform;var Fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Va(t,e){return bp(t,e,Fa)}var Ha=Gy;function Cr(t){fu||(fu=new kr(100)),t=t||er;var e=fu.get(t);return e||(e={font:t,strWidthCache:new kr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Oe.measureText("\u56FD",t).width,asciiCharWidth:Oe.measureText("a",t).width},fu.put(t,e)),e}var fu;function ID(t){if(!(mh>=Wy)){t=t||er;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Oe.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?mh=Wy:n>2&&mh++,e}}var mh=0,Wy=5;function gh(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=ID(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function wr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=Oe.measureText(e,t.font).width,r.put(e,i)),i}function Yy(t,e,r,i){var n=wr(Cr(e),t),a=ds(e),o=Mi(0,n,r),s=ai(0,a,i),l=new j(o,s,n,a);return l}function cu(t,e,r,i){var n=((t||"")+"").split(`
2
- `),a=n.length;if(a===1)return Yy(n[0],e,r,i);for(var o=new j(0,0,0,0),s=0;s<n.length;s++){var l=Yy(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Mi(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function ai(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function ds(t){return Cr(t).stWideCharWidth}function br(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function An(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=br(i[0],r.width),u+=br(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var yh="__zr_normal__",_h=Fa.concat(["ignore"]),OD=pt(Fa,function(t,e){return t[e]=!0,t},{ignore:!1}),Ga={},LD=new j(0,0,0,0),pu=[],hu=0,Wa=1,Th=(function(){function t(e){this.id=Ko(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=LD,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ga,i,p):An(Ga,i,p),a.x=Ga.x,a.y=Ga.y,o=Ga.align,s=Ga.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=br(h[0],p.width),d=br(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new j(0,0,0,0);a.getLocalTransform(pu),zt(pu,pu),j.copy(y,p),y.applyTransform(pu)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,T=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),T=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||T!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=T,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ge,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vs:hs},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&ht(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Br(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},P(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(F(e))for(var i=e,n=ue(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==yh)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,_h)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(yh,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===yh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ie(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){un("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=qy(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Ky(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=hu,this.__dirty&=~Ge),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=qy(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,Ky(this,r,d),d);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=hu,this.__dirty&=~Ge)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ie(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ie(n,e),o=ie(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];P(r,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==Wa){var s=!(r&&n);r&&r.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<_h.length;f++){var c=_h[f],p=a&&OD[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Ha,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ge;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new cs(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ie(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){xh(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){xh(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=xh(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=hu,e.__dirty=Ge;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{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,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();et(Th,ot);et(Th,Ha);function xh(t,e,r,i,n){r=r||{};var a=[];jy(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Sh(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function PD(t){return Fe(t[0])}function RD(t,e,r){if(Fe(e[r]))if(Fe(t[r])||(t[r]=[]),ke(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Sh(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(PD(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Sh(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Sh(a,n,o);a.length=n.length}else t[r]=e[r]}function ND(t,e){return t===e||Fe(t)&&Fe(e)&&kD(t,e)}function kD(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function jy(t,e,r,i,n,a,o,s){for(var l=ue(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!F(a),v=t.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(F(y)&&!Fe(y)&&!$r(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}jy(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var T=S.stopTracks(d);if(T){var C=ie(v,S);v.splice(C,1)}}}if(n.force||(d=we(d,function(A){return!ND(i[A],r[A])}),_=d.length),_>0||n.force&&!o.length){var w=void 0,D=void 0,E=void 0;if(s){D={},p&&(w={});for(var x=0;x<_;x++){var g=d[x];D[g]=r[g],p?w[g]=i[g]:r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=d[x];E[g]=fs(r[g]),RD(r,i,g)}}var S=new cs(r,!1,!1,c?we(v,function(I){return I.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&w&&S.whenWithKeys(0,w,d),E&&S.whenWithKeys(0,E,d),S.whenWithKeys(u??500,s?D:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function qy(t,e,r,i){return!(r&&r.hoverLayer||i)||Zy(t)||e&&Zy(e)?hu:Wa}function Zy(t){return t.type==="text"||t.type==="tspan"}function Ky(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var vu=Th;var Qy=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ie(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ie(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new j(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(j.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(vu);Qy.prototype.type="group";var xe=Qy;var du={},Mn={};function BD(t){delete Mn[t]}function UD(t){if(!t)return!1;if(typeof t=="string")return bn(t,1)<ps;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=bn(e[n].color,1);return r/=i,r<ps}return!1}var zD=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new cy,o=i.renderer||"canvas";du[o]||(o=ue(du)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new du[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!J.node&&!J.worker&&!l?new Uy(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?J.touchEventsSupported:!!f,p=44,h;c&&(h=Y(i.pointerSize,p)),this.handler=new ay(a,s,u,s.root,h),this.animation=new Py({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=UD(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=Cn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Cn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof xe&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,BD(this.id))},t})();function mu(t,e){var r=new zD(Ko(),t,e);return Mn[r.id]=r,r}function FD(t){t.dispose()}function VD(){for(var t in Mn)Mn.hasOwnProperty(t)&&Mn[t].dispose();Mn={}}function HD(t){return Mn[t]}function Ch(t,e){du[t]=e}var bh;function GD(t){if(typeof bh=="function")return bh(t)}function wh(t){bh=t}var WD="6.1.0";var $y=1e-4,yu=20;function YD(t){return t.replace(/^\s+|\s+$/g,"")}var Re=Math.min,fe=Math.max,Ae=Math.abs,It=Math.round,sr=Math.floor,Oi=Math.ceil,Li=Math.pow,Ii=Math.log,ms=Math.LN10,XD=Math.PI,qD=Math.random;function gs(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var We=ZD;function ZD(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return _u(t,e,r)}function _u(t,e,r){return B(t)?KD(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function KD(t){return!!YD(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Re(fe(0,e),yu),t=(+t).toFixed(e),r?t:+t)}function Jy(t,e,r){return e==null&&(e=10),ve(t,e,r)}function Pi(t){return t.sort(function(e,r){return e-r}),t}function Vt(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(It(t*e)/e===t)return r}return Eh(t)}function Eh(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return fe(0,o-i)}function e_(t,e){var r=sr(Ii(t[1]-t[0])/ms),i=It(Ii(Ae(e[1]-e[0]))/ms),n=Re(fe(-r+i,0),yu);return isFinite(n)?n:yu}function t_(t,e,r){var i=Ae(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=Ii(2*Ae(r||1)*Ae(i))/ms,a=Ii(Ae(e))/ms,o=fe(0,Oi(-n+a));return isFinite(o)||(o=NaN),o}function r_(t,e,r){if(!t[e])return 0;var i=jD(t,r);return i[e]||0}function jD(t,e){var r=pt(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Li(10,e),n=U(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=U(n,function(h){return sr(h)}),s=pt(o,function(h,v){return h+v},0),l=U(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function i_(t,e){var r=fe(Vt(t),Vt(e)),i=t+e;return r>yu?i:ve(i,r)}var ys=Li(2,53)-1;function _s(t){var e=XD*2;return(t%e+e)%e}function In(t){return t>-$y&&t<$y}var QD=/^(?:(\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 St(t){if(t instanceof Date)return t;if(B(t)){var e=QD.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(It(t))}function Ya(t){return Li(10,Xa(t))}function Xa(t){if(t===0)return 0;var e=sr(Ii(t)/ms);return t/Li(10,e)>=10&&e++,e}var Dh=2;function oi(t,e){var r=Xa(t),i=Li(10,r),n=t/i,a;return e===Dh?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function n_(t,e){var r=(t.length-1)*e+1,i=sr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function a_(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;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 lr(t){var e=parseFloat(t);return e==t&&(e!==0||!B(t)||t.indexOf("x")<=0)?e:NaN}function xs(t){return!isNaN(lr(t))}function Ss(){return It(qD()*9)}function o_(t,e){return e===0?t:o_(e,t%e)}function Ah(t,e){return t==null?e:e==null?t:t*e/o_(t,e)}function Xe(t){return t!=null&&isFinite(t)}var $D="[ECharts] ",l_={},JD=typeof console<"u"&&console.warn&&console.log;function eA(t,e,r){if(JD){if(r){if(l_[e])return;l_[e]=!0}console[t]($D+e)}}function Mh(t,e){eA("error",t,e)}function rt(t){throw new Error(t)}function u_(t,e,r){return(e-t)*r+t}var f_="series\0",tA="\0_ec_\0";function Ne(t){return t instanceof Array?t:t==null?[]:[t]}function Ih(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Oh=["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 si(t){return F(t)&&!R(t)&&!(t instanceof Date)?t.value:t}function c_(t){return F(t)&&!(t instanceof Array)}function p_(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();b(e,function(l,u){if(!F(l)){e[u]=null;return}});var s=rA(t,o,r);return(i||n)&&iA(s,t,o,e),i&&nA(s,e),i||n?aA(s,e,n):a&&oA(s,e),sA(s),s}function rA(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||qa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function iA(t,e,r,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=Ts(n.id),s=r.get(o);if(s!=null){var l=t[s];Ve(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function nA(t,e){b(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!qa(r)&&!qa(a)&&h_("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function aA(t,e,r){b(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||qa(n.existing)||n.existing&&i.id!=null&&!h_("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function oA(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function sA(t){var e=V();b(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),b(t,function(r){var i=r.newOption;Ve(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(F(a)){if(o.name=a.name!=null?Ts(a.name):n?n.name:f_+i,n)o.id=Ts(n.id);else if(a.id!=null)o.id=Ts(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function h_(t,e,r){var i=Ht(e[t],null),n=Ht(r[t],null);return i!=null&&n!=null&&i===n}function Ts(t){return Ht(t,"")}function Ht(t,e){return t==null?e:B(t)?t:se(t)||Ia(t)?t+"":e}function Za(t){var e=t.name;return!!(e&&e.indexOf(f_))}function qa(t){return t&&t.id!=null&&Ts(t.id).indexOf(tA)===0}function v_(t,e,r){b(t,function(i){var n=i.newOption;F(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=lA(e,n,i.existing,r))})}function lA(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function ur(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return R(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return R(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ne(){var t="__ec_inner_"+uA++;return function(e){return e[t]||(e[t]={})}}var uA=Ss();function xu(t,e,r){var i=bs(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Ri(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function bs(t,e){var r;if(B(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=V(),a={},o=!1;return b(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ie(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var lt={useDefault:!0,enableAll:!1,enableNone:!1};function Ri(t,e,r,i){i=i||lt;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function d_(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Lh(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function m_(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function g_(t){return t==="auto"?J.domSupported?"html":"richText":t||"html"}function Ph(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(se(i)){var o=u_(r||0,i,n);return ve(o,a?Math.max(Vt(r||0),Vt(i)):e)}else{if(B(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=u_(h,v,n);s[c]=ve(o,a?Math.max(Vt(h),Vt(v)):e)}}return s}}var NB=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function ut(){return[1/0,-1/0]}function Cs(t,e){Er(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Rh(t,e){Er(e)&&e<t[0]&&(t[0]=e)}function Nh(t,e){Er(e)&&e>t[1]&&(t[1]=e)}function y_(t,e){li(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Er(t){return t!=null&&isFinite(t)}function li(t,e){return Er(t)&&Er(e)&&t<=e}function __(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function x_(t){li(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Su(){var t="__ec_once_"+fA++;return function(e,r){Ee(e,t)||(e[t]=1,r())}}var fA=Ss();function Ka(t,e,r){var i=V(),n=0;b(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function S_(t){return t.value+""}function T_(t){return t+""}function b_(t,e){return Y(e,!0)?t.seriesIndex+2:0}function Tu(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function ja(t){return{overallReset:t}}var cA=".",Ln="___EC__COMPONENT__CONTAINER___",C_="___EC__EXTENDED_CLASS___";function Ot(t){var e={main:"",sub:""};if(t){var r=t.split(cA);e.main=r[0]||"",e.sub=r[1]||""}return e}function pA(t){Ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function w_(t){return!!(t&&t[C_])}function Qa(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return hA(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},jo(n,this)),P(n.prototype,r),n[C_]=!0,n.extend=this.extend,n.superCall=dA,n.superApply=mA,n.superClass=i,n}}function hA(t){return G(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function bu(t,e){t.extend=e.extend}var vA=Math.round(Math.random()*10);function E_(t){var e=["__\0is_clz",vA++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function dA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function mA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Ni(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){pA(n),i.prototype.type=n;var a=Ot(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Ln){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[Ln]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Ot(i),a=[],o=e[n.main];return o&&o[Ln]?b(o,function(s,l){l!==Ln&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Ot(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Ot(i),a=e[n.main];return a&&a[Ln]};function r(i){var n=e[i.main];return(!n||!n[Ln])&&(n=e[i.main]={},n[Ln]=!0),n}}function Ur(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ie(n,l)>=0||a&&ie(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var gA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],yA=Ur(gA),D_=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return yA(this,e,r)},t})();var Bh=new kr(50);function M_(t){if(typeof t=="string"){var e=Bh.get(t);return e&&e.image}else return t}function Uh(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Bh.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!$a(e)&&a.pending.push(o)):(e=Oe.loadImage(t,A_,A_),e.__zrImageSrc=t,Bh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function A_(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function $a(t){return t&&t.width&&t.height}var zh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Vh(t,e,r,i,n){var a={};return P_(a,t,e,r,i,n),a.text}function P_(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
- `);a=R_(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)N_(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
- `),t.isTruncated=s}function R_(t,e,r,i){i=i||{};var n=P({},i);r=Y(r,"..."),n.maxIterations=Y(i.maxIterations,2);var a=n.minChar=Y(i.minChar,0),o=n.fontMeasureInfo=Cr(e),s=o.asciiCharWidth;n.placeholder=Y(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=wr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function N_(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=wr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?xA(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=wr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function xA(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=gh(r,t.charCodeAt(n));return n}function k_(t,e,r,i){var n=Gh(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=ds(u),p=Y(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?U_(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
5
- `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=R_(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<g.length;T++)N_(S,g[T],x),g[T]=S.textLine,v=v||S.isTruncated;for(var C=m,w=0,D=Cr(u),T=0;T<g.length;T++)w=Math.max(wr(D,g[T]),w);d==null&&(d=w);var E=d;return C+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:C,lineHeight:p,calculatedLineHeight:c,contentWidth:w,contentHeight:y,width:d,isTruncated:v}}var SA=(function(){function t(){}return t})(),I_=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),TA=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function B_(t,e,r,i,n){var a=new TA,o=Gh(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=zh.lastIndex=0,d;(d=zh.exec(o))!=null;){var m=d.index;m>v&&Fh(a,o.substring(v,m),e,h),Fh(a,d[2],e,h,d[1]),v=zh.lastIndex}v<o.length&&Fh(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",T={};function C(ye,_t,yr){ye.width=_t,ye.lineHeight=yr,y+=yr,_=Math.max(_,_t)}e:for(var w=0;w<a.lines.length;w++){for(var D=a.lines[w],E=0,A=0,I=0;I<D.tokens.length;I++){var M=D.tokens[I],O=M.styleName&&e.rich[M.styleName]||{},N=M.textPadding=O.padding,k=N?N[1]+N[3]:0,W=M.font=O.font||e.font;M.contentHeight=ds(W);var z=Y(O.height,M.contentHeight);if(M.innerHeight=z,N&&(z+=N[0]+N[2]),M.height=z,M.lineHeight=tr(O.lineHeight,e.lineHeight,z),M.align=O&&O.align||n,M.verticalAlign=O&&O.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var X=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),C(D,A,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<X;break e}var Q=O.width,Z=Q==null||Q==="auto";if(typeof Q=="string"&&Q.charAt(Q.length-1)==="%")M.percentWidth=Q,g.push(M),M.contentWidth=wr(Cr(W),M.text);else{if(Z){var ee=O.backgroundColor,re=ee&&ee.image;re&&(re=M_(re),$a(re)&&(M.width=Math.max(M.width,re.width*z/re.height)))}var q=x&&f!=null?f-A:null;q!=null&&q<M.width?!Z||q<k?(M.text="",M.width=M.contentWidth=0):(P_(T,M.text,q-k,W,e.ellipsis,{minChar:e.truncateMinChar}),M.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,M.width=M.contentWidth=wr(Cr(W),M.text)):M.contentWidth=wr(Cr(W),M.text)}M.width+=k,A+=M.width,O&&(E=Math.max(E,M.lineHeight))}C(D,A,E)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var w=0;w<g.length;w++){var M=g[w],de=M.percentWidth;M.width=parseInt(de,10)/100*a.width}return a}function Fh(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=br(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
- `),u=!0),i.accumWidth=v}else{var d=U_(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
- `));for(var m=Cr(l),g=0;g<f.length;g++){var y=f[g],_=new SA;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:wr(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new I_)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new I_([_]))}}function bA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var CA=pt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function wA(t){return bA(t)?!!CA[t]:!0}function U_(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Cr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=gh(c,h.charCodeAt(0)),d=i?!1:!wA(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Hh(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;j.set(O_,Mi(r,o,n),ai(i,s,a),o,s),j.intersect(e,O_,null,L_);var l=L_.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Mi(l.x,l.width,n,!0),t.baseY=ai(l.y,l.height,a,!0)}}var O_=new j(0,0,0,0),L_={outIntersectRect:{},clamp:!0};function Gh(t){return t!=null?t+="":t=""}function z_(t){var e=Gh(t.text),r=t.font,i=wr(Cr(r),e),n=ds(r);return Cu(t,i,n,null)}function Cu(t,e,r,i){var n=new j(Mi(t.x||0,e,t.textAlign),ai(t.y||0,r,t.textBaseline),e,r),a=i??(Wh(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Wh(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var qh="__zr_style_"+Math.round(Math.random()*10),zr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zr[qh]=!0;var F_=["z","z2","invisible"],EA=["invisible"],DA=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=ue(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&AA(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new j(0,0,0,0)),i?j.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new j(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:P(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Sn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Sn)},e.prototype.styleUpdated=function(){this.__dirty&=~Sn},e.prototype.createStyle=function(r){return ei(zr,r)},e.prototype.useStyle=function(r){r[qh]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[qh]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,F_)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===Wa,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=ue(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=ue(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?EA:F_,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return P(r,i),r},e.prototype.getAnimationStyleProps=function(){return Pn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ge|Sn})(),e})(vu),Yh=new j(0,0,0,0),Xh=new j(0,0,0,0);function AA(t,e,r){return Yh.copy(t.getBoundingRect()),t.transform&&Yh.applyTransform(t.transform),Xh.width=e,Xh.height=r,!Yh.intersect(Xh)}var Fr=DA;var fr=Math.min,cr=Math.max,Zh=Math.sin,Kh=Math.cos,Rn=Math.PI*2,wu=ti(),Eu=ti(),Du=ti();function jh(t,e,r,i,n,a){n[0]=fr(t,r),n[1]=fr(e,i),a[0]=cr(t,r),a[1]=cr(e,i)}var V_=[],H_=[];function G_(t,e,r,i,n,a,o,s,l,u){var f=jl,c=Pe,p=f(t,r,n,o,V_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,V_[h]);l[0]=fr(v,l[0]),u[0]=cr(v,u[0])}p=f(e,i,a,s,H_);for(var h=0;h<p;h++){var d=c(e,i,a,s,H_[h]);l[1]=fr(d,l[1]),u[1]=cr(d,u[1])}l[0]=fr(t,l[0]),u[0]=cr(t,u[0]),l[0]=fr(o,l[0]),u[0]=cr(o,u[0]),l[1]=fr(e,l[1]),u[1]=cr(e,u[1]),l[1]=fr(s,l[1]),u[1]=cr(s,u[1])}function W_(t,e,r,i,n,a,o,s){var l=Ql,u=Qe,f=cr(fr(l(t,r,n),1),0),c=cr(fr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=fr(t,n,p),o[1]=fr(e,a,h),s[0]=cr(t,n,p),s[1]=cr(e,a,h)}function Y_(t,e,r,i,n,a,o,s,l){var u=rr,f=ir,c=Math.abs(n-a);if(c%Rn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(wu[0]=Kh(n)*r+t,wu[1]=Zh(n)*i+e,Eu[0]=Kh(a)*r+t,Eu[1]=Zh(a)*i+e,u(s,wu,Eu),f(l,wu,Eu),n=n%Rn,n<0&&(n=n+Rn),a=a%Rn,a<0&&(a=a+Rn),n>a&&!o?a+=Rn:n<a&&o&&(n+=Rn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Du[0]=Kh(h)*r+t,Du[1]=Zh(h)*i+e,u(s,Du,s),f(l,Du,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nn=[],kn=[],Vr=[],ki=[],Hr=[],Gr=[],Qh=Math.min,$h=Math.max,Bn=Math.cos,Un=Math.sin,ui=Math.abs,tv=Math.PI,Bi=tv*2,Jh=typeof Float32Array<"u",ws=[];function ev(t){var e=Math.round(t/tv*1e8)/1e8;return e%2*tv}function MA(t,e){var r=ev(t[0]);r<0&&(r+=Bi);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Bi?n=r+Bi:e&&r-n>=Bi?n=r-Bi:!e&&r>n?n=r+(Bi-ev(r-n)):e&&r<n&&(n=r-(Bi-ev(n-r))),t[0]=r,t[1]=n}var IA=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=ui(i/wn/e)||0,this._uy=ui(i/wn/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ce.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=ui(e-this._xi),n=ui(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ce.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ce.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ce.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),ws[0]=n,ws[1]=a,MA(ws,o),n=ws[0],a=ws[1];var s=a-n;return this.addData(Ce.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=Bn(a)*i+e,this._yi=Un(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ce.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Jh&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(Jh&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Jh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Vr[0]=Vr[1]=Hr[0]=Hr[1]=Number.MAX_VALUE,ki[0]=ki[1]=Gr[0]=Gr[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ce.M:r=n=e[o++],i=a=e[o++],Hr[0]=n,Hr[1]=a,Gr[0]=n,Gr[1]=a;break;case Ce.L:jh(r,i,e[o],e[o+1],Hr,Gr),r=e[o++],i=e[o++];break;case Ce.C:G_(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Hr,Gr),r=e[o++],i=e[o++];break;case Ce.Q:W_(r,i,e[o++],e[o++],e[o],e[o+1],Hr,Gr),r=e[o++],i=e[o++];break;case Ce.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Bn(h)*c+u,a=Un(h)*p+f),Y_(u,f,c,p,h,v,d,Hr,Gr),r=Bn(v)*c+u,i=Un(v)*p+f;break;case Ce.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];jh(n,a,n+m,a+g,Hr,Gr);break;case Ce.Z:r=n,i=a;break}rr(Vr,Vr,Hr),ir(ki,ki,Gr)}return o===0&&(Vr[0]=Vr[1]=ki[0]=ki[1]=0),new j(Vr[0],Vr[1],ki[0]-Vr[0],ki[1]-Vr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ce.M:a=s=e[p++],o=l=e[p++];break;case Ce.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(ui(y)>i||ui(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ce.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],T=e[p++],C=e[p++];d=gy(a,o,x,S,m,g,T,C,10),a=T,o=C;break}case Ce.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=xy(a,o,x,S,m,g,10),a=m,o=g;break}case Ce.A:var w=e[p++],D=e[p++],E=e[p++],A=e[p++],I=e[p++],M=e[p++],O=M+I;p+=1,v&&(s=Bn(I)*E+w,l=Un(I)*A+D),d=$h(E,A)*Qh(Bi,Math.abs(M)),a=Bn(O)*E+w,o=Un(O)*A+D;break;case Ce.R:{s=a=e[p++],l=o=e[p++];var N=e[p++],k=e[p++];d=N*2+k*2;break}case Ce.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var T=0;T<o;){var C=i[T++],w=T===1;switch(w&&(u=i[T],f=i[T+1],s=u,l=f),C!==Ce.L&&_>0&&(e.lineTo(x,S),_=0),C){case Ce.M:s=u=i[T++],l=f=i[T++],e.moveTo(u,f);break;case Ce.L:{c=i[T++],p=i[T++];var D=ui(c-u),E=ui(p-f);if(D>n||E>a){if(h){var A=v[g++];if(m+A>y){var I=(y-m)/A;e.lineTo(u*(1-I)+c*I,f*(1-I)+p*I);break e}m+=A}e.lineTo(c,p),u=c,f=p,_=0}else{var M=D*D+E*E;M>_&&(x=c,S=p,_=M)}break}case Ce.C:{var O=i[T++],N=i[T++],k=i[T++],W=i[T++],z=i[T++],X=i[T++];if(h){var A=v[g++];if(m+A>y){var I=(y-m)/A;Na(u,O,k,z,I,Nn),Na(f,N,W,X,I,kn),e.bezierCurveTo(Nn[1],kn[1],Nn[2],kn[2],Nn[3],kn[3]);break e}m+=A}e.bezierCurveTo(O,N,k,W,z,X),u=z,f=X;break}case Ce.Q:{var O=i[T++],N=i[T++],k=i[T++],W=i[T++];if(h){var A=v[g++];if(m+A>y){var I=(y-m)/A;ka(u,O,k,I,Nn),ka(f,N,W,I,kn),e.quadraticCurveTo(Nn[1],kn[1],Nn[2],kn[2]);break e}m+=A}e.quadraticCurveTo(O,N,k,W),u=k,f=W;break}case Ce.A:var Q=i[T++],Z=i[T++],ee=i[T++],re=i[T++],q=i[T++],de=i[T++],ye=i[T++],_t=!i[T++],yr=ee>re?ee:re,Ie=ui(ee-re)>.001,Ke=q+de,he=!1;if(h){var A=v[g++];m+A>y&&(Ke=q+de*(y-m)/A,he=!0),m+=A}if(Ie&&e.ellipse?e.ellipse(Q,Z,ee,re,ye,q,Ke,_t):e.arc(Q,Z,yr,q,Ke,_t),he)break e;w&&(s=Bn(q)*ee+Q,l=Un(q)*re+Z),u=Bn(Ke)*ee+Q,f=Un(Ke)*re+Z;break;case Ce.R:s=u=i[T],l=f=i[T+1],c=i[T++],p=i[T++];var _e=i[T++],sn=i[T++];if(h){var A=v[g++];if(m+A>y){var xt=y-m;e.moveTo(c,p),e.lineTo(c+Qh(xt,_e),p),xt-=_e,xt>0&&e.lineTo(c+_e,p+Qh(xt,sn)),xt-=sn,xt>0&&e.lineTo(c+$h(_e-xt,0),p+sn),xt-=_e,xt>0&&e.lineTo(c,p+$h(sn-xt,0));break e}m+=A}e.rect(c,p,_e,sn);break;case Ce.Z:if(h){var A=v[g++];if(m+A>y){var I=(y-m)/A;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ce,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Gt=IA;function zn(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function X_(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=my(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function q_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=_y(t,e,r,i,n,a,s,l,null);return f<=u/2}var Z_=Math.PI*2;function Es(t){return t%=Z_,t<0&&(t+=Z_),t}var Ds=Math.PI*2;function K_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Ds<1e-4)return!0;if(a){var c=i;i=Es(n),n=Es(c)}else i=Es(i),n=Es(n);i>n&&(n+=Ds);var p=Math.atan2(l,s);return p<0&&(p+=Ds),p>=i&&p<=n||p+Ds>=i&&p+Ds<=n}function pr(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var Ui=Gt.CMD,Fn=Math.PI*2,NA=1e-4;function kA(t,e){return Math.abs(t-e)<NA}var Tt=[-1,-1,-1],hr=[-1,-1];function BA(){var t=hr[0];hr[0]=hr[1],hr[1]=t}function UA(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=Tn(e,i,a,s,u,Tt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=Tt[d],g=m===0||m===1?.5:1,y=Pe(t,r,n,o,m);y<l||(p<0&&(p=jl(e,i,a,s,hr),hr[1]<hr[0]&&p>1&&BA(),h=Pe(e,i,a,s,hr[0]),p>1&&(v=Pe(e,i,a,s,hr[1]))),p===2?m<hr[0]?c+=h<e?g:-g:m<hr[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<hr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function zA(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=yy(e,i,a,s,Tt);if(l===0)return 0;var u=Ql(e,i,a);if(u>=0&&u<=1){for(var f=0,c=Qe(e,i,a,u),p=0;p<l;p++){var h=Tt[p]===0||Tt[p]===1?.5:1,v=Qe(t,r,n,Tt[p]);v<o||(Tt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Tt[0]===0||Tt[0]===1?.5:1,v=Qe(t,r,n,Tt[0]);return v<o?0:a<e?h:-h}}function FA(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Tt[0]=-l,Tt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Fn-1e-4){i=0,n=Fn;var f=a?1:-1;return o>=Tt[0]+t&&o<=Tt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Fn,n+=Fn);for(var p=0,h=0;h<2;h++){var v=Tt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=Fn+d),(d>=i&&d<=n||d+Fn>=i&&d+Fn<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function j_(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===Ui.M&&v>1&&(r||(s+=pr(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case Ui.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ui.L:if(r){if(zn(l,u,a[v],a[v+1],e,i,n))return!0}else s+=pr(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ui.C:if(r){if(X_(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=UA(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ui.Q:if(r){if(q_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=zA(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Ui.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=pr(l,u,p,h,i,n);var w=(i-g)*x/_+g;if(r){if(K_(g,y,x,S,S+T,C,e,w,n))return!0}else s+=FA(g,y,x,S,S+T,C,w,n);l=Math.cos(S+T)*_+g,u=Math.sin(S+T)*x+y;break;case Ui.R:f=l=a[v++],c=u=a[v++];var D=a[v++],E=a[v++];if(p=f+D,h=c+E,r){if(zn(f,c,p,c,e,i,n)||zn(p,c,p,h,e,i,n)||zn(p,h,f,h,e,i,n)||zn(f,h,f,c,e,i,n))return!0}else s+=pr(p,c,p,h,i,n),s+=pr(f,h,f,c,i,n);break;case Ui.Z:if(r){if(zn(l,u,f,c,e,i,n))return!0}else s+=pr(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!kA(u,c)&&(s+=pr(l,u,f,c,i,n)||0),s!==0}function Q_(t,e,r){return j_(t,0,!1,e,r)}function $_(t,e,r,i){return j_(t,e,!0,r,i)}var iv=te({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zr),HA={style:te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pn.style)},rv=Fa.concat(["invisible","culling","z","z2","zlevel","parent"]),GA=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<rv.length;++s)n[rv[s]]=this[rv[s]];n.__dirty|=Ge}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=ue(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?P(this.style,s):this.useStyle(s):o==="shape"?P(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(B(r)){var i=bn(r,0);return i>.5?hs:i>.2?Fy:vs}else if(r)return vs}return hs},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(B(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=bn(r,0)<ps;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Ci},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Gt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ci)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);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 r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,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)),$_(s,l/u,r,i)))return!0}if(this.hasFill())return Q_(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ci,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:P(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ci)},e.prototype.createStyle=function(r){return ei(iv,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==Wa){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=ue(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return HA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(r.style)},o.prototype.getDefaultShape=function(){return $(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ge|Sn|Ci})(),e})(Fr),ae=GA;var WA=te({strokeFirst:!0,font:er,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},iv),J_=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Wh(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return ei(WA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=z_(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Fr);J_.prototype.type="tspan";var As=J_;var YA=te({x:0,y:0},zr),XA={style:te({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pn.style)};function qA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var e0=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ei(YA,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=qA(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return XA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new j(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Fr);e0.prototype.type="image";var Lt=e0;function t0(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ja=Math.round;function Au(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ja(i*2)===Ja(n*2)&&(t.x1=t.x2=zi(i,s,!0)),Ja(a*2)===Ja(o*2)&&(t.y1=t.y2=zi(a,s,!0))),t}}function Mu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=zi(i,s,!0),t.y=zi(n,s,!0),t.width=Math.max(zi(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(zi(n+o,s,!1)-t.y,o===0?0:1)),t}}function zi(t,e,r){if(!e)return t;var i=Ja(t*2);return(i+Ja(e))%2===0?i/2:(i+(r?1:-1))/2}var jA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var QA={},r0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jA},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Mu(QA,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?t0(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);r0.prototype.type="rect";var me=r0;var i0={fill:"#000"},n0=2,Wr={},$A={style:te({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},Pn.style)},p0=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=i0,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new j(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||i0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return P(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=ue(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},P(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return $A},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||er,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Hh(Wr,a.overflowRect,o,s,l,u),o=Wr.baseX,s=Wr.baseY;var f=c0(r),c=k_(f,r,Wr.outerWidth,Wr.outerHeight),p=nv(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=ai(s,c.contentHeight,u);if(p||n){var x=Mi(o,d,l),S=ai(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=g/2,n&&(y=f0(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var T=0,C=!1,w=!1,D=u0("fill"in r?r.fill:(w=!0,a.fill)),E=l0("stroke"in r?r.stroke:!h&&(!a.autoStroke||w)?(T=n0,C=!0,a.stroke):null),A=r.textShadowBlur>0,I=0;I<m.length;I++){var M=this._getOrCreateChild(As),O=M.createStyle();M.useStyle(O),O.text=m[I],O.x=y,O.y=_,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,A&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=E,O.fill=D,E&&(O.lineWidth=r.lineWidth||T,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=i,o0(O,r),_+=g,M.setBoundingRect(Cu(O,c.contentWidth,c.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;Hh(Wr,i.overflowRect,o,s,n,a),o=Wr.baseX,s=Wr.baseY;var l=c0(r),u=B_(l,r,Wr.outerWidth,Wr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=Mi(o,c,n),d=ai(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;nv(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],T=S.tokens,C=T.length,w=S.lineHeight,D=S.width,E=0,A=m,I=y,M=C-1,O=void 0;E<C&&(O=T[E],!O.align||O.align==="left");)this._placeToken(O,r,w,g,A,"left",_),D-=O.width,A+=O.width,E++;for(;M>=0&&(O=T[M],O.align==="right");)this._placeToken(O,r,w,g,I,"right",_),D-=O.width,I-=O.width,M--;for(A+=(f-(A-m)-(y-I)-D)/2;E<=M;)O=T[E],this._placeToken(O,r,w,g,A+O.width/2,"center",_),A+=O.width,E++;g+=w}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&nv(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=f0(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(As),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=u0("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),T=l0("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=n0,x=!0,g.stroke):null),C=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,C&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||er,m.opacity=tr(u.opacity,i.opacity,1),o0(m,u),T&&(m.lineWidth=tr(u.lineWidth,i.lineWidth,_),m.lineDash=Y(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=T),S&&(m.fill=S),d.setBoundingRect(Cu(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(me),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Lt),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=tr(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return rM(r)&&(i=[r.fontStyle,r.fontWeight,tM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&tt(i)||r.textFont||r.font},e})(Fr),JA={left:!0,right:1,center:1},eM={top:1,bottom:1,middle:1},a0=["fontStyle","fontWeight","fontSize","fontFamily"];function tM(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Nl+"px":t+"px"}function o0(t,e){for(var r=0;r<a0.length;r++){var i=a0[r],n=e[i];n!=null&&(t[i]=n)}}function rM(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iM(t){return s0(t),b(t.rich,s0),t}function s0(t){if(t){t.font=p0.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||JA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||eM[r]?r:"top";var i=t.padding;i&&(t.padding=cn(t.padding))}}function l0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function u0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function f0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function c0(t){var e=t.text;return e!=null&&(e+=""),e}function nv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var De=p0;var pe=ne(),h0=function(t,e,r,i){if(i){var n=pe(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=pe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Fi="undefined",Iu="series",Ou=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),$e="original",qe="arrayRows",bt="objectRows",Wt="keyedColumns",Yt="typedArray",av="unknown",Xt="column",Yr="row";var nM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aM=(function(){function t(e){b(nM,function(r){this[r]=ce(e[r],e)},this)}return t})();function v0(t,e){return e.mainType===Iu?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Lu=aM;var d0=1,m0={},S0=ne(),lv=ne(),uv=0,Ms=1,Is=2,vr=["emphasis","blur","select"],fv=["normal","emphasis","blur","select"],oM=10,sM=9,Vi="highlight",Os="downplay",Ls="select",Ru="unselect",Ps="toggleSelect",Nu="selectchanged";function eo(t){return t!=null&&t!=="none"}function ku(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function T0(t){ku(t,"emphasis",Is)}function b0(t){t.hoverState===Is&&ku(t,"normal",uv)}function cv(t){ku(t,"blur",Ms)}function C0(t){t.hoverState===Ms&&ku(t,"normal",uv)}function lM(t){t.selected=!0}function uM(t){t.selected=!1}function g0(t,e,r){e(t,r)}function fi(t,e,r){g0(t,e,r),t.isGroup&&t.traverse(function(i){g0(i,e,r)})}function pv(t,e){switch(e){case"emphasis":t.hoverState=Is;break;case"normal":t.hoverState=uv;break;case"blur":t.hoverState=Ms;break;case"select":t.selected=!0}}function fM(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function cM(t,e,r,i){var n=r&&ie(r,"select")>=0,a=!1;if(t instanceof ae){var o=S0(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(eo(s)||eo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!eo(u.fill)&&eo(s)?(a=!0,i=P({},i),u=P({},u),u.fill=ru(s)):!eo(u.stroke)&&eo(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=ru(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??oM)}return i}function pM(t,e,r){if(r&&r.z2==null){r=P({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??sM)}return r}function hM(t,e,r){var i=ie(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:fM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:i?n:a.opacity*.1},o),r.style=o),r}function ov(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return cM(this,t,e,r);if(t==="blur")return hM(this,t,r);if(t==="select")return pM(this,t,r)}return r}function vM(t){t.stateProxy=ov;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=ov),r&&(r.stateProxy=ov)}function y0(t,e){!E0(t,e)&&!t.__highByOuter&&fi(t,T0)}function _0(t,e){!E0(t,e)&&!t.__highByOuter&&fi(t,b0)}function Vn(t,e){t.__highByOuter|=1<<(e||0),fi(t,T0)}function Hn(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&fi(t,b0)}function w0(t){fi(t,cv)}function hv(t){fi(t,C0)}function vv(t){fi(t,lM)}function dv(t){fi(t,uM)}function E0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function mv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=lv(a),s=v0(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){C0(u)}),l&&r.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function sv(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&hv(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||cv(m)}),Fe(e))a(u.getData(),e);else if(F(e))for(var v=ue(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),lv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Pu(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){lv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){cv(a)})}}}function D0(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=ur(n,e);a=(R(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=pe(o);sv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&sv(i,f,c,r)}}}function Bu(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(pe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function A0(t,e,r){var i=pe(t),n=Bu(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Pu(i.componentMainType,i.componentIndex,r),b(a,function(s){return y0(s,e)})):(sv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Pu(i.componentMainType,i.componentIndex,r),y0(t,e))}function M0(t,e,r){mv(r);var i=pe(t),n=Bu(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?b(n,function(a){return _0(a,e)}):_0(t,e)}function I0(t,e,r){if(Uu(e)){var i=e.dataType,n=t.getData(i),a=ur(n,e);R(a)||(a=[a]),t[e.type===Ps?"toggleSelect":e.type===Ls?"select":"unselect"](a,i)}}function gv(t){var e=t.getAllData();b(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?vv(a):dv(a)})})}function O0(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();b(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function to(t,e,r){L0(t,!0),fi(t,vM),mM(t,e,r)}function dM(t){L0(t,!1)}function Gn(t,e,r,i){i?dM(t):to(t,e,r)}function mM(t,e,r){var i=pe(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var x0=["emphasis","blur","select"],gM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rs(t,e,r,i){r=r||"itemStyle";for(var n=0;n<x0.length;n++){var a=x0[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[gM[r]]()}}function L0(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function Ns(t){return!!(t&&t.__highDownDispatcher)}function P0(t){var e=m0[t];return e==null&&d0<=32&&(e=m0[t]=d0++),e}function Uu(t){var e=t.type;return e===Ls||e===Ru||e===Ps}function yv(t){var e=t.type;return e===Vi||e===Os}function R0(t){var e=S0(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var ft={};Ut(ft,{Arc:()=>Xn,BezierCurve:()=>Gs,BoundingRect:()=>j,Circle:()=>Wn,CompoundPath:()=>Gu,Ellipse:()=>Bs,Group:()=>xe,HOVER_LAYER_FOR_INCREMENTAL:()=>Ys,HOVER_LAYER_FROM_THRESHOLD:()=>Ov,HOVER_LAYER_NO:()=>Iv,Image:()=>Lt,IncrementalDisplayable:()=>ju,Line:()=>qt,LinearGradient:()=>no,OrientedBoundingRect:()=>Ku,Path:()=>ae,Point:()=>be,Polygon:()=>Vs,Polyline:()=>Hs,RadialGradient:()=>Yu,Rect:()=>me,Ring:()=>Fs,Sector:()=>qr,Text:()=>De,WH:()=>jn,XY:()=>ci,applyTransform:()=>ef,calcZ2Range:()=>tI,clipPointsByRect:()=>Uv,clipRectByRect:()=>zv,createIcon:()=>$n,decomposeTransform:()=>iI,ensureCopyRect:()=>co,ensureCopyTransform:()=>rf,expandOrShrinkRect:()=>uo,extendPath:()=>Pv,extendShape:()=>Lv,getCurrentCanvasPainter:()=>nI,getShapeClass:()=>Rv,getTransform:()=>kv,groupTransition:()=>Bv,initProps:()=>dt,isBoundingRectAxisAligned:()=>tf,isElementRemoved:()=>Kn,lineLineIntersect:()=>px,linePolygonIntersect:()=>JM,makeImage:()=>Xs,makePath:()=>lo,mergePath:()=>Nv,payloadDisableAnimation:()=>rI,registerShape:()=>Zt,removeElement:()=>oo,removeElementWithFadeOut:()=>so,resizePath:()=>Ju,retrieveZInfo:()=>Fv,setTooltipConfig:()=>fo,subPixelOptimize:()=>jM,subPixelOptimizeLine:()=>Qn,subPixelOptimizeRect:()=>KM,transformDirection:()=>QM,traverseElements:()=>Jn,traverseUpdateZ:()=>Vv,updateProps:()=>Ue});var ro=Gt.CMD,yM=[[],[],[]],N0=Math.sqrt,_M=Math.atan2;function _v(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=ro.M,c=ro.C,p=ro.L,h=ro.R,v=ro.A,d=ro.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=N0(e[0]*e[0]+e[1]*e[1]),_=N0(e[2]*e[2]+e[3]*e[3]),x=_M(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],He(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],He(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=yM[l];S[0]=r[o++],S[1]=r[o++],He(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var xv=Math.sqrt,zu=Math.sin,Fu=Math.cos,ks=Math.PI;function k0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Sv(t,e){return(t[0]*e[0]+t[1]*e[1])/(k0(t)*k0(e))}function B0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Sv(t,e))}function U0(t,e,r,i,n,a,o,s,l,u,f){var c=l*(ks/180),p=Fu(c)*(t-r)/2+zu(c)*(e-i)/2,h=-1*zu(c)*(t-r)/2+Fu(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=xv(v),s*=xv(v));var d=(n===a?-1:1)*xv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+Fu(c)*m-zu(c)*g,_=(e+i)/2+zu(c)*m+Fu(c)*g,x=B0([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],T=[(-1*p-m)/o,(-1*h-g)/s],C=B0(S,T);if(Sv(S,T)<=-1&&(C=ks),Sv(S,T)>=1&&(C=0),C<0){var w=Math.round(C/ks*1e6)/1e6;C=ks*2+w%2*ks}f.addData(u,y,_,o,s,x,C,c,a)}var xM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function TM(t){var e=new Gt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=Gt.CMD,l=t.match(xM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(SM)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,w=r,D=i,E=void 0,A=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,E=e.len(),A=e.data,o===s.C&&(g+=r-A[E-4],y+=i-A[E-3]),p=s.C,w=h[m++],D=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,w,D,r,i);break;case"s":g=r,y=i,E=e.len(),A=e.data,o===s.C&&(g+=r-A[E-4],y+=i-A[E-3]),p=s.C,w=r+h[m++],D=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,w,D,r,i);break;case"Q":w=h[m++],D=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,w,D,r,i);break;case"q":w=h[m++]+r,D=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,w,D,r,i);break;case"T":g=r,y=i,E=e.len(),A=e.data,o===s.Q&&(g+=r-A[E-4],y+=i-A[E-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,E=e.len(),A=e.data,o===s.Q&&(g+=r-A[E-4],y+=i-A[E-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],T=h[m++],C=h[m++],w=r,D=i,r=h[m++],i=h[m++],p=s.A,U0(w,D,r,i,T,C,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],T=h[m++],C=h[m++],w=r,D=i,r+=h[m++],i+=h[m++],p=s.A,U0(w,D,r,i,T,C,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var z0=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ae);function F0(t){return t.setData!=null}function V0(t,e){var r=TM(t),i=P({},e);return i.buildPath=function(n){var a=F0(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){_v(r,n),this.dirtyShape()},i}function H0(t,e){return new z0(V0(t,e))}function G0(t,e){var r=V0(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(z0);return i}function W0(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(F0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var CM=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var Y0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CM},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ae);Y0.prototype.type="circle";var Wn=Y0;var wM=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var X0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new wM},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ae);X0.prototype.type="ellipse";var Bs=X0;var Z0=Math.PI,Tv=Z0*2,Yn=Math.sin,io=Math.cos,EM=Math.acos,vt=Math.atan2,q0=Math.abs,zs=Math.sqrt,Us=Math.max,Xr=Math.min,Dr=1e-4;function DM(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Dr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function Vu(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/zs(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,T=p*d-v*h,C=(_<0?-1:1)*zs(Us(0,S*S*x-T*T)),w=(T*_-y*C)/x,D=(-T*y-_*C)/x,E=(T*_+y*C)/x,A=(-T*y+_*C)/x,I=w-m,M=D-g,O=E-m,N=A-g;return I*I+M*M>O*O+N*N&&(w=E,D=A),{cx:w,cy:D,x0:-f,y0:-c,x1:w*(n/S-1),y1:D*(n/S-1)}}function AM(t){var e;if(R(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function K0(t,e){var r,i=Us(e.r,0),n=Us(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=q0(u-l),v=h>Tv&&h%Tv;if(v>Dr&&(h=v),!(i>Dr))t.moveTo(f,c);else if(h>Tv-Dr)t.moveTo(f+i*io(l),c+i*Yn(l)),t.arc(f,c,i,l,u,!p),n>Dr&&(t.moveTo(f+n*io(u),c+n*Yn(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,w=void 0,D=void 0,E=void 0,A=void 0,I=void 0,M=void 0,O=void 0,N=i*io(l),k=i*Yn(l),W=n*io(u),z=n*Yn(u),X=h>Dr;if(X){var Q=e.cornerRadius;Q&&(r=AM(Q),d=r[0],m=r[1],g=r[2],y=r[3]);var Z=q0(i-n)/2;if(_=Xr(Z,g),x=Xr(Z,y),S=Xr(Z,d),T=Xr(Z,m),D=C=Us(_,x),E=w=Us(S,T),(C>Dr||w>Dr)&&(A=i*io(u),I=i*Yn(u),M=n*io(l),O=n*Yn(l),h<Z0)){var ee=DM(N,k,M,O,A,I,W,z);if(ee){var re=N-ee[0],q=k-ee[1],de=A-ee[0],ye=I-ee[1],_t=1/Yn(EM((re*de+q*ye)/(zs(re*re+q*q)*zs(de*de+ye*ye)))/2),yr=zs(ee[0]*ee[0]+ee[1]*ee[1]);D=Xr(C,(i-yr)/(_t+1)),E=Xr(w,(n-yr)/(_t-1))}}}if(!X)t.moveTo(f+N,c+k);else if(D>Dr){var Ie=Xr(g,D),Ke=Xr(y,D),he=Vu(M,O,N,k,i,Ie,p),_e=Vu(A,I,W,z,i,Ke,p);t.moveTo(f+he.cx+he.x0,c+he.cy+he.y0),D<C&&Ie===Ke?t.arc(f+he.cx,c+he.cy,D,vt(he.y0,he.x0),vt(_e.y0,_e.x0),!p):(Ie>0&&t.arc(f+he.cx,c+he.cy,Ie,vt(he.y0,he.x0),vt(he.y1,he.x1),!p),t.arc(f,c,i,vt(he.cy+he.y1,he.cx+he.x1),vt(_e.cy+_e.y1,_e.cx+_e.x1),!p),Ke>0&&t.arc(f+_e.cx,c+_e.cy,Ke,vt(_e.y1,_e.x1),vt(_e.y0,_e.x0),!p))}else t.moveTo(f+N,c+k),t.arc(f,c,i,l,u,!p);if(!(n>Dr)||!X)t.lineTo(f+W,c+z);else if(E>Dr){var Ie=Xr(d,E),Ke=Xr(m,E),he=Vu(W,z,A,I,n,-Ke,p),_e=Vu(N,k,M,O,n,-Ie,p);t.lineTo(f+he.cx+he.x0,c+he.cy+he.y0),E<w&&Ie===Ke?t.arc(f+he.cx,c+he.cy,E,vt(he.y0,he.x0),vt(_e.y0,_e.x0),!p):(Ke>0&&t.arc(f+he.cx,c+he.cy,Ke,vt(he.y0,he.x0),vt(he.y1,he.x1),!p),t.arc(f,c,n,vt(he.cy+he.y1,he.cx+he.x1),vt(_e.cy+_e.y1,_e.cx+_e.x1),p),Ie>0&&t.arc(f+_e.cx,c+_e.cy,Ie,vt(_e.y1,_e.x1),vt(_e.y0,_e.x0),!p))}else t.lineTo(f+W,c+z),t.arc(f,c,n,u,l,p)}t.closePath()}}}var IM=(function(){function t(){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 t})();var j0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new IM},e.prototype.buildPath=function(r,i){K0(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);j0.prototype.type="sector";var qr=j0;var OM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var Q0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OM},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ae);Q0.prototype.type="ring";var Fs=Q0;function bv(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)rr(f,f,t[p]),ir(c,c,t[p]);rr(f,f,i[0]),ir(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Ap(t[p]));continue}else l=t[p-1],u=t[p+1];Mp(a,u,l),es(a,a,e);var d=ts(v,l),m=ts(v,u),g=d+m;g!==0&&(d/=g,m/=g),es(o,a,-d),es(s,a,m);var y=zl([],v,o),_=zl([],v,s);i&&(ir(y,y,f),rr(y,y,c),ir(_,_,f),rr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Hu(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=bv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var LM=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var J0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LM},e.prototype.buildPath=function(r,i){Hu(r,i,!0)},e})(ae);J0.prototype.type="polygon";var Vs=J0;var PM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var ex=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PM},e.prototype.buildPath=function(r,i){Hu(r,i,!1)},e})(ae);ex.prototype.type="polyline";var Hs=ex;var RM={},NM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var tx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NM},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Au(RM,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ae);tx.prototype.type="line";var qt=tx;var Pt=[],kM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function rx(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?Qp:Pe)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Qp:Pe)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?$p:Qe)(t.x1,t.cpx1,t.x2,e),(r?$p:Qe)(t.y1,t.cpy1,t.y2,e)]}var ix=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kM},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(ka(n,l,o,p,Pt),l=Pt[1],o=Pt[2],ka(a,u,s,p,Pt),u=Pt[1],s=Pt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Na(n,l,f,o,p,Pt),l=Pt[1],f=Pt[2],o=Pt[3],Na(a,u,c,s,p,Pt),u=Pt[1],c=Pt[2],s=Pt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return rx(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=rx(this.shape,r,!0);return Lp(i,i)},e})(ae);ix.prototype.type="bezier-curve";var Gs=ix;var BM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var nx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BM},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ae);nx.prototype.type="arc";var Xn=nx;var UM=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),Gu=UM;var zM=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Wu=zM;var FM=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Wu),no=FM;var VM=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(Wu),Yu=VM;var Cv=Math.min,HM=Math.max,Xu=Math.abs,qn=[0,0],Zn=[0,0],it=Xp(),qu=it.minTv,Zu=it.maxTv,GM=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new be;for(var i=0;i<2;i++)this._axes[i]=new be;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);be.sub(n[0],i[1],i[0]),be.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&be.set(r,0,0),it.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!it.negativeSize&&be.copy(r,n?it.useDir?it.dirMinTv:qu:Zu),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,qn),e._getProjMinMaxOnAxis(o,r._corners,Zn),it.negativeSize||qn[1]<Zn[0]||qn[0]>Zn[1]){if(a=!1,it.negativeSize||i)return a;var l=Xu(Zn[0]-qn[1]),u=Xu(qn[0]-Zn[1]);Cv(l,u)>Zu.len()&&(l<u?be.scale(Zu,s,-l*n):be.scale(Zu,s,u*n))}else if(!i){var l=Xu(Zn[0]-qn[1]),u=Xu(qn[0]-Zn[1]);(it.useDir||Cv(l,u)<qu.len())&&((l<u||!it.bidirectional)&&(be.scale(qu,s,l*n),it.useDir&&it.calcDirMTV()),(l>=u||!it.bidirectional)&&(be.scale(qu,s,-u*n),it.useDir&&it.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Cv(f,s),l=HM(f,l)}i[0]=s+it.touchThreshold,i[1]=l-it.touchThreshold,it.negativeSize=i[1]<i[0]},t})(),Ku=GM;var wv=0,ax=1,ox=2,sx=1,ao=0;var WM=[],YM=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=ax,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new j(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(WM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(Fr),ju=YM;var XM=ne();function qM(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Y(i.duration,200),f=Y(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),G(c)&&(c=c(r,n)),G(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Ev(t,e,r,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):F(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=qM(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ue(t,e,r,i,n,a){Ev("update",t,e,r,i,n,a)}function dt(t,e,r,i,n,a){Ev("enter",t,e,r,i,n,a)}function Kn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function oo(t,e,r,i,n,a){Kn(t)||Ev("leave",t,e,r,i,n,a)}function lx(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),oo(t,{style:{opacity:0}},e,r,i)}function so(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||lx(n,e,r,i)}):lx(t,e,r,i)}function Qu(t){XM(t).oldStyle=t.style}var Av={},ci=["x","y"],jn=["width","height"],Iv=0,Ov=1,Ys=2;function Lv(t){return ae.extend(t)}var ZM=G0;function Pv(t,e){return ZM(t,e)}function Zt(t,e){Av[t]=e}function Rv(t){if(Av.hasOwnProperty(t))return Av[t]}function lo(t,e,r,i){var n=H0(t,e);return r&&(i==="center"&&(r=cx(r,n.getBoundingRect())),Ju(n,r)),n}function Xs(t,e,r){var i=new Lt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(cx(e,a))}}});return i}function cx(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Nv=W0;function Ju(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function Qn(t,e){return Au(t,t,{lineWidth:e}),t}function KM(t,e){return Mu(t,t,e),t}var jM=zi;function kv(t,e){for(var r=nr([]);t&&t!==e;)xr(r,t.getLocalTransform(),r),t=t.parent;return r}function ef(t,e,r){return e&&!Fe(e)&&(e=Ha.getLocalTransform(e)),r&&(e=zt([],e)),He([],t,e)}function QM(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ae(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ae(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=ef(a,e,r),Ae(a[0])>Ae(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ux(t){return!t.isGroup}function $M(t){return t.shape!=null}function Bv(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){ux(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $M(o)&&(s.shape=$(o.shape)),s}var a=i(t);e.traverse(function(o){if(ux(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ue(o,l,r,pe(o).dataIndex)}}})}function Uv(t,e){return U(t,function(r){var i=r[0];i=fe(i,e.x),i=Re(i,e.x+e.width);var n=r[1];return n=fe(n,e.y),n=Re(n,e.y+e.height),[i,n]})}function zv(t,e){var r=fe(t.x,e.x),i=Re(t.x+t.width,e.x+e.width),n=fe(t.y,e.y),a=Re(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function $n(t,e,r){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),te(n,r),new Lt(i)):lo(t.replace("path://",""),i,r,"center")}function JM(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(px(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function px(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Dv(f,c,l,u);if(eI(p))return!1;var h=t-n,v=e-a,d=Dv(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Dv(h,v,f,c)/p;return!(m<0||m>1)}function Dv(t,e,r,i){return t*i-r*e}function eI(t){return t<=1e-6&&t>=-1e-6}function uo(t,e,r,i,n){return e==null||(se(e)?Me[0]=Me[1]=Me[2]=Me[3]=e:(Me[0]=e[0],Me[1]=e[1],Me[2]=e[2],Me[3]=e[3]),i&&(Me[0]=fe(0,Me[0]),Me[1]=fe(0,Me[1]),Me[2]=fe(0,Me[2]),Me[3]=fe(0,Me[3])),r&&(Me[0]=-Me[0],Me[1]=-Me[1],Me[2]=-Me[2],Me[3]=-Me[3]),fx(t,Me,"x","width",3,1,n&&n[0]||0),fx(t,Me,"y","height",0,2,n&&n[1]||0)),t}var Me=[0,0,0,0];function fx(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=fe(0,Re(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ae(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function fo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=B(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&b(ue(l),function(f){Ee(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=pe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:te({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Mv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Jn(t,e){if(t)if(R(t))for(var r=0;r<t.length;r++)Mv(t[r],e);else Mv(t,e)}function tf(t){return!t||Ae(t[1])<$u&&Ae(t[2])<$u||Ae(t[0])<$u&&Ae(t[3])<$u}var $u=1e-5;function co(t,e){return t?j.copy(t,e):e.clone()}function rf(t,e){return e?hn(t||st(),e):void 0}function Fv(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function tI(t){var e=-1/0,r=1/0;Mv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function Vv(t,e,r){hx(t,e,r,-1/0)}function hx(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=fe(hx(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=fe(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function rI(t){return t.animation={duration:0},t}function iI(t,e){return e?hn(Ws.transform,e):nr(Ws.transform),Ws.decomposeTransform(),Va(t,Ws),t}var Ws=new Ha;Ws.transform=st();function nI(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Zt("circle",Wn);Zt("ellipse",Bs);Zt("sector",qr);Zt("ring",Fs);Zt("polygon",Vs);Zt("polyline",Hs);Zt("rect",me);Zt("line",qt);Zt("bezierCurve",Gs);Zt("arc",Xn);var nf={};function aI(t,e){for(var r=0;r<vr.length;r++){var i=vr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function vx(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=G(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<vr.length;u++){var f=vr[u],c=e[f];l[f]=Y(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Hi(t,e,r,i){r=r||nf;for(var n=t instanceof De,a=!1,o=0;o<fv.length;o++){var s=e[fv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new De,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=vx(r,e),f=e.normal,c=!!f.getShallow("show"),p=Ar(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(dx(f,r,!1));for(var o=0;o<vr.length;o++){var h=vr[o],s=e[h];if(s){var v=l.ensureState(h),d=!!Y(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=Ar(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=dx(s,r,!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=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(po(l).setLabelText=function(g){var y=vx(r,e,g);aI(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Gi(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<vr.length;i++){var n=vr[i];r[n]=t.getModel([n,e])}return r}function Ar(t,e,r,i,n){var a={};return oI(a,t,r,i,n),e&&P(a,e),a}function dx(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=Y(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function oI(t,e,r,i,n){r=r||nf;var a=e.ecModel,o=a&&a.option.textStyle,s=sI(e),l;if(s){l={};var u="richInheritPlainLabel",f=Y(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);_x(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var d=t,m=e.get("minMargin");if(m!=null)m=se(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=ea.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=cn(g),d.__marginType=ea.textMargin)}_x(t,e,o,null,null,r,i,n,!0,!1)}function sI(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||nf).rich;if(r){e=e||{};for(var i=ue(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var mx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],gx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],yx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _x(t,e,r,i,n,a,o,s,l,u){r=!o&&r||nf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Y(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=Y(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=Y(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var m=Y(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<mx.length;g++){var y=mx[g],_=n!==!1&&i?tr(e.getShallow(y),i.getShallow(y),r[y]):Y(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<gx.length;g++){var y=gx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<yx.length;g++){var y=yx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function xx(t,e){var r=e&&e.getModel("textStyle");return tt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var po=ne();function Sx(t,e,r,i){if(t){var n=po(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var ea={minMargin:1,textMargin:2};var lI=["textStyle","color"],Hv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Gv=new De,uI=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(lI):null)},t.prototype.getFont=function(){return xx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Hv.length;i++)r[Hv[i]]=this.getShallow(Hv[i]);return Gv.useStyle(r),Gv.update(),Gv.getBoundingRect()},t})(),Tx=uI;var Wv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],fI=Ur(Wv),bx=(function(){function t(){}return t.prototype.getLineStyle=function(e){return fI(this,e)},t})();var Yv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],cI=Ur(Yv),Cx=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return cI(this,e,r)},t})();var ta=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){le(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e($(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Qa(ta);E_(ta);et(ta,bx);et(ta,Cx);et(ta,D_);et(ta,Tx);var Se=ta;var pI=Math.round(Math.random()*10);function Wi(t){return[t||"",pI++].join("_")}function Ex(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Ot(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Ot(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function Dx(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(b(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),b(v.successor,d?g:m)}b(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return b(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),b(c,function(p){ie(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ie(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(l){ie(o,l)>=0&&s.push(l)}),s}}function af(t,e){return le(le({},t,!0),e,!0)}var Ax={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 Mx={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 sf="ZH",qv="EN",ho=qv,of={},Zv={},lf=J.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ho).toUpperCase();return t.indexOf(sf)>-1?sf:ho})():ho;function uf(t,e){t=t.toUpperCase(),Zv[t]=new Se(e),of[t]=e}function Ix(t){if(B(t)){var e=of[t.toUpperCase()]||{};return t===sf||t===qv?$(e):le($(e),$(of[ho]),!1)}else return le($(t),$(of[ho]),!1)}function Ox(t){return Zv[t]}function Lx(){return Zv[ho]}uf(qv,Ax);uf(sf,Mx);var hI=null;function Be(){return hI}function ff(t,e){var r=Be(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function ra(t){var e=t.brk;return e?e.breaks:[]}function ia(t){var e=t.brk;return e?e.hasBreaks():!1}var hf=1e3,vf=hf*60,vo=vf*60,Kt=vo*24,Kv=Kt*365,vI={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},pf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},dI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",cf="{yyyy}-{MM}-{dd}",jv={year:"{yyyy}",month:"{yyyy}-{MM}",day:cf,hour:cf+" "+pf.hour,minute:cf+" "+pf.minute,second:cf+" "+pf.second,millisecond:dI},Rt=["year","month","day","hour","minute","second","millisecond"],Px=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Rx(t){return!B(t)&&!G(t)?mI(t):t}function mI(t){t=t||{};var e={},r=!0;return b(Rt,function(i){r&&(r=t[i]==null)}),b(Rt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Rt[s],u=F(a)&&!R(a)?a[l]:a,f=void 0;R(u)?(f=u.slice(),o=f[0]||""):B(u)?(o=u,f=[o]):(o==null?o=pf[i]:vI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function mt(t,e){return t+="","0000".substr(0,e-t.length)+t}function mo(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Nx(t){return t===mo(t)}function kx(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pi(t,e,r,i){var n=St(t),a=n[Qv(r)](),o=n[df(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[mf(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[gf(r)](),c=(f-1)%12+1,p=n[yf(r)](),h=n[_f(r)](),v=n[xf(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Se?i:Ox(i||lf)||Lx(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),T=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,mt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,mt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,mt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,mt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,mt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,mt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,mt(v,3)).replace(/{S}/g,v+"")}function Bx(t,e,r,i,n){var a=null;if(B(r))a=r;else if(G(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Be();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=na(t.value,n);a=r[f][f][0]}}return pi(new Date(t.value),a,n,i)}function na(t,e){var r=St(t),i=r[df(e)]()+1,n=r[mf(e)](),a=r[gf(e)](),o=r[yf(e)](),s=r[_f(e)](),l=r[xf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function go(t,e,r){switch(e){case"year":t[$v(r)](0);case"month":t[Jv(r)](1);case"day":t[ed(r)](0);case"hour":t[td(r)](0);case"minute":t[rd(r)](0);case"second":t[id(r)](0)}return t}function Qv(t){return t?"getUTCFullYear":"getFullYear"}function df(t){return t?"getUTCMonth":"getMonth"}function mf(t){return t?"getUTCDate":"getDate"}function gf(t){return t?"getUTCHours":"getHours"}function yf(t){return t?"getUTCMinutes":"getMinutes"}function _f(t){return t?"getUTCSeconds":"getSeconds"}function xf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ux(t){return t?"setUTCFullYear":"setFullYear"}function $v(t){return t?"setUTCMonth":"setMonth"}function Jv(t){return t?"setUTCDate":"setDate"}function ed(t){return t?"setUTCHours":"setHours"}function td(t){return t?"setUTCMinutes":"setMinutes"}function rd(t){return t?"setUTCSeconds":"setSeconds"}function id(t){return t?"setUTCMilliseconds":"setMilliseconds"}function nd(t,e,r,i,n,a,o,s){var l=new De({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function qs(t){if(!xs(t))return B(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function yo(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Zr=cn;function Sf(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&tt(f)?f:"-"}function a(f){return Xe(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?St(t):t;if(isNaN(+l)){if(s)return"-"}else return pi(l,i,r)}if(e==="ordinal")return Ia(t)?n(t):se(t)&&a(t)?t+"":"-";var u=lr(t);return a(u)?qs(u):Ia(t)?n(t):typeof t=="boolean"?t+"":"-"}var zx=["a","b","c","d","e","f","g"],ad=function(t,e){return"{"+t+(e??"")+"}"};function _o(t,e,r){R(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=zx[a];t=t.replace(ad(o),ad(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(ad(zx[l],s),r?je(u):u)}return t}function Tf(t,e){var r=B(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+je(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+je(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Fx(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
9
- yyyy`);var i=St(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",mt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",mt(a%100+"",2)).replace("dd",mt(s,2)).replace("d",s).replace("hh",mt(l,2)).replace("h",l).replace("mm",mt(u,2)).replace("m",u).replace("ss",mt(f,2)).replace("s",f).replace("SSS",mt(c,3)),t}function Vx(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Mr(t,e){return e=e||"transparent",B(t)?t:F(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var bf={},sd={},gI=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(bf,!0),this._normalMasterList=i(sd,!1);function i(n,a){var o=[];return b(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){bf[e]=r;return}sd[e]=r},t.get=function(e){return sd[e]||bf[e]},t})();function yI(t){return!!bf[t]}var _I=1,Hx=2;var xI=V();function wf(t){var e=t.getShallow("coord",!0),r=_I;if(e==null){var i=xI.get(t.type);i&&i.getCoord2&&(r=Hx,e=i.getCoord2(t))}return{coord:e,from:r}}var xo=0,Cf=1,SI=2;function TI(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=xo;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Cf,o||(a=xo)):i==="box"&&(a=SI,!o&&!yI(r)&&(a=xo))}return{coordSysType:r,kind:a}}function Gx(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=TI(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Cf&&(s=Cf,l=r),s===xo||l!==r)return xo;var u=i(r,e);return u?(s===Cf?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):xo}var So=gI;var Af=b,bI=["left","right","top","bottom","width","height"],Ef=[["width","left","right"],["height","top","bottom"]];function ld(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var aa=ld,PV=Te(ld,"vertical"),RV=Te(ld,"horizontal");function Wx(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Kr(t,e,r){r=Zr(r||0);var i=e.width,n=e.height,a=We(t.left,i),o=We(t.top,n),s=We(t.right,i),l=We(t.bottom,n),u=We(t.width,i),f=We(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new j((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var Df={rect:1,point:2};function Mf(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=wf(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Df.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Df.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Df.rect),a===Df.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function Yi(t){var e=t.layoutMode||t.constructor.layoutMode;return F(e)?e:e?{type:e}:null}function jt(t,e,r){var i=r&&r.ignoreSize;!R(i)&&(i=[i,i]);var n=o(Ef[0],0),a=o(Ef[1],1);l(Ef[0],t,n),l(Ef[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(Af(u,function(y){h[y]=t[y]}),Af(u,function(y){Ee(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ee(c,g)&&Ee(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Af(u,function(p){f[p]=c[p]})}}function jr(t){return CI({},t)}function CI(t,e){return e&&t&&Af(bI,function(r){Ee(e,r)&&(t[r]=e[r])}),t}var wI=ne(),To=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=Wi("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Yi(this),a=n?jr(r):{},o=i.getTheme();le(r,o.get(this.mainType)),le(r,this.getDefaultOption()),n&&jt(r,a,n)},e.prototype.mergeOption=function(r,i){le(this.option,r,!0);var n=Yi(this);n&&jt(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!w_(r))return r.defaultOption;var i=wI(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=le(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Ri(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return Wx(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Se);bu(To,Se);Ni(To);Ex(To);Dx(To,EI);function EI(t){var e=[];return b(To.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return Ot(r).main}),t!=="dataset"&&ie(e,"dataset")<=0&&e.unshift("dataset"),e}var ge=To;var oa={color:{},darkColor:{},size:{}},ze=oa.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};P(ze,{primary:ze.neutral80,secondary:ze.neutral70,tertiary:ze.neutral60,quaternary:ze.neutral50,disabled:ze.neutral20,border:ze.neutral30,borderTint:ze.neutral20,borderShade:ze.neutral40,background:ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ze.neutral70,axisLineTint:ze.neutral40,axisTick:ze.neutral70,axisTickMinor:ze.neutral60,axisLabel:ze.neutral70,axisSplitLine:ze.neutral15,axisMinorSplitLine:ze.neutral05});for(Xi in ze)ze.hasOwnProperty(Xi)&&(fd=ze[Xi],Xi==="theme"?oa.darkColor.theme=ze.theme.slice():Xi==="highlight"?oa.darkColor.highlight="rgba(255,231,130,0.4)":Xi.indexOf("accent")===0?oa.darkColor[Xi]=Ua(fd,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):oa.darkColor[Xi]=Ua(fd,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var fd,Xi;oa.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var K=oa;var Yx="";typeof navigator<"u"&&(Yx=navigator.platform||"");var bo="rgba(0, 0, 0, 0.2)",Xx=K.color.theme[0],DI=Ua(Xx,null,null,.9),If={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[DI,Xx],aria:{decal:{decals:[{color:bo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:bo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:bo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:bo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:bo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:bo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yx.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 Ct={Must:1,Might:2,Not:3},qx=ne();function Zx(t){qx(t).datasetMap=V()}function Kx(t,e,r){var i={},n=cd(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=qx(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(d,m){var g=F(d)?d:t[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});b(t,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function cd(t){var e=t.get("data",!0);if(!e)return Ri(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},lt).models[0]}function jx(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Ri(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},lt).models}function Of(t,e){return AI(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function AI(t,e,r,i,n,a){var o,s=5;if(ke(t))return Ct.Not;var l,u;if(i){var f=i[a];F(f)?(l=f.name,u=f.type):B(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ct.Must:Ct.Not;if(e===qe){var c=t;if(r===Yr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===bt){var d=t;if(!l)return Ct.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Wt){var g=t;if(!l)return Ct.Not;var p=g[l];if(!p||ke(p))return Ct.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===$e)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=si(m);if(!R(_))return Ct.Not;if((o=x(_[a]))!=null)return o}function x(S){var T=B(S);if(S!=null&&isFinite(Number(S))&&S!=="")return T?Ct.Might:Ct.Not;if(T&&S!=="-")return Ct.Must}return Ct.Not}var MI=V();function Qx(t,e,r){var i=MI.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var $x=ne(),JV=ne(),Zs=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ne(this.get("color",!0)),a=this.get("colorLayer",!0);return OI(this,$x,n,a,e,r,i)},t.prototype.clearColorPalette=function(){LI(this,$x)},t})();function II(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function OI(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:II(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function LI(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Lf,Ks,Jx,eS="\0_ec_inner",PI=1;var nS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Se(a),this._locale=new Se(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=iS(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,iS(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Jx(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;Zx(this),b(r,function(c,p){c!=null&&(ge.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?$(c):le(n[p],c,!0))}),u&&u.each(function(c,p){ge.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),ge.topologicalTravel(s,ge.getAllClassMainTypes(),f,this);function f(c){var p=Qx(this,c,Ne(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=p_(h,p,v);v_(d,c,ge),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;b(d,function(S,T){var C=S.existing,w=S.newOption;if(!w)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var D=c==="series",E=ge.getClass(c,S.keyInfo.subType,!D);if(!E){if(0)var A,I;return}if(c==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===E)C.name=S.keyInfo.name,C.mergeOption(w,this),C.optionUpdated(w,!1);else{var M=P({componentIndex:T},S.keyInfo);C=new E(w,this,this,M),P(C,M),S.brandNew&&(C.__requireNewView=!0),C.init(w,this,this),C.optionUpdated(null,!0)}}C?(m.push(C.option),g.push(C),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Lf(this)}this._seriesIndices||Lf(this)},e.prototype.getOption=function(){var r=$(this.option);return b(r,function(i,n){if(ge.hasClass(n)){for(var a=Ne(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!qa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[eS],r},e.prototype.setTheme=function(r){this._theme=new Se(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(Ne(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=tS("id",a,s):o!=null?l=tS("name",o,s):l=we(s,function(u){return!!u}),rS(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):we(this._componentsMap.get(n),function(u){return!!u});return l(rS(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?we(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(G(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=B(r)?a.get(r):F(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Ht(r,null);return we(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return we(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return we(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Ks(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){b(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Ks(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return b(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Ks(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Ks(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(r){Lf(this);var i=this._componentsMap,n=[];i.each(function(a,o){ge.hasClass(o)&&n.push(o)}),ge.topologicalTravel(n,ge.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!=="series"||!RI(o,r))&&o.restoreData()})})},e.internalField=(function(){Lf=function(r){var i=r._seriesIndices=[];b(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=V(i)},Ks=function(r){},Jx=function(r,i){r.option={},r.option[eS]=PI,r._componentsMap=V({series:[]}),r._componentsCount=V();var n=i.aria;F(n)&&n.enabled==null&&(n.enabled=!0),NI(i,r._theme.option),le(i,If,!1),r._mergeOption(i,null)}})(),e})(Se);function RI(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function NI(t,e){var r=t.color&&!t.colorLayer;b(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||ge.hasClass(n)||(typeof i=="object"?t[n]=t[n]?le(t[n],i,!1):$(i):t[n]==null&&(t[n]=i))})}function tS(t,e,r){if(R(e)){var i=V();return b(e,function(a){if(a!=null){var o=Ht(a,null);o!=null&&i.set(a,!0)}}),we(r,function(a){return a&&i.get(a[t])})}else{var n=Ht(e,null);return we(r,function(a){return a&&n!=null&&a[t]===n})}}function rS(t,e){return e.hasOwnProperty("subType")?we(t,function(r){return r&&r.subType===e.subType}):t}function iS(t){var e=V();return t&&b(Ne(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}et(nS,Zs);var Pf=nS;var kI=/^(min|max)?(.+)$/,BI=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(b(Ne(e.series),function(o){o&&o.data&&ke(o.data)&&pn(o.data)}),b(Ne(e.dataset),function(o){o&&o.source&&ke(o.source)&&pn(o.source)})),e=$(e);var n=this._optionBackup,a=UI(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],$(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=$(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)zI(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!VI(o,this._currentMediaIndices)&&(s=U(o,function(f){return $(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function UI(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&R(u)&&b(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),b(l,function(h){return p(h)}),b(i,function(h){return p(h.option)});function p(h){b(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function zI(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return b(t,function(a,o){var s=o.match(kI);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();FI(i[u],a,l)||(n=!1)}}),n}function FI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function VI(t,e){return t.join(",")===e.join(",")}var aS=BI;var Ir=b,Qs=F,oS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pd(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=oS.length;r<i;r++){var n=oS[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?le(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?le(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function gt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,te(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function js(t){gt(t,"itemStyle"),gt(t,"lineStyle"),gt(t,"areaStyle"),gt(t,"label"),gt(t,"labelLine"),gt(t,"upperLabel"),gt(t,"edgeLabel")}function Ye(t,e){var r=Qs(t)&&t[e],i=Qs(r)&&r.textStyle;if(i)for(var n=0,a=Oh.length;n<a;n++){var o=Oh[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function dr(t){t&&(js(t),Ye(t,"label"),t.emphasis&&Ye(t.emphasis,"label"))}function HI(t){if(Qs(t)){pd(t),js(t),Ye(t,"label"),Ye(t,"upperLabel"),Ye(t,"edgeLabel"),t.emphasis&&(Ye(t.emphasis,"label"),Ye(t.emphasis,"upperLabel"),Ye(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(pd(e),dr(e));var r=t.markLine;r&&(pd(r),dr(r));var i=t.markArea;i&&dr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!ke(a))for(var o=0;o<a.length;o++)dr(a[o]);b(t.categories,function(u){js(u)})}if(n&&!ke(n))for(var o=0;o<n.length;o++)dr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)dr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)R(l[o])?(dr(l[o][0]),dr(l[o][1])):dr(l[o]);t.type==="gauge"?(Ye(t,"axisLabel"),Ye(t,"title"),Ye(t,"detail")):t.type==="treemap"?(gt(t.breadcrumb,"itemStyle"),b(t.levels,function(u){js(u)})):t.type==="tree"&&js(t.leaves)}}function hi(t){return R(t)?t:t?[t]:[]}function sS(t){return(R(t)?t[0]:t)||{}}function hd(t,e){Ir(hi(t.series),function(i){Qs(i)&&HI(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ir(r,function(i){Ir(hi(t[i]),function(n){n&&(Ye(n,"axisLabel"),Ye(n.axisPointer,"label"))})}),Ir(hi(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Ye(n,"axisLabel"),Ye(n&&n.axisPointer,"label")}),Ir(hi(t.calendar),function(i){gt(i,"itemStyle"),Ye(i,"dayLabel"),Ye(i,"monthLabel"),Ye(i,"yearLabel")}),Ir(hi(t.radar),function(i){Ye(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)}),Ir(hi(t.geo),function(i){Qs(i)&&(dr(i),Ir(hi(i.regions),function(n){dr(n)}))}),Ir(hi(t.timeline),function(i){dr(i),gt(i,"label"),gt(i,"itemStyle"),gt(i,"controlStyle",!0);var n=i.data;R(n)&&b(n,function(a){F(a)&&(gt(a,"label"),gt(a,"itemStyle"))})}),Ir(hi(t.toolbox),function(i){gt(i,"iconStyle"),Ir(i.feature,function(n){gt(n,"iconStyle")})}),Ye(sS(t.axisPointer),"label"),Ye(sS(t.tooltip).axisPointer,"label")}function GI(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function WI(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function lS(t){t&&b(YI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var YI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],XI=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $s(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<vd.length;r++){var i=vd[r][1],n=vd[r][0];e[i]!=null&&(e[n]=e[i])}}function uS(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function fS(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function qI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function cS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&cS(t[r].children,e)}function Rf(t,e){hd(t,e),t.series=Ne(t.series),b(t.series,function(r){if(F(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),uS(r.label);var n=r.data;if(n&&!ke(n))for(var a=0;a<n.length;a++)uS(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=GI(r,"pointer.color");o!=null&&WI(r,"itemStyle.color",o)}else if(i==="bar"){$s(r),$s(r.backgroundStyle),$s(r.emphasis);var n=r.data;if(n&&!ke(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&($s(n[a]),$s(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),fS(r),cS(r.data,fS)}else i==="graph"||i==="sankey"?qI(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&te(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),lS(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(XI,function(r){var i=t[r];i&&(R(i)||(i=[i]),b(i,function(n){lS(n)}))})}var pS=ja(ZI);function ZI(t){var e=V();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),KI(r)}})}function KI(t){b(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),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=i_(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Nf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Wt?{}:[]),this.sourceFormat=e.sourceFormat||av,this.seriesLayoutBy=e.seriesLayoutBy||Xt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&Of(this,i)===Ct.Must&&(n.type="ordinal")}}return t})();function Co(t){return t instanceof Nf}function Js(t,e,r){r=r||dd(t);var i=e.seriesLayoutBy,n=jI(t,r,i,e.sourceHeader,e.dimensions),a=new Nf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:$(e)});return a}function wo(t){return new Nf({data:t,sourceFormat:ke(t)?Yt:$e})}function dS(t){return new Nf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:$(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function dd(t){var e=av;if(ke(t))e=Yt;else if(R(t)){t.length===0&&(e=qe);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(R(n)||ke(n)){e=qe;break}else if(F(n)){e=bt;break}}}}else if(F(t)){for(var a in t)if(Ee(t,a)&&Fe(t[a])){e=Wt;break}}return e}function jI(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:hS(n),startIndex:o,dimensionsDetectedCount:a};if(e===qe){var s=t;i==="auto"||i==null?vS(function(u){u!=null&&u!=="-"&&(B(u)?o==null&&(o=1):o=0)},r,s,10):o=se(i)?i:i?1:0,!n&&o===1&&(n=[],vS(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===Yr?s.length:s[0]?s[0].length:null}else if(e===bt)n||(n=QI(t));else if(e===Wt)n||(n=[],b(t,function(u,f){n.push(f)}));else if(e===$e){var l=si(t[0]);a=R(l)&&l.length||1}return{startIndex:o,dimensionsDefine:hS(n),dimensionsDetectedCount:a}}function QI(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ue(r)}function hS(t){if(t){var e=V();return U(t,function(r,i){r=F(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function vS(t,e,r,i){if(e===Yr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function kf(t){var e=t.sourceFormat;return e===bt||e===Wt}var sa,la,ua,fa,mS,gS,Uf=(function(){function t(e,r){var i=Co(e)?e:wo(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Yt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;gS(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;gS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=mS[xd(u,f)];if(P(o,h),u===Yt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=gd(u,f);o.getItem=ce(v,null,s,c,p);var d=yd(u,f);o.count=ce(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};mS=(e={},e[qe+"_"+Xt]={pure:!0,appendData:a},e[qe+"_"+Yr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[bt]={pure:!0,appendData:a},e[Wt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[$e]={appendData:a},e[Yt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Bf=function(t){R(t)||Mh("series.data or dataset.source must be an array.")},BH=(sa={},sa[qe+"_"+Xt]=Bf,sa[qe+"_"+Yr]=Bf,sa[bt]=Bf,sa[Wt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Mh("dimension name must not be null/undefined.")}},sa[$e]=Bf,sa),yS=function(t,e,r,i){return t[i]},$I=(la={},la[qe+"_"+Xt]=function(t,e,r,i){return t[i+e]},la[qe+"_"+Yr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},la[bt]=yS,la[Wt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},la[$e]=yS,la);function gd(t,e){var r=$I[xd(t,e)];return r}var _S=function(t,e,r){return t.length},JI=(ua={},ua[qe+"_"+Xt]=function(t,e,r){return Math.max(0,t.length-e)},ua[qe+"_"+Yr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},ua[bt]=_S,ua[Wt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},ua[$e]=_S,ua);function yd(t,e){var r=JI[xd(t,e)];return r}var md=function(t,e,r){return t[e]},eO=(fa={},fa[qe]=md,fa[bt]=function(t,e,r){return t[r]},fa[Wt]=md,fa[$e]=function(t,e,r){var i=si(t);return i instanceof Array?i[e]:i},fa[Yt]=md,fa);function _d(t){var e=eO[t];return e}function xd(t,e){return t===qe?t+"_"+e:t}function vi(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return _d(a)(i,o,s)}else{var l=i;return a===$e&&(l=si(i)),l}}}}var tO=/\{@(.+?)\}/g,xS=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,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:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&R(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(G(a))return l.status=r,l.dimensionIndex=n,a(l);if(B(a)){var f=_o(a,l);return f.replace(tO,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=vi(s,e,v);if(o&&R(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return vi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Sd(t){var e,r;return F(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function qi(t){return new rO(t)}var rO=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(R(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,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()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){SS.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:SS.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),R(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var SS=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Eo(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!se(t)&&t!=null&&t!=="-"&&(t=+St(t)),t==null||t===""?NaN:Number(t))}var ZH=V({number:function(t){return parseFloat(t)},time:function(t){return+St(t)},trim:function(t){return B(t)?tt(t):t}});var iO={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},KH=(function(){function t(e,r){if(!se(r)){var i="";rt(i)}this._opFn=iO[e],this._rvalFloat=lr(r)}return t.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(lr(e),this._rvalFloat)},t})(),TS=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=se(e)?e:lr(e),n=se(r)?r:lr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=B(e),l=B(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var jH=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=lr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=lr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function zf(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Ff(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var nO=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Eo(e,r)},t})();function aO(t,e){var r=new nO,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Xt&&rt(o);var s=[],l={},u=t.dimensionsDefine;if(u)b(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Ee(l,g)&&rt(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=gd(n,Xt);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=ce(oO,null,t)),r.cloneRawData=ce(sO,null,t);var p=yd(n,Xt);r.count=ce(p,null,i,a,s);var h=_d(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return r.getDimensionInfo=ce(lO,null,s,l),r.cloneAllDimensionInfo=ce(uO,null,s),r}function oO(t){var e=t.sourceFormat;if(!Td(e)){var r="";rt(r)}return t.data}function sO(t){var e=t.sourceFormat,r=t.data;if(!Td(e)){var i="";rt(i)}if(e===qe){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===bt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(P({},r[a]));return n}}function lO(t,e,r){if(r!=null){if(se(r)||!isNaN(r)&&!Ee(e,r))return t[r];if(Ee(e,r))return e[r]}}function uO(t){return $(t)}var bS=V();function CS(t){t=$(t);var e=t.type,r="";e||rt(r);var i=e.split(":");i.length!==2&&rt(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,bS.set(e,t)}function wS(t,e,r){var i=Ne(t),n=i.length,a="";n||rt(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=fO(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function fO(t,e,r,i){var n="";e.length||rt(n),F(t)||rt(n);var a=t.type,o=bS.get(a);o||rt(n);var s=U(e,function(f){return aO(f,o)}),l=Ne(o.transform({upstream:s[0],upstreamList:s,config:$(t.config)}));if(0&&t.print)var u;return U(l,function(f,c){var p="";F(f)||rt(p),f.data||rt(p);var h=dd(f.data);Td(h)||rt(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:Xt,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Xt,sourceHeader:0,dimensions:f.dimensions};return Js(f.data,v,null)})}function Td(t){return t===qe||t===bt}var cO=typeof Uint32Array===Fi?Array:Uint32Array,pO=typeof Uint16Array===Fi?Array:Uint16Array,Cd=typeof Int32Array===Fi?Array:Int32Array,ES=typeof Float64Array===Fi?Array:Float64Array,AS={float:ES,int:Cd,ordinal:Array,number:Array,time:ES},bd;function Do(t){return t>65535?cO:pO}function hO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function DS(t,e,r,i,n){var a=AS[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var vO=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=bd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=kf(n);this._dimensions=U(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new AS[r||"float"](this._rawCount),this._rawExtent[a]=ut(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=ut());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];DS(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=bd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ut()),DS(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Pi(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Do(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Do(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=ue(e),a=n.length;if(!a)return this;var o=r.count(),s=Do(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],T=_[g];(y>=c&&y<=p||isNaN(y))&&(T>=x&&T<=S||isNaN(T))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var C=r.getRawIndex(g),y=h[n[0]][C];(y>=c&&y<=p||isNaN(y))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var w=!0,C=r.getRawIndex(g),D=0;D<a;D++){var E=n[D],y=h[E][C];(y<e[E][0]||y>e[E][1])&&(w=!1)}w&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=ut();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Do(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var T=v,C=Math.min(v+l,o),w=v-1,D=a[u];f=-1,p=T;for(var E=-1,A=0,_=T;_<C;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){A++,E<0&&(E=x);continue}c=Math.abs((w-g)*(S-D)-(w-_)*(y-D)),c>f&&(f=c,p=x)}A>0&&A<C-T&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Do(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=ut(),p=new(Do(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=ut();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=zf(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!r||Ff(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&pt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?hO(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=$(this._extent),e._rawExtent=$(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Eo(r[a],this._dimensions[a])}bd={arrayRows:e,objectRows:function(r,i,n,a){return Eo(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Eo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),el=vO;var IS=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Vf(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ke(s)?Yt:$e,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Y(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=Y(c.sourceHeader,p.sourceHeader),d=Y(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[Js(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Js(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&MS(a)}var o,s=[],l=[];return b(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&MS(c),s.push(f),l.push(u._getVersionSign())}),i?o=wS(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[dS(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Vf(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new el,s.initData(new Uf(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vf(e)){var r=cd(e);return r?[r.getSourceManager()]:[]}else return U(jx(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Vf(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Vf(t){return t.mainType==="series"}function MS(t){throw new Error(t)}var dO="line-height:1";function OS(t){var e=t.lineHeight;return e==null?dO:"line-height:"+je(e+"")+"px"}function LS(t,e){var r=t.color||K.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||K.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+je(i+"")+"px;color:"+je(r)+";font-weight:"+je(n+""),valueStyle:"font-size:"+je(o+"")+"px;color:"+je(a)+";font-weight:"+je(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var mO=[0,10,20,30],gO=["",`
1
+ (()=>{var zE=Object.defineProperty;var Ht=(t,e)=>{for(var r in e)zE(t,r,{get:e[r],enumerable:!0})};var $m={};Ht($m,{Axis:()=>np,ChartView:()=>pt,ComponentModel:()=>ye,ComponentView:()=>Xe,List:()=>on,Model:()=>be,PRIORITY:()=>um,SeriesModel:()=>Dt,color:()=>gu,connect:()=>TP,dataTool:()=>IP,dependencies:()=>aP,disConnect:()=>CP,disconnect:()=>TT,dispose:()=>wP,env:()=>J,extendChartView:()=>nR,extendComponentModel:()=>tR,extendComponentView:()=>rR,extendSeriesModel:()=>iR,format:()=>qm,getCoordinateSystemDimensions:()=>AP,getInstanceByDom:()=>pm,getInstanceById:()=>EP,getMap:()=>LP,graphic:()=>Xm,helper:()=>zm,init:()=>bP,innerDrawElementOnCanvas:()=>Ro,matrix:()=>oi,number:()=>Ym,parseGeoJSON:()=>rp,parseGeoJson:()=>rp,registerAction:()=>nn,registerCoordinateSystem:()=>mm,registerCustomSeries:()=>DP,registerLayout:()=>gm,registerLoading:()=>Lc,registerLocale:()=>wf,registerMap:()=>_m,registerPostInit:()=>vm,registerPostUpdate:()=>dm,registerPreprocessor:()=>Dc,registerProcessor:()=>Mc,registerTheme:()=>hm,registerTransform:()=>xm,registerUpdateLifecycle:()=>Sl,registerVisual:()=>wi,setCanvasCreator:()=>MP,setPlatformAPI:()=>jl,throttle:()=>_a,time:()=>Wm,use:()=>Ot,util:()=>Km,vector:()=>Gt,version:()=>nP,zrUtil:()=>se,zrender:()=>Iu});var Bp=function(t,e){return Bp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Bp(t,e)};function O(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Iu={};Ht(Iu,{dispose:()=>bD,disposeAll:()=>TD,getElementSSRData:()=>wD,getInstance:()=>CD,init:()=>Lu,registerPainter:()=>Vh,registerSSRDataGetter:()=>Hh,version:()=>ED});var UE=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),FE=(function(){function t(){this.browser=new UE,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 t})(),Ii=new FE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ii.wxa=!0,Ii.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ii.worker=!0:!Ii.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ii.node=!0,Ii.svgSupported=!0):VE(navigator.userAgent,Ii);function VE(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var J=Ii;var se={};Ht(se,{EPSILON:()=>nA,HashMap:()=>hy,RADIAN_TO_DEGREE:()=>Xp,assert:()=>He,assignProps:()=>Hp,bind:()=>pe,clone:()=>j,concatArray:()=>Wp,createCanvas:()=>JE,createHashMap:()=>V,createObject:()=>ni,curry:()=>me,defaults:()=>ie,disableUserSelect:()=>os,each:()=>T,eqNaN:()=>ri,extend:()=>N,filter:()=>we,find:()=>Gp,guid:()=>is,hasOwn:()=>Ee,indexOf:()=>re,inherits:()=>ns,isArray:()=>P,isArrayLike:()=>Ve,isBuiltInObject:()=>Up,isDom:()=>gn,isFunction:()=>Y,isGradientObject:()=>ti,isImagePatternObject:()=>Yp,isNumber:()=>oe,isObject:()=>F,isPrimitive:()=>Ra,isRegExp:()=>tA,isString:()=>z,isStringSafe:()=>Ba,isTypedArray:()=>ze,keys:()=>fe,logError:()=>yn,map:()=>k,merge:()=>le,mergeAll:()=>$E,mixin:()=>qe,noop:()=>Oe,normalizeCssArray:()=>_n,reduce:()=>ht,retrieve:()=>ii,retrieve2:()=>H,retrieve3:()=>nr,setAsPrimitive:()=>xn,slice:()=>as,trim:()=>rt});var Zl=12,HE="sans-serif",ir=Zl+"px "+HE,GE=20,YE=100,WE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function XE(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-GE)/YE;e[i]=n}return e}var qE=XE(WE),Ie={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Ie.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||ir),t.measureText(r);r=r||"",i=i||ir;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Zl,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=qE[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function jl(t){for(var e in Ie)Ie.hasOwnProperty(e)&&t[e]&&(Ie[e]=t[e])}var uy=ht(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),fy=ht(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ka=Object.prototype.toString,$l=Array.prototype,KE=$l.forEach,ZE=$l.filter,Fp=$l.slice,jE=$l.map,ly=function(){}.constructor,Ql=ly?ly.prototype:null,Vp="__proto__",zp=2311,QE=Math.pow(2,53)-1;function is(){return zp>=QE&&(zp=0),zp++}function yn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function j(t){if(t==null||typeof t!="object")return t;var e=t,r=ka.call(t);if(r==="[object Array]"){if(!Ra(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=j(t[i])}}else if(fy[r]){if(!Ra(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!uy[r]&&!Ra(t)&&!gn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Vp&&(e[o]=j(t[o]))}return e}function le(t,e,r){if(!F(e)||!F(t))return r?j(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Vp){var n=t[i],a=e[i];F(a)&&F(n)&&!P(a)&&!P(n)&&!gn(a)&&!gn(n)&&!Up(a)&&!Up(n)&&!Ra(a)&&!Ra(n)?le(n,a,r):(r||!(i in t))&&(t[i]=j(e[i]))}return t}function $E(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=le(r,t[i],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Vp&&(t[r]=e[r]);return t}function Hp(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ie(t,e,r){for(var i=fe(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var JE=Ie.createCanvas;function re(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function ns(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function qe(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ie(t,e,r)}function Ve(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function T(t,e,r){if(t&&e)if(t.forEach&&t.forEach===KE)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function k(t,e,r){if(!t)return[];if(!e)return as(t);if(t.map&&t.map===jE)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function ht(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function we(t,e,r){if(!t)return[];if(!e)return as(t);if(t.filter&&t.filter===ZE)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Gp(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function fe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function eA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Fp.call(arguments)))}}var pe=Ql&&Y(Ql.bind)?Ql.call.bind(Ql.bind):eA;function me(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Fp.call(arguments)))}}function P(t){return Array.isArray?Array.isArray(t):ka.call(t)==="[object Array]"}function Y(t){return typeof t=="function"}function z(t){return typeof t=="string"}function Ba(t){return ka.call(t)==="[object String]"}function oe(t){return typeof t=="number"}function F(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Up(t){return!!uy[ka.call(t)]}function ze(t){return!!fy[ka.call(t)]}function gn(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ti(t){return t.colorStops!=null}function Yp(t){return t.image!=null}function tA(t){return ka.call(t)==="[object RegExp]"}function ri(t){return t!==t}function ii(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function H(t,e){return t??e}function nr(t,e,r){return t??e??r}function as(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Fp.apply(t,e)}function _n(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function He(t,e){if(!t)throw new Error(e)}function rt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cy="__ec_primitive__";function xn(t){t[cy]=!0}function Ra(t){return t[cy]}var rA=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return fe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),py=typeof Map=="function";function iA(){return py?new Map:new rA}var hy=(function(){function t(e){var r=P(e);this.data=iA();var i=this;e instanceof t?e.each(n):e&&T(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return py?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function V(t){return new hy(t)}function Wp(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function ni(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function os(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ee(t,e){return t.hasOwnProperty(e)}function Oe(){}var Xp=180/Math.PI,nA=Number.EPSILON||Math.pow(2,-52);var Gt={};Ht(Gt,{add:()=>Jl,applyTransform:()=>Ge,clone:()=>qp,copy:()=>aA,create:()=>ai,dist:()=>jp,distSquare:()=>Oi,distance:()=>fs,distanceSquare:()=>vy,div:()=>fA,dot:()=>cA,len:()=>Kp,lenSquare:()=>Zp,length:()=>sA,lengthSquare:()=>lA,lerp:()=>hA,max:()=>or,min:()=>ar,mul:()=>uA,negate:()=>pA,normalize:()=>Sn,scale:()=>us,scaleAndAdd:()=>oA,set:()=>ss,sub:()=>ls});function ai(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function aA(t,e){return t[0]=e[0],t[1]=e[1],t}function qp(t){return[t[0],t[1]]}function ss(t,e,r){return t[0]=e,t[1]=r,t}function Jl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function oA(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function ls(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Kp(t){return Math.sqrt(Zp(t))}var sA=Kp;function Zp(t){return t[0]*t[0]+t[1]*t[1]}var lA=Zp;function uA(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function fA(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function cA(t,e){return t[0]*e[0]+t[1]*e[1]}function us(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Sn(t,e){var r=Kp(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function fs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var jp=fs;function vy(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Oi=vy;function pA(t,e){return t[0]=-e[0],t[1]=-e[1],t}function hA(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Ge(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function ar(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function or(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var za=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),vA=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new za(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new za(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new za(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new za(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new za(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new za(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),dy=vA;var dA=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),lt=dA;var mA=Math.log(2);function Qp(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/mA);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Qp(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function $p(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Qp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Qp(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var eu="___zrEVENTSAVED",Jp=[];function my(t,e,r,i,n){return tu(Jp,e,i,n,!0)&&tu(t,r,Jp[0],Jp[1])}function gy(t,e){t&&r(t),e&&r(e);function r(i){var n=i[eu];n&&(n.clearMarkers&&n.clearMarkers(),delete i[eu])}}function tu(t,e,r,i,n){if(e.getBoundingClientRect&&J.domSupported&&!eh(e)){var a=e[eu]||(e[eu]={}),o=gA(e,a),s=yA(o,a,n);if(s)return s(t,r,i),!0}return!1}function gA(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function yA(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?$p(s,o):$p(o,s))}function eh(t){return t.nodeName.toUpperCase()==="CANVAS"}var _A=/([&<>"'])/g,xA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Je(t){return t==null?"":(t+"").replace(_A,function(e,r){return xA[r]})}var SA=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,th=[],bA=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function ru(t,e,r,i){return r=r||{},i?yy(t,e,r):bA&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):yy(t,e,r),r}function yy(t,e,r){if(J.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(eh(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(tu(th,t,i,n)){r.zrX=th[0],r.zrY=th[1];return}}r.zrX=r.zrY=0}function iu(t){return t||window.event}function Pt(t,e,r){if(e=iu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&ru(t,o,e,r)}else{ru(t,e,e,r);var a=TA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&SA.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function TA(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function _y(t,e,r,i){t.addEventListener(e,r,i)}function xy(t,e,r,i){t.removeEventListener(e,r,i)}var nu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var by=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=ru(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in ih)if(ih.hasOwnProperty(r)){var i=ih[r](this._track,e);if(i)return i}},t})();function Sy(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function CA(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ih={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Sy(i)/Sy(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=CA(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var oi={};Ht(oi,{clone:()=>wA,copy:()=>bn,create:()=>ut,identity:()=>sr,invert:()=>Yt,mul:()=>br,rotate:()=>Tn,scale:()=>nh,translate:()=>Ua});function ut(){return[1,0,0,1,0,0]}function sr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function bn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function br(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Ua(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Tn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function nh(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Yt(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function wA(t){var e=ut();return bn(e,t),e}var EA=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),Te=EA;var Dn=Math.min,Fa=Math.max,sh=Math.abs,Ty=["x","y"],AA=["width","height"],Cn=new Te,wn=new Te,En=new Te,An=new Te,Wt=uh(),cs=Wt.minTv,lh=Wt.maxTv,ps=[0,0],si=(function(){function t(e,r,i,n){ah(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Dn(e.x,this.x),i=Dn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fa(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return DA(ut(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&Te.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=ah(MA,e.x,e.y,e.width,e.height)),r instanceof t||(r=ah(LA,r.x,r.y,r.width,r.height));var s=!!i;Wt.reset(n,s);var l=Wt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(ps[0]=1/0,ps[1]=0,wy(u,f,h,v,0,s,a,o),wy(c,p,d,m,1,s,a,o),s&&Te.copy(i,g?Wt.useDir?Wt.dirMinTv:cs:lh)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Cy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Cy(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Cn.x=En.x=r.x,Cn.y=An.y=r.y,wn.x=An.x=r.x+r.width,wn.y=En.y=r.y+r.height,Cn.transform(i),An.transform(i),wn.transform(i),En.transform(i),e.x=Dn(Cn.x,wn.x,En.x,An.x),e.y=Dn(Cn.y,wn.y,En.y,An.y);var l=Fa(Cn.x,wn.x,En.x,An.x),u=Fa(Cn.y,wn.y,En.y,An.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=sr(e||[]),Ua(e,e,ss(oh,-r.x,-r.y)),nh(e,e,ss(oh,n,a)),Ua(e,e,ss(oh,i.x,i.y)),e},t})(),sB=si.create,ah=si.set,Cy=si.copy,DA=si.calculateTransform,lB=si.applyTransform,uB=si.contain,MA=new si(0,0,0,0),LA=new si(0,0,0,0),oh=[];function wy(t,e,r,i,n,a,o,s){var l=sh(e-r),u=sh(i-t),f=Dn(l,u),c=Ty[n],p=Ty[1-n],h=AA[n];e<r||i<t?l<u?(a&&(lh[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(lh[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Fa(t,r),o[h]=Dn(e,i)-o[c]),a&&(f<ps[0]||Wt.useDir)&&(ps[0]=Dn(f,ps[0]),(l<u||!Wt.bidirectional)&&(cs[c]=l,cs[p]=0,Wt.useDir&&Wt.calcDirMTV()),(l>=u||!Wt.bidirectional)&&(cs[c]=-u,cs[p]=0,Wt.useDir&&Wt.calcDirMTV())))}function uh(){var t=0,e=new Te,r=new Te,i={minTv:new Te,maxTv:new Te,useDir:!1,dirMinTv:new Te,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Fa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return sh(a)<1e-10}return i}var Q=si;var Ay="silent";function IA(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:OA}}function OA(){nu(this.event)}var PA=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(lt),hs=(function(){function t(e,r){this.x=e,this.y=r}return t})(),NA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fh=new Q(0,0,0,0),Dy=(function(t){O(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new hs(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new PA,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new dy(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(NA,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=My(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new hs(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new hs(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=IA(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.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)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new hs(r,i);if(Ey(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Q(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(fh.copy(p.getBoundingRect()),p.transform&&fh.applyTransform(p.transform),fh.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(Ey(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new by);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new hs;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(lt);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Dy.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=My(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||jp(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function RA(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Ay:!0}return!1}function Ey(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=RA(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==Ay)){e.target=o;break}}}function My(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var Ly=Dy;var Py=32,vs=7;function kA(t){for(var e=0;t>=Py;)e|=t&1,t>>=1;return t+e}function Iy(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;BA(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function BA(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function Oy(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function ch(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function ph(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function zA(t,e){var r=vs,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=ph(t[m],t,v,d,0,e);v+=y,d-=y,d!==0&&(g=ch(t[v+d-1],t,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,C,w;;){b=0,C=0,w=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],C++,b=0,--m===0){w=!0;break}}else if(t[x++]=o[y++],b++,C=0,--v===1){w=!0;break}while((b|C)<S);if(w)break;do{if(b=ph(t[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){w=!0;break}}if(t[x++]=t[_++],--m===0){w=!0;break}if(C=ch(o[y],t,_,m,0,e),C!==0){for(g=0;g<C;g++)t[x+g]=t[_+g];if(x+=C,_+=C,m-=C,m===0){w=!0;break}}if(t[x++]=o[y++],--v===1){w=!0;break}S--}while(b>=vs||C>=vs);if(w)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(t[x--]=t[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var C=r;;){var w=0,E=0,A=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],w++,E=0,--v===0){A=!0;break}}else if(t[x--]=o[_--],E++,w=0,--m===1){A=!0;break}while((w|E)<C);if(A)break;do{if(w=v-ph(o[_],t,h,v,v-1,e),w!==0){for(x-=w,y-=w,v-=w,b=x+1,S=y+1,g=w-1;g>=0;g--)t[b+g]=t[S+g];if(v===0){A=!0;break}}if(t[x--]=o[_--],--m===1){A=!0;break}if(E=m-ch(t[y],o,0,m,m-1,e),E!==0){for(x-=E,_-=E,m-=E,b=x+1,S=_+1,g=0;g<E;g++)t[b+g]=o[S+g];if(m<=1){A=!0;break}}if(t[x--]=t[y--],--v===0){A=!0;break}C--}while(w>=vs||E>=vs);if(A)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Mn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<Py){a=Iy(t,r,i,e),Oy(t,r,i,r+a,e);return}var o=zA(t,e),s=kA(n);do{if(a=Iy(t,r,i,e),a<s){var l=n;l>s&&(l=s),Oy(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Ye=1,Ln=2,Pi=4;var Ny=!1;function hh(){Ny||(Ny=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ry(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var UA=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ry}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Mn(i,Ry)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Ye),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(hh(),v.z=0),isNaN(v.z2)&&(hh(),v.z2=0),isNaN(v.zlevel)&&(hh(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=re(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),ky=UA;var By;By=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ds=By;var au={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-au.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?au.bounceIn(t*2)*.5:au.bounceOut(t*2-1)*.5+.5}},ou=au;var su=Math.pow,Ri=Math.sqrt,uu=1e-8,Uy=1e-4,zy=Ri(3),lu=1/3,kr=ai(),lr=ai(),Va=ai();function Ni(t){return t>-uu&&t<uu}function Fy(t){return t>uu||t<-uu}function Pe(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function vh(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function In(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Ni(f)&&Ni(c))if(Ni(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Ni(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=Ri(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-su(-_,lu):_=su(_,lu),x<0?x=-su(-x,lu):x=su(x,lu);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Ri(f*f*f)),b=Math.acos(S)/3,C=Ri(f),w=Math.cos(b),v=(-s-2*C*w)/(3*o),g=(-s+C*(w+zy*Math.sin(b)))/(3*o),E=(-s+C*(w-zy*Math.sin(b)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),E>=0&&E<=1&&(a[h++]=E)}}return h}function fu(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Ni(o)){if(Fy(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Ni(f))n[0]=-a/(2*o);else if(f>0){var c=Ri(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ha(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function Vy(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;kr[0]=l,kr[1]=u;for(var y=0;y<1;y+=.05)lr[0]=Pe(t,r,n,o,y),lr[1]=Pe(e,i,a,s,y),m=Oi(kr,lr),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<Uy);_++)v=c-p,d=c+p,lr[0]=Pe(t,r,n,o,v),lr[1]=Pe(e,i,a,s,v),m=Oi(lr,kr),v>=0&&m<h?(c=v,h=m):(Va[0]=Pe(t,r,n,o,d),Va[1]=Pe(e,i,a,s,d),g=Oi(Va,kr),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Pe(t,r,n,o,c),f[1]=Pe(e,i,a,s,c)),Ri(h)}function Hy(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Pe(t,r,n,o,v),m=Pe(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function et(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function dh(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Gy(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Ni(a)){if(Fy(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Ni(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ri(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function cu(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function Ga(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Yy(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;kr[0]=o,kr[1]=s;for(var p=0;p<1;p+=.05){lr[0]=et(t,r,n,p),lr[1]=et(e,i,a,p);var h=Oi(kr,lr);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<Uy);v++){var d=u-f,m=u+f;lr[0]=et(t,r,n,d),lr[1]=et(e,i,a,d);var h=Oi(lr,kr);if(d>=0&&h<c)u=d,c=h;else{Va[0]=et(t,r,n,m),Va[1]=et(e,i,a,m);var g=Oi(Va,kr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=et(t,r,n,u),l[1]=et(e,i,a,u)),Ri(c)}function Wy(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=et(t,r,n,p),v=et(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var FA=/cubic-bezier\(([0-9,\.e ]+)\)/;function pu(t){var e=t&&FA.exec(t);if(e){var r=e[1].split(","),i=+rt(r[0]),n=+rt(r[1]),a=+rt(r[2]),o=+rt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:In(0,i,a,1,l,s)&&Pe(0,n,o,1,s[0])}}}var VA=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Oe,this.ondestroy=e.ondestroy||Oe,this.onrestart=e.onrestart||Oe,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Y(e)?e:ou[e]||pu(e)},t})(),Xy=VA;var gu={};Ht(gu,{fastLerp:()=>Qy,fastMapToColor:()=>qA,lerp:()=>du,lift:()=>xh,liftColor:()=>mu,lum:()=>On,mapToColor:()=>KA,modifyAlpha:()=>ZA,modifyHSL:()=>Wa,parse:()=>vt,parseCssFloat:()=>Bi,parseCssInt:()=>vu,random:()=>jA,stringify:()=>zr,toHex:()=>XA});var qy=(function(){function t(e){this.value=e}return t})();var HA=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new qy(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var GA=(function(){function t(e){this._list=new HA,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new qy(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Br=GA;var Ky={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Tr(t){return t=Math.round(t),t<0?0:t>255?255:t}function YA(t){return t=Math.round(t),t<0?0:t>360?360:t}function ms(t){return t<0?0:t>1?1:t}function vu(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Tr(parseFloat(e)/100*255):Tr(parseInt(e,10))}function Bi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ms(parseFloat(e)/100):ms(parseFloat(e))}function gh(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function ki(t,e,r){return t+(e-t)*r}function ur(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function yh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var jy=new Br(20),hu=null;function Ya(t,e){hu&&yh(hu,e),hu=jy.put(t,hu||e.slice())}function vt(t,e){if(t){e=e||[];var r=jy.get(t);if(r)return yh(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in Ky)return yh(e,Ky[i]),Ya(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ur(e,0,0,0,1);return}return ur(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ya(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(e,0,0,0,1);return}return ur(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ya(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){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?ur(e,+u[0],+u[1],+u[2],1):ur(e,0,0,0,1);f=Bi(u.pop());case"rgb":if(u.length>=3)return ur(e,vu(u[0]),vu(u[1]),vu(u[2]),u.length===3?f:Bi(u[3])),Ya(t,e),e;ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){ur(e,0,0,0,1);return}return u[3]=Bi(u[3]),_h(u,e),Ya(t,e),e;case"hsl":if(u.length!==3){ur(e,0,0,0,1);return}return _h(u,e),Ya(t,e),e;default:return}}ur(e,0,0,0,1)}}function _h(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Bi(t[1]),n=Bi(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],ur(e,Tr(gh(o,a,r+1/3)*255),Tr(gh(o,a,r)*255),Tr(gh(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function WA(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function xh(t,e){var r=vt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return zr(r,r.length===4?"rgba":"rgb")}}function XA(t){var e=vt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Qy(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=Tr(ki(o[0],s[0],l)),r[1]=Tr(ki(o[1],s[1],l)),r[2]=Tr(ki(o[2],s[2],l)),r[3]=ms(ki(o[3],s[3],l)),r}}var qA=Qy;function du(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=vt(e[n]),s=vt(e[a]),l=i-n,u=zr([Tr(ki(o[0],s[0],l)),Tr(ki(o[1],s[1],l)),Tr(ki(o[2],s[2],l)),ms(ki(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var KA=du;function Wa(t,e,r,i){var n=vt(t);if(t)return n=WA(n),e!=null&&(n[0]=YA(Y(e)?e(n[0]):e)),r!=null&&(n[1]=Bi(Y(r)?r(n[1]):r)),i!=null&&(n[2]=Bi(Y(i)?i(n[2]):i)),zr(_h(n),"rgba")}function ZA(t,e){var r=vt(t);if(r&&e!=null)return r[3]=ms(e),zr(r,"rgba")}function zr(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function On(t,e){var r=vt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function jA(){return zr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Zy=new Br(100);function mu(t){if(z(t)){var e=Zy.get(t);return e||(e=xh(t,-.1),Zy.put(t,e)),e}else if(ti(t)){var r=N({},t);return r.colorStops=k(t.colorStops,function(i){return{offset:i.offset,color:xh(i.color,-.1)}}),r}return t}function $y(t){return t.type==="linear"}function Jy(t){return t.type==="radial"}var kB=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var bh=Array.prototype.slice;function li(t,e,r){return(e-t)*r+t}function Sh(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=li(e[a],r[a],i);return t}function QA(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=li(e[o][s],r[o][s],i)}return t}function yu(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function e_(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function $A(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function JA(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:bh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function _s(t){if(Ve(t)){var e=t.length;if(Ve(t[0])){for(var r=[],i=0;i<e;i++)r.push(bh.call(t[i]));return r}return bh.call(t)}return t}function Su(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function eD(t){return Ve(t&&t[0])?2:1}var _u=0,bu=1,i_=2,ys=3,Th=4,Ch=5,t_=6;function r_(t){return t===Th||t===Ch}function xu(t){return t===bu||t===i_}var gs=[0,0,0,0],tD=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=t_,l=r;if(Ve(r)){var u=eD(r);s=u,(u===1&&!oe(r[0])||u===2&&!oe(r[0][0]))&&(o=!0)}else if(oe(r)&&!ri(r))s=_u;else if(z(r))if(!isNaN(+r))s=_u;else{var f=vt(r);f&&(l=f,s=ys)}else if(ti(r)){var c=N({},l);c.colorStops=k(r.colorStops,function(h){return{offset:h.offset,color:vt(h.color)}}),$y(r)?s=Th:Jy(r)&&(s=Ch),l=c}a===0?this.valType=s:(s!==this.valType||s===t_)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=Y(i)?i:ou[i]||pu(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=xu(n),u=r_(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?JA(p,h,n):u&&$A(p.colorStops,h.colorStops))}if(!s&&n!==Ch&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===_u?i[f].additiveValue=i[f].value-v:n===ys?i[f].additiveValue=yu([],i[f].value,v,-1):xu(n)&&(i[f].additiveValue=n===bu?yu([],i[f].value,v,-1):e_([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ys,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?gs:e[l];if((xu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(xu(a))a===bu?Sh(y,h[n],v[n],g):QA(y,h[n],v[n],g);else if(r_(a)){var _=h[n],x=v[n],S=a===Th;e[l]={type:S?"linear":"radial",x:li(_.x,x.x,g),y:li(_.y,x.y,g),colorStops:k(_.colorStops,function(C,w){var E=x.colorStops[w];return{offset:li(C.offset,E.offset,g),color:Su(Sh([],C.color,E.color,g))}}),global:x.global},S?(e[l].x2=li(_.x2,x.x2,g),e[l].y2=li(_.y2,x.y2,g)):e[l].r=li(_.r,x.r,g)}else if(u)Sh(y,h[n],v[n],g),i||(e[l]=Su(y));else{var b=li(h[n],v[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===_u?e[i]=e[i]+n:r===ys?(vt(e[i],gs),yu(gs,gs,n,1),e[i]=Su(gs)):r===bu?yu(e[i],e[i],n,1):r===i_&&e_(e[i],e[i],n,1)},t})(),rD=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){yn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,fe(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new tD(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===ys&&u&&(u=Su(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,_s(u),n),this._trackKeys.push(s)}l.addKeyframe(e,_s(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Xy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return k(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=_s(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||fe(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),xs=rD;function Pn(){return new Date().getTime()}var iD=(function(t){O(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Pn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(ds(i),!r._paused&&r.update())}ds(i)},e.prototype.start=function(){this._running||(this._time=Pn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Pn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Pn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new xs(r,i.loop);return this.addAnimator(n),n},e})(lt),n_=iD;var nD=300,wh=J.domSupported,Eh=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),a_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},o_=!1;function Mh(t){var e=t.pointerType;return e==="pen"||e==="touch"}function aD(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Ah(t){t&&(t.zrByTouch=!0)}function oD(t,e){return Pt(t.dom,new sD(t,e),!0)}function l_(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var sD=(function(){function t(e,r){this.stopPropagation=Oe,this.stopImmediatePropagation=Oe,this.preventDefault=Oe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Cr={mousedown:function(t){t=Pt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Pt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Pt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Pt(this.dom,t);var e=t.toElement||t.relatedTarget;l_(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){o_=!0,t=Pt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){o_||(t=Pt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Pt(this.dom,t),Ah(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Cr.mousemove.call(this,t),Cr.mousedown.call(this,t)},touchmove:function(t){t=Pt(this.dom,t),Ah(t),this.handler.processGesture(t,"change"),Cr.mousemove.call(this,t)},touchend:function(t){t=Pt(this.dom,t),Ah(t),this.handler.processGesture(t,"end"),Cr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<nD&&Cr.click.call(this,t)},pointerdown:function(t){Cr.mousedown.call(this,t)},pointermove:function(t){Mh(t)||Cr.mousemove.call(this,t)},pointerup:function(t){Cr.mouseup.call(this,t)},pointerout:function(t){Mh(t)||Cr.mouseout.call(this,t)}};T(["click","dblclick","contextmenu"],function(t){Cr[t]=function(e){e=Pt(this.dom,e),this.trigger(t,e)}});var Lh={pointermove:function(t){Mh(t)||Lh.mousemove.call(this,t)},pointerup:function(t){Lh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function lD(t,e){var r=e.domHandlers;J.pointerEventsSupported?T(Eh.pointer,function(i){Tu(e,i,function(n){r[i].call(t,n)})}):(J.touchEventsSupported&&T(Eh.touch,function(i){Tu(e,i,function(n){r[i].call(t,n),aD(e)})}),T(Eh.mouse,function(i){Tu(e,i,function(n){n=iu(n),e.touching||r[i].call(t,n)})}))}function uD(t,e){J.pointerEventsSupported?T(a_.pointer,r):J.touchEventsSupported||T(a_.mouse,r);function r(i){function n(a){a=iu(a),l_(t,a.target)||(a=oD(t,a),e.domHandlers[i].call(t,a))}Tu(e,i,n,{capture:!0})}}function Tu(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,_y(t.domTarget,e,r,i)}function Dh(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&xy(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var s_=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),fD=(function(t){O(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new s_(r,Cr),wh&&(n._globalHandlerScope=new s_(document,Lh)),lD(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Dh(this._localHandlerScope),wh&&Dh(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,wh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?uD(this,i):Dh(i)}},e})(lt),u_=fD;var f_=1;J.hasGlobalWindow&&(f_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Nn=f_,Ss=.4,bs="#333",Ts="#ccc",c_="#eee";var p_=sr,h_=5e-5;function Rn(t){return t>h_||t<-h_}var kn=[],Xa=[],Ih=ut(),Oh=Math.abs,v_=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return cD(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Rn(this.rotation)||Rn(this.x)||Rn(this.y)||Rn(this.scaleX-1)||Rn(this.scaleY-1)||Rn(this.skewX)||Rn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(p_(i),this.invTransform=null);return}i=i||ut(),r?this.getLocalTransform(i):p_(i),e&&(r?br(i,e,i):bn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||ut(),Yt(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(kn);var i=kn[0]<0?-1:1,n=kn[1]<0?-1:1,a=((kn[0]-i)*r+i)/kn[0]||0,o=((kn[1]-n)*r+n)/kn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ut(),br(Xa,e.invTransform,r),r=Xa);var i=this.originX,n=this.originY;(i||n)&&(Ih[4]=i,Ih[5]=n,br(Xa,r,Ih),Xa[4]-=i,Xa[5]-=n,r=Xa),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&Ge(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&Ge(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Oh(e[0]-1)>1e-10&&Oh(e[3]-1)>1e-10?Math.sqrt(Oh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ka(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&Tn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),cD=v_.getLocalTransform;var qa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ka(t,e){return Hp(t,e,qa)}var Za=v_;function Er(t){Cu||(Cu=new Br(100)),t=t||ir;var e=Cu.get(t);return e||(e={font:t,strWidthCache:new Br(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ie.measureText("\u56FD",t).width,asciiCharWidth:Ie.measureText("a",t).width},Cu.put(t,e)),e}var Cu;function pD(t){if(!(Ph>=d_)){t=t||ir;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Ie.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Ph=d_:n>2&&Ph++,e}}var Ph=0,d_=5;function Nh(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=pD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Ar(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=Ie.measureText(e,t.font).width,r.put(e,i)),i}function m_(t,e,r,i){var n=Ar(Er(e),t),a=Cs(e),o=zi(0,n,r),s=ui(0,a,i),l=new Q(o,s,n,a);return l}function wu(t,e,r,i){var n=((t||"")+"").split(`
2
+ `),a=n.length;if(a===1)return m_(n[0],e,r,i);for(var o=new Q(0,0,0,0),s=0;s<n.length;s++){var l=m_(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function zi(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function ui(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Cs(t){return Er(t).stWideCharWidth}function wr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Bn(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=wr(i[0],r.width),u+=wr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Rh="__zr_normal__",kh=qa.concat(["ignore"]),hD=ht(qa,function(t,e){return t[e]=!0,t},{ignore:!1}),ja={},vD=new Q(0,0,0,0),Eu=[],Au=0,Qa=1,Uh=(function(){function t(e){this.id=is(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=vD,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ja,i,p):Bn(ja,i,p),a.x=ja.x,a.y=ja.y,o=ja.align,s=ja.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=wr(h[0],p.width),d=wr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new Q(0,0,0,0);a.getLocalTransform(Eu),Yt(Eu,Eu),Q.copy(y,p),y.applyTransform(Eu)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ye,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ts:bs},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&vt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,zr(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(F(e))for(var i=e,n=fe(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Rh)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,kh)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Rh,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Rh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(re(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){yn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=y_(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,x_(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Au,this.__dirty&=~Ye),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=y_(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,x_(this,r,d),d);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Au,this.__dirty&=~Ye)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=re(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=re(n,e),o=re(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];N(r,a),a.textConfig&&(i=i||{},N(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==Qa){var s=!(r&&n);r&&r.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<kh.length;f++){var c=kh[f],p=a&&hD[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Za,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ye;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new xs(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=re(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Bh(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Bh(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Bh(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Au,e.__dirty=Ye;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{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,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();qe(Uh,lt);qe(Uh,Za);function Bh(t,e,r,i,n){r=r||{};var a=[];S_(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function zh(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function dD(t){return Ve(t[0])}function mD(t,e,r){if(Ve(e[r]))if(Ve(t[r])||(t[r]=[]),ze(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),zh(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(dD(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?zh(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else zh(a,n,o);a.length=n.length}else t[r]=e[r]}function gD(t,e){return t===e||Ve(t)&&Ve(e)&&yD(t,e)}function yD(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function S_(t,e,r,i,n,a,o,s){for(var l=fe(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!F(a),v=t.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(F(y)&&!Ve(y)&&!ti(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}S_(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var C=re(v,S);v.splice(C,1)}}}if(n.force||(d=we(d,function(D){return!gD(i[D],r[D])}),_=d.length),_>0||n.force&&!o.length){var w=void 0,E=void 0,A=void 0;if(s){E={},p&&(w={});for(var x=0;x<_;x++){var g=d[x];E[g]=r[g],p?w[g]=i[g]:r[g]=i[g]}}else if(p){A={};for(var x=0;x<_;x++){var g=d[x];A[g]=_s(r[g]),mD(r,i,g)}}var S=new xs(r,!1,!1,c?we(v,function(L){return L.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&w&&S.whenWithKeys(0,w,d),A&&S.whenWithKeys(0,A,d),S.whenWithKeys(u??500,s?E:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function y_(t,e,r,i){return!(r&&r.hoverLayer||i)||__(t)||e&&__(e)?Au:Qa}function __(t){return t.type==="text"||t.type==="tspan"}function x_(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Du=Uh;var b_=(function(t){O(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=re(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=re(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new Q(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(Q.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Du);b_.prototype.type="group";var ge=b_;var Mu={},zn={};function _D(t){delete zn[t]}function xD(t){if(!t)return!1;if(typeof t=="string")return On(t,1)<Ss;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=On(e[n].color,1);return r/=i,r<Ss}return!1}var SD=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new ky,o=i.renderer||"canvas";Mu[o]||(o=fe(Mu)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Mu[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!J.node&&!J.worker&&!l?new u_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?J.touchEventsSupported:!!f,p=44,h;c&&(h=H(i.pointerSize,p)),this.handler=new Ly(a,s,u,s.root,h),this.animation=new n_({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=xD(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=Pn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Pn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof ge&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,_D(this.id))},t})();function Lu(t,e){var r=new SD(is(),t,e);return zn[r.id]=r,r}function bD(t){t.dispose()}function TD(){for(var t in zn)zn.hasOwnProperty(t)&&zn[t].dispose();zn={}}function CD(t){return zn[t]}function Vh(t,e){Mu[t]=e}var Fh;function wD(t){if(typeof Fh=="function")return Fh(t)}function Hh(t){Fh=t}var ED="6.1.0";var T_=1e-4,Ou=20;function AD(t){return t.replace(/^\s+|\s+$/g,"")}var Ne=Math.min,ce=Math.max,De=Math.abs,Nt=Math.round,fr=Math.floor,Fi=Math.ceil,Vi=Math.pow,Ui=Math.log,ws=Math.LN10,DD=Math.PI,MD=Math.random;function Es(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Re=LD;function LD(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Pu(t,e,r)}function Pu(t,e,r){return z(t)?ID(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function ID(t){return!!AD(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Ne(ce(0,e),Ou),t=(+t).toFixed(e),r?t:+t)}function C_(t,e,r){return e==null&&(e=10),ve(t,e,r)}function Hi(t){return t.sort(function(e,r){return e-r}),t}function St(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Nt(t*e)/e===t)return r}return Gh(t)}function Gh(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ce(0,o-i)}function w_(t,e){var r=fr(Ui(t[1]-t[0])/ws),i=Nt(Ui(De(e[1]-e[0]))/ws),n=Ne(ce(-r+i,0),Ou);return isFinite(n)?n:Ou}function E_(t,e,r){var i=De(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=Ui(2*De(r||1)*De(i))/ws,a=Ui(De(e))/ws,o=ce(0,Fi(-n+a));return isFinite(o)||(o=NaN),o}function A_(t,e,r){if(!t[e])return 0;var i=OD(t,r);return i[e]||0}function OD(t,e){var r=ht(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Vi(10,e),n=k(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=k(n,function(h){return fr(h)}),s=ht(o,function(h,v){return h+v},0),l=k(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return k(o,function(h){return h/i})}function D_(t,e){var r=ce(St(t),St(e)),i=t+e;return r>Ou?i:ve(i,r)}var As=Vi(2,53)-1;function Ds(t){var e=DD*2;return(t%e+e)%e}function Un(t){return t>-T_&&t<T_}var PD=/^(?:(\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 bt(t){if(t instanceof Date)return t;if(z(t)){var e=PD.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Nt(t))}function $a(t){return Vi(10,Ja(t))}function Ja(t){if(t===0)return 0;var e=fr(Ui(t)/ws);return t/Vi(10,e)>=10&&e++,e}var Yh=2;function fi(t,e){var r=Ja(t),i=Vi(10,r),n=t/i,a;return e===Yh?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function M_(t,e){var r=(t.length-1)*e+1,i=fr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function L_(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;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 cr(t){var e=parseFloat(t);return e==t&&(e!==0||!z(t)||t.indexOf("x")<=0)?e:NaN}function Ms(t){return!isNaN(cr(t))}function Ls(){return Nt(MD()*9)}function I_(t,e){return e===0?t:I_(e,t%e)}function Wh(t,e){return t==null?e:e==null?t:t*e/I_(t,e)}function Ke(t){return t!=null&&isFinite(t)}var ND="[ECharts] ",O_={},RD=typeof console<"u"&&console.warn&&console.log;function kD(t,e,r){if(RD){if(r){if(O_[e])return;O_[e]=!0}console[t](ND+e)}}function Xh(t,e){kD("error",t,e)}function it(t){throw new Error(t)}function P_(t,e,r){return(e-t)*r+t}var N_="series\0",BD="\0_ec_\0";function ke(t){return t instanceof Array?t:t==null?[]:[t]}function Os(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var qh=["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 ci(t){return F(t)&&!P(t)&&!(t instanceof Date)?t.value:t}function R_(t){return F(t)&&!(t instanceof Array)}function k_(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();T(e,function(l,u){if(!F(l)){e[u]=null;return}});var s=zD(t,o,r);return(i||n)&&UD(s,t,o,e),i&&FD(s,e),i||n?VD(s,e,n):a&&HD(s,e),GD(s),s}function zD(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||eo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function UD(t,e,r,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=Is(n.id),s=r.get(o);if(s!=null){var l=t[s];He(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function FD(t,e){T(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!eo(r)&&!eo(a)&&B_("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function VD(t,e,r){T(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||eo(n.existing)||n.existing&&i.id!=null&&!B_("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function HD(t,e){T(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function GD(t){var e=V();T(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),T(t,function(r){var i=r.newOption;He(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),T(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(F(a)){if(o.name=a.name!=null?Is(a.name):n?n.name:N_+i,n)o.id=Is(n.id);else if(a.id!=null)o.id=Is(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function B_(t,e,r){var i=Xt(e[t],null),n=Xt(r[t],null);return i!=null&&n!=null&&i===n}function Is(t){return Xt(t,"")}function Xt(t,e){return t==null?e:z(t)?t:oe(t)||Ba(t)?t+"":e}function to(t){var e=t.name;return!!(e&&e.indexOf(N_))}function eo(t){return t&&t.id!=null&&Is(t.id).indexOf(BD)===0}function z_(t,e,r){T(t,function(i){var n=i.newOption;F(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=YD(e,n,i.existing,r))})}function YD(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function pr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return P(e.dataIndex)?k(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return P(e.name)?k(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ee(){var t="__ec_inner_"+WD++;return function(e){return e[t]||(e[t]={})}}var WD=Ls();function Ru(t,e,r){var i=Ps(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Gi(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ps(t,e){var r;if(z(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=V(),a={},o=!1;return T(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&re(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ft={useDefault:!0,enableAll:!1,enableNone:!1};function Gi(t,e,r,i){i=i||ft;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function U_(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Kh(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function F_(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function V_(t){return t==="auto"?J.domSupported?"html":"richText":t||"html"}function Zh(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(oe(i)){var o=P_(r||0,i,n);return ve(o,a?Math.max(St(r||0),St(i)):e)}else{if(z(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=P_(h,v,n);s[c]=ve(o,a?Math.max(St(h),St(v)):e)}}return s}}var Nz=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function ct(){return[1/0,-1/0]}function Ns(t,e){Dr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function jh(t,e){Dr(e)&&e<t[0]&&(t[0]=e)}function Qh(t,e){Dr(e)&&e>t[1]&&(t[1]=e)}function H_(t,e){pi(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Dr(t){return t!=null&&isFinite(t)}function pi(t,e){return Dr(t)&&Dr(e)&&t<=e}function G_(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Y_(t){pi(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function ku(){var t="__ec_once_"+XD++;return function(e,r){Ee(e,t)||(e[t]=1,r())}}var XD=Ls();function ro(t,e,r){var i=V(),n=0;T(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function W_(t){return t.value+""}function X_(t){return t+""}function q_(t,e){return H(e,!0)?t.seriesIndex+2:0}function Bu(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function io(t){return{overallReset:t}}var qD=".",Vn="___EC__COMPONENT__CONTAINER___",K_="___EC__EXTENDED_CLASS___";function Rt(t){var e={main:"",sub:""};if(t){var r=t.split(qD);e.main=r[0]||"",e.sub=r[1]||""}return e}function KD(t){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Z_(t){return!!(t&&t[K_])}function no(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return ZD(i)?n=(function(a){O(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},ns(n,this)),N(n.prototype,r),n[K_]=!0,n.extend=this.extend,n.superCall=QD,n.superApply=$D,n.superClass=i,n}}function ZD(t){return Y(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function zu(t,e){t.extend=e.extend}var jD=Math.round(Math.random()*10);function j_(t){var e=["__\0is_clz",jD++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function QD(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function $D(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Yi(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){KD(n),i.prototype.type=n;var a=Rt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Vn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[Vn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Rt(i),a=[],o=e[n.main];return o&&o[Vn]?T(o,function(s,l){l!==Vn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Rt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return T(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Rt(i),a=e[n.main];return a&&a[Vn]};function r(i){var n=e[i.main];return(!n||!n[Vn])&&(n=e[i.main]={},n[Vn]=!0),n}}function Ur(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&re(n,l)>=0||a&&re(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var JD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],eM=Ur(JD),Q_=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return eM(this,e,r)},t})();var Jh=new Br(50);function J_(t){if(typeof t=="string"){var e=Jh.get(t);return e&&e.image}else return t}function ev(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Jh.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!ao(e)&&a.pending.push(o)):(e=Ie.loadImage(t,$_,$_),e.__zrImageSrc=t,Jh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function $_(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ao(t){return t&&t.width&&t.height}var tv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function iv(t,e,r,i,n){var a={};return i0(a,t,e,r,i,n),a.text}function i0(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);a=n0(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)a0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
+ `),t.isTruncated=s}function n0(t,e,r,i){i=i||{};var n=N({},i);r=H(r,"..."),n.maxIterations=H(i.maxIterations,2);var a=n.minChar=H(i.minChar,0),o=n.fontMeasureInfo=Er(e),s=o.asciiCharWidth;n.placeholder=H(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Ar(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function a0(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Ar(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?rM(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ar(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function rM(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Nh(r,t.charCodeAt(n));return n}function o0(t,e,r,i){var n=av(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Cs(u),p=H(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?l0(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
5
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=n0(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)a0(S,g[b],x),g[b]=S.textLine,v=v||S.isTruncated;for(var C=m,w=0,E=Er(u),b=0;b<g.length;b++)w=Math.max(Ar(E,g[b]),w);d==null&&(d=w);var A=d;return C+=l,A+=s,{lines:g,height:m,outerWidth:A,outerHeight:C,lineHeight:p,calculatedLineHeight:c,contentWidth:w,contentHeight:y,width:d,isTruncated:v}}var iM=(function(){function t(){}return t})(),e0=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),nM=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function s0(t,e,r,i,n){var a=new nM,o=av(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=tv.lastIndex=0,d;(d=tv.exec(o))!=null;){var m=d.index;m>v&&rv(a,o.substring(v,m),e,h),rv(a,d[2],e,h,d[1]),v=tv.lastIndex}v<o.length&&rv(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function C(xe,_t,Sr){xe.width=_t,xe.lineHeight=Sr,y+=Sr,_=Math.max(_,_t)}e:for(var w=0;w<a.lines.length;w++){for(var E=a.lines[w],A=0,D=0,L=0;L<E.tokens.length;L++){var M=E.tokens[L],I=M.styleName&&e.rich[M.styleName]||{},R=M.textPadding=I.padding,B=R?R[1]+R[3]:0,W=M.font=I.font||e.font;M.contentHeight=Cs(W);var U=H(I.height,M.contentHeight);if(M.innerHeight=U,R&&(U+=R[0]+R[2]),M.height=U,M.lineHeight=nr(I.lineHeight,e.lineHeight,U),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var X=a.lines.length;L>0?(E.tokens=E.tokens.slice(0,L),C(E,D,A),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<X;break e}var $=I.width,Z=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")M.percentWidth=$,g.push(M),M.contentWidth=Ar(Er(W),M.text);else{if(Z){var te=I.backgroundColor,ne=te&&te.image;ne&&(ne=J_(ne),ao(ne)&&(M.width=Math.max(M.width,ne.width*U/ne.height)))}var K=x&&f!=null?f-D:null;K!=null&&K<M.width?!Z||K<B?(M.text="",M.width=M.contentWidth=0):(i0(b,M.text,K-B,W,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Ar(Er(W),M.text)):M.contentWidth=Ar(Er(W),M.text)}M.width+=B,D+=M.width,I&&(A=Math.max(A,M.lineHeight))}C(E,D,A)}a.outerWidth=a.width=H(f,_),a.outerHeight=a.height=H(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var w=0;w<g.length;w++){var M=g[w],de=M.percentWidth;M.width=parseInt(de,10)/100*a.width}return a}function rv(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=wr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=v}else{var d=l0(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
+ `));for(var m=Er(l),g=0;g<f.length;g++){var y=f[g],_=new iM;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Ar(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new e0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new e0([_]))}}function aM(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var oM=ht(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function sM(t){return aM(t)?!!oM[t]:!0}function l0(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Er(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Nh(c,h.charCodeAt(0)),d=i?!1:!sM(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function nv(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;Q.set(t0,zi(r,o,n),ui(i,s,a),o,s),Q.intersect(e,t0,null,r0);var l=r0.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=zi(l.x,l.width,n,!0),t.baseY=ui(l.y,l.height,a,!0)}}var t0=new Q(0,0,0,0),r0={outIntersectRect:{},clamp:!0};function av(t){return t!=null?t+="":t=""}function u0(t){var e=av(t.text),r=t.font,i=Ar(Er(r),e),n=Cs(r);return Uu(t,i,n,null)}function Uu(t,e,r,i){var n=new Q(zi(t.x||0,e,t.textAlign),ui(t.y||0,r,t.textBaseline),e,r),a=i??(ov(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function ov(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var uv="__zr_style_"+Math.round(Math.random()*10),Fr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Hn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fr[uv]=!0;var f0=["z","z2","invisible"],lM=["invisible"],uM=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fM(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Q(0,0,0,0)),i?Q.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Q(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ln,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ln)},e.prototype.styleUpdated=function(){this.__dirty&=~Ln},e.prototype.createStyle=function(r){return ni(Fr,r)},e.prototype.useStyle=function(r){r[uv]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[uv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,f0)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===Qa,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=fe(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=fe(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?lM:f0,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return Hn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ye|Ln})(),e})(Du),sv=new Q(0,0,0,0),lv=new Q(0,0,0,0);function fM(t,e,r){return sv.copy(t.getBoundingRect()),t.transform&&sv.applyTransform(t.transform),lv.width=e,lv.height=r,!sv.intersect(lv)}var Vr=uM;var hr=Math.min,vr=Math.max,fv=Math.sin,cv=Math.cos,Gn=Math.PI*2,Fu=ai(),Vu=ai(),Hu=ai();function pv(t,e,r,i,n,a){n[0]=hr(t,r),n[1]=hr(e,i),a[0]=vr(t,r),a[1]=vr(e,i)}var c0=[],p0=[];function h0(t,e,r,i,n,a,o,s,l,u){var f=fu,c=Pe,p=f(t,r,n,o,c0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,c0[h]);l[0]=hr(v,l[0]),u[0]=vr(v,u[0])}p=f(e,i,a,s,p0);for(var h=0;h<p;h++){var d=c(e,i,a,s,p0[h]);l[1]=hr(d,l[1]),u[1]=vr(d,u[1])}l[0]=hr(t,l[0]),u[0]=vr(t,u[0]),l[0]=hr(o,l[0]),u[0]=vr(o,u[0]),l[1]=hr(e,l[1]),u[1]=vr(e,u[1]),l[1]=hr(s,l[1]),u[1]=vr(s,u[1])}function v0(t,e,r,i,n,a,o,s){var l=cu,u=et,f=vr(hr(l(t,r,n),1),0),c=vr(hr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=hr(t,n,p),o[1]=hr(e,a,h),s[0]=vr(t,n,p),s[1]=vr(e,a,h)}function d0(t,e,r,i,n,a,o,s,l){var u=ar,f=or,c=Math.abs(n-a);if(c%Gn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Fu[0]=cv(n)*r+t,Fu[1]=fv(n)*i+e,Vu[0]=cv(a)*r+t,Vu[1]=fv(a)*i+e,u(s,Fu,Vu),f(l,Fu,Vu),n=n%Gn,n<0&&(n=n+Gn),a=a%Gn,a<0&&(a=a+Gn),n>a&&!o?a+=Gn:n<a&&o&&(n+=Gn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Hu[0]=cv(h)*r+t,Hu[1]=fv(h)*i+e,u(s,Hu,s),f(l,Hu,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Yn=[],Wn=[],Hr=[],Wi=[],Gr=[],Yr=[],hv=Math.min,vv=Math.max,Xn=Math.cos,qn=Math.sin,hi=Math.abs,gv=Math.PI,Xi=gv*2,dv=typeof Float32Array<"u",Rs=[];function mv(t){var e=Math.round(t/gv*1e8)/1e8;return e%2*gv}function cM(t,e){var r=mv(t[0]);r<0&&(r+=Xi);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Xi?n=r+Xi:e&&r-n>=Xi?n=r-Xi:!e&&r>n?n=r+(Xi-mv(r-n)):e&&r<n&&(n=r-(Xi-mv(n-r))),t[0]=r,t[1]=n}var pM=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=hi(i/Nn/e)||0,this._uy=hi(i/Nn/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ce.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=hi(e-this._xi),n=hi(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ce.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ce.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ce.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Rs[0]=n,Rs[1]=a,cM(Rs,o),n=Rs[0],a=Rs[1];var s=a-n;return this.addData(Ce.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=Xn(a)*i+e,this._yi=qn(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ce.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&dv&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(dv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,dv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Hr[0]=Hr[1]=Gr[0]=Gr[1]=Number.MAX_VALUE,Wi[0]=Wi[1]=Yr[0]=Yr[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ce.M:r=n=e[o++],i=a=e[o++],Gr[0]=n,Gr[1]=a,Yr[0]=n,Yr[1]=a;break;case Ce.L:pv(r,i,e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.C:h0(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.Q:v0(r,i,e[o++],e[o++],e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Xn(h)*c+u,a=qn(h)*p+f),d0(u,f,c,p,h,v,d,Gr,Yr),r=Xn(v)*c+u,i=qn(v)*p+f;break;case Ce.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];pv(n,a,n+m,a+g,Gr,Yr);break;case Ce.Z:r=n,i=a;break}ar(Hr,Hr,Gr),or(Wi,Wi,Yr)}return o===0&&(Hr[0]=Hr[1]=Wi[0]=Wi[1]=0),new Q(Hr[0],Hr[1],Wi[0]-Hr[0],Wi[1]-Hr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ce.M:a=s=e[p++],o=l=e[p++];break;case Ce.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(hi(y)>i||hi(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ce.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],C=e[p++];d=Hy(a,o,x,S,m,g,b,C,10),a=b,o=C;break}case Ce.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=Wy(a,o,x,S,m,g,10),a=m,o=g;break}case Ce.A:var w=e[p++],E=e[p++],A=e[p++],D=e[p++],L=e[p++],M=e[p++],I=M+L;p+=1,v&&(s=Xn(L)*A+w,l=qn(L)*D+E),d=vv(A,D)*hv(Xi,Math.abs(M)),a=Xn(I)*A+w,o=qn(I)*D+E;break;case Ce.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],B=e[p++];d=R*2+B*2;break}case Ce.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var b=0;b<o;){var C=i[b++],w=b===1;switch(w&&(u=i[b],f=i[b+1],s=u,l=f),C!==Ce.L&&_>0&&(e.lineTo(x,S),_=0),C){case Ce.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ce.L:{c=i[b++],p=i[b++];var E=hi(c-u),A=hi(p-f);if(E>n||A>a){if(h){var D=v[g++];if(m+D>y){var L=(y-m)/D;e.lineTo(u*(1-L)+c*L,f*(1-L)+p*L);break e}m+=D}e.lineTo(c,p),u=c,f=p,_=0}else{var M=E*E+A*A;M>_&&(x=c,S=p,_=M)}break}case Ce.C:{var I=i[b++],R=i[b++],B=i[b++],W=i[b++],U=i[b++],X=i[b++];if(h){var D=v[g++];if(m+D>y){var L=(y-m)/D;Ha(u,I,B,U,L,Yn),Ha(f,R,W,X,L,Wn),e.bezierCurveTo(Yn[1],Wn[1],Yn[2],Wn[2],Yn[3],Wn[3]);break e}m+=D}e.bezierCurveTo(I,R,B,W,U,X),u=U,f=X;break}case Ce.Q:{var I=i[b++],R=i[b++],B=i[b++],W=i[b++];if(h){var D=v[g++];if(m+D>y){var L=(y-m)/D;Ga(u,I,B,L,Yn),Ga(f,R,W,L,Wn),e.quadraticCurveTo(Yn[1],Wn[1],Yn[2],Wn[2]);break e}m+=D}e.quadraticCurveTo(I,R,B,W),u=B,f=W;break}case Ce.A:var $=i[b++],Z=i[b++],te=i[b++],ne=i[b++],K=i[b++],de=i[b++],xe=i[b++],_t=!i[b++],Sr=te>ne?te:ne,Le=hi(te-ne)>.001,$e=K+de,he=!1;if(h){var D=v[g++];m+D>y&&($e=K+de*(y-m)/D,he=!0),m+=D}if(Le&&e.ellipse?e.ellipse($,Z,te,ne,xe,K,$e,_t):e.arc($,Z,Sr,K,$e,_t),he)break e;w&&(s=Xn(K)*te+$,l=qn(K)*ne+Z),u=Xn($e)*te+$,f=qn($e)*ne+Z;break;case Ce.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var Se=i[b++],mn=i[b++];if(h){var D=v[g++];if(m+D>y){var xt=y-m;e.moveTo(c,p),e.lineTo(c+hv(xt,Se),p),xt-=Se,xt>0&&e.lineTo(c+Se,p+hv(xt,mn)),xt-=mn,xt>0&&e.lineTo(c+vv(Se-xt,0),p+mn),xt-=Se,xt>0&&e.lineTo(c,p+vv(mn-xt,0));break e}m+=D}e.rect(c,p,Se,mn);break;case Ce.Z:if(h){var D=v[g++];if(m+D>y){var L=(y-m)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}m+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ce,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),qt=pM;function Kn(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function m0(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=Vy(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function g0(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Yy(t,e,r,i,n,a,s,l,null);return f<=u/2}var y0=Math.PI*2;function ks(t){return t%=y0,t<0&&(t+=y0),t}var Bs=Math.PI*2;function _0(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Bs<1e-4)return!0;if(a){var c=i;i=ks(n),n=ks(c)}else i=ks(i),n=ks(n);i>n&&(n+=Bs);var p=Math.atan2(l,s);return p<0&&(p+=Bs),p>=i&&p<=n||p+Bs>=i&&p+Bs<=n}function dr(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var qi=qt.CMD,Zn=Math.PI*2,gM=1e-4;function yM(t,e){return Math.abs(t-e)<gM}var Tt=[-1,-1,-1],mr=[-1,-1];function _M(){var t=mr[0];mr[0]=mr[1],mr[1]=t}function xM(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=In(e,i,a,s,u,Tt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=Tt[d],g=m===0||m===1?.5:1,y=Pe(t,r,n,o,m);y<l||(p<0&&(p=fu(e,i,a,s,mr),mr[1]<mr[0]&&p>1&&_M(),h=Pe(e,i,a,s,mr[0]),p>1&&(v=Pe(e,i,a,s,mr[1]))),p===2?m<mr[0]?c+=h<e?g:-g:m<mr[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<mr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function SM(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=Gy(e,i,a,s,Tt);if(l===0)return 0;var u=cu(e,i,a);if(u>=0&&u<=1){for(var f=0,c=et(e,i,a,u),p=0;p<l;p++){var h=Tt[p]===0||Tt[p]===1?.5:1,v=et(t,r,n,Tt[p]);v<o||(Tt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Tt[0]===0||Tt[0]===1?.5:1,v=et(t,r,n,Tt[0]);return v<o?0:a<e?h:-h}}function bM(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Tt[0]=-l,Tt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Zn-1e-4){i=0,n=Zn;var f=a?1:-1;return o>=Tt[0]+t&&o<=Tt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Zn,n+=Zn);for(var p=0,h=0;h<2;h++){var v=Tt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=Zn+d),(d>=i&&d<=n||d+Zn>=i&&d+Zn<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function x0(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===qi.M&&v>1&&(r||(s+=dr(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case qi.M:f=a[v++],c=a[v++],l=f,u=c;break;case qi.L:if(r){if(Kn(l,u,a[v],a[v+1],e,i,n))return!0}else s+=dr(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case qi.C:if(r){if(m0(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=xM(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case qi.Q:if(r){if(g0(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=SM(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case qi.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=dr(l,u,p,h,i,n);var w=(i-g)*x/_+g;if(r){if(_0(g,y,x,S,S+b,C,e,w,n))return!0}else s+=bM(g,y,x,S,S+b,C,w,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case qi.R:f=l=a[v++],c=u=a[v++];var E=a[v++],A=a[v++];if(p=f+E,h=c+A,r){if(Kn(f,c,p,c,e,i,n)||Kn(p,c,p,h,e,i,n)||Kn(p,h,f,h,e,i,n)||Kn(f,h,f,c,e,i,n))return!0}else s+=dr(p,c,p,h,i,n),s+=dr(f,h,f,c,i,n);break;case qi.Z:if(r){if(Kn(l,u,f,c,e,i,n))return!0}else s+=dr(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!yM(u,c)&&(s+=dr(l,u,f,c,i,n)||0),s!==0}function S0(t,e,r){return x0(t,0,!1,e,r)}function b0(t,e,r,i){return x0(t,e,!0,r,i)}var _v=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fr),CM={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Hn.style)},yv=qa.concat(["invisible","culling","z","z2","zlevel","parent"]),wM=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<yv.length;++s)n[yv[s]]=this[yv[s]];n.__dirty|=Ye}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=fe(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(z(r)){var i=On(r,0);return i>.5?bs:i>.2?c_:Ts}else if(r)return Ts}return bs},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=On(r,0)<Ss;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new qt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Pi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);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 r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,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)),b0(s,l/u,r,i)))return!0}if(this.hasFill())return S0(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pi)},e.prototype.createStyle=function(r){return ni(_v,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==Qa){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=N({},n.shape),N(u,i.shape)):(u=N({},a?this.shape:n.shape),N(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=N({},this.shape);for(var f={},c=fe(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return CM},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){O(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(r.style)},o.prototype.getDefaultShape=function(){return j(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ye|Ln|Pi})(),e})(Vr),ae=wM;var EM=ie({strokeFirst:!0,font:ir,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},_v),T0=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return ov(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return ni(EM,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=u0(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Vr);T0.prototype.type="tspan";var zs=T0;var AM=ie({x:0,y:0},Fr),DM={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Hn.style)};function MM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var C0=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ni(AM,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=MM(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return DM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Q(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Vr);C0.prototype.type="image";var kt=C0;function w0(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var oo=Math.round;function Gu(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(oo(i*2)===oo(n*2)&&(t.x1=t.x2=Ki(i,s,!0)),oo(a*2)===oo(o*2)&&(t.y1=t.y2=Ki(a,s,!0))),t}}function Yu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ki(i,s,!0),t.y=Ki(n,s,!0),t.width=Math.max(Ki(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ki(n+o,s,!1)-t.y,o===0?0:1)),t}}function Ki(t,e,r){if(!e)return t;var i=oo(t*2);return(i+oo(e))%2===0?i/2:(i+(r?1:-1))/2}var OM=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var PM={},E0=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OM},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Yu(PM,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?w0(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);E0.prototype.type="rect";var _e=E0;var A0={fill:"#000"},D0=2,Wr={},NM={style:ie({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},Hn.style)},k0=(function(t){O(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=A0,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,UM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Q(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||A0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return N(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=fe(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},N(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return NM},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||ir,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";nv(Wr,a.overflowRect,o,s,l,u),o=Wr.baseX,s=Wr.baseY;var f=R0(r),c=o0(f,r,Wr.outerWidth,Wr.outerHeight),p=xv(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=ui(s,c.contentHeight,u);if(p||n){var x=zi(o,d,l),S=ui(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=g/2,n&&(y=N0(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,C=!1,w=!1,E=P0("fill"in r?r.fill:(w=!0,a.fill)),A=O0("stroke"in r?r.stroke:!h&&(!a.autoStroke||w)?(b=D0,C=!0,a.stroke):null),D=r.textShadowBlur>0,L=0;L<m.length;L++){var M=this._getOrCreateChild(zs),I=M.createStyle();M.useStyle(I),I.text=m[L],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=A,I.fill=E,A&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,L0(I,r),_+=g,M.setBoundingRect(Uu(I,c.contentWidth,c.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;nv(Wr,i.overflowRect,o,s,n,a),o=Wr.baseX,s=Wr.baseY;var l=R0(r),u=s0(l,r,Wr.outerWidth,Wr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=zi(o,c,n),d=ui(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;xv(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,C=b.length,w=S.lineHeight,E=S.width,A=0,D=m,L=y,M=C-1,I=void 0;A<C&&(I=b[A],!I.align||I.align==="left");)this._placeToken(I,r,w,g,D,"left",_),E-=I.width,D+=I.width,A++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,w,g,L,"right",_),E-=I.width,L-=I.width,M--;for(D+=(f-(D-m)-(y-L)-E)/2;A<=M;)I=b[A],this._placeToken(I,r,w,g,D+I.width/2,"center",_),D+=I.width,A++;g+=w}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&xv(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=N0(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(zs),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=P0("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=O0("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=D0,x=!0,g.stroke):null),C=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,C&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||ir,m.opacity=nr(u.opacity,i.opacity,1),L0(m,u),b&&(m.lineWidth=nr(u.lineWidth,i.lineWidth,_),m.lineDash=H(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect(Uu(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(_e),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=H(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(kt),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=H(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=nr(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return zM(r)&&(i=[r.fontStyle,r.fontWeight,BM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&rt(i)||r.textFont||r.font},e})(Vr),RM={left:!0,right:1,center:1},kM={top:1,bottom:1,middle:1},M0=["fontStyle","fontWeight","fontSize","fontFamily"];function BM(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Zl+"px":t+"px"}function L0(t,e){for(var r=0;r<M0.length;r++){var i=M0[r],n=e[i];n!=null&&(t[i]=n)}}function zM(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function UM(t){return I0(t),T(t.rich,I0),t}function I0(t){if(t){t.font=k0.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||RM[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||kM[r]?r:"top";var i=t.padding;i&&(t.padding=_n(t.padding))}}function O0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function P0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function N0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function R0(t){var e=t.text;return e!=null&&(e+=""),e}function xv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ae=k0;var ue=ee(),B0=function(t,e,r,i){if(i){var n=ue(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ue(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Zi="undefined",Wu="series",Xu=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),tt="original",Ze="arrayRows",Ct="objectRows",Kt="keyedColumns",Zt="typedArray",Sv="unknown",jt="column",Xr="row";var FM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],VM=(function(){function t(e){T(FM,function(r){this[r]=pe(e[r],e)},this)}return t})();function z0(t,e){return e.mainType===Wu?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var qu=VM;var U0=1,F0={},W0=ee(),Cv=ee(),wv=0,Us=1,Fs=2,wt=["emphasis","blur","select"],Ev=["normal","emphasis","blur","select"],HM=10,GM=9,ji="highlight",Vs="downplay",Hs="select",Zu="unselect",Gs="toggleSelect",ju="selectchanged";function so(t){return t!=null&&t!=="none"}function Qu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function X0(t){Qu(t,"emphasis",Fs)}function q0(t){t.hoverState===Fs&&Qu(t,"normal",wv)}function Av(t){Qu(t,"blur",Us)}function K0(t){t.hoverState===Us&&Qu(t,"normal",wv)}function YM(t){t.selected=!0}function WM(t){t.selected=!1}function V0(t,e,r){e(t,r)}function vi(t,e,r){V0(t,e,r),t.isGroup&&t.traverse(function(i){V0(i,e,r)})}function Dv(t,e){switch(e){case"emphasis":t.hoverState=Fs;break;case"normal":t.hoverState=wv;break;case"blur":t.hoverState=Us;break;case"select":t.selected=!0}}function XM(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function qM(t,e,r,i){var n=r&&re(r,"select")>=0,a=!1;if(t instanceof ae){var o=W0(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(so(s)||so(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=N({},i),u=N({},u),u.fill=s):!so(u.fill)&&so(s)?(a=!0,i=N({},i),u=N({},u),u.fill=mu(s)):!so(u.stroke)&&so(l)&&(a||(i=N({},i),u=N({},u)),u.stroke=mu(l)),i.style=u}}if(i&&i.z2==null){a||(i=N({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??HM)}return i}function KM(t,e,r){if(r&&r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??GM)}return r}function ZM(t,e,r){var i=re(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:XM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=N({},r),o=N({opacity:i?n:a.opacity*.1},o),r.style=o),r}function bv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return qM(this,t,e,r);if(t==="blur")return ZM(this,t,r);if(t==="select")return KM(this,t,r)}return r}function jM(t){t.stateProxy=bv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=bv),r&&(r.stateProxy=bv)}function H0(t,e){!Z0(t,e)&&!t.__highByOuter&&vi(t,X0)}function G0(t,e){!Z0(t,e)&&!t.__highByOuter&&vi(t,q0)}function di(t,e){t.__highByOuter|=1<<(e||0),vi(t,X0)}function mi(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&vi(t,q0)}function $u(t){vi(t,Av)}function Ys(t){vi(t,K0)}function Mv(t){vi(t,YM)}function Lv(t){vi(t,WM)}function Z0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Iv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=Cv(a),s=z0(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){K0(u)}),l&&r.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function Tv(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Ys(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Av(m)}),Ve(e))a(u.getData(),e);else if(F(e))for(var v=fe(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),Cv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Ku(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){Cv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Av(a)})}}}function j0(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=pr(n,e);a=(P(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ue(o);Tv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Tv(i,f,c,r)}}}function Ju(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ue(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Q0(t,e,r){var i=ue(t),n=Ju(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Ku(i.componentMainType,i.componentIndex,r),T(a,function(s){return H0(s,e)})):(Tv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Ku(i.componentMainType,i.componentIndex,r),H0(t,e))}function $0(t,e,r){Iv(r);var i=ue(t),n=Ju(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?T(n,function(a){return G0(a,e)}):G0(t,e)}function J0(t,e,r){if(ef(e)){var i=e.dataType,n=t.getData(i),a=pr(n,e);P(a)||(a=[a]),t[e.type===Gs?"toggleSelect":e.type===Hs?"select":"unselect"](a,i)}}function Ov(t){var e=t.getAllData();T(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Mv(a):Lv(a)})})}function ex(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();T(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function lo(t,e,r){tx(t,!0),vi(t,jM),$M(t,e,r)}function QM(t){tx(t,!1)}function gi(t,e,r,i){i?QM(t):lo(t,e,r)}function $M(t,e,r){var i=ue(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var Y0=["emphasis","blur","select"],JM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ws(t,e,r,i){r=r||"itemStyle";for(var n=0;n<Y0.length;n++){var a=Y0[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[JM[r]]()}}function tx(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function Xs(t){return!!(t&&t.__highDownDispatcher)}function rx(t){var e=F0[t];return e==null&&U0<=32&&(e=F0[t]=U0++),e}function ef(t){var e=t.type;return e===Hs||e===Zu||e===Gs}function Pv(t){var e=t.type;return e===ji||e===Vs}function ix(t){var e=W0(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var je={};Ht(je,{Arc:()=>Jn,BezierCurve:()=>$n,BoundingRect:()=>Q,Circle:()=>jn,CompoundPath:()=>of,Ellipse:()=>Ks,Group:()=>ge,HOVER_LAYER_FOR_INCREMENTAL:()=>na,HOVER_LAYER_FROM_THRESHOLD:()=>Xv,HOVER_LAYER_NO:()=>Wv,Image:()=>kt,IncrementalDisplayable:()=>hf,Line:()=>Et,LinearGradient:()=>co,OrientedBoundingRect:()=>pf,Path:()=>ae,Point:()=>Te,Polygon:()=>$s,Polyline:()=>Js,RadialGradient:()=>lf,Rect:()=>_e,Ring:()=>Qs,Sector:()=>Kr,Text:()=>Ae,WH:()=>ia,XY:()=>yi,applyTransform:()=>gf,calcZ2Range:()=>BL,clipPointsByRect:()=>Jv,clipRectByRect:()=>ed,createIcon:()=>oa,decomposeTransform:()=>UL,ensureCopyRect:()=>_o,ensureCopyTransform:()=>_f,expandOrShrinkRect:()=>go,extendPath:()=>Kv,extendShape:()=>qv,getCurrentCanvasPainter:()=>FL,getShapeClass:()=>Zv,getTransform:()=>Qv,groupTransition:()=>$v,initProps:()=>at,isBoundingRectAxisAligned:()=>yf,isElementRemoved:()=>ra,lineLineIntersect:()=>kx,linePolygonIntersect:()=>RL,makeImage:()=>tl,makePath:()=>mo,mergePath:()=>jv,payloadDisableAnimation:()=>zL,registerShape:()=>Qt,removeElement:()=>ho,removeElementWithFadeOut:()=>vo,resizePath:()=>mf,retrieveZInfo:()=>rl,setTooltipConfig:()=>yo,subPixelOptimize:()=>OL,subPixelOptimizeLine:()=>aa,subPixelOptimizeRect:()=>IL,transformDirection:()=>PL,traverseElements:()=>_i,traverseUpdateZ:()=>il,updateProps:()=>Be});var uo=qt.CMD,eL=[[],[],[]],nx=Math.sqrt,tL=Math.atan2;function Nv(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=uo.M,c=uo.C,p=uo.L,h=uo.R,v=uo.A,d=uo.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=nx(e[0]*e[0]+e[1]*e[1]),_=nx(e[2]*e[2]+e[3]*e[3]),x=tL(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Ge(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ge(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=eL[l];S[0]=r[o++],S[1]=r[o++],Ge(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Rv=Math.sqrt,tf=Math.sin,rf=Math.cos,qs=Math.PI;function ax(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kv(t,e){return(t[0]*e[0]+t[1]*e[1])/(ax(t)*ax(e))}function ox(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kv(t,e))}function sx(t,e,r,i,n,a,o,s,l,u,f){var c=l*(qs/180),p=rf(c)*(t-r)/2+tf(c)*(e-i)/2,h=-1*tf(c)*(t-r)/2+rf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Rv(v),s*=Rv(v));var d=(n===a?-1:1)*Rv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+rf(c)*m-tf(c)*g,_=(e+i)/2+tf(c)*m+rf(c)*g,x=ox([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],C=ox(S,b);if(kv(S,b)<=-1&&(C=qs),kv(S,b)>=1&&(C=0),C<0){var w=Math.round(C/qs*1e6)/1e6;C=qs*2+w%2*qs}f.addData(u,y,_,o,s,x,C,c,a)}var rL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,iL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nL(t){var e=new qt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=qt.CMD,l=t.match(rL);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(iL)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,C=void 0,w=r,E=i,A=void 0,D=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,A=e.len(),D=e.data,o===s.C&&(g+=r-D[A-4],y+=i-D[A-3]),p=s.C,w=h[m++],E=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,w,E,r,i);break;case"s":g=r,y=i,A=e.len(),D=e.data,o===s.C&&(g+=r-D[A-4],y+=i-D[A-3]),p=s.C,w=r+h[m++],E=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,w,E,r,i);break;case"Q":w=h[m++],E=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,w,E,r,i);break;case"q":w=h[m++]+r,E=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,w,E,r,i);break;case"T":g=r,y=i,A=e.len(),D=e.data,o===s.Q&&(g+=r-D[A-4],y+=i-D[A-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,A=e.len(),D=e.data,o===s.Q&&(g+=r-D[A-4],y+=i-D[A-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],C=h[m++],w=r,E=i,r=h[m++],i=h[m++],p=s.A,sx(w,E,r,i,b,C,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],C=h[m++],w=r,E=i,r+=h[m++],i+=h[m++],p=s.A,sx(w,E,r,i,b,C,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var lx=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ae);function ux(t){return t.setData!=null}function fx(t,e){var r=nL(t),i=N({},e);return i.buildPath=function(n){var a=ux(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Nv(r,n),this.dirtyShape()},i}function cx(t,e){return new lx(fx(t,e))}function px(t,e){var r=fx(t,e),i=(function(n){O(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(lx);return i}function hx(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(ux(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var oL=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var vx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new oL},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ae);vx.prototype.type="circle";var jn=vx;var sL=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var dx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sL},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ae);dx.prototype.type="ellipse";var Ks=dx;var gx=Math.PI,Bv=gx*2,Qn=Math.sin,fo=Math.cos,lL=Math.acos,dt=Math.atan2,mx=Math.abs,js=Math.sqrt,Zs=Math.max,qr=Math.min,Mr=1e-4;function uL(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Mr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function nf(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/js(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,C=(_<0?-1:1)*js(Zs(0,S*S*x-b*b)),w=(b*_-y*C)/x,E=(-b*y-_*C)/x,A=(b*_+y*C)/x,D=(-b*y+_*C)/x,L=w-m,M=E-g,I=A-m,R=D-g;return L*L+M*M>I*I+R*R&&(w=A,E=D),{cx:w,cy:E,x0:-f,y0:-c,x1:w*(n/S-1),y1:E*(n/S-1)}}function fL(t){var e;if(P(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function yx(t,e){var r,i=Zs(e.r,0),n=Zs(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=mx(u-l),v=h>Bv&&h%Bv;if(v>Mr&&(h=v),!(i>Mr))t.moveTo(f,c);else if(h>Bv-Mr)t.moveTo(f+i*fo(l),c+i*Qn(l)),t.arc(f,c,i,l,u,!p),n>Mr&&(t.moveTo(f+n*fo(u),c+n*Qn(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,C=void 0,w=void 0,E=void 0,A=void 0,D=void 0,L=void 0,M=void 0,I=void 0,R=i*fo(l),B=i*Qn(l),W=n*fo(u),U=n*Qn(u),X=h>Mr;if(X){var $=e.cornerRadius;$&&(r=fL($),d=r[0],m=r[1],g=r[2],y=r[3]);var Z=mx(i-n)/2;if(_=qr(Z,g),x=qr(Z,y),S=qr(Z,d),b=qr(Z,m),E=C=Zs(_,x),A=w=Zs(S,b),(C>Mr||w>Mr)&&(D=i*fo(u),L=i*Qn(u),M=n*fo(l),I=n*Qn(l),h<gx)){var te=uL(R,B,M,I,D,L,W,U);if(te){var ne=R-te[0],K=B-te[1],de=D-te[0],xe=L-te[1],_t=1/Qn(lL((ne*de+K*xe)/(js(ne*ne+K*K)*js(de*de+xe*xe)))/2),Sr=js(te[0]*te[0]+te[1]*te[1]);E=qr(C,(i-Sr)/(_t+1)),A=qr(w,(n-Sr)/(_t-1))}}}if(!X)t.moveTo(f+R,c+B);else if(E>Mr){var Le=qr(g,E),$e=qr(y,E),he=nf(M,I,R,B,i,Le,p),Se=nf(D,L,W,U,i,$e,p);t.moveTo(f+he.cx+he.x0,c+he.cy+he.y0),E<C&&Le===$e?t.arc(f+he.cx,c+he.cy,E,dt(he.y0,he.x0),dt(Se.y0,Se.x0),!p):(Le>0&&t.arc(f+he.cx,c+he.cy,Le,dt(he.y0,he.x0),dt(he.y1,he.x1),!p),t.arc(f,c,i,dt(he.cy+he.y1,he.cx+he.x1),dt(Se.cy+Se.y1,Se.cx+Se.x1),!p),$e>0&&t.arc(f+Se.cx,c+Se.cy,$e,dt(Se.y1,Se.x1),dt(Se.y0,Se.x0),!p))}else t.moveTo(f+R,c+B),t.arc(f,c,i,l,u,!p);if(!(n>Mr)||!X)t.lineTo(f+W,c+U);else if(A>Mr){var Le=qr(d,A),$e=qr(m,A),he=nf(W,U,D,L,n,-$e,p),Se=nf(R,B,M,I,n,-Le,p);t.lineTo(f+he.cx+he.x0,c+he.cy+he.y0),A<w&&Le===$e?t.arc(f+he.cx,c+he.cy,A,dt(he.y0,he.x0),dt(Se.y0,Se.x0),!p):($e>0&&t.arc(f+he.cx,c+he.cy,$e,dt(he.y0,he.x0),dt(he.y1,he.x1),!p),t.arc(f,c,n,dt(he.cy+he.y1,he.cx+he.x1),dt(Se.cy+Se.y1,Se.cx+Se.x1),p),Le>0&&t.arc(f+Se.cx,c+Se.cy,Le,dt(Se.y1,Se.x1),dt(Se.y0,Se.x0),!p))}else t.lineTo(f+W,c+U),t.arc(f,c,n,u,l,p)}t.closePath()}}}var pL=(function(){function t(){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 t})();var _x=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new pL},e.prototype.buildPath=function(r,i){yx(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);_x.prototype.type="sector";var Kr=_x;var hL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var xx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new hL},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ae);xx.prototype.type="ring";var Qs=xx;function zv(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)ar(f,f,t[p]),or(c,c,t[p]);ar(f,f,i[0]),or(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(qp(t[p]));continue}else l=t[p-1],u=t[p+1];ls(a,u,l),us(a,a,e);var d=fs(v,l),m=fs(v,u),g=d+m;g!==0&&(d/=g,m/=g),us(o,a,-d),us(s,a,m);var y=Jl([],v,o),_=Jl([],v,s);i&&(or(y,y,f),ar(y,y,c),or(_,_,f),ar(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function af(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=zv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var vL=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var bx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new vL},e.prototype.buildPath=function(r,i){af(r,i,!0)},e})(ae);bx.prototype.type="polygon";var $s=bx;var dL=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var Tx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dL},e.prototype.buildPath=function(r,i){af(r,i,!1)},e})(ae);Tx.prototype.type="polyline";var Js=Tx;var mL={},gL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var Cx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gL},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Gu(mL,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ae);Cx.prototype.type="line";var Et=Cx;var Bt=[],yL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Ex(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?vh:Pe)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?vh:Pe)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?dh:et)(t.x1,t.cpx1,t.x2,e),(r?dh:et)(t.y1,t.cpy1,t.y2,e)]}var Ax=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yL},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(Ga(n,l,o,p,Bt),l=Bt[1],o=Bt[2],Ga(a,u,s,p,Bt),u=Bt[1],s=Bt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Ha(n,l,f,o,p,Bt),l=Bt[1],f=Bt[2],o=Bt[3],Ha(a,u,c,s,p,Bt),u=Bt[1],c=Bt[2],s=Bt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Ex(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=Ex(this.shape,r,!0);return Sn(i,i)},e})(ae);Ax.prototype.type="bezier-curve";var $n=Ax;var _L=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var Dx=(function(t){O(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _L},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ae);Dx.prototype.type="arc";var Jn=Dx;var xL=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),of=xL;var SL=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),sf=SL;var bL=(function(t){O(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(sf),co=bL;var TL=(function(t){O(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(sf),lf=TL;var Uv=Math.min,CL=Math.max,uf=Math.abs,ea=[0,0],ta=[0,0],nt=uh(),ff=nt.minTv,cf=nt.maxTv,wL=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Te;for(var i=0;i<2;i++)this._axes[i]=new Te;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);Te.sub(n[0],i[1],i[0]),Te.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&Te.set(r,0,0),nt.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!nt.negativeSize&&Te.copy(r,n?nt.useDir?nt.dirMinTv:ff:cf),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ea),e._getProjMinMaxOnAxis(o,r._corners,ta),nt.negativeSize||ea[1]<ta[0]||ea[0]>ta[1]){if(a=!1,nt.negativeSize||i)return a;var l=uf(ta[0]-ea[1]),u=uf(ea[0]-ta[1]);Uv(l,u)>cf.len()&&(l<u?Te.scale(cf,s,-l*n):Te.scale(cf,s,u*n))}else if(!i){var l=uf(ta[0]-ea[1]),u=uf(ea[0]-ta[1]);(nt.useDir||Uv(l,u)<ff.len())&&((l<u||!nt.bidirectional)&&(Te.scale(ff,s,l*n),nt.useDir&&nt.calcDirMTV()),(l>=u||!nt.bidirectional)&&(Te.scale(ff,s,-u*n),nt.useDir&&nt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Uv(f,s),l=CL(f,l)}i[0]=s+nt.touchThreshold,i[1]=l-nt.touchThreshold,nt.negativeSize=i[1]<i[0]},t})(),pf=wL;var Fv=0,Mx=1,Lx=2,Ix=1,po=0;var EL=[],AL=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Mx,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Q(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(EL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(Vr),hf=AL;var DL=ee();function ML(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=H(i.duration,200),f=H(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Y(c)&&(c=c(r,n)),Y(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Vv(t,e,r,i,n,a,o){var s=!1,l;Y(n)?(o=a,a=n,n=null):F(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=ML(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Be(t,e,r,i,n,a){Vv("update",t,e,r,i,n,a)}function at(t,e,r,i,n,a){Vv("enter",t,e,r,i,n,a)}function ra(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function ho(t,e,r,i,n,a){ra(t)||Vv("leave",t,e,r,i,n,a)}function Ox(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),ho(t,{style:{opacity:0}},e,r,i)}function vo(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||Ox(n,e,r,i)}):Ox(t,e,r,i)}function vf(t){DL(t).oldStyle=t.style}var Gv={},yi=["x","y"],ia=["width","height"],Wv=0,Xv=1,na=2;function qv(t){return ae.extend(t)}var LL=px;function Kv(t,e){return LL(t,e)}function Qt(t,e){Gv[t]=e}function Zv(t){if(Gv.hasOwnProperty(t))return Gv[t]}function mo(t,e,r,i){var n=cx(t,e);return r&&(i==="center"&&(r=Rx(r,n.getBoundingRect())),mf(n,r)),n}function tl(t,e,r){var i=new kt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(Rx(e,a))}}});return i}function Rx(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var jv=hx;function mf(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function aa(t,e){return Gu(t,t,{lineWidth:e}),t}function IL(t,e){return Yu(t,t,e),t}var OL=Ki;function Qv(t,e){for(var r=sr([]);t&&t!==e;)br(r,t.getLocalTransform(),r),t=t.parent;return r}function gf(t,e,r){return e&&!Ve(e)&&(e=Za.getLocalTransform(e)),r&&(e=Yt([],e)),Ge([],t,e)}function PL(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:De(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:De(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=gf(a,e,r),De(a[0])>De(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Px(t){return!t.isGroup}function NL(t){return t.shape!=null}function $v(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){Px(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return NL(o)&&(s.shape=j(o.shape)),s}var a=i(t);e.traverse(function(o){if(Px(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Be(o,l,r,ue(o).dataIndex)}}})}function Jv(t,e){return k(t,function(r){var i=r[0];i=ce(i,e.x),i=Ne(i,e.x+e.width);var n=r[1];return n=ce(n,e.y),n=Ne(n,e.y+e.height),[i,n]})}function ed(t,e){var r=ce(t.x,e.x),i=Ne(t.x+t.width,e.x+e.width),n=ce(t.y,e.y),a=Ne(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function oa(t,e,r){var i=N({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),ie(n,r),new kt(i)):mo(t.replace("path://",""),i,r,"center")}function RL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(kx(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function kx(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Hv(f,c,l,u);if(kL(p))return!1;var h=t-n,v=e-a,d=Hv(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Hv(h,v,f,c)/p;return!(m<0||m>1)}function Hv(t,e,r,i){return t*i-r*e}function kL(t){return t<=1e-6&&t>=-1e-6}function go(t,e,r,i,n){return e==null||(oe(e)?Me[0]=Me[1]=Me[2]=Me[3]=e:(Me[0]=e[0],Me[1]=e[1],Me[2]=e[2],Me[3]=e[3]),i&&(Me[0]=ce(0,Me[0]),Me[1]=ce(0,Me[1]),Me[2]=ce(0,Me[2]),Me[3]=ce(0,Me[3])),r&&(Me[0]=-Me[0],Me[1]=-Me[1],Me[2]=-Me[2],Me[3]=-Me[3]),Nx(t,Me,"x","width",3,1,n&&n[0]||0),Nx(t,Me,"y","height",0,2,n&&n[1]||0)),t}var Me=[0,0,0,0];function Nx(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ce(0,Ne(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:De(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function yo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=z(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&T(fe(l),function(f){Ee(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:ie({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Yv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function _i(t,e){if(t)if(P(t))for(var r=0;r<t.length;r++)Yv(t[r],e);else Yv(t,e)}function yf(t){return!t||De(t[1])<df&&De(t[2])<df||De(t[0])<df&&De(t[3])<df}var df=1e-5;function _o(t,e){return t?Q.copy(t,e):e.clone()}function _f(t,e){return e?bn(t||ut(),e):void 0}function rl(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function BL(t){var e=-1/0,r=1/0;Yv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function il(t,e,r){Bx(t,e,r,-1/0)}function Bx(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ce(Bx(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ce(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function zL(t){return t.animation={duration:0},t}function UL(t,e){return e?bn(el.transform,e):sr(el.transform),el.decomposeTransform(),Ka(t,el),t}var el=new Za;el.transform=ut();function FL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Qt("circle",jn);Qt("ellipse",Ks);Qt("sector",Kr);Qt("ring",Qs);Qt("polygon",$s);Qt("polyline",Js);Qt("rect",_e);Qt("line",Et);Qt("bezierCurve",$n);Qt("arc",Jn);var xf={};function VL(t,e){for(var r=0;r<wt.length;r++){var i=wt[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function zx(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Y(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<wt.length;u++){var f=wt[u],c=e[f];l[f]=H(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Zr(t,e,r,i){r=r||xf;for(var n=t instanceof Ae,a=!1,o=0;o<Ev.length;o++){var s=e[Ev[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new Ae,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=zx(r,e),f=e.normal,c=!!f.getShallow("show"),p=Lr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(Ux(f,r,!1));for(var o=0;o<wt.length;o++){var h=wt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!H(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=Lr(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=Ux(s,r,!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=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(xo(l).setLabelText=function(g){var y=zx(r,e,g);VL(l,y)})}else l&&(l.ignore=!0);t.dirty()}function gr(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<wt.length;i++){var n=wt[i];r[n]=t.getModel([n,e])}return r}function Lr(t,e,r,i,n){var a={};return HL(a,t,r,i,n),e&&N(a,e),a}function Ux(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=H(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function HL(t,e,r,i,n){r=r||xf;var a=e.ecModel,o=a&&a.option.textStyle,s=GL(e),l;if(s){l={};var u="richInheritPlainLabel",f=H(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);Gx(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var d=t,m=e.get("minMargin");if(m!=null)m=oe(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=sa.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=_n(g),d.__marginType=sa.textMargin)}Gx(t,e,o,null,null,r,i,n,!0,!1)}function GL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||xf).rich;if(r){e=e||{};for(var i=fe(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var Fx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Vx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Hx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Gx(t,e,r,i,n,a,o,s,l,u){r=!o&&r||xf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=H(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=H(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=H(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var m=H(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<Fx.length;g++){var y=Fx[g],_=n!==!1&&i?nr(e.getShallow(y),i.getShallow(y),r[y]):H(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<Vx.length;g++){var y=Vx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<Hx.length;g++){var y=Hx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function Yx(t,e){var r=e&&e.getModel("textStyle");return rt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var xo=ee();function Wx(t,e,r,i){if(t){var n=xo(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var sa={minMargin:1,textMargin:2};var YL=["textStyle","color"],td=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],rd=new Ae,WL=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(YL):null)},t.prototype.getFont=function(){return Yx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<td.length;i++)r[td[i]]=this.getShallow(td[i]);return rd.useStyle(r),rd.update(),rd.getBoundingRect()},t})(),Xx=WL;var id=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],XL=Ur(id),qx=(function(){function t(){}return t.prototype.getLineStyle=function(e){return XL(this,e)},t})();var nd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],qL=Ur(nd),Kx=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return qL(this,e,r)},t})();var la=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){le(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(j(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();no(la);j_(la);qe(la,qx);qe(la,Kx);qe(la,Q_);qe(la,Xx);var be=la;var KL=Math.round(Math.random()*10);function Qi(t){return[t||"",KL++].join("_")}function Zx(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Rt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Rt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function jx(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(T(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),T(v.successor,d?g:m)}T(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return T(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(p){re(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);re(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(l){re(o,l)>=0&&s.push(l)}),s}}function Sf(t,e){return le(le({},t,!0),e,!0)}var Qx={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 $x={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 Tf="ZH",od="EN",So=od,bf={},sd={},Cf=J.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||So).toUpperCase();return t.indexOf(Tf)>-1?Tf:So})():So;function wf(t,e){t=t.toUpperCase(),sd[t]=new be(e),bf[t]=e}function Jx(t){if(z(t)){var e=bf[t.toUpperCase()]||{};return t===Tf||t===od?j(e):le(j(e),j(bf[So]),!1)}else return le(j(t),j(bf[So]),!1)}function eS(t){return sd[t]}function tS(){return sd[So]}wf(od,Qx);wf(Tf,$x);var ZL=null;function Ue(){return ZL}function Ef(t,e){var r=Ue(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function ua(t){var e=t.brk;return e?e.breaks:[]}function fa(t){var e=t.brk;return e?e.hasBreaks():!1}var Mf=1e3,Lf=Mf*60,bo=Lf*60,$t=bo*24,ld=$t*365,jL={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Df={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},QL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Af="{yyyy}-{MM}-{dd}",ud={year:"{yyyy}",month:"{yyyy}-{MM}",day:Af,hour:Af+" "+Df.hour,minute:Af+" "+Df.minute,second:Af+" "+Df.second,millisecond:QL},zt=["year","month","day","hour","minute","second","millisecond"],rS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function iS(t){return!z(t)&&!Y(t)?$L(t):t}function $L(t){t=t||{};var e={},r=!0;return T(zt,function(i){r&&(r=t[i]==null)}),T(zt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=zt[s],u=F(a)&&!P(a)?a[l]:a,f=void 0;P(u)?(f=u.slice(),o=f[0]||""):z(u)?(o=u,f=[o]):(o==null?o=Df[i]:jL[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function mt(t,e){return t+="","0000".substr(0,e-t.length)+t}function To(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function nS(t){return t===To(t)}function aS(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xi(t,e,r,i){var n=bt(t),a=n[fd(r)](),o=n[If(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Of(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[Pf(r)](),c=(f-1)%12+1,p=n[Nf(r)](),h=n[Rf(r)](),v=n[kf(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof be?i:eS(i||Cf)||tS(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,mt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,mt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,mt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,mt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,mt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,mt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,mt(v,3)).replace(/{S}/g,v+"")}function oS(t,e,r,i,n){var a=null;if(z(r))a=r;else if(Y(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ue();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=ca(t.value,n);a=r[f][f][0]}}return xi(new Date(t.value),a,n,i)}function ca(t,e){var r=bt(t),i=r[If(e)]()+1,n=r[Of(e)](),a=r[Pf(e)](),o=r[Nf(e)](),s=r[Rf(e)](),l=r[kf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Co(t,e,r){switch(e){case"year":t[cd(r)](0);case"month":t[pd(r)](1);case"day":t[hd(r)](0);case"hour":t[vd(r)](0);case"minute":t[dd(r)](0);case"second":t[md(r)](0)}return t}function fd(t){return t?"getUTCFullYear":"getFullYear"}function If(t){return t?"getUTCMonth":"getMonth"}function Of(t){return t?"getUTCDate":"getDate"}function Pf(t){return t?"getUTCHours":"getHours"}function Nf(t){return t?"getUTCMinutes":"getMinutes"}function Rf(t){return t?"getUTCSeconds":"getSeconds"}function kf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sS(t){return t?"setUTCFullYear":"setFullYear"}function cd(t){return t?"setUTCMonth":"setMonth"}function pd(t){return t?"setUTCDate":"setDate"}function hd(t){return t?"setUTCHours":"setHours"}function vd(t){return t?"setUTCMinutes":"setMinutes"}function dd(t){return t?"setUTCSeconds":"setSeconds"}function md(t){return t?"setUTCMilliseconds":"setMilliseconds"}function gd(t,e,r,i,n,a,o,s){var l=new Ae({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function nl(t){if(!Ms(t))return z(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function wo(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var jr=_n;function Bf(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&rt(f)?f:"-"}function a(f){return Ke(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?bt(t):t;if(isNaN(+l)){if(s)return"-"}else return xi(l,i,r)}if(e==="ordinal")return Ba(t)?n(t):oe(t)&&a(t)?t+"":"-";var u=cr(t);return a(u)?nl(u):Ba(t)?n(t):typeof t=="boolean"?t+"":"-"}var lS=["a","b","c","d","e","f","g"],yd=function(t,e){return"{"+t+(e??"")+"}"};function Eo(t,e,r){P(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=lS[a];t=t.replace(yd(o),yd(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(yd(lS[l],s),r?Je(u):u)}return t}function zf(t,e){var r=z(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Je(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Je(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function uS(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
9
+ yyyy`);var i=bt(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",mt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",mt(a%100+"",2)).replace("dd",mt(s,2)).replace("d",s).replace("hh",mt(l,2)).replace("h",l).replace("mm",mt(u,2)).replace("m",u).replace("ss",mt(f,2)).replace("s",f).replace("SSS",mt(c,3)),t}function fS(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Ir(t,e){return e=e||"transparent",z(t)?t:F(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Uf={},xd={},JL=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(Uf,!0),this._normalMasterList=i(xd,!1);function i(n,a){var o=[];return T(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){T(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Uf[e]=r;return}xd[e]=r},t.get=function(e){return xd[e]||Uf[e]},t})();function eI(t){return!!Uf[t]}var tI=1,cS=2;var rI=V();function Vf(t){var e=t.getShallow("coord",!0),r=tI;if(e==null){var i=rI.get(t.type);i&&i.getCoord2&&(r=cS,e=i.getCoord2(t))}return{coord:e,from:r}}var Ao=0,Ff=1,iI=2;function nI(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Ao;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Ff,o||(a=Ao)):i==="box"&&(a=iI,!o&&!eI(r)&&(a=Ao))}return{coordSysType:r,kind:a}}function pS(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=nI(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Ff&&(s=Ff,l=r),s===Ao||l!==r)return Ao;var u=i(r,e);return u?(s===Ff?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Ao}var Do=JL;var Yf=T,aI=["left","right","top","bottom","width","height"],Hf=[["width","left","right"],["height","top","bottom"]];function Sd(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var pa=Sd,OH=me(Sd,"vertical"),PH=me(Sd,"horizontal");function hS(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Qr(t,e,r){r=jr(r||0);var i=e.width,n=e.height,a=Re(t.left,i),o=Re(t.top,n),s=Re(t.right,i),l=Re(t.bottom,n),u=Re(t.width,i),f=Re(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new Q((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var Gf={rect:1,point:2};function Wf(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=Vf(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Gf.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Gf.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Gf.rect),a===Gf.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function $i(t){var e=t.layoutMode||t.constructor.layoutMode;return F(e)?e:e?{type:e}:null}function Jt(t,e,r){var i=r&&r.ignoreSize;!P(i)&&(i=[i,i]);var n=o(Hf[0],0),a=o(Hf[1],1);l(Hf[0],t,n),l(Hf[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(Yf(u,function(y){h[y]=t[y]}),Yf(u,function(y){Ee(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ee(c,g)&&Ee(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Yf(u,function(p){f[p]=c[p]})}}function $r(t){return oI({},t)}function oI(t,e){return e&&t&&Yf(aI,function(r){Ee(e,r)&&(t[r]=e[r])}),t}var sI=ee(),Mo=(function(t){O(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=Qi("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=$i(this),a=n?$r(r):{},o=i.getTheme();le(r,o.get(this.mainType)),le(r,this.getDefaultOption()),n&&Jt(r,a,n)},e.prototype.mergeOption=function(r,i){le(this.option,r,!0);var n=$i(this);n&&Jt(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Z_(r))return r.defaultOption;var i=sI(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=le(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Gi(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return hS(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(be);zu(Mo,be);Yi(Mo);Zx(Mo);jx(Mo,lI);function lI(t){var e=[];return T(Mo.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=k(e,function(r){return Rt(r).main}),t!=="dataset"&&re(e,"dataset")<=0&&e.unshift("dataset"),e}var ye=Mo;var ha={color:{},darkColor:{},size:{}},Fe=ha.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(Fe,{primary:Fe.neutral80,secondary:Fe.neutral70,tertiary:Fe.neutral60,quaternary:Fe.neutral50,disabled:Fe.neutral20,border:Fe.neutral30,borderTint:Fe.neutral20,borderShade:Fe.neutral40,background:Fe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Fe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Fe.neutral70,axisLineTint:Fe.neutral40,axisTick:Fe.neutral70,axisTickMinor:Fe.neutral60,axisLabel:Fe.neutral70,axisSplitLine:Fe.neutral15,axisMinorSplitLine:Fe.neutral05});for(Ji in Fe)Fe.hasOwnProperty(Ji)&&(Td=Fe[Ji],Ji==="theme"?ha.darkColor.theme=Fe.theme.slice():Ji==="highlight"?ha.darkColor.highlight="rgba(255,231,130,0.4)":Ji.indexOf("accent")===0?ha.darkColor[Ji]=Wa(Td,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ha.darkColor[Ji]=Wa(Td,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var Td,Ji;ha.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var q=ha;var vS="";typeof navigator<"u"&&(vS=navigator.platform||"");var Lo="rgba(0, 0, 0, 0.2)",dS=q.color.theme[0],uI=Wa(dS,null,null,.9),Xf={darkMode:"auto",colorBy:"series",color:q.color.theme,gradientColor:[uI,dS],aria:{decal:{decals:[{color:Lo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Lo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Lo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Lo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Lo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Lo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vS.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 At={Must:1,Might:2,Not:3},mS=ee();function gS(t){mS(t).datasetMap=V()}function yS(t,e,r){var i={},n=Cd(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=mS(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),T(t,function(d,m){var g=F(d)?d:t[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(t,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Cd(t){var e=t.get("data",!0);if(!e)return Gi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ft).models[0]}function _S(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Gi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ft).models}function qf(t,e){return fI(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function fI(t,e,r,i,n,a){var o,s=5;if(ze(t))return At.Not;var l,u;if(i){var f=i[a];F(f)?(l=f.name,u=f.type):z(f)&&(l=f)}if(u!=null)return u==="ordinal"?At.Must:At.Not;if(e===Ze){var c=t;if(r===Xr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===Ct){var d=t;if(!l)return At.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Kt){var g=t;if(!l)return At.Not;var p=g[l];if(!p||ze(p))return At.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===tt)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=ci(m);if(!P(_))return At.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=z(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?At.Might:At.Not;if(b&&S!=="-")return At.Must}return At.Not}var cI=V();function xS(t,e,r){var i=cI.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var SS=ee(),$H=ee(),al=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=ke(this.get("color",!0)),a=this.get("colorLayer",!0);return hI(this,SS,n,a,e,r,i)},t.prototype.clearColorPalette=function(){vI(this,SS)},t})();function pI(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function hI(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:pI(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function vI(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Kf,ol,bS,TS="\0_ec_inner",dI=1;var AS=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new be(a),this._locale=new be(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=ES(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,ES(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?bS(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;gS(this),T(r,function(c,p){c!=null&&(ye.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?j(c):le(n[p],c,!0))}),u&&u.each(function(c,p){ye.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var p=xS(this,c,ke(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=k_(h,p,v);z_(d,c,ye),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;T(d,function(S,b){var C=S.existing,w=S.newOption;if(!w)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var E=c==="series",A=ye.getClass(c,S.keyInfo.subType,!E);if(!A){if(0)var D,L;return}if(c==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===A)C.name=S.keyInfo.name,C.mergeOption(w,this),C.optionUpdated(w,!1);else{var M=N({componentIndex:b},S.keyInfo);C=new A(w,this,this,M),N(C,M),S.brandNew&&(C.__requireNewView=!0),C.init(w,this,this),C.optionUpdated(null,!0)}}C?(m.push(C.option),g.push(C),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Kf(this)}this._seriesIndices||Kf(this)},e.prototype.getOption=function(){var r=j(this.option);return T(r,function(i,n){if(ye.hasClass(n)){for(var a=ke(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!eo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[TS],r},e.prototype.setTheme=function(r){this._theme=new be(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(ke(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=CS("id",a,s):o!=null?l=CS("name",o,s):l=we(s,function(u){return!!u}),wS(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):we(this._componentsMap.get(n),function(u){return!!u});return l(wS(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?we(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(Y(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=z(r)?a.get(r):F(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Xt(r,null);return we(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return we(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return we(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){ol(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){T(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){ol(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return T(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return ol(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){ol(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(r){Kf(this);var i=this._componentsMap,n=[];i.each(function(a,o){ye.hasClass(o)&&n.push(o)}),ye.topologicalTravel(n,ye.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!mI(o,r))&&o.restoreData()})})},e.internalField=(function(){Kf=function(r){var i=r._seriesIndices=[];T(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=V(i)},ol=function(r){},bS=function(r,i){r.option={},r.option[TS]=dI,r._componentsMap=V({series:[]}),r._componentsCount=V();var n=i.aria;F(n)&&n.enabled==null&&(n.enabled=!0),gI(i,r._theme.option),le(i,Xf,!1),r._mergeOption(i,null)}})(),e})(be);function mI(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function gI(t,e){var r=t.color&&!t.colorLayer;T(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||ye.hasClass(n)||(typeof i=="object"?t[n]=t[n]?le(t[n],i,!1):j(i):t[n]==null&&(t[n]=i))})}function CS(t,e,r){if(P(e)){var i=V();return T(e,function(a){if(a!=null){var o=Xt(a,null);o!=null&&i.set(a,!0)}}),we(r,function(a){return a&&i.get(a[t])})}else{var n=Xt(e,null);return we(r,function(a){return a&&n!=null&&a[t]===n})}}function wS(t,e){return e.hasOwnProperty("subType")?we(t,function(r){return r&&r.subType===e.subType}):t}function ES(t){var e=V();return t&&T(ke(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}qe(AS,al);var Zf=AS;var yI=/^(min|max)?(.+)$/,_I=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(T(ke(e.series),function(o){o&&o.data&&ze(o.data)&&xn(o.data)}),T(ke(e.dataset),function(o){o&&o.source&&ze(o.source)&&xn(o.source)})),e=j(e);var n=this._optionBackup,a=xI(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],j(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=j(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)SI(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!TI(o,this._currentMediaIndices)&&(s=k(o,function(f){return j(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function xI(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&P(u)&&T(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),T(l,function(h){return p(h)}),T(i,function(h){return p(h.option)});function p(h){T(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function SI(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return T(t,function(a,o){var s=o.match(yI);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();bI(i[u],a,l)||(n=!1)}}),n}function bI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function TI(t,e){return t.join(",")===e.join(",")}var DS=_I;var Or=T,ll=F,MS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wd(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=MS.length;r<i;r++){var n=MS[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?le(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?le(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function gt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,ie(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function sl(t){gt(t,"itemStyle"),gt(t,"lineStyle"),gt(t,"areaStyle"),gt(t,"label"),gt(t,"labelLine"),gt(t,"upperLabel"),gt(t,"edgeLabel")}function We(t,e){var r=ll(t)&&t[e],i=ll(r)&&r.textStyle;if(i)for(var n=0,a=qh.length;n<a;n++){var o=qh[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function yr(t){t&&(sl(t),We(t,"label"),t.emphasis&&We(t.emphasis,"label"))}function CI(t){if(ll(t)){wd(t),sl(t),We(t,"label"),We(t,"upperLabel"),We(t,"edgeLabel"),t.emphasis&&(We(t.emphasis,"label"),We(t.emphasis,"upperLabel"),We(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(wd(e),yr(e));var r=t.markLine;r&&(wd(r),yr(r));var i=t.markArea;i&&yr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!ze(a))for(var o=0;o<a.length;o++)yr(a[o]);T(t.categories,function(u){sl(u)})}if(n&&!ze(n))for(var o=0;o<n.length;o++)yr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)yr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)P(l[o])?(yr(l[o][0]),yr(l[o][1])):yr(l[o]);t.type==="gauge"?(We(t,"axisLabel"),We(t,"title"),We(t,"detail")):t.type==="treemap"?(gt(t.breadcrumb,"itemStyle"),T(t.levels,function(u){sl(u)})):t.type==="tree"&&sl(t.leaves)}}function Si(t){return P(t)?t:t?[t]:[]}function LS(t){return(P(t)?t[0]:t)||{}}function Ed(t,e){Or(Si(t.series),function(i){ll(i)&&CI(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Or(r,function(i){Or(Si(t[i]),function(n){n&&(We(n,"axisLabel"),We(n.axisPointer,"label"))})}),Or(Si(t.parallel),function(i){var n=i&&i.parallelAxisDefault;We(n,"axisLabel"),We(n&&n.axisPointer,"label")}),Or(Si(t.calendar),function(i){gt(i,"itemStyle"),We(i,"dayLabel"),We(i,"monthLabel"),We(i,"yearLabel")}),Or(Si(t.radar),function(i){We(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)}),Or(Si(t.geo),function(i){ll(i)&&(yr(i),Or(Si(i.regions),function(n){yr(n)}))}),Or(Si(t.timeline),function(i){yr(i),gt(i,"label"),gt(i,"itemStyle"),gt(i,"controlStyle",!0);var n=i.data;P(n)&&T(n,function(a){F(a)&&(gt(a,"label"),gt(a,"itemStyle"))})}),Or(Si(t.toolbox),function(i){gt(i,"iconStyle"),Or(i.feature,function(n){gt(n,"iconStyle")})}),We(LS(t.axisPointer),"label"),We(LS(t.tooltip).axisPointer,"label")}function wI(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function EI(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function IS(t){t&&T(AI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var AI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],DI=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ad=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ul(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Ad.length;r++){var i=Ad[r][1],n=Ad[r][0];e[i]!=null&&(e[n]=e[i])}}function OS(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function PS(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function MI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function NS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&NS(t[r].children,e)}function jf(t,e){Ed(t,e),t.series=ke(t.series),T(t.series,function(r){if(F(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),OS(r.label);var n=r.data;if(n&&!ze(n))for(var a=0;a<n.length;a++)OS(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=wI(r,"pointer.color");o!=null&&EI(r,"itemStyle.color",o)}else if(i==="bar"){ul(r),ul(r.backgroundStyle),ul(r.emphasis);var n=r.data;if(n&&!ze(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(ul(n[a]),ul(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),PS(r),NS(r.data,PS)}else i==="graph"||i==="sankey"?MI(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ie(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),IS(r)}}),t.dataRange&&(t.visualMap=t.dataRange),T(DI,function(r){var i=t[r];i&&(P(i)||(i=[i]),T(i,function(n){IS(n)}))})}var RS=io(LI);function LI(t){var e=V();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),II(r)}})}function II(t){T(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),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=D_(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Qf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Kt?{}:[]),this.sourceFormat=e.sourceFormat||Sv,this.seriesLayoutBy=e.seriesLayoutBy||jt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&qf(this,i)===At.Must&&(n.type="ordinal")}}return t})();function Io(t){return t instanceof Qf}function fl(t,e,r){r=r||Dd(t);var i=e.seriesLayoutBy,n=OI(t,r,i,e.sourceHeader,e.dimensions),a=new Qf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(e)});return a}function Oo(t){return new Qf({data:t,sourceFormat:ze(t)?Zt:tt})}function zS(t){return new Qf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:j(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Dd(t){var e=Sv;if(ze(t))e=Zt;else if(P(t)){t.length===0&&(e=Ze);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(P(n)||ze(n)){e=Ze;break}else if(F(n)){e=Ct;break}}}}else if(F(t)){for(var a in t)if(Ee(t,a)&&Ve(t[a])){e=Kt;break}}return e}function OI(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:kS(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=t;i==="auto"||i==null?BS(function(u){u!=null&&u!=="-"&&(z(u)?o==null&&(o=1):o=0)},r,s,10):o=oe(i)?i:i?1:0,!n&&o===1&&(n=[],BS(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===Xr?s.length:s[0]?s[0].length:null}else if(e===Ct)n||(n=PI(t));else if(e===Kt)n||(n=[],T(t,function(u,f){n.push(f)}));else if(e===tt){var l=ci(t[0]);a=P(l)&&l.length||1}return{startIndex:o,dimensionsDefine:kS(n),dimensionsDetectedCount:a}}function PI(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return fe(r)}function kS(t){if(t){var e=V();return k(t,function(r,i){r=F(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function BS(t,e,r,i){if(e===Xr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function $f(t){var e=t.sourceFormat;return e===Ct||e===Kt}var va,da,ma,ga,US,FS,ec=(function(){function t(e,r){var i=Io(e)?e:Oo(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Zt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;FS(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;FS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=US[Pd(u,f)];if(N(o,h),u===Zt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=Ld(u,f);o.getItem=pe(v,null,s,c,p);var d=Id(u,f);o.count=pe(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};US=(e={},e[Ze+"_"+jt]={pure:!0,appendData:a},e[Ze+"_"+Xr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ct]={pure:!0,appendData:a},e[Kt]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[tt]={appendData:a},e[Zt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Jf=function(t){P(t)||Xh("series.data or dataset.source must be an array.")},kG=(va={},va[Ze+"_"+jt]=Jf,va[Ze+"_"+Xr]=Jf,va[Ct]=Jf,va[Kt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Xh("dimension name must not be null/undefined.")}},va[tt]=Jf,va),VS=function(t,e,r,i){return t[i]},NI=(da={},da[Ze+"_"+jt]=function(t,e,r,i){return t[i+e]},da[Ze+"_"+Xr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},da[Ct]=VS,da[Kt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},da[tt]=VS,da);function Ld(t,e){var r=NI[Pd(t,e)];return r}var HS=function(t,e,r){return t.length},RI=(ma={},ma[Ze+"_"+jt]=function(t,e,r){return Math.max(0,t.length-e)},ma[Ze+"_"+Xr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},ma[Ct]=HS,ma[Kt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},ma[tt]=HS,ma);function Id(t,e){var r=RI[Pd(t,e)];return r}var Md=function(t,e,r){return t[e]},kI=(ga={},ga[Ze]=Md,ga[Ct]=function(t,e,r){return t[r]},ga[Kt]=Md,ga[tt]=function(t,e,r){var i=ci(t);return i instanceof Array?i[e]:i},ga[Zt]=Md,ga);function Od(t){var e=kI[t];return e}function Pd(t,e){return t===Ze?t+"_"+e:t}function bi(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Od(a)(i,o,s)}else{var l=i;return a===tt&&(l=ci(i)),l}}}}var BI=/\{@(.+?)\}/g,cl=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,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:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&P(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Y(a))return l.status=r,l.dimensionIndex=n,a(l);if(z(a)){var f=Eo(a,l);return f.replace(BI,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=bi(s,e,v);if(o&&P(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return bi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Nd(t){var e,r;return F(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function en(t){return new zI(t)}var zI=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(P(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,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()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){GS.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:GS.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),P(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var GS=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Ti(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!oe(t)&&t!=null&&t!=="-"&&(t=+bt(t)),t==null||t===""?NaN:Number(t))}var qG=V({number:function(t){return parseFloat(t)},time:function(t){return+bt(t)},trim:function(t){return z(t)?rt(t):t}});var UI={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},KG=(function(){function t(e,r){if(!oe(r)){var i="";it(i)}this._opFn=UI[e],this._rvalFloat=cr(r)}return t.prototype.evaluate=function(e){return oe(e)?this._opFn(e,this._rvalFloat):this._opFn(cr(e),this._rvalFloat)},t})(),YS=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=oe(e)?e:cr(e),n=oe(r)?r:cr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(e),l=z(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var ZG=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=cr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=cr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function tc(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function rc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var FI=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ti(e,r)},t})();function VI(t,e){var r=new FI,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==jt&&it(o);var s=[],l={},u=t.dimensionsDefine;if(u)T(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Ee(l,g)&&it(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Ld(n,jt);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=pe(HI,null,t)),r.cloneRawData=pe(GI,null,t);var p=Id(n,jt);r.count=pe(p,null,i,a,s);var h=Od(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return r.getDimensionInfo=pe(YI,null,s,l),r.cloneAllDimensionInfo=pe(WI,null,s),r}function HI(t){var e=t.sourceFormat;if(!Rd(e)){var r="";it(r)}return t.data}function GI(t){var e=t.sourceFormat,r=t.data;if(!Rd(e)){var i="";it(i)}if(e===Ze){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===Ct){for(var n=[],a=0,o=r.length;a<o;a++)n.push(N({},r[a]));return n}}function YI(t,e,r){if(r!=null){if(oe(r)||!isNaN(r)&&!Ee(e,r))return t[r];if(Ee(e,r))return e[r]}}function WI(t){return j(t)}var WS=V();function XS(t){t=j(t);var e=t.type,r="";e||it(r);var i=e.split(":");i.length!==2&&it(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,WS.set(e,t)}function qS(t,e,r){var i=ke(t),n=i.length,a="";n||it(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=XI(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function XI(t,e,r,i){var n="";e.length||it(n),F(t)||it(n);var a=t.type,o=WS.get(a);o||it(n);var s=k(e,function(f){return VI(f,o)}),l=ke(o.transform({upstream:s[0],upstreamList:s,config:j(t.config)}));if(0&&t.print)var u;return k(l,function(f,c){var p="";F(f)||it(p),f.data||it(p);var h=Dd(f.data);Rd(h)||it(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:jt,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:jt,sourceHeader:0,dimensions:f.dimensions};return fl(f.data,v,null)})}function Rd(t){return t===Ze||t===Ct}var qI=typeof Uint32Array===Zi?Array:Uint32Array,KI=typeof Uint16Array===Zi?Array:Uint16Array,Bd=typeof Int32Array===Zi?Array:Int32Array,KS=typeof Float64Array===Zi?Array:Float64Array,jS={float:KS,int:Bd,ordinal:Array,number:Array,time:KS},kd;function Po(t){return t>65535?qI:KI}function ZI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ZS(t,e,r,i,n){var a=jS[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var jI=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=kd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=$f(n);this._dimensions=k(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new jS[r||"float"](this._rawCount),this._rawExtent[a]=ct(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=ct());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];ZS(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=kd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=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 c=o[f];l[f]||(l[f]=ct()),ZS(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Hi(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Po(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Po(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=fe(e),a=n.length;if(!a)return this;var o=r.count(),s=Po(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var C=r.getRawIndex(g),y=h[n[0]][C];(y>=c&&y<=p||isNaN(y))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var w=!0,C=r.getRawIndex(g),E=0;E<a;E++){var A=n[E],y=h[A][C];(y<e[A][0]||y>e[A][1])&&(w=!1)}w&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=ct();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Po(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var b=v,C=Math.min(v+l,o),w=v-1,E=a[u];f=-1,p=b;for(var A=-1,D=0,_=b;_<C;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){D++,A<0&&(A=x);continue}c=Math.abs((w-g)*(S-E)-(w-_)*(y-E)),c>f&&(f=c,p=x)}D>0&&D<C-b&&(h[s++]=Math.min(A,p),p=Math.max(A,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Po(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=ct(),p=new(Po(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=ct();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=tc(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!r||rc(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&ht(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?ZI(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=j(this._extent),e._rawExtent=j(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Ti(r[a],this._dimensions[a])}kd={arrayRows:e,objectRows:function(r,i,n,a){return Ti(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Ti(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),pl=jI;var $S=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(ic(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ze(s)?Zt:tt,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=H(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=H(c.sourceHeader,p.sourceHeader),d=H(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[fl(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[fl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&QS(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&QS(c),s.push(f),l.push(u._getVersionSign())}),i?o=qS(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[zS(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];ic(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new pl,s.initData(new ec(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ic(e)){var r=Cd(e);return r?[r.getSourceManager()]:[]}else return k(_S(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(ic(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function ic(t){return t.mainType==="series"}function QS(t){throw new Error(t)}var QI="line-height:1";function JS(t){var e=t.lineHeight;return e==null?QI:"line-height:"+Je(e+"")+"px"}function eb(t,e){var r=t.color||q.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||q.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Je(i+"")+"px;color:"+Je(r)+";font-weight:"+Je(n+""),valueStyle:"font-size:"+Je(o+"")+"px;color:"+Je(a)+";font-weight:"+Je(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var $I=[0,10,20,30],JI=["",`
10
10
  `,`
11
11
 
12
12
  `,`
13
13
 
14
14
 
15
- `];function ca(t,e){return e.type=t,e}function wd(t){return t.type==="section"}function PS(t){return wd(t)?yO:_O}function RS(t){if(wd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return b(t.blocks,function(n){var a=RS(n);a>=e&&(e=a+ +(i&&(!a||wd(n)&&!n.noHeader)))}),e}return 0}function yO(t,e,r,i){var n=e.noHeader,a=xO(RS(e)),o=[],s=e.blocks||[];Ve(!s||R(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ee(u,l)){var f=new TS(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(d,m){var g=e.valueFormatter,y=PS(d)(g?P(P({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Ed(i,o.join(""),n?r:a.html);if(n)return c;var p=Sf(e.header,"ordinal",t.useUTC),h=LS(i,t.renderMode).nameStyle,v=OS(i);return t.renderMode==="richText"?NS(t,p,h)+a.richText+c:Ed(i,'<div style="'+h+";"+v+';">'+je(p)+"</div>"+c,r)}function _O(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=R(x)?x:[x],U(x,function(S,T){return Sf(S,R(h)?h[T]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||K.color.secondary,n),p=a?"":Sf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=LS(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":NS(t,p,y))+(o?"":bO(t,v,d,m,_)):Ed(i,(s?"":c)+(a?"":SO(p,!s,y))+(o?"":TO(v,d,m,_)),r)}}function Dd(t,e,r,i,n,a){if(t){var o=PS(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function xO(t){return{html:mO[t],richText:gO[t]}}function Ed(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=OS(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function SO(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+je(t)+"</span>"}function TO(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=R(t)?t:[t],'<span style="'+a+";"+i+'">'+U(t,function(o){return je(o)}).join("&nbsp;&nbsp;")+"</span>"}function NS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function bO(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(R(e)?e.join(" "):e,a)}function kS(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Mr(i)}function Hf(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Gf=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ss()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=Tf({color:r,type:e,renderMode:i,markerId:n});return B(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};R(r)?b(r,function(a){return P(i,a)}):P(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function BS(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=R(s),u=kS(e,r),f,c,p,h;if(o>1||l&&!o){var v=CO(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=vi(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=Za(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return ca("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[ca("nameValue",{markerType:"item",markerColor:u,name:_,noName:!tt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function CO(t,e,r,i,n){var a=e.getData(),o=pt(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(c){f(vi(a,r,c),c)}):b(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(ca("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Zi=ne();function Wf(t,e){return t.getName(e)||t.getId(e)}var wO="__universalTransitionEnabled",Yf=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=qi({count:DO,reset:AO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Zi(this).sourceManager=new IS(this);a.prepareSource();var o=this.getInitialData(r,n);zS(o,this),this.dataTask.context.data=o,Zi(this).dataBeforeProcessed=o,US(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Yi(this),a=n?jr(r):{},o=this.subType;ge.hasClass(o)&&(o+="Series"),le(r,i.getTheme().get(this.subType)),le(r,this.getDefaultOption()),Ih(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&jt(r,a,n)},e.prototype.mergeOption=function(r,i){r=le(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Yi(this);n&&jt(this.option,r,n);var a=Zi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);zS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Zi(this).dataBeforeProcessed=o,US(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ke(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Ih(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Ad(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Zi(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Ad(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Zi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return Zi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Zi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return BS({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(J.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Zs.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Wf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ue(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Wf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[wO])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,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 c=i[f],p=Wf(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Wf(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return ge.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ge);et(Yf,xS);et(Yf,Zs);bu(Yf,ge);function US(t){var e=t.name;Za(t)||(t.name=EO(t)||e)}function EO(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return b(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function DO(t){return t.model.getRawData().count()}function AO(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),MO}function MO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zS(t,e){b(Ep(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Te(IO,e))})}function IO(t,e){var r=Ad(t);return r&&r.setOutputEnd((e||this).count()),e}function Ad(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var wt=Yf;var Md=(function(){function t(){this.group=new xe,this.uid=Wi("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Qa(Md);Ni(Md);var Je=Md;function pa(){var t=ne();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var HS=ne(),OO=pa(),Id=(function(){function t(){this.group=new xe,this.uid=Wi("viewChart"),this.renderTask=qi({plan:LO,reset:PO}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&VS(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&VS(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Jn(this.group,e)},t.markUpdateMethod=function(e,r){HS(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function FS(t,e,r){t&&Ns(t)&&(e==="emphasis"?Vn:Hn)(t,r)}function VS(t,e,r){var i=ur(t,e),n=e&&e.highlightKey!=null?P0(e.highlightKey):null;i!=null?b(Ne(i),function(a){FS(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){FS(a,r,n)})}Qa(Id,["dispose"]);Ni(Id);function LO(t){return OO(t.model)}function PO(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&HS(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),RO[l]}var RO={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ct=Id;var Xf="\0__throttleOriginMethod",GS="\0__throttleRate",WS="\0__throttleType";function ha(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function qf(t,e,r,i){var n=t[e];if(n){var a=n[Xf]||n,o=n[WS],s=n[GS];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=ha(a,r,i==="debounce"),n[Xf]=a,n[WS]=i,n[GS]=r}return n}}function tl(t,e){var r=t[e];r&&r[Xf]&&(r.clear&&r.clear(),t[e]=r[Xf])}var YS=ne(),XS={itemStyle:Ur(Yv,!0),lineStyle:Ur(Wv,!0)},kO={lineStyle:"stroke",itemStyle:"fill"};function qS(t,e){var r=t.visualStyleMapper||XS[e];return r||(console.warn("Unknown style type '"+e+"'."),XS.itemStyle)}function ZS(t,e){var r=t.visualDrawType||kO[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var KS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=qS(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=ZS(t,i),u=o[l],f=G(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.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(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=t.getDataParams(v),m=P({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},rl=new Se,jS={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=qS(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){rl.option=l[i];var u=n(rl),f=o.ensureUniqueItemVisual(s,"style");P(f,u),rl.option.decal&&(o.setItemVisual(s,"decal",rl.option.decal),rl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},QS={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();YS(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=YS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=ZS(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var Zf=Math.PI;function Od(t,e){e=e||{},te(e,{text:"loading",textColor:K.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xe,i=new me({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new De({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new me({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Xn({shape:{startAngle:-Zf/2,endAngle:-Zf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Zf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Zf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var BO=(function(){function t(e,r,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Tu(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=V();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Ve(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;b(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||qi({plan:HO,reset:GO,count:YO}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||qi({reset:UO});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Ve(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):b(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,qi({reset:zO,onDirty:VO})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return G(e)&&(e={overallReset:e,seriesType:XO(e)}),e.uid=Wi("stageHandler"),r&&(e.visualType=r),e},t})();function UO(t){t.overallReset(t.ecModel,t.api,t.payload)}function zO(t){return t.dirtyOnOverallProgress&&FO}function FO(){this.agent.dirty(),this.getDownstream().dirty()}function VO(){this.agent&&this.agent.dirty()}function HO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function GO(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ne(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return $S(i)}):WO}var WO=$S(0);function $S(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function YO(t){return t.data.count()}function XO(t){Kf=null;try{t(il,JS)}catch{}return Kf}var il={},JS={},Kf;eT(il,Pf);eT(JS,Lu);il.eachSeriesByType=il.eachRawSeriesByType=function(t){Kf=t};il.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Kf=t.subType)};function eT(t,e){for(var r in e.prototype)t[r]=Le}var Ld=BO;var H=K.darkColor,tT=H.background,nl=function(){return{axisLine:{lineStyle:{color:H.axisLine}},splitLine:{lineStyle:{color:H.axisSplitLine}},splitArea:{areaStyle:{color:[H.backgroundTint,H.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:H.axisMinorSplitLine}},axisLabel:{color:H.axisLabel},axisName:{}}},rT={label:{color:H.secondary},itemStyle:{borderColor:H.borderTint},dividerLineStyle:{color:H.border}},iT={darkMode:!0,color:H.theme,backgroundColor:tT,axisPointer:{lineStyle:{color:H.border},crossStyle:{color:H.borderShade},label:{color:H.tertiary}},legend:{textStyle:{color:H.secondary},pageTextStyle:{color:H.tertiary}},textStyle:{color:H.secondary},title:{textStyle:{color:H.primary},subtextStyle:{color:H.quaternary}},toolbox:{iconStyle:{borderColor:H.accent50},feature:{dataView:{backgroundColor:tT,textColor:H.primary,textareaColor:H.background,textareaBorderColor:H.border,buttonColor:H.accent50,buttonTextColor:H.neutral00}}},tooltip:{backgroundColor:H.neutral20,defaultBorderColor:H.border,textStyle:{color:H.tertiary}},dataZoom:{borderColor:H.accent10,textStyle:{color:H.tertiary},brushStyle:{color:H.backgroundTint},handleStyle:{color:H.neutral00,borderColor:H.accent20},moveHandleStyle:{color:H.accent40},emphasis:{handleStyle:{borderColor:H.accent50}},dataBackground:{lineStyle:{color:H.accent30},areaStyle:{color:H.accent20}},selectedDataBackground:{lineStyle:{color:H.accent50},areaStyle:{color:H.accent30}}},visualMap:{textStyle:{color:H.secondary},handleStyle:{borderColor:H.neutral30}},timeline:{lineStyle:{color:H.accent10},label:{color:H.tertiary},controlStyle:{color:H.accent30,borderColor:H.accent30}},calendar:{itemStyle:{color:H.neutral00,borderColor:H.neutral20},dayLabel:{color:H.tertiary},monthLabel:{color:H.secondary},yearLabel:{color:H.secondary}},matrix:{x:rT,y:rT,backgroundColor:{borderColor:H.axisLine},body:{itemStyle:{borderColor:H.borderTint}}},timeAxis:nl(),logAxis:nl(),valueAxis:nl(),categoryAxis:nl(),line:{symbol:"circle"},graph:{color:H.theme},gauge:{title:{color:H.secondary},axisLine:{lineStyle:{color:[[1,H.neutral05]]}},axisLabel:{color:H.axisLabel},detail:{color:H.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:H.background}},radar:(function(){var t=nl();return t.axisName={color:H.axisLabel},t.axisLine.lineStyle.color=H.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:H.neutral20,textStyle:{color:H.secondary}},emphasis:{itemStyle:{color:H.neutral30}}}},sunburst:{itemStyle:{borderColor:H.background}},map:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},label:{color:H.tertiary},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}}},geo:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{color:H.highlight}}}};iT.categoryAxis.splitLine.show=!1;var nT=iT;var aT=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(B(e)){var a=Ot(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Pd=["symbol","symbolSize","symbolRotate","symbolOffset"],oT=Pd.concat(["symbolKeepAspect"]),sT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Pd.length;o++){var s=Pd[o],l=t.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(P({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=ue(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},lT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<oT.length;s++){var l=oT[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function uT(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function fT(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function Ao(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=ur(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:R(p)?c.getName(p[0]):c.getName(p),selected:B(l)?l:P({},l)})}})}function cT(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Ao("map","selectchanged",e,n,i),Ao("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Ao("map","selected",e,n,i),Ao("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Ao("map","unselected",e,n,i),Ao("pie","unselected",e,n,i))})}function va(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var qO=new ot,Qt=qO;var pT={};function hT(t,e){pT[t]=e}function Rd(t){return pT[t]}var ZO={};function jf(t,e){ZO[t]=e}var Qf=ne();function vT(t){Qf(t).prepare={}}function dT(t){Qf(t).fullUpdate={}}function mT(t){return Qf(t).prepare}function da(t){return Qf(t).fullUpdate}var KO=Math.round(Math.random()*9),jO=typeof Object.defineProperty=="function",QO=(function(){function t(){this._id="__ec_inner_"+KO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return jO?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),gT=QO;var $O=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),JO=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),eL=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),tL=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),rL={line:qt,rect:me,roundRect:me,square:me,circle:Wn,diamond:JO,pin:eL,arrow:tL,triangle:$O},iL={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Nd={};b(rL,function(t,e){Nd[e]=new t});var nL=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=An(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Nd[i];n||(i="rect",n=Nd[i]),iL[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function aL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||K.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function $t(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Xs(t.slice(8),new j(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=lo(t.slice(7),{},new j(e,r,i,n),o?"center":"cover"):l=new nL({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=aL,a&&l.setColor(a),l}function yT(t){return R(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function $f(t,e){if(t!=null)return R(t)||(t=[t,t]),[We(t[0],e[0])||0,We(Y(t[1],t[0]),e[1])||0]}function ma(t){return isFinite(t)}function oL(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=ma(i)?i:0,n=ma(n)?n:1,a=ma(a)?a:0,o=ma(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function sL(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=ma(o)?o:.5,s=ma(s)?s:.5,l=l>=0&&ma(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function al(t,e,r){for(var i=e.type==="radial"?sL(t,e,r):oL(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function _T(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Jf(t){return parseInt(t,10)}function ol(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Jf(s[i])||Jf(t.style[i]))-(Jf(s[a])||0)-(Jf(s[o])||0)||0}function lL(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:se(t)?[t]:R(t)?t:null}function kd(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&lL(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=U(r,function(a){return a/n}),i/=n)}return[r,i]}var uL=new Gt(!0);function ec(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function xT(t){return typeof t=="string"&&t!=="none"}function tc(t){var e=t.fill;return e!=null&&e!=="none"}function ST(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function TT(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function rc(t,e,r){var i=Uh(e.image,e.__image,r);if($a(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Dp),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function fL(t,e,r,i,n){var a,o=ec(r),s=tc(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||uL,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0;(d||m)&&(C=e.getBoundingRect()),d&&(_=p?al(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?al(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?rc(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(T=p||!e.__canvasStrokePattern?rc(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),d?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(T?t.strokeStyle=T:o=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var D,E;t.setLineDash&&r.lineDash&&(a=kd(e),D=a[0],E=a[1]);var A=!0;(f||p&Ci)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),D&&(t.setLineDash(D),t.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&TT(t,r),s&&ST(t,r)):(s&&ST(t,r),o&&TT(t,r)),D&&t.setLineDash([])}function cL(t,e,r){var i=e.__image=Uh(r.image,e.__image,e,e.onload);if(!(!i||!$a(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function pL(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||er,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=kd(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(ec(r)&&t.strokeText(n,r.x,r.y),tc(r)&&t.fillText(n,r.x,r.y)):(tc(r)&&t.fillText(n,r.x,r.y),ec(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var bT=["shadowBlur","shadowOffsetX","shadowOffsetY"],CT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IT(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){Et(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?zr.opacity:o}(i||e.blend!==r.blend)&&(a||(Et(t,n),a=!0),t.globalCompositeOperation=e.blend||zr.blend);for(var s=0;s<bT.length;s++){var l=bT[s];(i||e[l]!==r[l])&&(a||(Et(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(Et(t,n),a=!0),t.shadowColor=e.shadowColor||zr.shadowColor),a}function wT(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=IT(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Et(t,n),s=!0),xT(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Et(t,n),s=!0),xT(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Et(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Et(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<CT.length;f++){var c=CT[f],p=c[0];(i||a[p]!==o[p])&&(s||(Et(t,n),s=!0),t[p]=a[p]||c[1])}return s}function hL(t,e,r,i,n){return IT(t,e.style,r&&r.style,i,n)}function OT(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function vL(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),OT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function dL(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var ET=1,DT=2,AT=3,MT=4;function mL(t){var e=tc(t),r=ec(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Et(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Mo(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ki(t,e,r),ga(t,r)}function Ki(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ge,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||_T(n,a))&&(a&&(Et(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Et(t,r),t.save(),vL(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~Ge,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ae&&e.autoBatch&&mL(o);s||dL(i,u.transform)?(Et(t,r),OT(t,e)):f||Et(t,r),e instanceof ae?(r.lastDrawType!==ET&&(l=!0,r.lastDrawType=ET),wT(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),fL(t,e,o,f,r)):e instanceof As?(r.lastDrawType!==AT&&(l=!0,r.lastDrawType=AT),wT(t,e,u,l,r),pL(t,e,o)):e instanceof Lt?(r.lastDrawType!==DT&&(l=!0,r.lastDrawType=DT),hL(t,e,u,l,r),cL(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==MT&&(l=!0,r.lastDrawType=MT),gL(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Et(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ga(t,e){Et(t,e),e.prevElClipPaths&&t.restore()}function gL(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Ki(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ga(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Ki(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ga(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Bd=new gT,LT=new kr(100),PT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Bd.delete(t);var a=Bd.get(t);if(a)return a;var o=te(t,{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=n?1:1/r,Bd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<PT.length;++p){var h=o[PT[p]];if(h!=null&&!R(h)&&!B(h)&&!se(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=LT.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=NT(o.dashArrayX),g=yL(o.dashArrayY),y=RT(o.symbol),_=_L(m),x=kT(g),S=!n&&Oe.createCanvas(),T=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),w;S&&(S.width=C.width*r,S.height=C.height*r,w=S.getContext("2d")),E(),c&&LT.put(v,S||T),u.image=S,u.svgElement=T,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var A=1,I=0,M=_.length;I<M;++I)A=Ah(A,_[I]);for(var O=1,I=0,M=y.length;I<M;++I)O=Ah(O,y[I].length);A*=O;var N=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function E(){w&&(w.clearRect(0,0,S.width,S.height),o.backgroundColor&&(w.fillStyle=o.backgroundColor,w.fillRect(0,0,S.width,S.height)));for(var A=0,I=0;I<g.length;++I)A+=g[I];if(A<=0)return;for(var M=-x,O=0,N=0,k=0;M<C.height;){if(O%2===0){for(var W=N/2%y.length,z=0,X=0,Q=0;z<C.width*2;){for(var Z=0,I=0;I<m[k].length;++I)Z+=m[k][I];if(Z<=0)break;if(X%2===0){var ee=(1-o.symbolSize)*.5,re=z+m[k][X]*ee,q=M+g[O]*ee,de=m[k][X]*o.symbolSize,ye=g[O]*o.symbolSize,_t=Q/2%y[W].length;yr(re,q,de,ye,y[W][_t])}z+=m[k][X],++Q,++X,X===m[k].length&&(X=0)}++k,k===m.length&&(k=0)}M+=g[O],++N,++O,O===g.length&&(O=0)}function yr(Ie,Ke,he,_e,sn){var xt=n?1:r,Ng=$t(sn,Ie*xt,Ke*xt,he*xt,_e*xt,o.color,o.symbolKeepAspect);if(n){var kg=i.painter.renderOneToVNode(Ng);kg&&T.children.push(kg)}else Mo(w,Ng)}}}}function RT(t){if(!t||t.length===0)return[["rect"]];if(B(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!B(t[r])){e=!1;break}if(e)return RT([t]);for(var i=[],r=0;r<t.length;++r)B(t[r])?i.push([t[r]]):i.push(t[r]);return i}function NT(t){if(!t||t.length===0)return[[0,0]];if(se(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!se(t[i])){r=!1;break}if(r)return NT([t]);for(var n=[],i=0;i<t.length;++i)if(se(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function yL(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(se(t)){var e=Math.ceil(t);return[e,e]}var r=U(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function _L(t){return U(t,function(e){return kT(e)})}function kT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var BT=ja(xL);function xL(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=sl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=sl(n,e)}}})}var SL="6.1.0",TL={zrender:"6.1.0"},bL=1,CL=800,wL=900,EL=920,DL=1e3,AL=2e3,UT=5e3,qT=1e3,ML=1100,Kd=2e3,ZT=3e3,IL=4e3,cc=4500,OL=4600,LL=5e3,PL=6e3,KT=7e3,jd={PROCESSOR:{SERIES_FILTER:CL,AXIS_STATISTICS:EL,FILTER:DL,STATISTIC:UT,STATISTICS:UT},VISUAL:{LAYOUT:qT,PROGRESSIVE_LAYOUT:ML,GLOBAL:Kd,CHART:ZT,POST_CHART_LAYOUT:OL,COMPONENT:IL,BRUSH:LL,CHART_ITEM:cc,ARIA:PL,DECAL:KT}},Ze="__flagInMainProcess",ic="__mainProcessVersion",nt="__pendingUpdate",Ud="__needsUpdateStatus",zT=/^[a-zA-Z0-9_]+$/,zd="__connectUpdateStatus",FT=0,RL=1,NL=2;function jT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return $T(this,t,e)}}function QT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return $T(this,t,e)}}function $T(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),ot.prototype[e].apply(t,r)}var JT=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ot),eb=JT.prototype;eb.on=QT("on");eb.off=QT("off");var ya,Fd,nc,di,ac,Vd,Hd,Io,Oo,VT,HT,Gd,GT,oc,WT,tb,mr,YT,Lo,sc=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new aT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[ic]=1,0)var u;n.ssr&&wh(function(h){var v=pe(h),d=v.dataIndex;if(d!=null){var m=V();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=mu(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Y(n.useDirtyRect,l),useCoarsePointer:Y(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=ha(ce(f.flush,f),17),a._updateTheme(i),a._locale=Ix(n.locale||lf),a._coordSysMgr=new So;var c=a._api=WT(a);function p(h,v){return h.__prio-v.__prio}return xn(uc,p),xn(Xd,p),a._scheduler=new Ld(a,c,Xd,uc),a._messageCenter=new JT,a._initEvents(),a.resize=ce(a.resize,a),f.animation.on("frame",a._onframe,a),VT(f,a),HT(f,a),pn(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(YT(this),this[nt]){var a=this[nt].silent;this[Ze]=!0,Lo(this);try{ya(this),di.update.call(this,null,this[nt].updateParams)}catch(l){throw this[Ze]=!1,this[nt]=null,l}this._zr.flush(),this[Ze]=!1,this[nt]=null,Io.call(this,a),Oo.call(this,a)}else if(r.unfinished){var o=bL;do{r.unfinished=!1;var s=Oe.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Vd(this,i),r.performVisualTasks(i),oc(this,this._model,n,"remain",{}),o-=Oe.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[Ze]){if(this._disposed){this.id;return}var a,o,s;if(F(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Ze]=!0,Lo(this),!this._model||i){var l=new aS(this._api),u=this._theme,f=this._model=new Pf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},qd);var c={seriesTransition:s,optionChanged:!0};if(n)this[nt]={silent:a,updateParams:c},this[Ze]=!1,this.getZr().wakeUp();else{try{ya(this),di.update.call(this,null,c)}catch(p){throw this[nt]=null,this[Ze]=!1,p}this._ssr||this._zr.flush(),this[nt]=null,this[Ze]=!1,Io.call(this,a),Oo.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Ze]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[nt]&&(a==null&&(a=this[nt].silent),o=this[nt].updateParams,this[nt]=null),this[Ze]=!0,Lo(this);try{this._updateTheme(r),n.setTheme(this._theme),ya(this),di.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ze]=!1,s}this[Ze]=!1,Io.call(this,a),Oo.call(this,a)}}},e.prototype._updateTheme=function(r){B(r)&&(r=rb[r]),r&&(r=$(r),r&&Rf(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;b(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(fc[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();b(_a,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=Oe.createCanvas(),g=mu(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return b(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new me({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),b(p,function(_){var x=new Lt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return ac(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return ac(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return ac(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=xu(n,r);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=xu(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?uT(s,l,i):fT(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;b(kL,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&va(l,function(d){var m=pe(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=P({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;b(Yd,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),cT(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Lh(this.getDom(),$d,"");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(i._chartsViews,function(o){o.dispose(a,n)}),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 _a[i.id]},e.prototype.resize=function(r){if(!this[Ze]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[nt]&&(a==null&&(a=this[nt].silent),n=!0,this[nt]=null),this[Ze]=!0,Lo(this);try{n&&ya(this),di.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[Ze]=!1,o}this[Ze]=!1,Io.call(this,a),Oo.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(F(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Zd[r]){var n=Zd[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=P({},r);return i.type=Wd[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!lc[r.type]&&this._model){if(this[Ze]){this._pendingActions.push(r);return}var n=i.silent;Hd.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),Io.call(this,n),Oo.call(this,n)}},e.prototype.updateLabelLayout=function(){Qt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ya=function(c){vT(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Fd(c,!0),Fd(c,!1),p.plan()},Fd=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(T,C){T!=="series"&&x(C)}):h.eachSeries(x);function x(T){var C=T.__requireNewView;T.__requireNewView=!1;var w="_ec_"+T.id+"_"+T.type,D=!C&&m[w];if(!D){var E=Ot(T.type),A=p?Je.getClass(E.main,E.sub):ct.getClass(E.sub);D=new A,D.init(h,y),m[w]=D,d.push(D),g.add(D.group)}T.__viewId=D.__id=w,D.__alive=!0,D.__model=T,D.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(D,T,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},nc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){b([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=d_(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=V(),b(Ne(y),function(S){var T=Ht(S,null);T!=null&&_.set(T,!0)})),m&&m.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;if(!T)if(yv(h))if(S instanceof wt)h.type===Vi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&D0(S,h,c._api);else{var C=Bu(S.mainType,S.componentIndex,h.name,c._api),w=C.focusSelf,D=C.dispatchers;h.type===Vi&&w&&!h.notBlur&&Pu(S.mainType,S.componentIndex,c._api),D&&b(D,function(E){h.type===Vi?Vn(E):Hn(E)})}else Uu(h)&&S instanceof wt&&(I0(S,h,c._api),gv(S),mr(c))},c),m&&m.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;T||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},di={prepareAndUpdate:function(c){ya(this),di.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){dT(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),Qt.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),Vd(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),Gd(this,h,v,c,p),Qt.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==Iu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),oc(p,h,v,c,{},m),Qt.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),ct.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Gd(this,p,this._api,c,{}),Qt.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),ct.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),Qt.trigger("afterupdate",h,this._api))},updateLayout:function(c){di.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=xu(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}ac=r,Vd=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Hd=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=lc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Ot(y[0]);this[Ze]=!0,Lo(this);var S=[c],T=!1;c.batch&&(T=!0,S=U(c.batch,function(k){return k=te(P({},k),c),k.batch=null,k}));var C=[],w,D=[],E=g.nonRefinedEventType,A=Uu(c),I=yv(c);if(I&&mv(this._api),b(S,function(k){var W=g.action(k,v,h._api);if(g.refineEvent?D.push(W):w=W,w=w||P({},k),w.type=E,C.push(w),I){var z=bs(c),X=z.queryOptionMap,Q=z.mainTypeSpecified,Z=Q?X.keys()[0]:"series";nc(h,_,k,Z),mr(h)}else A?(nc(h,_,k,"series"),mr(h)):x&&nc(h,_,k,x.main,x.sub)}),_!=="none"&&!I&&!A&&!x)try{this[nt]?(ya(this),di.update.call(this,c),this[nt]=null):di[_].call(this,c)}catch(k){throw this[Ze]=!1,k}if(T?w={type:E,escapeConnect:m,batch:C}:w=C[0],this[Ze]=!1,!p){var M=void 0;if(g.refineEvent){var O=g.refineEvent(D,c,v,this._api).eventContent;Ve(F(O)),M=te({type:g.refinedEventType},O),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var N=this._messageCenter;N.trigger(w.type,w),M&&N.trigger(M.type,M)}},Io=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Hd.call(this,h,c)}},Oo=function(c){!c&&this.trigger("updated")},VT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[nt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},HT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=va(v,Ns);d&&(A0(d,h,p._api),mr(p))}).on("mouseout",function(h){var v=h.target,d=va(v,Ns);d&&(M0(d,h,p._api),mr(p))}).on("click",function(h){var v=h.target,d=va(v,function(y){return pe(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=pe(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,T=_.getZLevelKey();v=v||!!T,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:T})}),v){var d=p.concat(h),m,g;xn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}Gd=function(c,p,h,v,d){n(p),GT(c,p,h,v,d),b(c._chartsViews,function(m){m.__alive=!1}),oc(c,p,h,v,d),b(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},GT=function(c,p,h,v,d,m){b(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},oc=function(c,p,h,v,d,m){var g=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),Qt.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),gv(_)}),g.unfinished=y||g.unfinished,Qt.trigger("series:layoutlabels",p,h,d),Qt.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),Qt.trigger("series:afterupdate",p,h,d)},mr=function(c){c[Ud]=!0,c.getZr().wakeUp()},Lo=function(c){c[ic]=(c[ic]+1)%1e6},YT=function(c){c[Ud]&&(c.getZr().storage.traverse(function(p){Kn(p)||a(p)}),c[Ud]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Is&&c.states.emphasis?p.push("emphasis"):c.hoverState===Ms&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>Y(p.get("hoverLayerThreshold"),If.hoverLayerThreshold)&&!J.node&&!J.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Ys&&(x.hoverLayer=m?Ov:Iv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Fv(c);p.eachRendered(function(v){return Vv(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Kn(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Kn(g))return;if(g instanceof ae&&R0(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}WT=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Vn(v,d),mr(c)},h.prototype.leaveEmphasis=function(v,d){Hn(v,d),mr(c)},h.prototype.enterBlur=function(v){w0(v),mr(c)},h.prototype.leaveBlur=function(v){hv(v),mr(c)},h.prototype.enterSelect=function(v){vv(v),mr(c)},h.prototype.leaveSelect=function(v){dv(v),mr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[ic]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Lu))(c)},tb=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[zd]=v}}b(Wd,function(h,v){c._messageCenter.on(v,function(d){if(fc[c.group]&&c[zd]!==FT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];b(_a,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,FT),b(g,function(y){y[zd]!==RL&&y.dispatchAction(m)}),p(g,NL)}})})}})(),e})(ot),Qd=sc.prototype;Qd.on=jT("on");Qd.off=jT("off");Qd.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var kL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var lc={},Wd={},Yd={},Xd=[],qd=[],uc=[],rb={},Zd={},_a={},fc={},BL=+new Date-0,UL=+new Date-0,$d="_echarts_instance_";function zL(t,e,r){var i=!(r&&r.ssr);if(i){var n=Jd(t);if(n)return n}var a=new sc(t,e,r);return a.id="ec_"+BL++,_a[a.id]=a,i&&Lh(t,$d,a.id),tb(a),Qt.trigger("afterinit",a),a}function FL(t){if(R(t)){var e=t;t=null,b(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+UL++,b(e,function(r){r.group=t})}return fc[t]=!0,t}function ib(t){fc[t]=!1}var VL=ib;function HL(t){B(t)?t=_a[t]:t instanceof sc||(t=Jd(t)),t instanceof sc&&!t.isDisposed()&&t.dispose()}function Jd(t){return _a[m_(t,$d)]}function GL(t){return _a[t]}function em(t,e){rb[t]=e}function pc(t){ie(qd,t)<0&&qd.push(t)}function hc(t,e){am(Xd,t,e,AL)}function tm(t){ll("afterinit",t)}function rm(t){ll("afterupdate",t)}function ll(t,e){Qt.on(t,e)}function ji(t,e,r){var i,n,a,o,s;G(e)&&(r=e,e=""),F(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;lc[i]||(Ve(zT.test(i)&&zT.test(n)),a&&Ve(n!==i),lc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Yd[n]=1,a&&s&&(Yd[u]=1),Wd[u]=i)}function im(t,e){So.register(t,e)}function WL(t){var e=So.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function YL(t,e){jf(t,e)}function nm(t,e){am(uc,t,e,qT,"layout",!0)}function mi(t,e){am(uc,t,e,ZT,"visual",!0)}var XT=[];function am(t,e,r,i,n,a){if((G(e)||F(e))&&(r=e,e=i),!(ie(XT,r)>=0)){XT.push(r);var o=Ld.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function vc(t,e){Zd[t]=e}function XL(t){kl({createCanvas:t})}function om(t,e,r){var i=Rd("registerMap");i&&i(t,e,r)}function qL(t){var e=Rd("getMap");return e&&e(t)}var sm=CS;mi(Kd,KS);mi(cc,jS);mi(cc,QS);mi(Kd,sT);mi(cc,lT);mi(KT,BT);pc(Rf);hc(wL,pS);vc("default",Od);ji({type:Vi,event:Vi,update:Vi},Le);ji({type:Os,event:Os,update:Os},Le);ji({type:Ls,event:Nu,update:Ls,action:Le,refineEvent:lm,publishNonRefinedEvent:!0});ji({type:Ru,event:Nu,update:Ru,action:Le,refineEvent:lm,publishNonRefinedEvent:!0});ji({type:Ps,event:Nu,update:Ps,action:Le,refineEvent:lm,publishNonRefinedEvent:!0});function lm(t,e,r,i){return{eventContent:{selected:O0(r),isFromClick:e.isFromClick||!1}}}em("default",{});em("dark",nT);var ZL={};function ul(t){return t==null?0:t.length||1}function nb(t){return t}var KL=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||nb,this._newKeyGetter=n||nb,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=ul(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(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=ul(u),p=ul(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=ul(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=ul(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),ab=KL;var jL=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function ob(t,e){var r={},i=r.encode={},n=V(),a=[],o=[],s={};b(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;um(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),QL(h.type)&&(a[0]=p),um(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Ou.each(function(m,g){var y=um(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new jL(s,e),r}function um(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function sb(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function QL(t){return!(t==="ordinal"||t==="time")}var $L=(function(){function t(e){this.otherDims={},e!=null&&P(this,e)}return t})(),Po=$L;var JL=ne(),eP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},fm=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=cm(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Y(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=kf(this.source),i=!pm(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=eP[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function dc(t){return t instanceof fm}function fl(t){for(var e=V(),r=0;r<(t||[]).length;r++){var i=t[r],n=F(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function cm(t){var e=JL(t);return e.dimNameMap||(e.dimNameMap=fl(t.dimensionsDefine))}function pm(t){return t>30}var cl=F,Qi=U,tP=typeof Int32Array>"u"?Array:Int32Array,rP="e\0\0",lb=-1,iP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nP=["_approximateExtent"],ub,mc,pl,hl,hm,vl,vm,aP=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;dc(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=B(c)?new Po({name:c}):c instanceof Po?c:new Po(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=V();b(o,function(m){d.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(se(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof el&&(a=e),!a){var o=this.dimensions,s=Co(e)||Fe(e)?new Uf(e,o.length):e;a=new el;var l=Qi(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=ob(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&vm(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Yt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===$e;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&c_(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Ht(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Ht(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)vm(this,f);ub(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){cl(e)?P(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=pl(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return mc(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return R(e)?n.getValues(Qi(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?lb:n},t.prototype.each=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Qi(hl(e),this._getStoreDimIndex,this);this._store.each(a,n?ce(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Qi(hl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ce(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=ue(e),a=[];return b(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=Qi(hl(e),this._getStoreDimIndex,this),s=vl(this);return s._store=this._store.map(o,a?ce(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=Qi(hl(e),this._getStoreDimIndex,this);this._store.modify(s,o?ce(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=vl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=vl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=vl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Se(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new ab(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return mc(e,i)},function(i){return mc(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},cl(e)?P(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),R(a)?a=a.slice():cl(a)&&(a=P({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,cl(r)?P(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){cl(e)?P(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;h0(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Qi(this.dimensions,this._getDimInfo,this),this.hostModel)),hm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Qo(arguments)))})},t.internalField=(function(){ub=function(e){var r=e._invertedIndicesMap;b(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new tP(o.categories.length);for(var l=0;l<i.length;l++)i[l]=lb;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},pl=function(e,r,i){return Ht(e._getCategory(r,i),null)},mc=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=pl(e,e._idDimIdx,r)),i==null&&(i=rP+r),i},hl=function(e){return R(e)||(e=e!=null?[e]:[]),e},vl=function(e){var r=new t(e._schema?e._schema:Qi(e.dimensions,e._getDimInfo,e),e.hostModel);return hm(r,e),r},hm=function(e,r){b(iP.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,b(nP,function(i){e[i]=$(r[i])}),e._calculationInfo=P({},r._calculationInfo)},vm=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=pl(e,a,r)),l==null&&o!=null&&(n[r]=l=pl(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),gc=aP;var wm={};Ut(wm,{createDimensions:()=>fb,createList:()=>qP,createScale:()=>KP,createSymbol:()=>$t,createTextStyle:()=>QP,dataStack:()=>ZP,enableHoverEmphasis:()=>to,getECData:()=>pe,getLayoutRect:()=>Kr,mixinAxisModelCommonMethods:()=>jP});function fb(t,e){return yc(t,e).dimensions}function yc(t,e){Co(t)||(t=wo(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=V(),a=[],o=oP(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pm(o),l=i===t.dimensionsDefine,u=l?cm(t):fl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),p=new Cd(o),h=0;h<p.length;h++)p[h]=-1;function v(D){var E=p[D];if(E<0){var A=i[D],I=F(A)?A:{name:A},M=new Po,O=I.name;O!=null&&u.get(O)!=null&&(M.name=M.displayName=O),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var N=a.length;return p[D]=N,M.storeDimIndex=D,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(D,E){var A=Ne(D).slice();if(A.length===1&&!B(A[0])&&A[0]<0){c.set(E,!1);return}var I=c.set(E,[]);b(A,function(M,O){var N=B(M)?u.get(M):M;N!=null&&N<o&&(I[O]=N,m(v(N),E,O))})});var d=0;b(r,function(D){var E,A,I,M;if(B(D))E=D,M={};else{M=D,E=M.name;var O=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=O,A=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var N=c.get(E);if(N!==!1){if(N=Ne(N),!N.length)for(var k=0;k<(A&&A.length||1);k++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&N.push(d++)}b(N,function(W,z){var X=v(W);if(l&&M.type!=null&&(X.type=M.type),m(te(X,M),E,z),X.name==null&&A){var Q=A[z];!F(Q)&&(Q={name:Q}),X.name=X.displayName=Q.name,X.defaultTooltip=Q.defaultTooltip}I&&te(X.otherDims,I)})}});function m(D,E,A){Ou.get(E)!=null?D.otherDims[E]=A:(D.coordDim=E,D.coordDimIndex=A,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)b(a,function(D){S(D)}),a.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var T=0;T<o;T++){var C=v(T),w=C.coordDim;w==null&&(C.coordDim=sP(x,n,_),C.coordDimIndex=0,(!g||y<=0)&&(C.isExtraCoord=!0),y--),S(C),C.type==null&&(Of(t,T)===Ct.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return Ka(a,function(D){return D.name},function(D,E){E>0&&(D.name=D.name+(E-1))}),new fm({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function oP(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return b(e,function(a){var o;F(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function sP(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var lP=(function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t})();function cb(t){var e=t.get("coordinateSystem"),r=new lP(e),i=uP[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var uP={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",lt).models[0],a=t.getReferringComponents("yAxis",lt).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Ro(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),Ro(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",lt).models[0];e.coordSysDims=["single"],r.set("single",n),Ro(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",lt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Ro(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),Ro(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Ro(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",lt).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function Ro(t){return t.get("type")==="category"}function _c(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;fP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(b(a,function(x,S){B(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),b(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;b(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function fP(t){return!dc(t.schema)}function Or(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function xc(t,e){return Or(t,e)?t.getCalculationInfo("stackResultDimension"):e}function cP(t,e){var r=t.get("coordinateSystem"),i=So.get(r),n;return e&&e.coordSysDims&&(n=U(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=sb(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function pP(t,e,r){var i,n;return r&&b(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function hP(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=wo(t)):(n=i.getSource(),a=n.sourceFormat===$e);var o=cb(e),s=cP(e,o),l=r.useEncodeDefaulter,u=G(l)?l:l?Te(Kx,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=yc(n,f),p=pP(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=_c(e,{schema:c,store:h}),d=new gc(c,e);d.setCalculationInfo(v);var m=p!=null&&vP(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function vP(t){if(t.sourceFormat===$e){var e=dP(t.data||[]);return!R(si(e))}}function dP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var $i=hP;var pb=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Ni(pb);var Dt=pb;var mP=0,gP=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++mP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,yP);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t})();function yP(t){return F(t)&&t.value!=null?t.value:t+""}var dl=gP;var Nt=0,No=1,_P={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},vb=ue(_P),ko=2,db=3;function Bo(t,e,r){var i;t=t||{};var n=Be();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(b(vb,function(o){a[o]&&(t[o]=ce(a[o],a))}),i=a)}return i==null&&xP(t,r),{brk:i,mapper:t}}function Sc(t,e){b(vb,function(r){t[r]=e[r]})}function Tc(t,e){t.freeze=Le}function gi(t){return t.getExtentUnsafe(Nt,ko)}function xa(t,e){return t.getExtentUnsafe(No,e)||t.getExtentUnsafe(Nt,e)}function mb(t){var e=xa(t,db);return e[1]-e[0]}function Uo(t){var e=t.getExtentUnsafe(Nt,db);return e[1]-e[0]}function xP(t,e){var r=t||{},i=[];return r._extents=i,i[Nt]=e?e.slice():ut(),P(r,SP),r}var SP={needTransform:function(){return!1},normalize:function(t){var e=this._extents[No]||this._extents[Nt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[No]||this._extents[Nt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=xa(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Nt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){hb(this._extents,Nt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Nt].slice()),hb(i,t,e,r)},freeze:function(){}};function hb(t,e,r,i){li(r,i)&&(t[e][0]=r,t[e][1]=i)}function bc(t){return zo(t)||Qr(t)}function zo(t){return t.type==="interval"}function Fo(t){return t.type==="time"}function Qr(t){return t.type==="log"}function at(t){return t.type==="ordinal"}function gb(t){var e=Xa(t),r=Li(10,e),i=It(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function Lr(t){return Vt(t)+2}function ml(t,e){return Ii(t)/Ii(e)}function Cc(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Li(e,t)}function wc(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ae(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Er(i[0])||!Er(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function yb(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function gl(t,e){return t=t||e,It(fe(t,1))}function Ec(t,e,r){var i=gi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var _b=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Sc(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new dl({})),R(n)&&(n=new dl({categories:U(n,function(o){return F(o)?o.value:o})})),i._ordinalMeta=n;var a=Bo(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Tc(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:B(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=It(r),r},e.prototype.getTicks=function(){var r=[];return Ec(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Re(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=gi(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(It(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(Dt);Dt.registerClass(_b);var xb=_b;function Vo(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Lr(h);f<e-1;){var d=ve(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Be();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var Sb=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=ff(i,r),a=Bo(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return $(this._cfg)},e.prototype.setConfig=function(r){var i=gi(this);this._cfg=r=$(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Lr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=gi(this),o=i.niceExtent,s=i.intervalPrecision,l=Be(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return It((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=Re(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=ve(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=ve(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Vt(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return qs(a)},e.type="interval",e})(Dt);Dt.registerClass(Sb);var Sa=Sb;var TP=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},bb=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=ff(i,r),a=Bo(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return pi(r.value,jv[kx(mo(this._minLevelUnit))]||jv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return Bx(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=gi(this),a=Be(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Be().addBreaksToTicks(l,o.breaks,n),l;l=MP(this._minLevelUnit,this._approxInterval,u,n,Uo(this),o);var f=Rt.length-1,c=0;return b(l,function(p){p.time&&(f=Math.min(f,ie(Rt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Be().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Be().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ie(Rt,na(p.vmin,u)),ie(Rt,na(p.vmax,u))),v=0,d=0;d<Rt.length;d++)if(!Cb(Rt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Rt[g],upperTimeUnit:Rt[m]}}),l},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return se(r)?Math.round(r):+St(r)},e.type="time",e})(Dt),Dc=[["second",hf],["minute",vf],["hour",vo],["quarter-day",vo*6],["half-day",vo*12],["day",Kt*1.2],["half-week",Kt*3.5],["week",Kt*7],["month",Kt*31],["quarter",Kt*95],["half-year",Kv/2],["year",Kv]];function Cb(t,e,r,i){return go(new Date(e),t,i).getTime()===go(new Date(r),t,i).getTime()}function bP(t,e){return t/=Kt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function CP(t){var e=30*Kt;return t/=e,t>6?6:t>3?3:t>2?2:1}function wP(t){return t/=vo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Tb(t,e){return t/=e?vf:hf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function EP(t){return fe(oi(t,!0),1)}function DP(t,e,r){var i=Math.max(0,ie(Rt,e)-1);return go(new Date(t),Rt[i],r).getTime()}function AP(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function MP(t,e,r,i,n,a){var o=3e3,s=Px,l=0;function u(k,W,z,X,Q,Z,ee){for(var re=AP(Q,k),q=W,de=new Date(q);q<z&&q<=i[1]&&(ee.push({value:q}),!(l++>o));)if(de[Q](de[X]()+k),q=de.getTime(),a){var ye=a.calcNiceTickMultiple(q,re);ye>0&&(de[Q](de[X]()+ye*k),q=de.getTime())}ee.push({value:q,notAdd:q>i[1]})}function f(k,W,z){var X=[],Q=!W.length;if(!Cb(mo(k),i[0],i[1],r)){Q&&(W=[{value:DP(i[0],k,r)},{value:i[1]}]);for(var Z=0;Z<W.length-1;Z++){var ee=W[Z].value,re=W[Z+1].value;if(ee!==re){var q=void 0,de=void 0,ye=void 0,_t=!1;switch(k){case"year":q=Math.max(1,Math.round(e/Kt/365)),de=Qv(r),ye=Ux(r);break;case"half-year":case"quarter":case"month":q=CP(e),de=df(r),ye=$v(r);break;case"week":case"half-week":case"day":q=bP(e,31),de=mf(r),ye=Jv(r),_t=!0;break;case"half-day":case"quarter-day":case"hour":q=wP(e),de=gf(r),ye=ed(r);break;case"minute":q=Tb(e,!0),de=yf(r),ye=td(r);break;case"second":q=Tb(e,!1),de=_f(r),ye=rd(r);break;case"millisecond":q=EP(e),de=xf(r),ye=id(r);break}re>=i[0]&&ee<=i[1]&&u(q,ee,re,de,ye,_t,X),k==="year"&&z.length>1&&Z===0&&z.unshift({value:z[0].value-q})}}for(var Z=0;Z<X.length;Z++)z.push(X[Z])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=mo(s[d]);if(Nx(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?mo(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(k,W){return k.value-W.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var T=we(U(c,function(k){return we(k,function(W){return W.value>=i[0]&&W.value<=i[1]&&!W.notAdd})}),function(k){return k.length>0}),C=T.length-1,w=[],d=0;d<T.length;++d)for(var D=T[d],E=0;E<D.length;++E){var A=na(D[E].value,r);w.push({value:D[E].value,time:{level:C-d,upperTimeUnit:A,lowerTimeUnit:A}})}Ka(w,S_,null),w.sort(function(k,W){return k.value-W.value});var I=w[0],M=w[w.length-1],O=na(i[0],r),N=na(i[1],r);return(!I||I.value>i[0])&&w.unshift({value:i[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!M||M.value<i[1])&&w.push({value:i[1],time:{level:0,upperTimeUnit:N,lowerTimeUnit:N},notNice:!0}),w}var wb=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Kt,r[1]+=Kt),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Kt}t.setExtent(r[0],r[1]);var n=gl(e.splitNumber,10),a=Uo(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Dc.length,u=Math.min(TP(Dc,a,0,l),l-1),f=Dc[u][1],c=Dc[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Dt.registerClass(bb);var Eb=bb;var Ac=0,Mc=1,IP=2,Ib=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Sa.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Ac]=n[Mc]=a[Ac]=a[Mc]=NaN,Sc(i,e.mapperMethods);var s=Be(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},IP,u),i.powStub=new Sa({breakParsed:u.original}),i.intervalStub=new Sa({breakParsed:u.transformed}),Tc(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Be(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(r||{}),function(f){var c=f.value,p=Cc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ra(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(ml(r,this.base))},scale:function(r){return Cc(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=ml(r,this.base),i&&i.depth===ko?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Db.depth=n,Ab.lookup=this._lookup,Cc(n===ko?r:this.intervalStub.transformOut(r,Db),this.base,Ab)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Nt,r,i)},setExtent2:function(r,i,n){if(!(!li(i,n)||i<=0||n<=0)){var a=Mb,o=Mb;if(r===Nt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Ac]=i,a[Mc]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Ac]=ml(i,l),o[Mc]=ml(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return li(i[0],i[1])&&Xe(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(Dt);Dt.registerClass(Ib);var Db={},Ab={},Mb=[],Ob=Ib;var Ic={value:1,category:1,time:1,log:1};var Lb=ne();function Lc(t){var e=t.get("type");return(e==null||!Ee(Ic,e)&&!Dt.getClass(e))&&(e="value"),e}function Pc(t,e,r){var i=Be(),n;switch(i&&(n=dm(t,e,r)),e){case"category":return new xb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:ut()});case"time":return new Eb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Ob({logBase:t.get("logBase"),breakOption:n});case"value":return new Sa({breakOption:n});default:return new(Dt.getClass(e)||Sa)({})}}function Pb(t,e,r){var i=r?xa(t,null):t.getExtentUnsafe(Nt,null),n=i[0],a=i[1];return li(n,a)?n===e||a===e?LP:n<e&&a>e?OP:Oc:Oc}var OP=1,LP=2,Oc=3;function Rb(t){Lb(t).noOnMyZero=!0}function Nb(t){return Lb(t).noOnMyZero}function yl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=Rx(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(B(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(G(e)){if(t.type==="category")return function(n,a){return e(Ho(t,n),n.value-t.scale.getExtent()[0],null)};var i=Be();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Ho(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Ho(t,e){var r=t.scale;return at(r)?r.getLabel(e):e.value}function Rc(t){var e=t.get("interval");return e??"auto"}function kb(t){return t.type==="category"&&Rc(t.getLabelModel())===0}function Bb(t,e){var r={};return b(t.mapDimensionsAll(e),function(i){r[xc(t,i)]=!0}),ue(r)}function Ji(t){return t==="middle"||t==="center"}function Ta(t){return t.getShallow("show")}function dm(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Be())return;if(!r||!PP(e)){if(0)var n;return}return i}}function PP(t){return t!=="category"}function Nc(t,e,r,i,n,a){var o=Qr(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:ko},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=yb(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function yi(t,e){return at(t)?t.getRawOrdinalNumber(e.value):e.value}function kc(t,e){return at(t)&&!!e.get("boundaryGap")}var Bc=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var RP=Su(),Uc="|&",Go=ne(),zc=-2,Ub=-1,NP=ne();function zb(t,e){var r=t.model,i=Go(da(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function Fb(t,e){return Gb(zb(t,e))}function Vb(t,e){var r=[];return Hb(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(Gb(i))}),r}function Hb(t,e){var r=Go(da(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function Gb(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function Wb(t,e){var r=t.model.ecModel,i=Go(da(r)).axSer;i&&Fc(r,i.get(t.model.uid),e)}function _m(t,e,r){var i=zb(t,e);i&&Fc(t.model.ecModel,i.sers,r)}function Fc(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function Yb(t,e,r){var i=Go(da(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function xm(t,e){var r=t.model,i=Go(da(r.ecModel)).keys;i&&b(i.get(r.uid),function(n){if(0)var a;e(n)})}function kP(t){var e=NP(mT(t)),r=e.keyed||(e.keyed=V());Hb(t,function(i,n,a){var o=r.get(n)||r.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&qb.liPosMinGap(t,i,s)})}function Xb(t,e){qb[t]=e}var qb={};function Sm(t,e,r){if(t){var i=e.ecModel,n=Go(da(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=ym.get(gm(c,p,r))||ym.get(gm(c,p,null));if(h){var v=n.keyed||(n.keyed=V()),d=n.keys||(n.keys=V()),m=h.key,g=v.get(m)||v.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function gm(t,e,r){return t+Uc+Y(e,!0)+Uc+(r||"")}function Zb(t,e){var r=gm(e.seriesType,e.baseAxis,e.coordSysType);ym.set(r,e),RP(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:kP})})}var ym=V();var BP=ne(),Qb=1;var UP=3,$b=(function(){function t(e,r,i,n,a){var o=at(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(zo(e)||Qr(e)||Fo(e))&&(Rh(f,_l(e,r.get("dataMin",!0))),Nh(f,_l(e,r.get("dataMax",!0)))),__(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=_l(e,G(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=_l(e,G(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=zP(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Er(c[0])&&(c[0]=NaN),!Er(c[1])&&(c[1]=NaN);var g=l||Jr(c[0])||Jr(c[1])||o&&!s,y=zo(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=_l(e,r.get("startValue",!0)),T=S!=null;!Xe(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),Xe(S)&&(T||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var C=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};Kb(C,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),Kb(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Kb(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),x_(e))}function _l(t,e){return e==null?null:Jr(e)?NaN:t.parse(e)}function zP(t,e){var r;if(at(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=R(i)?i:[i,i]}return[jb(r[0]),jb(r[1])]}function jb(t){return br(typeof t=="boolean"?0:t,1)||0}function Jb(t){var e=BP(t.scale);return e.extent||(e.extent=ut()),e}function eC(t,e){Jb(t).dimIdxInCoord=e.get(t.dim)}function tC(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||FP(r,t,n,i,e)}function FP(t,e,r,i,n){var a=Jb(e),o=a.extent,s=!1;Wb(e,function(f){if(f.boxCoordinateSystem){var c=wf(f).coord,p=a.dimIdxInCoord;if(p>=0){if(R(c)){var h=c[p];h!=null&&!R(h)&&Cs(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;b(Bb(v,r),function(m){y_(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=HP(t,e,i),u=new $b(t,i,o,s,l);rC(t,u,n),a.extent=null}function VP(t,e){var r=t.scale;rC(r,new $b(r,t.model,e,!1,!1),UP)}function rC(t,e,r){t.rawExtentInfo=e,e.from=r}function iC(t,e){Tm.set(t,e)}var Tm=V();function Vc(t,e,r,i,n){t.rawExtentInfo||VP({scale:t,model:e},n||ut());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function HP(t,e,r){var i=kc(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return xm(e,function(o){a=!!Tm.get(o)||a}),a}function nC(t,e,r,i){if(r.ctnShp){var n;if(xm(t,function(s){var l=Tm.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Rh(n,u[0]),Nh(n,u[1]),Rb(t))}}),!!n){var a=e.getExtent();if(at(e))t.onBand||e.setExtent2(No,Re(a[0],a[0]+n[0]),fe(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Re(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=fe(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(No,o[0],o[1])}}}}function aC(t,e){var r=Qr(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=wc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?WP(i,e):GP(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Lr(c)),n[0]||(s[0]=ve(sr(s[0]/f)*f,u)),n[1]||(s[1]=ve(Oi(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Nc(t,n,o,s,a,l)}function GP(t,e){var r=gl(e.splitNumber,5),i=Uo(t),n=e.minInterval,a=e.maxInterval,o=oi(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Lr(o),l=t.getExtent(),u=[ve(Oi(l[0]/o)*o,s),ve(sr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function WP(t,e){var r=gl(e.splitNumber,10),i=t.getExtent(),n=Uo(t),a=fe(Ya(n),1),o=r/n*a;o<=.5&&(a*=10);var s=Lr(a),l=[ve(Oi(i[0]/a)*a,s),ve(sr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function bm(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;Cm(e,r,i,n,null)}function Cm(t,e,r,i,n){var a=Vc(t,e,i,r,n),o=zo(t)||Fo(t);YP(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&nC(r,t,a,i)}function YP(t,e){XP[t.type](t,e)}var XP={interval:aC,log:aC,time:wb,ordinal:Le};function qP(t){return $i(null,t)}var ZP={isDimensionStacked:Or,enableDataStack:_c,getStackedDimension:xc};function KP(t,e){var r=e;e instanceof Se||(r=new Se(e));var i=Lc(r),n=Pc(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),Cm(n,r,null,null,t),n}function jP(t){et(t,Bc)}function QP(t,e){return e=e||{},Ar(t,null,null,e.state!=="normal")}var oC=[],$P={registerPreprocessor:pc,registerProcessor:hc,registerPostInit:tm,registerPostUpdate:rm,registerUpdateLifecycle:ll,registerAction:ji,registerCoordinateSystem:im,registerLayout:nm,registerVisual:mi,registerTransform:sm,registerLoading:vc,registerMap:om,registerImpl:hT,PRIORITY:jd,ComponentModel:ge,ComponentView:Je,SeriesModel:wt,ChartView:ct,registerComponentModel:function(t){ge.registerClass(t)},registerComponentView:function(t){Je.registerClass(t)},registerSeriesModel:function(t){wt.registerClass(t)},registerChartView:function(t){ct.registerClass(t)},registerCustomSeries:function(t,e){jf(t,e)},registerSubTypeDefaulter:function(t,e){ge.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ch(t,e)}};function At(t){if(R(t)){b(t,function(e){At(e)});return}ie(oC,t)>=0||(oC.push(t),G(t)&&(t={install:t}),t.install($P))}var JP=1e-8;function sC(t,e){return Math.abs(t-e)<JP}function Em(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=pr(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!sC(n[0],s[0])||!sC(n[1],s[1]))&&(i+=pr(n[0],n[1],s[0],s[1],e,r)),i!==0}var tR=[];function Dm(t,e){for(var r=0;r<t.length;r++)He(t[r],t[r],e)}function lC(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(rr(e,e,a),ir(r,r,a))}}function rR(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var uC=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var Am=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var Mm=(function(){function t(e){this.type="linestring",this.points=e}return t})();var fC=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return rR(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?lC(s.exterior,n,a,r):b(s.points,function(l){lC(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Em(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Em(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new j(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(Dm(p.exterior,u),b(p.interiors,function(h){Dm(h,u)})):b(p.points,function(h){Dm(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(uC);var cX=(function(t){L(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=nr(tR),o=r;o&&!o.isGeoSVGGraphicRoot;)xr(a,o.getLocalTransform(),a),o=o.parent;return zt(a,a),He(n,n,a),n},e})(uC);function iR(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return b(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=cC(s,o,r);break;case"Polygon":Im(s,o,r);break;case"MultiLineString":Im(s,o,r);break;case"MultiPolygon":b(s,function(l,u){return Im(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function Im(t,e,r){for(var i=0;i<t.length;i++)t[i]=cC(t[i],e[i],r)}function cC(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function Hc(t,e){return t=iR(t),U(we(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Am(o[0],o.slice(1)));break;case"MultiPolygon":b(n.coordinates,function(l){l[0]&&a.push(new Am(l[0],l.slice(1)))});break;case"LineString":a.push(new Mm([n.coordinates]));break;case"MultiLineString":a.push(new Mm(n.coordinates))}var s=new fC(i[e||"name"],a,i.cp);return s.properties=i,s})}var Om={};Ut(Om,{MAX_SAFE_INTEGER:()=>ys,asc:()=>Pi,getPercentWithPrecision:()=>r_,getPixelPrecision:()=>e_,getPrecision:()=>Vt,getPrecisionSafe:()=>Eh,isNumeric:()=>xs,isRadianAroundZero:()=>In,linearMap:()=>gs,nice:()=>oi,numericToNumber:()=>lr,parseDate:()=>St,parsePercent:()=>We,quantile:()=>n_,quantity:()=>Ya,quantityExponent:()=>Xa,reformIntervals:()=>a_,remRadian:()=>_s,round:()=>Jy});var Lm={};Ut(Lm,{format:()=>pi,parse:()=>St,roundTime:()=>go});var Pm={};Ut(Pm,{Arc:()=>Xn,BezierCurve:()=>Gs,BoundingRect:()=>j,Circle:()=>Wn,CompoundPath:()=>Gu,Ellipse:()=>Bs,Group:()=>xe,Image:()=>Lt,IncrementalDisplayable:()=>ju,Line:()=>qt,LinearGradient:()=>no,Polygon:()=>Vs,Polyline:()=>Hs,RadialGradient:()=>Yu,Rect:()=>me,Ring:()=>Fs,Sector:()=>qr,Text:()=>De,clipPointsByRect:()=>Uv,clipRectByRect:()=>zv,createIcon:()=>$n,extendPath:()=>Pv,extendShape:()=>Lv,getShapeClass:()=>Rv,getTransform:()=>kv,initProps:()=>dt,makeImage:()=>Xs,makePath:()=>lo,mergePath:()=>Nv,registerShape:()=>Zt,resizePath:()=>Ju,updateProps:()=>Ue});var Rm={};Ut(Rm,{addCommas:()=>qs,capitalFirst:()=>Vx,encodeHTML:()=>je,formatTime:()=>Fx,formatTpl:()=>_o,getTextRect:()=>nd,getTooltipMarker:()=>Tf,normalizeCssArray:()=>Zr,toCamelCase:()=>yo,truncateText:()=>Vh});var Nm={};Ut(Nm,{bind:()=>ce,clone:()=>$,curry:()=>Te,defaults:()=>te,each:()=>b,extend:()=>P,filter:()=>we,indexOf:()=>ie,inherits:()=>jo,isArray:()=>R,isFunction:()=>G,isObject:()=>F,isString:()=>B,map:()=>U,merge:()=>le,reduce:()=>pt});var nR=ne(),xl=ne(),kt={estimate:1,determine:2};function Wo(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function pC(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:U(vC(r,i),function(n,a){return{formattedLabel:yl(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?aR(t,e):sR(t)}function hC(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:vC(n,i)}:t.type==="category"?oR(t,e):{ticks:i.getTicks(r)}}function vC(t,e){var r=e.getExtent(),i=[];return b(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),Ka(i,T_,null),Pi(i),U(i,function(n){return{value:n}})}function aR(t,e){var r=t.getLabelModel(),i=dC(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function dC(t,e,r){var i=uR(t),n=Rc(e),a=r.kind===kt.estimate;if(!a){var o=gC(i,n);if(o)return o}var s,l;G(n)?s=Gc(t,n,!1):(l=n==="auto"?fR(t,r):n,s=Gc(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return km(i,n,u),!0}):km(i,n,u),u}function oR(t,e){var r=lR(t),i=Rc(e),n=gC(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),G(i))a=Gc(t,i,!0);else if(i==="auto"){var s=dC(t,t.getLabelModel(),Wo(kt.determine));o=s.labelCategoryInterval,a=U(s.labels,function(l){return l.tick})}else o=i,a=Gc(t,o,!0);return km(r,i,{ticks:a,tickCategoryInterval:o})}function sR(t){var e=t.scale.getTicks(),r=yl(t);return{labels:U(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var lR=mC("axisTick"),uR=mC("axisLabel");function mC(t){return function(r){return xl(r)[t]||(xl(r)[t]={list:[]})}}function gC(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function km(t,e,r){return t.list.push({key:e,value:r}),r}function fR(t,e){if(e.kind===kt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return xl(t).autoInterval=r,!0}),r}var i=xl(t).autoInterval;return i??(xl(t).autoInterval=t.calculateCategoryInterval(e))}function yC(t,e){var r=e.kind,i=pR(t),n=yl(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=cu(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var T=Math.max(0,Math.floor(Math.min(x,S)));if(r===kt.estimate)return e.out.noPxChangeTryDetermine.push(ce(cR,null,t,T,l)),T;var C=_C(t,T,l);return C??T}function cR(t,e,r){return _C(t,e,r)==null}function _C(t,e,r){var i=nR(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function pR(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Gc(t,e,r){var i=yl(t),n=t.scale,a=[],o=G(e);return Ec(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var hR=.8;function Pr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=mb(i);Xe(o)||(o=NaN);var s=t.getExtent(),l=Ae(s[1]-s[0]);return at(i)?vR(r,t,o,l):n?dR(r,t,o,l,n):a==null,a!=null&&(r.w=Xe(r.w)?fe(a,r.w):a),r}function vR(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function dR(t,e,r,i,n){var a=!1,o=-1/0;b(n.key?[Fb(e,n.key)]:Vb(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===zc&&(a=!0))}),Xe(r)&&r>0&&Xe(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*hR,t.w2=t.w*r/i)}var xC=[0,1],mR=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),gs(e,xC,SC(this),r)},t.prototype.coordToData=function(e,r){var i=gs(e,SC(this),xC,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=hC(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=U(i.ticks,function(s){return{coord:this.dataToCoord(yi(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=gR(this,n,a);return U(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(at(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=U(i,function(a){return U(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Wo(kt.determine),pC(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Pr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Wo(kt.determine),yC(this,e)},t})();function SC(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function gR(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=Pr(t).w;if(!n)return!1;b(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Wc=mR;function yR(t){var e=ge.extend(t);return ge.registerClass(e),e}function _R(t){var e=Je.extend(t);return Je.registerClass(e),e}function xR(t){var e=wt.extend(t);return wt.registerClass(e),e}function SR(t){var e=ct.extend(t);return ct.registerClass(e),e}var TC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],TR=1,Yc=2,CC=TR|Yc;function Sl(t,e,r){r=r||CC,e?t.dirty|=r:t.dirty&=~r}function wC(t,e){return e=e||CC,t.dirty==null||!!(t.dirty&e)}function Rr(t){if(t)return wC(t)&&bR(t,t.label,t),t}function bR(t,e,r){var i=e.getComputedTransform();t.transform=rf(t.transform,i);var n=t.localRect=co(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=ea.textMargin);for(var c=0;c<4;c++)Bm[c]=f===ea.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ea.textMargin&&uo(n,Bm,!1,!1);var p=t.rect=co(t.rect,n);return i&&p.applyTransform(i),f===ea.minMargin&&uo(p,Bm,!1,!1),t.axisAligned=tf(i),(t.label=t.label||{}).ignore=e.ignore,Sl(t,!1),Sl(t,!0,Yc),t}var Bm=[0,0,0,0];function EC(t,e,r){return t.transform=rf(t.transform,r),t.localRect=co(t.localRect,e),t.rect=co(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=tf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function DC(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Um(t,e){for(var r=0;r<TC.length;r++){var i=TC[r];t[i]==null&&(t[i]=e[i])}return Rr(t)}function bC(t){var e=t.obb;return(!e||wC(t,Yc))&&(t.obb=e=e||new Ku,e.fromBoundingRect(t.localRect,t.transform),Sl(t,!1,Yc)),e}function AC(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Rr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Xc(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Xc(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:bC(t).intersect(bC(e),r,i)}var CR=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new xe,n=$t("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=$t(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=K.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(wt),MC=CR;function Yo(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=vi(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(vi(t,e,r[o]));return a.join(" ")}}function qc(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!R(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var wR=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=$t(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=ER,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Vn(this.childAt(0))},e.prototype.downplay=function(){Hn(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ue(h,v,s,i),Qu(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,dt(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=Gi(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=$f(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var T=r.getItemVisual(i,"style"),C=T.fill;if(s instanceof Lt){var w=s.style;s.useStyle(P({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},T))}else s.__isEmptyBrush?s.useStyle(P({},T)):s.useStyle(T),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(i,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var A=o&&o.useNameLabel;Hi(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:C,defaultOpacity:T.opacity});function I(N){return A?r.getName(N):Yo(r,N)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*O,M.scaleY=this._sizeY*O,this.setSymbolScale(1),Gn(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=pe(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&oo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();oo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return yT(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(xe);function ER(t,e){this.parent.drift(t,e)}var Tl=wR;function Zc(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function IC(t){return t!=null&&!F(t)&&(t={isIgnore:t}),t||{}}function OC(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Gi(e),cursorStyle:e.get("cursor")}}function LC(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var DR=(function(){function t(e){this.group=new xe,this._SymbolCtor=e||Tl}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=IC(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=OC(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Zc(e,p,c,r)&&LC(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Zc(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Ue(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);Zc(r,l,a,e)?(s=s||LC(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=OC(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=IC(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Ys)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Zc(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Jn(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),PC=DR;function Kc(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=AR(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=U(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Or(e,c[0])&&(p=!0,c[0]=h),Or(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function AR(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:se(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function jc(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Bt(t,e){return!isFinite(t)||!isFinite(e)}var MR=typeof Float32Array!==Fi?Float32Array:void 0,RC=typeof Float64Array!==Fi?Float64Array:void 0;function Jt(t){return Qc({ctor:MR},t).arr}function Qc(t,e){var r=t.arr,i=t.ctor;if(e>ys&&(e=ys),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function IR(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function Fm(t,e,r,i,n,a,o,s){for(var l=IR(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=Kc(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,T=void 0,C=void 0;switch(x.cmd){case"=":T=x.idx*2,C=x.idx1*2;var w=g[T],D=g[T+1],E=y[C],A=y[C+1];(isNaN(w)||isNaN(D))&&(w=E,D=A),u.push(w,D),f.push(E,A),c.push(r[T],r[T+1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=m.dataDimsForPoint,O=n.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);C=I*2,u.push(O[0],O[1]),f.push(y[C],y[C+1]);var N=jc(m,n,e,I);c.push(N[0],N[1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(I));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(de,ye){return d[de]-d[ye]});for(var k=u.length,W=Jt(k),z=Jt(k),X=Jt(k),Q=Jt(k),Z=[],_=0;_<v.length;_++){var ee=v[_],re=_*2,q=ee*2;W[re]=u[q],W[re+1]=u[q+1],z[re]=f[q],z[re+1]=f[q+1],X[re]=c[q],X[re+1]=c[q+1],Q[re]=p[q],Q[re+1]=p[q+1],Z[_]=h[ee]}return{current:W,next:z,stackedOnCurrent:X,stackedOnNext:Q,status:Z}}var en=Math.min,tn=Math.max;function Vm(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Bt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,T=e[S*2],C=e[S*2+1];T===g&&C===y&&m<i;)m++,S+=a,d+=a,T=e[S*2],C=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var w=m+1;if(l)for(;Bt(T,C)&&w<i;)w++,S+=a,T=e[S*2],C=e[S*2+1];var D=.5,E=0,A=0,I=void 0,M=void 0;if(w>=i||Bt(T,C))h=g,v=y;else{E=T-u,A=C-f;var O=g-u,N=T-g,k=y-f,W=C-y,z=void 0,X=void 0;if(s==="x"){z=Math.abs(O),X=Math.abs(N);var Q=E>0?1:-1;h=g-Q*z*o,v=y,I=g+Q*X*o,M=y}else if(s==="y"){z=Math.abs(k),X=Math.abs(W);var Z=A>0?1:-1;h=g,v=y-Z*z*o,I=g,M=y+Z*X*o}else z=Math.sqrt(O*O+k*k),X=Math.sqrt(N*N+W*W),D=X/(X+z),h=g-E*o*(1-D),v=y-A*o*(1-D),I=g+E*o*D,M=y+A*o*D,I=en(I,tn(T,g)),M=en(M,tn(C,y)),I=tn(I,en(T,g)),M=tn(M,en(C,y)),E=I-g,A=M-y,h=g-E*z/X,v=y-A*z/X,h=en(h,tn(u,g)),v=en(v,tn(f,y)),h=tn(h,en(u,g)),v=tn(v,en(f,y)),E=g-h,A=y-v,I=g+E*X/z,M=y+A*X/z}t.bezierCurveTo(c,p,h,v,g,y),c=I,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var NC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),kC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new NC},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Bt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Bt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Vm(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Gt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?Tn(s,h,d,g,r,f):Tn(l,v,m,y,r,f);if(S>0)for(var T=0;T<S;T++){var C=f[T];if(C<=1&&C>=0){var x=u?Pe(l,v,m,y,C):Pe(s,h,d,g,C);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(ae);var OR=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(NC),BC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new OR},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Bt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Bt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Vm(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Vm(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(ae);function Hm(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new me({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=G(n)?function(m){n(m,c)}:null;dt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function Gm(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new qr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,dt(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function UC(t,e,r,i,n){if(t){if(t.type==="polar")return Gm(t,e,r);if(t.type==="cartesian2d")return Hm(t,e,r,i,n)}else return null;return null}function $c(t,e){return t.type===e}function zC(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function FC(t){for(var e=ut(),r=ut(),i=0;i<t.length;){var n=t[i++],a=t[i++];Bt(n,a)||(Cs(e,n),Cs(r,a))}return[e,r]}function VC(t,e){var r=FC(t),i=r[0],n=r[1],a=FC(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function HC(t){return se(t)?t:t?.5:0}function LR(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=Jt(i*2),a=0;a<i;a++){var o=jc(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function rn(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Bt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function PR(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=tu(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function RR(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=U(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=PR(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";b(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new no(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function NR(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&kR(a,e))){var o=e.mapDimension(a.dim),s={};return b(a.getViewLabels(),function(l){l.tick.offInterval||(s[yi(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function kR(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Tl.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function BR(t){for(var e=t.length/2;e>0&&Bt(t[e*2-2],t[e*2-1]);e--);return e-1}function GC(t,e){return[t[e*2],t[e*2+1]]}function UR(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Bt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function WC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<vr.length;e++)if(t.get([vr[e],"endLabel","show"]))return!0;return!1}function Wm(t,e,r,i){if($c(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=WC(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Hm(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return Gm(e,r,i)}function zR(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var FR=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new xe,i=new PC;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=ce(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Kc(a,s,_),S=y&&LR(a,s,x),T=r.get("showSymbol"),C=r.get("connectNulls"),w=T&&!c&&NR(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(Ie,Ke){Ie.__temp&&(o.remove(Ie),D.setItemGraphicEl(Ke,null))}),T||h.remove(),o.add(m);var E=c?!1:r.get("step"),A;a&&a.getArea&&r.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var I=RR(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&E===this._step))T&&h.updateData(s,{isIgnore:w,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Ie){return[f[Ie*2],f[Ie*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,A),E&&(S&&(S=rn(S,f,a,E,C)),f=rn(f,null,a,E,C)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Mr(I)),m.setClipPath(Wm(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Mr(I));var M=m.getClipPath();if(M){var O=Wm(this,a,!1,r);dt(M,{shape:O.shape},r)}else m.setClipPath(Wm(this,a,!0,r));T&&h.updateData(s,{isIgnore:w,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Ie){return[f[Ie*2],f[Ie*2+1]]}}),(!zC(this._stackedOnPoints,S)||!zC(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,E,_,C):(E&&(S&&(S=rn(S,f,a,E,C)),f=rn(f,null,a,E,C)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var N=r.getModel("emphasis"),k=N.get("focus"),W=N.get("blurScope"),z=N.get("disabled");if(v.useStyle(te(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Rs(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var X=v.getState("emphasis").style;X.lineWidth=+v.style.lineWidth+1}pe(v).seriesIndex=r.seriesIndex,Gn(v,k,W,z);var Q=HC(r.get("smooth")),Z=r.get("smoothMonotone");if(v.setShape({smooth:Q,smoothMonotone:Z,connectNulls:C}),d){var ee=s.getCalculationInfo("stackedOnSeries"),re=0;d.useStyle(te(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ee&&(re=HC(ee.get("smooth"))),d.setShape({smooth:Q,stackedOnSmooth:re,smoothMonotone:Z,connectNulls:C}),Rs(d,r,"areaStyle"),pe(d).seriesIndex=r.seriesIndex,Gn(d,k,W,z)}var q=this._changePolyState;s.eachItemGraphicEl(function(Ie){Ie&&(Ie.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var de=r.get("triggerEvent"),ye=r.get("triggerLineEvent"),_t=ye===!0||de===!0||de==="line",yr=ye===!0||de===!0||de==="area";this.packEventData(r,v,_t),d&&this.packEventData(r,d,yr)},e.prototype.packEventData=function(r,i,n){pe(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=ur(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Bt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new Tl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ct.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=ur(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ct.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;pv(this._polyline,r),i&&pv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new kC({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new BC({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=G(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var T=n;a?(g=T.x,y=T.x+T.width,_=h.x):(g=T.y+T.height,y=T.y,_=h.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var w=G(c)?c(v):f*C+p,D=d.getSymbolPath(),E=D.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:w}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:w}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(WC(r)){var o=r.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 De({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=BR(l);f>=0&&(Hi(s,Gi(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?qc(o,h):Yo(o,c)},enableTextSetter:!0},zR(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),T=(g?0:-d)*(y?-1:1),C=g?"x":"y",w=UR(c,x,C),D=w.range,E=D[1]-D[0],A=void 0;if(E>=1){if(E>1&&!h){var I=GC(c,D[0]);u.attr({x:I[0]+S,y:I[1]+T}),o&&(A=p.getRawValue(D[0]))}else{var I=f.getPointOn(x,C);I&&u.attr({x:I[0]+S,y:I[1]+T});var M=p.getRawValue(D[0]),O=p.getRawValue(D[1]);o&&(A=Ph(n,v,M,O,w.t))}a.lastFrameIndex=D[0]}else{var N=r===1||a.lastFrameIndex>0?D[0]:0,I=GC(c,N);o&&(A=p.getRawValue(N)),u.attr({x:I[0]+S,y:I[1]+T})}if(o){var k=po(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Fm(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=rn(p.stackedOnCurrent,p.current,n,o,l),h=rn(p.current,null,n,o,l),m=rn(p.stackedOnNext,p.next,n,o,l),d=rn(p.next,null,n,o,l)),VC(h,d)>3e3||f&&VC(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Ue(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Ue(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var T=r.getItemGraphicEl(_[x].idx1);T&&y.push({el:T,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,w=0;w<y.length;w++){var D=y[w].el,E=y[w].ptIdx*2;D.x=C[E],D.y=C[E+1],D.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(ct),YC=FR;function Ym(t,e){return{seriesType:t,plan:pa(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=U(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Or(i,s[0])&&(s[0]=u),Or(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&Jt(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var T=f.get(c,_);S=n.dataToPoint(T,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var VR={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HR=function(t){return Math.round(t.length/2)};function bl(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;B(a)?v=VR[a]:G(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,HR))}}}}}function Xm(t){t.registerChartView(YC),t.registerSeriesModel(MC),t.registerLayout(Ym("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,bl("line"))}var GR=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Wc),XC=GR;var WR=null;function ba(){return WR}var qC="expandAxisBreak";var nn=Math.PI,YR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],XR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],an=ne(),jC=ne(),Zm=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function qR(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=Qm(t.axisName)&&Ji(t.nameLocation);b(i,function(v){var d=Rr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?zt(Cl,m.transform):nr(Cl),d.transform&&xr(Cl,Cl,d.transform),j.copy(Jc,d.localRect),Jc.applyTransform(Cl),s?s.union(Jc):j.copy(s=new j(0,0,0,0),Jc))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new j(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Cl=st(),Jc=new j(0,0,0,0),Km=function(t,e,r,i,n,a){if(Ji(t.nameLocation)){var o=a.stOccupiedRect;o&&QC(EC({},o,a.transGroup.transform),i,n)}else jm(a.labelInfoList,a.dirVec,i,n)};function QC(t,e,r){var i=new be;Xc(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&DC(e,i)}function jm(t,e,r,i){for(var n=be.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||QC(s,r,i)}}var Ca=(function(){function t(e,r,i,n){this.group=new xe,this._axisModel=e,this._api=r,this._local={},this._shared=n||new Zm(Km),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Y(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Y(e.nameDirection,1),tickDirection:Y(e.tickDirection,1),labelDirection:Y(e.labelDirection,1),labelOffset:Y(e.labelOffset,0),silent:Y(e.silent,!0),axisName:n,nameLocation:tr(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Qm(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new xe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new be(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(ZR,function(n){e[n]&&KR[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=_s(r-e),a,o;return In(n)?(o=i>0?"top":"bottom",a="center"):In(n-nn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<nn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),ZR=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],KR={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(He(c,c,f),He(p,p,f));var v=P({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&ia(i.axis.scale))ba().buildAxisBreakLine(i,n,a,d);else{var m=new qt(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));Qn(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);B(g)&&(g=[g,g]),(B(y)||se(y))&&(y=[y,y]);var _=$f(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];b([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(T,C){if(g[C]!=="none"&&g[C]!=null){var w=$t(g[C],-x/2,-S/2,x,S,v.stroke,!0),D=T.r+T.offset,E=h?p:c;w.attr({rotation:T.rotate,x:E[0]+D*Math.cos(t.rotation),y:E[1]-D*Math.sin(t.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=KC(e,n,s);u&&ZC(t,e,r,i,n,a,o,kt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=KC(e,n,s);u&&ZC(t,e,r,i,n,a,o,kt.determine);var f=JR(t,n,a,i);$R(t,e.labelLayoutList,f),eN(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Qm(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new be(0,0),y=new be(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=st();y.transform(vn(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*nn/180);var S,T;Ji(c)?S=Ca.innerTextLayout(t.rotation,x??t.rotation,p):(S=jR(t.rotation,c,x||0,d),T=t.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var C=h.getFont(),w=i.get("nameTruncate",!0)||{},D=w.ellipsis,E=fn(t.raw.nameTruncateMaxWidth,w.maxWidth,T),A=s.nameMarginLevel||0,I=new De({x:g.x,y:g.y,rotation:S.rotation,silent:Ca.isLabelSilent(i),style:Ar(h,{text:f,font:C,overflow:"truncate",width:E,ellipsis:D,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(fo({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Ca.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,pe(I).eventData=M}a.add(I),I.updateTransform(),e.nameEl=I;var O=l.nameLayout=Rr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Ji(c)?YR[A]:XR[A]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),t.shouldNameMoveOverlap&&O){var N=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,O,y,N)}}}};function ZC(t,e,r,i,n,a,o,s){JC(e)||tN(t,e,n,s,i,o);var l=e.labelLayoutList;rN(t,i,l,a),aN(i,t.rotation,l);var u=t.optionHideOverlap;QR(i,l,u),u&&AC(we(l,function(f){return f&&!f.label.ignore})),qR(t,r,i,l)}function jR(t,e,r,i){var n=_s(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return In(n-nn/2)?(o=l?"bottom":"top",a="center"):In(n-nn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<nn*1.5&&n>nn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function QR(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(kb(i))return;function a(u,f,c){var p=Rr(e[f]),h=Rr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=an(p.label).labelInfo.tick;if(Fo(v)&&d.notNice||at(v)&&d.offInterval){Xo(p.label);return}}if(u===!1||p.suggestIgnore){Xo(p.label);return}if(h.suggestIgnore){Xo(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Um({marginForce:g},p),h=Um({marginForce:g},h)}Xc(p,h,null,{touchThreshold:m})&&Xo(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function $R(t,e,r){t.showMinorTicks||b(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=jC(a),s=an(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Xo(a);return}}})}function Xo(t){t&&(t.ignore=!0)}function $C(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(He(o,o,e),He(s,s,e));var f=new qt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Qn(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=jC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function JR(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=$C(u,r.transform,l,te(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function eN(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=te(l.getLineStyle(),te(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=$C(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function KC(t,e,r){if(JC(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),qm(t,null,null,null))}return!0}function tN(t,e,r,i,n,a){var o=n.axis,s=fn(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new xe;r.add(l);var u=Wo(i);if(!s||o.scale.isBlank()){qm(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(fn(t.raw.labelRotate,f.get("rotate"))||0)*nn/180,h=Ca.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;b(c,function(x,S){var T,C=x.tick,w=x.formattedLabel,D=x.rawLabel,E=f,A=yi(o.scale,C);if(v&&v[A]){var I=v[A];F(I)&&I.textStyle&&(E=new Se(I.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=E.getShallow("align",!0)||h.textAlign,N=Y(E.getShallow("alignMinLabel",!0),O),k=Y(E.getShallow("alignMaxLabel",!0),O),W=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,z=Y(E.getShallow("verticalAlignMinLabel",!0),W),X=Y(E.getShallow("verticalAlignMaxLabel",!0),W),Q=10+(((T=C.time)===null||T===void 0?void 0:T.level)||0);g=Math.min(g,Q),y=Math.max(y,Q);var Z=new De({x:0,y:0,rotation:0,silent:Ca.isLabelSilent(n),z2:Q,style:Ar(E,{text:w,align:S===0?N:S===c.length-1?k:O,verticalAlign:S===0?z:S===c.length-1?X:W,fill:G(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,S):M})});Z.anid="label_"+A;var ee=an(Z);if(ee.labelInfo=x,ee.layoutRotation=h.rotation,fo({el:Z,componentModel:n,itemName:w,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:D,tickIndex:S}}),m){var re=Ca.makeAxisEventDataBase(n);re.targetType="axisLabel",re.value=D,re.tickIndex=S;var q=x.tick.break;if(q){var de=q.parsedBreak;re.break={start:de.vmin,end:de.vmax}}o.type==="category"&&(re.dataIndex=A),pe(Z).eventData=re,q&&nN(n,a,Z,q)}d.push(Z),l.add(Z)});var _=U(d,function(x){return{label:x,priority:an(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});qm(e,_,l,u)}function JC(t){return!!t.labelLayoutList}function qm(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function rN(t,e,r,i){var n=e.get(["axisLabel","margin"]);b(r,function(a,o){var s=Rr(a);if(s){var l=s.label,u=an(l);s.suggestIgnore=l.ignore,l.ignore=!1,Va(_i,iN);var f=e.axis;_i.x=f.dataToCoord(yi(f.scale,u.labelInfo.tick)),_i.y=t.labelOffset+t.labelDirection*n,_i.rotation=u.layoutRotation,i.add(_i),_i.updateTransform(),i.remove(_i),_i.decomposeTransform(),Va(l,_i),l.markRedraw(),Sl(s,!0),Rr(s)}})}var _i=new me,iN=new me;function Qm(t){return!!t}function nN(t,e,r,i){r.on("click",function(n){var a={type:qC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function aN(t,e,r){var i=Be();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&an(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&b(n,function(o){ba().adjustBreakLabelPair(t.axis.inverse,e,[Rr(r[o[0]]),Rr(r[o[1]])])})}}var ep=Ca;function wl(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),fn(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function e1(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function t1(t){var e={xAxisModel:null,yAxisModel:null};return b(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,lt).models[0];e[i]=a}),e}function r1(t,e,r,i,n,a){for(var o=wl(t,r),s=!1,l=!1,u=0;u<e.length;u++)bc(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new ep(r,i,o,n)}function i1(t,e,r){var i=wl(e,r);if(0)var n;t.updateCfg(i)}function n1(){Xb("liPosMinGap",sN)}function sN(t,e,r){var i=V(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=zf(f);function p(_){Fc(t,e.sers,function(x){var S=x.getRawData(),T=S.getDimensionIndex(S.mapDimension(s.dim));T>=0&&_(T,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Qc(wa,h);var v=0;p(function(_,x,S){for(var T=0,C=S.count();T<C;++T){var w=S.get(_,T);isFinite(w)&&(!f||Ff(c,w))&&(u&&(w=l.transformIn(w,null)),wa.arr[v++]=w)}});var d=wa.typed?wa.arr.subarray(0,v):(wa.arr.length=v,wa.arr);wa.typed?d.sort():Pi(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Xe(m)?m:v>0?zc:Ub,r.serUids=i}var wa=Qc({ctor:RC},50);function a1(t){return function(e,r){var i=Pr(e,{fromStat:{key:t}});if(Xe(i.w2))return[-i.w2/2,i.w2/2]}}function El(t,e){return t+Uc+e}function o1(t){return n1(),{liPosMinGap:!at(t.scale)}}var xi="bar";function s1(t,e,r,i){Zb(t,{key:e,seriesType:r,coordSysType:i,getMetrics:o1})}function l1(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var $m={left:0,right:0,top:0,bottom:0},Dl=["25%","25%"],gr="cartesian2d",lN=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=jr(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&jt(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&jt(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:$m,outerBoundsContain:"all",outerBoundsClampWidth:Dl[0],outerBoundsClampHeight:Dl[1],backgroundColor:K.color.transparent,borderWidth:1,borderColor:K.color.neutral30},e})(ge),u1=lN;var uN=Su(),fN="__ec_stack_";function f1(t){return t.get("stack")||fN+t.seriesIndex}function cN(t,e){var r=pN(t,e);return r.columnMap=hN(r),r}function pN(t,e){var r=El(e,gr),i=[],n=Pr(t,{fromStat:{key:r},min:1});return _m(t,r,function(a){i.push({barWidth:We(a.get("barWidth"),n.w),barMaxWidth:We(a.get("barMaxWidth"),n.w),barMinWidth:We(a.get("barMinWidth")||(h1(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:f1(a)})}),{bandWidthResult:n,seriesInfo:i}}function hN(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};b(t.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Ee(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=Re(r,_),r-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var T=d.barGap;T!=null&&(a=T);var C=d.barCategoryGap;C!=null&&(n=C)}),n==null&&(n=fe(35-o.length*4,15)+"%");var l=We(n,e),u=We(a,1),f=(r-l)/(i+(i-1)*u);f=fe(f,0),b(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Re(_,g)),y&&(_=fe(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Re(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=fe(f,0);var c=0,p;b(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return b(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function c1(t){return{seriesType:t,overallReset:function(e){var r=El(t,gr);Yb(e,r,function(i){var n=cN(i,t);_m(i,r,function(a){var o=n.columnMap[f1(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function p1(t){return{seriesType:t,plan:pa(),reset:function(e){if(e1(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Or(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(l1(a))),v=h1(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,T=v&&Jt(S*3),C=v&&l&&Jt(S*3),w=v&&Jt(S),D=i.master.getRect(),E=p?D.width:D.height,A,I=x.getStore(),M=0;(A=_.next())!=null;){var O=I.get(c?m:o,A),N=I.get(s,A),k=h,W=void 0;c&&(W=+O-I.get(o,A));var z=void 0,X=void 0,Q=void 0,Z=void 0;if(p){var ee=i.dataToPoint([O,N]);c&&(k=i.dataToPoint([W,N])[0]),z=k,X=ee[1]+y,Q=ee[0]-k,Z=g,Ae(Q)<d&&(Q=(Q<0?-1:1)*d)}else{var ee=i.dataToPoint([N,O]);c&&(k=i.dataToPoint([N,W])[1]),z=ee[0]+y,X=k,Q=g,Z=ee[1]-k,Ae(Z)<d&&(Z=(Z<=0?-1:1)*d)}v?(T[M]=z,T[M+1]=X,T[M+2]=p?Q:Z,C&&(C[M]=p?D.x:z,C[M+1]=p?X:D.y,C[M+2]=E),w[A]=A):x.setItemLayout(A,{x:z,y:X,width:Q,height:Z}),M+=3}v&&x.setLayout({largePoints:T,largeDataIndices:w,largeBackgroundPoints:C,valueAxisHorizontal:p})}}}}}}function h1(t){return t.pipelineContext&&t.pipelineContext.large}function vN(t){return a1(El(t,gr))}function v1(t){uN(t,function(){function e(r){var i=El(r,gr);s1(t,i,r,gr),iC(i,vN(r))}e("bar"),e("pictorialBar")})}var d1=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)b(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var T=v[S].coord,C=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(C===m){_=T;break}else if(C<m)y=T;else if(y!=null&&C>m){_=(T+y)/2;break}S===1&&(x=C-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(wt);wt.registerClass(d1);var Jm=d1;var dN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return $i(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=Tu(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+xi,e.dependencies=["grid","polar"],e.defaultOption=af(Jm.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:K.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Jm),m1=dN;var mN=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),gN=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new mN},e.prototype.buildPath=function(r,i){var n=i.cx,a=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,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(d*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(ae),eg=gN;function g1(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return An(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(d),T=c+p*x(d),C="left",w="top";switch(s){case"startArc":S=f+(h-l)*_(g),T=c+(h-l)*x(g),C="center",w="top";break;case"insideStartArc":S=f+(h+l)*_(g),T=c+(h+l)*x(g),C="center",w="bottom";break;case"startAngle":S=f+v*_(d)+tp(d,l+y,!1),T=c+v*x(d)+rp(d,l+y,!1),C="right",w="middle";break;case"insideStartAngle":S=f+v*_(d)+tp(d,-l+y,!1),T=c+v*x(d)+rp(d,-l+y,!1),C="left",w="middle";break;case"middle":S=f+v*_(g),T=c+v*x(g),C="center",w="middle";break;case"endArc":S=f+(p+l)*_(g),T=c+(p+l)*x(g),C="center",w="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),T=c+(p-l)*x(g),C="center",w="top";break;case"endAngle":S=f+v*_(m)+tp(m,l+y,!0),T=c+v*x(m)+rp(m,l+y,!0),C="left",w="middle";break;case"insideEndAngle":S=f+v*_(m)+tp(m,-l+y,!0),T=c+v*x(m)+rp(m,-l+y,!0),C="right",w="middle";break;default:return An(i,n,a)}return i=i||{},i.x=S,i.y=T,i.align=C,i.verticalAlign=w,i}}function y1(t,e,r,i){if(se(i)){t.setTextConfig({rotation:i});return}else if(R(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.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),t.setTextConfig({rotation:f})}function tp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function rp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function _1(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;R(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(a){return br(a,n)})}}var tg=Math.max,rg=Math.min,yN=(function(t){L(e,t);function e(){var r=t.call(this)||this;return r.type=xi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Jn(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=_N(r,u);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,T=a&&a.isInitSort,C=a&&a.type==="changeAxisOrder";function w(A){var I=ip[u.type](s,A);if(!I)return null;var M=EN(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[A]=M,M}s.diff(l).add(function(A){var I=s.getItemModel(A),M=ip[u.type](s,A,I);if(M&&(g&&w(A),!(!s.hasValue(A)||!C1[u.type](M)))){var O=!1;v&&(O=x1[u.type](d,M));var N=S1[u.type](r,s,A,M,c,p,f.model,!1,m);h&&(N.forceLabelAnimation=!0),w1(N,s,A,I,M,r,c,u.type==="polar"),T?N.attr({shape:M}):h?T1(h,p,N,M,A,c,!1,!1):dt(N,{shape:M},r,A),s.setItemGraphicEl(A,N),o.add(N),N.ignore=O}}).update(function(A,I){var M=s.getItemModel(A),O=ip[u.type](s,A,M);if(O){if(g){var N=void 0;S.length===0?N=w(I):(N=S[I],N.useStyle(y.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",_):N.setShape("cornerRadius",_),x[A]=N);var k=ip[u.type](s,A),W=I1(c,k,u);Ue(N,{shape:W},p,A)}var z=l.getItemGraphicEl(I);if(!s.hasValue(A)||!C1[u.type](O)){o.remove(z);return}var X=!1;v&&(X=x1[u.type](d,O),X&&o.remove(z));var Q=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if(Q&&(z&&so(z,r,I),z=null),z?Qu(z):z=S1[u.type](r,s,A,O,c,p,f.model,!0,m),h&&(z.forceLabelAnimation=!0),C){var Z=z.getTextContent();if(Z){var ee=po(Z);ee.prevValue!=null&&(ee.prevValue=ee.value)}}else w1(z,s,A,M,O,r,c,u.type==="polar");T?z.attr({shape:O}):h?T1(h,p,z,O,A,c,!0,C):Ue(z,{shape:O},r,A,null),s.setItemGraphicEl(A,z),z.ignore=X,o.add(z)}}).remove(function(A){var I=l.getItemGraphicEl(A);I&&so(I,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new xe);D.removeAll();for(var E=0;E<x.length;++E)D.add(x[E]);o.add(D),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),D1(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),D1(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&UC(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),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(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){so(a,r,pe(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=xi,e})(ct),x1={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=tg(e.x,t.x),s=rg(e.x+e.width,n),l=tg(e.y,t.y),u=rg(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=rg(e.r,t.r),a=tg(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},S1={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new me({shape:P({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?eg:qr,f=new u({shape:i,z2:1});f.name="item";var c=M1(n);if(f.calculateTextPosition=g1(c,{isRoundCap:u===eg}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Ue:dt)(f,{shape:v},a)}return f}};function _N(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function T1(t,e,r,i,n,a,o,s){var l,u;a?(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?Ue:dt)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?Ue:dt)(r,{shape:u},f,n)}function b1(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var xN=["x","y","width","height"],SN=["cx","cy","r","startAngle","endAngle"],C1={cartesian2d:function(t){return!b1(t,xN)},polar:function(t){return!b1(t,SN)}},ip={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?bN(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function TN(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function M1(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function w1(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=_1(i.getModel("itemStyle"),f,!0);P(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?DN(n,a.coordinateSystem):AN(n,a.coordinateSystem),v=Gi(i);Hi(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:Yo(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,y1(t,m==="outside"?h:m,M1(o),i.get(["label","rotate"]))}Sx(d,v,a.getRawValue(r),function(y){return qc(e,y)});var g=i.getModel(["emphasis"]);Gn(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Rs(t,i),TN(n)&&(t.style.fill="none",t.style.stroke="none",b(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function bN(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var CN=(function(){function t(){}return t})(),E1=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new CN},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(ae);function D1(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?b_(t):0;if(u){var c=new E1({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new E1({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,pe(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",A1),p.on("mousemove",A1)),r&&r.push(p)}var A1=ha(function(t){var e=this,r=wN(e,t.offsetX,t.offsetY);pe(e).dataIndex=r>=0?r:null},30,!1);function wN(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function I1(t,e,r){if($c(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function EN(t,e,r){var i=t.type==="polar"?qr:me;return new i({shape:I1(e,r,t),silent:!0,z2:0})}function DN(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function AN(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var O1=yN;function ig(t){t.registerChartView(O1),t.registerSeriesModel(m1),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,c1(xi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,p1(xi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,bl(xi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),v1(t)}var np=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lt).models[0]},e.type="cartesian2dAxis",e})(ge);et(np,Bc);var L1={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:"auto",onZeroAxisIndex:null,lineStyle:{color:K.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:K.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:K.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[K.color.backgroundTint,K.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:K.color.neutral00,borderColor:K.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},MN=le({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},L1),ng=le({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:K.color.axisMinorSplitLine,width:1}}},L1),IN=le({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ng),ON=te({logBase:10},ng),P1={category:MN,value:ng,time:IN,log:ON};function ap(t,e,r,i){b(Ic,function(n,a){var o=le(le({},P1[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=Yi(this),h=p?jr(f):{},v=c.getTheme();le(f,v.get(a+"Axis")),le(f,this.getDefaultOption()),f.type=R1(f),p&&jt(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=ba();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",R1)}function R1(t){return t.type||(t.data?"category":"value")}var LN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),we(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),N1=LN;var Al=["x","y"];function k1(t){return(t.type==="interval"||t.type==="time")&&!ia(t)}var PN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=gr,r.dimensions=Al,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!k1(r)||!k1(i))){var n=xa(r,null),a=xa(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=zt([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new j(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return He(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[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},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return He(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new j(a,o,s,l)},e})(N1),B1=PN;function U1(t,e){var r=t.scale,i=t.model,n=Vc(r,i,i.ecModel,t,null),a=Qr(r),o=Qr(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ae(u[0].value-u[1].value),m=Ae(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),T=s.getExtent(),C=wc(T,x),w,D,E,A,I,M;function O(ee){for(var re=50,q=0;q<re&&!ee();q++)E=a?E*fe(l,2):gb(E),A=Lr(E)}function N(){w=ve(M-E*p,A)}function k(){D=ve(I+E*h,A)}function W(){M=p?ve(w+E*p,A):w}function z(){I=h?ve(D-E*h,A):D}if(x[0]&&x[1]){w=C[0],D=C[1],E=(D-w)/(v+p+h);var X=t.getExtent(),Q=Ae(X[1]-X[0]);A=t_([D,w],Q,.5/v),W(),z(),Xe(A)&&(E=ve(E,A))}else{var Z=C[1]-C[0];E=a?fe(Ya(Z),1):oi(Z/v,Dh),A=Lr(E),x[0]?(w=C[0],O(function(){if(W(),I=ve(M+E*v,A),k(),D>=C[1])return!0})):x[1]?(D=C[1],O(function(){if(z(),M=ve(I-E*v,A),N(),w<=C[0])return!0})):O(function(){M=ve(Oi(C[0]/E)*E,A),I=ve(sr(C[1]/E)*E,A);var ee=It((I-M)/E);if(ee<=v){var re=v-ee,q=void 0,de=n.incl0||a;if(de&&C[0]===0)q=[0,re];else if(de&&C[1]===0)q=[re,0];else{var ye=sr(re/2);q=re%2===0?[ye,ye]:w+D<C[0]+C[1]?[ye,ye+1]:[ye+1,ye]}if(M=ve(M-E*q[0],A),I=ve(I+E*q[1],A),N(),k(),w<=C[0]&&D>=C[1])return!0}})}Nc(r,x,T,[w,D],S,{interval:E,intervalCount:v,intervalPrecision:A,niceExtent:[M,I]})}var z1=[[3,1],[0,2]],RN=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Al,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;b(this._axesList,function(o){tC(o,Qb);var s=o.scale;at(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=ue(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):bm(f)}b(l,function(c){kN(c,c.__alignTo)?bm(c):U1(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};b(i.x,function(o){F1(i,"y",o,a)}),b(i.y,function(o){F1(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=Mf(e,r),a=this._rect=Kr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(ag(o,a),!i){var u=UN(a,s,o,l,r),f=void 0;if(l)W1?(W1(this._axesList,a),ag(o,a)):f=Y1(a.clone(),"axisLabel",null,a,o,u,n);else{var c=zN(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=Y1(p,h,v,a,o,u,n))}X1(a,o,kt.determine,null,f,n),b(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}F(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",lt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",lt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ie(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(p,h){var v="x"+c+"y"+h,d=new B1(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),H1(s.x),H1(s.y);function u(f){return function(c,p){if(NN(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=Lc(c),d=new XC(f,Pc(c,v,!0),[0,0],v,h);d.onBand=kc(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return b(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ie(r,a)<0&&r.push(a),ie(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),b(o._axesList,function(s){eC(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;Gx({targetModel:n,coordSysType:gr,coordSysProvider:s});function s(){var l=t1(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Sm(a,n,gr),Sm(o,n,gr))},this),i},t.dimensions=Al,t.dimIdxMap=fl(Al),t})();function NN(t,e){return t.getCoordSysModel()===e}function F1(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)V1(s,n[l])&&(a=n[l]);else for(var u in n)if(Ee(n,u)&&V1(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function V1(t,e){if(!e)return!1;var r=e.scale,i=Pb(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Oc;return n&&t==="auto"&&Nb(e)&&(n=!1),n}function H1(t){for(var e=ue(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];bc(a.scale)&&dm(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&b(i,function(o){o.__alignTo=r})}function kN(t,e){return ia(t.scale)||ia(e.scale)||e.scale.getTicks().length<2}function BN(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function ag(t,e){b(t.x,function(r){return G1(r,e.x,e.width)}),b(t.y,function(r){return G1(r,e.y,e.height)})}function G1(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),BN(t,e)}var W1;function Y1(t,e,r,i,n,a,o){X1(i,n,kt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Cp(s,function(p){return p>0})==null;return uo(i,s,!0,!0,r),ag(n,i),l;function u(p){b(n[ci[p]],function(h){if(Ta(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(yi(h.scale,an(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Ji(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[ci[h]]-p[ci[h]],m=p[jn[h]]+p[ci[h]]-(t[jn[h]]+t[ci[h]]);d=c(d,1-v),m=c(m,v);var g=z1[h][0],y=z1[h][1];s[g]=fe(s[g],d),s[y]=fe(s[y],m)}function c(p,h){return p>0&&!Jr(h)&&h>1e-4&&(p/=h),p}}function UN(t,e,r,i,n){var a=new Zm(FN);return b(r,function(o){return b(o,function(s){if(Ta(s.model)){var l=!i;s.axisBuilder=r1(t,e,s.model,n,a,l)}})}),a}function X1(t,e,r,i,n,a){var o=r===kt.determine;b(e,function(u){return b(u,function(f){Ta(f.model)&&(i1(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ci[1-u]]=t[jn[u]]<=a.refContainer[jn[u]]*.5?0:1-u===1?2:1}b(e,function(u,f){return b(u,function(c){Ta(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function zN(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Kr(t.get("outerBounds",!0)||$m,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ie(["all","axisLabel"],a)<0?o="all":o=a;var s=[_u(Y(t.get("outerBoundsClampWidth",!0),Dl[0]),e.width),_u(Y(t.get("outerBoundsClampHeight",!0),Dl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var FN=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Km(t,e,r,i,n,a),Ji(t.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&jm(s.labelInfoList,s.dirVec,i,n)})},q1=RN;function Z1(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return VN(r,t,e),r.seriesInvolved&&GN(r,t),r}function VN(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=qo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(b(s.getAxes(),Te(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&b(v.baseAxes,Te(d,h?"cross":!0,p)),h&&b(v.otherAxes,Te(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!sg(_))){g==null&&(g=_.get("triggerTooltip")),_=m?HN(y,c,n,e,m,g):_;var S=_.get("snap"),T=_.get("triggerEmphasis"),C=qo(y.model),w=g||S||y.type==="category",D=t.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:T,involveSeries:w,snap:S,useHandle:sg(_),seriesModels:[],linkGroup:null};u[C]=D,t.seriesInvolved=t.seriesInvolved||w;var E=WN(a,y);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[C]=D,A.mapper=a[E].mapper,D.linkGroup=A}}}})}function HN(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(p){l[p]=$(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&te(u,c.textStyle)}}return t.model.getModel("axisPointer",new Se(l,r,i))}function GN(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||b(t.coordSysAxesInfo[qo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function WN(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(og(a[i+"AxisId"],r.id)||og(a[i+"AxisIndex"],r.componentIndex)||og(a[i+"AxisName"],r.name))return n}}function og(t,e){return t==="all"||R(t)&&ie(t,e)>=0||t===e}function K1(t){var e=op(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=sg(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function op(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[qo(t)]}function j1(t){var e=op(t);return e&&e.axisPointerModel}function sg(t){return!!t.get(["handle","show"])}function qo(t){return t.type+"||"+t.id}var Q1={},YN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&K1(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=j1(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){Q1[r]=i},e.getAxisPointerClass=function(r){return r&&Q1[r]},e.type="axis",e})(Je),sp=YN;var ug=ne();function $1(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=ug(t).splitAreaColors,p=V(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=R(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,T=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,T=l.height,m=_+S):(_=l.x,x=m,S=l.width,T=y-x,m=x+T);var C=u[v-1].tickValue;C!=null&&p.set(C,h),e.add(new me({anid:C!=null?"area_"+C:null,shape:{x:_,y:x,width:S,height:T},style:te({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}ug(t).splitAreaColors=p}}}function J1(t){ug(t).splitAreaColors=null}var XN=["splitArea","splitLine","minorSplitLine","breakArea"],ew=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xe,this.group.add(this._axisGroup),!!Ta(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(XN,function(l){r.get([l,"show"])&&qN[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Bv(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){J1(this)},e.type="cartesianAxis",e})(sp),qN={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=R(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,T=new qt({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:te({stroke:l[S]},g),silent:!0});Qn(T.shape,g.lineWidth),e.add(T)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new qt({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});Qn(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){$1(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=ba(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},fg=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(ew);var tw=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=fg.type,r}return e.type="yAxis",e})(ew);var ZN=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new me({shape:r.coordinateSystem.getRect(),style:te({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Je),rw={offset:0};function iw(t){t.registerComponentView(ZN),t.registerComponentModel(u1),t.registerCoordinateSystem("cartesian2d",q1),ap(t,"x",np,rw),ap(t,"y",np,rw),t.registerComponentView(fg),t.registerComponentView(tw),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ea=ne(),nw=$,cg=ce,KN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new xe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Te(aw,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}sw(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Pr(n).w>s)return!0;if(o){var l=op(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=Ea(e).pointerEl=new ft[a.type](nw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Ea(e).labelEl=new De(nw(r.label));e.add(a),ow(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Ea(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=Ea(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),ow(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=$n(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wl(u.event)},onmousedown:cg(this._onHandleDragMove,this,0,0),drift:cg(this._onHandleDragMove,this),ondragend:cg(this._onHandleDragEnd,this)}),i.add(n)),sw(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");R(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,qf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){aw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,pg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(pg(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(pg(n)),Ea(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),tl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function aw(t,e,r,i){lw(Ea(r).lastProp,i)||(Ea(r).lastProp=i,e?Ue(r,i,t):(r.stopAnimation(),r.attr(i)))}function lw(t,e){if(F(t)&&F(e)){var r=!0;return b(e,function(i,n){r=r&&lw(t[n],i)}),!!r}else return t===e}function ow(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function sw(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var uw=KN;function fw(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function jN(t,e,r,i,n){var a=r.get("value"),o=hg(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Zr(s.get("padding")||0),u=s.getFont(),f=cu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),QN(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ar(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function QN(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function hg(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ho(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),B(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function vg(t,e,r){var i=st();return vn(i,i,r.rotation),La(i,i,r.position),ef([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function cw(t,e,r,i,n,a){var o=ep.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),jN(e,i,n,a,{position:vg(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pw(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function hw(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function vw(t,e,r){return Pr(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function dw(t,e,r){return[fe(Re(e[0],e[1]),t-r/2),Re(t+r/2,fe(e[0],e[1]))]}var $N=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=gw(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=fw(a),v=JN[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=wl(l.getRect(),n);cw(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=wl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=vg(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=gw(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Re(l[1],c[f]),c[f]=fe(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(uw);function gw(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var JN={line:function(t,e,r,i){var n=pw([e,i[0]],[e,i[1]],yw(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=vw(t,n,a),s=i[1]-i[0],l=dw(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:hw([u,i[0]],[f-u,s],yw(t))}}};function yw(t){return t.dim==="x"?0:1}var _w=$N;var ek=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:K.color.border,width:1,type:"dashed"},shadowStyle:{color:K.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:K.color.neutral00,padding:[5,7,5,7],backgroundColor:K.color.accent60,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:K.color.accent40,throttle:40}},e})(ge),xw=ek;var Si=ne(),tk=b;function lp(t,e,r){if(!J.node){var i=e.getZr();Si(i).records||(Si(i).records={}),rk(i,e);var n=Si(i).records[t]||(Si(i).records[t]={});n.handler=r}}function rk(t,e){if(Si(t).initialized)return;Si(t).initialized=!0,r("click",Te(dg,"click")),r("mousemove",Te(dg,"mousemove")),r("mousewheel",Te(dg,"mousewheel")),r("globalout",nk);function r(i,n){t.on(i,function(a){var o=ak(e);tk(Si(t).records,function(s){s&&n(s,a,o.dispatchAction)}),ik(o.pendings,e)})}}function ik(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function nk(t,e,r){t.handler("leave",null,r)}function dg(t,e,r,i){e.handler(t,r,i)}function ak(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Ml(t,e){if(!J.node){var r=e.getZr(),i=(Si(r).records||{})[t];i&&(Si(r).records[t]=null)}}var ok=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";lp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Ml("axisPointer",i)},e.prototype.dispose=function(r,i){Ml("axisPointer",i)},e.type="axisPointer",e})(Je),Tw=ok;function Il(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ur(a,t);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(U(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var bw=ne();function mg(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||ce(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){up(n)&&(n=Il({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=up(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||up(n),p={},h={},v={list:[],map:{}},d={showPointer:Te(lk,h),showTooltip:Te(uk,v)};b(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var T=x.axis,C=hk(u,x);if(!c&&_&&(!u||C)){var w=C&&C.value;w==null&&!l&&(w=T.pointToData(n)),w!=null&&Cw(x,w,d,!1,p)}})});var m={};return b(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&b(_.axesInfo,function(x,S){var T=h[S];if(x!==g&&T){var C=T.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,ww(x),ww(g)))),m[g.key]=C}})}),b(m,function(g,y){Cw(f[y],g,d,!0,p)}),fk(h,f,p),ck(v,n,t,o),pk(f,o,r),p}}function Cw(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=sk(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function sk(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(Xe(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),b(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function lk(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function uk(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=qo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function fk(t,e,r){var i=r.axesInfo=[];b(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function ck(t,e,r,i){if(up(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function pk(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=bw(i)[n]||{},o=bw(i)[n]={};b(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&b(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,c){!o[c]&&l.push(u(f))}),b(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function hk(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function ww(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function up(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function fp(t){sp.registerAxisPointerClass("CartesianAxisPointer",_w),t.registerComponentModel(xw),t.registerComponentView(Tw),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!R(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=Z1(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mg)}function gg(t){At(iw),At(fp)}function Ew(t,e){var r=Zr(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new me({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var vk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:K.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:K.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:K.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:K.color.tertiary,fontSize:14}},e})(ge),Dw=vk;function cp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Aw(t){if(J.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var yg=Aw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Mw=Aw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function _g(t,e){if(!t)return e;e=yo(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function Iw(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var dk=_g(Mw,"transition"),xg=_g(yg,"transform"),mk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(J.transform3dSupported?"will-change:transform;":"");function gk(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function yk(t,e,r){if(!B(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Mr(e);var a=gk(r),o=Math.max(Math.round(n)*1.5,6),s="",l=xg+":",u;ie(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["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="'+d.join("")+'"></div>'}function _k(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(J.transformSupported?""+xg+n:",left"+n+",top"+n)),dk+":"+a}function Ow(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!J.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=J.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+xg+":"+o+";":[["top",0],["left",0],[yg,o]]}function xk(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Y(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),b(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Sk(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Hf(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(_k(a,r,i)),o&&n.push("background-color:"+o),b(["width","color","radius"],function(v){var d="border-"+v,m=yo(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(xk(c)),p!=null&&n.push("padding:"+Zr(p).join("px ")+"px"),n.join(";")+";"}function Lw(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&Yg(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Tk=(function(){function t(e,r){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 n=this._zr=e.getZr(),a=r.appendTo,o=a&&(B(a)?document.querySelector(a):ln(a)?a:G(a)&&a(e.getDom()));Lw(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,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=n.handler,f=n.painter.getViewportRoot();Mt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=Iw(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=mk+Sk(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Ow(a[0],a[1],!0)+("border-color:"+Mr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(B(a)&&i.get("trigger")==="item"&&!cp(i)&&(s=yk(i,n,a)),B(e))o.innerHTML=e+s;else if(e){o.innerHTML="",R(e)||(e=[e]);for(var l=0;l<e.length;l++)ln(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(Lw(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Ow(i[0],i[1]);b(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",J.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ce(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Xg(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),Pw=Tk;var bk=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Nw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;F(e)&&rt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new De({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Hf(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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=Rw(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;Nw(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=on(a.borderWidth||0),s=Rw(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ce(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function on(t){return Math.max(0,t)}function Rw(t){var e=on(t.shadowBlur||0),r=on(t.shadowOffsetX||0),i=on(t.shadowOffsetY||0);return{left:on(e-r),right:on(e+r),top:on(e-i),bottom:on(e+i)}}function Nw(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kw=bk;var Ck=new me({shape:{x:-1,y:-1,width:2,height:2}}),wk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(J.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=g_(n.get("renderMode"));this._tooltipContent=a==="richText"?new kw(i):new Pw(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(J.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?qf(this,"_updatePosition",50,"fixRate"):tl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");lp("itemTooltip",this._api,ce(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||J.node||!n.getDom())){var o=Bw(a,n);this._ticket="";var s=a.dataByCoordSys,l=Mk(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Ck;f.x=a.x,f.y=a.y,f.update(),pe(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=Il(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Bw(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Ol([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=pe(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;va(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(pe(f).dataIndex!=null?l=f:pe(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=ce(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ol([i.tooltipOption],a),l=this._renderMode,u=[],f=ca("section",{blocks:[],noHeader:!0}),c=[],p=new Gf;b(r,function(y){b(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,T=x.axis,C=T.scale.parse(S);if(!(!x||S==null)){var w=hg(S,T,n,_.seriesDataIndices,_.valueLabelOpt),D=ca("section",{header:w,noHeader:!tt(w),sortBlocks:!0,blocks:[]});f.blocks.push(D),b(_.seriesDataIndices,function(E){var A=n.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,M=A.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Ho(x.axis,{value:C}),M.axisValueLabel=w,M.marker=p.makeTooltipMarker("item",Mr(M.color),l);var O=Sd(A.formatTooltip(I,!0,null)),N=O.frag;if(N){var k=Ol([A],a).get("valueFormatter");D.blocks.push(k?P({valueFormatter:k},N):N)}O.text&&c.push(O.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Dd(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
15
+ `];function Jr(t,e){return e.type=t,e}function zd(t){return t.type==="section"}function tb(t){return zd(t)?eO:tO}function rb(t){if(zd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return T(t.blocks,function(n){var a=rb(n);a>=e&&(e=a+ +(i&&(!a||zd(n)&&!n.noHeader)))}),e}return 0}function eO(t,e,r,i){var n=e.noHeader,a=rO(rb(e)),o=[],s=e.blocks||[];He(!s||P(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ee(u,l)){var f=new YS(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,m){var g=e.valueFormatter,y=tb(d)(g?N(N({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Ud(i,o.join(""),n?r:a.html);if(n)return c;var p=Bf(e.header,"ordinal",t.useUTC),h=eb(i,t.renderMode).nameStyle,v=JS(i);return t.renderMode==="richText"?ib(t,p,h)+a.richText+c:Ud(i,'<div style="'+h+";"+v+';">'+Je(p)+"</div>"+c,r)}function tO(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=P(x)?x:[x],k(x,function(S,b){return Bf(S,P(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||q.color.secondary,n),p=a?"":Bf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=eb(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":ib(t,p,y))+(o?"":aO(t,v,d,m,_)):Ud(i,(s?"":c)+(a?"":iO(p,!s,y))+(o?"":nO(v,d,m,_)),r)}}function Fd(t,e,r,i,n,a){if(t){var o=tb(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function rO(t){return{html:$I[t],richText:JI[t]}}function Ud(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=JS(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function iO(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Je(t)+"</span>"}function nO(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=P(t)?t:[t],'<span style="'+a+";"+i+'">'+k(t,function(o){return Je(o)}).join("&nbsp;&nbsp;")+"</span>"}function ib(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function aO(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(P(e)?e.join(" "):e,a)}function nb(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Ir(i)}function nc(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var ac=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ls()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=zf({color:r,type:e,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};P(r)?T(r,function(a){return N(i,a)}):N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function ab(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=P(s),u=nb(e,r),f,c,p,h;if(o>1||l&&!o){var v=oO(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=bi(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=to(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return Jr("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[Jr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!rt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function oO(t,e,r,i,n){var a=e.getData(),o=ht(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(c){f(bi(a,r,c),c)}):T(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Jr("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var tn=ee();function oc(t,e){return t.getName(e)||t.getId(e)}var sO="__universalTransitionEnabled",sc=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=en({count:uO,reset:fO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=tn(this).sourceManager=new $S(this);a.prepareSource();var o=this.getInitialData(r,n);sb(o,this),this.dataTask.context.data=o,tn(this).dataBeforeProcessed=o,ob(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=$i(this),a=n?$r(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),le(r,i.getTheme().get(this.subType)),le(r,this.getDefaultOption()),Os(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Jt(r,a,n)},e.prototype.mergeOption=function(r,i){r=le(this.option,r,!0),this.fillDataTextStyle(r.data);var n=$i(this);n&&Jt(this.option,r,n);var a=tn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);sb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,tn(this).dataBeforeProcessed=o,ob(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ze(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Os(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Vd(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return tn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Vd(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}tn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return tn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return tn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return ab({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(J.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=al.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=oc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=fe(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[oc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sO])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,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 c=i[f],p=oc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=oc(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);qe(sc,cl);qe(sc,al);zu(sc,ye);function ob(t){var e=t.name;to(t)||(t.name=lO(t)||e)}function lO(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return T(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function uO(t){return t.model.getRawData().count()}function fO(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cO}function cO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sb(t,e){T(Wp(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,me(pO,e))})}function pO(t,e){var r=Vd(t);return r&&r.setOutputEnd((e||this).count()),e}function Vd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Dt=sc;var Hd=(function(){function t(){this.group=new ge,this.uid=Qi("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();no(Hd);Yi(Hd);var Xe=Hd;function ya(){var t=ee();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var fb=ee(),hO=ya(),Gd=(function(){function t(){this.group=new ge,this.uid=Qi("viewChart"),this.renderTask=en({plan:vO,reset:dO}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&ub(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&ub(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){_i(this.group,e)},t.markUpdateMethod=function(e,r){fb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function lb(t,e,r){t&&Xs(t)&&(e==="emphasis"?di:mi)(t,r)}function ub(t,e,r){var i=pr(t,e),n=e&&e.highlightKey!=null?rx(e.highlightKey):null;i!=null?T(ke(i),function(a){lb(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){lb(a,r,n)})}no(Gd,["dispose"]);Yi(Gd);function vO(t){return hO(t.model)}function dO(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&fb(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),mO[l]}var mO={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pt=Gd;var lc="\0__throttleOriginMethod",cb="\0__throttleRate",pb="\0__throttleType";function _a(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function uc(t,e,r,i){var n=t[e];if(n){var a=n[lc]||n,o=n[pb],s=n[cb];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=_a(a,r,i==="debounce"),n[lc]=a,n[pb]=i,n[cb]=r}return n}}function hl(t,e){var r=t[e];r&&r[lc]&&(r.clear&&r.clear(),t[e]=r[lc])}var hb=ee(),vb={itemStyle:Ur(nd,!0),lineStyle:Ur(id,!0)},yO={lineStyle:"stroke",itemStyle:"fill"};function db(t,e){var r=t.visualStyleMapper||vb[e];return r||(console.warn("Unknown style type '"+e+"'."),vb.itemStyle)}function mb(t,e){var r=t.visualDrawType||yO[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var gb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=db(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=mb(t,i),u=o[l],f=Y(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=t.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},vl=new be,yb={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=db(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){vl.option=l[i];var u=n(vl),f=o.ensureUniqueItemVisual(s,"style");N(f,u),vl.option.decal&&(o.setItemVisual(s,"decal",vl.option.decal),vl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},_b={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();hb(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=hb(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=mb(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var fc=Math.PI;function Yd(t,e){e=e||{},ie(e,{text:"loading",textColor:q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ge,i=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Ae({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _e({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Jn({shape:{startAngle:-fc/2,endAngle:-fc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:fc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:fc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var _O=(function(){function t(e,r,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Bu(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=V();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";He(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;T(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||en({plan:CO,reset:wO,count:AO}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||en({reset:xO});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";He(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):T(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,en({reset:SO,onDirty:TO})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return Y(e)&&(e={overallReset:e,seriesType:DO(e)}),e.uid=Qi("stageHandler"),r&&(e.visualType=r),e},t})();function xO(t){t.overallReset(t.ecModel,t.api,t.payload)}function SO(t){return t.dirtyOnOverallProgress&&bO}function bO(){this.agent.dirty(),this.getDownstream().dirty()}function TO(){this.agent&&this.agent.dirty()}function CO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wO(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ke(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?k(e,function(r,i){return xb(i)}):EO}var EO=xb(0);function xb(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function AO(t){return t.data.count()}function DO(t){cc=null;try{t(dl,Sb)}catch{}return cc}var dl={},Sb={},cc;bb(dl,Zf);bb(Sb,qu);dl.eachSeriesByType=dl.eachRawSeriesByType=function(t){cc=t};dl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(cc=t.subType)};function bb(t,e){for(var r in e.prototype)t[r]=Oe}var Wd=_O;var G=q.darkColor,Tb=G.background,ml=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},Cb={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},wb={darkMode:!0,color:G.theme,backgroundColor:Tb,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50},feature:{dataView:{backgroundColor:Tb,textColor:G.primary,textareaColor:G.background,textareaBorderColor:G.border,buttonColor:G.accent50,buttonTextColor:G.neutral00}}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:Cb,y:Cb,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:ml(),logAxis:ml(),valueAxis:ml(),categoryAxis:ml(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=ml();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};wb.categoryAxis.splitLine.show=!1;var Eb=wb;var Ab=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(z(e)){var a=Rt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Xd=["symbol","symbolSize","symbolRotate","symbolOffset"],Db=Xd.concat(["symbolKeepAspect"]),Mb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Xd.length;o++){var s=Xd[o],l=t.get(s);Y(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=fe(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},Lb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Db.length;s++){var l=Db[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function Ib(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function pc(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function No(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=pr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:P(p)?c.getName(p[0]):c.getName(p),selected:z(l)?l:N({},l)})}})}function Ob(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(No("map","selectchanged",e,n,i),No("pie","selectchanged",e,n,i)):i.fromAction==="select"?(No("map","selected",e,n,i),No("pie","selected",e,n,i)):i.fromAction==="unselect"&&(No("map","unselected",e,n,i),No("pie","unselected",e,n,i))})}function xa(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var MO=new lt,er=MO;var Pb={};function Nb(t,e){Pb[t]=e}function qd(t){return Pb[t]}var LO={};function hc(t,e){LO[t]=e}var vc=ee();function Rb(t){vc(t).prepare={}}function kb(t){vc(t).fullUpdate={}}function Bb(t){return vc(t).prepare}function Sa(t){return vc(t).fullUpdate}var IO=Math.round(Math.random()*9),OO=typeof Object.defineProperty=="function",PO=(function(){function t(){this._id="__ec_inner_"+IO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return OO?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),zb=PO;var NO=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),RO=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),kO=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),BO=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),zO={line:Et,rect:_e,roundRect:_e,square:_e,circle:jn,diamond:RO,pin:kO,arrow:BO,triangle:NO},UO={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Kd={};T(zO,function(t,e){Kd[e]=new t});var FO=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Bn(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Kd[i];n||(i="rect",n=Kd[i]),UO[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function VO(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Mt(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=tl(t.slice(8),new Q(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=mo(t.slice(7),{},new Q(e,r,i,n),o?"center":"cover"):l=new FO({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=VO,a&&l.setColor(a),l}function gl(t){return P(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ba(t,e){if(t!=null)return P(t)||(t=[t,t]),[Re(t[0],e[0])||0,Re(H(t[1],t[0]),e[1])||0]}function Ta(t){return isFinite(t)}function GO(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Ta(i)?i:0,n=Ta(n)?n:1,a=Ta(a)?a:0,o=Ta(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function YO(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Ta(o)?o:.5,s=Ta(s)?s:.5,l=l>=0&&Ta(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function yl(t,e,r){for(var i=e.type==="radial"?YO(t,e,r):GO(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Ub(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function dc(t){return parseInt(t,10)}function _l(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||dc(s[i])||dc(t.style[i]))-(dc(s[a])||0)-(dc(s[o])||0)||0}function WO(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:oe(t)?[t]:P(t)?t:null}function Zd(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&WO(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=k(r,function(a){return a/n}),i/=n)}return[r,i]}var XO=new qt(!0);function mc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Fb(t){return typeof t=="string"&&t!=="none"}function gc(t){var e=t.fill;return e!=null&&e!=="none"}function Vb(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Hb(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function yc(t,e,r){var i=ev(e.image,e.__image,r);if(ao(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Xp),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function qO(t,e,r,i,n){var a,o=mc(r),s=gc(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||XO,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,C=void 0;(d||m)&&(C=e.getBoundingRect()),d&&(_=p?yl(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?yl(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?yc(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?yc(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var E,A;t.setLineDash&&r.lineDash&&(a=Zd(e),E=a[0],A=a[1]);var D=!0;(f||p&Pi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),E&&(t.setLineDash(E),t.lineDashOffset=A),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&Hb(t,r),s&&Vb(t,r)):(s&&Vb(t,r),o&&Hb(t,r)),E&&t.setLineDash([])}function KO(t,e,r){var i=e.__image=ev(r.image,e.__image,e,e.onload);if(!(!i||!ao(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function ZO(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||ir,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Zd(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(mc(r)&&t.strokeText(n,r.x,r.y),gc(r)&&t.fillText(n,r.x,r.y)):(gc(r)&&t.fillText(n,r.x,r.y),mc(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var Gb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Yb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jb(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){Lt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Fr.opacity:o}(i||e.blend!==r.blend)&&(a||(Lt(t,n),a=!0),t.globalCompositeOperation=e.blend||Fr.blend);for(var s=0;s<Gb.length;s++){var l=Gb[s];(i||e[l]!==r[l])&&(a||(Lt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(Lt(t,n),a=!0),t.shadowColor=e.shadowColor||Fr.shadowColor),a}function Wb(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=jb(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Lt(t,n),s=!0),Fb(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Lt(t,n),s=!0),Fb(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Lt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Lt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<Yb.length;f++){var c=Yb[f],p=c[0];(i||a[p]!==o[p])&&(s||(Lt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function jO(t,e,r,i,n){return jb(t,e.style,r&&r.style,i,n)}function Qb(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function QO(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),Qb(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function $O(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Xb=1,qb=2,Kb=3,Zb=4;function JO(t){var e=gc(t),r=mc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Lt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Ro(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};rn(t,e,r),Ca(t,r)}function rn(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ye,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||Ub(n,a))&&(a&&(Lt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Lt(t,r),t.save(),QO(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~Ye,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ae&&e.autoBatch&&JO(o);s||$O(i,u.transform)?(Lt(t,r),Qb(t,e)):f||Lt(t,r),e instanceof ae?(r.lastDrawType!==Xb&&(l=!0,r.lastDrawType=Xb),Wb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),qO(t,e,o,f,r)):e instanceof zs?(r.lastDrawType!==Kb&&(l=!0,r.lastDrawType=Kb),Wb(t,e,u,l,r),ZO(t,e,o)):e instanceof kt?(r.lastDrawType!==qb&&(l=!0,r.lastDrawType=qb),jO(t,e,u,l,r),KO(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==Zb&&(l=!0,r.lastDrawType=Zb),eP(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Lt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ca(t,e){Lt(t,e),e.prevElClipPaths&&t.restore()}function eP(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),rn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ca(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),rn(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ca(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var jd=new zb,$b=new Br(100),Jb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function xl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&jd.delete(t);var a=jd.get(t);if(a)return a;var o=ie(t,{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=n?1:1/r,jd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<Jb.length;++p){var h=o[Jb[p]];if(h!=null&&!P(h)&&!z(h)&&!oe(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=$b.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=tT(o.dashArrayX),g=tP(o.dashArrayY),y=eT(o.symbol),_=rP(m),x=rT(g),S=!n&&Ie.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=E(),w;S&&(S.width=C.width*r,S.height=C.height*r,w=S.getContext("2d")),A(),c&&$b.put(v,S||b),u.image=S,u.svgElement=b,u.svgWidth=C.width,u.svgHeight=C.height;function E(){for(var D=1,L=0,M=_.length;L<M;++L)D=Wh(D,_[L]);for(var I=1,L=0,M=y.length;L<M;++L)I=Wh(I,y[L].length);D*=I;var R=x*_.length*y.length;if(0)var B;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){w&&(w.clearRect(0,0,S.width,S.height),o.backgroundColor&&(w.fillStyle=o.backgroundColor,w.fillRect(0,0,S.width,S.height)));for(var D=0,L=0;L<g.length;++L)D+=g[L];if(D<=0)return;for(var M=-x,I=0,R=0,B=0;M<C.height;){if(I%2===0){for(var W=R/2%y.length,U=0,X=0,$=0;U<C.width*2;){for(var Z=0,L=0;L<m[B].length;++L)Z+=m[B][L];if(Z<=0)break;if(X%2===0){var te=(1-o.symbolSize)*.5,ne=U+m[B][X]*te,K=M+g[I]*te,de=m[B][X]*o.symbolSize,xe=g[I]*o.symbolSize,_t=$/2%y[W].length;Sr(ne,K,de,xe,y[W][_t])}U+=m[B][X],++$,++X,X===m[B].length&&(X=0)}++B,B===m.length&&(B=0)}M+=g[I],++R,++I,I===g.length&&(I=0)}function Sr(Le,$e,he,Se,mn){var xt=n?1:r,oy=Mt(mn,Le*xt,$e*xt,he*xt,Se*xt,o.color,o.symbolKeepAspect);if(n){var sy=i.painter.renderOneToVNode(oy);sy&&b.children.push(sy)}else Ro(w,oy)}}}}function eT(t){if(!t||t.length===0)return[["rect"]];if(z(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!z(t[r])){e=!1;break}if(e)return eT([t]);for(var i=[],r=0;r<t.length;++r)z(t[r])?i.push([t[r]]):i.push(t[r]);return i}function tT(t){if(!t||t.length===0)return[[0,0]];if(oe(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!oe(t[i])){r=!1;break}if(r)return tT([t]);for(var n=[],i=0;i<t.length;++i)if(oe(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=k(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function tP(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(oe(t)){var e=Math.ceil(t);return[e,e]}var r=k(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function rP(t){return k(t,function(e){return rT(e)})}function rT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var iT=io(iP);function iP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=xl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=xl(n,e)}}})}var nP="6.1.0",aP={zrender:"6.1.0"},oP=1,sP=800,lP=900,uP=920,fP=1e3,cP=2e3,nT=5e3,hT=1e3,pP=1100,lm=2e3,vT=3e3,hP=4e3,Ac=4500,vP=4600,dP=5e3,mP=6e3,dT=7e3,um={PROCESSOR:{SERIES_FILTER:sP,AXIS_STATISTICS:uP,FILTER:fP,STATISTIC:nT,STATISTICS:nT},VISUAL:{LAYOUT:hT,PROGRESSIVE_LAYOUT:pP,GLOBAL:lm,CHART:vT,POST_CHART_LAYOUT:vP,COMPONENT:hP,BRUSH:dP,CHART_ITEM:Ac,ARIA:mP,DECAL:dT}},Qe="__flagInMainProcess",_c="__mainProcessVersion",ot="__pendingUpdate",Qd="__needsUpdateStatus",aT=/^[a-zA-Z0-9_]+$/,$d="__connectUpdateStatus",oT=0,gP=1,yP=2;function mT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return yT(this,t,e)}}function gT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return yT(this,t,e)}}function yT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),lt.prototype[e].apply(t,r)}var _T=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(lt),xT=_T.prototype;xT.on=gT("on");xT.off=gT("off");var wa,Jd,xc,Ci,Sc,em,tm,ko,Bo,sT,lT,rm,uT,bc,fT,ST,_r,cT,zo,Tc=(function(t){O(e,t);function e(r,i,n){var a=t.call(this,new Ab)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[_c]=1,0)var u;n.ssr&&Hh(function(h){var v=ue(h),d=v.dataIndex;if(d!=null){var m=V();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=Lu(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:H(n.useDirtyRect,l),useCoarsePointer:H(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=_a(pe(f.flush,f),17),a._updateTheme(i),a._locale=Jx(n.locale||Cf),a._coordSysMgr=new Do;var c=a._api=fT(a);function p(h,v){return h.__prio-v.__prio}return Mn(wc,p),Mn(am,p),a._scheduler=new Wd(a,c,am,wc),a._messageCenter=new _T,a._initEvents(),a.resize=pe(a.resize,a),f.animation.on("frame",a._onframe,a),sT(f,a),lT(f,a),xn(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(cT(this),this[ot]){var a=this[ot].silent;this[Qe]=!0,zo(this);try{wa(this),Ci.update.call(this,null,this[ot].updateParams)}catch(l){throw this[Qe]=!1,this[ot]=null,l}this._zr.flush(),this[Qe]=!1,this[ot]=null,ko.call(this,a),Bo.call(this,a)}else if(r.unfinished){var o=oP;do{r.unfinished=!1;var s=Ie.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),em(this,i),r.performVisualTasks(i),bc(this,this._model,n,"remain",{}),o-=Ie.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[Qe]){if(this._disposed){this.id;return}var a,o,s;if(F(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Qe]=!0,zo(this),!this._model||i){var l=new DS(this._api),u=this._theme,f=this._model=new Zf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},om);var c={seriesTransition:s,optionChanged:!0};if(n)this[ot]={silent:a,updateParams:c},this[Qe]=!1,this.getZr().wakeUp();else{try{wa(this),Ci.update.call(this,null,c)}catch(p){throw this[ot]=null,this[Qe]=!1,p}this._ssr||this._zr.flush(),this[ot]=null,this[Qe]=!1,ko.call(this,a),Bo.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Qe]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[ot]&&(a==null&&(a=this[ot].silent),o=this[ot].updateParams,this[ot]=null),this[Qe]=!0,zo(this);try{this._updateTheme(r),n.setTheme(this._theme),wa(this),Ci.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Qe]=!1,s}this[Qe]=!1,ko.call(this,a),Bo.call(this,a)}}},e.prototype._updateTheme=function(r){z(r)&&(r=bT[r]),r&&(r=j(r),r&&jf(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Ec[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();T(Ea,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=Ie.createCanvas(),g=Lu(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return T(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new _e({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),T(p,function(_){var x=new kt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Sc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Sc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Sc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Ru(n,r);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Ru(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Ib(s,l,i):pc(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;T(_P,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&xa(l,function(d){var m=ue(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=N({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;T(nm,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),Ob(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Kh(this.getDom(),cm,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),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 Ea[i.id]},e.prototype.resize=function(r){if(!this[Qe]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[ot]&&(a==null&&(a=this[ot].silent),n=!0,this[ot]=null),this[Qe]=!0,zo(this);try{n&&wa(this),Ci.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[Qe]=!1,o}this[Qe]=!1,ko.call(this,a),Bo.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(F(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!sm[r]){var n=sm[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=N({},r);return i.type=im[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(F(i)||(i={silent:!!i}),!!Cc[r.type]&&this._model){if(this[Qe]){this._pendingActions.push(r);return}var n=i.silent;tm.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),ko.call(this,n),Bo.call(this,n)}},e.prototype.updateLabelLayout=function(){er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){wa=function(c){Rb(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Jd(c,!0),Jd(c,!1),p.plan()},Jd=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(b,C){b!=="series"&&x(C)}):h.eachSeries(x);function x(b){var C=b.__requireNewView;b.__requireNewView=!1;var w="_ec_"+b.id+"_"+b.type,E=!C&&m[w];if(!E){var A=Rt(b.type),D=p?Xe.getClass(A.main,A.sub):pt.getClass(A.sub);E=new D,E.init(h,y),m[w]=E,d.push(E),g.add(E.group)}b.__viewId=E.__id=w,E.__alive=!0,E.__model=b,E.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(E,b,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},xc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){T([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=U_(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=V(),T(ke(y),function(S){var b=Xt(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Pv(h))if(S instanceof Dt)h.type===ji&&!h.notBlur&&!S.get(["emphasis","disabled"])&&j0(S,h,c._api);else{var C=Ju(S.mainType,S.componentIndex,h.name,c._api),w=C.focusSelf,E=C.dispatchers;h.type===ji&&w&&!h.notBlur&&Ku(S.mainType,S.componentIndex,c._api),E&&T(E,function(A){h.type===ji?di(A):mi(A)})}else ef(h)&&S instanceof Dt&&(J0(S,h,c._api),Ov(S),_r(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Ci={prepareAndUpdate:function(c){wa(this),Ci.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){kb(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),er.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),em(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),rm(this,h,v,c,p),er.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==Wu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),bc(p,h,v,c,{},m),er.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),pt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),rm(this,p,this._api,c,{}),er.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),pt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),er.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ci.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Ru(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}Sc=r,em=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},tm=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=Cc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Rt(y[0]);this[Qe]=!0,zo(this);var S=[c],b=!1;c.batch&&(b=!0,S=k(c.batch,function(B){return B=ie(N({},B),c),B.batch=null,B}));var C=[],w,E=[],A=g.nonRefinedEventType,D=ef(c),L=Pv(c);if(L&&Iv(this._api),T(S,function(B){var W=g.action(B,v,h._api);if(g.refineEvent?E.push(W):w=W,w=w||N({},B),w.type=A,C.push(w),L){var U=Ps(c),X=U.queryOptionMap,$=U.mainTypeSpecified,Z=$?X.keys()[0]:"series";xc(h,_,B,Z),_r(h)}else D?(xc(h,_,B,"series"),_r(h)):x&&xc(h,_,B,x.main,x.sub)}),_!=="none"&&!L&&!D&&!x)try{this[ot]?(wa(this),Ci.update.call(this,c),this[ot]=null):Ci[_].call(this,c)}catch(B){throw this[Qe]=!1,B}if(b?w={type:A,escapeConnect:m,batch:C}:w=C[0],this[Qe]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(E,c,v,this._api).eventContent;He(F(I)),M=ie({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var R=this._messageCenter;R.trigger(w.type,w),M&&R.trigger(M.type,M)}},ko=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();tm.call(this,h,c)}},Bo=function(c){!c&&this.trigger("updated")},sT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[ot]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},lT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=xa(v,Xs);d&&(Q0(d,h,p._api),_r(p))}).on("mouseout",function(h){var v=h.target,d=xa(v,Xs);d&&($0(d,h,p._api),_r(p))}).on("click",function(h){var v=h.target,d=xa(v,function(y){return ue(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=ue(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;Mn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}rm=function(c,p,h,v,d){n(p),uT(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive=!1}),bc(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},uT=function(c,p,h,v,d,m){T(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},bc=function(c,p,h,v,d,m){var g=c._scheduler;d=N(d||{},{updatedSeries:p.getSeries()}),er.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Ov(_)}),g.unfinished=y||g.unfinished,er.trigger("series:layoutlabels",p,h,d),er.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),er.trigger("series:afterupdate",p,h,d)},_r=function(c){c[Qd]=!0,c.getZr().wakeUp()},zo=function(c){c[_c]=(c[_c]+1)%1e6},cT=function(c){c[Qd]&&(c.getZr().storage.traverse(function(p){ra(p)||a(p)}),c[Qd]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Fs&&c.states.emphasis?p.push("emphasis"):c.hoverState===Us&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>H(p.get("hoverLayerThreshold"),Xf.hoverLayerThreshold)&&!J.node&&!J.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==na&&(x.hoverLayer=m?Xv:Wv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=rl(c);p.eachRendered(function(v){return il(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!ra(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ra(g))return;if(g instanceof ae&&ix(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}fT=function(c){return new((function(p){O(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){di(v,d),_r(c)},h.prototype.leaveEmphasis=function(v,d){mi(v,d),_r(c)},h.prototype.enterBlur=function(v){$u(v),_r(c)},h.prototype.leaveBlur=function(v){Ys(v),_r(c)},h.prototype.enterSelect=function(v){Mv(v),_r(c)},h.prototype.leaveSelect=function(v){Lv(v),_r(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[_c]},h.prototype.usingTHL=function(){return c._usingTHL},h})(qu))(c)},ST=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[$d]=v}}T(im,function(h,v){c._messageCenter.on(v,function(d){if(Ec[c.group]&&c[$d]!==oT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];T(Ea,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,oT),T(g,function(y){y[$d]!==gP&&y.dispatchAction(m)}),p(g,yP)}})})}})(),e})(lt),fm=Tc.prototype;fm.on=mT("on");fm.off=mT("off");fm.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var _P=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Cc={},im={},nm={},am=[],om=[],wc=[],bT={},sm={},Ea={},Ec={},xP=+new Date-0,SP=+new Date-0,cm="_echarts_instance_";function bP(t,e,r){var i=!(r&&r.ssr);if(i){var n=pm(t);if(n)return n}var a=new Tc(t,e,r);return a.id="ec_"+xP++,Ea[a.id]=a,i&&Kh(t,cm,a.id),ST(a),er.trigger("afterinit",a),a}function TP(t){if(P(t)){var e=t;t=null,T(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+SP++,T(e,function(r){r.group=t})}return Ec[t]=!0,t}function TT(t){Ec[t]=!1}var CP=TT;function wP(t){z(t)?t=Ea[t]:t instanceof Tc||(t=pm(t)),t instanceof Tc&&!t.isDisposed()&&t.dispose()}function pm(t){return Ea[F_(t,cm)]}function EP(t){return Ea[t]}function hm(t,e){bT[t]=e}function Dc(t){re(om,t)<0&&om.push(t)}function Mc(t,e){ym(am,t,e,cP)}function vm(t){Sl("afterinit",t)}function dm(t){Sl("afterupdate",t)}function Sl(t,e){er.on(t,e)}function nn(t,e,r){var i,n,a,o,s;Y(e)&&(r=e,e=""),F(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Cc[i]||(He(aT.test(i)&&aT.test(n)),a&&He(n!==i),Cc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},nm[n]=1,a&&s&&(nm[u]=1),im[u]=i)}function mm(t,e){Do.register(t,e)}function AP(t){var e=Do.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function DP(t,e){hc(t,e)}function gm(t,e){ym(wc,t,e,hT,"layout",!0)}function wi(t,e){ym(wc,t,e,vT,"visual",!0)}var pT=[];function ym(t,e,r,i,n,a){if((Y(e)||F(e))&&(r=e,e=i),!(re(pT,r)>=0)){pT.push(r);var o=Wd.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function Lc(t,e){sm[t]=e}function MP(t){jl({createCanvas:t})}function _m(t,e,r){var i=qd("registerMap");i&&i(t,e,r)}function LP(t){var e=qd("getMap");return e&&e(t)}var xm=XS;wi(lm,gb);wi(Ac,yb);wi(Ac,_b);wi(lm,Mb);wi(Ac,Lb);wi(dT,iT);Dc(jf);Mc(lP,RS);Lc("default",Yd);nn({type:ji,event:ji,update:ji},Oe);nn({type:Vs,event:Vs,update:Vs},Oe);nn({type:Hs,event:ju,update:Hs,action:Oe,refineEvent:Sm,publishNonRefinedEvent:!0});nn({type:Zu,event:ju,update:Zu,action:Oe,refineEvent:Sm,publishNonRefinedEvent:!0});nn({type:Gs,event:ju,update:Gs,action:Oe,refineEvent:Sm,publishNonRefinedEvent:!0});function Sm(t,e,r,i){return{eventContent:{selected:ex(r),isFromClick:e.isFromClick||!1}}}hm("default",{});hm("dark",Eb);var IP={};function bl(t){return t==null?0:t.length||1}function CT(t){return t}var OP=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||CT,this._newKeyGetter=n||CT,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=bl(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(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=bl(u),p=bl(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=bl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=bl(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),wT=OP;var PP=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function ET(t,e){var r={},i=r.encode={},n=V(),a=[],o=[],s={};T(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;bm(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),NP(h.type)&&(a[0]=p),bm(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Xu.each(function(m,g){var y=bm(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=k(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new PP(s,e),r}function bm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function AT(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function NP(t){return!(t==="ordinal"||t==="time")}var RP=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),Uo=RP;var kP=ee(),BP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Tm=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Cm(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return H(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=$f(this.source),i=!wm(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=BP[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Ic(t){return t instanceof Tm}function Tl(t){for(var e=V(),r=0;r<(t||[]).length;r++){var i=t[r],n=F(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Cm(t){var e=kP(t);return e.dimNameMap||(e.dimNameMap=Tl(t.dimensionsDefine))}function wm(t){return t>30}var Cl=F,an=k,zP=typeof Int32Array>"u"?Array:Int32Array,UP="e\0\0",DT=-1,FP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],VP=["_approximateExtent"],MT,Oc,wl,El,Em,Al,Am,HP=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Ic(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=z(c)?new Uo({name:c}):c instanceof Uo?c:new Uo(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=V();T(o,function(m){d.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(oe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof pl&&(a=e),!a){var o=this.dimensions,s=Io(e)||Ve(e)?new ec(e,o.length):e;a=new pl;var l=an(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=ET(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&Am(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Zt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===tt;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&R_(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Xt(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Xt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Am(this,f);MT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Cl(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=wl(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Oc(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return P(e)?n.getValues(an(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?DT:n},t.prototype.each=function(e,r,i){"use strict";Y(e)&&(i=r,r=e,e=[]);var n=i||this,a=an(El(e),this._getStoreDimIndex,this);this._store.each(a,n?pe(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";Y(e)&&(i=r,r=e,e=[]);var n=i||this,a=an(El(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?pe(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=fe(e),a=[];return T(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";Y(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=an(El(e),this._getStoreDimIndex,this),s=Al(this);return s._store=this._store.map(o,a?pe(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=an(El(e),this._getStoreDimIndex,this);this._store.modify(s,o?pe(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=Al(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=Al(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Al(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new be(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new wT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Oc(e,i)},function(i){return Oc(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Cl(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),P(a)?a=a.slice():Cl(a)&&(a=N({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Cl(r)?N(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Cl(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;B0(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){T(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:an(this.dimensions,this._getDimInfo,this),this.hostModel)),Em(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];Y(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(as(arguments)))})},t.internalField=(function(){MT=function(e){var r=e._invertedIndicesMap;T(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new zP(o.categories.length);for(var l=0;l<i.length;l++)i[l]=DT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},wl=function(e,r,i){return Xt(e._getCategory(r,i),null)},Oc=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=wl(e,e._idDimIdx,r)),i==null&&(i=UP+r),i},El=function(e){return P(e)||(e=e!=null?[e]:[]),e},Al=function(e){var r=new t(e._schema?e._schema:an(e.dimensions,e._getDimInfo,e),e.hostModel);return Em(r,e),r},Em=function(e,r){T(FP.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,T(VP,function(i){e[i]=j(r[i])}),e._calculationInfo=N({},r._calculationInfo)},Am=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=wl(e,a,r)),l==null&&o!=null&&(n[r]=l=wl(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),on=HP;var zm={};Ht(zm,{createDimensions:()=>LT,createList:()=>LN,createScale:()=>ON,createSymbol:()=>Mt,createTextStyle:()=>NN,dataStack:()=>IN,enableHoverEmphasis:()=>lo,getECData:()=>ue,getLayoutRect:()=>Qr,mixinAxisModelCommonMethods:()=>PN});function LT(t,e){return Pc(t,e).dimensions}function Pc(t,e){Io(t)||(t=Oo(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=V(),a=[],o=GP(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&wm(o),l=i===t.dimensionsDefine,u=l?Cm(t):Tl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),p=new Bd(o),h=0;h<p.length;h++)p[h]=-1;function v(E){var A=p[E];if(A<0){var D=i[E],L=F(D)?D:{name:D},M=new Uo,I=L.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var R=a.length;return p[E]=R,M.storeDimIndex=E,a.push(M),M}return a[A]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(E,A){var D=ke(E).slice();if(D.length===1&&!z(D[0])&&D[0]<0){c.set(A,!1);return}var L=c.set(A,[]);T(D,function(M,I){var R=z(M)?u.get(M):M;R!=null&&R<o&&(L[I]=R,m(v(R),A,I))})});var d=0;T(r,function(E){var A,D,L,M;if(z(E))A=E,M={};else{M=E,A=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=I,D=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var R=c.get(A);if(R!==!1){if(R=ke(R),!R.length)for(var B=0;B<(D&&D.length||1);B++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&R.push(d++)}T(R,function(W,U){var X=v(W);if(l&&M.type!=null&&(X.type=M.type),m(ie(X,M),A,U),X.name==null&&D){var $=D[U];!F($)&&($={name:$}),X.name=X.displayName=$.name,X.defaultTooltip=$.defaultTooltip}L&&ie(X.otherDims,L)})}});function m(E,A,D){Xu.get(A)!=null?E.otherDims[A]=D:(E.coordDim=A,E.coordDimIndex=D,n.set(A,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(E){E.name==null&&(E.name=E.coordDim)}if(s)T(a,function(E){S(E)}),a.sort(function(E,A){return E.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var C=v(b),w=C.coordDim;w==null&&(C.coordDim=YP(x,n,_),C.coordDimIndex=0,(!g||y<=0)&&(C.isExtraCoord=!0),y--),S(C),C.type==null&&(qf(t,b)===At.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return ro(a,function(E){return E.name},function(E,A){A>0&&(E.name=E.name+(A-1))}),new Tm({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function GP(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return T(e,function(a){var o;F(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function YP(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var WP=(function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t})();function IT(t){var e=t.get("coordinateSystem"),r=new WP(e),i=XP[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var XP={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",ft).models[0],a=t.getReferringComponents("yAxis",ft).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Fo(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),Fo(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",ft).models[0];e.coordSysDims=["single"],r.set("single",n),Fo(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",ft).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Fo(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),Fo(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Fo(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",ft).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function Fo(t){return t.get("type")==="category"}function Nc(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;qP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(T(a,function(x,S){z(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),T(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;T(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function qP(t){return!Ic(t.schema)}function tr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Vo(t,e){return tr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function KP(t,e){var r=t.get("coordinateSystem"),i=Do.get(r),n;return e&&e.coordSysDims&&(n=k(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=AT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function ZP(t,e,r){var i,n;return r&&T(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function jP(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=Oo(t)):(n=i.getSource(),a=n.sourceFormat===tt);var o=IT(e),s=KP(e,o),l=r.useEncodeDefaulter,u=Y(l)?l:l?me(yS,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Pc(n,f),p=ZP(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=Nc(e,{schema:c,store:h}),d=new on(c,e);d.setCalculationInfo(v);var m=p!=null&&QP(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function QP(t){if(t.sourceFormat===tt){var e=$P(t.data||[]);return!P(ci(e))}}function $P(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var sn=jP;var OT=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Yi(OT);var It=OT;var JP=0,eN=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++JP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&k(i,tN);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!z(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t})();function tN(t){return F(t)&&t.value!=null?t.value:t+""}var Dl=eN;var Ut=0,Ho=1,rN={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},NT=fe(rN),Go=2,RT=3;function Yo(t,e,r){var i;t=t||{};var n=Ue();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(T(NT,function(o){a[o]&&(t[o]=pe(a[o],a))}),i=a)}return i==null&&iN(t,r),{brk:i,mapper:t}}function Rc(t,e){T(NT,function(r){t[r]=e[r]})}function kc(t,e){t.freeze=Oe}function Ei(t){return t.getExtentUnsafe(Ut,Go)}function Aa(t,e){return t.getExtentUnsafe(Ho,e)||t.getExtentUnsafe(Ut,e)}function kT(t){var e=Aa(t,RT);return e[1]-e[0]}function Wo(t){var e=t.getExtentUnsafe(Ut,RT);return e[1]-e[0]}function iN(t,e){var r=t||{},i=[];return r._extents=i,i[Ut]=e?e.slice():ct(),N(r,nN),r}var nN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Ho]||this._extents[Ut];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Ho]||this._extents[Ut];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Aa(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ut].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){PT(this._extents,Ut,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Ut].slice()),PT(i,t,e,r)},freeze:function(){}};function PT(t,e,r,i){pi(r,i)&&(t[e][0]=r,t[e][1]=i)}function Bc(t){return Xo(t)||ei(t)}function Xo(t){return t.type==="interval"}function qo(t){return t.type==="time"}function ei(t){return t.type==="log"}function st(t){return t.type==="ordinal"}function BT(t){var e=Ja(t),r=Vi(10,e),i=Nt(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function Pr(t){return St(t)+2}function Ml(t,e){return Ui(t)/Ui(e)}function zc(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Vi(e,t)}function Uc(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=De(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Dr(i[0])||!Dr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function zT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Ll(t,e){return t=t||e,Nt(ce(t,1))}function Fc(t,e,r){var i=Ei(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var UT=(function(t){O(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Rc(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Dl({})),P(n)&&(n=new Dl({categories:k(n,function(o){return F(o)?o.value:o})})),i._ordinalMeta=n;var a=Yo(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,kc(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:z(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Nt(r),r},e.prototype.getTicks=function(){var r=[];return Fc(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ne(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Ei(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Nt(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(It);It.registerClass(UT);var FT=UT;function Ko(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Pr(h);f<e-1;){var d=ve(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Ue();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var VT=(function(t){O(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=Ef(i,r),a=Yo(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return j(this._cfg)},e.prototype.setConfig=function(r){var i=Ei(this);this._cfg=r=j(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Pr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Ei(this),o=i.niceExtent,s=i.intervalPrecision,l=Ue(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return Nt((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=Ne(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=ve(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=ve(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Ko(this,r,ua(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=St(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return nl(a)},e.type="interval",e})(It);It.registerClass(VT);var Da=VT;var aN=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},GT=(function(t){O(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=Ef(i,r),a=Yo(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return xi(r.value,ud[aS(To(this._minLevelUnit))]||ud.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return oS(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Ei(this),a=Ue(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ue().addBreaksToTicks(l,o.breaks,n),l;l=pN(this._minLevelUnit,this._approxInterval,u,n,Wo(this),o);var f=zt.length-1,c=0;return T(l,function(p){p.time&&(f=Math.min(f,re(zt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ue().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Ue().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(re(zt,ca(p.vmin,u)),re(zt,ca(p.vmax,u))),v=0,d=0;d<zt.length;d++)if(!YT(zt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:zt[g],upperTimeUnit:zt[m]}}),l},e.prototype.getMinorTicks=function(r){return Ko(this,r,ua(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return oe(r)?Math.round(r):+bt(r)},e.type="time",e})(It),Vc=[["second",Mf],["minute",Lf],["hour",bo],["quarter-day",bo*6],["half-day",bo*12],["day",$t*1.2],["half-week",$t*3.5],["week",$t*7],["month",$t*31],["quarter",$t*95],["half-year",ld/2],["year",ld]];function YT(t,e,r,i){return Co(new Date(e),t,i).getTime()===Co(new Date(r),t,i).getTime()}function oN(t,e){return t/=$t,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function sN(t){var e=30*$t;return t/=e,t>6?6:t>3?3:t>2?2:1}function lN(t){return t/=bo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function HT(t,e){return t/=e?Lf:Mf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function uN(t){return ce(fi(t,!0),1)}function fN(t,e,r){var i=Math.max(0,re(zt,e)-1);return Co(new Date(t),zt[i],r).getTime()}function cN(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function pN(t,e,r,i,n,a){var o=3e3,s=rS,l=0;function u(B,W,U,X,$,Z,te){for(var ne=cN($,B),K=W,de=new Date(K);K<U&&K<=i[1]&&(te.push({value:K}),!(l++>o));)if(de[$](de[X]()+B),K=de.getTime(),a){var xe=a.calcNiceTickMultiple(K,ne);xe>0&&(de[$](de[X]()+xe*B),K=de.getTime())}te.push({value:K,notAdd:K>i[1]})}function f(B,W,U){var X=[],$=!W.length;if(!YT(To(B),i[0],i[1],r)){$&&(W=[{value:fN(i[0],B,r)},{value:i[1]}]);for(var Z=0;Z<W.length-1;Z++){var te=W[Z].value,ne=W[Z+1].value;if(te!==ne){var K=void 0,de=void 0,xe=void 0,_t=!1;switch(B){case"year":K=Math.max(1,Math.round(e/$t/365)),de=fd(r),xe=sS(r);break;case"half-year":case"quarter":case"month":K=sN(e),de=If(r),xe=cd(r);break;case"week":case"half-week":case"day":K=oN(e,31),de=Of(r),xe=pd(r),_t=!0;break;case"half-day":case"quarter-day":case"hour":K=lN(e),de=Pf(r),xe=hd(r);break;case"minute":K=HT(e,!0),de=Nf(r),xe=vd(r);break;case"second":K=HT(e,!1),de=Rf(r),xe=dd(r);break;case"millisecond":K=uN(e),de=kf(r),xe=md(r);break}ne>=i[0]&&te<=i[1]&&u(K,te,ne,de,xe,_t,X),B==="year"&&U.length>1&&Z===0&&U.unshift({value:U[0].value-K})}}for(var Z=0;Z<X.length;Z++)U.push(X[Z])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=To(s[d]);if(nS(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?To(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(B,W){return B.value-W.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var b=we(k(c,function(B){return we(B,function(W){return W.value>=i[0]&&W.value<=i[1]&&!W.notAdd})}),function(B){return B.length>0}),C=b.length-1,w=[],d=0;d<b.length;++d)for(var E=b[d],A=0;A<E.length;++A){var D=ca(E[A].value,r);w.push({value:E[A].value,time:{level:C-d,upperTimeUnit:D,lowerTimeUnit:D}})}ro(w,W_,null),w.sort(function(B,W){return B.value-W.value});var L=w[0],M=w[w.length-1],I=ca(i[0],r),R=ca(i[1],r);return(!L||L.value>i[0])&&w.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&w.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),w}var WT=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=$t,r[1]+=$t),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-$t}t.setExtent(r[0],r[1]);var n=Ll(e.splitNumber,10),a=Wo(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Vc.length,u=Math.min(aN(Vc,a,0,l),l-1),f=Vc[u][1],c=Vc[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};It.registerClass(GT);var XT=GT;var Hc=0,Gc=1,hN=2,jT=(function(t){O(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Da.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Hc]=n[Gc]=a[Hc]=a[Gc]=NaN,Rc(i,e.mapperMethods);var s=Ue(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},hN,u),i.powStub=new Da({breakParsed:u.original}),i.intervalStub=new Da({breakParsed:u.transformed}),kc(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ue(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return k(o.getTicks(r||{}),function(f){var c=f.value,p=zc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ua(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Ko(this,r,ua(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Ml(r,this.base))},scale:function(r){return zc(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Ml(r,this.base),i&&i.depth===Go?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return qT.depth=n,KT.lookup=this._lookup,zc(n===Go?r:this.intervalStub.transformOut(r,qT),this.base,KT)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Ut,r,i)},setExtent2:function(r,i,n){if(!(!pi(i,n)||i<=0||n<=0)){var a=ZT,o=ZT;if(r===Ut){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Hc]=i,a[Gc]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Hc]=Ml(i,l),o[Gc]=Ml(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return pi(i[0],i[1])&&Ke(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(It);It.registerClass(jT);var qT={},KT={},ZT=[],QT=jT;var Yc={value:1,category:1,time:1,log:1};var $T=ee();function Xc(t){var e=t.get("type");return(e==null||!Ee(Yc,e)&&!It.getClass(e))&&(e="value"),e}function qc(t,e,r){var i=Ue(),n;switch(i&&(n=Dm(t,e,r)),e){case"category":return new FT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:ct()});case"time":return new XT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new QT({logBase:t.get("logBase"),breakOption:n});case"value":return new Da({breakOption:n});default:return new(It.getClass(e)||Da)({})}}function JT(t,e,r){var i=r?Aa(t,null):t.getExtentUnsafe(Ut,null),n=i[0],a=i[1];return pi(n,a)?n===e||a===e?dN:n<e&&a>e?vN:Wc:Wc}var vN=1,dN=2,Wc=3;function e1(t){$T(t).noOnMyZero=!0}function t1(t){return $T(t).noOnMyZero}function Il(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=iS(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(z(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(Y(e)){if(t.type==="category")return function(n,a){return e(Zo(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ue();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Zo(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Zo(t,e){var r=t.scale;return st(r)?r.getLabel(e):e.value}function Kc(t){var e=t.get("interval");return e??"auto"}function r1(t){return t.type==="category"&&Kc(t.getLabelModel())===0}function i1(t,e){var r={};return T(t.mapDimensionsAll(e),function(i){r[Vo(t,i)]=!0}),fe(r)}function ln(t){return t==="middle"||t==="center"}function Ma(t){return t.getShallow("show")}function Dm(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ue())return;if(!r||!mN(e)){if(0)var n;return}return i}}function mN(t){return t!=="category"}function Zc(t,e,r,i,n,a){var o=ei(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:Go},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=zT(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Ai(t,e){return st(t)?t.getRawOrdinalNumber(e.value):e.value}function jc(t,e){return st(t)&&!!e.get("boundaryGap")}var Qc=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var gN=ku(),$c="|&",jo=ee(),Jc=-2,n1=-1,yN=ee();function a1(t,e){var r=t.model,i=jo(Sa(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function o1(t,e){return u1(a1(t,e))}function s1(t,e){var r=[];return l1(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(u1(i))}),r}function l1(t,e){var r=jo(Sa(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function u1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function f1(t,e){var r=t.model.ecModel,i=jo(Sa(r)).axSer;i&&ep(r,i.get(t.model.uid),e)}function Om(t,e,r){var i=a1(t,e);i&&ep(t.model.ecModel,i.sers,r)}function ep(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function c1(t,e,r){var i=jo(Sa(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function Pm(t,e){var r=t.model,i=jo(Sa(r.ecModel)).keys;i&&T(i.get(r.uid),function(n){if(0)var a;e(n)})}function _N(t){var e=yN(Bb(t)),r=e.keyed||(e.keyed=V());l1(t,function(i,n,a){var o=r.get(n)||r.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&h1.liPosMinGap(t,i,s)})}function p1(t,e){h1[t]=e}var h1={};function Nm(t,e,r){if(t){var i=e.ecModel,n=jo(Sa(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=Im.get(Lm(c,p,r))||Im.get(Lm(c,p,null));if(h){var v=n.keyed||(n.keyed=V()),d=n.keys||(n.keys=V()),m=h.key,g=v.get(m)||v.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Lm(t,e,r){return t+$c+H(e,!0)+$c+(r||"")}function v1(t,e){var r=Lm(e.seriesType,e.baseAxis,e.coordSysType);Im.set(r,e),gN(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:_N})})}var Im=V();var xN=ee(),g1=1;var SN=3,y1=(function(){function t(e,r,i,n,a){var o=st(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(Xo(e)||ei(e)||qo(e))&&(jh(f,Ol(e,r.get("dataMin",!0))),Qh(f,Ol(e,r.get("dataMax",!0)))),G_(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Ol(e,Y(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Ol(e,Y(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=bN(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Dr(c[0])&&(c[0]=NaN),!Dr(c[1])&&(c[1]=NaN);var g=l||ri(c[0])||ri(c[1])||o&&!s,y=Xo(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Ol(e,r.get("startValue",!0)),b=S!=null;!Ke(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),Ke(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var C=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};d1(C,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),d1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function d1(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Y_(e))}function Ol(t,e){return e==null?null:ri(e)?NaN:t.parse(e)}function bN(t,e){var r;if(st(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=P(i)?i:[i,i]}return[m1(r[0]),m1(r[1])]}function m1(t){return wr(typeof t=="boolean"?0:t,1)||0}function _1(t){var e=xN(t.scale);return e.extent||(e.extent=ct()),e}function x1(t,e){_1(t).dimIdxInCoord=e.get(t.dim)}function S1(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||TN(r,t,n,i,e)}function TN(t,e,r,i,n){var a=_1(e),o=a.extent,s=!1;f1(e,function(f){if(f.boxCoordinateSystem){var c=Vf(f).coord,p=a.dimIdxInCoord;if(p>=0){if(P(c)){var h=c[p];h!=null&&!P(h)&&Ns(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;T(i1(v,r),function(m){H_(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=wN(t,e,i),u=new y1(t,i,o,s,l);b1(t,u,n),a.extent=null}function CN(t,e){var r=t.scale;b1(r,new y1(r,t.model,e,!1,!1),SN)}function b1(t,e,r){t.rawExtentInfo=e,e.from=r}function T1(t,e){Rm.set(t,e)}var Rm=V();function tp(t,e,r,i,n){t.rawExtentInfo||CN({scale:t,model:e},n||ct());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function wN(t,e,r){var i=jc(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Pm(e,function(o){a=!!Rm.get(o)||a}),a}function C1(t,e,r,i){if(r.ctnShp){var n;if(Pm(t,function(s){var l=Rm.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],jh(n,u[0]),Qh(n,u[1]),e1(t))}}),!!n){var a=e.getExtent();if(st(e))t.onBand||e.setExtent2(Ho,Ne(a[0],a[0]+n[0]),ce(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Ne(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ce(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Ho,o[0],o[1])}}}}function w1(t,e){var r=ei(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Uc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?AN(i,e):EN(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Pr(c)),n[0]||(s[0]=ve(fr(s[0]/f)*f,u)),n[1]||(s[1]=ve(Fi(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Zc(t,n,o,s,a,l)}function EN(t,e){var r=Ll(e.splitNumber,5),i=Wo(t),n=e.minInterval,a=e.maxInterval,o=fi(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Pr(o),l=t.getExtent(),u=[ve(Fi(l[0]/o)*o,s),ve(fr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function AN(t,e){var r=Ll(e.splitNumber,10),i=t.getExtent(),n=Wo(t),a=ce($a(n),1),o=r/n*a;o<=.5&&(a*=10);var s=Pr(a),l=[ve(Fi(i[0]/a)*a,s),ve(fr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function km(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;Bm(e,r,i,n,null)}function Bm(t,e,r,i,n){var a=tp(t,e,i,r,n),o=Xo(t)||qo(t);DN(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&C1(r,t,a,i)}function DN(t,e){MN[t.type](t,e)}var MN={interval:w1,log:w1,time:WT,ordinal:Oe};function LN(t){return sn(null,t)}var IN={isDimensionStacked:tr,enableDataStack:Nc,getStackedDimension:Vo};function ON(t,e){var r=e;e instanceof be||(r=new be(e));var i=Xc(r),n=qc(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),Bm(n,r,null,null,t),n}function PN(t){qe(t,Qc)}function NN(t,e){return e=e||{},Lr(t,null,null,e.state!=="normal")}var E1=[],RN={registerPreprocessor:Dc,registerProcessor:Mc,registerPostInit:vm,registerPostUpdate:dm,registerUpdateLifecycle:Sl,registerAction:nn,registerCoordinateSystem:mm,registerLayout:gm,registerVisual:wi,registerTransform:xm,registerLoading:Lc,registerMap:_m,registerImpl:Nb,PRIORITY:um,ComponentModel:ye,ComponentView:Xe,SeriesModel:Dt,ChartView:pt,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){Xe.registerClass(t)},registerSeriesModel:function(t){Dt.registerClass(t)},registerChartView:function(t){pt.registerClass(t)},registerCustomSeries:function(t,e){hc(t,e)},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Vh(t,e)}};function Ot(t){if(P(t)){T(t,function(e){Ot(e)});return}re(E1,t)>=0||(E1.push(t),Y(t)&&(t={install:t}),t.install(RN))}var kN=1e-8;function A1(t,e){return Math.abs(t-e)<kN}function Um(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=dr(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!A1(n[0],s[0])||!A1(n[1],s[1]))&&(i+=dr(n[0],n[1],s[0],s[1],e,r)),i!==0}var zN=[];function Fm(t,e){for(var r=0;r<t.length;r++)Ge(t[r],t[r],e)}function D1(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ar(e,e,a),or(r,r,a))}}function UN(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var M1=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var Vm=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var Hm=(function(){function t(e){this.type="linestring",this.points=e}return t})();var L1=(function(t){O(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return UN(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?D1(s.exterior,n,a,r):T(s.points,function(l){D1(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new Q(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Um(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Um(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new Q(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(Fm(p.exterior,u),T(p.interiors,function(h){Fm(h,u)})):T(p.points,function(h){Fm(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(M1);var uq=(function(t){O(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=sr(zN),o=r;o&&!o.isGeoSVGGraphicRoot;)br(a,o.getLocalTransform(),a),o=o.parent;return Yt(a,a),Ge(n,n,a),n},e})(M1);function FN(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return T(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=I1(s,o,r);break;case"Polygon":Gm(s,o,r);break;case"MultiLineString":Gm(s,o,r);break;case"MultiPolygon":T(s,function(l,u){return Gm(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function Gm(t,e,r){for(var i=0;i<t.length;i++)t[i]=I1(t[i],e[i],r)}function I1(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function rp(t,e){return t=FN(t),k(we(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Vm(o[0],o.slice(1)));break;case"MultiPolygon":T(n.coordinates,function(l){l[0]&&a.push(new Vm(l[0],l.slice(1)))});break;case"LineString":a.push(new Hm([n.coordinates]));break;case"MultiLineString":a.push(new Hm(n.coordinates))}var s=new L1(i[e||"name"],a,i.cp);return s.properties=i,s})}var Ym={};Ht(Ym,{MAX_SAFE_INTEGER:()=>As,asc:()=>Hi,getPercentWithPrecision:()=>A_,getPixelPrecision:()=>w_,getPrecision:()=>St,getPrecisionSafe:()=>Gh,isNumeric:()=>Ms,isRadianAroundZero:()=>Un,linearMap:()=>Es,nice:()=>fi,numericToNumber:()=>cr,parseDate:()=>bt,parsePercent:()=>Re,quantile:()=>M_,quantity:()=>$a,quantityExponent:()=>Ja,reformIntervals:()=>L_,remRadian:()=>Ds,round:()=>C_});var Wm={};Ht(Wm,{format:()=>xi,parse:()=>bt,roundTime:()=>Co});var Xm={};Ht(Xm,{Arc:()=>Jn,BezierCurve:()=>$n,BoundingRect:()=>Q,Circle:()=>jn,CompoundPath:()=>of,Ellipse:()=>Ks,Group:()=>ge,Image:()=>kt,IncrementalDisplayable:()=>hf,Line:()=>Et,LinearGradient:()=>co,Polygon:()=>$s,Polyline:()=>Js,RadialGradient:()=>lf,Rect:()=>_e,Ring:()=>Qs,Sector:()=>Kr,Text:()=>Ae,clipPointsByRect:()=>Jv,clipRectByRect:()=>ed,createIcon:()=>oa,extendPath:()=>Kv,extendShape:()=>qv,getShapeClass:()=>Zv,getTransform:()=>Qv,initProps:()=>at,makeImage:()=>tl,makePath:()=>mo,mergePath:()=>jv,registerShape:()=>Qt,resizePath:()=>mf,updateProps:()=>Be});var qm={};Ht(qm,{addCommas:()=>nl,capitalFirst:()=>fS,encodeHTML:()=>Je,formatTime:()=>uS,formatTpl:()=>Eo,getTextRect:()=>gd,getTooltipMarker:()=>zf,normalizeCssArray:()=>jr,toCamelCase:()=>wo,truncateText:()=>iv});var Km={};Ht(Km,{bind:()=>pe,clone:()=>j,curry:()=>me,defaults:()=>ie,each:()=>T,extend:()=>N,filter:()=>we,indexOf:()=>re,inherits:()=>ns,isArray:()=>P,isFunction:()=>Y,isObject:()=>F,isString:()=>z,map:()=>k,merge:()=>le,reduce:()=>ht});var VN=ee(),Pl=ee(),Ft={estimate:1,determine:2};function Qo(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function O1(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:k(N1(r,i),function(n,a){return{formattedLabel:Il(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?HN(t,e):YN(t)}function P1(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:N1(n,i)}:t.type==="category"?GN(t,e):{ticks:i.getTicks(r)}}function N1(t,e){var r=e.getExtent(),i=[];return T(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),ro(i,X_,null),Hi(i),k(i,function(n){return{value:n}})}function HN(t,e){var r=t.getLabelModel(),i=R1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function R1(t,e,r){var i=XN(t),n=Kc(e),a=r.kind===Ft.estimate;if(!a){var o=B1(i,n);if(o)return o}var s,l;Y(n)?s=ip(t,n,!1):(l=n==="auto"?qN(t,r):n,s=ip(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Zm(i,n,u),!0}):Zm(i,n,u),u}function GN(t,e){var r=WN(t),i=Kc(e),n=B1(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Y(i))a=ip(t,i,!0);else if(i==="auto"){var s=R1(t,t.getLabelModel(),Qo(Ft.determine));o=s.labelCategoryInterval,a=k(s.labels,function(l){return l.tick})}else o=i,a=ip(t,o,!0);return Zm(r,i,{ticks:a,tickCategoryInterval:o})}function YN(t){var e=t.scale.getTicks(),r=Il(t);return{labels:k(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var WN=k1("axisTick"),XN=k1("axisLabel");function k1(t){return function(r){return Pl(r)[t]||(Pl(r)[t]={list:[]})}}function B1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Zm(t,e,r){return t.list.push({key:e,value:r}),r}function qN(t,e){if(e.kind===Ft.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Pl(t).autoInterval=r,!0}),r}var i=Pl(t).autoInterval;return i??(Pl(t).autoInterval=t.calculateCategoryInterval(e))}function z1(t,e){var r=e.kind,i=ZN(t),n=Il(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=wu(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Ft.estimate)return e.out.noPxChangeTryDetermine.push(pe(KN,null,t,b,l)),b;var C=U1(t,b,l);return C??b}function KN(t,e,r){return U1(t,e,r)==null}function U1(t,e,r){var i=VN(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function ZN(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function ip(t,e,r){var i=Il(t),n=t.scale,a=[],o=Y(e);return Fc(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var jN=.8;function Nr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=kT(i);Ke(o)||(o=NaN);var s=t.getExtent(),l=De(s[1]-s[0]);return st(i)?QN(r,t,o,l):n?$N(r,t,o,l,n):a==null,a!=null&&(r.w=Ke(r.w)?ce(a,r.w):a),r}function QN(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function $N(t,e,r,i,n){var a=!1,o=-1/0;T(n.key?[o1(e,n.key)]:s1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Jc&&(a=!0))}),Ke(r)&&r>0&&Ke(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*jN,t.w2=t.w*r/i)}var F1=[0,1],JN=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),Es(e,F1,V1(this),r)},t.prototype.coordToData=function(e,r){var i=Es(e,V1(this),F1,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=P1(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=k(i.ticks,function(s){return{coord:this.dataToCoord(Ai(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=eR(this,n,a);return k(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(st(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=k(i,function(a){return k(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Qo(Ft.determine),O1(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Nr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Qo(Ft.determine),z1(this,e)},t})();function V1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function eR(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=Nr(t).w;if(!n)return!1;T(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var np=JN;function tR(t){var e=ye.extend(t);return ye.registerClass(e),e}function rR(t){var e=Xe.extend(t);return Xe.registerClass(e),e}function iR(t){var e=Dt.extend(t);return Dt.registerClass(e),e}function nR(t){var e=pt.extend(t);return pt.registerClass(e),e}var H1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],aR=1,ap=2,Y1=aR|ap;function Nl(t,e,r){r=r||Y1,e?t.dirty|=r:t.dirty&=~r}function W1(t,e){return e=e||Y1,t.dirty==null||!!(t.dirty&e)}function Rr(t){if(t)return W1(t)&&oR(t,t.label,t),t}function oR(t,e,r){var i=e.getComputedTransform();t.transform=_f(t.transform,i);var n=t.localRect=_o(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=sa.textMargin);for(var c=0;c<4;c++)jm[c]=f===sa.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===sa.textMargin&&go(n,jm,!1,!1);var p=t.rect=_o(t.rect,n);return i&&p.applyTransform(i),f===sa.minMargin&&go(p,jm,!1,!1),t.axisAligned=yf(i),(t.label=t.label||{}).ignore=e.ignore,Nl(t,!1),Nl(t,!0,ap),t}var jm=[0,0,0,0];function X1(t,e,r){return t.transform=_f(t.transform,r),t.localRect=_o(t.localRect,e),t.rect=_o(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=yf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function q1(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Qm(t,e){for(var r=0;r<H1.length;r++){var i=H1[r];t[i]==null&&(t[i]=e[i])}return Rr(t)}function G1(t){var e=t.obb;return(!e||W1(t,ap))&&(t.obb=e=e||new pf,e.fromBoundingRect(t.localRect,t.transform),Nl(t,!1,ap)),e}function K1(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Rr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(op(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function op(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:G1(t).intersect(G1(e),r,i)}var sR=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return sn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new ge,n=Mt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Mt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=q.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Dt),Z1=sR;function $o(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=bi(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(bi(t,e,r[o]));return a.join(" ")}}function sp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!P(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var lR=(function(t){O(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=Mt(r,-1,-1,2,2,null,s);l.attr({z2:H(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=uR,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){di(this.childAt(0))},e.prototype.downplay=function(){mi(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Be(h,v,s,i),vf(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,at(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=gr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=ba(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),C=b.fill;if(s instanceof kt){var w=s.style;s.useStyle(N({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=r.getItemVisual(i,"liftZ"),A=this._z2;E!=null?A==null&&(this._z2=s.z2,s.z2+=E):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Zr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:C,defaultOpacity:b.opacity});function L(R){return D?r.getName(R):$o(r,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),gi(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=ue(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&ho(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ho(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return gl(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(ge);function uR(t,e){this.parent.drift(t,e)}var Rl=lR;function lp(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function j1(t){return t!=null&&!F(t)&&(t={isIgnore:t}),t||{}}function Q1(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:gr(e),cursorStyle:e.get("cursor")}}function $1(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var fR=(function(){function t(e){this.group=new ge,this._SymbolCtor=e||Rl}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=j1(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=Q1(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);lp(e,p,c,r)&&$1(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!lp(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Be(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);lp(r,l,a,e)?(s=s||$1(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Q1(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=j1(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=na)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(lp(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){_i(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),J1=fR;function up(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=cR(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=k(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return tr(e,c[0])&&(p=!0,c[0]=h),tr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function cR(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:oe(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function fp(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Vt(t,e){return!isFinite(t)||!isFinite(e)}var pR=typeof Float32Array!==Zi?Float32Array:void 0,eC=typeof Float64Array!==Zi?Float64Array:void 0;function rr(t){return cp({ctor:pR},t).arr}function cp(t,e){var r=t.arr,i=t.ctor;if(e>As&&(e=As),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function hR(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function Jm(t,e,r,i,n,a,o,s){for(var l=hR(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=up(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,C=void 0;switch(x.cmd){case"=":b=x.idx*2,C=x.idx1*2;var w=g[b],E=g[b+1],A=y[C],D=y[C+1];(isNaN(w)||isNaN(E))&&(w=A,E=D),u.push(w,E),f.push(A,D),c.push(r[b],r[b+1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var L=x.idx,M=m.dataDimsForPoint,I=n.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);C=L*2,u.push(I[0],I[1]),f.push(y[C],y[C+1]);var R=fp(m,n,e,L);c.push(R[0],R[1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(L));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(de,xe){return d[de]-d[xe]});for(var B=u.length,W=rr(B),U=rr(B),X=rr(B),$=rr(B),Z=[],_=0;_<v.length;_++){var te=v[_],ne=_*2,K=te*2;W[ne]=u[K],W[ne+1]=u[K+1],U[ne]=f[K],U[ne+1]=f[K+1],X[ne]=c[K],X[ne+1]=c[K+1],$[ne]=p[K],$[ne+1]=p[K+1],Z[_]=h[te]}return{current:W,next:U,stackedOnCurrent:X,stackedOnNext:$,status:Z}}var un=Math.min,fn=Math.max;function eg(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Vt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,b=e[S*2],C=e[S*2+1];b===g&&C===y&&m<i;)m++,S+=a,d+=a,b=e[S*2],C=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var w=m+1;if(l)for(;Vt(b,C)&&w<i;)w++,S+=a,b=e[S*2],C=e[S*2+1];var E=.5,A=0,D=0,L=void 0,M=void 0;if(w>=i||Vt(b,C))h=g,v=y;else{A=b-u,D=C-f;var I=g-u,R=b-g,B=y-f,W=C-y,U=void 0,X=void 0;if(s==="x"){U=Math.abs(I),X=Math.abs(R);var $=A>0?1:-1;h=g-$*U*o,v=y,L=g+$*X*o,M=y}else if(s==="y"){U=Math.abs(B),X=Math.abs(W);var Z=D>0?1:-1;h=g,v=y-Z*U*o,L=g,M=y+Z*X*o}else U=Math.sqrt(I*I+B*B),X=Math.sqrt(R*R+W*W),E=X/(X+U),h=g-A*o*(1-E),v=y-D*o*(1-E),L=g+A*o*E,M=y+D*o*E,L=un(L,fn(b,g)),M=un(M,fn(C,y)),L=fn(L,un(b,g)),M=fn(M,un(C,y)),A=L-g,D=M-y,h=g-A*U/X,v=y-D*U/X,h=un(h,fn(u,g)),v=un(v,fn(f,y)),h=fn(h,un(u,g)),v=fn(v,un(f,y)),A=g-h,D=y-v,L=g+A*X/U,M=y+D*X/U}t.bezierCurveTo(c,p,h,v,g,y),c=L,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var tC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),rC=(function(t){O(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new tC},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Vt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Vt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=eg(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=qt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?In(s,h,d,g,r,f):In(l,v,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var C=f[b];if(C<=1&&C>=0){var x=u?Pe(l,v,m,y,C):Pe(s,h,d,g,C);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(ae);var vR=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(tC),iC=(function(t){O(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new vR},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Vt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Vt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=eg(r,n,o,s,s,1,i.smooth,l,i.connectNulls);eg(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(ae);function tg(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=Y(n)?function(m){n(m,c)}:null;at(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function rg(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new Kr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,at(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function nC(t,e,r,i,n){if(t){if(t.type==="polar")return rg(t,e,r);if(t.type==="cartesian2d")return tg(t,e,r,i,n)}else return null;return null}function Jo(t,e){return t.type===e}function aC(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function oC(t){for(var e=ct(),r=ct(),i=0;i<t.length;){var n=t[i++],a=t[i++];Vt(n,a)||(Ns(e,n),Ns(r,a))}return[e,r]}function sC(t,e){var r=oC(t),i=r[0],n=r[1],a=oC(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function lC(t){return oe(t)?t:t?.5:0}function dR(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=rr(i*2),a=0;a<i;a++){var o=fp(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function cn(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Vt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function mR(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=du(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function gR(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=k(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=mR(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";T(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new co(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function yR(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&_R(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){l.tick.offInterval||(s[Ai(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function _R(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Rl.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function xR(t){for(var e=t.length/2;e>0&&Vt(t[e*2-2],t[e*2-1]);e--);return e-1}function uC(t,e){return[t[e*2],t[e*2+1]]}function SR(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Vt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function fC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<wt.length;e++)if(t.get([wt[e],"endLabel","show"]))return!0;return!1}function ig(t,e,r,i){if(Jo(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=fC(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=tg(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return rg(e,r,i)}function bR(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var TR=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ge,i=new J1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=pe(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=up(a,s,_),S=y&&dR(a,s,x),b=r.get("showSymbol"),C=r.get("connectNulls"),w=b&&!c&&yR(r,s,a),E=this._data;E&&E.eachItemGraphicEl(function(Le,$e){Le.__temp&&(o.remove(Le),E.setItemGraphicEl($e,null))}),b||h.remove(),o.add(m);var A=c?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=gR(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&A===this._step))b&&h.updateData(s,{isIgnore:w,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),A&&(S&&(S=cn(S,f,a,A,C)),f=cn(f,null,a,A,C)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Ir(L)),m.setClipPath(ig(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Ir(L));var M=m.getClipPath();if(M){var I=ig(this,a,!1,r);at(M,{shape:I.shape},r)}else m.setClipPath(ig(this,a,!0,r));b&&h.updateData(s,{isIgnore:w,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),(!aC(this._stackedOnPoints,S)||!aC(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,A,_,C):(A&&(S&&(S=cn(S,f,a,A,C)),f=cn(f,null,a,A,C)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),B=R.get("focus"),W=R.get("blurScope"),U=R.get("disabled");if(v.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ws(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var X=v.getState("emphasis").style;X.lineWidth=+v.style.lineWidth+1}ue(v).seriesIndex=r.seriesIndex,gi(v,B,W,U);var $=lC(r.get("smooth")),Z=r.get("smoothMonotone");if(v.setShape({smooth:$,smoothMonotone:Z,connectNulls:C}),d){var te=s.getCalculationInfo("stackedOnSeries"),ne=0;d.useStyle(ie(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),te&&(ne=lC(te.get("smooth"))),d.setShape({smooth:$,stackedOnSmooth:ne,smoothMonotone:Z,connectNulls:C}),Ws(d,r,"areaStyle"),ue(d).seriesIndex=r.seriesIndex,gi(d,B,W,U)}var K=this._changePolyState;s.eachItemGraphicEl(function(Le){Le&&(Le.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=A,this._valueOrigin=_;var de=r.get("triggerEvent"),xe=r.get("triggerLineEvent"),_t=xe===!0||de===!0||de==="line",Sr=xe===!0||de===!0||de==="area";this.packEventData(r,v,_t),d&&this.packEventData(r,d,Sr)},e.prototype.packEventData=function(r,i,n){ue(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=pr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Vt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new Rl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else pt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=pr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else pt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Dv(this._polyline,r),i&&Dv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new rC({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new iC({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Y(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=Y(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var w=Y(c)?c(v):f*C+p,E=d.getSymbolPath(),A=E.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:w}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:w}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(fC(r)){var o=r.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 Ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=xR(l);f>=0&&(Zr(s,gr(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?sp(o,h):$o(o,c)},enableTextSetter:!0},bR(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),C=g?"x":"y",w=SR(c,x,C),E=w.range,A=E[1]-E[0],D=void 0;if(A>=1){if(A>1&&!h){var L=uC(c,E[0]);u.attr({x:L[0]+S,y:L[1]+b}),o&&(D=p.getRawValue(E[0]))}else{var L=f.getPointOn(x,C);L&&u.attr({x:L[0]+S,y:L[1]+b});var M=p.getRawValue(E[0]),I=p.getRawValue(E[1]);o&&(D=Zh(n,v,M,I,w.t))}a.lastFrameIndex=E[0]}else{var R=r===1||a.lastFrameIndex>0?E[0]:0,L=uC(c,R);o&&(D=p.getRawValue(R)),u.attr({x:L[0]+S,y:L[1]+b})}if(o){var B=xo(u);typeof B.setLabelText=="function"&&B.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=Jm(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=cn(p.stackedOnCurrent,p.current,n,o,l),h=cn(p.current,null,n,o,l),m=cn(p.stackedOnNext,p.next,n,o,l),d=cn(p.next,null,n,o,l)),sC(h,d)>3e3||f&&sC(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Be(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Be(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,w=0;w<y.length;w++){var E=y[w].el,A=y[w].ptIdx*2;E.x=C[A],E.y=C[A+1],E.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(pt),cC=TR;function ng(t,e){return{seriesType:t,plan:ya(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=k(n.dimensions,function(h){return i.mapDimension(h)}).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(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&rr(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var CR={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},wR=function(t){return Math.round(t.length/2)};function kl(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;z(a)?v=CR[a]:Y(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,wR))}}}}}function ag(t){t.registerChartView(cC),t.registerSeriesModel(Z1),t.registerLayout(ng("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,kl("line"))}var ER=(function(t){O(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(np),pC=ER;var AR=null;function La(){return AR}var hC="expandAxisBreak";var pn=Math.PI,DR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],MR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],hn=ee(),mC=ee(),sg=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function LR(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=fg(t.axisName)&&ln(t.nameLocation);T(i,function(v){var d=Rr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?Yt(Bl,m.transform):sr(Bl),d.transform&&br(Bl,Bl,d.transform),Q.copy(pp,d.localRect),pp.applyTransform(Bl),s?s.union(pp):Q.copy(s=new Q(0,0,0,0),pp))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new Q(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Bl=ut(),pp=new Q(0,0,0,0),lg=function(t,e,r,i,n,a){if(ln(t.nameLocation)){var o=a.stOccupiedRect;o&&gC(X1({},o,a.transGroup.transform),i,n)}else ug(a.labelInfoList,a.dirVec,i,n)};function gC(t,e,r){var i=new Te;op(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&q1(e,i)}function ug(t,e,r,i){for(var n=Te.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||gC(s,r,i)}}var Ia=(function(){function t(e,r,i,n){this.group=new ge,this._axisModel=e,this._api=r,this._local={},this._shared=n||new sg(lg),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=H(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=H(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:H(e.nameDirection,1),tickDirection:H(e.tickDirection,1),labelDirection:H(e.labelDirection,1),labelOffset:H(e.labelOffset,0),silent:H(e.silent,!0),axisName:n,nameLocation:nr(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:fg(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ge({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new Te(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(IR,function(n){e[n]&&OR[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=Ds(r-e),a,o;return Un(n)?(o=i>0?"top":"bottom",a="center"):Un(n-pn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<pn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),IR=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],OR={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Ge(c,c,f),Ge(p,p,f));var v=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&fa(i.axis.scale))La().buildAxisBreakLine(i,n,a,d);else{var m=new Et(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));aa(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);z(g)&&(g=[g,g]),(z(y)||oe(y))&&(y=[y,y]);var _=ba(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];T([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,C){if(g[C]!=="none"&&g[C]!=null){var w=Mt(g[C],-x/2,-S/2,x,S,v.stroke,!0),E=b.r+b.offset,A=h?p:c;w.attr({rotation:b.rotate,x:A[0]+E*Math.cos(t.rotation),y:A[1]-E*Math.sin(t.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=dC(e,n,s);u&&vC(t,e,r,i,n,a,o,Ft.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=dC(e,n,s);u&&vC(t,e,r,i,n,a,o,Ft.determine);var f=kR(t,n,a,i);RR(t,e.labelLayoutList,f),BR(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(fg(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new Te(0,0),y=new Te(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=ut();y.transform(Tn(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*pn/180);var S,b;ln(c)?S=Ia.innerTextLayout(t.rotation,x??t.rotation,p):(S=PR(t.rotation,c,x||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var C=h.getFont(),w=i.get("nameTruncate",!0)||{},E=w.ellipsis,A=ii(t.raw.nameTruncateMaxWidth,w.maxWidth,b),D=s.nameMarginLevel||0,L=new Ae({x:g.x,y:g.y,rotation:S.rotation,silent:Ia.isLabelSilent(i),style:Lr(h,{text:f,font:C,overflow:"truncate",width:A,ellipsis:E,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(yo({el:L,componentModel:i,itemName:f}),L.__fullText=f,L.anid="name",i.get("triggerEvent")){var M=Ia.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ue(L).eventData=M}a.add(L),L.updateTransform(),e.nameEl=L;var I=l.nameLayout=Rr({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:ln(c)?DR[D]:MR[D]});if(l.nameLocation=c,n.add(L),L.decomposeTransform(),t.shouldNameMoveOverlap&&I){var R=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,R)}}}};function vC(t,e,r,i,n,a,o,s){_C(e)||zR(t,e,n,s,i,o);var l=e.labelLayoutList;UR(t,i,l,a),HR(i,t.rotation,l);var u=t.optionHideOverlap;NR(i,l,u),u&&K1(we(l,function(f){return f&&!f.label.ignore})),LR(t,r,i,l)}function PR(t,e,r,i){var n=Ds(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Un(n-pn/2)?(o=l?"bottom":"top",a="center"):Un(n-pn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<pn*1.5&&n>pn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function NR(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(r1(i))return;function a(u,f,c){var p=Rr(e[f]),h=Rr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=hn(p.label).labelInfo.tick;if(qo(v)&&d.notNice||st(v)&&d.offInterval){es(p.label);return}}if(u===!1||p.suggestIgnore){es(p.label);return}if(h.suggestIgnore){es(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Qm({marginForce:g},p),h=Qm({marginForce:g},h)}op(p,h,null,{touchThreshold:m})&&es(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function RR(t,e,r){t.showMinorTicks||T(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=mC(a),s=hn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){es(a);return}}})}function es(t){t&&(t.ignore=!0)}function yC(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Ge(o,o,e),Ge(s,s,e));var f=new Et({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});aa(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=mC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function kR(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=yC(u,r.transform,l,ie(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function BR(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=yC(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function dC(t,e,r){if(_C(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),og(t,null,null,null))}return!0}function zR(t,e,r,i,n,a){var o=n.axis,s=ii(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new ge;r.add(l);var u=Qo(i);if(!s||o.scale.isBlank()){og(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(ii(t.raw.labelRotate,f.get("rotate"))||0)*pn/180,h=Ia.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;T(c,function(x,S){var b,C=x.tick,w=x.formattedLabel,E=x.rawLabel,A=f,D=Ai(o.scale,C);if(v&&v[D]){var L=v[D];F(L)&&L.textStyle&&(A=new be(L.textStyle,f,n.ecModel))}var M=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=A.getShallow("align",!0)||h.textAlign,R=H(A.getShallow("alignMinLabel",!0),I),B=H(A.getShallow("alignMaxLabel",!0),I),W=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,U=H(A.getShallow("verticalAlignMinLabel",!0),W),X=H(A.getShallow("verticalAlignMaxLabel",!0),W),$=10+(((b=C.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,$),y=Math.max(y,$);var Z=new Ae({x:0,y:0,rotation:0,silent:Ia.isLabelSilent(n),z2:$,style:Lr(A,{text:w,align:S===0?R:S===c.length-1?B:I,verticalAlign:S===0?U:S===c.length-1?X:W,fill:Y(M)?M(o.type==="category"?E:o.type==="value"?D+"":D,S):M})});Z.anid="label_"+D;var te=hn(Z);if(te.labelInfo=x,te.layoutRotation=h.rotation,yo({el:Z,componentModel:n,itemName:w,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:E,tickIndex:S}}),m){var ne=Ia.makeAxisEventDataBase(n);ne.targetType="axisLabel",ne.value=E,ne.tickIndex=S;var K=x.tick.break;if(K){var de=K.parsedBreak;ne.break={start:de.vmin,end:de.vmax}}o.type==="category"&&(ne.dataIndex=D),ue(Z).eventData=ne,K&&VR(n,a,Z,K)}d.push(Z),l.add(Z)});var _=k(d,function(x){return{label:x,priority:hn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});og(e,_,l,u)}function _C(t){return!!t.labelLayoutList}function og(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function UR(t,e,r,i){var n=e.get(["axisLabel","margin"]);T(r,function(a,o){var s=Rr(a);if(s){var l=s.label,u=hn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ka(Di,FR);var f=e.axis;Di.x=f.dataToCoord(Ai(f.scale,u.labelInfo.tick)),Di.y=t.labelOffset+t.labelDirection*n,Di.rotation=u.layoutRotation,i.add(Di),Di.updateTransform(),i.remove(Di),Di.decomposeTransform(),Ka(l,Di),l.markRedraw(),Nl(s,!0),Rr(s)}})}var Di=new _e,FR=new _e;function fg(t){return!!t}function VR(t,e,r,i){r.on("click",function(n){var a={type:hC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function HR(t,e,r){var i=Ue();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&hn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&T(n,function(o){La().adjustBreakLabelPair(t.axis.inverse,e,[Rr(r[o[0]]),Rr(r[o[1]])])})}}var hp=Ia;function zl(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ii(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function xC(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function SC(t){var e={xAxisModel:null,yAxisModel:null};return T(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,ft).models[0];e[i]=a}),e}function bC(t,e,r,i,n,a){for(var o=zl(t,r),s=!1,l=!1,u=0;u<e.length;u++)Bc(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new hp(r,i,o,n)}function TC(t,e,r){var i=zl(e,r);if(0)var n;t.updateCfg(i)}function CC(){p1("liPosMinGap",YR)}function YR(t,e,r){var i=V(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=tc(f);function p(_){ep(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}cp(Oa,h);var v=0;p(function(_,x,S){for(var b=0,C=S.count();b<C;++b){var w=S.get(_,b);isFinite(w)&&(!f||rc(c,w))&&(u&&(w=l.transformIn(w,null)),Oa.arr[v++]=w)}});var d=Oa.typed?Oa.arr.subarray(0,v):(Oa.arr.length=v,Oa.arr);Oa.typed?d.sort():Hi(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Ke(m)?m:v>0?Jc:n1,r.serUids=i}var Oa=cp({ctor:eC},50);function wC(t){return function(e,r){var i=Nr(e,{fromStat:{key:t}});if(Ke(i.w2))return[-i.w2/2,i.w2/2]}}function Ul(t,e){return t+$c+e}function EC(t){return CC(),{liPosMinGap:!st(t.scale)}}var Mi="bar";function AC(t,e,r,i){v1(t,{key:e,seriesType:r,coordSysType:i,getMetrics:EC})}function DC(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var cg={left:0,right:0,top:0,bottom:0},Fl=["25%","25%"],xr="cartesian2d",WR=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=$r(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&Jt(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Jt(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:cg,outerBoundsContain:"all",outerBoundsClampWidth:Fl[0],outerBoundsClampHeight:Fl[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},e})(ye),MC=WR;var XR=ku(),qR="__ec_stack_";function LC(t){return t.get("stack")||qR+t.seriesIndex}function KR(t,e){var r=ZR(t,e);return r.columnMap=jR(r),r}function ZR(t,e){var r=Ul(e,xr),i=[],n=Nr(t,{fromStat:{key:r},min:1});return Om(t,r,function(a){i.push({barWidth:Re(a.get("barWidth"),n.w),barMaxWidth:Re(a.get("barMaxWidth"),n.w),barMinWidth:Re(a.get("barMinWidth")||(PC(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:LC(a)})}),{bandWidthResult:n,seriesInfo:i}}function jR(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};T(t.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Ee(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=Ne(r,_),r-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var C=d.barCategoryGap;C!=null&&(n=C)}),n==null&&(n=ce(35-o.length*4,15)+"%");var l=Re(n,e),u=Re(a,1),f=(r-l)/(i+(i-1)*u);f=ce(f,0),T(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Ne(_,g)),y&&(_=ce(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Ne(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=ce(f,0);var c=0,p;T(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return T(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function IC(t){return{seriesType:t,overallReset:function(e){var r=Ul(t,xr);c1(e,r,function(i){var n=KR(i,t);Om(i,r,function(a){var o=n.columnMap[LC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function OC(t){return{seriesType:t,plan:ya(),reset:function(e){if(xC(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=tr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(DC(a))),v=PC(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=v&&rr(S*3),C=v&&l&&rr(S*3),w=v&&rr(S),E=i.master.getRect(),A=p?E.width:E.height,D,L=x.getStore(),M=0;(D=_.next())!=null;){var I=L.get(c?m:o,D),R=L.get(s,D),B=h,W=void 0;c&&(W=+I-L.get(o,D));var U=void 0,X=void 0,$=void 0,Z=void 0;if(p){var te=i.dataToPoint([I,R]);c&&(B=i.dataToPoint([W,R])[0]),U=B,X=te[1]+y,$=te[0]-B,Z=g,De($)<d&&($=($<0?-1:1)*d)}else{var te=i.dataToPoint([R,I]);c&&(B=i.dataToPoint([R,W])[1]),U=te[0]+y,X=B,$=g,Z=te[1]-B,De(Z)<d&&(Z=(Z<=0?-1:1)*d)}v?(b[M]=U,b[M+1]=X,b[M+2]=p?$:Z,C&&(C[M]=p?E.x:U,C[M+1]=p?X:E.y,C[M+2]=A),w[D]=D):x.setItemLayout(D,{x:U,y:X,width:$,height:Z}),M+=3}v&&x.setLayout({largePoints:b,largeDataIndices:w,largeBackgroundPoints:C,valueAxisHorizontal:p})}}}}}}function PC(t){return t.pipelineContext&&t.pipelineContext.large}function QR(t){return wC(Ul(t,xr))}function NC(t){XR(t,function(){function e(r){var i=Ul(r,xr);AC(t,i,r,xr),T1(i,QR(r))}e("bar"),e("pictorialBar")})}var RC=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return sn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var b=v[S].coord,C=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(C===m){_=b;break}else if(C<m)y=b;else if(y!=null&&C>m){_=(b+y)/2;break}S===1&&(x=C-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Dt);Dt.registerClass(RC);var pg=RC;var $R=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return sn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=Bu(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Mi,e.dependencies=["grid","polar"],e.defaultOption=Sf(pg.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:q.color.primary,borderWidth:2}},realtimeSort:!1}),e})(pg),kC=$R;var JR=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),ek=(function(t){O(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new JR},e.prototype.buildPath=function(r,i){var n=i.cx,a=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,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(d*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(ae),hg=ek;function BC(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Bn(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(d),b=c+p*x(d),C="left",w="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),C="center",w="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),C="center",w="bottom";break;case"startAngle":S=f+v*_(d)+vp(d,l+y,!1),b=c+v*x(d)+dp(d,l+y,!1),C="right",w="middle";break;case"insideStartAngle":S=f+v*_(d)+vp(d,-l+y,!1),b=c+v*x(d)+dp(d,-l+y,!1),C="left",w="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),C="center",w="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),C="center",w="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),C="center",w="top";break;case"endAngle":S=f+v*_(m)+vp(m,l+y,!0),b=c+v*x(m)+dp(m,l+y,!0),C="left",w="middle";break;case"insideEndAngle":S=f+v*_(m)+vp(m,-l+y,!0),b=c+v*x(m)+dp(m,-l+y,!0),C="right",w="middle";break;default:return Bn(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=C,i.verticalAlign=w,i}}function zC(t,e,r,i){if(oe(i)){t.setTextConfig({rotation:i});return}else if(P(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.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),t.setTextConfig({rotation:f})}function vp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function dp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function UC(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;P(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:k(i,function(a){return wr(a,n)})}}var vg=Math.max,dg=Math.min,tk=(function(t){O(e,t);function e(){var r=t.call(this)||this;return r.type=Mi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){_i(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=rk(r,u);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,C=a&&a.type==="changeAxisOrder";function w(D){var L=mp[u.type](s,D);if(!L)return null;var M=uk(u,c,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var L=s.getItemModel(D),M=mp[u.type](s,D,L);if(M&&(g&&w(D),!(!s.hasValue(D)||!YC[u.type](M)))){var I=!1;v&&(I=FC[u.type](d,M));var R=VC[u.type](r,s,D,M,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),WC(R,s,D,L,M,r,c,u.type==="polar"),b?R.attr({shape:M}):h?HC(h,p,R,M,D,c,!1,!1):at(R,{shape:M},r,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,L){var M=s.getItemModel(D),I=mp[u.type](s,D,M);if(I){if(g){var R=void 0;S.length===0?R=w(L):(R=S[L],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[D]=R);var B=mp[u.type](s,D),W=jC(c,B,u);Be(R,{shape:W},p,D)}var U=l.getItemGraphicEl(L);if(!s.hasValue(D)||!YC[u.type](I)){o.remove(U);return}var X=!1;v&&(X=FC[u.type](d,I),X&&o.remove(U));var $=U&&(U.type==="sector"&&m||U.type==="sausage"&&!m);if($&&(U&&vo(U,r,L),U=null),U?vf(U):U=VC[u.type](r,s,D,I,c,p,f.model,!0,m),h&&(U.forceLabelAnimation=!0),C){var Z=U.getTextContent();if(Z){var te=xo(Z);te.prevValue!=null&&(te.prevValue=te.value)}}else WC(U,s,D,M,I,r,c,u.type==="polar");b?U.attr({shape:I}):h?HC(h,p,U,I,D,c,!0,C):Be(U,{shape:I},r,D,null),s.setItemGraphicEl(D,U),U.ignore=X,o.add(U)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&vo(L,r,D)}).execute();var E=this._backgroundGroup||(this._backgroundGroup=new ge);E.removeAll();for(var A=0;A<x.length;++A)E.add(x[A]);o.add(E),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),qC(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),qC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&nC(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),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(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:k(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){vo(a,r,ue(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Mi,e})(pt),FC={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=vg(e.x,t.x),s=dg(e.x+e.width,n),l=vg(e.y,t.y),u=dg(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=dg(e.r,t.r),a=vg(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},VC={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new _e({shape:N({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?hg:Kr,f=new u({shape:i,z2:1});f.name="item";var c=ZC(n);if(f.calculateTextPosition=BC(c,{isRoundCap:u===hg}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Be:at)(f,{shape:v},a)}return f}};function rk(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function HC(t,e,r,i,n,a,o,s){var l,u;a?(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?Be:at)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?Be:at)(r,{shape:u},f,n)}function GC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var ik=["x","y","width","height"],nk=["cx","cy","r","startAngle","endAngle"],YC={cartesian2d:function(t){return!GC(t,ik)},polar:function(t){return!GC(t,nk)}},mp={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?ok(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ak(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function ZC(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function WC(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=UC(i.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?fk(n,a.coordinateSystem):ck(n,a.coordinateSystem),v=gr(i);Zr(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:$o(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,zC(t,m==="outside"?h:m,ZC(o),i.get(["label","rotate"]))}Wx(d,v,a.getRawValue(r),function(y){return sp(e,y)});var g=i.getModel(["emphasis"]);gi(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ws(t,i),ak(n)&&(t.style.fill="none",t.style.stroke="none",T(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ok(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var sk=(function(){function t(){}return t})(),XC=(function(t){O(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new sk},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(ae);function qC(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?q_(t):0;if(u){var c=new XC({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new XC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,ue(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",KC),p.on("mousemove",KC)),r&&r.push(p)}var KC=_a(function(t){var e=this,r=lk(e,t.offsetX,t.offsetY);ue(e).dataIndex=r>=0?r:null},30,!1);function lk(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function jC(t,e,r){if(Jo(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function uk(t,e,r){var i=t.type==="polar"?Kr:_e;return new i({shape:jC(e,r,t),silent:!0,z2:0})}function fk(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function ck(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var QC=tk;function mg(t){t.registerChartView(QC),t.registerSeriesModel(kC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,IC(Mi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OC(Mi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,kl(Mi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),NC(t)}var gp=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ft).models[0]},e.type="cartesian2dAxis",e})(ye);qe(gp,Qc);var $C={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:"auto",onZeroAxisIndex:null,lineStyle:{color:q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},pk=le({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},$C),gg=le({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},$C),hk=le({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gg),vk=ie({logBase:10},gg),JC={category:pk,value:gg,time:hk,log:vk};function yp(t,e,r,i){T(Yc,function(n,a){var o=le(le({},JC[a],!0),i,!0),s=(function(l){O(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=$i(this),h=p?$r(f):{},v=c.getTheme();le(f,v.get(a+"Axis")),le(f,this.getDefaultOption()),f.type=ew(f),p&&Jt(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Dl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=La();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ew)}function ew(t){return t.type||(t.data?"category":"value")}var dk=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return k(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),we(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),tw=dk;var Vl=["x","y"];function rw(t){return(t.type==="interval"||t.type==="time")&&!fa(t)}var mk=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=xr,r.dimensions=Vl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!rw(r)||!rw(i))){var n=Aa(r,null),a=Aa(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=Yt([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new Q(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Ge(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[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},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return Ge(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new Q(a,o,s,l)},e})(tw),iw=mk;function nw(t,e){var r=t.scale,i=t.model,n=tp(r,i,i.ecModel,t,null),a=ei(r),o=ei(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=De(u[0].value-u[1].value),m=De(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),C=Uc(b,x),w,E,A,D,L,M;function I(te){for(var ne=50,K=0;K<ne&&!te();K++)A=a?A*ce(l,2):BT(A),D=Pr(A)}function R(){w=ve(M-A*p,D)}function B(){E=ve(L+A*h,D)}function W(){M=p?ve(w+A*p,D):w}function U(){L=h?ve(E-A*h,D):E}if(x[0]&&x[1]){w=C[0],E=C[1],A=(E-w)/(v+p+h);var X=t.getExtent(),$=De(X[1]-X[0]);D=E_([E,w],$,.5/v),W(),U(),Ke(D)&&(A=ve(A,D))}else{var Z=C[1]-C[0];A=a?ce($a(Z),1):fi(Z/v,Yh),D=Pr(A),x[0]?(w=C[0],I(function(){if(W(),L=ve(M+A*v,D),B(),E>=C[1])return!0})):x[1]?(E=C[1],I(function(){if(U(),M=ve(L-A*v,D),R(),w<=C[0])return!0})):I(function(){M=ve(Fi(C[0]/A)*A,D),L=ve(fr(C[1]/A)*A,D);var te=Nt((L-M)/A);if(te<=v){var ne=v-te,K=void 0,de=n.incl0||a;if(de&&C[0]===0)K=[0,ne];else if(de&&C[1]===0)K=[ne,0];else{var xe=fr(ne/2);K=ne%2===0?[xe,xe]:w+E<C[0]+C[1]?[xe,xe+1]:[xe+1,xe]}if(M=ve(M-A*K[0],D),L=ve(L+A*K[1],D),R(),B(),w<=C[0]&&E>=C[1])return!0}})}Zc(r,x,b,[w,E],S,{interval:A,intervalCount:v,intervalPrecision:D,niceExtent:[M,L]})}var aw=[[3,1],[0,2]],gk=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vl,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;T(this._axesList,function(o){S1(o,g1);var s=o.scale;st(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=fe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):km(f)}T(l,function(c){_k(c,c.__alignTo)?km(c):nw(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};T(i.x,function(o){ow(i,"y",o,a)}),T(i.y,function(o){ow(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=Wf(e,r),a=this._rect=Qr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(yg(o,a),!i){var u=Sk(a,s,o,l,r),f=void 0;if(l)fw?(fw(this._axesList,a),yg(o,a)):f=cw(a.clone(),"axisLabel",null,a,o,u,n);else{var c=bk(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=cw(p,h,v,a,o,u,n))}pw(a,o,Ft.determine,null,f,n),T(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}F(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ft).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",ft).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,re(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(p,h){var v="x"+c+"y"+h,d=new iw(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),lw(s.x),lw(s.y);function u(f){return function(c,p){if(yk(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=Xc(c),d=new pC(f,qc(c,v,!0),[0,0],v,h);d.onBand=jc(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return T(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);re(r,a)<0&&r.push(a),re(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),T(o._axesList,function(s){x1(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;pS({targetModel:n,coordSysType:xr,coordSysProvider:s});function s(){var l=SC(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Nm(a,n,xr),Nm(o,n,xr))},this),i},t.dimensions=Vl,t.dimIdxMap=Tl(Vl),t})();function yk(t,e){return t.getCoordSysModel()===e}function ow(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)sw(s,n[l])&&(a=n[l]);else for(var u in n)if(Ee(n,u)&&sw(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function sw(t,e){if(!e)return!1;var r=e.scale,i=JT(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Wc;return n&&t==="auto"&&t1(e)&&(n=!1),n}function lw(t){for(var e=fe(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];Bc(a.scale)&&Dm(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&T(i,function(o){o.__alignTo=r})}function _k(t,e){return fa(t.scale)||fa(e.scale)||e.scale.getTicks().length<2}function xk(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function yg(t,e){T(t.x,function(r){return uw(r,e.x,e.width)}),T(t.y,function(r){return uw(r,e.y,e.height)})}function uw(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),xk(t,e)}var fw;function cw(t,e,r,i,n,a,o){pw(i,n,Ft.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Gp(s,function(p){return p>0})==null;return go(i,s,!0,!0,r),yg(n,i),l;function u(p){T(n[yi[p]],function(h){if(Ma(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Ai(h.scale,hn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=ln(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[yi[h]]-p[yi[h]],m=p[ia[h]]+p[yi[h]]-(t[ia[h]]+t[yi[h]]);d=c(d,1-v),m=c(m,v);var g=aw[h][0],y=aw[h][1];s[g]=ce(s[g],d),s[y]=ce(s[y],m)}function c(p,h){return p>0&&!ri(h)&&h>1e-4&&(p/=h),p}}function Sk(t,e,r,i,n){var a=new sg(Tk);return T(r,function(o){return T(o,function(s){if(Ma(s.model)){var l=!i;s.axisBuilder=bC(t,e,s.model,n,a,l)}})}),a}function pw(t,e,r,i,n,a){var o=r===Ft.determine;T(e,function(u){return T(u,function(f){Ma(f.model)&&(TC(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[yi[1-u]]=t[ia[u]]<=a.refContainer[ia[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){Ma(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function bk(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Qr(t.get("outerBounds",!0)||cg,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||re(["all","axisLabel"],a)<0?o="all":o=a;var s=[Pu(H(t.get("outerBoundsClampWidth",!0),Fl[0]),e.width),Pu(H(t.get("outerBoundsClampHeight",!0),Fl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Tk=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";lg(t,e,r,i,n,a),ln(t.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ug(s.labelInfoList,s.dirVec,i,n)})},hw=gk;function vw(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ck(r,t,e),r.seriesInvolved&&Ek(r,t),r}function Ck(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ts(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(T(s.getAxes(),me(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&T(v.baseAxes,me(d,h?"cross":!0,p)),h&&T(v.otherAxes,me(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!xg(_))){g==null&&(g=_.get("triggerTooltip")),_=m?wk(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),C=ts(y.model),w=g||S||y.type==="category",E=t.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:w,snap:S,useHandle:xg(_),seriesModels:[],linkGroup:null};u[C]=E,t.seriesInvolved=t.seriesInvolved||w;var A=Ak(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[C]=E,D.mapper=a[A].mapper,E.linkGroup=D}}}})}function wk(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(p){l[p]=j(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ie(u,c.textStyle)}}return t.model.getModel("axisPointer",new be(l,r,i))}function Ek(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(t.coordSysAxesInfo[ts(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Ak(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(_g(a[i+"AxisId"],r.id)||_g(a[i+"AxisIndex"],r.componentIndex)||_g(a[i+"AxisName"],r.name))return n}}function _g(t,e){return t==="all"||P(t)&&re(t,e)>=0||t===e}function dw(t){var e=_p(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=xg(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function _p(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ts(t)]}function mw(t){var e=_p(t);return e&&e.axisPointerModel}function xg(t){return!!t.get(["handle","show"])}function ts(t){return t.type+"||"+t.id}var gw={},Dk=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&dw(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=mw(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){gw[r]=i},e.getAxisPointerClass=function(r){return r&&gw[r]},e.type="axis",e})(Xe),xp=Dk;var bg=ee();function yw(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=bg(t).splitAreaColors,p=V(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=P(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var C=u[v-1].tickValue;C!=null&&p.set(C,h),e.add(new _e({anid:C!=null?"area_"+C:null,shape:{x:_,y:x,width:S,height:b},style:ie({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}bg(t).splitAreaColors=p}}}function _w(t){bg(t).splitAreaColors=null}var Mk=["splitArea","splitLine","minorSplitLine","breakArea"],xw=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ge,this.group.add(this._axisGroup),!!Ma(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(Mk,function(l){r.get([l,"show"])&&Lk[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||$v(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){_w(this)},e.type="cartesianAxis",e})(xp),Lk={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=P(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new Et({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:ie({stroke:l[S]},g),silent:!0});aa(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new Et({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});aa(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){yw(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=La(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},Tg=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(xw);var Sw=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Tg.type,r}return e.type="yAxis",e})(xw);var Ik=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new _e({shape:r.coordinateSystem.getRect(),style:ie({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Xe),bw={offset:0};function Tw(t){t.registerComponentView(Ik),t.registerComponentModel(MC),t.registerCoordinateSystem("cartesian2d",hw),yp(t,"x",gp,bw),yp(t,"y",gp,bw),t.registerComponentView(Tg),t.registerComponentView(Sw),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Cw=Et.prototype,Cg=$n.prototype,ww=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Q9=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ww);function wg(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var Ok=(function(t){O(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ww},e.prototype.buildPath=function(r,i){wg(i)?Cw.buildPath.call(this,r,i):Cg.buildPath.call(this,r,i)},e.prototype.pointAt=function(r){return wg(this.shape)?Cw.pointAt.call(this,r):Cg.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var i=this.shape,n=wg(i)?[i.x2-i.x1,i.y2-i.y1]:Cg.tangentAt.call(this,r);return Sn(n,n)},e})(ae),Ew=Ok;var Eg=["fromSymbol","toSymbol"];function Aw(t){return"_"+t+"Type"}function Dw(t,e,r){var i=e.getItemVisual(r,t);if(!i||i==="none")return i;var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=gl(n),u=ba(o||0,l);return i+l+u+(a||"")+(s||"")}function Mw(t,e,r){var i=e.getItemVisual(r,t);if(!(!i||i==="none")){var n=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=gl(n),u=ba(o||0,l),f=Mt(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}}function Pk(t){var e=new Ew({name:"line",subPixelOptimize:!0});return Ag(e.shape,t),e}function Ag(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Nk=(function(t){O(e,t);function e(r,i,n){var a=t.call(this)||this;return a._createLine(r,i,n),a}return e.prototype._createLine=function(r,i,n){var a=r.hostModel,o=r.getItemLayout(i),s=r.getItemVisual(i,"z2"),l=Pk(o);l.shape.percent=0,at(l,{z2:H(s,0),shape:{percent:1}},a,i),this.add(l),T(Eg,function(u){var f=Mw(u,r,i);this.add(f),this[Aw(u)]=Dw(u,r,i)},this),this._updateCommonStl(r,i,n)},e.prototype.updateData=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(i),l={shape:{}};Ag(l.shape,s),Be(o,l,a,i),T(Eg,function(u){var f=Dw(u,r,i),c=Aw(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=Mw(u,r,i);this.add(p)}this[c]=f},this),this._updateCommonStl(r,i,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,i,n){var a=r.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,p=n&&n.focus,h=n&&n.blurScope;if(!n||r.hasItemOption){var v=r.getItemModel(i),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),p=d.get("focus"),h=d.get("blurScope"),f=gr(v)}var m=r.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(Eg,function(b){var C=this.childOfName(b);if(C){C.setColor(g),C.style.opacity=m.opacity;for(var w=0;w<wt.length;w++){var E=wt[w],A=o.getState(E);if(A){var D=A.style||{},L=C.ensureState(E),M=L.style||(L.style={});D.stroke!=null&&(M[C.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(M.opacity=D.opacity)}}C.markRedraw()}},this);var y=a.getRawValue(i);Zr(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,C){return a.getFormattedLabel(b,C,r.dataType)}},inheritColor:g||q.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?r.getName(i):isFinite(y)?ve(y,10):y)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");P(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),gi(this,p,h,c)},e.prototype.highlight=function(){di(this)},e.prototype.downplay=function(){mi(this)},e.prototype.updateLayout=function(r,i){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(i))},e.prototype.setLinePoints=function(r){var i=this.childOfName("line");Ag(i.shape,r),i.dirty()},e.prototype.beforeUpdate=function(){var r=this,i=r.childOfName("fromSymbol"),n=r.childOfName("toSymbol"),a=r.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=ls([],c,f);Sn(p,p);function h(A,D){var L=A.__specifiedRotation;if(L==null){var M=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else A.attr("rotation",L)}if(i&&(i.setPosition(f),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&(n.setPosition(c),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,d=void 0,m=a.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var C=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var w=-Math.atan2(x[1],x[0]);c[0]<f[0]&&(w=Math.PI+w),a.rotation=w}var E=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":E=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":E=y,d="top";break;default:E=0,d="middle"}switch(a.__position){case"end":a.x=p[0]*g+c[0],a.y=p[1]*y+c[1],v=p[0]>.8?"left":p[0]<-.8?"right":"center",d=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":a.x=-p[0]*g+f[0],a.y=-p[1]*y+f[1],v=p[0]>.8?"right":p[0]<-.8?"left":"center",d=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*C+f[0],a.y=f[1]+E,v=x[0]<0?"right":"left",a.originX=-g*C,a.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+E,v="center",a.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*C+c[0],a.y=c[1]+E,v=x[0]>=0?"right":"left",a.originX=g*C,a.originY=-E;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||d,align:a.__align||v})}},e})(ge),Lw=Nk;var Rk=(function(){function t(e){this.group=new ge,this._LineCtor=e||Lw}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=e,a||n.removeAll();var o=Iw(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,i){r.updateLayout(e,i)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Iw(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i){this._progressiveEls=[];function n(l){!l.isGroup&&!kk(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=na)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Dg(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(n),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){_i(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,i){var n=e.getItemLayout(r);if(Dg(n)){var a=new this._LineCtor(e,r,i);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,i,n,a){var o=e.getItemGraphicEl(i);if(!Dg(r.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(r,n,a):o=new this._LineCtor(r,n,a),r.setItemGraphicEl(n,o),this.group.add(o)},t})();function kk(t){return t.animators&&t.animators.length>0}function Iw(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:gr(e)}}function Ow(t){return isNaN(t[0])||isNaN(t[1])}function Dg(t){return t&&!Ow(t[0])&&!Ow(t[1])}var Pw=Rk;var Pa=ee(),Nw=j,Mg=pe,Bk=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ge,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=me(Rw,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}Bw(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Nr(n).w>s)return!0;if(o){var l=_p(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=Pa(e).pointerEl=new je[a.type](Nw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Pa(e).labelEl=new Ae(Nw(r.label));e.add(a),kw(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Pa(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=Pa(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),kw(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=oa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:Mg(this._onHandleDragMove,this,0,0),drift:Mg(this._onHandleDragMove,this),ondragend:Mg(this._onHandleDragEnd,this)}),i.add(n)),Bw(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");P(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,uc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Rw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Lg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Lg(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Lg(n)),Pa(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),hl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function Rw(t,e,r,i){zw(Pa(r).lastProp,i)||(Pa(r).lastProp=i,e?Be(r,i,t):(r.stopAnimation(),r.attr(i)))}function zw(t,e){if(F(t)&&F(e)){var r=!0;return T(e,function(i,n){r=r&&zw(t[n],i)}),!!r}else return t===e}function kw(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Lg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Bw(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var Uw=Bk;function Fw(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function zk(t,e,r,i,n){var a=r.get("value"),o=Ig(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=jr(s.get("padding")||0),u=s.getFont(),f=wu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),Uk(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Lr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Uk(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Ig(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Zo(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),z(o)?a=o.replace("{value}",a):Y(o)&&(a=o(s))}return a}function Og(t,e,r){var i=ut();return Tn(i,i,r.rotation),Ua(i,i,r.position),gf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function Vw(t,e,r,i,n,a){var o=hp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),zk(e,i,n,a,{position:Og(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Hw(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function Gw(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function Yw(t,e,r){return Nr(t,{fromStat:{sers:k(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function Ww(t,e,r){return[ce(Ne(e[0],e[1]),t-r/2),Ne(t+r/2,ce(e[0],e[1]))]}var Fk=(function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=qw(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=Fw(a),v=Vk[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=zl(l.getRect(),n);Vw(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=zl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Og(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=qw(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ne(l[1],c[f]),c[f]=ce(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(Uw);function qw(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var Vk={line:function(t,e,r,i){var n=Hw([e,i[0]],[e,i[1]],Kw(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=Yw(t,n,a),s=i[1]-i[0],l=Ww(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:Gw([u,i[0]],[f-u,s],Kw(t))}}};function Kw(t){return t.dim==="x"?0:1}var Zw=Fk;var Hk=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:"dashed"},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,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:q.color.accent40,throttle:40}},e})(ye),jw=Hk;var Li=ee(),Gk=T;function Sp(t,e,r){if(!J.node){var i=e.getZr();Li(i).records||(Li(i).records={}),Yk(i,e);var n=Li(i).records[t]||(Li(i).records[t]={});n.handler=r}}function Yk(t,e){if(Li(t).initialized)return;Li(t).initialized=!0,r("click",me(Pg,"click")),r("mousemove",me(Pg,"mousemove")),r("mousewheel",me(Pg,"mousewheel")),r("globalout",Xk);function r(i,n){t.on(i,function(a){var o=qk(e);Gk(Li(t).records,function(s){s&&n(s,a,o.dispatchAction)}),Wk(o.pendings,e)})}}function Wk(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Xk(t,e,r){t.handler("leave",null,r)}function Pg(t,e,r,i){e.handler(t,r,i)}function qk(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Hl(t,e){if(!J.node){var r=e.getZr(),i=(Li(r).records||{})[t];i&&(Li(r).records[t]=null)}}var Kk=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Sp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Hl("axisPointer",i)},e.prototype.dispose=function(r,i){Hl("axisPointer",i)},e.type="axisPointer",e})(Xe),$w=Kk;function Gl(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=pr(a,t);if(o==null||o<0||P(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(k(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Jw=ee();function Ng(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||pe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bp(n)&&(n=Gl({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=bp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||bp(n),p={},h={},v={list:[],map:{}},d={showPointer:me(jk,h),showTooltip:me(Qk,v)};T(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,C=t2(u,x);if(!c&&_&&(!u||C)){var w=C&&C.value;w==null&&!l&&(w=b.pointToData(n)),w!=null&&eE(x,w,d,!1,p)}})});var m={};return T(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&T(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var C=b.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,tE(x),tE(g)))),m[g.key]=C}})}),T(m,function(g,y){eE(f[y],g,d,!0,p)}),$k(h,f,p),Jk(v,n,t,o),e2(f,o,r),p}}function eE(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=Zk(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function Zk(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(Ke(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),T(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function jk(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function Qk(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=ts(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function $k(t,e,r){var i=r.axesInfo=[];T(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Jk(t,e,r,i){if(bp(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function e2(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=Jw(i)[n]||{},o=Jw(i)[n]={};T(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&T(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(a,function(f,c){!o[c]&&l.push(u(f))}),T(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function t2(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function tE(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function bp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Tp(t){xp.registerAxisPointerClass("CartesianAxisPointer",Zw),t.registerComponentModel(jw),t.registerComponentView($w),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!P(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=vw(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ng)}function Rg(t){Ot(Tw),Ot(Tp)}function rE(t,e){var r=jr(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new _e({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var r2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},e})(ye),iE=r2;function Cp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function nE(t){if(J.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var kg=nE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aE=nE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Bg(t,e){if(!t)return e;e=wo(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function oE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var i2=Bg(aE,"transition"),zg=Bg(kg,"transform"),n2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(J.transform3dSupported?"will-change:transform;":"");function a2(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function o2(t,e,r){if(!z(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Ir(e);var a=a2(r),o=Math.max(Math.round(n)*1.5,6),s="",l=zg+":",u;re(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["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="'+d.join("")+'"></div>'}function s2(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(J.transformSupported?""+zg+n:",left"+n+",top"+n)),i2+":"+a}function sE(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!J.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=J.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+zg+":"+o+";":[["top",0],["left",0],[kg,o]]}function l2(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=H(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function u2(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=nc(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(s2(a,r,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(v){var d="border-"+v,m=wo(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(l2(c)),p!=null&&n.push("padding:"+jr(p).join("px ")+"px"),n.join(";")+";"}function lE(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&my(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var f2=(function(){function t(e,r){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 n=this._zr=e.getZr(),a=r.appendTo,o=a&&(z(a)?document.querySelector(a):gn(a)?a:Y(a)&&a(e.getDom()));lE(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,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=n.handler,f=n.painter.getViewportRoot();Pt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=oE(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=n2+u2(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+sE(a[0],a[1],!0)+("border-color:"+Ir(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!Cp(i)&&(s=o2(i,n,a)),z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",P(e)||(e=[e]);for(var l=0;l<e.length;l++)gn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(lE(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=sE(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",J.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;gy(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),uE=f2;var c2=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),cE(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;F(e)&&it(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ae({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:nc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=fE(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;cE(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=vn(a.borderWidth||0),s=fE(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function vn(t){return Math.max(0,t)}function fE(t){var e=vn(t.shadowBlur||0),r=vn(t.shadowOffsetX||0),i=vn(t.shadowOffsetY||0);return{left:vn(e-r),right:vn(e+r),top:vn(e-i),bottom:vn(e+i)}}function cE(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pE=c2;var p2=new _e({shape:{x:-1,y:-1,width:2,height:2}}),h2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(J.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=V_(n.get("renderMode"));this._tooltipContent=a==="richText"?new pE(i):new uE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(J.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?uc(this,"_updatePosition",50,"fixRate"):hl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Sp("itemTooltip",this._api,pe(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||J.node||!n.getDom())){var o=hE(a,n);this._ticket="";var s=a.dataByCoordSys,l=g2(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=p2;f.x=a.x,f.y=a.y,f.update(),ue(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=Gl(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(hE(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Yl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ue(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;xa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ue(f).dataIndex!=null?l=f:ue(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=pe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Yl([i.tooltipOption],a),l=this._renderMode,u=[],f=Jr("section",{blocks:[],noHeader:!0}),c=[],p=new ac;T(r,function(y){T(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,C=b.scale.parse(S);if(!(!x||S==null)){var w=Ig(S,b,n,_.seriesDataIndices,_.valueLabelOpt),E=Jr("section",{header:w,noHeader:!rt(w),sortBlocks:!0,blocks:[]});f.blocks.push(E),T(_.seriesDataIndices,function(A){var D=n.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,M=D.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Zo(x.axis,{value:C}),M.axisValueLabel=w,M.marker=p.makeTooltipMarker("item",Ir(M.color),l);var I=Nd(D.formatTooltip(L,!0,null)),R=I.frag;if(R){var B=Yl([D],a).get("valueFormatter");E.blocks.push(B?N({valueFormatter:B},R):R)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Fd(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
16
16
 
17
- `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=pe(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Ol([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Gf;g.marker=y.makeTooltipMarker("item",Mr(g.color),h);var _=Sd(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),T=_.frag,C=T?Dd(S?P({valueFormatter:S},T):T,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,w="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,w,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=pe(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(B(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=$(l),l.content=je(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Ol(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new Gf;this._showOrMove(v,function(){var y=$(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(B(p)){var m=r.ecModel.get("useUTC"),g=R(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=pi(g.axisValue,h,m)),h=_o(h,n,!0)}else if(G(p)){var _=ce(function(x,S){x===this._ticket&&(c.setContent(S,f,r,d,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||R(i))return{color:a||o};if(!R(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),G(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),R(i))n=We(i[0],u),a=We(i[1],f);else if(F(i)){var d=i;d.width=c[0],d.height=c[1];var m=Kr(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(B(i)&&l){var g=Ak(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=Ek(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=Uw(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=Uw(h)?c[1]/2:h==="bottom"?c[1]:0),cp(r)){var g=Dk(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&b(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&b(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&b(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){J.node||!i.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),Ml("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Je);function Ol(t,e,r){var i=e.ecModel,n;r?(n=new Se(r,i,i),n=new Se(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Se&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(n=new Se(o,n,i)))}return n}function Bw(t,e){return t.dispatchAction||ce(e.dispatchAction,e)}function Ek(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function Dk(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Ak(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function Uw(t){return t==="center"||t==="middle"}function Mk(t,e,r){var i=bs(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Ri(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=pe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var zw=wk;function Sg(t){At(fp),t.registerComponentModel(Dw),t.registerComponentView(zw),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Le),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Le)}var Ik=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Ok=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),R(i)&&b(i,function(a,o){B(a)&&(a={type:a}),i[o]=le(a,Ik(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&Za(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=U(a,function(l){return(B(l)||se(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Se(l,this,this.ecModel))},this);this._data=we(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;b(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;b(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;b(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&ie(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:K.size.m,align:"auto",backgroundColor:K.color.transparent,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:K.color.disabled,inactiveBorderColor:K.color.disabled,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:K.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:K.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:K.color.tertiary,borderWidth:1,borderColor:K.color.border},emphasis:{selectorLabel:{show:!0,color:K.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ge),Ll=Ok;var Zo=Te,Tg=b,pp=xe,Lk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new pp),this.group.add(this._selectorGroup=new pp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=Mf(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Kr(c,f,p),v=this.layoutInner(r,o,h,a,l,u),d=Kr(te({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ew(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Tg(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
18
- `)){var y=new pp;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},T=x.getVisual("legendIcon"),C=x.getVisual("style"),w=this._createItem(_,g,d,v,i,r,S,C,T,c,a);w.on("click",Zo(Fw,g,null,a,h)).on("mouseover",Zo(bg,_.name,null,a,h)).on("mouseout",Zo(Cg,_.name,null,a,h)),n.ssr&&w.eachChild(function(D){var E=pe(D);E.seriesIndex=_.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),p&&w.eachChild(function(D){m.packEventData(D,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(D){var E=this;if(!f.get(g)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(g))return;var I=A.indexOfName(g),M=A.getItemVisual(I,"style"),O=A.getItemVisual(I,"legendIcon"),N=ht(M.fill);N&&N[3]===0&&(N[3]=.2,M=P(P({},M),{fill:Br(N,"rgba")}));var k=this._createItem(D,g,d,v,i,r,{},M,O,c,a);k.on("click",Zo(Fw,null,g,a,h)).on("mouseover",Zo(bg,null,g,a,h)).on("mouseout",Zo(Cg,null,g,a,h)),n.ssr&&k.eachChild(function(W){var z=pe(W);z.seriesIndex=D.seriesIndex,z.dataIndex=d,z.ssrType="legend"}),p&&k.eachChild(function(W){E.packEventData(W,i,D,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};pe(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();Tg(r,function(u){var f=u.type,c=new De({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);Hi(c,{normal:p,emphasis:h},{defaultText:u.title}),to(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=Pk(f,a,l,u,h,m,p),S=new pp,T=a.getModel("textStyle");if(G(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(Rk({itemWidth:v,itemHeight:d,icon:f,iconRotate:C,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var w=s==="left"?v+5:-5,D=s,E=o.get("formatter"),A=i;B(E)&&E?A=E.replace("{name}",i??""):G(E)&&(A=E(i));var I=m?T.getTextColor():a.get("inactiveColor");S.add(new De({style:Ar(T,{text:A,x:w,y:d/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var M=new me({shape:S.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&fo({el:M,componentModel:o,itemName:i,itemTooltipOption:O.option}),S.add(M),S.eachChild(function(N){N.silent=!0}),M.silent=!c,this.getContentGroup().add(S),to(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();aa(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){aa("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=r.get("selectorButtonGap",!0),d=r.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Je);function Pk(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Tg(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:sl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Rk(t){var e=t.icon||"roundRect",r=$t(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=K.color.neutral00,r.style.lineWidth=2),r}function Fw(t,e,r,i){Cg(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),bg(t,e,r,i)}function bg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Cg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var hp=Lk;function Pl(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),Vw(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){b(n,function(l,u){s[l?"select":"unSelect"](u)}),Vw(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Vw(t,e){var r=e||{};return b(t.getData(),function(i){var n=i.get("name");if(!(n===`
19
- `||n==="")){var a=t.isSelected(n);Ee(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function Hw(t){t.registerAction("legendToggleSelect","legendselectchanged",Te(Pl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Te(Pl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Te(Pl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Te(Pl,"select")),t.registerAction("legendUnSelect","legendunselected",Te(Pl,"unSelect"))}var Gw=ja(Nk);function Nk(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function vp(t){t.registerComponentModel(Ll),t.registerComponentView(hp),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Gw),t.registerSubTypeDefaulter("legend",function(){return"plain"}),Hw(t)}var kk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=jr(r);t.prototype.init.call(this,r,i,n),Ww(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),Ww(this,this.option,r)},e.type="legend.scroll",e.defaultOption=af(Ll.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:K.color.accent50,pageIconInactiveColor:K.color.accent10,pageIconSize:15,pageTextStyle:{color:K.color.tertiary},animationDurationUpdate:800}),e})(Ll);function Ww(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,jt(e,r,{type:"box",ignoreSize:!!n})}var Yw=kk;var Xw=xe,wg=["width","height"],Eg=["x","y"],Bk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Xw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Xw)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=R(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new De({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=$n(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:ce(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=wg[u],c=Eg[u],p=wg[1-u],h=Eg[1-u];o&&aa("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=$(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;aa(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),aa("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var T={x:0,y:0};T[o]=Math.max(n[o]-v[o]-_,0),T[s]=S[s],c.setClipPath(new me({shape:T})),c.__rectSize=T[o]}else p.eachChild(function(w){w.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&Ue(f,{x:C.contentPosition[0],y:C.contentPosition[1]},d?r:null),this._updatePageInfoView(r,C),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",B(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=wg[o],l=Eg[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(T){if(T){var C=T.getBoundingRect(),w=C[l]+T[l];return{s:w,e:w+C[s],i:T.__legendDataIndex}}}function S(T,C){return T.e>=C&&T.s<=C+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(hp),qw=Bk;function Dg(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function Zw(t){At(vp),t.registerComponentModel(Yw),t.registerComponentView(qw),Dg(t)}function Ag(t){At(vp),At(Zw)}function Kw(t,e,r){var i=Oe.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=a*r,i}function dp(t){return!t.__cursors.get(wv)}function jw(t){var e=t.__cursors.get(wv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var Uk=(function(t){L(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=ao,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||wn,typeof r=="string"?o=Kw(r,i,n):F(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&($o(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=jw(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Kw("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new j(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new j(0,0,0,0);S.copy(x),o.push(S)}else{for(var T=!1,C=1/0,w=0,D=0;D<o.length;++D){var E=o[D];if(E.intersect(x)){var A=new j(0,0,0,0);A.copy(E),A.union(x),o[D]=A,T=!0;break}else if(l){u.copy(x),u.union(E);var I=x.width*x.height,M=E.width*E.height,O=u.width*u.height,N=O-I-M;N<C&&(C=N,w=D)}}if(l&&(o[w].union(x),T=!0),!T){var S=new j(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=jw(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),d=h.__isRendered&&(h.__dirty&Ge||!v)?h.getPrevPaintRect():null;d&&f(d);var m=v&&(h.__dirty&Ge||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var _=void 0;if($r(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||al(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else wp(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=rc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,m,g,y),o.restore())}!n||u?v(0,0,s,l):n.length&&b(n,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e})(ot),Mg=Uk;var Qw=1e5,Da=314159,Ig=void 0,zk=1,Og=2;function Fk(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Vk(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function $w(t,e,r,i){var n=new Mg(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,Jw(n),n}function Jw(t){t.__cursorStack=[],t.__cursors=V()}function Hk(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function Gk(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,Hk({key:i})))}function mp(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function Lg(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function yt(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&Rl)||s.__builtin__)&&(!(r&Pg)||!s.__builtin__)&&(!(r&eE)||s!==t.hoverlayer))&&e(s,a,o,n)}}var Rl=1,Pg=2,eE=4,gp=Rl|eE,Wk=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=P({},i||{}),this.dpr=i.devicePixelRatio||wn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&($o(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=$w(l,this,Da,ao);c.initContext(),this._insertLayer(c,Da,ao,!0),this._domRoot=e}else{this._width=ol(e,0,i),this._height=ol(e,1,i);var s=this._domRoot=Vk(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!F(e)?r={paintAll:!!e}:r=e||{};var i=Y(r.refresh,!0),n=Y(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=Og),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return yt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},Pg),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Ig,i!==Ig&&(!r&&i===Og&&(r=this._i.hoverlayer=this._ensureLayer(Qw)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Ki(a,l,n),u&&(l.style=f)}}a&&(ga(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(Qw)},t.prototype.paintOne=function(e,r){Mo(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)yt(this._i,function(o){o.afterBrush&&o.afterBrush()},gp),this._paintHoverList(e);else{var a=this;os(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Da).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),yt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},Rl)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return yt(this._i,function(a){var o=!1;if(mp(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!dp(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}mp(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},gp),J.wxa&&yt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=dp(e),u=l&&Oe.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Og),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(Ki(s,h,o),h.setPrevPaintRect(v))}else Ki(s,h,o);if(l){var d=Oe.getTime()-u;if(d>15){p++;break}}}}ga(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Da,r=0);var a=Lg(this._i,e)[r];return a||(a=$w("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&le(a,this._layerConfig[e],!0),(i||n&&e!==Da)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&Fk(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=Lg(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),Lg(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)},Rl)},t.prototype.eachOtherLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)},Pg)},t.prototype.getLayers=function(){var e={};return yt(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}yt(i._i,function(m){m.__dirty=!1,mp(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},gp);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=sx):v=u?ox:ao,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){un("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=Gk(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Ge&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}yt(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;(dp(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(mp(m,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===Ig&&(i._hoverLayerDirty=zk))},gp)},t.prototype.clear=function(){return yt(this._i,function(e){e.clear(),Jw(e)},Rl),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,yt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?le(i[e],r,!0):i[e]=r,yt(this._i,function(n,a){le(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=ol(a,0,n),r=ol(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",yt(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(Da).resize(e,r)}return this},t.prototype.clearLayer=function(e){b(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Da][0].dom;var r=new Mg("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;yt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ki(i,f,o)}ga(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),tE=Wk;function Rg(t){t.registerPainter("canvas",tE)}At([ig,Xm,gg,Sg,Ag,Rg]);globalThis.__DSHTU_ECHARTS__=zm;})();
17
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=ue(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Yl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new ac;g.marker=y.makeTooltipMarker("item",Ir(g.color),h);var _=Nd(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,C=b?Fd(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,w="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,w,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=ue(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=j(l),l.content=Je(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Yl(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new ac;this._showOrMove(v,function(){var y=j(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(z(p)){var m=r.ecModel.get("useUTC"),g=P(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=xi(g.axisValue,h,m)),h=Eo(h,n,!0)}else if(Y(p)){var _=pe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,d,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||P(i))return{color:a||o};if(!P(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Y(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),P(i))n=Re(i[0],u),a=Re(i[1],f);else if(F(i)){var d=i;d.width=c[0],d.height=c[1];var m=Qr(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(z(i)&&l){var g=m2(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=v2(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=vE(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=vE(h)?c[1]/2:h==="bottom"?c[1]:0),Cp(r)){var g=d2(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&T(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&T(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){J.node||!i.getDom()||(hl(this,"_updatePosition"),this._tooltipContent.dispose(),Hl("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Xe);function Yl(t,e,r){var i=e.ecModel,n;r?(n=new be(r,i,i),n=new be(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof be&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new be(o,n,i)))}return n}function hE(t,e){return t.dispatchAction||pe(e.dispatchAction,e)}function v2(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function d2(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function m2(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function vE(t){return t==="center"||t==="middle"}function g2(t,e,r){var i=Ps(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Gi(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ue(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var dE=h2;function Ug(t){Ot(Tp),t.registerComponentModel(iE),t.registerComponentView(dE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Oe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Oe)}function Fg(t,e){if(!t)return!1;for(var r=P(t)?t:[t],i=0;i<r.length;i++)if(r[i]&&r[i][e])return!0;return!1}function wp(t){Os(t,"label",["show"])}var Ep=ee(),mE=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),this._mergeOption(r,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(J.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,i){this._mergeOption(r,i,!1,!1)},e.prototype._mergeOption=function(r,i,n,a){var o=this.mainType;n||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ep(s)[o];if(!l||!l.data){Ep(s)[o]=null;return}u?u._mergeOption(l,i,!0):(a&&wp(l),T(l.data,function(f){f instanceof Array?(wp(f[0]),wp(f[1])):wp(f)}),u=this.createMarkerModelFromSeries(l,this,i),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ep(s)[o]=u},this)},e.prototype.formatTooltip=function(r,i,n){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Jr("section",{header:this.name,blocks:[Jr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,i){var n=cl.prototype.getDataParams.call(this,r,i),a=this.__hostSeries;return a&&(n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType),n},e.getMarkerModelFromSeries=function(r,i){return Ep(r)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(ye);qe(mE,cl.prototype);var dn=mE;function y2(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function _2(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Ap(t,e,r,i,n,a,o){var s=[],l=tr(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=Wl(e,u,t),c=e.hostModel,p=c.indicesOfNearest(r,u,f)[0];s[a]=e.get(i,p),s[o]=e.get(u,p);var h=e.get(n,p),v=St(e.get(n,p));return v=Math.min(v,20),v>=0&&(s[o]=+s[o].toFixed(v)),[s,h]}var Dp={min:me(Ap,"min"),max:me(Ap,"max"),average:me(Ap,"average"),median:me(Ap,"median")};function Vg(t,e){if(e){var r=t.getData(),i=t.coordinateSystem,n=i&&i.dimensions;if(!_2(e)&&!P(e.coord)&&P(n)){var a=Hg(e,r,i,t);if(e=j(e),e.type&&Dp[e.type]&&a.baseAxis&&a.valueAxis){var o=re(n,a.baseAxis.dim),s=re(n,a.valueAxis.dim),l=Dp[e.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!P(n)){e.coord=[];var u=t.getBaseAxis();if(u&&e.type&&Dp[e.type]){var f=i.getOtherAxis(u);f&&(e.value=Wl(r,r.mapDimension(f.dim),e.type))}}else for(var c=e.coord,p=0;p<2;p++)Dp[c[p]]&&(c[p]=Wl(r,r.mapDimension(n[p]),c[p]));return e}}function Hg(t,e,r,i){var n={};return t.valueIndex!=null||t.valueDim!=null?(n.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,n.valueAxis=r.getAxis(x2(i,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function x2(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Gg(t,e){return t&&t.containData&&e.coord&&!y2(e)?t.containData(e.coord):!0}function gE(t,e){return t?function(r,i,n,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ti(o,e[a])}:function(r,i,n,a){return Ti(r.value,e[a])}}function Wl(t,e,r){if(r==="average"){var i=0,n=0;return t.each(e,function(a,o){isNaN(a)||(i+=a,n++)}),i/n}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var Yg=ee(),b2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=V()},e.prototype.render=function(r,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Yg(s).keep=!1}),i.eachSeries(function(s){var l=dn.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,n)}),o.each(function(s){!Yg(s).keep&&a.group.remove(s.group)}),T2(i,o,this.type)},e.prototype.markKeep=function(r){Yg(r).keep=!0},e.prototype.toggleBlurSeries=function(r,i){var n=this;T(r,function(a){var o=dn.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?$u(l):Ys(l))})}})},e.type="marker",e})(Xe);function T2(t,e,r){t.eachSeries(function(i){var n=dn.getMarkerModelFromSeries(i,r),a=e.get(i.id);if(n&&a&&a.group){var o=rl(n),s=o.z,l=o.zlevel;il(a.group,s,l)}})}var yE=b2;var C2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,i,n){return new e(r,i,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(dn),_E=C2;var Mp=ee(),w2=function(t,e,r,i){var n=t.getData(),a;if(P(i))a=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=ii(i.yAxis,i.xAxis);else{var u=Hg(i,n,e,t);s=u.valueAxis;var f=Vo(n,u.valueDataDim);l=Wl(n,f,o)}var c=s.dim==="x"?0:1,p=1-c,h=j(i),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var d=r.get("precision");d>=0&&oe(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[c]=v.coord[c]=l,a=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var m=[Vg(t,a[0]),Vg(t,a[1]),N({},a[2])];return m[2].type=m[2].type||null,le(m[2],m[0]),le(m[2],m[1]),m};function Lp(t){return!isNaN(t)&&!isFinite(t)}function xE(t,e,r,i){var n=1-t,a=i.dimensions[t];return Lp(e[n])&&Lp(r[n])&&e[t]===r[t]&&i.getAxis(a).containData(e[t])}function E2(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,i=e[1].coord;if(r&&i&&(xE(1,r,i,t)||xE(0,r,i,t)))return!0}return Gg(t,e[0])&&Gg(t,e[1])}function Wg(t,e,r,i,n){var a=i.coordinateSystem,o=t.getItemModel(e),s,l=Re(o.get("x"),n.getWidth()),u=Re(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var f=a.dimensions,c=t.get(f[0],e),p=t.get(f[1],e);s=a.dataToPoint([c,p])}if(Jo(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),f=a.dimensions;Lp(t.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Lp(t.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var A2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,i,n){i.eachSeries(function(a){var o=dn.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Mp(o).from,u=Mp(o).to;l.each(function(f){Wg(l,f,!0,a,n),Wg(u,f,!1,a,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,i,n,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Pw);this.group.add(f.group);var c=D2(o,r,i),p=c.from,h=c.to,v=c.line;Mp(i).from=p,Mp(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");P(d)||(d=[d,d]),P(m)||(m=[m,m]),P(g)||(g=[g,g]),P(y)||(y=[y,y]),c.from.each(function(x){_(p,x,!0),_(h,x,!1)}),v.each(function(x){var S=v.getItemModel(x),b=S.getModel("lineStyle").getLineStyle();v.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]);var C=S.get("z2");b.stroke==null&&(b.stroke=p.getItemVisual(x,"style").fill),v.setItemVisual(x,{z2:H(C,0),fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:b})}),f.updateData(v),c.line.eachItemGraphicEl(function(x){ue(x).dataModel=i,x.traverse(function(S){ue(S).dataModel=i})});function _(x,S,b){var C=x.getItemModel(S);Wg(x,S,b,r,a);var w=C.getModel("itemStyle").getItemStyle();w.fill==null&&(w.fill=pc(l,"color")),x.setItemVisual(S,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:H(C.get("symbolOffset",!0),y[b?0:1]),symbolRotate:H(C.get("symbolRotate",!0),g[b?0:1]),symbolSize:H(C.get("symbolSize"),m[b?0:1]),symbol:H(C.get("symbol",!0),d[b?0:1]),style:w})}this.markKeep(f),f.group.silent=i.get("silent")||r.get("silent")},e.type="markLine",e})(yE);function D2(t,e,r){var i;t?i=k(t&&t.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return N(N({},c),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new on(i,r),a=new on(i,r),o=new on([],r),s=k(r.get("data"),me(w2,e,t,r));t&&(s=we(s,me(E2,t)));var l=gE(!!t,i);return n.initData(k(s,function(u){return u[0]}),null,l),a.initData(k(s,function(u){return u[1]}),null,l),o.initData(k(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}var SE=A2;function Xg(t){t.registerComponentModel(_E),t.registerComponentView(SE),t.registerPreprocessor(function(e){Fg(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var M2=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},L2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),P(i)&&T(i,function(a,o){z(a)&&(a={type:a}),i[o]=le(a,M2(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&to(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=k(a,function(l){return(z(l)||oe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new be(l,this,this.ecModel))},this);this._data=we(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&re(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:q.size.m,align:"auto",backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,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:q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),Xl=L2;var rs=me,qg=T,Ip=ge,I2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ip),this.group.add(this._selectorGroup=new Ip),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=Wf(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Qr(c,f,p),v=this.layoutInner(r,o,h,a,l,u),d=Qr(ie({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rE(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),qg(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
18
+ `)){var y=new Ip;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),C=x.getVisual("style"),w=this._createItem(_,g,d,v,i,r,S,C,b,c,a);w.on("click",rs(bE,g,null,a,h)).on("mouseover",rs(Kg,_.name,null,a,h)).on("mouseout",rs(Zg,_.name,null,a,h)),n.ssr&&w.eachChild(function(E){var A=ue(E);A.seriesIndex=_.seriesIndex,A.dataIndex=d,A.ssrType="legend"}),p&&w.eachChild(function(E){m.packEventData(E,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(E){var A=this;if(!f.get(g)&&E.legendVisualProvider){var D=E.legendVisualProvider;if(!D.containName(g))return;var L=D.indexOfName(g),M=D.getItemVisual(L,"style"),I=D.getItemVisual(L,"legendIcon"),R=vt(M.fill);R&&R[3]===0&&(R[3]=.2,M=N(N({},M),{fill:zr(R,"rgba")}));var B=this._createItem(E,g,d,v,i,r,{},M,I,c,a);B.on("click",rs(bE,null,g,a,h)).on("mouseover",rs(Kg,null,g,a,h)).on("mouseout",rs(Zg,null,g,a,h)),n.ssr&&B.eachChild(function(W){var U=ue(W);U.seriesIndex=E.seriesIndex,U.dataIndex=d,U.ssrType="legend"}),p&&B.eachChild(function(W){A.packEventData(W,i,E,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ue(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();qg(r,function(u){var f=u.type,c=new Ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);Zr(c,{normal:p,emphasis:h},{defaultText:u.title}),lo(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=O2(f,a,l,u,h,m,p),S=new Ip,b=a.getModel("textStyle");if(Y(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(P2({itemWidth:v,itemHeight:d,icon:f,iconRotate:C,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var w=s==="left"?v+5:-5,E=s,A=o.get("formatter"),D=i;z(A)&&A?D=A.replace("{name}",i??""):Y(A)&&(D=A(i));var L=m?b.getTextColor():a.get("inactiveColor");S.add(new Ae({style:Lr(b,{text:D,x:w,y:d/2,fill:L,align:E,verticalAlign:"middle"},{inheritColor:L})}));var M=new _e({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&yo({el:M,componentModel:o,itemName:i,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(S),lo(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();pa(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){pa("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=r.get("selectorButtonGap",!0),d=r.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Xe);function O2(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),qg(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:xl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function P2(t){var e=t.icon||"roundRect",r=Mt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=q.color.neutral00,r.style.lineWidth=2),r}function bE(t,e,r,i){Zg(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Kg(t,e,r,i)}function Kg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Zg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var Op=I2;function ql(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),TE(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),TE(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function TE(t,e){var r=e||{};return T(t.getData(),function(i){var n=i.get("name");if(!(n===`
19
+ `||n==="")){var a=t.isSelected(n);Ee(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function CE(t){t.registerAction("legendToggleSelect","legendselectchanged",me(ql,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",me(ql,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",me(ql,"inverseSelect")),t.registerAction("legendSelect","legendselected",me(ql,"select")),t.registerAction("legendUnSelect","legendunselected",me(ql,"unSelect"))}var wE=io(N2);function N2(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function Pp(t){t.registerComponentModel(Xl),t.registerComponentView(Op),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,wE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),CE(t)}var R2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=$r(r);t.prototype.init.call(this,r,i,n),EE(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),EE(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Sf(Xl.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:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),e})(Xl);function EE(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,Jt(e,r,{type:"box",ignoreSize:!!n})}var AE=R2;var DE=ge,jg=["width","height"],Qg=["x","y"],k2=(function(t){O(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new DE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new DE)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=P(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Ae({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=oa(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:pe(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=jg[u],c=Qg[u],p=jg[1-u],h=Qg[1-u];o&&pa("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=j(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;pa(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),pa("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=H(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-v[o]-_,0),b[s]=S[s],c.setClipPath(new _e({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(w){w.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&Be(f,{x:C.contentPosition[0],y:C.contentPosition[1]},d?r:null),this._updatePageInfoView(r,C),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=jg[o],l=Qg[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(b){if(b){var C=b.getBoundingRect(),w=C[l]+b[l];return{s:w,e:w+C[s],i:b.__legendDataIndex}}}function S(b,C){return b.e>=C&&b.s<=C+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(Op),ME=k2;function $g(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function LE(t){Ot(Pp),t.registerComponentModel(AE),t.registerComponentView(ME),$g(t)}function Jg(t){Ot(Pp),Ot(LE)}function IE(t,e,r){var i=Ie.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=a*r,i}function Np(t){return!t.__cursors.get(Fv)}function OE(t){var e=t.__cursors.get(Fv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var B2=(function(t){O(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=po,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Nn,typeof r=="string"?o=IE(r,i,n):F(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(os(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=OE(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=IE("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Q(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new Q(0,0,0,0);S.copy(x),o.push(S)}else{for(var b=!1,C=1/0,w=0,E=0;E<o.length;++E){var A=o[E];if(A.intersect(x)){var D=new Q(0,0,0,0);D.copy(A),D.union(x),o[E]=D,b=!0;break}else if(l){u.copy(x),u.union(A);var L=x.width*x.height,M=A.width*A.height,I=u.width*u.height,R=I-L-M;R<C&&(C=R,w=E)}}if(l&&(o[w].union(x),b=!0),!b){var S=new Q(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=OE(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),d=h.__isRendered&&(h.__dirty&Ye||!v)?h.getPrevPaintRect():null;d&&f(d);var m=v&&(h.__dirty&Ye||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var _=void 0;if(ti(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||yl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else Yp(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=yc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,m,g,y),o.restore())}!n||u?v(0,0,s,l):n.length&&T(n,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e})(lt),ey=B2;var PE=1e5,Na=314159,ty=void 0,z2=1,ry=2;function U2(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function F2(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function NE(t,e,r,i){var n=new ey(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,RE(n),n}function RE(t){t.__cursorStack=[],t.__cursors=V()}function V2(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function H2(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,V2({key:i})))}function Rp(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function iy(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function yt(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&Kl)||s.__builtin__)&&(!(r&ny)||!s.__builtin__)&&(!(r&kE)||s!==t.hoverlayer))&&e(s,a,o,n)}}var Kl=1,ny=2,kE=4,kp=Kl|kE,G2=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Nn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(os(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=NE(l,this,Na,po);c.initContext(),this._insertLayer(c,Na,po,!0),this._domRoot=e}else{this._width=_l(e,0,i),this._height=_l(e,1,i);var s=this._domRoot=F2(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!F(e)?r={paintAll:!!e}:r=e||{};var i=H(r.refresh,!0),n=H(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=ry),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return yt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},ny),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=ty,i!==ty&&(!r&&i===ry&&(r=this._i.hoverlayer=this._ensureLayer(PE)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),rn(a,l,n),u&&(l.style=f)}}a&&(Ca(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(PE)},t.prototype.paintOne=function(e,r){Ro(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)yt(this._i,function(o){o.afterBrush&&o.afterBrush()},kp),this._paintHoverList(e);else{var a=this;ds(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Na).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),yt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},Kl)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return yt(this._i,function(a){var o=!1;if(Rp(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Np(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}Rp(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},kp),J.wxa&&yt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Np(e),u=l&&Ie.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=ry),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(rn(s,h,o),h.setPrevPaintRect(v))}else rn(s,h,o);if(l){var d=Ie.getTime()-u;if(d>15){p++;break}}}}Ca(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Na,r=0);var a=iy(this._i,e)[r];return a||(a=NE("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&le(a,this._layerConfig[e],!0),(i||n&&e!==Na)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&U2(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=iy(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),iy(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)},Kl)},t.prototype.eachOtherLayer=function(e,r){return yt(this._i,function(i,n){e.call(r,i,n)},ny)},t.prototype.getLayers=function(){var e={};return yt(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}yt(i._i,function(m){m.__dirty=!1,Rp(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},kp);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=Ix):v=u?Lx:po,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){yn("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=H2(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Ye&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}yt(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;(Np(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(Rp(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===ty&&(i._hoverLayerDirty=z2))},kp)},t.prototype.clear=function(){return yt(this._i,function(e){e.clear(),RE(e)},Kl),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,yt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?le(i[e],r,!0):i[e]=r,yt(this._i,function(n,a){le(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=_l(a,0,n),r=_l(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",yt(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(Na).resize(e,r)}return this},t.prototype.clearLayer=function(e){T(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Na][0].dom;var r=new ey("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;yt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];rn(i,f,o)}Ca(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),BE=G2;function ay(t){t.registerPainter("canvas",BE)}Ot([mg,ag,Rg,Ug,Jg,Xg,ay]);globalThis.__DSHTU_ECHARTS__=$m;})();
20
20
 
21
21
  window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
22
22
  var module = { exports: {} };
23
23
  var exports = module.exports;
24
24
  var react = require("react");
25
25
  var useEffect = react.useEffect;
26
+ var useRef = react.useRef;
26
27
  var useState = react.useState;
27
28
  var h = react.createElement;
28
29
 
@@ -51,6 +52,7 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
51
52
  var tooltip = component("Tooltip", null);
52
53
  var stateDot = component("StateDot", null);
53
54
  var menu = component("Menu", null);
55
+ var modal = component("Modal", null);
54
56
  var icon = function (name) {
55
57
  return typeof ui[name] === "function" ? ui[name] : null;
56
58
  };
@@ -59,6 +61,11 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
59
61
  var iconRefresh = icon("IconRefreshOutline14");
60
62
  var iconGauge = icon("IconGaugeOutline16");
61
63
  var iconTrend = icon("IconDataOutline16");
64
+ var iconCheck = icon("IconCheckOutline16");
65
+ var iconWarn = icon("IconWarningOutline16");
66
+ var iconClock = icon("IconClockOutline16");
67
+ var iconLoading = icon("IconLoadingOutline16");
68
+ var iconApi = icon("IconApiOutline14");
62
69
  /** Chip and Button degrade into styled native controls on an older shell. */
63
70
  var chip = component("Pill", function (props) {
64
71
  return h("button", { type: "button", className: "dshtu_seg", "data-on": props.active === true, onClick: props.onClick, disabled: props.disabled === true }, props.children);
@@ -88,13 +95,16 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
88
95
  byProject: "按项目",
89
96
  trend: "用量趋势",
90
97
  trendNote: "每条折线按自身峰值归一化;悬停查看当日明细",
98
+ trendAverage: "日均",
91
99
  trendNoData: "当日无用量",
92
100
  daysSuffix: "天",
93
101
  trendEmpty: "当前范围不足两天数据,切换到「按月」或「全部」查看趋势",
94
102
  peak: "峰值",
95
103
  filterAll: "全部",
96
104
  filterDay: "按天",
105
+ filterRange: "时间段",
97
106
  filterMonth: "按月",
107
+ filterYear: "按年",
98
108
  filterLabel: "范围",
99
109
  modelLabel: "模型",
100
110
  modelAll: "全部模型",
@@ -129,7 +139,106 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
129
139
  loading: "加载中…",
130
140
  error: "读取失败",
131
141
  remoteDenied: "接口仅允许本机访问;局域网使用需在插件配置中开启 allowRemote",
132
- retry: "重试"
142
+ retry: "重试",
143
+ tabOverview: "概览",
144
+ tabModels: "模型统计",
145
+ tabProjects: "项目统计",
146
+ tabConfig: "配置信息",
147
+ heatmap: "使用热力图",
148
+ heatmapNote: "近 12 个月,每格一天;悬停查看当天明细",
149
+ heatLess: "少",
150
+ heatMore: "多",
151
+ heatCell: "{day} · 总计 {total} · {cost} · {calls} 次调用",
152
+ heatEmpty: "近 12 个月没有记录",
153
+ configVersions: "版本信息",
154
+ configRuntime: "运行环境",
155
+ versionPackage: "组件",
156
+ versionInstalled: "已安装",
157
+ versionLatest: "最新",
158
+ versionState: "状态",
159
+ versionCurrent: "最新",
160
+ versionOutdated: "有新版本",
161
+ versionAhead: "高于 registry",
162
+ versionUnknown: "未知",
163
+ versionChannel: "{channel} 通道",
164
+ versionChecked: "检查于 {time}",
165
+ versionRefresh: "重新检查",
166
+ versionRefreshing: "检查中…",
167
+ healthCheck: "健康检查",
168
+ healthRunning: "检查中…",
169
+ healthOk: "接口正常",
170
+ healthFail: "接口异常",
171
+ healthLatency: "响应耗时",
172
+ healthEndpoint: "接口版本",
173
+ healthScan: "历史扫描",
174
+ healthScanDone: "{sessions} 会话 · {files} 日志 · {ms} ms",
175
+ healthScanRunning: "运行中",
176
+ healthScanFailed: "失败",
177
+ healthPricing: "定价数据",
178
+ healthPricingValue: "{source} · 更新于 {time}",
179
+ healthBuckets: "数据桶",
180
+ healthBucketsValue: "{days} 天 · {models} 个模型",
181
+ healthUpdated: "数据更新于",
182
+ restart: "一键重启",
183
+ restartTitle: "重启 dsh web 服务",
184
+ restartBody: "将重启正在提供本页面的 dsh web 进程(PID {pid})。页面会断开约 10-30 秒,恢复后自动重新加载。",
185
+ restartConfirm: "确认重启",
186
+ restartCancel: "取消",
187
+ restartPending: "已提交重启,等待服务恢复…",
188
+ restartDone: "服务已恢复,正在重新加载页面…",
189
+ restartFailed: "重启失败:{error}",
190
+ runtimePlatform: "平台版本",
191
+ runtimeNode: "Node 版本",
192
+ runtimePid: "进程 PID",
193
+ runtimePort: "监听端口",
194
+ runtimeUptime: "已运行",
195
+ runtimeHome: "DSH_HOME",
196
+ runtimeUptimeValue: "{days} 天 {hours} 小时",
197
+ runtimeUptimeShort: "{minutes} 分钟",
198
+ close: "关闭",
199
+ healthResults: "自检结果",
200
+ healthToneOk: "正常",
201
+ healthToneWarn: "有提醒",
202
+ healthToneError: "有问题",
203
+ healthToneIdle: "未检查",
204
+ healthSectionEndpoint: "接口",
205
+ healthSectionClient: "客户端 bundle",
206
+ healthSectionHarness: "Harness 自检",
207
+ checkProfile: "Profile 完整性",
208
+ checkPlugins: "插件包完整性",
209
+ checkDeps: "依赖解析",
210
+ checkCordis: "cordis 单实例",
211
+ checkVersions: "服务包版本一致",
212
+ bundleOk: "可加载",
213
+ bundleFailed: "加载失败(http {status})",
214
+ bundleNoEntry: "服务端未下发客户端 bundle",
215
+ bundleSkipped: "服务端插件,无前端 bundle",
216
+ healthHint: "建议:{hint}",
217
+ healthChecking: "正在自检…",
218
+ healthSummaryProfile: "{name} · {dir}",
219
+ healthSummaryPlugins: "{ok}/{total} 通过",
220
+ healthSummaryDeps: "{count} 个依赖",
221
+ healthSummaryCordis: "{copies} 份 cordis",
222
+ healthSummaryVersions: "服务端 v{version}",
223
+ codeProvided: "由服务包提供",
224
+ codeNotInstalled: "未安装",
225
+ codeModulesMissing: "node_modules 不存在",
226
+ codeBundlesEmpty: "profile 启动图里没有 bundle",
227
+ codeEntryMissing: "入口文件缺失:{detail}",
228
+ codeEntryUndeclared: "未声明入口(exports[\".\"] / main)",
229
+ codePatchMissing: "bundle patch 缺失:{detail}",
230
+ codeClientMissing: "前端 bundle 缺失:{detail}",
231
+ codeClientUndeclared: "声明了 dsh.client,但没有 exports[\"./client\"]",
232
+ codeUnresolved: "无法从服务端解析",
233
+ codeServiceMismatch: "与服务端版本不一致",
234
+ hintNoProfile: "在 {root} 下找不到包含本插件的 profile",
235
+ hintInstall: "在该 profile 里执行 dsh plugin install",
236
+ hintAdd: "用 dsh plugin add {name} 安装它",
237
+ hintReinstall: "重新安装该插件:发布的包文件不完整",
238
+ hintBundlesEmpty: "profile 的启动图里没有 bundle,插件不会被加载",
239
+ hintCordisMixed: "运行时 import cordis 的插件必须共用同一份、同一版本",
240
+ hintCordisDuplicate: "版本相同但路径不同(link 安装会解析到自己的副本),只有运行时 import cordis 的插件会受影响",
241
+ hintServiceVersion: "服务端 bundle 与正在运行的 CLI 版本不一致,是插件起不来的常见原因"
133
242
  };
134
243
  var en = {
135
244
  tab: "Token usage",
@@ -146,13 +255,16 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
146
255
  byProject: "By project",
147
256
  trend: "Usage trend",
148
257
  trendNote: "Each line is normalized to its own peak; hover for daily detail",
258
+ trendAverage: "daily avg",
149
259
  trendNoData: "no usage this day",
150
260
  daysSuffix: "d",
151
261
  trendEmpty: "Fewer than two days in range — switch to By month or All for a trend",
152
262
  peak: "Peak",
153
263
  filterAll: "All",
154
264
  filterDay: "By day",
265
+ filterRange: "Date range",
155
266
  filterMonth: "By month",
267
+ filterYear: "By year",
156
268
  filterLabel: "Range",
157
269
  modelLabel: "Model",
158
270
  modelAll: "All models",
@@ -187,10 +299,109 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
187
299
  loading: "Loading…",
188
300
  error: "Failed to load",
189
301
  remoteDenied: "Endpoint is loopback-only; enable allowRemote in the plugin config for LAN access",
190
- retry: "Retry"
302
+ retry: "Retry",
303
+ tabOverview: "Overview",
304
+ tabModels: "By model",
305
+ tabProjects: "By project",
306
+ tabConfig: "Configuration",
307
+ heatmap: "Usage heatmap",
308
+ heatmapNote: "Last 12 months, one cell per day; hover for that day's detail",
309
+ heatLess: "Less",
310
+ heatMore: "More",
311
+ heatCell: "{day} · {total} tokens · {cost} · {calls} calls",
312
+ heatEmpty: "Nothing recorded in the last 12 months",
313
+ configVersions: "Versions",
314
+ configRuntime: "Runtime",
315
+ versionPackage: "Package",
316
+ versionInstalled: "Installed",
317
+ versionLatest: "Latest",
318
+ versionState: "Status",
319
+ versionCurrent: "Up to date",
320
+ versionOutdated: "Update available",
321
+ versionAhead: "Ahead of registry",
322
+ versionUnknown: "Unknown",
323
+ versionChannel: "{channel} channel",
324
+ versionChecked: "Checked {time}",
325
+ versionRefresh: "Check again",
326
+ versionRefreshing: "Checking…",
327
+ healthCheck: "Health check",
328
+ healthRunning: "Checking…",
329
+ healthOk: "Endpoint healthy",
330
+ healthFail: "Endpoint failed",
331
+ healthLatency: "Latency",
332
+ healthEndpoint: "Endpoint version",
333
+ healthScan: "History scan",
334
+ healthScanDone: "{sessions} sessions · {files} logs · {ms} ms",
335
+ healthScanRunning: "running",
336
+ healthScanFailed: "failed",
337
+ healthPricing: "Price data",
338
+ healthPricingValue: "{source} · fetched {time}",
339
+ healthBuckets: "Buckets",
340
+ healthBucketsValue: "{days} days · {models} models",
341
+ healthUpdated: "Data updated",
342
+ restart: "Restart service",
343
+ restartTitle: "Restart the dsh web service",
344
+ restartBody: "This restarts the dsh web process serving this page (PID {pid}). The page goes away for roughly 10-30 seconds and reloads itself once the service is back.",
345
+ restartConfirm: "Restart now",
346
+ restartCancel: "Cancel",
347
+ restartPending: "Restart submitted — waiting for the service…",
348
+ restartDone: "Service is back — reloading the page…",
349
+ restartFailed: "Restart failed: {error}",
350
+ runtimePlatform: "Platform",
351
+ runtimeNode: "Node version",
352
+ runtimePid: "PID",
353
+ runtimePort: "Port",
354
+ runtimeUptime: "Uptime",
355
+ runtimeHome: "DSH_HOME",
356
+ runtimeUptimeValue: "{days}d {hours}h",
357
+ runtimeUptimeShort: "{minutes}m",
358
+ close: "Close",
359
+ healthResults: "Self-check",
360
+ healthToneOk: "Healthy",
361
+ healthToneWarn: "Attention",
362
+ healthToneError: "Problems",
363
+ healthToneIdle: "Not checked",
364
+ healthSectionEndpoint: "Endpoint",
365
+ healthSectionClient: "Client bundles",
366
+ healthSectionHarness: "Harness self-check",
367
+ checkProfile: "Profile integrity",
368
+ checkPlugins: "Plugin packages",
369
+ checkDeps: "Dependency resolution",
370
+ checkCordis: "Single cordis instance",
371
+ checkVersions: "Service bundle versions",
372
+ bundleOk: "loads",
373
+ bundleFailed: "failed to load (http {status})",
374
+ bundleNoEntry: "the server published no client bundle for this plugin",
375
+ bundleSkipped: "server-side plugin, no client bundle",
376
+ healthHint: "Try: {hint}",
377
+ healthChecking: "Running the self-check…",
378
+ healthSummaryProfile: "{name} · {dir}",
379
+ healthSummaryPlugins: "{ok}/{total} ok",
380
+ healthSummaryDeps: "{count} declared",
381
+ healthSummaryCordis: "{copies} copies of cordis",
382
+ healthSummaryVersions: "service v{version}",
383
+ codeProvided: "provided by the service",
384
+ codeNotInstalled: "not installed",
385
+ codeModulesMissing: "node_modules is missing",
386
+ codeBundlesEmpty: "the boot graph lists no bundles",
387
+ codeEntryMissing: "entry file missing: {detail}",
388
+ codeEntryUndeclared: "no entry declared (exports[\".\"] / main)",
389
+ codePatchMissing: "bundle patch missing: {detail}",
390
+ codeClientMissing: "client bundle missing: {detail}",
391
+ codeClientUndeclared: "dsh.client declared but no exports[\"./client\"]",
392
+ codeUnresolved: "not resolvable from the service",
393
+ codeServiceMismatch: "differs from the service",
394
+ hintNoProfile: "no profile under {root} lists this plugin",
395
+ hintInstall: "run dsh plugin install in that profile",
396
+ hintAdd: "install it with dsh plugin add {name}",
397
+ hintReinstall: "reinstall this plugin: its published files are incomplete",
398
+ hintBundlesEmpty: "with no bundles the profile loads no plugins",
399
+ hintCordisMixed: "plugins that import cordis at runtime must share one copy and one version",
400
+ hintCordisDuplicate: "same version, different paths (a linked plugin resolves its own copy) — harmless unless the plugin imports cordis at runtime",
401
+ hintServiceVersion: "a service bundle older or newer than the running CLI is a common cause of failed plugin startups"
191
402
  };
192
403
 
193
- var css = ".dshtu_wrap{max-width:860px;display:flex;flex-direction:column;gap:14px;padding:2px 2px 4px;color:var(--dsw-alias-label-primary);font-size:13px}.dshtu_card{background:var(--dsw-alias-bg-layer-3);border-radius:14px;box-shadow:var(--dsw-elevation-stroke);padding:14px 16px}.dshtu_bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dshtu_bar label{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_bar .dshtu_select,.dshtu_bar .dshtu_input{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;padding:4px 8px;font-size:12.5px}.dshtu_bar .dshtu_select{width:168px;text-overflow:ellipsis;white-space:nowrap}.dshtu_chips{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.dshtu_subBar{margin-top:12px}.dshtu_pick{display:inline-flex;align-items:center;gap:4px;max-width:230px}.dshtu_pickLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dshtu_metaIcon{display:inline-flex;align-items:center;margin-right:5px;vertical-align:-2px;color:var(--dsw-alias-label-tertiary)}.dshtu_cardTitle{display:inline-flex;align-items:center}.dshtu_foot{display:flex;align-items:center;gap:6px}.dshtu_statLabel{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.dshtu_field{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dshtu_seg{display:inline-flex;border:.5px solid var(--dsw-alias-border-l4);border-radius:8px;overflow:hidden}.dshtu_seg button{border:0;background:0 0;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;padding:4px 10px;font-size:12.5px}.dshtu_seg button[data-on=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.dshtu_totalsMeta{margin-top:12px}.dshtu_grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:8px}.dshtu_stat{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:10px 12px}.dshtu_stat b{display:block;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums}.dshtu_stat span{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_stat[data-main=true]{background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 12%,var(--dsw-alias-bg-module-platform))}.dshtu_stat[data-main=true] b{color:var(--dsw-alias-state-business-primary);font-size:20px}.dshtu_table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dshtu_table th,.dshtu_table td{text-align:right;padding:6px 8px;border-bottom:.5px solid var(--dsw-alias-border-l2);font-weight:400}.dshtu_table th:first-child,.dshtu_table td:first-child{text-align:left}.dshtu_table th{color:var(--dsw-alias-label-tertiary);font-size:12px;white-space:nowrap}.dshtu_table td:first-child{overflow-wrap:anywhere;max-width:300px;color:var(--dsw-alias-label-secondary)}.dshtu_meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.dshtu_err{color:var(--dsw-alias-state-error-primary);display:flex;align-items:center;gap:10px}.dshtu_chart{width:100%;height:260px}.dshtu_info{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;color:var(--dsw-alias-label-tertiary);cursor:help}.dshtu_info:hover{color:var(--dsw-alias-state-business-primary)}.dshtu_pop{display:block;max-width:420px;font-size:12px;font-weight:400;line-height:18px;text-align:left;white-space:normal}.dshtu_pop .dshtu_sep{margin:0 5px;opacity:.55}.dshtu_nd{color:var(--dsw-alias-label-tertiary)}";
404
+ var css = ".dshtu_wrap{max-width:860px;display:flex;flex-direction:column;gap:14px;padding:2px 2px 4px;color:var(--dsw-alias-label-primary);font-size:13px}.dshtu_card{background:var(--dsw-alias-bg-layer-3);border-radius:14px;box-shadow:var(--dsw-elevation-stroke);padding:14px 16px}.dshtu_bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dshtu_bar label{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_bar .dshtu_select,.dshtu_bar .dshtu_input{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;padding:4px 8px;font-size:12.5px}.dshtu_bar .dshtu_select{width:168px;text-overflow:ellipsis;white-space:nowrap}.dshtu_chips{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.dshtu_subBar{margin-top:12px}.dshtu_pick{display:inline-flex;align-items:center;gap:4px;max-width:230px}.dshtu_pickLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dshtu_metaIcon{display:inline-flex;align-items:center;margin-right:5px;vertical-align:-2px;color:var(--dsw-alias-label-tertiary)}.dshtu_cardTitle{display:inline-flex;align-items:center}.dshtu_foot{display:flex;align-items:center;gap:6px}.dshtu_statLabel{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.dshtu_field{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dshtu_seg{display:inline-flex;border:.5px solid var(--dsw-alias-border-l4);border-radius:8px;overflow:hidden}.dshtu_seg button{border:0;background:0 0;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;padding:4px 10px;font-size:12.5px}.dshtu_seg button[data-on=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.dshtu_totalsMeta{margin-top:12px}.dshtu_grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:8px}.dshtu_stat{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:10px 12px}.dshtu_stat b{display:block;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums}.dshtu_stat span{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_stat[data-main=true]{background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 12%,var(--dsw-alias-bg-module-platform))}.dshtu_stat[data-main=true] b{color:var(--dsw-alias-state-business-primary);font-size:20px}.dshtu_table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dshtu_table th,.dshtu_table td{text-align:right;padding:6px 8px;border-bottom:.5px solid var(--dsw-alias-border-l2);font-weight:400}.dshtu_table th:first-child,.dshtu_table td:first-child{text-align:left}.dshtu_table th{color:var(--dsw-alias-label-tertiary);font-size:12px;white-space:nowrap}.dshtu_table td:first-child{overflow-wrap:anywhere;max-width:300px;color:var(--dsw-alias-label-secondary)}.dshtu_meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.dshtu_err{color:var(--dsw-alias-state-error-primary);display:flex;align-items:center;gap:10px}.dshtu_chart{width:100%;height:260px}.dshtu_info{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;color:var(--dsw-alias-label-tertiary);cursor:help}.dshtu_info:hover{color:var(--dsw-alias-state-business-primary)}.dshtu_pop{display:block;max-width:420px;font-size:12px;font-weight:400;line-height:18px;text-align:left;white-space:normal}.dshtu_pop .dshtu_sep{margin:0 5px;opacity:.55}[role=tooltip]:has(.dshtu_pop){background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);padding:10px 12px;border:0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.16)}.dshtu_nd{color:var(--dsw-alias-label-tertiary)}.dshtu_range{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dshtu_range input{width:132px}.dshtu_range em{font-style:normal;color:var(--dsw-alias-label-tertiary)}.dshtu_tabRow{display:flex;align-items:center;gap:10px}.dshtu_tabs{display:flex;align-items:center;gap:2px;flex:1;flex-wrap:wrap}.dshtu_tabs button{border:0;background:0 0;font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;padding:5px 10px 6px;border-bottom:2px solid transparent;font-size:13px}.dshtu_tabs button:hover{color:var(--dsw-alias-label-primary)}.dshtu_tabs button[data-on=true]{color:var(--dsw-alias-label-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.dshtu_heatCard{position:relative;display:flex;flex-direction:column;gap:10px}.dshtu_heatHead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dshtu_heatScroll{overflow-x:auto;padding-bottom:4px}.dshtu_heatBody{display:flex;gap:3px}.dshtu_heatDays{display:flex;flex-direction:column;gap:3px;width:17px}.dshtu_heatDay{height:11px;font-size:10px;line-height:11px;color:var(--dsw-alias-label-tertiary)}.dshtu_heat{display:flex;gap:3px}.dshtu_heatCol{display:flex;flex-direction:column;gap:3px}.dshtu_heatColHead{position:relative;height:13px}.dshtu_heatColLabel{position:absolute;left:0;top:0;font-size:10px;line-height:13px;color:var(--dsw-alias-label-tertiary);white-space:nowrap}.dshtu_heatCell{width:11px;height:11px;border-radius:2px;background:var(--dsw-alias-bg-module-platform)}.dshtu_heatCell[data-future=true]{background:0 0}.dshtu_heatCell[data-day]:hover{outline:1.5px solid var(--dsw-alias-state-business-primary);outline-offset:1px}.dshtu_heatTip{position:absolute;z-index:6;transform:translate(-50%,-100%);pointer-events:none;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.18);padding:6px 9px;font-size:11.5px;line-height:17px;white-space:nowrap;display:flex;flex-direction:column}.dshtu_heatTip b{font-weight:500;margin-bottom:1px}.dshtu_heatTipRow{color:var(--dsw-alias-label-secondary)}.dshtu_heatLegend{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--dsw-alias-label-tertiary)}.dshtu_heatLegend i{width:11px;height:11px;border-radius:2px;display:inline-block}.dshtu_kv{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:6px 14px;margin-top:8px;font-size:12.5px}.dshtu_kv dt{color:var(--dsw-alias-label-tertiary)}.dshtu_kv dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dshtu_acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.dshtu_health{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:6px 14px;margin-top:12px;padding-top:10px;border-top:.5px solid var(--dsw-alias-border-l2);font-size:12.5px}.dshtu_health dt{color:var(--dsw-alias-label-tertiary)}.dshtu_health dd{margin:0;font-variant-numeric:tabular-nums}.dshtu_stack{display:flex;flex-direction:column;gap:14px}.dshtu_tblBar{margin-top:12px}.dshtu_checkList{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}.dshtu_head{display:flex;align-items:center;gap:6px;margin-bottom:8px}.dshtu_head h3{margin:0;font-size:13px;font-weight:500}.dshtu_slim .dshtu_bar{margin:0}.dshtu_state{display:inline-flex;align-items:center;gap:6px;font-size:12.5px}.dshtu_state[data-tone=ok]{color:var(--dsw-alias-state-success-primary)}.dshtu_state[data-tone=warn]{color:var(--dsw-alias-state-warning-primary)}.dshtu_state[data-tone=bad]{color:var(--dsw-alias-state-error-primary)}.dshtu_state[data-tone=idle]{color:var(--dsw-alias-label-tertiary)}.dshtu_modalBody{font-size:12.5px;line-height:20px;color:var(--dsw-alias-label-secondary);max-width:420px}.dshtu_modalFoot{display:flex;justify-content:flex-end;gap:8px}.dshtu_verCell{font-variant-numeric:tabular-nums;white-space:nowrap}";
194
405
 
195
406
  function trimNum(v, decimals) {
196
407
  var f = v.toFixed(decimals);
@@ -233,6 +444,7 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
233
444
 
234
445
  var today = function () { return new Date().toISOString().slice(0, 10); };
235
446
  var thisMonth = function () { return new Date().toISOString().slice(0, 7); };
447
+ var thisYear = function () { return new Date().toISOString().slice(0, 4); };
236
448
 
237
449
  function statBox(t, label, value, unit, main) {
238
450
  return h("div", { className: "dshtu_stat", "data-main": main === true },
@@ -258,37 +470,34 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
258
470
  }
259
471
 
260
472
  /**
261
- * Model filter. The shell's Menu (the same popover the composer picks models
262
- * with) anchored on a pill; a styled native select on a shell without it.
473
+ * A shell-styled dropdown: the Menu popover (the same one the composer picks
474
+ * models with) anchored on a pill, showing the current label. Renders a plain
475
+ * `select` on a shell that has no Menu. Shared by the range window, the year
476
+ * and the model filter, so their behaviour cannot drift apart.
263
477
  */
264
- function ModelPicker(props) {
265
- var t = props.t;
478
+ function Dropdown(props) {
266
479
  var _a = useState(false), open = _a[0], setOpen = _a[1];
480
+ var current = props.items.filter(function (item) { return item.id === props.value; })[0];
267
481
  if (menu === null) {
268
482
  return h("select", {
269
483
  className: "dshtu_select",
270
- value: props.model,
484
+ value: props.value,
271
485
  onChange: function (event) { props.onChange(event.target.value); }
272
- }, [h("option", { key: "", value: "" }, t("modelAll"))].concat(props.models.map(function (name) {
273
- return h("option", { key: name, value: name }, name);
274
- })));
486
+ }, props.items.map(function (item) { return h("option", { key: item.id, value: item.id }, item.label); }));
275
487
  }
276
- var items = [{ id: "", label: t("modelAll") }].concat(props.models.map(function (name) {
277
- return { id: name, label: name };
278
- }));
279
488
  return h(menu, {
280
489
  open: open,
281
490
  align: "start",
282
491
  side: "bottom",
283
492
  portal: true,
284
493
  compact: true,
285
- items: items,
286
- selectedId: props.model,
494
+ items: props.items,
495
+ selectedId: props.value,
287
496
  onSelect: function (id) { props.onChange(id); setOpen(false); },
288
497
  onClose: function () { setOpen(false); },
289
- anchor: h(chip, { active: props.model !== "", onClick: function () { setOpen(!open); } },
498
+ anchor: h(chip, { active: true, onClick: function () { setOpen(!open); } },
290
499
  h("span", { className: "dshtu_pick" },
291
- h("span", { className: "dshtu_pickLabel" }, props.model === "" ? t("modelAll") : props.model),
500
+ h("span", { className: "dshtu_pickLabel" }, current === undefined ? String(props.value) : current.label),
292
501
  iconChevron === null ? null : h(iconChevron, {})))
293
502
  });
294
503
  }
@@ -343,7 +552,7 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
343
552
  h("th", null, keyLabel),
344
553
  h("th", null, tooltip === null
345
554
  ? h("span", { title: t("costTipLong") }, t("cost") + "*")
346
- : h(tooltip, { label: t("costTipLong"), side: "top", delayMs: 250 }, h("span", null, t("cost") + "*"))),
555
+ : h(tooltip, { label: h("div", { className: "dshtu_pop" }, t("costTipLong")), side: "top", delayMs: 250 }, h("span", null, t("cost") + "*"))),
347
556
  h("th", null, t("total")),
348
557
  h("th", null, t("input")),
349
558
  h("th", null, t("output")),
@@ -361,7 +570,7 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
361
570
  h("td", { className: blank ? "dshtu_nd" : undefined },
362
571
  tooltip === null
363
572
  ? h("span", { title: tip }, money)
364
- : h(tooltip, { label: tip, side: "top", delayMs: 250 }, h("span", { className: "dshtu_moneyCell" }, money))),
573
+ : h(tooltip, { label: h("div", { className: "dshtu_pop" }, tip), side: "top", delayMs: 250 }, h("span", { className: "dshtu_moneyCell" }, money))),
365
574
  h("td", null, fmtValue(row.total, unit)),
366
575
  h("td", null, fmtValue(row.input, unit)),
367
576
  h("td", null, fmtValue(row.output, unit)),
@@ -377,6 +586,12 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
377
586
  * as bars against its own axis. Calls stay in the tooltip — a third value
378
587
  * axis would crowd a narrow panel.
379
588
  */
589
+ /**
590
+ * Orange, one step deeper than the output series' amber (#f59e0b), so the
591
+ * dashed reference line still reads as its own thing next to that band.
592
+ */
593
+ var AVERAGE_COLOR = "#f97316";
594
+
380
595
  var CHART_SERIES = [
381
596
  { key: "cacheRead", label: "cacheRead", color: "#8b5cf6", fill: "rgba(139,92,246,.40)", stack: "tokens" },
382
597
  { key: "output", label: "output", color: "#f59e0b", fill: "rgba(245,158,11,.55)", stack: "tokens" },
@@ -414,6 +629,13 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
414
629
  var bucket = trend.days[days[index]];
415
630
  if (bucket !== undefined && (bucket.calls || 0) > 0 && bucket.total > peak) peak = bucket.total;
416
631
  }
632
+ // The daily average of exactly the window on screen: one flat reference line
633
+ // that answers "am I above or below my usual day" at a glance.
634
+ var average = days.length === 0 ? 0 : days.reduce(function (sum, day) {
635
+ var dayBucket = trend.days[day];
636
+ return sum + (dayBucket === undefined ? 0 : dayBucket.total || 0);
637
+ }, 0) / days.length;
638
+ var showAverage = days.length > 1 && average > 0;
417
639
  var scale = axisScale(peak, unit);
418
640
  var dot = function (color) {
419
641
  return '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:' + color + ';margin-right:6px;vertical-align:middle"></span>';
@@ -502,6 +724,25 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
502
724
  itemStyle: { color: s.color, borderWidth: 0 },
503
725
  emphasis: { focus: "series", scale: 1.4 },
504
726
  areaStyle: s.stack === undefined ? undefined : { color: s.fill, opacity: 1 },
727
+ // The average rides the total series, so it shares the token axis and
728
+ // disappears with the line it describes.
729
+ markLine: s.key !== "total" || !showAverage ? undefined : {
730
+ silent: true,
731
+ symbol: "none",
732
+ animation: false,
733
+ precision: 0,
734
+ lineStyle: { color: AVERAGE_COLOR, width: 2, type: "dashed", opacity: 0.95 },
735
+ label: {
736
+ show: true,
737
+ position: "insideEndTop",
738
+ distance: 3,
739
+ color: AVERAGE_COLOR,
740
+ fontSize: 11,
741
+ fontWeight: 500,
742
+ formatter: t("trendAverage") + " " + fmtValue(average, unit)
743
+ },
744
+ data: [{ yAxis: average }]
745
+ },
505
746
  data: data
506
747
  };
507
748
  })
@@ -653,6 +894,439 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
653
894
  return { node: nodes, text: texts.join("\n") };
654
895
  }
655
896
 
897
+ /**
898
+ * Calendar heatmap: one column per week, one cell per day, drawn from the
899
+ * per-day series the endpoint already ships for the trend chart. Levels are
900
+ * quartiles of the non-zero days, so a quiet stretch still shows contrast.
901
+ * Detail rides the cell's native `title` — 366 shell tooltips would cost far
902
+ * more than the information is worth.
903
+ */
904
+ var HEAT_LEVELS = [
905
+ null,
906
+ "color-mix(in srgb, var(--dsw-alias-state-business-primary) 22%, transparent)",
907
+ "color-mix(in srgb, var(--dsw-alias-state-business-primary) 45%, transparent)",
908
+ "color-mix(in srgb, var(--dsw-alias-state-business-primary) 70%, transparent)",
909
+ "var(--dsw-alias-state-business-primary)"
910
+ ];
911
+ var EN_MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
912
+
913
+ /** `9月` in Chinese, `Sep` in English — the panel's own unit switch decides. */
914
+ function monthLabel(day, unit) {
915
+ var month = Number(day.slice(5, 7));
916
+ return unit === "en" ? EN_MONTHS[month - 1] : month + "月";
917
+ }
918
+
919
+ /** Day number since the epoch, so calendar maths never meets a timezone. */
920
+ function dayNumber(day) {
921
+ var parts = day.split("-").map(Number);
922
+ return Math.floor(Date.UTC(parts[0], parts[1] - 1, parts[2]) / 86400000);
923
+ }
924
+
925
+ function heatCells(trend, metric) {
926
+ var days = Object.keys(trend || {}).sort();
927
+ if (days.length === 0) return { weeks: [], limits: [0, 0, 0] };
928
+ var valueOf = function (day) {
929
+ var bucket = trend[day] || {};
930
+ return metric === "cost" ? (bucket.cost || 0) : (bucket.total || 0);
931
+ };
932
+ var numbers = days.map(valueOf).filter(function (value) { return value > 0; }).sort(function (a, b) { return a - b; });
933
+ var at = function (q) { return numbers.length === 0 ? 0 : numbers[Math.min(numbers.length - 1, Math.floor(numbers.length * q))]; };
934
+ var limits = [at(0.25), at(0.5), at(0.75)];
935
+ // 1970-01-01 was a Thursday, so Monday-first rows start at offset 3.
936
+ var first = dayNumber(days[0]);
937
+ var last = dayNumber(days[days.length - 1]);
938
+ var offset = (first + 3) % 7;
939
+ var weeks = []
940
+ for (var week = 0; week * 7 < last - first + 1 + offset; week++) {
941
+ var column = [];
942
+ for (var row = 0; row < 7; row++) {
943
+ var number = first - offset + week * 7 + row;
944
+ column.push(number >= first && number <= last ? days[number - first] : (number > last ? "future" : null));
945
+ }
946
+ weeks.push(column);
947
+ }
948
+ return { weeks: weeks, limits: limits, valueOf: valueOf };
949
+ }
950
+
951
+ /** `少 ▢▢▢▢ 多` — the colour key, shown in the card header. */
952
+ function heatLegend(t) {
953
+ return h("span", { className: "dshtu_heatLegend" }, [
954
+ h("span", { key: "less" }, t("heatLess")),
955
+ h("i", { key: "l0" }),
956
+ h("i", { key: "l1", style: { background: HEAT_LEVELS[1] } }),
957
+ h("i", { key: "l2", style: { background: HEAT_LEVELS[2] } }),
958
+ h("i", { key: "l3", style: { background: HEAT_LEVELS[3] } }),
959
+ h("i", { key: "l4", style: { background: HEAT_LEVELS[4] } }),
960
+ h("span", { key: "more" }, t("heatMore"))
961
+ ]);
962
+ }
963
+
964
+ function Heatmap(props) {
965
+ var t = props.t;
966
+ var unit = props.unit;
967
+ // The newest day is the interesting one: open scrolled to the right edge,
968
+ // the way a calendar heatmap is normally read.
969
+ var scroller = useRef(null);
970
+ var card = useRef(null);
971
+ var _a = useState(null), tip = _a[0], setTip = _a[1];
972
+ useEffect(function () {
973
+ if (scroller.current !== null) scroller.current.scrollLeft = scroller.current.scrollWidth;
974
+ }, [props.metric]);
975
+ var grid = heatCells(props.trend, props.metric);
976
+ if (grid.weeks.length === 0) return h("div", { className: "dshtu_meta" }, t("heatEmpty"));
977
+ var levelOf = function (value) {
978
+ if (value <= 0) return 0;
979
+ if (value <= grid.limits[0]) return 1;
980
+ if (value <= grid.limits[1]) return 2;
981
+ if (value <= grid.limits[2]) return 3;
982
+ return 4;
983
+ };
984
+ var titled = function (day) {
985
+ var bucket = props.trend[day] || {};
986
+ return t("heatCell")
987
+ .replace("{day}", day)
988
+ .replace("{total}", fmtValue(bucket.total || 0, unit))
989
+ .replace("{cost}", fmtMoney(bucket.cost || 0))
990
+ .replace("{calls}", String(bucket.calls || 0));
991
+ };
992
+ var labeled = null;
993
+ // The month label lives inside its own week column (absolutely positioned, so
994
+ // it can overflow without widening the 11px column), which keeps it aligned
995
+ // with the cells underneath no matter how the row is scrolled or sized.
996
+ var columns = grid.weeks.map(function (column, index) {
997
+ var firstDay = column.filter(function (day) { return day !== null && day !== "future"; })[0];
998
+ var label = "";
999
+ if (firstDay !== undefined) {
1000
+ var month = firstDay.slice(0, 7);
1001
+ if (month !== labeled) {
1002
+ labeled = month;
1003
+ label = monthLabel(firstDay, unit);
1004
+ }
1005
+ }
1006
+ var head = h("div", { className: "dshtu_heatColHead", key: "h" + index },
1007
+ label === "" ? null : h("span", { className: "dshtu_heatColLabel" }, label));
1008
+ return h("div", { className: "dshtu_heatCol", key: "w" + index }, [head].concat(column.map(function (day, row) {
1009
+ if (day === null) return h("div", { className: "dshtu_heatCell", key: "p" + index + "-" + row });
1010
+ if (day === "future") return h("div", { className: "dshtu_heatCell", key: "f" + index + "-" + row, "data-future": "true" });
1011
+ var value = grid.valueOf(day);
1012
+ return h("div", {
1013
+ key: day,
1014
+ className: "dshtu_heatCell",
1015
+ "data-day": day,
1016
+ "aria-label": titled(day),
1017
+ style: { background: value > 0 ? HEAT_LEVELS[levelOf(value)] : undefined }
1018
+ });
1019
+ })));
1020
+ });
1021
+ // One shared tip, positioned from the hovered cell. The native `title` a cell
1022
+ // would carry has a built-in ~1s delay, which makes 366 cells feel dead.
1023
+ var move = function (event) {
1024
+ var cell = event.target.closest === undefined ? null : event.target.closest(".dshtu_heatCell[data-day]");
1025
+ if (cell === null) {
1026
+ if (tip !== null) setTip(null);
1027
+ return;
1028
+ }
1029
+ var box = cell.getBoundingClientRect();
1030
+ var frame = card.current === null ? null : card.current.getBoundingClientRect();
1031
+ if (frame === null) return;
1032
+ setTip({
1033
+ day: cell.getAttribute("data-day"),
1034
+ x: Math.max(34, Math.min(frame.width - 34, box.left - frame.left + box.width / 2)),
1035
+ y: box.top - frame.top - 4
1036
+ });
1037
+ };
1038
+ return h("div", { className: "dshtu_heatCard", ref: card },
1039
+ h("div", {
1040
+ className: "dshtu_heatScroll",
1041
+ ref: scroller,
1042
+ onMouseMove: move,
1043
+ onMouseLeave: function () { setTip(null); }
1044
+ },
1045
+ h("div", { className: "dshtu_heatBody" },
1046
+ h("div", { className: "dshtu_heatDays" }, [
1047
+ h("span", { className: "dshtu_heatColHead", key: "head" }),
1048
+ h("span", { className: "dshtu_heatDay", key: "1" }, "一"),
1049
+ h("span", { className: "dshtu_heatDay", key: "2" }),
1050
+ h("span", { className: "dshtu_heatDay", key: "3" }, "三"),
1051
+ h("span", { className: "dshtu_heatDay", key: "4" }),
1052
+ h("span", { className: "dshtu_heatDay", key: "5" }, "五"),
1053
+ h("span", { className: "dshtu_heatDay", key: "6" }),
1054
+ h("span", { className: "dshtu_heatDay", key: "7" }, "日")
1055
+ ]),
1056
+ h("div", { className: "dshtu_heat" }, columns))),
1057
+ tip === null ? null : h("div", { className: "dshtu_heatTip", style: { left: tip.x + "px", top: tip.y + "px" } },
1058
+ h("b", null, tip.day),
1059
+ h("span", { className: "dshtu_heatTipRow" }, t("total") + " " + fmtValue((props.trend[tip.day] || {}).total || 0, unit)),
1060
+ h("span", { className: "dshtu_heatTipRow" }, t("cost") + " " + fmtMoney((props.trend[tip.day] || {}).cost || 0)),
1061
+ h("span", { className: "dshtu_heatTipRow" }, t("calls") + " " + ((props.trend[tip.day] || {}).calls || 0))));
1062
+ }
1063
+
1064
+ /** Replace one probe row in a bundle-probe list. */
1065
+ function updateRow(list, name, patch) {
1066
+ return list.map(function (row) {
1067
+ return row.name === name ? { name: row.name, status: patch.status, detail: patch.detail } : row;
1068
+ });
1069
+ }
1070
+
1071
+ /** `628 KB` — only when the response actually declares its length. */
1072
+ function sizeText(response) {
1073
+ var length = response.headers.get("content-length");
1074
+ if (length === null) return "";
1075
+ var kb = Math.round(Number(length) / 1024);
1076
+ return Number.isFinite(kb) && kb > 0 ? " · " + kb + " KB" : "";
1077
+ }
1078
+
1079
+ /**
1080
+ * The self-check report: what this endpoint answers, what the browser can
1081
+ * actually load, and what the host found wrong inside the profile. The client
1082
+ * bundle check has to live here — the served URL carries a build revision that
1083
+ * only the boot manifest knows, so the browser is the only honest prober.
1084
+ */
1085
+ function HealthPanel(props) {
1086
+ var t = props.t;
1087
+ var health = props.health;
1088
+ var harness = props.harness;
1089
+ var bundles = props.bundles;
1090
+ if (health === null && harness === null) {
1091
+ // Nothing has run yet: the self-check is opt-in, so its card stays out of
1092
+ // the way until the button is pressed.
1093
+ return null;
1094
+ }
1095
+ var checks = harness === null ? [] : (harness.checks || []);
1096
+ var bundleRows = bundles === null ? [] : bundles;
1097
+ var statuses = checks.map(function (check) { return check.status; }).concat(bundleRows.map(function (row) { return row.status; }));
1098
+ if (health !== null && health.state === "error") statuses.push("error");
1099
+ var tone = statuses.indexOf("error") !== -1 ? "bad" : statuses.indexOf("warn") !== -1 ? "warn" : health === null || health.state === "running" ? "idle" : "ok";
1100
+ var toneLabel = tone === "bad" ? t("healthToneError") : tone === "warn" ? t("healthToneWarn") : tone === "ok" ? t("healthToneOk") : t("healthToneIdle");
1101
+ var row = function (key, label, value, status) {
1102
+ return [
1103
+ h("dt", { key: key }, label),
1104
+ h("dd", { key: key + "v" },
1105
+ status === undefined ? null : h("span", { className: "dshtu_state", "data-tone": status === "ok" ? "ok" : status === "error" ? "bad" : "warn" },
1106
+ status === "ok" ? (iconCheck === null ? null : h(iconCheck, {})) : status === "error" ? (iconWarn === null ? null : h(iconWarn, {})) : (iconClock === null ? null : h(iconClock, {})),
1107
+ " "),
1108
+ value)
1109
+ ];
1110
+ };
1111
+ var endpointRows = [];
1112
+ if (health !== null && health.state === "ok") {
1113
+ var scan = health.data.scan;
1114
+ var pricing = health.data.pricing || {};
1115
+ endpointRows = endpointRows.concat(row("latency", t("healthLatency"), health.ms + " ms", "ok"));
1116
+ endpointRows = endpointRows.concat(row("version", t("healthEndpoint"), health.data.version, health.data.version === props.version ? "ok" : "warn"));
1117
+ endpointRows = endpointRows.concat(row("scan", t("healthScan"),
1118
+ scan === null ? "—" : scan.error !== undefined && scan.error !== null ? t("healthScanFailed") : scan.done
1119
+ ? t("healthScanDone").replace("{sessions}", scan.sessions).replace("{files}", scan.files).replace("{ms}", scan.ms)
1120
+ : t("healthScanRunning"),
1121
+ scan === null ? "warn" : scan.error !== undefined && scan.error !== null ? "error" : "ok"));
1122
+ endpointRows = endpointRows.concat(row("pricing", t("healthPricing"),
1123
+ t("healthPricingValue").replace("{source}", pricing.source || "—").replace("{time}", fmtTime(pricing.fetchedAt || 0)),
1124
+ (pricing.fetchedAt || 0) > 0 ? "ok" : "warn"));
1125
+ endpointRows = endpointRows.concat(row("buckets", t("healthBuckets"),
1126
+ t("healthBucketsValue").replace("{days}", String(Object.keys(health.data.byDay || {}).length)).replace("{models}", String((health.data.models || []).length)),
1127
+ "ok"));
1128
+ endpointRows = endpointRows.concat(row("updated", t("healthUpdated"), fmtTime(health.data.updatedAt), "ok"));
1129
+ } else if (health !== null && health.state === "error") {
1130
+ endpointRows = endpointRows.concat(row("failed", t("healthFail"), health.error, "error"));
1131
+ }
1132
+ var checkLabel = {
1133
+ profile: "checkProfile",
1134
+ plugins: "checkPlugins",
1135
+ deps: "checkDeps",
1136
+ cordis: "checkCordis",
1137
+ versions: "checkVersions"
1138
+ };
1139
+ /** The host reports structure; every sentence is composed here. */
1140
+ var summaryOf = function (check) {
1141
+ var data = check.data || {};
1142
+ if (check.id === "profile") {
1143
+ return data.name === undefined
1144
+ ? t("hintNoProfile").replace("{root}", data.root || "")
1145
+ : t("healthSummaryProfile").replace("{name}", data.name).replace("{dir}", data.dir);
1146
+ }
1147
+ if (check.id === "plugins") return t("healthSummaryPlugins").replace("{ok}", String(data.ok)).replace("{total}", String(data.total));
1148
+ if (check.id === "deps") return t("healthSummaryDeps").replace("{count}", String(data.count));
1149
+ if (check.id === "cordis") return t("healthSummaryCordis").replace("{copies}", String(data.copies));
1150
+ if (check.id === "versions") return data.commandVersion === null ? t("versionUnknown") : t("healthSummaryVersions").replace("{version}", data.commandVersion);
1151
+ return "";
1152
+ };
1153
+ var codeText = function (item) {
1154
+ if (item.code === undefined || item.code === null) return item.detail;
1155
+ return item.code.split("+").map(function (code) {
1156
+ var key = "code" + code.charAt(0).toUpperCase() + code.slice(1).replace(/-([a-z])/g, function (all, letter) { return letter.toUpperCase(); });
1157
+ return t(key).replace("{detail}", item.detail === null || item.detail === undefined ? "" : item.detail);
1158
+ }).join(";");
1159
+ };
1160
+ var hintText = function (hint, name) {
1161
+ if (hint === undefined || hint === null) return null;
1162
+ var key = "hint" + hint.charAt(0).toUpperCase() + hint.slice(1).replace(/-([a-z])/g, function (all, letter) { return letter.toUpperCase(); });
1163
+ return t(key).replace("{name}", name === undefined ? "" : name);
1164
+ };
1165
+ var detailLine = function (item, index) {
1166
+ var text = codeText(item);
1167
+ return h("li", { key: (item.name || "") + index, className: "dshtu_meta" },
1168
+ item.name === undefined || item.name === "" ? null : item.name + " — ",
1169
+ text.length === 0 ? null : text,
1170
+ hintText(item.hint, item.name) === null ? null : h("span", null, " · " + t("healthHint").replace("{hint}", hintText(item.hint, item.name))));
1171
+ };
1172
+ return h("div", { className: "dshtu_card" },
1173
+ h("div", { className: "dshtu_head" },
1174
+ iconCheck === null ? null : h(iconCheck, {}),
1175
+ h("h3", null, t("healthResults")),
1176
+ h("span", { style: { flex: "1" } }),
1177
+ h("span", { className: "dshtu_state", "data-tone": tone }, toneLabel)),
1178
+ endpointRows.length === 0 ? null : h("div", null,
1179
+ h("div", { className: "dshtu_meta" }, t("healthSectionEndpoint")),
1180
+ h("dl", { className: "dshtu_health" }, endpointRows)),
1181
+ bundleRows.length === 0 ? null : h("div", null,
1182
+ h("div", { className: "dshtu_meta", style: { marginTop: "10px" } }, t("healthSectionClient")),
1183
+ h("dl", { className: "dshtu_health" }, bundleRows.map(function (entry) {
1184
+ return [h("dt", { key: entry.name }, entry.name), h("dd", { key: entry.name + "v" }, h("span", { className: "dshtu_state", "data-tone": entry.status === "ok" ? "ok" : entry.status === "error" ? "bad" : "warn" }, entry.detail))];
1185
+ }).reduce(function (flat, pair) { return flat.concat(pair); }, []))),
1186
+ checks.length === 0 ? null : h("div", null,
1187
+ h("div", { className: "dshtu_meta", style: { marginTop: "10px" } }, t("healthSectionHarness")),
1188
+ h("dl", { className: "dshtu_health" }, checks.map(function (check) {
1189
+ var glyph = check.status === "ok" ? iconCheck : check.status === "error" ? iconWarn : iconClock;
1190
+ var failing = (check.items || []).filter(function (item) { return item.status !== "ok"; });
1191
+ var hint = hintText(check.hint, undefined);
1192
+ return [
1193
+ h("dt", { key: check.id }, checkLabel[check.id] === undefined ? check.id : t(checkLabel[check.id])),
1194
+ h("dd", { key: check.id + "v" },
1195
+ h("span", { className: "dshtu_state", "data-tone": check.status === "ok" ? "ok" : check.status === "error" ? "bad" : "warn" },
1196
+ glyph === null ? null : h(glyph, {}),
1197
+ " ",
1198
+ summaryOf(check)),
1199
+ failing.length === 0 ? null : h("ul", { className: "dshtu_checkList" }, failing.slice(0, 8).map(detailLine)),
1200
+ hint === null || check.status === "ok" ? null : h("div", { className: "dshtu_meta" }, t("healthHint").replace("{hint}", hint)))
1201
+ ];
1202
+ }).reduce(function (flat, pair) { return flat.concat(pair); }, []))));
1203
+ }
1204
+
1205
+ /** `已安装 / 最新 / 状态` for one tracked package. */
1206
+ function versionRow(t, entry) {
1207
+ var tone = entry.status === "current" ? "ok" : (entry.status === "outdated" ? "warn" : "idle");
1208
+ var label = entry.status === "current" ? t("versionCurrent")
1209
+ : entry.status === "outdated" ? t("versionOutdated")
1210
+ : entry.status === "ahead" ? t("versionAhead") : t("versionUnknown");
1211
+ var glyph = entry.status === "current" ? iconCheck : (entry.status === "outdated" ? iconWarn : iconClock);
1212
+ return h("tr", { key: entry.id },
1213
+ h("td", null,
1214
+ h("span", { className: "dshtu_statLabel" },
1215
+ h("b", null, entry.label),
1216
+ entry.channel !== "stable" ? h("span", { className: "dshtu_nd" }, " · " + t("versionChannel").replace("{channel}", entry.channel)) : null)),
1217
+ h("td", { className: "dshtu_verCell" }, entry.installed === null ? "—" : entry.installed),
1218
+ h("td", { className: "dshtu_verCell" }, entry.latest === null ? "—" : entry.latest),
1219
+ // The status stays a real table cell so its column lines up with the
1220
+ // header; the inline-flex badge lives inside it.
1221
+ h("td", null, h("span", { className: "dshtu_state", "data-tone": tone },
1222
+ glyph === null ? null : h(glyph, {}),
1223
+ entry.error === null ? label : label + "(" + entry.error + ")")));
1224
+ }
1225
+
1226
+ /** Uptime as `2d 3h` / `45m`, whichever reads better at this scale. */
1227
+ function uptimeText(t, seconds) {
1228
+ var total = seconds || 0;
1229
+ if (total < 3600) return t("runtimeUptimeShort").replace("{minutes}", String(Math.max(1, Math.round(total / 60))));
1230
+ return t("runtimeUptimeValue").replace("{days}", String(Math.floor(total / 86400))).replace("{hours}", String(Math.floor((total % 86400) / 3600)));
1231
+ }
1232
+
1233
+ /**
1234
+ * The configuration tab: what is installed against what the registry offers,
1235
+ * the runtime facts of the process serving this page, and the two buttons that
1236
+ * act on it — a real health check and a confirmed restart.
1237
+ */
1238
+ function ConfigPanel(props) {
1239
+ var t = props.t;
1240
+ var config = props.config;
1241
+ if (config === null) {
1242
+ return h("div", { className: "dshtu_card dshtu_meta" }, props.error === null ? t("loading") : t("error") + ": " + props.error);
1243
+ }
1244
+ var runtime = config.platform || {};
1245
+ var health = props.health;
1246
+ var rows = [];
1247
+ if (health && health.state === "ok") {
1248
+ var pricing = health.data.pricing || {};
1249
+ var scan = health.data.scan;
1250
+ var scanText = scan === null ? "—"
1251
+ : scan.error !== undefined && scan.error !== null ? t("healthScanFailed")
1252
+ : scan.done ? t("healthScanDone").replace("{sessions}", scan.sessions).replace("{files}", scan.files).replace("{ms}", scan.ms)
1253
+ : t("healthScanRunning");
1254
+ rows.push(["healthLatency", health.ms + " ms"]);
1255
+ rows.push(["healthEndpoint", health.data.version]);
1256
+ rows.push(["healthScan", scanText]);
1257
+ rows.push(["healthPricing", t("healthPricingValue").replace("{source}", pricing.source || "—").replace("{time}", fmtTime(pricing.fetchedAt || 0))]);
1258
+ rows.push(["healthBuckets", t("healthBucketsValue").replace("{days}", String(Object.keys(health.data.byDay || {}).length)).replace("{models}", String((health.data.models || []).length))]);
1259
+ rows.push(["healthUpdated", fmtTime(health.data.updatedAt)]);
1260
+ }
1261
+ var tone = health === null ? "idle" : health.state === "ok" ? "ok" : health.state === "error" ? "bad" : "idle";
1262
+ var healthLabel = health === null ? null : health.state === "ok" ? t("healthOk") : health.state === "error" ? t("healthFail") + ":" + health.error : t("healthRunning");
1263
+ return h("div", { className: "dshtu_stack" },
1264
+ h("div", { className: "dshtu_card" },
1265
+ h("div", { className: "dshtu_head" }, iconApi === null ? null : h(iconApi, {}), h("h3", null, t("configVersions"))),
1266
+ h("table", { className: "dshtu_table" },
1267
+ h("thead", null, h("tr", null,
1268
+ h("th", null, t("versionPackage")),
1269
+ h("th", null, t("versionInstalled")),
1270
+ h("th", null, t("versionLatest")),
1271
+ h("th", null, t("versionState")))),
1272
+ h("tbody", null, (config.packages || []).map(function (entry) { return versionRow(t, entry); }))),
1273
+ h("div", { className: "dshtu_bar dshtu_tblBar" },
1274
+ h("span", { className: "dshtu_meta" }, config.checkedAt > 0 ? t("versionChecked").replace("{time}", fmtTime(config.checkedAt)) : ""),
1275
+ h("span", { style: { flex: "1" } }),
1276
+ h(button, {
1277
+ variant: "outline",
1278
+ size: "sm",
1279
+ disabled: props.refreshing === true,
1280
+ icon: iconRefresh === null ? null : h(iconRefresh, {}),
1281
+ onClick: props.onRefresh
1282
+ }, props.refreshing === true ? t("versionRefreshing") : t("versionRefresh")))),
1283
+ h("div", { className: "dshtu_card" },
1284
+ h("div", { className: "dshtu_head" }, iconGauge === null ? null : h(iconGauge, {}), h("h3", null, t("configRuntime"))),
1285
+ h("dl", { className: "dshtu_kv" }, [
1286
+ ["runtimePlatform", runtime.osName === undefined ? "—" : runtime.osName + " (" + (runtime.arch || "") + ")"],
1287
+ ["runtimeNode", runtime.node || "—"],
1288
+ ["runtimePid", runtime.pid === undefined ? "—" : String(runtime.pid)],
1289
+ ["runtimePort", runtime.port === null || runtime.port === undefined ? "—" : String(runtime.port)],
1290
+ ["runtimeUptime", runtime.uptimeSec === undefined ? "—" : uptimeText(t, runtime.uptimeSec)],
1291
+ ["runtimeHome", runtime.dshHome || "—"]
1292
+ ].map(function (pair) {
1293
+ return [h("dt", { key: pair[0] }, t(pair[0])), h("dd", { key: pair[0] + "v" }, pair[1])];
1294
+ }).reduce(function (flat, pair) { return flat.concat(pair); }, [])),
1295
+ h("div", { className: "dshtu_acts" },
1296
+ h(button, {
1297
+ variant: "outline",
1298
+ size: "sm",
1299
+ icon: iconCheck === null ? null : h(iconCheck, {}),
1300
+ disabled: health !== null && health.state === "running",
1301
+ onClick: props.onHealth
1302
+ }, t("healthCheck")),
1303
+ config.restartable === false
1304
+ ? h("span", { className: "dshtu_meta" }, t("restartBlocked"))
1305
+ : h(button, {
1306
+ variant: "primary",
1307
+ size: "sm",
1308
+ icon: iconRefresh === null ? null : h(iconRefresh, {}),
1309
+ disabled: props.restart !== null && props.restart.state !== "error",
1310
+ onClick: props.onRestart
1311
+ }, t("restart")),
1312
+ healthLabel === null ? null : h("span", { className: "dshtu_state", "data-tone": tone },
1313
+ health.state === "running" && iconLoading !== null ? h(iconLoading, {}) : null,
1314
+ healthLabel)),
1315
+ props.restart === null ? null : h("div", { className: "dshtu_meta", style: { marginTop: "10px" } },
1316
+ props.restart.state === "pending" ? t("restartPending")
1317
+ : props.restart.state === "done" ? t("restartDone")
1318
+ : t("restartFailed").replace("{error}", props.restart.error))),
1319
+ h(HealthPanel, {
1320
+ key: "health",
1321
+ t: t,
1322
+ health: health,
1323
+ harness: props.harness,
1324
+ bundles: props.bundles,
1325
+ version: config.version
1326
+ }));
1327
+
1328
+ }
1329
+
656
1330
  function Tab(props) {
657
1331
  var t = props.t;
658
1332
  var _a = useState(null), data = _a[0], setData = _a[1];
@@ -672,15 +1346,59 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
672
1346
  return stored === 30 || stored === 90 ? stored : 7;
673
1347
  } catch (err) { return 7; }
674
1348
  }), chartDays = _i[0], setChartDays = _i[1];
1349
+ // The custom span starts as today → today, i.e. the same window as By day.
1350
+ var _j = useState(today()), from = _j[0], setFrom = _j[1];
1351
+ var _k = useState(today()), to = _k[0], setTo = _k[1];
1352
+ var _l = useState(thisYear()), year = _l[0], setYear = _l[1];
1353
+ var _m = useState(function () {
1354
+ try {
1355
+ var stored = localStorage.getItem("dshtu.tab");
1356
+ return stored === "models" || stored === "projects" || stored === "config" ? stored : "overview";
1357
+ } catch (err) { return "overview"; }
1358
+ }), tab = _m[0], setTab = _m[1];
1359
+ var _n = useState("total"), heatMetric = _n[0], setHeatMetric = _n[1];
1360
+ var _o = useState(null), config = _o[0], setConfig = _o[1];
1361
+ var _p = useState(null), configError = _p[0], setConfigError = _p[1];
1362
+ var _q = useState(0), configTick = _q[0], setConfigTick = _q[1];
1363
+ var _r = useState(null), health = _r[0], setHealth = _r[1];
1364
+ var _s = useState(null), restart = _s[0], setRestart = _s[1];
1365
+ var _t = useState(false), confirming = _t[0], setConfirming = _t[1];
1366
+ var _u = useState(null), harness = _u[0], setHarness = _u[1];
1367
+ var _v = useState(null), bundles = _v[0], setBundles = _v[1];
1368
+ var _w = useState(false), refreshing = _w[0], setRefreshing = _w[1];
1369
+
1370
+ var switchTab = function (value) {
1371
+ setTab(value);
1372
+ try { localStorage.setItem("dshtu.tab", value); } catch (err) {}
1373
+ };
675
1374
 
676
1375
  var switchDays = function (value) {
677
1376
  setChartDays(value);
678
1377
  try { localStorage.setItem("dshtu.trendDays", String(value)); } catch (err) {}
679
1378
  };
680
1379
 
1380
+ /**
1381
+ * The custom span's two ends stay ordered: moving one past the other drags
1382
+ * the other along, so the request is never a backwards window (the endpoint
1383
+ * rejects those). An emptied field is ignored instead of sent as "".
1384
+ */
1385
+ var pickSpanEnd = function (value, which) {
1386
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return;
1387
+ if (which === "from") {
1388
+ setFrom(value);
1389
+ if (to < value) setTo(value);
1390
+ } else {
1391
+ setTo(value);
1392
+ if (value < from) setFrom(value);
1393
+ }
1394
+ setTick(tick + 1);
1395
+ };
1396
+
681
1397
  var parts = [];
682
1398
  if (mode === "day") parts.push("day=" + day);
683
1399
  if (mode === "month") parts.push("month=" + month);
1400
+ if (mode === "year") parts.push("year=" + year);
1401
+ if (mode === "range") parts.push("from=" + from, "to=" + to);
684
1402
  if (model) parts.push("model=" + encodeURIComponent(model));
685
1403
  var query = parts.length > 0 ? "?" + parts.join("&") : "";
686
1404
 
@@ -717,14 +1435,153 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
717
1435
  };
718
1436
  }, [query, tick]);
719
1437
 
1438
+ /**
1439
+ * The config tab is the only view that needs a second endpoint, so it is
1440
+ * fetched when (and only when) that tab is open — the versions report is
1441
+ * cache-backed on the host side, so re-entering the tab is cheap.
1442
+ */
720
1443
  useEffect(function () {
721
- var el = document.getElementById("dshtu-style");
722
- if (!el) {
723
- el = document.createElement("style");
724
- el.id = "dshtu-style";
725
- el.textContent = css;
726
- document.head.appendChild(el);
727
- }
1444
+ if (tab !== "config") return undefined;
1445
+ var stopped = false;
1446
+ fetch("/dsh-token-use/config", { cache: "no-store" })
1447
+ .then(function (res) {
1448
+ if (res.status === 403) throw new Error(t("remoteDenied"));
1449
+ if (!res.ok) throw new Error("http " + res.status);
1450
+ return res.json();
1451
+ })
1452
+ .then(function (json) {
1453
+ if (!stopped) { setConfig(json); setConfigError(null); }
1454
+ })
1455
+ .catch(function (err) {
1456
+ if (!stopped) setConfigError(String(err));
1457
+ });
1458
+ return function () { stopped = true; };
1459
+ }, [tab, configTick]);
1460
+
1461
+ /**
1462
+ * The re-check button. The host caches registry answers for six hours, so a
1463
+ * plain re-entry would re-render the same numbers; `refresh=1` forces a new
1464
+ * lookup and the button reports that it is working.
1465
+ */
1466
+ var refreshConfig = function () {
1467
+ setRefreshing(true);
1468
+ fetch("/dsh-token-use/config?refresh=1", { cache: "no-store" })
1469
+ .then(function (res) {
1470
+ if (res.status === 403) throw new Error(t("remoteDenied"));
1471
+ if (!res.ok) throw new Error("http " + res.status);
1472
+ return res.json();
1473
+ })
1474
+ .then(function (json) { setConfig(json); setConfigError(null); })
1475
+ .catch(function (err) { setConfigError(String(err)); })
1476
+ .then(function () { setRefreshing(false); });
1477
+ };
1478
+
1479
+ /**
1480
+ * The self-check: one timed snapshot call, the host's harness walk, and a
1481
+ * probe of every client bundle the server published for the profile's
1482
+ * plugins. The bundle URLs are build-revisioned, so only the boot manifest
1483
+ * of *this* page can address them — hence the probe runs here.
1484
+ */
1485
+ var runHealth = function () {
1486
+ var now = function () { return typeof performance !== "undefined" ? performance.now() : Date.now(); };
1487
+ var started = now();
1488
+ setHealth({ state: "running" });
1489
+ setHarness(null);
1490
+ setBundles(null);
1491
+ fetch("/dsh-token-use" + query, { cache: "no-store" })
1492
+ .then(function (res) {
1493
+ if (!res.ok) throw new Error("http " + res.status);
1494
+ return res.json();
1495
+ })
1496
+ .then(function (json) {
1497
+ setHealth({ state: "ok", ms: Math.round(now() - started), data: json });
1498
+ })
1499
+ .catch(function (err) {
1500
+ setHealth({ state: "error", error: String(err) });
1501
+ });
1502
+ fetch("/dsh-token-use/health", { cache: "no-store" })
1503
+ .then(function (res) {
1504
+ if (!res.ok) throw new Error("http " + res.status);
1505
+ return res.json();
1506
+ })
1507
+ .then(function (json) {
1508
+ setHarness(json);
1509
+ var plugins = (json.checks || []).filter(function (check) { return check.id === "plugins"; })[0];
1510
+ var wanted = (plugins === undefined ? [] : plugins.items || []).filter(function (item) { return item.client === true; });
1511
+ var boot = typeof window === "undefined" ? null : window.__DSH_BOOT__;
1512
+ var entries = (boot === null || boot === undefined ? [] : boot.entries || []);
1513
+ setBundles(wanted.map(function (item) {
1514
+ return { name: item.name, status: "warn", detail: t("healthChecking") };
1515
+ }));
1516
+ wanted.forEach(function (item) {
1517
+ var entry = entries.filter(function (candidate) { return candidate.id === item.name; })[0];
1518
+ if (entry === undefined) {
1519
+ setBundles(function (list) { return updateRow(list, item.name, { status: "error", detail: t("bundleNoEntry") }); });
1520
+ return;
1521
+ }
1522
+ fetch(entry.url, { cache: "no-store" })
1523
+ .then(function (res) {
1524
+ if (!res.ok) throw new Error(t("bundleFailed").replace("{status}", String(res.status)));
1525
+ var detail = t("bundleOk") + sizeText(res);
1526
+ setBundles(function (list) { return updateRow(list, item.name, { status: "ok", detail: detail }); });
1527
+ })
1528
+ .catch(function (err) {
1529
+ setBundles(function (list) { return updateRow(list, item.name, { status: "error", detail: String(err && err.message ? err.message : err) }); });
1530
+ });
1531
+ });
1532
+ })
1533
+ .catch(function (err) {
1534
+ setHarness({ ok: false, checks: [], error: String(err) });
1535
+ });
1536
+ };
1537
+
1538
+ /**
1539
+ * Restart: the host answers first and runs a detached script that stops and
1540
+ * relaunches the very same command. Polling only starts once the service has
1541
+ * had time to go down (the script waits two seconds), so the first success
1542
+ * cannot be the old process answering.
1543
+ */
1544
+ var doRestart = function () {
1545
+ setConfirming(false);
1546
+ setRestart({ state: "pending" });
1547
+ fetch("/dsh-token-use/restart", { method: "POST", headers: { accept: "application/json" } })
1548
+ .then(function (res) {
1549
+ return res.json().then(function (json) {
1550
+ if (!res.ok) throw new Error(json && json.error ? json.error : "http " + res.status);
1551
+ return json;
1552
+ });
1553
+ })
1554
+ .then(function () {
1555
+ var attempts = 0;
1556
+ setTimeout(function () {
1557
+ var timer = setInterval(function () {
1558
+ attempts++;
1559
+ fetch("/dsh-token-use", { cache: "no-store" })
1560
+ .then(function (res) {
1561
+ if (!res.ok) return;
1562
+ clearInterval(timer);
1563
+ setRestart({ state: "done" });
1564
+ setTimeout(function () { location.reload(); }, 800);
1565
+ })
1566
+ .catch(function () {});
1567
+ if (attempts > 90) clearInterval(timer);
1568
+ }, 2000);
1569
+ }, 6000);
1570
+ })
1571
+ .catch(function (err) {
1572
+ setRestart({ state: "error", error: String(err) });
1573
+ });
1574
+ };
1575
+
1576
+ useEffect(function () {
1577
+ // Publish this fiber's stylesheet every mount: a hot reload replaces the
1578
+ // component, and the previous fiber's <style> would otherwise keep
1579
+ // winning because it is found by id and skipped.
1580
+ var el = document.createElement("style");
1581
+ el.id = "dshtu-style";
1582
+ el.textContent = css;
1583
+ document.head.appendChild(el);
1584
+ return function () { el.remove(); };
728
1585
  }, []);
729
1586
 
730
1587
  var switchUnit = function (next) {
@@ -749,6 +1606,8 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
749
1606
  }
750
1607
  var totals = data.totals || {};
751
1608
  var models = (data.models && data.models.length > 0 ? data.models : Object.keys(data.byModel || {}));
1609
+ // Newest year first, and always offer the current one even on an empty log.
1610
+ var years = (data.years && data.years.length > 0 ? data.years : [thisYear()]).slice().reverse();
752
1611
  var pricing = data.pricing || {};
753
1612
  setSymbol(pricing.symbol);
754
1613
  var metaParts = [];
@@ -761,35 +1620,71 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
761
1620
  }
762
1621
  metaParts.push(t("updated").replace("{time}", fmtTime(data.updatedAt)));
763
1622
  var scanState = data.scan && data.scan.error ? "error" : (data.scan && data.scan.done ? "done" : "ongoing");
764
- return h("div", { className: "dshtu_wrap" },
765
- h("div", { className: "dshtu_card" },
766
- h("div", { className: "dshtu_bar" },
767
- h("label", null, t("filterLabel")),
768
- h("span", { className: "dshtu_chips" }, chips([
769
- { value: "day", label: t("filterDay") },
770
- { value: "month", label: t("filterMonth") },
771
- { value: "all", label: t("filterAll") }
772
- ], mode, function (value) { setMode(value); setTick(tick + 1); })),
773
- mode === "day" ? h(input, { type: "date", value: day, onChange: function (event) { setDay(event.target.value); setTick(tick + 1); } }) : null,
774
- mode === "month" ? h(input, { type: "month", value: month, onChange: function (event) { setMonth(event.target.value); setTick(tick + 1); } }) : null,
775
- h("span", { className: "dshtu_field" },
776
- h("label", null, t("modelLabel")),
777
- h(ModelPicker, {
778
- t: t,
779
- model: model,
780
- models: models,
781
- onChange: function (value) { setModel(value); setTick(tick + 1); }
782
- }))),
1623
+ var rangeItems = [
1624
+ { id: "day", label: t("filterDay") },
1625
+ { id: "month", label: t("filterMonth") },
1626
+ { id: "year", label: t("filterYear") },
1627
+ { id: "range", label: t("filterRange") },
1628
+ { id: "all", label: t("filterAll") }
1629
+ ];
1630
+ /** Every view keeps the same window controls; only the tables below differ. */
1631
+ var rangeControls = [
1632
+ h("label", { key: "label" }, t("filterLabel")),
1633
+ h(Dropdown, {
1634
+ key: "mode",
1635
+ value: mode,
1636
+ items: rangeItems,
1637
+ onChange: function (value) { setMode(value); setTick(tick + 1); }
1638
+ }),
1639
+ mode === "day" ? h(input, { key: "day", type: "date", value: day, onChange: function (event) { setDay(event.target.value); setTick(tick + 1); } }) : null,
1640
+ mode === "month" ? h(input, { key: "month", type: "month", value: month, onChange: function (event) { setMonth(event.target.value); setTick(tick + 1); } }) : null,
1641
+ mode === "year" ? h(Dropdown, {
1642
+ key: "year",
1643
+ value: year,
1644
+ items: years.map(function (value) { return { id: value, label: value }; }),
1645
+ onChange: function (value) { setYear(value); setTick(tick + 1); }
1646
+ }) : null,
1647
+ mode === "range" ? h("span", { key: "range", className: "dshtu_range" },
1648
+ h(input, { type: "date", value: from, onChange: function (event) { pickSpanEnd(event.target.value, "from"); } }),
1649
+ h("em", null, "→"),
1650
+ h(input, { type: "date", value: to, onChange: function (event) { pickSpanEnd(event.target.value, "to"); } })) : null
1651
+ ];
1652
+ var modelControl = h("span", { className: "dshtu_field" },
1653
+ h("label", null, t("modelLabel")),
1654
+ h(Dropdown, {
1655
+ value: model,
1656
+ items: [{ id: "", label: t("modelAll") }].concat(models.map(function (name) {
1657
+ return { id: name, label: name };
1658
+ })),
1659
+ onChange: function (value) { setModel(value); setTick(tick + 1); }
1660
+ }));
1661
+ var projects = shortenProjects(data.byProject);
1662
+ var tabBar = h("div", { className: "dshtu_tabRow" },
1663
+ h("div", { className: "dshtu_tabs" }, [
1664
+ { id: "overview", label: t("tabOverview") },
1665
+ { id: "models", label: t("tabModels") },
1666
+ { id: "projects", label: t("tabProjects") },
1667
+ { id: "config", label: t("tabConfig") }
1668
+ ].map(function (entry) {
1669
+ return h("button", {
1670
+ key: entry.id,
1671
+ type: "button",
1672
+ "data-on": String(tab === entry.id),
1673
+ onClick: function () { switchTab(entry.id); }
1674
+ }, entry.label);
1675
+ })),
1676
+ h("label", null, t("unitLabel")),
1677
+ h("span", { className: "dshtu_chips" }, chips([
1678
+ { value: "zh", label: t("unitZh") },
1679
+ { value: "en", label: t("unitEn") }
1680
+ ], unit, switchUnit)));
1681
+ var overview = [
1682
+ h("div", { className: "dshtu_card", key: "totals" },
1683
+ h("div", { className: "dshtu_bar" }, rangeControls.concat([modelControl])),
783
1684
  h("div", { className: "dshtu_bar dshtu_subBar" },
784
1685
  h("span", { className: "dshtu_meta" },
785
1686
  iconGauge === null ? null : h("span", { className: "dshtu_metaIcon" }, h(iconGauge, {})),
786
- t("totals")),
787
- h("span", { style: { flex: "1" } }),
788
- h("label", null, t("unitLabel")),
789
- h("span", { className: "dshtu_chips" }, chips([
790
- { value: "zh", label: t("unitZh") },
791
- { value: "en", label: t("unitEn") }
792
- ], unit, switchUnit))),
1687
+ t("totals"))),
793
1688
  h("div", { className: "dshtu_grid" },
794
1689
  statBox(t, t("total"), totals.total, unit, true),
795
1690
  statBox(t, t("input"), totals.input, unit),
@@ -799,13 +1694,52 @@ window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
799
1694
  statBox(t, t("reasoning"), totals.reasoning, unit),
800
1695
  statBox(t, t("calls"), totals.calls, unit),
801
1696
  moneyBox(t, t("costTotal"), totals.cost, pricingNotes(t, data)))),
802
- h(TrendChart, { t: t, unit: unit, trend: data.trend, range: chartDays, onRange: switchDays }),
803
- table(t, t("byModel"), data.byModel, unit, undefined, modelNotes(t, data.modelPricing)),
804
- table(t, t("byDay"), data.byDay, unit),
805
- (function () {
806
- var projects = shortenProjects(data.byProject);
807
- return table(t, t("byProject"), projects.rows, unit, projects.titles);
808
- })(),
1697
+ h(TrendChart, { key: "trend", t: t, unit: unit, trend: data.trend, range: chartDays, onRange: switchDays }),
1698
+ h("div", { className: "dshtu_card", key: "heat" },
1699
+ h("div", { className: "dshtu_heatHead" },
1700
+ h("span", { className: "dshtu_cardTitle" },
1701
+ iconTrend === null ? null : h("span", { className: "dshtu_metaIcon" }, h(iconTrend, {})),
1702
+ h("b", null, t("heatmap"))),
1703
+ h("span", { className: "dshtu_meta" }, t("heatmapNote")),
1704
+ h("span", { style: { flex: "1" } }),
1705
+ heatLegend(t),
1706
+ h("span", { className: "dshtu_chips" }, chips([
1707
+ { value: "total", label: t("total") },
1708
+ { value: "cost", label: t("cost") }
1709
+ ], heatMetric, function (value) { setHeatMetric(value); }))),
1710
+ h(Heatmap, { t: t, unit: unit, trend: data.trend.days, metric: heatMetric }))
1711
+ ];
1712
+ var scoped = h("div", { className: "dshtu_card dshtu_slim" }, h("div", { className: "dshtu_bar" }, rangeControls));
1713
+ var views = tab === "overview" ? overview
1714
+ : tab === "models" ? [scoped, table(t, t("byModel"), data.byModel, unit, undefined, modelNotes(t, data.modelPricing))]
1715
+ : tab === "projects" ? [scoped, table(t, t("byProject"), projects.rows, unit, projects.titles)]
1716
+ : [h(ConfigPanel, {
1717
+ key: "config",
1718
+ t: t,
1719
+ config: config,
1720
+ error: configError,
1721
+ health: health,
1722
+ restart: restart,
1723
+ harness: harness,
1724
+ bundles: bundles,
1725
+ onHealth: runHealth,
1726
+ onRestart: function () { setConfirming(true); },
1727
+ refreshing: refreshing,
1728
+ onRefresh: refreshConfig
1729
+ })];
1730
+ return h("div", { className: "dshtu_wrap" },
1731
+ tabBar,
1732
+ views,
1733
+ modal === null ? null : h(modal, {
1734
+ open: confirming,
1735
+ onClose: function () { setConfirming(false); },
1736
+ title: t("restartTitle"),
1737
+ closeLabel: t("close"),
1738
+ footer: h("div", { className: "dshtu_modalFoot" },
1739
+ h(button, { variant: "ghost", size: "sm", onClick: function () { setConfirming(false); } }, t("restartCancel")),
1740
+ h(button, { variant: "primary", size: "sm", onClick: doRestart }, t("restartConfirm")))
1741
+ }, h("div", { className: "dshtu_modalBody" },
1742
+ t("restartBody").replace("{pid}", config === null || config.platform === undefined ? "?" : String(config.platform.pid)))),
809
1743
  h("div", { className: "dshtu_foot" },
810
1744
  stateDot === null ? null : h(stateDot, { state: scanState, size: 8 }),
811
1745
  h("span", { className: "dshtu_meta" }, metaParts.join(" · "))));