@overkill-dev/reporter-benchmark-html 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";var t,e,n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M,T,I,C,k,D,A,P,O,L,R,B,z,E,N,V,F,H,W,G,U,Z,X,Y,q,j,K,$={};$.d=(t,e,n)=>{var i=(e,n)=>{for(var i in e)$.o(e,i)&&!$.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,[n]:e[i]})};i(e,"get"),i(n,"value")},$.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),$.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var Q={};$.r(Q),$.d(Q,{Arc:()=>pd,BezierCurve:()=>ph,BoundingRect:()=>no,Circle:()=>cN,CompoundPath:()=>pf,Ellipse:()=>cH,Group:()=>rS,HOVER_LAYER_FOR_INCREMENTAL:()=>pU,HOVER_LAYER_FROM_THRESHOLD:()=>pG,HOVER_LAYER_NO:()=>pW,Image:()=>aJ,IncrementalDisplayable:()=>pk,Line:()=>po,LinearGradient:()=>pv,OrientedBoundingRect:()=>pI,Path:()=>aY,Point:()=>eG,Polygon:()=>c7,Polyline:()=>pe,RadialGradient:()=>pm,Rect:()=>a6,Ring:()=>c3,Sector:()=>c1,Text:()=>sf,WH:()=>pH,XY:()=>pF,applyTransform:()=>p4,calcZ2Range:()=>dg,clipPointsByRect:()=>p7,clipRectByRect:()=>p9,createIcon:()=>dt,decomposeTransform:()=>dy,ensureCopyRect:()=>dp,ensureCopyTransform:()=>dd,expandOrShrinkRect:()=>di,extendPath:()=>pY,extendShape:()=>pZ,getCurrentCanvasPainter:()=>dx,getShapeClass:()=>pj,getTransform:()=>p3,groupTransition:()=>p6,initProps:()=>pL,isBoundingRectAxisAligned:()=>dh,isElementRemoved:()=>pR,lineLineIntersect:()=>dn,linePolygonIntersect:()=>de,makeImage:()=>p$,makePath:()=>pK,mergePath:()=>pJ,payloadDisableAnimation:()=>dm,registerShape:()=>pq,removeElement:()=>pB,removeElementWithFadeOut:()=>pE,resizePath:()=>p0,retrieveZInfo:()=>df,setTooltipConfig:()=>ds,subPixelOptimize:()=>p5,subPixelOptimizeLine:()=>p1,subPixelOptimizeRect:()=>p2,transformDirection:()=>p8,traverseElements:()=>du,traverseUpdateZ:()=>dv,updateProps:()=>pO});var J=function(t,e){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function tt(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var te=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},tn=new function(){this.browser=new te,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(tn.wxa=!0,tn.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?tn.worker=!0:!tn.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(tn.node=!0,tn.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,tn);var ti="sans-serif",tr="12px "+ti,to=function(t){var e={};if("u"<typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),ta={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(n,i){if(!t){var r=ta.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||tr),t.measureText(n);n=n||"",i=i||tr;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||12,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=to[n[l]];s+=null==u?a:u*a}return{width:s}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}},ts=tA(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tl=tA(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),tu=Object.prototype.toString,th=Array.prototype,tc=th.forEach,tp=th.filter,td=th.slice,tf=th.map,tg=(function(){}).constructor,tv=tg?tg.prototype:null,tm="__proto__",ty=2311;function t_(){return ty>=0x1fffffffffffff&&(ty=0),ty++}function tx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function tb(t){if(null==t||"object"!=typeof t)return t;var e=t,n=tu.call(t);if("[object Array]"===n){if(!t[tQ]){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=tb(t[i])}}else if(tl[n]){if(!t[tQ]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!ts[n]&&!t[tQ]&&!tG(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tm&&(e[a]=tb(t[a]));return e}function tw(t,e,n){if(!tF(e)||!tF(t))return n?tb(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==tm){var r=t[i],o=e[i];!(tF(o)&&tF(r))||tB(o)||tB(r)||tG(o)||tG(r)||tH(o)||tH(r)||o[tQ]||r[tQ]?!n&&i in t||(t[i]=tb(e[i])):tw(r,o,n)}return t}function tS(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==tm&&(t[n]=e[n]);return t}function tM(t,e,n){for(var i=tO(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function tT(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return -1}function tI(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else tM(t,e,n)}function tC(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function tk(t,e,n){if(t&&e)if(t.forEach&&t.forEach===tc)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function tD(t,e,n){if(!t)return[];if(!e)return tq(t);if(t.map&&t.map===tf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function tA(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function tP(t,e,n){if(!t)return[];if(!e)return tq(t);if(t.filter&&t.filter===tp)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function tO(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}ta.createCanvas;var tL=tv&&tz(tv.bind)?tv.call.bind(tv.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(td.call(arguments)))}};function tR(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(td.call(arguments)))}}function tB(t){return Array.isArray?Array.isArray(t):"[object Array]"===tu.call(t)}function tz(t){return"function"==typeof t}function tE(t){return"string"==typeof t}function tN(t){return"[object String]"===tu.call(t)}function tV(t){return"number"==typeof t}function tF(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function tH(t){return!!ts[tu.call(t)]}function tW(t){return!!tl[tu.call(t)]}function tG(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function tU(t){return null!=t.colorStops}function tZ(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function tX(t,e){return null!=t?t:e}function tY(t,e,n){return null!=t?t:null!=e?e:n}function tq(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return td.apply(t,e)}function tj(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tK(t,e){if(!t)throw Error(e)}function t$(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tQ="__ec_primitive__",tJ=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return tO(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),t0="function"==typeof Map,t1=function(){function t(e){var n=tB(e);this.data=t0?new Map:new tJ;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&tk(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return t0?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function t2(t){return new t1(t)}function t5(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&tS(n,e),n}function t3(t,e){return t.hasOwnProperty(e)}function t4(){}var t8=180/Math.PI,t6=function(t,e){return(t6=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function t7(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}t6(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function t9(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function et(t,e){return t[0]=e[0],t[1]=e[1],t}function ee(t,e,n){return t[0]=e,t[1]=n,t}function en(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ei(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function er(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eo(t,e){var n,i=Math.sqrt((n=e)[0]*n[0]+n[1]*n[1]);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ea(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var es=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function el(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function eu(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function eh(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ec=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ep=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ec(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new ec(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new ec(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new ec(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ec(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ec(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ed=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ef=Math.log(2);function eg(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ef);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;!(f&r)&&(c+=(d%2?-1:1)*t[n][p]*eg(t,e-1,h,u,r|f,o),d++)}return o[a]=c,c}function ev(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=eg(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*eg(n,7,+(0===a),1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var em="___zrEVENTSAVED",ey=[];function e_(t,e,n,i,r){if(e.getBoundingClientRect&&tn.domSupported&&!ex(e)){var o=e[em]||(e[em]={}),a=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ev(s,a):ev(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){tk(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function ex(t){return"CANVAS"===t.nodeName.toUpperCase()}var eb=/([&<>"'])/g,ew={"&":"&","<":"<",">":">",'"':""","'":"'"};function eS(t){return null==t?"":(t+"").replace(eb,function(t,e){return ew[e]})}var eM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eT=[],eI=tn.browser.firefox&&39>+tn.browser.version.split(".")[0];function eC(t,e,n,i){return n=n||{},i?ek(t,e,n):eI&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ek(t,e,n),n}function ek(t,e,n){if(tn.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ex(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}if(e_(eT,t,i,r)){n.zrX=eT[0],n.zrY=eT[1];return}}n.zrX=n.zrY=0}function eD(t){return t||window.event}function eA(t,e,n){if(null!=(e=eD(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&eC(t,r,e,n)}else{eC(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eM.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var eP=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eO(t){return 2===t.which||3===t.which}var eL=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=eC(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in eB)if(eB.hasOwnProperty(e)){var n=eB[e](this._track,t);if(n)return n}},t}();function eR(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var eB={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=eR(i)/eR(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ez(){return[1,0,0,1,0,0]}function eE(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function eN(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function eV(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function eF(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function eH(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function eW(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}let eG=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();var eU=Math.min,eZ=Math.max,eX=Math.abs,eY=["x","y"],eq=["width","height"],ej=new eG,eK=new eG,e$=new eG,eQ=new eG,eJ=nr(),e0=eJ.minTv,e1=eJ.maxTv,e2=[0,0],e5=function(){function t(t,e,n,i){e4(this,t,e,n,i)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=eU(t.x,this.x),n=eU(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=eZ(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=eZ(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return e6(ez(),this,t)},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&eG.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!e||!n)return!1;e instanceof t||(e=e4(nt,e.x,e.y,e.width,e.height)),n instanceof t||(n=e4(ne,n.x,n.y,n.width,n.height));var s=!!i;eJ.reset(r,s);var l=eJ.touchThreshold,u=e.x+l,h=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>h||c>p||d>f||g>v)return!1;var m=!(h<d||f<u||p<g||v<c);return(s||o)&&(e2[0]=1/0,e2[1]=0,ni(u,h,d,f,0,s,o,a),ni(c,p,g,v,1,s,o,a),s&&eG.copy(i,m?eJ.useDir?eJ.dirMinTv:e0:e1)),m},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){e8(this,t)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,n){if(!n){t!==e&&e8(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],r=n[3],o=n[4],a=n[5];t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ej.x=e$.x=e.x,ej.y=eQ.y=e.y,eK.x=eQ.x=e.x+e.width,eK.y=e$.y=e.y+e.height,ej.transform(n),eQ.transform(n),eK.transform(n),e$.transform(n),t.x=eU(ej.x,eK.x,e$.x,eQ.x),t.y=eU(ej.y,eK.y,e$.y,eQ.y);var s=eZ(ej.x,eK.x,e$.x,eQ.x),l=eZ(ej.y,eK.y,e$.y,eQ.y);t.width=s-t.x,t.height=l-t.y},t.calculateTransform=function(t,e,n){var i,r,o,a,s,l=n.width/e.width,u=n.height/e.height;return eF(t=eE(t||[]),t,ee(nn,-e.x,-e.y)),i=t,r=t,a=(o=ee(nn,l,u))[0],s=o[1],i[0]=r[0]*a,i[1]=r[1]*s,i[2]=r[2]*a,i[3]=r[3]*s,i[4]=r[4]*a,i[5]=r[5]*s,eF(t,t,ee(nn,n.x,n.y)),t},t}(),e3=e5.create,e4=e5.set,e8=e5.copy,e6=e5.calculateTransform,e7=e5.applyTransform,e9=e5.contain,nt=new e5(0,0,0,0),ne=new e5(0,0,0,0),nn=[];function ni(t,e,n,i,r,o,a,s){var l=eX(e-n),u=eX(i-t),h=eU(l,u),c=eY[r],p=eY[1-r],d=eq[r];e<n||i<t?l<u?(o&&(e1[c]=-l),s&&(a[c]=e,a[d]=0)):(o&&(e1[c]=u),s&&(a[c]=t,a[d]=0)):(a&&(a[c]=eZ(t,n),a[d]=eU(e,i)-a[c]),o&&(h<e2[0]||eJ.useDir)&&(e2[0]=eU(h,e2[0]),(l<u||!eJ.bidirectional)&&(e0[c]=l,e0[p]=0,eJ.useDir&&eJ.calcDirMTV()),(l>=u||!eJ.bidirectional)&&(e0[c]=-u,e0[p]=0,eJ.useDir&&eJ.calcDirMTV())))}function nr(){var t=0,e=new eG,n=new eG,i={minTv:new eG,maxTv:new eG,useDir:!1,dirMinTv:new eG,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=eZ(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),h=l*o.y+u*o.x;if(r(h)){r(o.x)&&r(o.y)&&a.set(0,0);return}(n.x=s*u/h,n.y=s*l/h,r(n.x)&&r(n.y))?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function r(t){return 1e-10>eX(t)}return i}let no=e5;var na="silent";function ns(){eP(this.event)}var nl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return t7(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ed),nu=function(t,e){this.x=t,this.y=e},nh=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nc=new no(0,0,0,0),np=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new nu(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new nl,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new ep(a),a}return t7(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tk(nh,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=nf(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new nu(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new nu(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ns};i&&(i[o]&&(a.cancelBubble=!!i[o].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new nu(t,e);if(nd(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new no(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(nc.copy(h.getBoundingRect()),h.transform&&nc.applyTransform(h.transform),nc.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(nd(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eL);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new nu;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(ed);function nd(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||na}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==na)){e.target=a;break}}}function nf(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function ng(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;r<n&&0>i(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function nv(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nm(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function ny(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;l<s&&0>o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function n_(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32){o=ng(t,n,i,e),nv(t,n,i,n+o,e);return}var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=ny(t[h],t,l,u,0,e);l+=p,0==(u-=p)||0!==(c=nm(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l,u,h,c=0;for(c=0;c<i;c++)a[c]=t[n+c];var p=0,d=o,f=n;if(t[f++]=t[d++],0==--s){for(c=0;c<i;c++)t[f+c]=a[p+c];return}if(1===i){for(c=0;c<s;c++)t[f+c]=t[d+c];t[f+s]=a[p];return}for(var g=r;;){l=0,u=0,h=!1;do if(0>e(t[d],a[p])){if(t[f++]=t[d++],u++,l=0,0==--s){h=!0;break}}else if(t[f++]=a[p++],l++,u=0,1==--i){h=!0;break}while((l|u)<g)if(h)break;do{if(0!==(l=ny(t[d],a,p,i,0,e))){for(c=0;c<l;c++)t[f+c]=a[p+c];if(f+=l,p+=l,(i-=l)<=1){h=!0;break}}if(t[f++]=t[d++],0==--s){h=!0;break}if(0!==(u=nm(a[p],t,d,s,0,e))){for(c=0;c<u;c++)t[f+c]=t[d+c];if(f+=u,d+=u,0==(s-=u)){h=!0;break}}if(t[f++]=a[p++],1==--i){h=!0;break}g--}while(l>=7||u>=7)if(h)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(c=0;c<s;c++)t[f+c]=t[d+c];t[f+s]=a[p]}else if(0===i)throw Error();else for(c=0;c<i;c++)t[f+c]=a[p+c]}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,p=0,d=0;if(t[c--]=t[u--],0==--i){for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h];return}for(var f=r;;){var g=0,v=0,m=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,v=0,0==--i){m=!0;break}}else if(t[c--]=a[h--],v++,g=0,1==--s){m=!0;break}while((g|v)<f)if(m)break;do{if(0!=(g=i-ny(a[h],t,n,i,i-1,e))){for(c-=g,u-=g,i-=g,d=c+1,p=u+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1==--s){m=!0;break}if(0!=(v=s-nm(t[u],a,0,s,s-1,e))){for(c-=v,h-=v,s-=v,d=c+1,p=h+1,l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){m=!0;break}}if(t[c--]=t[u--],0==--i){m=!0;break}f--}while(g>=7||v>=7)if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else if(0===s)throw Error();else for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ng(t,n,i,e))<s){var l=r;l>s&&(l=s),nv(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r)a.forceMergeRuns()}}tk(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){np.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=nf(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ea(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nx=!1;function nb(){nx||(nx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nw(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nS=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nw}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,n_(n,nw)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var p=h[c];t.__dirty&&(p.__dirty|=1),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else isNaN(t.z)&&(nb(),t.z=0),isNaN(t.z2)&&(nb(),t.z2=0),isNaN(t.zlevel)&&(nb(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,a,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=tT(this._roots,t);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();h=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nM={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-nM.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nM.bounceIn(2*t):.5*nM.bounceOut(2*t-1)+.5}},nT=Math.pow,nI=Math.sqrt,nC=nI(3),nk=1/3,nD=t9(),nA=t9(),nP=t9();function nO(t){return t>-1e-8&&t<1e-8}function nL(t){return t>1e-8||t<-1e-8}function nR(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function nB(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function nz(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(nO(h)&&nO(c))if(nO(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=c*c-4*h*p;if(nO(g)){var v=c/h,f=-s/a+v,m=-v/2;f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m)}else if(g>0){var y=nI(g),_=h*s+1.5*a*(-c+y),x=h*s+1.5*a*(-c-y),f=(-s-((_=_<0?-nT(-_,nk):nT(_,nk))+(x=x<0?-nT(-x,nk):nT(x,nk))))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*nI(h*h*h)))/3,w=nI(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),m=(-s+w*(S+nC*Math.sin(b)))/(3*a),M=(-s+w*(S-nC*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m),M>=0&&M<=1&&(o[d++]=M)}}return d}function nE(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(nO(a)){if(nL(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(nO(h))r[0]=-o/(2*a);else if(h>0){var c=nI(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function nN(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function nV(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function nF(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function nH(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function nW(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var nG=/cubic-bezier\(([0-9,\.e ]+)\)/;function nU(t){var e=t&&nG.exec(t);if(e){var n=e[1].split(","),i=+t$(n[0]),r=+t$(n[1]),o=+t$(n[2]),a=+t$(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:nz(0,i,o,1,t,s)&&nR(0,r,a,1,s[0])}}}var nZ=function(){function t(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||t4,this.ondestroy=t.ondestroy||t4,this.onrestart=t.onrestart||t4,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tz(t)?t:nM[t]||nU(t)},t}(),nX=function(t){this.value=t},nY=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new nX(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),nq=function(){function t(t){this._list=new nY,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new nX(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),nj={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 nK(t){return(t=Math.round(t))<0?0:t>255?255:t}function n$(t){return t<0?0:t>1?1:t}function nQ(t){return t.length&&"%"===t.charAt(t.length-1)?nK(parseFloat(t)/100*255):nK(parseInt(t,10))}function nJ(t){return t.length&&"%"===t.charAt(t.length-1)?n$(parseFloat(t)/100):n$(parseFloat(t))}function n0(t,e,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function n1(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function n2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var n5=new nq(20),n3=null;function n4(t,e){n3&&n2(n3,e),n3=n5.put(t,n3||e.slice())}function n8(t,e){if(t){e=e||[];var n=n5.get(t);if(n)return n2(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in nj)return n2(e,nj[i]),n4(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var o=parseInt(i.slice(1,4),16);return o>=0&&o<=4095?(n1(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),n4(t,e),e):void n1(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(i.slice(1,7),16);return o>=0&&o<=0xffffff?(n1(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),n4(t,e),e):void n1(e,0,0,0,1)}return}var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?n1(e,+u[0],+u[1],+u[2],1):n1(e,0,0,0,1);h=nJ(u.pop());case"rgb":if(u.length>=3)return n1(e,nQ(u[0]),nQ(u[1]),nQ(u[2]),3===u.length?h:nJ(u[3])),n4(t,e),e;return void n1(e,0,0,0,1);case"hsla":if(4!==u.length)return void n1(e,0,0,0,1);return u[3]=nJ(u[3]),n6(u,e),n4(t,e),e;case"hsl":if(3!==u.length)return void n1(e,0,0,0,1);return n6(u,e),n4(t,e),e;default:return}}n1(e,0,0,0,1)}}function n6(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=nJ(t[1]),r=nJ(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return n1(e=e||[],nK(255*n0(a,o,n+1/3)),nK(255*n0(a,o,n)),nK(255*n0(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function n7(t,e){var n=n8(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return it(n,4===n.length?"rgba":"rgb")}}function n9(t,e,n,i){var r,o=n8(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=Math.round(r=tz(e)?e(o[0]):e))<0?0:r>360?360:r),null!=n&&(o[1]=nJ(tz(n)?n(o[1]):n)),null!=i&&(o[2]=nJ(tz(i)?i(o[2]):i)),it(n6(o),"rgba")}function it(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function ie(t,e){var n=n8(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ii=new nq(100);function ir(t){if(tE(t)){var e=ii.get(t);return e||(e=n7(t,-.1),ii.put(t,e)),e}if(tU(t)){var n=tS({},t);return n.colorStops=tD(t.colorStops,function(t){return{offset:t.offset,color:n7(t.color,-.1)}}),n}return t}var io=Math.round;function ia(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=n8(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function is(t){return t<1e-4&&t>-1e-4}function il(t){return io(1e3*t)/1e3}function iu(t){return io(1e4*t)/1e4}var ih={left:"start",right:"end",center:"middle",middle:"middle"};function ic(t){return t&&!!t.image}function ip(t){return ic(t)||t&&!!t.svgElement}function id(t){return"linear"===t.type}function ig(t){return"radial"===t.type}function iv(t){return t&&("linear"===t.type||"radial"===t.type)}function im(t){return"url(#"+t+")"}function iy(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function i_(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*t8,r=tX(t.scaleX,1),o=tX(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+io(a*t8)+"deg, "+io(s*t8)+"deg)"),l.join(" ")}var ix="u">typeof Buffer&&"function"==typeof Buffer.from?function(t){return Buffer.from(t).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null},ib=Array.prototype.slice;function iw(t,e,n,i){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(n[a]-r)*i+r);return t}function iS(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function iM(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function iT(t){if(tC(t)){var e=t.length;if(tC(t[0])){for(var n=[],i=0;i<e;i++)n.push(ib.call(t[i]));return n}return ib.call(t)}return t}function iI(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function iC(t){return 4===t||5===t}function ik(t){return 1===t||2===t}var iD=[0,0,0,0],iA=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(tC(e)){var l=tC(e&&e[0])?2:1;a=l,(1!==l||tV(e[0]))&&(2!==l||tV(e[0][0]))||(o=!0)}else if(tV(e)&&e==e)a=0;else if(tE(e))if(isNaN(+e)){var u=n8(e);u&&(s=u,a=3)}else a=0;else if(tU(e)){var h=tS({},s);h.colorStops=tD(e.colorStops,function(t){return{offset:t.offset,color:n8(t.color)}}),id(e)?a=4:ig(e)&&(a=5),s=h}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=tz(n)?n:nM[n]||nU(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ik(i),l=iC(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,!a&&(s&&u!==r-1?function(t,e,n){if(t.push&&e.push){var i=t.length,r=e.length;if(i!==r)if(i>r)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:ib.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(c,p,i):l&&function(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}(c.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=iS([],n[u].value,d,-1):ik(i)&&(n[u].additiveValue=1===i?iS([],n[u].value,d,-1):iM([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?iD:t[h];if((ik(s)||c)&&!v&&(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ik(s))1===s?iw(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*i+s)}}(v,i[a],r[a],g);else if(iC(s)){var m,y,_,x,b,w=i[a],S=r[a],M=4===s;(t[h]={type:M?"linear":"radial",x:(m=w.x,(S.x-m)*g+m),y:(y=w.y,(S.y-y)*g+y),colorStops:tD(w.colorStops,function(t,e){var n,i=S.colorStops[e];return{offset:(n=t.offset,(i.offset-n)*g+n),color:iI(iw([],t.color,i.color,g))}}),global:S.global},M)?(t[h].x2=(_=w.x2,(S.x2-_)*g+_),t[h].y2=(x=w.y2,(S.y2-x)*g+x)):t[h].r=(b=w.r,(S.r-b)*g+b)}else if(c)iw(v,i[a],r[a],g),o||(t[h]=iI(v));else{var T,I=(T=i[a],(r[a]-T)*g+T);o?this._additiveValue=I:t[h]=I}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(n8(t[n],iD),iS(iD,iD,i,1),t[n]=iI(iD)):1===e?iS(t[n],t[n],i,1):2===e&&iM(t[n],t[n],i,1)},t}(),iP=function(){function t(t,e,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i)?tx("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,tO(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new iA(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=iI(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,iT(l),i),this._trackKeys.push(a)}s.addKeyframe(t,iT(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new nZ({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return tD(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=iT(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tO(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function iO(){return new Date().getTime()}var iL=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return t7(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=iO()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,h(function e(){t._running&&(h(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=iO(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iO(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iO()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new iP(t,e.loop);return this.addAnimator(n),n},e}(ed),iR=tn.domSupported,iB=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=tD(n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:r}),iz=["mousemove","mouseup"],iE=["pointermove","pointerup"],iN=!1;function iV(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iF(t){t&&(t.zrByTouch=!0)}function iH(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var iW=function(t,e){this.stopPropagation=t4,this.stopImmediatePropagation=t4,this.preventDefault=t4,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iG={mousedown:function(t){t=eA(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eA(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eA(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){iH(this,(t=eA(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){iN=!0,t=eA(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){iN||(t=eA(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iF(t=eA(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iG.mousemove.call(this,t),iG.mousedown.call(this,t)},touchmove:function(t){iF(t=eA(this.dom,t)),this.handler.processGesture(t,"change"),iG.mousemove.call(this,t)},touchend:function(t){iF(t=eA(this.dom,t)),this.handler.processGesture(t,"end"),iG.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&iG.click.call(this,t)},pointerdown:function(t){iG.mousedown.call(this,t)},pointermove:function(t){iV(t)||iG.mousemove.call(this,t)},pointerup:function(t){iG.mouseup.call(this,t)},pointerout:function(t){iV(t)||iG.mouseout.call(this,t)}};tk(["click","dblclick","contextmenu"],function(t){iG[t]=function(e){e=eA(this.dom,e),this.trigger(t,e)}});var iU={pointermove:function(t){iV(t)||iU.mousemove.call(this,t)},pointerup:function(t){iU.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iZ(t,e,n,i){var r;t.mounted[e]=n,t.listenerOpts[e]=i,r=t.domTarget,r.addEventListener(e,n,i)}function iX(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=r[o],i=t.listenerOpts[o],e.removeEventListener(o,n,i));t.mounted={}}var iY=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},iq=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new iY(e,iG),iR&&(o._globalHandlerScope=new iY(document,iU)),r=(i=o._localHandlerScope).domHandlers,tn.pointerEventsSupported?tk(iB.pointer,function(t){iZ(i,t,function(e){r[t].call(o,e)})}):(tn.touchEventsSupported&&tk(iB.touch,function(t){iZ(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),tk(iB.mouse,function(t){iZ(i,t,function(e){e=eD(e),i.touching||r[t].call(o,e)})})),o}return t7(e,t),e.prototype.dispose=function(){iX(this._localHandlerScope),iR&&iX(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,iR&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){tn.pointerEventsSupported?tk(iE,n):tn.touchEventsSupported||tk(iz,n);function n(n){iZ(e,n,function(i){if(!iH(t,(i=eD(i)).target)){var r;r=i,i=eA(t.dom,new iW(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):iX(e)}},e}(ed),ij=1;tn.hasGlobalWindow&&(ij=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iK=ij,i$="#333",iQ="#ccc";function iJ(t){return t>5e-5||t<-5e-5}var i0=[],i1=[],i2=ez(),i5=Math.abs,i3=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return i4(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 iJ(this.rotation)||iJ(this.x)||iJ(this.y)||iJ(this.scaleX-1)||iJ(this.scaleY-1)||iJ(this.skewX)||iJ(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(eE(n),this.invTransform=null);return}n=n||ez(),e?this.getLocalTransform(n):eE(n),t&&(e?eV(n,t,n):eN(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||ez(),eW(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(i0);var n=i0[0]<0?-1:1,i=i0[1]<0?-1:1,r=((i0[0]-n)*e+n)/i0[0]||0,o=((i0[1]-i)*e+i)/i0[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ez(),eV(i1,t.invTransform,e),e=i1);var n=this.originX,i=this.originY;(n||i)&&(i2[4]=n,i2[5]=i,eV(i1,e,i2),i1[4]-=n,i1[5]-=i,e=i1),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&el(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&el(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&i5(t[0]-1)>1e-10&&i5(t[3]-1)>1e-10?Math.sqrt(i5(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){i7(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&eH(e,e,l),e[4]+=n+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).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}(),i4=i3.getLocalTransform;function i8(){return new i3}var i6=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function i7(t,e){var n=t;n=n||{};for(var i=0;i<i6.length;i++){var r=i6[i];n[r]=e[r]}return n}function i9(t){c||(c=new nq(100)),t=t||tr;var e=c.get(t);return e||(e={font:t,strWidthCache:new nq(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ta.measureText("国",t).width,asciiCharWidth:ta.measureText("a",t).width},c.put(t,e)),e}var rt=0;function re(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(rt>=5)){t=t||tr;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=ta.measureText(String.fromCharCode(i),t).width;var r=new Date-n;return r>16?rt=5:r>2&&rt++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function rn(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=ta.measureText(e,t.font).width,n.put(e,i)),i}function ri(t,e,n,i){var r=rn(i9(e),t),o=rs(e);return new no(ro(0,r,n),ra(0,o,i),r,o)}function rr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return ri(r[0],e,n,i);for(var o=new no(0,0,0,0),a=0;a<r.length;a++){var s=ri(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function ro(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function ra(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function rs(t){return i9(t).stWideCharWidth}function rl(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ru(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=rl(i[0],n.width),u+=rl(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var rh="__zr_normal__",rc=i6.concat(["ignore"]),rp=tA(i6,function(t,e){return t[e]=!0,t},{ignore:!1}),rd={},rf=new no(0,0,0,0),rg=[],rv=function(){function t(t){this.id=t_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,h=n.autoOverflowArea,c=void 0;if((h||u)&&(c=rf,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(rd,n,c):ru(rd,n,c),r.x=rd.x,r.y=rd.y,o=rd.align,a=rd.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*c.width,f=.5*c.height):(d=rl(p[0],c.width),f=rl(p[1],c.height)),l=!0,r.originX=-r.x+d+(i?0:c.x),r.originY=-r.y+f+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=v.overflowRect=v.overflowRect||new no(0,0,0,0);r.getLocalTransform(rg),eW(rg,rg),no.copy(m,c),m.applyTransform(rg)}else v.overflowRect=null;var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=void 0,x=void 0,b=void 0;y&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),b=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),b=!0)),((_=_||"#000")!==v.fill||x!==v.stroke||b!==v.autoStroke||o!==v.align||a!==v.verticalAlign)&&(s=!0,v.fill=_,v.stroke=x,v.autoStroke=b,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?iQ:i$},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&n8(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,it(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},tS(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(tF(t))for(var n=tO(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===rh)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,rc)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(rh,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===rh;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tT(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tx("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=this._textContent,u=r_(this,l,r,i);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,r,this._normalState,e,rb(this,n,s),s);var h=this._textGuide;return l&&l.useState(t,e,n,!!u),h&&h.useState(t,e,n,!!u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=this._textContent,p=r_(this,c,h,n);p&&!this.__inHover&&(this.__inHover=p);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,rb(this,e,f),f);var g=this._textGuide;c&&c.useStates(t,e,!!p),g&&g.useStates(t,e,!!p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=tT(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=tT(i,t),o=tT(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];tS(n,r),r.textConfig&&tS(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){if(1!==this.__inHover){var a=!(e&&i);e&&e.textConfig?(this.textConfig=tS({},i?this.textConfig:n.textConfig),tS(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<rc.length;u++){var h=rc[u],c=r&&rp[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(var u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i3,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),tS(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=new iP(t?this[t]:this,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=tT(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){rm(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){rm(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=rm(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function rm(t,e,n,i,r){var o=[];!function t(e,n,i,r,o,a,s,l){for(var u=tO(r),h=o.duration,c=o.delay,p=o.additive,d=o.setToFinal,f=!tF(a),g=e.animators,v=[],m=0;m<u.length;m++){var y=u[m],_=r[y];if(null!=_&&null!=i[y]&&(f||a[y]))if(!tF(_)||tC(_)||tU(_))v.push(y);else{if(n){l||(i[y]=_,e.updateDuringAnimation(n));continue}t(e,y,i[y],_,o,a&&a[y],s,l)}else l||(i[y]=_,e.updateDuringAnimation(n),v.push(y))}var x=v.length;if(!p&&x)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===n&&w.stopTracks(v)){var S=tT(g,w);g.splice(S,1)}}if(o.force||(x=(v=tP(v,function(t){var e,n;return!((e=r[t])===(n=i[t])||tC(e)&&tC(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,n))})).length),x>0||o.force&&!s.length){var M=void 0,T=void 0,I=void 0;if(l){T={},d&&(M={});for(var b=0;b<x;b++){var y=v[b];T[y]=i[y],d?M[y]=r[y]:i[y]=r[y]}}else if(d){I={};for(var b=0;b<x;b++){var y=v[b];I[y]=iT(i[y]),function(t,e,n){if(tC(e[n]))if(tC(t[n])||(t[n]=[]),tW(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),ry(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(tC(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?ry(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ry(o,r,a);o.length=r.length}else t[n]=e[n]}(i,r,y)}}var w=new iP(i,!1,!1,p?tP(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),d&&M&&w.whenWithKeys(0,M,v),I&&w.whenWithKeys(0,I,v),w.whenWithKeys(null==h?500:h,l?T:r,v).delay(c||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};!a&&l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function ry(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function r_(t,e,n,i){return!(n&&n.hoverLayer||i)||rx(t)||e&&rx(e)?0:1}function rx(t){return"text"===t.type||"tspan"===t.type}function rb(t,e,n){return!e&&!t.__inHover&&n&&n.duration>0}tI(rv,ed),tI(rv,i3);var rw=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t7(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=tT(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=tT(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new no(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(no.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(rv);rw.prototype.type="group";let rS=rw;var rM={},rT={},rI=function(){function t(t,e,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new nS,a=n.renderer||"canvas";rM[a]||(a=tO(rM)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new rM[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=tn.node||tn.worker||l?null:new iq(s.getViewportRoot(),s.root),h=n.useCoarsePointer;(null==h||"auto"===h?tn.touchEventsSupported:!!h)&&(i=tX(n.pointerSize,44)),this.handler=new np(o,s,u,s.root,i),this.animation=new iL({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>ie(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=ie(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=iO(),i=this._needsRefresh,r=this._needsRefreshHover;(i||r)&&(e=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:r}));var o=iO();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rS&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;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,t=this.id,delete rT[t]}},t}();function rC(t,e){var n=new rI(t_(),t,e);return rT[n.id]=n,n}var rk=Math.min,rD=Math.max,rA=Math.abs,rP=Math.round,rO=Math.floor,rL=Math.ceil,rR=Math.pow,rB=Math.log,rz=Math.LN10,rE=Math.PI,rN=Math.random;function rV(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var rF=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return rH(t,e,n)};function rH(t,e,n){if(tE(t))return t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t);return null==t?0/0:+t}function rW(t,e,n){return isNaN(e)?n?""+t:+t:(e=rk(rD(0,e),20),t=(+t).toFixed(e),n?t:+t)}function rG(t){return t.sort(function(t,e){return t-e}),t}function rU(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,i,r,o,a=1,s=0;s<15;s++,a*=10)if(rP(t*a)/a===t)return s}return i=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,r=n>0?n:e.length,rD(0,((o=e.indexOf("."))<0?0:r-1-o)-i)}function rZ(t,e,n){var i=rA(t[1]-t[0]);if(!isFinite(i)||0===i)return 0/0;var r=rD(0,rL(-(rB(2*rA(n||1)*rA(i))/rz)+rB(rA(e))/rz));return isFinite(r)||(r=0/0),r}function rX(t,e){var n=rD(rU(t),rU(e)),i=t+e;return n>20?i:rW(i,n)}var rY=rR(2,53)-1;function rq(t){var e=2*rE;return(t%e+e)%e}function rj(t){return t>-1e-4&&t<1e-4}var rK=/^(?:(\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 r$(t){if(t instanceof Date)return t;if(tE(t)){var e=rK.exec(t);if(!e)return new Date(0/0);if(!e[8])return new Date(+e[1],(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(0/0):new Date(rP(t))}function rQ(t){return rR(10,rJ(t))}function rJ(t){if(0===t)return 0;var e=rO(rB(t)/rz);return t/rR(10,e)>=10&&e++,e}function r0(t,e){var n=rJ(t),i=rR(10,n),r=t/i;return rW(t=(2===e?1:e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,-n)}function r1(t,e){var n=(t.length-1)*e+1,i=rO(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function r2(t){var e=parseFloat(t);return e==t&&(0!==e||!tE(t)||0>=t.indexOf("x"))?e:0/0}function r5(){return rP(9*rN())}function r3(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function r4(t){return null!=t&&isFinite(t)}var r8="series\0";function r6(t){return t instanceof Array?t:null==t?[]:[t]}function r7(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var r9=["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 ot(t){return!tF(t)||tB(t)||t instanceof Date?t:t.value}function oe(t,e,n){var i=oi(e[t],null),r=oi(n[t],null);return null!=i&&null!=r&&i===r}function on(t){return oi(t,"")}function oi(t,e){return null==t?e:tE(t)?t:tV(t)||tN(t)?t+"":e}function or(t){var e=t.name;return!!(e&&e.indexOf(r8))}function oo(t){return t&&null!=t.id&&0===on(t.id).indexOf("\0_ec_\0")}function oa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?tB(e.dataIndex)?tD(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?tB(e.name)?tD(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function os(){var t="__ec_inner_"+ol++;return function(e){return e[t]||(e[t]={})}}var ol=r5();function ou(t,e,n){var i=oh(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=od(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function oh(t,e){if(tE(t)){var n,i={};i[t+"Index"]=0,n=i}else n=t;var r=t2(),o={},a=!1;return tk(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){o[n]=t;return}var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>tT(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var oc={useDefault:!0,enableAll:!1,enableNone:!1},op={useDefault:!1,enableAll:!0,enableNone:!0};function od(t,e,n,i){i=i||oc;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r)if(i.enableNone)return s.models=[],s;else r=-1;return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function of(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function og(){}function ov(){return[1/0,-1/0]}function om(t,e){o_(e)&&e<t[0]&&(t[0]=e)}function oy(t,e){o_(e)&&e>t[1]&&(t[1]=e)}function o_(t){return null!=t&&isFinite(t)}function ox(t,e){return o_(t)&&o_(e)&&t<=e}function ob(t){ox(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function ow(){var t="__ec_once_"+oS++;return function(e,n){t3(e,t)||(e[t]=1,n())}}og.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=0/0,this},og.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)};var oS=r5();function oM(t,e,n){var i=t2(),r=0;tk(t,function(o){var a=e(o),s=i.get(a)||0;n&&n(o,s),s||n||(t[r++]=o),i.set(a,s+1)}),n||(t.length=r)}function oT(t){return t.value+""}function oI(t){return t+""}function oC(t,e){return tX(e,!0)?t.seriesIndex+2:0}function ok(t,e,n){var i=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function oD(t){return{overallReset:t}}var oA="___EC__COMPONENT__CONTAINER___",oP="___EC__EXTENDED_CLASS___";function oO(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oL(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;if(tz(e=i)&&/^class\s/.test(Function.prototype.toString.call(e)))n=function(t){function e(){return t.apply(this,arguments)||this}return tt(e,t),e}(i);else{var r=n=function(){(t.$constructor||i).apply(this,arguments)},o=r.prototype;function a(){}for(var s in a.prototype=this.prototype,r.prototype=new a,o)o.hasOwnProperty(s)&&(r.prototype[s]=o[s]);r.prototype.constructor=r,r.superClass=this}return tS(n.prototype,t),n[oP]=!0,n.extend=this.extend,n.superCall=oz,n.superApply=oE,n.superClass=i,n}}function oR(t,e){t.extend=e.extend}var oB=Math.round(10*Math.random());function oz(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function oE(t,e,n){return this.superClass.prototype[e].apply(t,n)}function oN(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){tK(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var i,r,o=oO(n);o.sub?o.sub!==oA&&(((r=e[(i=o).main])&&r[oA]||((r=e[i.main]={})[oA]=!0),r)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[oA]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=oO(t),i=[],r=e[n.main];return r&&r[oA]?tk(r,function(t,e){e!==oA&&i.push(t)}):i.push(r),i},t.hasClass=function(t){return!!e[oO(t).main]},t.getAllClassMainTypes=function(){var t=[];return tk(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[oO(t).main];return n&&n[oA]}}function oV(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&tT(i,s)>=0||r&&0>tT(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var oF=oV([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oH=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return oF(this,t,e)},t}(),oW=new nq(50);function oG(t,e,n,i,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=oW.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?oZ(e=o.image)||o.pending.push(a):((e=ta.loadImage(t,oU,oU)).__zrImageSrc=t,oW.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function oU(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function oZ(t){return t&&t.width&&t.height}var oX=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oY(t,e,n,i){var r=tS({},i=i||{});n=tX(n,"..."),r.maxIterations=tX(i.maxIterations,2);var o=r.minChar=tX(i.minChar,0),a=r.fontMeasureInfo=i9(e),s=a.asciiCharWidth;r.placeholder=tX(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var h=rn(a,n);return h>l&&(n="",h=0),l=t-h,r.ellipsis=n,r.ellipsisWidth=h,r.contentWidth=l,r.containerWidth=t,r}function oq(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var a=rn(o,e);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=re(n,t.charCodeAt(r));return r}(e,r,o):a>0?Math.floor(e.length*r/a):0;a=rn(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var oj=function(){},oK=function(t){this.tokens=[],t&&(this.tokens=t)},o$=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oQ(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=rl(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=o0(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=i9(h),m=0;m<o.length;m++){var y=o[m],_=new oj;if(_.styleName=r,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[m]:rn(v,y),m||c)u.push(new oK([_]));else{var x=(u[u.length-1]||(u[0]=new oK)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var oJ=tA(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function o0(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=i9(e),p=0;p<t.length;p++){var d=t.charAt(p);if("\n"===d){l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0;continue}var f=re(c,d.charCodeAt(0)),g=!i&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!oJ[t]}(d);if(o.length?h+f>n:r+h+f>n){h?(s||l)&&(g?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f));continue}h+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function o1(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;no.set(o2,ro(n,a,r),ra(i,s,o),a,s),no.intersect(e,o2,null,o5);var l=o5.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=ro(l.x,l.width,r,!0),t.baseY=ra(l.y,l.height,o,!0)}}var o2=new no(0,0,0,0),o5={outIntersectRect:{},clamp:!0};function o3(t){return null!=t?t+="":t=""}function o4(t,e,n,i){var r=new no(ro(t.x||0,e,t.textAlign),ra(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:o8(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function o8(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var o6="__zr_style_"+Math.round(10*Math.random()),o7={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},o9={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};o7[o6]=!0;var at=["z","z2","invisible"],ae=["invisible"],an=function(t){var e;function n(e){return t.call(this,e)||this}return t7(n,t),n.prototype._init=function(e){for(var n=tO(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(t){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,ai.copy(r.getBoundingRect()),r.transform&&ai.applyTransform(r.transform),ar.width=o,ar.height=a,!ai.intersect(ar))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new no(0,0,0,0)),e?no.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new no(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:tS(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return t5(o7,t)},n.prototype.useStyle=function(t){t[o6]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},n.prototype._useHoverStyle=function(t){this.__hoverStyle=t},n.prototype.isStyleObject=function(t){return t[o6]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,at)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r),u=1===this.__inHover;if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var c=tO(h),p=0;p<c.length;p++){var d=c[p];d in s&&(s[d]=s[d],this.style[d]=h[d])}for(var f=tO(s),p=0;p<f.length;p++){var d=f[p];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u)for(var g=this.__inHover?ae:at,p=0;p<g.length;p++){var d=g[p];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return tS(t,e),t},n.prototype.getAnimationStyleProps=function(){return o9},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),n}(rv),ai=new no(0,0,0,0),ar=new no(0,0,0,0),ao=Math.min,aa=Math.max,as=Math.sin,al=Math.cos,au=2*Math.PI,ah=t9(),ac=t9(),ap=t9();function ad(t,e,n,i,r,o){r[0]=ao(t,n),r[1]=ao(e,i),o[0]=aa(t,n),o[1]=aa(e,i)}var af=[],ag=[],av={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},am=[],ay=[],a_=[],ax=[],ab=[],aw=[],aS=Math.min,aM=Math.max,aT=Math.cos,aI=Math.sin,aC=Math.abs,ak=Math.PI,aD=2*ak,aA="u">typeof Float32Array,aP=[];function aO(t){return Math.round(t/ak*1e8)/1e8%2*ak}var aL=function(){var t;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,e,n){(n=n||0)>0&&(this._ux=aC(n/iK/t)||0,this._uy=aC(n/iK/e)||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,e){return this._drawPendingPt(),this.addData(av.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=aC(t-this._xi),i=aC(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(av.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(av.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(av.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),aP[0]=i,aP[1]=r,(a=aO(aP[0]))<0&&(a+=aD),s=a-aP[0],l=aP[1]+s,!o&&l-a>=aD?l=a+aD:o&&a-l>=aD?l=a-aD:!o&&a>l?l=a+(aD-aO(a-l)):o&&a<l&&(l=a-(aD-aO(l-a))),aP[0]=a,aP[1]=l,i=aP[0];var a,s,l,u=(r=aP[1])-i;return this.addData(av.A,t,e,n,n,i,u,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=aT(r)*n+t,this._yi=aI(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(av.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(av.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,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){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&aA&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(aA&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(var r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[i++]=s[a];this._len=i}},e.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[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=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,aA&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){a_[0]=a_[1]=ab[0]=ab[1]=Number.MAX_VALUE,ax[0]=ax[1]=aw[0]=aw[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case av.M:n=r=e[t++],i=o=e[t++],ab[0]=r,ab[1]=o,aw[0]=r,aw[1]=o;break;case av.L:ad(n,i,e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.C:!function(t,e,n,i,r,o,a,s,l,u){var h=nE(t,n,r,a,af);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<h;c++){var p=nR(t,n,r,a,af[c]);l[0]=ao(p,l[0]),u[0]=aa(p,u[0])}h=nE(e,i,o,s,ag);for(var c=0;c<h;c++){var d=nR(e,i,o,s,ag[c]);l[1]=ao(d,l[1]),u[1]=aa(d,u[1])}l[0]=ao(t,l[0]),u[0]=aa(t,u[0]),l[0]=ao(a,l[0]),u[0]=aa(a,u[0]),l[1]=ao(e,l[1]),u[1]=aa(e,u[1]),l[1]=ao(s,l[1]),u[1]=aa(s,u[1])}(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.Q:!function(t,e,n,i,r,o,a,s){var l=aa(ao(nH(t,n,r),1),0),u=aa(ao(nH(e,i,o),1),0),h=nV(t,n,r,l),c=nV(e,i,o,u);a[0]=ao(t,r,h),a[1]=ao(e,o,c),s[0]=aa(t,r,h),s[1]=aa(e,o,c)}(n,i,e[t++],e[t++],e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=aT(p)*h+l,o=aI(p)*c+u),function(t,e,n,i,r,o,a,s,l){var u=Math.abs(r-o);if(u%au<1e-4&&u>1e-4){s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;return}if(ah[0]=al(r)*n+t,ah[1]=as(r)*i+e,ac[0]=al(o)*n+t,ac[1]=as(o)*i+e,eu(s,ah,ac),eh(l,ah,ac),(r%=au)<0&&(r+=au),(o%=au)<0&&(o+=au),r>o&&!a?o+=au:r<o&&a&&(r+=au),a){var h=o;o=r,r=h}for(var c=0;c<o;c+=Math.PI/2)c>r&&(ap[0]=al(c)*n+t,ap[1]=as(c)*i+e,eu(s,ap,s),eh(l,ap,l))}(l,u,h,c,p,d,f,ab,aw),n=aT(d)*h+l,i=aI(d)*c+u;break;case av.R:ad(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ab,aw);break;case av.Z:n=r,i=o}eu(a_,a_,ab),eh(ax,ax,aw)}return 0===t&&(a_[0]=a_[1]=ax[0]=ax[1]=0),new no(a_[0],a_[1],ax[0]-a_[0],ax[1]-a_[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case av.M:r=a=t[c++],o=s=t[c++];break;case av.L:var g=t[c++],v=t[c++],m=g-r,y=v-o;(aC(m)>n||aC(y)>i||c===e-1)&&(f=Math.sqrt(m*m+y*y),r=g,o=v);break;case av.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,i,r,o,a,s){for(var l=t,u=e,h=0,c=1;c<=10;c++){var p=.1*c,d=nR(t,n,r,a,p),f=nR(e,i,o,s,p),g=d-l,v=f-u;h+=Math.sqrt(g*g+v*v),l=d,u=f}return h}(r,o,_,x,g,v,b,w),r=b,o=w;break;case av.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];f=function(t,e,n,i,r,o){for(var a=t,s=e,l=0,u=1;u<=10;u++){var h=.1*u,c=nV(t,n,r,h),p=nV(e,i,o,h),d=c-a,f=p-s;l+=Math.sqrt(d*d+f*f),a=c,s=p}return l}(r,o,_,x,g,v),r=g,o=v;break;case av.A:var S=t[c++],M=t[c++],T=t[c++],I=t[c++],C=t[c++],k=t[c++],D=k+C;c+=1,d&&(a=aT(C)*T+S,s=aI(C)*I+M),f=aM(T,I)*aS(aD,Math.abs(k)),r=aT(D)*T+S,o=aI(D)*I+M;break;case av.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case av.Z:var m=a-r,y=s-o;f=Math.sqrt(m*m+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=p[x++],w=1===x;switch(w&&(r=p[x],o=p[x+1],n=r,i=o),b!==av.L&&_>0&&(t.lineTo(h,c),_=0),b){case av.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case av.L:a=p[x++],s=p[x++];var S=aC(a-r),M=aC(s-o);if(S>d||M>f){if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=T}t.lineTo(a,s),r=a,o=s,_=0}else{var C=S*S+M*M;C>_&&(h=a,c=s,_=C)}break;case av.C:var k=p[x++],D=p[x++],A=p[x++],P=p[x++],O=p[x++],L=p[x++];if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;nN(r,k,A,O,I,am),nN(o,D,P,L,I,ay),t.bezierCurveTo(am[1],ay[1],am[2],ay[2],am[3],ay[3]);break t}m+=T}t.bezierCurveTo(k,D,A,P,O,L),r=O,o=L;break;case av.Q:var k=p[x++],D=p[x++],A=p[x++],P=p[x++];if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;nW(r,k,A,I,am),nW(o,D,P,I,ay),t.quadraticCurveTo(am[1],ay[1],am[2],ay[2]);break t}m+=T}t.quadraticCurveTo(k,D,A,P),r=A,o=P;break;case av.A:var R=p[x++],B=p[x++],z=p[x++],E=p[x++],N=p[x++],V=p[x++],F=p[x++],H=!p[x++],W=z>E?z:E,G=aC(z-E)>.001,U=N+V,Z=!1;if(v){var T=l[y++];m+T>u&&(U=N+V*(u-m)/T,Z=!0),m+=T}if(G&&t.ellipse?t.ellipse(R,B,z,E,F,N,U,H):t.arc(R,B,W,N,U,H),Z)break t;w&&(n=aT(N)*z+R,i=aI(N)*E+B),r=aT(U)*z+R,o=aI(U)*E+B;break;case av.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var X=p[x++],Y=p[x++];if(v){var T=l[y++];if(m+T>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+aS(q,X),s),(q-=X)>0&&t.lineTo(a+X,s+aS(q,Y)),(q-=Y)>0&&t.lineTo(a+aM(X-q,0),s+Y),(q-=X)>0&&t.lineTo(a,s+aM(Y-q,0));break t}m+=T}t.rect(a,s,X,Y);break;case av.Z:if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=T}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=av,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function aR(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||a<e-r&&a<i-r||o>t+r&&o>n+r||o<t-r&&o<n-r)return!1;if(t===n)return Math.abs(o-t)<=r/2;s=(e-i)/(t-n);var u=s*o-a+(l=(t*i-n*e)/(t-n));return u*u/(s*s+1)<=r/2*r/2}var aB=2*Math.PI;function az(t){return(t%=aB)<0&&(t+=aB),t}var aE=2*Math.PI;function aN(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;(1===a||0===a)&&(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var aV=aL.CMD,aF=2*Math.PI,aH=[-1,-1,-1],aW=[-1,-1];function aG(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;f<l;){var g,v,m,y,_,x,b,w,S,M,T,I,C,k,D=s[f++],A=1===f;switch(D===aV.M&&f>1&&!n&&(u+=aN(h,c,p,d,i,r)),A&&(h=s[f],c=s[f+1],p=h,d=c),D){case aV.M:p=s[f++],d=s[f++],h=p,c=d;break;case aV.L:if(n){if(aR(h,c,s[f],s[f+1],e,i,r))return!0}else u+=aN(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.C:if(n){if(g=h,v=c,m=s[f++],y=s[f++],_=s[f++],x=s[f++],b=s[f],w=s[f+1],0!==e&&(!(r>v+e)||!(r>y+e)||!(r>x+e)||!(r>w+e))&&(!(r<v-e)||!(r<y-e)||!(r<x-e)||!(r<w-e))&&(!(i>g+e)||!(i>m+e)||!(i>_+e)||!(i>b+e))&&(!(i<g-e)||!(i<m-e)||!(i<_-e)||!(i<b-e))&&function(t,e,n,i,r,o,a,s,l,u){var h,c,p,d,f,g=.005,v=1/0;nD[0]=l,nD[1]=u;for(var m=0;m<1;m+=.05)nA[0]=nR(t,n,r,a,m),nA[1]=nR(e,i,o,s,m),(d=es(nD,nA))<v&&(h=m,v=d);v=1/0;for(var y=0;y<32&&!(g<1e-4);y++)c=h-g,p=h+g,nA[0]=nR(t,n,r,a,c),nA[1]=nR(e,i,o,s,c),d=es(nA,nD),c>=0&&d<v?(h=c,v=d):(nP[0]=nR(t,n,r,a,p),nP[1]=nR(e,i,o,s,p),f=es(nP,nD),p<=1&&f<v?(h=p,v=f):g*=.5);return nI(v)}(g,v,m,y,_,x,b,w,i,r)<=e/2)return!0}else u+=function(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var h=nz(e,i,o,s,u,aH);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;g<h;g++){var v=aH[g],m=0===v||1===v?.5:1;nR(t,n,r,a,v)<l||(p<0&&(p=nE(e,i,o,s,aW),aW[1]<aW[0]&&p>1&&function(){var t=aW[0];aW[0]=aW[1],aW[1]=t}(),d=nR(e,i,o,s,aW[0]),p>1&&(f=nR(e,i,o,s,aW[1]))),2===p?v<aW[0]?c+=d<e?m:-m:v<aW[1]?c+=f<d?m:-m:c+=s<f?m:-m:v<aW[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.Q:if(n){if(S=h,M=c,T=s[f++],I=s[f++],C=s[f],k=s[f+1],0!==e&&(!(r>M+e)||!(r>I+e)||!(r>k+e))&&(!(r<M-e)||!(r<I-e)||!(r<k-e))&&(!(i>S+e)||!(i>T+e)||!(i>C+e))&&(!(i<S-e)||!(i<T-e)||!(i<C-e))&&function(t,e,n,i,r,o,a,s){var l,u=.005,h=1/0;nD[0]=a,nD[1]=s;for(var c=0;c<1;c+=.05){nA[0]=nV(t,n,r,c),nA[1]=nV(e,i,o,c);var p=es(nD,nA);p<h&&(l=c,h=p)}h=1/0;for(var d=0;d<32&&!(u<1e-4);d++){var f=l-u,g=l+u;nA[0]=nV(t,n,r,f),nA[1]=nV(e,i,o,f);var p=es(nA,nD);if(f>=0&&p<h)l=f,h=p;else{nP[0]=nV(t,n,r,g),nP[1]=nV(e,i,o,g);var v=es(nP,nD);g<=1&&v<h?(l=g,h=v):u*=.5}}return nI(h)}(S,M,T,I,C,k,i,r)<=e/2)return!0}else u+=function(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(nO(o)){if(nL(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(nO(h)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(h>0){var c=nI(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,aH);if(0===l)return 0;var u=nH(e,i,o);if(u>=0&&u<=1){for(var h=0,c=nV(e,i,o,u),p=0;p<l;p++){var d=0===aH[p]||1===aH[p]?.5:1,f=nV(t,n,r,aH[p]);f<a||(aH[p]<u?h+=c<e?d:-d:h+=o<c?d:-d)}return h}var d=0===aH[0]||1===aH[0]?.5:1,f=nV(t,n,r,aH[0]);return f<a?0:o<e?d:-d}(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.A:var P=s[f++],O=s[f++],L=s[f++],R=s[f++],B=s[f++],z=s[f++];f+=1;var E=!!(1-s[f++]);o=Math.cos(B)*L+P,a=Math.sin(B)*R+O,A?(p=o,d=a):u+=aN(h,c,o,a,i,r);var N=(i-P)*R/L+P;if(n){if(function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=Math.sqrt((s-=t)*s+(l-=e)*l);if(u-a>n||u+a<n)return!1;if(Math.abs(i-r)%aE<1e-4)return!0;if(o){var h=i;i=az(r),r=az(h)}else i=az(i),r=az(r);i>r&&(r+=aE);var c=Math.atan2(l,s);return c<0&&(c+=aE),c>=i&&c<=r||c+aE>=i&&c+aE<=r}(P,O,R,B,B+z,E,e,N,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);aH[0]=-l,aH[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=aF-1e-4){i=0,r=aF;var h=o?1:-1;return a>=aH[0]+t&&a<=aH[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=aF,r+=aF);for(var p=0,d=0;d<2;d++){var f=aH[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=aF+g),(g>=i&&g<=r||g+aF>=i&&g+aF<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}(P,O,R,B,B+z,E,N,r);h=Math.cos(B+z)*L+P,c=Math.sin(B+z)*R+O;break;case aV.R:p=h=s[f++],d=c=s[f++];var V=s[f++],F=s[f++];if(o=p+V,a=d+F,n){if(aR(p,d,o,d,e,i,r)||aR(o,d,o,a,e,i,r)||aR(o,a,p,a,e,i,r)||aR(p,a,p,d,e,i,r))return!0}else u+=aN(o,d,o,a,i,r),u+=aN(p,a,p,d,i,r);break;case aV.Z:if(n){if(aR(h,c,p,d,e,i,r))return!0}else u+=aN(h,c,p,d,i,r);h=p,c=d}}return n||1e-4>Math.abs(c-d)||(u+=aN(h,c,p,d,i,r)||0),0!==u}var aU=tM({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},o7),aZ={style:tM({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},o9.style)},aX=i6.concat(["invisible","culling","z","z2","zlevel","parent"]);let aY=function(t){var e;function n(e){return t.call(this,e)||this}return t7(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<aX.length;++s)r[aX[s]]=this[aX[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=tO(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?tS(this.style,a):this.useStyle(a):"shape"===o?tS(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(tE(t)){var e=ie(t,0);return e>.5?i$:e>.2?"#eee":iQ}else if(t)return iQ}return i$},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tE(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>ie(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new aL(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),aG(o,a/s,!0,t,e)))return!0}if(this.hasFill())return aG(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:tS(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return t5(aU,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=tS({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){if(t.prototype._applyStateObj.call(this,e,n,i,r,o,a),1!==this.__inHover){var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=tS({},i.shape),tS(s,n.shape)):(s=tS({},r?this.shape:i.shape),tS(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=tS({},this.shape);for(var u={},h=tO(s),c=0;c<h.length;c++){var p=h[c];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return aZ},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return t7(n,e),n.prototype.getDefaultStyle=function(){return tb(t.style)},n.prototype.getDefaultShape=function(){return tb(t.shape)},n}(n);for(var i in t)"function"==typeof t[i]&&(e.prototype[i]=t[i]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),n}(an);var aq=tM({strokeFirst:!0,font:tr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},aU),aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.hasStroke=function(){return o8(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return t5(aq,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=o3((t=this.style).text),n=t.font,o4(t,rn(i9(n),e),rs(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(an);aj.prototype.type="tspan";var aK=tM({x:0,y:0},o7),a$={style:tM({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},o9.style)},aQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.createStyle=function(t){return t5(aK,t)},e.prototype._getSize=function(t){var e,n=this.style,i=n[t];if(null!=i)return i;var r=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return a$},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new no(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(an);aQ.prototype.type="image";let aJ=aQ;var a0=Math.round;function a1(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(a0(2*i)===a0(2*r)&&(t.x1=t.x2=a5(i,s,!0)),a0(2*o)===a0(2*a)&&(t.y1=t.y2=a5(o,s,!0))),t}}function a2(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=a5(i,s,!0),t.y=a5(r,s,!0),t.width=Math.max(a5(i+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(a5(r+a,s,!1)-t.y,+(0!==a))),t}}function a5(t,e,n){if(!e)return t;var i=a0(2*t);return(i+a0(e))%2==0?i/2:(i+(n?1:-1))/2}var a3=function(){this.x=0,this.y=0,this.width=0,this.height=0},a4={},a8=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new a3},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m=a2(a4,e,this.style);d=m.x,f=m.y,g=m.width,v=m.height,m.r=e.r,e=m}else d=e.x,f=e.y,g=e.width,v=e.height;e.r?(l=(n=e).x,u=n.y,h=n.width,c=n.height,p=n.r,h<0&&(l+=h,h=-h),c<0&&(u+=c,c=-c),"number"==typeof p?i=r=o=a=p:p instanceof Array?1===p.length?i=r=o=a=p[0]:2===p.length?(i=o=p[0],r=a=p[1]):3===p.length?(i=p[0],r=a=p[1],o=p[2]):(i=p[0],r=p[1],o=p[2],a=p[3]):i=r=o=a=0,i+r>h&&(s=i+r,i*=h/s,r*=h/s),o+a>h&&(s=o+a,o*=h/s,a*=h/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),i+a>c&&(s=i+a,i*=c/s,a*=c/s),t.moveTo(l+i,u),t.lineTo(l+h-r,u),0!==r&&t.arc(l+h-r,u+r,r,-Math.PI/2,0),t.lineTo(l+h,u+c-o),0!==o&&t.arc(l+h-o,u+c-o,o,0,Math.PI/2),t.lineTo(l+a,u+c),0!==a&&t.arc(l+a,u+c-a,a,Math.PI/2,Math.PI),t.lineTo(l,u+i),0!==i&&t.arc(l+i,u+i,i,Math.PI,1.5*Math.PI),t.closePath()):t.rect(d,f,g,v)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(aY);a8.prototype.type="rect";let a6=a8;var a7={fill:"#000"},a9={},st={style:tM({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},o9.style)},se=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=a7,n.attr(e),n}return t7(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,sl(t=this.style),tk(t.rich,sl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new no(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||a7},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return tS(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=tO(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},tS(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return st},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||tr,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";o1(a9,i.overflowRect,r,o,a,s),r=a9.baseX,o=a9.baseY;var l=function(t,e,n,i){var r,o=o3(t),a=e.overflow,s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,h=e.font,c=rs(h),p=tX(e.lineHeight,c),d="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-l);var v=e.height;null==v&&null!=i&&(v=i-u);var m=(r=null!=g&&("break"===a||"breakAll"===a)?o?o0(o,e.font,g,"breakAll"===a,0).lines:[]:o?o.split("\n"):[]).length*p;if(null==v&&(v=m),m>v&&d){var y=Math.floor(v/p);f=f||r.length>y,m=(r=r.slice(0,y)).length*p}if(o&&"truncate"===a&&null!=g)for(var _=oY(g,h,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},b=0;b<r.length;b++)oq(x,r[b],_),r[b]=x.textLine,f=f||x.isTruncated;for(var w=v,S=0,M=i9(h),b=0;b<r.length;b++)S=Math.max(rn(M,r[b]),S);null==g&&(g=S);var T=g;return w+=u,{lines:r,height:v,outerWidth:T+=l,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:S,contentHeight:m,width:g,isTruncated:f}}(sp(t),t,a9.outerWidth,a9.outerHeight),u=sd(t),h=!!t.backgroundColor,c=l.outerHeight,p=l.outerWidth,d=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,v=ra(o,l.contentHeight,s);if(u||n){var m=ro(r,p,a),y=ra(o,c,s);u&&this._renderBackground(t,t,m,y,p,c)}v+=f/2,n&&(g=sc(r,a,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var _=0,x=!1,b=!1,w=sh("fill"in t?t.fill:(b=!0,i.fill)),S=su("stroke"in t?t.stroke:h||i.autoStroke&&!b?null:(_=2,x=!0,i.stroke)),M=t.textShadowBlur>0,T=0;T<d.length;T++){var I=this._getOrCreateChild(aj),C=I.createStyle();I.useStyle(C),C.text=d[T],C.x=g,C.y=v,a&&(C.textAlign=a),C.textBaseline="middle",C.opacity=t.opacity,C.strokeFirst=!0,M&&(C.shadowBlur=t.textShadowBlur||0,C.shadowColor=t.textShadowColor||"transparent",C.shadowOffsetX=t.textShadowOffsetX||0,C.shadowOffsetY=t.textShadowOffsetY||0),C.stroke=S,C.fill=w,S&&(C.lineWidth=t.lineWidth||_,C.lineDash=t.lineDash,C.lineDashOffset=t.lineDashOffset||0),C.font=e,sa(C,t),v+=f,I.setBoundingRect(o4(C,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;o1(a9,e.overflowRect,r,o,n,i),r=a9.baseX,o=a9.baseY;var a=function(t,e,n,i,r){var o,a=new o$,s=o3(t);if(!s)return a;var l=e.padding,u=l?l[1]+l[3]:0,h=l?l[0]+l[2]:0,c=e.width;null==c&&null!=n&&(c=n-u);var p=e.height;null==p&&null!=i&&(p=i-h);for(var d=e.overflow,f=("break"===d||"breakAll"===d)&&null!=c?{width:c,accumWidth:0,breakAll:"breakAll"===d}:null,g=oX.lastIndex=0;null!=(o=oX.exec(s));){var v=o.index;v>g&&oQ(a,s.substring(g,v),e,f),oQ(a,o[2],e,f,o[1]),g=oX.lastIndex}g<s.length&&oQ(a,s.substring(g,s.length),e,f);var m=[],y=0,_=0,x="truncate"===d,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}e:for(var M=0;M<a.lines.length;M++){for(var T=a.lines[M],I=0,C=0,k=0;k<T.tokens.length;k++){var D=T.tokens[k],A=D.styleName&&e.rich[D.styleName]||{},P=D.textPadding=A.padding,O=P?P[1]+P[3]:0,L=D.font=A.font||e.font;D.contentHeight=rs(L);var R=tX(A.height,D.contentHeight);if(D.innerHeight=R,P&&(R+=P[0]+P[2]),D.height=R,D.lineHeight=tY(A.lineHeight,e.lineHeight,R),D.align=A&&A.align||r,D.verticalAlign=A&&A.verticalAlign||"middle",b&&null!=p&&y+D.lineHeight>p){var B=a.lines.length;k>0?(T.tokens=T.tokens.slice(0,k),S(T,C,I),a.lines=a.lines.slice(0,M+1)):a.lines=a.lines.slice(0,M),a.isTruncated=a.isTruncated||a.lines.length<B;break e}var z=A.width,E=null==z||"auto"===z;if("string"==typeof z&&"%"===z.charAt(z.length-1))D.percentWidth=z,m.push(D),D.contentWidth=rn(i9(L),D.text);else{if(E){var N=A.backgroundColor,V=N&&N.image;V&&oZ(V=function(t){if("string"!=typeof t)return t;var e=oW.get(t);return e&&e.image}(V))&&(D.width=Math.max(D.width,V.width*R/V.height))}var F=x&&null!=c?c-C:null;null!=F&&F<D.width?!E||F<O?(D.text="",D.width=D.contentWidth=0):(!function(t,e,n,i,r,o){if(!n){t.text="",t.isTruncated=!1;return}var a=(e+"").split("\n");o=oY(n,i,r,o);for(var s=!1,l={},u=0,h=a.length;u<h;u++)oq(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}(w,D.text,F-O,L,e.ellipsis,{minChar:e.truncateMinChar}),D.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,D.width=D.contentWidth=rn(i9(L),D.text)):D.contentWidth=rn(i9(L),D.text)}D.width+=O,C+=D.width,A&&(I=Math.max(I,D.lineHeight))}S(T,C,I)}a.outerWidth=a.width=tX(c,_),a.outerHeight=a.height=tX(p,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=h;for(var M=0;M<m.length;M++){var D=m[M],H=D.percentWidth;D.width=parseInt(H,10)/100*a.width}return a}(sp(t),t,a9.outerWidth,a9.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,h=t.padding;this.isTruncated=!!a.isTruncated;var c=ro(r,l,n),p=ra(o,u,i),d=c,f=p;h&&(d+=h[3],f+=h[0]);var g=d+s;sd(t)&&this._renderBackground(t,t,c,p,l,u);for(var v=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var y=a.lines[m],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,M=d,T=g,I=x-1,C=void 0;S<x&&(!(C=_[S]).align||"left"===C.align);)this._placeToken(C,t,b,f,M,"left",v),w-=C.width,M+=C.width,S++;for(;I>=0&&"right"===(C=_[I]).align;)this._placeToken(C,t,b,f,T,"right",v),w-=C.width,T-=C.width,I--;for(M+=(s-(M-d)-(g-T)-w)/2;S<=I;)C=_[S],this._placeToken(C,t,b,f,M+C.width/2,"center",v),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&sd(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=sc(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(aj),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=!1,y=sh("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),_=su("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||f.autoStroke&&!g?null:(v=2,m=!0,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||tr,d.opacity=tY(s.opacity,e.opacity,1),sa(d,s),_&&(d.lineWidth=tY(s.lineWidth,e.lineWidth,v),d.lineDash=tX(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),y&&(d.fill=y),p.setBoundingRect(o4(d,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){(a=this._getOrCreateChild(a6)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=tX(t.fillOpacity,1)}else if(c){(s=this._getOrCreateChild(aJ)).onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=tX(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=tY(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return ss(t)&&(e=[t.fontStyle,t.fontWeight,so(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&t$(e)||t.textFont||t.font},e}(an),sn={left:!0,right:1,center:1},si={top:1,bottom:1,middle:1},sr=["fontStyle","fontWeight","fontSize","fontFamily"];function so(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function sa(t,e){for(var n=0;n<sr.length;n++){var i=sr[n],r=e[i];null!=r&&(t[i]=r)}}function ss(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function sl(t){if(t){t.font=se.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||sn[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||si[n]?n:"top",t.padding&&(t.padding=tj(t.padding))}}function su(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function sh(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function sc(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sp(t){var e=t.text;return null!=e&&(e+=""),e}function sd(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let sf=se;var sg=os(),sv=function(t,e,n,i){if(i){var r=sg(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=sg(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}},sm="undefined",sy="series",s_=t2(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sx="original",sb="arrayRows",sw="objectRows",sS="keyedColumns",sM="typedArray",sT="unknown",sI="column",sC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let sk=function(t){tk(sC,function(e){this[e]=tL(t[e],t)},this)};var sD=1,sA={},sP=os(),sO=os(),sL=["emphasis","blur","select"],sR=["normal","emphasis","blur","select"],sB="highlight",sz="downplay",sE="select",sN="unselect",sV="toggleSelect",sF="selectchanged";function sH(t){return null!=t&&"none"!==t}function sW(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function sG(t){sW(t,"emphasis",2)}function sU(t){2===t.hoverState&&sW(t,"normal",0)}function sZ(t){sW(t,"blur",1)}function sX(t){1===t.hoverState&&sW(t,"normal",0)}function sY(t){t.selected=!0}function sq(t){t.selected=!1}function sj(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function sK(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n){var i=e&&tT(e,"select")>=0,r=!1;if(t instanceof aY){var o=sP(t),a=i&&o.selectFill||o.normalFill,s=i&&o.selectStroke||o.normalStroke;if(sH(a)||sH(s)){var l=(n=n||{}).style||{};"inherit"===l.fill?(r=!0,n=tS({},n),(l=tS({},l)).fill=a):!sH(l.fill)&&sH(a)?(r=!0,n=tS({},n),(l=tS({},l)).fill=ir(a)):!sH(l.stroke)&&sH(s)&&(r||(n=tS({},n),l=tS({},l)),l.stroke=ir(s)),n.style=l}}if(n&&null==n.z2){r||(n=tS({},n));var u=t.z2EmphasisLift;n.z2=t.z2+(null!=u?u:10)}return n}(this,e,s);else if("blur"===t)return n=s,i=tT(this.currentStates,t)>=0,r=this.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=tS({},n),a=tS({opacity:i?r:.1*o.opacity},a),n.style=a),n;else if("select"===t){var l=s;if(l&&null==l.z2){l=tS({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function s$(t){t.stateProxy=sK;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sK),n&&(n.stateProxy=sK)}function sQ(t,e){s2(t,e)||t.__highByOuter||sj(t,sG)}function sJ(t,e){s2(t,e)||t.__highByOuter||sj(t,sU)}function s0(t,e){t.__highByOuter|=1<<(e||0),sj(t,sG)}function s1(t,e){(t.__highByOuter&=~(1<<(e||0)))||sj(t,sU)}function s2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function s5(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=sO(r),a=r.mainType===sy?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r),s="series"===e;s||i.push(a),o.isBlured&&(a.group.traverse(function(t){sX(t)}),s&&n.push(r)),o.isBlured=!1}),tk(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function s3(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&sj(i,sX)}}if((n=n||"coordinateSystem",null!=t)&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!h||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||sZ(t)}),tC(e))o(t.getData(),e);else if(tF(e))for(var c=tO(e),p=0;p<c.length;p++)o(t.getData(c[p]),e[c[p]]);l.push(t),sO(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function s4(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){sO(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){sZ(t)})}}}function s8(t,e,n,i){var r,o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=i.getModel().getComponent(t,e);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===sg(l[u]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function s6(t){tk(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?sj(e,sY):sj(e,sq)})})}function s7(t,e,n){var i,r,o,a;li(t,!0),sj(t,s$),i=t,r=e,o=n,a=sg(i),null!=r?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}function s9(t,e,n,i){i?li(t,!1):s7(t,e,n)}var lt=["emphasis","blur","select"],le={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ln(t,e,n,i){n=n||"itemStyle";for(var r=0;r<lt.length;r++){var o=lt[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[le[n]]()}}function li(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function lr(t){return!!(t&&t.__highDownDispatcher)}function lo(t){var e=t.type;return e===sE||e===sN||e===sV}function la(t){var e=t.type;return e===sB||e===sz}var ls={};function ll(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=tz(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<sL.length;u++){var h=sL[u],c=e[h];l[h]=tX(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function lu(t,e,n,i){n=n||ls;for(var r=t instanceof sf,o=!1,a=0;a<sR.length;a++){var s=e[sR[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){!r&&(l||(l=new sf,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=ll(n,e),h=e.normal,c=!!h.getShallow("show"),p=lc(h,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(lp(h,n,!1));for(var a=0;a<sL.length;a++){var d=sL[a],s=e[d];if(s){var f=l.ensureState(d),g=!!tX(s.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=lc(s,i&&i[d],n,!0,!r),f.style.text=u[d],r||(t.ensureState(d).textConfig=lp(s,n,!0))}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),n.enableTextSetter&&(ly(l).setLabelText=function(t){var i=ll(n,e,t);!function(t,e){for(var n=0;n<sL.length;n++){var i=sL[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,i)})}else l&&(l.ignore=!0);t.dirty()}function lh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<sL.length;i++){var r=sL[i];n[r]=t.getModel([r,e])}return n}function lc(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||ls;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||ls).rich;if(n){e=e||{};for(var i=tO(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",h=tX(e.get(u),a?a.get(u):void 0);for(var c in l)if(l.hasOwnProperty(c)){var p=e.getModel(["rich",c]);lv(o[c]={},p,s,e,h,n,i,r,!1,!0)}}o&&(t.rich=o);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=e.get("minMargin");if(null!=g)t.margin=[g=tV(g)?g/2:0,g,g,g],t.__marginType=l_.minMargin;else{var v=e.get("textMargin");null!=v&&(t.margin=tj(v),t.__marginType=l_.textMargin)}lv(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&tS(o,e),o}function lp(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=tX(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(r.rotation=o*=Math.PI/180),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var ld=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lv(t,e,n,i,r,o,a,s,l,u){n=!a&&n||ls;var h=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=tX(e.getShallow("opacity"),n.opacity);("inherit"===c||"auto"===c)&&(c=h||null),("inherit"===p||"auto"===p)&&(p=h||null),s||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p);var f=tX(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=tX(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=tX(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=d||u||(d=o&&o.defaultOpacity),null!=d&&(t.opacity=d),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var m=0;m<ld.length;m++){var y=ld[m],_=!1!==r&&i?tY(e.getShallow(y),i.getShallow(y),n[y]):tX(e.getShallow(y),n[y]);null!=_&&(t[y]=_)}for(var m=0;m<lf.length;m++){var y=lf[m],_=e.getShallow(y);null!=_&&(t[y]=_)}if(null==t.verticalAlign){var x=e.getShallow("baseline");null!=x&&(t.verticalAlign=x)}if(!l||!o.disableBox){for(var m=0;m<lg.length;m++){var y=lg[m],_=e.getShallow(y);null!=_&&(t[y]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&h&&(t.backgroundColor=h),("auto"===t.borderColor||"inherit"===t.borderColor)&&h&&(t.borderColor=h)}}function lm(t,e){var n=e&&e.getModel("textStyle");return t$([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var ly=os(),l_={minMargin:1,textMargin:2},lx=["textStyle","color"],lb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lw=new sf,lS=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(lx):null)},t.prototype.getFont=function(){return lm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lb.length;n++)e[lb[n]]=this.getShallow(lb[n]);return lw.useStyle(e),lw.update(),lw.getBoundingRect()},t}(),lM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lT=oV(lM),lI=function(){function t(){}return t.prototype.getLineStyle=function(t){return lT(this,t)},t}(),lC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lk=oV(lC),lD=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return lk(this,t,e)},t}(),lA=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){tw(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(tb(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!tn.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();oL(lA),o=["__\0is_clz",oB++].join("_"),lA.prototype[o]=!0,lA.isInstance=function(t){return!!(t&&t[o])},tI(lA,lI),tI(lA,lD),tI(lA,oH),tI(lA,lS);var lP=Math.round(10*Math.random());function lO(t){return[t||"",lP++].join("_")}function lL(t,e){return tw(tw({},t,!0),e,!0)}var lR={},lB={},lz=tn.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function lE(t,e){lB[t=t.toUpperCase()]=new lA(e),lR[t]=e}function lN(){return null}function lV(t,e){var n=lN(),i=e.breakOption,r=e.breakParsed;return!r&&n&&(r=n.parseAxisBreakOption(i,t)),r}function lF(t){var e=t.brk;return e?e.breaks:[]}function lH(t){var e=t.brk;return!!e&&e.hasBreaks()}lE("EN",{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:". "}}}}),lE("ZH",{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 lW={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},lG={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},lU="{yyyy}-{MM}-{dd}",lZ={year:"{yyyy}",month:"{yyyy}-{MM}",day:lU,hour:lU+" "+lG.hour,minute:lU+" "+lG.minute,second:lU+" "+lG.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lX=["year","month","day","hour","minute","second","millisecond"],lY=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lq(t,e){return t+="","0000".substr(0,e-t.length)+t}function lj(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function lK(t,e,n,i){var r=r$(t),o=r[lJ(n)](),a=r[l0(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[l1(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[l2(n)](),c=(h-1)%12+1,p=r[l5(n)](),d=r[l3(n)](),f=r[l4(n)](),g=h>=12?"pm":"am",v=g.toUpperCase(),m=(i instanceof lA?i:lB[i||lz]||lB.EN).getModel("time"),y=m.get("month"),_=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,lq(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,lq(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,lq(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,lq(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,lq(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,lq(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,lq(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,lq(f,3)).replace(/{S}/g,f+"")}function l$(t,e){var n=r$(t),i=n[l0(e)]()+1,r=n[l1(e)](),o=n[l2(e)](),a=n[l5(e)](),s=n[l3(e)](),l=0===n[l4(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;if(p&&1===i)return"year";if(p)return"month";if(c)return"day";if(h)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function lQ(t,e,n){switch(e){case"year":t[l8(n)](0);case"month":t[l6(n)](1);case"day":t[l7(n)](0);case"hour":t[l9(n)](0);case"minute":t[ut(n)](0);case"second":t[ue(n)](0)}return t}function lJ(t){return t?"getUTCFullYear":"getFullYear"}function l0(t){return t?"getUTCMonth":"getMonth"}function l1(t){return t?"getUTCDate":"getDate"}function l2(t){return t?"getUTCHours":"getHours"}function l5(t){return t?"getUTCMinutes":"getMinutes"}function l3(t){return t?"getUTCSeconds":"getSeconds"}function l4(t){return t?"getUTCMilliseconds":"getMilliseconds"}function l8(t){return t?"setUTCMonth":"setMonth"}function l6(t){return t?"setUTCDate":"setDate"}function l7(t){return t?"setUTCHours":"setHours"}function l9(t){return t?"setUTCMinutes":"setMinutes"}function ut(t){return t?"setUTCSeconds":"setSeconds"}function ue(t){return t?"setUTCMilliseconds":"setMilliseconds"}function un(t){if(isNaN(r2(t)))return tE(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ui(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function ur(t,e,n){function i(t){return t&&t$(t)?t:"-"}var r="time"===e,o=t instanceof Date;if(r||o){var a=r?r$(t):t;if(!isNaN(+a))return lK(a,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(o)return"-"}if("ordinal"===e)return tN(t)?i(t):tV(t)&&r4(t)?t+"":"-";var s=r2(t);return r4(s)?un(s):tN(t)?i(t):"boolean"==typeof t?t+"":"-"}var uo=["a","b","c","d","e","f","g"],ua=function(t,e){return"{"+t+(null==e?"":e)+"}"};function us(t,e,n){tB(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=uo[o];t=t.replace(ua(a),ua(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(ua(uo[l],s),n?eS(u):u)}return t}function ul(t,e){return e=e||"transparent",tE(t)?t:tF(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function uu(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var uh={},uc={},up=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return tk(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(uh,!0),this._normalMasterList=n(uc,!1)},t.prototype.update=function(t,e){tk(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){uh[t]=e;return}uc[t]=e},t.get=function(t){return uc[t]||uh[t]},t}(),ud=t2();function uf(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=ud.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}var ug=["left","right","top","bottom","width","height"],uv=[["width","left","right"],["height","top","bottom"]];function um(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function uy(t,e,n){n=tj(n||0);var i=e.width,r=e.height,o=rF(t.left,i),a=rF(t.top,r),s=rF(t.right,i),l=rF(t.bottom,r),u=rF(t.width,i),h=rF(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new no((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return f.margin=n,f}tR(um,"vertical"),tR(um,"horizontal");function u_(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=uf(t),u=l.coord,h=l.from;if(s.dataToLayout){o=1,a=h;var c=s.dataToLayout(u);i=c.contentRect||c.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=2,a=h,r=s.dataToPoint(u))}return null==o&&(o=1),1===o&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function ux(t){var e=t.layoutMode||t.constructor.layoutMode;return tF(e)?e:e?{type:e}:null}function ub(t,e,n){var i=n&&n.ignoreSize;tB(i)||(i=[i,i]);var r=a(uv[0],0),o=a(uv[1],1);function a(n,r){var o={},a=0,l={},u=0;if(tk(n,function(e){l[e]=t[e]}),tk(n,function(t){t3(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2===u||!a)return l;if(a>=2)return o;for(var h=0;h<n.length;h++){var c=n[h];if(!t3(o,c)&&t3(t,c)){o[c]=t[c];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){tk(t,function(t){e[t]=n[t]})}l(uv[0],t,r),l(uv[1],t,o)}function uw(t){var e,n;return e={},(n=t)&&e&&tk(ug,function(t){t3(n,t)&&(e[t]=n[t])}),e}var uS=os(),uM=function(t){var e;function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=lO("ec_cpt_model"),r}return tt(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{};tw(t,e.getTheme().get(this.mainType)),tw(t,this.getDefaultOption()),n&&ub(t,i,n)},n.prototype.mergeOption=function(t,e){tw(this.option,t,!0);var n=ux(this);n&&ub(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oP]))return t.defaultOption;var e=uS(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=tw(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return od(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(lA);oR(uM,lA),oN(uM),a={},uM.registerSubTypeDefaulter=function(t,e){a[oO(t).main]=e},uM.determineSubType=function(t,e){var n=e.type;if(!n){var i=oO(t).main;uM.hasSubTypes(t)&&a[i]&&(n=a[i](e))}return n};var uT=function(t){var e=[];return tk(uM.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tD(e,function(t){return oO(t).main}),"dataset"!==t&&0>=tT(e,"dataset")&&e.unshift("dataset"),e};function uI(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}uM.topologicalTravel=function(t,e,n,i){if(t.length){var r,o,a,s=(o={},a=[],tk(r=e,function(t){var e,n,i,s=uI(o,t),l=(e=s.originalDeps=uT(t),n=r,i=[],tk(e,function(t){tT(n,t)>=0&&i.push(t)}),i);s.entryCount=l.length,0===s.entryCount&&a.push(t),tk(l,function(e){0>tT(s.predecessor,e)&&s.predecessor.push(e);var n=uI(o,e);0>tT(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,h={};for(tk(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(n.call(i,c,p.originalDeps.slice()),delete h[c]),tk(p.successor,d?g:f)}tk(h,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}};var uC={color:{},darkColor:{},size:{}},uk=uC.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var uD in tS(uk,{primary:uk.neutral80,secondary:uk.neutral70,tertiary:uk.neutral60,quaternary:uk.neutral50,disabled:uk.neutral20,border:uk.neutral30,borderTint:uk.neutral20,borderShade:uk.neutral40,background:uk.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:uk.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:uk.neutral70,axisLineTint:uk.neutral40,axisTick:uk.neutral70,axisTickMinor:uk.neutral60,axisLabel:uk.neutral70,axisSplitLine:uk.neutral15,axisMinorSplitLine:uk.neutral05}),uk)if(uk.hasOwnProperty(uD)){var uA=uk[uD];"theme"===uD?uC.darkColor.theme=uk.theme.slice():"highlight"===uD?uC.darkColor.highlight="rgba(255,231,130,0.4)":0===uD.indexOf("accent")?uC.darkColor[uD]=n9(uA,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):uC.darkColor[uD]=n9(uA,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}uC.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var uP="";"u">typeof navigator&&(uP=navigator.platform||"");var uO="rgba(0, 0, 0, 0.2)",uL=uC.color.theme["0"],uR=n9(uL,null,null,.9);let uB={darkMode:"auto",colorBy:"series",color:uC.color.theme,gradientColor:[uR,uL],aria:{decal:{decals:[{color:uO,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uO,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uO,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uO,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uO,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uO,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uP.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 uz=os();function uE(t,e,n){var i,r,o={},a=uN(e);if(!a||!t)return o;var s=[],l=[],u=uz(e.ecModel).datasetMap,h=a.uid+"_"+n.seriesLayoutBy;tk(t=t.slice(),function(e,n){var a=tF(e)?e:t[n]={name:e};"ordinal"===a.type&&null==i&&(i=n,r=d(a)),o[a.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:r,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function d(t){var e=t.dimsDef;return e?e.length:1}return tk(t,function(t,e){var n=t.name,r=d(t);if(null==i){var a=c.valueWayDim;p(o[n],a,r),p(l,a,r),c.valueWayDim+=r}else if(i===e)p(o[n],0,r),p(s,0,r);else{var a=c.categoryWayDim;p(o[n],a,r),p(l,a,r),c.categoryWayDim+=r}}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function uN(t){if(!t.get("data",!0))return od(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oc).models[0]}function uV(t,e){return function(t,e,n,i,r,o){var a,s,l;if(tW(t))return 3;if(i){var u=i[o];tF(u)?(s=u.name,l=u.type):tE(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===sb)if("row"===n){for(var h=t[o],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=g(h[r+c])))return a}else for(var c=0;c<t.length&&c<5;c++){var p=t[r+c];if(p&&null!=(a=g(p[o])))return a}else if(e===sw){if(!s)return 3;for(var c=0;c<t.length&&c<5;c++){var d=t[c];if(d&&null!=(a=g(d[s])))return a}}else if(e===sS){if(!s)return 3;var h=t[s];if(!h||tW(h))return 3;for(var c=0;c<h.length&&c<5;c++)if(null!=(a=g(h[c])))return a}else if(e===sx)for(var c=0;c<t.length&&c<5;c++){var d=t[c],f=ot(d);if(!tB(f))return 3;if(null!=(a=g(f[o])))return a}function g(t){var e=tE(t);return null!=t&&isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var uF=t2(),uH=os(),uW=os(),uG=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return uZ(this,uH,r6(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=uH)(t).paletteIdx=0,e(t).paletteNameMap={}},t}();function uU(t,e,n,i){var r=r6(t.get(["aria","decal","decals"]));return uZ(t,uW,r,null,e,n,i)}function uZ(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var uX="\0_ec_inner",uY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new lA(i),this._locale=new lA(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=uK(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,uK(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):g(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tk(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=t2(),s=e&&e.replaceMergeMainTypeMap;uz(this).datasetMap=t2(),tk(t,function(t,e){null!=t&&(uM.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?tb(t):tw(n[e],t,!0))}),s&&s.each(function(t,e){uM.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),uM.topologicalTravel(o,uM.getAllClassMainTypes(),function(e){var o,a,l,u,h,c,p,f,g,v,m,y,_,x,b,w,S,M,T,I,C=function(t,e,n){var i=uF.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,r6(t[e])),k=i.get(e),D=k?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",A=(_=k,x=C,b="normalMerge"===D,w="replaceMerge"===D,S="replaceAll"===D,_=_||[],x=(x||[]).slice(),M=t2(),tk(x,function(t,e){if(!tF(t)){x[e]=null;return}}),T=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||oo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(_,M,D),(b||w)&&(o=T,a=_,l=M,tk(u=x,function(t,e){if(t&&null!=t.id){var n=on(t.id),i=l.get(n);if(null!=i){var r=o[i];tK(!r.newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=a[i],u[e]=null}}})),b&&(h=T,tk(c=x,function(t,e){if(t&&null!=t.name)for(var n=0;n<h.length;n++){var i=h[n].existing;if(!h[n].newOption&&i&&(null==i.id||null==t.id)&&!oo(t)&&!oo(i)&&oe("name",i,t)){h[n].newOption=t,c[e]=null;return}}})),b||w?(p=T,f=x,g=w,tk(f,function(t){if(t){for(var e,n=0;(e=p[n])&&(e.newOption||oo(e.existing)||e.existing&&null!=t.id&&!oe("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=g):p.push({newOption:t,brandNew:g,existing:null,keyInfo:null}),n++}})):S&&(v=T,tk(x,function(t){v.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),m=T,y=t2(),tk(m,function(t){var e=t.existing;e&&y.set(e.id,t)}),tk(m,function(t){var e=t.newOption;tK(!e||null==e.id||!y.get(e.id)||y.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&y.set(e.id,t),t.keyInfo||(t.keyInfo={})}),tk(m,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(tF(i)){if(r.name=null!=i.name?on(i.name):n?n.name:r8+e,n)r.id=on(n.id);else if(null!=i.id)r.id=on(i.id);else{var o=0;do r.id="\0"+r.name+"\0"+o++;while(y.get(r.id))}y.set(r.id,t)}}),T);tk(A,function(t){var n,i,r,o,a=t.newOption;tF(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,i=a,r=t.existing,o=uM,i.type?i.type:r?r.subType:o.determineSubType(n,i)))}),n[e]=null,i.set(e,null),r.set(e,0);var P=[],O=[],L=0;tk(A,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=uM.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(I)return;I=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=tS({componentIndex:n},t.keyInfo);tS(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(P.push(i.option),O.push(i),L++):(P.push(void 0),O.push(void 0))},this),n[e]=P,i.set(e,O),r.set(e,L),"series"===e&&d(this)},this),this._seriesIndices||d(this)},e.prototype.getOption=function(){var t=tb(this.option);return tk(t,function(e,n){if(uM.hasClass(n)){for(var i=r6(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!oo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[uX],t},e.prototype.setTheme=function(t){this._theme=new lA(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e){for(var r=0;r<n.length;r++)if(n[r])return n[r]}}},e.prototype.queryComponents=function(t){var e,n=t.mainType;if(!n)return[];var i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=i?(e=[],tk(r6(i),function(t){a[t]&&e.push(a[t])})):e=null!=r?uq("id",r,a):null!=o?uq("name",o,a):tP(a,function(t){return!!t}),uj(e,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",i=s+"Id",r=s+"Name",e&&(null!=e[n]||null!=e[i]||null!=e[r])?{mainType:s,index:e[n],id:e[i],name:e[r]}:null);return o=uj(l?this.queryComponents(l):tP(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?tP(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(tz(t))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var o=n[r];o&&t.call(e,i,o,o.componentIndex)}});else for(var r=tE(t)?i.get(t):tF(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=oi(t,null);return tP(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tP(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return tP(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){f(this),tk(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){tk(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){f(this),tk(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return tk(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return f(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){f(this);var n=[];tk(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=t2(n)},e.prototype.restoreData=function(t){d(this);var e=this._componentsMap,n=[];e.each(function(t,e){uM.hasClass(e)&&n.push(e)}),uM.topologicalTravel(n,uM.getAllClassMainTypes(),function(n){tk(e.get(n),function(e){e&&("series"!==n||!function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})},e.internalField=void(d=function(t){var e=t._seriesIndices=[];tk(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=t2(e)},f=function(t){},g=function(t,e){t.option={},t.option[uX]=1,t._componentsMap=t2({series:[]}),t._componentsCount=t2();var n,i,r,o=e.aria;tF(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,tk(i,function(t,e){"colorLayer"===e&&r||"color"===e&&n.color||uM.hasClass(e)||("object"==typeof t?n[e]=n[e]?tw(n[e],t,!1):tb(t):null==n[e]&&(n[e]=t))}),tw(e,uB,!1),t._mergeOption(e,null)}),e}(lA);function uq(t,e,n){if(tB(e)){var i=t2();return tk(e,function(t){null!=t&&null!=oi(t,null)&&i.set(t,!0)}),tP(n,function(e){return e&&i.get(e[t])})}var r=oi(e,null);return tP(n,function(e){return e&&null!=r&&e[t]===r})}function uj(t,e){return e.hasOwnProperty("subType")?tP(t,function(t){return t&&t.subType===e.subType}):t}function uK(t){var e=t2();return t&&tk(r6(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tI(uY,uG);var u$=/^(min|max)?(.+)$/,uQ=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(tk(r6(t.series),function(t){t&&t.data&&tW(t.data)&&(t.data[tQ]=!0)}),tk(r6(t.dataset),function(t){t&&t.source&&tW(t.source)&&(t.source[tQ]=!0)})),t=tb(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);function p(t){tk(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t),h&&tB(u)&&tk(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),p(r),tk(l,function(t){return p(t)}),tk(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tb(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=tb(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)(function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return tk(t,function(t,e){var n=e.match(u$);if(n&&n[1]&&n[2]){var o,a,s,l=n[1];o=i[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=tD(s,function(t){return tb(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),uJ=tF,u0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u1(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=u0.length;n<i;n++){var r=u0[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?tw(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?tw(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function u2(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,tM(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function u5(t){u2(t,"itemStyle"),u2(t,"lineStyle"),u2(t,"areaStyle"),u2(t,"label"),u2(t,"labelLine"),u2(t,"upperLabel"),u2(t,"edgeLabel")}function u3(t,e){var n=uJ(t)&&t[e],i=uJ(n)&&n.textStyle;if(i)for(var r=0,o=r9.length;r<o;r++){var a=r9[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function u4(t){t&&(u5(t),u3(t,"label"),t.emphasis&&u3(t.emphasis,"label"))}function u8(t){return tB(t)?t:t?[t]:[]}function u6(t){return(tB(t)?t[0]:t)||{}}function u7(t){t&&tk(u9,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var u9=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ht=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],he=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hn(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<he.length;n++){var i=he[n][1],r=he[n][0];null!=e[i]&&(e[r]=e[i])}}function hi(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hr(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ho(t,e){var n;tk(u8(t.series),function(t){uJ(t)&&function(t){if(uJ(t)){u1(t),u5(t),u3(t,"label"),u3(t,"upperLabel"),u3(t,"edgeLabel"),t.emphasis&&(u3(t.emphasis,"label"),u3(t.emphasis,"upperLabel"),u3(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u1(e),u4(e));var n=t.markLine;n&&(u1(n),u4(n));var i=t.markArea;i&&u4(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!tW(o))for(var a=0;a<o.length;a++)u4(o[a]);tk(t.categories,function(t){u5(t)})}if(r&&!tW(r))for(var a=0;a<r.length;a++)u4(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)u4(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)tB(l[a])?(u4(l[a][0]),u4(l[a][1])):u4(l[a]);"gauge"===t.type?(u3(t,"axisLabel"),u3(t,"title"),u3(t,"detail")):"treemap"===t.type?(u2(t.breadcrumb,"itemStyle"),tk(t.levels,function(t){u5(t)})):"tree"===t.type&&u5(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),tk(n,function(e){tk(u8(t[e]),function(t){t&&(u3(t,"axisLabel"),u3(t.axisPointer,"label"))})}),tk(u8(t.parallel),function(t){var e=t&&t.parallelAxisDefault;u3(e,"axisLabel"),u3(e&&e.axisPointer,"label")}),tk(u8(t.calendar),function(t){u2(t,"itemStyle"),u3(t,"dayLabel"),u3(t,"monthLabel"),u3(t,"yearLabel")}),tk(u8(t.radar),function(t){u3(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tk(u8(t.geo),function(t){uJ(t)&&(u4(t),tk(u8(t.regions),function(t){u4(t)}))}),tk(u8(t.timeline),function(t){u4(t),u2(t,"label"),u2(t,"itemStyle"),u2(t,"controlStyle",!0);var e=t.data;tB(e)&&tk(e,function(t){tF(t)&&(u2(t,"label"),u2(t,"itemStyle"))})}),tk(u8(t.toolbox),function(t){u2(t,"iconStyle"),tk(t.feature,function(t){u2(t,"iconStyle")})}),u3(u6(t.axisPointer),"label"),u3(u6(t.tooltip).axisPointer,"label"),t.series=r6(t.series),tk(t.series,function(t){if(tF(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),hi(t.label);var n=t.data;if(n&&!tW(n))for(var i=0;i<n.length;i++)hi(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=r&&function(t,e,n){for(var i,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){hn(t),hn(t.backgroundStyle),hn(t.emphasis);var n=t.data;if(n&&!tW(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(hn(n[i]),hn(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hr(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,hr)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&tM(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),u7(t)}}),t.dataRange&&(t.visualMap=t.dataRange),tk(ht,function(e){var n=t[e];n&&(tB(n)||(n=[n]),tk(n,function(t){u7(t)}))})}var ha=oD(function(t){var e=t2();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),tk(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),tk(e=t,function(t,n){var i=[],r=[0/0,0/0],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,d=a.get(t.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(t.stackedByDimension,h);for(var f=0/0,g=n-1;g>=0;g--){var v=e[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,c)),p>=0){var m=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&d>=0&&m>0||"samesign"===l&&d<=0&&m<0){d=rX(d,m),f=m;break}}}return i[0]=d,i[1]=f,i})}))})}),hs=function(t){this.data=t.data||(t.sourceFormat===sS?{}:[]),this.sourceFormat=t.sourceFormat||sT,this.seriesLayoutBy=t.seriesLayoutBy||sI,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&1===uV(this,n)&&(i.type="ordinal")}};function hl(t){return t instanceof hs}function hu(t,e,n){n=n||hc(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){if(!t)return{dimensionsDefine:hp(r),startIndex:a,dimensionsDetectedCount:o};if(e===sb){var o,a;"auto"===i||null==i?hd(function(t){null!=t&&"-"!==t&&(tE(t)?null==a&&(a=1):a=0)},n,t,10):a=tV(i)?i:+!!i,r||1!==a||(r=[],hd(function(t,e){r[e]=null!=t?t+"":""},n,t,1/0)),o=r?r.length:"row"===n?t.length:t[0]?t[0].length:null}else if(e===sw)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return tO(e)}(t));else if(e===sS)r||(r=[],tk(t,function(t,e){r.push(e)}));else if(e===sx){var s=ot(t[0]);o=tB(s)&&s.length||1}return{startIndex:a,dimensionsDefine:hp(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new hs({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:tb(e)})}function hh(t){return new hs({data:t,sourceFormat:tW(t)?sM:sx})}function hc(t){var e=sT;if(tW(t))e=sM;else if(tB(t)){0===t.length&&(e=sb);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(tB(r)||tW(r)){e=sb;break}else if(tF(r)){e=sw;break}}}}else if(tF(t)){for(var o in t)if(t3(t,o)&&tC(t[o])){e=sS;break}}return e}function hp(t){if(t){var e=t2();return tD(t,function(t,n){var i={name:(t=tF(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function hd(t,e,n,i){if("row"===e)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function hf(t){var e=t.sourceFormat;return e===sw||e===sS}var hg={},hv="u">typeof console&&console.warn&&console.log;function hm(t,e){!function(t,e,n){if(hv){if(n){if(hg[e])return;hg[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function hy(t){throw Error(t)}var h_=function(){var t;function e(t,e){var n=hl(t)?t:hh(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===sM&&(this._offset=0,this._dimSize=e,this._data=i),b(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){b=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;tS(t,x[hC(a,s)]),a===sM?(t.getItem=e,t.count=i,t.fillStorage=n):(t.getItem=tL(function(t,e){return hw[hC(t,e)]}(a,s),null,r,l,u),t.count=tL(function(t,e){return hM[hC(t,e)]}(a,s),null,r,l,u))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=r[p*o+a];c[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[sb+"_"+sI]={pure:!0,appendData:r},t[sb+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[sw]={pure:!0,appendData:r},t[sS]={pure:!0,appendData:function(t){var e=this._data;tk(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[sx]={appendData:r},t[sM]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},x=t}(),e}(),hx=function(t){tB(t)||hm("series.data or dataset.source must be an array.")};(v={})[sb+"_"+sI]=hx,v[sb+"_row"]=hx,v[sw]=hx,v[sS]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&hm("dimension name must not be null/undefined.")},v[sx]=hx;var hb=function(t,e,n,i){return t[i]},hw=((m={})[sb+"_"+sI]=function(t,e,n,i){return t[i+e]},m[sb+"_row"]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[i]:null}return o},m[sw]=hb,m[sS]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},m[sx]=hb,m),hS=function(t,e,n){return t.length},hM=((y={})[sb+"_"+sI]=function(t,e,n){return Math.max(0,t.length-e)},y[sb+"_row"]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},y[sw]=hS,y[sS]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},y[sx]=hS,y),hT=function(t,e,n){return t[e]},hI=((_={})[sb]=hT,_[sw]=function(t,e,n){return t[n]},_[sS]=hT,_[sx]=function(t,e,n){var i=ot(t);return i instanceof Array?i[e]:i},_[sM]=hT,_);function hC(t,e){return t===sb?t+"_"+e:t}function hk(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return hI[o](i,a,s)}var l=i;return o===sx&&(l=ot(i)),l}}}var hD=/\{@(.+?)\}/g,hA=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=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:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return(o&&(s.value=o.interpolatedValue),null!=i&&tB(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),tz(r))?(s.status=e,s.dimensionIndex=i,r(s)):tE(r)?us(r,s).replace(hD,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=hk(a,t,r);if(o&&tB(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return hk(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function hP(t){var e,n;return tF(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function hO(t){return new hL(t)}var hL=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,i,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=h,this._modDataCount=c;var p=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(r||d<f)){var g=this._progress;if(tB(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,f,h,c);else this._doProgress(g,d,f,h,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){hR.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:hR.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),tB(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),hR=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,r=Math.ceil((i=c)/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function hB(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||tV(t)||null==t||"-"===t||(t=+r$(t)),null==t||""===t?0/0:Number(t))}t2({number:function(t){return parseFloat(t)},time:function(t){return+r$(t)},trim:function(t){return tE(t)?t$(t):t}});var hz={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}};(function(t,e){tV(e)||hy(""),this._opFn=hz[t],this._rvalFloat=r2(e)}).prototype.evaluate=function(t){return tV(t)?this._opFn(t,this._rvalFloat):this._opFn(r2(t),this._rvalFloat)};var hE=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=tV(t)?t:r2(t),i=tV(e)?e:r2(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=tE(t),s=tE(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}();function hN(t){var e="",n=-1/0,i=-1/0,r=1/0,o=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,i=t.ge),null!=t.l&&(e+="L"+t.l,r=t.l),null!=t.le&&(e+="LE"+t.le,o=t.le)),{key:e,g:n,ge:i,l:r,le:o}}function hV(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}(function(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=r2(e)}).prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(e=r2(t)===this._rvalFloat)}return this._isEQ?e:!e};var hF=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return hB(t,e)},t}();function hH(t){return hX(t.sourceFormat)||hy(""),t.data}function hW(t){var e=t.sourceFormat,n=t.data;if(hX(e)||hy(""),e===sb){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===sw){for(var i=[],r=0,o=n.length;r<o;r++)i.push(tS({},n[r]));return i}}function hG(t,e,n){if(null!=n){if(tV(n)||!isNaN(n)&&!t3(e,n))return t[n];else if(t3(e,n))return e[n]}}function hU(t){return tb(t)}var hZ=t2();function hX(t){return t===sb||t===sw}var hY=typeof Uint32Array===sm?Array:Uint32Array,hq=typeof Uint16Array===sm?Array:Uint16Array,hj=typeof Int32Array===sm?Array:Int32Array,hK=typeof Float64Array===sm?Array:Float64Array,h$={float:hK,int:hj,ordinal:Array,number:Array,time:hK};function hQ(t){return t>65535?hY:hq}function hJ(t,e,n,i,r){var o=h$[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var h0=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=t2()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=w[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],hf(i),this._dimensions=tD(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new h$[e||"float"](this._rawCount),this._rawExtent[r]=ov(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=ov());for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var u=i[l];hJ(n,l,u.type,s,!0)}for(var h=[],c=a;c<s;c++)for(var p=c-a,d=0;d<r;d++){var u=i[d],f=w.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tD(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=ov()),hJ(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++){c=i.getItem(p,c);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:0/0},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._chunks[t];return n?n[e]:0/0},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)}),rG(e);var n=this.count();return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=hQ(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(hQ(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=tO(t),r=i.length;if(!r)return this;var o=e.count(),a=new(hQ(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=c[i[0]],g=0;g<n;g++){var v=f[g];(v>=u&&v<=h||isNaN(v))&&(a[s++]=d),d++}p=!0}else if(2===r){for(var f=c[i[0]],m=c[i[1]],y=t[i[1]][0],_=t[i[1]][1],g=0;g<n;g++){var v=f[g],x=m[g];(v>=u&&v<=h||isNaN(v))&&(x>=y&&x<=_||isNaN(x))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(var g=0;g<o;g++){var b=e.getRawIndex(g),v=c[i[0]][b];(v>=u&&v<=h||isNaN(v))&&(a[s++]=b)}else for(var g=0;g<o;g++){for(var w=!0,b=e.getRawIndex(g),S=0;S<r;S++){var M=i[S],v=c[M][b];(v<t[M][0]||v>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ov();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],m=i[f];m&&(m[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(hQ(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,m=d;m<f;m++){var y=this.getRawIndex(m),_=a[y];isNaN(_)||(v+=_)}v/=f-d;var x=p,b=Math.min(p+u,s),w=p-1,S=a[h];n=-1,r=x;for(var M=-1,T=0,m=x;m<b;m++){var y=this.getRawIndex(m),_=a[y];if(isNaN(_)){T++,M<0&&(M=y);continue}(i=Math.abs((w-g)*(_-S)-(w-m)*(v-S)))>n&&(n=i,r=y)}T>0&&T<b-x&&(c[l++]=Math.min(M,r),r=Math.max(M,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(hQ(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var h=u,c=o[this.getRawIndex(h)],p=u,d=o[this.getRawIndex(p)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var v=o[this.getRawIndex(u+g)];v<c&&(c=v,h=u+g),v>d&&(d=v,p=u+g)}var m=this.getRawIndex(h),y=this.getRawIndex(p);h<p?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=ov(),c=new(hQ(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[m]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var n=this._chunks[t],i=ov();if(!n)return i;var r=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=hN(e),l=s.key,u=a[l];if(u)return u.slice();for(var h=i[0],c=i[1],p=0;p<r;p++){var d=n[this.getRawIndex(p)];(!e||hV(s,d))&&(d<h&&(h=d),d>c&&(c=d))}return a[l]=[h,c]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&tA(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tb(this._extent),t._rawExtent=tb(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return hB(t[i],this._dimensions[i])}w={arrayRows:t,objectRows:function(t,e,n,i){return hB(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return hB(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),h1=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(h2(n)){var o=void 0,a=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=tW(o=n.get("data",!0))?sM:sx,e=[];var u=this._getSourceMetaRawOption()||{},h=s&&s.metaRawOption||{},c=tX(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=tX(u.sourceHeader,h.sourceHeader),d=tX(u.dimensions,h.dimensions);t=c!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d?[hu(o,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},a)]:[]}else if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[hu(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);null!=o&&1!==t.length&&h5("");var a=[],s=[];return(tk(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||h5(""),a.push(e),s.push(t._getVersionSign())}),r)?n=function(t,e,n){var i=r6(t),r=i.length;r||hy("");for(var o=0;o<r;o++)e=function(t,e){e.length||hy(""),tF(t)||hy("");var n=t.type,i=hZ.get(n);i||hy("");var r=tD(e,function(t){return function(t,e){var n=new hF,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==sI&&hy("");var a=[],s={},l=t.dimensionsDefine;if(l)tk(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(t3(s,n)&&hy(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount||0;u++)a.push({index:u});var h=hw[hC(r,sI)];e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,a,t)},n.getRawData=tL(hH,null,t)),n.cloneRawData=tL(hW,null,t),n.count=tL(hM[hC(r,sI)],null,i,o,a);var c=hI[r];n.retrieveValue=function(t,e){return p(h(i,o,a,t),e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];if(n)return c(t,e,n.name)}};return n.getDimensionInfo=tL(hG,null,a,s),n.cloneAllDimensionInfo=tL(hU,null,a),n}(t,i)});return tD(r6(i.transform({upstream:r[0],upstreamList:r,config:tb(t.config)})),function(t,n){tF(t)||hy(""),t.data||hy(""),hX(hc(t.data))||hy("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:sI,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:sI,sourceHeader:0,dimensions:t.dimensions};return hu(t.data,i,null)})}(i[o],e),o!==r-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:i.componentIndex}):null!=o&&(n=[new hs({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tb(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];h2(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new h0).initData(new h_(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(h2(t)){var e=uN(t);return e?[e.getSourceManager()]:[]}return tD(t.get("transform",!0)||t.get("fromTransformResult",!0)?od(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oc).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return h2(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function h2(t){return"series"===t.mainType}function h5(t){throw Error(t)}function h3(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+eS(e+"")+"px"}function h4(t,e){var n=t.color||uC.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||uC.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+eS(i+"")+"px;color:"+eS(n)+";font-weight:"+eS(r+""),valueStyle:"font-size:"+eS(a+"")+"px;color:"+eS(o)+";font-weight:"+eS(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var h8=[0,10,20,30],h6=["","\n","\n\n","\n\n\n"];function h7(t,e){return e.type=t,e}function h9(t){return"section"===t.type}function ct(t,e,n,i){var r,o=e.noHeader,a={html:h8[r=function t(e){if(h9(e)){var n=0,i=e.blocks.length,r=i>1||i>0&&!e.noHeader;return tk(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||h9(e)&&!e.noHeader)))}),n}return 0}(e)],richText:h6[r]},s=[],l=e.blocks||[];tK(!l||tB(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(t3(h,u)){var c=new hE(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}tk(l,function(n,r){var o=e.valueFormatter,l=(h9(n)?ct:ce)(o?tS(tS({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):ci(i,s.join(""),o?n:a.html);if(o)return p;var d=ur(e.header,"ordinal",t.useUTC),f=h4(i,t.renderMode).nameStyle,g=h3(i);return"richText"===t.renderMode?cr(t,d,f)+a.richText+p:ci(i,'<div style="'+f+";"+g+';">'+eS(d)+"</div>"+p,n)}function ce(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return tD(t=tB(t)?t:[t],function(t,e){return ur(t,tB(b)?b[e]:b,u)})};if(!o||!a){var c,p,d,f,g,v,m,y,_=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||uC.color.secondary,r),x=o?"":ur(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.rawDataIndex),S=!s||!o,M=!s&&o,T=h4(i,r),I=T.nameStyle,C=T.valueStyle;return"richText"===r?(s?"":_)+(o?"":cr(t,x,I))+(a?"":(c=t,p=w,d=S,f=M,g=[C],d&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(tB(p)?p.join(" "):p,g))):ci(i,(s?"":_)+(o?"":'<span style="'+I+";"+(s?"":"margin-left:2px")+'">'+eS(x)+"</span>")+(a?"":(v=w,m=S,y=M,'<span style="'+(m?"float:right;margin-left:"+(y?"10px":"20px"):"")+";"+C+'">'+tD(v=tB(v)?v:[v],function(t){return eS(t)}).join(" ")+"</span>")),n)}}function cn(t,e,n,i,r,o){if(t)return(h9(t)?ct:ce)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function ci(t,e,n){return'<div style="margin: '+n+"px 0 0;"+h3(t)+';">'+e+'<div style="clear:both"></div></div>'}function cr(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function co(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var ca=function(){function t(){this.richTextStyles={},this._nextStyleNameId=r5()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i,r,o,a,s,l,u="richText"===n?this._generateStyleName():null,h=(a=(o=tE(i={color:e,type:t,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+eS(a)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+eS(a)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tE(h)?h:(this.richTextStyles[u]=h.style,h.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};tB(e)?tk(e,function(t){return tS(n,t)}):tS(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),cs=os();function cl(t,e){return t.getName(e)||t.getId(e)}var cu=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return tt(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=hO({count:cc,reset:cp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(cs(this).sourceManager=new h1(this)).prepareSource();var i=this.getInitialData(t,n);cf(i,this),this.dataTask.context.data=i,cs(this).dataBeforeProcessed=i,ch(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{},r=this.subType;uM.hasClass(r)&&(r+="Series"),tw(t,e.getTheme().get(this.subType)),tw(t,this.getDefaultOption()),r7(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ub(t,i,n)},n.prototype.mergeOption=function(t,e){t=tw(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ux(this);n&&ub(this.option,t,n);var i=cs(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);cf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,cs(this).dataBeforeProcessed=r,ch(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!tW(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&r7(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=cv(this);if(!e)return cs(this).data;var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=cv(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}cs(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return t2(t)},n.prototype.getSourceManager=function(){return cs(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return cs(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);for(var l=[],u=1/0,h=-1,c=0,p=r.getDimensionIndex(e),d=r.getStore(),f=0,g=d.count();f<g;f++){var v=d.get(p,f),m=s-a.dataToCoord(v),y=Math.abs(m);y<=i&&((y<u||y===u&&m>=0&&h<0)&&(u=y,h=m,c=0),m===h&&(l[c++]=f))}return l.length=c,l},n.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=tB(c),d=ul(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=tA(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(h7("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tk(i,function(t){h(hk(o,n,t),t)}):tk(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=hk(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var v=or(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return h7("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[h7("nameValue",{markerType:"item",markerColor:d,name:_,noName:!t$(_),value:e,valueType:n,rawDataIndex:l.getRawIndex(a)})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(tn.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=uG.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=cl(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=tO(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[cl(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){tF(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l],h=cl(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=cl(t,c);(n={})[h]=!0,r.selectedMap=n,this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return uM.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(uM);function ch(t){var e,n,i,r=t.name;or(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],tk(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function cc(t){return t.model.getRawData().count()}function cp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cd}function cd(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cf(t,e){tk(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tR(cg,e))})}function cg(t,e){var n=cv(t);return n&&n.setOutputEnd((e||this).count()),e}function cv(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}tI(cu,hA),tI(cu,uG),oR(cu,uM);var cm=function(){function t(){this.group=new rS,this.uid=lO("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function cy(){var t=os();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}oL(cm),oN(cm);var c_=aL.CMD,cx=[[],[],[]],cb=Math.sqrt,cw=Math.atan2,cS=Math.sqrt,cM=Math.sin,cT=Math.cos,cI=Math.PI;function cC(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ck(t,e){return(t[0]*e[0]+t[1]*e[1])/(cC(t)*cC(e))}function cD(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ck(t,e))}function cA(t,e,n,i,r,o,a,s,l,u,h){var c=cI/180*l,p=cT(c)*(t-n)/2+cM(c)*(e-i)/2,d=-1*cM(c)*(t-n)/2+cT(c)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=cS(f),s*=cS(f));var g=(r===o?-1:1)*cS((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,m=-(g*s)*p/a,y=(t+n)/2+cT(c)*v-cM(c)*m,_=(e+i)/2+cM(c)*v+cT(c)*m,x=cD([1,0],[(p-v)/a,(d-m)/s]),b=[(p-v)/a,(d-m)/s],w=[(-1*p-v)/a,(-1*d-m)/s],S=cD(b,w);if(-1>=ck(b,w)&&(S=cI),ck(b,w)>=1&&(S=0),S<0){var M=Math.round(S/cI*1e6)/1e6;S=2*cI+M%2*cI}h.addData(u,y,_,a,s,x,S,c,o)}var cP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,cL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.applyTransform=function(t){},e}(aY);function cR(t){return null!=t.setData}function cB(t,e){var n=function(t){var e,n=new aL;if(!t)return n;var i=0,r=0,o=0,a=0,s=aL.CMD,l=t.match(cP);if(!l)return n;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(cO)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=i,T=r,I=void 0,C=void 0;switch(c){case"l":i+=d[v++],r+=d[v++],p=s.L,n.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,n.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,n.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[v++],r=d[v++],p=s.M,n.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[v++],p=s.L,n.addData(p,i,r);break;case"H":i=d[v++],p=s.L,n.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,n.addData(p,i,r);break;case"V":r=d[v++],p=s.L,n.addData(p,i,r);break;case"C":p=s.C,n.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,n.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":m=i,y=r,I=n.len(),C=n.data,e===s.C&&(m+=i-C[I-4],y+=r-C[I-3]),p=s.C,M=d[v++],T=d[v++],i=d[v++],r=d[v++],n.addData(p,m,y,M,T,i,r);break;case"s":m=i,y=r,I=n.len(),C=n.data,e===s.C&&(m+=i-C[I-4],y+=r-C[I-3]),p=s.C,M=i+d[v++],T=r+d[v++],i+=d[v++],r+=d[v++],n.addData(p,m,y,M,T,i,r);break;case"Q":M=d[v++],T=d[v++],i=d[v++],r=d[v++],p=s.Q,n.addData(p,M,T,i,r);break;case"q":M=d[v++]+i,T=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,n.addData(p,M,T,i,r);break;case"T":m=i,y=r,I=n.len(),C=n.data,e===s.Q&&(m+=i-C[I-4],y+=r-C[I-3]),i=d[v++],r=d[v++],p=s.Q,n.addData(p,m,y,i,r);break;case"t":m=i,y=r,I=n.len(),C=n.data,e===s.Q&&(m+=i-C[I-4],y+=r-C[I-3]),i+=d[v++],r+=d[v++],p=s.Q,n.addData(p,m,y,i,r);break;case"A":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],M=i,T=r,i=d[v++],cA(M,T,i,r=d[v++],w,S,_,x,b,p=s.A,n);break;case"a":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],M=i,T=r,i+=d[v++],cA(M,T,i,r+=d[v++],w,S,_,x,b,p=s.A,n)}}("z"===c||"Z"===c)&&(p=s.Z,n.addData(p),i=o,r=a),e=p}return n.toStatic(),n}(t),i=tS({},e);return i.buildPath=function(t){var e=cR(t);if(e&&t.canSave()){t.appendPath(n);var i=t.getContext();i&&t.rebuildPath(i,1)}else{var i=e?t.getContext():t;i&&n.rebuildPath(i,1)}},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=c_.M,c=c_.C,p=c_.L,d=c_.R,f=c_.A,g=c_.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case h:case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var v=e[4],m=e[5],y=cb(e[0]*e[0]+e[1]*e[1]),_=cb(e[2]*e[2]+e[3]*e[3]),x=cw(-e[1]/_,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=_,l[r++]+=m,l[r++]*=y,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],el(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],el(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=cx[a];b[0]=l[r++],b[1]=l[r++],el(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var cz=function(){this.cx=0,this.cy=0,this.r=0},cE=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cz},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(aY);cE.prototype.type="circle";let cN=cE;var cV=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},cF=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cV},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-s,n-a,i-o,n,i-o),t.bezierCurveTo(n+a,i-o,n+r,i-s,n+r,i),t.bezierCurveTo(n+r,i+s,n+a,i+o,n,i+o),t.bezierCurveTo(n-a,i+o,n-r,i+s,n-r,i),t.closePath()},e}(aY);cF.prototype.type="ellipse";let cH=cF;var cW=Math.PI,cG=2*cW,cU=Math.sin,cZ=Math.cos,cX=Math.acos,cY=Math.atan2,cq=Math.abs,cj=Math.sqrt,cK=Math.max,c$=Math.min;function cQ(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/cj(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,v=(p+f)/2,m=(d+g)/2,y=f-p,_=g-d,x=y*y+_*_,b=r-o,w=p*g-f*d,S=(_<0?-1:1)*cj(cK(0,b*b*x-w*w)),M=(w*_-y*S)/x,T=(-w*y-_*S)/x,I=(w*_+y*S)/x,C=(-w*y+_*S)/x,k=M-v,D=T-m,A=I-v,P=C-m;return k*k+D*D>A*A+P*P&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}var cJ=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},c0=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cJ},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=cK(e.r,0),r=cK(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,p=!!e.clockwise,d=cq(u-l),f=d>cG&&d%cG;if(f>1e-4&&(d=f),i>1e-4)if(d>cG-1e-4)t.moveTo(h+i*cZ(l),c+i*cU(l)),t.arc(h,c,i,l,u,!p),r>1e-4&&(t.moveTo(h+r*cZ(u),c+r*cU(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,k=void 0,D=void 0,A=void 0,P=i*cZ(l),O=i*cU(l),L=r*cZ(u),R=r*cU(u),B=d>1e-4;if(B){var z=e.cornerRadius;z&&(g=(n=function(t){var e;if(tB(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(z))[0],v=n[1],m=n[2],y=n[3]);var E=cq(i-r)/2;if(_=c$(E,m),x=c$(E,y),b=c$(E,g),w=c$(E,v),T=S=cK(_,x),I=M=cK(b,w),(S>1e-4||M>1e-4)&&(C=i*cZ(u),k=i*cU(u),D=r*cZ(l),A=r*cU(l),d<cW)){var N=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;if(!(p*p<1e-4))return p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u]}(P,O,D,A,C,k,L,R);if(N){var V=P-N[0],F=O-N[1],H=C-N[0],W=k-N[1],G=1/cU(cX((V*H+F*W)/(cj(V*V+F*F)*cj(H*H+W*W)))/2),U=cj(N[0]*N[0]+N[1]*N[1]);T=c$(S,(i-U)/(G+1)),I=c$(M,(r-U)/(G-1))}}}if(B)if(T>1e-4){var Z=c$(m,T),X=c$(y,T),Y=cQ(D,A,P,O,i,Z,p),q=cQ(C,k,L,R,i,X,p);t.moveTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),T<S&&Z===X?t.arc(h+Y.cx,c+Y.cy,T,cY(Y.y0,Y.x0),cY(q.y0,q.x0),!p):(Z>0&&t.arc(h+Y.cx,c+Y.cy,Z,cY(Y.y0,Y.x0),cY(Y.y1,Y.x1),!p),t.arc(h,c,i,cY(Y.cy+Y.y1,Y.cx+Y.x1),cY(q.cy+q.y1,q.cx+q.x1),!p),X>0&&t.arc(h+q.cx,c+q.cy,X,cY(q.y1,q.x1),cY(q.y0,q.x0),!p))}else t.moveTo(h+P,c+O),t.arc(h,c,i,l,u,!p);else t.moveTo(h+P,c+O);if(r>1e-4&&B)if(I>1e-4){var Z=c$(g,I),X=c$(v,I),Y=cQ(L,R,C,k,r,-X,p),q=cQ(P,O,D,A,r,-Z,p);t.lineTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),I<M&&Z===X?t.arc(h+Y.cx,c+Y.cy,I,cY(Y.y0,Y.x0),cY(q.y0,q.x0),!p):(X>0&&t.arc(h+Y.cx,c+Y.cy,X,cY(Y.y0,Y.x0),cY(Y.y1,Y.x1),!p),t.arc(h,c,r,cY(Y.cy+Y.y1,Y.cx+Y.x1),cY(q.cy+q.y1,q.cx+q.x1),p),Z>0&&t.arc(h+q.cx,c+q.cy,Z,cY(q.y1,q.x1),cY(q.y0,q.x0),!p))}else t.lineTo(h+L,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+L,c+R)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(aY);c0.prototype.type="sector";let c1=c0;var c2=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},c5=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new c2},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(aY);c5.prototype.type="ring";let c3=c5;function c4(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)eu(a,a,t[p]),eh(s,s,t[p]);eu(a,a,i[0]),eh(s,s,i[1])}for(var p=0,d=t.length;p<d;p++){var f,g=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else if(0===p||p===d-1){l.push([(f=t[p])[0],f[1]]);continue}else r=t[p-1],o=t[p+1];ei(u,o,r),er(u,u,e);var v=ea(g,r),m=ea(g,o),y=v+m;0!==y&&(v/=y,m/=y),er(h,u,-v),er(c,u,m);var _=en([],g,h),x=en([],g,c);i&&(eh(_,_,a),eu(_,_,s),eh(x,x,a),eu(x,x,s)),l.push(_),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var c8=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},c6=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new c8},e.prototype.buildPath=function(t,e){c4(t,e,!0)},e}(aY);c6.prototype.type="polygon";let c7=c6;var c9=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},pt=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c9},e.prototype.buildPath=function(t,e){c4(t,e,!1)},e}(aY);pt.prototype.type="polyline";let pe=pt;var pn={},pi=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},pr=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pi},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a=a1(pn,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(aY);pr.prototype.type="line";let po=pr;var pa=[],ps=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function pl(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?nB:nR)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?nB:nR)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?nF:nV)(t.x1,t.cpx1,t.x2,e),(n?nF:nV)(t.y1,t.cpy1,t.y2,e)]}var pu=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ps},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(h<1&&(nW(n,a,r,h,pa),a=pa[1],r=pa[2],nW(i,s,o,h,pa),s=pa[1],o=pa[2]),t.quadraticCurveTo(a,s,r,o)):(h<1&&(nN(n,a,l,r,h,pa),a=pa[1],l=pa[2],r=pa[3],nN(i,s,u,o,h,pa),s=pa[1],u=pa[2],o=pa[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return pl(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=pl(this.shape,t,!0);return eo(e,e)},e}(aY);pu.prototype.type="bezier-curve";let ph=pu;var pc=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},pp=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pc},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(aY);pp.prototype.type="arc";let pd=pp,pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return t7(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),aY.prototype.getBoundingRect.call(this)},e}(aY);var pg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();let pv=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return t7(e,t),e}(pg),pm=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return t7(e,t),e}(pg);var py=Math.min,p_=Math.max,px=Math.abs,pb=[0,0],pw=[0,0],pS=nr(),pM=pS.minTv,pT=pS.maxTv;let pI=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new eG;for(var n=0;n<2;n++)this._axes[n]=new eG;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);eG.sub(i[0],n[1],n[0]),eG.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])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return(e&&eG.set(e,0,0),pS.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r))?i:(r||pS.negativeSize||eG.copy(e,i?pS.useDir?pS.dirMinTv:pM:pT),i)},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,pb),t._getProjMinMaxOnAxis(o,e._corners,pw),pS.negativeSize||pb[1]<pw[0]||pb[0]>pw[1]){if(r=!1,pS.negativeSize||n)return r;var s=px(pw[0]-pb[1]),l=px(pb[0]-pw[1]);py(s,l)>pT.len()&&(s<l?eG.scale(pT,a,-s*i):eG.scale(pT,a,l*i))}else if(!n){var s=px(pw[0]-pb[1]),l=px(pb[0]-pw[1]);(pS.useDir||py(s,l)<pM.len())&&((s<l||!pS.bidirectional)&&(eG.scale(pM,a,s*i),pS.useDir&&pS.calcDirMTV()),(s>=l||!pS.bidirectional)&&(eG.scale(pM,a,-l*i),pS.useDir&&pS.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=py(u,a),s=p_(u,s)}n[0]=a+pS.touchThreshold,n[1]=s-pS.touchThreshold,pS.negativeSize=n[1]<n[0]},t}();var pC=[];let pk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t7(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new no(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(pC)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0}return!1},e}(an);var pD=os();function pA(t,e,n,i,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,h=void 0,c=void 0;return i?(u=tX(i.duration,200),h=tX(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),tz(c)&&(c=c(n,r)),tz(u)&&(u=u(n)),{duration:u||0,delay:c,easing:h}}function pP(t,e,n,i,r,o,a){var s,l=!1;tz(r)?(a=o,o=r,r=null):tF(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=pA(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function pO(t,e,n,i,r,o){pP("update",t,e,n,i,r,o)}function pL(t,e,n,i,r,o){pP("enter",t,e,n,i,r,o)}function pR(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function pB(t,e,n,i,r,o){pR(t)||pP("leave",t,e,n,i,r,o)}function pz(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),pB(t,{style:{opacity:0}},e,n,i)}function pE(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||pz(t,e,n,i)}):pz(t,e,n,i)}function pN(t){pD(t).oldStyle=t.style}var pV={},pF=["x","y"],pH=["width","height"],pW=0,pG=1,pU=2;function pZ(t){return aY.extend(t)}var pX=function(t,e){var n=cB(t,e),i=cL;function r(t){var e=i.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return t7(r,i),r};function pY(t,e){return pX(t,e)}function pq(t,e){pV[t]=e}function pj(t){if(pV.hasOwnProperty(t))return pV[t]}function pK(t,e,n,i){var r=new cL(cB(t,e));return n&&("center"===i&&(n=pQ(n,r.getBoundingRect())),p0(r,n)),r}function p$(t,e,n){var i=new aJ({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(pQ(e,r))}}});return i}function pQ(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var pJ=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new aY(e);return a.createPathProxy(),a.buildPath=function(t){if(cR(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function p0(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function p1(t,e){return a1(t,t,{lineWidth:e}),t}function p2(t,e){return a2(t,t,e),t}var p5=a5;function p3(t,e){for(var n=eE([]);t&&t!==e;)eV(n,t.getLocalTransform(),n),t=t.parent;return n}function p4(t,e,n){return e&&!tC(e)&&(e=i3.getLocalTransform(e)),n&&(e=eW([],e)),el([],t,e)}function p8(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:rA(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:rA(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return rA((o=p4(o,e,n))[0])>rA(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function p6(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),pO(t,i,n,sg(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tb(t.shape)),e}}function p7(t,e){return tD(t,function(t){var n=t[0];n=rk(n=rD(n,e.x),e.x+e.width);var i=t[1];return[n,i=rk(i=rD(i,e.y),e.y+e.height)]})}function p9(t,e){var n=rD(t.x,e.x),i=rk(t.x+t.width,e.x+e.width),r=rD(t.y,e.y),o=rk(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function dt(t,e,n){var i=tS({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tM(r,n),new aJ(i)):pK(t.replace("path://",""),i,n,"center")}function de(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(dn(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function dn(t,e,n,i,r,o,a,s){var l,u=n-t,h=i-e,c=a-r,p=s-o,d=c*h-u*p;if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=(f*h-u*g)/d;if(v<0||v>1)return!1;var m=(f*p-c*g)/d;return!(m<0)&&!(m>1)}function di(t,e,n,i,r){return null==e||(tV(e)?dr[0]=dr[1]=dr[2]=dr[3]=e:(dr[0]=e[0],dr[1]=e[1],dr[2]=e[2],dr[3]=e[3]),i&&(dr[0]=rD(0,dr[0]),dr[1]=rD(0,dr[1]),dr[2]=rD(0,dr[2]),dr[3]=rD(0,dr[3])),n&&(dr[0]=-dr[0],dr[1]=-dr[1],dr[2]=-dr[2],dr[3]=-dr[3]),da(t,dr,"x","width",3,1,r&&r[0]||0),da(t,dr,"y","height",0,2,r&&r[1]||0)),t}var dr=[0,0,0,0];function da(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=rD(0,rk(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:rA(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function ds(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=tE(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tk(tO(l),function(t){t3(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sg(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:tM({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function dl(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function du(t,e){if(t)if(tB(t))for(var n=0;n<t.length;n++)dl(t[n],e);else dl(t,e)}function dh(t){return!t||rA(t[1])<dc&&rA(t[2])<dc||rA(t[0])<dc&&rA(t[3])<dc}var dc=1e-5;function dp(t,e){return t?no.copy(t,e):e.clone()}function dd(t,e){return e?eN(t||ez(),e):void 0}function df(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function dg(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return dl(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function dv(t,e,n){!function t(e,n,i,r){if(e.ignoreModelZ)return r;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=rD(t(s[l],n,i,r),r);else e.z=n,e.zlevel=i,r=rD(e.z2||0,r);if(o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,e,n,-1/0)}function dm(t){return t.animation={duration:0},t}function dy(t,e){return e?eN(d_.transform,e):eE(d_.transform),d_.decomposeTransform(),i7(t,d_),t}var d_=new i3;function dx(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}d_.transform=ez(),pV.circle=cN,pV.ellipse=cH,pV.sector=c1,pV.ring=c3,pV.polygon=c7,pV.polyline=pe,pV.rect=a6,pV.line=po,pV.bezierCurve=ph,pV.arc=pd;var db=os(),dw=cy(),dS=function(){function t(){this.group=new rS,this.uid=lO("viewChart"),this.renderTask=hO({plan:dI,reset:dC}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&dT(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&dT(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){du(this.group,t)},t.markUpdateMethod=function(t,e){db(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function dM(t,e,n){t&&lr(t)&&("emphasis"===e?s0:s1)(t,n)}function dT(t,e,n){var i,r,o=oa(t,e),a=e&&null!=e.highlightKey?(null==(r=sA[i=e.highlightKey])&&sD<=32&&(r=sA[i]=sD++),r):null;null!=o?tk(r6(o),function(e){dM(t.getItemGraphicEl(e),n,a)}):t.eachItemGraphicEl(function(t){dM(t,n,a)})}function dI(t){return dw(t.model)}function dC(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&db(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),dk[l]}oL(dS,["dispose"]),oN(dS);var dk={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},dD="\0__throttleOriginMethod",dA="\0__throttleRate",dP="\0__throttleType";function dO(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=new Date().getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(h),f?h=setTimeout(c,d):r>=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function dL(t,e,n,i){var r=t[e];if(r){var o=r[dD]||r,a=r[dP];if(r[dA]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=dO(o,n,"debounce"===i))[dD]=o,r[dP]=i,r[dA]=n}return r}}function dR(t,e){var n=t[e];n&&n[dD]&&(n.clear&&n.clear(),t[e]=n[dD])}var dB=os(),dz={itemStyle:oV(lC,!0),lineStyle:oV(lM,!0)},dE={lineStyle:"stroke",itemStyle:"fill"};function dN(t,e){var n=t.visualStyleMapper||dz[e];return n||(console.warn("Unknown style type '"+e+"'."),dz.itemStyle)}function dV(t,e){var n=t.visualDrawType||dE[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var dF=new lA,dH=Math.PI,dW=function(){function t(t,e,n,i){this._stageTaskMap=t2(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(e,n):ok(t,e,n);t.pipelineContext=n.context=i},t.prototype.restorePipelines=function(t,e){var n=this,i=n._pipelineMap=t2();e.eachSeries(function(e){var r="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;i.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),n._pipe(e,e.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;tk(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});tK(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tk(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=t2(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||hO({plan:dY,reset:dq,count:d$}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||hO({reset:dG});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=t2(),l=t.seriesType,u=t.getTargetSeries,h=t.dirtyOnOverallProgress,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,hO({reset:dU,onDirty:dX})));n.context={model:t,dirtyOnOverallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}tK(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):tk(n.getSeries(),p),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);i.head||(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return tz(t)&&(t={overallReset:t,seriesType:function(t){S=null;try{t(dQ,dJ)}catch(t){}return S}(t)}),t.uid=lO("stageHandler"),e&&(t.visualType=e),t},t}();function dG(t){t.overallReset(t.ecModel,t.api,t.payload)}function dU(t){return t.dirtyOnOverallProgress&&dZ}function dZ(){this.agent.dirty(),this.getDownstream().dirty()}function dX(){this.agent&&this.agent.dirty()}function dY(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function dq(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=r6(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tD(e,function(t,e){return dK(e)}):dj}var dj=dK(0);function dK(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function d$(t){return t.data.count()}var dQ={},dJ={};function d0(t,e){for(var n in e.prototype)t[n]=t4}d0(dQ,uY),d0(dJ,sk),dQ.eachSeriesByType=dQ.eachRawSeriesByType=function(t){S=t},dQ.eachComponent=function(t){"series"===t.mainType&&t.subType&&(S=t.subType)};var d1=uC.darkColor,d2=d1.background,d5=function(){return{axisLine:{lineStyle:{color:d1.axisLine}},splitLine:{lineStyle:{color:d1.axisSplitLine}},splitArea:{areaStyle:{color:[d1.backgroundTint,d1.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:d1.axisMinorSplitLine}},axisLabel:{color:d1.axisLabel},axisName:{}}},d3={label:{color:d1.secondary},itemStyle:{borderColor:d1.borderTint},dividerLineStyle:{color:d1.border}},d4={darkMode:!0,color:d1.theme,backgroundColor:d2,axisPointer:{lineStyle:{color:d1.border},crossStyle:{color:d1.borderShade},label:{color:d1.tertiary}},legend:{textStyle:{color:d1.secondary},pageTextStyle:{color:d1.tertiary}},textStyle:{color:d1.secondary},title:{textStyle:{color:d1.primary},subtextStyle:{color:d1.quaternary}},toolbox:{iconStyle:{borderColor:d1.accent50},feature:{dataView:{backgroundColor:d2,textColor:d1.primary,textareaColor:d1.background,textareaBorderColor:d1.border,buttonColor:d1.accent50,buttonTextColor:d1.neutral00}}},tooltip:{backgroundColor:d1.neutral20,defaultBorderColor:d1.border,textStyle:{color:d1.tertiary}},dataZoom:{borderColor:d1.accent10,textStyle:{color:d1.tertiary},brushStyle:{color:d1.backgroundTint},handleStyle:{color:d1.neutral00,borderColor:d1.accent20},moveHandleStyle:{color:d1.accent40},emphasis:{handleStyle:{borderColor:d1.accent50}},dataBackground:{lineStyle:{color:d1.accent30},areaStyle:{color:d1.accent20}},selectedDataBackground:{lineStyle:{color:d1.accent50},areaStyle:{color:d1.accent30}}},visualMap:{textStyle:{color:d1.secondary},handleStyle:{borderColor:d1.neutral30}},timeline:{lineStyle:{color:d1.accent10},label:{color:d1.tertiary},controlStyle:{color:d1.accent30,borderColor:d1.accent30}},calendar:{itemStyle:{color:d1.neutral00,borderColor:d1.neutral20},dayLabel:{color:d1.tertiary},monthLabel:{color:d1.secondary},yearLabel:{color:d1.secondary}},matrix:{x:d3,y:d3,backgroundColor:{borderColor:d1.axisLine},body:{itemStyle:{borderColor:d1.borderTint}}},timeAxis:d5(),logAxis:d5(),valueAxis:d5(),categoryAxis:d5(),line:{symbol:"circle"},graph:{color:d1.theme},gauge:{title:{color:d1.secondary},axisLine:{lineStyle:{color:[[1,d1.neutral05]]}},axisLabel:{color:d1.axisLabel},detail:{color:d1.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:d1.background}},radar:((s=d5()).axisName={color:d1.axisLabel},s.axisLine.lineStyle.color=d1.neutral20,s),treemap:{breadcrumb:{itemStyle:{color:d1.neutral20,textStyle:{color:d1.secondary}},emphasis:{itemStyle:{color:d1.neutral30}}}},sunburst:{itemStyle:{borderColor:d1.background}},map:{itemStyle:{borderColor:d1.border,areaColor:d1.neutral10},label:{color:d1.tertiary},emphasis:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}},select:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}}},geo:{itemStyle:{borderColor:d1.border,areaColor:d1.neutral10},emphasis:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}},select:{label:{color:d1.primary},itemStyle:{color:d1.highlight}}}};d4.categoryAxis.splitLine.show=!1;var d8=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(tE(t)){var r=oO(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};tk(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),d6=["symbol","symbolSize","symbolRotate","symbolOffset"],d7=d6.concat(["symbolKeepAspect"]);function d9(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ft(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=oa(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:tB(u)?l.getName(u[0]):l.getName(u),selected:tE(i)?i:tS({},i)})}})}function fe(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var fn=new ed,fi={},fr=os();function fo(t){return fr(t).prepare}function fa(t){return fr(t).fullUpdate}var fs=Math.round(9*Math.random()),fl="function"==typeof Object.defineProperty,fu=function(){function t(){this._id="__ec_inner_"+fs++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return fl?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),fh=aY.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),fc=aY.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),fp=aY.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-h+c*d,l+s+p*d,n-h,l+s),t.closePath()}}),fd=aY.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),ff={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},fg={};tk({line:po,rect:a6,roundRect:a6,square:a6,circle:cN,diamond:fc,pin:fp,arrow:fd,triangle:fh},function(t,e){fg[e]=new t});var fv=aY.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=ru(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=fg[i];r||(r=fg[i="rect"]),ff[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function fm(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||uC.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function fy(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?p$(t.slice(8),new no(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?pK(t.slice(7),{},new no(e,n,i,r),a?"center":"cover"):new fv({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=fm,o&&s.setColor(o),s}function f_(t){return tB(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function fx(t,e){if(null!=t)return tB(t)||(t=[t,t]),[rF(t[0],e[0])||0,rF(tX(t[1],t[0]),e[1])||0]}function fb(t){return isFinite(t)}function fw(t,e,n){for(var i,r,o,a,s,l,u,h,c,p,d="radial"===e.type?(o=Math.min(i=n.width,r=n.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=fb(a)?a:.5,s=fb(s)?s:.5,l=l>=0&&fb(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,p=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,p=p*n.height+n.y),u=fb(u)?u:0,h=fb(h)?h:1,c=fb(c)?c:0,p=fb(p)?p:0,t.createLinearGradient(u,c,h,p)),f=e.colorStops,g=0;g<f.length;g++)d.addColorStop(f[g].offset,f[g].color);return d}function fS(t){return parseInt(t,10)}function fM(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||fS(s[i])||fS(t.style[i]))-(fS(s[o])||0)-(fS(s[a])||0)||0}function fT(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:tV(e)?[e]:tB(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tD(r,function(t){return t/a}),o/=a)}return[r,o]}var fI=new aL(!0);function fC(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function fk(t){return"string"==typeof t&&"none"!==t}function fD(t){var e=t.fill;return null!=e&&"none"!==e}function fA(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function fP(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function fO(t,e,n){var i=oG(e.image,e.__image,n);if(oZ(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*t8),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var fL=["shadowBlur","shadowOffsetX","shadowOffsetY"],fR=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fB(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){fN(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?o7.opacity:a}(i||e.blend!==n.blend)&&(o||(fN(t,r),o=!0),t.globalCompositeOperation=e.blend||o7.blend);for(var s=0;s<fL.length;s++){var l=fL[s];(i||e[l]!==n[l])&&(o||(fN(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(fN(t,r),o=!0),t.shadowColor=e.shadowColor||o7.shadowColor),o}function fz(t,e,n,i,r){var o=e.style,a=i?null:n&&n.style||{};if(o===a)return!1;var s=fB(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(fN(t,r),s=!0),fk(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(fN(t,r),s=!0),fk(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(fN(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fN(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<fR.length;u++){var h=fR[u],c=h[0];(i||o[c]!==a[c])&&(s||(fN(t,r),s=!0),t[c]=o[c]||h[1])}return s}function fE(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function fN(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function fV(t,e){fN(t,e),e.prevElClipPaths&&t.restore()}var fF=new fu,fH=new nq(100),fW=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fG(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&fF.delete(t);var o=fF.get(t);if(o)return o;var a=tM(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[n],l=!0,u=0;u<fW.length;++u){var h=a[fW[u]];if(null!=h&&!tB(h)&&!tE(h)&&!tV(h)&&"boolean"!=typeof h){l=!1;break}s.push(h)}if(l){e=s.join(",")+(r?"-svg":"");var c=fH.get(e);c&&(r?t.svgElement=c:t.image=c)}var p=function t(e){if(!e||0===e.length)return[[0,0]];if(tV(e)){var n=Math.ceil(e);return[[n,n]]}for(var i=!0,r=0;r<e.length;++r)if(!tV(e[r])){i=!1;break}if(i)return t([e]);for(var o=[],r=0;r<e.length;++r)if(tV(e[r])){var n=Math.ceil(e[r]);o.push([n,n])}else{var n=tD(e[r],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(tV(t)){var e=Math.ceil(t);return[e,e]}var n=tD(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(tE(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!tE(e[i])){n=!1;break}if(n)return t([e]);for(var r=[],i=0;i<e.length;++i)tE(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),g=tD(p,function(t){return fU(t)}),v=fU(d),m=!r&&ta.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=r3(t,g[e]);for(var i=1,e=0,n=f.length;e<n;++e)i=r3(i,f[e].length);t*=i;var r=v*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=_.width*n,m.height=_.height*n,o=m.getContext("2d")),function(){o&&(o.clearRect(0,0,m.width,m.height),a.backgroundColor&&(o.fillStyle=a.backgroundColor,o.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0))for(var s=-v,l=0,u=0,h=0;s<_.height;){if(l%2==0){for(var c=u/2%f.length,g=0,x=0,b=0;g<2*_.width;){for(var w=0,e=0;e<p[h].length;++e)w+=p[h][e];if(w<=0)break;if(x%2==0){var S=(1-a.symbolSize)*.5,M=g+p[h][x]*S,T=s+d[l]*S,I=p[h][x]*a.symbolSize,C=d[l]*a.symbolSize,k=b/2%f[c].length;!function(t,e,s,l,u){var h,c,p=r?1:n,d=fy(u,t*p,e*p,s*p,l*p,a.color,a.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(d);f&&y.children.push(f)}else(function t(e,n,i){var r,o=n.transform;if(!n.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){n.__dirty&=-2,n.__isRendered=!1;return}var a=n.__clipPaths,s=i.prevElClipPaths,l=n.style,u=!1,h=!1;if((!s||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(a,s))&&(s&&(fN(e,i),e.restore(),h=u=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),a&&a.length)){fN(e,i),e.save();for(var c=!1,p=0;p<a.length;p++){var d=a[p];c=c||d.isZeroArea(),fE(e,d),e.beginPath(),d.buildPath(e,d.shape),e.clip()}i.allClipped=c,u=!0,i.prevElClipPaths=a}if(i.allClipped){n.__dirty&=-2,n.__isRendered=!1;return}n.beforeBrush&&n.beforeBrush(i.beforeBrushParam),n.innerBeforeBrush();var f=i.prevEl;f||(h=u=!0);var g=n instanceof aY&&n.autoBatch&&(v=fD(l),m=fC(l),!(l.lineDash||!(v^m)||v&&"string"!=typeof l.fill||m&&"string"!=typeof l.stroke||l.strokePercent<1||l.strokeOpacity<1||l.fillOpacity<1));if(!u&&(y=f.transform,o&&y?o[0]===y[0]&&o[1]===y[1]&&o[2]===y[2]&&o[3]===y[3]&&o[4]===y[4]&&o[5]===y[5]:+(!o&&!y))?g||fN(e,i):(fN(e,i),fE(e,n)),n instanceof aY)1!==i.lastDrawType&&(h=!0,i.lastDrawType=1),fz(e,n,f,h,i),g&&(i.batchFill||i.batchStroke)||e.beginPath(),function(t,e,n,i,r){var o,a,s,l=fC(n),u=fD(n),h=n.strokePercent,c=h<1,p=!e.path;(!e.silent||c)&&p&&e.createPathProxy();var d=e.path||fI,f=e.__dirty;if(!i){var g=n.fill,v=n.stroke,m=u&&!!g.colorStops,y=l&&!!v.colorStops,_=u&&!!g.image,x=l&&!!v.image,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0;(m||y)&&(T=e.getBoundingRect()),m&&(b=f?fw(t,g,T):e.__canvasFillGradient,e.__canvasFillGradient=b),y&&(w=f?fw(t,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(S=f||!e.__canvasFillPattern?fO(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=S),x&&(M=f||!e.__canvasStrokePattern?fO(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=M),m?t.fillStyle=b:_&&(S?t.fillStyle=S:u=!1),y?t.strokeStyle=w:x&&(M?t.strokeStyle=M:l=!1)}var I=e.getGlobalScale();d.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(a=(o=fT(e))[0],s=o[1]);var C=!0;(p||4&f)&&(d.setDPR(t.dpr),c?d.setContext(null):(d.setContext(t),C=!1),d.reset(),e.buildPath(d,e.shape,i),d.toStatic(),e.pathUpdated()),C&&d.rebuildPath(t,c?h:1),a&&(t.setLineDash(a),t.lineDashOffset=s),i?(r.batchFill=u,r.batchStroke=l):n.strokeFirst?(l&&fP(t,n),u&&fA(t,n)):(u&&fA(t,n),l&&fP(t,n)),a&&t.setLineDash([])}(e,n,l,g,i);else if(n instanceof aj){3!==i.lastDrawType&&(h=!0,i.lastDrawType=3),fz(e,n,f,h,i);var v,m,y,_,x=l.text;if(null!=x&&(x+=""),x){e.font=l.font||tr,e.textAlign=l.textAlign,e.textBaseline=l.textBaseline;var b=void 0,w=void 0;e.setLineDash&&l.lineDash&&(b=(_=fT(n))[0],w=_[1]),b&&(e.setLineDash(b),e.lineDashOffset=w),l.strokeFirst?(fC(l)&&e.strokeText(x,l.x,l.y),fD(l)&&e.fillText(x,l.x,l.y)):(fD(l)&&e.fillText(x,l.x,l.y),fC(l)&&e.strokeText(x,l.x,l.y)),b&&e.setLineDash([])}}else n instanceof aJ?(2!==i.lastDrawType&&(h=!0,i.lastDrawType=2),r=h,fB(e,n.style,f&&f.style,r,i),function(t,e,n){var i=e.__image=oG(n.image,e.__image,e,e.onload);if(i&&oZ(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(e,n,l)):n.getTemporalDisplayables&&(4!==i.lastDrawType&&(h=!0,i.lastDrawType=4),function(e,n,i){var r,o,a=n.getDisplayables(),s=n.getTemporalDisplayables();e.save();var l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover,beforeBrushParam:{}};for(r=n.getCursor(),o=a.length;r<o;r++){var u=a[r];u.beforeBrush&&u.beforeBrush(i.beforeBrushParam),u.innerBeforeBrush(),t(e,u,l),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}fV(e,l);for(var h=0,c=s.length;h<c;h++){var u=s[h];u.beforeBrush&&u.beforeBrush(i.beforeBrushParam),u.innerBeforeBrush(),t(e,u,l),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}fV(e,l),n.clearTemporalDisplayables(),n.notClear=!0,e.restore()}(e,n,i));n.innerAfterBrush(),n.afterBrush&&(g&&fN(e,i),n.afterBrush()),i.prevEl=n,n.__dirty=0,n.__isRendered=!0})(h=o,d,c={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}}),fV(h,c)}(M,T,I,C,f[c][k])}g+=p[h][x],++b,++x===p[h].length&&(x=0)}++h===p.length&&(h=0)}s+=d[l],++u,++l===d.length&&(l=0)}}(),l&&fH.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,fF.set(t,s),t.dirty=!1,s}function fU(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var fZ=oD(function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=fG(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=fG(r,e))}})}),fX="__flagInMainProcess",fY="__mainProcessVersion",fq="__pendingUpdate",fj="__needsUpdateStatus",fK=/^[a-zA-Z0-9_]+$/,f$="__connectUpdateStatus";function fQ(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void this.id:f0(this,t,e)}}function fJ(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return f0(this,t,e)}}function f0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ed.prototype[e].apply(t,n)}var f1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e}(ed),f2=f1.prototype;f2.on=fJ("on"),f2.off=fJ("off");var f5=function(t){function e(e,n,i){var r=t.call(this,new d8)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r.__v_skip=!0,r._dom=e,r[fY]=1,i.ssr&&(p=function(t){var e=sg(t),n=e.dataIndex;if(null!=n){var i=t2();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var o=r._zr=rC(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:tX(i.useDirtyRect,!1),useCoarsePointer:tX(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=dO(tL(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(!tE(t))return tw(tb(t),tb(lR.EN),!1);var e=lR[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tb(e):tw(tb(e),tb(lR.EN),!1)}(i.locale||lz),r._coordSysMgr=new up;var a=r._api=N(r);function s(t,e){return t.__prio-e.__prio}return n_(ge,s),n_(f9,s),r._scheduler=new dW(r,a,f9,ge),r._messageCenter=new f1,r._initEvents(),r.resize=tL(r.resize,r),o.animation.on("frame",r._onframe,r),L(o,r),R(o,r),r[tQ]=!0,r}return tt(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if(H(this),this[fq]){var i=this[fq].silent;this[fX]=!0,W(this);try{M(this),C.update.call(this,null,this[fq].updateParams)}catch(t){throw this[fX]=!1,this[fq]=null,t}this._zr.flush(),this[fX]=!1,this[fq]=null,P.call(this,i),O.call(this,i)}else if(t.unfinished){var r=1;do{t.unfinished=!1;var o=ta.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),D(this,e),t.performVisualTasks(e),E(this,this._model,n,"remain",{}),r-=ta.getTime()-o}while(r>0&&t.unfinished)t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[fX]){if(this._disposed)return void this.id;if(tF(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fX]=!0,W(this),!this._model||e){var i,r,o,a=new uQ(this._api),s=this._theme,l=this._model=new uY;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},gt);var u={seriesTransition:o,optionChanged:!0};if(n)this[fq]={silent:i,updateParams:u},this[fX]=!1,this.getZr().wakeUp();else{try{M(this),C.update.call(this,null,u)}catch(t){throw this[fq]=null,this[fX]=!1,t}this._ssr||this._zr.flush(),this[fq]=null,this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[fX]){if(this._disposed)return void this.id;var n=this._model;if(n){var i=e&&e.silent,r=null;this[fq]&&(null==i&&(i=this[fq].silent),r=this[fq].updateParams,this[fq]=null),this[fX]=!0,W(this);try{this._updateTheme(t),n.setTheme(this._theme),M(this),C.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fX]=!1,t}this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype._updateTheme=function(t){tE(t)&&(t=gn[t]),t&&((t=tb(t))&&ho(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tn.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return tk(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;tk(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tk(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max;if(!go[n])return this.getDataURL(t);var o=1/0,a=1/0,s=-1/0,l=-1/0,u=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();tk(gr,function(h,c){if(h.group===n){var p=e?h.getZr().painter.getSvgDom().innerHTML:h.renderToCanvas(tb(t)),d=h.getDom().getBoundingClientRect();o=i(d.left,o),a=i(d.top,a),s=r(d.right,s),l=r(d.bottom,l),u.push({dom:p,left:d.left,top:d.top})}}),o*=h,a*=h,s*=h,l*=h;var c=s-o,p=l-a,d=ta.createCanvas(),f=rC(d,{renderer:e?"svg":"canvas"});if(f.resize({width:c,height:p}),!e)return t.connectedBackgroundColor&&f.add(new a6({shape:{x:0,y:0,width:c,height:p},style:{fill:t.connectedBackgroundColor}})),tk(u,function(t){var e=new aJ({style:{x:t.left*h-o,y:t.top*h-a,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"));var g="";return tk(u,function(t){var e=t.left-o,n=t.top-a;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,t.connectedBackgroundColor&&f.painter.setBackgroundColor(t.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,n){return k(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return k(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return k(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void this.id:(tk(ou(this._model,t),function(t,i){i.indexOf("Models")>=0&&tk(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=ou(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):d9(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;tk(f4,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&fe(o,function(t){var e=sg(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=tS({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)});var i=this._messageCenter;tk(f7,function(t,e){i.on(e,function(t){n.trigger(e,t)})}),t=this,e=this._api,i.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(ft("map","selectchanged",t,i,n),ft("pie","selectchanged",t,i,n)):"select"===n.fromAction?(ft("map","selected",t,i,n),ft("pie","selected",t,i,n)):"unselect"===n.fromAction&&(ft("map","unselected",t,i,n),ft("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&of(this.getDom(),gs,"");var t=this._api,e=this._model;tk(this._componentsViews,function(n){n.dispose(e,t)}),tk(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete gr[this.id]},e.prototype.resize=function(t){if(!this[fX]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[fq]&&(null==i&&(i=this[fq].silent),n=!0,this[fq]=null),this[fX]=!0,W(this);try{n&&M(this),C.update.call(this,{type:"resize",animation:tS({duration:0},t&&t.animation)})}catch(t){throw this[fX]=!1,t}this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(tF(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),gi[t]){var n=gi[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tS({},t);return e.type=f6[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if((tF(e)||(e={silent:!!e}),f8[t.type])&&this._model){if(this[fX])return void this._pendingActions.push(t);var n=e.silent;A.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&tn.browser.weChat&&this._throttledZrFlush(),P.call(this,n),O.call(this,n)}},e.prototype.updateLabelLayout=function(){fn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=df(t);e.eachRendered(function(t){return dv(t,n.z,n.zlevel),!0})}}function i(t,e){e.eachRendered(function(t){if(!pR(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!pR(t)){if(t instanceof aY&&((n=sP(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(i=t.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),t.__dirty){var n,i,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}M=function(t){fr(t._model).prepare={};var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),T(t,!0),T(t,!1),e.plan()},T=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!l&&o[u];if(!h){var c=oO(t.type);(h=new(e?cm.getClass(c.main,c.sub):dS.getClass(c.sub))).init(n,s),o[u]=h,r.push(h),a.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||i.prepareView(h,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<r.length;){var h=r[l];h.__alive?l++:(e||h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),r.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},I=function(t,e,n,i,r){var o,a,s,l=t._model;if(l.setUpdatePayload(n),!i)return void tk([].concat(t._componentsViews).concat(t._chartsViews),c);var u=((o={})[i+"Id"]=n[i+"Id"],o[i+"Index"]=n[i+"Index"],o[i+"Name"]=n[i+"Name"],a={mainType:i,query:o},r&&(a.subType=r),a),h=n.excludeSeriesId;function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}null!=h&&(s=t2(),tk(r6(h),function(t){var e=oi(t,null);null!=e&&s.set(e,!0)})),l&&l.eachComponent(u,function(e){if(!(s&&null!=s.get(e.id))){if(la(n))if(e instanceof cu)n.type!==sB||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=oa(r,e);o=(tB(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=sg(a);s3(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&s3(i,h,c,n)}}}(e,n,t._api);else{var i=s8(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===sB&&r&&!n.notBlur&&s4(e.mainType,e.componentIndex,t._api),o&&tk(o,function(t){n.type===sB?s0(t):s1(t)})}else if(lo(n)&&e instanceof cu){if(t._api,lo(n)){var a=n.dataType,l=oa(e.getData(a),n);tB(l)||(l=[l]),e[n.type===sV?"toggleSelect":n.type===sE?"select":"unselect"](l,a)}s6(e),F(t)}}},t),l&&l.eachComponent(u,function(e){s&&null!=s.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},C={prepareAndUpdate:function(t){M(this),C.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){fr(i).fullUpdate={},i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),fn.trigger("coordsys:aftercreate",i,r),s.performDataProcessorTasks(i,e),D(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),B(this,i,r,e,n),fn.trigger("afterupdate",i,r)}},updateTransform:function(t){var e=this,n=e._model,i=e._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent(function(o,a){if(o!==sy){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=t2();n.eachSeries(function(r){var a=e._chartsMap[r.__viewId],s=r.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(r,n,i,t);l&&l.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),E(e,n,i,t,{},o),fn.trigger("afterupdate",n,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),dS.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),B(this,n,this._api,e,{}),fn.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),dS.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),fn.trigger("afterupdate",i,this._api))},updateLayout:function(t){C.update.call(this,t)}},k=function(t,e,n,i,r){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=ou(a,n),u=0;u<s.length;u++){var h=s[u];if(h[e]&&null!=(o=h[e](a,l,i,r)))return o}},D=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},A=function(t,e){var n,i=this,r=this.getModel(),o=t.type,a=t.escapeConnect,s=f8[o],l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&oO(l[0]);this[fX]=!0,W(this);var c=[t],p=!1;t.batch&&(p=!0,c=tD(t.batch,function(e){return(e=tM(tS({},e),t)).batch=null,e}));var d=[],f=[],g=s.nonRefinedEventType,v=lo(t),m=la(t);if(m&&s5(this._api),tk(c,function(e){var o=s.action(e,r,i._api);if(s.refineEvent?f.push(o):n=o,(n=n||tS({},e)).type=g,d.push(n),m){var a=oh(t),l=a.queryOptionMap;I(i,u,e,a.mainTypeSpecified?l.keys()[0]:"series"),F(i)}else v?(I(i,u,e,"series"),F(i)):h&&I(i,u,e,h.main,h.sub)}),"none"!==u&&!m&&!v&&!h)try{this[fq]?(M(this),C.update.call(this,t),this[fq]=null):C[u].call(this,t)}catch(t){throw this[fX]=!1,t}if(n=p?{type:g,escapeConnect:a,batch:d}:d[0],this[fX]=!1,!e){var y=void 0;if(s.refineEvent){var _=s.refineEvent(f,t,r,this._api).eventContent;tK(tF(_)),(y=tM({type:s.refinedEventType},_)).fromAction=t.type,y.fromActionPayload=t,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(n.type,n),y&&x.trigger(y.type,y)}},P=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();A.call(this,n,t)}},O=function(t){t||this.trigger("updated")},L=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[fq]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")})},R=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a,s=fe(t.target,lr);s&&(n=e._api,o=(r=s8((i=sg(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,a=r.focusSelf,o?(a&&s4(i.componentMainType,i.componentIndex,n),tk(o,function(e){return sQ(e,t)})):(s3(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&s4(i.componentMainType,i.componentIndex,n),sQ(s,t)),F(e))}).on("mouseout",function(t){var n,i,r,o=fe(t.target,lr);o&&(s5(n=e._api),(r=s8((i=sg(o)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?tk(r,function(e){return sJ(e,t)}):sJ(o,t),F(e))}).on("click",function(t){var n=fe(t.target,function(t){return null!=sg(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=sg(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},B=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);n_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tk(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),z(t,e,n,i,r),tk(t._chartsViews,function(t){t.__alive=!1}),E(t,e,n,i,r),tk(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},z=function(t,e,o,a,s,l){tk(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},E=function(t,e,o,a,s,l){var u=t._scheduler;s=tS(s||{},{updatedSeries:e.getSeries()}),fn.trigger("series:beforeupdate",e,o,s);var h=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var c=s.renderTask;u.updatePayload(c,a),i(e,s),l&&l.get(e.uid)&&c.dirty(),c.perform(u.getPerformArgs(c))&&(h=!0),s.group.silent=!!e.get("silent"),n=e,r=s,o=n.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),s6(e)}),u.unfinished=h||u.unfinished,fn.trigger("series:layoutlabels",e,o,s),fn.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr;if("canvas"===n.painter.type){var i=n.storage,r=0;i.traverse(function(t){!t.isGroup&&r++});var o=r>tX(e.get("hoverLayerThreshold"),uB.hoverLayerThreshold)&&!tn.node&&!tn.worker;(t._usingTHL||o)&&(e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){var e=t.states.emphasis;e&&e.hoverLayer!==pU&&(e.hoverLayer=o?pG:pW)})}}),t._usingTHL=o)}}(t,e),fn.trigger("series:afterupdate",e,o,s)},F=function(t){t[fj]=!0,t.getZr().wakeUp()},W=function(t){t[fY]=(t[fY]+1)%1e6},H=function(t){t[fj]&&(t.getZr().storage.traverse(function(t){pR(t)||e(t)}),t[fj]=!1)},N=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return tt(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){s0(e,n),F(t)},n.prototype.leaveEmphasis=function(e,n){s1(e,n),F(t)},n.prototype.enterBlur=function(e){sj(e,sZ),F(t)},n.prototype.leaveBlur=function(e){sj(e,sX),F(t)},n.prototype.enterSelect=function(e){sj(e,sY),F(t)},n.prototype.leaveSelect=function(e){sj(e,sq),F(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getECUpdateCycleVersion=function(){return t[fY]},n.prototype.usingTHL=function(){return t._usingTHL},n}(sk))(t)},V=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][f$]=e}tk(f6,function(n,i){t._messageCenter.on(i,function(n){if(go[t.group]&&0!==t[f$]&&(!n||!n.escapeConnect)){var i=t.makeActionFromEvent(n),r=[];tk(gr,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),tk(r,function(t){1!==t[f$]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(ed),f3=f5.prototype;f3.on=fQ("on"),f3.off=fQ("off"),f3.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var f4=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],f8={},f6={},f7={},f9=[],gt=[],ge=[],gn={},gi={},gr={},go={},ga=new Date-0,gs="_echarts_instance_";function gl(t){0>tT(gt,t)&>.push(t)}function gu(t,e){gf(f9,t,e,2e3)}function gh(t,e){fn.on(t,e)}function gc(t,e,n){function i(t){return t.toLowerCase()}tz(e)&&(n=e,e=""),tF(t)?(r=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(r=t,l=e);var r,o,a,s,l=i(l||r),u=o?i(r):l;f8[r]||(tK(fK.test(r)&&fK.test(l)),o&&tK(l!==r),f8[r]={actionType:r,refinedEventType:l,nonRefinedEventType:u,update:a,action:n,refineEvent:o},f7[l]=1,o&&s&&(f7[u]=1),f6[u]=r)}function gp(t,e){gf(ge,t,e,3e3,"visual",!0)}var gd=[];function gf(t,e,n,i,r,o){if((tz(e)||tF(e))&&(n=e,e=i),!(tT(gd,n)>=0)){gd.push(n);var a=dW.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function gg(t,e,n,i){var r;return{eventContent:{selected:(r=[],n.eachSeries(function(t){tk(t.getAllData(),function(e){e.data;var n=e.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),r.push(o)}})}),r),isFromClick:e.isFromClick||!1}}}gp(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dN(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=dV(t,i),l=o[s],u=tz(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tz(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||tz(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=tS({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),gp(4500,{createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=dN(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){dF.option=n[i];var a=r(dF);tS(t.ensureUniqueItemVisual(e,"style"),a),dF.option.decal&&(t.setItemVisual(e,"decal",dF.option.decal),dF.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),gp(4500,{performRawSeries:!0,overallReset:function(t){var e=t2();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();dB(t).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},i=t.getData(),r=dB(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=dV(t,o);i.each(function(t){n[i.getRawIndex(t)]=t}),e.each(function(o){var s=n[o];if(i.getItemVisual(s,"colorFromPalette")){var l=i.ensureUniqueItemVisual(s,"style"),u=e.getName(o)||o+"",h=e.count();l[a]=t.getColorFromPalette(u,r,h)}})}})}}),gp(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<d6.length;a++){var s=d6[a],l=t.get(s);tz(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(tS({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=tO(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}}),gp(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<d7.length;i++){var r=d7[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),gp(7e3,fZ),gl(ho),gu(900,ha),gi.default=function(t,e){tM(e=e||{},{text:"loading",textColor:uC.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:uC.color.theme["0"],spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new rS,r=new a6({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(r);var o=new sf({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new a6({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new pd({shape:{startAngle:-dH/2,endAngle:-dH/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*dH/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*dH/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},gc({type:sB,event:sB,update:sB},t4),gc({type:sz,event:sz,update:sz},t4),gc({type:sE,event:sF,update:sE,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gc({type:sN,event:sF,update:sN,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gc({type:sV,event:sF,update:sV,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gn.default={},gn.dark=d4;var gv={},gm=[],gy={registerPreprocessor:gl,registerProcessor:gu,registerPostInit:function(t){gh("afterinit",t)},registerPostUpdate:function(t){gh("afterupdate",t)},registerUpdateLifecycle:gh,registerAction:gc,registerCoordinateSystem:function(t,e){up.register(t,e)},registerLayout:function(t,e){gf(ge,t,e,1e3,"layout",!0)},registerVisual:gp,registerTransform:function(t){var e=(t=tb(t)).type;e||hy("");var n=e.split(":");2!==n.length&&hy("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,hZ.set(e,t)},registerLoading:function(t,e){gi[t]=e},registerMap:function(t,e,n){var i=fi.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){fi[t]=e},PRIORITY:{PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uM,ComponentView:cm,SeriesModel:cu,ChartView:dS,registerComponentModel:function(t){uM.registerClass(t)},registerComponentView:function(t){cm.registerClass(t)},registerSeriesModel:function(t){cu.registerClass(t)},registerChartView:function(t){dS.registerClass(t)},registerCustomSeries:function(t,e){gv[t]=e},registerSubTypeDefaulter:function(t,e){uM.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rM[t]=e}};function g_(t){tB(t)?tk(t,function(t){g_(t)}):tT(gm,t)>=0||(gm.push(t),tz(t)&&(t={install:t}),t.install(gy))}var gx=os(),gb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gw=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gT(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return tX(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=hf(this.source),n=!(t>30),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=gb[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gS(t){return t instanceof gw}function gM(t){for(var e=t2(),n=0;n<(t||[]).length;n++){var i=t[n],r=tF(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function gT(t){var e=gx(t);return e.dimNameMap||(e.dimNameMap=gM(t.dimensionsDefine))}function gI(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gC(t,e){return gI(t,e)?t.getCalculationInfo("stackResultDimension"):e}var gk=typeof Float32Array!==sm?Float32Array:void 0,gD=typeof Float64Array!==sm?Float64Array:void 0;function gA(t){return gP({ctor:gk},t).arr}function gP(t,e){var n=t.arr,i=t.ctor;if(e>rY&&(e=rY),!n||t.typed&&n.length<e){var r=void 0;if(i)try{r=new i(e),t.typed=!0,n&&r.set(n)}catch(t){}if(!r&&(r=[],t.typed=!1,n))for(var o=0,a=n.length;o<a;o++)r[o]=n[o];t.arr=r}return t}var gO=tO({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function gL(t,e,n){t=t||{};var i,r,o,a,s,l=lN();if(l){var u=l.createBreakScaleMapper(e,n);u.hasBreaks()&&(tk(gO,function(e){u[e]&&(t[e]=tL(u[e],u))}),s=u)}return null==s&&(i=t,r=n,a=[],(o=i||{})._extents=a,a[0]=r?r.slice():ov(),tS(o,gN)),{brk:s,mapper:t}}function gR(t,e){tk(gO,function(n){t[n]=e[n]})}function gB(t){return t.getExtentUnsafe(0,2)}function gz(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function gE(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var gN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=gz(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){gV(this._extents,0,t,e)},setExtent2:function(t,e,n){var i=this._extents;i[t]||(i[t]=i[0].slice()),gV(i,t,e,n)},freeze:function(){}};function gV(t,e,n,i){ox(n,i)&&(t[e][0]=n,t[e][1]=i)}function gF(t){return"interval"===t.type}function gH(t){return"time"===t.type}function gW(t){return"log"===t.type}function gG(t){return"ordinal"===t.type}function gU(t){return rU(t)+2}function gZ(t,e,n){var i=n&&n.lookup;if(i){for(var r=0;r<i.from.length;r++)if(t===i.from[r])return i.to[r]}return rR(e,t)}function gX(t,e,n){var i=t.slice();if(i[0]===i[1]){var r=n&&n.ctnShp;if(0!==i[0]){var o=rA(i[0]);e[1]||(i[1]+=o/2),i[0]-=o/2}else r&&(i[0]=-1),i[1]=1}return o_(i[0])&&o_(i[1])||(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function gY(t,e){return rP(rD(t=t||e,1))}function gq(t,e,n){var i=gB(t),r=i[0],o=t.count(),a=Math.max((e||0)+1,1);0!==r&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);function l(t,e,i){n({value:t,offInterval:e},i)}s-a!==i[1]&&l(i[1],!0,!0)}var gj=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();oN(gj);var gK=0,g$=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gK,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&tD(i,gQ);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!tE(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=t2(this.categories))},t}();function gQ(t){return tF(t)&&null!=t.value?t.value:t+""}var gJ=function(t){function e(n){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,gR(i,e.decoratedMethods);var r=n.ordinalMeta;r||(r=new g$({})),tB(r)&&(r=new g$({categories:tD(r,function(t){return tF(t)?t.value:t})})),i._ordinalMeta=r;var o=gL(null,null,n.extent||[0,r.categories.length-1]);return i._mapper=o.mapper,o.mapper,i.freeze=t4,i}return tt(e,t),e.parse=function(t){return null==t?t=0/0:tE(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=0/0):t=rP(t),t},e.prototype.getTicks=function(){var t=[];return gq(this,0,function(e){t.push(e)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=rk(o,e.length);r<a;++r)i[n[r]=e[r]]=r;for(var s=0;r<o;++r){for(;null!=i[s];)s++;n[r]=s,i[s]=r}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){var t=gB(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(rP(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(gj);function g0(t,e,n,i){for(var r=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!u.break&&!l.break){for(var h=0,c=[],p=(l.value-u.value)/e,d=gU(p);h<e-1;){var f=rW(u.value+(h+1)*p,d);f>a[0]&&f<a[1]&&c.push(f),h++}var g=lN();g&&g.pruneTicksByBreak("auto",c,n,function(t){return t},i,a),o.push(c)}}return o}gj.registerClass(gJ);var g1=function(t){function e(n){var i=t.call(this)||this;i.type="interval",i.parse=e.parse;var r=lV(i,n=n||{}),o=gL(i,r,null);return i.brk=o.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return tt(e,t),e.parse=function(t){return null==t||""===t?0/0:Number(t)},e.prototype.getConfig=function(){return tb(this._cfg)},e.prototype.setConfig=function(t){var e=gB(this);this._cfg=t=tb(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=gU(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,i=gB(this),r=e.niceExtent,o=e.intervalPrecision,a=lN(),s=this.brk,l=a&&s,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(u,s.breaks,i),u;i[0]<r[0]&&u.push({value:t.expandToNicedExtent?rW(r[0]-n,o):i[0]});for(var h=function(t,e){return rP((e-t)/n)},c=e.intervalCount,p=r[0],d=0;;d++){if(null==c){if(p>r[1]||!isFinite(p)||!isFinite(r[1]))break}else{if(d>c)break;p=rk(p,r[1]),d===c&&(p=r[1])}if(u.push({value:p}),p=rW(p+n,o),s){var f=s.calcNiceTickMultiple(p,h);f>=0&&(p=rW(p+f*n,o))}if(u.length>0&&p===u[u.length-1].value)break;if(u.length>3e3)return[]}var g=u.length?u[u.length-1].value:r[1];return i[1]>g&&u.push({value:t.expandToNicedExtent?rW(g+n,o):i[1]}),l&&a.pruneTicksByBreak(t.pruneByBreak,u,s.breaks,function(t){return t.value},e.interval,i),l&&"none"!==t.breakTicks&&a.addBreaksToTicks(u,s.breaks,i),u},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=rU(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision),un(rW(t.value,n,!0))},e.type="interval",e}(gj);gj.registerClass(g1);var g2=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},g5=function(t){function e(n){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=n.locale,i._useUTC=n.useUTC,i._interval=0;var r=lV(i,n),o=gL(i,r,null);return i.brk=o.brk,i}return tt(e,t),e.prototype.getLabel=function(t){return lK(t.value,lZ[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(lj(this._minLevelUnit))]||lZ.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return function(t,e,n,i,r){var o=null;if(tE(n))o=n;else if(tz(n)){var a={time:t.time,level:t.time?t.time.level:0},s=lN();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var h=l$(t.value,r);o=n[h][h][0]}}return lK(new Date(t.value),o,r,i)}(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=gB(this),i=lN(),r=this.brk,o=i&&r,a=[];if(!e)return a;var s=this._useUTC;if(o&&"only_break"===t.breakTicks)return lN().addBreaksToTicks(a,r.breaks,n),a;a=function(t,e,n,i,r,o){for(var a=0,s=[],l=[],u=0,h=0,c=0;c<lY.length;++c){var p,d=lj(lY[c]);if((p=lY[c])===lj(p)&&(!function(t,r,s){var l=[],u=!r.length;if(!g4(lj(t),i[0],i[1],n)){u&&(r=[{value:(d=i[0],f=Math.max(0,tT(lX,t)-1),lQ(new Date(d),lX[f],n).getTime())},{value:i[1]}]);for(var h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d,f,g,v,m,y=void 0,_=void 0,x=void 0;switch(t){case"year":y=Math.max(1,Math.round(e/864e5/365)),_=lJ(n),x=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":y=(g=e/2592e6)>6?6:g>3?3:g>2?2:1,_=l0(n),x=l8(n);break;case"week":case"half-week":case"day":y=(v=e/864e5)>16?16:v>7.5?7:v>3.5?4:v>1.5?2:1,_=l1(n),x=l6(n);break;case"half-day":case"quarter-day":case"hour":y=(m=e/36e5)>12?12:m>6?6:m>3.5?4:m>2?2:1,_=l2(n),x=l7(n);break;case"minute":y=g8(e,!0),_=l5(n),x=l9(n);break;case"second":y=g8(e,!1),_=l3(n),x=ut(n);break;case"millisecond":y=rD(r0(e,!0),1),_=l4(n),x=ue(n)}p>=i[0]&&c<=i[1]&&function(t,e,n,r,s,l){for(var u,h,c,p=((u=new Date(0))[s](1),h=u.getTime(),u[s](1+t),c=u.getTime()-h,function(t,e){return Math.max(0,Math.round((e-t)/c))}),d=e,f=new Date(d);d<n&&d<=i[1]&&(l.push({value:d}),!(a++>3e3));)if(f[s](f[r]()+t),d=f.getTime(),o){var g=o.calcNiceTickMultiple(d,p);g>0&&(f[s](f[r]()+g*t),d=f.getTime())}l.push({value:d,notAdd:d>i[1]})}(y,c,p,_,x,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-y})}}for(var h=0;h<l.length;h++)s.push(l[h])}}(lY[c],s[s.length-1]||[],l),d!==(lY[c+1]?lj(lY[c+1]):null))){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var v=l[g].value;(0===g||l[g-1].value!==v)&&(f.push(l[g]),v>=i[0]&&v<=i[1]&&u++)}var m=r/e;if(u>1.5*m&&h>m/1.5||(s.push(f),u>m||t===lY[c]))break}l=[]}}for(var y=tP(tD(s,function(t){return tP(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),_=y.length-1,x=[],c=0;c<y.length;++c)for(var b=y[c],w=0;w<b.length;++w){var S=l$(b[w].value,n);x.push({value:b[w].value,time:{level:_-c,upperTimeUnit:S,lowerTimeUnit:S}})}oM(x,oT,null),x.sort(function(t,e){return t.value-e.value});var M=x[0],T=x[x.length-1],I=l$(i[0],n),C=l$(i[1],n);return(!M||M.value>i[0])&&x.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!T||T.value<i[1])&&x.push({value:i[1],time:{level:0,upperTimeUnit:C,lowerTimeUnit:C},notNice:!0}),x}(this._minLevelUnit,this._approxInterval,s,n,gE(this),r);var l=lX.length-1,u=0;return tk(a,function(t){t.time&&(l=Math.min(l,tT(lX,t.time.upperTimeUnit)),u=Math.max(u,t.time.level))}),o&&lN().pruneTicksByBreak(t.pruneByBreak,a,r.breaks,function(t){return t.value},this._approxInterval,n),o&&"none"!==t.breakTicks&&lN().addBreaksToTicks(a,r.breaks,n,function(t){for(var e=Math.max(tT(lX,l$(t.vmin,s)),tT(lX,l$(t.vmax,s))),n=0,i=0;i<lX.length;i++)if(!g4(lX[i],t.vmin,t.vmax,s)){n=i;break}var r=Math.min(n,l);return{level:u,lowerTimeUnit:lX[Math.max(r,e)],upperTimeUnit:lX[r]}}),a},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return tV(t)?Math.round(t):+r$(t)},e.type="time",e}(gj),g3=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function g4(t,e,n,i){return lQ(new Date(e),t,i).getTime()===lQ(new Date(n),t,i).getTime()}function g8(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}gj.registerClass(g5);var g6=function(t){function e(n){var i=t.call(this)||this;i.type="log",i.parse=g1.parse,i.base=n.logBase||10;var r=[],o=[],a=i._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=0/0,gR(i,e.mapperMethods);var s=lN(),l=n.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},2,u),i.powStub=new g1({breakParsed:u.original}),i.intervalStub=new g1({breakParsed:u.transformed}),i.intervalStub,i.freeze=t4,i}return tt(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,i=lN(),r=this.intervalStub,o={lookup:{from:r.getExtent(),to:n.getExtent()}};return tD(r.getTicks(t||{}),function(t){var r,a=gZ(t.value,e,o);if(i){var s=i.getTicksBreakOutwardTransform(this,t,lF(n),this._lookup);s&&(r=s.vBreak,a=s.tickVal)}return{value:a,break:r}},this)},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){var e;return this.intervalStub.normalize((e=this.base,rB(t)/rB(e)))},scale:function(t){return gZ(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){var n,i;return n=t,i=this.base,t=rB(n)/rB(i),e&&2===e.depth?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return g7.depth=n,g9.lookup=this._lookup,gZ(2===n?t:this.intervalStub.transformOut(t,g7),this.base,g9)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,n){if(ox(e,n)&&!(e<=0)&&!(n<=0)){var i=vt,r=vt;if(0===t){var o=this._lookup;i=o.to,r=o.from}this.powStub.setExtent2(t,i[0]=e,i[1]=n);var a=this.base;this.intervalStub.setExtent2(t,r[0]=rB(e)/rB(a),r[1]=rB(n)/rB(a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return ox(e[0],e[1])&&r4(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(gj);gj.registerClass(g6);var g7={},g9={},vt=[],ve={value:1,category:1,time:1,log:1},vn=os();function vi(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n,i,r,o=tE(e)||tz(e)?e:(n=(n=e)||{},i={},r=!0,tk(lX,function(t){r&&(r=null==n[t])}),tk(lX,function(t,e){var o=n[t];i[t]={};for(var a=null,s=e;s>=0;s--){var l=lX[s],u=tF(o)&&!tB(o)?o[l]:o,h=void 0;tB(u)?a=(h=u.slice())[0]||"":tE(u)?h=[a=u]:(null==a?a=lG[t]:lW[l].test(a)||(a=i[l][l][0]+" "+a),h=[a],r&&(h[1]="{primary|"+a+"}")),i[t][l]=h}}),i);return function(e,n){return t.scale.getFormattedLabel(e,n,o)}}if(tE(e))return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")};if(!tz(e))return function(e){return t.scale.getLabel(e)};if("category"===t.type)return function(n,i){return e(vr(t,n),n.value-t.scale.getExtent()[0],null)};var a=lN();return function(n,i){var r=null;return a&&(r=a.makeAxisLabelFormatterParamBreak(r,n.break)),e(vr(t,n),i,r)}}function vr(t,e){var n=t.scale;return gG(n)?n.getLabel(e):e.value}function vo(t){var e=t.get("interval");return null==e?"auto":e}function va(t){return"middle"===t||"center"===t}function vs(t){return t.getShallow("show")}function vl(t,e,n){var i=t.get("breaks",!0);if(null!=i)return lN()&&n&&"category"!==e?i:void 0}function vu(t,e,n,i,r,o){var a=gW(t),s=a?t.intervalStub:t;if(s.setExtent(i[0],i[1]),a){var l=t.powStub,u={depth:2},h=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=[n[0]!==i[0],n[1]!==i[1]];e[0]&&!p[0]&&(h=r[0]),e[1]&&!p[1]&&(c=r[1]),l.setExtent(h,c)}s.setConfig(o)}function vh(t,e){return gG(t)?t.getRawOrdinalNumber(e.value):e.value}function vc(t,e){return gG(t)&&!!e.get("boundaryGap")}var vp=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function vd(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function vf(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function vg(t){if(t)return vf(t)&&function(t,e,n){var i=e.getComputedTransform();t.transform=dd(t.transform,i);var r=t.localRect=dp(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,h=o.__marginType;null==h&&u&&(a=u,h=l_.textMargin);for(var c=0;c<4;c++)vv[c]=h===l_.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:a?a[c]:0;h===l_.textMargin&&di(r,vv,!1,!1);var p=t.rect=dp(t.rect,r);i&&p.applyTransform(i),h===l_.minMargin&&di(p,vv,!1,!1),t.axisAligned=dh(i),(t.label=t.label||{}).ignore=e.ignore,vd(t,!1),vd(t,!0,2)}(t,t.label,t),t}var vv=[0,0,0,0];function vm(t,e){for(var n=0;n<vp.length;n++){var i=vp[n];null==t[i]&&(t[i]=e[i])}return vg(t)}function vy(t){var e=t.obb;return(!e||vf(t,2))&&(t.obb=e=e||new pI,e.fromBoundingRect(t.localRect,t.transform),vd(t,!1,2)),e}function v_(t,e,n,i){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!!t.axisAligned&&!!e.axisAligned||vy(t).intersect(vy(e),n,i))}var vx=os(),vb=os();function vw(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function vS(t,e){var n=e.getExtent(),i=[];return tk(t,function(t){(t=e.parse(t))>=n[0]&&t<=n[1]&&i.push(t)}),oM(i,oI,null),rG(i),tD(i,function(t){return{value:t}})}function vM(t,e,n){var i,r,o=vI(t),a=vo(e),s=1===n.kind;if(!s){var l=vk(o,a);if(l)return l}tz(a)?i=vO(t,a,!1):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return vb(t).autoInterval=n,!0}),n}var i=vb(t).autoInterval;return null!=i?i:vb(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=vO(t,r,!1));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return vD(o,a,u),!0}):vD(o,a,u),u}var vT=vC("axisTick"),vI=vC("axisLabel");function vC(t){return function(e){return vb(e)[t]||(vb(e)[t]={list:[]})}}function vk(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function vD(t,e,n){return t.list.push({key:e,value:n}),n}function vA(t,e,n){return null==vP(t,e,n)}function vP(t,e,n){var i=vx(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-n)&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function vO(t,e,n){var i=vi(t),r=t.scale,o=[],a=tz(e);return gq(r,a?0:e,function(t,s){var l=r.getLabel(t);if(a){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}o.push(n?t:{formattedLabel:i(t),rawLabel:l,tick:t})}),o}var vL=Math.PI,vR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],vB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],vz=os(),vE=os(),vN=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),vV=ez(),vF=new no(0,0,0,0),vH=function(t,e,n,i,r,o){if(va(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&vW((a={},s=o.transGroup.transform,a.transform=dd(a.transform,s),a.localRect=dp(a.localRect,l),a.rect=dp(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=dh(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r)}else vG(o.labelInfoList,o.dirVec,i,r)};function vW(t,e,n){var i=new eG;v_(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function vG(t,e,n,i){for(var r=eG.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||vW(s,n,i)}}var vU=function(){function t(t,e,n,i){this.group=new rS,this._axisModel=t,this._api=e,this._local={},this._shared=i||new vN(vH),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=tX(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");(null==r||"auto"===r)&&(r=tX(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:tX(t.nameDirection,1),tickDirection:tX(t.tickDirection,1),labelDirection:tX(t.labelDirection,1),labelOffset:tX(t.labelOffset,0),silent:tX(t.silent,!0),axisName:i,nameLocation:tY(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new rS({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new eG(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),tk(vZ,function(i){t[i]&&vX[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var i,r,o=rq(e-t);return rj(o)?(r=n>0?"top":"bottom",i="center"):rj(o-vL)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<vL?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),vZ=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],vX={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,h=[l[0],0],c=[l[1],0],p=h[0]>c[0];u&&(el(h,h,u),el(c,c,u));var d=tS({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&lH(i.axis.scale))null.buildAxisBreakLine(i,r,o,f);else{var g=new po(tS({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},f));p1(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var m=i.get(["axisLine","symbolSize"]);tE(v)&&(v=[v,v]),(tE(m)||tV(m))&&(m=[m,m]);var y=fx(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];tk([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var i=fy(v[n],-_/2,-x/2,_,x,d.stroke,!0),o=e.r+e.offset,a=p?c:h;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){vK(e,r,s)&&vY(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){vK(e,r,s)&&vY(t,e,n,i,r,o,a,2);var l,u,h,c=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=vj(r.getTicksCoords(),n.transform,l,tM(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)e.add(u[h]);return u}(t,r,o,i);l=t,u=e.labelLayoutList,h=c,l.showMinorTicks||tk(u,function(t){if(t&&t.label.ignore)for(var e=0;e<h.length;e++){var n=h[e],i=vE(n),r=vz(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===r.labelInfo.tick.value)return void vq(n)}}),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),h=tM(l.getLineStyle(),tM(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=vj(s[c],n.transform,u,h,"minorticks_"+c),d=0;d<p.length;d++)e.add(p[d])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l,u,h=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=h.nameLayout=h.nameLocation=null);var c=t.axisName;if(c){var p,d,f,g,v,m,y,_,x,b=t.nameLocation,w=t.nameDirection,S=i.getModel("nameTextStyle"),M=i.get("nameGap")||0,T=i.axis.getExtent(),I=i.axis.inverse?-1:1,C=new eG(0,0),k=new eG(0,0);"start"===b?(C.x=T[0]-I*M,k.x=-I):"end"===b?(C.x=T[1]+I*M,k.x=I):(C.x=(T[0]+T[1])/2,C.y=t.labelOffset+w*M,k.y=w);var D=ez();k.transform(eH(D,D,t.rotation));var A=i.get("nameRotate");null!=A&&(A=A*vL/180),va(b)?l=vU.innerTextLayout(t.rotation,null!=A?A:t.rotation,w):(p=t.rotation,d=b,f=A||0,g=T,y=rq(f-p),_=g[0]>g[1],x="start"===d&&!_||"start"!==d&&_,rj(y-vL/2)?(m=x?"bottom":"top",v="center"):rj(y-1.5*vL)?(m=x?"top":"bottom",v="center"):(m="middle",v=y<1.5*vL&&y>vL/2?x?"left":"right":x?"right":"left"),l={rotation:y,textAlign:v,textVerticalAlign:m},null!=(u=t.raw.axisNameAvailableWidth)&&(isFinite(u=Math.abs(u/Math.sin(l.rotation)))||(u=null)));var P=S.getFont(),O=i.get("nameTruncate",!0)||{},L=O.ellipsis,R=tZ(t.raw.nameTruncateMaxWidth,O.maxWidth,u),B=s.nameMarginLevel||0,z=new sf({x:C.x,y:C.y,rotation:l.rotation,silent:vU.isLabelSilent(i),style:lc(S,{text:c,font:P,overflow:"truncate",width:R,ellipsis:L,fill:S.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:S.get("align")||l.textAlign,verticalAlign:S.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(ds({el:z,componentModel:i,itemName:c}),z.__fullText=c,z.anid="name",i.get("triggerEvent")){var E=vU.makeAxisEventDataBase(i);E.targetType="axisName",E.name=c,sg(z).eventData=E}o.add(z),z.updateTransform(),e.nameEl=z;var N=h.nameLayout=vg({label:z,priority:z.z2,defaultAttr:{ignore:z.ignore},marginDefault:va(b)?vR[B]:vB[B]});if(h.nameLocation=b,r.add(z),z.decomposeTransform(),t.shouldNameMoveOverlap&&N){var V=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,N,k,V)}}}};function vY(t,e,n,i,r,o,a,s){v$(e)||function(t,e,n,i,r,o){var a=r.axis,s=tZ(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new rS;n.add(l);var u=vw(i);if(!s||a.scale.isBlank())return vQ(e,[],l,u);var h=r.getModel("axisLabel"),c=a.getViewLabels(u),p=(tZ(t.raw.labelRotate,h.get("rotate"))||0)*vL/180,d=vU.innerTextLayout(t.rotation,p,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;tk(c,function(t,e){var n,i=t.tick,s=t.formattedLabel,u=t.rawLabel,p=h,_=vh(a.scale,i);if(f&&f[_]){var x=f[_];tF(x)&&x.textStyle&&(p=new lA(x.textStyle,h,r.ecModel))}var b=p.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=p.getShallow("align",!0)||d.textAlign,S=tX(p.getShallow("alignMinLabel",!0),w),M=tX(p.getShallow("alignMaxLabel",!0),w),T=p.getShallow("verticalAlign",!0)||p.getShallow("baseline",!0)||d.textVerticalAlign,I=tX(p.getShallow("verticalAlignMinLabel",!0),T),C=tX(p.getShallow("verticalAlignMaxLabel",!0),T),k=10+((null==(n=i.time)?void 0:n.level)||0);m=Math.min(m,k),y=Math.max(y,k);var D=new sf({x:0,y:0,rotation:0,silent:vU.isLabelSilent(r),z2:k,style:lc(p,{text:s,align:0===e?S:e===c.length-1?M:w,verticalAlign:0===e?I:e===c.length-1?C:T,fill:tz(b)?b("category"===a.type?u:"value"===a.type?_+"":_,e):b})});D.anid="label_"+_;var A=vz(D);if(A.labelInfo=t,A.layoutRotation=d.rotation,ds({el:D,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),v){var P,O,L,R,B=vU.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=u,B.tickIndex=e;var z=t.tick.break;if(z){var E=z.parsedBreak;B.break={start:E.vmin,end:E.vmax}}"category"===a.type&&(B.dataIndex=_),sg(D).eventData=B,z&&(P=r,O=o,L=D,R=z,L.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:R.parsedBreak.breakOption.start,end:R.parsedBreak.breakOption.end}]};e[P.axis.dim+"AxisIndex"]=P.componentIndex,O.dispatchAction(e)}))}g.push(D),l.add(D)}),vQ(e,tD(g,function(t){return{label:t,priority:vz(t).labelInfo.tick.break?t.z2+(y-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}(t,e,r,s,i,a);var l,u,h,c,p,d=e.labelLayoutList;l=t,u=i,h=d,c=o,p=u.get(["axisLabel","margin"]),tk(h,function(t,e){var n=vg(t);if(n){var i=n.label,r=vz(i);n.suggestIgnore=i.ignore,i.ignore=!1,i7(vJ,v0);var o=u.axis;vJ.x=o.dataToCoord(vh(o.scale,r.labelInfo.tick)),vJ.y=l.labelOffset+l.labelDirection*p,vJ.rotation=r.layoutRotation,c.add(vJ),vJ.updateTransform(),c.remove(vJ),vJ.decomposeTransform(),i7(i,vJ),i.markRedraw(),vd(n,!0),vg(n)}}),function(t,e,n){var i=lN();if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&vz(t.label).labelInfo.tick.break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===o||"auto"===o)&&tk(r,function(i){null.adjustBreakLabelPair(t.axis.inverse,e,[vg(n[i[0]]),vg(n[i[1]])])})}}(i,t.rotation,d);var f=t.optionHideOverlap;(function(t,e,n){var i=t.axis,r=t.get(["axisLabel","customValues"]);if("category"!==i.type||0!==vo(i.getLabelModel())){var o=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(o,0,1),l(a,s-1,s-2)}function l(t,o,a){var s=vg(e[o]),l=vg(e[a]),u=i.scale;if(s&&l){if(null==t){if(!n&&r)return;var h=vz(s.label).labelInfo.tick;if(gH(u)&&h.notNice||gG(u)&&h.offInterval)return void vq(s.label)}if(!1===t||s.suggestIgnore)return void vq(s.label);if(l.suggestIgnore)return void vq(l.label);if(!n){var c=[0,0,0,0];s=vm({marginForce:c},s),l=vm({marginForce:c},l)}v_(s,l,null,{touchThreshold:.1})&&(t?vq(l.label):vq(s.label))}}})(i,d,f),f&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=vg(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(v_(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(tP(d,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=!!t.axisName&&va(t.nameLocation);tk(i,function(t){var e=vg(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?eW(vV,n.transform):eE(vV),e.transform&&eV(vV,vV,e.transform),no.copy(vF,e.localRect),vF.applyTransform(vV),r?r.union(vF):no.copy(r=new no(0,0,0,0),vF))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-h)-Math.abs(e.label[u]-h)}),l&&r){var c=o.getExtent(),p=Math.min(c[0],c[1]),d=Math.max(c[0],c[1])-p;r.union(new no(p,0,d,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,d)}function vq(t){t&&(t.ignore=!0)}function vj(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(el(a,a,e),el(s,s,e));var h=new po({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});p1(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h);var c=vE(h);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return o}function vK(t,e,n){if(v$(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),vQ(t,null,null,null))}return!0}function v$(t){return!!t.labelLayoutList}function vQ(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var vJ=new a6,v0=new a6;function v1(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],h={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}r.position=["y"===l?p[h[s]]:u[0],"x"===l?p[h[s]]:u[3]],r.rotation=Math.PI/2*("x"!==l),r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],r.labelOffset=o?p[h[a]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tZ(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}var v2=ow(),v5=os(),v3=os();function v4(t,e){var n=t.model,i=v5(fa(n.ecModel)).keyed,r=i&&i.get(e);return r&&r.get(n.uid)}function v8(t,e){var n=v5(fa(t)).keyed;n&&n.each(function(t,n){t.each(function(t,i){e(t,n,i)})})}function v6(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function v7(t,e,n){var i=v4(t,e);i&&v9(t.model.ecModel,i.sers,n)}function v9(t,e,n){if(e)for(var i=0;i<e.length;i++){var r=e[i];t.isSeriesFiltered(r)||n(r)}}function mt(t,e,n){var i=v5(fa(t)).keyed,r=i&&i.get(e);r&&r.each(function(t){n(t.axis)})}function me(t,e){var n=t.model,i=v5(fa(n.ecModel)).keys;i&&tk(i.get(n.uid),function(t){e(t)})}function mn(t){var e=v3(fo(t)),n=e.keyed||(e.keyed=t2());v8(t,function(e,i,r){var o=n.get(i)||n.set(i,t2()),a=o.get(r)||o.set(r,{});e.metrics.liPosMinGap&&mi.liPosMinGap(t,e,a)})}var mi={};function mr(t,e,n){if(t){var i=v5(fa(e.ecModel)),r=t.model.uid,o=i.axSer||(i.axSer=t2());(o.get(r)||o.set(r,[])).push(e);var a=e.subType,s=e.getBaseAxis()===t,l=ms.get(mo(a,s,n))||ms.get(mo(a,s,null));if(l){var u=i.keyed||(i.keyed=t2()),h=i.keys||(i.keys=t2()),c=l.key,p=u.get(c)||u.set(c,t2()),d=p.get(r);d||((d=p.set(r,{axis:t,sers:[],serByIdx:[]})).metrics=l.getMetrics(t),(h.get(r)||h.set(r,[])).push(c)),d.sers.push(e),d.serByIdx[e.seriesIndex]=e}}}function mo(t,e,n){return t+"|&"+tX(e,!0)+"|&"+(n||"")}function ma(t,e){var n=mo(e.seriesType,e.baseAxis,e.coordSysType);ms.set(n,e),v2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:mn})})}var ms=t2(),ml=os(),mu=function(){function t(t,e,n,i,r){var o,a,s,l,u=gG(t),h=u?e.getCategories().length:null;if(u){var c=e.getCategories(!0);l=c&&!c.length}var p=n.slice();(gF(t)||gW(t)||gH(t))&&(om(p,mc(t,e.get("dataMin",!0))),oy(p,mc(t,e.get("dataMax",!0)))),isFinite(o=p[1]-p[0])&&o>=0||(p[0]=p[1]=0/0);var d=[],f=[!1,!1],g=e.get("min",!0);"dataMin"===g?(d[0]=p[0],f[0]=!0):(d[0]=mc(t,tz(g)?g({min:p[0],max:p[1]}):g),f[0]=null!=d[0]);var v=e.get("max",!0);"dataMax"===v?(d[1]=p[1],f[1]=!0):(d[1]=mc(t,tz(v)?v({min:p[0],max:p[1]}):v),f[1]=null!=d[1]);var m=function(t,e){var n;if(gG(t))n=[0,0];else{var i=e.get("boundaryGap");"boolean"==typeof i&&(i=null),n=tB(i)?i:[i,i]}return[mp(n[0]),mp(n[1])]}(t,e),y=u?null:p[1]-p[0]||Math.abs(p[0]);null==d[0]&&(d[0]=u?l?p[0]:h?0:0/0:p[0]-m[0]*y),null==d[1]&&(d[1]=u?l?p[1]:h?h-1:0/0:p[1]+m[1]*y),o_(d[0])||(d[0]=0/0),o_(d[1])||(d[1]=0/0);var _=l||(a=d[0])!=a||(s=d[1])!=s||u&&!h,x=gF(t),b=x&&e.needIncludeZero&&e.needIncludeZero();b&&(d[0]>0&&d[1]>0&&!f[0]&&(d[0]=0),d[0]<0&&d[1]<0&&!f[1]&&(d[1]=0));var w=!1;d[0]>d[1]&&(d.reverse(),w=!0);var S=mc(t,e.get("startValue",!0)),M=null!=S;!r4(S)&&i&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),r4(S)&&(M||!x||b)&&(S<d[0]&&!f[0]?(d[0]=S,f[0]=!0):S>d[1]&&!f[1]&&(d[1]=S,f[1]=!0)),mh(this._i={scale:t,dataMM:p,noZoomEffMM:d,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:S,isBlank:_,incl0:b,tggAxInv:w,ctnShp:r},d)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,r=t.fixMM,o={fixMM:r,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],r[0]=i[0]=!0),null!=e[1]&&(a[1]=e[1],r[1]=i[1]=!0),mh(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function mh(t,e){var n=t.scale,i=t.dataMM;n.sanitize&&(e[0]=n.sanitize(e[0],i),e[1]=n.sanitize(e[1],i),ob(e))}function mc(t,e){return null==e?null:e!=e?0/0:t.parse(e)}function mp(t){return rl("boolean"==typeof t?0:t,1)||0}function md(t){var e=ml(t.scale);return e.extent||(e.extent=ov()),e}function mf(t,e){var n=t.scale,i=t.model,r=t.dim;n.rawExtentInfo||function(t,e,n,i,r){var o,a,s=md(e),l=s.extent,u=!1;(a=v5(fa(o=e.model.ecModel)).axSer)&&v9(o,a.get(e.model.uid),function(i){if(i.boxCoordinateSystem){var r=uf(i).coord,o=s.dimIdxInCoord;if(o>=0&&tB(r)){var a,h=r[o];null!=h&&!tB(h)&&o_(a=t.parse(h))&&(a<l[0]&&(l[0]=a),a>l[1]&&(l[1]=a))}}else if(i.coordinateSystem){var c=i.getData();if(c){var p,d=t.getFilter?t.getFilter():null;tk((p={},tk(c.mapDimensionsAll(n),function(t){p[gC(c,t)]=!0}),tO(p)),function(t){var e;ox((e=c.getApproximateExtent(t,d))[0],e[1])&&(e[0]<l[0]&&(l[0]=e[0]),e[1]>l[1]&&(l[1]=e[1]))})}i.__requireStartValue&&i.__requireStartValue(e)&&(u=!0)}});var h=function(t,e,n){var i=vc(t,n),r=n.get("containShape",!0);if(null!=r||i||(r=!0),!r)return!1;var o=!1;return me(e,function(t){o=!!mv.get(t)||o}),o}(t,e,i),c=new mu(t,i,l,u,h);mg(t,c,r),s.extent=null}(n,t,r,i,e)}function mg(t,e,n){t.rawExtentInfo=e,e.from=n}var mv=t2();function mm(t,e,n,i,r){t.rawExtentInfo||(o={scale:t,model:e},a=r||ov(),mg(s=o.scale,new mu(s,o.model,a,!1,!1),3));var o,a,s,l=t.rawExtentInfo.makeFinal(),u=l.effMM;return t.setExtent(u[0],u[1]),t.setBlank(l.isBlank),i&&l.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),l}function my(t,e){e=e||{};var n,i,r,o,a,s,l,u={w:0/0,w2:0/0},h=t.scale,c=e.fromStat,p=e.min,d=(l=gz(h,3))[1]-l[0];r4(d)||(d=0/0);var f=t.getExtent(),g=rA(f[1]-f[0]);return gG(h)?(n=u,i=t,r=d,o=g,0===(s=r+ +!!(a=i.onBand))&&(s=1),n.w=o/s,!a&&r&&o&&(n.w2=n.w*r/o)):c&&function(t,e,n,i,r){var o,a,s=!1,l=-1/0;tk(r.key?[v6(v4(e,r.key))]:(o=r.sers||[],a=[],v8(e.model.ecModel,function(t){for(var e=0;e<o.length;e++)o[e]&&t.serByIdx[o[e].seriesIndex]&&a.push(v6(t))}),a),function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>l&&(l=e),s=!1):-2===e&&(s=!0))}),r4(n)&&n>0&&r4(l)?(t.w=i/n*l,t.w2=l):s&&(t.w=.8*i,t.w2=t.w*n/i)}(u,t,d,g,c),null!=p&&(u.w=r4(u.w)?rD(p,u.w):p),u}function m_(t,e,n){var i,r=t2(),o=n.serUids,a=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),h=l.getFilter?l.getFilter():null,c=hN(h);function p(n){v9(t,e.sers,function(t){var e=t.getRawData(),i=e.getDimensionIndex(e.mapDimension(s.dim));i>=0&&n(i,t,e.getStore())})}var d=0;if(p(function(t,e,n){r.set(e.uid,1),o&&o.hasKey(e.uid)||(i=!0),d+=n.count()}),o&&o.keys().length===r.keys().length||(i=!0),!i&&null!=a){e.liPosMinGap=a;return}gP(mx,d);var f=0;p(function(t,e,n){for(var i=0,r=n.count();i<r;++i){var o=n.get(t,i);isFinite(o)&&(!h||hV(c,o))&&(u&&(o=l.transformIn(o,null)),mx.arr[f++]=o)}});var g=mx.typed?mx.arr.subarray(0,f):(mx.arr.length=f,mx.arr);mx.typed?g.sort():rG(g);for(var v=1/0,m=1;m<f;++m){var y=g[m]-g[m-1];y>0&&y<v&&(v=y)}n.liPosMinGap=e.liPosMinGap=r4(v)?v:f>0?-2:-1,n.serUids=r}var mx=gP({ctor:gD},50);function mb(t){return function(e,n){var i=my(e,{fromStat:{key:t}});if(r4(i.w2))return[-i.w2/2,i.w2/2]}}function mw(t){return mi.liPosMinGap=m_,{liPosMinGap:!gG(t.scale)}}var mS={left:0,right:0,top:0,bottom:0},mM=["25%","25%"],mT="cartesian2d",mI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=uw(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&ub(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&ub(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:mS,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:uC.color.transparent,borderWidth:1,borderColor:uC.color.neutral30},e}(uM),mC=ow(),mk="__ec_stack_";function mD(t){return t.get("stack")||mk+t.seriesIndex}function mA(t){var e,n,i,r=t.bandWidthResult.w,o=r,a=0,s=[],l={};tk(t.seriesInfo,function(t,i){i||(n=t.defaultBarGap||0);var r=t.stackId;!t3(l,r)&&a++;var u=l[r];u||(u=l[r]={width:0,maxWidth:0},s.push(r));var h=t.barWidth;h&&!u.width&&(u.width=h,h=rk(o,h),o-=h);var c=t.barMaxWidth;c&&(u.maxWidth=c);var p=t.barMinWidth;p&&(u.minWidth=p);var d=t.barGap;null!=d&&(n=d);var f=t.barCategoryGap;null!=f&&(e=f)}),null==e&&(e=rD(35-4*s.length,15)+"%");var u=rF(e,r),h=rF(n,1),c=(o-u)/(a+(a-1)*h);c=rD(c,0),tk(s,function(t){var e=l[t],n=e.maxWidth,i=e.minWidth;if(e.width){var r=e.width;n&&(r=rk(r,n)),i&&(r=rD(r,i)),e.width=r,o-=r+h*r,a--}else{var r=c;n&&n<r&&(r=rk(n,o)),i&&i>r&&(r=i),r!==c&&(e.width=r,o-=r+h*r,a--)}}),c=rD(c=(o-u)/(a+(a-1)*h),0);var p=0;tk(s,function(t){var e=l[t];e.width||(e.width=c),i=e,p+=e.width*(1+h)}),i&&(p-=i.width*h);var d={},f=-p/2;return tk(s,function(t){var e=l[t];d[t]=d[t]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+h)}),d}function mP(t){return t.pipelineContext&&t.pipelineContext.large}var mO={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)!isNaN(t[i])&&(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},mL=function(t){return Math.round(t.length/2)};function mR(t){return null==t?0:t.length||1}function mB(t){return t}var mz=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||mB,this._newKeyGetter=i||mB,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=Array(t.length),r=Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=mR(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=mR(l),c=mR(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=mR(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=mR(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),mE=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function mN(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function mV(t){return"category"===t?"ordinal":"time"===t?"time":"float"}let mF=function(t){this.otherDims={},null!=t&&tS(this,t)};var mH=tF,mW="u"<typeof Int32Array?Array:Int32Array,mG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mU=["_approximateExtent"],mZ=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;gS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=tE(h)?new mF({name:h}):h instanceof mF?h:new mF(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),i&&(c.storeDimIndex=u),0===d.itemName&&(this._nameDimIdx=c.storeDimIndex),0===d.itemId&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=t2();tk(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(tV(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,f,g,v=this;if(t instanceof h0&&(g=t),!g){var m=this.dimensions,y=hl(t)||tC(t)?new h_(t,m.length):t;g=new h0;var _=tD(m,function(t){return{type:v._dimInfos[t].type,property:t}});g.initData(y,_,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(i=this,r=this._schema,a=(o={}).encode={},s=t2(),l=[],u=[],h={},tk(i.dimensions,function(t){var e=i.getDimensionInfo(t),n=e.coordDim;if(n){var r,o=e.coordDimIndex;mN(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),mN(h,n)[o]=i.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}s_.each(function(t,n){var i=mN(a,n),r=e.otherDims[n];null!=r&&!1!==r&&(i[r]=e.name)})}),c=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=tD(c,function(t){return i.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new mE(h,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&j(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==sM&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===sx&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);if(!(!this.hasItemOption&&tF(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==i[a]&&null!=u&&(i[a]=oi(u,null));var h=l.id;null==r[a]&&null!=h&&(r[a]=oi(h,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)j(this,a);G(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){mH(t)?tS(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Z(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return U(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return tB(t)?i.getValues(tD(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){tz(t)&&(n=e,e=t,t=[]);var i=n||this,r=tD(X(t),this._getStoreDimIndex,this);this._store.each(r,i?tL(e,i):e)},t.prototype.filterSelf=function(t,e,n){tz(t)&&(n=e,e=t,t=[]);var i=n||this,r=tD(X(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?tL(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=tO(t),r=[];return tk(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){tz(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=tD(X(t),this._getStoreDimIndex,this),a=q(this);return a._store=this._store.map(o,r?tL(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=tD(X(t),this._getStoreDimIndex,this);this._store.modify(o,r?tL(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=q(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=q(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=q(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new lA(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mz(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return U(t,e)},function(t){return U(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},mH(t)?tS(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(tB(r=this.getVisual(e))?r=r.slice():mH(r)&&(r=tS({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,mH(e)?tS(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){mH(t)?tS(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?tS(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){sv(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tk(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tD(this.dimensions,this._getDimInfo,this),this.hostModel)),Y(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];tz(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(tq(arguments)))})},t.internalField=void(G=function(t){var e=t._invertedIndicesMap;tk(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new mW(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},Z=function(t,e,n){return oi(t._getCategory(e,n),null)},U=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Z(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},X=function(t){return tB(t)||(t=null!=t?[t]:[]),t},q=function(e){var n=new t(e._schema?e._schema:tD(e.dimensions,e._getDimInfo,e),e.hostModel);return Y(n,e),n},Y=function(t,e){tk(mG.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,tk(mU,function(n){t[n]=tb(e[n])}),t._calculationInfo=tS({},e._calculationInfo)},j=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=Z(t,r,e)),null==s&&null!=o&&(i[e]=s=Z(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}),t}();function mX(t,e){hl(t)||(t=hh(t));var n,i,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=t2(),h=[],c=(n=t,i=s,r=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,o||0),tk(i,function(t){var e;tF(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=e.canOmitUnusedDimensions&&c>30,d=l===t.dimensionsDefine,f=d?gT(t):gM(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var v=t2(g),m=new hj(c),y=0;y<m.length;y++)m[y]=-1;function _(t){var e=m[t];if(e<0){var n=l[t],i=tF(n)?n:{name:n},r=new mF,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var a=h.length;return m[t]=a,r.storeDimIndex=t,h.push(r),r}return h[e]}if(!p)for(var y=0;y<c;y++)_(y);v.each(function(t,e){var n=r6(t).slice();if(1===n.length&&!tE(n[0])&&n[0]<0)return void v.set(e,!1);var i=v.set(e,[]);tk(n,function(t,n){var r=tE(t)?f.get(t):t;null!=r&&r<c&&(i[n]=r,b(_(r),e,n))})});var x=0;function b(t,e,n){null!=s_.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}tk(s,function(t){if(tE(t))r=t,i={};else{var e,n,i,r=(i=t).name,o=i.ordinalMeta;i.ordinalMeta=null,(i=tS({},i)).ordinalMeta=o,e=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var a=v.get(r);if(!1!==a){if(!(a=r6(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;x<c&&null!=_(x).coordDim;)x++;x<c&&a.push(x++)}tk(a,function(t,o){var a=_(t);if(d&&null!=i.type&&(a.type=i.type),b(tM(a,i),r,o),null==a.name&&e){var s=e[o];tF(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&tM(a.otherDims,n)})}});var w=e.generateCoord,S=e.generateCoordCount,M=null!=S;S=w?S||1:0;var T=w||"value";function I(t){null==t.name&&(t.name=t.coordDim)}if(p)tk(h,function(t){I(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;C<c;C++){var k=_(C);null==k.coordDim&&(k.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(T,u,M),k.coordDimIndex=0,(!w||S<=0)&&(k.isExtraCoord=!0),S--),I(k),null==k.type&&(1===uV(t,C)||k.isExtraCoord&&(null!=k.otherDims.itemName||null!=k.otherDims.seriesName))&&(k.type="ordinal")}return oM(h,function(t){return t.name},function(t,e){e>0&&(t.name=t.name+(e-1))}),new gw({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}var mY=function(t){this.coordSysDims=[],this.axisMap=t2(),this.categoryAxisMap=t2(),this.coordSysName=t},mq={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",oc).models[0],o=t.getReferringComponents("yAxis",oc).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),mj(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),mj(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",oc).models[0];e.coordSysDims=["single"],n.set("single",r),mj(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",oc).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),mj(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),mj(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tk(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),mj(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",oc).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function mj(t){return"category"===t.get("type")}let mK=function(t,e,n){n=n||{};var i,r,o,a,s,l,u,h,c=e.getSourceManager(),p=!1;t?(p=!0,h=hh(t)):p=(h=c.getSource()).sourceFormat===sx;var d=function(t){var e=t.get("coordinateSystem"),n=new mY(e),i=mq[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(r=e.get("coordinateSystem"),o=up.get(r),d&&d.coordSysDims&&(i=tD(d.coordSysDims,function(t){var e={name:t},n=d.axisMap.get(t);return n&&(e.type=mV(n.get("type"))),e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i),g=n.useEncodeDefaulter,v=tz(g)?g:g?tR(uE,f,e):null,m=mX(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:v,canOmitUnusedDimensions:!p}),y=(a=m.dimensions,s=n.createInvertedIndices,d&&tk(a,function(t,e){var n=t.coordDim,i=d.categoryAxisMap.get(n);i&&(null==l&&(l=e),t.ordinalMeta=i.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),_=p?null:c.getSharedDataStore(m),x=function(t,e,n){var i,r,o,a,s,l,u,h=(n=n||{}).byIndex,c=n.stackedCoordDimension;gS(e.schema)?(i=(r=e.schema).dimensions,o=e.store):i=e;var p=!!(t&&t.get("stack")),d=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(tk(i,function(t,e){tE(t)&&(i[e]=t={name:t}),f(t)||(d=!1)}),tk(i,function(t,e){p&&!t.isExtraCoord&&(h||a||!t.ordinalMeta||(a=t),!s&&f(t)&&(!d||"x"!==t.coordDim&&"angle"!==t.coordDim)&&(!c||c===t.coordDim)&&(s=t))}),!s||h||a||(h=!0),s){l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var g=s.coordDim,v=s.type,m=0;tk(i,function(t){t.coordDim===g&&m++});var y={name:l,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:u,coordDim:u,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(u,v),_.storeDimIndex=o.ensureCalculationDimension(l,v)),r.appendCalculationDimension(y),r.appendCalculationDimension(_)):(i.push(y),i.push(_))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:h,stackedOverDimension:u,stackResultDimension:l}}(e,{schema:m,store:_}),b=new mZ(m,e);b.setCalculationInfo(x);var w=null!=y&&function(t){if(t.sourceFormat===sx)return!tB(ot(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(h)?function(t,e,n,i){return i===y?n:this.defaultDimValueGetter(t,e,n,i)}:null;return b.hasItemOption=!1,b.initData(p?h:_,null,w),b};var m$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.getInitialData=function(t,e){return mK(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)tk(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(i.length<2)){if(2===i.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,h=void 0,c=1,p=0;p<i.length;p++){var d=i[p].coord,f=p===i.length-1?i[p-1].tickValue+c:i[p].tickValue;if(f===s){h=d;break}if(f<s)u=d;else if(null!=u&&f>s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!i.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}return[0/0,0/0]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(cu);cu.registerClass(m$);var mQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.getInitialData=function(){return mK(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=ok(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=lL(m$.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:uC.color.primary,borderWidth:2}},realtimeSort:!1}),e}(m$);function mJ(t,e,n,i,r){if(t){if("polar"===t.type){var o,a,s,l;return a=rW((o=t.getArea()).r0,1),s=rW(o.r,1),l=new c1({shape:{cx:rW(t.cx,1),cy:rW(t.cy,1),r0:a,r:s,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}),e&&("angle"===t.getBaseAxis().dim?l.shape.endAngle=o.startAngle:l.shape.r=a,pL(l,{shape:{endAngle:o.endAngle,r:s}},n)),l}else if("cartesian2d"===t.type)return function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||0;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new a6({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=tz(r)?function(t){r(t,c)}:null;pL(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}(t,e,n,i,r)}return null}function m0(t,e,n){t?e.setClipPath(n):e.removeClipPath()}var m1=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m2=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new m1},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-l<c:l-u<c;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},e}(aY);function m5(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=hk(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(hk(t,e,n[a]));return o.join(" ")}}function m3(t,e,n){return e*Math.sin(t)*(n?-1:1)}function m4(t,e,n){return e*Math.cos(t)*(n?1:-1)}var m8=Math.max,m6=Math.min,m7=function(t){function e(){var e=t.call(this)||this;return e.type="bar",e._isFirstFrame=!0,e}return tt(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var p=t.get("clip",!0)||c,d=l.getArea();o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e,n,i,o=ya[l.type](a,t);if(!o)return null;var s=(e=l,n=r,i=o,new("polar"===e.type?c1:a6)({shape:yd(n,i,e),silent:!0,z2:0}));return s.useStyle(v.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",m):s.setShape("cornerRadius",m),y[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),i=ya[l.type](a,e,n);if(i&&(g&&w(e),a.hasValue(e)&&yo[l.type](i))){var s=!1;p&&(s=m9[l.type](d,i));var v=yt[l.type](t,a,e,i,r,h,u.model,!1,f);c&&(v.forceLabelAnimation=!0),yl(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):c?ye(c,h,v,i,e,r,!1,!1):pL(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),S=ya[l.type](a,e,i);if(S){if(g){var M=void 0;0===_.length?M=w(n):((M=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",m):M.setShape("cornerRadius",m),y[e]=M);var T=ya[l.type](a,e);pO(M,{shape:yd(r,T,l)},h,e)}var I=s.getItemGraphicEl(n);if(!a.hasValue(e)||!yo[l.type](S))return void o.remove(I);var C=!1;if(p&&(C=m9[l.type](d,S))&&o.remove(I),I&&("sector"===I.type&&f||"sausage"===I.type&&!f)&&(I&&pE(I,t,n),I=null),I?pN(I):I=yt[l.type](t,a,e,S,r,h,u.model,!0,f),c&&(I.forceLabelAnimation=!0),b){var k=I.getTextContent();if(k){var D=ly(k);null!=D.prevValue&&(D.prevValue=D.value)}}else yl(I,a,e,i,S,t,r,"polar"===l.type);x?I.attr({shape:S}):c?ye(c,h,I,S,e,r,!0,b):pO(I,{shape:S},t,e,null),a.setItemGraphicEl(e,I),I.ignore=C,o.add(I)}}).remove(function(e){var n=s.getItemGraphicEl(e);n&&pE(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new rS);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),yc(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),yc(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&mJ(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=null==r?0/0:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:tD(i,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?5e-324:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){pE(e,t,sg(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(dS),m9={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=m8(e.x,t.x),s=m6(e.x+e.width,r),l=m8(e.y,t.y),u=m6(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=m6(e.r,t.r),o=m8(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},yt={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new a6({shape:tS({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u,h,c=!r&&l?m2:c1,p=new c({shape:i,z2:1});if(p.name="item",u=ys(r),h=c===m2,p.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return ru(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,p=a.r0,d=(c+p)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=h?Math.abs(c-p)/2:0,y=Math.cos,_=Math.sin,x=s+c*y(f),b=l+c*_(f),w="left",S="top";switch(r){case"startArc":x=s+(p-o)*y(v),b=l+(p-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(p+o)*y(v),b=l+(p+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*y(f)+m3(f,o+m,!1),b=l+d*_(f)+m4(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*y(f)+m3(f,-o+m,!1),b=l+d*_(f)+m4(f,-o+m,!1),w="left",S="middle";break;case"middle":x=s+d*y(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(c+o)*y(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(c-o)*y(v),b=l+(c-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*y(g)+m3(g,o+m,!0),b=l+d*_(g)+m4(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*y(g)+m3(g,-o+m,!0),b=l+d*_(g)+m4(g,-o+m,!0),w="right",S="middle";break;default:return ru(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t},o){var d=p.shape,f=r?"r":"endAngle",g={};d[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?pO:pL)(p,{shape:g},o)}return p}};function ye(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?pO:pL)(n,{shape:l},e,r,null),(a?pO:pL)(n,{shape:u},e?t.baseAxis.model:null,r)}function yn(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var yi=["x","y","width","height"],yr=["cx","cy","r","startAngle","endAngle"],yo={cartesian2d:function(t){return!yn(t,yi)},polar:function(t){return!yn(t,yr)}},ya={cartesian2d:function(t,e,n){var i,r,o,a=t.getItemLayout(e);if(!a)return null;var s=n?(i=n,r=a,(o=i.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(i.get(["itemStyle","borderWidth"])||0,isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ys(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function yl(t,e,n,i,r,o,a,s){var l,u,h,c,p=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var d=t.shape,f=function(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;tB(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:tD(i,function(t){return rl(t,r)})}}(i.getModel("itemStyle"),d,!0);tS(d,f),t.setShape(d)}}else{var g=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",g)}t.useStyle(p);var v=i.getShallow("cursor");v&&t.attr("cursor",v);var m=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?(l=r,u=o.coordinateSystem,0===l.height?u.getOtherAxis(u.getBaseAxis()).inverse?"bottom":"top":l.height>0?"bottom":"top"):(h=r,c=o.coordinateSystem,0===h.width?c.getOtherAxis(c.getBaseAxis()).inverse?"left":"right":h.width>=0?"right":"left"),y=lh(i);lu(t,y,{labelFetcher:o,labelDataIndex:n,defaultText:m5(o.getData(),n),inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:m});var _=t.getTextContent();if(s&&_){var x=i.get(["label","position"]);t.textConfig.inside="middle"===x||null,function(t,e,n,i){if(tV(i))return t.setTextConfig({rotation:i});if(tB(e))return t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(a+s)/2;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-r;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===x?m:x,ys(a),i.get(["label","rotate"]))}!function(t,e,n,i){if(t){var r=ly(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}(_,y,o.getRawValue(n),function(t){var n=e.mapDimensionsAll("defaultedLabel");if(!tB(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")});var b=i.getModel(["emphasis"]);s9(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),ln(t,i),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",tk(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var yu=function(){},yh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yu},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(aY);function yc(t,e,n,i){var r=t.getData(),o=+!!r.getLayout("valueAxisHorizontal"),a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),h=i?oC(t):0;if(u){var c=new yh({shape:{points:u},incremental:h,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var p=new yh({shape:{points:r.getLayout("largePoints")},incremental:h,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,e.add(p),p.useStyle(r.getVisual("style")),p.style.stroke=null,sg(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",yp),p.on("mousemove",yp)),n&&n.push(p)}var yp=dO(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);sg(this).dataIndex=e>=0?e:null},30,!1);function yd(t,e,n){if("cartesian2d"===n.type){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var yf=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r,o,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=l.get("type"),c=t.layout;"category"===u?(c="horizontal",o=s.getOrdinalMeta(),a=!this._hasEncodeRule("x")):"category"===h&&(c="vertical",o=l.getOrdinalMeta(),a=!this._hasEncodeRule("y")),c||(c="time"===h?"vertical":"horizontal"),this._layout=c;var p=["x","y"],d=+("horizontal"!==c),f=this._baseAxisDim=p[d],g=p[1-d],v=[s,l],m=v[d].get("type"),y=v[1-d].get("type"),_=t.data;if(_&&a){var x=[];tk(_,function(t,e){var n;tB(t)?(n=t.slice(),t.unshift(e)):tB(t.value)?((n=tS({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,x.push(n)}),t.data=x}var b=this.defaultValueDimensions,w=[{name:f,type:mV(m),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:mV(y),dimsDef:b.slice()}];return n=tB(n={coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:tR(uE,w,this)})&&{coordDimensions:n}||tS({encodeDefine:this.getEncode()},n),(r=new mZ(mX(i=this.getSource(),n).dimensions,this)).initData(i,void 0),r},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t.prototype.getWhiskerBoxesLayout=function(){return this._layout},t}();function yg(t,e){for(var n=e.ends.length,i=0,r=0;r<n;r++)t.contain(e.ends[r][0],e.ends[r][1])&&i++;return i?+(i<n):2}var yv="boxplot",ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return tt(e,t),e.type="series."+yv,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:uC.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:uC.color.shadow}},animationDuration:800},e}(cu);tI(ym,yf,!0);var yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=yv,e}return tt(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===t.getWhiskerBoxesLayout()),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),h=s&&mJ(l,!1,t);i.diff(o).add(function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=s?yg(u,e):0;if(2!==n){var o=yb(e,i,t,a,!0);m0(1===n,o,h),i.setItemGraphicEl(t,o),r.add(o)}}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!i.hasValue(t))return void r.remove(n);var l=i.getItemLayout(t),c=s?yg(u,l):0;2===c?r.remove(n):(n?(pN(n),yw(l,n,i,t)):n=yb(l,i,t,a),m0(1===c,n,h),r.add(n),i.setItemGraphicEl(t,n))}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type=yv,e}(dS),y_=function(){},yx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new y_},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(aY);function yb(t,e,n,i,r){var o,a,s,l=t.ends,u=new yx({shape:{points:r?(o=l,a=i,s=t,tD(o,function(t){return(t=t.slice())[a]=s.initBaseline,t})):l}});return yw(t,u,e,n,r),u}function yw(t,e,n,i,r){var o=n.hostModel;(0,Q[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");ln(e,a),s9(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}var yS=ow(),yM={seriesType:yv,overallReset:function(t){var e=yv+"|&";mt(t,e,function(t){var n=function(t,e){var n=v4(t,e);if(!n||!n.sers.length)return 0;var i=0;return v9(t.model.ecModel,n.sers,function(){i++}),i}(t,e);if(n){var i,r,o,a,s,l,u,h,c,p,d=(i=t,r=n,o=[],a=[],s=[],l=my(i,{fromStat:{key:yv+"|&"},min:1}).w,v7(i,yv+"|&",function(t){var e=t.get("boxWidth");tB(e)||(e=[e,e]),s[t.seriesIndex]=[rF(e[0],l)||0,rF(e[1],l)||0]}),h=(u=.8*l-2)/r*.3,p=(c=(u-h*(r-1))/r)/2-u/2,v7(i,yv+"|&",function(t){var e=t.seriesIndex;a[e]=p,p+=h+c,o[e]=rk(rD(c,s[e][0]),s[e][1])}),{boxOffsetList:a,boxWidthList:o});v7(t,e,function(t){var e=t.seriesIndex;!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a=+("horizontal"!==t.getWhiskerBoxesLayout()),s=1-a,l=["x","y"],u=r.mapDimension(l[a]),h=r.mapDimensionsAll(l[s]);if(null!=u&&!(h.length<5))for(var c=0;c<r.count();c++){var p=r.get(u,c),d=_(p,h[2],c),f=_(p,h[0],c),g=_(p,h[1],c),v=_(p,h[3],c),m=_(p,h[4],c),y=[];x(y,g,!1),x(y,v,!0),y.push(f,g,m,v),b(y,f),b(y,m),b(y,d),r.setItemLayout(c,{initBaseline:d[s],ends:y})}function _(t,n,o){var l,u=r.get(n,o),h=[];return h[a]=t,h[s]=u,isNaN(t)||isNaN(u)?l=[0/0,0/0]:(l=i.dataToPoint(h),l[a]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(t,d.boxOffsetList[e],d.boxWidthList[e])})}})}},yT={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==sb&&hy("");var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=rG(t[a].slice()),l=r1(s,.25),u=r1(s,.5),h=r1(s,.75),c=s[0],p=s[s.length-1],d=(null==r?1.5:r)*(h-l),f=o?c:Math.max(c,l-d),g=o?p:Math.min(p,h+d),v=e.itemNameFormatter,m=tz(v)?v({value:a}):tE(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,h,g]);for(var y=0;y<s.length;y++){var _=s[y];if(_<f||_>g){var x=[m,_];i.push(x)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},yI="candlestick",yC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return tt(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series."+yI,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(cu);tI(yC,yf,!0);var yk=["itemStyle","borderColor"],yD=["itemStyle","borderColor0"],yA=["itemStyle","borderColorDoji"],yP=["itemStyle","color"],yO=["itemStyle","color0"];function yL(t,e){return e.get(t>0?yP:yO)}function yR(t,e){return e.get(0===t?yA:t>0?yk:yD)}var yB={seriesType:yI,plan:cy(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=yL(r,i),o.stroke=yR(r,i)||o.fill,tS(e.ensureUniqueItemVisual(n,"style"),o)}}}}},yz=["color","borderColor"],yE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea(),l=o&&mJ(a,!1,t);this._data||i.removeAll();var u=yW(t);e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n),h=o?yg(s,a):0;if(2!==h){var c=yF(a,n,u,!0);pL(c,{shape:{points:a.ends}},t,n),m0(1===h,c,l),yH(c,e,n,r),i.add(c),e.setItemGraphicEl(n,c)}}}).update(function(a,h){var c=n.getItemGraphicEl(h);if(!e.hasValue(a))return void i.remove(c);var p=e.getItemLayout(a),d=o?yg(s,p):0;2===d?i.remove(c):(c?(pO(c,{shape:{points:p.ends}},t,a),pN(c)):c=yF(p,a,u),yH(c,e,a,r),m0(1===d,c,l),i.add(c),e.setItemGraphicEl(a,c))}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),yZ(t,this.group);var e=t.get("clip",!0)?mJ(t.coordinateSystem,!1,t):null;m0(!!e,this.group,e)},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox"),o=yW(e);null!=(n=t.next());){var a=yF(i.getItemLayout(n),n,o);yH(a,i,n,r),a.incremental=oC(e),this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){yZ(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),m0(!1,this.group,null),this._data=null},e.type=yI,e}(dS),yN=function(){},yV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yN},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(aY);function yF(t,e,n,i){var r,o,a,s=t.ends;return new yV({shape:{points:i?(r=s,o=n,a=t,tD(r,function(t){return(t=t.slice())[o]=a.initBaseline,t})):s},z2:100})}function yH(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0;var o=r.getShallow("cursor");o&&t.attr("cursor",o),t.__simpleBox=i,ln(t,r);var a=e.getItemLayout(n).sign;tk(t.states,function(t,e){var n=r.getModel(e),i=yL(a,n),o=yR(a,n)||i,s=t.style||(t.style={});i&&(s.fill=i),o&&(s.stroke=o)});var s=r.getModel("emphasis");s9(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function yW(t){return+("horizontal"===t.getWhiskerBoxesLayout())}var yG=function(){},yU=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yG},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(aY);function yZ(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new yU({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new yU({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new yU({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),yX(1,a,t,r),yX(-1,s,t,r),yX(0,l,t,r),i&&(a.incremental=oC(t),s.incremental=oC(t),l.incremental=oC(t)),n&&n.push(a,s,l)}function yX(t,e,n,i){var r=yR(t,n)||yL(t,n),o=n.getModel("itemStyle").getItemStyle(yz);e.useStyle(o),e.style.fill=null,e.style.stroke=r;var a=n.get("cursor");a&&e.attr("cursor",a)}function yY(t){t&&tB(t.series)&&tk(t.series,function(t){tF(t)&&"k"===t.type&&(t.type=yI)})}var yq=ow(),yj={seriesType:yI,plan:cy(),reset:function(t){var e,n,i,r,o,a=t.coordinateSystem,s=t.getData(),l=(n=my((e=t).getBaseAxis(),{fromStat:{key:yI+"|&"},min:1}).w,i=rF(tX(e.get("barMaxWidth"),n),n),r=rF(tX(e.get("barMinWidth"),1),n),null!=(o=e.get("barWidth"))?rF(o,n):rD(rk(n/2,i),r)),u=+("horizontal"!==t.getWhiskerBoxesLayout()),h=1-u,c=["x","y"],p=s.getDimensionIndex(s.mapDimension(c[u])),d=tD(s.mapDimensionsAll(c[h]),s.getDimensionIndex,s),f=d[0],g=d[1],v=d[2],m=d[3];if(s.setLayout({candleWidth:l,isSimpleBox:l<=1.3}),!(p<0)&&!(d.length<4))return{progress:t.pipelineContext.large?function(e,n){for(var i,r,o=gA(4*e.count),s=0,l=[],c=[],d=n.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);null!=(r=e.next());){var _=d.get(p,r),x=d.get(f,r),b=d.get(g,r),w=d.get(v,r),S=d.get(m,r);if(isNaN(_)||isNaN(w)||isNaN(S)){o[s++]=0/0,s+=3;continue}o[s++]=yK(d,r,x,b,g,y),l[u]=_,l[h]=w,i=a.dataToPoint(l,null,c),o[s++]=i?i[0]:0/0,o[s++]=i?i[1]:0/0,l[h]=S,i=a.dataToPoint(l,null,c),o[s++]=i?i[1]:0/0}n.setLayout("largePoints",o)}:function(t,e){for(var n,i=e.getStore();null!=(n=t.next());){var r=i.get(p,n),o=i.get(f,n),s=i.get(g,n),c=i.get(v,n),d=i.get(m,n),y=rk(o,s),_=rD(o,s),x=I(y,r),b=I(_,r),w=I(c,r),S=I(d,r),M=[];C(M,b,0),C(M,x,1),M.push(k(S),k(b),k(w),k(x));var T=!!e.getItemModel(n).get(["itemStyle","borderColorDoji"]);e.setItemLayout(n,{sign:yK(i,n,o,s,g,T),initBaseline:o>s?b[h]:x[h],ends:M,brushRect:function(t,e,n){var i=I(t,n),r=I(e,n);return i[u]-=l/2,r[u]-=l/2,{x:i[0],y:i[1],width:h?l:r[0]-i[0],height:h?r[1]-i[1]:l}}(c,d,r)})}function I(t,e){var n=[];return n[u]=e,n[h]=t,isNaN(e)||isNaN(t)?[0/0,0/0]:a.dataToPoint(n)}function C(t,e,n){var i=e.slice(),r=e.slice();i[u]=p5(i[u]+l/2,1,!1),r[u]=p5(r[u]-l/2,1,!0),n?t.push(i,r):t.push(r,i)}function k(t){return t[u]=p5(t[u],1),t}}}}};function yK(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}var y$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tt(e,t),e.prototype.getInitialData=function(t,e){return mK(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:uC.color.primary}},universalTransition:{divideShape:"clone"}},e}(cu),yQ=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return tt(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=fy(t,-1,-1,2,2,null,o);a.attr({z2:tX(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=yJ,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){s0(this.childAt(0))},e.prototype.downplay=function(){s1(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,c)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};h?p.attr(d):pO(p,d,a,n),pN(p)}if(this._updateCommon(t,n,s,i,r),u){var p=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,pL(p,d,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),h=m.get("disabled"),c=lh(v),p=m.getShallow("scale"),d=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var _=fx(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof aJ){var w=f.style;f.useStyle(tS({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(tS({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var T=r&&r.useNameLabel;lu(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):m5(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=f.ensureState("emphasis");I.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*C,I.scaleY=this._sizeY*C,this.setSymbolScale(1),s9(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=sg(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&pB(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pB(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return f_(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(rS);function yJ(t,e){this.parent.drift(t,e)}function y0(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(n))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function y1(t){return null==t||tF(t)||(t={isIgnore:t}),t||{}}function y2(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lh(e),cursorStyle:e.get("cursor")}}function y5(t,e,n,i,r,o,a){var s=new t(e,n,i,r);return s.setPosition(o),e.setItemGraphicEl(n,s),a.add(s),s}var y3=function(){function t(t){this.group=new rS,this._SymbolCtor=t||yQ}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=y1(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=y2(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);y0(t,r,i,e)&&y5(o,t,i,s,l,r,n)}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!y0(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):pO(p,v,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=e.getStore(),i=0,r=n.count();i<r;i++){var o=e.getItemGraphicEl(i),a=this._getSymbolPoint(i);y0(e,a,i,t)?((o=o||y5(this._SymbolCtor,e,i,this._seriesScope,{disableAnimation:!0},a,this.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(this.group.remove(o),e.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=y2(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,i){function r(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=pU)}this._progressiveEls=[],i=y1(i);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(y0(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}(),y4=function(){},y8=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tt(e,t),e.prototype.getDefaultShape=function(){return new y4},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<i.length;){var h=i[n++],c=i[n++];!(isNaN(h)||isNaN(c))&&(!u||u.contain(h,c))&&(a.x=h-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];!(isNaN(a)||isNaN(s))&&(!o||o.contain(a,s))&&r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h<n.length;){var c=n[h++],p=n[h++];a=Math.min(c,a),l=Math.max(c,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new no(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(aY),y6=function(){function t(){this.group=new rS}return t.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var e=(t.endIndex-t.startIndex)*2,i=4*t.startIndex*2;n=new Float32Array(n.buffer,i,e)}t.setShape("points",n),t.reset(),t.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n,i){var r=this._newAdded[0],o=e.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=n,u.setShape({points:o}),this._setCommon(u,e,i)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new y8({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=fy(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=sg(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();function y7(t,e){return{seriesType:t,plan:cy(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=tD(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");gI(n,a[0])&&(a[0]=l),gI(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&gA(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(h,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&(e.setLayout("points",r),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}var y9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,_t(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),oC(e),_t(e)),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var r=y7("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(_t(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new y6:new y3,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(dS);function _t(t){return{clipShape:function(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}(t)}}var _e=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),_n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oc).models[0]},e.type="cartesian2dAxis",e}(uM);tI(_n,_e);var _i={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:uC.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:uC.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:uC.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[uC.color.backgroundTint,uC.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:uC.color.neutral00,borderColor:uC.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_r=tw({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_i),_o=tw({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:uC.color.axisMinorSplitLine,width:1}}},_i),_a=tw({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_o),_s=tM({logBase:10},_o);let _l={category:_r,value:_o,time:_a,log:_s};function _u(t,e,n,i){tk(ve,function(r,o){var a=tw(tw({},_l[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return tt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{};tw(t,e.getTheme().get(o+"Axis")),tw(t,this.getDefaultOption()),t.type=_h(t),n&&ub(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g$.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){return{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",_h)}function _h(t){return t.type||(t.data?"category":"value")}var _c=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tD(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tP(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),_p=["x","y"];function _d(t){return("interval"===t.type||"time"===t.type)&&!lH(t)}var _f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=mT,e.dimensions=_p,e}return tt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(_d(t)&&_d(e)){var n=gz(t,null),i=gz(e,null),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=eW([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new no(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return el(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return el(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new no(i,r,o,a)},e}(_c),_g=[0,1];function _v(t){var e=t.getExtent();if(t.onBand){var n=(e[1]-e[0])/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}var _m=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return tt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this.scale;return rV(t=n.normalize(n.parse(t)),_g,_v(this),e)},t.prototype.coordToData=function(t,e){var n=rV(t,_v(this),_g,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e,n,i,r=(t=t||{}).tickModel||this.getTickModel(),o=(e={breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak},n=this.scale,(i=this.getTickModel().get("customValues"))?{ticks:vS(i,n)}:"category"===this.type?function(t,e){var n,i,r=vT(t),o=vo(e),a=vk(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),tz(o))n=vO(t,o,!0);else if("auto"===o){var s=vM(t,t.getLabelModel(),vw(2));i=s.labelCategoryInterval,n=tD(s.labels,function(t){return t.tick})}else n=vO(t,i=o,!0);return vD(r,o,{ticks:n,tickCategoryInterval:i})}(this,r):{ticks:n.getTicks(e)}),a=tD(o.ticks,function(t){return{coord:this.dataToCoord(vh(this.scale,t)),tick:t}},this),s=function(t,e,n){var i=e.length;if(!t.onBand||n||!i)return!1;var r=my(t).w;if(!r)return!1;tk(e,function(t){t.coord-=r/2});var o=t.scale.getExtent(),a=e[i-1];return a.tick.offInterval&&e.pop(),e.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}(this,a,r.get("alignWithLabel"));return tD(a,function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:s}})},t.prototype.getMinorTicksCoords=function(){if(gG(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),tD(this.scale.getMinorTicks(t),function(t){return tD(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n,i,r,o,a,s,l,u=t.getLabelModel().get("customValues");if(u){var h=t.scale;return{labels:tD(vS(u,h),function(e,n){return{formattedLabel:vi(t)(e,n),rawLabel:h.getLabel(e),tick:e}})}}return"category"===t.type?(n=t,i=e,r=n.getLabelModel(),o=vM(n,r,i),!r.get("show")||n.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=vi(a),{labels:tD(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tick:t}})})}(this,t=t||vw(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return my(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n,i,r=e.kind,o=(i=(n=t).getLabelModel(),{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}),a=vi(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,u=l.getExtent(),h=l.count();if(u[1]-u[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var p=u[0],d=t.dataToCoord(p+1)-t.dataToCoord(p),f=Math.abs(d*Math.cos(s)),g=Math.abs(d*Math.sin(s)),v=0,m=0;p<=u[1];p+=c){var y=0,_=0,x=rr(a({value:p}),o.font,"center","top");y=1.3*x.width,_=1.3*x.height,v=Math.max(v,y,7),m=Math.max(m,_,7)}var b=v/f,w=m/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(1===r)return e.out.noPxChangeTryDetermine.push(tL(vA,null,t,S,h)),S;var M=vP(t,S,h);return null!=M?M:S}(this,t=t||vw(2))},t}());function _y(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_=gW(t),x=_?t.intervalStub:t,b=e.fixMinMax||[],w=_?t.getExtent():null,S=x.getExtent(),M=gX(S,b,e.rawExtentResult);x.setExtent(M[0],M[1]),M=x.getExtent();var T=_?(n=x,i=gY(e.splitNumber,10),r=n.getExtent(),a=rD(rQ(o=gE(n)),1),i/o*a<=.5&&(a*=10),s=gU(a),l=[rW(rL(r[0]/a)*a,s),rW(rO(r[1]/a)*a,s)],{intervalPrecision:s,interval:a,niceExtent:l}):(u=x,c=gY((h=e).splitNumber,5),p=gE(u),d=h.minInterval,f=h.maxInterval,g=r0(p/c,!0),null!=d&&g<d&&(g=d),null!=f&&g>f&&(g=f),v=gU(g),y=[rW(rL((m=u.getExtent())[0]/g)*g,v),rW(rO(m[1]/g)*g,v)],{interval:g,intervalPrecision:v,niceExtent:y}),I=T.intervalPrecision,C=T.interval,k=e.userInterval;null!=k&&(T.interval=k,T.intervalPrecision=gU(k)),b[0]||(M[0]=rW(rO(M[0]/C)*C,I)),b[1]||(M[1]=rW(rL(M[1]/C)*C,I)),null!=k&&(T.niceExtent=M.slice()),vu(t,b,S,M,w,T)}function __(t){var e,n,i,r,o,a,s,l,u=t.scale,h=t.model,c=h.axis,p=h.ecModel;e=u,n=h,i=c,o=mm(e,n,r=p,i,null),a=gF(e)||gH(e),s=e,l={splitNumber:n.get("splitNumber"),fixMinMax:o.fixMM,userInterval:n.get("interval"),minInterval:a?n.get("minInterval"):null,maxInterval:a?n.get("maxInterval"):null,rawExtentResult:o},_x[s.type](s,l),i&&r&&function(t,e,n,i){if(n.ctnShp&&(me(t,function(e){var n=mv.get(e);if(n){var o=n(t,i);o&&(om(r=r||[0,0],o[0]),oy(r,o[1]),vn(t).noOnMyZero=!0)}}),r)){var r,o=e.getExtent();if(gG(e))t.onBand||e.setExtent2(1,rk(o[0],o[0]+r[0]),rD(o[1],o[1]+r[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=rk(a[0],e.transformOut(e.transformIn(a[0],null)+r[0],null))),n.zoomFixMM[1]||(a[1]=rD(a[1],e.transformOut(e.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(1,a[0],a[1])}}}(i,e,o,r)}var _x={interval:_y,log:_y,time:function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=864e5,n[1]+=864e5),-1/0===n[1]&&1/0===n[0]){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-864e5}t.setExtent(n[0],n[1]);var r=gY(e.splitNumber,10),o=gE(t)/r,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=g3.length,u=Math.min(g2(g3,o,0,l),l-1),h=g3[u][1],c=g3[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:o,interval:h,minLevelUnit:c})},ordinal:t4},_b=[[3,1],[0,2]],_w=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_p,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){for(var e=tO(t),n=[],i=e.length-1;i>=0;i--){var r=t[+e[i]];r.__alignTo?n.push(r):__(r)}tk(n,function(t){var e,n;(e=t,n=t.__alignTo,lH(e.scale)||lH(n.scale)||n.scale.getTicks().length<2)?__(t):function(t,e){var n,i,r,o,a,s,l,u,h,c=t.scale,p=t.model,d=mm(c,p,p.ecModel,t,null),f=gW(c),g=gW(e)?e.intervalStub:e,v=f?c.intervalStub:c,m=c.base,y=g.getTicks(),_=g.getTicks({expandToNicedExtent:!0}),x=y.length-1;if(1===x)n=i=0,r=1;else if(2===x){var b=rA(y[0].value-y[1].value),w=rA(y[1].value-y[2].value);n=i=0,b===w?r=2:(r=1,b<w?n=b/w:i=w/b)}else{var S=g.getConfig().interval;n=(1-(y[0].value-_[0].value)/S)%1,i=(1-(_[x].value-y[x].value)/S)%1,r=x-!!n-!!i}var M=d.zoomFixMM,T=M[0]||M[1],I=[d.fixMM[0]||T,d.fixMM[1]||T],C=c.getExtent(),k=v.getExtent(),D=gX(k,I);function A(t){for(var e=0;e<50&&!t();e++)l=gU(s=f?s*rD(m,2):function(t){var e=rJ(t),n=rR(10,e),i=rP(t/n);return i?2===i?i=3:3===i?i=5:i*=2:i=1,rW(i*n,-e)}(s))}function P(){o=rW(h-s*n,l)}function O(){a=rW(u+s*i,l)}function L(){h=n?rW(o+s*n,l):o}function R(){u=i?rW(a-s*i,l):a}if(I[0]&&I[1]){o=D[0],s=((a=D[1])-o)/(r+n+i);var B=t.getExtent(),z=rA(B[1]-B[0]);l=rZ([a,o],z,.5/r),L(),R(),r4(l)&&(s=rW(s,l))}else{var E=D[1]-D[0];l=gU(s=f?rD(rQ(E),1):r0(E/r,2)),I[0]?(o=D[0],A(function(){if(L(),u=rW(h+s*r,l),O(),a>=D[1])return!0})):I[1]?(a=D[1],A(function(){if(R(),h=rW(u-s*r,l),P(),o<=D[0])return!0})):A(function(){h=rW(rL(D[0]/s)*s,l);var t=rP(((u=rW(rO(D[1]/s)*s,l))-h)/s);if(t<=r){var e=r-t,n=void 0,i=d.incl0||f;if(i&&0===D[0])n=[0,e];else if(i&&0===D[1])n=[e,0];else{var c=rO(e/2);n=e%2==0?[c,c]:o+a<D[0]+D[1]?[c,c+1]:[c+1,c]}if(h=rW(h-s*n[0],l),u=rW(u+s*n[1],l),P(),O(),o<=D[0]&&a>=D[1])return!0}})}vu(c,I,k,[o,a],C,{interval:s,intervalCount:r,intervalPrecision:l,niceExtent:[h,u]})}(t,t.__alignTo.scale)})}tk(this._axesList,function(t){mf(t,1);var e=t.scale;gG(e)&&e.setSortInfo(t.model.get("categorySortInfo"))}),i(n.x),i(n.y);var r={};tk(n.x,function(t){_S(n,"y",t,r)}),tk(n.y,function(t){_S(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=u_(t,e),r=this._rect=uy(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(_I(o,r),!n){var l=(h=r,c=a,p=o,d=s,f=e,g=new vN(_A),tk(p,function(t){return tk(t,function(t){vs(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var a,s=v1(t,n),l=!1,u=!1,h=0;h<e.length;h++)(gF(a=e[h].getOtherAxis(n.axis).scale)||gW(a))&&(l=u=!0,"category"===n.axis.type&&n.axis.onBand&&(u=!1));return s.axisLineAutoShow=l,s.axisTickAutoShow=u,s.defaultNameMoveOverlap=o,new vU(n,i,s,r)}(h,c,t.model,f,g,!d))})}),g),u=void 0;if(s)K?(K(this._axesList,r),_I(o,r)):u=_k(r.clone(),"axisLabel",null,r,o,l,i);else{var h,c,p,d,f,g,v,m,y,_,x,b,w=(v=t,m=r,y=i,"same"===(x=v.get("outerBoundsMode",!0))?_=m.clone():(null==x||"auto"===x)&&(_=uy(v.get("outerBounds",!0)||mS,y.refContainer)),{outerBoundsRect:_,parsedOuterBoundsContain:null==(b=v.get("outerBoundsContain",!0))||"auto"===b||0>tT(["all","axisLabel"],b)?"all":b,outerBoundsClamp:[rH(tX(v.get("outerBoundsClampWidth",!0),mM["0"]),m.width),rH(tX(v.get("outerBoundsClampHeight",!0),mM["1"]),m.height)]}),S=w.outerBoundsRect,M=w.parsedOuterBoundsContain,T=w.outerBoundsClamp;S&&(u=_k(S,M,T,r,o,l,i))}_D(r,o,2,null,u,i),tk(this._coordsList,function(t){t.calcAffineTransform()})}},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}tF(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",oc).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",oc).models[0],a=t.gridModel,s=this._coordsList;return i?0>tT(s,e=i.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,i){var l,u;if(l=n,u=t,l.getCoordSysModel()===u){var h,c=n.get("position");"x"===e?"top"!==c&&"bottom"!==c&&(c=o.bottom?"top":"bottom"):"left"!==c&&"right"!==c&&(c=o.left?"right":"left"),o[c]=!0;var p=(null!=(h=n.get("type"))&&(t3(ve,h)||gj.getClass(h))||(h="value"),h),d=new _m(e,function(t,e,n){var i;switch(lN()&&(i=vl(t,e,n)),e){case"category":return new gJ({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:ov()});case"time":return new g5({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new g6({logBase:t.get("logBase"),breakOption:i});case"value":return new g1({breakOption:i});default:return new(gj.getClass(e)||g1)({})}}(n,p,!0),[0,0],p,c);d.onBand=vc(d.scale,n),d.inverse=n.get("inverse"),n.axis=d,d.model=n,d.grid=r,d.index=i,r._axesList.push(d),a[e][i]=d,s[e]++}}}this._axesMap=a,tk(a.x,function(e,n){tk(a.y,function(r,o){var a="x"+n+"y"+o,s=new _f(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})}),_T(a.x),_T(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return tk(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>tT(e,r)&&e.push(r),0>tT(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a),tk(a._axesList,function(e){var n;n=t.dimIdxMap,md(e).dimIdxInCoord=n.get(e.dim)})}),e.eachSeries(function(t){var e,n;!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=0;if(e){var r="series"===t.mainType;(null==n&&(n=r?"data":"box"),"data"===n)?(i=1,r||(i=0)):"box"!==n||(i=2,r||uh[e])||(i=0)}return{coordSysType:e,kind:i}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0!==a&&s===n){var l=i(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:mT,coordSysProvider:function(){var i,r=(tk(i={xAxisModel:null,yAxisModel:null},function(e,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,oc).models[0];i[n]=o}),i),o=r.xAxisModel,a=r.yAxisModel;return e=o.axis,n=a.axis,o.getCoordSysModel().coordinateSystem.getCartesian(o.componentIndex,a.componentIndex)}}),e&&n&&(mr(e,t,mT),mr(n,t,mT))},this),i},t.dimensions=_p,t.dimIdxMap=gM(_p),t}();function _S(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_M(s,o[l])&&(r=o[l]);else for(var u in o)if(t3(o,u)&&_M(s,o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function _M(t,e){if(!e)return!1;var n,i,r,o=ox(i=(n=e.scale.getExtentUnsafe(0,null))[0],r=n[1])?0===i||0===r?2:i<0&&r>0?1:3:3,a=e&&"category"!==e.type&&"time"!==e.type&&3!==o;return a&&"auto"===t&&vn(e).noOnMyZero&&(a=!1),a}function _T(t){for(var e,n=tO(t),i=[],r=n.length-1;r>=0;r--){var o,a=t[+n[r]];(gF(o=a.scale)||gW(o))&&null==vl(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?i.push(a):e=a)}e||(e=i.pop()),e&&tk(i,function(t){t.__alignTo=e})}function _I(t,e){tk(t.x,function(t){return _C(t,e.x,e.width)}),tk(t.y,function(t){return _C(t,e.y,e.height)})}function _C(t,e,n){var i,r,o=[0,n],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),r=(i=t.getExtent())[0]+i[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function _k(t,e,n,i,r,o,a){_D(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),h(i,0,0/0),h(i,1,0/0);var l=null==function(t,e){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(void 0,t[n],n,t))return t[n]}}(s,function(t){return t>0});return di(i,s,!0,!0,n),_I(r,i),l;function u(t){tk(r[pF[t]],function(e){if(vs(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(vh(e.scale,vz(a.label).labelInfo.tick));s=1===t?1-s:s,h(a.rect,t,s),h(a.rect,1-t,0/0)}var l=n.nameLayout;if(l){var s=va(n.nameLocation)?.5:0/0;h(l.rect,t,s),h(l.rect,1-t,0/0)}}})}function h(e,n,i){var r=t[pF[n]]-e[pF[n]],o=e[pH[n]]+e[pF[n]]-(t[pH[n]]+t[pF[n]]);r=c(r,1-i),o=c(o,i);var a=_b[n][0],l=_b[n][1];s[a]=rD(s[a],r),s[l]=rD(s[l],o)}function c(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function _D(t,e,n,i,r,o){var a=2===n;tk(e,function(e){return tk(e,function(e){if(vs(e.model)){var n,i;n=e.axisBuilder,i=v1(t,e.model),n.updateCfg(i),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r})}})});var s={x:0,y:0};function l(e){s[pF[1-e]]=t[pH[e]]<=.5*o.refContainer[pH[e]]?0:1-e==1?2:1}l(0),l(1),tk(e,function(t,e){return tk(t,function(t){vs(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var _A=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";vH(t,e,n,i,r,o),va(t.nameLocation)||tk(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&vG(t.labelInfoList,t.dirVec,i,r)})};function _P(t,e){return"all"===t||tB(t)&&tT(t,e)>=0||t===e}function _O(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_R(t)]}function _L(t){return!!t.get(["handle","show"])}function _R(t){return t.type+"||"+t.id}var _B={},_z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=_O(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=_L(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o,a=(o=_O(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){_B[t]=e},e.getAxisPointerClass=function(t){return t&&_B[t]},e.type="axis",e}(cm),_E=os(),_N=["splitArea","splitLine","minorSplitLine","breakArea"],_V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return tt(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new rS,this.group.add(this._axisGroup),vs(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),tk(_N,function(t){e.get([t,"show"])&&_F[t](this,this._axisGroup,e,e.getCoordSysModel(),i)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||p6(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){_E(this).splitAreaColors=null},e.type="cartesianAxis",e}(_z),_F={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),h=!1!==a.get("showMaxLine");l=tB(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=o.isHorizontal(),d=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<f.length;y++){var _=o.toGlobalCoord(f[y].coord);if((0!==y||u)&&(y!==f.length-1||h)){var x=f[y].tickValue;p?(g[0]=_,g[1]=c.y,v[0]=_,v[1]=c.y+c.height):(g[0]=c.x,g[1]=_,v[0]=c.x+c.width,v[1]=_);var b=d++%l.length,w=new po({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:tM({stroke:l[b]},m),silent:!0});p1(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var h=[],c=[],p=a.getLineStyle(),d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++){var g=o.toGlobalCoord(u[d][f].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var v=new po({anid:"minor_line_"+u[d][f].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0});p1(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=_E(t).splitAreaColors,p=t2(),d=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=tB(s)?s:[s];for(var f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=y-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,w=y-x,v=x+w);var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new a6({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:tM({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}_E(t).splitAreaColors=p}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){n.axis.scale}},_H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="xAxis",e}(_V),_W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_H.type,e}return tt(e,t),e.type="yAxis",e}(_V),_G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return tt(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a6({shape:t.coordinateSystem.getRect(),style:tM({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(cm),_U={offset:0};function _Z(t){t.registerComponentView(_G),t.registerComponentModel(mI),t.registerCoordinateSystem("cartesian2d",_w),_u(t,"x",_n,_U),_u(t,"y",_n,_U),t.registerComponentView(_H),t.registerComponentView(_W),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var _X={color:"fill",borderColor:"stroke"},_Y={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},_q=os(),_j=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return mK(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=_q(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(cu);function _K(t,e){return e=e||[0,0],tD(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?my(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function _$(t,e,n){var i=i3.call(this)||this;i.type="view",i.dimensions=["x","y"],i.invertY=t,i.lgCt=e,i.lgGeo=n;var r=i.trans=[];return r[0]=i8(),r[1]=i8(),r[2]=i8(),i.mtRaw=ez(),i.mtRawInv=ez(),i.mtOverall=ez(),i.mtOverallInv=ez(),i.zoom=1,i}tt(_$,i3),_$.prototype.getBoundingRect=function(){var t;return t=this,e8(e3(),t.dataRect)},_$.prototype.getViewRect=function(){var t;return t=this,e8(e3(),t.viewRect)},_$.prototype.getRoamTransform=function(){return i4(this.trans[1])},_$.prototype.dataToPoint=function(t,e,n){var i=e?this.mtRaw:this.mtOverall;return n=n||[],i?el(n,t,i):et(n,t)},_$.prototype.pointToData=function(t,e,n){n=n||[];var i=this.mtOverallInv;return i?el(n,t,i):et(n,t)},_$.prototype.convertToPixel=function(t,e,n){var i=_J(e);return i===this?i.dataToPoint(n):null},_$.prototype.convertFromPixel=function(t,e,n){var i=_J(e);return i===this?i.pointToData(n):null},_$.prototype.containPoint=function(t){return e8(_Q,this.dataRect),e7(_Q,_Q,this.mtOverall),e9(_Q,t[0],t[1])},_$.dimensions=["x","y"];var _Q=e3();function _J(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function _0(t,e){return e=e||[0,0],tD([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function _1(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?my(n).w:Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function _2(t,e){return e=e||[0,0],tD(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?my(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function _5(t,e){e&&(e.font=e.textFont||e.font,t3(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),t3(e,"textAlign")&&(t.align=e.textAlign),t3(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),t3(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),t3(e,"textWidth")&&(t.width=e.textWidth),t3(e,"textHeight")&&(t.height=e.textHeight),t3(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),t3(e,"textPadding")&&(t.padding=e.textPadding),t3(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),t3(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),t3(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),t3(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),t3(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),t3(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),t3(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function _3(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var i=t.textPosition.indexOf("inside")>=0,r=t.fill||uC.color.neutral99;_4(t,e);var o=null==t.textFill;return i?o&&(t.textFill=n.insideFill||uC.color.neutral00,!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=r),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||uC.color.neutral00),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,tk(e.rich,function(t){_4(t,t)}),t}function _4(t,e){e&&(t3(e,"fill")&&(t.textFill=e.fill),t3(e,"stroke")&&(t.textStroke=e.fill),t3(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),t3(e,"font")&&(t.font=e.font),t3(e,"fontStyle")&&(t.fontStyle=e.fontStyle),t3(e,"fontWeight")&&(t.fontWeight=e.fontWeight),t3(e,"fontSize")&&(t.fontSize=e.fontSize),t3(e,"fontFamily")&&(t.fontFamily=e.fontFamily),t3(e,"align")&&(t.textAlign=e.align),t3(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),t3(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),t3(e,"width")&&(t.textWidth=e.width),t3(e,"height")&&(t.textHeight=e.height),t3(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),t3(e,"padding")&&(t.textPadding=e.padding),t3(e,"borderColor")&&(t.textBorderColor=e.borderColor),t3(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),t3(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),t3(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),t3(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),t3(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),t3(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),t3(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),t3(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),t3(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),t3(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}e3(),i8(),i8();var _8={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},_6=tO(_8);tA(i6,function(t,e){return t[e]=1,t},{}),i6.join(", ");var _7=["","style","shape","extra"],_9=os();function xt(t,e,n,i,r){var o=t+"Animation",a=pA(t,i,r)||{},s=_9(e).userDuring;return a.duration>0&&(a.during=s?tL(xo,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),tS(a,n[o]),a}function xe(t,e,n,i){if(t){var r=t.parent,o=_9(t).leaveToProps;if(o){var a=xt("update",t,e,n,0);a.done=function(){r&&r.remove(t),i&&i()},t.animateTo(o,a)}else r&&r.remove(t),i&&i()}}function xn(t){return"all"===t}var xi={},xr={setTransform:function(t,e){return xi.el[t]=e,this},getTransform:function(t){return xi.el[t]},setShape:function(t,e){var n=xi.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=xi.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=xi.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=xi.el.style;if(e)return e[t]},setExtra:function(t,e){return(xi.el.extra||(xi.el.extra={}))[t]=e,this},getExtra:function(t){var e=xi.el.extra;if(e)return e[t]}};function xo(){var t=this.el;if(t){var e=_9(t).userDuring,n=this.userDuring;if(e!==n){this.el=this.userDuring=null;return}xi.el=t,n(xr)}}function xa(t,e,n,i){var r,o=n[t];if(o){var a=e[t];if(a){var s=n.transition,l=o.transition;if(l)if(r||(r=i[t]={}),xn(l))tS(r,a);else for(var u=r6(l),h=0;h<u.length;h++){var c=u[h],p=a[c];r[c]=p}else if(xn(s)||tT(s,t)>=0){r||(r=i[t]={});for(var d=tO(a),h=0;h<d.length;h++){var f,g,c=d[h],p=a[c];f=o[c],g=p,(tC(f)?f!==g:null!=f&&isFinite(f))&&(r[c]=p)}}}}}function xs(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=tO(i),a=0;a<o.length;a++){var s=o[a];r[s]=iT(i[s])}}var xl=os(),xu=["percent","easing","shape","style","extra"],xh="emphasis",xc="normal",xp="blur",xd="select",xf=[xc,xh,xp,xd],xg={normal:["itemStyle"],emphasis:[xh,"itemStyle"],blur:[xp,"itemStyle"],select:[xd,"itemStyle"]},xv={normal:["label"],emphasis:[xh,"label"],blur:[xp,"label"],select:[xd,"label"]},xm=["x","y"],xy={normal:{},emphasis:{},blur:{},select:{}},x_={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_K,t)}}},geo:function(t){var e=t.view,n=e.getBoundingRect();return{coordSys:{type:"geo",x:n.x,y:n.y,width:n.width,height:n.height,zoom:e.zoom},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_0,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_1,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:tL(_2,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}},matrix:function(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}};function xx(t){return t instanceof aY}function xb(t){return t instanceof an}var xw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=xI(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){xC(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&xe(n,_q(n).option,t)}).update(function(e,l){xC(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?mJ(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=xI(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=oC(e),t.ensureState("emphasis").hoverLayer=pU)}for(var u=t.start;u<t.end;u++){var h=xC(null,null,u,a(u,r),e,this.group,o);h&&(h.traverse(l),s.push(h))}},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(dS);function xS(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=xz(i);_q(e=pK(o,null,r,i.layout||"center")).customPathData=o}else if("image"===n)_q(e=new aJ({})).customImagePath=t.style.image;else if("text"===n)e=new sf({});else if("group"===n)e=new rS;else if("compoundPath"===n){var i=t.shape;if(!i||!i.paths){var a="";hy(a)}e=new pf({shape:{paths:tD(i.paths,function(t){if("path"===t.type)return pK(t.shape.pathData,t,null);var e=pj(t.type);return e||hy(""),new e})}})}else{var s=pj(n);if(!s){var a="";hy(a)}e=new s}return _q(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function xM(t,e,n,i,r,o,a){e.stopAnimation("keyframe"),e.attr(xl(e));var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=xm);var l=i&&i.style;if(l){"text"===e.type&&(t3(l,"textFill")&&(l.fill=l.textFill),t3(l,"textStroke")&&(l.stroke=l.textStroke));var u=void 0,h=xx(e)?l.decal:null;t&&h&&(h.dirty=!0,u=fG(h,t)),l.__decalPattern=u}if(xb(e)&&l){var u=l.__decalPattern;u&&(l.decal=u)}!function(t,e,n,i){var r,o,a=(i=i||{}).dataIndex,s=i.isInit,l=i.clearStyle,u=n.isAnimationEnabled(),h=_9(t),c=e.style;h.userDuring=e.during;var p={},d={};if(function(t,e){for(var n=0;n<_6.length;n++){var i=_6[n],r=_8[i],o=t[i];o&&(e[r[0]]=o[0],e[r[1]]=o[1])}for(var n=0;n<i6.length;n++){var a=i6[n];null!=t[a]&&(e[a]=t[a])}}(e,d),"compound"===t.type)for(var f=t.shape.paths,g=e.shape.paths,v=0;v<g.length;v++)xs("shape",g[v],f[v]);else xs("shape",e,d),xs("extra",e,d);if(!s&&u&&(function(t,e,n){for(var i=e.transition,r=xn(i)?i6:r6(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,p),xa("shape",t,e,p),xa("extra",t,e,p),function(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!xn(a)){var l=r6(a);r||(r=i.style={});for(var u=0;u<l.length;u++){var h=l[u],c=o[h];r[h]=c}}else if(t.getAnimationStyleProps&&(xn(s)||xn(a)||tT(s,"style")>=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){r||(r=i.style={});for(var f=tO(n),u=0;u<f.length;u++){var h=f[u];if(d[h]){var c=o[h];r[h]=c}}}}}}}(t,e,c,p)),d.style=c,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,l),r=t,t3(o=e,"silent")&&(r.silent=o.silent),t3(o,"ignore")&&(r.ignore=o.ignore),r instanceof an&&t3(o,"invisible")&&(r.invisible=o.invisible),r instanceof aY&&t3(o,"autoBatch")&&(r.autoBatch=o.autoBatch),u)if(s){var m={};tk(_7,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(m[t]=m[t]||{}),tS(t?m[t]:m,n.enterFrom))});var y=xt("enter",t,e,n,a);y.duration>0&&t.animateFrom(m,y)}else{var _=t,x=e,b=a||0,w=n,S=p;if(S){var M=xt("update",_,x,w,b);M.duration>0&&_.animateFrom(S,M)}}(function(t,e){for(var n=_9(t).leaveToProps,i=0;i<_7.length;i++){var r=_7[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=_9(t).leaveToProps={}),r&&(n[r]=n[r]||{}),tS(r?n[r]:n,o.leaveTo))}})(t,e),c?t.dirty():t.markRedraw()}(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),function t(e,n,i){if(i.isAnimationEnabled()&&n){if(tB(n))return void tk(n,function(n){t(e,n,i)});var r=n.keyframes,o=n.duration;if(i&&null==o){var a=pA("enter",i,0);o=a&&a.duration}if(r&&o){var s=xl(e);tk(_7,function(t){var i;t&&!e[t]||(r.sort(function(t,e){return t.percent-e.percent}),tk(r,function(r){var a=e.animators,l=t?r[t]:r;if(l){var u=tO(l);if(t||(u=tP(u,function(t){return 0>tT(xu,t)})),u.length){i||((i=e.animate(t,n.loop,!0)).scope="keyframe");for(var h=0;h<a.length;h++)a[h]!==i&&a[h].targetName===i.targetName&&a[h].stopTracks(u);t&&(s[t]=s[t]||{});var c=t?s[t]:s;tk(u,function(n){c[n]=((t?e[t]:e)||{})[n]}),i.whenWithKeys(o*r.percent,l,u,r.easing)}}}),i&&i.delay(n.delay||0).duration(o).start(n.easing))})}}}(e,i.keyframeAnimation,o)}function xT(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),s$(o)}}function xI(t,e,n,i){var r,o,a,s,l=t.get("renderItem");if("string"==typeof l){var u=gv[l];u&&(l=u)}var h=t.coordinateSystem,c={};h&&(c=h.prepareCustoms?h.prepareCustoms(h):x_[h.type](h));for(var p=tM({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=a),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=a);var r=e.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=b(i,xc).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var u={inheritColor:tE(o)?o:uC.color.neutral99},h=w(i,xc),c=lc(h,null,u,!1,!0);c.text=h.getShallow("show")?tX(t.getFormattedLabel(i,xc),m5(e,i)):null;var p=lp(h,u,!1);return M(n,l),l=_3(l,c,p),n&&S(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=b(i,xh).getItemStyle(),o=w(i,xh),s=lc(o,null,null,!0,!0);s.text=o.getShallow("show")?tY(t.getFormattedLabel(i,xh),t.getFormattedLabel(i,xc),m5(e,i)):null;var l=lp(o,null,!0);return M(n,r),r=_3(r,s,l),n&&S(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),t3(_X,t)){var i=e.getItemVisual(n,"style");return i?i[_X[t]]:null}if(t3(_Y,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===h.type)return function(t){if(gG(t.axis.scale)){for(var e=my(t.axis),n=[],i=0;i<t.count||0;i++)n.push(tM({stackId:mk+i},t));for(var r=mA({bandWidthResult:e,seriesInfo:n}),o=[],i=0;i<t.count;i++){var a=r[mk+i];a.offsetCenter=a.offset+a.width/2,o.push(a)}return o}}(tM({axis:h.getBaseAxis()},t))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return lm(t,n)}},c.api||{}),d={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:(r=t.getData(),o={},tk(r.dimensions,function(t){var e=r.getDimensionInfo(t);if(!e.isExtraCoord){var n=e.coordDim;(o[n]=o[n]||[])[e.coordDimIndex]=r.getDimensionIndex(t)}}),o),itemPayload:t.get("itemPayload")||{}},f={},g={},v={},m={},y=0;y<xf.length;y++){var _=xf[y];v[_]=t.getModel(xg[_]),m[_]=t.getModel(xv[_])}function x(t){return t===a?s||(s=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===a?f[n]||(f[n]=x(t).getModel(xg[n])):x(t).getModel(xg[n]):v[n]}function w(t,n){return e.hasItemOption?t===a?g[n]||(g[n]=x(t).getModel(xv[n])):x(t).getModel(xv[n]):m[n]}return function(t,n){return a=t,s=null,f={},g={},l&&l(tM({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},d),p)};function S(t,e){for(var n in e)t3(e,n)&&(t[n]=e[n])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function xC(t,e,n,i,r,o,a){if(!i)return void o.remove(e);var s=xk(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&s9(s,i.focus,i.blurScope,i.emphasisDisabled),s}function xk(t,e,n,i,r,o){var a,s=-1,l=e;e&&xD(e,i,r)&&(s=tT(o.childrenRef(),e),e=null);var u=!e,h=e;h?h.clearStates():(h=xS(i),l&&((a=h).copyTransform(l),xb(a)&&xb(l)&&(a.setStyle(l.style),a.z=l.z,a.z2=l.z2,a.zlevel=l.zlevel,a.invisible=l.invisible,a.ignore=l.ignore,xx(a)&&xx(l)&&a.setShape(l.shape)))),!1===i.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),i.tooltipDisabled&&(h.tooltipDisabled=!0),xy.normal.cfg=xy.normal.conOpt=xy.emphasis.cfg=xy.emphasis.conOpt=xy.blur.cfg=xy.blur.conOpt=xy.select.cfg=xy.select.conOpt=null,xy.isLegacy=!1,function(t,e,n,i,r,o){if(!t.isGroup&&"compoundPath"!==t.type){xA(n,null,o),xA(n,xh,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(!1===a)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=xS(a),t.setTextContent(h)),xM(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;p<xf.length;p++){var d=xf[p];if(d!==xc){var f=o[d].conOpt;xT(d,h,f,xO(a,f,d),null)}}c?h.dirty():h.markRedraw()}}}}(h,n,i,r,u,xy),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&xD(a,o,i)&&(a=null),a||(a=xS(o),t.setClipPath(a)),xM(null,a,e,o,null,i,r)}}(h,n,i,r,u),xM(t,h,n,i,xy,r,u),t3(i,"info")&&(_q(h).info=i.info);for(var c=0;c<xf.length;c++){var p=xf[c];if(p!==xc){var d=xP(i,p),f=xO(i,d,p);xT(p,h,d,f,xy)}}var g=h;if(!g.isGroup){var v=r.currentZ,m=r.currentZLevel;g.z=v,g.zlevel=m;var y=i.z2;null!=y&&(g.z2=y||0);for(var _=0;_<xf.length;_++)!function(t,e,n){var i=n===xc,r=i?e:xP(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}(g,i,xf[_])}return"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u){if(l){return new mz((f={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e}).oldChildren,f.newChildren,xL,xL,f).add(xR).update(xR).remove(xB).execute()}u&&e.removeAll();for(var h=0;h<a;h++){var c=o[h],p=e.childAt(h);c?(null==c.ignore&&(c.ignore=!1),xk(t,p,n,c,r,e)):p.ignore=!0}for(var d=e.childCount()-1;d>=h;d--){var f,g,v,m,y=e.childAt(d);g=e,v=y,m=r,v&&xe(v,_q(g).option,m)}}}(t,h,n,i,r),s>=0?o.replaceAt(h,s):o.add(h),h}function xD(t,e,n){var i,r=_q(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(t3(i,"pathData")||t3(i,"d"))&&xz(a)!==r.customPathData||"image"===o&&t3(s,"image")&&s.image!==r.customImagePath}function xA(t,e,n){var i,r,o=e?xP(t,e):t,a=e?xO(t,o,xh):t.style,s=t.type,l=o?o.textConfig:null,u=t.textContent,h=u?e?xP(u,e):u:null;if(a&&(n.isLegacy||(i=!!l,r=!!h,a&&(a.legacy||!1!==a.legacy&&!i&&!r&&"tspan"!==s&&("text"===s||t3(a,"text")))))){n.isLegacy=!0;var c=function(t,e,n){var i,r,o;if("text"===e)o=t;else{o={},t3(t,"text")&&(o.text=t.text),t3(t,"rich")&&(o.rich=t.rich),t3(t,"textFill")&&(o.fill=t.textFill),t3(t,"textStroke")&&(o.stroke=t.textStroke),t3(t,"fontFamily")&&(o.fontFamily=t.fontFamily),t3(t,"fontSize")&&(o.fontSize=t.fontSize),t3(t,"fontStyle")&&(o.fontStyle=t.fontStyle),t3(t,"fontWeight")&&(o.fontWeight=t.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=t3(t,"textPosition");n?i.position=a?t.textPosition:"inside":a&&(i.position=t.textPosition),t3(t,"textPosition")&&(i.position=t.textPosition),t3(t,"textOffset")&&(i.offset=t.textOffset),t3(t,"textRotation")&&(i.rotation=t.textRotation),t3(t,"textDistance")&&(i.distance=t.textDistance)}return _5(o,t),tk(o.rich,function(t){_5(t,t)}),{textConfig:i,textContent:r}}(a,s,!e);!l&&c.textConfig&&(l=c.textConfig),!h&&c.textContent&&(h=c.textContent)}if(!e&&h){var p=h;p.type||(p.type="text")}var d=e?n[e]:n.normal;d.cfg=l,d.conOpt=h}function xP(t,e){return e?t?t[e]:null:t}function xO(t,e,n){var i=e&&e.style;return null==i&&n===xh&&t&&(i=t.styleEmphasis),i}function xL(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function xR(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;xk(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function xB(t){var e=this.context,n=e.oldChildren[t];n&&xe(n,_q(n).option,e.seriesModel)}function xz(t){return t&&(t.pathData||t.d)}var xE={label:{enabled:!0},decal:{show:!1}},xN=os(),xV=os(),xF=oD(function(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=xV(t).scope||(xV(t).scope={}),r=tb(xE);tw(r.label,t.getLocaleModel().get("aria"),!1),tw(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=t2();t.eachSeries(function(t){t.isColorBySeries()||(xN(t).scope=e.get(t.type)||e.set(t.type,{}))}),t.eachSeries(function(e){if(tz(e.enableAriaDecal))return void e.enableAriaDecal();var n=e.getData();if(e.isColorBySeries()){var r=uU(e.ecModel,e.name,i,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",h(o,r))}else{var a=e.getRawData(),s={},l=xN(e).scope;n.each(function(t){s[n.getRawIndex(t)]=t});var u=a.count();a.each(function(t){var i=s[t],r=a.getName(t)||t+"",o=uU(e.ecModel,r,l,u),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",h(c,o))})}function h(t,e){var n=t?tS(tS({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i,r=e.getZr().dom;if(r){var a=t.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=tM(s.option,a),s.get("enabled")){if(r.setAttribute("role","img"),s.get("description"))return r.setAttribute("aria-label",s.get("description"));var l,u=t.getSeriesCount(),h=s.get(["data","maxCount"])||10,c=Math.min(u,s.get(["series","maxCount"])||10);if(u<1)return;var p=((l=t.get("title"))&&l.length&&(l=l[0]),l&&l.text);i=p?o(s.get(["general","withTitle"]),{title:p}):s.get(["general","withoutTitle"]);var d=[];i+=o(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),t.eachSeries(function(e,n){if(n<c){var i,r,a=void 0,l=e.get("name")?"withName":"withoutName";a=o(a=u>1?s.get(["series","multiple",l]):s.get(["series","single",l]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,(r=t.getLocaleModel().get(["series","typeNames"]))[i]||r.chart)});var p=e.getData();p.count()>h?a+=o(s.get(["data","partialData"]),{displayCnt:h}):a+=s.get(["data","allData"]);for(var f=s.get(["data","separator","middle"]),g=s.get(["data","separator","end"]),v=s.get(["data","excludeDimensionId"]),m=[],y=0;y<p.count();y++)if(y<h){var _=p.getName(y),x=v?tP(p.getValues(y),function(t,e){return -1===tT(v,e)}):p.getValues(y),b=s.get(["data",_?"withName":"withoutName"]);m.push(o(b,{name:_,value:x.join(f)}))}a+=m.join(f)+g,d.push(a)}});var f=s.getModel(["series","multiple","separator"]),g=f.get("middle"),v=f.get("end");i+=d.join(g)+v,r.setAttribute("aria-label",i)}}}()}function o(t,e){if(!tE(t))return t;var n=t;return tk(e,function(t,e){n=n.replace(RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}});function xH(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},tk(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var xW=["x","y","radius","angle","single"],xG=os(),xU=["cartesian2d","polar","singleAxis"];function xZ(t){return t+"Axis"}function xX(t){var e=t.ecModel,n={infoList:[],infoMap:t2()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(xZ(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}function xY(t){var e=xG(fo(t));return e.axisProxyMap||(e.axisProxyMap=t2())}function xq(t){if(t)return xY(t.ecModel).get(t.uid)}function xj(t,e){var n=e.getAxisModel().axis.__alignTo;return n&&t.getAxisProxy(n.dim,n.model.componentIndex)?xq(n.model):null}var xK=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),x$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return tt(e,t),e.prototype.init=function(t,e,n){var i=xQ(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=xQ(t);tw(this.option,t,!0),tw(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;tk([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=t2();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tk(xW,function(n){var i=this.getReferringComponents(xZ(n),op);if(i.specified){e=!0;var r=new xK;tk(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0,r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});if(a(o,r),i){var o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new xK;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",oc).models[0];a&&tk(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",oc).models[0]&&o.add(t.componentIndex)})}}}i&&tk(xW,function(e){if(i){var r=n.findComponents({mainType:xZ(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new xK;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");tk([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(xZ(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){tk(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){return xq(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(xZ(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tk([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tk(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return xq(t);for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(uM);function xQ(t){var e={};return tk(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var xJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="dataZoom.inside",e.defaultOption=lL(x$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(x$),x0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(cm);function x1(t,e,n,i,r,o){t=t||0;var a,s=rX(n[1],-n[0]);if(null!=r&&(r=x5(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var l=Math.abs(rX(e[1],-e[0]));l=x5(l,[0,s]),r=o=x5(l,[r,o]),i=0}e[0]=x5(e[0],n),e[1]=x5(e[1],n);var u=x2(e,i);e[i]+=t;var h=r||0,c=n.slice();return u.sign<0?c[0]=rX(c[0],h):c[1]=rX(c[1],-h),e[i]=x5(e[i],c),a=x2(e,i),null!=r&&(a.sign!==u.sign||a.span<r)&&(e[1-i]=rX(e[i],u.sign*r)),a=x2(e,i),null!=o&&a.span>o&&(e[1-i]=rX(e[i],a.sign*o)),e}function x2(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function x5(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var x3=os();gc({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},t4);var x4={axisPointer:1,tooltip:1,brush:1},x8=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=tL(n._mousedownHandler,n),r=tL(n._mousemoveHandler,n),o=tL(n._mouseupHandler,n),a=tL(n._mousewheelHandler,n),s=tL(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=df(l.component),h=u.z,c=u.zlevel,p={component:l.component,z:h,zlevel:c,z2:tX(l.z2,-1/0)},d=tS({},n.triggerInfo);this._opt=tM(tS({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:d,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,(!0===t||"move"===t||"pan"===t)&&(bt(e,"mousedown",i,p),bt(e,"mousemove",r,p),bt(e,"mouseup",o,p)),(!0===t||"scale"===t||"zoom"===t)&&(bt(e,"mousewheel",a,p),bt(e,"pinch",s,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,be(e,"mousedown",i),be(e,"mousemove",r),be(e,"mouseup",o),be(e,"mousewheel",a),be(e,"pinch",s))},n}return tt(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;if(function(t,e,n){var i=e.getComponentByElement(t.topTarget);if(!i||i===n||x4.hasOwnProperty(i.mainType))return!1;var r=i.coordinateSystem;if(!r||r.model===n)return!1;var o=df(i),a=df(n);return!(0>=(o.zlevel-a.zlevel||o.z-a.z))}(t,i.api,r.component))return!1;var o=i.triggerInfo,a=o.roamTrigger,s=!1;return"global"===a&&(s=!0),s||(s=o.isInSelf(t,e,n)),s&&o.isInClip&&!o.isInClip(t,e,n)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?this._opt.cursorGrab:i?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(eO(t)||x6(t))){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if(!("pinch"===t.gestureEvent||x3(e).globalPan||x6(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!bi("moveOnMouseMove",t,this._opt)){var r=this._decideCursorStyle(t,n,i,!1);r&&e.setCursorStyle(r);return}e.setCursorStyle(this._opt.cursorGrabbing);var o=this._x,a=this._y,s=n-o,l=i-a;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&eP(t.event),t.__ecRoamConsumed=!0,bn(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!x6(t)){var e=this._zr;if(!eO(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!x6(t)){var e=bi("zoomOnMouseWheel",t,this._opt),n=bi("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(x3(this._zr).globalPan||x6(t))){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(eP(i.event),i.__ecRoamConsumed=!0,bn(t,e,n,i,r))},e}(ed);function x6(t){return t.__ecRoamConsumed}var x7=os();function x9(t){var e=x7(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function bt(t,e,n,i){for(var r,o,a,s=x9(t).roam,l=s[e]=s[e]||[],u=0;u<l.length;u++){var h=l[u].zInfoParsed;if(0>=(h.zlevel-i.zlevel||h.z-i.z||h.z2-i.z2))break}l.splice(u,0,{listener:n,zInfoParsed:i}),r=t,o=e,(a=x9(r)).uniform[o]||r.on(o,a.uniform[o]=function(t){var e=a.roam[o];if(e)for(var n=0;n<e.length;n++)e[n].listener(t)})}function be(t,e,n){for(var i=x9(t).roam[e]||[],r=0;r<i.length;r++)if(i[r].listener===n){i.splice(r,1),i.length||function(t,e){var n=x9(t).uniform;n[e]&&(t.off(e,n[e]),n[e]=null)}(t,e);return}}function bn(t,e,n,i,r){r.isAvailableBehavior=tL(bi,null,n,i),t.trigger(e,r)}function bi(t,e,n){var i=n[t];return!t||i&&(!tE(i)||e.event[i+"Key"])}var br=os();function bo(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function ba(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function bs(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return tt(e,t),e.prototype.render=function(e,n,i){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tL(bu.pan,this),zoom:tL(bu.zoom,this),scrollMove:tL(bu.scrollMove,this)},br(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=br(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||bo(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(x0),bu={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=bc[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x1(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:bh(function(t,e,n,i,r,o){var a=bc[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:bh(function(t,e,n,i,r,o){return bc[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function bh(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(x1(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var bc={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},bp=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return tb(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(tT(xU,e.get("coordinateSystem"))>=0){var n=xZ(this._dimName),i=e.getReferringComponents(n,oc).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return tb(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._extent,i=this.getAxisModel().axis,r=i.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u=[!1,!1];tk(["start","end"],function(i,h){var c=t[i],p=t[i+"Value"];"percent"===o[h]?(null==c&&(c=a[h]),p=rV(c,a,n),u[h]=!0):(e=!0,null==p?p=n[h]:(p=r.parse(p),r.sanitize&&(p=r.sanitize(p,n))),c=rV(p,n,a)),l[h]=null==p||isNaN(p)?n[h]:p,s[h]=null==c||isNaN(c)?a[h]:c}),rG(l),rG(s);var h=this._minMaxSpan;function c(t,e,n,i,r){var o=r?"Span":"ValueSpan";x1(0,t,n,"all",h["min"+o],h["max"+o]);for(var a=0;a<2;a++)e[a]=rV(t[a],n,i,!0),r&&(e[a]=e[a],u[a]=!0);ob(e)}e?c(l,s,n,a,!1):c(s,l,a,n,!0);var p=gG(r)||gH(r),d=i.getExtent(),f=rA(d[1]-d[0]),g=p?0:rZ(l,f,.5);tk([[0,rL],[1,rO]],function(t){var e=t[0],i=t[1];u[e]&&isFinite(g)&&(l[e]=rW(l[e],g),l[e]=rk(n[1],rD(n[0],l[e])),s[e]===a[e]&&(l[e]=n[e],p&&(l[e]=i(l[e]))))}),ob(l);var v=[rV(l[0],n,a,!0),rV(l[1],n,a,!0)];return ob(v),{value:l,percent:s,percentInverted:v,valuePrecision:g}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;mf(n,2);var i=n.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var r=t.settledOption;e&&(r=tM({start:e[0],end:e[1]},r));var o=this._window=this.calculateDataWindow(r),a=o.percent,s=o.value;0!==a[0]&&i.setZoomMM(0,s[0]),100!==a[1]&&i.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._window.value;"none"!==r&&tk(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=tD(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;l<i.length;l++){var u=a.get(s[l],t),h=!isNaN(u),c=u<o[0],p=u>o[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n})}else tk(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:0/0}));else{var i={};i[n]=o,e.selectRange(i)}});tk(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;tk(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rV(n[0]+o,n,[0,100],!0):null!=r&&(o=rV(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t}();let bd={dirtyOnOverallProgress:!0,getTargetSeries:function(t){var e,n=[];e=function(e,i,r,o){if(!xq(r)){var a=new bp(e,i,o,t);n.push(a),xY(r.ecModel).set(r.uid,a)}},t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(xZ(i),r);e(i,r,o,n)})});var i=t2();return tk(n,function(t){tk(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(e,i){var r=t.getAxisProxy(e,i),o=xj(t,r);o?n.push([r,o]):r.reset(t,null)}),tk(n,function(e){e[0].reset(t,e[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getWindow(),i=n.percent,r=n.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:r[0],endValue:r[1]})}})}};var bf=ow();function bg(t){bf(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,bd),t.registerAction("dataZoom",function(t,e){tk(function(t,e){var n,i=t2(),r=[],o=t2();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do n=!1,t.eachComponent("dataZoom",a);while(n)function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function bv(t){bg(t),t.registerComponentModel(xJ),t.registerComponentView(bl),t.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var n=br(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=t2());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tk(xX(t).infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:tR(bs,r),dispatchAction:tR(ba,e),dataZoomInfoMap:null,controller:null}).controller=new x8(e.getZr()),tk(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=t2())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var n,r,o,a,s,l,u,h=t.controller,c=t.dataZoomInfoMap;if(c){var p=c.keys()[0];null!=p&&(u=c.get(p))}if(!u)return void bo(i,t);var d=(a="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0,c.each(function(t){var e=t.model,i=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[a+i]>s[a+n]&&(n=i),l=l&&e.get("preventDefaultMouseMove",!0),r=tX(e.get("cursorGrab",!0),r),o=tX(e.get("cursorGrabbing",!0),o)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:r,cursorGrabbing:o}});h.enable(d.controlType,d.opt),dL(t,"dispatchAction",u.model.get("throttle",!0),"fixRate")})})}var bm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=lL(x$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:uC.color.accent10,borderRadius:0,backgroundColor:uC.color.transparent,dataBackground:{lineStyle:{color:uC.color.accent30,width:.5},areaStyle:{color:uC.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:uC.color.accent40,width:.5},areaStyle:{color:uC.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:uC.color.neutral00,borderColor:uC.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:uC.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:uC.color.tertiary},brushSelect:!0,brushStyle:{color:uC.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:uC.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(x$),by="horizontal",b_="vertical",bx=["line","bar","candlestick","scatter"],bb={easing:"cubicOut",duration:100,delay:0},bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return tt(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tL(this._onBrush,this),this._onBrushEnd=tL(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),dL(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dR(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new rS;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=u_(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===by?{right:i.width-r.x-r.width,top:i.height-30-o-7*!!n,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=uw(t.option);tk(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=uy(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===b_&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==by||r?n===by&&r?{scaleY:a?1:-1,scaleX:-1}:n!==b_||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]),l=isNaN(s.x)?0:s.x,u=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-u,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new a6({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new a6({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tL(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,h=r.getDataExtent(t.thisDim),c=r.getDataExtent(a),p=(c[1]-c[0])*.3;c=[c[0]-p,c[1]+p];var d=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],v=[],m=f[1]/Math.max(1,r.count()-1),y=e[0]/(h[1]-h[0]),_="time"===t.thisAxis.type,x=-m,b=Math.round(r.count()/e[0]);r.each([t.thisDim,a],function(t,e,n){if(b>0&&n%b){_||(x+=m);return}x=_?(t-h[0])*y:x+m;var i=null==e||isNaN(e)||""===e,r=i?0:rV(e,c,d,!0);i&&!u&&n?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!i&&u&&(g.push([x,0]),v.push([x,0])),i||(g.push([x,r]),v.push([x,r])),u=i}),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=v}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=function(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new rS,i=new c7({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new pe({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){tk(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==n&&0>tT(bx,e.get("type")))){var a,s=i.getComponent(xZ(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l);var h=e.getData().mapDimension(r);t={thisAxis:s,series:e,thisDim:h,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new a6({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new a6({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:uC.color.transparent}})),tk([0,1],function(e){var o=a.get("handleIcon");!fg[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=fy(o,-1,0,2,2,null,!0);s.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:tL(this._onDragMove,this,e),ondragend:tL(this._onDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=rF(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),s7(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new sf({silent:!0,invisible:!p,style:lc(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=rF(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new a6({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=fy(a.get("moveHandleIcon"),-f/2,-f/2,f,f,uC.color.neutral00,!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new a6({invisible:!0,shape:{y:o[1]-v,height:p+v}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:"grab",drift:tL(this._onActualMoveZoneDrift,this),ondragstart:tL(this._onActualMoveZoneDragStart,this),ondragend:tL(this._onActualMoveZoneDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rV(t[0],[0,100],e,!0),rV(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];x1(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rV(o.minSpan,a,r,!0):null,null!=o.maxSpan?rV(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rG([rV(i[0],r,a,!0),rV(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=rG(n.slice()),r=this._size;tk([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new a6,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy(),s=a.getAxisModel().axis.scale;if(a){var l,u=this._range;if(t){var h={start:u[0],end:u[1]},c=xj(e,a);if(c){var p=c.calculateDataWindow(h).percentInverted;h={start:p[0],end:p[1]}}l=a.calculateDataWindow(h)}else l=a.getWindow();o=[bS(e,0,l,s),bS(e,1,l,s)]}}var d=rG(this._handleEnds.slice());function f(t){var e=p3(n.handles[t].parent,this.group),a=p8(0===t?"right":"left",e),s=this._handleWidth/2+5,l=p4([d[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===by?"middle":a,align:r===by?a:"center",text:o[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,eP(i.event);var r=p4([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0)&&!(n[0]>e[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new eG(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100],o=this._handleEnds=[n.x,n.x+n.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();x1(0,o,i,0,null!=a.minSpan?rV(a.minSpan,r,i,!0):null,null!=a.maxSpan?rV(a.maxSpan,r,i,!0):null),this._range=rG([rV(o[0],i,r,!0),rV(o[1],i,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eP(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new a6({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?bb:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=xX(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(x0);function bS(t,e,n,i){var r=t.get("labelFormatter"),o=t.get("labelPrecision");(null==o||"auto"===o)&&(o=n.valuePrecision);var a=n.value[e],s=null==a||isNaN(a)?"":gG(i)||gH(i)?i.getLabel({value:Math.round(a)}):isFinite(o)?rW(a,o,!0):a+"";return tz(r)?r(a,s):tE(r)?r.replace("{value}",s):s}function bM(t){t.registerComponentModel(bm),t.registerComponentView(bw),bg(t)}var bT=os();function bI(t,e,n,i){!function t(e,n){if(!(tF(e)&&tF(n)))return e===n;var i=!0;return tk(n,function(n,r){i=i&&t(e[r],n)}),!!i}(bT(n).lastProp,i)&&(bT(n).lastProp=i,e?pO(n,i,t):(n.stopAnimation(),n.attr(i)))}function bC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function bk(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function bD(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function bA(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:vr(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tk(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),tE(a)?o=a.replace("{value}",o):tz(a)&&(o=a(s))}return o}function bP(t,e,n){var i=ez();return eH(i,i,n.rotation),eF(i,i,n.position),p4([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var bO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M=n.axis,T=M.grid,I=i.get("type"),C=M.getGlobalExtent(),k=bL(T,M).getOtherAxis(M).getGlobalExtent(),D=M.toGlobalCoord(M.dataToCoord(e,!0));if(I&&"none"!==I){var A,P,O,L=(P=i.get("type"),O=i.getModel(P+"Style"),"line"===P?(A=O.getLineStyle()).fill=null:"shadow"===P&&((A=O.getAreaStyle()).stroke=null),A),R=bR[I](M,D,C,k,i.get("seriesDataIndices"),i.ecModel);R.style=L,t.graphicKey=R.type,t.pointer=R}var B=v1(T.getRect(),n);c=vU.innerTextLayout(B.rotation,0,B.labelDirection),B.labelMargin=i.get(["label","margin"]),p={position:bP(n.axis,e,B),align:c.textAlign,verticalAlign:c.textVerticalAlign},d=bA(i.get("value"),n.axis,n.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),g=tj((f=i.getModel("label")).get("padding")||0),m=rr(d,v=f.getFont()),y=p.position,_=m.width+g[1]+g[3],x=m.height+g[0]+g[2],"right"===(b=p.align)&&(y[0]-=_),"center"===b&&(y[0]-=_/2),"bottom"===(w=p.verticalAlign)&&(y[1]-=x),"middle"===w&&(y[1]-=x/2),o=y,a=_,s=x,u=(l=r).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=n.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:lc(f,{text:d,font:v,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,n){var i=v1(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=bP(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=bL(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=rk(a[1],u[l]),u[l]=rD(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=tR(bI,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new rS,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);bD(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&my(i).w>a)return!0;if(o){var s=_O(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=bT(t).pointerEl=new Q[r.type](tb(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=bT(t).labelEl=new sf(tb(e.label));t.add(r),bC(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=bT(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=bT(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),bC(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){r&&i.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=dt(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eP(t.event)},onmousedown:tL(this._onHandleDragMove,this,0,0),drift:tL(this._onHandleDragMove,this),ondragend:tL(this._onHandleDragEnd,this)}),i.add(r)),bD(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tB(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,dL(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){bI(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bk(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bk(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bk(i)),bT(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),dR(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function bL(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var bR={line:function(t,e,n,i){var r,o,a;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,i[0]],o=[e,i[1]],{x1:r[a=(a=bB(t))||0],y1:r[1-a],x2:o[a],y2:o[1-a]})}},shadow:function(t,e,n,i,r,o){var a,s,l,u=my(t,{fromStat:{sers:tD(r,function(t){return o.getSeriesByIndex(t.seriesIndex)})},min:1}).w,h=i[1]-i[0],c=[rD(rk(n[0],n[1]),e-u/2),rk(e+u/2,rD(n[0],n[1]))],p=c[0],d=c[1];return{type:"Rect",shape:(a=[p,i[0]],s=[d-p,h],{x:a[l=(l=bB(t))||0],y:a[1-l],width:s[l],height:s[1-l]})}}};function bB(t){return+("x"!==t.dim)}var bz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:uC.color.border,width:1,type:"dashed"},shadowStyle:{color:uC.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:uC.color.neutral00,padding:[5,7,5,7],backgroundColor:uC.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:uC.color.accent40,throttle:40}},e}(uM),bE=os();function bN(t,e,n){if(!tn.node){var i=e.getZr();bE(i).records||(bE(i).records={}),function(t,e){bE(t).initialized||(bE(t).initialized=!0,n("click",tR(bF,"click")),n("mousemove",tR(bF,"mousemove")),n("mousewheel",tR(bF,"mousewheel")),n("globalout",bV));function n(n,i){t.on(n,function(n){var r,o,a,s,l,u,h,c,p=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tk(bE(t).records,function(t){t&&i(t,n,p.dispatchAction)}),s=p.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(i,e),(bE(i).records[t]||(bE(i).records[t]={})).handler=n}}function bV(t,e,n){t.handler("leave",null,n)}function bF(t,e,n,i){e.handler(t,n,i)}function bH(t,e){if(!tn.node){var n=e.getZr();(bE(n).records||{})[t]&&(bE(n).records[t]=null)}}var bW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";bN("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){bH("axisPointer",e)},e.prototype.dispose=function(t,e){bH("axisPointer",e)},e.type="axisPointer",e}(cm);function bG(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=oa(o,t);if(null==a||a<0||tB(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=+("x"===h||"radius"===h),d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(tD(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var bU=os();function bZ(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tL(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){bK(r)&&(r=bG({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h=bK(r),c=t.axesInfo,p=a.axesInfo,d="leave"===i||bK(r),f={},g={},v={list:[],map:{}},m={showPointer:tR(bY,g),showTooltip:tR(bq,v)};tk(a.coordSysMap,function(t,e){var n=h||t.containPoint(r);tk(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||h||(a=i.pointToData(r)),null!=a&&bX(t,a,m,!1,f)}})});var y={};return tk(p,function(t,e){var n=t.linkGroup;n&&!g[e]&&tk(n.axesInfo,function(e,i){var r=g[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,bj(e),bj(t)))),y[t.key]=o}})}),tk(y,function(t,e){bX(p[e],t,m,!0,f)}),s=g,l=p,u=f.axesInfo=[],tk(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(bK(e)||!t.list.length)return i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(v,r,t,o),function(t,e){var n=e.getZr(),i="axisPointerLastHighlights",r=bU(n)[i]||{},o=bU(n)[i]={};tk(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tk(n.seriesDataIndices,function(t){o[t.seriesIndex+"|"+t.dataIndex]=t})});var a=[],s=[];function l(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}tk(r,function(t,e){o[e]||s.push(l(t))}),tk(o,function(t,e){r[e]||a.push(l(t))}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(p,n),f}}function bX(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,p,d,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,tk(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.indicesOfNearest(u,r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(r4(n)){var s=a-n,f=Math.abs(s);f<=p&&((f<p||s>=0&&d<0)&&(p=f,d=s,h=n,c.length=0),tk(i,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,v=f.snapToValue;g[0]&&null==r.seriesIndex&&tS(r,g[0]),!i&&t.snap&&o.containData(v)&&null!=v&&(e=v),n.showPointer(t,e,g),n.showTooltip(t,f,v)}}function bY(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function bq(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=_R(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function bj(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bK(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function b$(t){_z.registerAxisPointerClass("CartesianAxisPointer",bO),t.registerComponentModel(bz),t.registerComponentView(bW),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tB(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){var n,i,r,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(i=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],u=[],tk(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=_R(t.model),n=i.coordSysAxesInfo[e]={};i.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tk(t.getAxes(),tR(d,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),p=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&tk(p.baseAxes,tR(d,!c||"cross",h)),c&&tk(p.otherAxes,tR(d,"cross",!1))}}function d(e,a,h){var c=h.model.getModel("axisPointer",s),p=c.get("show");if(p&&("auto"!==p||e||_L(c))){null==a&&(a=c.get("triggerTooltip"));var d=(c=e?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tk(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tb(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&tM(l,h.textStyle)}}return t.model.getModel("axisPointer",new lA(s,n,i))}(h,o,s,r,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=_R(h.model),v=a||d||"category"===h.type,m=i.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:v,snap:d,useHandle:_L(c),seriesModels:[],linkGroup:null};n[g]=m,i.seriesInvolved=i.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(_P(o[i+"AxisId"],n.id)||_P(o[i+"AxisIndex"],n.componentIndex)||_P(o[i+"AxisName"],n.name))return r}}(l,h);if(null!=y){var _=u[y]||(u[y]={axesInfo:{}});_.axesInfo[g]=m,_.mapper=l[y].mapper,m.linkGroup=_}}}}),n.seriesInvolved&&(h=n,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&tk(h.coordSysAxesInfo[_R(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),n)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bZ)}var bQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),tB(e)&&tk(e,function(t,i){var r;tE(t)&&(t={type:t}),e[i]=tw(t,"all"===(r=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&or(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=t2(),o=tD(i,function(t){return((tE(t)||tV(t))&&(t={name:t}),r.get(t.name))?null:(r.set(t.name,!0),new lA(t,this,this.ecModel))},this);this._data=tP(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&tk(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;tk(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;tk(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&tT(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:uC.size.m,align:"auto",backgroundColor:uC.color.transparent,borderColor:uC.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:uC.color.disabled,inactiveBorderColor:uC.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:uC.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:uC.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:uC.color.tertiary,borderWidth:1,borderColor:uC.color.border},emphasis:{selectorLabel:{show:!0,color:uC.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(uM),bJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return tt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rS),this.group.add(this._selectorGroup=new rS),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r,o,a=t.get("align"),s=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(a,t,e,n,l,s,u);var h=u_(t,n).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),d=uy(c,h,p),f=this.layoutInner(t,a,d,i,l,u),g=uy(tM({width:f.width,height:f.height},c),h,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(r=tj(t.get("padding")),(o=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),new a6({shape:{x:f.x-r[3],y:f.y-r[0],width:f.width+r[1]+r[3],height:f.height+r[0]+r[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=t2(),u=e.get("selectedMode"),h=e.get("triggerEvent"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),tk(e.getData(),function(r,o){var a=this,p=r.get("name");if(!this.newlineDisabled&&(""===p||"\n"===p)){var d=new rS;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(p)[0];if(!l.get(p))if(f){var g=f.getData(),v=g.getVisual("legendLineStyle")||{},m=g.getVisual("legendIcon"),y=g.getVisual("style"),_=this._createItem(f,p,o,r,e,t,v,y,m,u,i);_.on("click",tR(b0,p,null,i,c)).on("mouseover",tR(b1,f.name,null,i,c)).on("mouseout",tR(b2,f.name,null,i,c)),n.ssr&&_.eachChild(function(t){var e=sg(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&_.eachChild(function(t){a.packEventData(t,e,f,o,p)}),l.set(p,!0)}else n.eachRawSeries(function(a){var s=this;if(!l.get(p)&&a.legendVisualProvider){var d=a.legendVisualProvider;if(!d.containName(p))return;var f=d.indexOfName(p),g=d.getItemVisual(f,"style"),v=d.getItemVisual(f,"legendIcon"),m=n8(g.fill);m&&0===m[3]&&(m[3]=.2,g=tS(tS({},g),{fill:it(m,"rgba")}));var y=this._createItem(a,p,o,r,e,t,{},g,v,u,i);y.on("click",tR(b0,null,p,i,c)).on("mouseover",tR(b1,null,p,i,c)).on("mouseout",tR(b2,null,p,i,c)),n.ssr&&y.eachChild(function(t){var e=sg(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&y.eachChild(function(t){s.packEventData(t,e,a,o,p)}),l.set(p,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype.packEventData=function(t,e,n,i,r){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};sg(t).eventData=o},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tk(t,function(t){var i=t.type,r=new sf({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),lu(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),s7(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),tk(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?fG(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=m||l||"roundRect",i,a,s,c,f,h),_=new rS,x=i.getModel("textStyle");if(tz(t.getLegendIcon)&&(!m||"inherit"===m))_.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));else{var b,w,S,M="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(((S=fy(w=(b={itemWidth:p,itemHeight:d,icon:l,iconRotate:M,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill=uC.color.neutral00,S.style.lineWidth=2),S))}var T=r.get("formatter"),I=e;tE(T)&&T?I=T.replace("{name}",null!=e?e:""):tz(T)&&(I=T(e));var C=f?x.getTextColor():i.get("inactiveColor");_.add(new sf({style:lc(x,{text:I,x:"left"===o?p+5:-5,y:d/2,fill:C,align:o,verticalAlign:"middle"},{inheritColor:C})}));var k=new a6({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&ds({el:k,componentModel:r,itemName:e,itemTooltipOption:D.option}),_.add(k),_.eachChild(function(t){t.silent=!0}),k.silent=!u,this.getContentGroup().add(_),s7(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();um(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();um("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+p+h[f],m[g]=Math.max(l[g],h[g]),m[v]=Math.min(0,h[v]+c[1-d]),m},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(cm);function b0(t,e,n,i){b2(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),b1(t,e,n,i)}function b1(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function b2(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function b5(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){i?n[t]():n[t](e.name),b3(n,r),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){tk(r,function(e,n){t[e?"select":"unSelect"](n)}),b3(t,a)}),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function b3(t,e){var n=e||{};return tk(t.getData(),function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);t3(n,i)?n[i]=n[i]&&r:n[i]=r}}),n}var b4=oD(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})});function b8(t){t.registerComponentModel(bQ),t.registerComponentView(bJ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,b4),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",tR(b5,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",tR(b5,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",tR(b5,"inverseSelect")),t.registerAction("legendSelect","legendselected",tR(b5,"select")),t.registerAction("legendUnSelect","legendunselected",tR(b5,"unSelect"))}var b6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=uw(e);t.prototype.init.call(this,e,n,i),b7(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),b7(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lL(bQ.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:uC.color.accent50,pageIconInactiveColor:uC.color.accent10,pageIconSize:15,pageTextStyle:{color:uC.color.tertiary},animationDurationUpdate:800}),e}(bQ);function b7(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,ub(e,n,{type:"box",ignoreSize:!!r})}var b9=["width","height"],wt=["x","y"],we=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return tt(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new rS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new rS)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,h=n.get("pageIconSize",!0),c=tB(h)?h:[h,h];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=dt(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:tL(l._pageGo,l,t+"DataIndex",n,r)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});i.name=t,u.add(i)}u.add(new sf({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=b9[s],u=wt[s],h=b9[1-s],c=wt[1-s];r&&um("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=tb(n);r&&(g[l]=n[l]-d[l]-p);var v=this._layoutContentAndController(t,i,g,s,l,h,c,u);if(r){if("end"===o)f[s]+=v[l]+p;else{var m=d[l]+p;f[s]-=m,v[u]-=m}v[l]+=d[l]+p,f[1-s]+=v[c]+v[h]/2-d[h]/2,v[h]=Math.max(v[h],d[h]),v[c]=Math.min(v[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;um(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),um("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],m=tX(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+m),v[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(v);var y={x:0,y:0};if(y[r]=d?n[r]:c[r],y[o]=Math.max(c[o],p[o]),y[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-m,0),_[o]=y[o],u.setClipPath(new a6({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&pO(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;tk(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",tE(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=b9[r],a=wt[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=y(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=h;++f)(!(m=y(l[f]))&&v.e>g.s+i||m&&!_(m,g.s))&&(g=v.i>g.i?v:m)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=m;for(var f=s-1,g=d,v=d,m=null;f>=-1;--f)(!(m=y(l[f]))||!_(v,m.s))&&g.i<v.i&&(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=m;return p;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(bJ);function wn(t){g_(b8),t.registerComponentModel(b6),t.registerComponentView(we),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function wi(t){r7(t,"label",["show"])}var wr=os(),wo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return tt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(tn.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=wr(t)[r];if(!n||!n.data){wr(t)[r]=null;return}o?o._mergeOption(n,e,!0):(i&&wi(n),tk(n.data,function(t){t instanceof Array?(wi(t[0]),wi(t[1])):wi(t)}),tS(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),wr(t)[r]=o},this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return h7("section",{header:this.name,blocks:[h7("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=hA.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return wr(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(uM);tI(wo,hA.prototype);var wa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(wo);function ws(t,e,n,i,r,o,a){var s=[],l=gI(e,r)?e.getCalculationInfo("stackResultDimension"):r,u=wp(e,l,t),h=e.hostModel.indicesOfNearest(n,l,u)[0];s[o]=e.get(i,h),s[a]=e.get(l,h);var c=e.get(r,h),p=rU(e.get(r,h));return(p=Math.min(p,20))>=0&&(s[a]=+s[a].toFixed(p)),[s,c]}var wl={min:tR(ws,"min"),max:tR(ws,"max"),average:tR(ws,"average"),median:tR(ws,"median")};function wu(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!tB(e.coord)&&tB(o)){var a=wh(e,i,r,t);if((e=tb(e)).type&&wl[e.type]&&a.baseAxis&&a.valueAxis){var s=tT(o,a.baseAxis.dim),l=tT(o,a.valueAxis.dim),u=wl[e.type](i,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&tB(o))for(var h=e.coord,c=0;c<2;c++)wl[h[c]]&&(h[c]=wp(i,i.mapDimension(o[c]),h[c]));else{e.coord=[];var p=t.getBaseAxis();if(p&&e.type&&wl[e.type]){var d=r.getOtherAxis(p);d&&(e.value=wp(i,i.mapDimension(d.dim),e.type))}}return e}}function wh(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function wc(t,e){return!t||!t.containData||!e.coord||!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))||t.containData(e.coord)}function wp(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){!isNaN(t)&&(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)[+("max"===n)]}var wd=po.prototype,wf=ph.prototype,wg=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function wv(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}tt(function(){return null!==l&&l.apply(this,arguments)||this},l=wg);var wm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return tt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:uC.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new wg},e.prototype.buildPath=function(t,e){wv(e)?wd.buildPath.call(this,t,e):wf.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return wv(this.shape)?wd.pointAt.call(this,t):wf.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=wv(e)?[e.x2-e.x1,e.y2-e.y1]:wf.tangentAt.call(this,t);return eo(n,n)},e}(aY),wy=["fromSymbol","toSymbol"];function w_(t){return"_"+t+"Type"}function wb(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=f_(r),u=fx(a||0,l);return i+l+u+(o||"")+(s||"")}function ww(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=f_(r),u=fx(a||0,l),h=fy(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=null==o||isNaN(o)?void 0:o*Math.PI/180||0,h.name=t,h}}function wS(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=0/0,t.cpy1=0/0)}var wM=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return tt(e,t),e.prototype._createLine=function(t,e,n){var i,r=t.hostModel,o=t.getItemLayout(e),a=t.getItemVisual(e,"z2"),s=(wS((i=new wm({name:"line",subPixelOptimize:!0})).shape,o),i);s.shape.percent=0,pL(s,{z2:tX(a,0),shape:{percent:1}},r,e),this.add(s),tk(wy,function(n){var i=ww(n,t,e);this.add(i),this[w_(n)]=wb(n,t,e)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};wS(a.shape,o),pO(r,a,i,e),tk(wy,function(n){var i=wb(n,t,e),r=w_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=ww(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,h=n&&n.focus,c=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),h=d.get("focus"),c=d.get("blurScope"),l=lh(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,tk(wy,function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<sL.length;n++){var i=sL[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var v=i.getRawValue(e);lu(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||uC.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?rW(v,10):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var _=y.get("distance");tB(_)||(_=[_,_]),m.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),s9(this,h,c,u)},e.prototype.highlight=function(){s0(this)},e.prototype.downplay=function(){s1(this)},e.prototype.updateLayout=function(t,e){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");wS(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=ei([],l,s);if(eo(u,u),t&&(t.setPosition(s),w(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),w(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,c=void 0,p=n.__labelDistance,d=p[0]*i,f=p[1]*i,g=a/2,v=o.tangentAt(g),m=[v[1],-v[0]],y=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(v[1],v[0]);l[0]<s[0]&&(x=Math.PI+x),n.rotation=x}var b=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-f,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=f,c="top";break;default:b=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*d+l[0],n.y=u[1]*f+l[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",c=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*d+s[0],n.y=-u[1]*f+s[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",c=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=d*_+s[0],n.y=s[1]+b,h=v[0]<0?"right":"left",n.originX=-d*_,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+b,h="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-d*_+l[0],n.y=l[1]+b,h=v[0]>=0?"right":"left",n.originX=d*_,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(rS),wT=function(){function t(t){this.group=new rS,this._LineCtor=t||wM}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=wI(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=n,t.ensureState("emphasis").hoverLayer=pU)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++)if(wk(e.getItemLayout(r))){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(wk(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);wk(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function wI(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lh(e)}}function wC(t){return isNaN(t[0])||isNaN(t[1])}function wk(t){return t&&!wC(t[0])&&!wC(t[1])}var wD=os(),wA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.init=function(){this.markerGroupMap=t2()},e.prototype.render=function(t,e,n){var i,r,o,a=this,s=this.markerGroupMap;s.each(function(t){wD(t).keep=!1}),e.eachSeries(function(t){var i=wo.getMarkerModelFromSeries(t,a.type);i&&a.renderSeries(t,i,e,n)}),s.each(function(t){wD(t).keep||a.group.remove(t.group)}),i=e,r=s,o=this.type,i.eachSeries(function(t){var e=wo.getMarkerModelFromSeries(t,o),n=r.get(t.id);if(e&&n&&n.group){var i=df(e),a=i.z,s=i.zlevel;dv(n.group,a,s)}})},e.prototype.markKeep=function(t){wD(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tk(t,function(t){var i=wo.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?sj(t,sZ):sj(t,sX))})})},e.type="marker",e}(cm),wP=os(),wO=function(t,e,n,i){var r,o=t.getData();if(tB(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=tZ(i.yAxis,i.xAxis);else{var u=wh(i,o,e,t);s=u.valueAxis;var h=gC(o,u.valueDataDim);l=wp(o,h,a)}var c=+("x"!==s.dim),p=1-c,d=tb(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=n.get("precision");g>=0&&tV(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[wu(t,r[0]),wu(t,r[1]),tS({},r[2])];return v[2].type=v[2].type||null,tw(v[2],v[0]),tw(v[2],v[1]),v};function wL(t){return!isNaN(t)&&!isFinite(t)}function wR(t,e,n,i){var r=1-t,o=i.dimensions[t];return wL(e[r])&&wL(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function wB(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(wR(1,n,i,t)||wR(0,n,i,t)))return!0}return wc(t,e[0])&&wc(t,e[1])}function wz(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rF(s.get("x"),r.getWidth()),u=rF(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if("cartesian2d"===a.type){var d=a.getAxis("x"),f=a.getAxis("y"),h=a.dimensions;wL(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[+!n]):wL(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[+!n]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var wE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=wo.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=wP(e).from,o=wP(e).to;r.each(function(e){wz(r,e,!0,t,n),wz(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new wT);this.group.add(l.group);var u=function(t,e,n){var i=t?tD(t&&t.dimensions,function(t){var n=e.getData();return tS(tS({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],r=new mZ(i,n),o=new mZ(i,n),a=new mZ([],n),s=tD(n.get("data"),tR(wO,e,t,n));t&&(s=tP(s,tR(wB,t)));var l=t?function(t,e,n,r){return hB(r<2?t.coord&&t.coord[r]:t.value,i[r])}:function(t,e,n,r){return hB(t.value,i[r])};return r.initData(tD(s,function(t){return t[0]}),null,l),o.initData(tD(s,function(t){return t[1]}),null,l),a.initData(tD(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,p=u.line;wP(e).from=h,wP(e).to=c,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);wz(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=d9(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:tX(o.get("symbolOffset",!0),v[+!r]),symbolRotate:tX(o.get("symbolRotate",!0),g[+!r]),symbolSize:tX(o.get("symbolSize"),f[+!r]),symbol:tX(o.get("symbol",!0),d[+!r]),style:s})}tB(d)||(d=[d,d]),tB(f)||(f=[f,f]),tB(g)||(g=[g,g]),tB(v)||(v=[v,v]),u.from.each(function(t){m(h,t,!0),m(c,t,!1)}),p.each(function(t){var e=p.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{z2:tX(i,0),fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:n})}),l.updateData(p),u.line.eachItemGraphicEl(function(t){sg(t).dataModel=e,t.traverse(function(t){sg(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(wA),wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:uC.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:uC.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:uC.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:uC.color.tertiary,fontSize:14}},e}(uM);function wV(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function wF(t){if(tn.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}}var wH=wF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function wW(t,e){if(!t)return e;e=ui(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var wG=wW(wF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),wU=wW(wH,"transform"),wZ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tn.transform3dSupported?"will-change:transform;":"");function wX(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!tn.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=tn.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+wU+":"+a+";":[["top",0],["left",0],[wH,a]]}function wY(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&e_(ey,a,i,r,!0)&&e_(t,n,ey[0],ey[1])}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wq=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tn.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(tE(r)?document.querySelector(r):tG(r)?r:tz(r)&&r(t.getDom()));wY(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;eA(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n,i=this._api.getDom(),r=(e="position",(n=i.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?e?n[e]:n:null),o=i.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M,T,I=this.el,C=I.style,k=this._styleCoord;I.innerHTML?C.cssText=wZ+(n=!this._firstShow,i=this._longHide,r=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=co(t,"html"),f=h+"px "+c+"px "+l+"px "+u,o.push("box-shadow:"+f),n&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",v="",m="",r&&(m="opacity"+(v=" "+a/2+"s "+g)+",visibility"+v),i||(v=" "+a+"s "+g,m+=(m.length?",":"")+(tn.transformSupported?""+wU+v:",left"+v+",top"+v)),wG+":"+m)),s&&o.push("background-color:"+s),tk(["width","color","radius"],function(e){var n="border-"+e,i=ui(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))}),o.push((y=[],_=p.get("fontSize"),(x=p.getTextColor())&&y.push("color:"+x),y.push("font:"+p.getFont()),b=tX(p.get("lineHeight"),Math.round(3*_/2)),_&&y.push("line-height:"+b+"px"),w=p.get("textShadowColor"),S=p.get("textShadowBlur")||0,M=p.get("textShadowOffsetX")||0,T=p.get("textShadowOffsetY")||0,w&&S&&y.push("text-shadow:"+M+"px "+T+"px "+S+"px "+w),tk(["decoration","align"],function(t){var e=p.get(t);e&&y.push("text-"+t+":"+e)}),y.join(";"))),null!=d&&o.push("padding:"+tj(d).join("px ")+"px"),o.join(";")+";")+wX(k[0],k[1],!0)+"border-color:"+ul(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):C.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tE(r)&&"item"===n.get("trigger")&&!wV(n)&&(a=function(t,e,n){if(!tE(n)||"inside"===n)return"";var i,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=ul(e);var s=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",l=Math.max(1.5*Math.round(a),6),u="",h=wU+":";tT(["left","right"],s)>-1?(u+="top:50%",h+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var c=r*Math.PI/180,p=l+a,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));u+=";"+s+":-"+Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-p)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+h+";","border-bottom:"+f,"border-right:"+f,"background-color:"+o+";"].join("")+'"></div>'}(n,i,r)),tE(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tB(t)||(t=[t]);for(var s=0;s<t.length;s++)tG(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(wY(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;tk(wX(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",tn.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[em];e&&(e.clearMarkers&&e.clearMarkers(),delete t[em])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),wj=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),wQ(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;tF(t)&&hy(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new sf({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:co(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),tk(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),tk(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=w$(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;wQ(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=wK(r.borderWidth||0),a=w$(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function wK(t){return Math.max(0,t)}function w$(t){var e=wK(t.shadowBlur||0),n=wK(t.shadowOffsetX||0),i=wK(t.shadowOffsetY||0);return{left:wK(e-n),right:wK(e+n),top:wK(e-i),bottom:wK(e+i)}}function wQ(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wJ=new a6({shape:{x:-1,y:-1,width:2,height:2}}),w0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.init=function(t,e){if(!tn.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?tn.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new wj(e):new wq(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!tn.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?dL(this,"_updatePosition",50,"fixRate"):dR(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");bN("itemTooltip",this._api,tL(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!tn.node&&n.getDom()){var r=w2(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=oh(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=od(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=sg(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)wJ.x=i.x,wJ.y=i.y,wJ.update(),sg(wJ).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:wJ},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=bG(i,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(w2(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===w1([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===sg(n).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,fe(n,function(t){if(t.tooltipDisabled)return i=r=null,!0;i||r||(null!=sg(t).dataIndex?i=t:null!=sg(t).tooltipConfig&&(r=t))},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tL(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=w1([e.tooltipOption],i),a=this._renderMode,s=[],l=h7("section",{blocks:[],noHeader:!0}),u=[],h=new ca;tk(t,function(t){tk(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=e.axis,c=o.scale.parse(r);if(e&&null!=r){var p=bA(r,o,n,t.seriesDataIndices,t.valueLabelOpt),d=h7("section",{header:p,noHeader:!t$(p),sortBlocks:!0,blocks:[]});l.blocks.push(d),tk(t.seriesDataIndices,function(r){var o=n.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=o.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=vr(e.axis,{value:c}),f.axisValueLabel=p,f.marker=h.makeTooltipMarker("item",ul(f.color),a);var g=hP(o.formatTooltip(l,!0,null)),v=g.frag;if(v){var m=w1([o],i).get("valueFormatter");d.blocks.push(m?tS({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,p=cn(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",f=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=sg(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=w1([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new ca;g.marker=v.makeTooltipMarker("item",ul(g.color),c);var m=hP(s.formatTooltip(l,!1,u)),y=d.get("order"),_=d.get("valueFormatter"),x=m.frag,b=x?cn(_?tS({valueFormatter:_},x):x,v,c,y,i.get("useUTC"),d.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=sg(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tE(o)){var s=o;o={content:s,formatter:s},a=!0}a&&i&&o.content&&((o=tb(o)).content=eS(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=w1(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),d=Math.random()+"",f=new ca;this._showOrMove(c,function(){var n=tb(c.get("formatterParams")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(h)if(tE(h)){var d=t.ecModel.get("useUTC"),f=tB(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=lK(f.axisValue,c,d)),c=us(c,n,!0)}else if(tz(h)){var v=tL(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||tB(e)?{color:i||r}:tB(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),tz(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),tB(e))n=rF(e[0],s),i=rF(e[1],l);else if(tF(e)){var d=e;d.width=u[0],d.height=u[1];var f=uy(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(tE(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var v,m,y,_,x,b,w,S,M,T,g=(v=n,m=i,y=r,_=s,x=l,b=h?null:20,w=c?null:20,M=(S=y.getSize())[0],T=S[1],null!=b&&(v+M+b+2>_?v-=M+b:v+=b),null!=w&&(m+T+w>x?m-=T+w:m+=w),[v,m]);n=g[0],i=g[1]}if(h&&(n-=w5(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=w5(c)?u[1]/2:"bottom"===c?u[1]:0),wV(t)){var I,C,k,D,A,P,O,L,g=(I=n,C=i,k=r,D=s,A=l,O=(P=k.getSize())[0],L=P[1],I=Math.min(I+O,D)-O,C=Math.min(C+L,A)-L,[I=Math.max(I,0),C=Math.max(C,0)]);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&tk(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tk(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tk(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&tk(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!tn.node&&e.getDom()&&(dR(this,"_updatePosition"),this._tooltipContent.dispose(),bH("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(cm);function w1(t,e,n){var i,r=e.ecModel;n?(i=new lA(n,r,r),i=new lA(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof lA&&(a=a.get("tooltip",!0)),tE(a)&&(a={formatter:a}),a&&(i=new lA(a,i,r)))}return i}function w2(t,e){return t.dispatchAction||tL(e.dispatchAction,e)}function w5(t){return"center"===t||"middle"===t}var w3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:uC.size.m,backgroundColor:uC.color.transparent,borderColor:uC.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:uC.color.primary},subtextStyle:{fontSize:12,color:uC.color.quaternary}},e}(uM),w4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=tX(t.get("textBaseline"),t.get("textVerticalAlign")),l=new sf({style:lc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new sf({style:lc(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){uu(p,"_"+t.get("target"))}),d&&c.on("click",function(){uu(d,"_"+t.get("subtarget"))}),sg(l).eventData=sg(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=uy(v,u_(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new a6({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(cm),w8=Math.sin,w6=Math.cos,w7=Math.PI,w9=2*Math.PI,St=180/w7,Se=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=is(h-w9)||(u?l>=w9:-l>=w9),p=l>0?l%w9:l%w9+w9,d=!1;d=!!c||!is(h)&&p>=w7==!!u;var f=t+n*w6(o),g=e+i*w8(o);this._start&&this._add("M",f,g);var v=Math.round(r*St);if(c){var m=1/this._p,y=(u?1:-1)*(w9-m);this._add("A",n,i,v,1,+u,t+n*w6(o+y),e+i*w8(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var _=t+n*w6(a),x=e+i*w8(a);this._add("A",n,i,v,+d,+u,_,x)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p)){this._invalid=!0;return}u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Sn="none",Si=Math.round,Sr=["lineCap","miterLimit","lineJoin"],So=tD(Sr,function(t){return"stroke-"+t.toLowerCase()}),Sa="http://www.w3.org/2000/svg",Ss="http://www.w3.org/1999/xlink",Sl="ecmeta_";function Su(t){return document.createElementNS(Sa,t)}function Sh(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function Sc(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?eS(a):a||"")+(i?""+n+tD(i,function(e){return t(e)}).join(n)+n:"")+"</"+r+">"}(t)}function Sp(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Sd(t,e,n,i){return Sh("svg","root",{width:t,height:e,xmlns:Sa,"xmlns:xlink":Ss,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Sf=0,Sg={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Sv="transform-origin",Sm={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Sy(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function S_(t){return tE(t)?Sg[t]?"cubic-bezier("+Sg[t]+")":nU(t)?t:"":""}function Sx(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof pf){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tk(o,function(t){var e=Sp(n.zrId);e.animation=!0,Sx(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=tO(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=Sy(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var h=r[u],c=[h.getMaxTime()/1e3+"s"],p=S_(h.getClip().easing),d=h.getDelay();p?c.push(p):c.push("linear"),d&&c.push(d/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}for(var g in l){var s=function(r){var o,a,s=r[1],l=s.length,u={},h={},c={},p="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",d=S_(h.easing),f=h.rawValue;(tE(f)||tV(f))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,d&&(e[c][p]=d))}}}}for(var f=0;f<l;f++){var g=s[f],v=g.targetName;v?"shape"===v&&d(g,h):i||d(g,u)}for(var m in u){var y={};i7(y,t),tS(y,u[m]);var _=i_(y),x=u[m][p];c[m]=_?{transform:_}:{},function(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[Sv]=n+"px "+i+"px")}(c[m],y),x&&(c[m][p]=x)}var b=!0;for(var m in h){c[m]=c[m]||{};var w=!o,x=h[m][p];w&&(o=new aL);var S=o.len();o.reset(),c[m].d=function(t,e,n){var i=tS({},t.shape);tS(i,e),t.buildPath(n,i);var r=new Se;return r.reset(iy(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}(t,h[m],o);var M=o.len();if(!w&&S!==M){b=!1;break}x&&(c[m][p]=x)}if(!b)for(var m in c)delete c[m].d;if(!i)for(var f=0;f<l;f++){var g=s[f],v=g.targetName;"style"===v&&d(g,c,function(t){return Sm[t]})}for(var T=tO(c),I=!0,f=1;f<T.length;f++){var C=T[f-1],k=T[f];if(c[C][Sv]!==c[k][Sv]){I=!1;break}a=c[C][Sv]}if(I&&a){for(var m in c)c[m][Sv]&&delete c[m][Sv];e[Sv]=a}if(tP(T,function(t){return tO(c[t]).length>0}).length)return Sy(c,n)+" "+r[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Sf++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function Sb(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+Sf++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Sw=Math.round;function SS(t){return t&&tz(t.toDataURL)}function SM(t,e,n,i){!function(t,e,n,i){var r,o,a=null==e.opacity?1:e.opacity;if(n instanceof aJ)return t("opacity",a);if(null!=(r=e.fill)&&r!==Sn){var s=ia(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&t("fill-opacity",l)}else t("fill",Sn);if(null!=(o=e.stroke)&&o!==Sn){var u=ia(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,p=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,d=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=fT(n),g=f[0],v=f[1];g&&(v=Si(v||0),t("stroke-dasharray",g.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Sn);for(var m=0;m<Sr.length;m++){var y=Sr[m];if(i||e[y]!==aU[y]){var _=e[y]||aU[y];_&&t(So[m],_)}}}else i&&t("stroke",Sn)}(function(r,o){var a="fill"===r||"stroke"===r;a&&iv(o)?SL(e,t,r,i):a&&ip(o)?SR(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var i=t.style;if(i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)){var r,o,a=(r=t.style,o=t.getGlobalScale(),[r.shadowColor,(r.shadowBlur||0).toFixed(2),(r.shadowOffsetX||0).toFixed(2),(r.shadowOffsetY||0).toFixed(2),o[0],o[1]].join(",")),s=n.shadowCache,l=s[a];if(!l){var u=t.getGlobalScale(),h=u[0],c=u[1];if(!h||!c)return;var p=i.shadowOffsetX||0,d=i.shadowOffsetY||0,f=i.shadowBlur,g=ia(i.shadowColor),v=g.opacity,m=g.color;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=Sh("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sh("feDropShadow","",{dx:p/h,dy:d/c,stdDeviation:f/2/h+" "+f/2/c,"flood-color":m,"flood-opacity":v})]),s[a]=l}e.filter=im(l)}}(n,t,i)}function ST(t,e){var n=function(t){if("function"==typeof p)return p(t)}(e);n&&(n.each(function(e,n){null!=e&&(t[(Sl+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[Sl+"silent"]="true"))}function SI(t){return is(t[0]-1)&&is(t[1])&&is(t[2])&&is(t[3]-1)}function SC(t,e,n){if(e&&!(is(e[4])&&is(e[5])&&SI(e))){var i=n?10:1e4;t.transform=SI(e)?"translate("+Sw(e[4]*i)/i+" "+Sw(e[5]*i)/i+")":"matrix("+il(e[0])+","+il(e[1])+","+il(e[2])+","+il(e[3])+","+iu(e[4])+","+iu(e[5])+")"}}function Sk(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(Sw(i[o][0]*n)/n),r.push(Sw(i[o][1]*n)/n);e.points=r.join(" ")}function SD(t){return!t.smooth}var SA={circle:[(u=tD(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<u.length;i++){var r=u[i],o=t[r[0]];null!=o&&(e[r[1]]=Sw(o*n)/n)}})],polyline:[Sk,SD],polygon:[Sk,SD]};function SP(t,e){var n=t.style,i=t.shape,r=SA[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&iy(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var p=c.getVersion(),d=t.__svgPathBuilder;t.__svgPathVersion===p&&d&&l===t.__svgPathStrokePercent||(d||(d=t.__svgPathBuilder=new Se),d.reset(u),c.rebuildPath(d,l),d.generateStr(),t.__svgPathVersion=p,t.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var f=Math.pow(10,u);r[0](i,o,f)}return SC(o,t.transform),SM(o,n,t,e),ST(o,t),e.animation&&Sx(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};Sb(i,e,n,!0)}else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=r.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=ir(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),Sb(i,e,n,!0)}}(t,o,e),Sh(s,t.id+"",o)}function SO(t,e){return t instanceof aY?SP(t,e):t instanceof aJ?function(t,e){var n,i=t.style,r=i.image;if(r&&!tE(r)&&((n=r)&&tE(n.src)?r=r.src:SS(r)&&(r=r.toDataURL())),r){var o=i.x||0,a=i.y||0,s={href:r,width:i.width,height:i.height};return o&&(s.x=o),a&&(s.y=a),SC(s,t.transform),SM(s,i,t,e),ST(s,t),e.animation&&Sx(t,s,e),Sh("image",t.id+"",s)}}(t,e):t instanceof aj?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r,o,a,s=n.font||tr,l=n.x||0,u=(r=n.y||0,o=rs(s),"top"===(a=n.textBaseline)?r+=o/2:"bottom"===a&&(r-=o/2),r),h={"dominant-baseline":"central","text-anchor":ih[n.textAlign]||n.textAlign};if(ss(n)){var c="",p=n.fontStyle,d=so(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||ti,g=n.fontWeight;c+="font-size:"+d+";font-family:"+f+";",p&&"normal"!==p&&(c+="font-style:"+p+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return i.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),SC(h,t.transform),SM(h,n,t,e),ST(h,t),e.animation&&Sx(t,h,e),Sh("text",t.id+"",h,void 0,i)}}(t,e):void 0}function SL(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(id(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ig(o))return;r="radialGradient",a.cx=tX(o.x,.5),a.cy=tX(o.y,.5),a.r=tX(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=100*iu(s[u].offset)+"%",p=ia(s[u].color),d=p.color,f=p.opacity,g={offset:c};g["stop-color"]=d,f<1&&(g["stop-opacity"]=f),l.push(Sh("stop",u+"",g))}var v=Sc(Sh(r,"",a,l)),m=i.gradientCache,y=m[v];y||(y=i.zrId+"-g"+i.gradientIdx++,m[v]=y,a.id=y,i.defs[y]=Sh(r,y,a,l)),e[n]=im(y)}function SR(t,e,n,i){var r,o,a,s=t.style[n],l=t.getBoundingRect(),u={},h=s.repeat,c="no-repeat"===h,p="repeat-x"===h,d="repeat-y"===h;if(ic(s)){var f=s.imageWidth,g=s.imageHeight,v=void 0,m=s.image;if(tE(m)?v=m:m&&tE(m.src)?v=m.src:SS(m)&&(v=m.toDataURL()),"u"<typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";tK(f,y),tK(g,y)}else if(null==f||null==g){var _=function(t,e){if(t){var n=t.elm,i=f||e.width,r=g||e.height;"pattern"===t.tag&&(p?(r=1,i/=l.width):d&&(i=1,r/=l.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},x=oG(v,null,t,function(t){c||_(w,t),_(r,t)});x&&x.width&&x.height&&(f=f||x.width,g=g||x.height)}r=Sh("image","img",{href:v,width:f,height:g}),u.width=f,u.height=g}else s.svgElement&&(r=tb(s.svgElement),u.width=s.svgWidth,u.height=s.svgHeight);if(r){c?o=a=1:p?(a=1,o=u.width/l.width):d?(o=1,a=u.height/l.height):u.patternUnits="userSpaceOnUse",null==o||isNaN(o)||(u.width=o),null==a||isNaN(a)||(u.height=a);var b=i_(s);b&&(u.patternTransform=b);var w=Sh("pattern","",u,[r]),S=Sc(w),M=i.patternCache,T=M[S];T||(T=i.zrId+"-p"+i.patternIdx++,M[S]=T,u.id=T,w=i.defs[T]=Sh("pattern",T,u,[r])),e[n]=im(T)}}function SB(t){return document.createTextNode(t)}function Sz(t,e,n){t.insertBefore(e,n)}function SE(t,e){t.removeChild(e)}function SN(t,e){t.appendChild(e)}function SV(t){return t.parentNode}function SF(t){return t.nextSibling}function SH(t,e){t.textContent=e}var SW=Sh("","");function SG(t){return void 0===t}function SU(t){return void 0!==t}function SZ(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function SX(t){var e,n=t.children,i=t.tag;if(SU(i)){var r=t.elm=Su(i);if(Sj(SW,t),tB(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&SN(r,SX(o))}else SU(t.text)&&!tF(t.text)&&SN(r,SB(t.text))}else t.elm=SB(t.text);return t.elm}function SY(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&Sz(t,SX(o),e)}}function Sq(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(SU(r.tag)?SE(SV(r.elm),r.elm):SE(t,r.elm))}}function Sj(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(Ss,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}var SK=0,S$=function(){function t(t,e,n){if(this.type="svg",this.configLayer=function(){},this.storage=e,this._opts=n=tS({},n),this.root=t,this._id="zr"+SK++,this._oldVNode=Sd(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Su("svg");Sj(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(SZ(t,e))!function t(e,n){var i=n.elm=e.elm,r=e.children,o=n.children;e!==n&&(Sj(e,n),SG(n.text)?SU(r)&&SU(o)?r!==o&&function(e,n,i){for(var r,o,a,s=0,l=0,u=n.length-1,h=n[0],c=n[u],p=i.length-1,d=i[0],f=i[p];s<=u&&l<=p;)null==h?h=n[++s]:null==c?c=n[--u]:null==d?d=i[++l]:null==f?f=i[--p]:SZ(h,d)?(t(h,d),h=n[++s],d=i[++l]):SZ(c,f)?(t(c,f),c=n[--u],f=i[--p]):SZ(h,f)?(t(h,f),Sz(e,h.elm,SF(c.elm)),h=n[++s],f=i[--p]):(SZ(c,d)?(t(c,d),Sz(e,c.elm,h.elm),c=n[--u]):(SG(r)&&(r=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(n,s,u)),SG(o=r[d.key])||(a=n[o]).tag!==d.tag?Sz(e,SX(d),h.elm):(t(a,d),n[o]=void 0,Sz(e,a.elm,h.elm))),d=i[++l]);(s<=u||l<=p)&&(s>u?SY(e,null==i[p+1]?null:i[p+1].elm,i,l,p):Sq(e,n,s,u))}(i,r,o):SU(o)?(SU(e.text)&&SH(i,""),SY(i,null,o,0,o.length-1)):SU(r)?Sq(i,r,0,r.length-1):SU(e.text)&&SH(i,""):e.text!==n.text&&(SU(r)&&Sq(i,r,0,r.length-1),SH(i,n.text)))}(t,e);else{var n=t.elm,i=SV(n);SX(e),null!==i&&(Sz(i,e.elm,SF(n)),Sq(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return SO(t,Sp(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Sp(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=Sh("rect","bg",{width:t,height:e,x:"0",y:"0"}),iv(n))SL({fill:n},r.attrs,"fill",i);else if(ip(n))SR({style:{fill:n},dirty:t4,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=ia(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=Sh("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=tD(tO(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(Sh("defs","defs",{},l)),t.animation){var u,h,c,p,d,f,g,v,m=(u=r.cssNodes,h=r.cssAnims,d=" {"+(p=(c={newline:!0}).newline?"\n":""),f=p+"}",g=tD(tO(u),function(t){return t+d+tD(tO(u[t]),function(e){return e+":"+u[t][e]+";"}).join(p)+f}).join(p),v=tD(tO(h),function(t){return"@keyframes "+t+d+tD(tO(h[t]),function(e){return e+d+tD(tO(h[t][e]),function(n){var i=h[t][e][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(p)+f}).join(p)+f}).join(p),g||v?["<![CDATA[",g,v,"]]>"].join(p):"");if(m){var y=Sh("style","stl",{},[],m);o.push(y)}}return Sd(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Sc(this.renderToVNode({animation:tX(t.cssAnimation,!0),emphasis:tX(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:tX(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,p=c&&c.length||0,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var v=f+1;v<p;v++){var m={};!function(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=Sh("clipPath",o,a,[SP(t,n)])}e["clip-path"]=im(o)}(c[v],m,e);var y=Sh("g","clip-g-"+l++,m,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=c;var _=SO(h,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=fM(i,0,n),e=fM(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(ip(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=ix(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function SQ(t,e){if(null===t||null===e)return null;let n=t-e;return Number.isFinite(n)?n:null}function SJ(t,e){let n=SQ(t,e);if(null===n||null===e||0===e)return null;let i=n/Math.abs(e)*100;return Number.isFinite(i)?i:null}function S0(t){let e=document.querySelector(`#${t}`);if(null===e)throw Error(`Missing chart ${t}.`);if(!(e instanceof HTMLElement))throw TypeError("Chart requires an HTML element.");let n=function(t,e){var n=!(e&&e.ssr);if(n){var i=function(t){return gr[t.getAttribute?t.getAttribute(gs):t[gs]]}(t);if(i)return i}var r=new f5(t,null,e);return r.id="ec_"+ga++,gr[r.id]=r,n&&of(t,gs,r.id),V(r),fn.trigger("afterinit",r),r}(e,{renderer:"svg"});return new ResizeObserver(function(){n.resize()}).observe(e),n}function S1(t){let e=document.querySelector(`#${t}`);if(!(e instanceof HTMLSelectElement))throw TypeError(`Missing selection ${t}.`);return e}function S2(t,e,n){return{title:{text:t,textStyle:{fontSize:16}},animation:!1,aria:{enabled:!0},tooltip:{trigger:"axis",renderMode:"richText"},legend:{top:30},grid:{top:75,left:80,right:35,bottom:85},xAxis:{type:"category",data:Array.from(e),axisLabel:{hideOverlap:!0}},yAxis:{type:"value",name:n,scale:!0},dataZoom:[{type:"inside"},{type:"slider",bottom:10}]}}function S5(t,e){return[e,...[["estimate",t.estimate,"unavailable"],["interval lower",t.interval.lower,"-unbounded"],["interval upper",t.interval.upper,"unbounded"],["minimum",t.minimum,"-unbounded"],["minimum delta",SQ(t.estimate,t.minimum),"unavailable"],["minimum delta %",SJ(t.estimate,t.minimum),"unavailable"],["maximum",t.maximum,"unbounded"],["maximum delta",SQ(t.estimate,t.maximum),"unavailable"],["maximum delta %",SJ(t.estimate,t.maximum),"unavailable"]].map(function([t,e,n]){return`${t}: ${e??n}`}),`precision met: ${String(t.precise)}`].join("\n")}g_([function(t){t.registerChartView(m7),t.registerSeriesModel(mQ),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,{seriesType:"bar",overallReset:function(t){var e="bar|&"+mT;mt(t,e,function(t){var n,i,r,o,a,s=((r=[],o=my(n=t,{fromStat:{key:i="bar|&"+mT},min:1}),v7(n,i,function(t){r.push({barWidth:rF(t.get("barWidth"),o.w),barMaxWidth:rF(t.get("barMaxWidth"),o.w),barMinWidth:rF(t.get("barMinWidth")||(mP(t)?.5:1),o.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:mD(t)})}),a={bandWidthResult:o,seriesInfo:r}).columnMap=mA(a),a);v7(t,e,function(t){var e=s.columnMap[mD(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})})})}}),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:cy(),reset:function(t){if(t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=gI(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=r.toGlobalCoord(r.dataToCoord(r.scale.rawExtentInfo.makeRenderInfo().startValue)),d=mP(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&gA(3*r),u=d&&s&&gA(3*r),y=d&&gA(r),_=n.master.getRect(),x=c?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),T=p,I=void 0;h&&(I=S-b.get(o,i));var C=void 0,k=void 0,D=void 0,A=void 0;if(c){var P=n.dataToPoint([S,M]);h&&(T=n.dataToPoint([I,M])[0]),C=T,k=P[1]+m,D=P[0]-T,A=v,rA(D)<f&&(D=(D<0?-1:1)*f)}else{var P=n.dataToPoint([M,S]);h&&(T=n.dataToPoint([M,I])[1]),C=P[0]+m,k=T,D=v,rA(A=P[1]-T)<f&&(A=(A<=0?-1:1)*f)}d?(l[w]=C,l[w+1]=k,l[w+2]=c?D:A,u&&(u[w]=c?_.x:C,u[w+1]=c?k:_.y,u[w+2]=x),y[i]=i):e.setItemLayout(i,{x:C,y:k,width:D,height:A}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"bar",reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/c)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/c));var p=void 0;tE(r)?p=mO[r]:tz(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,p,mL))}}}}),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})}),mC(t,function(){function e(e){var n,i=e+"|&"+mT;ma(t,{key:i,seriesType:e,coordSysType:mT,getMetrics:mw}),n=mb(e+"|&"+mT),mv.set(i,n)}e("bar"),e("pictorialBar")})},function(t){t.registerSeriesModel(ym),t.registerChartView(yy),t.registerLayout(yM),t.registerTransform(yT),yS(t,function(){var e,n=yv+"|&";ma(t,{key:n,seriesType:yv,getMetrics:mw}),e=mb(n),mv.set(n,e)})},function(t){t.registerChartView(yE),t.registerSeriesModel(yC),t.registerPreprocessor(yY),t.registerVisual(yB),t.registerLayout(yj),yq(t,function(){var e,n=yI+"|&";ma(t,{key:n,seriesType:yI,getMetrics:mw}),e=mb(n),mv.set(n,e)})},function(t){g_(_Z),t.registerSeriesModel(y$),t.registerChartView(y9),t.registerLayout(y7("scatter"))},function(t){t.registerChartView(xw),t.registerSeriesModel(_j)},function(t){t.registerPreprocessor(xH),t.registerVisual(t.PRIORITY.VISUAL.ARIA,xF)},function(t){g_(bv),g_(bM)},function(t){g_(_Z),g_(b$)},function(t){g_(b8),g_(wn)},function(t){t.registerComponentModel(wa),t.registerComponentView(wE),t.registerPreprocessor(function(t){(function(t,e){if(!t)return!1;for(var n=tB(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1})(t.series,"markLine")&&(t.markLine=t.markLine||{})})},function(t){g_(b$),t.registerComponentModel(wN),t.registerComponentView(w0),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},t4),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},t4)},function(t){t.registerComponentModel(w3),t.registerComponentView(w4)},function(t){t.registerPainter("svg",S$)}]);let S3=function(t,e){let n=e.coord([e.value(0),e.value(2)]),i=e.coord([e.value(1),e.value(2)]);return{type:"rect",shape:{x:n[0]??0,y:(n[1]??0)-5,width:Math.max(2,(i[0]??0)-(n[0]??0)),height:10},style:{fill:"#3865b4"}}};function S4(t,e){for(let n of t)n.addEventListener("change",e)}Object.assign(globalThis,{renderBenchmarkCharts:function(t){!function(t,e){let n=S1("metric-selection"),i=S1("workload-selection");for(let[e,i]of t.groups.entries())n.add(new Option(i.name,String(e)));function r(){let r=t.groups[Number(n.value)];if(void 0!==r){let t,n,o,a=new Set(Array.from(i.selectedOptions,function(t){return t.value}));n=(t=r.rows.filter(function(t){return a.has(t.key)})).map(function(t){return t.label}),e.distribution.setOption({...S2("Retained sample distributions",r.bins,"sample count"),series:t.map(function(t){return{type:"bar",name:t.label,data:Array.from(t.histogram)}})},!0),e.box.setOption({...S2("Empirical min / Q1 / median / Q3 / max",n,r.unit),series:[{type:"boxplot",data:t.map(function(t){return Array.from(t.box)})}]},!0),e.workloads.setOption({...S2("Workload summaries",n,r.unit),series:[{type:"bar",name:"mean",data:t.map(function(t){return t.summary.mean})},{type:"bar",name:"median",data:t.map(function(t){return t.summary.median})}]},!0),o=t.flatMap(function(t){return t.budgets.map(function(e){return{...e,label:`${t.label}: ${e.statistic.kind}${"quantile"===e.statistic.kind?` ${e.statistic.probability}`:""} (${e.decision})`}})}),e.budgets.setOption({...S2("Budget estimates and recorded intervals",o.map(function(t){return t.label}),r.unit),tooltip:{trigger:"item",renderMode:"richText",formatter:"{b}"},series:[{type:"candlestick",name:"recorded interval",data:o.map(function(t){return null!==t.estimate&&null!==t.interval.lower&&null!==t.interval.upper?{name:S5(t,t.label),value:[t.estimate,t.estimate,t.interval.lower,t.interval.upper]}:"-"})},{type:"scatter",name:"estimate",data:o.map(function(t){return{name:S5(t,t.label),value:t.estimate}})},{type:"scatter",name:"minimum",symbol:"triangle",data:o.map(function(t){return{name:S5(t,t.label),value:t.minimum}})},{type:"scatter",name:"maximum",symbol:"triangle",data:o.map(function(t){return{name:S5(t,t.label),value:t.maximum}})}]},!0)}}function o(){let e=t.groups[Number(n.value)]?.rows??[];for(let t of(i.replaceChildren(),e))i.add(new Option(t.label,t.key,!0,!0));r()}n.addEventListener("change",o),i.addEventListener("change",r),o()}(t,{distribution:S0("distribution"),box:S0("box"),workloads:S0("workloads"),budgets:S0("budgets")});let e=S1("baseline-selection"),n=S0("baseline-chart");for(let[n,i]of new Map(t.baselines.map(function(t){return[t.group,t]})))e.add(new Option(`${i.label} / ${i.name} (${i.unit}, ${JSON.stringify(i.scale)})`,n));function i(){var i;let r;r=(i=t.baselines.filter(function(t){return t.group===e.value}))[0],n.setOption({...S2(`Baseline comparisons (${r?.scale.kind??"unavailable"})`,i.map(function(t){return`${t.label}: ${t.outcome}`}),r?.unit??""),series:[{type:"bar",name:"actual",data:i.map(function(t){return t.actual})},{type:"bar",name:"expected",data:i.map(function(t){return"value"===t.expected.kind?t.expected.value:null})},{type:"scatter",name:"minimum",data:i.map(function(t){return"range"===t.expected.kind?t.expected.minimum:null})},{type:"scatter",name:"maximum",data:i.map(function(t){return"range"===t.expected.kind?t.expected.maximum:null})}]},!0)}e.addEventListener("change",i),i(),function(t){let{selection:e,phase:n,sample:i,clock:r}={selection:S1("timeline-selection"),phase:S1("timeline-phase"),sample:S1("timeline-sample"),clock:S1("timeline-clock")},o=S0("timeline-chart");for(let[n,i]of t.timelines.entries())e.add(new Option(i.label,String(n)));function a(){return(t.timelines[Number(e.value)]?.events??[]).filter(function(t){return"all"===n.value||t.phase===n.value})}function s(){var t;let e=a().filter(function(t){return("all"===i.value||String(t.sample)===i.value)&&t.clockDomain===r.value});t=r.value,o.setOption({title:{text:`Timeline / ${t.length>0?t:"no recorded events"}`},animation:!1,aria:{enabled:!0},tooltip:{renderMode:"richText"},grid:{left:190,right:30,top:60,bottom:65},xAxis:{type:"value",name:"raw microseconds",scale:!0},yAxis:{type:"category",data:e.map(function(t){return`${t.phase} ${t.sample} / ${t.name} (${t.outcome})`})},dataZoom:[{type:"inside"},{type:"slider"},{type:"slider",yAxisIndex:0,right:0}],series:[{type:"custom",renderItem:S3,encode:{x:[0,1],y:2},data:e.map(function(t,e){return{name:`${t.name} / ${t.source}`,value:[t.startMicroseconds,t.startMicroseconds+(t.durationMicroseconds??0),e]}})}]},!0)}function l(){var t=a();let e=new Set(t.map(function(t){return t.sample})),n=new Set(t.map(function(t){return t.clockDomain}));for(let t of(i.replaceChildren(new Option("All","all")),r.replaceChildren(),e))i.add(new Option(String(t),String(t)));for(let t of n)r.add(new Option(t,t));s()}S4([e,n],l),S4([i,r],s),l()}(t)}})})();
|
|
1
|
+
(()=>{"use strict";var t,e,n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M,T,I,C,k,D,A,P,O,L,R,B,z,E,N,V,F,H,W,G,U,Z,X,Y,q,j,K,$={};$.d=(t,e,n)=>{var i=(e,n)=>{for(var i in e)$.o(e,i)&&!$.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,[n]:e[i]})};i(e,"get"),i(n,"value")},$.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),$.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var Q={};$.r(Q),$.d(Q,{Arc:()=>pd,BezierCurve:()=>ph,BoundingRect:()=>no,Circle:()=>cN,CompoundPath:()=>pf,Ellipse:()=>cH,Group:()=>rS,HOVER_LAYER_FOR_INCREMENTAL:()=>pU,HOVER_LAYER_FROM_THRESHOLD:()=>pG,HOVER_LAYER_NO:()=>pW,Image:()=>aJ,IncrementalDisplayable:()=>pk,Line:()=>po,LinearGradient:()=>pv,OrientedBoundingRect:()=>pI,Path:()=>aY,Point:()=>eG,Polygon:()=>c7,Polyline:()=>pe,RadialGradient:()=>pm,Rect:()=>a6,Ring:()=>c3,Sector:()=>c1,Text:()=>sf,WH:()=>pH,XY:()=>pF,applyTransform:()=>p4,calcZ2Range:()=>dg,clipPointsByRect:()=>p7,clipRectByRect:()=>p9,createIcon:()=>dt,decomposeTransform:()=>dy,ensureCopyRect:()=>dp,ensureCopyTransform:()=>dd,expandOrShrinkRect:()=>di,extendPath:()=>pY,extendShape:()=>pZ,getCurrentCanvasPainter:()=>dx,getShapeClass:()=>pj,getTransform:()=>p3,groupTransition:()=>p6,initProps:()=>pL,isBoundingRectAxisAligned:()=>dh,isElementRemoved:()=>pR,lineLineIntersect:()=>dn,linePolygonIntersect:()=>de,makeImage:()=>p$,makePath:()=>pK,mergePath:()=>pJ,payloadDisableAnimation:()=>dm,registerShape:()=>pq,removeElement:()=>pB,removeElementWithFadeOut:()=>pE,resizePath:()=>p0,retrieveZInfo:()=>df,setTooltipConfig:()=>ds,subPixelOptimize:()=>p5,subPixelOptimizeLine:()=>p1,subPixelOptimizeRect:()=>p2,transformDirection:()=>p8,traverseElements:()=>du,traverseUpdateZ:()=>dv,updateProps:()=>pO});var J=function(t,e){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function tt(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var te=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},tn=new function(){this.browser=new te,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(tn.wxa=!0,tn.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?tn.worker=!0:!tn.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(tn.node=!0,tn.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,tn);var ti="sans-serif",tr="12px "+ti,to=function(t){var e={};if("u"<typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),ta={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(n,i){if(!t){var r=ta.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||tr),t.measureText(n);n=n||"",i=i||tr;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||12,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=to[n[l]];s+=null==u?a:u*a}return{width:s}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}},ts=tA(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tl=tA(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),tu=Object.prototype.toString,th=Array.prototype,tc=th.forEach,tp=th.filter,td=th.slice,tf=th.map,tg=(function(){}).constructor,tv=tg?tg.prototype:null,tm="__proto__",ty=2311;function t_(){return ty>=0x1fffffffffffff&&(ty=0),ty++}function tx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function tb(t){if(null==t||"object"!=typeof t)return t;var e=t,n=tu.call(t);if("[object Array]"===n){if(!t[tQ]){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=tb(t[i])}}else if(tl[n]){if(!t[tQ]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!ts[n]&&!t[tQ]&&!tG(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tm&&(e[a]=tb(t[a]));return e}function tw(t,e,n){if(!tF(e)||!tF(t))return n?tb(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==tm){var r=t[i],o=e[i];!(tF(o)&&tF(r))||tB(o)||tB(r)||tG(o)||tG(r)||tH(o)||tH(r)||o[tQ]||r[tQ]?!n&&i in t||(t[i]=tb(e[i])):tw(r,o,n)}return t}function tS(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==tm&&(t[n]=e[n]);return t}function tM(t,e,n){for(var i=tO(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function tT(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return -1}function tI(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else tM(t,e,n)}function tC(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function tk(t,e,n){if(t&&e)if(t.forEach&&t.forEach===tc)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function tD(t,e,n){if(!t)return[];if(!e)return tq(t);if(t.map&&t.map===tf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function tA(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function tP(t,e,n){if(!t)return[];if(!e)return tq(t);if(t.filter&&t.filter===tp)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function tO(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}ta.createCanvas;var tL=tv&&tz(tv.bind)?tv.call.bind(tv.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(td.call(arguments)))}};function tR(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(td.call(arguments)))}}function tB(t){return Array.isArray?Array.isArray(t):"[object Array]"===tu.call(t)}function tz(t){return"function"==typeof t}function tE(t){return"string"==typeof t}function tN(t){return"[object String]"===tu.call(t)}function tV(t){return"number"==typeof t}function tF(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function tH(t){return!!ts[tu.call(t)]}function tW(t){return!!tl[tu.call(t)]}function tG(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function tU(t){return null!=t.colorStops}function tZ(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function tX(t,e){return null!=t?t:e}function tY(t,e,n){return null!=t?t:null!=e?e:n}function tq(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return td.apply(t,e)}function tj(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tK(t,e){if(!t)throw Error(e)}function t$(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tQ="__ec_primitive__",tJ=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return tO(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),t0="function"==typeof Map,t1=function(){function t(e){var n=tB(e);this.data=t0?new Map:new tJ;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&tk(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return t0?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function t2(t){return new t1(t)}function t5(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&tS(n,e),n}function t3(t,e){return t.hasOwnProperty(e)}function t4(){}var t8=180/Math.PI,t6=function(t,e){return(t6=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function t7(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}t6(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function t9(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function et(t,e){return t[0]=e[0],t[1]=e[1],t}function ee(t,e,n){return t[0]=e,t[1]=n,t}function en(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ei(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function er(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eo(t,e){var n,i=Math.sqrt((n=e)[0]*n[0]+n[1]*n[1]);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ea(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var es=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function el(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function eu(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function eh(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ec=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ep=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ec(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new ec(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new ec(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new ec(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ec(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ec(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ed=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ef=Math.log(2);function eg(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ef);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;!(f&r)&&(c+=(d%2?-1:1)*t[n][p]*eg(t,e-1,h,u,r|f,o),d++)}return o[a]=c,c}function ev(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=eg(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*eg(n,7,+(0===a),1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var em="___zrEVENTSAVED",ey=[];function e_(t,e,n,i,r){if(e.getBoundingClientRect&&tn.domSupported&&!ex(e)){var o=e[em]||(e[em]={}),a=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ev(s,a):ev(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){tk(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function ex(t){return"CANVAS"===t.nodeName.toUpperCase()}var eb=/([&<>"'])/g,ew={"&":"&","<":"<",">":">",'"':""","'":"'"};function eS(t){return null==t?"":(t+"").replace(eb,function(t,e){return ew[e]})}var eM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eT=[],eI=tn.browser.firefox&&39>+tn.browser.version.split(".")[0];function eC(t,e,n,i){return n=n||{},i?ek(t,e,n):eI&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ek(t,e,n),n}function ek(t,e,n){if(tn.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ex(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}if(e_(eT,t,i,r)){n.zrX=eT[0],n.zrY=eT[1];return}}n.zrX=n.zrY=0}function eD(t){return t||window.event}function eA(t,e,n){if(null!=(e=eD(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&eC(t,r,e,n)}else{eC(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eM.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var eP=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eO(t){return 2===t.which||3===t.which}var eL=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=eC(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in eB)if(eB.hasOwnProperty(e)){var n=eB[e](this._track,t);if(n)return n}},t}();function eR(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var eB={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=eR(i)/eR(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ez(){return[1,0,0,1,0,0]}function eE(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function eN(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function eV(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function eF(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function eH(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function eW(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}let eG=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();var eU=Math.min,eZ=Math.max,eX=Math.abs,eY=["x","y"],eq=["width","height"],ej=new eG,eK=new eG,e$=new eG,eQ=new eG,eJ=nr(),e0=eJ.minTv,e1=eJ.maxTv,e2=[0,0],e5=function(){function t(t,e,n,i){e4(this,t,e,n,i)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=eU(t.x,this.x),n=eU(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=eZ(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=eZ(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return e6(ez(),this,t)},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&eG.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!e||!n)return!1;e instanceof t||(e=e4(nt,e.x,e.y,e.width,e.height)),n instanceof t||(n=e4(ne,n.x,n.y,n.width,n.height));var s=!!i;eJ.reset(r,s);var l=eJ.touchThreshold,u=e.x+l,h=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>h||c>p||d>f||g>v)return!1;var m=!(h<d||f<u||p<g||v<c);return(s||o)&&(e2[0]=1/0,e2[1]=0,ni(u,h,d,f,0,s,o,a),ni(c,p,g,v,1,s,o,a),s&&eG.copy(i,m?eJ.useDir?eJ.dirMinTv:e0:e1)),m},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){e8(this,t)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,n){if(!n){t!==e&&e8(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],r=n[3],o=n[4],a=n[5];t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ej.x=e$.x=e.x,ej.y=eQ.y=e.y,eK.x=eQ.x=e.x+e.width,eK.y=e$.y=e.y+e.height,ej.transform(n),eQ.transform(n),eK.transform(n),e$.transform(n),t.x=eU(ej.x,eK.x,e$.x,eQ.x),t.y=eU(ej.y,eK.y,e$.y,eQ.y);var s=eZ(ej.x,eK.x,e$.x,eQ.x),l=eZ(ej.y,eK.y,e$.y,eQ.y);t.width=s-t.x,t.height=l-t.y},t.calculateTransform=function(t,e,n){var i,r,o,a,s,l=n.width/e.width,u=n.height/e.height;return eF(t=eE(t||[]),t,ee(nn,-e.x,-e.y)),i=t,r=t,a=(o=ee(nn,l,u))[0],s=o[1],i[0]=r[0]*a,i[1]=r[1]*s,i[2]=r[2]*a,i[3]=r[3]*s,i[4]=r[4]*a,i[5]=r[5]*s,eF(t,t,ee(nn,n.x,n.y)),t},t}(),e3=e5.create,e4=e5.set,e8=e5.copy,e6=e5.calculateTransform,e7=e5.applyTransform,e9=e5.contain,nt=new e5(0,0,0,0),ne=new e5(0,0,0,0),nn=[];function ni(t,e,n,i,r,o,a,s){var l=eX(e-n),u=eX(i-t),h=eU(l,u),c=eY[r],p=eY[1-r],d=eq[r];e<n||i<t?l<u?(o&&(e1[c]=-l),s&&(a[c]=e,a[d]=0)):(o&&(e1[c]=u),s&&(a[c]=t,a[d]=0)):(a&&(a[c]=eZ(t,n),a[d]=eU(e,i)-a[c]),o&&(h<e2[0]||eJ.useDir)&&(e2[0]=eU(h,e2[0]),(l<u||!eJ.bidirectional)&&(e0[c]=l,e0[p]=0,eJ.useDir&&eJ.calcDirMTV()),(l>=u||!eJ.bidirectional)&&(e0[c]=-u,e0[p]=0,eJ.useDir&&eJ.calcDirMTV())))}function nr(){var t=0,e=new eG,n=new eG,i={minTv:new eG,maxTv:new eG,useDir:!1,dirMinTv:new eG,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=eZ(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),h=l*o.y+u*o.x;if(r(h)){r(o.x)&&r(o.y)&&a.set(0,0);return}(n.x=s*u/h,n.y=s*l/h,r(n.x)&&r(n.y))?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function r(t){return 1e-10>eX(t)}return i}let no=e5;var na="silent";function ns(){eP(this.event)}var nl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return t7(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ed),nu=function(t,e){this.x=t,this.y=e},nh=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nc=new no(0,0,0,0),np=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new nu(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new nl,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new ep(a),a}return t7(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tk(nh,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=nf(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new nu(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new nu(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ns};i&&(i[o]&&(a.cancelBubble=!!i[o].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new nu(t,e);if(nd(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new no(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(nc.copy(h.getBoundingRect()),h.transform&&nc.applyTransform(h.transform),nc.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(nd(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eL);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new nu;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(ed);function nd(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||na}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==na)){e.target=a;break}}}function nf(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function ng(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;r<n&&0>i(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function nv(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nm(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function ny(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;l<s&&0>o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function n_(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32){o=ng(t,n,i,e),nv(t,n,i,n+o,e);return}var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=ny(t[h],t,l,u,0,e);l+=p,0==(u-=p)||0!==(c=nm(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l,u,h,c=0;for(c=0;c<i;c++)a[c]=t[n+c];var p=0,d=o,f=n;if(t[f++]=t[d++],0==--s){for(c=0;c<i;c++)t[f+c]=a[p+c];return}if(1===i){for(c=0;c<s;c++)t[f+c]=t[d+c];t[f+s]=a[p];return}for(var g=r;;){l=0,u=0,h=!1;do if(0>e(t[d],a[p])){if(t[f++]=t[d++],u++,l=0,0==--s){h=!0;break}}else if(t[f++]=a[p++],l++,u=0,1==--i){h=!0;break}while((l|u)<g)if(h)break;do{if(0!==(l=ny(t[d],a,p,i,0,e))){for(c=0;c<l;c++)t[f+c]=a[p+c];if(f+=l,p+=l,(i-=l)<=1){h=!0;break}}if(t[f++]=t[d++],0==--s){h=!0;break}if(0!==(u=nm(a[p],t,d,s,0,e))){for(c=0;c<u;c++)t[f+c]=t[d+c];if(f+=u,d+=u,0==(s-=u)){h=!0;break}}if(t[f++]=a[p++],1==--i){h=!0;break}g--}while(l>=7||u>=7)if(h)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(c=0;c<s;c++)t[f+c]=t[d+c];t[f+s]=a[p]}else if(0===i)throw Error();else for(c=0;c<i;c++)t[f+c]=a[p+c]}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,p=0,d=0;if(t[c--]=t[u--],0==--i){for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h];return}for(var f=r;;){var g=0,v=0,m=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,v=0,0==--i){m=!0;break}}else if(t[c--]=a[h--],v++,g=0,1==--s){m=!0;break}while((g|v)<f)if(m)break;do{if(0!=(g=i-ny(a[h],t,n,i,i-1,e))){for(c-=g,u-=g,i-=g,d=c+1,p=u+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1==--s){m=!0;break}if(0!=(v=s-nm(t[u],a,0,s,s-1,e))){for(c-=v,h-=v,s-=v,d=c+1,p=h+1,l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){m=!0;break}}if(t[c--]=t[u--],0==--i){m=!0;break}f--}while(g>=7||v>=7)if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else if(0===s)throw Error();else for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ng(t,n,i,e))<s){var l=r;l>s&&(l=s),nv(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r)a.forceMergeRuns()}}tk(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){np.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=nf(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ea(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nx=!1;function nb(){nx||(nx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nw(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nS=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nw}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,n_(n,nw)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var p=h[c];t.__dirty&&(p.__dirty|=1),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else isNaN(t.z)&&(nb(),t.z=0),isNaN(t.z2)&&(nb(),t.z2=0),isNaN(t.zlevel)&&(nb(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,a,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=tT(this._roots,t);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();h=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nM={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-nM.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nM.bounceIn(2*t):.5*nM.bounceOut(2*t-1)+.5}},nT=Math.pow,nI=Math.sqrt,nC=nI(3),nk=1/3,nD=t9(),nA=t9(),nP=t9();function nO(t){return t>-1e-8&&t<1e-8}function nL(t){return t>1e-8||t<-1e-8}function nR(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function nB(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function nz(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(nO(h)&&nO(c))if(nO(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=c*c-4*h*p;if(nO(g)){var v=c/h,f=-s/a+v,m=-v/2;f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m)}else if(g>0){var y=nI(g),_=h*s+1.5*a*(-c+y),x=h*s+1.5*a*(-c-y),f=(-s-((_=_<0?-nT(-_,nk):nT(_,nk))+(x=x<0?-nT(-x,nk):nT(x,nk))))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*nI(h*h*h)))/3,w=nI(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),m=(-s+w*(S+nC*Math.sin(b)))/(3*a),M=(-s+w*(S-nC*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[d++]=f),m>=0&&m<=1&&(o[d++]=m),M>=0&&M<=1&&(o[d++]=M)}}return d}function nE(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(nO(a)){if(nL(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(nO(h))r[0]=-o/(2*a);else if(h>0){var c=nI(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function nN(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function nV(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function nF(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function nH(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function nW(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}var nG=/cubic-bezier\(([0-9,\.e ]+)\)/;function nU(t){var e=t&&nG.exec(t);if(e){var n=e[1].split(","),i=+t$(n[0]),r=+t$(n[1]),o=+t$(n[2]),a=+t$(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:nz(0,i,o,1,t,s)&&nR(0,r,a,1,s[0])}}}var nZ=function(){function t(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||t4,this.ondestroy=t.ondestroy||t4,this.onrestart=t.onrestart||t4,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tz(t)?t:nM[t]||nU(t)},t}(),nX=function(t){this.value=t},nY=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new nX(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),nq=function(){function t(t){this._list=new nY,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new nX(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),nj={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 nK(t){return(t=Math.round(t))<0?0:t>255?255:t}function n$(t){return t<0?0:t>1?1:t}function nQ(t){return t.length&&"%"===t.charAt(t.length-1)?nK(parseFloat(t)/100*255):nK(parseInt(t,10))}function nJ(t){return t.length&&"%"===t.charAt(t.length-1)?n$(parseFloat(t)/100):n$(parseFloat(t))}function n0(t,e,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function n1(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function n2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var n5=new nq(20),n3=null;function n4(t,e){n3&&n2(n3,e),n3=n5.put(t,n3||e.slice())}function n8(t,e){if(t){e=e||[];var n=n5.get(t);if(n)return n2(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in nj)return n2(e,nj[i]),n4(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var o=parseInt(i.slice(1,4),16);return o>=0&&o<=4095?(n1(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),n4(t,e),e):void n1(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(i.slice(1,7),16);return o>=0&&o<=0xffffff?(n1(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),n4(t,e),e):void n1(e,0,0,0,1)}return}var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?n1(e,+u[0],+u[1],+u[2],1):n1(e,0,0,0,1);h=nJ(u.pop());case"rgb":if(u.length>=3)return n1(e,nQ(u[0]),nQ(u[1]),nQ(u[2]),3===u.length?h:nJ(u[3])),n4(t,e),e;return void n1(e,0,0,0,1);case"hsla":if(4!==u.length)return void n1(e,0,0,0,1);return u[3]=nJ(u[3]),n6(u,e),n4(t,e),e;case"hsl":if(3!==u.length)return void n1(e,0,0,0,1);return n6(u,e),n4(t,e),e;default:return}}n1(e,0,0,0,1)}}function n6(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=nJ(t[1]),r=nJ(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return n1(e=e||[],nK(255*n0(a,o,n+1/3)),nK(255*n0(a,o,n)),nK(255*n0(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function n7(t,e){var n=n8(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return it(n,4===n.length?"rgba":"rgb")}}function n9(t,e,n,i){var r,o=n8(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=Math.round(r=tz(e)?e(o[0]):e))<0?0:r>360?360:r),null!=n&&(o[1]=nJ(tz(n)?n(o[1]):n)),null!=i&&(o[2]=nJ(tz(i)?i(o[2]):i)),it(n6(o),"rgba")}function it(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function ie(t,e){var n=n8(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ii=new nq(100);function ir(t){if(tE(t)){var e=ii.get(t);return e||(e=n7(t,-.1),ii.put(t,e)),e}if(tU(t)){var n=tS({},t);return n.colorStops=tD(t.colorStops,function(t){return{offset:t.offset,color:n7(t.color,-.1)}}),n}return t}var io=Math.round;function ia(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=n8(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function is(t){return t<1e-4&&t>-1e-4}function il(t){return io(1e3*t)/1e3}function iu(t){return io(1e4*t)/1e4}var ih={left:"start",right:"end",center:"middle",middle:"middle"};function ic(t){return t&&!!t.image}function ip(t){return ic(t)||t&&!!t.svgElement}function id(t){return"linear"===t.type}function ig(t){return"radial"===t.type}function iv(t){return t&&("linear"===t.type||"radial"===t.type)}function im(t){return"url(#"+t+")"}function iy(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function i_(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*t8,r=tX(t.scaleX,1),o=tX(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+io(a*t8)+"deg, "+io(s*t8)+"deg)"),l.join(" ")}var ix="u">typeof Buffer&&"function"==typeof Buffer.from?function(t){return Buffer.from(t).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null},ib=Array.prototype.slice;function iw(t,e,n,i){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(n[a]-r)*i+r);return t}function iS(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function iM(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function iT(t){if(tC(t)){var e=t.length;if(tC(t[0])){for(var n=[],i=0;i<e;i++)n.push(ib.call(t[i]));return n}return ib.call(t)}return t}function iI(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function iC(t){return 4===t||5===t}function ik(t){return 1===t||2===t}var iD=[0,0,0,0],iA=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(tC(e)){var l=tC(e&&e[0])?2:1;a=l,(1!==l||tV(e[0]))&&(2!==l||tV(e[0][0]))||(o=!0)}else if(tV(e)&&e==e)a=0;else if(tE(e))if(isNaN(+e)){var u=n8(e);u&&(s=u,a=3)}else a=0;else if(tU(e)){var h=tS({},s);h.colorStops=tD(e.colorStops,function(t){return{offset:t.offset,color:n8(t.color)}}),id(e)?a=4:ig(e)&&(a=5),s=h}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=tz(n)?n:nM[n]||nU(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ik(i),l=iC(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,!a&&(s&&u!==r-1?function(t,e,n){if(t.push&&e.push){var i=t.length,r=e.length;if(i!==r)if(i>r)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:ib.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(c,p,i):l&&function(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}(c.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=iS([],n[u].value,d,-1):ik(i)&&(n[u].additiveValue=1===i?iS([],n[u].value,d,-1):iM([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?iD:t[h];if((ik(s)||c)&&!v&&(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ik(s))1===s?iw(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*i+s)}}(v,i[a],r[a],g);else if(iC(s)){var m,y,_,x,b,w=i[a],S=r[a],M=4===s;(t[h]={type:M?"linear":"radial",x:(m=w.x,(S.x-m)*g+m),y:(y=w.y,(S.y-y)*g+y),colorStops:tD(w.colorStops,function(t,e){var n,i=S.colorStops[e];return{offset:(n=t.offset,(i.offset-n)*g+n),color:iI(iw([],t.color,i.color,g))}}),global:S.global},M)?(t[h].x2=(_=w.x2,(S.x2-_)*g+_),t[h].y2=(x=w.y2,(S.y2-x)*g+x)):t[h].r=(b=w.r,(S.r-b)*g+b)}else if(c)iw(v,i[a],r[a],g),o||(t[h]=iI(v));else{var T,I=(T=i[a],(r[a]-T)*g+T);o?this._additiveValue=I:t[h]=I}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(n8(t[n],iD),iS(iD,iD,i,1),t[n]=iI(iD)):1===e?iS(t[n],t[n],i,1):2===e&&iM(t[n],t[n],i,1)},t}(),iP=function(){function t(t,e,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i)?tx("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,tO(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new iA(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=iI(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,iT(l),i),this._trackKeys.push(a)}s.addKeyframe(t,iT(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new nZ({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return tD(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=iT(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tO(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function iO(){return new Date().getTime()}var iL=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return t7(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=iO()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,h(function e(){t._running&&(h(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=iO(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iO(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iO()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new iP(t,e.loop);return this.addAnimator(n),n},e}(ed),iR=tn.domSupported,iB=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=tD(n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:r}),iz=["mousemove","mouseup"],iE=["pointermove","pointerup"],iN=!1;function iV(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iF(t){t&&(t.zrByTouch=!0)}function iH(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var iW=function(t,e){this.stopPropagation=t4,this.stopImmediatePropagation=t4,this.preventDefault=t4,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iG={mousedown:function(t){t=eA(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eA(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eA(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){iH(this,(t=eA(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){iN=!0,t=eA(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){iN||(t=eA(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iF(t=eA(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iG.mousemove.call(this,t),iG.mousedown.call(this,t)},touchmove:function(t){iF(t=eA(this.dom,t)),this.handler.processGesture(t,"change"),iG.mousemove.call(this,t)},touchend:function(t){iF(t=eA(this.dom,t)),this.handler.processGesture(t,"end"),iG.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&iG.click.call(this,t)},pointerdown:function(t){iG.mousedown.call(this,t)},pointermove:function(t){iV(t)||iG.mousemove.call(this,t)},pointerup:function(t){iG.mouseup.call(this,t)},pointerout:function(t){iV(t)||iG.mouseout.call(this,t)}};tk(["click","dblclick","contextmenu"],function(t){iG[t]=function(e){e=eA(this.dom,e),this.trigger(t,e)}});var iU={pointermove:function(t){iV(t)||iU.mousemove.call(this,t)},pointerup:function(t){iU.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iZ(t,e,n,i){var r;t.mounted[e]=n,t.listenerOpts[e]=i,r=t.domTarget,r.addEventListener(e,n,i)}function iX(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=r[o],i=t.listenerOpts[o],e.removeEventListener(o,n,i));t.mounted={}}var iY=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},iq=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new iY(e,iG),iR&&(o._globalHandlerScope=new iY(document,iU)),r=(i=o._localHandlerScope).domHandlers,tn.pointerEventsSupported?tk(iB.pointer,function(t){iZ(i,t,function(e){r[t].call(o,e)})}):(tn.touchEventsSupported&&tk(iB.touch,function(t){iZ(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),tk(iB.mouse,function(t){iZ(i,t,function(e){e=eD(e),i.touching||r[t].call(o,e)})})),o}return t7(e,t),e.prototype.dispose=function(){iX(this._localHandlerScope),iR&&iX(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,iR&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){tn.pointerEventsSupported?tk(iE,n):tn.touchEventsSupported||tk(iz,n);function n(n){iZ(e,n,function(i){if(!iH(t,(i=eD(i)).target)){var r;r=i,i=eA(t.dom,new iW(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):iX(e)}},e}(ed),ij=1;tn.hasGlobalWindow&&(ij=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iK=ij,i$="#333",iQ="#ccc";function iJ(t){return t>5e-5||t<-5e-5}var i0=[],i1=[],i2=ez(),i5=Math.abs,i3=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return i4(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 iJ(this.rotation)||iJ(this.x)||iJ(this.y)||iJ(this.scaleX-1)||iJ(this.scaleY-1)||iJ(this.skewX)||iJ(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(eE(n),this.invTransform=null);return}n=n||ez(),e?this.getLocalTransform(n):eE(n),t&&(e?eV(n,t,n):eN(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||ez(),eW(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(i0);var n=i0[0]<0?-1:1,i=i0[1]<0?-1:1,r=((i0[0]-n)*e+n)/i0[0]||0,o=((i0[1]-i)*e+i)/i0[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ez(),eV(i1,t.invTransform,e),e=i1);var n=this.originX,i=this.originY;(n||i)&&(i2[4]=n,i2[5]=i,eV(i1,e,i2),i1[4]-=n,i1[5]-=i,e=i1),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&el(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&el(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&i5(t[0]-1)>1e-10&&i5(t[3]-1)>1e-10?Math.sqrt(i5(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){i7(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&eH(e,e,l),e[4]+=n+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).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}(),i4=i3.getLocalTransform;function i8(){return new i3}var i6=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function i7(t,e){var n=t;n=n||{};for(var i=0;i<i6.length;i++){var r=i6[i];n[r]=e[r]}return n}function i9(t){c||(c=new nq(100)),t=t||tr;var e=c.get(t);return e||(e={font:t,strWidthCache:new nq(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ta.measureText("国",t).width,asciiCharWidth:ta.measureText("a",t).width},c.put(t,e)),e}var rt=0;function re(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(rt>=5)){t=t||tr;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=ta.measureText(String.fromCharCode(i),t).width;var r=new Date-n;return r>16?rt=5:r>2&&rt++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function rn(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=ta.measureText(e,t.font).width,n.put(e,i)),i}function ri(t,e,n,i){var r=rn(i9(e),t),o=rs(e);return new no(ro(0,r,n),ra(0,o,i),r,o)}function rr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return ri(r[0],e,n,i);for(var o=new no(0,0,0,0),a=0;a<r.length;a++){var s=ri(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function ro(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function ra(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function rs(t){return i9(t).stWideCharWidth}function rl(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ru(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=rl(i[0],n.width),u+=rl(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var rh="__zr_normal__",rc=i6.concat(["ignore"]),rp=tA(i6,function(t,e){return t[e]=!0,t},{ignore:!1}),rd={},rf=new no(0,0,0,0),rg=[],rv=function(){function t(t){this.id=t_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,h=n.autoOverflowArea,c=void 0;if((h||u)&&(c=rf,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(rd,n,c):ru(rd,n,c),r.x=rd.x,r.y=rd.y,o=rd.align,a=rd.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*c.width,f=.5*c.height):(d=rl(p[0],c.width),f=rl(p[1],c.height)),l=!0,r.originX=-r.x+d+(i?0:c.x),r.originY=-r.y+f+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=v.overflowRect=v.overflowRect||new no(0,0,0,0);r.getLocalTransform(rg),eW(rg,rg),no.copy(m,c),m.applyTransform(rg)}else v.overflowRect=null;var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=void 0,x=void 0,b=void 0;y&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),b=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),b=!0)),((_=_||"#000")!==v.fill||x!==v.stroke||b!==v.autoStroke||o!==v.align||a!==v.verticalAlign)&&(s=!0,v.fill=_,v.stroke=x,v.autoStroke=b,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?iQ:i$},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&n8(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,it(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},tS(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(tF(t))for(var n=tO(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===rh)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,rc)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(rh,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===rh;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tT(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tx("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=this._textContent,u=r_(this,l,r,i);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,r,this._normalState,e,rb(this,n,s),s);var h=this._textGuide;return l&&l.useState(t,e,n,!!u),h&&h.useState(t,e,n,!!u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=this._textContent,p=r_(this,c,h,n);p&&!this.__inHover&&(this.__inHover=p);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,rb(this,e,f),f);var g=this._textGuide;c&&c.useStates(t,e,!!p),g&&g.useStates(t,e,!!p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=tT(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=tT(i,t),o=tT(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];tS(n,r),r.textConfig&&tS(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){if(1!==this.__inHover){var a=!(e&&i);e&&e.textConfig?(this.textConfig=tS({},i?this.textConfig:n.textConfig),tS(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<rc.length;u++){var h=rc[u],c=r&&rp[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(var u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i3,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),tS(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=new iP(t?this[t]:this,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=tT(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){rm(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){rm(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=rm(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function rm(t,e,n,i,r){var o=[];!function t(e,n,i,r,o,a,s,l){for(var u=tO(r),h=o.duration,c=o.delay,p=o.additive,d=o.setToFinal,f=!tF(a),g=e.animators,v=[],m=0;m<u.length;m++){var y=u[m],_=r[y];if(null!=_&&null!=i[y]&&(f||a[y]))if(!tF(_)||tC(_)||tU(_))v.push(y);else{if(n){l||(i[y]=_,e.updateDuringAnimation(n));continue}t(e,y,i[y],_,o,a&&a[y],s,l)}else l||(i[y]=_,e.updateDuringAnimation(n),v.push(y))}var x=v.length;if(!p&&x)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===n&&w.stopTracks(v)){var S=tT(g,w);g.splice(S,1)}}if(o.force||(x=(v=tP(v,function(t){var e,n;return!((e=r[t])===(n=i[t])||tC(e)&&tC(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,n))})).length),x>0||o.force&&!s.length){var M=void 0,T=void 0,I=void 0;if(l){T={},d&&(M={});for(var b=0;b<x;b++){var y=v[b];T[y]=i[y],d?M[y]=r[y]:i[y]=r[y]}}else if(d){I={};for(var b=0;b<x;b++){var y=v[b];I[y]=iT(i[y]),function(t,e,n){if(tC(e[n]))if(tC(t[n])||(t[n]=[]),tW(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),ry(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(tC(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?ry(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ry(o,r,a);o.length=r.length}else t[n]=e[n]}(i,r,y)}}var w=new iP(i,!1,!1,p?tP(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),d&&M&&w.whenWithKeys(0,M,v),I&&w.whenWithKeys(0,I,v),w.whenWithKeys(null==h?500:h,l?T:r,v).delay(c||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};!a&&l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function ry(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function r_(t,e,n,i){return!(n&&n.hoverLayer||i)||rx(t)||e&&rx(e)?0:1}function rx(t){return"text"===t.type||"tspan"===t.type}function rb(t,e,n){return!e&&!t.__inHover&&n&&n.duration>0}tI(rv,ed),tI(rv,i3);var rw=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t7(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=tT(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=tT(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new no(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(no.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(rv);rw.prototype.type="group";let rS=rw;var rM={},rT={},rI=function(){function t(t,e,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new nS,a=n.renderer||"canvas";rM[a]||(a=tO(rM)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new rM[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=tn.node||tn.worker||l?null:new iq(s.getViewportRoot(),s.root),h=n.useCoarsePointer;(null==h||"auto"===h?tn.touchEventsSupported:!!h)&&(i=tX(n.pointerSize,44)),this.handler=new np(o,s,u,s.root,i),this.animation=new iL({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>ie(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=ie(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=iO(),i=this._needsRefresh,r=this._needsRefreshHover;(i||r)&&(e=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:r}));var o=iO();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rS&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;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,t=this.id,delete rT[t]}},t}();function rC(t,e){var n=new rI(t_(),t,e);return rT[n.id]=n,n}var rk=Math.min,rD=Math.max,rA=Math.abs,rP=Math.round,rO=Math.floor,rL=Math.ceil,rR=Math.pow,rB=Math.log,rz=Math.LN10,rE=Math.PI,rN=Math.random;function rV(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var rF=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return rH(t,e,n)};function rH(t,e,n){if(tE(t))return t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t);return null==t?0/0:+t}function rW(t,e,n){return isNaN(e)?n?""+t:+t:(e=rk(rD(0,e),20),t=(+t).toFixed(e),n?t:+t)}function rG(t){return t.sort(function(t,e){return t-e}),t}function rU(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,i,r,o,a=1,s=0;s<15;s++,a*=10)if(rP(t*a)/a===t)return s}return i=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,r=n>0?n:e.length,rD(0,((o=e.indexOf("."))<0?0:r-1-o)-i)}function rZ(t,e,n){var i=rA(t[1]-t[0]);if(!isFinite(i)||0===i)return 0/0;var r=rD(0,rL(-(rB(2*rA(n||1)*rA(i))/rz)+rB(rA(e))/rz));return isFinite(r)||(r=0/0),r}function rX(t,e){var n=rD(rU(t),rU(e)),i=t+e;return n>20?i:rW(i,n)}var rY=rR(2,53)-1;function rq(t){var e=2*rE;return(t%e+e)%e}function rj(t){return t>-1e-4&&t<1e-4}var rK=/^(?:(\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 r$(t){if(t instanceof Date)return t;if(tE(t)){var e=rK.exec(t);if(!e)return new Date(0/0);if(!e[8])return new Date(+e[1],(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(0/0):new Date(rP(t))}function rQ(t){return rR(10,rJ(t))}function rJ(t){if(0===t)return 0;var e=rO(rB(t)/rz);return t/rR(10,e)>=10&&e++,e}function r0(t,e){var n=rJ(t),i=rR(10,n),r=t/i;return rW(t=(2===e?1:e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,-n)}function r1(t,e){var n=(t.length-1)*e+1,i=rO(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function r2(t){var e=parseFloat(t);return e==t&&(0!==e||!tE(t)||0>=t.indexOf("x"))?e:0/0}function r5(){return rP(9*rN())}function r3(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function r4(t){return null!=t&&isFinite(t)}var r8="series\0";function r6(t){return t instanceof Array?t:null==t?[]:[t]}function r7(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var r9=["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 ot(t){return!tF(t)||tB(t)||t instanceof Date?t:t.value}function oe(t,e,n){var i=oi(e[t],null),r=oi(n[t],null);return null!=i&&null!=r&&i===r}function on(t){return oi(t,"")}function oi(t,e){return null==t?e:tE(t)?t:tV(t)||tN(t)?t+"":e}function or(t){var e=t.name;return!!(e&&e.indexOf(r8))}function oo(t){return t&&null!=t.id&&0===on(t.id).indexOf("\0_ec_\0")}function oa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?tB(e.dataIndex)?tD(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?tB(e.name)?tD(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function os(){var t="__ec_inner_"+ol++;return function(e){return e[t]||(e[t]={})}}var ol=r5();function ou(t,e,n){var i=oh(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=od(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function oh(t,e){if(tE(t)){var n,i={};i[t+"Index"]=0,n=i}else n=t;var r=t2(),o={},a=!1;return tk(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){o[n]=t;return}var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>tT(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var oc={useDefault:!0,enableAll:!1,enableNone:!1},op={useDefault:!1,enableAll:!0,enableNone:!0};function od(t,e,n,i){i=i||oc;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r)if(i.enableNone)return s.models=[],s;else r=-1;return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function of(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function og(){}function ov(){return[1/0,-1/0]}function om(t,e){o_(e)&&e<t[0]&&(t[0]=e)}function oy(t,e){o_(e)&&e>t[1]&&(t[1]=e)}function o_(t){return null!=t&&isFinite(t)}function ox(t,e){return o_(t)&&o_(e)&&t<=e}function ob(t){ox(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function ow(){var t="__ec_once_"+oS++;return function(e,n){t3(e,t)||(e[t]=1,n())}}og.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=0/0,this},og.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)};var oS=r5();function oM(t,e,n){var i=t2(),r=0;tk(t,function(o){var a=e(o),s=i.get(a)||0;n&&n(o,s),s||n||(t[r++]=o),i.set(a,s+1)}),n||(t.length=r)}function oT(t){return t.value+""}function oI(t){return t+""}function oC(t,e){return tX(e,!0)?t.seriesIndex+2:0}function ok(t,e,n){var i=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function oD(t){return{overallReset:t}}var oA="___EC__COMPONENT__CONTAINER___",oP="___EC__EXTENDED_CLASS___";function oO(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oL(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;if(tz(e=i)&&/^class\s/.test(Function.prototype.toString.call(e)))n=function(t){function e(){return t.apply(this,arguments)||this}return tt(e,t),e}(i);else{var r=n=function(){(t.$constructor||i).apply(this,arguments)},o=r.prototype;function a(){}for(var s in a.prototype=this.prototype,r.prototype=new a,o)o.hasOwnProperty(s)&&(r.prototype[s]=o[s]);r.prototype.constructor=r,r.superClass=this}return tS(n.prototype,t),n[oP]=!0,n.extend=this.extend,n.superCall=oz,n.superApply=oE,n.superClass=i,n}}function oR(t,e){t.extend=e.extend}var oB=Math.round(10*Math.random());function oz(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function oE(t,e,n){return this.superClass.prototype[e].apply(t,n)}function oN(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){tK(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var i,r,o=oO(n);o.sub?o.sub!==oA&&(((r=e[(i=o).main])&&r[oA]||((r=e[i.main]={})[oA]=!0),r)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[oA]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=oO(t),i=[],r=e[n.main];return r&&r[oA]?tk(r,function(t,e){e!==oA&&i.push(t)}):i.push(r),i},t.hasClass=function(t){return!!e[oO(t).main]},t.getAllClassMainTypes=function(){var t=[];return tk(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[oO(t).main];return n&&n[oA]}}function oV(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&tT(i,s)>=0||r&&0>tT(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var oF=oV([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oH=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return oF(this,t,e)},t}(),oW=new nq(50);function oG(t,e,n,i,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=oW.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?oZ(e=o.image)||o.pending.push(a):((e=ta.loadImage(t,oU,oU)).__zrImageSrc=t,oW.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function oU(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function oZ(t){return t&&t.width&&t.height}var oX=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oY(t,e,n,i){var r=tS({},i=i||{});n=tX(n,"..."),r.maxIterations=tX(i.maxIterations,2);var o=r.minChar=tX(i.minChar,0),a=r.fontMeasureInfo=i9(e),s=a.asciiCharWidth;r.placeholder=tX(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var h=rn(a,n);return h>l&&(n="",h=0),l=t-h,r.ellipsis=n,r.ellipsisWidth=h,r.contentWidth=l,r.containerWidth=t,r}function oq(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var a=rn(o,e);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=re(n,t.charCodeAt(r));return r}(e,r,o):a>0?Math.floor(e.length*r/a):0;a=rn(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var oj=function(){},oK=function(t){this.tokens=[],t&&(this.tokens=t)},o$=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oQ(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=rl(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=o0(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=i9(h),m=0;m<o.length;m++){var y=o[m],_=new oj;if(_.styleName=r,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[m]:rn(v,y),m||c)u.push(new oK([_]));else{var x=(u[u.length-1]||(u[0]=new oK)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var oJ=tA(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function o0(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=i9(e),p=0;p<t.length;p++){var d=t.charAt(p);if("\n"===d){l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0;continue}var f=re(c,d.charCodeAt(0)),g=!i&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!oJ[t]}(d);if(o.length?h+f>n:r+h+f>n){h?(s||l)&&(g?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f));continue}h+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function o1(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;no.set(o2,ro(n,a,r),ra(i,s,o),a,s),no.intersect(e,o2,null,o5);var l=o5.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=ro(l.x,l.width,r,!0),t.baseY=ra(l.y,l.height,o,!0)}}var o2=new no(0,0,0,0),o5={outIntersectRect:{},clamp:!0};function o3(t){return null!=t?t+="":t=""}function o4(t,e,n,i){var r=new no(ro(t.x||0,e,t.textAlign),ra(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:o8(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function o8(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var o6="__zr_style_"+Math.round(10*Math.random()),o7={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},o9={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};o7[o6]=!0;var at=["z","z2","invisible"],ae=["invisible"],an=function(t){var e;function n(e){return t.call(this,e)||this}return t7(n,t),n.prototype._init=function(e){for(var n=tO(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(t){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,ai.copy(r.getBoundingRect()),r.transform&&ai.applyTransform(r.transform),ar.width=o,ar.height=a,!ai.intersect(ar))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new no(0,0,0,0)),e?no.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new no(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:tS(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return t5(o7,t)},n.prototype.useStyle=function(t){t[o6]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},n.prototype._useHoverStyle=function(t){this.__hoverStyle=t},n.prototype.isStyleObject=function(t){return t[o6]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,at)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r),u=1===this.__inHover;if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var c=tO(h),p=0;p<c.length;p++){var d=c[p];d in s&&(s[d]=s[d],this.style[d]=h[d])}for(var f=tO(s),p=0;p<f.length;p++){var d=f[p];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u)for(var g=this.__inHover?ae:at,p=0;p<g.length;p++){var d=g[p];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return tS(t,e),t},n.prototype.getAnimationStyleProps=function(){return o9},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),n}(rv),ai=new no(0,0,0,0),ar=new no(0,0,0,0),ao=Math.min,aa=Math.max,as=Math.sin,al=Math.cos,au=2*Math.PI,ah=t9(),ac=t9(),ap=t9();function ad(t,e,n,i,r,o){r[0]=ao(t,n),r[1]=ao(e,i),o[0]=aa(t,n),o[1]=aa(e,i)}var af=[],ag=[],av={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},am=[],ay=[],a_=[],ax=[],ab=[],aw=[],aS=Math.min,aM=Math.max,aT=Math.cos,aI=Math.sin,aC=Math.abs,ak=Math.PI,aD=2*ak,aA="u">typeof Float32Array,aP=[];function aO(t){return Math.round(t/ak*1e8)/1e8%2*ak}var aL=function(){var t;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,e,n){(n=n||0)>0&&(this._ux=aC(n/iK/t)||0,this._uy=aC(n/iK/e)||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,e){return this._drawPendingPt(),this.addData(av.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=aC(t-this._xi),i=aC(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(av.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(av.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(av.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),aP[0]=i,aP[1]=r,(a=aO(aP[0]))<0&&(a+=aD),s=a-aP[0],l=aP[1]+s,!o&&l-a>=aD?l=a+aD:o&&a-l>=aD?l=a-aD:!o&&a>l?l=a+(aD-aO(a-l)):o&&a<l&&(l=a-(aD-aO(l-a))),aP[0]=a,aP[1]=l,i=aP[0];var a,s,l,u=(r=aP[1])-i;return this.addData(av.A,t,e,n,n,i,u,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=aT(r)*n+t,this._yi=aI(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(av.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(av.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,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){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&aA&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(aA&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(var r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[i++]=s[a];this._len=i}},e.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[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=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,aA&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){a_[0]=a_[1]=ab[0]=ab[1]=Number.MAX_VALUE,ax[0]=ax[1]=aw[0]=aw[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case av.M:n=r=e[t++],i=o=e[t++],ab[0]=r,ab[1]=o,aw[0]=r,aw[1]=o;break;case av.L:ad(n,i,e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.C:!function(t,e,n,i,r,o,a,s,l,u){var h=nE(t,n,r,a,af);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<h;c++){var p=nR(t,n,r,a,af[c]);l[0]=ao(p,l[0]),u[0]=aa(p,u[0])}h=nE(e,i,o,s,ag);for(var c=0;c<h;c++){var d=nR(e,i,o,s,ag[c]);l[1]=ao(d,l[1]),u[1]=aa(d,u[1])}l[0]=ao(t,l[0]),u[0]=aa(t,u[0]),l[0]=ao(a,l[0]),u[0]=aa(a,u[0]),l[1]=ao(e,l[1]),u[1]=aa(e,u[1]),l[1]=ao(s,l[1]),u[1]=aa(s,u[1])}(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.Q:!function(t,e,n,i,r,o,a,s){var l=aa(ao(nH(t,n,r),1),0),u=aa(ao(nH(e,i,o),1),0),h=nV(t,n,r,l),c=nV(e,i,o,u);a[0]=ao(t,r,h),a[1]=ao(e,o,c),s[0]=aa(t,r,h),s[1]=aa(e,o,c)}(n,i,e[t++],e[t++],e[t],e[t+1],ab,aw),n=e[t++],i=e[t++];break;case av.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=aT(p)*h+l,o=aI(p)*c+u),function(t,e,n,i,r,o,a,s,l){var u=Math.abs(r-o);if(u%au<1e-4&&u>1e-4){s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;return}if(ah[0]=al(r)*n+t,ah[1]=as(r)*i+e,ac[0]=al(o)*n+t,ac[1]=as(o)*i+e,eu(s,ah,ac),eh(l,ah,ac),(r%=au)<0&&(r+=au),(o%=au)<0&&(o+=au),r>o&&!a?o+=au:r<o&&a&&(r+=au),a){var h=o;o=r,r=h}for(var c=0;c<o;c+=Math.PI/2)c>r&&(ap[0]=al(c)*n+t,ap[1]=as(c)*i+e,eu(s,ap,s),eh(l,ap,l))}(l,u,h,c,p,d,f,ab,aw),n=aT(d)*h+l,i=aI(d)*c+u;break;case av.R:ad(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ab,aw);break;case av.Z:n=r,i=o}eu(a_,a_,ab),eh(ax,ax,aw)}return 0===t&&(a_[0]=a_[1]=ax[0]=ax[1]=0),new no(a_[0],a_[1],ax[0]-a_[0],ax[1]-a_[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case av.M:r=a=t[c++],o=s=t[c++];break;case av.L:var g=t[c++],v=t[c++],m=g-r,y=v-o;(aC(m)>n||aC(y)>i||c===e-1)&&(f=Math.sqrt(m*m+y*y),r=g,o=v);break;case av.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,i,r,o,a,s){for(var l=t,u=e,h=0,c=1;c<=10;c++){var p=.1*c,d=nR(t,n,r,a,p),f=nR(e,i,o,s,p),g=d-l,v=f-u;h+=Math.sqrt(g*g+v*v),l=d,u=f}return h}(r,o,_,x,g,v,b,w),r=b,o=w;break;case av.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];f=function(t,e,n,i,r,o){for(var a=t,s=e,l=0,u=1;u<=10;u++){var h=.1*u,c=nV(t,n,r,h),p=nV(e,i,o,h),d=c-a,f=p-s;l+=Math.sqrt(d*d+f*f),a=c,s=p}return l}(r,o,_,x,g,v),r=g,o=v;break;case av.A:var S=t[c++],M=t[c++],T=t[c++],I=t[c++],C=t[c++],k=t[c++],D=k+C;c+=1,d&&(a=aT(C)*T+S,s=aI(C)*I+M),f=aM(T,I)*aS(aD,Math.abs(k)),r=aT(D)*T+S,o=aI(D)*I+M;break;case av.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case av.Z:var m=a-r,y=s-o;f=Math.sqrt(m*m+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=p[x++],w=1===x;switch(w&&(r=p[x],o=p[x+1],n=r,i=o),b!==av.L&&_>0&&(t.lineTo(h,c),_=0),b){case av.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case av.L:a=p[x++],s=p[x++];var S=aC(a-r),M=aC(s-o);if(S>d||M>f){if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=T}t.lineTo(a,s),r=a,o=s,_=0}else{var C=S*S+M*M;C>_&&(h=a,c=s,_=C)}break;case av.C:var k=p[x++],D=p[x++],A=p[x++],P=p[x++],O=p[x++],L=p[x++];if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;nN(r,k,A,O,I,am),nN(o,D,P,L,I,ay),t.bezierCurveTo(am[1],ay[1],am[2],ay[2],am[3],ay[3]);break t}m+=T}t.bezierCurveTo(k,D,A,P,O,L),r=O,o=L;break;case av.Q:var k=p[x++],D=p[x++],A=p[x++],P=p[x++];if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;nW(r,k,A,I,am),nW(o,D,P,I,ay),t.quadraticCurveTo(am[1],ay[1],am[2],ay[2]);break t}m+=T}t.quadraticCurveTo(k,D,A,P),r=A,o=P;break;case av.A:var R=p[x++],B=p[x++],z=p[x++],E=p[x++],N=p[x++],V=p[x++],F=p[x++],H=!p[x++],W=z>E?z:E,G=aC(z-E)>.001,U=N+V,Z=!1;if(v){var T=l[y++];m+T>u&&(U=N+V*(u-m)/T,Z=!0),m+=T}if(G&&t.ellipse?t.ellipse(R,B,z,E,F,N,U,H):t.arc(R,B,W,N,U,H),Z)break t;w&&(n=aT(N)*z+R,i=aI(N)*E+B),r=aT(U)*z+R,o=aI(U)*E+B;break;case av.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var X=p[x++],Y=p[x++];if(v){var T=l[y++];if(m+T>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+aS(q,X),s),(q-=X)>0&&t.lineTo(a+X,s+aS(q,Y)),(q-=Y)>0&&t.lineTo(a+aM(X-q,0),s+Y),(q-=X)>0&&t.lineTo(a,s+aM(Y-q,0));break t}m+=T}t.rect(a,s,X,Y);break;case av.Z:if(v){var T=l[y++];if(m+T>u){var I=(u-m)/T;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=T}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=av,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function aR(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||a<e-r&&a<i-r||o>t+r&&o>n+r||o<t-r&&o<n-r)return!1;if(t===n)return Math.abs(o-t)<=r/2;s=(e-i)/(t-n);var u=s*o-a+(l=(t*i-n*e)/(t-n));return u*u/(s*s+1)<=r/2*r/2}var aB=2*Math.PI;function az(t){return(t%=aB)<0&&(t+=aB),t}var aE=2*Math.PI;function aN(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;(1===a||0===a)&&(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var aV=aL.CMD,aF=2*Math.PI,aH=[-1,-1,-1],aW=[-1,-1];function aG(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;f<l;){var g,v,m,y,_,x,b,w,S,M,T,I,C,k,D=s[f++],A=1===f;switch(D===aV.M&&f>1&&!n&&(u+=aN(h,c,p,d,i,r)),A&&(h=s[f],c=s[f+1],p=h,d=c),D){case aV.M:p=s[f++],d=s[f++],h=p,c=d;break;case aV.L:if(n){if(aR(h,c,s[f],s[f+1],e,i,r))return!0}else u+=aN(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.C:if(n){if(g=h,v=c,m=s[f++],y=s[f++],_=s[f++],x=s[f++],b=s[f],w=s[f+1],0!==e&&(!(r>v+e)||!(r>y+e)||!(r>x+e)||!(r>w+e))&&(!(r<v-e)||!(r<y-e)||!(r<x-e)||!(r<w-e))&&(!(i>g+e)||!(i>m+e)||!(i>_+e)||!(i>b+e))&&(!(i<g-e)||!(i<m-e)||!(i<_-e)||!(i<b-e))&&function(t,e,n,i,r,o,a,s,l,u){var h,c,p,d,f,g=.005,v=1/0;nD[0]=l,nD[1]=u;for(var m=0;m<1;m+=.05)nA[0]=nR(t,n,r,a,m),nA[1]=nR(e,i,o,s,m),(d=es(nD,nA))<v&&(h=m,v=d);v=1/0;for(var y=0;y<32&&!(g<1e-4);y++)c=h-g,p=h+g,nA[0]=nR(t,n,r,a,c),nA[1]=nR(e,i,o,s,c),d=es(nA,nD),c>=0&&d<v?(h=c,v=d):(nP[0]=nR(t,n,r,a,p),nP[1]=nR(e,i,o,s,p),f=es(nP,nD),p<=1&&f<v?(h=p,v=f):g*=.5);return nI(v)}(g,v,m,y,_,x,b,w,i,r)<=e/2)return!0}else u+=function(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var h=nz(e,i,o,s,u,aH);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;g<h;g++){var v=aH[g],m=0===v||1===v?.5:1;nR(t,n,r,a,v)<l||(p<0&&(p=nE(e,i,o,s,aW),aW[1]<aW[0]&&p>1&&function(){var t=aW[0];aW[0]=aW[1],aW[1]=t}(),d=nR(e,i,o,s,aW[0]),p>1&&(f=nR(e,i,o,s,aW[1]))),2===p?v<aW[0]?c+=d<e?m:-m:v<aW[1]?c+=f<d?m:-m:c+=s<f?m:-m:v<aW[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.Q:if(n){if(S=h,M=c,T=s[f++],I=s[f++],C=s[f],k=s[f+1],0!==e&&(!(r>M+e)||!(r>I+e)||!(r>k+e))&&(!(r<M-e)||!(r<I-e)||!(r<k-e))&&(!(i>S+e)||!(i>T+e)||!(i>C+e))&&(!(i<S-e)||!(i<T-e)||!(i<C-e))&&function(t,e,n,i,r,o,a,s){var l,u=.005,h=1/0;nD[0]=a,nD[1]=s;for(var c=0;c<1;c+=.05){nA[0]=nV(t,n,r,c),nA[1]=nV(e,i,o,c);var p=es(nD,nA);p<h&&(l=c,h=p)}h=1/0;for(var d=0;d<32&&!(u<1e-4);d++){var f=l-u,g=l+u;nA[0]=nV(t,n,r,f),nA[1]=nV(e,i,o,f);var p=es(nA,nD);if(f>=0&&p<h)l=f,h=p;else{nP[0]=nV(t,n,r,g),nP[1]=nV(e,i,o,g);var v=es(nP,nD);g<=1&&v<h?(l=g,h=v):u*=.5}}return nI(h)}(S,M,T,I,C,k,i,r)<=e/2)return!0}else u+=function(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(nO(o)){if(nL(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(nO(h)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(h>0){var c=nI(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,aH);if(0===l)return 0;var u=nH(e,i,o);if(u>=0&&u<=1){for(var h=0,c=nV(e,i,o,u),p=0;p<l;p++){var d=0===aH[p]||1===aH[p]?.5:1,f=nV(t,n,r,aH[p]);f<a||(aH[p]<u?h+=c<e?d:-d:h+=o<c?d:-d)}return h}var d=0===aH[0]||1===aH[0]?.5:1,f=nV(t,n,r,aH[0]);return f<a?0:o<e?d:-d}(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case aV.A:var P=s[f++],O=s[f++],L=s[f++],R=s[f++],B=s[f++],z=s[f++];f+=1;var E=!!(1-s[f++]);o=Math.cos(B)*L+P,a=Math.sin(B)*R+O,A?(p=o,d=a):u+=aN(h,c,o,a,i,r);var N=(i-P)*R/L+P;if(n){if(function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=Math.sqrt((s-=t)*s+(l-=e)*l);if(u-a>n||u+a<n)return!1;if(Math.abs(i-r)%aE<1e-4)return!0;if(o){var h=i;i=az(r),r=az(h)}else i=az(i),r=az(r);i>r&&(r+=aE);var c=Math.atan2(l,s);return c<0&&(c+=aE),c>=i&&c<=r||c+aE>=i&&c+aE<=r}(P,O,R,B,B+z,E,e,N,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);aH[0]=-l,aH[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=aF-1e-4){i=0,r=aF;var h=o?1:-1;return a>=aH[0]+t&&a<=aH[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=aF,r+=aF);for(var p=0,d=0;d<2;d++){var f=aH[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=aF+g),(g>=i&&g<=r||g+aF>=i&&g+aF<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}(P,O,R,B,B+z,E,N,r);h=Math.cos(B+z)*L+P,c=Math.sin(B+z)*R+O;break;case aV.R:p=h=s[f++],d=c=s[f++];var V=s[f++],F=s[f++];if(o=p+V,a=d+F,n){if(aR(p,d,o,d,e,i,r)||aR(o,d,o,a,e,i,r)||aR(o,a,p,a,e,i,r)||aR(p,a,p,d,e,i,r))return!0}else u+=aN(o,d,o,a,i,r),u+=aN(p,a,p,d,i,r);break;case aV.Z:if(n){if(aR(h,c,p,d,e,i,r))return!0}else u+=aN(h,c,p,d,i,r);h=p,c=d}}return n||1e-4>Math.abs(c-d)||(u+=aN(h,c,p,d,i,r)||0),0!==u}var aU=tM({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},o7),aZ={style:tM({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},o9.style)},aX=i6.concat(["invisible","culling","z","z2","zlevel","parent"]);let aY=function(t){var e;function n(e){return t.call(this,e)||this}return t7(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<aX.length;++s)r[aX[s]]=this[aX[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=tO(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?tS(this.style,a):this.useStyle(a):"shape"===o?tS(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(tE(t)){var e=ie(t,0);return e>.5?i$:e>.2?"#eee":iQ}else if(t)return iQ}return i$},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tE(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>ie(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new aL(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),aG(o,a/s,!0,t,e)))return!0}if(this.hasFill())return aG(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:tS(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return t5(aU,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=tS({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){if(t.prototype._applyStateObj.call(this,e,n,i,r,o,a),1!==this.__inHover){var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=tS({},i.shape),tS(s,n.shape)):(s=tS({},r?this.shape:i.shape),tS(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=tS({},this.shape);for(var u={},h=tO(s),c=0;c<h.length;c++){var p=h[c];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return aZ},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return t7(n,e),n.prototype.getDefaultStyle=function(){return tb(t.style)},n.prototype.getDefaultShape=function(){return tb(t.shape)},n}(n);for(var i in t)"function"==typeof t[i]&&(e.prototype[i]=t[i]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),n}(an);var aq=tM({strokeFirst:!0,font:tr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},aU),aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.hasStroke=function(){return o8(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return t5(aq,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=o3((t=this.style).text),n=t.font,o4(t,rn(i9(n),e),rs(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(an);aj.prototype.type="tspan";var aK=tM({x:0,y:0},o7),a$={style:tM({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},o9.style)},aQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.createStyle=function(t){return t5(aK,t)},e.prototype._getSize=function(t){var e,n=this.style,i=n[t];if(null!=i)return i;var r=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return a$},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new no(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(an);aQ.prototype.type="image";let aJ=aQ;var a0=Math.round;function a1(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(a0(2*i)===a0(2*r)&&(t.x1=t.x2=a5(i,s,!0)),a0(2*o)===a0(2*a)&&(t.y1=t.y2=a5(o,s,!0))),t}}function a2(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=a5(i,s,!0),t.y=a5(r,s,!0),t.width=Math.max(a5(i+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(a5(r+a,s,!1)-t.y,+(0!==a))),t}}function a5(t,e,n){if(!e)return t;var i=a0(2*t);return(i+a0(e))%2==0?i/2:(i+(n?1:-1))/2}var a3=function(){this.x=0,this.y=0,this.width=0,this.height=0},a4={},a8=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new a3},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m=a2(a4,e,this.style);d=m.x,f=m.y,g=m.width,v=m.height,m.r=e.r,e=m}else d=e.x,f=e.y,g=e.width,v=e.height;e.r?(l=(n=e).x,u=n.y,h=n.width,c=n.height,p=n.r,h<0&&(l+=h,h=-h),c<0&&(u+=c,c=-c),"number"==typeof p?i=r=o=a=p:p instanceof Array?1===p.length?i=r=o=a=p[0]:2===p.length?(i=o=p[0],r=a=p[1]):3===p.length?(i=p[0],r=a=p[1],o=p[2]):(i=p[0],r=p[1],o=p[2],a=p[3]):i=r=o=a=0,i+r>h&&(s=i+r,i*=h/s,r*=h/s),o+a>h&&(s=o+a,o*=h/s,a*=h/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),i+a>c&&(s=i+a,i*=c/s,a*=c/s),t.moveTo(l+i,u),t.lineTo(l+h-r,u),0!==r&&t.arc(l+h-r,u+r,r,-Math.PI/2,0),t.lineTo(l+h,u+c-o),0!==o&&t.arc(l+h-o,u+c-o,o,0,Math.PI/2),t.lineTo(l+a,u+c),0!==a&&t.arc(l+a,u+c-a,a,Math.PI/2,Math.PI),t.lineTo(l,u+i),0!==i&&t.arc(l+i,u+i,i,Math.PI,1.5*Math.PI),t.closePath()):t.rect(d,f,g,v)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(aY);a8.prototype.type="rect";let a6=a8;var a7={fill:"#000"},a9={},st={style:tM({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},o9.style)},se=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=a7,n.attr(e),n}return t7(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,sl(t=this.style),tk(t.rich,sl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new no(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||a7},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return tS(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=tO(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},tS(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return st},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||tr,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";o1(a9,i.overflowRect,r,o,a,s),r=a9.baseX,o=a9.baseY;var l=function(t,e,n,i){var r,o=o3(t),a=e.overflow,s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,h=e.font,c=rs(h),p=tX(e.lineHeight,c),d="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-l);var v=e.height;null==v&&null!=i&&(v=i-u);var m=(r=null!=g&&("break"===a||"breakAll"===a)?o?o0(o,e.font,g,"breakAll"===a,0).lines:[]:o?o.split("\n"):[]).length*p;if(null==v&&(v=m),m>v&&d){var y=Math.floor(v/p);f=f||r.length>y,m=(r=r.slice(0,y)).length*p}if(o&&"truncate"===a&&null!=g)for(var _=oY(g,h,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},b=0;b<r.length;b++)oq(x,r[b],_),r[b]=x.textLine,f=f||x.isTruncated;for(var w=v,S=0,M=i9(h),b=0;b<r.length;b++)S=Math.max(rn(M,r[b]),S);null==g&&(g=S);var T=g;return w+=u,{lines:r,height:v,outerWidth:T+=l,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:S,contentHeight:m,width:g,isTruncated:f}}(sp(t),t,a9.outerWidth,a9.outerHeight),u=sd(t),h=!!t.backgroundColor,c=l.outerHeight,p=l.outerWidth,d=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,v=ra(o,l.contentHeight,s);if(u||n){var m=ro(r,p,a),y=ra(o,c,s);u&&this._renderBackground(t,t,m,y,p,c)}v+=f/2,n&&(g=sc(r,a,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var _=0,x=!1,b=!1,w=sh("fill"in t?t.fill:(b=!0,i.fill)),S=su("stroke"in t?t.stroke:h||i.autoStroke&&!b?null:(_=2,x=!0,i.stroke)),M=t.textShadowBlur>0,T=0;T<d.length;T++){var I=this._getOrCreateChild(aj),C=I.createStyle();I.useStyle(C),C.text=d[T],C.x=g,C.y=v,a&&(C.textAlign=a),C.textBaseline="middle",C.opacity=t.opacity,C.strokeFirst=!0,M&&(C.shadowBlur=t.textShadowBlur||0,C.shadowColor=t.textShadowColor||"transparent",C.shadowOffsetX=t.textShadowOffsetX||0,C.shadowOffsetY=t.textShadowOffsetY||0),C.stroke=S,C.fill=w,S&&(C.lineWidth=t.lineWidth||_,C.lineDash=t.lineDash,C.lineDashOffset=t.lineDashOffset||0),C.font=e,sa(C,t),v+=f,I.setBoundingRect(o4(C,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;o1(a9,e.overflowRect,r,o,n,i),r=a9.baseX,o=a9.baseY;var a=function(t,e,n,i,r){var o,a=new o$,s=o3(t);if(!s)return a;var l=e.padding,u=l?l[1]+l[3]:0,h=l?l[0]+l[2]:0,c=e.width;null==c&&null!=n&&(c=n-u);var p=e.height;null==p&&null!=i&&(p=i-h);for(var d=e.overflow,f=("break"===d||"breakAll"===d)&&null!=c?{width:c,accumWidth:0,breakAll:"breakAll"===d}:null,g=oX.lastIndex=0;null!=(o=oX.exec(s));){var v=o.index;v>g&&oQ(a,s.substring(g,v),e,f),oQ(a,o[2],e,f,o[1]),g=oX.lastIndex}g<s.length&&oQ(a,s.substring(g,s.length),e,f);var m=[],y=0,_=0,x="truncate"===d,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}e:for(var M=0;M<a.lines.length;M++){for(var T=a.lines[M],I=0,C=0,k=0;k<T.tokens.length;k++){var D=T.tokens[k],A=D.styleName&&e.rich[D.styleName]||{},P=D.textPadding=A.padding,O=P?P[1]+P[3]:0,L=D.font=A.font||e.font;D.contentHeight=rs(L);var R=tX(A.height,D.contentHeight);if(D.innerHeight=R,P&&(R+=P[0]+P[2]),D.height=R,D.lineHeight=tY(A.lineHeight,e.lineHeight,R),D.align=A&&A.align||r,D.verticalAlign=A&&A.verticalAlign||"middle",b&&null!=p&&y+D.lineHeight>p){var B=a.lines.length;k>0?(T.tokens=T.tokens.slice(0,k),S(T,C,I),a.lines=a.lines.slice(0,M+1)):a.lines=a.lines.slice(0,M),a.isTruncated=a.isTruncated||a.lines.length<B;break e}var z=A.width,E=null==z||"auto"===z;if("string"==typeof z&&"%"===z.charAt(z.length-1))D.percentWidth=z,m.push(D),D.contentWidth=rn(i9(L),D.text);else{if(E){var N=A.backgroundColor,V=N&&N.image;V&&oZ(V=function(t){if("string"!=typeof t)return t;var e=oW.get(t);return e&&e.image}(V))&&(D.width=Math.max(D.width,V.width*R/V.height))}var F=x&&null!=c?c-C:null;null!=F&&F<D.width?!E||F<O?(D.text="",D.width=D.contentWidth=0):(!function(t,e,n,i,r,o){if(!n){t.text="",t.isTruncated=!1;return}var a=(e+"").split("\n");o=oY(n,i,r,o);for(var s=!1,l={},u=0,h=a.length;u<h;u++)oq(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}(w,D.text,F-O,L,e.ellipsis,{minChar:e.truncateMinChar}),D.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,D.width=D.contentWidth=rn(i9(L),D.text)):D.contentWidth=rn(i9(L),D.text)}D.width+=O,C+=D.width,A&&(I=Math.max(I,D.lineHeight))}S(T,C,I)}a.outerWidth=a.width=tX(c,_),a.outerHeight=a.height=tX(p,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=h;for(var M=0;M<m.length;M++){var D=m[M],H=D.percentWidth;D.width=parseInt(H,10)/100*a.width}return a}(sp(t),t,a9.outerWidth,a9.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,h=t.padding;this.isTruncated=!!a.isTruncated;var c=ro(r,l,n),p=ra(o,u,i),d=c,f=p;h&&(d+=h[3],f+=h[0]);var g=d+s;sd(t)&&this._renderBackground(t,t,c,p,l,u);for(var v=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var y=a.lines[m],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,M=d,T=g,I=x-1,C=void 0;S<x&&(!(C=_[S]).align||"left"===C.align);)this._placeToken(C,t,b,f,M,"left",v),w-=C.width,M+=C.width,S++;for(;I>=0&&"right"===(C=_[I]).align;)this._placeToken(C,t,b,f,T,"right",v),w-=C.width,T-=C.width,I--;for(M+=(s-(M-d)-(g-T)-w)/2;S<=I;)C=_[S],this._placeToken(C,t,b,f,M+C.width/2,"center",v),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&sd(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=sc(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(aj),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=!1,y=sh("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),_=su("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||f.autoStroke&&!g?null:(v=2,m=!0,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||tr,d.opacity=tY(s.opacity,e.opacity,1),sa(d,s),_&&(d.lineWidth=tY(s.lineWidth,e.lineWidth,v),d.lineDash=tX(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),y&&(d.fill=y),p.setBoundingRect(o4(d,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){(a=this._getOrCreateChild(a6)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=tX(t.fillOpacity,1)}else if(c){(s=this._getOrCreateChild(aJ)).onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=tX(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=tY(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return ss(t)&&(e=[t.fontStyle,t.fontWeight,so(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&t$(e)||t.textFont||t.font},e}(an),sn={left:!0,right:1,center:1},si={top:1,bottom:1,middle:1},sr=["fontStyle","fontWeight","fontSize","fontFamily"];function so(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function sa(t,e){for(var n=0;n<sr.length;n++){var i=sr[n],r=e[i];null!=r&&(t[i]=r)}}function ss(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function sl(t){if(t){t.font=se.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||sn[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||si[n]?n:"top",t.padding&&(t.padding=tj(t.padding))}}function su(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function sh(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function sc(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sp(t){var e=t.text;return null!=e&&(e+=""),e}function sd(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let sf=se;var sg=os(),sv=function(t,e,n,i){if(i){var r=sg(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=sg(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}},sm="undefined",sy="series",s_=t2(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sx="original",sb="arrayRows",sw="objectRows",sS="keyedColumns",sM="typedArray",sT="unknown",sI="column",sC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let sk=function(t){tk(sC,function(e){this[e]=tL(t[e],t)},this)};var sD=1,sA={},sP=os(),sO=os(),sL=["emphasis","blur","select"],sR=["normal","emphasis","blur","select"],sB="highlight",sz="downplay",sE="select",sN="unselect",sV="toggleSelect",sF="selectchanged";function sH(t){return null!=t&&"none"!==t}function sW(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function sG(t){sW(t,"emphasis",2)}function sU(t){2===t.hoverState&&sW(t,"normal",0)}function sZ(t){sW(t,"blur",1)}function sX(t){1===t.hoverState&&sW(t,"normal",0)}function sY(t){t.selected=!0}function sq(t){t.selected=!1}function sj(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function sK(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n){var i=e&&tT(e,"select")>=0,r=!1;if(t instanceof aY){var o=sP(t),a=i&&o.selectFill||o.normalFill,s=i&&o.selectStroke||o.normalStroke;if(sH(a)||sH(s)){var l=(n=n||{}).style||{};"inherit"===l.fill?(r=!0,n=tS({},n),(l=tS({},l)).fill=a):!sH(l.fill)&&sH(a)?(r=!0,n=tS({},n),(l=tS({},l)).fill=ir(a)):!sH(l.stroke)&&sH(s)&&(r||(n=tS({},n),l=tS({},l)),l.stroke=ir(s)),n.style=l}}if(n&&null==n.z2){r||(n=tS({},n));var u=t.z2EmphasisLift;n.z2=t.z2+(null!=u?u:10)}return n}(this,e,s);else if("blur"===t)return n=s,i=tT(this.currentStates,t)>=0,r=this.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=tS({},n),a=tS({opacity:i?r:.1*o.opacity},a),n.style=a),n;else if("select"===t){var l=s;if(l&&null==l.z2){l=tS({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function s$(t){t.stateProxy=sK;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sK),n&&(n.stateProxy=sK)}function sQ(t,e){s2(t,e)||t.__highByOuter||sj(t,sG)}function sJ(t,e){s2(t,e)||t.__highByOuter||sj(t,sU)}function s0(t,e){t.__highByOuter|=1<<(e||0),sj(t,sG)}function s1(t,e){(t.__highByOuter&=~(1<<(e||0)))||sj(t,sU)}function s2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function s5(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=sO(r),a=r.mainType===sy?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r),s="series"===e;s||i.push(a),o.isBlured&&(a.group.traverse(function(t){sX(t)}),s&&n.push(r)),o.isBlured=!1}),tk(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function s3(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&sj(i,sX)}}if((n=n||"coordinateSystem",null!=t)&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!h||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||sZ(t)}),tC(e))o(t.getData(),e);else if(tF(e))for(var c=tO(e),p=0;p<c.length;p++)o(t.getData(c[p]),e[c[p]]);l.push(t),sO(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function s4(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){sO(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){sZ(t)})}}}function s8(t,e,n,i){var r,o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=i.getModel().getComponent(t,e);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===sg(l[u]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function s6(t){tk(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?sj(e,sY):sj(e,sq)})})}function s7(t,e,n){var i,r,o,a;li(t,!0),sj(t,s$),i=t,r=e,o=n,a=sg(i),null!=r?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}function s9(t,e,n,i){i?li(t,!1):s7(t,e,n)}var lt=["emphasis","blur","select"],le={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ln(t,e,n,i){n=n||"itemStyle";for(var r=0;r<lt.length;r++){var o=lt[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[le[n]]()}}function li(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function lr(t){return!!(t&&t.__highDownDispatcher)}function lo(t){var e=t.type;return e===sE||e===sN||e===sV}function la(t){var e=t.type;return e===sB||e===sz}var ls={};function ll(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=tz(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<sL.length;u++){var h=sL[u],c=e[h];l[h]=tX(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function lu(t,e,n,i){n=n||ls;for(var r=t instanceof sf,o=!1,a=0;a<sR.length;a++){var s=e[sR[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){!r&&(l||(l=new sf,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=ll(n,e),h=e.normal,c=!!h.getShallow("show"),p=lc(h,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(lp(h,n,!1));for(var a=0;a<sL.length;a++){var d=sL[a],s=e[d];if(s){var f=l.ensureState(d),g=!!tX(s.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=lc(s,i&&i[d],n,!0,!r),f.style.text=u[d],r||(t.ensureState(d).textConfig=lp(s,n,!0))}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),n.enableTextSetter&&(ly(l).setLabelText=function(t){var i=ll(n,e,t);!function(t,e){for(var n=0;n<sL.length;n++){var i=sL[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,i)})}else l&&(l.ignore=!0);t.dirty()}function lh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<sL.length;i++){var r=sL[i];n[r]=t.getModel([r,e])}return n}function lc(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||ls;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||ls).rich;if(n){e=e||{};for(var i=tO(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",h=tX(e.get(u),a?a.get(u):void 0);for(var c in l)if(l.hasOwnProperty(c)){var p=e.getModel(["rich",c]);lv(o[c]={},p,s,e,h,n,i,r,!1,!0)}}o&&(t.rich=o);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=e.get("minMargin");if(null!=g)t.margin=[g=tV(g)?g/2:0,g,g,g],t.__marginType=l_.minMargin;else{var v=e.get("textMargin");null!=v&&(t.margin=tj(v),t.__marginType=l_.textMargin)}lv(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&tS(o,e),o}function lp(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=tX(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(r.rotation=o*=Math.PI/180),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var ld=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lv(t,e,n,i,r,o,a,s,l,u){n=!a&&n||ls;var h=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=tX(e.getShallow("opacity"),n.opacity);("inherit"===c||"auto"===c)&&(c=h||null),("inherit"===p||"auto"===p)&&(p=h||null),s||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p);var f=tX(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=tX(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=tX(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=d||u||(d=o&&o.defaultOpacity),null!=d&&(t.opacity=d),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var m=0;m<ld.length;m++){var y=ld[m],_=!1!==r&&i?tY(e.getShallow(y),i.getShallow(y),n[y]):tX(e.getShallow(y),n[y]);null!=_&&(t[y]=_)}for(var m=0;m<lf.length;m++){var y=lf[m],_=e.getShallow(y);null!=_&&(t[y]=_)}if(null==t.verticalAlign){var x=e.getShallow("baseline");null!=x&&(t.verticalAlign=x)}if(!l||!o.disableBox){for(var m=0;m<lg.length;m++){var y=lg[m],_=e.getShallow(y);null!=_&&(t[y]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&h&&(t.backgroundColor=h),("auto"===t.borderColor||"inherit"===t.borderColor)&&h&&(t.borderColor=h)}}function lm(t,e){var n=e&&e.getModel("textStyle");return t$([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var ly=os(),l_={minMargin:1,textMargin:2},lx=["textStyle","color"],lb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lw=new sf,lS=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(lx):null)},t.prototype.getFont=function(){return lm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lb.length;n++)e[lb[n]]=this.getShallow(lb[n]);return lw.useStyle(e),lw.update(),lw.getBoundingRect()},t}(),lM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lT=oV(lM),lI=function(){function t(){}return t.prototype.getLineStyle=function(t){return lT(this,t)},t}(),lC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lk=oV(lC),lD=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return lk(this,t,e)},t}(),lA=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){tw(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(tb(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!tn.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();oL(lA),o=["__\0is_clz",oB++].join("_"),lA.prototype[o]=!0,lA.isInstance=function(t){return!!(t&&t[o])},tI(lA,lI),tI(lA,lD),tI(lA,oH),tI(lA,lS);var lP=Math.round(10*Math.random());function lO(t){return[t||"",lP++].join("_")}function lL(t,e){return tw(tw({},t,!0),e,!0)}var lR={},lB={},lz=tn.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function lE(t,e){lB[t=t.toUpperCase()]=new lA(e),lR[t]=e}function lN(){return null}function lV(t,e){var n=lN(),i=e.breakOption,r=e.breakParsed;return!r&&n&&(r=n.parseAxisBreakOption(i,t)),r}function lF(t){var e=t.brk;return e?e.breaks:[]}function lH(t){var e=t.brk;return!!e&&e.hasBreaks()}lE("EN",{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:". "}}}}),lE("ZH",{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 lW={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},lG={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},lU="{yyyy}-{MM}-{dd}",lZ={year:"{yyyy}",month:"{yyyy}-{MM}",day:lU,hour:lU+" "+lG.hour,minute:lU+" "+lG.minute,second:lU+" "+lG.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lX=["year","month","day","hour","minute","second","millisecond"],lY=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lq(t,e){return t+="","0000".substr(0,e-t.length)+t}function lj(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function lK(t,e,n,i){var r=r$(t),o=r[lJ(n)](),a=r[l0(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[l1(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[l2(n)](),c=(h-1)%12+1,p=r[l5(n)](),d=r[l3(n)](),f=r[l4(n)](),g=h>=12?"pm":"am",v=g.toUpperCase(),m=(i instanceof lA?i:lB[i||lz]||lB.EN).getModel("time"),y=m.get("month"),_=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,lq(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,lq(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,lq(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,lq(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,lq(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,lq(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,lq(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,lq(f,3)).replace(/{S}/g,f+"")}function l$(t,e){var n=r$(t),i=n[l0(e)]()+1,r=n[l1(e)](),o=n[l2(e)](),a=n[l5(e)](),s=n[l3(e)](),l=0===n[l4(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;if(p&&1===i)return"year";if(p)return"month";if(c)return"day";if(h)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function lQ(t,e,n){switch(e){case"year":t[l8(n)](0);case"month":t[l6(n)](1);case"day":t[l7(n)](0);case"hour":t[l9(n)](0);case"minute":t[ut(n)](0);case"second":t[ue(n)](0)}return t}function lJ(t){return t?"getUTCFullYear":"getFullYear"}function l0(t){return t?"getUTCMonth":"getMonth"}function l1(t){return t?"getUTCDate":"getDate"}function l2(t){return t?"getUTCHours":"getHours"}function l5(t){return t?"getUTCMinutes":"getMinutes"}function l3(t){return t?"getUTCSeconds":"getSeconds"}function l4(t){return t?"getUTCMilliseconds":"getMilliseconds"}function l8(t){return t?"setUTCMonth":"setMonth"}function l6(t){return t?"setUTCDate":"setDate"}function l7(t){return t?"setUTCHours":"setHours"}function l9(t){return t?"setUTCMinutes":"setMinutes"}function ut(t){return t?"setUTCSeconds":"setSeconds"}function ue(t){return t?"setUTCMilliseconds":"setMilliseconds"}function un(t){if(isNaN(r2(t)))return tE(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ui(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function ur(t,e,n){function i(t){return t&&t$(t)?t:"-"}var r="time"===e,o=t instanceof Date;if(r||o){var a=r?r$(t):t;if(!isNaN(+a))return lK(a,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(o)return"-"}if("ordinal"===e)return tN(t)?i(t):tV(t)&&r4(t)?t+"":"-";var s=r2(t);return r4(s)?un(s):tN(t)?i(t):"boolean"==typeof t?t+"":"-"}var uo=["a","b","c","d","e","f","g"],ua=function(t,e){return"{"+t+(null==e?"":e)+"}"};function us(t,e,n){tB(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=uo[o];t=t.replace(ua(a),ua(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(ua(uo[l],s),n?eS(u):u)}return t}function ul(t,e){return e=e||"transparent",tE(t)?t:tF(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function uu(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var uh={},uc={},up=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return tk(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(uh,!0),this._normalMasterList=n(uc,!1)},t.prototype.update=function(t,e){tk(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){uh[t]=e;return}uc[t]=e},t.get=function(t){return uc[t]||uh[t]},t}(),ud=t2();function uf(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=ud.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}var ug=["left","right","top","bottom","width","height"],uv=[["width","left","right"],["height","top","bottom"]];function um(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function uy(t,e,n){n=tj(n||0);var i=e.width,r=e.height,o=rF(t.left,i),a=rF(t.top,r),s=rF(t.right,i),l=rF(t.bottom,r),u=rF(t.width,i),h=rF(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new no((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return f.margin=n,f}tR(um,"vertical"),tR(um,"horizontal");function u_(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=uf(t),u=l.coord,h=l.from;if(s.dataToLayout){o=1,a=h;var c=s.dataToLayout(u);i=c.contentRect||c.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=2,a=h,r=s.dataToPoint(u))}return null==o&&(o=1),1===o&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function ux(t){var e=t.layoutMode||t.constructor.layoutMode;return tF(e)?e:e?{type:e}:null}function ub(t,e,n){var i=n&&n.ignoreSize;tB(i)||(i=[i,i]);var r=a(uv[0],0),o=a(uv[1],1);function a(n,r){var o={},a=0,l={},u=0;if(tk(n,function(e){l[e]=t[e]}),tk(n,function(t){t3(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2===u||!a)return l;if(a>=2)return o;for(var h=0;h<n.length;h++){var c=n[h];if(!t3(o,c)&&t3(t,c)){o[c]=t[c];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){tk(t,function(t){e[t]=n[t]})}l(uv[0],t,r),l(uv[1],t,o)}function uw(t){var e,n;return e={},(n=t)&&e&&tk(ug,function(t){t3(n,t)&&(e[t]=n[t])}),e}var uS=os(),uM=function(t){var e;function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=lO("ec_cpt_model"),r}return tt(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{};tw(t,e.getTheme().get(this.mainType)),tw(t,this.getDefaultOption()),n&&ub(t,i,n)},n.prototype.mergeOption=function(t,e){tw(this.option,t,!0);var n=ux(this);n&&ub(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oP]))return t.defaultOption;var e=uS(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=tw(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return od(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(lA);oR(uM,lA),oN(uM),a={},uM.registerSubTypeDefaulter=function(t,e){a[oO(t).main]=e},uM.determineSubType=function(t,e){var n=e.type;if(!n){var i=oO(t).main;uM.hasSubTypes(t)&&a[i]&&(n=a[i](e))}return n};var uT=function(t){var e=[];return tk(uM.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tD(e,function(t){return oO(t).main}),"dataset"!==t&&0>=tT(e,"dataset")&&e.unshift("dataset"),e};function uI(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}uM.topologicalTravel=function(t,e,n,i){if(t.length){var r,o,a,s=(o={},a=[],tk(r=e,function(t){var e,n,i,s=uI(o,t),l=(e=s.originalDeps=uT(t),n=r,i=[],tk(e,function(t){tT(n,t)>=0&&i.push(t)}),i);s.entryCount=l.length,0===s.entryCount&&a.push(t),tk(l,function(e){0>tT(s.predecessor,e)&&s.predecessor.push(e);var n=uI(o,e);0>tT(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,h={};for(tk(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(n.call(i,c,p.originalDeps.slice()),delete h[c]),tk(p.successor,d?g:f)}tk(h,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}};var uC={color:{},darkColor:{},size:{}},uk=uC.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var uD in tS(uk,{primary:uk.neutral80,secondary:uk.neutral70,tertiary:uk.neutral60,quaternary:uk.neutral50,disabled:uk.neutral20,border:uk.neutral30,borderTint:uk.neutral20,borderShade:uk.neutral40,background:uk.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:uk.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:uk.neutral70,axisLineTint:uk.neutral40,axisTick:uk.neutral70,axisTickMinor:uk.neutral60,axisLabel:uk.neutral70,axisSplitLine:uk.neutral15,axisMinorSplitLine:uk.neutral05}),uk)if(uk.hasOwnProperty(uD)){var uA=uk[uD];"theme"===uD?uC.darkColor.theme=uk.theme.slice():"highlight"===uD?uC.darkColor.highlight="rgba(255,231,130,0.4)":0===uD.indexOf("accent")?uC.darkColor[uD]=n9(uA,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):uC.darkColor[uD]=n9(uA,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}uC.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var uP="";"u">typeof navigator&&(uP=navigator.platform||"");var uO="rgba(0, 0, 0, 0.2)",uL=uC.color.theme["0"],uR=n9(uL,null,null,.9);let uB={darkMode:"auto",colorBy:"series",color:uC.color.theme,gradientColor:[uR,uL],aria:{decal:{decals:[{color:uO,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uO,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uO,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uO,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uO,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uO,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uP.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 uz=os();function uE(t,e,n){var i,r,o={},a=uN(e);if(!a||!t)return o;var s=[],l=[],u=uz(e.ecModel).datasetMap,h=a.uid+"_"+n.seriesLayoutBy;tk(t=t.slice(),function(e,n){var a=tF(e)?e:t[n]={name:e};"ordinal"===a.type&&null==i&&(i=n,r=d(a)),o[a.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:r,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function d(t){var e=t.dimsDef;return e?e.length:1}return tk(t,function(t,e){var n=t.name,r=d(t);if(null==i){var a=c.valueWayDim;p(o[n],a,r),p(l,a,r),c.valueWayDim+=r}else if(i===e)p(o[n],0,r),p(s,0,r);else{var a=c.categoryWayDim;p(o[n],a,r),p(l,a,r),c.categoryWayDim+=r}}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function uN(t){if(!t.get("data",!0))return od(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oc).models[0]}function uV(t,e){return function(t,e,n,i,r,o){var a,s,l;if(tW(t))return 3;if(i){var u=i[o];tF(u)?(s=u.name,l=u.type):tE(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===sb)if("row"===n){for(var h=t[o],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=g(h[r+c])))return a}else for(var c=0;c<t.length&&c<5;c++){var p=t[r+c];if(p&&null!=(a=g(p[o])))return a}else if(e===sw){if(!s)return 3;for(var c=0;c<t.length&&c<5;c++){var d=t[c];if(d&&null!=(a=g(d[s])))return a}}else if(e===sS){if(!s)return 3;var h=t[s];if(!h||tW(h))return 3;for(var c=0;c<h.length&&c<5;c++)if(null!=(a=g(h[c])))return a}else if(e===sx)for(var c=0;c<t.length&&c<5;c++){var d=t[c],f=ot(d);if(!tB(f))return 3;if(null!=(a=g(f[o])))return a}function g(t){var e=tE(t);return null!=t&&isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var uF=t2(),uH=os(),uW=os(),uG=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return uZ(this,uH,r6(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=uH)(t).paletteIdx=0,e(t).paletteNameMap={}},t}();function uU(t,e,n,i){var r=r6(t.get(["aria","decal","decals"]));return uZ(t,uW,r,null,e,n,i)}function uZ(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var uX="\0_ec_inner",uY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new lA(i),this._locale=new lA(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=uK(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,uK(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):g(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tk(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=t2(),s=e&&e.replaceMergeMainTypeMap;uz(this).datasetMap=t2(),tk(t,function(t,e){null!=t&&(uM.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?tb(t):tw(n[e],t,!0))}),s&&s.each(function(t,e){uM.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),uM.topologicalTravel(o,uM.getAllClassMainTypes(),function(e){var o,a,l,u,h,c,p,f,g,v,m,y,_,x,b,w,S,M,T,I,C=function(t,e,n){var i=uF.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,r6(t[e])),k=i.get(e),D=k?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",A=(_=k,x=C,b="normalMerge"===D,w="replaceMerge"===D,S="replaceAll"===D,_=_||[],x=(x||[]).slice(),M=t2(),tk(x,function(t,e){if(!tF(t)){x[e]=null;return}}),T=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||oo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(_,M,D),(b||w)&&(o=T,a=_,l=M,tk(u=x,function(t,e){if(t&&null!=t.id){var n=on(t.id),i=l.get(n);if(null!=i){var r=o[i];tK(!r.newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=a[i],u[e]=null}}})),b&&(h=T,tk(c=x,function(t,e){if(t&&null!=t.name)for(var n=0;n<h.length;n++){var i=h[n].existing;if(!h[n].newOption&&i&&(null==i.id||null==t.id)&&!oo(t)&&!oo(i)&&oe("name",i,t)){h[n].newOption=t,c[e]=null;return}}})),b||w?(p=T,f=x,g=w,tk(f,function(t){if(t){for(var e,n=0;(e=p[n])&&(e.newOption||oo(e.existing)||e.existing&&null!=t.id&&!oe("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=g):p.push({newOption:t,brandNew:g,existing:null,keyInfo:null}),n++}})):S&&(v=T,tk(x,function(t){v.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),m=T,y=t2(),tk(m,function(t){var e=t.existing;e&&y.set(e.id,t)}),tk(m,function(t){var e=t.newOption;tK(!e||null==e.id||!y.get(e.id)||y.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&y.set(e.id,t),t.keyInfo||(t.keyInfo={})}),tk(m,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(tF(i)){if(r.name=null!=i.name?on(i.name):n?n.name:r8+e,n)r.id=on(n.id);else if(null!=i.id)r.id=on(i.id);else{var o=0;do r.id="\0"+r.name+"\0"+o++;while(y.get(r.id))}y.set(r.id,t)}}),T);tk(A,function(t){var n,i,r,o,a=t.newOption;tF(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,i=a,r=t.existing,o=uM,i.type?i.type:r?r.subType:o.determineSubType(n,i)))}),n[e]=null,i.set(e,null),r.set(e,0);var P=[],O=[],L=0;tk(A,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=uM.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(I)return;I=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=tS({componentIndex:n},t.keyInfo);tS(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(P.push(i.option),O.push(i),L++):(P.push(void 0),O.push(void 0))},this),n[e]=P,i.set(e,O),r.set(e,L),"series"===e&&d(this)},this),this._seriesIndices||d(this)},e.prototype.getOption=function(){var t=tb(this.option);return tk(t,function(e,n){if(uM.hasClass(n)){for(var i=r6(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!oo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[uX],t},e.prototype.setTheme=function(t){this._theme=new lA(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e){for(var r=0;r<n.length;r++)if(n[r])return n[r]}}},e.prototype.queryComponents=function(t){var e,n=t.mainType;if(!n)return[];var i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=i?(e=[],tk(r6(i),function(t){a[t]&&e.push(a[t])})):e=null!=r?uq("id",r,a):null!=o?uq("name",o,a):tP(a,function(t){return!!t}),uj(e,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",i=s+"Id",r=s+"Name",e&&(null!=e[n]||null!=e[i]||null!=e[r])?{mainType:s,index:e[n],id:e[i],name:e[r]}:null);return o=uj(l?this.queryComponents(l):tP(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?tP(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(tz(t))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var o=n[r];o&&t.call(e,i,o,o.componentIndex)}});else for(var r=tE(t)?i.get(t):tF(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=oi(t,null);return tP(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tP(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return tP(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){f(this),tk(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){tk(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){f(this),tk(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return tk(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return f(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){f(this);var n=[];tk(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=t2(n)},e.prototype.restoreData=function(t){d(this);var e=this._componentsMap,n=[];e.each(function(t,e){uM.hasClass(e)&&n.push(e)}),uM.topologicalTravel(n,uM.getAllClassMainTypes(),function(n){tk(e.get(n),function(e){e&&("series"!==n||!function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})},e.internalField=void(d=function(t){var e=t._seriesIndices=[];tk(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=t2(e)},f=function(t){},g=function(t,e){t.option={},t.option[uX]=1,t._componentsMap=t2({series:[]}),t._componentsCount=t2();var n,i,r,o=e.aria;tF(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,tk(i,function(t,e){"colorLayer"===e&&r||"color"===e&&n.color||uM.hasClass(e)||("object"==typeof t?n[e]=n[e]?tw(n[e],t,!1):tb(t):null==n[e]&&(n[e]=t))}),tw(e,uB,!1),t._mergeOption(e,null)}),e}(lA);function uq(t,e,n){if(tB(e)){var i=t2();return tk(e,function(t){null!=t&&null!=oi(t,null)&&i.set(t,!0)}),tP(n,function(e){return e&&i.get(e[t])})}var r=oi(e,null);return tP(n,function(e){return e&&null!=r&&e[t]===r})}function uj(t,e){return e.hasOwnProperty("subType")?tP(t,function(t){return t&&t.subType===e.subType}):t}function uK(t){var e=t2();return t&&tk(r6(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tI(uY,uG);var u$=/^(min|max)?(.+)$/,uQ=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(tk(r6(t.series),function(t){t&&t.data&&tW(t.data)&&(t.data[tQ]=!0)}),tk(r6(t.dataset),function(t){t&&t.source&&tW(t.source)&&(t.source[tQ]=!0)})),t=tb(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);function p(t){tk(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t),h&&tB(u)&&tk(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),p(r),tk(l,function(t){return p(t)}),tk(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tb(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=tb(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)(function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return tk(t,function(t,e){var n=e.match(u$);if(n&&n[1]&&n[2]){var o,a,s,l=n[1];o=i[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=tD(s,function(t){return tb(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),uJ=tF,u0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u1(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=u0.length;n<i;n++){var r=u0[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?tw(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?tw(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function u2(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,tM(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function u5(t){u2(t,"itemStyle"),u2(t,"lineStyle"),u2(t,"areaStyle"),u2(t,"label"),u2(t,"labelLine"),u2(t,"upperLabel"),u2(t,"edgeLabel")}function u3(t,e){var n=uJ(t)&&t[e],i=uJ(n)&&n.textStyle;if(i)for(var r=0,o=r9.length;r<o;r++){var a=r9[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function u4(t){t&&(u5(t),u3(t,"label"),t.emphasis&&u3(t.emphasis,"label"))}function u8(t){return tB(t)?t:t?[t]:[]}function u6(t){return(tB(t)?t[0]:t)||{}}function u7(t){t&&tk(u9,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var u9=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ht=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],he=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hn(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<he.length;n++){var i=he[n][1],r=he[n][0];null!=e[i]&&(e[r]=e[i])}}function hi(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hr(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ho(t,e){var n;tk(u8(t.series),function(t){uJ(t)&&function(t){if(uJ(t)){u1(t),u5(t),u3(t,"label"),u3(t,"upperLabel"),u3(t,"edgeLabel"),t.emphasis&&(u3(t.emphasis,"label"),u3(t.emphasis,"upperLabel"),u3(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u1(e),u4(e));var n=t.markLine;n&&(u1(n),u4(n));var i=t.markArea;i&&u4(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!tW(o))for(var a=0;a<o.length;a++)u4(o[a]);tk(t.categories,function(t){u5(t)})}if(r&&!tW(r))for(var a=0;a<r.length;a++)u4(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)u4(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)tB(l[a])?(u4(l[a][0]),u4(l[a][1])):u4(l[a]);"gauge"===t.type?(u3(t,"axisLabel"),u3(t,"title"),u3(t,"detail")):"treemap"===t.type?(u2(t.breadcrumb,"itemStyle"),tk(t.levels,function(t){u5(t)})):"tree"===t.type&&u5(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),tk(n,function(e){tk(u8(t[e]),function(t){t&&(u3(t,"axisLabel"),u3(t.axisPointer,"label"))})}),tk(u8(t.parallel),function(t){var e=t&&t.parallelAxisDefault;u3(e,"axisLabel"),u3(e&&e.axisPointer,"label")}),tk(u8(t.calendar),function(t){u2(t,"itemStyle"),u3(t,"dayLabel"),u3(t,"monthLabel"),u3(t,"yearLabel")}),tk(u8(t.radar),function(t){u3(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tk(u8(t.geo),function(t){uJ(t)&&(u4(t),tk(u8(t.regions),function(t){u4(t)}))}),tk(u8(t.timeline),function(t){u4(t),u2(t,"label"),u2(t,"itemStyle"),u2(t,"controlStyle",!0);var e=t.data;tB(e)&&tk(e,function(t){tF(t)&&(u2(t,"label"),u2(t,"itemStyle"))})}),tk(u8(t.toolbox),function(t){u2(t,"iconStyle"),tk(t.feature,function(t){u2(t,"iconStyle")})}),u3(u6(t.axisPointer),"label"),u3(u6(t.tooltip).axisPointer,"label"),t.series=r6(t.series),tk(t.series,function(t){if(tF(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),hi(t.label);var n=t.data;if(n&&!tW(n))for(var i=0;i<n.length;i++)hi(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=r&&function(t,e,n){for(var i,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){hn(t),hn(t.backgroundStyle),hn(t.emphasis);var n=t.data;if(n&&!tW(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(hn(n[i]),hn(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hr(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,hr)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&tM(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),u7(t)}}),t.dataRange&&(t.visualMap=t.dataRange),tk(ht,function(e){var n=t[e];n&&(tB(n)||(n=[n]),tk(n,function(t){u7(t)}))})}var ha=oD(function(t){var e=t2();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),tk(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),tk(e=t,function(t,n){var i=[],r=[0/0,0/0],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,d=a.get(t.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(t.stackedByDimension,h);for(var f=0/0,g=n-1;g>=0;g--){var v=e[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,c)),p>=0){var m=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&d>=0&&m>0||"samesign"===l&&d<=0&&m<0){d=rX(d,m),f=m;break}}}return i[0]=d,i[1]=f,i})}))})}),hs=function(t){this.data=t.data||(t.sourceFormat===sS?{}:[]),this.sourceFormat=t.sourceFormat||sT,this.seriesLayoutBy=t.seriesLayoutBy||sI,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&1===uV(this,n)&&(i.type="ordinal")}};function hl(t){return t instanceof hs}function hu(t,e,n){n=n||hc(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){if(!t)return{dimensionsDefine:hp(r),startIndex:a,dimensionsDetectedCount:o};if(e===sb){var o,a;"auto"===i||null==i?hd(function(t){null!=t&&"-"!==t&&(tE(t)?null==a&&(a=1):a=0)},n,t,10):a=tV(i)?i:+!!i,r||1!==a||(r=[],hd(function(t,e){r[e]=null!=t?t+"":""},n,t,1/0)),o=r?r.length:"row"===n?t.length:t[0]?t[0].length:null}else if(e===sw)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return tO(e)}(t));else if(e===sS)r||(r=[],tk(t,function(t,e){r.push(e)}));else if(e===sx){var s=ot(t[0]);o=tB(s)&&s.length||1}return{startIndex:a,dimensionsDefine:hp(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new hs({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:tb(e)})}function hh(t){return new hs({data:t,sourceFormat:tW(t)?sM:sx})}function hc(t){var e=sT;if(tW(t))e=sM;else if(tB(t)){0===t.length&&(e=sb);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(tB(r)||tW(r)){e=sb;break}else if(tF(r)){e=sw;break}}}}else if(tF(t)){for(var o in t)if(t3(t,o)&&tC(t[o])){e=sS;break}}return e}function hp(t){if(t){var e=t2();return tD(t,function(t,n){var i={name:(t=tF(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function hd(t,e,n,i){if("row"===e)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function hf(t){var e=t.sourceFormat;return e===sw||e===sS}var hg={},hv="u">typeof console&&console.warn&&console.log;function hm(t,e){!function(t,e,n){if(hv){if(n){if(hg[e])return;hg[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function hy(t){throw Error(t)}var h_=function(){var t;function e(t,e){var n=hl(t)?t:hh(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===sM&&(this._offset=0,this._dimSize=e,this._data=i),b(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){b=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;tS(t,x[hC(a,s)]),a===sM?(t.getItem=e,t.count=i,t.fillStorage=n):(t.getItem=tL(function(t,e){return hw[hC(t,e)]}(a,s),null,r,l,u),t.count=tL(function(t,e){return hM[hC(t,e)]}(a,s),null,r,l,u))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=r[p*o+a];c[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[sb+"_"+sI]={pure:!0,appendData:r},t[sb+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[sw]={pure:!0,appendData:r},t[sS]={pure:!0,appendData:function(t){var e=this._data;tk(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[sx]={appendData:r},t[sM]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},x=t}(),e}(),hx=function(t){tB(t)||hm("series.data or dataset.source must be an array.")};(v={})[sb+"_"+sI]=hx,v[sb+"_row"]=hx,v[sw]=hx,v[sS]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&hm("dimension name must not be null/undefined.")},v[sx]=hx;var hb=function(t,e,n,i){return t[i]},hw=((m={})[sb+"_"+sI]=function(t,e,n,i){return t[i+e]},m[sb+"_row"]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[i]:null}return o},m[sw]=hb,m[sS]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},m[sx]=hb,m),hS=function(t,e,n){return t.length},hM=((y={})[sb+"_"+sI]=function(t,e,n){return Math.max(0,t.length-e)},y[sb+"_row"]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},y[sw]=hS,y[sS]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},y[sx]=hS,y),hT=function(t,e,n){return t[e]},hI=((_={})[sb]=hT,_[sw]=function(t,e,n){return t[n]},_[sS]=hT,_[sx]=function(t,e,n){var i=ot(t);return i instanceof Array?i[e]:i},_[sM]=hT,_);function hC(t,e){return t===sb?t+"_"+e:t}function hk(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return hI[o](i,a,s)}var l=i;return o===sx&&(l=ot(i)),l}}}var hD=/\{@(.+?)\}/g,hA=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=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:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return(o&&(s.value=o.interpolatedValue),null!=i&&tB(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),tz(r))?(s.status=e,s.dimensionIndex=i,r(s)):tE(r)?us(r,s).replace(hD,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=hk(a,t,r);if(o&&tB(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return hk(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function hP(t){var e,n;return tF(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function hO(t){return new hL(t)}var hL=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,i,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=h,this._modDataCount=c;var p=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(r||d<f)){var g=this._progress;if(tB(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,f,h,c);else this._doProgress(g,d,f,h,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){hR.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:hR.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),tB(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),hR=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,r=Math.ceil((i=c)/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function hB(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||tV(t)||null==t||"-"===t||(t=+r$(t)),null==t||""===t?0/0:Number(t))}t2({number:function(t){return parseFloat(t)},time:function(t){return+r$(t)},trim:function(t){return tE(t)?t$(t):t}});var hz={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}};(function(t,e){tV(e)||hy(""),this._opFn=hz[t],this._rvalFloat=r2(e)}).prototype.evaluate=function(t){return tV(t)?this._opFn(t,this._rvalFloat):this._opFn(r2(t),this._rvalFloat)};var hE=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=tV(t)?t:r2(t),i=tV(e)?e:r2(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=tE(t),s=tE(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}();function hN(t){var e="",n=-1/0,i=-1/0,r=1/0,o=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,i=t.ge),null!=t.l&&(e+="L"+t.l,r=t.l),null!=t.le&&(e+="LE"+t.le,o=t.le)),{key:e,g:n,ge:i,l:r,le:o}}function hV(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}(function(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=r2(e)}).prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(e=r2(t)===this._rvalFloat)}return this._isEQ?e:!e};var hF=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return hB(t,e)},t}();function hH(t){return hX(t.sourceFormat)||hy(""),t.data}function hW(t){var e=t.sourceFormat,n=t.data;if(hX(e)||hy(""),e===sb){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===sw){for(var i=[],r=0,o=n.length;r<o;r++)i.push(tS({},n[r]));return i}}function hG(t,e,n){if(null!=n){if(tV(n)||!isNaN(n)&&!t3(e,n))return t[n];else if(t3(e,n))return e[n]}}function hU(t){return tb(t)}var hZ=t2();function hX(t){return t===sb||t===sw}var hY=typeof Uint32Array===sm?Array:Uint32Array,hq=typeof Uint16Array===sm?Array:Uint16Array,hj=typeof Int32Array===sm?Array:Int32Array,hK=typeof Float64Array===sm?Array:Float64Array,h$={float:hK,int:hj,ordinal:Array,number:Array,time:hK};function hQ(t){return t>65535?hY:hq}function hJ(t,e,n,i,r){var o=h$[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var h0=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=t2()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=w[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],hf(i),this._dimensions=tD(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new h$[e||"float"](this._rawCount),this._rawExtent[r]=ov(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=ov());for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var u=i[l];hJ(n,l,u.type,s,!0)}for(var h=[],c=a;c<s;c++)for(var p=c-a,d=0;d<r;d++){var u=i[d],f=w.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tD(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=ov()),hJ(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++){c=i.getItem(p,c);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:0/0},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._chunks[t];return n?n[e]:0/0},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)}),rG(e);var n=this.count();return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=hQ(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(hQ(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=tO(t),r=i.length;if(!r)return this;var o=e.count(),a=new(hQ(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=c[i[0]],g=0;g<n;g++){var v=f[g];(v>=u&&v<=h||isNaN(v))&&(a[s++]=d),d++}p=!0}else if(2===r){for(var f=c[i[0]],m=c[i[1]],y=t[i[1]][0],_=t[i[1]][1],g=0;g<n;g++){var v=f[g],x=m[g];(v>=u&&v<=h||isNaN(v))&&(x>=y&&x<=_||isNaN(x))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(var g=0;g<o;g++){var b=e.getRawIndex(g),v=c[i[0]][b];(v>=u&&v<=h||isNaN(v))&&(a[s++]=b)}else for(var g=0;g<o;g++){for(var w=!0,b=e.getRawIndex(g),S=0;S<r;S++){var M=i[S],v=c[M][b];(v<t[M][0]||v>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ov();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],m=i[f];m&&(m[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(hQ(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,m=d;m<f;m++){var y=this.getRawIndex(m),_=a[y];isNaN(_)||(v+=_)}v/=f-d;var x=p,b=Math.min(p+u,s),w=p-1,S=a[h];n=-1,r=x;for(var M=-1,T=0,m=x;m<b;m++){var y=this.getRawIndex(m),_=a[y];if(isNaN(_)){T++,M<0&&(M=y);continue}(i=Math.abs((w-g)*(_-S)-(w-m)*(v-S)))>n&&(n=i,r=y)}T>0&&T<b-x&&(c[l++]=Math.min(M,r),r=Math.max(M,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(hQ(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var h=u,c=o[this.getRawIndex(h)],p=u,d=o[this.getRawIndex(p)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var v=o[this.getRawIndex(u+g)];v<c&&(c=v,h=u+g),v>d&&(d=v,p=u+g)}var m=this.getRawIndex(h),y=this.getRawIndex(p);h<p?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=ov(),c=new(hQ(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[m]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var n=this._chunks[t],i=ov();if(!n)return i;var r=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=hN(e),l=s.key,u=a[l];if(u)return u.slice();for(var h=i[0],c=i[1],p=0;p<r;p++){var d=n[this.getRawIndex(p)];(!e||hV(s,d))&&(d<h&&(h=d),d>c&&(c=d))}return a[l]=[h,c]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&tA(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tb(this._extent),t._rawExtent=tb(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return hB(t[i],this._dimensions[i])}w={arrayRows:t,objectRows:function(t,e,n,i){return hB(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return hB(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),h1=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(h2(n)){var o=void 0,a=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=tW(o=n.get("data",!0))?sM:sx,e=[];var u=this._getSourceMetaRawOption()||{},h=s&&s.metaRawOption||{},c=tX(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=tX(u.sourceHeader,h.sourceHeader),d=tX(u.dimensions,h.dimensions);t=c!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d?[hu(o,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},a)]:[]}else if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[hu(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);null!=o&&1!==t.length&&h5("");var a=[],s=[];return(tk(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||h5(""),a.push(e),s.push(t._getVersionSign())}),r)?n=function(t,e,n){var i=r6(t),r=i.length;r||hy("");for(var o=0;o<r;o++)e=function(t,e){e.length||hy(""),tF(t)||hy("");var n=t.type,i=hZ.get(n);i||hy("");var r=tD(e,function(t){return function(t,e){var n=new hF,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==sI&&hy("");var a=[],s={},l=t.dimensionsDefine;if(l)tk(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(t3(s,n)&&hy(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount||0;u++)a.push({index:u});var h=hw[hC(r,sI)];e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,a,t)},n.getRawData=tL(hH,null,t)),n.cloneRawData=tL(hW,null,t),n.count=tL(hM[hC(r,sI)],null,i,o,a);var c=hI[r];n.retrieveValue=function(t,e){return p(h(i,o,a,t),e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];if(n)return c(t,e,n.name)}};return n.getDimensionInfo=tL(hG,null,a,s),n.cloneAllDimensionInfo=tL(hU,null,a),n}(t,i)});return tD(r6(i.transform({upstream:r[0],upstreamList:r,config:tb(t.config)})),function(t,n){tF(t)||hy(""),t.data||hy(""),hX(hc(t.data))||hy("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:sI,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:sI,sourceHeader:0,dimensions:t.dimensions};return hu(t.data,i,null)})}(i[o],e),o!==r-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:i.componentIndex}):null!=o&&(n=[new hs({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tb(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];h2(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new h0).initData(new h_(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(h2(t)){var e=uN(t);return e?[e.getSourceManager()]:[]}return tD(t.get("transform",!0)||t.get("fromTransformResult",!0)?od(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oc).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return h2(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function h2(t){return"series"===t.mainType}function h5(t){throw Error(t)}function h3(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+eS(e+"")+"px"}function h4(t,e){var n=t.color||uC.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||uC.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+eS(i+"")+"px;color:"+eS(n)+";font-weight:"+eS(r+""),valueStyle:"font-size:"+eS(a+"")+"px;color:"+eS(o)+";font-weight:"+eS(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var h8=[0,10,20,30],h6=["","\n","\n\n","\n\n\n"];function h7(t,e){return e.type=t,e}function h9(t){return"section"===t.type}function ct(t,e,n,i){var r,o=e.noHeader,a={html:h8[r=function t(e){if(h9(e)){var n=0,i=e.blocks.length,r=i>1||i>0&&!e.noHeader;return tk(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||h9(e)&&!e.noHeader)))}),n}return 0}(e)],richText:h6[r]},s=[],l=e.blocks||[];tK(!l||tB(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(t3(h,u)){var c=new hE(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}tk(l,function(n,r){var o=e.valueFormatter,l=(h9(n)?ct:ce)(o?tS(tS({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):ci(i,s.join(""),o?n:a.html);if(o)return p;var d=ur(e.header,"ordinal",t.useUTC),f=h4(i,t.renderMode).nameStyle,g=h3(i);return"richText"===t.renderMode?cr(t,d,f)+a.richText+p:ci(i,'<div style="'+f+";"+g+';">'+eS(d)+"</div>"+p,n)}function ce(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return tD(t=tB(t)?t:[t],function(t,e){return ur(t,tB(b)?b[e]:b,u)})};if(!o||!a){var c,p,d,f,g,v,m,y,_=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||uC.color.secondary,r),x=o?"":ur(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.rawDataIndex),S=!s||!o,M=!s&&o,T=h4(i,r),I=T.nameStyle,C=T.valueStyle;return"richText"===r?(s?"":_)+(o?"":cr(t,x,I))+(a?"":(c=t,p=w,d=S,f=M,g=[C],d&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(tB(p)?p.join(" "):p,g))):ci(i,(s?"":_)+(o?"":'<span style="'+I+";"+(s?"":"margin-left:2px")+'">'+eS(x)+"</span>")+(a?"":(v=w,m=S,y=M,'<span style="'+(m?"float:right;margin-left:"+(y?"10px":"20px"):"")+";"+C+'">'+tD(v=tB(v)?v:[v],function(t){return eS(t)}).join(" ")+"</span>")),n)}}function cn(t,e,n,i,r,o){if(t)return(h9(t)?ct:ce)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function ci(t,e,n){return'<div style="margin: '+n+"px 0 0;"+h3(t)+';">'+e+'<div style="clear:both"></div></div>'}function cr(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function co(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var ca=function(){function t(){this.richTextStyles={},this._nextStyleNameId=r5()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i,r,o,a,s,l,u="richText"===n?this._generateStyleName():null,h=(a=(o=tE(i={color:e,type:t,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+eS(a)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+eS(a)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tE(h)?h:(this.richTextStyles[u]=h.style,h.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};tB(e)?tk(e,function(t){return tS(n,t)}):tS(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),cs=os();function cl(t,e){return t.getName(e)||t.getId(e)}var cu=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return tt(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=hO({count:cc,reset:cp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(cs(this).sourceManager=new h1(this)).prepareSource();var i=this.getInitialData(t,n);cf(i,this),this.dataTask.context.data=i,cs(this).dataBeforeProcessed=i,ch(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{},r=this.subType;uM.hasClass(r)&&(r+="Series"),tw(t,e.getTheme().get(this.subType)),tw(t,this.getDefaultOption()),r7(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ub(t,i,n)},n.prototype.mergeOption=function(t,e){t=tw(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ux(this);n&&ub(this.option,t,n);var i=cs(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);cf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,cs(this).dataBeforeProcessed=r,ch(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!tW(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&r7(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=cv(this);if(!e)return cs(this).data;var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=cv(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}cs(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return t2(t)},n.prototype.getSourceManager=function(){return cs(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return cs(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);for(var l=[],u=1/0,h=-1,c=0,p=r.getDimensionIndex(e),d=r.getStore(),f=0,g=d.count();f<g;f++){var v=d.get(p,f),m=s-a.dataToCoord(v),y=Math.abs(m);y<=i&&((y<u||y===u&&m>=0&&h<0)&&(u=y,h=m,c=0),m===h&&(l[c++]=f))}return l.length=c,l},n.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=tB(c),d=ul(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=tA(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(h7("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tk(i,function(t){h(hk(o,n,t),t)}):tk(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=hk(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var v=or(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return h7("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[h7("nameValue",{markerType:"item",markerColor:d,name:_,noName:!t$(_),value:e,valueType:n,rawDataIndex:l.getRawIndex(a)})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(tn.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=uG.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=cl(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=tO(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[cl(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){tF(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l],h=cl(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=cl(t,c);(n={})[h]=!0,r.selectedMap=n,this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return uM.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(uM);function ch(t){var e,n,i,r=t.name;or(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],tk(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function cc(t){return t.model.getRawData().count()}function cp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cd}function cd(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cf(t,e){tk(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tR(cg,e))})}function cg(t,e){var n=cv(t);return n&&n.setOutputEnd((e||this).count()),e}function cv(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}tI(cu,hA),tI(cu,uG),oR(cu,uM);var cm=function(){function t(){this.group=new rS,this.uid=lO("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function cy(){var t=os();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}oL(cm),oN(cm);var c_=aL.CMD,cx=[[],[],[]],cb=Math.sqrt,cw=Math.atan2,cS=Math.sqrt,cM=Math.sin,cT=Math.cos,cI=Math.PI;function cC(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ck(t,e){return(t[0]*e[0]+t[1]*e[1])/(cC(t)*cC(e))}function cD(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ck(t,e))}function cA(t,e,n,i,r,o,a,s,l,u,h){var c=cI/180*l,p=cT(c)*(t-n)/2+cM(c)*(e-i)/2,d=-1*cM(c)*(t-n)/2+cT(c)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=cS(f),s*=cS(f));var g=(r===o?-1:1)*cS((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,m=-(g*s)*p/a,y=(t+n)/2+cT(c)*v-cM(c)*m,_=(e+i)/2+cM(c)*v+cT(c)*m,x=cD([1,0],[(p-v)/a,(d-m)/s]),b=[(p-v)/a,(d-m)/s],w=[(-1*p-v)/a,(-1*d-m)/s],S=cD(b,w);if(-1>=ck(b,w)&&(S=cI),ck(b,w)>=1&&(S=0),S<0){var M=Math.round(S/cI*1e6)/1e6;S=2*cI+M%2*cI}h.addData(u,y,_,a,s,x,S,c,o)}var cP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,cL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.applyTransform=function(t){},e}(aY);function cR(t){return null!=t.setData}function cB(t,e){var n=function(t){var e,n=new aL;if(!t)return n;var i=0,r=0,o=0,a=0,s=aL.CMD,l=t.match(cP);if(!l)return n;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(cO)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=i,T=r,I=void 0,C=void 0;switch(c){case"l":i+=d[v++],r+=d[v++],p=s.L,n.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,n.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,n.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[v++],r=d[v++],p=s.M,n.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[v++],p=s.L,n.addData(p,i,r);break;case"H":i=d[v++],p=s.L,n.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,n.addData(p,i,r);break;case"V":r=d[v++],p=s.L,n.addData(p,i,r);break;case"C":p=s.C,n.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,n.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":m=i,y=r,I=n.len(),C=n.data,e===s.C&&(m+=i-C[I-4],y+=r-C[I-3]),p=s.C,M=d[v++],T=d[v++],i=d[v++],r=d[v++],n.addData(p,m,y,M,T,i,r);break;case"s":m=i,y=r,I=n.len(),C=n.data,e===s.C&&(m+=i-C[I-4],y+=r-C[I-3]),p=s.C,M=i+d[v++],T=r+d[v++],i+=d[v++],r+=d[v++],n.addData(p,m,y,M,T,i,r);break;case"Q":M=d[v++],T=d[v++],i=d[v++],r=d[v++],p=s.Q,n.addData(p,M,T,i,r);break;case"q":M=d[v++]+i,T=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,n.addData(p,M,T,i,r);break;case"T":m=i,y=r,I=n.len(),C=n.data,e===s.Q&&(m+=i-C[I-4],y+=r-C[I-3]),i=d[v++],r=d[v++],p=s.Q,n.addData(p,m,y,i,r);break;case"t":m=i,y=r,I=n.len(),C=n.data,e===s.Q&&(m+=i-C[I-4],y+=r-C[I-3]),i+=d[v++],r+=d[v++],p=s.Q,n.addData(p,m,y,i,r);break;case"A":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],M=i,T=r,i=d[v++],cA(M,T,i,r=d[v++],w,S,_,x,b,p=s.A,n);break;case"a":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],M=i,T=r,i+=d[v++],cA(M,T,i,r+=d[v++],w,S,_,x,b,p=s.A,n)}}("z"===c||"Z"===c)&&(p=s.Z,n.addData(p),i=o,r=a),e=p}return n.toStatic(),n}(t),i=tS({},e);return i.buildPath=function(t){var e=cR(t);if(e&&t.canSave()){t.appendPath(n);var i=t.getContext();i&&t.rebuildPath(i,1)}else{var i=e?t.getContext():t;i&&n.rebuildPath(i,1)}},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=c_.M,c=c_.C,p=c_.L,d=c_.R,f=c_.A,g=c_.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case h:case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var v=e[4],m=e[5],y=cb(e[0]*e[0]+e[1]*e[1]),_=cb(e[2]*e[2]+e[3]*e[3]),x=cw(-e[1]/_,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=_,l[r++]+=m,l[r++]*=y,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],el(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],el(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=cx[a];b[0]=l[r++],b[1]=l[r++],el(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var cz=function(){this.cx=0,this.cy=0,this.r=0},cE=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cz},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(aY);cE.prototype.type="circle";let cN=cE;var cV=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},cF=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cV},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-s,n-a,i-o,n,i-o),t.bezierCurveTo(n+a,i-o,n+r,i-s,n+r,i),t.bezierCurveTo(n+r,i+s,n+a,i+o,n,i+o),t.bezierCurveTo(n-a,i+o,n-r,i+s,n-r,i),t.closePath()},e}(aY);cF.prototype.type="ellipse";let cH=cF;var cW=Math.PI,cG=2*cW,cU=Math.sin,cZ=Math.cos,cX=Math.acos,cY=Math.atan2,cq=Math.abs,cj=Math.sqrt,cK=Math.max,c$=Math.min;function cQ(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/cj(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,v=(p+f)/2,m=(d+g)/2,y=f-p,_=g-d,x=y*y+_*_,b=r-o,w=p*g-f*d,S=(_<0?-1:1)*cj(cK(0,b*b*x-w*w)),M=(w*_-y*S)/x,T=(-w*y-_*S)/x,I=(w*_+y*S)/x,C=(-w*y+_*S)/x,k=M-v,D=T-m,A=I-v,P=C-m;return k*k+D*D>A*A+P*P&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}var cJ=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},c0=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new cJ},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=cK(e.r,0),r=cK(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,p=!!e.clockwise,d=cq(u-l),f=d>cG&&d%cG;if(f>1e-4&&(d=f),i>1e-4)if(d>cG-1e-4)t.moveTo(h+i*cZ(l),c+i*cU(l)),t.arc(h,c,i,l,u,!p),r>1e-4&&(t.moveTo(h+r*cZ(u),c+r*cU(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,k=void 0,D=void 0,A=void 0,P=i*cZ(l),O=i*cU(l),L=r*cZ(u),R=r*cU(u),B=d>1e-4;if(B){var z=e.cornerRadius;z&&(g=(n=function(t){var e;if(tB(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(z))[0],v=n[1],m=n[2],y=n[3]);var E=cq(i-r)/2;if(_=c$(E,m),x=c$(E,y),b=c$(E,g),w=c$(E,v),T=S=cK(_,x),I=M=cK(b,w),(S>1e-4||M>1e-4)&&(C=i*cZ(u),k=i*cU(u),D=r*cZ(l),A=r*cU(l),d<cW)){var N=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;if(!(p*p<1e-4))return p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u]}(P,O,D,A,C,k,L,R);if(N){var V=P-N[0],F=O-N[1],H=C-N[0],W=k-N[1],G=1/cU(cX((V*H+F*W)/(cj(V*V+F*F)*cj(H*H+W*W)))/2),U=cj(N[0]*N[0]+N[1]*N[1]);T=c$(S,(i-U)/(G+1)),I=c$(M,(r-U)/(G-1))}}}if(B)if(T>1e-4){var Z=c$(m,T),X=c$(y,T),Y=cQ(D,A,P,O,i,Z,p),q=cQ(C,k,L,R,i,X,p);t.moveTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),T<S&&Z===X?t.arc(h+Y.cx,c+Y.cy,T,cY(Y.y0,Y.x0),cY(q.y0,q.x0),!p):(Z>0&&t.arc(h+Y.cx,c+Y.cy,Z,cY(Y.y0,Y.x0),cY(Y.y1,Y.x1),!p),t.arc(h,c,i,cY(Y.cy+Y.y1,Y.cx+Y.x1),cY(q.cy+q.y1,q.cx+q.x1),!p),X>0&&t.arc(h+q.cx,c+q.cy,X,cY(q.y1,q.x1),cY(q.y0,q.x0),!p))}else t.moveTo(h+P,c+O),t.arc(h,c,i,l,u,!p);else t.moveTo(h+P,c+O);if(r>1e-4&&B)if(I>1e-4){var Z=c$(g,I),X=c$(v,I),Y=cQ(L,R,C,k,r,-X,p),q=cQ(P,O,D,A,r,-Z,p);t.lineTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),I<M&&Z===X?t.arc(h+Y.cx,c+Y.cy,I,cY(Y.y0,Y.x0),cY(q.y0,q.x0),!p):(X>0&&t.arc(h+Y.cx,c+Y.cy,X,cY(Y.y0,Y.x0),cY(Y.y1,Y.x1),!p),t.arc(h,c,r,cY(Y.cy+Y.y1,Y.cx+Y.x1),cY(q.cy+q.y1,q.cx+q.x1),p),Z>0&&t.arc(h+q.cx,c+q.cy,Z,cY(q.y1,q.x1),cY(q.y0,q.x0),!p))}else t.lineTo(h+L,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+L,c+R)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(aY);c0.prototype.type="sector";let c1=c0;var c2=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},c5=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new c2},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(aY);c5.prototype.type="ring";let c3=c5;function c4(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)eu(a,a,t[p]),eh(s,s,t[p]);eu(a,a,i[0]),eh(s,s,i[1])}for(var p=0,d=t.length;p<d;p++){var f,g=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else if(0===p||p===d-1){l.push([(f=t[p])[0],f[1]]);continue}else r=t[p-1],o=t[p+1];ei(u,o,r),er(u,u,e);var v=ea(g,r),m=ea(g,o),y=v+m;0!==y&&(v/=y,m/=y),er(h,u,-v),er(c,u,m);var _=en([],g,h),x=en([],g,c);i&&(eh(_,_,a),eu(_,_,s),eh(x,x,a),eu(x,x,s)),l.push(_),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var c8=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},c6=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultShape=function(){return new c8},e.prototype.buildPath=function(t,e){c4(t,e,!0)},e}(aY);c6.prototype.type="polygon";let c7=c6;var c9=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},pt=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c9},e.prototype.buildPath=function(t,e){c4(t,e,!1)},e}(aY);pt.prototype.type="polyline";let pe=pt;var pn={},pi=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},pr=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pi},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a=a1(pn,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(aY);pr.prototype.type="line";let po=pr;var pa=[],ps=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function pl(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?nB:nR)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?nB:nR)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?nF:nV)(t.x1,t.cpx1,t.x2,e),(n?nF:nV)(t.y1,t.cpy1,t.y2,e)]}var pu=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ps},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(h<1&&(nW(n,a,r,h,pa),a=pa[1],r=pa[2],nW(i,s,o,h,pa),s=pa[1],o=pa[2]),t.quadraticCurveTo(a,s,r,o)):(h<1&&(nN(n,a,l,r,h,pa),a=pa[1],l=pa[2],r=pa[3],nN(i,s,u,o,h,pa),s=pa[1],u=pa[2],o=pa[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return pl(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=pl(this.shape,t,!0);return eo(e,e)},e}(aY);pu.prototype.type="bezier-curve";let ph=pu;var pc=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},pp=function(t){function e(e){return t.call(this,e)||this}return t7(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pc},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(aY);pp.prototype.type="arc";let pd=pp,pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return t7(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),aY.prototype.getBoundingRect.call(this)},e}(aY);var pg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();let pv=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return t7(e,t),e}(pg),pm=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return t7(e,t),e}(pg);var py=Math.min,p_=Math.max,px=Math.abs,pb=[0,0],pw=[0,0],pS=nr(),pM=pS.minTv,pT=pS.maxTv;let pI=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new eG;for(var n=0;n<2;n++)this._axes[n]=new eG;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);eG.sub(i[0],n[1],n[0]),eG.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])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return(e&&eG.set(e,0,0),pS.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r))?i:(r||pS.negativeSize||eG.copy(e,i?pS.useDir?pS.dirMinTv:pM:pT),i)},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,pb),t._getProjMinMaxOnAxis(o,e._corners,pw),pS.negativeSize||pb[1]<pw[0]||pb[0]>pw[1]){if(r=!1,pS.negativeSize||n)return r;var s=px(pw[0]-pb[1]),l=px(pb[0]-pw[1]);py(s,l)>pT.len()&&(s<l?eG.scale(pT,a,-s*i):eG.scale(pT,a,l*i))}else if(!n){var s=px(pw[0]-pb[1]),l=px(pb[0]-pw[1]);(pS.useDir||py(s,l)<pM.len())&&((s<l||!pS.bidirectional)&&(eG.scale(pM,a,s*i),pS.useDir&&pS.calcDirMTV()),(s>=l||!pS.bidirectional)&&(eG.scale(pM,a,-l*i),pS.useDir&&pS.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=py(u,a),s=p_(u,s)}n[0]=a+pS.touchThreshold,n[1]=s-pS.touchThreshold,pS.negativeSize=n[1]<n[0]},t}();var pC=[];let pk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t7(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new no(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(pC)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0}return!1},e}(an);var pD=os();function pA(t,e,n,i,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,h=void 0,c=void 0;return i?(u=tX(i.duration,200),h=tX(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),tz(c)&&(c=c(n,r)),tz(u)&&(u=u(n)),{duration:u||0,delay:c,easing:h}}function pP(t,e,n,i,r,o,a){var s,l=!1;tz(r)?(a=o,o=r,r=null):tF(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=pA(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function pO(t,e,n,i,r,o){pP("update",t,e,n,i,r,o)}function pL(t,e,n,i,r,o){pP("enter",t,e,n,i,r,o)}function pR(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function pB(t,e,n,i,r,o){pR(t)||pP("leave",t,e,n,i,r,o)}function pz(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),pB(t,{style:{opacity:0}},e,n,i)}function pE(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||pz(t,e,n,i)}):pz(t,e,n,i)}function pN(t){pD(t).oldStyle=t.style}var pV={},pF=["x","y"],pH=["width","height"],pW=0,pG=1,pU=2;function pZ(t){return aY.extend(t)}var pX=function(t,e){var n=cB(t,e),i=cL;function r(t){var e=i.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return t7(r,i),r};function pY(t,e){return pX(t,e)}function pq(t,e){pV[t]=e}function pj(t){if(pV.hasOwnProperty(t))return pV[t]}function pK(t,e,n,i){var r=new cL(cB(t,e));return n&&("center"===i&&(n=pQ(n,r.getBoundingRect())),p0(r,n)),r}function p$(t,e,n){var i=new aJ({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(pQ(e,r))}}});return i}function pQ(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var pJ=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new aY(e);return a.createPathProxy(),a.buildPath=function(t){if(cR(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function p0(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function p1(t,e){return a1(t,t,{lineWidth:e}),t}function p2(t,e){return a2(t,t,e),t}var p5=a5;function p3(t,e){for(var n=eE([]);t&&t!==e;)eV(n,t.getLocalTransform(),n),t=t.parent;return n}function p4(t,e,n){return e&&!tC(e)&&(e=i3.getLocalTransform(e)),n&&(e=eW([],e)),el([],t,e)}function p8(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:rA(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:rA(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return rA((o=p4(o,e,n))[0])>rA(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function p6(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),pO(t,i,n,sg(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tb(t.shape)),e}}function p7(t,e){return tD(t,function(t){var n=t[0];n=rk(n=rD(n,e.x),e.x+e.width);var i=t[1];return[n,i=rk(i=rD(i,e.y),e.y+e.height)]})}function p9(t,e){var n=rD(t.x,e.x),i=rk(t.x+t.width,e.x+e.width),r=rD(t.y,e.y),o=rk(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function dt(t,e,n){var i=tS({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tM(r,n),new aJ(i)):pK(t.replace("path://",""),i,n,"center")}function de(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(dn(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function dn(t,e,n,i,r,o,a,s){var l,u=n-t,h=i-e,c=a-r,p=s-o,d=c*h-u*p;if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=(f*h-u*g)/d;if(v<0||v>1)return!1;var m=(f*p-c*g)/d;return!(m<0)&&!(m>1)}function di(t,e,n,i,r){return null==e||(tV(e)?dr[0]=dr[1]=dr[2]=dr[3]=e:(dr[0]=e[0],dr[1]=e[1],dr[2]=e[2],dr[3]=e[3]),i&&(dr[0]=rD(0,dr[0]),dr[1]=rD(0,dr[1]),dr[2]=rD(0,dr[2]),dr[3]=rD(0,dr[3])),n&&(dr[0]=-dr[0],dr[1]=-dr[1],dr[2]=-dr[2],dr[3]=-dr[3]),da(t,dr,"x","width",3,1,r&&r[0]||0),da(t,dr,"y","height",0,2,r&&r[1]||0)),t}var dr=[0,0,0,0];function da(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=rD(0,rk(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:rA(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function ds(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=tE(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tk(tO(l),function(t){t3(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sg(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:tM({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function dl(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function du(t,e){if(t)if(tB(t))for(var n=0;n<t.length;n++)dl(t[n],e);else dl(t,e)}function dh(t){return!t||rA(t[1])<dc&&rA(t[2])<dc||rA(t[0])<dc&&rA(t[3])<dc}var dc=1e-5;function dp(t,e){return t?no.copy(t,e):e.clone()}function dd(t,e){return e?eN(t||ez(),e):void 0}function df(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function dg(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return dl(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function dv(t,e,n){!function t(e,n,i,r){if(e.ignoreModelZ)return r;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=rD(t(s[l],n,i,r),r);else e.z=n,e.zlevel=i,r=rD(e.z2||0,r);if(o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,e,n,-1/0)}function dm(t){return t.animation={duration:0},t}function dy(t,e){return e?eN(d_.transform,e):eE(d_.transform),d_.decomposeTransform(),i7(t,d_),t}var d_=new i3;function dx(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}d_.transform=ez(),pV.circle=cN,pV.ellipse=cH,pV.sector=c1,pV.ring=c3,pV.polygon=c7,pV.polyline=pe,pV.rect=a6,pV.line=po,pV.bezierCurve=ph,pV.arc=pd;var db=os(),dw=cy(),dS=function(){function t(){this.group=new rS,this.uid=lO("viewChart"),this.renderTask=hO({plan:dI,reset:dC}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&dT(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&dT(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){du(this.group,t)},t.markUpdateMethod=function(t,e){db(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function dM(t,e,n){t&&lr(t)&&("emphasis"===e?s0:s1)(t,n)}function dT(t,e,n){var i,r,o=oa(t,e),a=e&&null!=e.highlightKey?(null==(r=sA[i=e.highlightKey])&&sD<=32&&(r=sA[i]=sD++),r):null;null!=o?tk(r6(o),function(e){dM(t.getItemGraphicEl(e),n,a)}):t.eachItemGraphicEl(function(t){dM(t,n,a)})}function dI(t){return dw(t.model)}function dC(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&db(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),dk[l]}oL(dS,["dispose"]),oN(dS);var dk={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},dD="\0__throttleOriginMethod",dA="\0__throttleRate",dP="\0__throttleType";function dO(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=new Date().getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(h),f?h=setTimeout(c,d):r>=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function dL(t,e,n,i){var r=t[e];if(r){var o=r[dD]||r,a=r[dP];if(r[dA]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=dO(o,n,"debounce"===i))[dD]=o,r[dP]=i,r[dA]=n}return r}}function dR(t,e){var n=t[e];n&&n[dD]&&(n.clear&&n.clear(),t[e]=n[dD])}var dB=os(),dz={itemStyle:oV(lC,!0),lineStyle:oV(lM,!0)},dE={lineStyle:"stroke",itemStyle:"fill"};function dN(t,e){var n=t.visualStyleMapper||dz[e];return n||(console.warn("Unknown style type '"+e+"'."),dz.itemStyle)}function dV(t,e){var n=t.visualDrawType||dE[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var dF=new lA,dH=Math.PI,dW=function(){function t(t,e,n,i){this._stageTaskMap=t2(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(e,n):ok(t,e,n);t.pipelineContext=n.context=i},t.prototype.restorePipelines=function(t,e){var n=this,i=n._pipelineMap=t2();e.eachSeries(function(e){var r="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;i.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),n._pipe(e,e.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;tk(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});tK(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tk(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=t2(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||hO({plan:dY,reset:dq,count:d$}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||hO({reset:dG});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=t2(),l=t.seriesType,u=t.getTargetSeries,h=t.dirtyOnOverallProgress,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,hO({reset:dU,onDirty:dX})));n.context={model:t,dirtyOnOverallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}tK(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):tk(n.getSeries(),p),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);i.head||(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return tz(t)&&(t={overallReset:t,seriesType:function(t){S=null;try{t(dQ,dJ)}catch(t){}return S}(t)}),t.uid=lO("stageHandler"),e&&(t.visualType=e),t},t}();function dG(t){t.overallReset(t.ecModel,t.api,t.payload)}function dU(t){return t.dirtyOnOverallProgress&&dZ}function dZ(){this.agent.dirty(),this.getDownstream().dirty()}function dX(){this.agent&&this.agent.dirty()}function dY(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function dq(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=r6(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tD(e,function(t,e){return dK(e)}):dj}var dj=dK(0);function dK(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function d$(t){return t.data.count()}var dQ={},dJ={};function d0(t,e){for(var n in e.prototype)t[n]=t4}d0(dQ,uY),d0(dJ,sk),dQ.eachSeriesByType=dQ.eachRawSeriesByType=function(t){S=t},dQ.eachComponent=function(t){"series"===t.mainType&&t.subType&&(S=t.subType)};var d1=uC.darkColor,d2=d1.background,d5=function(){return{axisLine:{lineStyle:{color:d1.axisLine}},splitLine:{lineStyle:{color:d1.axisSplitLine}},splitArea:{areaStyle:{color:[d1.backgroundTint,d1.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:d1.axisMinorSplitLine}},axisLabel:{color:d1.axisLabel},axisName:{}}},d3={label:{color:d1.secondary},itemStyle:{borderColor:d1.borderTint},dividerLineStyle:{color:d1.border}},d4={darkMode:!0,color:d1.theme,backgroundColor:d2,axisPointer:{lineStyle:{color:d1.border},crossStyle:{color:d1.borderShade},label:{color:d1.tertiary}},legend:{textStyle:{color:d1.secondary},pageTextStyle:{color:d1.tertiary}},textStyle:{color:d1.secondary},title:{textStyle:{color:d1.primary},subtextStyle:{color:d1.quaternary}},toolbox:{iconStyle:{borderColor:d1.accent50},feature:{dataView:{backgroundColor:d2,textColor:d1.primary,textareaColor:d1.background,textareaBorderColor:d1.border,buttonColor:d1.accent50,buttonTextColor:d1.neutral00}}},tooltip:{backgroundColor:d1.neutral20,defaultBorderColor:d1.border,textStyle:{color:d1.tertiary}},dataZoom:{borderColor:d1.accent10,textStyle:{color:d1.tertiary},brushStyle:{color:d1.backgroundTint},handleStyle:{color:d1.neutral00,borderColor:d1.accent20},moveHandleStyle:{color:d1.accent40},emphasis:{handleStyle:{borderColor:d1.accent50}},dataBackground:{lineStyle:{color:d1.accent30},areaStyle:{color:d1.accent20}},selectedDataBackground:{lineStyle:{color:d1.accent50},areaStyle:{color:d1.accent30}}},visualMap:{textStyle:{color:d1.secondary},handleStyle:{borderColor:d1.neutral30}},timeline:{lineStyle:{color:d1.accent10},label:{color:d1.tertiary},controlStyle:{color:d1.accent30,borderColor:d1.accent30}},calendar:{itemStyle:{color:d1.neutral00,borderColor:d1.neutral20},dayLabel:{color:d1.tertiary},monthLabel:{color:d1.secondary},yearLabel:{color:d1.secondary}},matrix:{x:d3,y:d3,backgroundColor:{borderColor:d1.axisLine},body:{itemStyle:{borderColor:d1.borderTint}}},timeAxis:d5(),logAxis:d5(),valueAxis:d5(),categoryAxis:d5(),line:{symbol:"circle"},graph:{color:d1.theme},gauge:{title:{color:d1.secondary},axisLine:{lineStyle:{color:[[1,d1.neutral05]]}},axisLabel:{color:d1.axisLabel},detail:{color:d1.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:d1.background}},radar:((s=d5()).axisName={color:d1.axisLabel},s.axisLine.lineStyle.color=d1.neutral20,s),treemap:{breadcrumb:{itemStyle:{color:d1.neutral20,textStyle:{color:d1.secondary}},emphasis:{itemStyle:{color:d1.neutral30}}}},sunburst:{itemStyle:{borderColor:d1.background}},map:{itemStyle:{borderColor:d1.border,areaColor:d1.neutral10},label:{color:d1.tertiary},emphasis:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}},select:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}}},geo:{itemStyle:{borderColor:d1.border,areaColor:d1.neutral10},emphasis:{label:{color:d1.primary},itemStyle:{areaColor:d1.highlight}},select:{label:{color:d1.primary},itemStyle:{color:d1.highlight}}}};d4.categoryAxis.splitLine.show=!1;var d8=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(tE(t)){var r=oO(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};tk(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),d6=["symbol","symbolSize","symbolRotate","symbolOffset"],d7=d6.concat(["symbolKeepAspect"]);function d9(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ft(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=oa(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:tB(u)?l.getName(u[0]):l.getName(u),selected:tE(i)?i:tS({},i)})}})}function fe(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var fn=new ed,fi={},fr=os();function fo(t){return fr(t).prepare}function fa(t){return fr(t).fullUpdate}var fs=Math.round(9*Math.random()),fl="function"==typeof Object.defineProperty,fu=function(){function t(){this._id="__ec_inner_"+fs++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return fl?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),fh=aY.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),fc=aY.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),fp=aY.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-h+c*d,l+s+p*d,n-h,l+s),t.closePath()}}),fd=aY.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),ff={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},fg={};tk({line:po,rect:a6,roundRect:a6,square:a6,circle:cN,diamond:fc,pin:fp,arrow:fd,triangle:fh},function(t,e){fg[e]=new t});var fv=aY.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=ru(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=fg[i];r||(r=fg[i="rect"]),ff[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function fm(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||uC.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function fy(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?p$(t.slice(8),new no(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?pK(t.slice(7),{},new no(e,n,i,r),a?"center":"cover"):new fv({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=fm,o&&s.setColor(o),s}function f_(t){return tB(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function fx(t,e){if(null!=t)return tB(t)||(t=[t,t]),[rF(t[0],e[0])||0,rF(tX(t[1],t[0]),e[1])||0]}function fb(t){return isFinite(t)}function fw(t,e,n){for(var i,r,o,a,s,l,u,h,c,p,d="radial"===e.type?(o=Math.min(i=n.width,r=n.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=fb(a)?a:.5,s=fb(s)?s:.5,l=l>=0&&fb(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,p=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,p=p*n.height+n.y),u=fb(u)?u:0,h=fb(h)?h:1,c=fb(c)?c:0,p=fb(p)?p:0,t.createLinearGradient(u,c,h,p)),f=e.colorStops,g=0;g<f.length;g++)d.addColorStop(f[g].offset,f[g].color);return d}function fS(t){return parseInt(t,10)}function fM(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||fS(s[i])||fS(t.style[i]))-(fS(s[o])||0)-(fS(s[a])||0)||0}function fT(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:tV(e)?[e]:tB(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tD(r,function(t){return t/a}),o/=a)}return[r,o]}var fI=new aL(!0);function fC(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function fk(t){return"string"==typeof t&&"none"!==t}function fD(t){var e=t.fill;return null!=e&&"none"!==e}function fA(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function fP(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function fO(t,e,n){var i=oG(e.image,e.__image,n);if(oZ(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*t8),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var fL=["shadowBlur","shadowOffsetX","shadowOffsetY"],fR=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fB(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){fN(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?o7.opacity:a}(i||e.blend!==n.blend)&&(o||(fN(t,r),o=!0),t.globalCompositeOperation=e.blend||o7.blend);for(var s=0;s<fL.length;s++){var l=fL[s];(i||e[l]!==n[l])&&(o||(fN(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(fN(t,r),o=!0),t.shadowColor=e.shadowColor||o7.shadowColor),o}function fz(t,e,n,i,r){var o=e.style,a=i?null:n&&n.style||{};if(o===a)return!1;var s=fB(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(fN(t,r),s=!0),fk(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(fN(t,r),s=!0),fk(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(fN(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fN(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<fR.length;u++){var h=fR[u],c=h[0];(i||o[c]!==a[c])&&(s||(fN(t,r),s=!0),t[c]=o[c]||h[1])}return s}function fE(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function fN(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function fV(t,e){fN(t,e),e.prevElClipPaths&&t.restore()}var fF=new fu,fH=new nq(100),fW=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fG(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&fF.delete(t);var o=fF.get(t);if(o)return o;var a=tM(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[n],l=!0,u=0;u<fW.length;++u){var h=a[fW[u]];if(null!=h&&!tB(h)&&!tE(h)&&!tV(h)&&"boolean"!=typeof h){l=!1;break}s.push(h)}if(l){e=s.join(",")+(r?"-svg":"");var c=fH.get(e);c&&(r?t.svgElement=c:t.image=c)}var p=function t(e){if(!e||0===e.length)return[[0,0]];if(tV(e)){var n=Math.ceil(e);return[[n,n]]}for(var i=!0,r=0;r<e.length;++r)if(!tV(e[r])){i=!1;break}if(i)return t([e]);for(var o=[],r=0;r<e.length;++r)if(tV(e[r])){var n=Math.ceil(e[r]);o.push([n,n])}else{var n=tD(e[r],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(tV(t)){var e=Math.ceil(t);return[e,e]}var n=tD(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(tE(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!tE(e[i])){n=!1;break}if(n)return t([e]);for(var r=[],i=0;i<e.length;++i)tE(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),g=tD(p,function(t){return fU(t)}),v=fU(d),m=!r&&ta.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=r3(t,g[e]);for(var i=1,e=0,n=f.length;e<n;++e)i=r3(i,f[e].length);t*=i;var r=v*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=_.width*n,m.height=_.height*n,o=m.getContext("2d")),function(){o&&(o.clearRect(0,0,m.width,m.height),a.backgroundColor&&(o.fillStyle=a.backgroundColor,o.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0))for(var s=-v,l=0,u=0,h=0;s<_.height;){if(l%2==0){for(var c=u/2%f.length,g=0,x=0,b=0;g<2*_.width;){for(var w=0,e=0;e<p[h].length;++e)w+=p[h][e];if(w<=0)break;if(x%2==0){var S=(1-a.symbolSize)*.5,M=g+p[h][x]*S,T=s+d[l]*S,I=p[h][x]*a.symbolSize,C=d[l]*a.symbolSize,k=b/2%f[c].length;!function(t,e,s,l,u){var h,c,p=r?1:n,d=fy(u,t*p,e*p,s*p,l*p,a.color,a.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(d);f&&y.children.push(f)}else(function t(e,n,i){var r,o=n.transform;if(!n.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){n.__dirty&=-2,n.__isRendered=!1;return}var a=n.__clipPaths,s=i.prevElClipPaths,l=n.style,u=!1,h=!1;if((!s||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(a,s))&&(s&&(fN(e,i),e.restore(),h=u=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),a&&a.length)){fN(e,i),e.save();for(var c=!1,p=0;p<a.length;p++){var d=a[p];c=c||d.isZeroArea(),fE(e,d),e.beginPath(),d.buildPath(e,d.shape),e.clip()}i.allClipped=c,u=!0,i.prevElClipPaths=a}if(i.allClipped){n.__dirty&=-2,n.__isRendered=!1;return}n.beforeBrush&&n.beforeBrush(i.beforeBrushParam),n.innerBeforeBrush();var f=i.prevEl;f||(h=u=!0);var g=n instanceof aY&&n.autoBatch&&(v=fD(l),m=fC(l),!(l.lineDash||!(v^m)||v&&"string"!=typeof l.fill||m&&"string"!=typeof l.stroke||l.strokePercent<1||l.strokeOpacity<1||l.fillOpacity<1));if(!u&&(y=f.transform,o&&y?o[0]===y[0]&&o[1]===y[1]&&o[2]===y[2]&&o[3]===y[3]&&o[4]===y[4]&&o[5]===y[5]:+(!o&&!y))?g||fN(e,i):(fN(e,i),fE(e,n)),n instanceof aY)1!==i.lastDrawType&&(h=!0,i.lastDrawType=1),fz(e,n,f,h,i),g&&(i.batchFill||i.batchStroke)||e.beginPath(),function(t,e,n,i,r){var o,a,s,l=fC(n),u=fD(n),h=n.strokePercent,c=h<1,p=!e.path;(!e.silent||c)&&p&&e.createPathProxy();var d=e.path||fI,f=e.__dirty;if(!i){var g=n.fill,v=n.stroke,m=u&&!!g.colorStops,y=l&&!!v.colorStops,_=u&&!!g.image,x=l&&!!v.image,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0;(m||y)&&(T=e.getBoundingRect()),m&&(b=f?fw(t,g,T):e.__canvasFillGradient,e.__canvasFillGradient=b),y&&(w=f?fw(t,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(S=f||!e.__canvasFillPattern?fO(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=S),x&&(M=f||!e.__canvasStrokePattern?fO(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=M),m?t.fillStyle=b:_&&(S?t.fillStyle=S:u=!1),y?t.strokeStyle=w:x&&(M?t.strokeStyle=M:l=!1)}var I=e.getGlobalScale();d.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(a=(o=fT(e))[0],s=o[1]);var C=!0;(p||4&f)&&(d.setDPR(t.dpr),c?d.setContext(null):(d.setContext(t),C=!1),d.reset(),e.buildPath(d,e.shape,i),d.toStatic(),e.pathUpdated()),C&&d.rebuildPath(t,c?h:1),a&&(t.setLineDash(a),t.lineDashOffset=s),i?(r.batchFill=u,r.batchStroke=l):n.strokeFirst?(l&&fP(t,n),u&&fA(t,n)):(u&&fA(t,n),l&&fP(t,n)),a&&t.setLineDash([])}(e,n,l,g,i);else if(n instanceof aj){3!==i.lastDrawType&&(h=!0,i.lastDrawType=3),fz(e,n,f,h,i);var v,m,y,_,x=l.text;if(null!=x&&(x+=""),x){e.font=l.font||tr,e.textAlign=l.textAlign,e.textBaseline=l.textBaseline;var b=void 0,w=void 0;e.setLineDash&&l.lineDash&&(b=(_=fT(n))[0],w=_[1]),b&&(e.setLineDash(b),e.lineDashOffset=w),l.strokeFirst?(fC(l)&&e.strokeText(x,l.x,l.y),fD(l)&&e.fillText(x,l.x,l.y)):(fD(l)&&e.fillText(x,l.x,l.y),fC(l)&&e.strokeText(x,l.x,l.y)),b&&e.setLineDash([])}}else n instanceof aJ?(2!==i.lastDrawType&&(h=!0,i.lastDrawType=2),r=h,fB(e,n.style,f&&f.style,r,i),function(t,e,n){var i=e.__image=oG(n.image,e.__image,e,e.onload);if(i&&oZ(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(e,n,l)):n.getTemporalDisplayables&&(4!==i.lastDrawType&&(h=!0,i.lastDrawType=4),function(e,n,i){var r,o,a=n.getDisplayables(),s=n.getTemporalDisplayables();e.save();var l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover,beforeBrushParam:{}};for(r=n.getCursor(),o=a.length;r<o;r++){var u=a[r];u.beforeBrush&&u.beforeBrush(i.beforeBrushParam),u.innerBeforeBrush(),t(e,u,l),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}fV(e,l);for(var h=0,c=s.length;h<c;h++){var u=s[h];u.beforeBrush&&u.beforeBrush(i.beforeBrushParam),u.innerBeforeBrush(),t(e,u,l),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}fV(e,l),n.clearTemporalDisplayables(),n.notClear=!0,e.restore()}(e,n,i));n.innerAfterBrush(),n.afterBrush&&(g&&fN(e,i),n.afterBrush()),i.prevEl=n,n.__dirty=0,n.__isRendered=!0})(h=o,d,c={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}}),fV(h,c)}(M,T,I,C,f[c][k])}g+=p[h][x],++b,++x===p[h].length&&(x=0)}++h===p.length&&(h=0)}s+=d[l],++u,++l===d.length&&(l=0)}}(),l&&fH.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,fF.set(t,s),t.dirty=!1,s}function fU(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var fZ=oD(function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=fG(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=fG(r,e))}})}),fX="__flagInMainProcess",fY="__mainProcessVersion",fq="__pendingUpdate",fj="__needsUpdateStatus",fK=/^[a-zA-Z0-9_]+$/,f$="__connectUpdateStatus";function fQ(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void this.id:f0(this,t,e)}}function fJ(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return f0(this,t,e)}}function f0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ed.prototype[e].apply(t,n)}var f1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e}(ed),f2=f1.prototype;f2.on=fJ("on"),f2.off=fJ("off");var f5=function(t){function e(e,n,i){var r=t.call(this,new d8)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r.__v_skip=!0,r._dom=e,r[fY]=1,i.ssr&&(p=function(t){var e=sg(t),n=e.dataIndex;if(null!=n){var i=t2();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var o=r._zr=rC(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:tX(i.useDirtyRect,!1),useCoarsePointer:tX(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=dO(tL(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(!tE(t))return tw(tb(t),tb(lR.EN),!1);var e=lR[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tb(e):tw(tb(e),tb(lR.EN),!1)}(i.locale||lz),r._coordSysMgr=new up;var a=r._api=N(r);function s(t,e){return t.__prio-e.__prio}return n_(ge,s),n_(f9,s),r._scheduler=new dW(r,a,f9,ge),r._messageCenter=new f1,r._initEvents(),r.resize=tL(r.resize,r),o.animation.on("frame",r._onframe,r),L(o,r),R(o,r),r[tQ]=!0,r}return tt(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if(H(this),this[fq]){var i=this[fq].silent;this[fX]=!0,W(this);try{M(this),C.update.call(this,null,this[fq].updateParams)}catch(t){throw this[fX]=!1,this[fq]=null,t}this._zr.flush(),this[fX]=!1,this[fq]=null,P.call(this,i),O.call(this,i)}else if(t.unfinished){var r=1;do{t.unfinished=!1;var o=ta.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),D(this,e),t.performVisualTasks(e),E(this,this._model,n,"remain",{}),r-=ta.getTime()-o}while(r>0&&t.unfinished)t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[fX]){if(this._disposed)return void this.id;if(tF(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fX]=!0,W(this),!this._model||e){var i,r,o,a=new uQ(this._api),s=this._theme,l=this._model=new uY;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},gt);var u={seriesTransition:o,optionChanged:!0};if(n)this[fq]={silent:i,updateParams:u},this[fX]=!1,this.getZr().wakeUp();else{try{M(this),C.update.call(this,null,u)}catch(t){throw this[fq]=null,this[fX]=!1,t}this._ssr||this._zr.flush(),this[fq]=null,this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[fX]){if(this._disposed)return void this.id;var n=this._model;if(n){var i=e&&e.silent,r=null;this[fq]&&(null==i&&(i=this[fq].silent),r=this[fq].updateParams,this[fq]=null),this[fX]=!0,W(this);try{this._updateTheme(t),n.setTheme(this._theme),M(this),C.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fX]=!1,t}this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype._updateTheme=function(t){tE(t)&&(t=gn[t]),t&&((t=tb(t))&&ho(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tn.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return tk(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;tk(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tk(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max;if(!go[n])return this.getDataURL(t);var o=1/0,a=1/0,s=-1/0,l=-1/0,u=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();tk(gr,function(h,c){if(h.group===n){var p=e?h.getZr().painter.getSvgDom().innerHTML:h.renderToCanvas(tb(t)),d=h.getDom().getBoundingClientRect();o=i(d.left,o),a=i(d.top,a),s=r(d.right,s),l=r(d.bottom,l),u.push({dom:p,left:d.left,top:d.top})}}),o*=h,a*=h,s*=h,l*=h;var c=s-o,p=l-a,d=ta.createCanvas(),f=rC(d,{renderer:e?"svg":"canvas"});if(f.resize({width:c,height:p}),!e)return t.connectedBackgroundColor&&f.add(new a6({shape:{x:0,y:0,width:c,height:p},style:{fill:t.connectedBackgroundColor}})),tk(u,function(t){var e=new aJ({style:{x:t.left*h-o,y:t.top*h-a,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"));var g="";return tk(u,function(t){var e=t.left-o,n=t.top-a;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,t.connectedBackgroundColor&&f.painter.setBackgroundColor(t.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,n){return k(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return k(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return k(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void this.id:(tk(ou(this._model,t),function(t,i){i.indexOf("Models")>=0&&tk(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=ou(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):d9(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;tk(f4,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&fe(o,function(t){var e=sg(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=tS({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)});var i=this._messageCenter;tk(f7,function(t,e){i.on(e,function(t){n.trigger(e,t)})}),t=this,e=this._api,i.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(ft("map","selectchanged",t,i,n),ft("pie","selectchanged",t,i,n)):"select"===n.fromAction?(ft("map","selected",t,i,n),ft("pie","selected",t,i,n)):"unselect"===n.fromAction&&(ft("map","unselected",t,i,n),ft("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&of(this.getDom(),gs,"");var t=this._api,e=this._model;tk(this._componentsViews,function(n){n.dispose(e,t)}),tk(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete gr[this.id]},e.prototype.resize=function(t){if(!this[fX]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[fq]&&(null==i&&(i=this[fq].silent),n=!0,this[fq]=null),this[fX]=!0,W(this);try{n&&M(this),C.update.call(this,{type:"resize",animation:tS({duration:0},t&&t.animation)})}catch(t){throw this[fX]=!1,t}this[fX]=!1,P.call(this,i),O.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(tF(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),gi[t]){var n=gi[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tS({},t);return e.type=f6[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if((tF(e)||(e={silent:!!e}),f8[t.type])&&this._model){if(this[fX])return void this._pendingActions.push(t);var n=e.silent;A.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&tn.browser.weChat&&this._throttledZrFlush(),P.call(this,n),O.call(this,n)}},e.prototype.updateLabelLayout=function(){fn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=df(t);e.eachRendered(function(t){return dv(t,n.z,n.zlevel),!0})}}function i(t,e){e.eachRendered(function(t){if(!pR(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!pR(t)){if(t instanceof aY&&((n=sP(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(i=t.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),t.__dirty){var n,i,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}M=function(t){fr(t._model).prepare={};var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),T(t,!0),T(t,!1),e.plan()},T=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!l&&o[u];if(!h){var c=oO(t.type);(h=new(e?cm.getClass(c.main,c.sub):dS.getClass(c.sub))).init(n,s),o[u]=h,r.push(h),a.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||i.prepareView(h,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<r.length;){var h=r[l];h.__alive?l++:(e||h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),r.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},I=function(t,e,n,i,r){var o,a,s,l=t._model;if(l.setUpdatePayload(n),!i)return void tk([].concat(t._componentsViews).concat(t._chartsViews),c);var u=((o={})[i+"Id"]=n[i+"Id"],o[i+"Index"]=n[i+"Index"],o[i+"Name"]=n[i+"Name"],a={mainType:i,query:o},r&&(a.subType=r),a),h=n.excludeSeriesId;function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}null!=h&&(s=t2(),tk(r6(h),function(t){var e=oi(t,null);null!=e&&s.set(e,!0)})),l&&l.eachComponent(u,function(e){if(!(s&&null!=s.get(e.id))){if(la(n))if(e instanceof cu)n.type!==sB||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=oa(r,e);o=(tB(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=sg(a);s3(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&s3(i,h,c,n)}}}(e,n,t._api);else{var i=s8(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===sB&&r&&!n.notBlur&&s4(e.mainType,e.componentIndex,t._api),o&&tk(o,function(t){n.type===sB?s0(t):s1(t)})}else if(lo(n)&&e instanceof cu){if(t._api,lo(n)){var a=n.dataType,l=oa(e.getData(a),n);tB(l)||(l=[l]),e[n.type===sV?"toggleSelect":n.type===sE?"select":"unselect"](l,a)}s6(e),F(t)}}},t),l&&l.eachComponent(u,function(e){s&&null!=s.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},C={prepareAndUpdate:function(t){M(this),C.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){fr(i).fullUpdate={},i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),fn.trigger("coordsys:aftercreate",i,r),s.performDataProcessorTasks(i,e),D(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),B(this,i,r,e,n),fn.trigger("afterupdate",i,r)}},updateTransform:function(t){var e=this,n=e._model,i=e._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent(function(o,a){if(o!==sy){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=t2();n.eachSeries(function(r){var a=e._chartsMap[r.__viewId],s=r.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(r,n,i,t);l&&l.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),E(e,n,i,t,{},o),fn.trigger("afterupdate",n,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),dS.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),B(this,n,this._api,e,{}),fn.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),dS.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),fn.trigger("afterupdate",i,this._api))},updateLayout:function(t){C.update.call(this,t)}},k=function(t,e,n,i,r){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=ou(a,n),u=0;u<s.length;u++){var h=s[u];if(h[e]&&null!=(o=h[e](a,l,i,r)))return o}},D=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},A=function(t,e){var n,i=this,r=this.getModel(),o=t.type,a=t.escapeConnect,s=f8[o],l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&oO(l[0]);this[fX]=!0,W(this);var c=[t],p=!1;t.batch&&(p=!0,c=tD(t.batch,function(e){return(e=tM(tS({},e),t)).batch=null,e}));var d=[],f=[],g=s.nonRefinedEventType,v=lo(t),m=la(t);if(m&&s5(this._api),tk(c,function(e){var o=s.action(e,r,i._api);if(s.refineEvent?f.push(o):n=o,(n=n||tS({},e)).type=g,d.push(n),m){var a=oh(t),l=a.queryOptionMap;I(i,u,e,a.mainTypeSpecified?l.keys()[0]:"series"),F(i)}else v?(I(i,u,e,"series"),F(i)):h&&I(i,u,e,h.main,h.sub)}),"none"!==u&&!m&&!v&&!h)try{this[fq]?(M(this),C.update.call(this,t),this[fq]=null):C[u].call(this,t)}catch(t){throw this[fX]=!1,t}if(n=p?{type:g,escapeConnect:a,batch:d}:d[0],this[fX]=!1,!e){var y=void 0;if(s.refineEvent){var _=s.refineEvent(f,t,r,this._api).eventContent;tK(tF(_)),(y=tM({type:s.refinedEventType},_)).fromAction=t.type,y.fromActionPayload=t,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(n.type,n),y&&x.trigger(y.type,y)}},P=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();A.call(this,n,t)}},O=function(t){t||this.trigger("updated")},L=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[fq]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")})},R=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a,s=fe(t.target,lr);s&&(n=e._api,o=(r=s8((i=sg(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,a=r.focusSelf,o?(a&&s4(i.componentMainType,i.componentIndex,n),tk(o,function(e){return sQ(e,t)})):(s3(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&s4(i.componentMainType,i.componentIndex,n),sQ(s,t)),F(e))}).on("mouseout",function(t){var n,i,r,o=fe(t.target,lr);o&&(s5(n=e._api),(r=s8((i=sg(o)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?tk(r,function(e){return sJ(e,t)}):sJ(o,t),F(e))}).on("click",function(t){var n=fe(t.target,function(t){return null!=sg(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=sg(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},B=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);n_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tk(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),z(t,e,n,i,r),tk(t._chartsViews,function(t){t.__alive=!1}),E(t,e,n,i,r),tk(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},z=function(t,e,o,a,s,l){tk(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},E=function(t,e,o,a,s,l){var u=t._scheduler;s=tS(s||{},{updatedSeries:e.getSeries()}),fn.trigger("series:beforeupdate",e,o,s);var h=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var c=s.renderTask;u.updatePayload(c,a),i(e,s),l&&l.get(e.uid)&&c.dirty(),c.perform(u.getPerformArgs(c))&&(h=!0),s.group.silent=!!e.get("silent"),n=e,r=s,o=n.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),s6(e)}),u.unfinished=h||u.unfinished,fn.trigger("series:layoutlabels",e,o,s),fn.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr;if("canvas"===n.painter.type){var i=n.storage,r=0;i.traverse(function(t){!t.isGroup&&r++});var o=r>tX(e.get("hoverLayerThreshold"),uB.hoverLayerThreshold)&&!tn.node&&!tn.worker;(t._usingTHL||o)&&(e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){var e=t.states.emphasis;e&&e.hoverLayer!==pU&&(e.hoverLayer=o?pG:pW)})}}),t._usingTHL=o)}}(t,e),fn.trigger("series:afterupdate",e,o,s)},F=function(t){t[fj]=!0,t.getZr().wakeUp()},W=function(t){t[fY]=(t[fY]+1)%1e6},H=function(t){t[fj]&&(t.getZr().storage.traverse(function(t){pR(t)||e(t)}),t[fj]=!1)},N=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return tt(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){s0(e,n),F(t)},n.prototype.leaveEmphasis=function(e,n){s1(e,n),F(t)},n.prototype.enterBlur=function(e){sj(e,sZ),F(t)},n.prototype.leaveBlur=function(e){sj(e,sX),F(t)},n.prototype.enterSelect=function(e){sj(e,sY),F(t)},n.prototype.leaveSelect=function(e){sj(e,sq),F(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getECUpdateCycleVersion=function(){return t[fY]},n.prototype.usingTHL=function(){return t._usingTHL},n}(sk))(t)},V=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][f$]=e}tk(f6,function(n,i){t._messageCenter.on(i,function(n){if(go[t.group]&&0!==t[f$]&&(!n||!n.escapeConnect)){var i=t.makeActionFromEvent(n),r=[];tk(gr,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),tk(r,function(t){1!==t[f$]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(ed),f3=f5.prototype;f3.on=fQ("on"),f3.off=fQ("off"),f3.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var f4=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],f8={},f6={},f7={},f9=[],gt=[],ge=[],gn={},gi={},gr={},go={},ga=new Date-0,gs="_echarts_instance_";function gl(t){0>tT(gt,t)&>.push(t)}function gu(t,e){gf(f9,t,e,2e3)}function gh(t,e){fn.on(t,e)}function gc(t,e,n){function i(t){return t.toLowerCase()}tz(e)&&(n=e,e=""),tF(t)?(r=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(r=t,l=e);var r,o,a,s,l=i(l||r),u=o?i(r):l;f8[r]||(tK(fK.test(r)&&fK.test(l)),o&&tK(l!==r),f8[r]={actionType:r,refinedEventType:l,nonRefinedEventType:u,update:a,action:n,refineEvent:o},f7[l]=1,o&&s&&(f7[u]=1),f6[u]=r)}function gp(t,e){gf(ge,t,e,3e3,"visual",!0)}var gd=[];function gf(t,e,n,i,r,o){if((tz(e)||tF(e))&&(n=e,e=i),!(tT(gd,n)>=0)){gd.push(n);var a=dW.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function gg(t,e,n,i){var r;return{eventContent:{selected:(r=[],n.eachSeries(function(t){tk(t.getAllData(),function(e){e.data;var n=e.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),r.push(o)}})}),r),isFromClick:e.isFromClick||!1}}}gp(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dN(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=dV(t,i),l=o[s],u=tz(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tz(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||tz(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=tS({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),gp(4500,{createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=dN(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){dF.option=n[i];var a=r(dF);tS(t.ensureUniqueItemVisual(e,"style"),a),dF.option.decal&&(t.setItemVisual(e,"decal",dF.option.decal),dF.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),gp(4500,{performRawSeries:!0,overallReset:function(t){var e=t2();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();dB(t).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},i=t.getData(),r=dB(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=dV(t,o);i.each(function(t){n[i.getRawIndex(t)]=t}),e.each(function(o){var s=n[o];if(i.getItemVisual(s,"colorFromPalette")){var l=i.ensureUniqueItemVisual(s,"style"),u=e.getName(o)||o+"",h=e.count();l[a]=t.getColorFromPalette(u,r,h)}})}})}}),gp(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<d6.length;a++){var s=d6[a],l=t.get(s);tz(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(tS({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=tO(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}}),gp(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<d7.length;i++){var r=d7[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),gp(7e3,fZ),gl(ho),gu(900,ha),gi.default=function(t,e){tM(e=e||{},{text:"loading",textColor:uC.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:uC.color.theme["0"],spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new rS,r=new a6({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(r);var o=new sf({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new a6({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new pd({shape:{startAngle:-dH/2,endAngle:-dH/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*dH/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*dH/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},gc({type:sB,event:sB,update:sB},t4),gc({type:sz,event:sz,update:sz},t4),gc({type:sE,event:sF,update:sE,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gc({type:sN,event:sF,update:sN,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gc({type:sV,event:sF,update:sV,action:t4,refineEvent:gg,publishNonRefinedEvent:!0}),gn.default={},gn.dark=d4;var gv={},gm=[],gy={registerPreprocessor:gl,registerProcessor:gu,registerPostInit:function(t){gh("afterinit",t)},registerPostUpdate:function(t){gh("afterupdate",t)},registerUpdateLifecycle:gh,registerAction:gc,registerCoordinateSystem:function(t,e){up.register(t,e)},registerLayout:function(t,e){gf(ge,t,e,1e3,"layout",!0)},registerVisual:gp,registerTransform:function(t){var e=(t=tb(t)).type;e||hy("");var n=e.split(":");2!==n.length&&hy("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,hZ.set(e,t)},registerLoading:function(t,e){gi[t]=e},registerMap:function(t,e,n){var i=fi.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){fi[t]=e},PRIORITY:{PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:uM,ComponentView:cm,SeriesModel:cu,ChartView:dS,registerComponentModel:function(t){uM.registerClass(t)},registerComponentView:function(t){cm.registerClass(t)},registerSeriesModel:function(t){cu.registerClass(t)},registerChartView:function(t){dS.registerClass(t)},registerCustomSeries:function(t,e){gv[t]=e},registerSubTypeDefaulter:function(t,e){uM.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rM[t]=e}};function g_(t){tB(t)?tk(t,function(t){g_(t)}):tT(gm,t)>=0||(gm.push(t),tz(t)&&(t={install:t}),t.install(gy))}var gx=os(),gb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gw=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gT(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return tX(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=hf(this.source),n=!(t>30),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=gb[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gS(t){return t instanceof gw}function gM(t){for(var e=t2(),n=0;n<(t||[]).length;n++){var i=t[n],r=tF(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function gT(t){var e=gx(t);return e.dimNameMap||(e.dimNameMap=gM(t.dimensionsDefine))}function gI(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gC(t,e){return gI(t,e)?t.getCalculationInfo("stackResultDimension"):e}var gk=typeof Float32Array!==sm?Float32Array:void 0,gD=typeof Float64Array!==sm?Float64Array:void 0;function gA(t){return gP({ctor:gk},t).arr}function gP(t,e){var n=t.arr,i=t.ctor;if(e>rY&&(e=rY),!n||t.typed&&n.length<e){var r=void 0;if(i)try{r=new i(e),t.typed=!0,n&&r.set(n)}catch(t){}if(!r&&(r=[],t.typed=!1,n))for(var o=0,a=n.length;o<a;o++)r[o]=n[o];t.arr=r}return t}var gO=tO({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function gL(t,e,n){t=t||{};var i,r,o,a,s,l=lN();if(l){var u=l.createBreakScaleMapper(e,n);u.hasBreaks()&&(tk(gO,function(e){u[e]&&(t[e]=tL(u[e],u))}),s=u)}return null==s&&(i=t,r=n,a=[],(o=i||{})._extents=a,a[0]=r?r.slice():ov(),tS(o,gN)),{brk:s,mapper:t}}function gR(t,e){tk(gO,function(n){t[n]=e[n]})}function gB(t){return t.getExtentUnsafe(0,2)}function gz(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function gE(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var gN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=gz(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){gV(this._extents,0,t,e)},setExtent2:function(t,e,n){var i=this._extents;i[t]||(i[t]=i[0].slice()),gV(i,t,e,n)},freeze:function(){}};function gV(t,e,n,i){ox(n,i)&&(t[e][0]=n,t[e][1]=i)}function gF(t){return"interval"===t.type}function gH(t){return"time"===t.type}function gW(t){return"log"===t.type}function gG(t){return"ordinal"===t.type}function gU(t){return rU(t)+2}function gZ(t,e,n){var i=n&&n.lookup;if(i){for(var r=0;r<i.from.length;r++)if(t===i.from[r])return i.to[r]}return rR(e,t)}function gX(t,e,n){var i=t.slice();if(i[0]===i[1]){var r=n&&n.ctnShp;if(0!==i[0]){var o=rA(i[0]);e[1]||(i[1]+=o/2),i[0]-=o/2}else r&&(i[0]=-1),i[1]=1}return o_(i[0])&&o_(i[1])||(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function gY(t,e){return rP(rD(t=t||e,1))}function gq(t,e,n){var i=gB(t),r=i[0],o=t.count(),a=Math.max((e||0)+1,1);0!==r&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);function l(t,e,i){n({value:t,offInterval:e},i)}s-a!==i[1]&&l(i[1],!0,!0)}var gj=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();oN(gj);var gK=0,g$=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gK,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&tD(i,gQ);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!tE(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=t2(this.categories))},t}();function gQ(t){return tF(t)&&null!=t.value?t.value:t+""}var gJ=function(t){function e(n){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,gR(i,e.decoratedMethods);var r=n.ordinalMeta;r||(r=new g$({})),tB(r)&&(r=new g$({categories:tD(r,function(t){return tF(t)?t.value:t})})),i._ordinalMeta=r;var o=gL(null,null,n.extent||[0,r.categories.length-1]);return i._mapper=o.mapper,o.mapper,i.freeze=t4,i}return tt(e,t),e.parse=function(t){return null==t?t=0/0:tE(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=0/0):t=rP(t),t},e.prototype.getTicks=function(){var t=[];return gq(this,0,function(e){t.push(e)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=rk(o,e.length);r<a;++r)i[n[r]=e[r]]=r;for(var s=0;r<o;++r){for(;null!=i[s];)s++;n[r]=s,i[s]=r}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){var t=gB(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(rP(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(gj);function g0(t,e,n,i){for(var r=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!u.break&&!l.break){for(var h=0,c=[],p=(l.value-u.value)/e,d=gU(p);h<e-1;){var f=rW(u.value+(h+1)*p,d);f>a[0]&&f<a[1]&&c.push(f),h++}var g=lN();g&&g.pruneTicksByBreak("auto",c,n,function(t){return t},i,a),o.push(c)}}return o}gj.registerClass(gJ);var g1=function(t){function e(n){var i=t.call(this)||this;i.type="interval",i.parse=e.parse;var r=lV(i,n=n||{}),o=gL(i,r,null);return i.brk=o.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return tt(e,t),e.parse=function(t){return null==t||""===t?0/0:Number(t)},e.prototype.getConfig=function(){return tb(this._cfg)},e.prototype.setConfig=function(t){var e=gB(this);this._cfg=t=tb(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=gU(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,i=gB(this),r=e.niceExtent,o=e.intervalPrecision,a=lN(),s=this.brk,l=a&&s,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(u,s.breaks,i),u;i[0]<r[0]&&u.push({value:t.expandToNicedExtent?rW(r[0]-n,o):i[0]});for(var h=function(t,e){return rP((e-t)/n)},c=e.intervalCount,p=r[0],d=0;;d++){if(null==c){if(p>r[1]||!isFinite(p)||!isFinite(r[1]))break}else{if(d>c)break;p=rk(p,r[1]),d===c&&(p=r[1])}if(u.push({value:p}),p=rW(p+n,o),s){var f=s.calcNiceTickMultiple(p,h);f>=0&&(p=rW(p+f*n,o))}if(u.length>0&&p===u[u.length-1].value)break;if(u.length>3e3)return[]}var g=u.length?u[u.length-1].value:r[1];return i[1]>g&&u.push({value:t.expandToNicedExtent?rW(g+n,o):i[1]}),l&&a.pruneTicksByBreak(t.pruneByBreak,u,s.breaks,function(t){return t.value},e.interval,i),l&&"none"!==t.breakTicks&&a.addBreaksToTicks(u,s.breaks,i),u},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=rU(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision),un(rW(t.value,n,!0))},e.type="interval",e}(gj);gj.registerClass(g1);var g2=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},g5=function(t){function e(n){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=n.locale,i._useUTC=n.useUTC,i._interval=0;var r=lV(i,n),o=gL(i,r,null);return i.brk=o.brk,i}return tt(e,t),e.prototype.getLabel=function(t){return lK(t.value,lZ[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(lj(this._minLevelUnit))]||lZ.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return function(t,e,n,i,r){var o=null;if(tE(n))o=n;else if(tz(n)){var a={time:t.time,level:t.time?t.time.level:0},s=lN();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var h=l$(t.value,r);o=n[h][h][0]}}return lK(new Date(t.value),o,r,i)}(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=gB(this),i=lN(),r=this.brk,o=i&&r,a=[];if(!e)return a;var s=this._useUTC;if(o&&"only_break"===t.breakTicks)return lN().addBreaksToTicks(a,r.breaks,n),a;a=function(t,e,n,i,r,o){for(var a=0,s=[],l=[],u=0,h=0,c=0;c<lY.length;++c){var p,d=lj(lY[c]);if((p=lY[c])===lj(p)&&(!function(t,r,s){var l=[],u=!r.length;if(!g4(lj(t),i[0],i[1],n)){u&&(r=[{value:(d=i[0],f=Math.max(0,tT(lX,t)-1),lQ(new Date(d),lX[f],n).getTime())},{value:i[1]}]);for(var h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d,f,g,v,m,y=void 0,_=void 0,x=void 0;switch(t){case"year":y=Math.max(1,Math.round(e/864e5/365)),_=lJ(n),x=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":y=(g=e/2592e6)>6?6:g>3?3:g>2?2:1,_=l0(n),x=l8(n);break;case"week":case"half-week":case"day":y=(v=e/864e5)>16?16:v>7.5?7:v>3.5?4:v>1.5?2:1,_=l1(n),x=l6(n);break;case"half-day":case"quarter-day":case"hour":y=(m=e/36e5)>12?12:m>6?6:m>3.5?4:m>2?2:1,_=l2(n),x=l7(n);break;case"minute":y=g8(e,!0),_=l5(n),x=l9(n);break;case"second":y=g8(e,!1),_=l3(n),x=ut(n);break;case"millisecond":y=rD(r0(e,!0),1),_=l4(n),x=ue(n)}p>=i[0]&&c<=i[1]&&function(t,e,n,r,s,l){for(var u,h,c,p=((u=new Date(0))[s](1),h=u.getTime(),u[s](1+t),c=u.getTime()-h,function(t,e){return Math.max(0,Math.round((e-t)/c))}),d=e,f=new Date(d);d<n&&d<=i[1]&&(l.push({value:d}),!(a++>3e3));)if(f[s](f[r]()+t),d=f.getTime(),o){var g=o.calcNiceTickMultiple(d,p);g>0&&(f[s](f[r]()+g*t),d=f.getTime())}l.push({value:d,notAdd:d>i[1]})}(y,c,p,_,x,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-y})}}for(var h=0;h<l.length;h++)s.push(l[h])}}(lY[c],s[s.length-1]||[],l),d!==(lY[c+1]?lj(lY[c+1]):null))){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var v=l[g].value;(0===g||l[g-1].value!==v)&&(f.push(l[g]),v>=i[0]&&v<=i[1]&&u++)}var m=r/e;if(u>1.5*m&&h>m/1.5||(s.push(f),u>m||t===lY[c]))break}l=[]}}for(var y=tP(tD(s,function(t){return tP(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),_=y.length-1,x=[],c=0;c<y.length;++c)for(var b=y[c],w=0;w<b.length;++w){var S=l$(b[w].value,n);x.push({value:b[w].value,time:{level:_-c,upperTimeUnit:S,lowerTimeUnit:S}})}oM(x,oT,null),x.sort(function(t,e){return t.value-e.value});var M=x[0],T=x[x.length-1],I=l$(i[0],n),C=l$(i[1],n);return(!M||M.value>i[0])&&x.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!T||T.value<i[1])&&x.push({value:i[1],time:{level:0,upperTimeUnit:C,lowerTimeUnit:C},notNice:!0}),x}(this._minLevelUnit,this._approxInterval,s,n,gE(this),r);var l=lX.length-1,u=0;return tk(a,function(t){t.time&&(l=Math.min(l,tT(lX,t.time.upperTimeUnit)),u=Math.max(u,t.time.level))}),o&&lN().pruneTicksByBreak(t.pruneByBreak,a,r.breaks,function(t){return t.value},this._approxInterval,n),o&&"none"!==t.breakTicks&&lN().addBreaksToTicks(a,r.breaks,n,function(t){for(var e=Math.max(tT(lX,l$(t.vmin,s)),tT(lX,l$(t.vmax,s))),n=0,i=0;i<lX.length;i++)if(!g4(lX[i],t.vmin,t.vmax,s)){n=i;break}var r=Math.min(n,l);return{level:u,lowerTimeUnit:lX[Math.max(r,e)],upperTimeUnit:lX[r]}}),a},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return tV(t)?Math.round(t):+r$(t)},e.type="time",e}(gj),g3=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function g4(t,e,n,i){return lQ(new Date(e),t,i).getTime()===lQ(new Date(n),t,i).getTime()}function g8(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}gj.registerClass(g5);var g6=function(t){function e(n){var i=t.call(this)||this;i.type="log",i.parse=g1.parse,i.base=n.logBase||10;var r=[],o=[],a=i._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=0/0,gR(i,e.mapperMethods);var s=lN(),l=n.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},2,u),i.powStub=new g1({breakParsed:u.original}),i.intervalStub=new g1({breakParsed:u.transformed}),i.intervalStub,i.freeze=t4,i}return tt(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,i=lN(),r=this.intervalStub,o={lookup:{from:r.getExtent(),to:n.getExtent()}};return tD(r.getTicks(t||{}),function(t){var r,a=gZ(t.value,e,o);if(i){var s=i.getTicksBreakOutwardTransform(this,t,lF(n),this._lookup);s&&(r=s.vBreak,a=s.tickVal)}return{value:a,break:r}},this)},e.prototype.getMinorTicks=function(t){return g0(this,t,lF(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){var e;return this.intervalStub.normalize((e=this.base,rB(t)/rB(e)))},scale:function(t){return gZ(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){var n,i;return n=t,i=this.base,t=rB(n)/rB(i),e&&2===e.depth?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return g7.depth=n,g9.lookup=this._lookup,gZ(2===n?t:this.intervalStub.transformOut(t,g7),this.base,g9)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,n){if(ox(e,n)&&!(e<=0)&&!(n<=0)){var i=vt,r=vt;if(0===t){var o=this._lookup;i=o.to,r=o.from}this.powStub.setExtent2(t,i[0]=e,i[1]=n);var a=this.base;this.intervalStub.setExtent2(t,r[0]=rB(e)/rB(a),r[1]=rB(n)/rB(a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return ox(e[0],e[1])&&r4(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(gj);gj.registerClass(g6);var g7={},g9={},vt=[],ve={value:1,category:1,time:1,log:1},vn=os();function vi(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n,i,r,o=tE(e)||tz(e)?e:(n=(n=e)||{},i={},r=!0,tk(lX,function(t){r&&(r=null==n[t])}),tk(lX,function(t,e){var o=n[t];i[t]={};for(var a=null,s=e;s>=0;s--){var l=lX[s],u=tF(o)&&!tB(o)?o[l]:o,h=void 0;tB(u)?a=(h=u.slice())[0]||"":tE(u)?h=[a=u]:(null==a?a=lG[t]:lW[l].test(a)||(a=i[l][l][0]+" "+a),h=[a],r&&(h[1]="{primary|"+a+"}")),i[t][l]=h}}),i);return function(e,n){return t.scale.getFormattedLabel(e,n,o)}}if(tE(e))return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")};if(!tz(e))return function(e){return t.scale.getLabel(e)};if("category"===t.type)return function(n,i){return e(vr(t,n),n.value-t.scale.getExtent()[0],null)};var a=lN();return function(n,i){var r=null;return a&&(r=a.makeAxisLabelFormatterParamBreak(r,n.break)),e(vr(t,n),i,r)}}function vr(t,e){var n=t.scale;return gG(n)?n.getLabel(e):e.value}function vo(t){var e=t.get("interval");return null==e?"auto":e}function va(t){return"middle"===t||"center"===t}function vs(t){return t.getShallow("show")}function vl(t,e,n){var i=t.get("breaks",!0);if(null!=i)return lN()&&n&&"category"!==e?i:void 0}function vu(t,e,n,i,r,o){var a=gW(t),s=a?t.intervalStub:t;if(s.setExtent(i[0],i[1]),a){var l=t.powStub,u={depth:2},h=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=[n[0]!==i[0],n[1]!==i[1]];e[0]&&!p[0]&&(h=r[0]),e[1]&&!p[1]&&(c=r[1]),l.setExtent(h,c)}s.setConfig(o)}function vh(t,e){return gG(t)?t.getRawOrdinalNumber(e.value):e.value}function vc(t,e){return gG(t)&&!!e.get("boundaryGap")}var vp=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function vd(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function vf(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function vg(t){if(t)return vf(t)&&function(t,e,n){var i=e.getComputedTransform();t.transform=dd(t.transform,i);var r=t.localRect=dp(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,h=o.__marginType;null==h&&u&&(a=u,h=l_.textMargin);for(var c=0;c<4;c++)vv[c]=h===l_.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:a?a[c]:0;h===l_.textMargin&&di(r,vv,!1,!1);var p=t.rect=dp(t.rect,r);i&&p.applyTransform(i),h===l_.minMargin&&di(p,vv,!1,!1),t.axisAligned=dh(i),(t.label=t.label||{}).ignore=e.ignore,vd(t,!1),vd(t,!0,2)}(t,t.label,t),t}var vv=[0,0,0,0];function vm(t,e){for(var n=0;n<vp.length;n++){var i=vp[n];null==t[i]&&(t[i]=e[i])}return vg(t)}function vy(t){var e=t.obb;return(!e||vf(t,2))&&(t.obb=e=e||new pI,e.fromBoundingRect(t.localRect,t.transform),vd(t,!1,2)),e}function v_(t,e,n,i){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!!t.axisAligned&&!!e.axisAligned||vy(t).intersect(vy(e),n,i))}var vx=os(),vb=os();function vw(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function vS(t,e){var n=e.getExtent(),i=[];return tk(t,function(t){(t=e.parse(t))>=n[0]&&t<=n[1]&&i.push(t)}),oM(i,oI,null),rG(i),tD(i,function(t){return{value:t}})}function vM(t,e,n){var i,r,o=vI(t),a=vo(e),s=1===n.kind;if(!s){var l=vk(o,a);if(l)return l}tz(a)?i=vO(t,a,!1):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return vb(t).autoInterval=n,!0}),n}var i=vb(t).autoInterval;return null!=i?i:vb(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=vO(t,r,!1));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return vD(o,a,u),!0}):vD(o,a,u),u}var vT=vC("axisTick"),vI=vC("axisLabel");function vC(t){return function(e){return vb(e)[t]||(vb(e)[t]={list:[]})}}function vk(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function vD(t,e,n){return t.list.push({key:e,value:n}),n}function vA(t,e,n){return null==vP(t,e,n)}function vP(t,e,n){var i=vx(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-n)&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function vO(t,e,n){var i=vi(t),r=t.scale,o=[],a=tz(e);return gq(r,a?0:e,function(t,s){var l=r.getLabel(t);if(a){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}o.push(n?t:{formattedLabel:i(t),rawLabel:l,tick:t})}),o}var vL=Math.PI,vR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],vB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],vz=os(),vE=os(),vN=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),vV=ez(),vF=new no(0,0,0,0),vH=function(t,e,n,i,r,o){if(va(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&vW((a={},s=o.transGroup.transform,a.transform=dd(a.transform,s),a.localRect=dp(a.localRect,l),a.rect=dp(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=dh(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r)}else vG(o.labelInfoList,o.dirVec,i,r)};function vW(t,e,n){var i=new eG;v_(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function vG(t,e,n,i){for(var r=eG.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||vW(s,n,i)}}var vU=function(){function t(t,e,n,i){this.group=new rS,this._axisModel=t,this._api=e,this._local={},this._shared=i||new vN(vH),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=tX(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");(null==r||"auto"===r)&&(r=tX(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:tX(t.nameDirection,1),tickDirection:tX(t.tickDirection,1),labelDirection:tX(t.labelDirection,1),labelOffset:tX(t.labelOffset,0),silent:tX(t.silent,!0),axisName:i,nameLocation:tY(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new rS({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new eG(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),tk(vZ,function(i){t[i]&&vX[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var i,r,o=rq(e-t);return rj(o)?(r=n>0?"top":"bottom",i="center"):rj(o-vL)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<vL?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),vZ=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],vX={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,h=[l[0],0],c=[l[1],0],p=h[0]>c[0];u&&(el(h,h,u),el(c,c,u));var d=tS({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&lH(i.axis.scale))null.buildAxisBreakLine(i,r,o,f);else{var g=new po(tS({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},f));p1(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var m=i.get(["axisLine","symbolSize"]);tE(v)&&(v=[v,v]),(tE(m)||tV(m))&&(m=[m,m]);var y=fx(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];tk([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var i=fy(v[n],-_/2,-x/2,_,x,d.stroke,!0),o=e.r+e.offset,a=p?c:h;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){vK(e,r,s)&&vY(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){vK(e,r,s)&&vY(t,e,n,i,r,o,a,2);var l,u,h,c=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=vj(r.getTicksCoords(),n.transform,l,tM(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)e.add(u[h]);return u}(t,r,o,i);l=t,u=e.labelLayoutList,h=c,l.showMinorTicks||tk(u,function(t){if(t&&t.label.ignore)for(var e=0;e<h.length;e++){var n=h[e],i=vE(n),r=vz(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===r.labelInfo.tick.value)return void vq(n)}}),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),h=tM(l.getLineStyle(),tM(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=vj(s[c],n.transform,u,h,"minorticks_"+c),d=0;d<p.length;d++)e.add(p[d])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l,u,h=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=h.nameLayout=h.nameLocation=null);var c=t.axisName;if(c){var p,d,f,g,v,m,y,_,x,b=t.nameLocation,w=t.nameDirection,S=i.getModel("nameTextStyle"),M=i.get("nameGap")||0,T=i.axis.getExtent(),I=i.axis.inverse?-1:1,C=new eG(0,0),k=new eG(0,0);"start"===b?(C.x=T[0]-I*M,k.x=-I):"end"===b?(C.x=T[1]+I*M,k.x=I):(C.x=(T[0]+T[1])/2,C.y=t.labelOffset+w*M,k.y=w);var D=ez();k.transform(eH(D,D,t.rotation));var A=i.get("nameRotate");null!=A&&(A=A*vL/180),va(b)?l=vU.innerTextLayout(t.rotation,null!=A?A:t.rotation,w):(p=t.rotation,d=b,f=A||0,g=T,y=rq(f-p),_=g[0]>g[1],x="start"===d&&!_||"start"!==d&&_,rj(y-vL/2)?(m=x?"bottom":"top",v="center"):rj(y-1.5*vL)?(m=x?"top":"bottom",v="center"):(m="middle",v=y<1.5*vL&&y>vL/2?x?"left":"right":x?"right":"left"),l={rotation:y,textAlign:v,textVerticalAlign:m},null!=(u=t.raw.axisNameAvailableWidth)&&(isFinite(u=Math.abs(u/Math.sin(l.rotation)))||(u=null)));var P=S.getFont(),O=i.get("nameTruncate",!0)||{},L=O.ellipsis,R=tZ(t.raw.nameTruncateMaxWidth,O.maxWidth,u),B=s.nameMarginLevel||0,z=new sf({x:C.x,y:C.y,rotation:l.rotation,silent:vU.isLabelSilent(i),style:lc(S,{text:c,font:P,overflow:"truncate",width:R,ellipsis:L,fill:S.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:S.get("align")||l.textAlign,verticalAlign:S.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(ds({el:z,componentModel:i,itemName:c}),z.__fullText=c,z.anid="name",i.get("triggerEvent")){var E=vU.makeAxisEventDataBase(i);E.targetType="axisName",E.name=c,sg(z).eventData=E}o.add(z),z.updateTransform(),e.nameEl=z;var N=h.nameLayout=vg({label:z,priority:z.z2,defaultAttr:{ignore:z.ignore},marginDefault:va(b)?vR[B]:vB[B]});if(h.nameLocation=b,r.add(z),z.decomposeTransform(),t.shouldNameMoveOverlap&&N){var V=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,N,k,V)}}}};function vY(t,e,n,i,r,o,a,s){v$(e)||function(t,e,n,i,r,o){var a=r.axis,s=tZ(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new rS;n.add(l);var u=vw(i);if(!s||a.scale.isBlank())return vQ(e,[],l,u);var h=r.getModel("axisLabel"),c=a.getViewLabels(u),p=(tZ(t.raw.labelRotate,h.get("rotate"))||0)*vL/180,d=vU.innerTextLayout(t.rotation,p,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;tk(c,function(t,e){var n,i=t.tick,s=t.formattedLabel,u=t.rawLabel,p=h,_=vh(a.scale,i);if(f&&f[_]){var x=f[_];tF(x)&&x.textStyle&&(p=new lA(x.textStyle,h,r.ecModel))}var b=p.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=p.getShallow("align",!0)||d.textAlign,S=tX(p.getShallow("alignMinLabel",!0),w),M=tX(p.getShallow("alignMaxLabel",!0),w),T=p.getShallow("verticalAlign",!0)||p.getShallow("baseline",!0)||d.textVerticalAlign,I=tX(p.getShallow("verticalAlignMinLabel",!0),T),C=tX(p.getShallow("verticalAlignMaxLabel",!0),T),k=10+((null==(n=i.time)?void 0:n.level)||0);m=Math.min(m,k),y=Math.max(y,k);var D=new sf({x:0,y:0,rotation:0,silent:vU.isLabelSilent(r),z2:k,style:lc(p,{text:s,align:0===e?S:e===c.length-1?M:w,verticalAlign:0===e?I:e===c.length-1?C:T,fill:tz(b)?b("category"===a.type?u:"value"===a.type?_+"":_,e):b})});D.anid="label_"+_;var A=vz(D);if(A.labelInfo=t,A.layoutRotation=d.rotation,ds({el:D,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),v){var P,O,L,R,B=vU.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=u,B.tickIndex=e;var z=t.tick.break;if(z){var E=z.parsedBreak;B.break={start:E.vmin,end:E.vmax}}"category"===a.type&&(B.dataIndex=_),sg(D).eventData=B,z&&(P=r,O=o,L=D,R=z,L.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:R.parsedBreak.breakOption.start,end:R.parsedBreak.breakOption.end}]};e[P.axis.dim+"AxisIndex"]=P.componentIndex,O.dispatchAction(e)}))}g.push(D),l.add(D)}),vQ(e,tD(g,function(t){return{label:t,priority:vz(t).labelInfo.tick.break?t.z2+(y-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}(t,e,r,s,i,a);var l,u,h,c,p,d=e.labelLayoutList;l=t,u=i,h=d,c=o,p=u.get(["axisLabel","margin"]),tk(h,function(t,e){var n=vg(t);if(n){var i=n.label,r=vz(i);n.suggestIgnore=i.ignore,i.ignore=!1,i7(vJ,v0);var o=u.axis;vJ.x=o.dataToCoord(vh(o.scale,r.labelInfo.tick)),vJ.y=l.labelOffset+l.labelDirection*p,vJ.rotation=r.layoutRotation,c.add(vJ),vJ.updateTransform(),c.remove(vJ),vJ.decomposeTransform(),i7(i,vJ),i.markRedraw(),vd(n,!0),vg(n)}}),function(t,e,n){var i=lN();if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&vz(t.label).labelInfo.tick.break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===o||"auto"===o)&&tk(r,function(i){null.adjustBreakLabelPair(t.axis.inverse,e,[vg(n[i[0]]),vg(n[i[1]])])})}}(i,t.rotation,d);var f=t.optionHideOverlap;(function(t,e,n){var i=t.axis,r=t.get(["axisLabel","customValues"]);if("category"!==i.type||0!==vo(i.getLabelModel())){var o=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(o,0,1),l(a,s-1,s-2)}function l(t,o,a){var s=vg(e[o]),l=vg(e[a]),u=i.scale;if(s&&l){if(null==t){if(!n&&r)return;var h=vz(s.label).labelInfo.tick;if(gH(u)&&h.notNice||gG(u)&&h.offInterval)return void vq(s.label)}if(!1===t||s.suggestIgnore)return void vq(s.label);if(l.suggestIgnore)return void vq(l.label);if(!n){var c=[0,0,0,0];s=vm({marginForce:c},s),l=vm({marginForce:c},l)}v_(s,l,null,{touchThreshold:.1})&&(t?vq(l.label):vq(s.label))}}})(i,d,f),f&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=vg(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(v_(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(tP(d,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=!!t.axisName&&va(t.nameLocation);tk(i,function(t){var e=vg(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?eW(vV,n.transform):eE(vV),e.transform&&eV(vV,vV,e.transform),no.copy(vF,e.localRect),vF.applyTransform(vV),r?r.union(vF):no.copy(r=new no(0,0,0,0),vF))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-h)-Math.abs(e.label[u]-h)}),l&&r){var c=o.getExtent(),p=Math.min(c[0],c[1]),d=Math.max(c[0],c[1])-p;r.union(new no(p,0,d,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,d)}function vq(t){t&&(t.ignore=!0)}function vj(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(el(a,a,e),el(s,s,e));var h=new po({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});p1(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h);var c=vE(h);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return o}function vK(t,e,n){if(v$(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),vQ(t,null,null,null))}return!0}function v$(t){return!!t.labelLayoutList}function vQ(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var vJ=new a6,v0=new a6;function v1(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],h={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}r.position=["y"===l?p[h[s]]:u[0],"x"===l?p[h[s]]:u[3]],r.rotation=Math.PI/2*("x"!==l),r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],r.labelOffset=o?p[h[a]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tZ(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}var v2=ow(),v5=os(),v3=os();function v4(t,e){var n=t.model,i=v5(fa(n.ecModel)).keyed,r=i&&i.get(e);return r&&r.get(n.uid)}function v8(t,e){var n=v5(fa(t)).keyed;n&&n.each(function(t,n){t.each(function(t,i){e(t,n,i)})})}function v6(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function v7(t,e,n){var i=v4(t,e);i&&v9(t.model.ecModel,i.sers,n)}function v9(t,e,n){if(e)for(var i=0;i<e.length;i++){var r=e[i];t.isSeriesFiltered(r)||n(r)}}function mt(t,e,n){var i=v5(fa(t)).keyed,r=i&&i.get(e);r&&r.each(function(t){n(t.axis)})}function me(t,e){var n=t.model,i=v5(fa(n.ecModel)).keys;i&&tk(i.get(n.uid),function(t){e(t)})}function mn(t){var e=v3(fo(t)),n=e.keyed||(e.keyed=t2());v8(t,function(e,i,r){var o=n.get(i)||n.set(i,t2()),a=o.get(r)||o.set(r,{});e.metrics.liPosMinGap&&mi.liPosMinGap(t,e,a)})}var mi={};function mr(t,e,n){if(t){var i=v5(fa(e.ecModel)),r=t.model.uid,o=i.axSer||(i.axSer=t2());(o.get(r)||o.set(r,[])).push(e);var a=e.subType,s=e.getBaseAxis()===t,l=ms.get(mo(a,s,n))||ms.get(mo(a,s,null));if(l){var u=i.keyed||(i.keyed=t2()),h=i.keys||(i.keys=t2()),c=l.key,p=u.get(c)||u.set(c,t2()),d=p.get(r);d||((d=p.set(r,{axis:t,sers:[],serByIdx:[]})).metrics=l.getMetrics(t),(h.get(r)||h.set(r,[])).push(c)),d.sers.push(e),d.serByIdx[e.seriesIndex]=e}}}function mo(t,e,n){return t+"|&"+tX(e,!0)+"|&"+(n||"")}function ma(t,e){var n=mo(e.seriesType,e.baseAxis,e.coordSysType);ms.set(n,e),v2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:mn})})}var ms=t2(),ml=os(),mu=function(){function t(t,e,n,i,r){var o,a,s,l,u=gG(t),h=u?e.getCategories().length:null;if(u){var c=e.getCategories(!0);l=c&&!c.length}var p=n.slice();(gF(t)||gW(t)||gH(t))&&(om(p,mc(t,e.get("dataMin",!0))),oy(p,mc(t,e.get("dataMax",!0)))),isFinite(o=p[1]-p[0])&&o>=0||(p[0]=p[1]=0/0);var d=[],f=[!1,!1],g=e.get("min",!0);"dataMin"===g?(d[0]=p[0],f[0]=!0):(d[0]=mc(t,tz(g)?g({min:p[0],max:p[1]}):g),f[0]=null!=d[0]);var v=e.get("max",!0);"dataMax"===v?(d[1]=p[1],f[1]=!0):(d[1]=mc(t,tz(v)?v({min:p[0],max:p[1]}):v),f[1]=null!=d[1]);var m=function(t,e){var n;if(gG(t))n=[0,0];else{var i=e.get("boundaryGap");"boolean"==typeof i&&(i=null),n=tB(i)?i:[i,i]}return[mp(n[0]),mp(n[1])]}(t,e),y=u?null:p[1]-p[0]||Math.abs(p[0]);null==d[0]&&(d[0]=u?l?p[0]:h?0:0/0:p[0]-m[0]*y),null==d[1]&&(d[1]=u?l?p[1]:h?h-1:0/0:p[1]+m[1]*y),o_(d[0])||(d[0]=0/0),o_(d[1])||(d[1]=0/0);var _=l||(a=d[0])!=a||(s=d[1])!=s||u&&!h,x=gF(t),b=x&&e.needIncludeZero&&e.needIncludeZero();b&&(d[0]>0&&d[1]>0&&!f[0]&&(d[0]=0),d[0]<0&&d[1]<0&&!f[1]&&(d[1]=0));var w=!1;d[0]>d[1]&&(d.reverse(),w=!0);var S=mc(t,e.get("startValue",!0)),M=null!=S;!r4(S)&&i&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),r4(S)&&(M||!x||b)&&(S<d[0]&&!f[0]?(d[0]=S,f[0]=!0):S>d[1]&&!f[1]&&(d[1]=S,f[1]=!0)),mh(this._i={scale:t,dataMM:p,noZoomEffMM:d,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:S,isBlank:_,incl0:b,tggAxInv:w,ctnShp:r},d)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,r=t.fixMM,o={fixMM:r,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],r[0]=i[0]=!0),null!=e[1]&&(a[1]=e[1],r[1]=i[1]=!0),mh(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function mh(t,e){var n=t.scale,i=t.dataMM;n.sanitize&&(e[0]=n.sanitize(e[0],i),e[1]=n.sanitize(e[1],i),ob(e))}function mc(t,e){return null==e?null:e!=e?0/0:t.parse(e)}function mp(t){return rl("boolean"==typeof t?0:t,1)||0}function md(t){var e=ml(t.scale);return e.extent||(e.extent=ov()),e}function mf(t,e){var n=t.scale,i=t.model,r=t.dim;n.rawExtentInfo||function(t,e,n,i,r){var o,a,s=md(e),l=s.extent,u=!1;(a=v5(fa(o=e.model.ecModel)).axSer)&&v9(o,a.get(e.model.uid),function(i){if(i.boxCoordinateSystem){var r=uf(i).coord,o=s.dimIdxInCoord;if(o>=0&&tB(r)){var a,h=r[o];null!=h&&!tB(h)&&o_(a=t.parse(h))&&(a<l[0]&&(l[0]=a),a>l[1]&&(l[1]=a))}}else if(i.coordinateSystem){var c=i.getData();if(c){var p,d=t.getFilter?t.getFilter():null;tk((p={},tk(c.mapDimensionsAll(n),function(t){p[gC(c,t)]=!0}),tO(p)),function(t){var e;ox((e=c.getApproximateExtent(t,d))[0],e[1])&&(e[0]<l[0]&&(l[0]=e[0]),e[1]>l[1]&&(l[1]=e[1]))})}i.__requireStartValue&&i.__requireStartValue(e)&&(u=!0)}});var h=function(t,e,n){var i=vc(t,n),r=n.get("containShape",!0);if(null!=r||i||(r=!0),!r)return!1;var o=!1;return me(e,function(t){o=!!mv.get(t)||o}),o}(t,e,i),c=new mu(t,i,l,u,h);mg(t,c,r),s.extent=null}(n,t,r,i,e)}function mg(t,e,n){t.rawExtentInfo=e,e.from=n}var mv=t2();function mm(t,e,n,i,r){t.rawExtentInfo||(o={scale:t,model:e},a=r||ov(),mg(s=o.scale,new mu(s,o.model,a,!1,!1),3));var o,a,s,l=t.rawExtentInfo.makeFinal(),u=l.effMM;return t.setExtent(u[0],u[1]),t.setBlank(l.isBlank),i&&l.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),l}function my(t,e){e=e||{};var n,i,r,o,a,s,l,u={w:0/0,w2:0/0},h=t.scale,c=e.fromStat,p=e.min,d=(l=gz(h,3))[1]-l[0];r4(d)||(d=0/0);var f=t.getExtent(),g=rA(f[1]-f[0]);return gG(h)?(n=u,i=t,r=d,o=g,0===(s=r+ +!!(a=i.onBand))&&(s=1),n.w=o/s,!a&&r&&o&&(n.w2=n.w*r/o)):c&&function(t,e,n,i,r){var o,a,s=!1,l=-1/0;tk(r.key?[v6(v4(e,r.key))]:(o=r.sers||[],a=[],v8(e.model.ecModel,function(t){for(var e=0;e<o.length;e++)o[e]&&t.serByIdx[o[e].seriesIndex]&&a.push(v6(t))}),a),function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>l&&(l=e),s=!1):-2===e&&(s=!0))}),r4(n)&&n>0&&r4(l)?(t.w=i/n*l,t.w2=l):s&&(t.w=.8*i,t.w2=t.w*n/i)}(u,t,d,g,c),null!=p&&(u.w=r4(u.w)?rD(p,u.w):p),u}function m_(t,e,n){var i,r=t2(),o=n.serUids,a=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),h=l.getFilter?l.getFilter():null,c=hN(h);function p(n){v9(t,e.sers,function(t){var e=t.getRawData(),i=e.getDimensionIndex(e.mapDimension(s.dim));i>=0&&n(i,t,e.getStore())})}var d=0;if(p(function(t,e,n){r.set(e.uid,1),o&&o.hasKey(e.uid)||(i=!0),d+=n.count()}),o&&o.keys().length===r.keys().length||(i=!0),!i&&null!=a){e.liPosMinGap=a;return}gP(mx,d);var f=0;p(function(t,e,n){for(var i=0,r=n.count();i<r;++i){var o=n.get(t,i);isFinite(o)&&(!h||hV(c,o))&&(u&&(o=l.transformIn(o,null)),mx.arr[f++]=o)}});var g=mx.typed?mx.arr.subarray(0,f):(mx.arr.length=f,mx.arr);mx.typed?g.sort():rG(g);for(var v=1/0,m=1;m<f;++m){var y=g[m]-g[m-1];y>0&&y<v&&(v=y)}n.liPosMinGap=e.liPosMinGap=r4(v)?v:f>0?-2:-1,n.serUids=r}var mx=gP({ctor:gD},50);function mb(t){return function(e,n){var i=my(e,{fromStat:{key:t}});if(r4(i.w2))return[-i.w2/2,i.w2/2]}}function mw(t){return mi.liPosMinGap=m_,{liPosMinGap:!gG(t.scale)}}var mS={left:0,right:0,top:0,bottom:0},mM=["25%","25%"],mT="cartesian2d",mI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=uw(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&ub(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&ub(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:mS,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:uC.color.transparent,borderWidth:1,borderColor:uC.color.neutral30},e}(uM),mC=ow(),mk="__ec_stack_";function mD(t){return t.get("stack")||mk+t.seriesIndex}function mA(t){var e,n,i,r=t.bandWidthResult.w,o=r,a=0,s=[],l={};tk(t.seriesInfo,function(t,i){i||(n=t.defaultBarGap||0);var r=t.stackId;!t3(l,r)&&a++;var u=l[r];u||(u=l[r]={width:0,maxWidth:0},s.push(r));var h=t.barWidth;h&&!u.width&&(u.width=h,h=rk(o,h),o-=h);var c=t.barMaxWidth;c&&(u.maxWidth=c);var p=t.barMinWidth;p&&(u.minWidth=p);var d=t.barGap;null!=d&&(n=d);var f=t.barCategoryGap;null!=f&&(e=f)}),null==e&&(e=rD(35-4*s.length,15)+"%");var u=rF(e,r),h=rF(n,1),c=(o-u)/(a+(a-1)*h);c=rD(c,0),tk(s,function(t){var e=l[t],n=e.maxWidth,i=e.minWidth;if(e.width){var r=e.width;n&&(r=rk(r,n)),i&&(r=rD(r,i)),e.width=r,o-=r+h*r,a--}else{var r=c;n&&n<r&&(r=rk(n,o)),i&&i>r&&(r=i),r!==c&&(e.width=r,o-=r+h*r,a--)}}),c=rD(c=(o-u)/(a+(a-1)*h),0);var p=0;tk(s,function(t){var e=l[t];e.width||(e.width=c),i=e,p+=e.width*(1+h)}),i&&(p-=i.width*h);var d={},f=-p/2;return tk(s,function(t){var e=l[t];d[t]=d[t]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+h)}),d}function mP(t){return t.pipelineContext&&t.pipelineContext.large}var mO={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)!isNaN(t[i])&&(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},mL=function(t){return Math.round(t.length/2)};function mR(t){return null==t?0:t.length||1}function mB(t){return t}var mz=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||mB,this._newKeyGetter=i||mB,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=Array(t.length),r=Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=mR(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=mR(l),c=mR(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=mR(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=mR(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),mE=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function mN(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function mV(t){return"category"===t?"ordinal":"time"===t?"time":"float"}let mF=function(t){this.otherDims={},null!=t&&tS(this,t)};var mH=tF,mW="u"<typeof Int32Array?Array:Int32Array,mG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mU=["_approximateExtent"],mZ=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;gS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=tE(h)?new mF({name:h}):h instanceof mF?h:new mF(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),i&&(c.storeDimIndex=u),0===d.itemName&&(this._nameDimIdx=c.storeDimIndex),0===d.itemId&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=t2();tk(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(tV(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,f,g,v=this;if(t instanceof h0&&(g=t),!g){var m=this.dimensions,y=hl(t)||tC(t)?new h_(t,m.length):t;g=new h0;var _=tD(m,function(t){return{type:v._dimInfos[t].type,property:t}});g.initData(y,_,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(i=this,r=this._schema,a=(o={}).encode={},s=t2(),l=[],u=[],h={},tk(i.dimensions,function(t){var e=i.getDimensionInfo(t),n=e.coordDim;if(n){var r,o=e.coordDimIndex;mN(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),mN(h,n)[o]=i.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}s_.each(function(t,n){var i=mN(a,n),r=e.otherDims[n];null!=r&&!1!==r&&(i[r]=e.name)})}),c=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=tD(c,function(t){return i.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new mE(h,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&j(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==sM&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===sx&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);if(!(!this.hasItemOption&&tF(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==i[a]&&null!=u&&(i[a]=oi(u,null));var h=l.id;null==r[a]&&null!=h&&(r[a]=oi(h,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)j(this,a);G(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){mH(t)?tS(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Z(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return U(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return tB(t)?i.getValues(tD(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){tz(t)&&(n=e,e=t,t=[]);var i=n||this,r=tD(X(t),this._getStoreDimIndex,this);this._store.each(r,i?tL(e,i):e)},t.prototype.filterSelf=function(t,e,n){tz(t)&&(n=e,e=t,t=[]);var i=n||this,r=tD(X(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?tL(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=tO(t),r=[];return tk(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){tz(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=tD(X(t),this._getStoreDimIndex,this),a=q(this);return a._store=this._store.map(o,r?tL(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=tD(X(t),this._getStoreDimIndex,this);this._store.modify(o,r?tL(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=q(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=q(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=q(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new lA(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mz(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return U(t,e)},function(t){return U(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},mH(t)?tS(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(tB(r=this.getVisual(e))?r=r.slice():mH(r)&&(r=tS({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,mH(e)?tS(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){mH(t)?tS(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?tS(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){sv(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tk(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tD(this.dimensions,this._getDimInfo,this),this.hostModel)),Y(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];tz(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(tq(arguments)))})},t.internalField=void(G=function(t){var e=t._invertedIndicesMap;tk(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new mW(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},Z=function(t,e,n){return oi(t._getCategory(e,n),null)},U=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Z(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},X=function(t){return tB(t)||(t=null!=t?[t]:[]),t},q=function(e){var n=new t(e._schema?e._schema:tD(e.dimensions,e._getDimInfo,e),e.hostModel);return Y(n,e),n},Y=function(t,e){tk(mG.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,tk(mU,function(n){t[n]=tb(e[n])}),t._calculationInfo=tS({},e._calculationInfo)},j=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=Z(t,r,e)),null==s&&null!=o&&(i[e]=s=Z(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}),t}();function mX(t,e){hl(t)||(t=hh(t));var n,i,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=t2(),h=[],c=(n=t,i=s,r=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,o||0),tk(i,function(t){var e;tF(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=e.canOmitUnusedDimensions&&c>30,d=l===t.dimensionsDefine,f=d?gT(t):gM(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var v=t2(g),m=new hj(c),y=0;y<m.length;y++)m[y]=-1;function _(t){var e=m[t];if(e<0){var n=l[t],i=tF(n)?n:{name:n},r=new mF,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var a=h.length;return m[t]=a,r.storeDimIndex=t,h.push(r),r}return h[e]}if(!p)for(var y=0;y<c;y++)_(y);v.each(function(t,e){var n=r6(t).slice();if(1===n.length&&!tE(n[0])&&n[0]<0)return void v.set(e,!1);var i=v.set(e,[]);tk(n,function(t,n){var r=tE(t)?f.get(t):t;null!=r&&r<c&&(i[n]=r,b(_(r),e,n))})});var x=0;function b(t,e,n){null!=s_.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}tk(s,function(t){if(tE(t))r=t,i={};else{var e,n,i,r=(i=t).name,o=i.ordinalMeta;i.ordinalMeta=null,(i=tS({},i)).ordinalMeta=o,e=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var a=v.get(r);if(!1!==a){if(!(a=r6(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;x<c&&null!=_(x).coordDim;)x++;x<c&&a.push(x++)}tk(a,function(t,o){var a=_(t);if(d&&null!=i.type&&(a.type=i.type),b(tM(a,i),r,o),null==a.name&&e){var s=e[o];tF(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&tM(a.otherDims,n)})}});var w=e.generateCoord,S=e.generateCoordCount,M=null!=S;S=w?S||1:0;var T=w||"value";function I(t){null==t.name&&(t.name=t.coordDim)}if(p)tk(h,function(t){I(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;C<c;C++){var k=_(C);null==k.coordDim&&(k.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(T,u,M),k.coordDimIndex=0,(!w||S<=0)&&(k.isExtraCoord=!0),S--),I(k),null==k.type&&(1===uV(t,C)||k.isExtraCoord&&(null!=k.otherDims.itemName||null!=k.otherDims.seriesName))&&(k.type="ordinal")}return oM(h,function(t){return t.name},function(t,e){e>0&&(t.name=t.name+(e-1))}),new gw({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}var mY=function(t){this.coordSysDims=[],this.axisMap=t2(),this.categoryAxisMap=t2(),this.coordSysName=t},mq={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",oc).models[0],o=t.getReferringComponents("yAxis",oc).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),mj(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),mj(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",oc).models[0];e.coordSysDims=["single"],n.set("single",r),mj(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",oc).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),mj(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),mj(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tk(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),mj(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",oc).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function mj(t){return"category"===t.get("type")}let mK=function(t,e,n){n=n||{};var i,r,o,a,s,l,u,h,c=e.getSourceManager(),p=!1;t?(p=!0,h=hh(t)):p=(h=c.getSource()).sourceFormat===sx;var d=function(t){var e=t.get("coordinateSystem"),n=new mY(e),i=mq[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(r=e.get("coordinateSystem"),o=up.get(r),d&&d.coordSysDims&&(i=tD(d.coordSysDims,function(t){var e={name:t},n=d.axisMap.get(t);return n&&(e.type=mV(n.get("type"))),e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i),g=n.useEncodeDefaulter,v=tz(g)?g:g?tR(uE,f,e):null,m=mX(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:v,canOmitUnusedDimensions:!p}),y=(a=m.dimensions,s=n.createInvertedIndices,d&&tk(a,function(t,e){var n=t.coordDim,i=d.categoryAxisMap.get(n);i&&(null==l&&(l=e),t.ordinalMeta=i.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),_=p?null:c.getSharedDataStore(m),x=function(t,e,n){var i,r,o,a,s,l,u,h=(n=n||{}).byIndex,c=n.stackedCoordDimension;gS(e.schema)?(i=(r=e.schema).dimensions,o=e.store):i=e;var p=!!(t&&t.get("stack")),d=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(tk(i,function(t,e){tE(t)&&(i[e]=t={name:t}),f(t)||(d=!1)}),tk(i,function(t,e){p&&!t.isExtraCoord&&(h||a||!t.ordinalMeta||(a=t),!s&&f(t)&&(!d||"x"!==t.coordDim&&"angle"!==t.coordDim)&&(!c||c===t.coordDim)&&(s=t))}),!s||h||a||(h=!0),s){l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var g=s.coordDim,v=s.type,m=0;tk(i,function(t){t.coordDim===g&&m++});var y={name:l,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:u,coordDim:u,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(u,v),_.storeDimIndex=o.ensureCalculationDimension(l,v)),r.appendCalculationDimension(y),r.appendCalculationDimension(_)):(i.push(y),i.push(_))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:h,stackedOverDimension:u,stackResultDimension:l}}(e,{schema:m,store:_}),b=new mZ(m,e);b.setCalculationInfo(x);var w=null!=y&&function(t){if(t.sourceFormat===sx)return!tB(ot(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(h)?function(t,e,n,i){return i===y?n:this.defaultDimValueGetter(t,e,n,i)}:null;return b.hasItemOption=!1,b.initData(p?h:_,null,w),b};var m$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.getInitialData=function(t,e){return mK(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)tk(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(i.length<2)){if(2===i.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,h=void 0,c=1,p=0;p<i.length;p++){var d=i[p].coord,f=p===i.length-1?i[p-1].tickValue+c:i[p].tickValue;if(f===s){h=d;break}if(f<s)u=d;else if(null!=u&&f>s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!i.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}return[0/0,0/0]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(cu);cu.registerClass(m$);var mQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.getInitialData=function(){return mK(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=ok(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=lL(m$.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:uC.color.primary,borderWidth:2}},realtimeSort:!1}),e}(m$);function mJ(t,e,n,i,r){if(t){if("polar"===t.type){var o,a,s,l;return a=rW((o=t.getArea()).r0,1),s=rW(o.r,1),l=new c1({shape:{cx:rW(t.cx,1),cy:rW(t.cy,1),r0:a,r:s,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}),e&&("angle"===t.getBaseAxis().dim?l.shape.endAngle=o.startAngle:l.shape.r=a,pL(l,{shape:{endAngle:o.endAngle,r:s}},n)),l}else if("cartesian2d"===t.type)return function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||0;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new a6({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=tz(r)?function(t){r(t,c)}:null;pL(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}(t,e,n,i,r)}return null}function m0(t,e,n){t?e.setClipPath(n):e.removeClipPath()}var m1=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m2=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new m1},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-l<c:l-u<c;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},e}(aY);function m5(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=hk(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(hk(t,e,n[a]));return o.join(" ")}}function m3(t,e,n){return e*Math.sin(t)*(n?-1:1)}function m4(t,e,n){return e*Math.cos(t)*(n?1:-1)}var m8=Math.max,m6=Math.min,m7=function(t){function e(){var e=t.call(this)||this;return e.type="bar",e._isFirstFrame=!0,e}return tt(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var p=t.get("clip",!0)||c,d=l.getArea();o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e,n,i,o=ya[l.type](a,t);if(!o)return null;var s=(e=l,n=r,i=o,new("polar"===e.type?c1:a6)({shape:yd(n,i,e),silent:!0,z2:0}));return s.useStyle(v.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",m):s.setShape("cornerRadius",m),y[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),i=ya[l.type](a,e,n);if(i&&(g&&w(e),a.hasValue(e)&&yo[l.type](i))){var s=!1;p&&(s=m9[l.type](d,i));var v=yt[l.type](t,a,e,i,r,h,u.model,!1,f);c&&(v.forceLabelAnimation=!0),yl(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):c?ye(c,h,v,i,e,r,!1,!1):pL(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),S=ya[l.type](a,e,i);if(S){if(g){var M=void 0;0===_.length?M=w(n):((M=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",m):M.setShape("cornerRadius",m),y[e]=M);var T=ya[l.type](a,e);pO(M,{shape:yd(r,T,l)},h,e)}var I=s.getItemGraphicEl(n);if(!a.hasValue(e)||!yo[l.type](S))return void o.remove(I);var C=!1;if(p&&(C=m9[l.type](d,S))&&o.remove(I),I&&("sector"===I.type&&f||"sausage"===I.type&&!f)&&(I&&pE(I,t,n),I=null),I?pN(I):I=yt[l.type](t,a,e,S,r,h,u.model,!0,f),c&&(I.forceLabelAnimation=!0),b){var k=I.getTextContent();if(k){var D=ly(k);null!=D.prevValue&&(D.prevValue=D.value)}}else yl(I,a,e,i,S,t,r,"polar"===l.type);x?I.attr({shape:S}):c?ye(c,h,I,S,e,r,!0,b):pO(I,{shape:S},t,e,null),a.setItemGraphicEl(e,I),I.ignore=C,o.add(I)}}).remove(function(e){var n=s.getItemGraphicEl(e);n&&pE(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new rS);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),yc(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),yc(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&mJ(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=null==r?0/0:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:tD(i,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?5e-324:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){pE(e,t,sg(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(dS),m9={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=m8(e.x,t.x),s=m6(e.x+e.width,r),l=m8(e.y,t.y),u=m6(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=m6(e.r,t.r),o=m8(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},yt={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new a6({shape:tS({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u,h,c=!r&&l?m2:c1,p=new c({shape:i,z2:1});if(p.name="item",u=ys(r),h=c===m2,p.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return ru(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,p=a.r0,d=(c+p)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=h?Math.abs(c-p)/2:0,y=Math.cos,_=Math.sin,x=s+c*y(f),b=l+c*_(f),w="left",S="top";switch(r){case"startArc":x=s+(p-o)*y(v),b=l+(p-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(p+o)*y(v),b=l+(p+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*y(f)+m3(f,o+m,!1),b=l+d*_(f)+m4(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*y(f)+m3(f,-o+m,!1),b=l+d*_(f)+m4(f,-o+m,!1),w="left",S="middle";break;case"middle":x=s+d*y(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(c+o)*y(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(c-o)*y(v),b=l+(c-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*y(g)+m3(g,o+m,!0),b=l+d*_(g)+m4(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*y(g)+m3(g,-o+m,!0),b=l+d*_(g)+m4(g,-o+m,!0),w="right",S="middle";break;default:return ru(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t},o){var d=p.shape,f=r?"r":"endAngle",g={};d[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?pO:pL)(p,{shape:g},o)}return p}};function ye(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?pO:pL)(n,{shape:l},e,r,null),(a?pO:pL)(n,{shape:u},e?t.baseAxis.model:null,r)}function yn(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var yi=["x","y","width","height"],yr=["cx","cy","r","startAngle","endAngle"],yo={cartesian2d:function(t){return!yn(t,yi)},polar:function(t){return!yn(t,yr)}},ya={cartesian2d:function(t,e,n){var i,r,o,a=t.getItemLayout(e);if(!a)return null;var s=n?(i=n,r=a,(o=i.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(i.get(["itemStyle","borderWidth"])||0,isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ys(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function yl(t,e,n,i,r,o,a,s){var l,u,h,c,p=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var d=t.shape,f=function(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;tB(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:tD(i,function(t){return rl(t,r)})}}(i.getModel("itemStyle"),d,!0);tS(d,f),t.setShape(d)}}else{var g=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",g)}t.useStyle(p);var v=i.getShallow("cursor");v&&t.attr("cursor",v);var m=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?(l=r,u=o.coordinateSystem,0===l.height?u.getOtherAxis(u.getBaseAxis()).inverse?"bottom":"top":l.height>0?"bottom":"top"):(h=r,c=o.coordinateSystem,0===h.width?c.getOtherAxis(c.getBaseAxis()).inverse?"left":"right":h.width>=0?"right":"left"),y=lh(i);lu(t,y,{labelFetcher:o,labelDataIndex:n,defaultText:m5(o.getData(),n),inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:m});var _=t.getTextContent();if(s&&_){var x=i.get(["label","position"]);t.textConfig.inside="middle"===x||null,function(t,e,n,i){if(tV(i))return t.setTextConfig({rotation:i});if(tB(e))return t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(a+s)/2;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-r;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===x?m:x,ys(a),i.get(["label","rotate"]))}!function(t,e,n,i){if(t){var r=ly(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}(_,y,o.getRawValue(n),function(t){var n=e.mapDimensionsAll("defaultedLabel");if(!tB(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")});var b=i.getModel(["emphasis"]);s9(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),ln(t,i),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",tk(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var yu=function(){},yh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yu},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(aY);function yc(t,e,n,i){var r=t.getData(),o=+!!r.getLayout("valueAxisHorizontal"),a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),h=i?oC(t):0;if(u){var c=new yh({shape:{points:u},incremental:h,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var p=new yh({shape:{points:r.getLayout("largePoints")},incremental:h,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,e.add(p),p.useStyle(r.getVisual("style")),p.style.stroke=null,sg(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",yp),p.on("mousemove",yp)),n&&n.push(p)}var yp=dO(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);sg(this).dataIndex=e>=0?e:null},30,!1);function yd(t,e,n){if("cartesian2d"===n.type){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var yf=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r,o,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=l.get("type"),c=t.layout;"category"===u?(c="horizontal",o=s.getOrdinalMeta(),a=!this._hasEncodeRule("x")):"category"===h&&(c="vertical",o=l.getOrdinalMeta(),a=!this._hasEncodeRule("y")),c||(c="time"===h?"vertical":"horizontal"),this._layout=c;var p=["x","y"],d=+("horizontal"!==c),f=this._baseAxisDim=p[d],g=p[1-d],v=[s,l],m=v[d].get("type"),y=v[1-d].get("type"),_=t.data;if(_&&a){var x=[];tk(_,function(t,e){var n;tB(t)?(n=t.slice(),t.unshift(e)):tB(t.value)?((n=tS({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,x.push(n)}),t.data=x}var b=this.defaultValueDimensions,w=[{name:f,type:mV(m),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:mV(y),dimsDef:b.slice()}];return n=tB(n={coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:tR(uE,w,this)})&&{coordDimensions:n}||tS({encodeDefine:this.getEncode()},n),(r=new mZ(mX(i=this.getSource(),n).dimensions,this)).initData(i,void 0),r},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t.prototype.getWhiskerBoxesLayout=function(){return this._layout},t}();function yg(t,e){for(var n=e.ends.length,i=0,r=0;r<n;r++)t.contain(e.ends[r][0],e.ends[r][1])&&i++;return i?+(i<n):2}var yv="boxplot",ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return tt(e,t),e.type="series."+yv,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:uC.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:uC.color.shadow}},animationDuration:800},e}(cu);tI(ym,yf,!0);var yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=yv,e}return tt(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===t.getWhiskerBoxesLayout()),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),h=s&&mJ(l,!1,t);i.diff(o).add(function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=s?yg(u,e):0;if(2!==n){var o=yb(e,i,t,a,!0);m0(1===n,o,h),i.setItemGraphicEl(t,o),r.add(o)}}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!i.hasValue(t))return void r.remove(n);var l=i.getItemLayout(t),c=s?yg(u,l):0;2===c?r.remove(n):(n?(pN(n),yw(l,n,i,t)):n=yb(l,i,t,a),m0(1===c,n,h),r.add(n),i.setItemGraphicEl(t,n))}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type=yv,e}(dS),y_=function(){},yx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new y_},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(aY);function yb(t,e,n,i,r){var o,a,s,l=t.ends,u=new yx({shape:{points:r?(o=l,a=i,s=t,tD(o,function(t){return(t=t.slice())[a]=s.initBaseline,t})):l}});return yw(t,u,e,n,r),u}function yw(t,e,n,i,r){var o=n.hostModel;(0,Q[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");ln(e,a),s9(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}var yS=ow(),yM={seriesType:yv,overallReset:function(t){var e=yv+"|&";mt(t,e,function(t){var n=function(t,e){var n=v4(t,e);if(!n||!n.sers.length)return 0;var i=0;return v9(t.model.ecModel,n.sers,function(){i++}),i}(t,e);if(n){var i,r,o,a,s,l,u,h,c,p,d=(i=t,r=n,o=[],a=[],s=[],l=my(i,{fromStat:{key:yv+"|&"},min:1}).w,v7(i,yv+"|&",function(t){var e=t.get("boxWidth");tB(e)||(e=[e,e]),s[t.seriesIndex]=[rF(e[0],l)||0,rF(e[1],l)||0]}),h=(u=.8*l-2)/r*.3,p=(c=(u-h*(r-1))/r)/2-u/2,v7(i,yv+"|&",function(t){var e=t.seriesIndex;a[e]=p,p+=h+c,o[e]=rk(rD(c,s[e][0]),s[e][1])}),{boxOffsetList:a,boxWidthList:o});v7(t,e,function(t){var e=t.seriesIndex;!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a=+("horizontal"!==t.getWhiskerBoxesLayout()),s=1-a,l=["x","y"],u=r.mapDimension(l[a]),h=r.mapDimensionsAll(l[s]);if(null!=u&&!(h.length<5))for(var c=0;c<r.count();c++){var p=r.get(u,c),d=_(p,h[2],c),f=_(p,h[0],c),g=_(p,h[1],c),v=_(p,h[3],c),m=_(p,h[4],c),y=[];x(y,g,!1),x(y,v,!0),y.push(f,g,m,v),b(y,f),b(y,m),b(y,d),r.setItemLayout(c,{initBaseline:d[s],ends:y})}function _(t,n,o){var l,u=r.get(n,o),h=[];return h[a]=t,h[s]=u,isNaN(t)||isNaN(u)?l=[0/0,0/0]:(l=i.dataToPoint(h),l[a]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(t,d.boxOffsetList[e],d.boxWidthList[e])})}})}},yT={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==sb&&hy("");var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=rG(t[a].slice()),l=r1(s,.25),u=r1(s,.5),h=r1(s,.75),c=s[0],p=s[s.length-1],d=(null==r?1.5:r)*(h-l),f=o?c:Math.max(c,l-d),g=o?p:Math.min(p,h+d),v=e.itemNameFormatter,m=tz(v)?v({value:a}):tE(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,h,g]);for(var y=0;y<s.length;y++){var _=s[y];if(_<f||_>g){var x=[m,_];i.push(x)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},yI="candlestick",yC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return tt(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series."+yI,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(cu);tI(yC,yf,!0);var yk=["itemStyle","borderColor"],yD=["itemStyle","borderColor0"],yA=["itemStyle","borderColorDoji"],yP=["itemStyle","color"],yO=["itemStyle","color0"];function yL(t,e){return e.get(t>0?yP:yO)}function yR(t,e){return e.get(0===t?yA:t>0?yk:yD)}var yB={seriesType:yI,plan:cy(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=yL(r,i),o.stroke=yR(r,i)||o.fill,tS(e.ensureUniqueItemVisual(n,"style"),o)}}}}},yz=["color","borderColor"],yE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea(),l=o&&mJ(a,!1,t);this._data||i.removeAll();var u=yW(t);e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n),h=o?yg(s,a):0;if(2!==h){var c=yF(a,n,u,!0);pL(c,{shape:{points:a.ends}},t,n),m0(1===h,c,l),yH(c,e,n,r),i.add(c),e.setItemGraphicEl(n,c)}}}).update(function(a,h){var c=n.getItemGraphicEl(h);if(!e.hasValue(a))return void i.remove(c);var p=e.getItemLayout(a),d=o?yg(s,p):0;2===d?i.remove(c):(c?(pO(c,{shape:{points:p.ends}},t,a),pN(c)):c=yF(p,a,u),yH(c,e,a,r),m0(1===d,c,l),i.add(c),e.setItemGraphicEl(a,c))}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),yZ(t,this.group);var e=t.get("clip",!0)?mJ(t.coordinateSystem,!1,t):null;m0(!!e,this.group,e)},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox"),o=yW(e);null!=(n=t.next());){var a=yF(i.getItemLayout(n),n,o);yH(a,i,n,r),a.incremental=oC(e),this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){yZ(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),m0(!1,this.group,null),this._data=null},e.type=yI,e}(dS),yN=function(){},yV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yN},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(aY);function yF(t,e,n,i){var r,o,a,s=t.ends;return new yV({shape:{points:i?(r=s,o=n,a=t,tD(r,function(t){return(t=t.slice())[o]=a.initBaseline,t})):s},z2:100})}function yH(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0;var o=r.getShallow("cursor");o&&t.attr("cursor",o),t.__simpleBox=i,ln(t,r);var a=e.getItemLayout(n).sign;tk(t.states,function(t,e){var n=r.getModel(e),i=yL(a,n),o=yR(a,n)||i,s=t.style||(t.style={});i&&(s.fill=i),o&&(s.stroke=o)});var s=r.getModel("emphasis");s9(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function yW(t){return+("horizontal"===t.getWhiskerBoxesLayout())}var yG=function(){},yU=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return tt(e,t),e.prototype.getDefaultShape=function(){return new yG},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(aY);function yZ(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new yU({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new yU({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new yU({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),yX(1,a,t,r),yX(-1,s,t,r),yX(0,l,t,r),i&&(a.incremental=oC(t),s.incremental=oC(t),l.incremental=oC(t)),n&&n.push(a,s,l)}function yX(t,e,n,i){var r=yR(t,n)||yL(t,n),o=n.getModel("itemStyle").getItemStyle(yz);e.useStyle(o),e.style.fill=null,e.style.stroke=r;var a=n.get("cursor");a&&e.attr("cursor",a)}function yY(t){t&&tB(t.series)&&tk(t.series,function(t){tF(t)&&"k"===t.type&&(t.type=yI)})}var yq=ow(),yj={seriesType:yI,plan:cy(),reset:function(t){var e,n,i,r,o,a=t.coordinateSystem,s=t.getData(),l=(n=my((e=t).getBaseAxis(),{fromStat:{key:yI+"|&"},min:1}).w,i=rF(tX(e.get("barMaxWidth"),n),n),r=rF(tX(e.get("barMinWidth"),1),n),null!=(o=e.get("barWidth"))?rF(o,n):rD(rk(n/2,i),r)),u=+("horizontal"!==t.getWhiskerBoxesLayout()),h=1-u,c=["x","y"],p=s.getDimensionIndex(s.mapDimension(c[u])),d=tD(s.mapDimensionsAll(c[h]),s.getDimensionIndex,s),f=d[0],g=d[1],v=d[2],m=d[3];if(s.setLayout({candleWidth:l,isSimpleBox:l<=1.3}),!(p<0)&&!(d.length<4))return{progress:t.pipelineContext.large?function(e,n){for(var i,r,o=gA(4*e.count),s=0,l=[],c=[],d=n.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);null!=(r=e.next());){var _=d.get(p,r),x=d.get(f,r),b=d.get(g,r),w=d.get(v,r),S=d.get(m,r);if(isNaN(_)||isNaN(w)||isNaN(S)){o[s++]=0/0,s+=3;continue}o[s++]=yK(d,r,x,b,g,y),l[u]=_,l[h]=w,i=a.dataToPoint(l,null,c),o[s++]=i?i[0]:0/0,o[s++]=i?i[1]:0/0,l[h]=S,i=a.dataToPoint(l,null,c),o[s++]=i?i[1]:0/0}n.setLayout("largePoints",o)}:function(t,e){for(var n,i=e.getStore();null!=(n=t.next());){var r=i.get(p,n),o=i.get(f,n),s=i.get(g,n),c=i.get(v,n),d=i.get(m,n),y=rk(o,s),_=rD(o,s),x=I(y,r),b=I(_,r),w=I(c,r),S=I(d,r),M=[];C(M,b,0),C(M,x,1),M.push(k(S),k(b),k(w),k(x));var T=!!e.getItemModel(n).get(["itemStyle","borderColorDoji"]);e.setItemLayout(n,{sign:yK(i,n,o,s,g,T),initBaseline:o>s?b[h]:x[h],ends:M,brushRect:function(t,e,n){var i=I(t,n),r=I(e,n);return i[u]-=l/2,r[u]-=l/2,{x:i[0],y:i[1],width:h?l:r[0]-i[0],height:h?r[1]-i[1]:l}}(c,d,r)})}function I(t,e){var n=[];return n[u]=e,n[h]=t,isNaN(e)||isNaN(t)?[0/0,0/0]:a.dataToPoint(n)}function C(t,e,n){var i=e.slice(),r=e.slice();i[u]=p5(i[u]+l/2,1,!1),r[u]=p5(r[u]-l/2,1,!0),n?t.push(i,r):t.push(r,i)}function k(t){return t[u]=p5(t[u],1),t}}}}};function yK(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}var y$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tt(e,t),e.prototype.getInitialData=function(t,e){return mK(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:uC.color.primary}},universalTransition:{divideShape:"clone"}},e}(cu),yQ=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return tt(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=fy(t,-1,-1,2,2,null,o);a.attr({z2:tX(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=yJ,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){s0(this.childAt(0))},e.prototype.downplay=function(){s1(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,c)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};h?p.attr(d):pO(p,d,a,n),pN(p)}if(this._updateCommon(t,n,s,i,r),u){var p=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,pL(p,d,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),h=m.get("disabled"),c=lh(v),p=m.getShallow("scale"),d=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var _=fx(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof aJ){var w=f.style;f.useStyle(tS({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(tS({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var T=r&&r.useNameLabel;lu(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):m5(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=f.ensureState("emphasis");I.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*C,I.scaleY=this._sizeY*C,this.setSymbolScale(1),s9(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=sg(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&pB(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pB(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return f_(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(rS);function yJ(t,e){this.parent.drift(t,e)}function y0(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(n))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function y1(t){return null==t||tF(t)||(t={isIgnore:t}),t||{}}function y2(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lh(e),cursorStyle:e.get("cursor")}}function y5(t,e,n,i,r,o,a){var s=new t(e,n,i,r);return s.setPosition(o),e.setItemGraphicEl(n,s),a.add(s),s}var y3=function(){function t(t){this.group=new rS,this._SymbolCtor=t||yQ}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=y1(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=y2(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);y0(t,r,i,e)&&y5(o,t,i,s,l,r,n)}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!y0(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):pO(p,v,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=e.getStore(),i=0,r=n.count();i<r;i++){var o=e.getItemGraphicEl(i),a=this._getSymbolPoint(i);y0(e,a,i,t)?((o=o||y5(this._SymbolCtor,e,i,this._seriesScope,{disableAnimation:!0},a,this.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(this.group.remove(o),e.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=y2(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,i){function r(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=pU)}this._progressiveEls=[],i=y1(i);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(y0(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}(),y4=function(){},y8=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tt(e,t),e.prototype.getDefaultShape=function(){return new y4},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<i.length;){var h=i[n++],c=i[n++];!(isNaN(h)||isNaN(c))&&(!u||u.contain(h,c))&&(a.x=h-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];!(isNaN(a)||isNaN(s))&&(!o||o.contain(a,s))&&r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h<n.length;){var c=n[h++],p=n[h++];a=Math.min(c,a),l=Math.max(c,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new no(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(aY),y6=function(){function t(){this.group=new rS}return t.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var e=(t.endIndex-t.startIndex)*2,i=4*t.startIndex*2;n=new Float32Array(n.buffer,i,e)}t.setShape("points",n),t.reset(),t.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n,i){var r=this._newAdded[0],o=e.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=n,u.setShape({points:o}),this._setCommon(u,e,i)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new y8({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=fy(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=sg(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();function y7(t,e){return{seriesType:t,plan:cy(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=tD(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");gI(n,a[0])&&(a[0]=l),gI(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&gA(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(h,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&(e.setLayout("points",r),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}var y9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,_t(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),oC(e),_t(e)),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var r=y7("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(_t(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new y6:new y3,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(dS);function _t(t){return{clipShape:function(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}(t)}}var _e=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),_n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oc).models[0]},e.type="cartesian2dAxis",e}(uM);tI(_n,_e);var _i={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:uC.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:uC.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:uC.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[uC.color.backgroundTint,uC.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:uC.color.neutral00,borderColor:uC.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_r=tw({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_i),_o=tw({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:uC.color.axisMinorSplitLine,width:1}}},_i),_a=tw({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_o),_s=tM({logBase:10},_o);let _l={category:_r,value:_o,time:_a,log:_s};function _u(t,e,n,i){tk(ve,function(r,o){var a=tw(tw({},_l[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return tt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ux(this),i=n?uw(t):{};tw(t,e.getTheme().get(o+"Axis")),tw(t,this.getDefaultOption()),t.type=_h(t),n&&ub(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g$.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){return{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",_h)}function _h(t){return t.type||(t.data?"category":"value")}var _c=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tD(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tP(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),_p=["x","y"];function _d(t){return("interval"===t.type||"time"===t.type)&&!lH(t)}var _f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=mT,e.dimensions=_p,e}return tt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(_d(t)&&_d(e)){var n=gz(t,null),i=gz(e,null),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=eW([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new no(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return el(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return el(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new no(i,r,o,a)},e}(_c),_g=[0,1];function _v(t){var e=t.getExtent();if(t.onBand){var n=(e[1]-e[0])/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}var _m=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return tt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this.scale;return rV(t=n.normalize(n.parse(t)),_g,_v(this),e)},t.prototype.coordToData=function(t,e){var n=rV(t,_v(this),_g,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e,n,i,r=(t=t||{}).tickModel||this.getTickModel(),o=(e={breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak},n=this.scale,(i=this.getTickModel().get("customValues"))?{ticks:vS(i,n)}:"category"===this.type?function(t,e){var n,i,r=vT(t),o=vo(e),a=vk(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),tz(o))n=vO(t,o,!0);else if("auto"===o){var s=vM(t,t.getLabelModel(),vw(2));i=s.labelCategoryInterval,n=tD(s.labels,function(t){return t.tick})}else n=vO(t,i=o,!0);return vD(r,o,{ticks:n,tickCategoryInterval:i})}(this,r):{ticks:n.getTicks(e)}),a=tD(o.ticks,function(t){return{coord:this.dataToCoord(vh(this.scale,t)),tick:t}},this),s=function(t,e,n){var i=e.length;if(!t.onBand||n||!i)return!1;var r=my(t).w;if(!r)return!1;tk(e,function(t){t.coord-=r/2});var o=t.scale.getExtent(),a=e[i-1];return a.tick.offInterval&&e.pop(),e.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}(this,a,r.get("alignWithLabel"));return tD(a,function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:s}})},t.prototype.getMinorTicksCoords=function(){if(gG(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),tD(this.scale.getMinorTicks(t),function(t){return tD(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n,i,r,o,a,s,l,u=t.getLabelModel().get("customValues");if(u){var h=t.scale;return{labels:tD(vS(u,h),function(e,n){return{formattedLabel:vi(t)(e,n),rawLabel:h.getLabel(e),tick:e}})}}return"category"===t.type?(n=t,i=e,r=n.getLabelModel(),o=vM(n,r,i),!r.get("show")||n.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=vi(a),{labels:tD(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tick:t}})})}(this,t=t||vw(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return my(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n,i,r=e.kind,o=(i=(n=t).getLabelModel(),{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}),a=vi(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,u=l.getExtent(),h=l.count();if(u[1]-u[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var p=u[0],d=t.dataToCoord(p+1)-t.dataToCoord(p),f=Math.abs(d*Math.cos(s)),g=Math.abs(d*Math.sin(s)),v=0,m=0;p<=u[1];p+=c){var y=0,_=0,x=rr(a({value:p}),o.font,"center","top");y=1.3*x.width,_=1.3*x.height,v=Math.max(v,y,7),m=Math.max(m,_,7)}var b=v/f,w=m/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(1===r)return e.out.noPxChangeTryDetermine.push(tL(vA,null,t,S,h)),S;var M=vP(t,S,h);return null!=M?M:S}(this,t=t||vw(2))},t}());function _y(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_=gW(t),x=_?t.intervalStub:t,b=e.fixMinMax||[],w=_?t.getExtent():null,S=x.getExtent(),M=gX(S,b,e.rawExtentResult);x.setExtent(M[0],M[1]),M=x.getExtent();var T=_?(n=x,i=gY(e.splitNumber,10),r=n.getExtent(),a=rD(rQ(o=gE(n)),1),i/o*a<=.5&&(a*=10),s=gU(a),l=[rW(rL(r[0]/a)*a,s),rW(rO(r[1]/a)*a,s)],{intervalPrecision:s,interval:a,niceExtent:l}):(u=x,c=gY((h=e).splitNumber,5),p=gE(u),d=h.minInterval,f=h.maxInterval,g=r0(p/c,!0),null!=d&&g<d&&(g=d),null!=f&&g>f&&(g=f),v=gU(g),y=[rW(rL((m=u.getExtent())[0]/g)*g,v),rW(rO(m[1]/g)*g,v)],{interval:g,intervalPrecision:v,niceExtent:y}),I=T.intervalPrecision,C=T.interval,k=e.userInterval;null!=k&&(T.interval=k,T.intervalPrecision=gU(k)),b[0]||(M[0]=rW(rO(M[0]/C)*C,I)),b[1]||(M[1]=rW(rL(M[1]/C)*C,I)),null!=k&&(T.niceExtent=M.slice()),vu(t,b,S,M,w,T)}function __(t){var e,n,i,r,o,a,s,l,u=t.scale,h=t.model,c=h.axis,p=h.ecModel;e=u,n=h,i=c,o=mm(e,n,r=p,i,null),a=gF(e)||gH(e),s=e,l={splitNumber:n.get("splitNumber"),fixMinMax:o.fixMM,userInterval:n.get("interval"),minInterval:a?n.get("minInterval"):null,maxInterval:a?n.get("maxInterval"):null,rawExtentResult:o},_x[s.type](s,l),i&&r&&function(t,e,n,i){if(n.ctnShp&&(me(t,function(e){var n=mv.get(e);if(n){var o=n(t,i);o&&(om(r=r||[0,0],o[0]),oy(r,o[1]),vn(t).noOnMyZero=!0)}}),r)){var r,o=e.getExtent();if(gG(e))t.onBand||e.setExtent2(1,rk(o[0],o[0]+r[0]),rD(o[1],o[1]+r[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=rk(a[0],e.transformOut(e.transformIn(a[0],null)+r[0],null))),n.zoomFixMM[1]||(a[1]=rD(a[1],e.transformOut(e.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(1,a[0],a[1])}}}(i,e,o,r)}var _x={interval:_y,log:_y,time:function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=864e5,n[1]+=864e5),-1/0===n[1]&&1/0===n[0]){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-864e5}t.setExtent(n[0],n[1]);var r=gY(e.splitNumber,10),o=gE(t)/r,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=g3.length,u=Math.min(g2(g3,o,0,l),l-1),h=g3[u][1],c=g3[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:o,interval:h,minLevelUnit:c})},ordinal:t4},_b=[[3,1],[0,2]],_w=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_p,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){for(var e=tO(t),n=[],i=e.length-1;i>=0;i--){var r=t[+e[i]];r.__alignTo?n.push(r):__(r)}tk(n,function(t){var e,n;(e=t,n=t.__alignTo,lH(e.scale)||lH(n.scale)||n.scale.getTicks().length<2)?__(t):function(t,e){var n,i,r,o,a,s,l,u,h,c=t.scale,p=t.model,d=mm(c,p,p.ecModel,t,null),f=gW(c),g=gW(e)?e.intervalStub:e,v=f?c.intervalStub:c,m=c.base,y=g.getTicks(),_=g.getTicks({expandToNicedExtent:!0}),x=y.length-1;if(1===x)n=i=0,r=1;else if(2===x){var b=rA(y[0].value-y[1].value),w=rA(y[1].value-y[2].value);n=i=0,b===w?r=2:(r=1,b<w?n=b/w:i=w/b)}else{var S=g.getConfig().interval;n=(1-(y[0].value-_[0].value)/S)%1,i=(1-(_[x].value-y[x].value)/S)%1,r=x-!!n-!!i}var M=d.zoomFixMM,T=M[0]||M[1],I=[d.fixMM[0]||T,d.fixMM[1]||T],C=c.getExtent(),k=v.getExtent(),D=gX(k,I);function A(t){for(var e=0;e<50&&!t();e++)l=gU(s=f?s*rD(m,2):function(t){var e=rJ(t),n=rR(10,e),i=rP(t/n);return i?2===i?i=3:3===i?i=5:i*=2:i=1,rW(i*n,-e)}(s))}function P(){o=rW(h-s*n,l)}function O(){a=rW(u+s*i,l)}function L(){h=n?rW(o+s*n,l):o}function R(){u=i?rW(a-s*i,l):a}if(I[0]&&I[1]){o=D[0],s=((a=D[1])-o)/(r+n+i);var B=t.getExtent(),z=rA(B[1]-B[0]);l=rZ([a,o],z,.5/r),L(),R(),r4(l)&&(s=rW(s,l))}else{var E=D[1]-D[0];l=gU(s=f?rD(rQ(E),1):r0(E/r,2)),I[0]?(o=D[0],A(function(){if(L(),u=rW(h+s*r,l),O(),a>=D[1])return!0})):I[1]?(a=D[1],A(function(){if(R(),h=rW(u-s*r,l),P(),o<=D[0])return!0})):A(function(){h=rW(rL(D[0]/s)*s,l);var t=rP(((u=rW(rO(D[1]/s)*s,l))-h)/s);if(t<=r){var e=r-t,n=void 0,i=d.incl0||f;if(i&&0===D[0])n=[0,e];else if(i&&0===D[1])n=[e,0];else{var c=rO(e/2);n=e%2==0?[c,c]:o+a<D[0]+D[1]?[c,c+1]:[c+1,c]}if(h=rW(h-s*n[0],l),u=rW(u+s*n[1],l),P(),O(),o<=D[0]&&a>=D[1])return!0}})}vu(c,I,k,[o,a],C,{interval:s,intervalCount:r,intervalPrecision:l,niceExtent:[h,u]})}(t,t.__alignTo.scale)})}tk(this._axesList,function(t){mf(t,1);var e=t.scale;gG(e)&&e.setSortInfo(t.model.get("categorySortInfo"))}),i(n.x),i(n.y);var r={};tk(n.x,function(t){_S(n,"y",t,r)}),tk(n.y,function(t){_S(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=u_(t,e),r=this._rect=uy(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(_I(o,r),!n){var l=(h=r,c=a,p=o,d=s,f=e,g=new vN(_A),tk(p,function(t){return tk(t,function(t){vs(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var a,s=v1(t,n),l=!1,u=!1,h=0;h<e.length;h++)(gF(a=e[h].getOtherAxis(n.axis).scale)||gW(a))&&(l=u=!0,"category"===n.axis.type&&n.axis.onBand&&(u=!1));return s.axisLineAutoShow=l,s.axisTickAutoShow=u,s.defaultNameMoveOverlap=o,new vU(n,i,s,r)}(h,c,t.model,f,g,!d))})}),g),u=void 0;if(s)u=_k(r.clone(),"axisLabel",null,r,o,l,i);else{var h,c,p,d,f,g,v,m,y,_,x,b,w=(v=t,m=r,y=i,"same"===(x=v.get("outerBoundsMode",!0))?_=m.clone():(null==x||"auto"===x)&&(_=uy(v.get("outerBounds",!0)||mS,y.refContainer)),{outerBoundsRect:_,parsedOuterBoundsContain:null==(b=v.get("outerBoundsContain",!0))||"auto"===b||0>tT(["all","axisLabel"],b)?"all":b,outerBoundsClamp:[rH(tX(v.get("outerBoundsClampWidth",!0),mM["0"]),m.width),rH(tX(v.get("outerBoundsClampHeight",!0),mM["1"]),m.height)]}),S=w.outerBoundsRect,M=w.parsedOuterBoundsContain,T=w.outerBoundsClamp;S&&(u=_k(S,M,T,r,o,l,i))}_D(r,o,2,null,u,i),tk(this._coordsList,function(t){t.calcAffineTransform()})}},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}tF(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",oc).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",oc).models[0],a=t.gridModel,s=this._coordsList;return i?0>tT(s,e=i.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,i){var l,u;if(l=n,u=t,l.getCoordSysModel()===u){var h,c=n.get("position");"x"===e?"top"!==c&&"bottom"!==c&&(c=o.bottom?"top":"bottom"):"left"!==c&&"right"!==c&&(c=o.left?"right":"left"),o[c]=!0;var p=(null!=(h=n.get("type"))&&(t3(ve,h)||gj.getClass(h))||(h="value"),h),d=new _m(e,function(t,e,n){var i;switch(lN()&&(i=vl(t,e,n)),e){case"category":return new gJ({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:ov()});case"time":return new g5({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new g6({logBase:t.get("logBase"),breakOption:i});case"value":return new g1({breakOption:i});default:return new(gj.getClass(e)||g1)({})}}(n,p,!0),[0,0],p,c);d.onBand=vc(d.scale,n),d.inverse=n.get("inverse"),n.axis=d,d.model=n,d.grid=r,d.index=i,r._axesList.push(d),a[e][i]=d,s[e]++}}}this._axesMap=a,tk(a.x,function(e,n){tk(a.y,function(r,o){var a="x"+n+"y"+o,s=new _f(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})}),_T(a.x),_T(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return tk(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>tT(e,r)&&e.push(r),0>tT(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a),tk(a._axesList,function(e){var n;n=t.dimIdxMap,md(e).dimIdxInCoord=n.get(e.dim)})}),e.eachSeries(function(t){var e,n;!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=0;if(e){var r="series"===t.mainType;(null==n&&(n=r?"data":"box"),"data"===n)?(i=1,r||(i=0)):"box"!==n||(i=2,r||uh[e])||(i=0)}return{coordSysType:e,kind:i}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0!==a&&s===n){var l=i(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:mT,coordSysProvider:function(){var i,r=(tk(i={xAxisModel:null,yAxisModel:null},function(e,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,oc).models[0];i[n]=o}),i),o=r.xAxisModel,a=r.yAxisModel;return e=o.axis,n=a.axis,o.getCoordSysModel().coordinateSystem.getCartesian(o.componentIndex,a.componentIndex)}}),e&&n&&(mr(e,t,mT),mr(n,t,mT))},this),i},t.dimensions=_p,t.dimIdxMap=gM(_p),t}();function _S(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_M(s,o[l])&&(r=o[l]);else for(var u in o)if(t3(o,u)&&_M(s,o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function _M(t,e){if(!e)return!1;var n,i,r,o=ox(i=(n=e.scale.getExtentUnsafe(0,null))[0],r=n[1])?0===i||0===r?2:i<0&&r>0?1:3:3,a=e&&"category"!==e.type&&"time"!==e.type&&3!==o;return a&&"auto"===t&&vn(e).noOnMyZero&&(a=!1),a}function _T(t){for(var e,n=tO(t),i=[],r=n.length-1;r>=0;r--){var o,a=t[+n[r]];(gF(o=a.scale)||gW(o))&&null==vl(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?i.push(a):e=a)}e||(e=i.pop()),e&&tk(i,function(t){t.__alignTo=e})}function _I(t,e){tk(t.x,function(t){return _C(t,e.x,e.width)}),tk(t.y,function(t){return _C(t,e.y,e.height)})}function _C(t,e,n){var i,r,o=[0,n],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),r=(i=t.getExtent())[0]+i[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function _k(t,e,n,i,r,o,a){_D(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),h(i,0,0/0),h(i,1,0/0);var l=null==function(t,e){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(void 0,t[n],n,t))return t[n]}}(s,function(t){return t>0});return di(i,s,!0,!0,n),_I(r,i),l;function u(t){tk(r[pF[t]],function(e){if(vs(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(vh(e.scale,vz(a.label).labelInfo.tick));s=1===t?1-s:s,h(a.rect,t,s),h(a.rect,1-t,0/0)}var l=n.nameLayout;if(l){var s=va(n.nameLocation)?.5:0/0;h(l.rect,t,s),h(l.rect,1-t,0/0)}}})}function h(e,n,i){var r=t[pF[n]]-e[pF[n]],o=e[pH[n]]+e[pF[n]]-(t[pH[n]]+t[pF[n]]);r=c(r,1-i),o=c(o,i);var a=_b[n][0],l=_b[n][1];s[a]=rD(s[a],r),s[l]=rD(s[l],o)}function c(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function _D(t,e,n,i,r,o){var a=2===n;tk(e,function(e){return tk(e,function(e){if(vs(e.model)){var n,i;n=e.axisBuilder,i=v1(t,e.model),n.updateCfg(i),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r})}})});var s={x:0,y:0};function l(e){s[pF[1-e]]=t[pH[e]]<=.5*o.refContainer[pH[e]]?0:1-e==1?2:1}l(0),l(1),tk(e,function(t,e){return tk(t,function(t){vs(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var _A=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";vH(t,e,n,i,r,o),va(t.nameLocation)||tk(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&vG(t.labelInfoList,t.dirVec,i,r)})};function _P(t,e){return"all"===t||tB(t)&&tT(t,e)>=0||t===e}function _O(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_R(t)]}function _L(t){return!!t.get(["handle","show"])}function _R(t){return t.type+"||"+t.id}var _B={},_z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=_O(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=_L(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o,a=(o=_O(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){_B[t]=e},e.getAxisPointerClass=function(t){return t&&_B[t]},e.type="axis",e}(cm),_E=os(),_N=["splitArea","splitLine","minorSplitLine","breakArea"],_V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return tt(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new rS,this.group.add(this._axisGroup),vs(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),tk(_N,function(t){e.get([t,"show"])&&_F[t](this,this._axisGroup,e,e.getCoordSysModel(),i)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||p6(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){_E(this).splitAreaColors=null},e.type="cartesianAxis",e}(_z),_F={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),h=!1!==a.get("showMaxLine");l=tB(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=o.isHorizontal(),d=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<f.length;y++){var _=o.toGlobalCoord(f[y].coord);if((0!==y||u)&&(y!==f.length-1||h)){var x=f[y].tickValue;p?(g[0]=_,g[1]=c.y,v[0]=_,v[1]=c.y+c.height):(g[0]=c.x,g[1]=_,v[0]=c.x+c.width,v[1]=_);var b=d++%l.length,w=new po({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:tM({stroke:l[b]},m),silent:!0});p1(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var h=[],c=[],p=a.getLineStyle(),d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++){var g=o.toGlobalCoord(u[d][f].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var v=new po({anid:"minor_line_"+u[d][f].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0});p1(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=_E(t).splitAreaColors,p=t2(),d=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=tB(s)?s:[s];for(var f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=y-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,w=y-x,v=x+w);var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new a6({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:tM({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}_E(t).splitAreaColors=p}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){n.axis.scale}},_H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="xAxis",e}(_V),_W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_H.type,e}return tt(e,t),e.type="yAxis",e}(_V),_G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return tt(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a6({shape:t.coordinateSystem.getRect(),style:tM({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(cm),_U={offset:0};function _Z(t){t.registerComponentView(_G),t.registerComponentModel(mI),t.registerCoordinateSystem("cartesian2d",_w),_u(t,"x",_n,_U),_u(t,"y",_n,_U),t.registerComponentView(_H),t.registerComponentView(_W),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var _X={color:"fill",borderColor:"stroke"},_Y={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},_q=os(),_j=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return mK(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=_q(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(cu);function _K(t,e){return e=e||[0,0],tD(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?my(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function _$(t,e,n){var i=i3.call(this)||this;i.type="view",i.dimensions=["x","y"],i.invertY=t,i.lgCt=e,i.lgGeo=n;var r=i.trans=[];return r[0]=i8(),r[1]=i8(),r[2]=i8(),i.mtRaw=ez(),i.mtRawInv=ez(),i.mtOverall=ez(),i.mtOverallInv=ez(),i.zoom=1,i}tt(_$,i3),_$.prototype.getBoundingRect=function(){var t;return t=this,e8(e3(),t.dataRect)},_$.prototype.getViewRect=function(){var t;return t=this,e8(e3(),t.viewRect)},_$.prototype.getRoamTransform=function(){return i4(this.trans[1])},_$.prototype.dataToPoint=function(t,e,n){var i=e?this.mtRaw:this.mtOverall;return n=n||[],i?el(n,t,i):et(n,t)},_$.prototype.pointToData=function(t,e,n){n=n||[];var i=this.mtOverallInv;return i?el(n,t,i):et(n,t)},_$.prototype.convertToPixel=function(t,e,n){var i=_J(e);return i===this?i.dataToPoint(n):null},_$.prototype.convertFromPixel=function(t,e,n){var i=_J(e);return i===this?i.pointToData(n):null},_$.prototype.containPoint=function(t){return e8(_Q,this.dataRect),e7(_Q,_Q,this.mtOverall),e9(_Q,t[0],t[1])},_$.dimensions=["x","y"];var _Q=e3();function _J(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function _0(t,e){return e=e||[0,0],tD([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function _1(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?my(n).w:Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function _2(t,e){return e=e||[0,0],tD(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?my(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function _5(t,e){e&&(e.font=e.textFont||e.font,t3(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),t3(e,"textAlign")&&(t.align=e.textAlign),t3(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),t3(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),t3(e,"textWidth")&&(t.width=e.textWidth),t3(e,"textHeight")&&(t.height=e.textHeight),t3(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),t3(e,"textPadding")&&(t.padding=e.textPadding),t3(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),t3(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),t3(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),t3(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),t3(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),t3(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),t3(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function _3(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var i=t.textPosition.indexOf("inside")>=0,r=t.fill||uC.color.neutral99;_4(t,e);var o=null==t.textFill;return i?o&&(t.textFill=n.insideFill||uC.color.neutral00,!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=r),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||uC.color.neutral00),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,tk(e.rich,function(t){_4(t,t)}),t}function _4(t,e){e&&(t3(e,"fill")&&(t.textFill=e.fill),t3(e,"stroke")&&(t.textStroke=e.fill),t3(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),t3(e,"font")&&(t.font=e.font),t3(e,"fontStyle")&&(t.fontStyle=e.fontStyle),t3(e,"fontWeight")&&(t.fontWeight=e.fontWeight),t3(e,"fontSize")&&(t.fontSize=e.fontSize),t3(e,"fontFamily")&&(t.fontFamily=e.fontFamily),t3(e,"align")&&(t.textAlign=e.align),t3(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),t3(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),t3(e,"width")&&(t.textWidth=e.width),t3(e,"height")&&(t.textHeight=e.height),t3(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),t3(e,"padding")&&(t.textPadding=e.padding),t3(e,"borderColor")&&(t.textBorderColor=e.borderColor),t3(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),t3(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),t3(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),t3(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),t3(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),t3(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),t3(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),t3(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),t3(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),t3(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}e3(),i8(),i8();var _8={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},_6=tO(_8);tA(i6,function(t,e){return t[e]=1,t},{}),i6.join(", ");var _7=["","style","shape","extra"],_9=os();function xt(t,e,n,i,r){var o=t+"Animation",a=pA(t,i,r)||{},s=_9(e).userDuring;return a.duration>0&&(a.during=s?tL(xo,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),tS(a,n[o]),a}function xe(t,e,n,i){if(t){var r=t.parent,o=_9(t).leaveToProps;if(o){var a=xt("update",t,e,n,0);a.done=function(){r&&r.remove(t),i&&i()},t.animateTo(o,a)}else r&&r.remove(t),i&&i()}}function xn(t){return"all"===t}var xi={},xr={setTransform:function(t,e){return xi.el[t]=e,this},getTransform:function(t){return xi.el[t]},setShape:function(t,e){var n=xi.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=xi.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=xi.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=xi.el.style;if(e)return e[t]},setExtra:function(t,e){return(xi.el.extra||(xi.el.extra={}))[t]=e,this},getExtra:function(t){var e=xi.el.extra;if(e)return e[t]}};function xo(){var t=this.el;if(t){var e=_9(t).userDuring,n=this.userDuring;if(e!==n){this.el=this.userDuring=null;return}xi.el=t,n(xr)}}function xa(t,e,n,i){var r,o=n[t];if(o){var a=e[t];if(a){var s=n.transition,l=o.transition;if(l)if(r||(r=i[t]={}),xn(l))tS(r,a);else for(var u=r6(l),h=0;h<u.length;h++){var c=u[h],p=a[c];r[c]=p}else if(xn(s)||tT(s,t)>=0){r||(r=i[t]={});for(var d=tO(a),h=0;h<d.length;h++){var f,g,c=d[h],p=a[c];f=o[c],g=p,(tC(f)?f!==g:null!=f&&isFinite(f))&&(r[c]=p)}}}}}function xs(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=tO(i),a=0;a<o.length;a++){var s=o[a];r[s]=iT(i[s])}}var xl=os(),xu=["percent","easing","shape","style","extra"],xh="emphasis",xc="normal",xp="blur",xd="select",xf=[xc,xh,xp,xd],xg={normal:["itemStyle"],emphasis:[xh,"itemStyle"],blur:[xp,"itemStyle"],select:[xd,"itemStyle"]},xv={normal:["label"],emphasis:[xh,"label"],blur:[xp,"label"],select:[xd,"label"]},xm=["x","y"],xy={normal:{},emphasis:{},blur:{},select:{}},x_={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_K,t)}}},geo:function(t){var e=t.view,n=e.getBoundingRect();return{coordSys:{type:"geo",x:n.x,y:n.y,width:n.width,height:n.height,zoom:e.zoom},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_0,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tL(_1,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:tL(_2,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}},matrix:function(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}};function xx(t){return t instanceof aY}function xb(t){return t instanceof an}var xw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=xI(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){xC(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&xe(n,_q(n).option,t)}).update(function(e,l){xC(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?mJ(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=xI(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=oC(e),t.ensureState("emphasis").hoverLayer=pU)}for(var u=t.start;u<t.end;u++){var h=xC(null,null,u,a(u,r),e,this.group,o);h&&(h.traverse(l),s.push(h))}},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(dS);function xS(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=xz(i);_q(e=pK(o,null,r,i.layout||"center")).customPathData=o}else if("image"===n)_q(e=new aJ({})).customImagePath=t.style.image;else if("text"===n)e=new sf({});else if("group"===n)e=new rS;else if("compoundPath"===n){var i=t.shape;if(!i||!i.paths){var a="";hy(a)}e=new pf({shape:{paths:tD(i.paths,function(t){if("path"===t.type)return pK(t.shape.pathData,t,null);var e=pj(t.type);return e||hy(""),new e})}})}else{var s=pj(n);if(!s){var a="";hy(a)}e=new s}return _q(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function xM(t,e,n,i,r,o,a){e.stopAnimation("keyframe"),e.attr(xl(e));var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=xm);var l=i&&i.style;if(l){"text"===e.type&&(t3(l,"textFill")&&(l.fill=l.textFill),t3(l,"textStroke")&&(l.stroke=l.textStroke));var u=void 0,h=xx(e)?l.decal:null;t&&h&&(h.dirty=!0,u=fG(h,t)),l.__decalPattern=u}if(xb(e)&&l){var u=l.__decalPattern;u&&(l.decal=u)}!function(t,e,n,i){var r,o,a=(i=i||{}).dataIndex,s=i.isInit,l=i.clearStyle,u=n.isAnimationEnabled(),h=_9(t),c=e.style;h.userDuring=e.during;var p={},d={};if(function(t,e){for(var n=0;n<_6.length;n++){var i=_6[n],r=_8[i],o=t[i];o&&(e[r[0]]=o[0],e[r[1]]=o[1])}for(var n=0;n<i6.length;n++){var a=i6[n];null!=t[a]&&(e[a]=t[a])}}(e,d),"compound"===t.type)for(var f=t.shape.paths,g=e.shape.paths,v=0;v<g.length;v++)xs("shape",g[v],f[v]);else xs("shape",e,d),xs("extra",e,d);if(!s&&u&&(function(t,e,n){for(var i=e.transition,r=xn(i)?i6:r6(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,p),xa("shape",t,e,p),xa("extra",t,e,p),function(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!xn(a)){var l=r6(a);r||(r=i.style={});for(var u=0;u<l.length;u++){var h=l[u],c=o[h];r[h]=c}}else if(t.getAnimationStyleProps&&(xn(s)||xn(a)||tT(s,"style")>=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){r||(r=i.style={});for(var f=tO(n),u=0;u<f.length;u++){var h=f[u];if(d[h]){var c=o[h];r[h]=c}}}}}}}(t,e,c,p)),d.style=c,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,l),r=t,t3(o=e,"silent")&&(r.silent=o.silent),t3(o,"ignore")&&(r.ignore=o.ignore),r instanceof an&&t3(o,"invisible")&&(r.invisible=o.invisible),r instanceof aY&&t3(o,"autoBatch")&&(r.autoBatch=o.autoBatch),u)if(s){var m={};tk(_7,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(m[t]=m[t]||{}),tS(t?m[t]:m,n.enterFrom))});var y=xt("enter",t,e,n,a);y.duration>0&&t.animateFrom(m,y)}else{var _=t,x=e,b=a||0,w=n,S=p;if(S){var M=xt("update",_,x,w,b);M.duration>0&&_.animateFrom(S,M)}}(function(t,e){for(var n=_9(t).leaveToProps,i=0;i<_7.length;i++){var r=_7[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=_9(t).leaveToProps={}),r&&(n[r]=n[r]||{}),tS(r?n[r]:n,o.leaveTo))}})(t,e),c?t.dirty():t.markRedraw()}(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),function t(e,n,i){if(i.isAnimationEnabled()&&n){if(tB(n))return void tk(n,function(n){t(e,n,i)});var r=n.keyframes,o=n.duration;if(i&&null==o){var a=pA("enter",i,0);o=a&&a.duration}if(r&&o){var s=xl(e);tk(_7,function(t){var i;t&&!e[t]||(r.sort(function(t,e){return t.percent-e.percent}),tk(r,function(r){var a=e.animators,l=t?r[t]:r;if(l){var u=tO(l);if(t||(u=tP(u,function(t){return 0>tT(xu,t)})),u.length){i||((i=e.animate(t,n.loop,!0)).scope="keyframe");for(var h=0;h<a.length;h++)a[h]!==i&&a[h].targetName===i.targetName&&a[h].stopTracks(u);t&&(s[t]=s[t]||{});var c=t?s[t]:s;tk(u,function(n){c[n]=((t?e[t]:e)||{})[n]}),i.whenWithKeys(o*r.percent,l,u,r.easing)}}}),i&&i.delay(n.delay||0).duration(o).start(n.easing))})}}}(e,i.keyframeAnimation,o)}function xT(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),s$(o)}}function xI(t,e,n,i){var r,o,a,s,l=t.get("renderItem");if("string"==typeof l){var u=gv[l];u&&(l=u)}var h=t.coordinateSystem,c={};h&&(c=h.prepareCustoms?h.prepareCustoms(h):x_[h.type](h));for(var p=tM({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=a),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=a);var r=e.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=b(i,xc).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var u={inheritColor:tE(o)?o:uC.color.neutral99},h=w(i,xc),c=lc(h,null,u,!1,!0);c.text=h.getShallow("show")?tX(t.getFormattedLabel(i,xc),m5(e,i)):null;var p=lp(h,u,!1);return M(n,l),l=_3(l,c,p),n&&S(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=b(i,xh).getItemStyle(),o=w(i,xh),s=lc(o,null,null,!0,!0);s.text=o.getShallow("show")?tY(t.getFormattedLabel(i,xh),t.getFormattedLabel(i,xc),m5(e,i)):null;var l=lp(o,null,!0);return M(n,r),r=_3(r,s,l),n&&S(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),t3(_X,t)){var i=e.getItemVisual(n,"style");return i?i[_X[t]]:null}if(t3(_Y,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===h.type)return function(t){if(gG(t.axis.scale)){for(var e=my(t.axis),n=[],i=0;i<t.count||0;i++)n.push(tM({stackId:mk+i},t));for(var r=mA({bandWidthResult:e,seriesInfo:n}),o=[],i=0;i<t.count;i++){var a=r[mk+i];a.offsetCenter=a.offset+a.width/2,o.push(a)}return o}}(tM({axis:h.getBaseAxis()},t))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return lm(t,n)}},c.api||{}),d={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:(r=t.getData(),o={},tk(r.dimensions,function(t){var e=r.getDimensionInfo(t);if(!e.isExtraCoord){var n=e.coordDim;(o[n]=o[n]||[])[e.coordDimIndex]=r.getDimensionIndex(t)}}),o),itemPayload:t.get("itemPayload")||{}},f={},g={},v={},m={},y=0;y<xf.length;y++){var _=xf[y];v[_]=t.getModel(xg[_]),m[_]=t.getModel(xv[_])}function x(t){return t===a?s||(s=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===a?f[n]||(f[n]=x(t).getModel(xg[n])):x(t).getModel(xg[n]):v[n]}function w(t,n){return e.hasItemOption?t===a?g[n]||(g[n]=x(t).getModel(xv[n])):x(t).getModel(xv[n]):m[n]}return function(t,n){return a=t,s=null,f={},g={},l&&l(tM({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},d),p)};function S(t,e){for(var n in e)t3(e,n)&&(t[n]=e[n])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function xC(t,e,n,i,r,o,a){if(!i)return void o.remove(e);var s=xk(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&s9(s,i.focus,i.blurScope,i.emphasisDisabled),s}function xk(t,e,n,i,r,o){var a,s=-1,l=e;e&&xD(e,i,r)&&(s=tT(o.childrenRef(),e),e=null);var u=!e,h=e;h?h.clearStates():(h=xS(i),l&&((a=h).copyTransform(l),xb(a)&&xb(l)&&(a.setStyle(l.style),a.z=l.z,a.z2=l.z2,a.zlevel=l.zlevel,a.invisible=l.invisible,a.ignore=l.ignore,xx(a)&&xx(l)&&a.setShape(l.shape)))),!1===i.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),i.tooltipDisabled&&(h.tooltipDisabled=!0),xy.normal.cfg=xy.normal.conOpt=xy.emphasis.cfg=xy.emphasis.conOpt=xy.blur.cfg=xy.blur.conOpt=xy.select.cfg=xy.select.conOpt=null,xy.isLegacy=!1,function(t,e,n,i,r,o){if(!t.isGroup&&"compoundPath"!==t.type){xA(n,null,o),xA(n,xh,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(!1===a)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=xS(a),t.setTextContent(h)),xM(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;p<xf.length;p++){var d=xf[p];if(d!==xc){var f=o[d].conOpt;xT(d,h,f,xO(a,f,d),null)}}c?h.dirty():h.markRedraw()}}}}(h,n,i,r,u,xy),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&xD(a,o,i)&&(a=null),a||(a=xS(o),t.setClipPath(a)),xM(null,a,e,o,null,i,r)}}(h,n,i,r,u),xM(t,h,n,i,xy,r,u),t3(i,"info")&&(_q(h).info=i.info);for(var c=0;c<xf.length;c++){var p=xf[c];if(p!==xc){var d=xP(i,p),f=xO(i,d,p);xT(p,h,d,f,xy)}}var g=h;if(!g.isGroup){var v=r.currentZ,m=r.currentZLevel;g.z=v,g.zlevel=m;var y=i.z2;null!=y&&(g.z2=y||0);for(var _=0;_<xf.length;_++)!function(t,e,n){var i=n===xc,r=i?e:xP(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}(g,i,xf[_])}return"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u){if(l){return new mz((f={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e}).oldChildren,f.newChildren,xL,xL,f).add(xR).update(xR).remove(xB).execute()}u&&e.removeAll();for(var h=0;h<a;h++){var c=o[h],p=e.childAt(h);c?(null==c.ignore&&(c.ignore=!1),xk(t,p,n,c,r,e)):p.ignore=!0}for(var d=e.childCount()-1;d>=h;d--){var f,g,v,m,y=e.childAt(d);g=e,v=y,m=r,v&&xe(v,_q(g).option,m)}}}(t,h,n,i,r),s>=0?o.replaceAt(h,s):o.add(h),h}function xD(t,e,n){var i,r=_q(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(t3(i,"pathData")||t3(i,"d"))&&xz(a)!==r.customPathData||"image"===o&&t3(s,"image")&&s.image!==r.customImagePath}function xA(t,e,n){var i,r,o=e?xP(t,e):t,a=e?xO(t,o,xh):t.style,s=t.type,l=o?o.textConfig:null,u=t.textContent,h=u?e?xP(u,e):u:null;if(a&&(n.isLegacy||(i=!!l,r=!!h,a&&(a.legacy||!1!==a.legacy&&!i&&!r&&"tspan"!==s&&("text"===s||t3(a,"text")))))){n.isLegacy=!0;var c=function(t,e,n){var i,r,o;if("text"===e)o=t;else{o={},t3(t,"text")&&(o.text=t.text),t3(t,"rich")&&(o.rich=t.rich),t3(t,"textFill")&&(o.fill=t.textFill),t3(t,"textStroke")&&(o.stroke=t.textStroke),t3(t,"fontFamily")&&(o.fontFamily=t.fontFamily),t3(t,"fontSize")&&(o.fontSize=t.fontSize),t3(t,"fontStyle")&&(o.fontStyle=t.fontStyle),t3(t,"fontWeight")&&(o.fontWeight=t.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=t3(t,"textPosition");n?i.position=a?t.textPosition:"inside":a&&(i.position=t.textPosition),t3(t,"textPosition")&&(i.position=t.textPosition),t3(t,"textOffset")&&(i.offset=t.textOffset),t3(t,"textRotation")&&(i.rotation=t.textRotation),t3(t,"textDistance")&&(i.distance=t.textDistance)}return _5(o,t),tk(o.rich,function(t){_5(t,t)}),{textConfig:i,textContent:r}}(a,s,!e);!l&&c.textConfig&&(l=c.textConfig),!h&&c.textContent&&(h=c.textContent)}if(!e&&h){var p=h;p.type||(p.type="text")}var d=e?n[e]:n.normal;d.cfg=l,d.conOpt=h}function xP(t,e){return e?t?t[e]:null:t}function xO(t,e,n){var i=e&&e.style;return null==i&&n===xh&&t&&(i=t.styleEmphasis),i}function xL(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function xR(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;xk(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function xB(t){var e=this.context,n=e.oldChildren[t];n&&xe(n,_q(n).option,e.seriesModel)}function xz(t){return t&&(t.pathData||t.d)}var xE={label:{enabled:!0},decal:{show:!1}},xN=os(),xV=os(),xF=oD(function(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=xV(t).scope||(xV(t).scope={}),r=tb(xE);tw(r.label,t.getLocaleModel().get("aria"),!1),tw(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=t2();t.eachSeries(function(t){t.isColorBySeries()||(xN(t).scope=e.get(t.type)||e.set(t.type,{}))}),t.eachSeries(function(e){if(tz(e.enableAriaDecal))return void e.enableAriaDecal();var n=e.getData();if(e.isColorBySeries()){var r=uU(e.ecModel,e.name,i,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",h(o,r))}else{var a=e.getRawData(),s={},l=xN(e).scope;n.each(function(t){s[n.getRawIndex(t)]=t});var u=a.count();a.each(function(t){var i=s[t],r=a.getName(t)||t+"",o=uU(e.ecModel,r,l,u),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",h(c,o))})}function h(t,e){var n=t?tS(tS({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i,r=e.getZr().dom;if(r){var a=t.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=tM(s.option,a),s.get("enabled")){if(r.setAttribute("role","img"),s.get("description"))return r.setAttribute("aria-label",s.get("description"));var l,u=t.getSeriesCount(),h=s.get(["data","maxCount"])||10,c=Math.min(u,s.get(["series","maxCount"])||10);if(u<1)return;var p=((l=t.get("title"))&&l.length&&(l=l[0]),l&&l.text);i=p?o(s.get(["general","withTitle"]),{title:p}):s.get(["general","withoutTitle"]);var d=[];i+=o(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),t.eachSeries(function(e,n){if(n<c){var i,r,a=void 0,l=e.get("name")?"withName":"withoutName";a=o(a=u>1?s.get(["series","multiple",l]):s.get(["series","single",l]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,(r=t.getLocaleModel().get(["series","typeNames"]))[i]||r.chart)});var p=e.getData();p.count()>h?a+=o(s.get(["data","partialData"]),{displayCnt:h}):a+=s.get(["data","allData"]);for(var f=s.get(["data","separator","middle"]),g=s.get(["data","separator","end"]),v=s.get(["data","excludeDimensionId"]),m=[],y=0;y<p.count();y++)if(y<h){var _=p.getName(y),x=v?tP(p.getValues(y),function(t,e){return -1===tT(v,e)}):p.getValues(y),b=s.get(["data",_?"withName":"withoutName"]);m.push(o(b,{name:_,value:x.join(f)}))}a+=m.join(f)+g,d.push(a)}});var f=s.getModel(["series","multiple","separator"]),g=f.get("middle"),v=f.get("end");i+=d.join(g)+v,r.setAttribute("aria-label",i)}}}()}function o(t,e){if(!tE(t))return t;var n=t;return tk(e,function(t,e){n=n.replace(RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}});function xH(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},tk(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var xW=["x","y","radius","angle","single"],xG=os(),xU=["cartesian2d","polar","singleAxis"];function xZ(t){return t+"Axis"}function xX(t){var e=t.ecModel,n={infoList:[],infoMap:t2()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(xZ(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}function xY(t){var e=xG(fo(t));return e.axisProxyMap||(e.axisProxyMap=t2())}function xq(t){if(t)return xY(t.ecModel).get(t.uid)}function xj(t,e){var n=e.getAxisModel().axis.__alignTo;return n&&t.getAxisProxy(n.dim,n.model.componentIndex)?xq(n.model):null}var xK=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),x$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return tt(e,t),e.prototype.init=function(t,e,n){var i=xQ(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=xQ(t);tw(this.option,t,!0),tw(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;tk([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=t2();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tk(xW,function(n){var i=this.getReferringComponents(xZ(n),op);if(i.specified){e=!0;var r=new xK;tk(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0,r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});if(a(o,r),i){var o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new xK;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",oc).models[0];a&&tk(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",oc).models[0]&&o.add(t.componentIndex)})}}}i&&tk(xW,function(e){if(i){var r=n.findComponents({mainType:xZ(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new xK;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");tk([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(xZ(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){tk(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){return xq(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(xZ(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tk([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tk(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return xq(t);for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(uM);function xQ(t){var e={};return tk(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var xJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="dataZoom.inside",e.defaultOption=lL(x$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(x$),x0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(cm);function x1(t,e,n,i,r,o){t=t||0;var a,s=rX(n[1],-n[0]);if(null!=r&&(r=x5(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var l=Math.abs(rX(e[1],-e[0]));l=x5(l,[0,s]),r=o=x5(l,[r,o]),i=0}e[0]=x5(e[0],n),e[1]=x5(e[1],n);var u=x2(e,i);e[i]+=t;var h=r||0,c=n.slice();return u.sign<0?c[0]=rX(c[0],h):c[1]=rX(c[1],-h),e[i]=x5(e[i],c),a=x2(e,i),null!=r&&(a.sign!==u.sign||a.span<r)&&(e[1-i]=rX(e[i],u.sign*r)),a=x2(e,i),null!=o&&a.span>o&&(e[1-i]=rX(e[i],a.sign*o)),e}function x2(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function x5(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var x3=os();gc({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},t4);var x4={axisPointer:1,tooltip:1,brush:1},x8=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=tL(n._mousedownHandler,n),r=tL(n._mousemoveHandler,n),o=tL(n._mouseupHandler,n),a=tL(n._mousewheelHandler,n),s=tL(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=df(l.component),h=u.z,c=u.zlevel,p={component:l.component,z:h,zlevel:c,z2:tX(l.z2,-1/0)},d=tS({},n.triggerInfo);this._opt=tM(tS({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:d,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,(!0===t||"move"===t||"pan"===t)&&(bt(e,"mousedown",i,p),bt(e,"mousemove",r,p),bt(e,"mouseup",o,p)),(!0===t||"scale"===t||"zoom"===t)&&(bt(e,"mousewheel",a,p),bt(e,"pinch",s,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,be(e,"mousedown",i),be(e,"mousemove",r),be(e,"mouseup",o),be(e,"mousewheel",a),be(e,"pinch",s))},n}return tt(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;if(function(t,e,n){var i=e.getComponentByElement(t.topTarget);if(!i||i===n||x4.hasOwnProperty(i.mainType))return!1;var r=i.coordinateSystem;if(!r||r.model===n)return!1;var o=df(i),a=df(n);return!(0>=(o.zlevel-a.zlevel||o.z-a.z))}(t,i.api,r.component))return!1;var o=i.triggerInfo,a=o.roamTrigger,s=!1;return"global"===a&&(s=!0),s||(s=o.isInSelf(t,e,n)),s&&o.isInClip&&!o.isInClip(t,e,n)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?this._opt.cursorGrab:i?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(eO(t)||x6(t))){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if(!("pinch"===t.gestureEvent||x3(e).globalPan||x6(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!bi("moveOnMouseMove",t,this._opt)){var r=this._decideCursorStyle(t,n,i,!1);r&&e.setCursorStyle(r);return}e.setCursorStyle(this._opt.cursorGrabbing);var o=this._x,a=this._y,s=n-o,l=i-a;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&eP(t.event),t.__ecRoamConsumed=!0,bn(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!x6(t)){var e=this._zr;if(!eO(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!x6(t)){var e=bi("zoomOnMouseWheel",t,this._opt),n=bi("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(x3(this._zr).globalPan||x6(t))){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(eP(i.event),i.__ecRoamConsumed=!0,bn(t,e,n,i,r))},e}(ed);function x6(t){return t.__ecRoamConsumed}var x7=os();function x9(t){var e=x7(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function bt(t,e,n,i){for(var r,o,a,s=x9(t).roam,l=s[e]=s[e]||[],u=0;u<l.length;u++){var h=l[u].zInfoParsed;if(0>=(h.zlevel-i.zlevel||h.z-i.z||h.z2-i.z2))break}l.splice(u,0,{listener:n,zInfoParsed:i}),r=t,o=e,(a=x9(r)).uniform[o]||r.on(o,a.uniform[o]=function(t){var e=a.roam[o];if(e)for(var n=0;n<e.length;n++)e[n].listener(t)})}function be(t,e,n){for(var i=x9(t).roam[e]||[],r=0;r<i.length;r++)if(i[r].listener===n){i.splice(r,1),i.length||function(t,e){var n=x9(t).uniform;n[e]&&(t.off(e,n[e]),n[e]=null)}(t,e);return}}function bn(t,e,n,i,r){r.isAvailableBehavior=tL(bi,null,n,i),t.trigger(e,r)}function bi(t,e,n){var i=n[t];return!t||i&&(!tE(i)||e.event[i+"Key"])}var br=os();function bo(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function ba(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function bs(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return tt(e,t),e.prototype.render=function(e,n,i){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tL(bu.pan,this),zoom:tL(bu.zoom,this),scrollMove:tL(bu.scrollMove,this)},br(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=br(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||bo(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(x0),bu={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=bc[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x1(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:bh(function(t,e,n,i,r,o){var a=bc[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:bh(function(t,e,n,i,r,o){return bc[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function bh(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(x1(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var bc={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},bp=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return tb(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(tT(xU,e.get("coordinateSystem"))>=0){var n=xZ(this._dimName),i=e.getReferringComponents(n,oc).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return tb(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._extent,i=this.getAxisModel().axis,r=i.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u=[!1,!1];tk(["start","end"],function(i,h){var c=t[i],p=t[i+"Value"];"percent"===o[h]?(null==c&&(c=a[h]),p=rV(c,a,n),u[h]=!0):(e=!0,null==p?p=n[h]:(p=r.parse(p),r.sanitize&&(p=r.sanitize(p,n))),c=rV(p,n,a)),l[h]=null==p||isNaN(p)?n[h]:p,s[h]=null==c||isNaN(c)?a[h]:c}),rG(l),rG(s);var h=this._minMaxSpan;function c(t,e,n,i,r){var o=r?"Span":"ValueSpan";x1(0,t,n,"all",h["min"+o],h["max"+o]);for(var a=0;a<2;a++)e[a]=rV(t[a],n,i,!0),r&&(e[a]=e[a],u[a]=!0);ob(e)}e?c(l,s,n,a,!1):c(s,l,a,n,!0);var p=gG(r)||gH(r),d=i.getExtent(),f=rA(d[1]-d[0]),g=p?0:rZ(l,f,.5);tk([[0,rL],[1,rO]],function(t){var e=t[0],i=t[1];u[e]&&isFinite(g)&&(l[e]=rW(l[e],g),l[e]=rk(n[1],rD(n[0],l[e])),s[e]===a[e]&&(l[e]=n[e],p&&(l[e]=i(l[e]))))}),ob(l);var v=[rV(l[0],n,a,!0),rV(l[1],n,a,!0)];return ob(v),{value:l,percent:s,percentInverted:v,valuePrecision:g}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;mf(n,2);var i=n.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var r=t.settledOption;e&&(r=tM({start:e[0],end:e[1]},r));var o=this._window=this.calculateDataWindow(r),a=o.percent,s=o.value;0!==a[0]&&i.setZoomMM(0,s[0]),100!==a[1]&&i.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._window.value;"none"!==r&&tk(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=tD(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;l<i.length;l++){var u=a.get(s[l],t),h=!isNaN(u),c=u<o[0],p=u>o[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n})}else tk(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:0/0}));else{var i={};i[n]=o,e.selectRange(i)}});tk(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;tk(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rV(n[0]+o,n,[0,100],!0):null!=r&&(o=rV(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t}();let bd={dirtyOnOverallProgress:!0,getTargetSeries:function(t){var e,n=[];e=function(e,i,r,o){if(!xq(r)){var a=new bp(e,i,o,t);n.push(a),xY(r.ecModel).set(r.uid,a)}},t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(xZ(i),r);e(i,r,o,n)})});var i=t2();return tk(n,function(t){tk(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(e,i){var r=t.getAxisProxy(e,i),o=xj(t,r);o?n.push([r,o]):r.reset(t,null)}),tk(n,function(e){e[0].reset(t,e[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getWindow(),i=n.percent,r=n.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:r[0],endValue:r[1]})}})}};var bf=ow();function bg(t){bf(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,bd),t.registerAction("dataZoom",function(t,e){tk(function(t,e){var n,i=t2(),r=[],o=t2();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do n=!1,t.eachComponent("dataZoom",a);while(n)function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function bv(t){bg(t),t.registerComponentModel(xJ),t.registerComponentView(bl),t.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var n=br(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=t2());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tk(xX(t).infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:tR(bs,r),dispatchAction:tR(ba,e),dataZoomInfoMap:null,controller:null}).controller=new x8(e.getZr()),tk(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=t2())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var n,r,o,a,s,l,u,h=t.controller,c=t.dataZoomInfoMap;if(c){var p=c.keys()[0];null!=p&&(u=c.get(p))}if(!u)return void bo(i,t);var d=(a="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0,c.each(function(t){var e=t.model,i=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[a+i]>s[a+n]&&(n=i),l=l&&e.get("preventDefaultMouseMove",!0),r=tX(e.get("cursorGrab",!0),r),o=tX(e.get("cursorGrabbing",!0),o)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:r,cursorGrabbing:o}});h.enable(d.controlType,d.opt),dL(t,"dispatchAction",u.model.get("throttle",!0),"fixRate")})})}var bm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=lL(x$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:uC.color.accent10,borderRadius:0,backgroundColor:uC.color.transparent,dataBackground:{lineStyle:{color:uC.color.accent30,width:.5},areaStyle:{color:uC.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:uC.color.accent40,width:.5},areaStyle:{color:uC.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:uC.color.neutral00,borderColor:uC.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:uC.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:uC.color.tertiary},brushSelect:!0,brushStyle:{color:uC.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:uC.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(x$),by="horizontal",b_="vertical",bx=["line","bar","candlestick","scatter"],bb={easing:"cubicOut",duration:100,delay:0},bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return tt(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tL(this._onBrush,this),this._onBrushEnd=tL(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),dL(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dR(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new rS;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=u_(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===by?{right:i.width-r.x-r.width,top:i.height-30-o-7*!!n,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=uw(t.option);tk(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=uy(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===b_&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==by||r?n===by&&r?{scaleY:a?1:-1,scaleX:-1}:n!==b_||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]),l=isNaN(s.x)?0:s.x,u=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-u,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new a6({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new a6({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tL(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,h=r.getDataExtent(t.thisDim),c=r.getDataExtent(a),p=(c[1]-c[0])*.3;c=[c[0]-p,c[1]+p];var d=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],v=[],m=f[1]/Math.max(1,r.count()-1),y=e[0]/(h[1]-h[0]),_="time"===t.thisAxis.type,x=-m,b=Math.round(r.count()/e[0]);r.each([t.thisDim,a],function(t,e,n){if(b>0&&n%b){_||(x+=m);return}x=_?(t-h[0])*y:x+m;var i=null==e||isNaN(e)||""===e,r=i?0:rV(e,c,d,!0);i&&!u&&n?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!i&&u&&(g.push([x,0]),v.push([x,0])),i||(g.push([x,r]),v.push([x,r])),u=i}),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=v}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=function(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new rS,i=new c7({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new pe({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){tk(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==n&&0>tT(bx,e.get("type")))){var a,s=i.getComponent(xZ(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l);var h=e.getData().mapDimension(r);t={thisAxis:s,series:e,thisDim:h,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new a6({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new a6({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:uC.color.transparent}})),tk([0,1],function(e){var o=a.get("handleIcon");!fg[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=fy(o,-1,0,2,2,null,!0);s.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:tL(this._onDragMove,this,e),ondragend:tL(this._onDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=rF(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),s7(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new sf({silent:!0,invisible:!p,style:lc(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=rF(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new a6({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=fy(a.get("moveHandleIcon"),-f/2,-f/2,f,f,uC.color.neutral00,!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new a6({invisible:!0,shape:{y:o[1]-v,height:p+v}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:"grab",drift:tL(this._onActualMoveZoneDrift,this),ondragstart:tL(this._onActualMoveZoneDragStart,this),ondragend:tL(this._onActualMoveZoneDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rV(t[0],[0,100],e,!0),rV(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];x1(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rV(o.minSpan,a,r,!0):null,null!=o.maxSpan?rV(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rG([rV(i[0],r,a,!0),rV(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=rG(n.slice()),r=this._size;tk([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new a6,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy(),s=a.getAxisModel().axis.scale;if(a){var l,u=this._range;if(t){var h={start:u[0],end:u[1]},c=xj(e,a);if(c){var p=c.calculateDataWindow(h).percentInverted;h={start:p[0],end:p[1]}}l=a.calculateDataWindow(h)}else l=a.getWindow();o=[bS(e,0,l,s),bS(e,1,l,s)]}}var d=rG(this._handleEnds.slice());function f(t){var e=p3(n.handles[t].parent,this.group),a=p8(0===t?"right":"left",e),s=this._handleWidth/2+5,l=p4([d[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===by?"middle":a,align:r===by?a:"center",text:o[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,eP(i.event);var r=p4([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0)&&!(n[0]>e[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new eG(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100],o=this._handleEnds=[n.x,n.x+n.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();x1(0,o,i,0,null!=a.minSpan?rV(a.minSpan,r,i,!0):null,null!=a.maxSpan?rV(a.maxSpan,r,i,!0):null),this._range=rG([rV(o[0],i,r,!0),rV(o[1],i,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eP(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new a6({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?bb:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=xX(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(x0);function bS(t,e,n,i){var r=t.get("labelFormatter"),o=t.get("labelPrecision");(null==o||"auto"===o)&&(o=n.valuePrecision);var a=n.value[e],s=null==a||isNaN(a)?"":gG(i)||gH(i)?i.getLabel({value:Math.round(a)}):isFinite(o)?rW(a,o,!0):a+"";return tz(r)?r(a,s):tE(r)?r.replace("{value}",s):s}function bM(t){t.registerComponentModel(bm),t.registerComponentView(bw),bg(t)}var bT=os();function bI(t,e,n,i){!function t(e,n){if(!(tF(e)&&tF(n)))return e===n;var i=!0;return tk(n,function(n,r){i=i&&t(e[r],n)}),!!i}(bT(n).lastProp,i)&&(bT(n).lastProp=i,e?pO(n,i,t):(n.stopAnimation(),n.attr(i)))}function bC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function bk(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function bD(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function bA(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:vr(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tk(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),tE(a)?o=a.replace("{value}",o):tz(a)&&(o=a(s))}return o}function bP(t,e,n){var i=ez();return eH(i,i,n.rotation),eF(i,i,n.position),p4([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var bO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M=n.axis,T=M.grid,I=i.get("type"),C=M.getGlobalExtent(),k=bL(T,M).getOtherAxis(M).getGlobalExtent(),D=M.toGlobalCoord(M.dataToCoord(e,!0));if(I&&"none"!==I){var A,P,O,L=(P=i.get("type"),O=i.getModel(P+"Style"),"line"===P?(A=O.getLineStyle()).fill=null:"shadow"===P&&((A=O.getAreaStyle()).stroke=null),A),R=bR[I](M,D,C,k,i.get("seriesDataIndices"),i.ecModel);R.style=L,t.graphicKey=R.type,t.pointer=R}var B=v1(T.getRect(),n);c=vU.innerTextLayout(B.rotation,0,B.labelDirection),B.labelMargin=i.get(["label","margin"]),p={position:bP(n.axis,e,B),align:c.textAlign,verticalAlign:c.textVerticalAlign},d=bA(i.get("value"),n.axis,n.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),g=tj((f=i.getModel("label")).get("padding")||0),m=rr(d,v=f.getFont()),y=p.position,_=m.width+g[1]+g[3],x=m.height+g[0]+g[2],"right"===(b=p.align)&&(y[0]-=_),"center"===b&&(y[0]-=_/2),"bottom"===(w=p.verticalAlign)&&(y[1]-=x),"middle"===w&&(y[1]-=x/2),o=y,a=_,s=x,u=(l=r).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=n.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:lc(f,{text:d,font:v,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,n){var i=v1(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=bP(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=bL(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=rk(a[1],u[l]),u[l]=rD(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=tR(bI,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new rS,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);bD(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&my(i).w>a)return!0;if(o){var s=_O(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=bT(t).pointerEl=new Q[r.type](tb(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=bT(t).labelEl=new sf(tb(e.label));t.add(r),bC(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=bT(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=bT(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),bC(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){r&&i.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=dt(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eP(t.event)},onmousedown:tL(this._onHandleDragMove,this,0,0),drift:tL(this._onHandleDragMove,this),ondragend:tL(this._onHandleDragEnd,this)}),i.add(r)),bD(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tB(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,dL(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){bI(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bk(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bk(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bk(i)),bT(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),dR(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function bL(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var bR={line:function(t,e,n,i){var r,o,a;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,i[0]],o=[e,i[1]],{x1:r[a=(a=bB(t))||0],y1:r[1-a],x2:o[a],y2:o[1-a]})}},shadow:function(t,e,n,i,r,o){var a,s,l,u=my(t,{fromStat:{sers:tD(r,function(t){return o.getSeriesByIndex(t.seriesIndex)})},min:1}).w,h=i[1]-i[0],c=[rD(rk(n[0],n[1]),e-u/2),rk(e+u/2,rD(n[0],n[1]))],p=c[0],d=c[1];return{type:"Rect",shape:(a=[p,i[0]],s=[d-p,h],{x:a[l=(l=bB(t))||0],y:a[1-l],width:s[l],height:s[1-l]})}}};function bB(t){return+("x"!==t.dim)}var bz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:uC.color.border,width:1,type:"dashed"},shadowStyle:{color:uC.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:uC.color.neutral00,padding:[5,7,5,7],backgroundColor:uC.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:uC.color.accent40,throttle:40}},e}(uM),bE=os();function bN(t,e,n){if(!tn.node){var i=e.getZr();bE(i).records||(bE(i).records={}),function(t,e){bE(t).initialized||(bE(t).initialized=!0,n("click",tR(bF,"click")),n("mousemove",tR(bF,"mousemove")),n("mousewheel",tR(bF,"mousewheel")),n("globalout",bV));function n(n,i){t.on(n,function(n){var r,o,a,s,l,u,h,c,p=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tk(bE(t).records,function(t){t&&i(t,n,p.dispatchAction)}),s=p.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(i,e),(bE(i).records[t]||(bE(i).records[t]={})).handler=n}}function bV(t,e,n){t.handler("leave",null,n)}function bF(t,e,n,i){e.handler(t,n,i)}function bH(t,e){if(!tn.node){var n=e.getZr();(bE(n).records||{})[t]&&(bE(n).records[t]=null)}}var bW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";bN("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){bH("axisPointer",e)},e.prototype.dispose=function(t,e){bH("axisPointer",e)},e.type="axisPointer",e}(cm);function bG(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=oa(o,t);if(null==a||a<0||tB(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=+("x"===h||"radius"===h),d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(tD(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var bU=os();function bZ(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tL(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){bK(r)&&(r=bG({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h=bK(r),c=t.axesInfo,p=a.axesInfo,d="leave"===i||bK(r),f={},g={},v={list:[],map:{}},m={showPointer:tR(bY,g),showTooltip:tR(bq,v)};tk(a.coordSysMap,function(t,e){var n=h||t.containPoint(r);tk(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||h||(a=i.pointToData(r)),null!=a&&bX(t,a,m,!1,f)}})});var y={};return tk(p,function(t,e){var n=t.linkGroup;n&&!g[e]&&tk(n.axesInfo,function(e,i){var r=g[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,bj(e),bj(t)))),y[t.key]=o}})}),tk(y,function(t,e){bX(p[e],t,m,!0,f)}),s=g,l=p,u=f.axesInfo=[],tk(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(bK(e)||!t.list.length)return i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(v,r,t,o),function(t,e){var n=e.getZr(),i="axisPointerLastHighlights",r=bU(n)[i]||{},o=bU(n)[i]={};tk(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tk(n.seriesDataIndices,function(t){o[t.seriesIndex+"|"+t.dataIndex]=t})});var a=[],s=[];function l(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}tk(r,function(t,e){o[e]||s.push(l(t))}),tk(o,function(t,e){r[e]||a.push(l(t))}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(p,n),f}}function bX(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,p,d,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,tk(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.indicesOfNearest(u,r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(r4(n)){var s=a-n,f=Math.abs(s);f<=p&&((f<p||s>=0&&d<0)&&(p=f,d=s,h=n,c.length=0),tk(i,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,v=f.snapToValue;g[0]&&null==r.seriesIndex&&tS(r,g[0]),!i&&t.snap&&o.containData(v)&&null!=v&&(e=v),n.showPointer(t,e,g),n.showTooltip(t,f,v)}}function bY(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function bq(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=_R(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function bj(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bK(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function b$(t){_z.registerAxisPointerClass("CartesianAxisPointer",bO),t.registerComponentModel(bz),t.registerComponentView(bW),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tB(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){var n,i,r,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(i=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],u=[],tk(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=_R(t.model),n=i.coordSysAxesInfo[e]={};i.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tk(t.getAxes(),tR(d,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),p=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&tk(p.baseAxes,tR(d,!c||"cross",h)),c&&tk(p.otherAxes,tR(d,"cross",!1))}}function d(e,a,h){var c=h.model.getModel("axisPointer",s),p=c.get("show");if(p&&("auto"!==p||e||_L(c))){null==a&&(a=c.get("triggerTooltip"));var d=(c=e?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tk(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tb(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&tM(l,h.textStyle)}}return t.model.getModel("axisPointer",new lA(s,n,i))}(h,o,s,r,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=_R(h.model),v=a||d||"category"===h.type,m=i.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:v,snap:d,useHandle:_L(c),seriesModels:[],linkGroup:null};n[g]=m,i.seriesInvolved=i.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(_P(o[i+"AxisId"],n.id)||_P(o[i+"AxisIndex"],n.componentIndex)||_P(o[i+"AxisName"],n.name))return r}}(l,h);if(null!=y){var _=u[y]||(u[y]={axesInfo:{}});_.axesInfo[g]=m,_.mapper=l[y].mapper,m.linkGroup=_}}}}),n.seriesInvolved&&(h=n,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&tk(h.coordSysAxesInfo[_R(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),n)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bZ)}var bQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),tB(e)&&tk(e,function(t,i){var r;tE(t)&&(t={type:t}),e[i]=tw(t,"all"===(r=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&or(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=t2(),o=tD(i,function(t){return((tE(t)||tV(t))&&(t={name:t}),r.get(t.name))?null:(r.set(t.name,!0),new lA(t,this,this.ecModel))},this);this._data=tP(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&tk(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;tk(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;tk(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&tT(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:uC.size.m,align:"auto",backgroundColor:uC.color.transparent,borderColor:uC.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:uC.color.disabled,inactiveBorderColor:uC.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:uC.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:uC.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:uC.color.tertiary,borderWidth:1,borderColor:uC.color.border},emphasis:{selectorLabel:{show:!0,color:uC.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(uM),bJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return tt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rS),this.group.add(this._selectorGroup=new rS),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r,o,a=t.get("align"),s=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(a,t,e,n,l,s,u);var h=u_(t,n).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),d=uy(c,h,p),f=this.layoutInner(t,a,d,i,l,u),g=uy(tM({width:f.width,height:f.height},c),h,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(r=tj(t.get("padding")),(o=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),new a6({shape:{x:f.x-r[3],y:f.y-r[0],width:f.width+r[1]+r[3],height:f.height+r[0]+r[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=t2(),u=e.get("selectedMode"),h=e.get("triggerEvent"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),tk(e.getData(),function(r,o){var a=this,p=r.get("name");if(!this.newlineDisabled&&(""===p||"\n"===p)){var d=new rS;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(p)[0];if(!l.get(p))if(f){var g=f.getData(),v=g.getVisual("legendLineStyle")||{},m=g.getVisual("legendIcon"),y=g.getVisual("style"),_=this._createItem(f,p,o,r,e,t,v,y,m,u,i);_.on("click",tR(b0,p,null,i,c)).on("mouseover",tR(b1,f.name,null,i,c)).on("mouseout",tR(b2,f.name,null,i,c)),n.ssr&&_.eachChild(function(t){var e=sg(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&_.eachChild(function(t){a.packEventData(t,e,f,o,p)}),l.set(p,!0)}else n.eachRawSeries(function(a){var s=this;if(!l.get(p)&&a.legendVisualProvider){var d=a.legendVisualProvider;if(!d.containName(p))return;var f=d.indexOfName(p),g=d.getItemVisual(f,"style"),v=d.getItemVisual(f,"legendIcon"),m=n8(g.fill);m&&0===m[3]&&(m[3]=.2,g=tS(tS({},g),{fill:it(m,"rgba")}));var y=this._createItem(a,p,o,r,e,t,{},g,v,u,i);y.on("click",tR(b0,null,p,i,c)).on("mouseover",tR(b1,null,p,i,c)).on("mouseout",tR(b2,null,p,i,c)),n.ssr&&y.eachChild(function(t){var e=sg(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&y.eachChild(function(t){s.packEventData(t,e,a,o,p)}),l.set(p,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype.packEventData=function(t,e,n,i,r){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};sg(t).eventData=o},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tk(t,function(t){var i=t.type,r=new sf({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),lu(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),s7(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),tk(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?fG(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=m||l||"roundRect",i,a,s,c,f,h),_=new rS,x=i.getModel("textStyle");if(tz(t.getLegendIcon)&&(!m||"inherit"===m))_.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));else{var b,w,S,M="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(((S=fy(w=(b={itemWidth:p,itemHeight:d,icon:l,iconRotate:M,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill=uC.color.neutral00,S.style.lineWidth=2),S))}var T=r.get("formatter"),I=e;tE(T)&&T?I=T.replace("{name}",null!=e?e:""):tz(T)&&(I=T(e));var C=f?x.getTextColor():i.get("inactiveColor");_.add(new sf({style:lc(x,{text:I,x:"left"===o?p+5:-5,y:d/2,fill:C,align:o,verticalAlign:"middle"},{inheritColor:C})}));var k=new a6({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&ds({el:k,componentModel:r,itemName:e,itemTooltipOption:D.option}),_.add(k),_.eachChild(function(t){t.silent=!0}),k.silent=!u,this.getContentGroup().add(_),s7(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();um(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();um("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+p+h[f],m[g]=Math.max(l[g],h[g]),m[v]=Math.min(0,h[v]+c[1-d]),m},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(cm);function b0(t,e,n,i){b2(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),b1(t,e,n,i)}function b1(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function b2(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function b5(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){i?n[t]():n[t](e.name),b3(n,r),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){tk(r,function(e,n){t[e?"select":"unSelect"](n)}),b3(t,a)}),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function b3(t,e){var n=e||{};return tk(t.getData(),function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);t3(n,i)?n[i]=n[i]&&r:n[i]=r}}),n}var b4=oD(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})});function b8(t){t.registerComponentModel(bQ),t.registerComponentView(bJ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,b4),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",tR(b5,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",tR(b5,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",tR(b5,"inverseSelect")),t.registerAction("legendSelect","legendselected",tR(b5,"select")),t.registerAction("legendUnSelect","legendunselected",tR(b5,"unSelect"))}var b6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=uw(e);t.prototype.init.call(this,e,n,i),b7(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),b7(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lL(bQ.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:uC.color.accent50,pageIconInactiveColor:uC.color.accent10,pageIconSize:15,pageTextStyle:{color:uC.color.tertiary},animationDurationUpdate:800}),e}(bQ);function b7(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,ub(e,n,{type:"box",ignoreSize:!!r})}var b9=["width","height"],wt=["x","y"],we=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return tt(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new rS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new rS)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,h=n.get("pageIconSize",!0),c=tB(h)?h:[h,h];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=dt(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:tL(l._pageGo,l,t+"DataIndex",n,r)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});i.name=t,u.add(i)}u.add(new sf({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=b9[s],u=wt[s],h=b9[1-s],c=wt[1-s];r&&um("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=tb(n);r&&(g[l]=n[l]-d[l]-p);var v=this._layoutContentAndController(t,i,g,s,l,h,c,u);if(r){if("end"===o)f[s]+=v[l]+p;else{var m=d[l]+p;f[s]-=m,v[u]-=m}v[l]+=d[l]+p,f[1-s]+=v[c]+v[h]/2-d[h]/2,v[h]=Math.max(v[h],d[h]),v[c]=Math.min(v[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;um(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),um("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],m=tX(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+m),v[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(v);var y={x:0,y:0};if(y[r]=d?n[r]:c[r],y[o]=Math.max(c[o],p[o]),y[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-m,0),_[o]=y[o],u.setClipPath(new a6({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&pO(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;tk(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",tE(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=b9[r],a=wt[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=y(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=h;++f)(!(m=y(l[f]))&&v.e>g.s+i||m&&!_(m,g.s))&&(g=v.i>g.i?v:m)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=m;for(var f=s-1,g=d,v=d,m=null;f>=-1;--f)(!(m=y(l[f]))||!_(v,m.s))&&g.i<v.i&&(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=m;return p;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(bJ);function wn(t){g_(b8),t.registerComponentModel(b6),t.registerComponentView(we),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function wi(t){r7(t,"label",["show"])}var wr=os(),wo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return tt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(tn.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=wr(t)[r];if(!n||!n.data){wr(t)[r]=null;return}o?o._mergeOption(n,e,!0):(i&&wi(n),tk(n.data,function(t){t instanceof Array?(wi(t[0]),wi(t[1])):wi(t)}),tS(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),wr(t)[r]=o},this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return h7("section",{header:this.name,blocks:[h7("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=hA.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return wr(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(uM);tI(wo,hA.prototype);var wa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(wo);function ws(t,e,n,i,r,o,a){var s=[],l=gI(e,r)?e.getCalculationInfo("stackResultDimension"):r,u=wp(e,l,t),h=e.hostModel.indicesOfNearest(n,l,u)[0];s[o]=e.get(i,h),s[a]=e.get(l,h);var c=e.get(r,h),p=rU(e.get(r,h));return(p=Math.min(p,20))>=0&&(s[a]=+s[a].toFixed(p)),[s,c]}var wl={min:tR(ws,"min"),max:tR(ws,"max"),average:tR(ws,"average"),median:tR(ws,"median")};function wu(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!tB(e.coord)&&tB(o)){var a=wh(e,i,r,t);if((e=tb(e)).type&&wl[e.type]&&a.baseAxis&&a.valueAxis){var s=tT(o,a.baseAxis.dim),l=tT(o,a.valueAxis.dim),u=wl[e.type](i,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&tB(o))for(var h=e.coord,c=0;c<2;c++)wl[h[c]]&&(h[c]=wp(i,i.mapDimension(o[c]),h[c]));else{e.coord=[];var p=t.getBaseAxis();if(p&&e.type&&wl[e.type]){var d=r.getOtherAxis(p);d&&(e.value=wp(i,i.mapDimension(d.dim),e.type))}}return e}}function wh(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function wc(t,e){return!t||!t.containData||!e.coord||!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))||t.containData(e.coord)}function wp(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){!isNaN(t)&&(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)[+("max"===n)]}var wd=po.prototype,wf=ph.prototype,wg=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function wv(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}tt(function(){return null!==l&&l.apply(this,arguments)||this},l=wg);var wm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return tt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:uC.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new wg},e.prototype.buildPath=function(t,e){wv(e)?wd.buildPath.call(this,t,e):wf.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return wv(this.shape)?wd.pointAt.call(this,t):wf.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=wv(e)?[e.x2-e.x1,e.y2-e.y1]:wf.tangentAt.call(this,t);return eo(n,n)},e}(aY),wy=["fromSymbol","toSymbol"];function w_(t){return"_"+t+"Type"}function wb(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=f_(r),u=fx(a||0,l);return i+l+u+(o||"")+(s||"")}function ww(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=f_(r),u=fx(a||0,l),h=fy(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=null==o||isNaN(o)?void 0:o*Math.PI/180||0,h.name=t,h}}function wS(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=0/0,t.cpy1=0/0)}var wM=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return tt(e,t),e.prototype._createLine=function(t,e,n){var i,r=t.hostModel,o=t.getItemLayout(e),a=t.getItemVisual(e,"z2"),s=(wS((i=new wm({name:"line",subPixelOptimize:!0})).shape,o),i);s.shape.percent=0,pL(s,{z2:tX(a,0),shape:{percent:1}},r,e),this.add(s),tk(wy,function(n){var i=ww(n,t,e);this.add(i),this[w_(n)]=wb(n,t,e)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};wS(a.shape,o),pO(r,a,i,e),tk(wy,function(n){var i=wb(n,t,e),r=w_(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=ww(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,h=n&&n.focus,c=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),h=d.get("focus"),c=d.get("blurScope"),l=lh(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,tk(wy,function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<sL.length;n++){var i=sL[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var v=i.getRawValue(e);lu(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||uC.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?rW(v,10):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var _=y.get("distance");tB(_)||(_=[_,_]),m.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),s9(this,h,c,u)},e.prototype.highlight=function(){s0(this)},e.prototype.downplay=function(){s1(this)},e.prototype.updateLayout=function(t,e){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");wS(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=ei([],l,s);if(eo(u,u),t&&(t.setPosition(s),w(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),w(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,c=void 0,p=n.__labelDistance,d=p[0]*i,f=p[1]*i,g=a/2,v=o.tangentAt(g),m=[v[1],-v[0]],y=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(v[1],v[0]);l[0]<s[0]&&(x=Math.PI+x),n.rotation=x}var b=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-f,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=f,c="top";break;default:b=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*d+l[0],n.y=u[1]*f+l[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",c=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*d+s[0],n.y=-u[1]*f+s[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",c=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=d*_+s[0],n.y=s[1]+b,h=v[0]<0?"right":"left",n.originX=-d*_,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+b,h="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-d*_+l[0],n.y=l[1]+b,h=v[0]>=0?"right":"left",n.originX=d*_,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(rS),wT=function(){function t(t){this.group=new rS,this._LineCtor=t||wM}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=wI(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=n,t.ensureState("emphasis").hoverLayer=pU)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++)if(wk(e.getItemLayout(r))){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(wk(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);wk(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function wI(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lh(e)}}function wC(t){return isNaN(t[0])||isNaN(t[1])}function wk(t){return t&&!wC(t[0])&&!wC(t[1])}var wD=os(),wA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.init=function(){this.markerGroupMap=t2()},e.prototype.render=function(t,e,n){var i,r,o,a=this,s=this.markerGroupMap;s.each(function(t){wD(t).keep=!1}),e.eachSeries(function(t){var i=wo.getMarkerModelFromSeries(t,a.type);i&&a.renderSeries(t,i,e,n)}),s.each(function(t){wD(t).keep||a.group.remove(t.group)}),i=e,r=s,o=this.type,i.eachSeries(function(t){var e=wo.getMarkerModelFromSeries(t,o),n=r.get(t.id);if(e&&n&&n.group){var i=df(e),a=i.z,s=i.zlevel;dv(n.group,a,s)}})},e.prototype.markKeep=function(t){wD(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tk(t,function(t){var i=wo.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?sj(t,sZ):sj(t,sX))})})},e.type="marker",e}(cm),wP=os(),wO=function(t,e,n,i){var r,o=t.getData();if(tB(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=tZ(i.yAxis,i.xAxis);else{var u=wh(i,o,e,t);s=u.valueAxis;var h=gC(o,u.valueDataDim);l=wp(o,h,a)}var c=+("x"!==s.dim),p=1-c,d=tb(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=n.get("precision");g>=0&&tV(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[wu(t,r[0]),wu(t,r[1]),tS({},r[2])];return v[2].type=v[2].type||null,tw(v[2],v[0]),tw(v[2],v[1]),v};function wL(t){return!isNaN(t)&&!isFinite(t)}function wR(t,e,n,i){var r=1-t,o=i.dimensions[t];return wL(e[r])&&wL(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function wB(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(wR(1,n,i,t)||wR(0,n,i,t)))return!0}return wc(t,e[0])&&wc(t,e[1])}function wz(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rF(s.get("x"),r.getWidth()),u=rF(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if("cartesian2d"===a.type){var d=a.getAxis("x"),f=a.getAxis("y"),h=a.dimensions;wL(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[+!n]):wL(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[+!n]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var wE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=wo.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=wP(e).from,o=wP(e).to;r.each(function(e){wz(r,e,!0,t,n),wz(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new wT);this.group.add(l.group);var u=function(t,e,n){var i=t?tD(t&&t.dimensions,function(t){var n=e.getData();return tS(tS({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],r=new mZ(i,n),o=new mZ(i,n),a=new mZ([],n),s=tD(n.get("data"),tR(wO,e,t,n));t&&(s=tP(s,tR(wB,t)));var l=t?function(t,e,n,r){return hB(r<2?t.coord&&t.coord[r]:t.value,i[r])}:function(t,e,n,r){return hB(t.value,i[r])};return r.initData(tD(s,function(t){return t[0]}),null,l),o.initData(tD(s,function(t){return t[1]}),null,l),a.initData(tD(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,p=u.line;wP(e).from=h,wP(e).to=c,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);wz(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=d9(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:tX(o.get("symbolOffset",!0),v[+!r]),symbolRotate:tX(o.get("symbolRotate",!0),g[+!r]),symbolSize:tX(o.get("symbolSize"),f[+!r]),symbol:tX(o.get("symbol",!0),d[+!r]),style:s})}tB(d)||(d=[d,d]),tB(f)||(f=[f,f]),tB(g)||(g=[g,g]),tB(v)||(v=[v,v]),u.from.each(function(t){m(h,t,!0),m(c,t,!1)}),p.each(function(t){var e=p.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{z2:tX(i,0),fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:n})}),l.updateData(p),u.line.eachItemGraphicEl(function(t){sg(t).dataModel=e,t.traverse(function(t){sg(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(wA),wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:uC.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:uC.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:uC.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:uC.color.tertiary,fontSize:14}},e}(uM);function wV(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function wF(t){if(tn.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}}var wH=wF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function wW(t,e){if(!t)return e;e=ui(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var wG=wW(wF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),wU=wW(wH,"transform"),wZ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tn.transform3dSupported?"will-change:transform;":"");function wX(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!tn.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=tn.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+wU+":"+a+";":[["top",0],["left",0],[wH,a]]}function wY(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&e_(ey,a,i,r,!0)&&e_(t,n,ey[0],ey[1])}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wq=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tn.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(tE(r)?document.querySelector(r):tG(r)?r:tz(r)&&r(t.getDom()));wY(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;eA(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n,i=this._api.getDom(),r=(e="position",(n=i.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?e?n[e]:n:null),o=i.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,i,r,o,a,s,l,u,h,c,p,d,f,g,v,m,y,_,x,b,w,S,M,T,I=this.el,C=I.style,k=this._styleCoord;I.innerHTML?C.cssText=wZ+(n=!this._firstShow,i=this._longHide,r=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=co(t,"html"),f=h+"px "+c+"px "+l+"px "+u,o.push("box-shadow:"+f),n&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",v="",m="",r&&(m="opacity"+(v=" "+a/2+"s "+g)+",visibility"+v),i||(v=" "+a+"s "+g,m+=(m.length?",":"")+(tn.transformSupported?""+wU+v:",left"+v+",top"+v)),wG+":"+m)),s&&o.push("background-color:"+s),tk(["width","color","radius"],function(e){var n="border-"+e,i=ui(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))}),o.push((y=[],_=p.get("fontSize"),(x=p.getTextColor())&&y.push("color:"+x),y.push("font:"+p.getFont()),b=tX(p.get("lineHeight"),Math.round(3*_/2)),_&&y.push("line-height:"+b+"px"),w=p.get("textShadowColor"),S=p.get("textShadowBlur")||0,M=p.get("textShadowOffsetX")||0,T=p.get("textShadowOffsetY")||0,w&&S&&y.push("text-shadow:"+M+"px "+T+"px "+S+"px "+w),tk(["decoration","align"],function(t){var e=p.get(t);e&&y.push("text-"+t+":"+e)}),y.join(";"))),null!=d&&o.push("padding:"+tj(d).join("px ")+"px"),o.join(";")+";")+wX(k[0],k[1],!0)+"border-color:"+ul(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):C.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tE(r)&&"item"===n.get("trigger")&&!wV(n)&&(a=function(t,e,n){if(!tE(n)||"inside"===n)return"";var i,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=ul(e);var s=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",l=Math.max(1.5*Math.round(a),6),u="",h=wU+":";tT(["left","right"],s)>-1?(u+="top:50%",h+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var c=r*Math.PI/180,p=l+a,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));u+=";"+s+":-"+Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-p)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+h+";","border-bottom:"+f,"border-right:"+f,"background-color:"+o+";"].join("")+'"></div>'}(n,i,r)),tE(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tB(t)||(t=[t]);for(var s=0;s<t.length;s++)tG(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(wY(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;tk(wX(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",tn.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[em];e&&(e.clearMarkers&&e.clearMarkers(),delete t[em])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),wj=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),wQ(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;tF(t)&&hy(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new sf({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:co(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),tk(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),tk(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=w$(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;wQ(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=wK(r.borderWidth||0),a=w$(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function wK(t){return Math.max(0,t)}function w$(t){var e=wK(t.shadowBlur||0),n=wK(t.shadowOffsetX||0),i=wK(t.shadowOffsetY||0);return{left:wK(e-n),right:wK(e+n),top:wK(e-i),bottom:wK(e+i)}}function wQ(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wJ=new a6({shape:{x:-1,y:-1,width:2,height:2}}),w0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.init=function(t,e){if(!tn.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?tn.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new wj(e):new wq(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!tn.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?dL(this,"_updatePosition",50,"fixRate"):dR(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");bN("itemTooltip",this._api,tL(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!tn.node&&n.getDom()){var r=w2(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=oh(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=od(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=sg(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)wJ.x=i.x,wJ.y=i.y,wJ.update(),sg(wJ).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:wJ},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=bG(i,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(w2(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===w1([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===sg(n).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,fe(n,function(t){if(t.tooltipDisabled)return i=r=null,!0;i||r||(null!=sg(t).dataIndex?i=t:null!=sg(t).tooltipConfig&&(r=t))},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tL(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=w1([e.tooltipOption],i),a=this._renderMode,s=[],l=h7("section",{blocks:[],noHeader:!0}),u=[],h=new ca;tk(t,function(t){tk(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=e.axis,c=o.scale.parse(r);if(e&&null!=r){var p=bA(r,o,n,t.seriesDataIndices,t.valueLabelOpt),d=h7("section",{header:p,noHeader:!t$(p),sortBlocks:!0,blocks:[]});l.blocks.push(d),tk(t.seriesDataIndices,function(r){var o=n.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=o.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=vr(e.axis,{value:c}),f.axisValueLabel=p,f.marker=h.makeTooltipMarker("item",ul(f.color),a);var g=hP(o.formatTooltip(l,!0,null)),v=g.frag;if(v){var m=w1([o],i).get("valueFormatter");d.blocks.push(m?tS({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,p=cn(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",f=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=sg(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=w1([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new ca;g.marker=v.makeTooltipMarker("item",ul(g.color),c);var m=hP(s.formatTooltip(l,!1,u)),y=d.get("order"),_=d.get("valueFormatter"),x=m.frag,b=x?cn(_?tS({valueFormatter:_},x):x,v,c,y,i.get("useUTC"),d.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=sg(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tE(o)){var s=o;o={content:s,formatter:s},a=!0}a&&i&&o.content&&((o=tb(o)).content=eS(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=w1(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),d=Math.random()+"",f=new ca;this._showOrMove(c,function(){var n=tb(c.get("formatterParams")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(h)if(tE(h)){var d=t.ecModel.get("useUTC"),f=tB(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=lK(f.axisValue,c,d)),c=us(c,n,!0)}else if(tz(h)){var v=tL(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||tB(e)?{color:i||r}:tB(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),tz(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),tB(e))n=rF(e[0],s),i=rF(e[1],l);else if(tF(e)){var d=e;d.width=u[0],d.height=u[1];var f=uy(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(tE(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var v,m,y,_,x,b,w,S,M,T,g=(v=n,m=i,y=r,_=s,x=l,b=h?null:20,w=c?null:20,M=(S=y.getSize())[0],T=S[1],null!=b&&(v+M+b+2>_?v-=M+b:v+=b),null!=w&&(m+T+w>x?m-=T+w:m+=w),[v,m]);n=g[0],i=g[1]}if(h&&(n-=w5(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=w5(c)?u[1]/2:"bottom"===c?u[1]:0),wV(t)){var I,C,k,D,A,P,O,L,g=(I=n,C=i,k=r,D=s,A=l,O=(P=k.getSize())[0],L=P[1],I=Math.min(I+O,D)-O,C=Math.min(C+L,A)-L,[I=Math.max(I,0),C=Math.max(C,0)]);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&tk(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tk(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tk(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&tk(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!tn.node&&e.getDom()&&(dR(this,"_updatePosition"),this._tooltipContent.dispose(),bH("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(cm);function w1(t,e,n){var i,r=e.ecModel;n?(i=new lA(n,r,r),i=new lA(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof lA&&(a=a.get("tooltip",!0)),tE(a)&&(a={formatter:a}),a&&(i=new lA(a,i,r)))}return i}function w2(t,e){return t.dispatchAction||tL(e.dispatchAction,e)}function w5(t){return"center"===t||"middle"===t}var w3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:uC.size.m,backgroundColor:uC.color.transparent,borderColor:uC.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:uC.color.primary},subtextStyle:{fontSize:12,color:uC.color.quaternary}},e}(uM),w4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=tX(t.get("textBaseline"),t.get("textVerticalAlign")),l=new sf({style:lc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new sf({style:lc(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){uu(p,"_"+t.get("target"))}),d&&c.on("click",function(){uu(d,"_"+t.get("subtarget"))}),sg(l).eventData=sg(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=uy(v,u_(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new a6({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(cm),w8=Math.sin,w6=Math.cos,w7=Math.PI,w9=2*Math.PI,St=180/w7,Se=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=is(h-w9)||(u?l>=w9:-l>=w9),p=l>0?l%w9:l%w9+w9,d=!1;d=!!c||!is(h)&&p>=w7==!!u;var f=t+n*w6(o),g=e+i*w8(o);this._start&&this._add("M",f,g);var v=Math.round(r*St);if(c){var m=1/this._p,y=(u?1:-1)*(w9-m);this._add("A",n,i,v,1,+u,t+n*w6(o+y),e+i*w8(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var _=t+n*w6(a),x=e+i*w8(a);this._add("A",n,i,v,+d,+u,_,x)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p)){this._invalid=!0;return}u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Sn="none",Si=Math.round,Sr=["lineCap","miterLimit","lineJoin"],So=tD(Sr,function(t){return"stroke-"+t.toLowerCase()}),Sa="http://www.w3.org/2000/svg",Ss="http://www.w3.org/1999/xlink",Sl="ecmeta_";function Su(t){return document.createElementNS(Sa,t)}function Sh(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function Sc(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?eS(a):a||"")+(i?""+n+tD(i,function(e){return t(e)}).join(n)+n:"")+"</"+r+">"}(t)}function Sp(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Sd(t,e,n,i){return Sh("svg","root",{width:t,height:e,xmlns:Sa,"xmlns:xlink":Ss,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Sf=0,Sg={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Sv="transform-origin",Sm={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Sy(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function S_(t){return tE(t)?Sg[t]?"cubic-bezier("+Sg[t]+")":nU(t)?t:"":""}function Sx(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof pf){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tk(o,function(t){var e=Sp(n.zrId);e.animation=!0,Sx(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=tO(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=Sy(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var h=r[u],c=[h.getMaxTime()/1e3+"s"],p=S_(h.getClip().easing),d=h.getDelay();p?c.push(p):c.push("linear"),d&&c.push(d/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}for(var g in l){var s=function(r){var o,a,s=r[1],l=s.length,u={},h={},c={},p="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",d=S_(h.easing),f=h.rawValue;(tE(f)||tV(f))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,d&&(e[c][p]=d))}}}}for(var f=0;f<l;f++){var g=s[f],v=g.targetName;v?"shape"===v&&d(g,h):i||d(g,u)}for(var m in u){var y={};i7(y,t),tS(y,u[m]);var _=i_(y),x=u[m][p];c[m]=_?{transform:_}:{},function(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[Sv]=n+"px "+i+"px")}(c[m],y),x&&(c[m][p]=x)}var b=!0;for(var m in h){c[m]=c[m]||{};var w=!o,x=h[m][p];w&&(o=new aL);var S=o.len();o.reset(),c[m].d=function(t,e,n){var i=tS({},t.shape);tS(i,e),t.buildPath(n,i);var r=new Se;return r.reset(iy(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}(t,h[m],o);var M=o.len();if(!w&&S!==M){b=!1;break}x&&(c[m][p]=x)}if(!b)for(var m in c)delete c[m].d;if(!i)for(var f=0;f<l;f++){var g=s[f],v=g.targetName;"style"===v&&d(g,c,function(t){return Sm[t]})}for(var T=tO(c),I=!0,f=1;f<T.length;f++){var C=T[f-1],k=T[f];if(c[C][Sv]!==c[k][Sv]){I=!1;break}a=c[C][Sv]}if(I&&a){for(var m in c)c[m][Sv]&&delete c[m][Sv];e[Sv]=a}if(tP(T,function(t){return tO(c[t]).length>0}).length)return Sy(c,n)+" "+r[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Sf++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function Sb(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+Sf++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Sw=Math.round;function SS(t){return t&&tz(t.toDataURL)}function SM(t,e,n,i){!function(t,e,n,i){var r,o,a=null==e.opacity?1:e.opacity;if(n instanceof aJ)return t("opacity",a);if(null!=(r=e.fill)&&r!==Sn){var s=ia(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&t("fill-opacity",l)}else t("fill",Sn);if(null!=(o=e.stroke)&&o!==Sn){var u=ia(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,p=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,d=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=fT(n),g=f[0],v=f[1];g&&(v=Si(v||0),t("stroke-dasharray",g.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Sn);for(var m=0;m<Sr.length;m++){var y=Sr[m];if(i||e[y]!==aU[y]){var _=e[y]||aU[y];_&&t(So[m],_)}}}else i&&t("stroke",Sn)}(function(r,o){var a="fill"===r||"stroke"===r;a&&iv(o)?SL(e,t,r,i):a&&ip(o)?SR(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var i=t.style;if(i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)){var r,o,a=(r=t.style,o=t.getGlobalScale(),[r.shadowColor,(r.shadowBlur||0).toFixed(2),(r.shadowOffsetX||0).toFixed(2),(r.shadowOffsetY||0).toFixed(2),o[0],o[1]].join(",")),s=n.shadowCache,l=s[a];if(!l){var u=t.getGlobalScale(),h=u[0],c=u[1];if(!h||!c)return;var p=i.shadowOffsetX||0,d=i.shadowOffsetY||0,f=i.shadowBlur,g=ia(i.shadowColor),v=g.opacity,m=g.color;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=Sh("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sh("feDropShadow","",{dx:p/h,dy:d/c,stdDeviation:f/2/h+" "+f/2/c,"flood-color":m,"flood-opacity":v})]),s[a]=l}e.filter=im(l)}}(n,t,i)}function ST(t,e){var n=function(t){if("function"==typeof p)return p(t)}(e);n&&(n.each(function(e,n){null!=e&&(t[(Sl+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[Sl+"silent"]="true"))}function SI(t){return is(t[0]-1)&&is(t[1])&&is(t[2])&&is(t[3]-1)}function SC(t,e,n){if(e&&!(is(e[4])&&is(e[5])&&SI(e))){var i=n?10:1e4;t.transform=SI(e)?"translate("+Sw(e[4]*i)/i+" "+Sw(e[5]*i)/i+")":"matrix("+il(e[0])+","+il(e[1])+","+il(e[2])+","+il(e[3])+","+iu(e[4])+","+iu(e[5])+")"}}function Sk(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(Sw(i[o][0]*n)/n),r.push(Sw(i[o][1]*n)/n);e.points=r.join(" ")}function SD(t){return!t.smooth}var SA={circle:[(u=tD(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<u.length;i++){var r=u[i],o=t[r[0]];null!=o&&(e[r[1]]=Sw(o*n)/n)}})],polyline:[Sk,SD],polygon:[Sk,SD]};function SP(t,e){var n=t.style,i=t.shape,r=SA[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&iy(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var p=c.getVersion(),d=t.__svgPathBuilder;t.__svgPathVersion===p&&d&&l===t.__svgPathStrokePercent||(d||(d=t.__svgPathBuilder=new Se),d.reset(u),c.rebuildPath(d,l),d.generateStr(),t.__svgPathVersion=p,t.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var f=Math.pow(10,u);r[0](i,o,f)}return SC(o,t.transform),SM(o,n,t,e),ST(o,t),e.animation&&Sx(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};Sb(i,e,n,!0)}else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=r.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=ir(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),Sb(i,e,n,!0)}}(t,o,e),Sh(s,t.id+"",o)}function SO(t,e){return t instanceof aY?SP(t,e):t instanceof aJ?function(t,e){var n,i=t.style,r=i.image;if(r&&!tE(r)&&((n=r)&&tE(n.src)?r=r.src:SS(r)&&(r=r.toDataURL())),r){var o=i.x||0,a=i.y||0,s={href:r,width:i.width,height:i.height};return o&&(s.x=o),a&&(s.y=a),SC(s,t.transform),SM(s,i,t,e),ST(s,t),e.animation&&Sx(t,s,e),Sh("image",t.id+"",s)}}(t,e):t instanceof aj?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r,o,a,s=n.font||tr,l=n.x||0,u=(r=n.y||0,o=rs(s),"top"===(a=n.textBaseline)?r+=o/2:"bottom"===a&&(r-=o/2),r),h={"dominant-baseline":"central","text-anchor":ih[n.textAlign]||n.textAlign};if(ss(n)){var c="",p=n.fontStyle,d=so(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||ti,g=n.fontWeight;c+="font-size:"+d+";font-family:"+f+";",p&&"normal"!==p&&(c+="font-style:"+p+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return i.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),SC(h,t.transform),SM(h,n,t,e),ST(h,t),e.animation&&Sx(t,h,e),Sh("text",t.id+"",h,void 0,i)}}(t,e):void 0}function SL(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(id(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ig(o))return;r="radialGradient",a.cx=tX(o.x,.5),a.cy=tX(o.y,.5),a.r=tX(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=100*iu(s[u].offset)+"%",p=ia(s[u].color),d=p.color,f=p.opacity,g={offset:c};g["stop-color"]=d,f<1&&(g["stop-opacity"]=f),l.push(Sh("stop",u+"",g))}var v=Sc(Sh(r,"",a,l)),m=i.gradientCache,y=m[v];y||(y=i.zrId+"-g"+i.gradientIdx++,m[v]=y,a.id=y,i.defs[y]=Sh(r,y,a,l)),e[n]=im(y)}function SR(t,e,n,i){var r,o,a,s=t.style[n],l=t.getBoundingRect(),u={},h=s.repeat,c="no-repeat"===h,p="repeat-x"===h,d="repeat-y"===h;if(ic(s)){var f=s.imageWidth,g=s.imageHeight,v=void 0,m=s.image;if(tE(m)?v=m:m&&tE(m.src)?v=m.src:SS(m)&&(v=m.toDataURL()),"u"<typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";tK(f,y),tK(g,y)}else if(null==f||null==g){var _=function(t,e){if(t){var n=t.elm,i=f||e.width,r=g||e.height;"pattern"===t.tag&&(p?(r=1,i/=l.width):d&&(i=1,r/=l.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},x=oG(v,null,t,function(t){c||_(w,t),_(r,t)});x&&x.width&&x.height&&(f=f||x.width,g=g||x.height)}r=Sh("image","img",{href:v,width:f,height:g}),u.width=f,u.height=g}else s.svgElement&&(r=tb(s.svgElement),u.width=s.svgWidth,u.height=s.svgHeight);if(r){c?o=a=1:p?(a=1,o=u.width/l.width):d?(o=1,a=u.height/l.height):u.patternUnits="userSpaceOnUse",null==o||isNaN(o)||(u.width=o),null==a||isNaN(a)||(u.height=a);var b=i_(s);b&&(u.patternTransform=b);var w=Sh("pattern","",u,[r]),S=Sc(w),M=i.patternCache,T=M[S];T||(T=i.zrId+"-p"+i.patternIdx++,M[S]=T,u.id=T,w=i.defs[T]=Sh("pattern",T,u,[r])),e[n]=im(T)}}function SB(t){return document.createTextNode(t)}function Sz(t,e,n){t.insertBefore(e,n)}function SE(t,e){t.removeChild(e)}function SN(t,e){t.appendChild(e)}function SV(t){return t.parentNode}function SF(t){return t.nextSibling}function SH(t,e){t.textContent=e}var SW=Sh("","");function SG(t){return void 0===t}function SU(t){return void 0!==t}function SZ(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function SX(t){var e,n=t.children,i=t.tag;if(SU(i)){var r=t.elm=Su(i);if(Sj(SW,t),tB(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&SN(r,SX(o))}else SU(t.text)&&!tF(t.text)&&SN(r,SB(t.text))}else t.elm=SB(t.text);return t.elm}function SY(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&Sz(t,SX(o),e)}}function Sq(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(SU(r.tag)?SE(SV(r.elm),r.elm):SE(t,r.elm))}}function Sj(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(Ss,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}var SK=0,S$=function(){function t(t,e,n){if(this.type="svg",this.configLayer=function(){},this.storage=e,this._opts=n=tS({},n),this.root=t,this._id="zr"+SK++,this._oldVNode=Sd(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Su("svg");Sj(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(SZ(t,e))!function t(e,n){var i=n.elm=e.elm,r=e.children,o=n.children;e!==n&&(Sj(e,n),SG(n.text)?SU(r)&&SU(o)?r!==o&&function(e,n,i){for(var r,o,a,s=0,l=0,u=n.length-1,h=n[0],c=n[u],p=i.length-1,d=i[0],f=i[p];s<=u&&l<=p;)null==h?h=n[++s]:null==c?c=n[--u]:null==d?d=i[++l]:null==f?f=i[--p]:SZ(h,d)?(t(h,d),h=n[++s],d=i[++l]):SZ(c,f)?(t(c,f),c=n[--u],f=i[--p]):SZ(h,f)?(t(h,f),Sz(e,h.elm,SF(c.elm)),h=n[++s],f=i[--p]):(SZ(c,d)?(t(c,d),Sz(e,c.elm,h.elm),c=n[--u]):(SG(r)&&(r=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(n,s,u)),SG(o=r[d.key])||(a=n[o]).tag!==d.tag?Sz(e,SX(d),h.elm):(t(a,d),n[o]=void 0,Sz(e,a.elm,h.elm))),d=i[++l]);(s<=u||l<=p)&&(s>u?SY(e,null==i[p+1]?null:i[p+1].elm,i,l,p):Sq(e,n,s,u))}(i,r,o):SU(o)?(SU(e.text)&&SH(i,""),SY(i,null,o,0,o.length-1)):SU(r)?Sq(i,r,0,r.length-1):SU(e.text)&&SH(i,""):e.text!==n.text&&(SU(r)&&Sq(i,r,0,r.length-1),SH(i,n.text)))}(t,e);else{var n=t.elm,i=SV(n);SX(e),null!==i&&(Sz(i,e.elm,SF(n)),Sq(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return SO(t,Sp(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Sp(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=Sh("rect","bg",{width:t,height:e,x:"0",y:"0"}),iv(n))SL({fill:n},r.attrs,"fill",i);else if(ip(n))SR({style:{fill:n},dirty:t4,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=ia(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=Sh("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=tD(tO(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(Sh("defs","defs",{},l)),t.animation){var u,h,c,p,d,f,g,v,m=(u=r.cssNodes,h=r.cssAnims,d=" {"+(p=(c={newline:!0}).newline?"\n":""),f=p+"}",g=tD(tO(u),function(t){return t+d+tD(tO(u[t]),function(e){return e+":"+u[t][e]+";"}).join(p)+f}).join(p),v=tD(tO(h),function(t){return"@keyframes "+t+d+tD(tO(h[t]),function(e){return e+d+tD(tO(h[t][e]),function(n){var i=h[t][e][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(p)+f}).join(p)+f}).join(p),g||v?["<![CDATA[",g,v,"]]>"].join(p):"");if(m){var y=Sh("style","stl",{},[],m);o.push(y)}}return Sd(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Sc(this.renderToVNode({animation:tX(t.cssAnimation,!0),emphasis:tX(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:tX(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,p=c&&c.length||0,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var v=f+1;v<p;v++){var m={};!function(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=Sh("clipPath",o,a,[SP(t,n)])}e["clip-path"]=im(o)}(c[v],m,e);var y=Sh("g","clip-g-"+l++,m,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=c;var _=SO(h,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=fM(i,0,n),e=fM(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(ip(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=ix(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function SQ(t,e){if(null===t||null===e)return null;let n=t-e;return Number.isFinite(n)?n:null}function SJ(t,e){let n=SQ(t,e);if(null===n||null===e||0===e)return null;let i=n/Math.abs(e)*100;return Number.isFinite(i)?i:null}function S0(t){let e=document.querySelector(`#${t}`);if(null===e)throw Error(`Missing chart ${t}.`);if(!(e instanceof HTMLElement))throw TypeError("Chart requires an HTML element.");let n=function(t,e){var n=!(e&&e.ssr);if(n){var i=function(t){return gr[t.getAttribute?t.getAttribute(gs):t[gs]]}(t);if(i)return i}var r=new f5(t,null,e);return r.id="ec_"+ga++,gr[r.id]=r,n&&of(t,gs,r.id),V(r),fn.trigger("afterinit",r),r}(e,{renderer:"svg"});return new ResizeObserver(function(){n.resize()}).observe(e),n}function S1(t){let e=document.querySelector(`#${t}`);if(!(e instanceof HTMLSelectElement))throw TypeError(`Missing selection ${t}.`);return e}function S2(t,e,n){return{title:{text:t,textStyle:{fontSize:16}},animation:!1,aria:{enabled:!0},tooltip:{trigger:"axis",renderMode:"richText"},legend:{top:30},grid:{top:75,left:80,right:35,bottom:85},xAxis:{type:"category",data:Array.from(e),axisLabel:{hideOverlap:!0}},yAxis:{type:"value",name:n,scale:!0},dataZoom:[{type:"inside"},{type:"slider",bottom:10}]}}function S5(t,e){return[e,...[["estimate",t.estimate,"unavailable"],["interval lower",t.interval.lower,"-unbounded"],["interval upper",t.interval.upper,"unbounded"],["minimum",t.minimum,"-unbounded"],["minimum delta",SQ(t.estimate,t.minimum),"unavailable"],["minimum delta %",SJ(t.estimate,t.minimum),"unavailable"],["maximum",t.maximum,"unbounded"],["maximum delta",SQ(t.estimate,t.maximum),"unavailable"],["maximum delta %",SJ(t.estimate,t.maximum),"unavailable"]].map(function([t,e,n]){return`${t}: ${e??n}`}),`precision met: ${String(t.precise)}`].join("\n")}g_([function(t){t.registerChartView(m7),t.registerSeriesModel(mQ),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,{seriesType:"bar",overallReset:function(t){var e="bar|&"+mT;mt(t,e,function(t){var n,i,r,o,a,s=((r=[],o=my(n=t,{fromStat:{key:i="bar|&"+mT},min:1}),v7(n,i,function(t){r.push({barWidth:rF(t.get("barWidth"),o.w),barMaxWidth:rF(t.get("barMaxWidth"),o.w),barMinWidth:rF(t.get("barMinWidth")||(mP(t)?.5:1),o.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:mD(t)})}),a={bandWidthResult:o,seriesInfo:r}).columnMap=mA(a),a);v7(t,e,function(t){var e=s.columnMap[mD(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})})})}}),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:cy(),reset:function(t){if(t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=gI(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=r.toGlobalCoord(r.dataToCoord(r.scale.rawExtentInfo.makeRenderInfo().startValue)),d=mP(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&gA(3*r),u=d&&s&&gA(3*r),y=d&&gA(r),_=n.master.getRect(),x=c?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),T=p,I=void 0;h&&(I=S-b.get(o,i));var C=void 0,k=void 0,D=void 0,A=void 0;if(c){var P=n.dataToPoint([S,M]);h&&(T=n.dataToPoint([I,M])[0]),C=T,k=P[1]+m,D=P[0]-T,A=v,rA(D)<f&&(D=(D<0?-1:1)*f)}else{var P=n.dataToPoint([M,S]);h&&(T=n.dataToPoint([M,I])[1]),C=P[0]+m,k=T,D=v,rA(A=P[1]-T)<f&&(A=(A<=0?-1:1)*f)}d?(l[w]=C,l[w+1]=k,l[w+2]=c?D:A,u&&(u[w]=c?_.x:C,u[w+1]=c?k:_.y,u[w+2]=x),y[i]=i):e.setItemLayout(i,{x:C,y:k,width:D,height:A}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"bar",reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/c)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/c));var p=void 0;tE(r)?p=mO[r]:tz(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,p,mL))}}}}),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})}),mC(t,function(){function e(e){var n,i=e+"|&"+mT;ma(t,{key:i,seriesType:e,coordSysType:mT,getMetrics:mw}),n=mb(e+"|&"+mT),mv.set(i,n)}e("bar"),e("pictorialBar")})},function(t){t.registerSeriesModel(ym),t.registerChartView(yy),t.registerLayout(yM),t.registerTransform(yT),yS(t,function(){var e,n=yv+"|&";ma(t,{key:n,seriesType:yv,getMetrics:mw}),e=mb(n),mv.set(n,e)})},function(t){t.registerChartView(yE),t.registerSeriesModel(yC),t.registerPreprocessor(yY),t.registerVisual(yB),t.registerLayout(yj),yq(t,function(){var e,n=yI+"|&";ma(t,{key:n,seriesType:yI,getMetrics:mw}),e=mb(n),mv.set(n,e)})},function(t){g_(_Z),t.registerSeriesModel(y$),t.registerChartView(y9),t.registerLayout(y7("scatter"))},function(t){t.registerChartView(xw),t.registerSeriesModel(_j)},function(t){t.registerPreprocessor(xH),t.registerVisual(t.PRIORITY.VISUAL.ARIA,xF)},function(t){g_(bv),g_(bM)},function(t){g_(_Z),g_(b$)},function(t){g_(b8),g_(wn)},function(t){t.registerComponentModel(wa),t.registerComponentView(wE),t.registerPreprocessor(function(t){(function(t,e){if(!t)return!1;for(var n=tB(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1})(t.series,"markLine")&&(t.markLine=t.markLine||{})})},function(t){g_(b$),t.registerComponentModel(wN),t.registerComponentView(w0),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},t4),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},t4)},function(t){t.registerComponentModel(w3),t.registerComponentView(w4)},function(t){t.registerPainter("svg",S$)}]);let S3=function(t,e){let n=e.coord([e.value(0),e.value(2)]),i=e.coord([e.value(1),e.value(2)]);return{type:"rect",shape:{x:n[0]??0,y:(n[1]??0)-5,width:Math.max(2,(i[0]??0)-(n[0]??0)),height:10},style:{fill:"#3865b4"}}};function S4(t,e){for(let n of t)n.addEventListener("change",e)}Object.assign(globalThis,{renderBenchmarkCharts:function(t){!function(t,e){let n=S1("metric-selection"),i=S1("workload-selection");for(let[e,i]of t.groups.entries())n.add(new Option(i.name,String(e)));function r(){let r=t.groups[Number(n.value)];if(void 0!==r){let t,n,o,a=new Set(Array.from(i.selectedOptions,function(t){return t.value}));n=(t=r.rows.filter(function(t){return a.has(t.key)})).map(function(t){return t.label}),e.distribution.setOption({...S2("Retained sample distributions",r.bins,"sample count"),series:t.map(function(t){return{type:"bar",name:t.label,data:Array.from(t.histogram)}})},!0),e.box.setOption({...S2("Empirical min / Q1 / median / Q3 / max",n,r.unit),series:[{type:"boxplot",data:t.map(function(t){return Array.from(t.box)})}]},!0),e.workloads.setOption({...S2("Workload summaries",n,r.unit),series:[{type:"bar",name:"mean",data:t.map(function(t){return t.summary.mean})},{type:"bar",name:"median",data:t.map(function(t){return t.summary.median})}]},!0),o=t.flatMap(function(t){return t.budgets.map(function(e){return{...e,label:`${t.label}: ${e.statistic.kind}${"quantile"===e.statistic.kind?` ${e.statistic.probability}`:""} (${e.decision})`}})}),e.budgets.setOption({...S2("Budget estimates and recorded intervals",o.map(function(t){return t.label}),r.unit),tooltip:{trigger:"item",renderMode:"richText",formatter:"{b}"},series:[{type:"candlestick",name:"recorded interval",data:o.map(function(t){return null!==t.estimate&&null!==t.interval.lower&&null!==t.interval.upper?{name:S5(t,t.label),value:[t.estimate,t.estimate,t.interval.lower,t.interval.upper]}:"-"})},{type:"scatter",name:"estimate",data:o.map(function(t){return{name:S5(t,t.label),value:t.estimate}})},{type:"scatter",name:"minimum",symbol:"triangle",data:o.map(function(t){return{name:S5(t,t.label),value:t.minimum}})},{type:"scatter",name:"maximum",symbol:"triangle",data:o.map(function(t){return{name:S5(t,t.label),value:t.maximum}})}]},!0)}}function o(){let e=t.groups[Number(n.value)]?.rows??[];for(let t of(i.replaceChildren(),e))i.add(new Option(t.label,t.key,!0,!0));r()}n.addEventListener("change",o),i.addEventListener("change",r),o()}(t,{distribution:S0("distribution"),box:S0("box"),workloads:S0("workloads"),budgets:S0("budgets")});let e=S1("baseline-selection"),n=S0("baseline-chart");for(let[n,i]of new Map(t.baselines.map(function(t){return[t.group,t]})))e.add(new Option(`${i.label} / ${i.name} (${i.unit}, ${JSON.stringify(i.scale)})`,n));function i(){var i;let r;r=(i=t.baselines.filter(function(t){return t.group===e.value}))[0],n.setOption({...S2(`Baseline comparisons (${r?.scale.kind??"unavailable"})`,i.map(function(t){return`${t.label}: ${t.outcome}`}),r?.unit??""),series:[{type:"bar",name:"actual",data:i.map(function(t){return t.actual})},{type:"bar",name:"expected",data:i.map(function(t){return"value"===t.expected.kind?t.expected.value:null})},{type:"scatter",name:"minimum",data:i.map(function(t){return"range"===t.expected.kind?t.expected.minimum:null})},{type:"scatter",name:"maximum",data:i.map(function(t){return"range"===t.expected.kind?t.expected.maximum:null})}]},!0)}e.addEventListener("change",i),i(),function(t){let{selection:e,phase:n,sample:i,clock:r}={selection:S1("timeline-selection"),phase:S1("timeline-phase"),sample:S1("timeline-sample"),clock:S1("timeline-clock")},o=S0("timeline-chart");for(let[n,i]of t.timelines.entries())e.add(new Option(i.label,String(n)));function a(){return(t.timelines[Number(e.value)]?.events??[]).filter(function(t){return"all"===n.value||t.phase===n.value})}function s(){var t;let e=a().filter(function(t){return("all"===i.value||String(t.sample)===i.value)&&t.clockDomain===r.value});t=r.value,o.setOption({title:{text:`Timeline / ${t.length>0?t:"no recorded events"}`},animation:!1,aria:{enabled:!0},tooltip:{renderMode:"richText"},grid:{left:190,right:30,top:60,bottom:65},xAxis:{type:"value",name:"raw microseconds",scale:!0},yAxis:{type:"category",data:e.map(function(t){return`${t.phase} ${t.sample} / ${t.name} (${t.outcome})`})},dataZoom:[{type:"inside"},{type:"slider"},{type:"slider",yAxisIndex:0,right:0}],series:[{type:"custom",renderItem:S3,encode:{x:[0,1],y:2},data:e.map(function(t,e){return{name:`${t.name} / ${t.source}`,value:[t.startMicroseconds,t.startMicroseconds+(t.durationMicroseconds??0),e]}})}]},!0)}function l(){var t=a();let e=new Set(t.map(function(t){return t.sample})),n=new Set(t.map(function(t){return t.clockDomain}));for(let t of(i.replaceChildren(new Option("All","all")),r.replaceChildren(),e))i.add(new Option(String(t),String(t)));for(let t of n)r.add(new Option(t,t));s()}S4([e,n],l),S4([i,r],s),l()}(t)}})})();
|
|
2
2
|
/*
|
|
3
3
|
echarts/LICENSE
|
|
4
4
|
|