response/target/classes/static/assets/install-0badd932.js
2025-06-27 10:04:22 +08:00

36 lines
357 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var is=function(e,t){return is=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},is(e,t)};function z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");is(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zd=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Hd=function(){function e(){this.browser=new zd,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 e}(),_r=new Hd;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(_r.wxa=!0,_r.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?_r.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(_r.node=!0,_r.svgSupported=!0):Vd(navigator.userAgent,_r);function Vd(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const J=_r;var js=12,Gd="sans-serif",Mr=js+"px "+Gd,Ud=20,Yd=100,Wd="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $d(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-Ud)/Yd;t[n]=i}return t}var Xd=$d(Wd),rn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=rn.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Mr),e.measureText(r);r=r||"",n=n||Mr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||js,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=Xd[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},Dh=Ye(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),xh=Ye(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nn=Object.prototype.toString,Pa=Array.prototype,qd=Pa.forEach,Zd=Pa.filter,tu=Pa.slice,Kd=Pa.map,Yu=function(){}.constructor,oi=Yu?Yu.prototype:null,eu="__proto__",Qd=2311;function Lh(){return Qd++}function ru(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function q(e){if(e==null||typeof e!="object")return e;var t=e,r=nn.call(e);if(r==="[object Array]"){if(!Fn(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=q(e[n])}}else if(xh[r]){if(!Fn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Dh[r]&&!Fn(e)&&!os(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==eu&&(t[o]=q(e[o]))}return t}function tt(e,t,r){if(!N(t)||!N(e))return r?q(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==eu){var i=e[n],a=t[n];N(a)&&N(i)&&!k(a)&&!k(i)&&!os(a)&&!os(i)&&!Wu(a)&&!Wu(i)&&!Fn(a)&&!Fn(i)?tt(i,a,r):(r||!(n in e))&&(e[n]=q(t[n]))}return e}function Vw(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=tt(r,e[n],t);return r}function A(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==eu&&(e[r]=t[r]);return e}function ft(e,t,r){for(var n=rt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function j(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Jd(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Re(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ft(e,t,r)}function kt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===qd)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function W(e,t,r){if(!e)return[];if(!t)return iu(e);if(e.map&&e.map===Kd)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Ye(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Lt(e,t,r){if(!e)return[];if(!t)return iu(e);if(e.filter&&e.filter===Zd)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Gw(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function rt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function jd(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(tu.call(arguments)))}}var Et=oi&&Q(oi.bind)?oi.call.bind(oi.bind):jd;function nu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(tu.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):nn.call(e)==="[object Array]"}function Q(e){return typeof e=="function"}function V(e){return typeof e=="string"}function as(e){return nn.call(e)==="[object String]"}function ot(e){return typeof e=="number"}function N(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Wu(e){return!!Dh[nn.call(e)]}function Ft(e){return!!xh[nn.call(e)]}function os(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ra(e){return e.colorStops!=null}function tp(e){return e.image!=null}function Uw(e){return nn.call(e)==="[object RegExp]"}function ep(e){return e!==e}function Yw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function H(e,t){return e??t}function Hi(e,t,r){return e??t??r}function iu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return tu.apply(e,t)}function Ph(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function ye(e,t){if(!e)throw new Error(t)}function De(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Rh="__ec_primitive__";function ra(e){e[Rh]=!0}function Fn(e){return e[Rh]}var rp=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return rt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),Ih=typeof Map=="function";function np(){return Ih?new Map:new rp}var ip=function(){function e(t){var r=k(t);this.data=np();var n=this;t instanceof e?t.each(i):t&&D(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Ih?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function U(e){return new ip(e)}function ap(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Ia(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&A(r,t),r}function Ah(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Dr(e,t){return e.hasOwnProperty(t)}function Kt(){}var Vi=180/Math.PI;function an(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ww(e,t){return e[0]=t[0],e[1]=t[1],e}function op(e){return[e[0],e[1]]}function $w(e,t,r){return e[0]=t,e[1]=r,e}function $u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Xw(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function sp(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function up(e){return Math.sqrt(lp(e))}function lp(e){return e[0]*e[0]+e[1]*e[1]}function qa(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function fp(e,t){var r=up(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ss(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var us=ss;function hp(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Kr=hp;function Za(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Qr(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Wr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function $r(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ir=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),vp=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ir(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Ir(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Ir(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Ir(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ir(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ir(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const cp=vp;var dp=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,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(t),this},e}();const Se=dp;var pp=Math.log(2);function ls(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/pp);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*e[r][c]*ls(e,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function Xu(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=ls(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ls(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var qu="___zrEVENTSAVED",Ka=[];function qw(e,t,r,n,i){return fs(Ka,t,n,i,!0)&&fs(e,r,Ka[0],Ka[1])}function fs(e,t,r,n,i){if(t.getBoundingClientRect&&J.domSupported&&!Eh(t)){var a=t[qu]||(t[qu]={}),o=gp(t,a),s=_p(o,a,i);if(s)return s(e,r,n),!0}return!1}function gp(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function _p(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?Xu(s,o):Xu(o,s))}function Eh(e){return e.nodeName.toUpperCase()==="CANVAS"}var yp=/([&<>"'])/g,mp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function zt(e){return e==null?"":(e+"").replace(yp,function(t,r){return mp[r]})}var Sp=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qa=[],wp=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function hs(e,t,r,n){return r=r||{},n?Zu(e,t,r):wp&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Zu(e,t,r),r}function Zu(e,t,r){if(J.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Eh(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(fs(Qa,e,n,i)){r.zrX=Qa[0],r.zrY=Qa[1];return}}r.zrX=r.zrY=0}function au(e){return e||window.event}function jt(e,t,r){if(t=au(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&hs(e,o,t,r)}else{hs(e,t,t,r);var a=Tp(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Sp.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Tp(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function bp(e,t,r,n){e.addEventListener(t,r,n)}function Cp(e,t,r,n){e.removeEventListener(t,r,n)}var Mp=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Zw(e){return e.which===2||e.which===3}var Dp=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=hs(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Ja)if(Ja.hasOwnProperty(r)){var n=Ja[r](this._track,t);if(n)return n}},e}();function Ku(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xp(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Ja={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Ku(n)/Ku(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=xp(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jr(){return[1,0,0,1,0,0]}function Oh(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function kh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Gi(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Qu(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Lp(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function Pp(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ou(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}function Kw(e){var t=Jr();return kh(t,e),t}var Rp=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const F=Rp;var si=Math.min,ui=Math.max,Ze=new F,Ke=new F,Qe=new F,Je=new F,hn=new F,vn=new F,Ip=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=si(t.x,this.x),n=si(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ui(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ui(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Jr();return Qu(a,a,[-r.x,-r.y]),Pp(a,a,[n,i]),Qu(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(r){var v=1/0,d=0,_=Math.abs(a-u),p=Math.abs(l-i),g=Math.abs(s-f),y=Math.abs(h-o),m=Math.min(_,p),w=Math.min(g,y);a<u||l<i?m>d&&(d=m,_<p?F.set(vn,-_,0):F.set(vn,p,0)):m<v&&(v=m,_<p?F.set(hn,_,0):F.set(hn,-p,0)),s<f||h<o?w>d&&(d=w,g<y?F.set(vn,0,-g):F.set(vn,0,y)):m<v&&(v=m,g<y?F.set(hn,0,g):F.set(hn,0,-y))}return r&&F.copy(r,c?hn:vn),c},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ze.x=Qe.x=r.x,Ze.y=Je.y=r.y,Ke.x=Je.x=r.x+r.width,Ke.y=Qe.y=r.y+r.height,Ze.transform(n),Je.transform(n),Ke.transform(n),Qe.transform(n),t.x=si(Ze.x,Ke.x,Qe.x,Je.x),t.y=si(Ze.y,Ke.y,Qe.y,Je.y);var u=ui(Ze.x,Ke.x,Qe.x,Je.x),l=ui(Ze.y,Ke.y,Qe.y,Je.y);t.width=u-t.x,t.height=l-t.y},e}();const $=Ip;var Fh="silent";function Ap(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.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:Ep}}function Ep(){Mp(this.event)}var Op=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Se),cn=function(){function e(t,r){this.x=t,this.y=r}return e}(),kp=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ja=new $(0,0,0,0),Bh=function(e){z(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new cn(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Op,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new cp(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(kp,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Nh(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new cn(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new cn(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Ap(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new cn(r,n);if(Ju(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new $(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ja.copy(c.getBoundingRect()),c.transform&&ja.applyTransform(c.transform),ja.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,_=Math.PI*2,p=0;p<l;p+=v)for(var g=0;g<_;g+=d){var y=r+p*Math.cos(g),m=n+p*Math.sin(g);if(Ju(s,o,y,m,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Dp);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new cn;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Se);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Bh.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Nh(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||us(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Fp(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?Fh:!0}return!1}function Ju(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Fp(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Fh)){t.target=o;break}}}function Nh(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Bp=Bh;var zh=32,dn=7;function Np(e){for(var t=0;e>=zh;)t|=e&1,e>>=1;return e+t}function ju(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;zp(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function zp(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function tl(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function to(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function eo(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function Hp(e,t){var r=dn,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],_=i[v],p=n[v+1],g=i[v+1];i[v]=_+g,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=eo(e[p],e,d,_,0,t);d+=y,_-=y,_!==0&&(g=to(e[d+_-1],e,p,g,g-1,t),g!==0&&(_<=g?h(d,_,p,g):c(d,_,p,g)))}function h(v,d,_,p){var g=0;for(g=0;g<d;g++)o[g]=e[v+g];var y=0,m=_,w=v;if(e[w++]=e[m++],--p===0){for(g=0;g<d;g++)e[w+g]=o[y+g];return}if(d===1){for(g=0;g<p;g++)e[w+g]=e[m+g];e[w+p]=o[y];return}for(var T=r,S,M,b;;){S=0,M=0,b=!1;do if(t(e[m],o[y])<0){if(e[w++]=e[m++],M++,S=0,--p===0){b=!0;break}}else if(e[w++]=o[y++],S++,M=0,--d===1){b=!0;break}while((S|M)<T);if(b)break;do{if(S=eo(e[m],o,y,d,0,t),S!==0){for(g=0;g<S;g++)e[w+g]=o[y+g];if(w+=S,y+=S,d-=S,d<=1){b=!0;break}}if(e[w++]=e[m++],--p===0){b=!0;break}if(M=to(o[y],e,m,p,0,t),M!==0){for(g=0;g<M;g++)e[w+g]=e[m+g];if(w+=M,m+=M,p-=M,p===0){b=!0;break}}if(e[w++]=o[y++],--d===1){b=!0;break}T--}while(S>=dn||M>=dn);if(b)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[w+g]=e[m+g];e[w+p]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[w+g]=o[y+g]}}function c(v,d,_,p){var g=0;for(g=0;g<p;g++)o[g]=e[_+g];var y=v+d-1,m=p-1,w=_+p-1,T=0,S=0;if(e[w--]=e[y--],--d===0){for(T=w-(p-1),g=0;g<p;g++)e[T+g]=o[g];return}if(p===1){for(w-=d,y-=d,S=w+1,T=y+1,g=d-1;g>=0;g--)e[S+g]=e[T+g];e[w]=o[m];return}for(var M=r;;){var b=0,C=0,x=!1;do if(t(o[m],e[y])<0){if(e[w--]=e[y--],b++,C=0,--d===0){x=!0;break}}else if(e[w--]=o[m--],C++,b=0,--p===1){x=!0;break}while((b|C)<M);if(x)break;do{if(b=d-eo(o[m],e,v,d,d-1,t),b!==0){for(w-=b,y-=b,d-=b,S=w+1,T=y+1,g=b-1;g>=0;g--)e[S+g]=e[T+g];if(d===0){x=!0;break}}if(e[w--]=o[m--],--p===1){x=!0;break}if(C=p-to(e[y],o,0,p,p-1,t),C!==0){for(w-=C,m-=C,p-=C,S=w+1,T=m+1,g=0;g<C;g++)e[S+g]=o[T+g];if(p<=1){x=!0;break}}if(e[w--]=e[y--],--d===0){x=!0;break}M--}while(b>=dn||C>=dn);if(x)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),p===1){for(w-=d,y-=d,S=w+1,T=y+1,g=d-1;g>=0;g--)e[S+g]=e[T+g];e[w]=o[m]}else{if(p===0)throw new Error;for(T=w-(p-1),g=0;g<p;g++)e[T+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Ui(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<zh){a=ju(e,r,n,t),tl(e,r,n,r+a,t);return}var o=Hp(e,t),s=Np(i);do{if(a=ju(e,r,n,t),a<s){var u=i;u>s&&(u=s),tl(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ht=1,Rn=2,Ur=4,el=!1;function ro(){el||(el=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rl(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Vp=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rl}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Ui(n,rl)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=Ht),this._updateAndAddDisplayable(l,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(ro(),f.z=0),isNaN(f.z2)&&(ro(),f.z2=0),isNaN(f.zlevel)&&(ro(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=j(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Gp=Vp;var Hh;Hh=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const vs=Hh;var Yi={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Yi.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Yi.bounceIn(e*2)*.5:Yi.bounceOut(e*2-1)*.5+.5}};const Vh=Yi;var li=Math.pow,Ge=Math.sqrt,na=1e-8,Gh=1e-4,nl=Ge(3),fi=1/3,ce=an(),Zt=an(),jr=an();function He(e){return e>-na&&e<na}function Uh(e){return e>na||e<-na}function ct(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function il(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Yh(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(He(f)&&He(h))if(He(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var _=h*h-4*f*c;if(He(_)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(_>0){var y=Ge(_),m=f*s+1.5*o*(-h+y),w=f*s+1.5*o*(-h-y);m<0?m=-li(-m,fi):m=li(m,fi),w<0?w=-li(-w,fi):w=li(w,fi);var d=(-s-(m+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*Ge(f*f*f)),S=Math.acos(T)/3,M=Ge(f),b=Math.cos(S),d=(-s-2*M*b)/(3*o),g=(-s+M*(b+nl*Math.sin(S)))/(3*o),C=(-s+M*(b-nl*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function Wh(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(He(o)){if(Uh(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(He(f))i[0]=-a/(2*o);else if(f>0){var h=Ge(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function ia(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function $h(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,_,p,g;ce[0]=u,ce[1]=l;for(var y=0;y<1;y+=.05)Zt[0]=ct(e,r,i,o,y),Zt[1]=ct(t,n,a,s,y),p=Kr(ce,Zt),p<v&&(h=y,v=p);v=1/0;for(var m=0;m<32&&!(c<Gh);m++)d=h-c,_=h+c,Zt[0]=ct(e,r,i,o,d),Zt[1]=ct(t,n,a,s,d),p=Kr(Zt,ce),d>=0&&p<v?(h=d,v=p):(jr[0]=ct(e,r,i,o,_),jr[1]=ct(t,n,a,s,_),g=Kr(jr,ce),_<=1&&g<v?(h=_,v=g):c*=.5);return f&&(f[0]=ct(e,r,i,o,h),f[1]=ct(t,n,a,s,h)),Ge(v)}function Up(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,_=ct(e,r,i,o,d),p=ct(t,n,a,s,d),g=_-l,y=p-f;h+=Math.sqrt(g*g+y*y),l=_,f=p}return h}function mt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function al(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Yp(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(He(a)){if(Uh(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(He(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Ge(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Xh(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function aa(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function qh(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;ce[0]=o,ce[1]=s;for(var c=0;c<1;c+=.05){Zt[0]=mt(e,r,i,c),Zt[1]=mt(t,n,a,c);var v=Kr(ce,Zt);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Gh);d++){var _=l-f,p=l+f;Zt[0]=mt(e,r,i,_),Zt[1]=mt(t,n,a,_);var v=Kr(Zt,ce);if(_>=0&&v<h)l=_,h=v;else{jr[0]=mt(e,r,i,p),jr[1]=mt(t,n,a,p);var g=Kr(jr,ce);p<=1&&g<h?(l=p,h=g):f*=.5}}return u&&(u[0]=mt(e,r,i,l),u[1]=mt(t,n,a,l)),Ge(h)}function Wp(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=mt(e,r,i,c),d=mt(t,n,a,c),_=v-s,p=d-u;l+=Math.sqrt(_*_+p*p),s=v,u=d}return l}var $p=/cubic-bezier\(([0-9,\.e ]+)\)/;function Zh(e){var t=e&&$p.exec(e);if(t){var r=t[1].split(","),n=+De(r[0]),i=+De(r[1]),a=+De(r[2]),o=+De(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Yh(0,n,a,1,u,s)&&ct(0,i,o,1,s[0])}}}var Xp=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Q(t)?t:Vh[t]||Zh(t)},e}();const qp=Xp;var Kh=function(){function e(t){this.value=t}return e}(),Zp=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Kh(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Kp=function(){function e(t){this._list=new Zp,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Kh(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const ri=Kp;var ol={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 ie(e){return e=Math.round(e),e<0?0:e>255?255:e}function Qp(e){return e=Math.round(e),e<0?0:e>360?360:e}function $n(e){return e<0?0:e>1?1:e}function no(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ie(parseFloat(t)/100*255):ie(parseInt(t,10))}function Tr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$n(parseFloat(t)/100):$n(parseFloat(t))}function io(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ve(e,t,r){return e+(t-e)*r}function $t(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function cs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qh=new ri(20),hi=null;function Ar(e,t){hi&&cs(hi,t),hi=Qh.put(e,hi||t.slice())}function ae(e,t){if(e){t=t||[];var r=Qh.get(e);if(r)return cs(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in ol)return cs(t,ol[n]),Ar(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){$t(t,0,0,0,1);return}return $t(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ar(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){$t(t,0,0,0,1);return}return $t(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ar(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?$t(t,+l[0],+l[1],+l[2],1):$t(t,0,0,0,1);f=Tr(l.pop());case"rgb":if(l.length>=3)return $t(t,no(l[0]),no(l[1]),no(l[2]),l.length===3?f:Tr(l[3])),Ar(e,t),t;$t(t,0,0,0,1);return;case"hsla":if(l.length!==4){$t(t,0,0,0,1);return}return l[3]=Tr(l[3]),ds(l,t),Ar(e,t),t;case"hsl":if(l.length!==3){$t(t,0,0,0,1);return}return ds(l,t),Ar(e,t),t;default:return}}$t(t,0,0,0,1)}}function ds(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Tr(e[1]),i=Tr(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],$t(t,ie(io(o,a,r+1/3)*255),ie(io(o,a,r)*255),ie(io(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Jp(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function sl(e,t){var r=ae(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ni(r,r.length===4?"rgba":"rgb")}}function Qw(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return r[0]=ie(Ve(o[0],s[0],u)),r[1]=ie(Ve(o[1],s[1],u)),r[2]=ie(Ve(o[2],s[2],u)),r[3]=$n(Ve(o[3],s[3],u)),r}}function Jw(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ae(t[i]),s=ae(t[a]),u=n-i,l=ni([ie(Ve(o[0],s[0],u)),ie(Ve(o[1],s[1],u)),ie(Ve(o[2],s[2],u)),$n(Ve(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function jw(e,t,r,n){var i=ae(e);if(e)return i=Jp(i),t!=null&&(i[0]=Qp(t)),r!=null&&(i[1]=Tr(r)),n!=null&&(i[2]=Tr(n)),ni(ds(i),"rgba")}function tT(e,t){var r=ae(e);if(r&&t!=null)return r[3]=$n(t),ni(r,"rgba")}function ni(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function oa(e,t){var r=ae(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var ul=new ri(100);function ll(e){if(V(e)){var t=ul.get(e);return t||(t=sl(e,-.1),ul.put(e,t)),t}else if(Ra(e)){var r=A({},e);return r.colorStops=W(e.colorStops,function(n){return{offset:n.offset,color:sl(n.color,-.1)}}),r}return e}var sa=Math.round;function eT(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ae(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var fl=1e-4;function rT(e){return e<fl&&e>-fl}function vi(e){return sa(e*1e3)/1e3}function hl(e){return sa(e*1e4)/1e4}function nT(e){return"matrix("+vi(e[0])+","+vi(e[1])+","+vi(e[2])+","+vi(e[3])+","+hl(e[4])+","+hl(e[5])+")"}var iT={left:"start",right:"end",center:"middle",middle:"middle"};function aT(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function oT(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function sT(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function jp(e){return e&&!!e.image}function tg(e){return e&&!!e.svgElement}function uT(e){return jp(e)||tg(e)}function eg(e){return e.type==="linear"}function rg(e){return e.type==="radial"}function lT(e){return e&&(e.type==="linear"||e.type==="radial")}function fT(e){return"url(#"+e+")"}function hT(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function vT(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Vi,i=H(e.scaleX,1),a=H(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+sa(o*Vi)+"deg, "+sa(s*Vi)+"deg)"),u.join(" ")}var cT=function(){return J.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),ps=Array.prototype.slice;function Me(e,t,r){return(t-e)*r+e}function ao(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Me(t[a],r[a],n);return e}function ng(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Me(t[o][s],r[o][s],n)}return e}function ci(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function vl(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function ig(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function ag(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:ps.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Wi(e){if(kt(e)){var t=e.length;if(kt(e[0])){for(var r=[],n=0;n<t;n++)r.push(ps.call(e[n]));return r}return ps.call(e)}return e}function $i(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function og(e){return kt(e&&e[0])?2:1}var di=0,Xi=1,Jh=2,In=3,gs=4,_s=5,cl=6;function dl(e){return e===gs||e===_s}function pi(e){return e===Xi||e===Jh}var pn=[0,0,0,0],sg=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=cl,u=r;if(kt(r)){var l=og(r);s=l,(l===1&&!ot(r[0])||l===2&&!ot(r[0][0]))&&(o=!0)}else if(ot(r)&&!ep(r))s=di;else if(V(r))if(!isNaN(+r))s=di;else{var f=ae(r);f&&(u=f,s=In)}else if(Ra(r)){var h=A({},u);h.colorStops=W(r.colorStops,function(v){return{offset:v.offset,color:ae(v.color)}}),eg(r)?s=gs:rg(r)&&(s=_s),u=h}a===0?this.valType=s:(s!==this.valType||s===cl)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=Q(n)?n:Vh[n]||Zh(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(_,p){return _.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=pi(i),l=dl(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?ag(c,v,i):l&&ig(c.colorStops,v.colorStops))}if(!s&&i!==_s&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===di?n[f].additiveValue=n[f].value-d:i===In?n[f].additiveValue=ci([],n[f].value,d,-1):pi(i)&&(n[f].additiveValue=i===Xi?ci([],n[f].value,d,-1):vl([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===In,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var _=c(h+1,s-1);for(f=_;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:l?pn:t[u];if((pi(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(pi(a))a===Xi?ao(y,v[i],d[i],g):ng(y,v[i],d[i],g);else if(dl(a)){var m=v[i],w=d[i],T=a===gs;t[u]={type:T?"linear":"radial",x:Me(m.x,w.x,g),y:Me(m.y,w.y,g),colorStops:W(m.colorStops,function(M,b){var C=w.colorStops[b];return{offset:Me(M.offset,C.offset,g),color:$i(ao([],M.color,C.color,g))}}),global:w.global},T?(t[u].x2=Me(m.x2,w.x2,g),t[u].y2=Me(m.y2,w.y2,g)):t[u].r=Me(m.r,w.r,g)}else if(l)ao(y,v[i],d[i],g),n||(t[u]=$i(y));else{var S=Me(v[i],d[i],g);n?this._additiveValue=S:t[u]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===di?t[n]=t[n]+i:r===In?(ae(t[n],pn),ci(pn,pn,i,1),t[n]=$i(pn)):r===Xi?ci(t[n],t[n],i,1):r===Jh&&vl(t[n],t[n],i,1)},e}(),ug=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){ru("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,rt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new sg(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===In&&l&&(l=$i(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Wi(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Wi(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new qp({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var _=!1,p=0;p<d.length;p++)if(d[p]._clip){_=!0;break}_||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return W(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[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<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=Wi(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||rt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const su=ug;function Xr(){return new Date().getTime()}var lg=function(e){z(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.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},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Xr()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(vs(n),!r._paused&&r.update())}vs(n)},t.prototype.start=function(){this._running||(this._time=Xr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Xr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Xr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new su(r,n.loop);return this.addAnimator(i),i},t}(Se);const fg=lg;var hg=300,oo=J.domSupported,so=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=W(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),pl={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gl=!1;function ys(e){var t=e.pointerType;return t==="pen"||t==="touch"}function vg(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function uo(e){e&&(e.zrByTouch=!0)}function cg(e,t){return jt(e.dom,new dg(e,t),!0)}function jh(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var dg=function(){function e(t,r){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),te={mousedown:function(e){e=jt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=jt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=jt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=jt(this.dom,e);var t=e.toElement||e.relatedTarget;jh(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){gl=!0,e=jt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){gl||(e=jt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=jt(this.dom,e),uo(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),te.mousemove.call(this,e),te.mousedown.call(this,e)},touchmove:function(e){e=jt(this.dom,e),uo(e),this.handler.processGesture(e,"change"),te.mousemove.call(this,e)},touchend:function(e){e=jt(this.dom,e),uo(e),this.handler.processGesture(e,"end"),te.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<hg&&te.click.call(this,e)},pointerdown:function(e){te.mousedown.call(this,e)},pointermove:function(e){ys(e)||te.mousemove.call(this,e)},pointerup:function(e){te.mouseup.call(this,e)},pointerout:function(e){ys(e)||te.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){te[e]=function(t){t=jt(this.dom,t),this.trigger(e,t)}});var ms={pointermove:function(e){ys(e)||ms.mousemove.call(this,e)},pointerup:function(e){ms.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function pg(e,t){var r=t.domHandlers;J.pointerEventsSupported?D(so.pointer,function(n){qi(t,n,function(i){r[n].call(e,i)})}):(J.touchEventsSupported&&D(so.touch,function(n){qi(t,n,function(i){r[n].call(e,i),vg(t)})}),D(so.mouse,function(n){qi(t,n,function(i){i=au(i),t.touching||r[n].call(e,i)})}))}function gg(e,t){J.pointerEventsSupported?D(pl.pointer,r):J.touchEventsSupported||D(pl.mouse,r);function r(n){function i(a){a=au(a),jh(e,a.target)||(a=cg(e,a),t.domHandlers[n].call(e,a))}qi(t,n,i,{capture:!0})}}function qi(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,bp(e.domTarget,t,r,n)}function lo(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Cp(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var _l=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),_g=function(e){z(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new _l(r,te),oo&&(i._globalHandlerScope=new _l(document,ms)),pg(i,i._localHandlerScope),i}return t.prototype.dispose=function(){lo(this._localHandlerScope),oo&&lo(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,oo&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?gg(this,n):lo(n)}},t}(Se);const yg=_g;var tv=1;J.hasGlobalWindow&&(tv=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ua=tv,Ss=.4,ws="#333",Ts="#ccc",mg="#eee",yl=Oh,ml=5e-5;function je(e){return e>ml||e<-ml}var tr=[],Er=[],fo=Jr(),ho=Math.abs,Aa=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return je(this.rotation)||je(this.x)||je(this.y)||je(this.scaleX-1)||je(this.scaleY-1)||je(this.skewX)||je(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(yl(n),this.invTransform=null);return}n=n||Jr(),r?this.getLocalTransform(n):yl(n),t&&(r?Gi(n,t,n):kh(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(tr);var n=tr[0]<0?-1:1,i=tr[1]<0?-1:1,a=((tr[0]-n)*r+n)/tr[0]||0,o=((tr[1]-i)*r+i)/tr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Jr(),ou(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jr(),Gi(Er,t.invTransform,r),r=Er);var n=this.originX,i=this.originY;(n||i)&&(fo[4]=n,fo[5]=i,Gi(Er,r,fo),Er[4]-=n,Er[5]-=i,r=Er),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Qr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Qr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&ho(t[0]-1)>1e-10&&ho(t[3]-1)>1e-10?Math.sqrt(ho(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Sg(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,_=i+u;r[4]=-d*a-c*_*o,r[5]=-_*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&Lp(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Xn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sg(e,t){for(var r=0;r<Xn.length;r++){var n=Xn[r];e[n]=t[n]}}var Sl={};function Vt(e,t){t=t||Mr;var r=Sl[t];r||(r=Sl[t]=new ri(500));var n=r.get(e);return n==null&&(n=rn.measureText(e,t).width,r.put(e,n)),n}function wl(e,t,r,n){var i=Vt(e,t),a=uu(t),o=An(0,i,r),s=Yr(0,a,n),u=new $(o,s,i,a);return u}function wg(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return wl(i[0],t,r,n);for(var o=new $(0,0,0,0),s=0;s<i.length;s++){var u=wl(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function An(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Yr(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function uu(e){return Vt("国",e)}function qn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ev(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=qn(n[0],r.width),l+=qn(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var vo="__zr_normal__",co=Xn.concat(["ignore"]),Tg=Ye(Xn,function(e,t){return e[t]=!0,e},{ignore:!1}),Or={},bg=new $(0,0,0,0),lu=function(){function e(t){this.id=Lh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(r),n.position!=null){var f=bg;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Or,n,f):ev(Or,n,f),a.x=Or.x,a.y=Or.y,o=Or.align,s=Or.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=qn(h[0],f.width),v=qn(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;_&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Ht,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ts:ws},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ae(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ni(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},A(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(N(t))for(var n=t,i=rt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==vo)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,co)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(vo,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===vo,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(j(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ru("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ht),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var _=this._textContent,p=this._textGuide;_&&_.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ht)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=j(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=j(i,t),o=j(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];A(r,a),a.textConfig&&(n=n||{},A(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=A({},i?this.textConfig:n.textConfig),A(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<co.length;f++){var h=co[f],c=a&&Tg[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Aa,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),A(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ht;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new su(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=j(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){po(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){po(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=po(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ht;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Re(lu,Se);Re(lu,Aa);function po(e,t,r,n,i){r=r||{};var a=[];rv(e,"",e,t,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,_){r.during(_)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function go(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Cg(e){return kt(e[0])}function Mg(e,t,r){if(kt(t[r]))if(kt(e[r])||(e[r]=[]),Ft(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),go(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(Cg(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?go(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else go(a,i,o);a.length=i.length}else e[r]=t[r]}function Dg(e,t){return e===t||kt(e)&&kt(t)&&xg(e,t)}function xg(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function rv(e,t,r,n,i,a,o,s){for(var u=rt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!N(a),d=e.animators,_=[],p=0;p<u.length;p++){var g=u[p],y=n[g];if(y!=null&&r[g]!=null&&(v||a[g]))if(N(y)&&!kt(y)&&!Ra(y)){if(t){s||(r[g]=y,e.updateDuringAnimation(t));continue}rv(e,g,r[g],y,i,a&&a[g],o,s)}else _.push(g);else s||(r[g]=y,e.updateDuringAnimation(t),_.push(g))}var m=_.length;if(!h&&m)for(var w=0;w<d.length;w++){var T=d[w];if(T.targetName===t){var S=T.stopTracks(_);if(S){var M=j(d,T);d.splice(M,1)}}}if(i.force||(_=Lt(_,function(L){return!Dg(n[L],r[L])}),m=_.length),m>0||i.force&&!o.length){var b=void 0,C=void 0,x=void 0;if(s){C={},c&&(b={});for(var w=0;w<m;w++){var g=_[w];C[g]=r[g],c?b[g]=n[g]:r[g]=n[g]}}else if(c){x={};for(var w=0;w<m;w++){var g=_[w];x[g]=Wi(r[g]),Mg(r,n,g)}}var T=new su(r,!1,!1,h?Lt(d,function(P){return P.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),c&&b&&T.whenWithKeys(0,b,_),x&&T.whenWithKeys(0,x,_),T.whenWithKeys(l??500,s?C:n,_).delay(f||0),e.addAnimator(T,t),o.push(T)}}const nv=lu;var iv=function(e){z(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=j(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=j(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new $(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?($.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t}(nv);iv.prototype.type="group";const ii=iv;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Zi={},av={};function Lg(e){delete av[e]}function Pg(e){if(!e)return!1;if(typeof e=="string")return oa(e,1)<Ss;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=oa(t[i].color,1);return r/=n,r<Ss}return!1}var Rg=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new Gp,o=n.renderer||"canvas";Zi[o]||(o=rt(Zi)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Zi[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!J.node&&!J.worker&&!u?new yg(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?J.touchEventsSupported:!!f,c=44,v;h&&(v=H(n.pointerSize,c)),this.handler=new Bp(a,s,l,s.root,v),this.animation=new fg({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Pg(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Xr();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Xr();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof ii&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,Lg(this.id))},e}();function Tl(e,t){var r=new Rg(Lh(),e,t);return av[r.id]=r,r}function Ig(e,t){Zi[e]=t}var bs;function dT(e){if(typeof bs=="function")return bs(e)}function Ag(e){bs=e}var bl=1e-4,ov=20;function Eg(e){return e.replace(/^\s+|\s+$/g,"")}function pT(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}function Pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return V(e)?Eg(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Cs(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),ov),e=(+e).toFixed(t),r?e:+e}function gT(e){return e.sort(function(t,r){return t-r}),e}function qr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Og(e)}function Og(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function _T(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function yT(e,t){var r=Ye(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=W(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=W(i,function(v){return Math.floor(v)}),s=Ye(o,function(v,d){return v+d},0),u=W(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return W(o,function(v){return v/n})}function kg(e,t){var r=Math.max(qr(e),qr(t)),n=e+t;return r>ov?n:Cs(n,r)}var mT=9007199254740991;function ST(e){var t=Math.PI*2;return(e%t+t)%t}function wT(e){return e>-bl&&e<bl}var Fg=/^(?:(\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 on(e){if(e instanceof Date)return e;if(V(e)){var t=Fg.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function TT(e){return Math.pow(10,sv(e))}function sv(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function bT(e,t){var r=sv(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function CT(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function MT(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function We(e){var t=parseFloat(e);return t==e&&(t!==0||!V(e)||e.indexOf("x")<=0)?t:NaN}function Bg(e){return!isNaN(We(e))}function uv(){return Math.round(Math.random()*9)}function lv(e,t){return t===0?e:lv(t,e%t)}function Cl(e,t){return e==null?t:t==null?e:e*t/lv(e,t)}var Ng="[ECharts] ",Ml={},zg=typeof console<"u"&&console.warn&&console.log;function Hg(e,t,r){if(zg){if(r){if(Ml[t])return;Ml[t]=!0}console[e](Ng+t)}}function DT(e,t){Hg("warn",e,t)}function Rt(e){throw new Error(e)}function Dl(e,t,r){return(t-e)*r+e}var fv="series\0",hv="\0_ec_\0";function pt(e){return e instanceof Array?e:e==null?[]:[e]}function xl(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Ll=["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 Ea(e){return N(e)&&!k(e)&&!(e instanceof Date)?e.value:e}function Vg(e){return N(e)&&!(e instanceof Array)}function Gg(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=U();D(t,function(u,l){if(!N(u)){t[l]=null;return}});var s=Ug(e,o,r);return(n||i)&&Yg(s,e,o,t),n&&Wg(s,t),n||i?$g(s,t,i):a&&Xg(s,t),qg(s),s}function Ug(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Zn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Yg(e,t,r,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=Bn(i.id),s=r.get(o);if(s!=null){var u=e[s];ye(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function Wg(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Zn(r)&&!Zn(a)&&vv("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function $g(e,t,r){D(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Zn(i.existing)||i.existing&&n.id!=null&&!vv("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Xg(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function qg(e){var t=U();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;ye(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(N(a)){if(o.name=a.name!=null?Bn(a.name):i?i.name:fv+n,i)o.id=Bn(i.id);else if(a.id!=null)o.id=Bn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function vv(e,t,r){var n=oe(t[e],null),i=oe(r[e],null);return n!=null&&i!=null&&n===i}function Bn(e){return oe(e,"")}function oe(e,t){return e==null?t:V(e)?e:ot(e)||as(e)?e+"":t}function cv(e){var t=e.name;return!!(t&&t.indexOf(fv))}function Zn(e){return e&&e.id!=null&&Bn(e.id).indexOf(hv)===0}function xT(e){return hv+e}function Zg(e,t,r){D(e,function(n){var i=n.newOption;N(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Kg(t,i,n.existing,r))})}function Kg(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function LT(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=oe(o[l].seriesId,null);if(h==null)return;for(var c=pt(o[l].dataIndex),v=u&&u[h],d=0,_=c.length;d<_;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[p]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Oa(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?W(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?W(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function gt(){var e="__ec_inner_"+Qg++;return function(t){return t[e]||(t[e]={})}}var Qg=uv();function _o(e,t,r){var n=dv(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=ka(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function dv(e,t){var r;if(V(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=U(),a={},o=!1;return D(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&j(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fu={useDefault:!0,enableAll:!1,enableNone:!1},PT={useDefault:!1,enableAll:!0,enableNone:!0};function ka(e,t,r,n){n=n||fu;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(ye(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(ye(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function pv(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Jg(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function RT(e){return e==="auto"?J.domSupported?"html":"richText":e||"html"}function IT(e,t){var r=U(),n=[];return D(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function jg(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ot(n)){var o=Dl(r||0,n,i);return Cs(o,a?Math.max(qr(r||0),qr(n)):t)}else{if(V(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=Dl(v,d,i);s[h]=Cs(o,a?Math.max(qr(v),qr(d)):t)}}return s}}var t_=".",er="___EC__COMPONENT__CONTAINER___",gv="___EC__EXTENDED_CLASS___";function pe(e){var t={main:"",sub:""};if(e){var r=e.split(t_);t.main=r[0]||"",t.sub=r[1]||""}return t}function e_(e){ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function r_(e){return!!(e&&e[gv])}function hu(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return n_(n)?i=function(a){z(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Jd(i,this)),A(i.prototype,r),i[gv]=!0,i.extend=this.extend,i.superCall=o_,i.superApply=s_,i.superClass=n,i}}function n_(e){return Q(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function _v(e,t){e.extend=t.extend}var i_=Math.round(Math.random()*10);function a_(e){var t=["__\0is_clz",i_++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function o_(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function s_(e,t,r){return this.superClass.prototype[t].apply(e,r)}function vu(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){e_(i),n.prototype.type=i;var a=pe(i);if(!a.sub)t[a.main]=n;else if(a.sub!==er){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[er]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=pe(n),a=[],o=t[i.main];return o&&o[er]?D(o,function(s,u){u!==er&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=pe(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=pe(n),a=t[i.main];return a&&a[er]};function r(n){var i=t[n.main];return(!i||!i[er])&&(i=t[n.main]={},i[er]=!0),i}}function Kn(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&&j(i,u)>=0||a&&j(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var u_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],l_=Kn(u_),f_=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return l_(this,t,r)},e}(),Ms=new ri(50);function h_(e){if(typeof e=="string"){var t=Ms.get(e);return t&&t.image}else return e}function yv(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Ms.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Fa(t)&&a.pending.push(o)):(t=rn.loadImage(e,Pl,Pl),t.__zrImageSrc=e,Ms.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Pl(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Fa(e){return e&&e.width&&e.height}var yo=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function v_(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
`);i=mv(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=Sv(a[o],i);return a.join(`
`)}function mv(e,t,r,n){n=n||{};var i=A({},n);i.font=t,r=H(r,"..."),i.maxIterations=H(n.maxIterations,2);var a=i.minChar=H(n.minChar,0);i.cnCharWidth=Vt("国",t);var o=i.ascCharWidth=Vt("a",t);i.placeholder=H(n.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<a&&s>=o;u++)s-=o;var l=Vt(r,t);return l>s&&(r="",l=0),s=e-l,i.ellipsis=r,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Sv(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Vt(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?c_(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Vt(e,n)}return e===""&&(e=t.placeholder),e}function c_(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function d_(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=uu(i),s=H(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(r==="break"||r==="breakAll")?h=e?wv(e,t.font,f,r==="breakAll",0).lines:[]:h=e?e.split(`
`):[];var c=h.length*s,v=H(t.height,c);if(c>v&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(e&&a&&f!=null)for(var _=mv(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=Sv(h[p],_);for(var g=v,y=0,p=0;p<h.length;p++)y=Math.max(Vt(h[p],i),y);f==null&&(f=y);var m=y;return n&&(g+=n[0]+n[2],m+=n[1]+n[3],f+=n[1]+n[3]),u&&(m=f),{lines:h,height:v,outerWidth:m,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:c,width:f}}var p_=function(){function e(){}return e}(),Rl=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),g_=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function __(e,t){var r=new g_;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=yo.lastIndex=0,u;(u=yo.exec(e))!=null;){var l=u.index;l>s&&mo(r,e.substring(s,l),t,o),mo(r,u[2],t,o,u[1]),s=yo.lastIndex}s<e.length&&mo(r,e.substring(s,e.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",_=t.lineOverflow==="truncate";function p(it,K,st){it.width=K,it.lineHeight=st,h+=st,c=Math.max(c,K)}t:for(var g=0;g<r.lines.length;g++){for(var y=r.lines[g],m=0,w=0,T=0;T<y.tokens.length;T++){var S=y.tokens[T],M=S.styleName&&t.rich[S.styleName]||{},b=S.textPadding=M.padding,C=b?b[1]+b[3]:0,x=S.font=M.font||t.font;S.contentHeight=uu(x);var L=H(M.height,S.contentHeight);if(S.innerHeight=L,b&&(L+=b[0]+b[2]),S.height=L,S.lineHeight=Hi(M.lineHeight,t.lineHeight,L),S.align=M&&M.align||t.align,S.verticalAlign=M&&M.verticalAlign||"middle",_&&i!=null&&h+S.lineHeight>i){T>0?(y.tokens=y.tokens.slice(0,T),p(y,w,m),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break t}var P=M.width,I=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")S.percentWidth=P,f.push(S),S.contentWidth=Vt(S.text,x);else{if(I){var R=M.backgroundColor,O=R&&R.image;O&&(O=h_(O),Fa(O)&&(S.width=Math.max(S.width,O.width*L/O.height)))}var E=d&&n!=null?n-w:null;E!=null&&E<S.width?!I||E<C?(S.text="",S.width=S.contentWidth=0):(S.text=v_(S.text,E-C,x,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Vt(S.text,x)):S.contentWidth=Vt(S.text,x)}S.width+=C,w+=S.width,M&&(m=Math.max(m,S.lineHeight))}p(y,w,m)}r.outerWidth=r.width=H(n,c),r.outerHeight=r.height=H(i,h),r.contentHeight=h,r.contentWidth=c,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var g=0;g<f.length;g++){var S=f[g],nt=S.percentWidth;S.width=parseInt(nt,10)/100*r.width}return r}function mo(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=qn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var _=wv(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=_.accumWidth+v,h=_.linesWidths,f=_.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var g=f[p],y=new p_;if(y.styleName=i,y.text=g,y.isLineHolder=!g&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[p]:Vt(g,u),!p&&!l){var m=(s[s.length-1]||(s[0]=new Rl)).tokens,w=m.length;w===1&&m[0].isLineHolder?m[0]=y:(g||!w||a)&&m.push(y)}else s.push(new Rl([y]))}}function y_(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var m_=Ye(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function S_(e){return y_(e)?!!m_[e]:!0}function wv(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<e.length;h++){var c=e.charAt(h);if(c===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=Vt(c,t),d=n?!1:!S_(c);if(a.length?f+v>r:i+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Ds="__zr_style_"+Math.round(Math.random()*10),br={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ba={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};br[Ds]=!0;var Il=["z","z2","invisible"],w_=["invisible"],T_=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=rt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&b_(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new $(0,0,0,0)),n?$.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new $(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:A(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Rn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Rn)},t.prototype.styleUpdated=function(){this.__dirty&=~Rn},t.prototype.createStyle=function(r){return Ia(br,r)},t.prototype.useStyle=function(r){r[Ds]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Ds]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Il)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=rt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=rt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var _=this.__inHover?w_:Il,c=0;c<_.length;c++){var v=_[c];n&&n[v]!=null?this[v]=n[v]:u&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return A(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ba},t.initDefaultProps=function(){var r=t.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=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ht|Rn}(),t}(nv),So=new $(0,0,0,0),wo=new $(0,0,0,0);function b_(e,t,r){return So.copy(e.getBoundingRect()),e.transform&&So.applyTransform(e.transform),wo.width=t,wo.height=r,!So.intersect(wo)}const ai=T_;var It=Math.min,At=Math.max,To=Math.sin,bo=Math.cos,rr=Math.PI*2,gi=an(),_i=an(),yi=an();function AT(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],u=1;u<e.length;u++)n=e[u],i=It(i,n[0]),a=At(a,n[0]),o=It(o,n[1]),s=At(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function Al(e,t,r,n,i,a){i[0]=It(e,r),i[1]=It(t,n),a[0]=At(e,r),a[1]=At(t,n)}var El=[],Ol=[];function C_(e,t,r,n,i,a,o,s,u,l){var f=Wh,h=ct,c=f(e,r,i,o,El);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,i,o,El[v]);u[0]=It(d,u[0]),l[0]=At(d,l[0])}c=f(t,n,a,s,Ol);for(var v=0;v<c;v++){var _=h(t,n,a,s,Ol[v]);u[1]=It(_,u[1]),l[1]=At(_,l[1])}u[0]=It(e,u[0]),l[0]=At(e,l[0]),u[0]=It(o,u[0]),l[0]=At(o,l[0]),u[1]=It(t,u[1]),l[1]=At(t,l[1]),u[1]=It(s,u[1]),l[1]=At(s,l[1])}function M_(e,t,r,n,i,a,o,s){var u=Xh,l=mt,f=At(It(u(e,r,i),1),0),h=At(It(u(t,n,a),1),0),c=l(e,r,i,f),v=l(t,n,a,h);o[0]=It(e,i,c),o[1]=It(t,a,v),s[0]=At(e,i,c),s[1]=At(t,a,v)}function D_(e,t,r,n,i,a,o,s,u){var l=Wr,f=$r,h=Math.abs(i-a);if(h%rr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(gi[0]=bo(i)*r+e,gi[1]=To(i)*n+t,_i[0]=bo(a)*r+e,_i[1]=To(a)*n+t,l(s,gi,_i),f(u,gi,_i),i=i%rr,i<0&&(i=i+rr),a=a%rr,a<0&&(a=a+rr),i>a&&!o?a+=rr:i<a&&o&&(i+=rr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(yi[0]=bo(v)*r+e,yi[1]=To(v)*n+t,l(s,yi,s),f(u,yi,u))}var Y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},nr=[],ir=[],le=[],Ee=[],fe=[],he=[],Co=Math.min,Mo=Math.max,ar=Math.cos,or=Math.sin,be=Math.abs,xs=Math.PI,ze=xs*2,Do=typeof Float32Array<"u",gn=[];function xo(e){var t=Math.round(e/xs*1e8)/1e8;return t%2*xs}function x_(e,t){var r=xo(e[0]);r<0&&(r+=ze);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=ze?i=r+ze:t&&r-i>=ze?i=r-ze:!t&&r>i?i=r+(ze-xo(r-i)):t&&r<i&&(i=r-(ze-xo(i-r))),e[0]=r,e[1]=i}var L_=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=be(n/ua/t)||0,this._uy=be(n/ua/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Y.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=be(t-this._xi),i=be(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Y.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Y.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Y.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),gn[0]=i,gn[1]=a,x_(gn,o),i=gn[0],a=gn[1];var s=a-i;return this.addData(Y.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=ar(a)*n+t,this._yi=or(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Y.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Y.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Do&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Do&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Do&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){le[0]=le[1]=fe[0]=fe[1]=Number.MAX_VALUE,Ee[0]=Ee[1]=he[0]=he[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case Y.M:r=i=t[o++],n=a=t[o++],fe[0]=i,fe[1]=a,he[0]=i,he[1]=a;break;case Y.L:Al(r,n,t[o],t[o+1],fe,he),r=t[o++],n=t[o++];break;case Y.C:C_(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],fe,he),r=t[o++],n=t[o++];break;case Y.Q:M_(r,n,t[o++],t[o++],t[o],t[o+1],fe,he),r=t[o++],n=t[o++];break;case Y.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var _=!t[o++];u&&(i=ar(v)*h+l,a=or(v)*c+f),D_(l,f,h,c,v,d,_,fe,he),r=ar(d)*h+l,n=or(d)*c+f;break;case Y.R:i=r=t[o++],a=n=t[o++];var p=t[o++],g=t[o++];Al(i,a,i+p,a+g,fe,he);break;case Y.Z:r=i,n=a;break}Wr(le,le,fe),$r(Ee,Ee,he)}return o===0&&(le[0]=le[1]=Ee[0]=Ee[1]=0),new $(le[0],le[1],Ee[0]-le[0],Ee[1]-le[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var _=-1;switch(v){case Y.M:a=s=t[c++],o=u=t[c++];break;case Y.L:{var p=t[c++],g=t[c++],y=p-a,m=g-o;(be(y)>n||be(m)>i||c===r-1)&&(_=Math.sqrt(y*y+m*m),a=p,o=g);break}case Y.C:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++],S=t[c++],M=t[c++];_=Up(a,o,w,T,p,g,S,M,10),a=S,o=M;break}case Y.Q:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++];_=Wp(a,o,w,T,p,g,10),a=p,o=g;break}case Y.A:var b=t[c++],C=t[c++],x=t[c++],L=t[c++],P=t[c++],I=t[c++],R=I+P;c+=1,d&&(s=ar(P)*x+b,u=or(P)*L+C),_=Mo(x,L)*Co(ze,Math.abs(I)),a=ar(R)*x+b,o=or(R)*L+C;break;case Y.R:{s=a=t[c++],u=o=t[c++];var O=t[c++],E=t[c++];_=O*2+E*2;break}case Y.Z:{var y=s-a,m=u-o;_=Math.sqrt(y*y+m*m),a=s,o=u;break}}_>=0&&(l[h++]=_,f+=_)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,_,p=0,g=0,y,m=0,w,T;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,_=this._pathLen,y=r*_,!y))return;t:for(var S=0;S<o;){var M=n[S++],b=S===1;switch(b&&(l=n[S],f=n[S+1],s=l,u=f),M!==Y.L&&m>0&&(t.lineTo(w,T),m=0),M){case Y.M:s=l=n[S++],u=f=n[S++],t.moveTo(l,f);break;case Y.L:{h=n[S++],c=n[S++];var C=be(h-l),x=be(c-f);if(C>i||x>a){if(v){var L=d[g++];if(p+L>y){var P=(y-p)/L;t.lineTo(l*(1-P)+h*P,f*(1-P)+c*P);break t}p+=L}t.lineTo(h,c),l=h,f=c,m=0}else{var I=C*C+x*x;I>m&&(w=h,T=c,m=I)}break}case Y.C:{var R=n[S++],O=n[S++],E=n[S++],nt=n[S++],it=n[S++],K=n[S++];if(v){var L=d[g++];if(p+L>y){var P=(y-p)/L;ia(l,R,E,it,P,nr),ia(f,O,nt,K,P,ir),t.bezierCurveTo(nr[1],ir[1],nr[2],ir[2],nr[3],ir[3]);break t}p+=L}t.bezierCurveTo(R,O,E,nt,it,K),l=it,f=K;break}case Y.Q:{var R=n[S++],O=n[S++],E=n[S++],nt=n[S++];if(v){var L=d[g++];if(p+L>y){var P=(y-p)/L;aa(l,R,E,P,nr),aa(f,O,nt,P,ir),t.quadraticCurveTo(nr[1],ir[1],nr[2],ir[2]);break t}p+=L}t.quadraticCurveTo(R,O,E,nt),l=E,f=nt;break}case Y.A:var st=n[S++],Gt=n[S++],ut=n[S++],Ut=n[S++],Yt=n[S++],Ae=n[S++],$e=n[S++],Xe=!n[S++],Rr=ut>Ut?ut:Ut,Nt=be(ut-Ut)>.001,ht=Yt+Ae,B=!1;if(v){var L=d[g++];p+L>y&&(ht=Yt+Ae*(y-p)/L,B=!0),p+=L}if(Nt&&t.ellipse?t.ellipse(st,Gt,ut,Ut,$e,Yt,ht,Xe):t.arc(st,Gt,Rr,Yt,ht,Xe),B)break t;b&&(s=ar(Yt)*ut+st,u=or(Yt)*Ut+Gt),l=ar(ht)*ut+st,f=or(ht)*Ut+Gt;break;case Y.R:s=l=n[S],u=f=n[S+1],h=n[S++],c=n[S++];var G=n[S++],qe=n[S++];if(v){var L=d[g++];if(p+L>y){var wt=y-p;t.moveTo(h,c),t.lineTo(h+Co(wt,G),c),wt-=G,wt>0&&t.lineTo(h+G,c+Co(wt,qe)),wt-=qe,wt>0&&t.lineTo(h+Mo(G-wt,0),c+qe),wt-=G,wt>0&&t.lineTo(h,c+Mo(qe-wt,0));break t}p+=L}t.rect(h,c,G,qe);break;case Y.Z:if(v){var L=d[g++];if(p+L>y){var P=(y-p)/L;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}p+=L}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Y,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const xr=L_;function kr(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function P_(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var c=$h(e,t,r,n,i,a,o,s,l,f,null);return c<=h/2}function R_(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=qh(e,t,r,n,i,a,s,u,null);return f<=l/2}var kl=Math.PI*2;function xe(e){return e%=kl,e<0&&(e+=kl),e}var _n=Math.PI*2;function I_(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%_n<1e-4)return!0;if(a){var h=n;n=xe(i),i=xe(h)}else n=xe(n),i=xe(i);n>i&&(i+=_n);var c=Math.atan2(u,s);return c<0&&(c+=_n),c>=n&&c<=i||c+_n>=n&&c+_n<=i}function sr(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var Oe=xr.CMD,ur=Math.PI*2,A_=1e-4;function E_(e,t){return Math.abs(e-t)<A_}var Ct=[-1,-1,-1],qt=[-1,-1];function O_(){var e=qt[0];qt[0]=qt[1],qt[1]=e}function k_(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=Yh(t,n,a,s,l,Ct);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,_=0;_<f;_++){var p=Ct[_],g=p===0||p===1?.5:1,y=ct(e,r,i,o,p);y<u||(c<0&&(c=Wh(t,n,a,s,qt),qt[1]<qt[0]&&c>1&&O_(),v=ct(t,n,a,s,qt[0]),c>1&&(d=ct(t,n,a,s,qt[1]))),c===2?p<qt[0]?h+=v<t?g:-g:p<qt[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<qt[0]?h+=v<t?g:-g:h+=s<v?g:-g)}return h}function F_(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=Yp(t,n,a,s,Ct);if(u===0)return 0;var l=Xh(t,n,a);if(l>=0&&l<=1){for(var f=0,h=mt(t,n,a,l),c=0;c<u;c++){var v=Ct[c]===0||Ct[c]===1?.5:1,d=mt(e,r,i,Ct[c]);d<o||(Ct[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Ct[0]===0||Ct[0]===1?.5:1,d=mt(e,r,i,Ct[0]);return d<o?0:a<t?v:-v}}function B_(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ct[0]=-u,Ct[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=ur-1e-4){n=0,i=ur;var f=a?1:-1;return o>=Ct[0]+e&&o<=Ct[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=ur,i+=ur);for(var c=0,v=0;v<2;v++){var d=Ct[v];if(d+e>o){var _=Math.atan2(s,d),f=a?1:-1;_<0&&(_=ur+_),(_>=n&&_<=i||_+ur>=n&&_+ur<=i)&&(_>Math.PI/2&&_<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Tv(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var _=a[d++],p=d===1;switch(_===Oe.M&&d>1&&(r||(s+=sr(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),_){case Oe.M:f=a[d++],h=a[d++],u=f,l=h;break;case Oe.L:if(r){if(kr(u,l,a[d],a[d+1],t,n,i))return!0}else s+=sr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Oe.C:if(r){if(P_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=k_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Oe.Q:if(r){if(R_(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=F_(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Oe.A:var g=a[d++],y=a[d++],m=a[d++],w=a[d++],T=a[d++],S=a[d++];d+=1;var M=!!(1-a[d++]);c=Math.cos(T)*m+g,v=Math.sin(T)*w+y,p?(f=c,h=v):s+=sr(u,l,c,v,n,i);var b=(n-g)*w/m+g;if(r){if(I_(g,y,w,T,T+S,M,t,b,i))return!0}else s+=B_(g,y,w,T,T+S,M,b,i);u=Math.cos(T+S)*m+g,l=Math.sin(T+S)*w+y;break;case Oe.R:f=u=a[d++],h=l=a[d++];var C=a[d++],x=a[d++];if(c=f+C,v=h+x,r){if(kr(f,h,c,h,t,n,i)||kr(c,h,c,v,t,n,i)||kr(c,v,f,v,t,n,i)||kr(f,v,f,h,t,n,i))return!0}else s+=sr(c,h,c,v,n,i),s+=sr(f,v,f,h,n,i);break;case Oe.Z:if(r){if(kr(u,l,f,h,t,n,i))return!0}else s+=sr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!E_(l,h)&&(s+=sr(u,l,f,h,n,i)||0),s!==0}function N_(e,t,r){return Tv(e,0,!1,t,r)}function z_(e,t,r,n){return Tv(e,t,!0,r,n)}var bv=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},br),H_={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ba.style)},Lo=Xn.concat(["invisible","culling","z","z2","zlevel","parent"]),V_=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Lo.length;++s)i[Lo[s]]=this[Lo[s]];i.__dirty|=Ht}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=rt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?A(this.style,s):this.useStyle(s):o==="shape"?A(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(V(r)){var n=oa(r,0);return n>.5?ws:n>.2?mg:Ts}else if(r)return Ts}return ws},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(V(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=oa(r,0)<Ss;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ur},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new xr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ur)&&(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||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),z_(s,u/l,r,n)))return!0}if(this.hasFill())return N_(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ur,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:A(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ur)},t.prototype.createStyle=function(r){return Ia(bv,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=A({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=A({},i.shape),A(l,n.shape)):(l=A({},a?this.shape:i.shape),A(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=A({},this.shape);for(var f={},h=rt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return H_},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){z(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return q(r.style)},o.prototype.getDefaultShape=function(){return q(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ht|Rn|Ur}(),t}(ai);const Z=V_;var G_=ft({strokeFirst:!0,font:Mr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},bv),Cv=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Ia(G_,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=wg(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ai);Cv.prototype.type="tspan";const Ls=Cv;var U_=ft({x:0,y:0},br),Y_={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ba.style)};function W_(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mv=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Ia(U_,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=W_(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Y_},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new $(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ai);Mv.prototype.type="image";const sn=Mv;function $_(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Zr=Math.round;function Dv(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Zr(n*2)===Zr(i*2)&&(e.x1=e.x2=yr(n,s,!0)),Zr(a*2)===Zr(o*2)&&(e.y1=e.y2=yr(a,s,!0))),e}}function xv(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=yr(n,s,!0),e.y=yr(i,s,!0),e.width=Math.max(yr(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(yr(i+o,s,!1)-e.y,o===0?0:1)),e}}function yr(e,t,r){if(!t)return e;var n=Zr(e*2);return(n+Zr(t))%2===0?n/2:(n+(r?1:-1))/2}var X_=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),q_={},Lv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new X_},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=xv(q_,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?$_(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Z);Lv.prototype.type="rect";const Le=Lv;var Fl={fill:"#000"},Bl=2,Z_={style:ft({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},Ba.style)},Pv=function(e){z(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Fl,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,t0(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new $(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Fl},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return A(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=rt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},A(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Z_},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Mr,i=r.padding,a=Yl(r),o=d_(a,r),s=Po(r),u=!!r.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,_=r.x||0,p=r.y||0,g=r.align||d.align||"left",y=r.verticalAlign||d.verticalAlign||"top",m=_,w=Yr(p,o.contentHeight,y);if(s||i){var T=An(_,f,g),S=Yr(p,l,y);s&&this._renderBackground(r,r,T,S,f,l)}w+=v/2,i&&(m=Ul(_,g,i),y==="top"?w+=i[0]:y==="bottom"&&(w-=i[2]));for(var M=0,b=!1,C=Gl("fill"in r?r.fill:(b=!0,d.fill)),x=Vl("stroke"in r?r.stroke:!u&&(!d.autoStroke||b)?(M=Bl,d.stroke):null),L=r.textShadowBlur>0,P=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,R=0;R<c.length;R++){var O=this._getOrCreateChild(Ls),E=O.createStyle();O.useStyle(E),E.text=c[R],E.x=m,E.y=w,g&&(E.textAlign=g),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,L&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=x,E.fill=C,x&&(E.lineWidth=r.lineWidth||M,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,zl(E,r),w+=v,P&&O.setBoundingRect(new $(An(E.x,r.width,E.textAlign),Yr(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Yl(r),i=__(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,u=r.padding,l=r.x||0,f=r.y||0,h=this._defaultStyle,c=r.align||h.align,v=r.verticalAlign||h.verticalAlign,d=An(l,o,c),_=Yr(f,s,v),p=d,g=_;u&&(p+=u[3],g+=u[0]);var y=p+a;Po(r)&&this._renderBackground(r,r,d,_,o,s);for(var m=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var T=i.lines[w],S=T.tokens,M=S.length,b=T.lineHeight,C=T.width,x=0,L=p,P=y,I=M-1,R=void 0;x<M&&(R=S[x],!R.align||R.align==="left");)this._placeToken(R,r,b,g,L,"left",m),C-=R.width,L+=R.width,x++;for(;I>=0&&(R=S[I],R.align==="right");)this._placeToken(R,r,b,g,P,"right",m),C-=R.width,P-=R.width,I--;for(L+=(a-(L-p)-(y-P)-C)/2;x<=I;)R=S[x],this._placeToken(R,r,b,g,L+R.width/2,"center",m),L+=R.width,x++;g+=b}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&Po(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Ul(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var _=this._getOrCreateChild(Ls),p=_.createStyle();_.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=Gl("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),T=Vl("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!g.autoStroke||y)?(m=Bl,g.stroke):null),S=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,S&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Mr,p.opacity=Hi(l.opacity,n.opacity,1),zl(p,l),T&&(p.lineWidth=Hi(l.lineWidth,n.lineWidth,m),p.lineDash=H(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=T),w&&(p.fill=w);var M=r.contentWidth,b=r.contentHeight;_.setBoundingRect(new $(An(p.x,M,p.textAlign),Yr(p.y,b,p.textBaseline),M,b))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,_,p;if(c||r.lineHeight||l&&f){_=this._getOrCreateChild(Le),_.useStyle(_.createStyle()),_.style.fill=null;var g=_.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,_.dirtyShape()}if(c){var y=_.style;y.fill=u||null,y.fillOpacity=H(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(sn),p.onload=function(){d.dirtyStyle()};var m=p.style;m.image=u.image,m.x=i,m.y=a,m.width=o,m.height=s}if(l&&f){var y=_.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=H(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(_||p).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Hi(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return j_(r)&&(n=[r.fontStyle,r.fontWeight,J_(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&De(n)||r.textFont||r.font},t}(ai),K_={left:!0,right:1,center:1},Q_={top:1,bottom:1,middle:1},Nl=["fontStyle","fontWeight","fontSize","fontFamily"];function J_(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?js+"px":e+"px"}function zl(e,t){for(var r=0;r<Nl.length;r++){var n=Nl[r],i=t[n];i!=null&&(e[n]=i)}}function j_(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function t0(e){return Hl(e),D(e.rich,Hl),e}function Hl(e){if(e){e.font=Pv.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||K_[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Q_[r]?r:"top";var n=e.padding;n&&(e.padding=Ph(e.padding))}}function Vl(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Gl(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Ul(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Yl(e){var t=e.text;return t!=null&&(t+=""),t}function Po(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Qn=Pv;var dt=gt(),e0=function(e,t,r,n){if(n){var i=dt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=dt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Wl=1,$l={},Rv=gt(),cu=gt(),du=0,Na=1,za=2,me=["emphasis","blur","select"],la=["normal","emphasis","blur","select"],r0=10,n0=9,Cr="highlight",Ki="downplay",Nn="select",Qi="unselect",zn="toggleSelect";function Fr(e){return e!=null&&e!=="none"}function Ha(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Iv(e){Ha(e,"emphasis",za)}function Av(e){e.hoverState===za&&Ha(e,"normal",du)}function pu(e){Ha(e,"blur",Na)}function Ev(e){e.hoverState===Na&&Ha(e,"normal",du)}function i0(e){e.selected=!0}function a0(e){e.selected=!1}function Xl(e,t,r){t(e,r)}function Ie(e,t,r){Xl(e,t,r),e.isGroup&&e.traverse(function(n){Xl(n,t,r)})}function ET(e,t){switch(t){case"emphasis":e.hoverState=za;break;case"normal":e.hoverState=du;break;case"blur":e.hoverState=Na;break;case"select":e.selected=!0}}function o0(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function s0(e,t,r,n){var i=r&&j(r,"select")>=0,a=!1;if(e instanceof Z){var o=Rv(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Fr(s)||Fr(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=A({},n),l=A({},l),l.fill=s):!Fr(l.fill)&&Fr(s)?(a=!0,n=A({},n),l=A({},l),l.fill=ll(s)):!Fr(l.stroke)&&Fr(u)&&(a||(n=A({},n),l=A({},l)),l.stroke=ll(u)),n.style=l}}if(n&&n.z2==null){a||(n=A({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??r0)}return n}function u0(e,t,r){if(r&&r.z2==null){r=A({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??n0)}return r}function l0(e,t,r){var n=j(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:o0(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=A({},r),o=A({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ro(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return s0(this,e,t,r);if(e==="blur")return l0(this,e,r);if(e==="select")return u0(this,e,r)}return r}function f0(e){e.stateProxy=Ro;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ro),r&&(r.stateProxy=Ro)}function ql(e,t){!Bv(e,t)&&!e.__highByOuter&&Ie(e,Iv)}function Zl(e,t){!Bv(e,t)&&!e.__highByOuter&&Ie(e,Av)}function Ps(e,t){e.__highByOuter|=1<<(t||0),Ie(e,Iv)}function Rs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ie(e,Av)}function h0(e){Ie(e,pu)}function Ov(e){Ie(e,Ev)}function kv(e){Ie(e,i0)}function Fv(e){Ie(e,a0)}function Bv(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Nv(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=cu(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Ev(l)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Is(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Ov(c)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||pu(p)}),kt(t))a(l.getData(),t);else if(N(t))for(var d=rt(t),_=0;_<d.length;_++)a(l.getData(d[_]),t[d[_]]);u.push(l),cu(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function As(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){cu(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){pu(a)})}}}function v0(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Oa(i,t);a=(k(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=dt(o);Is(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&Is(n,f,h,r)}}}function gu(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(dt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function c0(e,t,r){var n=dt(e),i=gu(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&As(n.componentMainType,n.componentIndex,r),D(a,function(s){return ql(s,t)})):(Is(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&As(n.componentMainType,n.componentIndex,r),ql(e,t))}function d0(e,t,r){Nv(r);var n=dt(e),i=gu(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return Zl(a,t)}):Zl(e,t)}function p0(e,t,r){if(Os(t)){var n=t.dataType,i=e.getData(n),a=Oa(i,t);k(a)||(a=[a]),e[t.type===zn?"toggleSelect":t.type===Nn?"select":"unselect"](a,n)}}function Kl(e){var t=e.getAllData();D(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?kv(a):Fv(a)})})}function g0(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _0(e,t,r){zv(e,!0),Ie(e,f0),m0(e,t,r)}function y0(e){zv(e,!1)}function OT(e,t,r,n){n?y0(e):_0(e,t,r)}function m0(e,t,r){var n=dt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Ql=["emphasis","blur","select"],S0={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function kT(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Ql.length;i++){var a=Ql[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[S0[r]]()}}function zv(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Es(e){return!!(e&&e.__highDownDispatcher)}function FT(e,t,r){var n=dt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function w0(e){var t=$l[e];return t==null&&Wl<=32&&(t=$l[e]=Wl++),t}function Os(e){var t=e.type;return t===Nn||t===Qi||t===zn}function Jl(e){var t=e.type;return t===Cr||t===Ki}function T0(e){var t=Rv(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Br=xr.CMD,b0=[[],[],[]],jl=Math.sqrt,C0=Math.atan2;function Hv(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=Br.M,h=Br.C,c=Br.L,v=Br.R,d=Br.A,_=Br.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case _:a=2;break;case d:var p=t[4],g=t[5],y=jl(t[0]*t[0]+t[1]*t[1]),m=jl(t[2]*t[2]+t[3]*t[3]),w=C0(-t[1]/m,t[0]/y);r[o]*=y,r[o++]+=p,r[o]*=m,r[o++]+=g,r[o++]*=y,r[o++]*=m,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],Qr(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],Qr(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var T=b0[u];T[0]=r[o++],T[1]=r[o++],Qr(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Io=Math.sqrt,mi=Math.sin,Si=Math.cos,yn=Math.PI;function tf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ks(e,t){return(e[0]*t[0]+e[1]*t[1])/(tf(e)*tf(t))}function ef(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ks(e,t))}function rf(e,t,r,n,i,a,o,s,u,l,f){var h=u*(yn/180),c=Si(h)*(e-r)/2+mi(h)*(t-n)/2,v=-1*mi(h)*(e-r)/2+Si(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Io(d),s*=Io(d));var _=(i===a?-1:1)*Io((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=_*o*v/s,g=_*-s*c/o,y=(e+r)/2+Si(h)*p-mi(h)*g,m=(t+n)/2+mi(h)*p+Si(h)*g,w=ef([1,0],[(c-p)/o,(v-g)/s]),T=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],M=ef(T,S);if(ks(T,S)<=-1&&(M=yn),ks(T,S)>=1&&(M=0),M<0){var b=Math.round(M/yn*1e6)/1e6;M=yn*2+b%2*yn}f.addData(l,y,m,o,s,w,M,h,a)}var M0=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,D0=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function x0(e){var t=new xr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=xr.CMD,u=e.match(M0);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(D0)||[],d=v.length,_=0;_<d;_++)v[_]=parseFloat(v[_]);for(var p=0;p<d;){var g=void 0,y=void 0,m=void 0,w=void 0,T=void 0,S=void 0,M=void 0,b=r,C=n,x=void 0,L=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,t.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,n);break;case"H":r=v[p++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,r,n);break;case"V":n=v[p++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":g=r,y=n,x=t.len(),L=t.data,o===s.C&&(g+=r-L[x-4],y+=n-L[x-3]),c=s.C,b=v[p++],C=v[p++],r=v[p++],n=v[p++],t.addData(c,g,y,b,C,r,n);break;case"s":g=r,y=n,x=t.len(),L=t.data,o===s.C&&(g+=r-L[x-4],y+=n-L[x-3]),c=s.C,b=r+v[p++],C=n+v[p++],r+=v[p++],n+=v[p++],t.addData(c,g,y,b,C,r,n);break;case"Q":b=v[p++],C=v[p++],r=v[p++],n=v[p++],c=s.Q,t.addData(c,b,C,r,n);break;case"q":b=v[p++]+r,C=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,b,C,r,n);break;case"T":g=r,y=n,x=t.len(),L=t.data,o===s.Q&&(g+=r-L[x-4],y+=n-L[x-3]),r=v[p++],n=v[p++],c=s.Q,t.addData(c,g,y,r,n);break;case"t":g=r,y=n,x=t.len(),L=t.data,o===s.Q&&(g+=r-L[x-4],y+=n-L[x-3]),r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,g,y,r,n);break;case"A":m=v[p++],w=v[p++],T=v[p++],S=v[p++],M=v[p++],b=r,C=n,r=v[p++],n=v[p++],c=s.A,rf(b,C,r,n,S,M,m,w,T,c,t);break;case"a":m=v[p++],w=v[p++],T=v[p++],S=v[p++],M=v[p++],b=r,C=n,r+=v[p++],n+=v[p++],c=s.A,rf(b,C,r,n,S,M,m,w,T,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=i,n=a),o=c}return t.toStatic(),t}var Vv=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Z);function Gv(e){return e.setData!=null}function Uv(e,t){var r=x0(e),n=A({},t);return n.buildPath=function(i){if(Gv(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){Hv(r,i),this.dirtyShape()},n}function L0(e,t){return new Vv(Uv(e,t))}function P0(e,t){var r=Uv(e,t),n=function(i){z(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Vv);return n}function R0(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Z(t);return o.createPathProxy(),o.buildPath=function(s){if(Gv(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function BT(e,t){t=t||{};var r=new Z;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Hv(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var I0=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Yv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new I0},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Z);Yv.prototype.type="circle";const _u=Yv;var A0=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Wv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new A0},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t}(Z);Wv.prototype.type="ellipse";const $v=Wv;var Xv=Math.PI,Ao=Xv*2,lr=Math.sin,Nr=Math.cos,E0=Math.acos,_t=Math.atan2,nf=Math.abs,Hn=Math.sqrt,En=Math.max,ve=Math.min,Jt=1e-4;function O0(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<Jt))return c=(f*(t-a)-h*(e-i))/c,[e+c*u,t+c*l]}function wi(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/Hn(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,_=n+h,p=(c+d)/2,g=(v+_)/2,y=d-c,m=_-v,w=y*y+m*m,T=i-a,S=c*_-d*v,M=(m<0?-1:1)*Hn(En(0,T*T*w-S*S)),b=(S*m-y*M)/w,C=(-S*y-m*M)/w,x=(S*m+y*M)/w,L=(-S*y+m*M)/w,P=b-p,I=C-g,R=x-p,O=L-g;return P*P+I*I>R*R+O*O&&(b=x,C=L),{cx:b,cy:C,x0:-f,y0:-h,x1:b*(i/T-1),y1:C*(i/T-1)}}function k0(e){var t;if(k(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function F0(e,t){var r,n=En(t.r,0),i=En(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=nf(l-u),d=v>Ao&&v%Ao;if(d>Jt&&(v=d),!(n>Jt))e.moveTo(f,h);else if(v>Ao-Jt)e.moveTo(f+n*Nr(u),h+n*lr(u)),e.arc(f,h,n,u,l,!c),i>Jt&&(e.moveTo(f+i*Nr(l),h+i*lr(l)),e.arc(f,h,i,l,u,c));else{var _=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,T=void 0,S=void 0,M=void 0,b=void 0,C=void 0,x=void 0,L=void 0,P=void 0,I=void 0,R=void 0,O=n*Nr(u),E=n*lr(u),nt=i*Nr(l),it=i*lr(l),K=v>Jt;if(K){var st=t.cornerRadius;st&&(r=k0(st),_=r[0],p=r[1],g=r[2],y=r[3]);var Gt=nf(n-i)/2;if(m=ve(Gt,g),w=ve(Gt,y),T=ve(Gt,_),S=ve(Gt,p),C=M=En(m,w),x=b=En(T,S),(M>Jt||b>Jt)&&(L=n*Nr(l),P=n*lr(l),I=i*Nr(u),R=i*lr(u),v<Xv)){var ut=O0(O,E,I,R,L,P,nt,it);if(ut){var Ut=O-ut[0],Yt=E-ut[1],Ae=L-ut[0],$e=P-ut[1],Xe=1/lr(E0((Ut*Ae+Yt*$e)/(Hn(Ut*Ut+Yt*Yt)*Hn(Ae*Ae+$e*$e)))/2),Rr=Hn(ut[0]*ut[0]+ut[1]*ut[1]);C=ve(M,(n-Rr)/(Xe+1)),x=ve(b,(i-Rr)/(Xe-1))}}}if(!K)e.moveTo(f+O,h+E);else if(C>Jt){var Nt=ve(g,C),ht=ve(y,C),B=wi(I,R,O,E,n,Nt,c),G=wi(L,P,nt,it,n,ht,c);e.moveTo(f+B.cx+B.x0,h+B.cy+B.y0),C<M&&Nt===ht?e.arc(f+B.cx,h+B.cy,C,_t(B.y0,B.x0),_t(G.y0,G.x0),!c):(Nt>0&&e.arc(f+B.cx,h+B.cy,Nt,_t(B.y0,B.x0),_t(B.y1,B.x1),!c),e.arc(f,h,n,_t(B.cy+B.y1,B.cx+B.x1),_t(G.cy+G.y1,G.cx+G.x1),!c),ht>0&&e.arc(f+G.cx,h+G.cy,ht,_t(G.y1,G.x1),_t(G.y0,G.x0),!c))}else e.moveTo(f+O,h+E),e.arc(f,h,n,u,l,!c);if(!(i>Jt)||!K)e.lineTo(f+nt,h+it);else if(x>Jt){var Nt=ve(_,x),ht=ve(p,x),B=wi(nt,it,L,P,i,-ht,c),G=wi(O,E,I,R,i,-Nt,c);e.lineTo(f+B.cx+B.x0,h+B.cy+B.y0),x<b&&Nt===ht?e.arc(f+B.cx,h+B.cy,x,_t(B.y0,B.x0),_t(G.y0,G.x0),!c):(ht>0&&e.arc(f+B.cx,h+B.cy,ht,_t(B.y0,B.x0),_t(B.y1,B.x1),!c),e.arc(f,h,i,_t(B.cy+B.y1,B.cx+B.x1),_t(G.cy+G.y1,G.cx+G.x1),c),Nt>0&&e.arc(f+G.cx,h+G.cy,Nt,_t(G.y1,G.x1),_t(G.y0,G.x0),!c))}else e.lineTo(f+nt,h+it),e.arc(f,h,i,l,u,c)}e.closePath()}}}var B0=function(){function e(){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 e}(),qv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new B0},t.prototype.buildPath=function(r,n){F0(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Z);qv.prototype.type="sector";const Zv=qv;var N0=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Kv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new N0},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Z);Kv.prototype.type="ring";const Qv=Kv;function z0(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Wr(f,f,e[c]),$r(h,h,e[c]);Wr(f,f,n[0]),$r(h,h,n[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){i.push(op(e[c]));continue}else u=e[c-1],l=e[c+1];sp(a,l,u),qa(a,a,t);var _=ss(d,u),p=ss(d,l),g=_+p;g!==0&&(_/=g,p/=g),qa(o,a,-_),qa(s,a,p);var y=$u([],d,o),m=$u([],d,s);n&&($r(y,y,f),Wr(y,y,h),$r(m,m,f),Wr(m,m,h)),i.push(y),i.push(m)}return r&&i.push(i.shift()),i}function Jv(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=z0(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var H0=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),jv=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new H0},t.prototype.buildPath=function(r,n){Jv(r,n,!0)},t}(Z);jv.prototype.type="polygon";const tc=jv;var V0=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),ec=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new V0},t.prototype.buildPath=function(r,n){Jv(r,n,!1)},t}(Z);ec.prototype.type="polyline";const yu=ec;var G0={},U0=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),rc=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new U0},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Dv(G0,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Z);rc.prototype.type="line";const mu=rc;var Dt=[],Y0=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function af(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?il:ct)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?il:ct)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?al:mt)(e.x1,e.cpx1,e.x2,t),(r?al:mt)(e.y1,e.cpy1,e.y2,t)]}var nc=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y0},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(aa(i,u,o,c,Dt),u=Dt[1],o=Dt[2],aa(a,l,s,c,Dt),l=Dt[1],s=Dt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(ia(i,u,f,o,c,Dt),u=Dt[1],f=Dt[2],o=Dt[3],ia(a,l,h,s,c,Dt),l=Dt[1],h=Dt[2],s=Dt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return af(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=af(this.shape,r,!0);return fp(n,n)},t}(Z);nc.prototype.type="bezier-curve";const ic=nc;var W0=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ac=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new W0},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t}(Z);ac.prototype.type="arc";const Su=ac;var $0=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},t}(Z);const X0=$0;var q0=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const oc=q0;var Z0=function(e){z(t,e);function t(r,n,i,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(oc);const K0=Z0;var Q0=function(e){z(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(oc);const J0=Q0;var fr=[0,0],hr=[0,0],Ti=new F,bi=new F,j0=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new F;for(var n=0;n<2;n++)this._axes[n]=new F;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);F.sub(i[0],n[1],n[0]),F.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Ti.set(1/0,1/0),bi.set(0,0),!this._intersectCheckOneSide(this,t,Ti,bi,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Ti,bi,i,-1)&&(n=!1,i)||i||F.copy(r,n?Ti:bi),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,fr),this._getProjMinMaxOnAxis(u,r._corners,hr),fr[1]<hr[0]||fr[0]>hr[1]){if(s=!1,a)return s;var f=Math.abs(hr[0]-fr[1]),h=Math.abs(fr[0]-hr[1]);Math.min(f,h)>i.len()&&(f<h?F.scale(i,l,-f*o):F.scale(i,l,h*o))}else if(n){var f=Math.abs(hr[0]-fr[1]),h=Math.abs(fr[0]-hr[1]);Math.min(f,h)<n.len()&&(f<h?F.scale(n,l,f*o):F.scale(n,l,-h*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},e}();const fa=j0;var ty=[],ey=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new $(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(ty)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ai);const ry=ey;var sc=gt();function ny(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=H(n.duration,200),f=H(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Q(h)&&(h=h(r,i)),Q(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function wu(e,t,r,n,i,a,o){var s=!1,u;Q(i)?(o=a,a=i,i=null):N(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=ny(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Jn(e,t,r,n,i,a){wu("update",e,t,r,n,i,a)}function ha(e,t,r,n,i,a){wu("enter",e,t,r,n,i,a)}function tn(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function uc(e,t,r,n,i,a){tn(e)||wu("leave",e,t,r,n,i,a)}function of(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),uc(e,{style:{opacity:0}},t,r,n)}function iy(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||of(i,t,r,n)}):of(e,t,r,n)}function NT(e){sc(e).oldStyle=e.style}function zT(e){return sc(e).oldStyle}var va=Math.max,ca=Math.min,Fs={};function ay(e){return Z.extend(e)}var oy=P0;function sy(e,t){return oy(e,t)}function se(e,t){Fs[e]=t}function uy(e){if(Fs.hasOwnProperty(e))return Fs[e]}function Tu(e,t,r,n){var i=L0(e,t);return r&&(n==="center"&&(r=fc(r,i.getBoundingRect())),hc(i,r)),i}function lc(e,t,r){var n=new sn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(fc(t,a))}}});return n}function fc(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var ly=R0;function hc(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function fy(e,t){return Dv(e,e,{lineWidth:t}),e}function hy(e){return xv(e.shape,e.shape,e.style),e}var vy=yr;function cy(e,t){for(var r=Oh([]);e&&e!==t;)Gi(r,e.getLocalTransform(),r),e=e.parent;return r}function vc(e,t,r){return t&&!kt(t)&&(t=Aa.getLocalTransform(t)),r&&(t=ou([],t)),Qr([],e,t)}function dy(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=vc(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function sf(e){return!e.isGroup}function py(e){return e.shape!=null}function gy(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){sf(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return py(o)&&(s.shape=A({},o.shape)),s}var a=n(e);t.traverse(function(o){if(sf(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Jn(o,u,r,dt(o).dataIndex)}}})}function _y(e,t){return W(e,function(r){var n=r[0];n=va(n,t.x),n=ca(n,t.x+t.width);var i=r[1];return i=va(i,t.y),i=ca(i,t.y+t.height),[n,i]})}function yy(e,t){var r=va(e.x,t.x),n=ca(e.x+e.width,t.x+t.width),i=va(e.y,t.y),a=ca(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function my(e,t,r){var n=A({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new sn(n)):Tu(e.replace("path://",""),n,r,"center")}function Sy(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(cc(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function cc(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=Eo(f,h,u,l);if(wy(c))return!1;var v=e-i,d=t-a,_=Eo(v,d,u,l)/c;if(_<0||_>1)return!1;var p=Eo(v,d,f,h)/c;return!(p<0||p>1)}function Eo(e,t,r,n){return e*n-r*t}function wy(e){return e<=1e-6&&e>=-1e-6}function Ty(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=V(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&D(rt(u),function(f){Dr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=dt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ft({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function uf(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function dc(e,t){if(e)if(k(e))for(var r=0;r<e.length;r++)uf(e[r],t);else uf(e,t)}se("circle",_u);se("ellipse",$v);se("sector",Zv);se("ring",Qv);se("polygon",tc);se("polyline",yu);se("rect",Le);se("line",mu);se("bezierCurve",ic);se("arc",Su);const HT=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Jn,initProps:ha,removeElement:uc,removeElementWithFadeOut:iy,isElementRemoved:tn,extendShape:ay,extendPath:sy,registerShape:se,getShapeClass:uy,makePath:Tu,makeImage:lc,mergePath:ly,resizePath:hc,subPixelOptimizeLine:fy,subPixelOptimizeRect:hy,subPixelOptimize:vy,getTransform:cy,applyTransform:vc,transformDirection:dy,groupTransition:gy,clipPointsByRect:_y,clipRectByRect:yy,createIcon:my,linePolygonIntersect:Sy,lineLineIntersect:cc,setTooltipConfig:Ty,traverseElements:dc,Group:ii,Image:sn,Text:Qn,Circle:_u,Ellipse:$v,Sector:Zv,Ring:Qv,Polygon:tc,Polyline:yu,Rect:Le,Line:mu,BezierCurve:ic,Arc:Su,IncrementalDisplayable:ry,CompoundPath:X0,LinearGradient:K0,RadialGradient:J0,BoundingRect:$,OrientedBoundingRect:fa,Point:F,Path:Z},Symbol.toStringTag,{value:"Module"}));var Va={};function pc(e,t){for(var r=0;r<me.length;r++){var n=me[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Bs(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Q(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<me.length;l++){var f=me[l],h=t[f];u[f]=H(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function VT(e,t,r,n){r=r||Va;for(var i=e instanceof Qn,a=!1,o=0;o<la.length;o++){var s=t[la[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new Qn,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Bs(r,t),f=t.normal,h=!!f.getShallow("show"),c=lf(f,n&&n.normal,r,!1,!i);c.text=l.normal,i||e.setTextConfig(ff(f,r,!1));for(var o=0;o<me.length;o++){var v=me[o],s=t[v];if(s){var d=u.ensureState(v),_=!!H(s.getShallow("show"),h);if(_!==h&&(d.ignore=!_),d.style=lf(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var p=e.ensureState(v);p.textConfig=ff(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(Ga(u).setLabelText=function(g){var y=Bs(r,t,g);pc(u,y)})}else u&&(u.ignore=!0);e.dirty()}function GT(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<me.length;n++){var i=me[n];r[i]=e.getModel([i,t])}return r}function lf(e,t,r,n,i){var a={};return by(a,e,r,n,i),t&&A(a,t),a}function ff(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=H(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function by(e,t,r,n,i){r=r||Va;var a=t.ecModel,o=a&&a.option.textStyle,s=Cy(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);df(u[l]={},f,o,r,n,i,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var c=t.get("minMargin");c!=null&&(e.margin=c),df(e,t,o,r,n,i,!0,!1)}function Cy(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Va).rich;if(r){t=t||{};for(var n=rt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var hf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function df(e,t,r,n,i,a,o,s){r=!i&&r||Va;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=H(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(e.fill=l),f!=null&&(e.stroke=f);var c=H(t.getShallow("textBorderWidth"),r.textBorderWidth);c!=null&&(e.lineWidth=c);var v=H(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=H(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(e.opacity=h),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var _=0;_<hf.length;_++){var p=hf[_],g=H(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var _=0;_<vf.length;_++){var p=vf[_],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var _=0;_<cf.length;_++){var p=cf[_],g=t.getShallow(p);g!=null&&(e[p]=g)}var m=t.getShallow("borderType");m!=null&&(e.borderDash=m),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function My(e,t){var r=t&&t.getModel("textStyle");return De([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ga=gt();function UT(e,t,r,n){if(e){var i=Ga(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function Dy(e,t,r,n,i){var a=Ga(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=H(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=jg(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=Bs({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);pc(e,c)}e.percent=0,(a.prevValue==null?ha:Jn)(e,{percent:1},n,t,null,l)}var xy=["textStyle","color"],Oo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ko=new Qn,Ly=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xy):null)},e.prototype.getFont=function(){return My({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Oo.length;n++)r[Oo[n]]=this.getShallow(Oo[n]);return ko.useStyle(r),ko.update(),ko.getBoundingRect()},e}();const Py=Ly;var gc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ry=Kn(gc),Iy=function(){function e(){}return e.prototype.getLineStyle=function(t){return Ry(this,t)},e}(),_c=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ay=Kn(_c),Ey=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Ay(this,t,r)},e}(),Lr=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){tt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(q(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();hu(Lr);a_(Lr);Re(Lr,Iy);Re(Lr,Ey);Re(Lr,f_);Re(Lr,Py);const Pe=Lr;var Oy=Math.round(Math.random()*10);function Ua(e){return[e||"",Oy++].join("_")}function ky(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=pe(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=pe(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Fy(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(D(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],_=!!c[v];_&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),D(d.successor,_?g:p)}D(c,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){c[y]=!0,p(y)}};function r(a){var o={},s=[];return D(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),D(h,function(c){j(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);j(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return D(a,function(u){j(o,u)>=0&&s.push(u)}),s}}function YT(e,t){return tt(tt({},e,!0),t,!0)}const By={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:". "}}}},Ny={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var da="ZH",bu="EN",en=bu,Ji={},Cu={},yc=J.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||en).toUpperCase();return e.indexOf(da)>-1?da:en}():en;function mc(e,t){e=e.toUpperCase(),Cu[e]=new Pe(t),Ji[e]=t}function zy(e){if(V(e)){var t=Ji[e.toUpperCase()]||{};return e===da||e===bu?q(t):tt(q(t),q(Ji[en]),!1)}else return tt(q(e),q(Ji[en]),!1)}function Hy(e){return Cu[e]}function Vy(){return Cu[en]}mc(bu,By);mc(da,Ny);var Gy=1e3,Uy=Gy*60,Yy=Uy*60,Wy=Yy*24,WT=Wy*365,On={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ci="{yyyy}-{MM}-{dd}",$T={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ci,hour:Ci+" "+On.hour,minute:Ci+" "+On.minute,second:Ci+" "+On.second,millisecond:On.none},Fo=["year","month","day","hour","minute","second","millisecond"],$y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ke(e,t){return e+="","0000".substr(0,t-e.length)+e}function Xy(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function XT(e){return e===Xy(e)}function qT(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sc(e,t,r,n){var i=on(e),a=i[Tc(r)](),o=i[Vn(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Mu(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[pa(r)](),h=(f-1)%12+1,c=i[Du(r)](),v=i[xu(r)](),d=i[Lu(r)](),_=f>=12?"pm":"am",p=_.toUpperCase(),g=n instanceof Pe?n:Hy(n||yc)||Vy(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),T=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,_+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ke(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,ke(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ke(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,ke(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ke(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ke(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ke(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ke(d,3)).replace(/{S}/g,d+"")}function ZT(e,t,r,n,i){var a=null;if(V(r))a=r;else if(Q(r))a=r(e.value,t,{level:e.level});else{var o=A({},On);if(e.level>0)for(var s=0;s<Fo.length;++s)o[Fo[s]]="{primary|"+o[Fo[s]]+"}";var u=r?r.inherit===!1?r:ft(r,o):o,l=wc(e.value,i);if(u[l])a=u[l];else if(u.inherit){for(var f=$y.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(k(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return Sc(new Date(e.value),a,i,n)}function wc(e,t){var r=on(e),n=r[Vn(t)]()+1,i=r[Mu(t)](),a=r[pa(t)](),o=r[Du(t)](),s=r[xu(t)](),u=r[Lu(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function KT(e,t,r){var n=ot(e)?on(e):e;switch(t=t||wc(e,r),t){case"year":return n[Tc(r)]();case"half-year":return n[Vn(r)]()>=6?1:0;case"quarter":return Math.floor((n[Vn(r)]()+1)/4);case"month":return n[Vn(r)]();case"day":return n[Mu(r)]();case"half-day":return n[pa(r)]()/24;case"hour":return n[pa(r)]();case"minute":return n[Du(r)]();case"second":return n[xu(r)]();case"millisecond":return n[Lu(r)]()}}function Tc(e){return e?"getUTCFullYear":"getFullYear"}function Vn(e){return e?"getUTCMonth":"getMonth"}function Mu(e){return e?"getUTCDate":"getDate"}function pa(e){return e?"getUTCHours":"getHours"}function Du(e){return e?"getUTCMinutes":"getMinutes"}function xu(e){return e?"getUTCSeconds":"getSeconds"}function Lu(e){return e?"getUTCMilliseconds":"getMilliseconds"}function QT(e){return e?"setUTCFullYear":"setFullYear"}function JT(e){return e?"setUTCMonth":"setMonth"}function jT(e){return e?"setUTCDate":"setDate"}function tb(e){return e?"setUTCHours":"setHours"}function eb(e){return e?"setUTCMinutes":"setMinutes"}function rb(e){return e?"setUTCSeconds":"setSeconds"}function nb(e){return e?"setUTCMilliseconds":"setMilliseconds"}function qy(e){if(!Bg(e))return V(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ib(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bc=Ph;function Ns(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&De(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?on(e):e;if(isNaN(+u)){if(s)return"-"}else return Sc(u,n,r)}if(t==="ordinal")return as(e)?i(e):ot(e)&&a(e)?e+"":"-";var l=We(e);return a(l)?qy(l):as(e)?i(e):typeof e=="boolean"?e+"":"-"}var pf=["a","b","c","d","e","f","g"],Bo=function(e,t){return"{"+e+(t??"")+"}"};function Zy(e,t,r){k(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=pf[a];e=e.replace(Bo(o),Bo(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(Bo(pf[u],s),r?zt(l):l)}return e}function ab(e,t,r){return D(t,function(n,i){e=e.replace("{"+i+"}",r?zt(n):n)}),e}function Ky(e,t){var r=V(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+zt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+zt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ob(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Qy(e,t){return t=t||"transparent",V(e)?e:N(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function sb(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ji=D,Jy=["left","right","top","bottom","width","height"],mr=[["width","left","right"],["height","top","bottom"]];function Pu(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var _=f.width+(c?-c.x+f.x:0);v=a+_,v>n||u.newline?(a=0,v=_,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var ub=Pu;nu(Pu,"vertical");nu(Pu,"horizontal");function lb(e,t,r){var n=t.width,i=t.height,a=Pt(e.left,n),o=Pt(e.top,i),s=Pt(e.right,n),u=Pt(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=i),r=bc(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(u-o-r[0]-r[2],0)}}function jy(e,t,r){r=bc(r||0);var n=t.width,i=t.height,a=Pt(e.left,n),o=Pt(e.top,i),s=Pt(e.right,n),u=Pt(e.bottom,i),l=Pt(e.width,n),f=Pt(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new $(a+r[3],o+r[0],l,f);return d.margin=r,d}function fb(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new $(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=jy(ft({width:l.width,height:l.height},t),r,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===e&&e.markRedraw(),!0}function hb(e,t){return e[mr[t][0]]!=null||e[mr[t][1]]!=null&&e[mr[t][2]]!=null}function ga(e){var t=e.layoutMode||e.constructor.layoutMode;return N(t)?t:t?{type:t}:null}function _a(e,t,r){var n=r&&r.ignoreSize;!k(n)&&(n=[n,n]);var i=o(mr[0],0),a=o(mr[1],1);l(mr[0],e,i),l(mr[1],e,a);function o(f,h){var c={},v=0,d={},_=0,p=2;if(ji(f,function(m){d[m]=e[m]}),ji(f,function(m){s(t,m)&&(c[m]=d[m]=t[m]),u(c,m)&&v++,u(d,m)&&_++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(_===p||!v)return d;if(v>=p)return c;for(var g=0;g<f.length;g++){var y=f[g];if(!s(c,y)&&s(e,y)){c[y]=e[y];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){ji(f,function(v){h[v]=c[v]})}}function Cc(e){return tm({},e)}function tm(e,t){return t&&e&&ji(Jy,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var em=gt(),un=function(e){z(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Ua("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ga(this),a=i?Cc(r):{},o=n.getTheme();tt(r,o.get(this.mainType)),tt(r,this.getDefaultOption()),i&&_a(r,a,i)},t.prototype.mergeOption=function(r,n){tt(this.option,r,!0);var i=ga(this);i&&_a(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!r_(r))return r.defaultOption;var n=em(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=tt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ka(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Pe);_v(un,Pe);vu(un);ky(un);Fy(un,rm);function rm(e){var t=[];return D(un.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=W(t,function(r){return pe(r).main}),e!=="dataset"&&j(t,"dataset")<=0&&t.unshift("dataset"),t}const lt=un;var Mc="";typeof navigator<"u"&&(Mc=navigator.platform||"");var zr="rgba(0, 0, 0, 0.2)";const nm={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Mc.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 Dc=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),we="original",Bt="arrayRows",ue="objectRows",Te="keyedColumns",Ue="typedArray",xc="unknown",_e="column",ln="row",vt={Must:1,Might:2,Not:3},Lc=gt();function im(e){Lc(e).datasetMap=U()}function vb(e,t,r){var n={},i=Ru(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=Lc(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),D(e,function(_,p){var g=N(_)?_:e[p]={name:_};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});D(e,function(_,p){var g=_.name,y=d(_);if(f==null){var m=c.valueWayDim;v(n[g],m,y),v(o,m,y),c.valueWayDim+=y}else if(f===p)v(n[g],0,y),v(a,0,y);else{var m=c.categoryWayDim;v(n[g],m,y),v(o,m,y),c.categoryWayDim+=y}});function v(_,p,g){for(var y=0;y<g;y++)_.push(p+y)}function d(_){var p=_.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function cb(e,t,r){var n={},i=Ru(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ue||a===Te)&&D(o,function(f,h){(N(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var _=Rc(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(_);var p=_===vt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===vt.Not)&&(f.n=v),g(f)&&c[f.n]!==vt.Not)return f;p||(_===vt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null}();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Ru(e){var t=e.get("data",!0);if(!t)return ka(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},fu).models[0]}function am(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ka(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},fu).models}function Pc(e,t){return Rc(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Rc(e,t,r,n,i,a){var o,s=5;if(Ft(e))return vt.Not;var u,l;if(n){var f=n[a];N(f)?(u=f.name,l=f.type):V(f)&&(u=f)}if(l!=null)return l==="ordinal"?vt.Must:vt.Not;if(t===Bt){var h=e;if(r===ln){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=w(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=w(d[a]))!=null)return o}}else if(t===ue){var _=e;if(!u)return vt.Not;for(var v=0;v<_.length&&v<s;v++){var p=_[v];if(p&&(o=w(p[u]))!=null)return o}}else if(t===Te){var g=e;if(!u)return vt.Not;var c=g[u];if(!c||Ft(c))return vt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=w(c[v]))!=null)return o}else if(t===we)for(var y=e,v=0;v<y.length&&v<s;v++){var p=y[v],m=Ea(p);if(!k(m))return vt.Not;if((o=w(m[a]))!=null)return o}function w(T){var S=V(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return S?vt.Might:vt.Not;if(S&&T!=="-")return vt.Must}return vt.Not}var zs=U();function db(e,t){ye(zs.get(e)==null&&t),zs.set(e,t)}function om(e,t,r){var n=zs.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var gf=gt(),sm=gt(),Iu=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=pt(this.get("color",!0)),a=this.get("colorLayer",!0);return Ic(this,gf,i,a,t,r,n)},e.prototype.clearColorPalette=function(){lm(this,gf)},e}();function pb(e,t,r,n){var i=pt(e.get(["aria","decal","decals"]));return Ic(e,sm,i,null,t,r,n)}function um(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Ic(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:um(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function lm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Mi,mn,_f,yf="\0_ec_inner",fm=1,Ac=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Pe(a),this._locale=new Pe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=wf(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,wf(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?_f(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&D(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=U(),l=n&&n.replaceMergeMainTypeMap;im(this),D(r,function(h,c){h!=null&&(lt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?q(h):tt(i[c],h,!0))}),l&&l.each(function(h,c){lt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),lt.topologicalTravel(s,lt.getAllClassMainTypes(),f,this);function f(h){var c=om(this,h,pt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",_=Gg(v,c,d);Zg(_,h,lt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],y=0,m;D(_,function(w,T){var S=w.existing,M=w.newOption;if(!M)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var b=h==="series",C=lt.getClass(h,w.keyInfo.subType,!b);if(!C)return;if(h==="tooltip"){if(m)return;m=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(M,this),S.optionUpdated(M,!1);else{var x=A({componentIndex:T},w.keyInfo);S=new C(M,this,this,x),A(S,x),w.brandNew&&(S.__requireNewView=!0),S.init(M,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),y++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,y),h==="series"&&Mi(this)}this._seriesIndices||Mi(this)},t.prototype.getOption=function(){var r=q(this.option);return D(r,function(n,i){if(lt.hasClass(i)){for(var a=pt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Zn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[yf],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],D(pt(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=mf("id",a,s):o!=null?u=mf("name",o,s):u=Lt(s,function(l){return!!l}),Sf(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Lt(this._componentsMap.get(i),function(l){return!!l});return u(Sf(o,r));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?Lt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Q(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=V(r)?a.get(r):N(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=oe(r,null);return Lt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Lt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Lt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){mn(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){mn(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return mn(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){mn(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=U(i)},t.prototype.restoreData=function(r){Mi(this);var n=this._componentsMap,i=[];n.each(function(a,o){lt.hasClass(o)&&i.push(o)}),lt.topologicalTravel(i,lt.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!hm(o,r))&&o.restoreData()})})},t.internalField=function(){Mi=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=U(n)},mn=function(r){},_f=function(r,n){r.option={},r.option[yf]=fm,r._componentsMap=U({series:[]}),r._componentsCount=U();var i=n.aria;N(i)&&i.enabled==null&&(i.enabled=!0),vm(n,r._theme.option),tt(n,nm,!1),r._mergeOption(n,null)}}(),t}(Pe);function hm(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function vm(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,i){i==="colorLayer"&&r||lt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?tt(e[i],n,!1):q(n):e[i]==null&&(e[i]=n))})}function mf(e,t,r){if(k(t)){var n=U();return D(t,function(a){if(a!=null){var o=oe(a,null);o!=null&&n.set(a,!0)}}),Lt(r,function(a){return a&&n.get(a[e])})}else{var i=oe(t,null);return Lt(r,function(a){return a&&i!=null&&a[e]===i})}}function Sf(e,t){return t.hasOwnProperty("subType")?Lt(e,function(r){return r&&r.subType===t.subType}):e}function wf(e){var t=U();return e&&D(pt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Re(Ac,Iu);const Ec=Ac;var cm=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],dm=function(){function e(t){D(cm,function(r){this[r]=Et(t[r],t)},this)}return e}();const Oc=dm;var No={},pm=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(No,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){No[t]=r},e.get=function(t){return No[t]},e}();const kc=pm;var gm=/^(min|max)?(.+)$/,_m=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(pt(t.series),function(o){o&&o.data&&Ft(o.data)&&ra(o.data)}),D(pt(t.dataset),function(o){o&&o.source&&Ft(o.source)&&ra(o.source)})),t=q(t);var i=this._optionBackup,a=ym(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],q(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=q(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)mm(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!wm(o,this._currentMediaIndices)&&(s=W(o,function(f){return q(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function ym(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&k(l)&&D(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),D(u,function(v){return c(v)}),D(n,function(v){return c(v.option)});function c(v){D(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function mm(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return D(e,function(a,o){var s=o.match(gm);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();Sm(n[l],a,u)||(i=!1)}}),i}function Sm(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function wm(e,t){return e.join(",")===t.join(",")}const Tm=_m;var Qt=D,jn=N,Tf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zo(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Tf.length;r<n;r++){var i=Tf[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?tt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?tt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function St(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ft(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function kn(e){St(e,"itemStyle"),St(e,"lineStyle"),St(e,"areaStyle"),St(e,"label"),St(e,"labelLine"),St(e,"upperLabel"),St(e,"edgeLabel")}function at(e,t){var r=jn(e)&&e[t],n=jn(r)&&r.textStyle;if(n)for(var i=0,a=Ll.length;i<a;i++){var o=Ll[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Xt(e){e&&(kn(e),at(e,"label"),e.emphasis&&at(e.emphasis,"label"))}function bm(e){if(jn(e)){zo(e),kn(e),at(e,"label"),at(e,"upperLabel"),at(e,"edgeLabel"),e.emphasis&&(at(e.emphasis,"label"),at(e.emphasis,"upperLabel"),at(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(zo(t),Xt(t));var r=e.markLine;r&&(zo(r),Xt(r));var n=e.markArea;n&&Xt(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Ft(a))for(var o=0;o<a.length;o++)Xt(a[o]);D(e.categories,function(l){kn(l)})}if(i&&!Ft(i))for(var o=0;o<i.length;o++)Xt(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Xt(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)k(u[o])?(Xt(u[o][0]),Xt(u[o][1])):Xt(u[o]);e.type==="gauge"?(at(e,"axisLabel"),at(e,"title"),at(e,"detail")):e.type==="treemap"?(St(e.breadcrumb,"itemStyle"),D(e.levels,function(l){kn(l)})):e.type==="tree"&&kn(e.leaves)}}function Ce(e){return k(e)?e:e?[e]:[]}function bf(e){return(k(e)?e[0]:e)||{}}function Cm(e,t){Qt(Ce(e.series),function(n){jn(n)&&bm(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qt(r,function(n){Qt(Ce(e[n]),function(i){i&&(at(i,"axisLabel"),at(i.axisPointer,"label"))})}),Qt(Ce(e.parallel),function(n){var i=n&&n.parallelAxisDefault;at(i,"axisLabel"),at(i&&i.axisPointer,"label")}),Qt(Ce(e.calendar),function(n){St(n,"itemStyle"),at(n,"dayLabel"),at(n,"monthLabel"),at(n,"yearLabel")}),Qt(Ce(e.radar),function(n){at(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Qt(Ce(e.geo),function(n){jn(n)&&(Xt(n),Qt(Ce(n.regions),function(i){Xt(i)}))}),Qt(Ce(e.timeline),function(n){Xt(n),St(n,"label"),St(n,"itemStyle"),St(n,"controlStyle",!0);var i=n.data;k(i)&&D(i,function(a){N(a)&&(St(a,"label"),St(a,"itemStyle"))})}),Qt(Ce(e.toolbox),function(n){St(n,"iconStyle"),Qt(n.feature,function(i){St(i,"iconStyle")})}),at(bf(e.axisPointer),"label"),at(bf(e.tooltip).axisPointer,"label")}function Mm(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Dm(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function Cf(e){e&&D(xm,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var xm=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Lm=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ho=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sn(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ho.length;r++){var n=Ho[r][1],i=Ho[r][0];t[n]!=null&&(t[i]=t[n])}}function Mf(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Df(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Pm(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Fc(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Fc(e[r].children,t)}function Bc(e,t){Cm(e,t),e.series=pt(e.series),D(e.series,function(r){if(N(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Mf(r.label);var i=r.data;if(i&&!Ft(i))for(var a=0;a<i.length;a++)Mf(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Mm(r,"pointer.color");o!=null&&Dm(r,"itemStyle.color",o)}else if(n==="bar"){Sn(r),Sn(r.backgroundStyle),Sn(r.emphasis);var i=r.data;if(i&&!Ft(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Sn(i[a]),Sn(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Df(r),Fc(r.data,Df)}else n==="graph"||n==="sankey"?Pm(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ft(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Cf(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(Lm,function(r){var n=e[r];n&&(k(n)||(n=[n]),D(n,function(i){Cf(i)}))})}function Rm(e){var t=U();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),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;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(Im)}function Im(e){D(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var _=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&c>=0&&y>0||u==="samesign"&&c<=0&&y<0){c=kg(c,y),_=y;break}}}return n[0]=c,n[1]=_,n})})}var Ya=function(){function e(t){this.data=t.data||(t.sourceFormat===Te?{}:[]),this.sourceFormat=t.sourceFormat||xc,this.seriesLayoutBy=t.seriesLayoutBy||_e,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Pc(this,n)===vt.Must&&(i.type="ordinal")}}return e}();function Au(e){return e instanceof Ya}function Hs(e,t,r){r=r||zc(e);var n=t.seriesLayoutBy,i=Em(e,r,n,t.sourceHeader,t.dimensions),a=new Ya({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:q(t)});return a}function Nc(e){return new Ya({data:e,sourceFormat:Ft(e)?Ue:we})}function Am(e){return new Ya({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:q(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function zc(e){var t=xc;if(Ft(e))t=Ue;else if(k(e)){e.length===0&&(t=Bt);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(k(i)||Ft(i)){t=Bt;break}else if(N(i)){t=ue;break}}}}else if(N(e)){for(var a in e)if(Dr(e,a)&&kt(e[a])){t=Te;break}}return t}function Em(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:xf(i),startIndex:o,dimensionsDetectedCount:a};if(t===Bt){var s=e;n==="auto"||n==null?Lf(function(l){l!=null&&l!=="-"&&(V(l)?o==null&&(o=1):o=0)},r,s,10):o=ot(n)?n:n?1:0,!i&&o===1&&(i=[],Lf(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===ln?s.length:s[0]?s[0].length:null}else if(t===ue)i||(i=Om(e));else if(t===Te)i||(i=[],D(e,function(l,f){i.push(f)}));else if(t===we){var u=Ea(e[0]);a=k(u)&&u.length||1}return{startIndex:o,dimensionsDefine:xf(i),dimensionsDetectedCount:a}}function Om(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return rt(r)}function xf(e){if(e){var t=U();return W(e,function(r,n){r=N(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Lf(e,t,r,n){if(t===ln)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Hc(e){var t=e.sourceFormat;return t===ue||t===Te}var vr,cr,dr,Pf,Rf,Vc=function(){function e(t,r){var n=Au(t)?t:Nc(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Ue&&(this._offset=0,this._dimSize=r,this._data=i),Rf(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Rf=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Pf[Eu(l,f)];if(A(o,v),l===Ue)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Gc(l,f);o.getItem=Et(d,null,s,h,c);var _=Uc(l,f);o.count=Et(_,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],_=v[1]==null?-1/0:v[1],p=s-o,g=u[c],y=0;y<p;y++){var m=f[y*h+c];g[o+y]=m,m<d&&(d=m),m>_&&(_=m)}v[0]=d,v[1]=_}},i=function(){return this._data?this._data.length/this._dimSize:0};Pf=(t={},t[Bt+"_"+_e]={pure:!0,appendData:a},t[Bt+"_"+ln]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ue]={pure:!0,appendData:a},t[Te]={pure:!0,appendData:function(o){var s=this._data;D(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[we]={appendData:a},t[Ue]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),If=function(e,t,r,n){return e[n]},km=(vr={},vr[Bt+"_"+_e]=function(e,t,r,n){return e[n+t]},vr[Bt+"_"+ln]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},vr[ue]=If,vr[Te]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=e[s];a[o]=u?u[n]:null}return a},vr[we]=If,vr);function Gc(e,t){var r=km[Eu(e,t)];return r}var Af=function(e,t,r){return e.length},Fm=(cr={},cr[Bt+"_"+_e]=function(e,t,r){return Math.max(0,e.length-t)},cr[Bt+"_"+ln]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},cr[ue]=Af,cr[Te]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},cr[we]=Af,cr);function Uc(e,t){var r=Fm[Eu(e,t)];return r}var Vo=function(e,t,r){return e[t]},Bm=(dr={},dr[Bt]=Vo,dr[ue]=function(e,t,r){return e[r]},dr[Te]=Vo,dr[we]=function(e,t,r){var n=Ea(e);return n instanceof Array?n[t]:n},dr[Ue]=Vo,dr);function Yc(e){var t=Bm[e];return t}function Eu(e,t){return e===Bt?e+"_"+t:e}function ya(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Yc(a)(n,o,s)}else{var u=n;return a===we&&(u=Ea(n)),u}}}}var Nm=/\{@(.+?)\}/g,zm=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&k(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Q(a))return u.status=r,u.dimensionIndex=i,a(u);if(V(a)){var f=Zy(a,u);return f.replace(Nm,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var _=ya(s,t,d);if(o&&k(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(_=o.interpolatedValue[p])}return _!=null?_+"":""})}},e.prototype.getRawValue=function(t,r){return ya(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function gb(e){var t,r;return N(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Gn(e){return new Hm(e)}var Hm=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var _=this._progress;if(k(_))for(var p=0;p<_.length;p++)this._doProgress(_[p],v,d,u,l);else this._doProgress(_,v,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){Ef.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Ef.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Ef=function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}}();function ta(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ot(e)&&e!=null&&e!=="-"&&(e=+on(e)),e==null||e===""?NaN:Number(e))}var Vm=U({number:function(e){return parseFloat(e)},time:function(e){return+on(e)},trim:function(e){return V(e)?De(e):e}});function _b(e){return Vm.get(e)}var Wc={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Gm=function(){function e(t,r){if(!ot(r)){var n="";Rt(n)}this._opFn=Wc[t],this._rvalFloat=We(r)}return e.prototype.evaluate=function(t){return ot(t)?this._opFn(t,this._rvalFloat):this._opFn(We(t),this._rvalFloat)},e}(),Um=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ot(t)?t:We(t),i=ot(r)?r:We(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=V(t),u=V(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Ym=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=We(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=We(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function yb(e,t){return e==="eq"||e==="ne"?new Ym(e==="eq",t):Dr(Wc,e)?new Gm(e,t):null}var Wm=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ta(t,r)},e}();function $m(e,t){var r=new Wm,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==_e&&Rt(o);var s=[],u={},l=e.dimensionsDefine;if(l)D(l,function(_,p){var g=_.name,y={index:p,name:g,displayName:_.displayName};if(s.push(y),g!=null){var m="";Dr(u,g)&&Rt(m),u[g]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=Gc(i,_e);t.__isBuiltIn&&(r.getRawDataItem=function(_){return h(n,a,s,_)},r.getRawData=Et(Xm,null,e)),r.cloneRawData=Et(qm,null,e);var c=Uc(i,_e);r.count=Et(c,null,n,a,s);var v=Yc(i);r.retrieveValue=function(_,p){var g=h(n,a,s,_);return d(g,p)};var d=r.retrieveValueFromItem=function(_,p){if(_!=null){var g=s[p];if(g)return v(_,p,g.name)}};return r.getDimensionInfo=Et(Zm,null,s,u),r.cloneAllDimensionInfo=Et(Km,null,s),r}function Xm(e){var t=e.sourceFormat;if(!Ou(t)){var r="";Rt(r)}return e.data}function qm(e){var t=e.sourceFormat,r=e.data;if(!Ou(t)){var n="";Rt(n)}if(t===Bt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===ue){for(var i=[],a=0,o=r.length;a<o;a++)i.push(A({},r[a]));return i}}function Zm(e,t,r){if(r!=null){if(ot(r)||!isNaN(r)&&!Dr(t,r))return e[r];if(Dr(t,r))return t[r]}}function Km(e){return q(e)}var $c=U();function Qm(e){e=q(e);var t=e.type,r="";t||Rt(r);var n=t.split(":");n.length!==2&&Rt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,$c.set(t,e)}function Jm(e,t,r){var n=pt(e),i=n.length,a="";i||Rt(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=jm(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function jm(e,t,r,n){var i="";t.length||Rt(i),N(e)||Rt(i);var a=e.type,o=$c.get(a);o||Rt(i);var s=W(t,function(l){return $m(l,o)}),u=pt(o.transform({upstream:s[0],upstreamList:s,config:q(e.config)}));return W(u,function(l,f){var h="";N(l)||Rt(h),l.data||Rt(h);var c=zc(l.data);Ou(c)||Rt(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var _=d.startIndex;_&&(l.data=d.data.slice(0,_).concat(l.data)),v={seriesLayoutBy:_e,sourceHeader:_,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:_e,sourceHeader:0,dimensions:l.dimensions};return Hs(l.data,v,null)})}function Ou(e){return e===Bt||e===ue}var Wa="undefined",t1=typeof Uint32Array===Wa?Array:Uint32Array,e1=typeof Uint16Array===Wa?Array:Uint16Array,Xc=typeof Int32Array===Wa?Array:Int32Array,Of=typeof Float64Array===Wa?Array:Float64Array,qc={float:Of,int:Xc,ordinal:Array,number:Array,time:Of},Go;function wn(e){return e>65535?t1:e1}function Hr(){return[1/0,-1/0]}function r1(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function kf(e,t,r,n,i){var a=qc[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var Vs=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Go[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Hc(i),this._dimensions=W(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new qc[r||"float"](this._rawCount),this._rawExtent[a]=Hr(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Hr());for(var u=a[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];kf(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],_=Go.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=_;var p=o[d];_<p[0]&&(p[0]=_),_>p[1]&&(p[1]=_)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=W(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Hr()),kf(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var _=a[d],p=this._dimValueGetter(c,l[d],v,d);_[v]=p;var g=u[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=r-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=wn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=wn(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var _=h[f][d];v=r(_,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=rt(t),a=i.length;if(!a)return this;var o=r.count(),s=wn(r._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var _=0;if(a===1){for(var p=v[i[0]],g=0;g<n;g++){var y=p[g];(y>=h&&y<=c||isNaN(y))&&(u[l++]=_),_++}d=!0}else if(a===2){for(var p=v[i[0]],m=v[i[1]],w=t[i[1]][0],T=t[i[1]][1],g=0;g<n;g++){var y=p[g],S=m[g];(y>=h&&y<=c||isNaN(y))&&(S>=w&&S<=T||isNaN(S))&&(u[l++]=_),_++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var M=r.getRawIndex(g),y=v[i[0]][M];(y>=h&&y<=c||isNaN(y))&&(u[l++]=M)}else for(var g=0;g<o;g++){for(var b=!0,M=r.getRawIndex(g),C=0;C<a;C++){var x=i[C],y=v[x][M];(y<t[x][0]||y>t[x][1])&&(b=!1)}b&&(u[l++]=r.getRawIndex(g))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=Hr();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[r[v]][c];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var _=r[f],p=d[f],g=l[_],y=i[_];y&&(y[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(wn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var _=Math.min(d+u,o-1),p=Math.min(d+u*2,o),g=(p+_)/2,y=0,m=_;m<p;m++){var w=this.getRawIndex(m),T=a[w];isNaN(T)||(y+=T)}y/=p-_;var S=d,M=Math.min(d+u,o),b=d-1,C=a[l];f=-1,c=S;for(var x=-1,L=0,m=S;m<M;m++){var w=this.getRawIndex(m),T=a[w];if(isNaN(T)){L++,x<0&&(x=w);continue}h=Math.abs((b-g)*(T-C)-(b-m)*(y-C)),h>f&&(f=h,c=w)}L>0&&L<M-S&&(v[s++]=Math.min(x,c),c=Math.max(x,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=Hr(),c=new(wn(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var _=0;_<u;_++){var p=this.getRawIndex(d+_);s[_]=l[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));l[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Hr();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Ye(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?r1(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=q(this._extent),t._rawExtent=q(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return ta(r[a],this._dimensions[a])}Go={arrayRows:t,objectRows:function(r,n,i,a){return ta(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ta(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Zc=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Di(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Ft(s)?Ue:we,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=H(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=H(h.sourceHeader,c.sourceHeader),_=H(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||_;i=p?[Hs(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:_},u)]:[]}else{var g=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var m=g.get("source",!0);i=[Hs(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Bf(a)}var o,s=[],u=[];return D(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&Bf(h),s.push(f),u.push(l._getVersionSign())}),n?o=Jm(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Am(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Di(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new Vs,s.initData(new Vc(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Di(t)){var r=Ru(t);return r?[r.getSourceManager()]:[]}else return W(am(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Di(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Ff(e){var t=e.option.transform;t&&ra(e.option.transform)}function Di(e){return e.mainType==="series"}function Bf(e){throw new Error(e)}var Kc="line-height:1";function Qc(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+zt(n+"")+"px;color:"+zt(r)+";font-weight:"+zt(i+""),valueStyle:"font-size:"+zt(o+"")+"px;color:"+zt(a)+";font-weight:"+zt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var n1=[0,10,20,30],i1=["",`
`,`
`,`
`];function Gs(e,t){return t.type=e,t}function Us(e){return e.type==="section"}function Jc(e){return Us(e)?a1:o1}function jc(e){if(Us(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=jc(i);a>=t&&(t=a+ +(n&&(!a||Us(i)&&!i.noHeader)))}),t}return 0}function a1(e,t,r,n){var i=t.noHeader,a=s1(jc(t)),o=[],s=t.blocks||[];ye(!s||k(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Dr(l,u)){var f=new Um(l[u],null);s.sort(function(d,_){return f.evaluate(d.sortParam,_.sortParam)})}else u==="seriesDesc"&&s.reverse()}D(s,function(d,_){var p=t.valueFormatter,g=Jc(d)(p?A(A({},e),{valueFormatter:p}):e,d,_>0?a.html:0,n);g!=null&&o.push(g)});var h=e.renderMode==="richText"?o.join(a.richText):Ys(o.join(""),i?r:a.html);if(i)return h;var c=Ns(t.header,"ordinal",e.useUTC),v=Qc(n,e.renderMode).nameStyle;return e.renderMode==="richText"?td(e,c,v)+a.richText+h:Ys('<div style="'+v+";"+Kc+';">'+zt(c)+"</div>"+h,r)}function o1(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(w){return w=k(w)?w:[w],W(w,function(T,S){return Ns(T,k(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":Ns(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),_=!s||!a,p=!s&&a,g=Qc(n,i),y=g.nameStyle,m=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":td(e,c,y))+(o?"":f1(e,d,_,p,m)):Ys((s?"":h)+(a?"":u1(c,!s,y))+(o?"":l1(d,_,p,m)),r)}}function mb(e,t,r,n,i,a){if(e){var o=Jc(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function s1(e){return{html:n1[e],richText:i1[e]}}function Ys(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Kc+';">'+e+r+"</div>"}function u1(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+zt(e)+"</span>"}function l1(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=k(e)?e:[e],'<span style="'+a+";"+n+'">'+W(e,function(o){return zt(o)}).join("&nbsp;&nbsp;")+"</span>"}function td(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function f1(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,a)}function h1(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Qy(n)}function Sb(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var wb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=uv()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Ky({color:r,type:t,renderMode:n,markerId:i});return V(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};k(r)?D(r,function(a){return A(n,a)}):A(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function v1(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=k(s),l=h1(t,r),f,h,c,v;if(o>1||u&&!o){var d=c1(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var _=i.getDimensionInfo(a[0]);v=f=ya(i,r,a[0]),h=_.type}else v=f=u?s[0]:s;var p=cv(t),g=p&&t.name||"",y=i.getName(r),m=n?g:y;return Gs("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Gs("nameValue",{markerType:"item",markerColor:l,name:m,noName:!De(m),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function c1(e,t,r,n,i){var a=t.getData(),o=Ye(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?D(n,function(h){f(ya(a,r,h),h)}):D(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Gs("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Fe=gt();function xi(e,t){return e.getName(t)||e.getId(t)}var d1="__universalTransitionEnabled",$a=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Gn({count:g1,reset:_1}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Fe(this).sourceManager=new Zc(this);a.prepareSource();var o=this.getInitialData(r,i);zf(o,this),this.dataTask.context.data=o,Fe(this).dataBeforeProcessed=o,Nf(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ga(this),a=i?Cc(r):{},o=this.subType;lt.hasClass(o)&&(o+="Series"),tt(r,n.getTheme().get(this.subType)),tt(r,this.getDefaultOption()),xl(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&_a(r,a,i)},t.prototype.mergeOption=function(r,n){r=tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ga(this);i&&_a(this.option,r,i);var a=Fe(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fe(this).dataBeforeProcessed=o,Nf(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ft(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&xl(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Ws(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Fe(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Ws(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Fe(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return U(r)},t.prototype.getSourceManager=function(){return Fe(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Fe(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return v1({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(J.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Iu.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=xi(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=rt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[xi(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[d1])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){N(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=xi(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=xi(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return lt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(lt);Re($a,zm);Re($a,Iu);_v($a,lt);function Nf(e){var t=e.name;cv(e)||(e.name=p1(e)||t)}function p1(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function g1(e){return e.model.getRawData().count()}function _1(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),y1}function y1(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zf(e,t){D(ap(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,nu(m1,t))})}function m1(e,t){var r=Ws(e);return r&&r.setOutputEnd((t||this).count()),t}function Ws(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const ma=$a;var ku=function(){function e(){this.group=new ii,this.uid=Ua("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();hu(ku);vu(ku);const Sa=ku;function S1(){var e=gt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var ed=gt(),w1=S1(),Fu=function(){function e(){this.group=new ii,this.uid=Ua("viewChart"),this.renderTask=Gn({plan:T1,reset:b1}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Vf(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Vf(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){dc(this.group,t)},e.markUpdateMethod=function(t,r){ed(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Hf(e,t,r){e&&Es(e)&&(t==="emphasis"?Ps:Rs)(e,r)}function Vf(e,t,r){var n=Oa(e,t),i=t&&t.highlightKey!=null?w0(t.highlightKey):null;n!=null?D(pt(n),function(a){Hf(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Hf(a,r,i)})}hu(Fu);vu(Fu);function T1(e){return w1(e.model)}function b1(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&ed(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),C1[u]}var C1={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Un=Fu;var wa="\0__throttleOriginMethod",Gf="\0__throttleRate",Uf="\0__throttleType";function rd(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var _=f||t,p=f||r;f=null,s=n-(p?i:a)-_,clearTimeout(o),p?o=setTimeout(h,_):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Tb(e,t,r,n){var i=e[t];if(i){var a=i[wa]||i,o=i[Uf],s=i[Gf];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=rd(a,r,n==="debounce"),i[wa]=a,i[Uf]=n,i[Gf]=r}return i}}function bb(e,t){var r=e[t];r&&r[wa]&&(r.clear&&r.clear(),e[t]=r[wa])}var Yf=gt(),Wf={itemStyle:Kn(_c,!0),lineStyle:Kn(gc,!0)},M1={lineStyle:"stroke",itemStyle:"fill"};function nd(e,t){var r=e.visualStyleMapper||Wf[t];return r||(console.warn("Unknown style type '"+t+"'."),Wf.itemStyle)}function id(e,t){var r=e.visualDrawType||M1[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var D1={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=nd(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=id(e,n),l=o[u],f=Q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var _=e.getDataParams(d),p=A({},o);p[u]=f(_),v.setItemVisual(d,"style",p)}}}},Tn=new Pe,x1={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=nd(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Tn.option=u[n];var l=i(Tn),f=o.ensureUniqueItemVisual(s,"style");A(f,l),Tn.option.decal&&(o.setItemVisual(s,"decal",Tn.option.decal),Tn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},L1={performRawSeries:!0,overallReset:function(e){var t=U();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Yf(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Yf(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=id(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},Li=Math.PI;function P1(e,t){t=t||{},ft(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ii,n=new Le({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Qn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Le({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Su({shape:{startAngle:-Li/2,endAngle:-Li/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Li*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Li*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var R1=function(){function e(t,r,n,i){this._stageTaskMap=U(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=U();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ye(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var _=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(_)}),c.perform(_)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=U(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Gn({plan:k1,reset:F1,count:N1}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Gn({reset:I1});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=U(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";ye(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,D(n.getSeries(),d));function d(_){var p=_.uid,g=u.set(p,s&&s.get(p)||(c=!0,Gn({reset:A1,onDirty:O1})));g.context={model:_,overallProgress:h},g.agent=o,g.__block=h,a._pipe(_,g)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Q(t)&&(t={overallReset:t,seriesType:z1(t)}),t.uid=Ua("stageHandler"),r&&(t.visualType=r),t},e}();function I1(e){e.overallReset(e.ecModel,e.api,e.payload)}function A1(e){return e.overallProgress&&E1}function E1(){this.agent.dirty(),this.getDownstream().dirty()}function O1(){this.agent&&this.agent.dirty()}function k1(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function F1(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=pt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?W(t,function(r,n){return ad(n)}):B1}var B1=ad(0);function ad(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function N1(e){return e.data.count()}function z1(e){Ta=null;try{e(ti,od)}catch{}return Ta}var ti={},od={},Ta;sd(ti,Ec);sd(od,Oc);ti.eachSeriesByType=ti.eachRawSeriesByType=function(e){Ta=e};ti.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ta=e.subType)};function sd(e,t){for(var r in t.prototype)e[r]=Kt}const ud=R1;var $f=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const H1={color:$f,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$f]};var bt="#B9B8CE",Xf="#100C2A",Pi=function(){return{axisLine:{lineStyle:{color:bt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},qf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ld={darkMode:!0,color:qf,backgroundColor:Xf,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:bt}},textStyle:{color:bt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:bt}},dataZoom:{borderColor:"#71708A",textStyle:{color:bt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:bt}},timeline:{lineStyle:{color:bt},label:{color:bt},controlStyle:{color:bt,borderColor:bt}},calendar:{itemStyle:{color:Xf},dayLabel:{color:bt},monthLabel:{color:bt},yearLabel:{color:bt}},timeAxis:Pi(),logAxis:Pi(),valueAxis:Pi(),categoryAxis:Pi(),line:{symbol:"circle"},graph:{color:qf},gauge:{title:{color:bt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:bt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ld.categoryAxis.splitLine.show=!1;const V1=ld;var G1=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(V(t)){var a=pe(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),$s=["symbol","symbolSize","symbolRotate","symbolOffset"],Zf=$s.concat(["symbolKeepAspect"]),U1={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<$s.length;o++){var s=$s[o],u=e.get(s);Q(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(A({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=rt(i);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),_=0;_<l.length;_++){var p=l[_];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},Y1={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Zf.length;s++){var u=Zf[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function W1(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function $1(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Cb(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function Mb(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=A({},i),o.dispatchAction(A(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Vr(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=Oa(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(c)?h.getName(c[0]):h.getName(c),selected:V(u)?u:A({},u)})}})}function X1(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Vr("map","selectchanged",t,i,n),Vr("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Vr("map","selected",t,i,n),Vr("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Vr("map","unselected",t,i,n),Vr("pie","unselected",t,i,n))})}function Ri(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var q1=Math.round(Math.random()*9),Z1=typeof Object.defineProperty=="function",K1=function(){function e(){this._id="__ec_inner_"+q1++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Z1?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const Q1=K1;var J1=Z.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),j1=Z.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),tS=Z.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),eS=Z.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),rS={line:mu,rect:Le,roundRect:Le,square:Le,circle:_u,diamond:j1,pin:tS,arrow:eS,triangle:J1},nS={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Xs={};D(rS,function(e,t){Xs[t]=new e});var iS=Z.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=ev(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Xs[n];i||(n="rect",i=Xs[n]),nS[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function aS(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function oS(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=lc(e.slice(8),new $(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=Tu(e.slice(7),{},new $(t,r,n,i),o?"center":"cover"):u=new iS({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=aS,a&&u.setColor(a),u}function Db(e){return k(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function xb(e,t){if(e!=null)return k(e)||(e=[e,e]),[Pt(e[0],t[0])||0,Pt(H(e[1],e[0]),t[1])||0]}function Sr(e){return isFinite(e)}function sS(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Sr(n)?n:0,i=Sr(i)?i:1,a=Sr(a)?a:0,o=Sr(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function uS(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=Sr(o)?o:.5,s=Sr(s)?s:.5,u=u>=0&&Sr(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function qs(e,t,r){for(var n=t.type==="radial"?uS(e,t,r):sS(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function lS(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Ii(e){return parseInt(e,10)}function Ai(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Ii(s[n])||Ii(e.style[n]))-(Ii(s[a])||0)-(Ii(s[o])||0)|0}function fS(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ot(e)?[e]:k(e)?e:null}function fd(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&fS(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=W(r,function(a){return a/i}),n/=i)}return[r,n]}var hS=new xr(!0);function ba(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Kf(e){return typeof e=="string"&&e!=="none"}function Ca(e){var t=e.fill;return t!=null&&t!=="none"}function Qf(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Jf(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Zs(e,t,r){var n=yv(t.image,t.__image,r);if(Fa(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Vi),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function vS(e,t,r,n){var i,a=ba(r),o=Ca(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||hS,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,_=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,y=void 0,m=void 0,w=void 0,T=void 0,S=void 0;(d||_)&&(S=t.getBoundingRect()),d&&(y=h?qs(e,c,S):t.__canvasFillGradient,t.__canvasFillGradient=y),_&&(m=h?qs(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=h||!t.__canvasFillPattern?Zs(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(T=h||!t.__canvasStrokePattern?Zs(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=y:p&&(w?e.fillStyle=w:o=!1),_?e.strokeStyle=m:g&&(T?e.strokeStyle=T:a=!1)}var M=t.getGlobalScale();f.setScale(M[0],M[1],t.segmentIgnoreThreshold);var b,C;e.setLineDash&&r.lineDash&&(i=fd(t),b=i[0],C=i[1]);var x=!0;(l||h&Ur)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),x=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),x&&f.rebuildPath(e,u?s:1),b&&(e.setLineDash(b),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Jf(e,r),o&&Qf(e,r)):(o&&Qf(e,r),a&&Jf(e,r))),b&&e.setLineDash([])}function cS(e,t,r){var n=t.__image=yv(r.image,t.__image,t,t.onload);if(!(!n||!Fa(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function dS(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Mr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=fd(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ba(r)&&e.strokeText(i,r.x,r.y),Ca(r)&&e.fillText(i,r.x,r.y)):(Ca(r)&&e.fillText(i,r.x,r.y),ba(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var jf=["shadowBlur","shadowOffsetX","shadowOffsetY"],th=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hd(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ot(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?br.opacity:o}(n||t.blend!==r.blend)&&(a||(Ot(e,i),a=!0),e.globalCompositeOperation=t.blend||br.blend);for(var s=0;s<jf.length;s++){var u=jf[s];(n||t[u]!==r[u])&&(a||(Ot(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Ot(e,i),a=!0),e.shadowColor=t.shadowColor||br.shadowColor),a}function eh(e,t,r,n,i){var a=ei(t,i.inHover),o=n?null:r&&ei(r,i.inHover)||{};if(a===o)return!1;var s=hd(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Ot(e,i),s=!0),Kf(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Ot(e,i),s=!0),Kf(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Ot(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Ot(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<th.length;f++){var h=th[f],c=h[0];(n||a[c]!==o[c])&&(s||(Ot(e,i),s=!0),e[c]=a[c]||h[1])}return s}function pS(e,t,r,n,i){return hd(e,ei(t,i.inHover),r&&ei(r,i.inHover),n,i)}function vd(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function gS(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),vd(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function _S(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var rh=1,nh=2,ih=3,ah=4;function yS(e){var t=Ca(e),r=ba(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ot(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ei(e,t){return t&&e.__hoverStyle||e.style}function cd(e,t){wr(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function wr(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ht,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||lS(a,o))&&(o&&o.length&&(Ot(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ot(e,r),e.save(),gS(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof Z&&t.autoBatch&&yS(t.style);s||_S(i,l.transform)?(Ot(e,r),vd(e,t)):f||Ot(e,r);var h=ei(t,r.inHover);t instanceof Z?(r.lastDrawType!==rh&&(u=!0,r.lastDrawType=rh),eh(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),vS(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Ls?(r.lastDrawType!==ih&&(u=!0,r.lastDrawType=ih),eh(e,t,l,u,r),dS(e,t,h)):t instanceof sn?(r.lastDrawType!==nh&&(u=!0,r.lastDrawType=nh),pS(e,t,l,u,r),cS(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==ah&&(u=!0,r.lastDrawType=ah),mS(e,t,r)),f&&n&&Ot(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function mS(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),wr(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),wr(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Uo=new Q1,oh=new ri(100),sh=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function uh(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Uo.delete(e);var a=Uo.get(e);if(a)return a;var o=ft(e,{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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Uo.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<sh.length;++c){var v=o[sh[c]];if(v!=null&&!k(v)&&!V(v)&&!ot(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var _=oh.get(d);_&&(i?l.svgElement=_:l.image=_)}var p=pd(o.dashArrayX),g=SS(o.dashArrayY),y=dd(o.symbol),m=wS(p),w=gd(g),T=!i&&rn.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},M=C(),b;T&&(T.width=M.width*r,T.height=M.height*r,b=T.getContext("2d")),x(),h&&oh.put(d,T||S),l.image=T,l.svgElement=S,l.svgWidth=M.width,l.svgHeight=M.height;function C(){for(var L=1,P=0,I=m.length;P<I;++P)L=Cl(L,m[P]);for(var R=1,P=0,I=y.length;P<I;++P)R=Cl(R,y[P].length);L*=R;var O=w*m.length*y.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function x(){b&&(b.clearRect(0,0,T.width,T.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,T.width,T.height)));for(var L=0,P=0;P<g.length;++P)L+=g[P];if(L<=0)return;for(var I=-w,R=0,O=0,E=0;I<M.height;){if(R%2===0){for(var nt=O/2%y.length,it=0,K=0,st=0;it<M.width*2;){for(var Gt=0,P=0;P<p[E].length;++P)Gt+=p[E][P];if(Gt<=0)break;if(K%2===0){var ut=(1-o.symbolSize)*.5,Ut=it+p[E][K]*ut,Yt=I+g[R]*ut,Ae=p[E][K]*o.symbolSize,$e=g[R]*o.symbolSize,Xe=st/2%y[nt].length;Rr(Ut,Yt,Ae,$e,y[nt][Xe])}it+=p[E][K],++st,++K,K===p[E].length&&(K=0)}++E,E===p.length&&(E=0)}I+=g[R],++O,++R,R===g.length&&(R=0)}function Rr(Nt,ht,B,G,qe){var wt=i?1:r,Gu=oS(qe,Nt*wt,ht*wt,B*wt,G*wt,o.color,o.symbolKeepAspect);if(i){var Uu=n.painter.renderOneToVNode(Gu);Uu&&S.children.push(Uu)}else cd(b,Gu)}}}}function dd(e){if(!e||e.length===0)return[["rect"]];if(V(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!V(e[r])){t=!1;break}if(t)return dd([e]);for(var n=[],r=0;r<e.length;++r)V(e[r])?n.push([e[r]]):n.push(e[r]);return n}function pd(e){if(!e||e.length===0)return[[0,0]];if(ot(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ot(e[n])){r=!1;break}if(r)return pd([e]);for(var i=[],n=0;n<e.length;++n)if(ot(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=W(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function SS(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ot(e)){var t=Math.ceil(e);return[t,t]}var r=W(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function wS(e){return W(e,function(t){return gd(t)})}function gd(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function TS(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=uh(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=uh(i,t)}}})}var bS=new Se;const ee=bS;var _d={};function CS(e,t){_d[e]=t}function MS(e){return _d[e]}var DS=1,xS=800,LS=900,PS=1e3,RS=2e3,IS=5e3,yd=1e3,AS=1100,Bu=2e3,md=3e3,ES=4e3,Xa=4500,OS=4600,kS=5e3,FS=6e3,Sd=7e3,BS={PROCESSOR:{FILTER:PS,SERIES_FILTER:xS,STATISTIC:IS},VISUAL:{LAYOUT:yd,PROGRESSIVE_LAYOUT:AS,GLOBAL:Bu,CHART:md,POST_CHART_LAYOUT:OS,COMPONENT:ES,BRUSH:kS,CHART_ITEM:Xa,ARIA:FS,DECAL:Sd}},yt="__flagInMainProcess",xt="__pendingUpdate",Yo="__needsUpdateStatus",lh=/^[a-zA-Z0-9_]+$/,Wo="__connectUpdateStatus",fh=0,NS=1,zS=2;function wd(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return bd(this,e,t)}}function Td(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bd(this,e,t)}}function bd(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Se.prototype[t].apply(e,r)}var Cd=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Se),Md=Cd.prototype;Md.on=Td("on");Md.off=Td("off");var Gr,$o,Ei,Be,Xo,qo,Zo,bn,Cn,hh,vh,Ko,ch,Oi,dh,Dd,Wt,ph,xd=function(e){z(t,e);function t(r,n,i){var a=e.call(this,new G1)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},V(n)&&(n=Ld[n]),a._dom=r;var o="canvas",s="auto",u=!1;i.ssr&&Ag(function(c){var v=dt(c),d=v.dataIndex;if(d!=null){var _=U();return _.set("series_index",v.seriesIndex),_.set("data_index",d),v.ssrType&&_.set("ssr_type",v.ssrType),_}});var l=a._zr=Tl(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:H(i.useDirtyRect,u),useCoarsePointer:H(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=rd(Et(l.flush,l),17),n=q(n),n&&Bc(n,!0),a._theme=n,a._locale=zy(i.locale||yc),a._coordSysMgr=new kc;var f=a._api=dh(a);function h(c,v){return c.__prio-v.__prio}return Ui(Da,h),Ui(Ks,h),a._scheduler=new ud(a,f,Ks,Da),a._messageCenter=new Cd,a._initEvents(),a.resize=Et(a.resize,a),l.animation.on("frame",a._onframe,a),hh(l,a),vh(l,a),ra(a),a}return t.prototype._onframe=function(){if(!this._disposed){ph(this);var r=this._scheduler;if(this[xt]){var n=this[xt].silent;this[yt]=!0;try{Gr(this),Be.update.call(this,null,this[xt].updateParams)}catch(u){throw this[yt]=!1,this[xt]=null,u}this._zr.flush(),this[yt]=!1,this[xt]=null,bn.call(this,n),Cn.call(this,n)}else if(r.unfinished){var i=DS,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qo(this,a),r.performVisualTasks(a),Oi(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[yt]){if(this._disposed){this.id;return}var a,o,s;if(N(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yt]=!0,!this._model||n){var u=new Tm(this._api),l=this._theme,f=this._model=new Ec;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Qs);var h={seriesTransition:s,optionChanged:!0};if(i)this[xt]={silent:a,updateParams:h},this[yt]=!1,this.getZr().wakeUp();else{try{Gr(this),Be.update.call(this,null,h)}catch(c){throw this[xt]=null,this[yt]=!1,c}this._ssr||this._zr.flush(),this[xt]=null,this[yt]=!1,bn.call(this,a),Cn.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(J.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__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 D(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(gh[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();D(Wn,function(m,w){if(m.group===i){var T=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(q(r)),S=m.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:T,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,_=h-l,p=rn.createCanvas(),g=Tl(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:_}),n){var y="";return D(c,function(m){var w=m.left-u,T=m.top-l;y+='<g transform="translate('+w+","+T+')">'+m.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 Le({shape:{x:0,y:0,width:d,height:_},style:{fill:r.connectedBackgroundColor}})),D(c,function(m){var w=new sn({style:{x:m.left*v-u,y:m.top*v-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Xo(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Xo(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=_o(i,r);return D(o,function(s,u){u.indexOf("Models")>=0&&D(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=_o(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?W1(s,u,n):$1(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(HS,function(n){var i=function(a){var o=r.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Ri(s,function(d){var _=dt(d);if(_&&_.dataIndex!=null){var p=_.dataModel||o.getSeriesByIndex(_.seriesIndex);return u=p&&p.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return u=A({},_.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Yn,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),X1(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&pv(this.getDom(),zu,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Wn[n.id]},t.prototype.resize=function(r){if(!this[yt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[xt]&&(a==null&&(a=this[xt].silent),i=!0,this[xt]=null),this[yt]=!0;try{i&&Gr(this),Be.update.call(this,{type:"resize",animation:A({duration:0},r&&r.animation)})}catch(o){throw this[yt]=!1,o}this[yt]=!1,bn.call(this,a),Cn.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(N(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Js[r]){var i=Js[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=A({},r);return n.type=Yn[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(N(n)||(n={silent:!!n}),!!Ma[r.type]&&this._model){if(this[yt]){this._pendingActions.push(r);return}var i=n.silent;Zo.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),bn.call(this,i),Cn.call(this,i)}},t.prototype.updateLabelLayout=function(){ee.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Gr=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),$o(h,!0),$o(h,!1),c.plan()},$o=function(h,c){for(var v=h._model,d=h._scheduler,_=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,m=0;m<_.length;m++)_[m].__alive=!1;c?v.eachComponent(function(S,M){S!=="series"&&w(M)}):v.eachSeries(w);function w(S){var M=S.__requireNewView;S.__requireNewView=!1;var b="_ec_"+S.id+"_"+S.type,C=!M&&p[b];if(!C){var x=pe(S.type),L=c?Sa.getClass(x.main,x.sub):Un.getClass(x.sub);C=new L,C.init(v,y),p[b]=C,_.push(C),g.add(C.group)}S.__viewId=C.__id=b,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(C,S,v,y)}for(var m=0;m<_.length;){var T=_[m];T.__alive?m++:(!c&&T.renderTask.dispose(),g.remove(T.group),T.dispose(v,y),_.splice(m,1),p[T.__id]===T&&delete p[T.__id],T.__id=T.group.__ecComponentInfo=null)}},Ei=function(h,c,v,d,_){var p=h._model;if(p.setUpdatePayload(v),!d){D([].concat(h._componentsViews).concat(h._chartsViews),T);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var y={mainType:d,query:g};_&&(y.subType=_);var m=v.excludeSeriesId,w;m!=null&&(w=U(),D(pt(m),function(S){var M=oe(S,null);M!=null&&w.set(M,!0)})),p&&p.eachComponent(y,function(S){var M=w&&w.get(S.id)!=null;if(!M)if(Jl(v))if(S instanceof ma)v.type===Cr&&!v.notBlur&&!S.get(["emphasis","disabled"])&&v0(S,v,h._api);else{var b=gu(S.mainType,S.componentIndex,v.name,h._api),C=b.focusSelf,x=b.dispatchers;v.type===Cr&&C&&!v.notBlur&&As(S.mainType,S.componentIndex,h._api),x&&D(x,function(L){v.type===Cr?Ps(L):Rs(L)})}else Os(v)&&S instanceof ma&&(p0(S,v,h._api),Kl(S),Wt(h))},h),p&&p.eachComponent(y,function(S){var M=w&&w.get(S.id)!=null;M||T(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function T(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},Be={prepareAndUpdate:function(h){Gr(this),Be.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,_=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),qo(this,v),p.update(v,d),r(v),g.performVisualTasks(v,h),Ko(this,v,d,h,c);var y=v.get("backgroundColor")||"transparent",m=v.get("darkMode");_.setBackgroundColor(y),m!=null&&m!=="auto"&&_.setDarkMode(m),ee.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var _=[];v.eachComponent(function(g,y){if(g!=="series"){var m=c.getViewOfComponentModel(y);if(m&&m.__alive)if(m.updateTransform){var w=m.updateTransform(y,v,d,h);w&&w.update&&_.push(m)}else _.push(m)}});var p=U();v.eachSeries(function(g){var y=c._chartsMap[g.__viewId];if(y.updateTransform){var m=y.updateTransform(g,v,d,h);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),Oi(this,v,d,h,{},p),ee.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Un.markUpdateMethod(h,"updateView"),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Ko(this,c,this._api,h,{}),ee.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Un.markUpdateMethod(h,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,_){if(d!=="series"){var p=c.getViewOfComponentModel(_);p&&p.__alive&&p.updateVisual(_,v,c._api,h)}}),v.eachSeries(function(d){var _=c._chartsMap[d.__viewId];_.updateVisual(d,v,c._api,h)}),ee.trigger("afterupdate",v,this._api))},updateLayout:function(h){Be.update.call(this,h)}},Xo=function(h,c,v,d){if(h._disposed){h.id;return}for(var _=h._model,p=h._coordSysMgr.getCoordinateSystems(),g,y=_o(_,v),m=0;m<p.length;m++){var w=p[m];if(w[c]&&(g=w[c](_,y,d))!=null)return g}},qo=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(_){d.updateStreamModes(_,v[_.__viewId])})},Zo=function(h,c){var v=this,d=this.getModel(),_=h.type,p=h.escapeConnect,g=Ma[_],y=g.actionInfo,m=(y.update||"update").split(":"),w=m.pop(),T=m[0]!=null&&pe(m[0]);this[yt]=!0;var S=[h],M=!1;h.batch&&(M=!0,S=W(h.batch,function(R){return R=ft(A({},R),h),R.batch=null,R}));var b=[],C,x=Os(h),L=Jl(h);if(L&&Nv(this._api),D(S,function(R){if(C=g.action(R,v._model,v._api),C=C||A({},R),C.type=y.event||C.type,b.push(C),L){var O=dv(h),E=O.queryOptionMap,nt=O.mainTypeSpecified,it=nt?E.keys()[0]:"series";Ei(v,w,R,it),Wt(v)}else x?(Ei(v,w,R,"series"),Wt(v)):T&&Ei(v,w,R,T.main,T.sub)}),w!=="none"&&!L&&!x&&!T)try{this[xt]?(Gr(this),Be.update.call(this,h),this[xt]=null):Be[w].call(this,h)}catch(R){throw this[yt]=!1,R}if(M?C={type:y.event||_,escapeConnect:p,batch:b}:C=b[0],this[yt]=!1,!c){var P=this._messageCenter;if(P.trigger(C.type,C),x){var I={type:"selectchanged",escapeConnect:p,selected:g0(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(I.type,I)}}},bn=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Zo.call(this,v,h)}},Cn=function(h){!h&&this.trigger("updated")},hh=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[xt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},vh=function(h,c){h.on("mouseover",function(v){var d=v.target,_=Ri(d,Es);_&&(c0(_,v,c._api),Wt(c))}).on("mouseout",function(v){var d=v.target,_=Ri(d,Es);_&&(d0(_,v,c._api),Wt(c))}).on("click",function(v){var d=v.target,_=Ri(d,function(y){return dt(y).dataIndex!=null},!0);if(_){var p=_.selected?"unselect":"select",g=dt(_);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,m){var w=m.get("zlevel")||0,T=m.get("z")||0,S=m.getZLevelKey();d=d||!!S,(y==="series"?v:c).push({zlevel:w,z:T,idx:m.componentIndex,type:y,key:S})}),d){var _=c.concat(v),p,g;Ui(_,function(y,m){return y.zlevel===m.zlevel?y.z-m.z:y.zlevel-m.zlevel}),D(_,function(y){var m=h.getComponent(y.type,y.idx),w=y.zlevel,T=y.key;p!=null&&(w=Math.max(p,w)),T?(w===p&&T!==g&&w++,g=T):g&&(w===p&&w++,g=""),p=w,m.setZLevel(w)})}}Ko=function(h,c,v,d,_){n(c),ch(h,c,v,d,_),D(h._chartsViews,function(p){p.__alive=!1}),Oi(h,c,v,d,_),D(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},ch=function(h,c,v,d,_,p){D(p||h._componentsViews,function(g){var y=g.__model;l(y,g),g.render(y,c,v,d),s(y,g),f(y,g)})},Oi=function(h,c,v,d,_,p){var g=h._scheduler;_=A(_||{},{updatedSeries:c.getSeries()}),ee.trigger("series:beforeupdate",c,v,_);var y=!1;c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];w.__alive=!0;var T=w.renderTask;g.updatePayload(T,d),l(m,w),p&&p.get(m.uid)&&T.dirty(),T.perform(g.getPerformArgs(T))&&(y=!0),w.group.silent=!!m.get("silent"),o(m,w),Kl(m)}),g.unfinished=y||g.unfinished,ee.trigger("series:layoutlabels",c,v,_),ee.trigger("series:transition",c,v,_),c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];s(m,w),f(m,w)}),a(h,c),ee.trigger("series:afterupdate",c,v,_)},Wt=function(h){h[Yo]=!0,h.getZr().wakeUp()},ph=function(h){h[Yo]&&(h.getZr().storage.traverse(function(c){tn(c)||i(c)}),h[Yo]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var _=v[d];_==="emphasis"||_==="blur"||_==="select"||c.push(_)}h.selected&&h.states.select&&c.push("select"),h.hoverState===za&&h.states.emphasis?c.push("emphasis"):h.hoverState===Na&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,_=0;d.traverse(function(p){p.isGroup||_++}),_>c.get("hoverLayerThreshold")&&!J.node&&!J.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(_){return u(_,v,d,-1/0),!0})}}function u(h,c,v,d){var _=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var y=h.childrenRef(),m=0;m<y.length;m++)d=Math.max(u(y[m],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(_&&(_.z=c,_.zlevel=v,isFinite(d)&&(_.z2=d+2)),p){var w=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(w&&w.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!tn(v)){var d=v.getTextContent(),_=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),_&&_.stateTransition&&(_.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),_=v.get("duration"),p=_>0?{duration:_,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(tn(g))return;if(g instanceof Z&&T0(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&i(g)}})}dh=function(h){return new(function(c){z(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var _=d.__ecComponentInfo;if(_!=null)return h._model.getComponent(_.mainType,_.index);d=d.parent}},v.prototype.enterEmphasis=function(d,_){Ps(d,_),Wt(h)},v.prototype.leaveEmphasis=function(d,_){Rs(d,_),Wt(h)},v.prototype.enterBlur=function(d){h0(d),Wt(h)},v.prototype.leaveBlur=function(d){Ov(d),Wt(h)},v.prototype.enterSelect=function(d){kv(d),Wt(h)},v.prototype.leaveSelect=function(d){Fv(d),Wt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Oc))(h)},Dd=function(h){function c(v,d){for(var _=0;_<v.length;_++){var p=v[_];p[Wo]=d}}D(Yn,function(v,d){h._messageCenter.on(d,function(_){if(gh[h.group]&&h[Wo]!==fh){if(_&&_.escapeConnect)return;var p=h.makeActionFromEvent(_),g=[];D(Wn,function(y){y!==h&&y.group===h.group&&g.push(y)}),c(g,fh),D(g,function(y){y[Wo]!==NS&&y.dispatchAction(p)}),c(g,zS)}})})}}(),t}(Se),Nu=xd.prototype;Nu.on=wd("on");Nu.off=wd("off");Nu.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var HS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ma={},Yn={},Ks=[],Qs=[],Da=[],Ld={},Js={},Wn={},gh={},VS=+new Date-0,zu="_echarts_instance_";function Lb(e,t,r){var n=!(r&&r.ssr);if(n){var i=GS(e);if(i)return i}var a=new xd(e,t,r);return a.id="ec_"+VS++,Wn[a.id]=a,n&&pv(e,zu,a.id),Dd(a),ee.trigger("afterinit",a),a}function GS(e){return Wn[Jg(e,zu)]}function Pd(e,t){Ld[e]=t}function Rd(e){j(Qs,e)<0&&Qs.push(e)}function Id(e,t){Vu(Ks,e,t,RS)}function US(e){Hu("afterinit",e)}function YS(e){Hu("afterupdate",e)}function Hu(e,t){ee.on(e,t)}function fn(e,t,r){Q(t)&&(r=t,t="");var n=N(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Yn[t]&&(ye(lh.test(n)&&lh.test(t)),Ma[n]||(Ma[n]={action:r,actionInfo:e}),Yn[t]=n)}function WS(e,t){kc.register(e,t)}function $S(e,t){Vu(Da,e,t,yd,"layout")}function Pr(e,t){Vu(Da,e,t,md,"visual")}var _h=[];function Vu(e,t,r,n,i){if((Q(t)||N(t))&&(r=t,t=n),!(j(_h,r)>=0)){_h.push(r);var a=ud.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Ad(e,t){Js[e]=t}function XS(e,t,r){var n=MS("registerMap");n&&n(e,t,r)}var qS=Qm;Pr(Bu,D1);Pr(Xa,x1);Pr(Xa,L1);Pr(Bu,U1);Pr(Xa,Y1);Pr(Sd,TS);Rd(Bc);Id(LS,Rm);Ad("default",P1);fn({type:Cr,event:Cr,update:Cr},Kt);fn({type:Ki,event:Ki,update:Ki},Kt);fn({type:Nn,event:Nn,update:Nn},Kt);fn({type:Qi,event:Qi,update:Qi},Kt);fn({type:zn,event:zn,update:zn},Kt);Pd("light",H1);Pd("dark",V1);var yh=[],ZS={registerPreprocessor:Rd,registerProcessor:Id,registerPostInit:US,registerPostUpdate:YS,registerUpdateLifecycle:Hu,registerAction:fn,registerCoordinateSystem:WS,registerLayout:$S,registerVisual:Pr,registerTransform:qS,registerLoading:Ad,registerMap:XS,registerImpl:CS,PRIORITY:BS,ComponentModel:lt,ComponentView:Sa,SeriesModel:ma,ChartView:Un,registerComponentModel:function(e){lt.registerClass(e)},registerComponentView:function(e){Sa.registerClass(e)},registerSeriesModel:function(e){ma.registerClass(e)},registerChartView:function(e){Un.registerClass(e)},registerSubTypeDefaulter:function(e,t){lt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ig(e,t)}};function KS(e){if(k(e)){D(e,function(t){KS(t)});return}j(yh,e)>=0||(yh.push(e),Q(e)&&(e={install:e}),e.install(ZS))}function Mn(e){return e==null?0:e.length||1}function mh(e){return e}var QS=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||mh,this._newKeyGetter=i||mh,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=Mn(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=Mn(l),c=Mn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Mn(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[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Mn(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}();const JS=QS;var jS=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function tw(e,t){var r={},n=r.encode={},i=U(),a=[],o=[],s={};D(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var _=v.coordDimIndex;Qo(n,d)[_]=c,v.isExtraCoord||(i.set(d,1),ew(v.type)&&(a[0]=c),Qo(s,d)[_]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Dc.each(function(p,g){var y=Qo(n,g),m=v.otherDims[g];m!=null&&m!==!1&&(y[m]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=W(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new jS(s,t),r}function Qo(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Pb(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function ew(e){return!(e==="ordinal"||e==="time")}var rw=function(){function e(t){this.otherDims={},t!=null&&A(this,t)}return e}();const ea=rw;var nw=gt(),iw={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ed=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=kd(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return H(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Hc(this.source),n=!Fd(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=iw[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function aw(e){return e instanceof Ed}function Od(e){for(var t=U(),r=0;r<(e||[]).length;r++){var n=e[r],i=N(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function kd(e){var t=nw(e);return t.dimNameMap||(t.dimNameMap=Od(e.dimensionsDefine))}function Fd(e){return e>30}var Dn=N,Ne=W,ow=typeof Int32Array>"u"?Array:Int32Array,sw="e\0\0",Sh=-1,uw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lw=["_approximateExtent"],wh,ki,xn,Ln,Jo,Fi,jo,fw=function(){function e(t,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;aw(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=V(h)?new ea({name:h}):h instanceof ea?h:new ea(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var _=this._dimIdxToName=U();D(o,function(p){_.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ot(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Vs&&(a=t),!a){var o=this.dimensions,s=Au(t)||kt(t)?new Vc(t,o.length):t;a=new Vs;var u=Ne(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=tw(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&jo(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ue&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===we;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&Vg(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=oe(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=oe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)jo(this,f);wh(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Dn(t)?A(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=xn(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return ki(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return k(t)?i.getValues(Ne(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?Sh:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Q(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ne(Ln(t),this._getStoreDimIndex,this);this._store.each(a,i?Et(r,i):r)},e.prototype.filterSelf=function(t,r,n){Q(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ne(Ln(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Et(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=rt(t);return D(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Q(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Ne(Ln(t),this._getStoreDimIndex,this),s=Fi(this);return s._store=this._store.map(o,a?Et(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Ne(Ln(t),this._getStoreDimIndex,this);this._store.modify(o,a?Et(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Fi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Fi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Pe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new JS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ki(t,n)},function(n){return ki(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Dn(t)?A(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Dn(a)&&(a=A({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Dn(r)?A(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Dn(t)?A(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?A(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;e0(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ne(this.dimensions,this._getDimInfo,this),this.hostModel)),Jo(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(iu(arguments)))})},e.internalField=function(){wh=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ow(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Sh;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},xn=function(t,r,n){return oe(t._getCategory(r,n),null)},ki=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=xn(t,t._idDimIdx,r)),n==null&&(n=sw+r),n},Ln=function(t){return k(t)||(t=t!=null?[t]:[]),t},Fi=function(t){var r=new e(t._schema?t._schema:Ne(t.dimensions,t._getDimInfo,t),t.hostModel);return Jo(r,t),r},Jo=function(t,r){D(uw.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(lw,function(n){t[n]=q(r[n])}),t._calculationInfo=A({},r._calculationInfo)},jo=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=xn(t,a,r)),u==null&&o!=null&&(i[r]=u=xn(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}}(),e}();const Rb=fw;function Ib(e,t){return hw(e,t).dimensions}function hw(e,t){Au(e)||(e=Nc(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=U(),a=[],o=cw(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Fd(o),u=n===e.dimensionsDefine,l=u?kd(e):Od(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=U(f),c=new Xc(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var x=c[C];if(x<0){var L=n[C],P=N(L)?L:{name:L},I=new ea,R=P.name;R!=null&&l.get(R)!=null&&(I.name=I.displayName=R),P.type!=null&&(I.type=P.type),P.displayName!=null&&(I.displayName=P.displayName);var O=a.length;return c[C]=O,I.storeDimIndex=C,a.push(I),I}return a[x]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,x){var L=pt(C).slice();if(L.length===1&&!V(L[0])&&L[0]<0){h.set(x,!1);return}var P=h.set(x,[]);D(L,function(I,R){var O=V(I)?l.get(I):I;O!=null&&O<o&&(P[R]=O,p(d(O),x,R))})});var _=0;D(r,function(C){var x,L,P,I;if(V(C))x=C,I={};else{I=C,x=I.name;var R=I.ordinalMeta;I.ordinalMeta=null,I=A({},I),I.ordinalMeta=R,L=I.dimsDef,P=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var O=h.get(x);if(O!==!1){if(O=pt(O),!O.length)for(var E=0;E<(L&&L.length||1);E++){for(;_<o&&d(_).coordDim!=null;)_++;_<o&&O.push(_++)}D(O,function(nt,it){var K=d(nt);if(u&&I.type!=null&&(K.type=I.type),p(ft(K,I),x,it),K.name==null&&L){var st=L[it];!N(st)&&(st={name:st}),K.name=K.displayName=st.name,K.defaultTooltip=st.defaultTooltip}P&&ft(K.otherDims,P)})}});function p(C,x,L){Dc.get(x)!=null?C.otherDims[x]=L:(C.coordDim=x,C.coordDimIndex=L,i.set(x,!0))}var g=t.generateCoord,y=t.generateCoordCount,m=y!=null;y=g?y||1:0;var w=g||"value";function T(C){C.name==null&&(C.name=C.coordDim)}if(s)D(a,function(C){T(C)}),a.sort(function(C,x){return C.storeDimIndex-x.storeDimIndex});else for(var S=0;S<o;S++){var M=d(S),b=M.coordDim;b==null&&(M.coordDim=dw(w,i,m),M.coordDimIndex=0,(!g||y<=0)&&(M.isExtraCoord=!0),y--),T(M),M.type==null&&(Pc(e,S)===vt.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return vw(a),new Ed({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function vw(e){for(var t=U(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function cw(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;N(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function dw(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Pn=Math.PI*2,pr=xr.CMD,pw=["top","right","bottom","left"];function gw(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function _w(e,t,r,n,i,a,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*r+e,h=s*r+t;if(Math.abs(n-i)%Pn<1e-4)return u[0]=f,u[1]=h,l-r;if(a){var c=n;n=xe(i),i=xe(c)}else n=xe(n),i=xe(i);n>i&&(i+=Pn);var v=Math.atan2(s,o);if(v<0&&(v+=Pn),v>=n&&v<=i||v+Pn>=n&&v+Pn<=i)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,_=r*Math.sin(n)+t,p=r*Math.cos(i)+e,g=r*Math.sin(i)+t,y=(d-o)*(d-o)+(_-s)*(_-s),m=(p-o)*(p-o)+(g-s)*(g-s);return y<m?(u[0]=d,u[1]=_,Math.sqrt(y)):(u[0]=p,u[1]=g,Math.sqrt(m))}function xa(e,t,r,n,i,a,o,s){var u=i-e,l=a-t,f=r-e,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var _=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((_-i)*(_-i)+(p-a)*(p-a))}function Bd(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,u=t+n,l=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var re=[];function yw(e,t,r){var n=Bd(t.x,t.y,t.width,t.height,e.x,e.y,re);return r.set(re[0],re[1]),n}function mw(e,t,r){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=e.x,c=e.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var _=l;switch(d){case pr.M:a=f[v++],o=f[v++],n=a,i=o;break;case pr.L:_=xa(n,i,f[v],f[v+1],h,c,re,!0),n=f[v++],i=f[v++];break;case pr.C:_=$h(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,re),n=f[v++],i=f[v++];break;case pr.Q:_=qh(n,i,f[v++],f[v++],f[v],f[v+1],h,c,re),n=f[v++],i=f[v++];break;case pr.A:var p=f[v++],g=f[v++],y=f[v++],m=f[v++],w=f[v++],T=f[v++];v+=1;var S=!!(1-f[v++]);s=Math.cos(w)*y+p,u=Math.sin(w)*m+g,v<=1&&(a=s,o=u);var M=(h-p)*m/y+p;_=_w(p,g,m,w,w+T,S,M,c,re),n=Math.cos(w+T)*y+p,i=Math.sin(w+T)*m+g;break;case pr.R:a=n=f[v++],o=i=f[v++];var b=f[v++],C=f[v++];_=Bd(a,o,b,C,h,c,re);break;case pr.Z:_=xa(n,i,a,o,h,c,re,!0),n=a,i=o;break}_<l&&(l=_,r.set(re[0],re[1]))}return l}var ne=new F,X=new F,et=new F,ge=new F,de=new F;function Th(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||pw,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=i.anchor,f=e.getComputedTransform(),h=f&&ou([],f),c=t.get("length2")||0;l&&et.copy(l);for(var v=0;v<o.length;v++){var d=o[v];gw(d,0,s,ne,ge),F.scaleAndAdd(X,ne,ge,c),X.transform(h);var _=e.getBoundingRect(),p=l?l.distance(X):e instanceof Z?mw(X,e.path,et):yw(X,_,et);p<u&&(u=p,X.transform(f),et.transform(f),et.toArray(a[0]),X.toArray(a[1]),ne.toArray(a[2]))}Sw(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var La=[],Mt=new F;function Sw(e,t){if(t<=180&&t>0){t=t/180*Math.PI,ne.fromArray(e[0]),X.fromArray(e[1]),et.fromArray(e[2]),F.sub(ge,ne,X),F.sub(de,et,X);var r=ge.len(),n=de.len();if(!(r<.001||n<.001)){ge.scale(1/r),de.scale(1/n);var i=ge.dot(de),a=Math.cos(t);if(a<i){var o=xa(X.x,X.y,et.x,et.y,ne.x,ne.y,La,!1);Mt.fromArray(La),Mt.scaleAndAdd(de,o/Math.tan(Math.PI-t));var s=et.x!==X.x?(Mt.x-X.x)/(et.x-X.x):(Mt.y-X.y)/(et.y-X.y);if(isNaN(s))return;s<0?F.copy(Mt,X):s>1&&F.copy(Mt,et),Mt.toArray(e[1])}}}}function Ab(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ne.fromArray(e[0]),X.fromArray(e[1]),et.fromArray(e[2]),F.sub(ge,X,ne),F.sub(de,et,X);var n=ge.len(),i=de.len();if(!(n<.001||i<.001)){ge.scale(1/n),de.scale(1/i);var a=ge.dot(t),o=Math.cos(r);if(a<o){var s=xa(X.x,X.y,et.x,et.y,ne.x,ne.y,La,!1);Mt.fromArray(La);var u=Math.PI/2,l=Math.acos(de.dot(t)),f=u+l-r;if(f>=u)F.copy(Mt,et);else{Mt.scaleAndAdd(de,s/Math.tan(Math.PI/2-f));var h=et.x!==X.x?(Mt.x-X.x)/(et.x-X.x):(Mt.y-X.y)/(et.y-X.y);if(isNaN(h))return;h<0?F.copy(Mt,X):h>1&&F.copy(Mt,et)}Mt.toArray(e[1])}}}}function ts(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function ww(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=us(n[0],n[1]),a=us(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Za([],n[1],n[0],o/i),u=Za([],n[1],n[2],o/a),l=Za([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function Tw(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<la.length;u++){var l=la[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:H(i.states[l]&&i.states[l].ignore,s);if(v||!H(c,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0),n&&ts(n,!0,l,f);continue}n||(n=new yu,e.setTextGuideLine(n),!h&&(s||!o)&&ts(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ts(n,!1,l,f)}}if(n){ft(n.style,r),n.style.fill=null;var _=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=_||!1,n.buildPath=ww}}function bw(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<me.length;n++){var i=me[n];r[i]=e.getModel([i,t])}return r}function Cw(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new fa(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Nd(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(b,C){return b.rect[t]-C.rect[t]});for(var s=0,u,l=!1,f=0,h=0;h<o;h++){var c=e[h],v=c.rect;u=v[t]-s,u<0&&(v[t]-=u,c.label[t]-=u,l=!0);var d=Math.max(-u,0);f+=d,s=v[t]+v[r]}f>0&&a&&T(-f/o,0,o);var _=e[0],p=e[o-1],g,y;m(),g<0&&S(-g,.8),y<0&&S(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&M(-g),y<0&&M(y);function m(){g=_.rect[t]-n,y=i-p.rect[t]-p.rect[r]}function w(b,C,x){if(b<0){var L=Math.min(C,-b);if(L>0){T(L*x,0,o);var P=L+b;P<0&&S(-P*x,1)}else S(-b*x,1)}}function T(b,C,x){b!==0&&(l=!0);for(var L=C;L<x;L++){var P=e[L],I=P.rect;I[t]+=b,P.label[t]+=b}}function S(b,C){for(var x=[],L=0,P=1;P<o;P++){var I=e[P-1].rect,R=Math.max(e[P].rect[t]-I[t]-I[r],0);x.push(R),L+=R}if(L){var O=Math.min(Math.abs(b)/L,C);if(b>0)for(var P=0;P<o-1;P++){var E=x[P]*O;T(E,0,P+1)}else for(var P=o-1;P>0;P--){var E=x[P-1]*O;T(-E,P,o)}}}function M(b){var C=b<0?-1:1;b=Math.abs(b);for(var x=Math.ceil(b/(o-1)),L=0;L<o-1;L++)if(C>0?T(x,0,L+1):T(-x,o-L-1,o),b-=x,b<=0)return}return l}function Mw(e,t,r,n){return Nd(e,"x","width",t,r,n)}function Dw(e,t,r,n){return Nd(e,"y","height",t,r,n)}function xw(e){var t=[];e.sort(function(_,p){return p.priority-_.priority});var r=new $(0,0,0,0);function n(_){if(!_.ignore){var p=_.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}_.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new fa(d.localRect,d.transform)),h||(h=new fa(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(n(l),f&&n(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function Lw(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Pw(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Lw(n&&n.shape.points)}}var bh=["align","verticalAlign","width","height","fontSize"],Tt=new Aa,es=gt(),Rw=gt();function Bi(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var Ni=["x","y","rotation"],Iw=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,u=s.textConfig||{},l=i.getComputedTransform(),f=i.getBoundingRect().plain();$.applyTransform(f,f,l),l?Tt.setLocalTransform(l):(Tt.x=Tt.y=Tt.rotation=Tt.originX=Tt.originY=0,Tt.scaleX=Tt.scaleY=1),Tt.rotation=xe(Tt.rotation);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();$.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Tt.x,y:Tt.y,scaleX:Tt.scaleX,scaleY:Tt.scaleY,rotation:Tt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Q(i)||rt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=dt(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(m,w){return function(){Th(m,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;Q(o.layoutOption)?f=o.layoutOption(Pw(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=Pt(f.x,r),s.setStyle("x",0),c=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=Pt(f.y,n),s.setStyle("y",0),c=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=es(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var _=0;_<bh.length;_++){var p=bh[_];s.setStyle(p,f[p]!=null?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(u,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=Cw(this._labelList),a=Lt(i,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=Lt(i,function(u){return u.layoutOption.moveOverlap==="shiftY"});Mw(a,0,r),Dw(o,0,n);var s=Lt(i,function(u){return u.layoutOption.hideOverlap});xw(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=es(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=dt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var h=s.getModel("labelLine");Tw(t,bw(s),u),Th(t,h)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!tn(t))){var a=es(n),o=a.oldLayout,s=dt(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(j(c,"select")>=0&&n.attr(a.oldLayoutSelect),j(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Jn(n,l,r,u)}else if(n.attr(l),!Ga(n).valueAnimation){var h=H(n.style.opacity,1);n.style.opacity=0,ha(n,{style:{opacity:h}},r,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};Bi(v,l,Ni),Bi(v,n.states.select,Ni)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Bi(d,l,Ni),Bi(d,n.states.emphasis,Ni)}Dy(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Rw(i),o=a.oldLayout,_={points:i.shape.points};o?(i.attr({shape:o}),Jn(i,{shape:_},r)):(i.setShape(_),i.style.strokePercent=0,ha(i,{style:{strokePercent:1}},r)),a.oldLayout=_}},e}();const Aw=Iw;var rs=gt();function Eb(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=rs(r).labelManager;i||(i=rs(r).labelManager=new Aw),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=rs(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function Ch(e,t,r){var n=rn.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Ew=function(e){z(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||ua,typeof r=="string"?o=Ch(r,n,i):N(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ah(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Ch("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new $(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new $(0,0,0,0);m.copy(y),o.push(m)}else{for(var w=!1,T=1/0,S=0,M=0;M<o.length;++M){var b=o[M];if(b.intersect(y)){var C=new $(0,0,0,0);C.copy(b),C.union(y),o[M]=C,w=!0;break}else if(u){l.copy(y),l.union(b);var x=y.width*y.height,L=b.width*b.height,P=l.width*l.height,I=P-x-L;I<T&&(T=I,S=M)}}if(u&&(o[S].union(y),w=!0),!w){var m=new $(0,0,0,0);m.copy(y),o.push(m)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Ht||!v)?c.getPrevPaintRect():null;d&&f(d);var _=v&&(c.__dirty&Ht||!c.__isRendered)?c.getPaintRect():null;_&&f(_)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(_,p,g,y){if(o.clearRect(_,p,g,y),n&&n!=="transparent"){var m=void 0;if(Ra(n)){var w=n.global||n.__width===g&&n.__height===y;m=w&&n.__canvasGradient||qs(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=m,n.__width=g,n.__height=y}else tp(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,m=Zs(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=m||n,o.fillRect(_,p,g,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,_,p,g,y),o.restore())}!i||l?d(0,0,s,u):i.length&&D(i,function(_){d(_.x*h,_.y*h,_.width*h,_.height*h)})},t}(Se);const ns=Ew;var Mh=1e5,gr=314159,zi=.01,Ow=.001;function kw(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Fw(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Bw=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=A({},n||{}),this.dpr=n.devicePixelRatio||ua,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Ah(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new ns(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[gr]=v,v.zlevel=gr,s.push(gr),this._domRoot=t}else{this._width=Ai(t,0,n),this._height=Ai(t,1,n);var l=this._domRoot=Fw(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Mh)),a||(a=n.ctx,a.save()),wr(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Mh)},e.prototype.paintOne=function(t,r){cd(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;vs(function(){u._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(gr).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(_){var p=a[_],g=p.ctx,y=o&&p.createRepaintRects(t,r,v._width,v._height),m=n?p.__startIndex:p.__drawIndex,w=!n&&p.incremental&&Date.now,T=w&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,y);else if(m===p.__startIndex){var M=t[m];(!M.incremental||!M.notClear||n)&&p.clear(!1,S,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var b,C=function(I){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(b=m;b<p.__endIndex;b++){var O=t[b];if(O.__inHover&&(h=!0),i._doPaintEl(O,p,o,I,R,b===p.__endIndex-1),w){var E=Date.now()-T;if(E>15)break}}R.prevElClipPaths&&g.restore()};if(y)if(y.length===0)b=p.__endIndex;else for(var x=v.dpr,L=0;L<y.length;++L){var P=y[L];g.save(),g.beginPath(),g.rect(P.x*x,P.y*x,P.width*x,P.height*x),g.clip(),C(P),g.restore()}else g.save(),C(),g.restore();p.__drawIndex=b,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return J.wxa&&D(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(wr(s,t,a,o),t.setPrevPaintRect(u))}else wr(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=gr);var n=this._layers[t];return n||(n=new ns("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?tt(n,this._layerConfig[t],!0):this._layerConfig[t-zi]&&tt(n,this._layerConfig[t-zi],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&kw(r)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+Ow,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?zi:0),this._needsManuallyCompositing),f.__builtin__||ru("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&Ht&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?tt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+zi){var o=this._layers[a];tt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(j(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Ai(a,0,i),r=Ai(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(gr).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[gr].dom;var r=new ns("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];wr(n,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const Nw=Bw;function Ob(e){e.registerPainter("canvas",Nw)}var zw=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new Zc(this),Ff(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Ff(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:_e},t}(lt),Hw=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Sa);function kb(e){e.registerComponentModel(zw),e.registerComponentView(Hw)}export{Du as $,Pt as A,Sc as B,kc as C,$T as D,qT as E,Xy as F,ZT as G,ot as H,on as I,Gy as J,Uy as K,Yy as L,WT as M,XT as N,Wy as O,Lt as P,$y as Q,rb as R,fu as S,nb as T,eb as U,tb as V,jT as W,JT as X,Lu as Y,xu as Z,z as _,V as a,oS as a$,pa as a0,Mu as a1,Vn as a2,Tc as a3,QT as a4,KT as a5,TT as a6,qn as a7,ep as a8,$ as a9,Ls as aA,eg as aB,rg as aC,H as aD,hl as aE,fT as aF,jp as aG,ye as aH,yv as aI,q as aJ,Mr as aK,aT as aL,uu as aM,iT as aN,j_ as aO,J_ as aP,Gd as aQ,lT as aR,uT as aS,dT as aT,nT as aU,oT as aV,sT as aW,Ai as aX,cT as aY,Kt as aZ,ii as a_,sr as aa,Oh as ab,Gi as ac,ou as ad,Qr as ae,Wr as af,$r as ag,gt as ah,wg as ai,_T as aj,pT as ak,rT as al,sn as am,eT as an,fd as ao,bv as ap,zt as aq,X0 as ar,Zh as as,Sg as at,A as au,vT as av,xr as aw,hT as ax,ll as ay,Z as az,aw as b,Ty as b$,ma as b0,ya as b1,Ps as b2,Rs as b3,Jn as b4,NT as b5,ha as b6,GT as b7,xb as b8,VT as b9,jy as bA,F as bB,Sw as bC,Ab as bD,Dw as bE,yu as bF,Tw as bG,Hi as bH,bw as bI,Et as bJ,cb as bK,yT as bL,xl as bM,Mb as bN,lt as bO,Re as bP,tt as bQ,ga as bR,Cc as bS,_a as bT,Yw as bU,j as bV,mu as bW,fy as bX,Cw as bY,xw as bZ,lf as b_,OT as ba,dt as bb,uc as bc,Db as bd,dc as be,Yh as bf,ct as bg,Le as bh,Zv as bi,Qy as bj,kT as bk,Oa as bl,Un as bm,ET as bn,Qn as bo,jg as bp,Ga as bq,K0 as br,me as bs,Jw as bt,YT as bu,ev as bv,iy as bw,UT as bx,rd as by,x_ as bz,U as c,fp as c$,Lp as c0,Pe as c1,ST as c2,wT as c3,Sa as c4,gy as c5,KS as c6,Gw as c7,tc as c8,HT as c9,Vw as cA,Ye as cB,Ri as cC,AT as cD,ap as cE,Na as cF,ic as cG,oe as cH,pb as cI,pt as cJ,fb as cK,lb as cL,Kn as cM,JS as cN,sb as cO,Es as cP,zv as cQ,m0 as cR,Ph as cS,Qw as cT,ni as cU,ae as cV,DT as cW,jw as cX,tT as cY,mT as cZ,op as c_,h1 as ca,Gs as cb,_u as cc,Qv as cd,ly as ce,fn as cf,Zw as cg,Mp as ch,Se as ci,Dr as cj,$v as ck,L0 as cl,J0 as cm,De as cn,Pp as co,Qu as cp,Jr as cq,Ua as cr,ai as cs,f0 as ct,uh as cu,FT as cv,r0 as cw,Aa as cx,kh as cy,Ww as cz,Nc as d,qw as d$,qa as d0,an as d1,sp as d2,up as d3,$w as d4,Xw as d5,aa as d6,mt as d7,Kr as d8,v1 as d9,Xn as dA,Wi as dB,kt as dC,ny as dD,ff as dE,My as dF,Tu as dG,uy as dH,my as dI,bc as dJ,J as dK,hb as dL,ab as dM,Hy as dN,Gg as dO,tm as dP,Jy as dQ,PT as dR,ub as dS,os as dT,bp as dU,_o as dV,db as dW,xT as dX,ib as dY,jt as dZ,Sb as d_,e0 as da,Dy as db,We as dc,Tb as dd,bb as de,vc as df,gT as dg,dy as dh,cy as di,_y as dj,IT as dk,CT as dl,Bt as dm,Rt as dn,vy as dp,Kw as dq,us as dr,al as ds,kr as dt,R_ as du,rn as dv,Bg as dw,xe as dx,la as dy,sl as dz,D as e,RT as e0,wb as e1,gb as e2,mb as e3,Zy as e4,dv as e5,ka as e6,W1 as e7,Cb as e8,Sy as e9,ob as eA,XS as eB,zm as ea,_0 as eb,ta as ec,h0 as ed,Ov as ee,$1 as ef,cv as eg,Xs as eh,LT as ei,MT as ej,_b as ek,yb as el,Uw as em,Um as en,ue as eo,ia as ep,BT as eq,Za as er,d1 as es,zT as et,Ob as eu,kb as ev,Eb as ew,Ib as ex,$S as ey,Rd as ez,we as f,Q as g,nu as h,Lb as i,Rb as j,k,Ea as l,vb as m,W as n,Pb as o,hw as p,vu as q,N as r,bT as s,Cs as t,qr as u,sv as v,qy as w,S1 as x,ft as y,rt as z};