@danielmcsheehy/isopleth 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart.d.ts +1 -0
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js.map +1 -1
- package/dist/compile/index.d.ts +8 -1
- package/dist/compile/index.d.ts.map +1 -1
- package/dist/compile/index.js +55 -14
- package/dist/compile/index.js.map +1 -1
- package/dist/compile/resolve.d.ts +2 -0
- package/dist/compile/resolve.d.ts.map +1 -1
- package/dist/compile/resolve.js +2 -1
- package/dist/compile/resolve.js.map +1 -1
- package/dist/compile/scales.d.ts +2 -0
- package/dist/compile/scales.d.ts.map +1 -1
- package/dist/compile/scales.js +12 -5
- package/dist/compile/scales.js.map +1 -1
- package/dist/compile/series.d.ts.map +1 -1
- package/dist/compile/series.js +119 -39
- package/dist/compile/series.js.map +1 -1
- package/dist/isopleth.browser.js +44 -0
- package/dist/isopleth.browser.js.LEGAL.txt +28 -0
- package/dist/isopleth.browser.js.map +7 -0
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +22 -4
- package/dist/render.js.map +1 -1
- package/package.json +9 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var F4=Object.defineProperty;var k=(t,e)=>()=>(t&&(e=t(t=0)),e);var Or=(t,e)=>{for(var r in e)F4(t,r,{get:e[r],enumerable:!0})};function N(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");A_(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var A_,q=k(()=>{A_=function(t,e){return A_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},A_(t,e)}});function c6(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var u6,f6,Mo,xe,Ht=k(()=>{u6=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),f6=function(){function t(){this.browser=new u6,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Mo=new f6;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mo.wxa=!0,Mo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mo.worker=!0:!Mo.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Mo.node=!0,Mo.svgSupported=!0):c6(navigator.userAgent,Mo);xe=Mo});function v6(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-p6)/h6;e[n]=i}return e}function vv(t){for(var e in at)at.hasOwnProperty(e)&&t[e]&&(at[e]=t[e])}var dv,D_,Zr,p6,h6,d6,m6,at,qr=k(()=>{dv=12,D_="sans-serif",Zr=dv+"px "+D_,p6=20,h6=100,d6="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";m6=v6(d6),at={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=at.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Zr),t.measureText(r);r=r||"",n=n||Zr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||dv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=m6[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}}});var pe={};Or(pe,{EPSILON:()=>M6,HashMap:()=>Ok,RADIAN_TO_DEGREE:()=>Us,assert:()=>je,assignProps:()=>L_,bind:()=>$,clone:()=>te,concatArray:()=>P_,createCanvas:()=>b6,createHashMap:()=>K,createObject:()=>La,curry:()=>ve,defaults:()=>oe,disableUserSelect:()=>sp,each:()=>T,eqNaN:()=>_n,extend:()=>G,filter:()=>Ce,find:()=>Gn,guid:()=>ip,hasOwn:()=>Q,indexOf:()=>ue,inherits:()=>ap,isArray:()=>U,isArrayLike:()=>wt,isBuiltInObject:()=>E_,isDom:()=>Ia,isFunction:()=>J,isGradientObject:()=>Ra,isImagePatternObject:()=>N_,isNumber:()=>Me,isObject:()=>j,isPrimitive:()=>Iu,isRegExp:()=>w6,isString:()=>W,isStringSafe:()=>Lu,isTypedArray:()=>Tt,keys:()=>he,logError:()=>Fs,map:()=>V,merge:()=>de,mergeAll:()=>R_,mixin:()=>kt,noop:()=>qe,normalizeCssArray:()=>Vs,reduce:()=>ir,retrieve:()=>yr,retrieve2:()=>Z,retrieve3:()=>Kr,setAsPrimitive:()=>Bs,slice:()=>op,trim:()=>Yt});function ip(){return k_>=_6&&(k_=0),k_++}function Fs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function te(t){if(t==null||typeof t!="object")return t;var e=t,r=Ru.call(t);if(r==="[object Array]"){if(!Iu(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=te(t[n])}}else if(Dk[r]){if(!Iu(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Ak[r]&&!Iu(t)&&!Ia(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==I_&&(e[o]=te(t[o]))}return e}function de(t,e,r){if(!j(e)||!j(t))return r?te(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==I_){var i=t[n],a=e[n];j(a)&&j(i)&&!U(a)&&!U(i)&&!Ia(a)&&!Ia(i)&&!E_(a)&&!E_(i)&&!Iu(a)&&!Iu(i)?de(i,a,r):(r||!(n in t))&&(t[n]=te(e[n]))}return t}function R_(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=de(r,t[n],e);return r}function G(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==I_&&(t[r]=e[r]);return t}function L_(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function oe(t,e,r){for(var n=he(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}function ue(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function ap(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function kt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else oe(t,e,r)}function wt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function T(t,e,r){if(t&&e)if(t.forEach&&t.forEach===g6)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function V(t,e,r){if(!t)return[];if(!e)return op(t);if(t.map&&t.map===x6)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function ir(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Ce(t,e,r){if(!t)return[];if(!e)return op(t);if(t.filter&&t.filter===y6)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Gn(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function he(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function S6(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(O_.call(arguments)))}}function ve(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(O_.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):Ru.call(t)==="[object Array]"}function J(t){return typeof t=="function"}function W(t){return typeof t=="string"}function Lu(t){return Ru.call(t)==="[object String]"}function Me(t){return typeof t=="number"}function j(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function E_(t){return!!Ak[Ru.call(t)]}function Tt(t){return!!Dk[Ru.call(t)]}function Ia(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Ra(t){return t.colorStops!=null}function N_(t){return t.image!=null}function w6(t){return Ru.call(t)==="[object RegExp]"}function _n(t){return t!==t}function yr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function Kr(t,e,r){return t??e??r}function op(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return O_.apply(t,e)}function Vs(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function je(t,e){if(!t)throw new Error(e)}function Yt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Bs(t){t[kk]=!0}function Iu(t){return t[kk]}function C6(){return Ek?new Map:new T6}function K(t){return new Ok(t)}function P_(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function La(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&G(r,e),r}function sp(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Q(t,e){return t.hasOwnProperty(e)}function qe(){}var Ak,Dk,Ru,gv,g6,y6,O_,x6,Mk,mv,I_,k_,_6,b6,$,kk,T6,Ek,Ok,Us,M6,P=k(()=>{qr();Ak=ir(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Dk=ir(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ru=Object.prototype.toString,gv=Array.prototype,g6=gv.forEach,y6=gv.filter,O_=gv.slice,x6=gv.map,Mk=function(){}.constructor,mv=Mk?Mk.prototype:null,I_="__proto__",k_=2311,_6=Math.pow(2,53)-1;b6=at.createCanvas;$=mv&&J(mv.bind)?mv.call.bind(mv.bind):S6;kk="__ec_primitive__";T6=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return he(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Ek=typeof Map=="function";Ok=function(){function t(e){var r=U(e);this.data=C6();var n=this;e instanceof t?e.each(i):e&&T(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Ek?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();Us=180/Math.PI,M6=Number.EPSILON||Math.pow(2,-52)});var jr={};Or(jr,{add:()=>xv,applyTransform:()=>ot,clone:()=>z_,copy:()=>yv,create:()=>Na,dist:()=>Pu,distSquare:()=>Ao,distance:()=>fp,distanceSquare:()=>Ik,div:()=>O6,dot:()=>I6,len:()=>F_,lenSquare:()=>V_,length:()=>D6,lengthSquare:()=>k6,lerp:()=>Hs,max:()=>Yn,min:()=>Hn,mul:()=>E6,negate:()=>R6,normalize:()=>Gs,scale:()=>up,scaleAndAdd:()=>A6,set:()=>Nu,sub:()=>lp});function Na(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function yv(t,e){return t[0]=e[0],t[1]=e[1],t}function z_(t){return[t[0],t[1]]}function Nu(t,e,r){return t[0]=e,t[1]=r,t}function xv(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function A6(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function lp(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function F_(t){return Math.sqrt(V_(t))}function V_(t){return t[0]*t[0]+t[1]*t[1]}function E6(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function O6(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function I6(t,e){return t[0]*e[0]+t[1]*e[1]}function up(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Gs(t,e){var r=F_(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function fp(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function Ik(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function R6(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Hs(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function ot(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Hn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Yn(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var D6,k6,Pu,Ao,Lt=k(()=>{D6=F_;k6=V_;Pu=fp;Ao=Ik});var zu,L6,Rk,Lk=k(()=>{zu=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),L6=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new zu(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new zu(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new zu(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new zu(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new zu(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new zu(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),Rk=L6});var N6,Nt,qi=k(()=>{N6=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),Nt=N6});function B_(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/P6);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&i||(c+=(h%2?-1:1)*t[r][p]*B_(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function U_(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=B_(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*B_(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var P6,Nk=k(()=>{P6=Math.log(2)});function Pk(t,e,r,n,i){return bv(G_,e,n,i,!0)&&bv(t,r,G_[0],G_[1])}function zk(t,e){t&&r(t),e&&r(e);function r(n){var i=n[_v];i&&(i.clearMarkers&&i.clearMarkers(),delete n[_v])}}function bv(t,e,r,n,i){if(e.getBoundingClientRect&&xe.domSupported&&!H_(e)){var a=e[_v]||(e[_v]={}),o=z6(e,a),s=F6(o,a,i);if(s)return s(t,r,n),!0}return!1}function z6(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function F6(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?U_(s,o):U_(o,s))}function H_(t){return t.nodeName.toUpperCase()==="CANVAS"}function Pt(t){return t==null?"":(t+"").replace(V6,function(e,r){return B6[r]})}var _v,G_,V6,B6,cp=k(()=>{Ht();Nk();P();_v="___zrEVENTSAVED",G_=[];V6=/([&<>"'])/g,B6={"&":"&","<":"<",">":">",'"':""","'":"'"}});function Sv(t,e,r,n){return r=r||{},n?Fk(t,e,r):G6&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Fk(t,e,r),r}function Fk(t,e,r){if(xe.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(H_(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(bv(Y_,t,n,i)){r.zrX=Y_[0],r.zrY=Y_[1];return}}r.zrX=r.zrY=0}function wv(t){return t||window.event}function $r(t,e,r){if(e=wv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Sv(t,o,e,r)}else{Sv(t,e,e,r);var a=H6(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&U6.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function H6(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function pp(t,e,r,n){t.addEventListener(e,r,n)}function Vk(t,e,r,n){t.removeEventListener(e,r,n)}function W_(t){return t.which===2||t.which===3}var U6,Y_,G6,Jr,Ki=k(()=>{Ht();cp();U6=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Y_=[],G6=xe.browser.firefox&&+xe.browser.version.split(".")[0]<39;Jr=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}});function Bk(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Y6(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Uk,X_,Gk=k(()=>{Ki();Uk=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Sv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in X_)if(X_.hasOwnProperty(r)){var n=X_[r](this._track,e);if(n)return n}},t}();X_={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Bk(n)/Bk(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Y6(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}}});var ji={};Or(ji,{clone:()=>W6,copy:()=>Pa,create:()=>$e,identity:()=>Wn,invert:()=>xr,mul:()=>Qr,rotate:()=>za,scale:()=>Z_,translate:()=>Vu});function $e(){return[1,0,0,1,0,0]}function Wn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pa(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 Qr(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Vu(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function za(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function Z_(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function xr(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function W6(t){var e=$e();return Pa(e,t),e}var bn=k(()=>{});var X6,me,Bu=k(()=>{X6=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),me=X6});function Yk(t,e,r,n,i,a,o,s){var l=j_(e-r),u=j_(n-t),f=qs(l,u),c=Hk[i],p=Hk[1-i],h=Z6[i];e<r||n<t?l<u?(a&&($_[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&($_[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Uu(t,r),o[h]=qs(e,n)-o[c]),a&&(f<dp[0]||Sn.useDir)&&(dp[0]=qs(f,dp[0]),(l<u||!Sn.bidirectional)&&(hp[c]=l,hp[p]=0,Sn.useDir&&Sn.calcDirMTV()),(l>=u||!Sn.bidirectional)&&(hp[c]=-u,hp[p]=0,Sn.useDir&&Sn.calcDirMTV())))}function J_(){var t=0,e=new me,r=new me,n={minTv:new me,maxTv:new me,useDir:!1,dirMinTv:new me,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Uu(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return j_(a)<1e-10}return n}var qs,Uu,j_,Hk,Z6,Ys,Ws,Xs,Zs,Sn,hp,$_,dp,Fa,vp,q_,Gu,Wk,Tv,Xk,q6,K6,K_,fe,Ct=k(()=>{bn();Lt();Bu();qs=Math.min,Uu=Math.max,j_=Math.abs,Hk=["x","y"],Z6=["width","height"],Ys=new me,Ws=new me,Xs=new me,Zs=new me,Sn=J_(),hp=Sn.minTv,$_=Sn.maxTv,dp=[0,0],Fa=function(){function t(e,r,n,i){q_(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=qs(e.x,this.x),n=qs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uu(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uu(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return Wk($e(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&me.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=q_(q6,e.x,e.y,e.width,e.height)),r instanceof t||(r=q_(K6,r.x,r.y,r.width,r.height));var s=!!n;Sn.reset(i,s);var l=Sn.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<u||p<v||m<c);return(s||a)&&(dp[0]=1/0,dp[1]=0,Yk(u,f,h,d,0,s,a,o),Yk(c,p,v,m,1,s,a,o),s&&me.copy(n,g?Sn.useDir?Sn.dirMinTv:hp:$_)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Gu(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&Gu(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,Ws.x=Zs.x=r.x+r.width,Ws.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),Ws.transform(n),Xs.transform(n),e.x=qs(Ys.x,Ws.x,Xs.x,Zs.x),e.y=qs(Ys.y,Ws.y,Xs.y,Zs.y);var l=Uu(Ys.x,Ws.x,Xs.x,Zs.x),u=Uu(Ys.y,Ws.y,Xs.y,Zs.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Wn(e||[]),Vu(e,e,Nu(K_,-r.x,-r.y)),Z_(e,e,Nu(K_,i,a)),Vu(e,e,Nu(K_,n.x,n.y)),e},t}(),vp=Fa.create,q_=Fa.set,Gu=Fa.copy,Wk=Fa.calculateTransform,Tv=Fa.applyTransform,Xk=Fa.contain,q6=new Fa(0,0,0,0),K6=new Fa(0,0,0,0),K_=[];fe=Fa});function j6(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:$6}}function $6(){Jr(this.event)}function eW(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?qk:!0}return!1}function Zk(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=eW(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==qk)){e.target=o;break}}}function jk(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var qk,J6,mp,Q6,Q_,Kk,$k,Jk=k(()=>{q();P();Lt();Lk();qi();Ki();Gk();Ct();qk="silent";J6=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Nt),mp=function(){function t(e,r){this.x=e,this.y=r}return t}(),Q6=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Q_=new fe(0,0,0,0),Kk=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new mp(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new J6,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Rk(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(Q6,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=jk(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new mp(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new mp(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=j6(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new mp(r,n);if(Zk(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new fe(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Q_.copy(p.getBoundingRect()),p.transform&&Q_.applyTransform(p.transform),Q_.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),x=n+m*Math.sin(g);if(Zk(s,o,y,x,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Uk);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new mp;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Nt);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Kk.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=jk(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Pu(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});$k=Kk});function tW(t){for(var e=0;t>=tE;)e|=t&1,t>>=1;return t+e}function Qk(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;rW(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function rW(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function eE(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function eb(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function tb(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function nW(t,e){var r=gp,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],v=i[h],m=n[h+1],g=i[h+1];i[h]=v+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=tb(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=eb(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,x=v,_=h;if(t[_++]=t[x++],--m===0){for(g=0;g<d;g++)t[_+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y];return}for(var b=r,S,w,M;;){S=0,w=0,M=!1;do if(e(t[x],o[y])<0){if(t[_++]=t[x++],w++,S=0,--m===0){M=!0;break}}else if(t[_++]=o[y++],S++,w=0,--d===1){M=!0;break}while((S|w)<b);if(M)break;do{if(S=tb(t[x],o,y,d,0,e),S!==0){for(g=0;g<S;g++)t[_+g]=o[y+g];if(_+=S,y+=S,d-=S,d<=1){M=!0;break}}if(t[_++]=t[x++],--m===0){M=!0;break}if(w=eb(o[y],t,x,m,0,e),w!==0){for(g=0;g<w;g++)t[_+g]=t[x+g];if(_+=w,x+=w,m-=w,m===0){M=!0;break}}if(t[_++]=o[y++],--d===1){M=!0;break}b--}while(S>=gp||w>=gp);if(M)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[_+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,x=m-1,_=v+m-1,b=0,S=0;if(t[_--]=t[y--],--d===0){for(b=_-(m-1),g=0;g<m;g++)t[b+g]=o[g];return}if(m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)t[S+g]=t[b+g];t[_]=o[x];return}for(var w=r;;){var M=0,C=0,A=!1;do if(e(o[x],t[y])<0){if(t[_--]=t[y--],M++,C=0,--d===0){A=!0;break}}else if(t[_--]=o[x--],C++,M=0,--m===1){A=!0;break}while((M|C)<w);if(A)break;do{if(M=d-tb(o[x],t,h,d,d-1,e),M!==0){for(_-=M,y-=M,d-=M,S=_+1,b=y+1,g=M-1;g>=0;g--)t[S+g]=t[b+g];if(d===0){A=!0;break}}if(t[_--]=o[x--],--m===1){A=!0;break}if(C=m-eb(t[y],o,0,m,m-1,e),C!==0){for(_-=C,x-=C,m-=C,S=_+1,b=x+1,g=0;g<C;g++)t[S+g]=o[b+g];if(m<=1){A=!0;break}}if(t[_--]=t[y--],--d===0){A=!0;break}w--}while(M>=gp||C>=gp);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)t[S+g]=t[b+g];t[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;g<m;g++)t[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ks(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<tE){a=Qk(t,r,n,e),eE(t,r,n,r+a,e);return}var o=nW(t,e),s=tW(i);do{if(a=Qk(t,r,n,e),a<s){var l=i;l>s&&(l=s),eE(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var tE,gp,rb=k(()=>{tE=32,gp=7});var zt,js,Do,ko=k(()=>{zt=1,js=2,Do=4});function nb(){rE||(rE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nE(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var rE,iW,iE,aE=k(()=>{P();rb();ko();rE=!1;iW=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nE}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Ks(n,nE)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=zt),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(nb(),d.z=0),isNaN(d.z2)&&(nb(),d.z2=0),isNaN(d.zlevel)&&(nb(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ue(this._roots,e);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}(),iE=iW});var oE,yp,ib=k(()=>{Ht();oE=xe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};yp=oE});var Cv,Mv,ab=k(()=>{Cv={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Cv.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Cv.bounceIn(t*2)*.5:Cv.bounceOut(t*2-1)*.5+.5}},Mv=Cv});function Eo(t){return t>-kv&&t<kv}function uE(t){return t>kv||t<-kv}function yt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function ob(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function $s(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Eo(f)&&Eo(c))if(Eo(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(Eo(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=Oo(v),x=f*s+1.5*o*(-c+y),_=f*s+1.5*o*(-c-y);x<0?x=-Av(-x,Dv):x=Av(x,Dv),_<0?_=-Av(-_,Dv):_=Av(_,Dv);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Oo(f*f*f)),S=Math.acos(b)/3,w=Oo(f),M=Math.cos(S),d=(-s-2*w*M)/(3*o),g=(-s+w*(M+sE*Math.sin(S)))/(3*o),C=(-s+w*(M-sE*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),C>=0&&C<=1&&(a[h++]=C)}}return h}function Ev(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Eo(o)){if(uE(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Eo(f))i[0]=-a/(2*o);else if(f>0){var c=Oo(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Zn(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function Ov(t,e,r,n,i,a,o,s,l,u,f){var c,p=.005,h=1/0,d,v,m,g;$i[0]=l,$i[1]=u;for(var y=0;y<1;y+=.05)Xn[0]=yt(t,r,i,o,y),Xn[1]=yt(e,n,a,s,y),m=Ao($i,Xn),m<h&&(c=y,h=m);h=1/0;for(var x=0;x<32&&!(p<lE);x++)d=c-p,v=c+p,Xn[0]=yt(t,r,i,o,d),Xn[1]=yt(e,n,a,s,d),m=Ao(Xn,$i),d>=0&&m<h?(c=d,h=m):(Hu[0]=yt(t,r,i,o,v),Hu[1]=yt(e,n,a,s,v),g=Ao(Hu,$i),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=yt(t,r,i,o,c),f[1]=yt(e,n,a,s,c)),Oo(h)}function fE(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var d=h*p,v=yt(t,r,i,o,d),m=yt(e,n,a,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function $t(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function sb(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function cE(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Eo(a)){if(uE(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Eo(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Oo(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Iv(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Yu(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Rv(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;$i[0]=o,$i[1]=s;for(var p=0;p<1;p+=.05){Xn[0]=$t(t,r,i,p),Xn[1]=$t(e,n,a,p);var h=Ao($i,Xn);h<c&&(u=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<lE);d++){var v=u-f,m=u+f;Xn[0]=$t(t,r,i,v),Xn[1]=$t(e,n,a,v);var h=Ao(Xn,$i);if(v>=0&&h<c)u=v,c=h;else{Hu[0]=$t(t,r,i,m),Hu[1]=$t(e,n,a,m);var g=Ao(Hu,$i);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=$t(t,r,i,u),l[1]=$t(e,n,a,u)),Oo(c)}function pE(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=$t(t,r,i,p),d=$t(e,n,a,p),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var Av,Oo,kv,lE,sE,Dv,$i,Xn,Hu,qn=k(()=>{Lt();Av=Math.pow,Oo=Math.sqrt,kv=1e-8,lE=1e-4,sE=Oo(3),Dv=1/3,$i=Na(),Xn=Na(),Hu=Na()});function Wu(t){var e=t&&aW.exec(t);if(e){var r=e[1].split(","),n=+Yt(r[0]),i=+Yt(r[1]),a=+Yt(r[2]),o=+Yt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:$s(0,n,a,1,l,s)&&yt(0,i,o,1,s[0])}}}var aW,Lv=k(()=>{qn();P();aW=/cubic-bezier\(([0-9,\.e ]+)\)/});var oW,hE,dE=k(()=>{ab();P();Lv();oW=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qe,this.ondestroy=e.ondestroy||qe,this.onrestart=e.onrestart||qe,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=J(e)?e:Mv[e]||Wu(e)},t}(),hE=oW});var vE,sW,lW,Ji,xp=k(()=>{vE=function(){function t(e){this.value=e}return t}(),sW=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new vE(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),lW=function(){function t(e){this._list=new sW,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new vE(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ji=lW});var ju={};Or(ju,{fastLerp:()=>Zu,fastMapToColor:()=>pW,lerp:()=>zv,lift:()=>pb,liftColor:()=>Ku,lum:()=>Js,mapToColor:()=>hW,modifyAlpha:()=>qu,modifyHSL:()=>Qi,parse:()=>Wt,parseCssFloat:()=>Ro,parseCssInt:()=>Pv,random:()=>dW,stringify:()=>en,toHex:()=>cW});function Ti(t){return t=Math.round(t),t<0?0:t>255?255:t}function uW(t){return t=Math.round(t),t<0?0:t>360?360:t}function _p(t){return t<0?0:t>1?1:t}function Pv(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ti(parseFloat(e)/100*255):Ti(parseInt(e,10))}function Ro(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?_p(parseFloat(e)/100):_p(parseFloat(e))}function ub(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Io(t,e,r){return t+(e-t)*r}function Kn(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function fb(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Xu(t,e){Nv&&fb(Nv,e),Nv=yE.put(t,Nv||e.slice())}function Wt(t,e){if(t){e=e||[];var r=yE.get(t);if(r)return fb(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in mE)return fb(e,mE[n]),Xu(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Kn(e,0,0,0,1);return}return Kn(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Xu(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Kn(e,0,0,0,1);return}return Kn(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Kn(e,+u[0],+u[1],+u[2],1):Kn(e,0,0,0,1);f=Ro(u.pop());case"rgb":if(u.length>=3)return Kn(e,Pv(u[0]),Pv(u[1]),Pv(u[2]),u.length===3?f:Ro(u[3])),Xu(t,e),e;Kn(e,0,0,0,1);return;case"hsla":if(u.length!==4){Kn(e,0,0,0,1);return}return u[3]=Ro(u[3]),cb(u,e),Xu(t,e),e;case"hsl":if(u.length!==3){Kn(e,0,0,0,1);return}return cb(u,e),Xu(t,e),e;default:return}}Kn(e,0,0,0,1)}}function cb(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Ro(t[1]),i=Ro(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Kn(e,Ti(ub(o,a,r+1/3)*255),Ti(ub(o,a,r)*255),Ti(ub(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function fW(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-n)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function pb(t,e){var r=Wt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return en(r,r.length===4?"rgba":"rgb")}}function cW(t){var e=Wt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Zu(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=Ti(Io(o[0],s[0],l)),r[1]=Ti(Io(o[1],s[1],l)),r[2]=Ti(Io(o[2],s[2],l)),r[3]=_p(Io(o[3],s[3],l)),r}}function zv(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Wt(e[i]),s=Wt(e[a]),l=n-i,u=en([Ti(Io(o[0],s[0],l)),Ti(Io(o[1],s[1],l)),Ti(Io(o[2],s[2],l)),_p(Io(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Qi(t,e,r,n){var i=Wt(t);if(t)return i=fW(i),e!=null&&(i[0]=uW(J(e)?e(i[0]):e)),r!=null&&(i[1]=Ro(J(r)?r(i[1]):r)),n!=null&&(i[2]=Ro(J(n)?n(i[2]):n)),en(cb(i),"rgba")}function qu(t,e){var r=Wt(t);if(r&&e!=null)return r[3]=_p(e),en(r,"rgba")}function en(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Js(t,e){var r=Wt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function dW(){return en([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}function Ku(t){if(W(t)){var e=gE.get(t);return e||(e=pb(t,-.1),gE.put(t,e)),e}else if(Ra(t)){var r=G({},t);return r.colorStops=V(t.colorStops,function(n){return{offset:n.offset,color:pb(n.color,-.1)}}),r}return t}var mE,yE,Nv,pW,hW,gE,Ir=k(()=>{xp();P();mE={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]};yE=new Ji(20),Nv=null;pW=Zu;hW=zv;gE=new Ji(100)});function Lo(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Wt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}function ea(t){return t<xE&&t>-xE}function Fv(t){return Vv(t*1e3)/1e3}function Bv(t){return Vv(t*1e4)/1e4}function _E(t){return"matrix("+Fv(t[0])+","+Fv(t[1])+","+Fv(t[2])+","+Fv(t[3])+","+Bv(t[4])+","+Bv(t[5])+")"}function SE(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function wE(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function TE(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function hb(t){return t&&!!t.image}function vW(t){return t&&!!t.svgElement}function bp(t){return hb(t)||vW(t)}function Uv(t){return t.type==="linear"}function Gv(t){return t.type==="radial"}function Hv(t){return t&&(t.type==="linear"||t.type==="radial")}function Sp(t){return"url(#"+t+")"}function Yv(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Wv(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Us,i=Z(t.scaleX,1),a=Z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Vv(o*Us)+"deg, "+Vv(s*Us)+"deg)"),l.join(" ")}var Vv,xE,bE,CE,Qs=k(()=>{P();Ir();Vv=Math.round;xE=1e-4;bE={left:"start",right:"end",center:"middle",middle:"middle"};CE=function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}}()});function Va(t,e,r){return(e-t)*r+t}function db(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Va(e[a],r[a],n);return t}function mW(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Va(e[o][s],r[o][s],n)}return t}function Xv(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function ME(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function gW(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function yW(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:vb.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function el(t){if(wt(t)){var e=t.length;if(wt(t[0])){for(var r=[],n=0;n<e;n++)r.push(vb.call(t[n]));return r}return vb.call(t)}return t}function Kv(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function xW(t){return wt(t&&t[0])?2:1}function DE(t){return t===mb||t===gb}function qv(t){return t===jv||t===kE}var vb,Zv,jv,kE,Tp,mb,gb,AE,wp,_W,bW,Cp,$v=k(()=>{dE();Ir();P();ab();Lv();Qs();vb=Array.prototype.slice;Zv=0,jv=1,kE=2,Tp=3,mb=4,gb=5,AE=6;wp=[0,0,0,0],_W=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=AE,l=r;if(wt(r)){var u=xW(r);s=u,(u===1&&!Me(r[0])||u===2&&!Me(r[0][0]))&&(o=!0)}else if(Me(r)&&!_n(r))s=Zv;else if(W(r))if(!isNaN(+r))s=Zv;else{var f=Wt(r);f&&(l=f,s=Tp)}else if(Ra(r)){var c=G({},l);c.colorStops=V(r.colorStops,function(h){return{offset:h.offset,color:Wt(h.color)}}),Uv(r)?s=mb:Gv(r)&&(s=gb),l=c}a===0?this.valType=s:(s!==this.valType||s===AE)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return n&&(p.easing=n,p.easingFunc=J(n)?n:Mv[n]||Wu(n)),i.push(p),p},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,m){return v.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=qv(i),u=DE(i),f=0;f<a;f++){var c=n[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?yW(p,h,i):u&&gW(p.colorStops,h.colorStops))}if(!s&&i!==gb&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Zv?n[f].additiveValue=n[f].value-d:i===Tp?n[f].additiveValue=Xv([],n[f].value,d,-1):qv(i)&&(n[f].additiveValue=i===jv?Xv([],n[f].value,d,-1):ME([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Tp,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?wp:e[l];if((qv(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(qv(a))a===jv?db(y,h[i],d[i],g):mW(y,h[i],d[i],g);else if(DE(a)){var x=h[i],_=d[i],b=a===mb;e[l]={type:b?"linear":"radial",x:Va(x.x,_.x,g),y:Va(x.y,_.y,g),colorStops:V(x.colorStops,function(w,M){var C=_.colorStops[M];return{offset:Va(w.offset,C.offset,g),color:Kv(db([],w.color,C.color,g))}}),global:_.global},b?(e[l].x2=Va(x.x2,_.x2,g),e[l].y2=Va(x.y2,_.y2,g)):e[l].r=Va(x.r,_.r,g)}else if(u)db(y,h[i],d[i],g),n||(e[l]=Kv(y));else{var S=Va(h[i],d[i],g);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Zv?e[n]=e[n]+i:r===Tp?(Wt(e[n],wp),Xv(wp,wp,i,1),e[n]=Kv(wp)):r===jv?Xv(e[n],e[n],i,1):r===kE&&ME(e[n],e[n],i,1)},t}(),bW=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Fs("Can' use additive animation on looped animation.");return}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(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,he(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new _W(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Tp&&u&&(u=Kv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,el(u),i),this._trackKeys.push(s)}l.addKeyframe(e,el(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new hE({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return V(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=el(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||he(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}(),Cp=bW});function tl(){return new Date().getTime()}var SW,EE,OE=k(()=>{q();qi();ib();$v();SW=function(t){N(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=tl()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yp(n),!r._paused&&r.update())}yp(n)},e.prototype.start=function(){this._running||(this._time=tl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=tl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=tl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Cp(r,n.loop);return this.addAnimator(i),i},e}(Nt),EE=SW});function Sb(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TW(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function _b(t){t&&(t.zrByTouch=!0)}function CW(t,e){return $r(t.dom,new MW(t,e),!0)}function NE(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}function AW(t,e){var r=e.domHandlers;xe.pointerEventsSupported?T(xb.pointer,function(n){Jv(e,n,function(i){r[n].call(t,i)})}):(xe.touchEventsSupported&&T(xb.touch,function(n){Jv(e,n,function(i){r[n].call(t,i),TW(e)})}),T(xb.mouse,function(n){Jv(e,n,function(i){i=wv(i),e.touching||r[n].call(t,i)})}))}function DW(t,e){xe.pointerEventsSupported?T(IE.pointer,r):xe.touchEventsSupported||T(IE.mouse,r);function r(n){function i(a){a=wv(a),NE(t,a.target)||(a=CW(t,a),e.domHandlers[n].call(t,a))}Jv(e,n,i,{capture:!0})}}function Jv(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,pp(t.domTarget,e,r,n)}function bb(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Vk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var wW,yb,xb,IE,RE,MW,Ci,wb,LE,kW,PE,zE=k(()=>{q();Ki();P();qi();Ht();wW=300,yb=xe.domSupported,xb=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=V(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),IE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},RE=!1;MW=function(){function t(e,r){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Ci={mousedown:function(t){t=$r(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=$r(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=$r(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=$r(this.dom,t);var e=t.toElement||t.relatedTarget;NE(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){RE=!0,t=$r(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){RE||(t=$r(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=$r(this.dom,t),_b(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ci.mousemove.call(this,t),Ci.mousedown.call(this,t)},touchmove:function(t){t=$r(this.dom,t),_b(t),this.handler.processGesture(t,"change"),Ci.mousemove.call(this,t)},touchend:function(t){t=$r(this.dom,t),_b(t),this.handler.processGesture(t,"end"),Ci.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<wW&&Ci.click.call(this,t)},pointerdown:function(t){Ci.mousedown.call(this,t)},pointermove:function(t){Sb(t)||Ci.mousemove.call(this,t)},pointerup:function(t){Ci.mouseup.call(this,t)},pointerout:function(t){Sb(t)||Ci.mouseout.call(this,t)}};T(["click","dblclick","contextmenu"],function(t){Ci[t]=function(e){e=$r(this.dom,e),this.trigger(t,e)}});wb={pointermove:function(t){Sb(t)||wb.mousemove.call(this,t)},pointerup:function(t){wb.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))}};LE=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),kW=function(t){N(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new LE(r,Ci),yb&&(i._globalHandlerScope=new LE(document,wb)),AW(i,i._localHandlerScope),i}return e.prototype.dispose=function(){bb(this._localHandlerScope),yb&&bb(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,yb&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?DW(this,n):bb(n)}},e}(Nt),PE=kW});var FE,rl,Mp,Ap,Dp,VE,nl=k(()=>{Ht();FE=1;xe.hasGlobalWindow&&(FE=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));rl=FE,Mp=.4,Ap="#333",Dp="#ccc",VE="#eee"});function il(t){return t>UE||t<-UE}function Ju(){return new Mb}function Ba(t,e){return L_(t,e,jn)}var BE,UE,al,$u,Tb,Cb,Mb,Ab,jn,$n,ta=k(()=>{bn();P();Lt();BE=Wn,UE=5e-5;al=[],$u=[],Tb=$e(),Cb=Math.abs,Mb=function(){function t(){}return t.prototype.getLocalTransform=function(e){return Ab(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return il(this.rotation)||il(this.x)||il(this.y)||il(this.scaleX-1)||il(this.scaleY-1)||il(this.skewX)||il(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(BE(n),this.invTransform=null);return}n=n||$e(),r?this.getLocalTransform(n):BE(n),e&&(r?Qr(n,e,n):Pa(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||$e(),xr(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(al);var n=al[0]<0?-1:1,i=al[1]<0?-1:1,a=((al[0]-n)*r+n)/al[0]||0,o=((al[1]-i)*r+i)/al[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||$e(),Qr($u,e.invTransform,r),r=$u);var n=this.originX,i=this.originY;(n||i)&&(Tb[4]=n,Tb[5]=i,Qr($u,r,Tb),$u[4]-=n,$u[5]-=i,r=$u),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&ot(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&ot(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Cb(e[0]-1)>1e-10&&Cb(e[3]-1)>1e-10?Math.sqrt(Cb(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ba(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,v=i+l;r[4]=-d*a-p*v*o,r[5]=-v*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&za(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ab=Mb.getLocalTransform;jn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];$n=Mb});function Mi(t){Qv||(Qv=new Ji(100)),t=t||Zr;var e=Qv.get(t);return e||(e={font:t,strWidthCache:new Ji(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:at.measureText("\u56FD",t).width,asciiCharWidth:at.measureText("a",t).width},Qv.put(t,e)),e}function EW(t){if(!(Db>=GE)){t=t||Zr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=at.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Db=GE:i>2&&Db++,e}}function kb(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=EW(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Ai(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=at.measureText(e,t.font).width,r.put(e,n)),n}function HE(t,e,r,n){var i=Ai(Mi(e),t),a=ol(e),o=No(0,i,r),s=Ua(0,a,n),l=new fe(o,s,i,a);return l}function Qu(t,e,r,n){var i=((t||"")+"").split(`
|
|
2
|
+
`),a=i.length;if(a===1)return HE(i[0],e,r,n);for(var o=new fe(0,0,0,0),s=0;s<i.length;s++){var l=HE(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function No(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Ua(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function ol(t){return Mi(t).stWideCharWidth}function tn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function sl(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=tn(n[0],r.width),u+=tn(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Qv,Db,GE,wn=k(()=>{Ct();xp();qr();Db=0,GE=5});function Rb(t,e,r,n,i){r=r||{};var a=[];ZE(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,v){r.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Lb(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function RW(t){return wt(t[0])}function LW(t,e,r){if(wt(e[r]))if(wt(t[r])||(t[r]=[]),Tt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Lb(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(RW(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Lb(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Lb(a,i,o);a.length=i.length}else t[r]=e[r]}function NW(t,e){return t===e||wt(t)&&wt(e)&&PW(t,e)}function PW(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function ZE(t,e,r,n,i,a,o,s){for(var l=he(n),u=i.duration,f=i.delay,c=i.additive,p=i.setToFinal,h=!j(a),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=n[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(j(y)&&!wt(y)&&!Ra(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}ZE(t,g,r[g],y,i,a&&a[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var x=v.length;if(!c&&x)for(var _=0;_<d.length;_++){var b=d[_];if(b.targetName===e){var S=b.stopTracks(v);if(S){var w=ue(d,b);d.splice(w,1)}}}if(i.force||(v=Ce(v,function(E){return!NW(n[E],r[E])}),x=v.length),x>0||i.force&&!o.length){var M=void 0,C=void 0,A=void 0;if(s){C={},p&&(M={});for(var _=0;_<x;_++){var g=v[_];C[g]=r[g],p?M[g]=n[g]:r[g]=n[g]}}else if(p){A={};for(var _=0;_<x;_++){var g=v[_];A[g]=el(r[g]),LW(r,n,g)}}var b=new Cp(r,!1,!1,c?Ce(d,function(O){return O.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),p&&M&&b.whenWithKeys(0,M,v),A&&b.whenWithKeys(0,A,v),b.whenWithKeys(u??500,s?C:n,v).delay(f||0),t.addAnimator(b,e),o.push(b)}}function YE(t,e,r,n){return!(r&&r.hoverLayer||n)||WE(t)||e&&WE(e)?tm:tf}function WE(t){return t.type==="text"||t.type==="tspan"}function XE(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Ob,Ib,OW,ef,IW,em,tm,tf,Nb,rm,nm=k(()=>{ta();$v();Ct();qi();wn();P();nl();Ir();ko();bn();Ob="__zr_normal__",Ib=jn.concat(["ignore"]),OW=ir(jn,function(t,e){return t[e]=!0,t},{ignore:!1}),ef={},IW=new fe(0,0,0,0),em=[],tm=0,tf=1,Nb=function(){function t(e){this.id=ip(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,p=void 0;if((c||f)&&(p=IW,n.layoutRect?p.copy(n.layoutRect):p.copy(this.getBoundingRect()),i||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ef,n,p):sl(ef,n,p),a.x=ef.x,a.y=ef.y,o=ef.align,s=ef.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=tn(h[0],p.width),v=tn(h[1],p.height)),u=!0,a.originX=-a.x+d+(i?0:p.x),a.originY=-a.y+v+(i?0:p.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new fe(0,0,0,0);a.getLocalTransform(em),xr(em,em),fe.copy(y,p),y.applyTransform(em)}else g.overflowRect=null;var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=void 0,b=void 0,S=void 0;x&&this.canBeInsideText()?(_=n.insideFill,b=n.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),S=!0)):(_=n.outsideFill,b=n.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),S=!0)),_=_||"#000",(_!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=zt,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Dp:Ap},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Wt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,en(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(j(e))for(var n=e,i=he(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Ob)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Ib)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Ob,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Ob,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ue(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Fs("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=YE(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,XE(this,n,l),l);var p=this._textGuide;return f&&f.useState(e,r,n,!!c),p&&p.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=tm,this.__dirty&=~zt),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],p=this._textContent,h=YE(this,p,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,XE(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=tm,this.__dirty&=~zt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ue(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ue(i,e),o=ue(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];G(r,a),a.textConfig&&(n=n||{},G(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==tf){var s=!(r&&i);r&&r.textConfig?(this.textConfig=G({},i?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Ib.length;f++){var c=Ib[f],p=a&&OW[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(p?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new $n,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=zt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new Cp(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ue(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Rb(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Rb(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Rb(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=tm,e.__dirty=zt;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();kt(Nb,Nt);kt(Nb,$n);rm=Nb});var qE,ye,rf=k(()=>{q();P();nm();Ct();qE=function(t){N(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=ue(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ue(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new fe(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(fe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(rm);qE.prototype.type="group";ye=qE});var om={};Or(om,{dispose:()=>BW,disposeAll:()=>UW,getElementSSRData:()=>Fb,getInstance:()=>GW,init:()=>am,registerPainter:()=>zb,registerSSRDataGetter:()=>Vb,version:()=>HW});function zW(t){delete ll[t]}function FW(t){if(!t)return!1;if(typeof t=="string")return Js(t,1)<Mp;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Js(e[i].color,1);return r/=n,r<Mp}return!1}function am(t,e){var r=new VW(ip(),t,e);return ll[r.id]=r,r}function BW(t){t.dispose()}function UW(){for(var t in ll)ll.hasOwnProperty(t)&&ll[t].dispose();ll={}}function GW(t){return ll[t]}function zb(t,e){im[t]=e}function Fb(t){if(typeof Pb=="function")return Pb(t)}function Vb(t){Pb=t}var im,ll,VW,Pb,HW,kp=k(()=>{Ht();P();Jk();aE();OE();zE();Ir();nl();rf();im={},ll={};VW=function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new iE,o=n.renderer||"canvas";im[o]||(o=he(im)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new im[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!xe.node&&!xe.worker&&!l?new PE(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?xe.touchEventsSupported:!!f,p=44,h;c&&(h=Z(n.pointerSize,p)),this.handler=new $k(a,s,u,s.root,h),this.animation=new EE({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=FW(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=tl(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=tl();r?(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(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof ye&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,zW(this.id))},t}();HW="6.1.0"});function YW(t){return t.replace(/^\s+|\s+$/g,"")}function Be(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function ZW(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return lm(t,e,r)}function lm(t,e,r){return W(t)?qW(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function qW(t){return!!YW(t).match(/%$/)}function De(t,e,r){return isNaN(e)?r?""+t:+t:(e=rt(Ae(0,e),sm),t=(+t).toFixed(e),r?t:+t)}function jE(t,e,r){return e==null&&(e=10),De(t,e,r)}function Mt(t){return t.sort(function(e,r){return e-r}),t}function Rr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(rn(t*e)/e===t)return r}return Bb(t)}function Bb(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Ae(0,o-n)}function $E(t,e){var r=nn(Po(t[1]-t[0])/Ep),n=rn(Po(tt(e[1]-e[0]))/Ep),i=rt(Ae(-r+n,0),sm);return isFinite(i)?i:sm}function nf(t,e,r){var n=tt(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Po(2*tt(r||1)*tt(n))/Ep,a=Po(tt(e))/Ep,o=Ae(0,ra(-i+a));return isFinite(o)||(o=NaN),o}function JE(t,e,r){if(!t[e])return 0;var n=KW(t,r);return n[e]||0}function KW(t,e){var r=ir(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=zo(10,e),i=V(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=V(i,function(h){return nn(h)}),s=ir(o,function(h,d){return h+d},0),l=V(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return V(o,function(h){return h/n})}function Ga(t,e){var r=Ae(Rr(t),Rr(e)),n=t+e;return r>sm?n:De(n,r)}function Ip(t){var e=WW*2;return(t%e+e)%e}function ul(t){return t>-KE&&t<KE}function Lr(t){if(t instanceof Date)return t;if(W(t)){var e=jW.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(rn(t))}function af(t){return zo(10,of(t))}function of(t){if(t===0)return 0;var e=nn(Po(t)/Ep);return t/zo(10,e)>=10&&e++,e}function Ha(t,e){var r=of(t),n=zo(10,r),i=t/n,a;return e===Ub?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,De(t,-r)}function QE(t,e){var r=(t.length-1)*e+1,n=nn(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function Rp(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Jn(t){var e=parseFloat(t);return e==t&&(e!==0||!W(t)||t.indexOf("x")<=0)?e:NaN}function Lp(t){return!isNaN(Jn(t))}function Np(){return rn(XW()*9)}function eO(t,e){return e===0?t:eO(e,t%e)}function Gb(t,e){return t==null?e:e==null?t:t*e/eO(t,e)}function Xt(t){return t!=null&&isFinite(t)}var KE,sm,rt,Ae,tt,rn,nn,ra,zo,Po,Ep,WW,XW,ze,Op,jW,Ub,Se=k(()=>{P();KE=1e-4,sm=20;rt=Math.min,Ae=Math.max,tt=Math.abs,rn=Math.round,nn=Math.floor,ra=Math.ceil,zo=Math.pow,Po=Math.log,Ep=Math.LN10,WW=Math.PI,XW=Math.random;ze=ZW;Op=zo(2,53)-1;jW=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;Ub=2});function rO(t,e,r){if(JW){if(r){if(tO[e])return;tO[e]=!0}console[t]($W+e)}}function nO(t,e){rO("warn",t,e)}function Hb(t,e){rO("error",t,e)}function Et(t){throw new Error(t)}var $W,tO,JW,fl=k(()=>{$W="[ECharts] ",tO={},JW=typeof console<"u"&&console.warn&&console.log});function iO(t,e,r){return(e-t)*r+t}function Ue(t){return t instanceof Array?t:t==null?[]:[t]}function zp(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}function Wa(t){return j(t)&&!U(t)&&!(t instanceof Date)?t.value:t}function sO(t){return j(t)&&!(t instanceof Array)}function lO(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=K();T(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=QW(t,o,r);return(n||i)&&eX(s,t,o,e),n&&tX(s,e),n||i?rX(s,e,i):a&&nX(s,e),iX(s),s}function QW(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||sf(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function eX(t,e,r,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=Pp(i.id),s=r.get(o);if(s!=null){var l=t[s];je(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function tX(t,e){T(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!sf(r)&&!sf(a)&&uO("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function rX(t,e,r){T(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||sf(i.existing)||i.existing&&n.id!=null&&!uO("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function nX(t,e){T(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function iX(t){var e=K();T(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),T(t,function(r){var n=r.newOption;je(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),T(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(j(a)){if(o.name=a.name!=null?Pp(a.name):i?i.name:aO+n,i)o.id=Pp(i.id);else if(a.id!=null)o.id=Pp(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function uO(t,e,r){var n=an(e[t],null),i=an(r[t],null);return n!=null&&i!=null&&n===i}function Pp(t){return an(t,"")}function an(t,e){return t==null?e:W(t)?t:Me(t)||Lu(t)?t+"":e}function lf(t){var e=t.name;return!!(e&&e.indexOf(aO))}function sf(t){return t&&t.id!=null&&Pp(t.id).indexOf(oO)===0}function fO(t){return oO+t}function cO(t,e,r){T(t,function(n){var i=n.newOption;j(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=aX(e,i,n.existing,r))})}function aX(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function pO(t,e){var r={},n={};return i(t||[],r),i(e||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=an(o[u].seriesId,null);if(c==null)return;for(var p=Ue(o[u].dataIndex),h=l&&l[c],d=0,v=p.length;d<v;d++){var m=p[d];h&&h[m]?h[m]=null:(s[c]||(s[c]={}))[m]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Qn(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?V(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?V(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ne(){var t="__ec_inner_"+oX++;return function(e){return e[t]||(e[t]={})}}function na(t,e,r){var n=Fp(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=ia(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Fp(t,e){var r;if(W(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=K(),a={},o=!1;return T(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ue(e.includeMainTypes,f)<0)){o=o||!!f;var p=i.get(f)||i.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function ia(t,e,r,n){n=n||xt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function dO(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function Wb(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function vO(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function mO(t){return t==="auto"?xe.domSupported?"html":"richText":t||"html"}function um(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Me(n)){var o=iO(r||0,n,i);return De(o,a?Math.max(Rr(r||0),Rr(n)):e)}else{if(W(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=iO(h,d,i);s[c]=De(o,a?Math.max(Rr(h),Rr(d)):e)}}return s}}function Zt(){return[1/0,-1/0]}function Vp(t,e){Di(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Xb(t,e){Di(e)&&e<t[0]&&(t[0]=e)}function Zb(t,e){Di(e)&&e>t[1]&&(t[1]=e)}function gO(t,e){ki(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Di(t){return t!=null&&isFinite(t)}function ki(t,e){return Di(t)&&Di(e)&&t<=e}function yO(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function uf(t){ki(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function ff(){var t="__ec_once_"+sX++;return function(e,r){Q(e,t)||(e[t]=1,r())}}function cf(t,e,r){var n=K(),i=0;T(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function xO(t){return t.value+""}function _O(t){return t+""}function Fo(t,e){return Z(e,!0)?t.seriesIndex+2:0}function fm(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function pf(t){return{overallReset:t}}var aO,oO,Yb,oX,xt,hO,Dae,sX,re=k(()=>{P();Ht();Se();aO="series\0",oO="\0_ec_\0";Yb=["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"];oX=Np();xt={useDefault:!0,enableAll:!1,enableNone:!1},hO={useDefault:!1,enableAll:!0,enableNone:!0};Dae=function(){function t(){}return t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t}();sX=Np()});function on(t){var e={main:"",sub:""};if(t){var r=t.split(lX);e.main=r[0]||"",e.sub=r[1]||""}return e}function uX(t){je(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function SO(t){return!!(t&&t[bO])}function hf(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return fX(n)?i=function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},ap(i,this)),G(i.prototype,r),i[bO]=!0,i.extend=this.extend,i.superCall=pX,i.superApply=hX,i.superClass=n,i}}function fX(t){return J(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function cm(t,e){t.extend=e.extend}function wO(t){var e=["__\0is_clz",cX++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function pX(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function hX(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vo(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){uX(i),n.prototype.type=i;var a=on(i);if(!a.sub)e[a.main]=n;else if(a.sub!==cl){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[cl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=on(n),a=[],o=e[i.main];return o&&o[cl]?T(o,function(s,l){l!==cl&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=on(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return T(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=on(n),a=e[i.main];return a&&a[cl]};function r(n){var i=e[n.main];return(!i||!i[cl])&&(i=e[n.main]={},i[cl]=!0),i}}var lX,cl,bO,cX,aa=k(()=>{q();P();lX=".",cl="___EC__COMPONENT__CONTAINER___",bO="___EC__EXTENDED_CLASS___";cX=Math.round(Math.random()*10)});function oa(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&ue(i,l)>=0||a&&ue(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var Bp=k(()=>{P()});var dX,vX,TO,CO=k(()=>{Bp();dX=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vX=oa(dX),TO=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return vX(this,e,r)},t}()});function AO(t){if(typeof t=="string"){var e=Kb.get(t);return e&&e.image}else return t}function Up(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Kb.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!df(e)&&a.pending.push(o)):(e=at.loadImage(t,MO,MO),e.__zrImageSrc=t,Kb.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function MO(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function df(t){return t&&t.width&&t.height}var Kb,pm=k(()=>{xp();qr();Kb=new Ji(50)});function Jb(t,e,r,n,i){var a={};return OO(a,t,e,r,n,i),a.text}function OO(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
|
+
`);a=IO(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)RO(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
4
|
+
`),t.isTruncated=s}function IO(t,e,r,n){n=n||{};var i=G({},n);r=Z(r,"..."),i.maxIterations=Z(n.maxIterations,2);var a=i.minChar=Z(n.minChar,0),o=i.fontMeasureInfo=Mi(e),s=o.asciiCharWidth;i.placeholder=Z(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Ai(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function RO(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Ai(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?gX(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Ai(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function gX(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=kb(r,t.charCodeAt(i));return i}function LO(t,e,r,n){var i=eS(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=ol(u),p=Z(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&n!=null&&(m=n-l);var g;v!=null&&(a==="break"||a==="breakAll")?g=i?PO(i,e.font,v,a==="breakAll",0).lines:[]:g=i?i.split(`
|
|
5
|
+
`):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var x=Math.floor(m/p);d=d||g.length>x,g=g.slice(0,x),y=g.length*p}if(i&&f&&v!=null)for(var _=IO(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)RO(b,g[S],_),g[S]=b.textLine,d=d||b.isTruncated;for(var w=m,M=0,C=Mi(u),S=0;S<g.length;S++)M=Math.max(Ai(C,g[S]),M);v==null&&(v=M);var A=v;return w+=l,A+=s,{lines:g,height:m,outerWidth:A,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:M,contentHeight:y,width:v,isTruncated:d}}function NO(t,e,r,n,i){var a=new xX,o=eS(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=jb.lastIndex=0,v;(v=jb.exec(o))!=null;){var m=v.index;m>d&&$b(a,o.substring(d,m),e,h),$b(a,v[2],e,h,v[1]),d=jb.lastIndex}d<o.length&&$b(a,o.substring(d,o.length),e,h);var g=[],y=0,x=0,_=p==="truncate",b=e.lineOverflow==="truncate",S={};function w(Oe,Qe,nt){Oe.width=Qe,Oe.lineHeight=nt,y+=nt,x=Math.max(x,Qe)}e:for(var M=0;M<a.lines.length;M++){for(var C=a.lines[M],A=0,E=0,O=0;O<C.tokens.length;O++){var D=C.tokens[O],L=D.styleName&&e.rich[D.styleName]||{},I=D.textPadding=L.padding,R=I?I[1]+I[3]:0,F=D.font=L.font||e.font;D.contentHeight=ol(F);var z=Z(L.height,D.contentHeight);if(D.innerHeight=z,I&&(z+=I[0]+I[2]),D.height=z,D.lineHeight=Kr(L.lineHeight,e.lineHeight,z),D.align=L&&L.align||i,D.verticalAlign=L&&L.verticalAlign||"middle",b&&c!=null&&y+D.lineHeight>c){var Y=a.lines.length;O>0?(C.tokens=C.tokens.slice(0,O),w(C,E,A),a.lines=a.lines.slice(0,M+1)):a.lines=a.lines.slice(0,M),a.isTruncated=a.isTruncated||a.lines.length<Y;break e}var B=L.width,X=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")D.percentWidth=B,g.push(D),D.contentWidth=Ai(Mi(F),D.text);else{if(X){var ee=L.backgroundColor,ie=ee&&ee.image;ie&&(ie=AO(ie),df(ie)&&(D.width=Math.max(D.width,ie.width*z/ie.height)))}var ae=_&&f!=null?f-E:null;ae!=null&&ae<D.width?!X||ae<R?(D.text="",D.width=D.contentWidth=0):(OO(S,D.text,ae-R,F,e.ellipsis,{minChar:e.truncateMinChar}),D.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,D.width=D.contentWidth=Ai(Mi(F),D.text)):D.contentWidth=Ai(Mi(F),D.text)}D.width+=R,E+=D.width,L&&(A=Math.max(A,D.lineHeight))}w(C,E,A)}a.outerWidth=a.width=Z(f,x),a.outerHeight=a.height=Z(c,y),a.contentHeight=y,a.contentWidth=x,a.outerWidth+=l,a.outerHeight+=u;for(var M=0;M<g.length;M++){var D=g[M],we=D.percentWidth;D.width=parseInt(we,10)/100*a.width}return a}function $b(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=tn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
6
|
+
`),u=!0),n.accumWidth=d}else{var v=PO(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
|
|
7
|
+
`));for(var m=Mi(l),g=0;g<f.length;g++){var y=f[g],x=new yX;if(x.styleName=i,x.text=y,x.isLineHolder=!y&&!a,typeof o.width=="number"?x.width=o.width:x.width=c?c[g]:Ai(m,y),!g&&!u){var _=(s[s.length-1]||(s[0]=new DO)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=x:(y||!b||a)&&_.push(x)}else s.push(new DO([x]))}}function _X(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}function SX(t){return _X(t)?!!bX[t]:!0}function PO(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=Mi(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
|
|
8
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=kb(c,h.charCodeAt(0)),v=n?!1:!SX(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Qb(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;fe.set(kO,No(r,o,i),Ua(n,s,a),o,s),fe.intersect(e,kO,null,EO);var l=EO.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=No(l.x,l.width,i,!0),t.baseY=Ua(l.y,l.height,a,!0)}}function eS(t){return t!=null?t+="":t=""}function zO(t){var e=eS(t.text),r=t.font,n=Ai(Mi(r),e),i=ol(r);return hm(t,n,i,null)}function hm(t,e,r,n){var i=new fe(No(t.x||0,e,t.textAlign),Ua(t.y||0,r,t.textBaseline),e,r),a=n??(tS(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function tS(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var jb,yX,DO,xX,bX,kO,EO,dm=k(()=>{pm();P();wn();Ct();jb=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;yX=function(){function t(){}return t}(),DO=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),xX=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();bX=ir(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});kO=new fe(0,0,0,0),EO={outIntersectRect:{},clamp:!0}});function CX(t,e,r){return rS.copy(t.getBoundingRect()),t.transform&&rS.applyTransform(t.transform),nS.width=e,nS.height=r,!rS.intersect(nS)}var iS,sa,pl,FO,wX,TX,rS,nS,_r,la=k(()=>{q();nm();Ct();P();ko();iS="__zr_style_"+Math.round(Math.random()*10),sa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},pl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sa[iS]=!0;FO=["z","z2","invisible"],wX=["invisible"],TX=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=he(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&CX(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new fe(0,0,0,0)),n?fe.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new fe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=js,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&js)},e.prototype.styleUpdated=function(){this.__dirty&=~js},e.prototype.createStyle=function(r){return La(sa,r)},e.prototype.useStyle=function(r){r[iS]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[iS]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,FO)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===tf,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=he(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=he(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?wX:FO,h=0;h<m.length;h++){var d=m[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return G(r,n),r},e.prototype.getAnimationStyleProps=function(){return pl},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=zt|js}(),e}(rm),rS=new fe(0,0,0,0),nS=new fe(0,0,0,0);_r=TX});function sS(t,e,r){if(t.length!==0){for(var n=t[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],i=sn(i,n[0]),a=ln(a,n[0]),o=sn(o,n[1]),s=ln(s,n[1]);e[0]=i,e[1]=o,r[0]=a,r[1]=s}}function lS(t,e,r,n,i,a){i[0]=sn(t,r),i[1]=sn(e,n),a[0]=ln(t,r),a[1]=ln(e,n)}function UO(t,e,r,n,i,a,o,s,l,u){var f=Ev,c=yt,p=f(t,r,i,o,VO);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,i,o,VO[h]);l[0]=sn(d,l[0]),u[0]=ln(d,u[0])}p=f(e,n,a,s,BO);for(var h=0;h<p;h++){var v=c(e,n,a,s,BO[h]);l[1]=sn(v,l[1]),u[1]=ln(v,u[1])}l[0]=sn(t,l[0]),u[0]=ln(t,u[0]),l[0]=sn(o,l[0]),u[0]=ln(o,u[0]),l[1]=sn(e,l[1]),u[1]=ln(e,u[1]),l[1]=sn(s,l[1]),u[1]=ln(s,u[1])}function GO(t,e,r,n,i,a,o,s){var l=Iv,u=$t,f=ln(sn(l(t,r,i),1),0),c=ln(sn(l(e,n,a),1),0),p=u(t,r,i,f),h=u(e,n,a,c);o[0]=sn(t,i,p),o[1]=sn(e,a,h),s[0]=ln(t,i,p),s[1]=ln(e,a,h)}function HO(t,e,r,n,i,a,o,s,l){var u=Hn,f=Yn,c=Math.abs(i-a);if(c%hl<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(vm[0]=oS(i)*r+t,vm[1]=aS(i)*n+e,mm[0]=oS(a)*r+t,mm[1]=aS(a)*n+e,u(s,vm,mm),f(l,vm,mm),i=i%hl,i<0&&(i=i+hl),a=a%hl,a<0&&(a=a+hl),i>a&&!o?a+=hl:i<a&&o&&(i+=hl),o){var p=a;a=i,i=p}for(var h=0;h<a;h+=Math.PI/2)h>i&&(gm[0]=oS(h)*r+t,gm[1]=aS(h)*n+e,u(s,gm,s),f(l,gm,l))}var sn,ln,aS,oS,hl,vm,mm,gm,VO,BO,uS=k(()=>{Lt();qn();sn=Math.min,ln=Math.max,aS=Math.sin,oS=Math.cos,hl=Math.PI*2,vm=Na(),mm=Na(),gm=Na();VO=[],BO=[]});function hS(t){var e=Math.round(t/dS*1e8)/1e8;return e%2*dS}function MX(t,e){var r=hS(t[0]);r<0&&(r+=Uo);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Uo?i=r+Uo:e&&r-i>=Uo?i=r-Uo:!e&&r>i?i=r+(Uo-hS(r-i)):e&&r<i&&(i=r-(Uo-hS(i-r))),t[0]=r,t[1]=i}var Ke,dl,vl,ua,Bo,fa,ca,fS,cS,ml,gl,Za,dS,Uo,pS,Gp,AX,Jt,pa=k(()=>{Lt();Ct();nl();uS();qn();Ke={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dl=[],vl=[],ua=[],Bo=[],fa=[],ca=[],fS=Math.min,cS=Math.max,ml=Math.cos,gl=Math.sin,Za=Math.abs,dS=Math.PI,Uo=dS*2,pS=typeof Float32Array<"u",Gp=[];AX=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Za(n/rl/e)||0,this._uy=Za(n/rl/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ke.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Za(e-this._xi),i=Za(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ke.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ke.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Ke.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Gp[0]=i,Gp[1]=a,MX(Gp,o),i=Gp[0],a=Gp[1];var s=a-i;return this.addData(Ke.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ml(a)*n+e,this._yi=gl(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Ke.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ke.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&pS&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(pS&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,pS&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){ua[0]=ua[1]=fa[0]=fa[1]=Number.MAX_VALUE,Bo[0]=Bo[1]=ca[0]=ca[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Ke.M:r=i=e[o++],n=a=e[o++],fa[0]=i,fa[1]=a,ca[0]=i,ca[1]=a;break;case Ke.L:lS(r,n,e[o],e[o+1],fa,ca),r=e[o++],n=e[o++];break;case Ke.C:UO(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],fa,ca),r=e[o++],n=e[o++];break;case Ke.Q:GO(r,n,e[o++],e[o++],e[o],e[o+1],fa,ca),r=e[o++],n=e[o++];break;case Ke.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(i=ml(h)*c+u,a=gl(h)*p+f),HO(u,f,c,p,h,d,v,fa,ca),r=ml(d)*c+u,n=gl(d)*p+f;break;case Ke.R:i=r=e[o++],a=n=e[o++];var m=e[o++],g=e[o++];lS(i,a,i+m,a+g,fa,ca);break;case Ke.Z:r=i,n=a;break}Hn(ua,ua,fa),Yn(Bo,Bo,ca)}return o===0&&(ua[0]=ua[1]=Bo[0]=Bo[1]=0),new fe(ua[0],ua[1],Bo[0]-ua[0],Bo[1]-ua[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,l=o);var v=-1;switch(h){case Ke.M:a=s=e[p++],o=l=e[p++];break;case Ke.L:{var m=e[p++],g=e[p++],y=m-a,x=g-o;(Za(y)>n||Za(x)>i||p===r-1)&&(v=Math.sqrt(y*y+x*x),a=m,o=g);break}case Ke.C:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++],S=e[p++],w=e[p++];v=fE(a,o,_,b,m,g,S,w,10),a=S,o=w;break}case Ke.Q:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++];v=pE(a,o,_,b,m,g,10),a=m,o=g;break}case Ke.A:var M=e[p++],C=e[p++],A=e[p++],E=e[p++],O=e[p++],D=e[p++],L=D+O;p+=1,d&&(s=ml(O)*A+M,l=gl(O)*E+C),v=cS(A,E)*fS(Uo,Math.abs(D)),a=ml(L)*A+M,o=gl(L)*E+C;break;case Ke.R:{s=a=e[p++],l=o=e[p++];var I=e[p++],R=e[p++];v=I*2+R*2;break}case Ke.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,d,v,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var S=0;S<o;){var w=n[S++],M=S===1;switch(M&&(u=n[S],f=n[S+1],s=u,l=f),w!==Ke.L&&x>0&&(e.lineTo(_,b),x=0),w){case Ke.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Ke.L:{c=n[S++],p=n[S++];var C=Za(c-u),A=Za(p-f);if(C>i||A>a){if(h){var E=d[g++];if(m+E>y){var O=(y-m)/E;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=E}e.lineTo(c,p),u=c,f=p,x=0}else{var D=C*C+A*A;D>x&&(_=c,b=p,x=D)}break}case Ke.C:{var L=n[S++],I=n[S++],R=n[S++],F=n[S++],z=n[S++],Y=n[S++];if(h){var E=d[g++];if(m+E>y){var O=(y-m)/E;Zn(u,L,R,z,O,dl),Zn(f,I,F,Y,O,vl),e.bezierCurveTo(dl[1],vl[1],dl[2],vl[2],dl[3],vl[3]);break e}m+=E}e.bezierCurveTo(L,I,R,F,z,Y),u=z,f=Y;break}case Ke.Q:{var L=n[S++],I=n[S++],R=n[S++],F=n[S++];if(h){var E=d[g++];if(m+E>y){var O=(y-m)/E;Yu(u,L,R,O,dl),Yu(f,I,F,O,vl),e.quadraticCurveTo(dl[1],vl[1],dl[2],vl[2]);break e}m+=E}e.quadraticCurveTo(L,I,R,F),u=R,f=F;break}case Ke.A:var B=n[S++],X=n[S++],ee=n[S++],ie=n[S++],ae=n[S++],we=n[S++],Oe=n[S++],Qe=!n[S++],nt=ee>ie?ee:ie,Re=Za(ee-ie)>.001,Ye=ae+we,_e=!1;if(h){var E=d[g++];m+E>y&&(Ye=ae+we*(y-m)/E,_e=!0),m+=E}if(Re&&e.ellipse?e.ellipse(B,X,ee,ie,Oe,ae,Ye,Qe):e.arc(B,X,nt,ae,Ye,Qe),_e)break e;M&&(s=ml(ae)*ee+B,l=gl(ae)*ie+X),u=ml(Ye)*ee+B,f=gl(Ye)*ie+X;break;case Ke.R:s=u=n[S],l=f=n[S+1],c=n[S++],p=n[S++];var Le=n[S++],dt=n[S++];if(h){var E=d[g++];if(m+E>y){var Ee=y-m;e.moveTo(c,p),e.lineTo(c+fS(Ee,Le),p),Ee-=Le,Ee>0&&e.lineTo(c+Le,p+fS(Ee,dt)),Ee-=dt,Ee>0&&e.lineTo(c+cS(Le-Ee,0),p+dt),Ee-=Le,Ee>0&&e.lineTo(c,p+cS(dt-Ee,0));break e}m+=E}e.rect(c,p,Le,dt);break;case Ke.Z:if(h){var E=d[g++];if(m+E>y){var O=(y-m)/E;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=E}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ke,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Jt=AX});function yl(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}var YO=k(()=>{});function WO(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var p=Ov(t,e,r,n,i,a,o,s,u,f,null);return p<=c/2}var XO=k(()=>{qn()});function ZO(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=Rv(t,e,r,n,i,a,s,l,null);return f<=u/2}var qO=k(()=>{qn()});function ei(t){return t%=KO,t<0&&(t+=KO),t}var KO,ym=k(()=>{KO=Math.PI*2});function jO(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Hp<1e-4)return!0;if(a){var c=n;n=ei(i),i=ei(c)}else n=ei(n),i=ei(i);n>i&&(i+=Hp);var p=Math.atan2(l,s);return p<0&&(p+=Hp),p>=n&&p<=i||p+Hp>=n&&p+Hp<=i}var Hp,$O=k(()=>{ym();Hp=Math.PI*2});function ti(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var vS=k(()=>{});function RX(t,e){return Math.abs(t-e)<IX}function LX(){var t=ri[0];ri[0]=ri[1],ri[1]=t}function NX(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=$s(e,n,a,s,u,Nr);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=Nr[v],g=m===0||m===1?.5:1,y=yt(t,r,i,o,m);y<l||(p<0&&(p=Ev(e,n,a,s,ri),ri[1]<ri[0]&&p>1&&LX(),h=yt(e,n,a,s,ri[0]),p>1&&(d=yt(e,n,a,s,ri[1]))),p===2?m<ri[0]?c+=h<e?g:-g:m<ri[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<ri[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function PX(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=cE(e,n,a,s,Nr);if(l===0)return 0;var u=Iv(e,n,a);if(u>=0&&u<=1){for(var f=0,c=$t(e,n,a,u),p=0;p<l;p++){var h=Nr[p]===0||Nr[p]===1?.5:1,d=$t(t,r,i,Nr[p]);d<o||(Nr[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Nr[0]===0||Nr[0]===1?.5:1,d=$t(t,r,i,Nr[0]);return d<o?0:a<e?h:-h}}function zX(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Nr[0]=-l,Nr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=xl-1e-4){n=0,i=xl;var f=a?1:-1;return o>=Nr[0]+t&&o<=Nr[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=xl,i+=xl);for(var p=0,h=0;h<2;h++){var d=Nr[h];if(d+t>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=xl+v),(v>=n&&v<=i||v+xl>=n&&v+xl<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function JO(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===Go.M&&d>1&&(r||(s+=ti(l,u,f,c,n,i))),m&&(l=a[d],u=a[d+1],f=l,c=u),v){case Go.M:f=a[d++],c=a[d++],l=f,u=c;break;case Go.L:if(r){if(yl(l,u,a[d],a[d+1],e,n,i))return!0}else s+=ti(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Go.C:if(r){if(WO(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=NX(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Go.Q:if(r){if(ZO(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=PX(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Go.A:var g=a[d++],y=a[d++],x=a[d++],_=a[d++],b=a[d++],S=a[d++];d+=1;var w=!!(1-a[d++]);p=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=p,c=h):s+=ti(l,u,p,h,n,i);var M=(n-g)*_/x+g;if(r){if(jO(g,y,_,b,b+S,w,e,M,i))return!0}else s+=zX(g,y,_,b,b+S,w,M,i);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case Go.R:f=l=a[d++],c=u=a[d++];var C=a[d++],A=a[d++];if(p=f+C,h=c+A,r){if(yl(f,c,p,c,e,n,i)||yl(p,c,p,h,e,n,i)||yl(p,h,f,h,e,n,i)||yl(f,h,f,c,e,n,i))return!0}else s+=ti(p,c,p,h,n,i),s+=ti(f,h,f,c,n,i);break;case Go.Z:if(r){if(yl(l,u,f,c,e,n,i))return!0}else s+=ti(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!RX(u,c)&&(s+=ti(l,u,f,c,n,i)||0),s!==0}function QO(t,e,r){return JO(t,0,!1,e,r)}function eI(t,e,r,n){return JO(t,e,!0,r,n)}var Go,xl,IX,Nr,ri,tI=k(()=>{pa();YO();XO();qO();$O();qn();vS();Go=Jt.CMD,xl=Math.PI*2,IX=1e-4;Nr=[-1,-1,-1],ri=[-1,-1]});var vf,VX,mS,BX,ce,At=k(()=>{q();la();nm();pa();tI();P();Ir();nl();ko();ta();vf=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sa),VX={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},pl.style)},mS=jn.concat(["invisible","culling","z","z2","zlevel","parent"]),BX=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<mS.length;++s)i[mS[s]]=this[mS[s]];i.__dirty|=zt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=he(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(W(r)){var n=Js(r,0);return n>.5?Ap:n>.2?VE:Dp}else if(r)return Dp}return Ap},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Js(r,0)<Mp;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Do},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Jt(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Do)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),eI(s,l/u,r,n)))return!0}if(this.hasFill())return QO(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Do,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:G(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Do)},e.prototype.createStyle=function(r){return La(vf,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==tf){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=G({},i.shape),G(u,n.shape)):(u=G({},a?this.shape:i.shape),G(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=he(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return VX},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){N(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return te(r.style)},o.prototype.getDefaultShape=function(){return te(r.shape)},o}(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=zt|js|Do}(),e}(_r),ce=BX});var UX,rI,_l,xm=k(()=>{q();la();At();P();qr();dm();UX=oe({strokeFirst:!0,font:Zr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},vf),rI=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return tS(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return La(UX,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=zO(this.style)),this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(_r);rI.prototype.type="tspan";_l=rI});function YX(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var GX,HX,nI,_t,Ho=k(()=>{q();la();Ct();P();GX=oe({x:0,y:0},sa),HX={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},pl.style)};nI=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return La(GX,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=YX(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return HX},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new fe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(_r);nI.prototype.type="image";_t=nI});function iI(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var aI=k(()=>{});function bl(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(mf(n*2)===mf(i*2)&&(t.x1=t.x2=Yo(n,s,!0)),mf(a*2)===mf(o*2)&&(t.y1=t.y2=Yo(a,s,!0))),t}}function _m(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Yo(n,s,!0),t.y=Yo(i,s,!0),t.width=Math.max(Yo(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Yo(i+o,s,!1)-t.y,o===0?0:1)),t}}function Yo(t,e,r){if(!e)return t;var n=mf(t*2);return(n+mf(e))%2===0?n/2:(n+(r?1:-1))/2}var mf,Yp=k(()=>{mf=Math.round});var ZX,qX,oI,be,bm=k(()=>{q();At();aI();Yp();ZX=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),qX={},oI=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZX},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=_m(qX,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?iI(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ce);oI.prototype.type="rect";be=oI});function yS(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?dv+"px":t+"px"}function fI(t,e){for(var r=0;r<uI.length;r++){var n=uI[r],i=e[n];i!=null&&(t[n]=i)}}function xS(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function JX(t){return cI(t),T(t.rich,cI),t}function cI(t){if(t){t.font=mI.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||jX[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||$X[r]?r:"top";var n=t.padding;n&&(t.padding=Vs(t.padding))}}function pI(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function hI(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function dI(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function vI(t){var e=t.text;return e!=null&&(e+=""),e}function gS(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var sI,lI,ha,KX,mI,jX,$X,uI,Ie,Sl=k(()=>{q();dm();xm();P();wn();Ho();bm();Ct();la();qr();sI={fill:"#000"},lI=2,ha={},KX={style:oe({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},pl.style)},mI=function(t){N(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=sI,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,JX(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);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 r=new fe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||sI},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return G(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=he(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},G(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return KX},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Zr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Qb(ha,a.overflowRect,o,s,l,u),o=ha.baseX,s=ha.baseY;var f=vI(r),c=LO(f,r,ha.outerWidth,ha.outerHeight),p=gS(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,x=Ua(s,c.contentHeight,u);if(p||i){var _=No(o,v,l),b=Ua(s,d,u);p&&this._renderBackground(r,r,_,b,v,d)}x+=g/2,i&&(y=dI(o,l,i),u==="top"?x+=i[0]:u==="bottom"&&(x-=i[2]));for(var S=0,w=!1,M=!1,C=hI("fill"in r?r.fill:(M=!0,a.fill)),A=pI("stroke"in r?r.stroke:!h&&(!a.autoStroke||M)?(S=lI,w=!0,a.stroke):null),E=r.textShadowBlur>0,O=0;O<m.length;O++){var D=this._getOrCreateChild(_l),L=D.createStyle();D.useStyle(L),L.text=m[O],L.x=y,L.y=x,l&&(L.textAlign=l),L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,E&&(L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0),L.stroke=A,L.fill=C,A&&(L.lineWidth=r.lineWidth||S,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,fI(L,r),x+=g,D.setBoundingRect(hm(L,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Qb(ha,n.overflowRect,o,s,i,a),o=ha.baseX,s=ha.baseY;var l=vI(r),u=NO(l,r,ha.outerWidth,ha.outerHeight,i),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=No(o,c,i),v=Ua(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;gS(r)&&this._renderBackground(r,r,d,v,c,p);for(var x=!!r.backgroundColor,_=0;_<u.lines.length;_++){for(var b=u.lines[_],S=b.tokens,w=S.length,M=b.lineHeight,C=b.width,A=0,E=m,O=y,D=w-1,L=void 0;A<w&&(L=S[A],!L.align||L.align==="left");)this._placeToken(L,r,M,g,E,"left",x),C-=L.width,E+=L.width,A++;for(;D>=0&&(L=S[D],L.align==="right");)this._placeToken(L,r,M,g,O,"right",x),C-=L.width,O-=L.width,D--;for(E+=(f-(E-m)-(y-O)-C)/2;A<=D;)L=S[A],this._placeToken(L,r,M,g,E+L.width/2,"center",x),E+=L.width,A++;g+=M}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var p=!r.isLineHolder&&gS(u);p&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=dI(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(_l),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=!1,b=hI("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),S=pI("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!g.autoStroke||y)?(x=lI,_=!0,g.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Zr,m.opacity=Kr(u.opacity,n.opacity,1),fI(m,u),S&&(m.lineWidth=Kr(u.lineWidth,n.lineWidth,x),m.lineDash=Z(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=S),b&&(m.fill=b),v.setBoundingRect(hm(m,r.contentWidth,r.contentHeight,_?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||u&&f){v=this._getOrCreateChild(be),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(_t),m.onload=function(){d.dirtyStyle()};var x=m.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(v||m).style;_.shadowBlur=r.shadowBlur||0,_.shadowColor=r.shadowColor||"transparent",_.shadowOffsetX=r.shadowOffsetX||0,_.shadowOffsetY=r.shadowOffsetY||0,_.opacity=Kr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return xS(r)&&(n=[r.fontStyle,r.fontWeight,yS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Yt(n)||r.textFont||r.font},e}(_r),jX={left:!0,right:1,center:1},$X={top:1,bottom:1,middle:1},uI=["fontStyle","fontWeight","fontSize","fontFamily"];Ie=mI});var ge,gI,Qt=k(()=>{re();ge=ne(),gI=function(t,e,r,n){if(n){var i=ge(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ge(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}}});var Wo,Sm,wm,er,qt,Pr,Tn,Cn,_S,Mn,da,un=k(()=>{P();Wo="undefined",Sm="series",wm=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),er="original",qt="arrayRows",Pr="objectRows",Tn="keyedColumns",Cn="typedArray",_S="unknown",Mn="column",da="row"});function yI(t,e){return e.mainType===Sm?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var QX,e8,Tm,Cm=k(()=>{P();un();QX=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],e8=function(){function t(e){T(QX,function(r){this[r]=$(e[r],e)},this)}return t}();Tm=e8});function gf(t){return t!=null&&t!=="none"}function km(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function MI(t){km(t,"emphasis",Xp)}function AI(t){t.hoverState===Xp&&km(t,"normal",TS)}function CS(t){km(t,"blur",Wp)}function DI(t){t.hoverState===Wp&&km(t,"normal",TS)}function n8(t){t.selected=!0}function i8(t){t.selected=!1}function bI(t,e,r){e(t,r)}function qa(t,e,r){bI(t,e,r),t.isGroup&&t.traverse(function(n){bI(n,e,r)})}function MS(t,e){switch(e){case"emphasis":t.hoverState=Xp;break;case"normal":t.hoverState=TS;break;case"blur":t.hoverState=Wp;break;case"select":t.selected=!0}}function a8(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function o8(t,e,r,n){var i=r&&ue(r,"select")>=0,a=!1;if(t instanceof ce){var o=CI(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(gf(s)||gf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=G({},n),u=G({},u),u.fill=s):!gf(u.fill)&&gf(s)?(a=!0,n=G({},n),u=G({},u),u.fill=Ku(s)):!gf(u.stroke)&&gf(l)&&(a||(n=G({},n),u=G({},u)),u.stroke=Ku(l)),n.style=u}}if(n&&n.z2==null){a||(n=G({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??t8)}return n}function s8(t,e,r){if(r&&r.z2==null){r=G({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??r8)}return r}function l8(t,e,r){var n=ue(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:a8(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?i:a.opacity*.1},o),r.style=o),r}function bS(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return o8(this,t,e,r);if(t==="blur")return l8(this,t,r);if(t==="select")return s8(this,t,r)}return r}function AS(t){t.stateProxy=bS;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=bS),r&&(r.stateProxy=bS)}function SI(t,e){!kI(t,e)&&!t.__highByOuter&&qa(t,MI)}function wI(t,e){!kI(t,e)&&!t.__highByOuter&&qa(t,AI)}function ni(t,e){t.__highByOuter|=1<<(e||0),qa(t,MI)}function ii(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&qa(t,AI)}function Em(t){qa(t,CS)}function jp(t){qa(t,DI)}function DS(t){qa(t,n8)}function kS(t){qa(t,i8)}function kI(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ES(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=wS(a),s=yI(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){DI(u)}),l&&r.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function SS(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&jp(p)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||CS(m)}),wt(e))a(u.getData(),e);else if(j(e))for(var d=he(e),v=0;v<d.length;v++)a(u.getData(d[v]),e[d[v]]);l.push(u),wS(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Mm(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){wS(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){CS(a)})}}}function EI(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Qn(i,e);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ge(o);SS(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&SS(n,f,c,r)}}}function Om(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ge(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function OI(t,e,r){var n=ge(t),i=Om(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Mm(n.componentMainType,n.componentIndex,r),T(a,function(s){return SI(s,e)})):(SS(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Mm(n.componentMainType,n.componentIndex,r),SI(t,e))}function II(t,e,r){ES(r);var n=ge(t),i=Om(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?T(i,function(a){return wI(a,e)}):wI(t,e)}function RI(t,e,r){if(Rm(e)){var n=e.dataType,i=t.getData(n),a=Qn(i,e);U(a)||(a=[a]),t[e.type===Kp?"toggleSelect":e.type===qp?"select":"unselect"](a,n)}}function OS(t){var e=t.getAllData();T(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?DS(a):kS(a)})})}function LI(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();T(n,function(i){var a=i.data,o=i.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Zo(t,e,r){Im(t,!0),qa(t,AS),f8(t,e,r)}function u8(t){Im(t,!1)}function zr(t,e,r,n){n?u8(t):Zo(t,e,r)}function f8(t,e,r){var n=ge(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}function wl(t,e,r,n){r=r||"itemStyle";for(var i=0;i<TI.length;i++){var a=TI[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=n?n(o):o[c8[r]]()}}function Im(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function $p(t){return!!(t&&t.__highDownDispatcher)}function NI(t){var e=_I[t];return e==null&&xI<=32&&(e=_I[t]=xI++),e}function Rm(t){var e=t.type;return e===qp||e===Am||e===Kp}function IS(t){var e=t.type;return e===Xo||e===Zp}function PI(t){var e=CI(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var xI,_I,CI,wS,TS,Wp,Xp,ar,yf,t8,r8,Xo,Zp,qp,Am,Kp,Dm,TI,c8,or=k(()=>{P();Qt();Ir();re();At();Cm();xI=1,_I={},CI=ne(),wS=ne(),TS=0,Wp=1,Xp=2,ar=["emphasis","blur","select"],yf=["normal","emphasis","blur","select"],t8=10,r8=9,Xo="highlight",Zp="downplay",qp="select",Am="unselect",Kp="toggleSelect",Dm="selectchanged";TI=["emphasis","blur","select"],c8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"}});function Lm(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=xf.M,c=xf.C,p=xf.L,h=xf.R,d=xf.A,v=xf.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=zI(e[0]*e[0]+e[1]*e[1]),x=zI(e[2]*e[2]+e[3]*e[3]),_=h8(-e[1]/x,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=x,r[o++]+=g,r[o++]*=y,r[o++]*=x,r[o++]+=_,r[o++]+=_,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],ot(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ot(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=p8[l];b[0]=r[o++],b[1]=r[o++],ot(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var xf,p8,zI,h8,FI=k(()=>{pa();Lt();xf=Jt.CMD,p8=[[],[],[]],zI=Math.sqrt,h8=Math.atan2});function VI(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function LS(t,e){return(t[0]*e[0]+t[1]*e[1])/(VI(t)*VI(e))}function BI(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(LS(t,e))}function UI(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Jp/180),p=Pm(c)*(t-r)/2+Nm(c)*(e-n)/2,h=-1*Nm(c)*(t-r)/2+Pm(c)*(e-n)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=RS(d),s*=RS(d));var v=(i===a?-1:1)*RS((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+Pm(c)*m-Nm(c)*g,x=(e+n)/2+Nm(c)*m+Pm(c)*g,_=BI([1,0],[(p-m)/o,(h-g)/s]),b=[(p-m)/o,(h-g)/s],S=[(-1*p-m)/o,(-1*h-g)/s],w=BI(b,S);if(LS(b,S)<=-1&&(w=Jp),LS(b,S)>=1&&(w=0),w<0){var M=Math.round(w/Jp*1e6)/1e6;w=Jp*2+M%2*Jp}f.addData(u,y,x,o,s,_,w,c,a)}function m8(t){var e=new Jt;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Jt.CMD,l=t.match(d8);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(v8)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,M=r,C=n,A=void 0,E=void 0;switch(c){case"l":r+=h[m++],n+=h[m++],p=s.L,e.addData(p,r,n);break;case"L":r=h[m++],n=h[m++],p=s.L,e.addData(p,r,n);break;case"m":r+=h[m++],n+=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="l";break;case"M":r=h[m++],n=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,n);break;case"H":r=h[m++],p=s.L,e.addData(p,r,n);break;case"v":n+=h[m++],p=s.L,e.addData(p,r,n);break;case"V":n=h[m++],p=s.L,e.addData(p,r,n);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":g=r,y=n,A=e.len(),E=e.data,o===s.C&&(g+=r-E[A-4],y+=n-E[A-3]),p=s.C,M=h[m++],C=h[m++],r=h[m++],n=h[m++],e.addData(p,g,y,M,C,r,n);break;case"s":g=r,y=n,A=e.len(),E=e.data,o===s.C&&(g+=r-E[A-4],y+=n-E[A-3]),p=s.C,M=r+h[m++],C=n+h[m++],r+=h[m++],n+=h[m++],e.addData(p,g,y,M,C,r,n);break;case"Q":M=h[m++],C=h[m++],r=h[m++],n=h[m++],p=s.Q,e.addData(p,M,C,r,n);break;case"q":M=h[m++]+r,C=h[m++]+n,r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,M,C,r,n);break;case"T":g=r,y=n,A=e.len(),E=e.data,o===s.Q&&(g+=r-E[A-4],y+=n-E[A-3]),r=h[m++],n=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"t":g=r,y=n,A=e.len(),E=e.data,o===s.Q&&(g+=r-E[A-4],y+=n-E[A-3]),r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"A":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],M=r,C=n,r=h[m++],n=h[m++],p=s.A,UI(M,C,r,n,S,w,x,_,b,p,e);break;case"a":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],M=r,C=n,r+=h[m++],n+=h[m++],p=s.A,UI(M,C,r,n,S,w,x,_,b,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=i,n=a),o=p}return e.toStatic(),e}function HI(t){return t.setData!=null}function YI(t,e){var r=m8(t),n=G({},e);return n.buildPath=function(i){var a=HI(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){Lm(r,i),this.dirtyShape()},n}function WI(t,e){return new GI(YI(t,e))}function XI(t,e){var r=YI(t,e),n=function(i){N(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(GI);return n}function ZI(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ce(e);return o.createPathProxy(),o.buildPath=function(s){if(HI(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function _f(t,e){e=e||{};var r=new ce;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?Lm(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var RS,Nm,Pm,Jp,d8,v8,GI,Qp=k(()=>{q();At();pa();FI();P();RS=Math.sqrt,Nm=Math.sin,Pm=Math.cos,Jp=Math.PI;d8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,v8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;GI=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(ce)});var y8,qI,Tl,KI=k(()=>{q();At();y8=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),qI=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new y8},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(ce);qI.prototype.type="circle";Tl=qI});var x8,jI,eh,$I=k(()=>{q();At();x8=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),jI=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new x8},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e}(ce);jI.prototype.type="ellipse";eh=jI});function b8(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,p=c*l-f*u;if(!(p*p<Ei))return p=(f*(e-a)-c*(t-i))/p,[t+p*l,e+p*u]}function zm(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/rh(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,d=r+f,v=n+c,m=(p+d)/2,g=(h+v)/2,y=d-p,x=v-h,_=y*y+x*x,b=i-a,S=p*v-d*h,w=(x<0?-1:1)*rh(th(0,b*b*_-S*S)),M=(S*x-y*w)/_,C=(-S*y-x*w)/_,A=(S*x+y*w)/_,E=(-S*y+x*w)/_,O=M-m,D=C-g,L=A-m,I=E-g;return O*O+D*D>L*L+I*I&&(M=A,C=E),{cx:M,cy:C,x0:-f,y0:-c,x1:M*(i/b-1),y1:C*(i/b-1)}}function S8(t){var e;if(U(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function eR(t,e){var r,n=th(e.r,0),i=th(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=JI(u-l),d=h>NS&&h%NS;if(d>Ei&&(h=d),!(n>Ei))t.moveTo(f,c);else if(h>NS-Ei)t.moveTo(f+n*bf(l),c+n*Cl(l)),t.arc(f,c,n,l,u,!p),i>Ei&&(t.moveTo(f+i*bf(u),c+i*Cl(u)),t.arc(f,c,i,u,l,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,M=void 0,C=void 0,A=void 0,E=void 0,O=void 0,D=void 0,L=void 0,I=n*bf(l),R=n*Cl(l),F=i*bf(u),z=i*Cl(u),Y=h>Ei;if(Y){var B=e.cornerRadius;B&&(r=S8(B),v=r[0],m=r[1],g=r[2],y=r[3]);var X=JI(n-i)/2;if(x=va(X,g),_=va(X,y),b=va(X,v),S=va(X,m),C=w=th(x,_),A=M=th(b,S),(w>Ei||M>Ei)&&(E=n*bf(u),O=n*Cl(u),D=i*bf(l),L=i*Cl(l),h<QI)){var ee=b8(I,R,D,L,E,O,F,z);if(ee){var ie=I-ee[0],ae=R-ee[1],we=E-ee[0],Oe=O-ee[1],Qe=1/Cl(_8((ie*we+ae*Oe)/(rh(ie*ie+ae*ae)*rh(we*we+Oe*Oe)))/2),nt=rh(ee[0]*ee[0]+ee[1]*ee[1]);C=va(w,(n-nt)/(Qe+1)),A=va(M,(i-nt)/(Qe-1))}}}if(!Y)t.moveTo(f+I,c+R);else if(C>Ei){var Re=va(g,C),Ye=va(y,C),_e=zm(D,L,I,R,n,Re,p),Le=zm(E,O,F,z,n,Ye,p);t.moveTo(f+_e.cx+_e.x0,c+_e.cy+_e.y0),C<w&&Re===Ye?t.arc(f+_e.cx,c+_e.cy,C,br(_e.y0,_e.x0),br(Le.y0,Le.x0),!p):(Re>0&&t.arc(f+_e.cx,c+_e.cy,Re,br(_e.y0,_e.x0),br(_e.y1,_e.x1),!p),t.arc(f,c,n,br(_e.cy+_e.y1,_e.cx+_e.x1),br(Le.cy+Le.y1,Le.cx+Le.x1),!p),Ye>0&&t.arc(f+Le.cx,c+Le.cy,Ye,br(Le.y1,Le.x1),br(Le.y0,Le.x0),!p))}else t.moveTo(f+I,c+R),t.arc(f,c,n,l,u,!p);if(!(i>Ei)||!Y)t.lineTo(f+F,c+z);else if(A>Ei){var Re=va(v,A),Ye=va(m,A),_e=zm(F,z,E,O,i,-Ye,p),Le=zm(I,R,D,L,i,-Re,p);t.lineTo(f+_e.cx+_e.x0,c+_e.cy+_e.y0),A<M&&Re===Ye?t.arc(f+_e.cx,c+_e.cy,A,br(_e.y0,_e.x0),br(Le.y0,Le.x0),!p):(Ye>0&&t.arc(f+_e.cx,c+_e.cy,Ye,br(_e.y0,_e.x0),br(_e.y1,_e.x1),!p),t.arc(f,c,i,br(_e.cy+_e.y1,_e.cx+_e.x1),br(Le.cy+Le.y1,Le.cx+Le.x1),p),Re>0&&t.arc(f+Le.cx,c+Le.cy,Re,br(Le.y1,Le.x1),br(Le.y0,Le.x0),!p))}else t.lineTo(f+F,c+z),t.arc(f,c,i,u,l,p)}t.closePath()}}}var QI,NS,Cl,bf,_8,br,JI,rh,th,va,Ei,tR=k(()=>{P();QI=Math.PI,NS=QI*2,Cl=Math.sin,bf=Math.cos,_8=Math.acos,br=Math.atan2,JI=Math.abs,rh=Math.sqrt,th=Math.max,va=Math.min,Ei=1e-4});var T8,rR,An,PS=k(()=>{q();At();tR();T8=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),rR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new T8},e.prototype.buildPath=function(r,n){eR(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ce);rR.prototype.type="sector";An=rR});var C8,nR,nh,iR=k(()=>{q();At();C8=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),nR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new C8},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(ce);nR.prototype.type="ring";nh=nR});function zS(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Hn(f,f,t[p]),Yn(c,c,t[p]);Hn(f,f,n[0]),Yn(c,c,n[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){i.push(z_(t[p]));continue}else l=t[p-1],u=t[p+1];lp(a,u,l),up(a,a,e);var v=fp(d,l),m=fp(d,u),g=v+m;g!==0&&(v/=g,m/=g),up(o,a,-v),up(s,a,m);var y=xv([],d,o),x=xv([],d,s);n&&(Yn(y,y,f),Hn(y,y,c),Yn(x,x,f),Hn(x,x,c)),i.push(y),i.push(x)}return r&&i.push(i.shift()),i}var aR=k(()=>{Lt()});function Fm(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=zS(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var FS=k(()=>{aR()});var M8,sR,sr,VS=k(()=>{q();At();FS();M8=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),sR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new M8},e.prototype.buildPath=function(r,n){Fm(r,n,!0)},e}(ce);sR.prototype.type="polygon";sr=sR});var A8,lR,fn,uR=k(()=>{q();At();FS();A8=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),lR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new A8},e.prototype.buildPath=function(r,n){Fm(r,n,!1)},e}(ce);lR.prototype.type="polyline";fn=lR});var D8,k8,fR,pr,cR=k(()=>{q();At();Yp();D8={},k8=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),fR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new k8},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=bl(D8,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(ce);fR.prototype.type="line";pr=fR});function pR(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?ob:yt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ob:yt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?sb:$t)(t.x1,t.cpx1,t.x2,e),(r?sb:$t)(t.y1,t.cpy1,t.y2,e)]}var cn,E8,hR,Ml,dR=k(()=>{q();At();Lt();qn();cn=[],E8=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();hR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new E8},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,p=n.percent;p!==0&&(r.moveTo(i,a),f==null||c==null?(p<1&&(Yu(i,l,o,p,cn),l=cn[1],o=cn[2],Yu(a,u,s,p,cn),u=cn[1],s=cn[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Zn(i,l,f,o,p,cn),l=cn[1],f=cn[2],o=cn[3],Zn(a,u,c,s,p,cn),u=cn[1],c=cn[2],s=cn[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return pR(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=pR(this.shape,r,!0);return Gs(n,n)},e}(ce);hR.prototype.type="bezier-curve";Ml=hR});var O8,vR,Al,mR=k(()=>{q();At();O8=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),vR=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new O8},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e}(ce);vR.prototype.type="arc";Al=vR});var I8,qo,BS=k(()=>{q();At();I8=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ce.prototype.getBoundingRect.call(this)},e}(ce),qo=I8});var R8,Vm,US=k(()=>{R8=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),Vm=R8});var L8,Ko,GS=k(()=>{q();US();L8=function(t){N(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(Vm),Ko=L8});var N8,Bm,gR=k(()=>{q();US();N8=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(Vm),Bm=N8});var HS,P8,Um,Dl,kl,lr,Gm,Hm,z8,Ym,yR=k(()=>{Bu();Ct();HS=Math.min,P8=Math.max,Um=Math.abs,Dl=[0,0],kl=[0,0],lr=J_(),Gm=lr.minTv,Hm=lr.maxTv,z8=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new me;for(var n=0;n<2;n++)this._axes[n]=new me;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);me.sub(i[0],n[1],n[0]),me.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&me.set(r,0,0),lr.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!lr.negativeSize&&me.copy(r,i?lr.useDir?lr.dirMinTv:Gm:Hm),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Dl),e._getProjMinMaxOnAxis(o,r._corners,kl),lr.negativeSize||Dl[1]<kl[0]||Dl[0]>kl[1]){if(a=!1,lr.negativeSize||n)return a;var l=Um(kl[0]-Dl[1]),u=Um(Dl[0]-kl[1]);HS(l,u)>Hm.len()&&(l<u?me.scale(Hm,s,-l*i):me.scale(Hm,s,u*i))}else if(!n){var l=Um(kl[0]-Dl[1]),u=Um(Dl[0]-kl[1]);(lr.useDir||HS(l,u)<Gm.len())&&((l<u||!lr.bidirectional)&&(me.scale(Gm,s,l*i),lr.useDir&&lr.calcDirMTV()),(l>=u||!lr.bidirectional)&&(me.scale(Gm,s,-u*i),lr.useDir&&lr.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=HS(f,s),l=P8(f,l)}n[0]=s+lr.touchThreshold,n[1]=l-lr.touchThreshold,lr.negativeSize=n[1]<n[0]},t}(),Ym=z8});var YS,xR,_R,bR,Sf,Wm=k(()=>{YS=0,xR=1,_R=2,bR=1,Sf=0});var F8,V8,Xm,SR=k(()=>{q();la();Ct();Wm();F8=[],V8=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=xR,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new fe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(F8)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(_r),Xm=V8});function ma(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Z(n.duration,200),f=Z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),J(c)&&(c=c(r,i)),J(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function WS(t,e,r,n,i,a,o){var s=!1,l;J(i)?(o=a,a=i,i=null):j(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=ma(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function We(t,e,r,n,i,a){WS("update",t,e,r,n,i,a)}function vt(t,e,r,n,i,a){WS("enter",t,e,r,n,i,a)}function Ka(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function wf(t,e,r,n,i,a){Ka(t)||WS("leave",t,e,r,n,i,a)}function wR(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),wf(t,{style:{opacity:0}},e,r,n)}function Tf(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||wR(i,e,r,n)}):wR(t,e,r,n)}function Zm(t){TR(t).oldStyle=t.style}function CR(t){return TR(t).oldStyle}var TR,jo=k(()=>{P();re();TR=ne()});var Xe={};Or(Xe,{Arc:()=>Al,BezierCurve:()=>Ml,BoundingRect:()=>fe,Circle:()=>Tl,CompoundPath:()=>qo,Ellipse:()=>eh,Group:()=>ye,HOVER_LAYER_FOR_INCREMENTAL:()=>Oi,HOVER_LAYER_FROM_THRESHOLD:()=>jS,HOVER_LAYER_NO:()=>KS,Image:()=>_t,IncrementalDisplayable:()=>Xm,Line:()=>pr,LinearGradient:()=>Ko,OrientedBoundingRect:()=>Ym,Path:()=>ce,Point:()=>me,Polygon:()=>sr,Polyline:()=>fn,RadialGradient:()=>Bm,Rect:()=>be,Ring:()=>nh,Sector:()=>An,Text:()=>Ie,WH:()=>ai,XY:()=>Fr,applyTransform:()=>Ri,calcZ2Range:()=>X8,clipPointsByRect:()=>oh,clipRectByRect:()=>t1,createIcon:()=>$a,decomposeTransform:()=>q8,ensureCopyRect:()=>Af,ensureCopyTransform:()=>$m,expandOrShrinkRect:()=>Mf,extendPath:()=>JS,extendShape:()=>$S,getCurrentCanvasPainter:()=>K8,getShapeClass:()=>Cf,getTransform:()=>Ii,groupTransition:()=>e1,initProps:()=>vt,isBoundingRectAxisAligned:()=>jm,isElementRemoved:()=>Ka,lineLineIntersect:()=>kR,linePolygonIntersect:()=>Y8,makeImage:()=>ah,makePath:()=>ja,mergePath:()=>QS,payloadDisableAnimation:()=>Z8,registerShape:()=>Dn,removeElement:()=>wf,removeElementWithFadeOut:()=>Tf,resizePath:()=>Km,retrieveZInfo:()=>ga,setTooltipConfig:()=>$o,subPixelOptimize:()=>G8,subPixelOptimizeLine:()=>El,subPixelOptimizeRect:()=>U8,transformDirection:()=>Ol,traverseElements:()=>kn,traverseUpdateZ:()=>sh,updateProps:()=>We});function $S(t){return ce.extend(t)}function JS(t,e){return B8(t,e)}function Dn(t,e){ZS[t]=e}function Cf(t){if(ZS.hasOwnProperty(t))return ZS[t]}function ja(t,e,r,n){var i=WI(t,e);return r&&(n==="center"&&(r=DR(r,i.getBoundingRect())),Km(i,r)),i}function ah(t,e,r){var n=new _t({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(DR(e,a))}}});return n}function DR(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}function Km(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function El(t,e){return bl(t,t,{lineWidth:e}),t}function U8(t,e){return _m(t,t,e),t}function Ii(t,e){for(var r=Wn([]);t&&t!==e;)Qr(r,t.getLocalTransform(),r),t=t.parent;return r}function Ri(t,e,r){return e&&!wt(e)&&(e=$n.getLocalTransform(e)),r&&(e=xr([],e)),ot([],t,e)}function Ol(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:tt(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:tt(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Ri(a,e,r),tt(a[0])>tt(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function MR(t){return!t.isGroup}function H8(t){return t.shape!=null}function e1(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){MR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return H8(o)&&(s.shape=te(o.shape)),s}var a=n(t);e.traverse(function(o){if(MR(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),We(o,l,r,ge(o).dataIndex)}}})}function oh(t,e){return V(t,function(r){var n=r[0];n=Ae(n,e.x),n=rt(n,e.x+e.width);var i=r[1];return i=Ae(i,e.y),i=rt(i,e.y+e.height),[n,i]})}function t1(t,e){var r=Ae(t.x,e.x),n=rt(t.x+t.width,e.x+e.width),i=Ae(t.y,e.y),a=rt(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function $a(t,e,r){var n=G({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),oe(i,r),new _t(n)):ja(t.replace("path://",""),n,r,"center")}function Y8(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(kR(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function kR(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,p=XS(f,c,l,u);if(W8(p))return!1;var h=t-i,d=e-a,v=XS(h,d,l,u)/p;if(v<0||v>1)return!1;var m=XS(h,d,f,c)/p;return!(m<0||m>1)}function XS(t,e,r,n){return t*n-r*e}function W8(t){return t<=1e-6&&t>=-1e-6}function Mf(t,e,r,n,i){return e==null||(Me(e)?ct[0]=ct[1]=ct[2]=ct[3]=e:(ct[0]=e[0],ct[1]=e[1],ct[2]=e[2],ct[3]=e[3]),n&&(ct[0]=Ae(0,ct[0]),ct[1]=Ae(0,ct[1]),ct[2]=Ae(0,ct[2]),ct[3]=Ae(0,ct[3])),r&&(ct[0]=-ct[0],ct[1]=-ct[1],ct[2]=-ct[2],ct[3]=-ct[3]),AR(t,ct,"x","width",3,1,i&&i[0]||0),AR(t,ct,"y","height",0,2,i&&i[1]||0)),t}function AR(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Ae(0,rt(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:tt(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function $o(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=W(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&T(he(l),function(f){Q(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ge(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:oe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function qS(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function kn(t,e){if(t)if(U(t))for(var r=0;r<t.length;r++)qS(t[r],e);else qS(t,e)}function jm(t){return!t||tt(t[1])<qm&&tt(t[2])<qm||tt(t[0])<qm&&tt(t[3])<qm}function Af(t,e){return t?fe.copy(t,e):e.clone()}function $m(t,e){return e?Pa(t||$e(),e):void 0}function ga(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function X8(t){var e=-1/0,r=1/0;qS(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function sh(t,e,r){ER(t,e,r,-1/0)}function ER(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Ae(ER(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Ae(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function Z8(t){return t.animation={duration:0},t}function q8(t,e){return e?Pa(ih.transform,e):Wn(ih.transform),ih.decomposeTransform(),Ba(t,ih),t}function K8(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}var ZS,Fr,ai,KS,jS,Oi,B8,QS,G8,ct,qm,ih,Te=k(()=>{Qp();bn();Lt();At();ta();Ho();rf();Sl();KI();$I();PS();iR();VS();uR();bm();cR();dR();mR();BS();GS();gR();Ct();yR();Bu();SR();Yp();P();Qt();jo();Se();ZS={},Fr=["x","y"],ai=["width","height"],KS=0,jS=1,Oi=2;B8=XI;QS=ZI;G8=Yo;ct=[0,0,0,0];qm=1e-5;ih=new $n;ih.transform=$e();Dn("circle",Tl);Dn("ellipse",eh);Dn("sector",An);Dn("ring",nh);Dn("polygon",sr);Dn("polyline",fn);Dn("rect",be);Dn("line",pr);Dn("bezierCurve",Ml);Dn("arc",Al)});function NR(t,e){for(var r=0;r<ar.length;r++){var n=ar[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function r1(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=J(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<ar.length;u++){var f=ar[u],c=e[f];l[f]=Z(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function pn(t,e,r,n){r=r||Jm;for(var i=t instanceof Ie,a=!1,o=0;o<yf.length;o++){var s=e[yf[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Ie,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=r1(r,e),f=e.normal,c=!!f.getShallow("show"),p=pt(f,n&&n.normal,r,!1,!i);p.text=u.normal,i||t.setTextConfig(lh(f,r,!1));for(var o=0;o<ar.length;o++){var h=ar[o],s=e[h];if(s){var d=l.ensureState(h),v=!!Z(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=pt(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var m=t.ensureState(h);m.textConfig=lh(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Ja(l).setLabelText=function(g){var y=r1(r,e,g);NR(l,y)})}else l&&(l.ignore=!0);t.dirty()}function hr(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<ar.length;n++){var i=ar[n];r[i]=t.getModel([i,e])}return r}function pt(t,e,r,n,i){var a={};return j8(a,t,r,n,i),e&&G(a,e),a}function lh(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function j8(t,e,r,n,i){r=r||Jm;var a=e.ecModel,o=a&&a.option.textStyle,s=$8(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);LR(l[c]={},p,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=Me(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Il.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=Vs(g),v.__marginType=Il.textMargin)}LR(t,e,o,null,null,r,n,i,!0,!1)}function $8(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Jm).rich;if(r){e=e||{};for(var n=he(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}function LR(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Jm;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=Z(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<OR.length;g++){var y=OR[g],x=i!==!1&&n?Kr(e.getShallow(y),n.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);x!=null&&(t[y]=x)}for(var g=0;g<IR.length;g++){var y=IR[g],x=e.getShallow(y);x!=null&&(t[y]=x)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!l||!a.disableBox){for(var g=0;g<RR.length;g++){var y=RR[g],x=e.getShallow(y);x!=null&&(t[y]=x)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function Df(t,e){var r=e&&e.getModel("textStyle");return Yt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}function PR(t,e,r,n){if(t){var i=Ja(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function zR(t,e,r,n,i){var a=Ja(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Z(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=um(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var p=r1({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);NR(t,p)}t.percent=0,(a.prevValue==null?vt:We)(t,{percent:1},n,e,null,u)}var Jm,OR,IR,RR,Ja,Il,Ot=k(()=>{Sl();P();or();re();Te();Jm={};OR=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],IR=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],RR=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];Ja=ne();Il={minMargin:1,textMargin:2}});var Q8,n1,i1,eZ,FR,VR=k(()=>{Ot();Sl();Q8=["textStyle","color"],n1=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],i1=new Ie,eZ=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(Q8):null)},t.prototype.getFont=function(){return Df({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<n1.length;n++)r[n1[n]]=this.getShallow(n1[n]);return i1.useStyle(r),i1.update(),i1.getBoundingRect()},t}(),FR=eZ});var a1,tZ,BR,o1=k(()=>{Bp();a1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tZ=oa(a1),BR=function(){function t(){}return t.prototype.getLineStyle=function(e){return tZ(this,e)},t}()});var s1,rZ,UR,l1=k(()=>{Bp();s1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],rZ=oa(s1),UR=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return rZ(this,e,r)},t}()});var Rl,Ge,hn=k(()=>{Ht();aa();CO();VR();o1();l1();P();Rl=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){de(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(te(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!xe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();hf(Rl);wO(Rl);kt(Rl,BR);kt(Rl,UR);kt(Rl,TO);kt(Rl,FR);Ge=Rl});function ya(t){return[t||"",nZ++].join("_")}function GR(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=on(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=on(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function HR(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(T(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(l,h,d.originalDeps.slice()),delete p[h]),T(d.successor,v?g:m)}T(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return T(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(p){ue(u.predecessor,p)<0&&u.predecessor.push(p);var h=n(o,p);ue(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(l){ue(o,l)>=0&&s.push(l)}),s}}function oi(t,e){return de(de({},t,!0),e,!0)}var nZ,si=k(()=>{P();aa();nZ=Math.round(Math.random()*10)});var YR,WR=k(()=>{YR={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}});var XR,ZR=k(()=>{XR={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}}});function rg(t,e){t=t.toUpperCase(),c1[t]=new Ge(e),Qm[t]=e}function qR(t){if(W(t)){var e=Qm[t.toUpperCase()]||{};return t===eg||t===f1?te(e):de(te(e),te(Qm[kf]),!1)}else return de(te(t),te(Qm[kf]),!1)}function KR(t){return c1[t]}function jR(){return c1[kf]}var eg,f1,kf,Qm,c1,tg,ng=k(()=>{hn();Ht();WR();ZR();P();eg="ZH",f1="EN",kf=f1,Qm={},c1={},tg=xe.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||kf).toUpperCase();return t.indexOf(eg)>-1?eg:kf}():kf;rg(f1,YR);rg(eg,XR)});function $R(t){p1||(p1=t)}function Ze(){return p1}function ig(t,e){var r=Ze(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Ll(t){var e=t.brk;return e?e.breaks:[]}function Nl(t){var e=t.brk;return e?e.hasBreaks():!1}var p1,En=k(()=>{p1=null});function QR(t){return!W(t)&&!J(t)?oZ(t):t}function oZ(t){t=t||{};var e={},r=!0;return T(dn,function(n){r&&(r=t[n]==null)}),T(dn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=dn[s],u=j(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):W(u)?(o=u,f=[o]):(o==null?o=og[n]:iZ[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function Sr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Of(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 eL(t){return t===Of(t)}function tL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qa(t,e,r,n){var i=Lr(t),a=i[v1(r)](),o=i[ug(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[fg(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[cg(r)](),c=(f-1)%12+1,p=i[pg(r)](),h=i[hg(r)](),d=i[dg(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=n instanceof Ge?n:KR(n||tg)||jR(),y=g.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Sr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Sr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Sr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Sr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Sr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Sr(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Sr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Sr(d,3)).replace(/{S}/g,d+"")}function rL(t,e,r,n,i){var a=null;if(W(r))a=r;else if(J(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ze();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Pl(t.value,i);a=r[f][f][0]}}return Qa(new Date(t.value),a,i,n)}function Pl(t,e){var r=Lr(t),n=r[ug(e)]()+1,i=r[fg(e)](),a=r[cg(e)](),o=r[pg(e)](),s=r[hg(e)](),l=r[dg(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&i===1,d=h&&n===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function If(t,e,r){switch(e){case"year":t[m1(r)](0);case"month":t[g1(r)](1);case"day":t[y1(r)](0);case"hour":t[x1(r)](0);case"minute":t[_1(r)](0);case"second":t[b1(r)](0)}return t}function v1(t){return t?"getUTCFullYear":"getFullYear"}function ug(t){return t?"getUTCMonth":"getMonth"}function fg(t){return t?"getUTCDate":"getDate"}function cg(t){return t?"getUTCHours":"getHours"}function pg(t){return t?"getUTCMinutes":"getMinutes"}function hg(t){return t?"getUTCSeconds":"getSeconds"}function dg(t){return t?"getUTCMilliseconds":"getMilliseconds"}function nL(t){return t?"setUTCFullYear":"setFullYear"}function m1(t){return t?"setUTCMonth":"setMonth"}function g1(t){return t?"setUTCDate":"setDate"}function y1(t){return t?"setUTCHours":"setHours"}function x1(t){return t?"setUTCMinutes":"setMinutes"}function _1(t){return t?"setUTCSeconds":"setSeconds"}function b1(t){return t?"setUTCMilliseconds":"setMilliseconds"}var sg,lg,Ef,On,h1,iZ,og,aZ,ag,d1,dn,JR,Rf=k(()=>{P();Se();ng();hn();En();sg=1e3,lg=sg*60,Ef=lg*60,On=Ef*24,h1=On*365,iZ={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})/},og={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},aZ="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ag="{yyyy}-{MM}-{dd}",d1={year:"{yyyy}",month:"{yyyy}-{MM}",day:ag,hour:ag+" "+og.hour,minute:ag+" "+og.minute,second:ag+" "+og.second,millisecond:aZ},dn=["year","month","day","hour","minute","second","millisecond"],JR=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"]});function S1(t,e,r,n,i,a,o,s){var l=new Ie({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var iL=k(()=>{Te()});function uh(t){if(!Lp(t))return W(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Lf(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function vg(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Yt(f)?f:"-"}function a(f){return Xt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Lr(t):t;if(isNaN(+l)){if(s)return"-"}else return Qa(l,n,r)}if(e==="ordinal")return Lu(t)?i(t):Me(t)&&a(t)?t+"":"-";var u=Jn(t);return a(u)?uh(u):Lu(t)?i(t):typeof t=="boolean"?t+"":"-"}function Nf(t,e,r){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=aL[a];t=t.replace(w1(o),w1(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(w1(aL[l],s),r?Pt(u):u)}return t}function mg(t,e){var r=W(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function oL(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
9
|
+
yyyy`);var n=Lr(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",Sr(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Sr(a%100+"",2)).replace("dd",Sr(s,2)).replace("d",s).replace("hh",Sr(l,2)).replace("h",l).replace("mm",Sr(u,2)).replace("m",u).replace("ss",Sr(f,2)).replace("s",f).replace("SSS",Sr(c,3)),t}function sL(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Li(t,e){return e=e||"transparent",W(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function T1(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var li,aL,w1,vn=k(()=>{P();cp();Se();Rf();dm();iL();li=Vs;aL=["a","b","c","d","e","f","g"],w1=function(t,e){return"{"+t+(e??"")+"}"}});function lZ(t){return!!yg[t]}function _g(t){var e=t.getShallow("coord",!0),r=uZ;if(e==null){var n=fZ.get(t.type);n&&n.getCoord2&&(r=lL,e=n.getCoord2(t))}return{coord:e,from:r}}function pZ(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=Pf;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=xg,o||(a=Pf)):n==="box"&&(a=cZ,!o&&!lZ(r)&&(a=Pf))}return{coordSysType:r,kind:a}}function uL(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound,o=pZ(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==xg&&(s=xg,l=r),s===Pf||l!==r)return Pf;var u=n(r,e);return u?(s===xg?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Pf}var yg,C1,sZ,uZ,lL,fZ,Pf,xg,cZ,Jo,zl=k(()=>{P();yg={},C1={},sZ=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(yg,!0),this._normalMasterList=n(C1,!1);function n(i,a){var o=[];return T(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){T(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){yg[e]=r;return}C1[e]=r},t.get=function(e){return C1[e]||yg[e]},t}();uZ=1,lL=2,fZ=K();Pf=0,xg=1,cZ=2;Jo=sZ});function M1(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>i||l.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}function fL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function tr(t,e,r){r=li(r||0);var n=e.width,i=e.height,a=ze(t.left,n),o=ze(t.top,i),s=ze(t.right,n),l=ze(t.bottom,i),u=ze(t.width,n),f=ze(t.height,i),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-p-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-p),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-p-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new fe((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}function ui(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=_g(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Sg.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Sg.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Sg.rect),a===Sg.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Tg(t,e,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new fe(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=tr(oe({width:u.width,height:u.height},e),r,n),p=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(a.x=p,a.y=h):(a.x+=p,a.y+=h),a===t&&t.markRedraw(),!0}function Qo(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function In(t,e,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var i=o(bg[0],0),a=o(bg[1],1);l(bg[0],t,i),l(bg[1],t,a);function o(u,f){var c={},p=0,h={},d=0,v=2;if(wg(u,function(y){h[y]=t[y]}),wg(u,function(y){Q(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Q(c,g)&&Q(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){wg(u,function(p){f[p]=c[p]})}}function fi(t){return dZ({},t)}function dZ(t,e){return e&&t&&wg(hZ,function(r){Q(e,r)&&(t[r]=e[r])}),t}var wg,hZ,bg,Ni,Mue,Aue,Sg,dr=k(()=>{P();Ct();Se();vn();zl();wg=T,hZ=["left","right","top","bottom","width","height"],bg=[["width","left","right"],["height","top","bottom"]];Ni=M1,Mue=ve(M1,"vertical"),Aue=ve(M1,"horizontal");Sg={rect:1,point:2}});function mZ(t){var e=[];return T(Ff.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=V(e,function(r){return on(r).main}),t!=="dataset"&&ue(e,"dataset")<=0&&e.unshift("dataset"),e}var vZ,Ff,ke,wr=k(()=>{q();P();hn();si();aa();re();dr();vZ=ne(),Ff=function(t){N(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=ya("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Qo(this),a=i?fi(r):{},o=n.getTheme();de(r,o.get(this.mainType)),de(r,this.getDefaultOption()),i&&In(r,a,i)},e.prototype.mergeOption=function(r,n){de(this.option,r,!0);var i=Qo(this);i&&In(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!SO(r))return r.defaultOption;var n=vZ(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=de(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ia(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return fL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Ge);cm(Ff,Ge);Vo(Ff);GR(Ff);HR(Ff,mZ);ke=Ff});var Fl,It,A1,es,H,Fe=k(()=>{P();Ir();Fl={color:{},darkColor:{},size:{}},It=Fl.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)"};G(It,{primary:It.neutral80,secondary:It.neutral70,tertiary:It.neutral60,quaternary:It.neutral50,disabled:It.neutral20,border:It.neutral30,borderTint:It.neutral20,borderShade:It.neutral40,background:It.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:It.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:It.neutral70,axisLineTint:It.neutral40,axisTick:It.neutral70,axisTickMinor:It.neutral60,axisLabel:It.neutral70,axisSplitLine:It.neutral15,axisMinorSplitLine:It.neutral05});for(es in It)It.hasOwnProperty(es)&&(A1=It[es],es==="theme"?Fl.darkColor.theme=It.theme.slice():es==="highlight"?Fl.darkColor.highlight="rgba(255,231,130,0.4)":es.indexOf("accent")===0?Fl.darkColor[es]=Qi(A1,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Fl.darkColor[es]=Qi(A1,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));Fl.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};H=Fl});var cL,Vf,pL,gZ,Cg,D1=k(()=>{Ir();Fe();cL="";typeof navigator<"u"&&(cL=navigator.platform||"");Vf="rgba(0, 0, 0, 0.2)",pL=H.color.theme[0],gZ=Qi(pL,null,null,.9),Cg={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[gZ,pL],aria:{decal:{decals:[{color:Vf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cL.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}});function dL(t){hL(t).datasetMap=K()}function vL(t,e,r){var n={},i=k1(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=hL(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),T(t,function(v,m){var g=j(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(t,function(v,m){var g=v.name,y=d(v);if(f==null){var x=p.valueWayDim;h(n[g],x,y),h(o,x,y),p.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var x=p.categoryWayDim;h(n[g],x,y),h(o,x,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function k1(t){var e=t.get("data",!0);if(!e)return ia(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},xt).models[0]}function mL(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ia(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},xt).models}function Mg(t,e){return yZ(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function yZ(t,e,r,n,i,a){var o,s=5;if(Tt(t))return Vr.Not;var l,u;if(n){var f=n[a];j(f)?(l=f.name,u=f.type):W(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vr.Must:Vr.Not;if(e===qt){var c=t;if(r===da){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=_(p[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=_(d[a]))!=null)return o}}else if(e===Pr){var v=t;if(!l)return Vr.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=_(m[l]))!=null)return o}}else if(e===Tn){var g=t;if(!l)return Vr.Not;var p=g[l];if(!p||Tt(p))return Vr.Not;for(var h=0;h<p.length&&h<s;h++)if((o=_(p[h]))!=null)return o}else if(e===er)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],x=Wa(m);if(!U(x))return Vr.Not;if((o=_(x[a]))!=null)return o}function _(b){var S=W(b);if(b!=null&&isFinite(Number(b))&&b!=="")return S?Vr.Might:Vr.Not;if(S&&b!=="-")return Vr.Must}return Vr.Not}var Vr,hL,Bf=k(()=>{re();P();un();Vr={Must:1,Might:2,Not:3},hL=ne()});function gL(t,e){je(E1.get(t)==null&&e),E1.set(t,e)}function yL(t,e,r){var n=E1.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(0)for(var a;a<i.length;a++);return r.concat(i)}var E1,O1=k(()=>{P();E1=K()});function xZ(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function _Z(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:xZ(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function bZ(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var xL,Xue,fh,I1=k(()=>{re();xL=ne(),Xue=ne(),fh=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Ue(this.get("color",!0)),a=this.get("colorLayer",!0);return _Z(this,xL,i,a,e,r,n)},t.prototype.clearColorPalette=function(){bZ(this,xL)},t}()});function wZ(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function TZ(t,e){var r=t.color&&!t.colorLayer;T(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ke.hasClass(i)||(typeof n=="object"?t[i]=t[i]?de(t[i],n,!1):te(n):t[i]==null&&(t[i]=n))})}function SL(t,e,r){if(U(e)){var n=K();return T(e,function(a){if(a!=null){var o=an(a,null);o!=null&&n.set(a,!0)}}),Ce(r,function(a){return a&&n.get(a[t])})}else{var i=an(e,null);return Ce(r,function(a){return a&&i!=null&&a[t]===i})}}function wL(t,e){return e.hasOwnProperty("subType")?Ce(t,function(r){return r&&r.subType===e.subType}):t}function TL(t){var e=K();return t&&T(Ue(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}var Ag,ch,_L,bL,SZ,CL,Dg,R1=k(()=>{q();P();re();hn();wr();D1();Bf();O1();I1();bL="\0_ec_inner",SZ=1,CL=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ge(a),this._locale=new Ge(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=TL(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,TL(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?_L(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=n&&n.replaceMergeMainTypeMap;dL(this),T(r,function(c,p){c!=null&&(ke.hasClass(p)?p&&(s.push(p),l.set(p,!0)):i[p]=i[p]==null?te(c):de(i[p],c,!0))}),u&&u.each(function(c,p){ke.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),f,this);function f(c){var p=yL(this,c,Ue(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=lO(h,p,d);cO(v,c,ke),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,x,_;T(v,function(b,S){var w=b.existing,M=b.newOption;if(!M)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",A=ke.getClass(c,b.keyInfo.subType,!C);if(!A){if(0)var E,O;return}if(c==="tooltip"){if(x)return;x=!0}if(w&&w.constructor===A)w.name=b.keyInfo.name,w.mergeOption(M,this),w.optionUpdated(M,!1);else{var D=G({componentIndex:S},b.keyInfo);w=new A(M,this,this,D),G(w,D),b.brandNew&&(w.__requireNewView=!0),w.init(M,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Ag(this)}this._seriesIndices||Ag(this)},e.prototype.getOption=function(){var r=te(this.option);return T(r,function(n,i){if(ke.hasClass(i)){for(var a=Ue(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!sf(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[bL],r},e.prototype.setTheme=function(r){this._theme=new Ge(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],T(Ue(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=SL("id",a,s):o!=null?l=SL("name",o,s):l=Ce(s,function(u){return!!u}),wL(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ce(this._componentsMap.get(i),function(u){return!!u});return l(wL(o,r));function s(u){var f=i+"Index",c=i+"Id",p=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:i,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Ce(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(J(r)){var o=n,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var l=W(r)?a.get(r):j(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=an(r,null);return Ce(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ce(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ce(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ch(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){T(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){ch(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return T(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return ch(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ch(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=K(i)},e.prototype.restoreData=function(r){Ag(this);var n=this._componentsMap,i=[];n.each(function(a,o){ke.hasClass(o)&&i.push(o)}),ke.topologicalTravel(i,ke.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!wZ(o,r))&&o.restoreData()})})},e.internalField=function(){Ag=function(r){var n=r._seriesIndices=[];T(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=K(n)},ch=function(r){},_L=function(r,n){r.option={},r.option[bL]=SZ,r._componentsMap=K({series:[]}),r._componentsCount=K();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),TZ(n,r._theme.option),de(n,Cg,!1),r._mergeOption(n,null)}}(),e}(Ge);kt(CL,fh);Dg=CL});function AZ(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&U(u)&&T(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),p(a),T(l,function(h){return p(h)}),T(n,function(h){return p(h.option)});function p(h){T(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function DZ(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return T(t,function(a,o){var s=o.match(CZ);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();kZ(n[u],a,l)||(i=!1)}}),i}function kZ(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function EZ(t,e){return t.join(",")===e.join(",")}var CZ,MZ,ML,AL=k(()=>{re();P();CZ=/^(min|max)?(.+)$/,MZ=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(T(Ue(e.series),function(o){o&&o.data&&Tt(o.data)&&Bs(o.data)}),T(Ue(e.dataset),function(o){o&&o.source&&Tt(o.source)&&Bs(o.source)})),e=te(e);var i=this._optionBackup,a=AZ(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],te(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=te(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)DZ(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!EZ(o,this._currentMediaIndices)&&(s=V(o,function(f){return te(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();ML=MZ});function L1(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=DL.length;r<n;r++){var i=DL[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?de(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?de(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Tr(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,oe(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function ph(t){Tr(t,"itemStyle"),Tr(t,"lineStyle"),Tr(t,"areaStyle"),Tr(t,"label"),Tr(t,"labelLine"),Tr(t,"upperLabel"),Tr(t,"edgeLabel")}function Ft(t,e){var r=hh(t)&&t[e],n=hh(r)&&r.textStyle;if(n)for(var i=0,a=Yb.length;i<a;i++){var o=Yb[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ci(t){t&&(ph(t),Ft(t,"label"),t.emphasis&&Ft(t.emphasis,"label"))}function OZ(t){if(hh(t)){L1(t),ph(t),Ft(t,"label"),Ft(t,"upperLabel"),Ft(t,"edgeLabel"),t.emphasis&&(Ft(t.emphasis,"label"),Ft(t.emphasis,"upperLabel"),Ft(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(L1(e),ci(e));var r=t.markLine;r&&(L1(r),ci(r));var n=t.markArea;n&&ci(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!Tt(a))for(var o=0;o<a.length;o++)ci(a[o]);T(t.categories,function(u){ph(u)})}if(i&&!Tt(i))for(var o=0;o<i.length;o++)ci(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ci(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(ci(l[o][0]),ci(l[o][1])):ci(l[o]);t.type==="gauge"?(Ft(t,"axisLabel"),Ft(t,"title"),Ft(t,"detail")):t.type==="treemap"?(Tr(t.breadcrumb,"itemStyle"),T(t.levels,function(u){ph(u)})):t.type==="tree"&&ph(t.leaves)}}function eo(t){return U(t)?t:t?[t]:[]}function kL(t){return(U(t)?t[0]:t)||{}}function N1(t,e){Pi(eo(t.series),function(n){hh(n)&&OZ(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Pi(r,function(n){Pi(eo(t[n]),function(i){i&&(Ft(i,"axisLabel"),Ft(i.axisPointer,"label"))})}),Pi(eo(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ft(i,"axisLabel"),Ft(i&&i.axisPointer,"label")}),Pi(eo(t.calendar),function(n){Tr(n,"itemStyle"),Ft(n,"dayLabel"),Ft(n,"monthLabel"),Ft(n,"yearLabel")}),Pi(eo(t.radar),function(n){Ft(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Pi(eo(t.geo),function(n){hh(n)&&(ci(n),Pi(eo(n.regions),function(i){ci(i)}))}),Pi(eo(t.timeline),function(n){ci(n),Tr(n,"label"),Tr(n,"itemStyle"),Tr(n,"controlStyle",!0);var i=n.data;U(i)&&T(i,function(a){j(a)&&(Tr(a,"label"),Tr(a,"itemStyle"))})}),Pi(eo(t.toolbox),function(n){Tr(n,"iconStyle"),Pi(n.feature,function(i){Tr(i,"iconStyle")})}),Ft(kL(t.axisPointer),"label"),Ft(kL(t.tooltip).axisPointer,"label")}var Pi,hh,DL,EL=k(()=>{P();re();Pi=T,hh=j,DL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"]});function IZ(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function RZ(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function OL(t){t&&T(LZ,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function dh(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<P1.length;r++){var n=P1[r][1],i=P1[r][0];e[n]!=null&&(e[i]=e[n])}}function IL(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function RL(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function PZ(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function LL(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&LL(t[r].children,e)}function kg(t,e){N1(t,e),t.series=Ue(t.series),T(t.series,function(r){if(j(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),IL(r.label);var i=r.data;if(i&&!Tt(i))for(var a=0;a<i.length;a++)IL(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=IZ(r,"pointer.color");o!=null&&RZ(r,"itemStyle.color",o)}else if(n==="bar"){dh(r),dh(r.backgroundStyle),dh(r.emphasis);var i=r.data;if(i&&!Tt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(dh(i[a]),dh(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),RL(r),LL(r.data,RL)}else n==="graph"||n==="sankey"?PZ(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&oe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),OL(r)}}),t.dataRange&&(t.visualMap=t.dataRange),T(NZ,function(r){var n=t[r];n&&(U(n)||(n=[n]),T(n,function(i){OL(i)}))})}var LZ,NZ,P1,NL=k(()=>{P();EL();re();LZ=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],NZ=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],P1=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]]});function zZ(t){var e=K();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),FZ(r)}})}function FZ(t){T(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Ga(p,y),v=y;break}}}return n[0]=p,n[1]=v,n})})}var PL,zL=k(()=>{P();Se();re();PL=pf(zZ)});function Uf(t){return t instanceof Eg}function vh(t,e,r){r=r||z1(t);var n=e.seriesLayoutBy,i=VZ(t,r,n,e.sourceHeader,e.dimensions),a=new Eg({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:te(e)});return a}function Gf(t){return new Eg({data:t,sourceFormat:Tt(t)?Cn:er})}function BL(t){return new Eg({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:te(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function z1(t){var e=_S;if(Tt(t))e=Cn;else if(U(t)){t.length===0&&(e=qt);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(U(i)||Tt(i)){e=qt;break}else if(j(i)){e=Pr;break}}}}else if(j(t)){for(var a in t)if(Q(t,a)&&wt(t[a])){e=Tn;break}}return e}function VZ(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:FL(i),startIndex:o,dimensionsDetectedCount:a};if(e===qt){var s=t;n==="auto"||n==null?VL(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},r,s,10):o=Me(n)?n:n?1:0,!i&&o===1&&(i=[],VL(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===da?s.length:s[0]?s[0].length:null}else if(e===Pr)i||(i=BZ(t));else if(e===Tn)i||(i=[],T(t,function(u,f){i.push(f)}));else if(e===er){var l=Wa(t[0]);a=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:FL(i),dimensionsDetectedCount:a}}function BZ(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return he(r)}function FL(t){if(t){var e=K();return V(t,function(r,n){r=j(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function VL(t,e,r,n){if(e===da)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Og(t){var e=t.sourceFormat;return e===Pr||e===Tn}var Eg,to=k(()=>{P();un();re();Bf();Eg=function(){function t(e){this.data=e.data||(e.sourceFormat===Tn?{}:[]),this.sourceFormat=e.sourceFormat||_S,this.seriesLayoutBy=e.seriesLayoutBy||Mn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Mg(this,n)===Vr.Must&&(i.type="ordinal")}}return t}()});function V1(t,e){var r=UZ[G1(t,e)];return r}function B1(t,e){var r=GZ[G1(t,e)];return r}function U1(t){var e=HZ[t];return e}function G1(t,e){return t===qt?t+"_"+e:t}function ro(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return U1(a)(n,o,s)}else{var l=n;return a===er&&(l=Wa(n)),l}}}}var Vl,Bl,Ul,Gl,UL,GL,Rg,Ig,Efe,HL,UZ,YL,GZ,F1,HZ,Hl=k(()=>{P();re();to();un();fl();Rg=function(){function t(e,r){var n=Uf(e)?e:Gf(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Cn&&(this._offset=0,this._dimSize=r,this._data=i),0)var s;GL(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;GL=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=UL[G1(u,f)];if(G(o,h),u===Cn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=V1(u,f);o.getItem=$(d,null,s,c,p);var v=B1(u,f);o.count=$(v,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var x=f[y*c+p];g[o+y]=x,x<d&&(d=x),x>v&&(v=x)}h[0]=d,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};UL=(e={},e[qt+"_"+Mn]={pure:!0,appendData:a},e[qt+"_"+da]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pr]={pure:!0,appendData:a},e[Tn]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[er]={appendData:a},e[Cn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Ig=function(t){U(t)||Hb("series.data or dataset.source must be an array.")},Efe=(Vl={},Vl[qt+"_"+Mn]=Ig,Vl[qt+"_"+da]=Ig,Vl[Pr]=Ig,Vl[Tn]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&Hb("dimension name must not be null/undefined.")}},Vl[er]=Ig,Vl),HL=function(t,e,r,n){return t[n]},UZ=(Bl={},Bl[qt+"_"+Mn]=function(t,e,r,n){return t[n+e]},Bl[qt+"_"+da]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Bl[Pr]=HL,Bl[Tn]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Bl[er]=HL,Bl);YL=function(t,e,r){return t.length},GZ=(Ul={},Ul[qt+"_"+Mn]=function(t,e,r){return Math.max(0,t.length-e)},Ul[qt+"_"+da]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Ul[Pr]=YL,Ul[Tn]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Ul[er]=YL,Ul);F1=function(t,e,r){return t[e]},HZ=(Gl={},Gl[qt]=F1,Gl[Pr]=function(t,e,r){return t[r]},Gl[Tn]=F1,Gl[er]=function(t,e,r){var n=Wa(t);return n instanceof Array?n[e]:n},Gl[Cn]=F1,Gl)});function H1(t){var e,r;return j(t)?t.type&&(r=t):e=t,{text:e,frag:r}}var YZ,mh,Lg=k(()=>{P();Hl();vn();YZ=/\{@(.+?)\}/g,mh=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(J(a))return l.status=r,l.dimensionIndex=i,a(l);if(W(a)){var f=Nf(a,l);return f.replace(YZ,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=ro(s,e,d);if(o&&U(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return ro(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}()});function ts(t){return new WZ(t)}var WZ,WL,Ng=k(()=>{P();WZ=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(c||h<d)){var v=this._progress;if(U(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){WL.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:WL.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),WL=function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}()});function pi(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Me(t)&&t!=null&&t!=="-"&&(t=+Lr(t)),t==null||t===""?NaN:Number(t))}function Pg(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function zg(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var Ufe,XZ,Gfe,XL,Hfe,Yl=k(()=>{Se();P();fl();Ufe=K({number:function(t){return parseFloat(t)},time:function(t){return+Lr(t)},trim:function(t){return W(t)?Yt(t):t}}),XZ={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}},Gfe=function(){function t(e,r){if(!Me(r)){var n="";Et(n)}this._opFn=XZ[e],this._rvalFloat=Jn(r)}return t.prototype.evaluate=function(e){return Me(e)?this._opFn(e,this._rvalFloat):this._opFn(Jn(e),this._rvalFloat)},t}(),XL=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Me(e)?e:Jn(e),i=Me(r)?r:Jn(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(e),l=W(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Hfe=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Jn(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Jn(e)===this._rvalFloat)}return this._isEQ?r:!r},t}()});function qZ(t,e){var r=new ZZ,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Mn&&Et(o);var s=[],l={},u=t.dimensionsDefine;if(u)T(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var x="";Q(l,g)&&Et(x),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=V1(i,Mn);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(n,a,s,v)},r.getRawData=$(KZ,null,t)),r.cloneRawData=$(jZ,null,t);var p=B1(i,Mn);r.count=$(p,null,n,a,s);var h=U1(i);r.retrieveValue=function(v,m){var g=c(n,a,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=$($Z,null,s,l),r.cloneAllDimensionInfo=$(JZ,null,s),r}function KZ(t){var e=t.sourceFormat;if(!Y1(e)){var r="";Et(r)}return t.data}function jZ(t){var e=t.sourceFormat,r=t.data;if(!Y1(e)){var n="";Et(n)}if(e===qt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Pr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(G({},r[a]));return i}}function $Z(t,e,r){if(r!=null){if(Me(r)||!isNaN(r)&&!Q(e,r))return t[r];if(Q(e,r))return e[r]}}function JZ(t){return te(t)}function qL(t){t=te(t);var e=t.type,r="";e||Et(r);var n=e.split(":");n.length!==2&&Et(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,ZL.set(e,t)}function KL(t,e,r){var n=Ue(t),i=n.length,a="";i||Et(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=QZ(l,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function QZ(t,e,r,n){var i="";e.length||Et(i),j(t)||Et(i);var a=t.type,o=ZL.get(a);o||Et(i);var s=V(e,function(f){return qZ(f,o)}),l=Ue(o.transform({upstream:s[0],upstreamList:s,config:te(t.config)}));if(0&&t.print)var u;return V(l,function(f,c){var p="";j(f)||Et(p),f.data||Et(p);var h=z1(f.data);Y1(h)||Et(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:Mn,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Mn,sourceHeader:0,dimensions:f.dimensions};return vh(f.data,d,null)})}function Y1(t){return t===qt||t===Pr}var ZZ,ZL,W1=k(()=>{un();re();P();Hl();Yl();fl();to();ZZ=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return pi(e,r)},t}();ZL=K()});function Hf(t){return t>65535?e7:t7}function r7(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function $L(t,e,r,n,i){var a=JL[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var e7,t7,Z1,jL,JL,X1,n7,gh,Fg=k(()=>{P();un();Yl();to();re();Se();e7=typeof Uint32Array===Wo?Array:Uint32Array,t7=typeof Uint16Array===Wo?Array:Uint16Array,Z1=typeof Int32Array===Wo?Array:Int32Array,jL=typeof Float64Array===Wo?Array:Float64Array,JL={float:jL,int:Z1,ordinal:Array,number:Array,time:jL};n7=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=X1[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=Og(i);this._dimensions=V(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new JL[r||"float"](this._rawCount),this._rawExtent[a]=Zt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Zt());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];$L(n,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,d=0;d<a;d++){var f=i[d],v=X1.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Zt()),$L(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=i.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Mt(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Hf(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Hf(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,p=0;p<i;p++){var h=void 0,d=n.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=he(e),a=i.length;if(!a)return this;var o=r.count(),s=Hf(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(a===1){for(var m=h[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(a===2){for(var m=h[i[0]],x=h[i[1]],_=e[i[1]][0],b=e[i[1]][1],g=0;g<n;g++){var y=m[g],S=x[g];(y>=c&&y<=p||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=h[i[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var M=!0,w=r.getRawIndex(g),C=0;C<a;C++){var A=i[C],y=h[A][w];(y<e[A][0]||y>e[A][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Zt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][p];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var v=r[f],m=d[f],g=u[v],y=i[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Hf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,x=v;x<m;x++){var _=this.getRawIndex(x),b=a[_];isNaN(b)||(y+=b)}y/=m-v;var S=d,w=Math.min(d+l,o),M=d-1,C=a[u];f=-1,p=S;for(var A=-1,E=0,x=S;x<w;x++){var _=this.getRawIndex(x),b=a[_];if(isNaN(b)){E++,A<0&&(A=_);continue}c=Math.abs((M-g)*(b-C)-(M-x)*(y-C)),c>f&&(f=c,p=_)}E>0&&E<w-S&&(h[s++]=Math.min(A,p),p=Math.max(A,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Hf(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var x=this.getRawIndex(c),_=this.getRawIndex(h);c<h?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Zt(),p=new(Hf(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Zt();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Pg(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=i[0],h=i[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=n[v];(!r||zg(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&ir(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?r7(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=te(this._extent),e._rawExtent=te(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return pi(r[a],this._dimensions[a])}X1={arrayRows:e,objectRows:function(r,n,i,a){return pi(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return pi(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),gh=n7});function Vg(t){return t.mainType==="series"}function QL(t){throw new Error(t)}var eN,tN=k(()=>{P();to();un();Bf();W1();Fg();Hl();eN=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Vg(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Tt(s)?Cn:er,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=Z(c.sourceHeader,p.sourceHeader),v=Z(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;i=m?[vh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=g.get("source",!0);i=[vh(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&QL(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&QL(c),s.push(f),l.push(u._getVersionSign())}),n?o=KL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BL(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Vg(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new gh,s.initData(new Rg(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vg(e)){var r=k1(e);return r?[r.getSourceManager()]:[]}else return V(mL(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Vg(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}()});function rN(t){var e=t.lineHeight;return e==null?i7:"line-height:"+Pt(e+"")+"px"}function nN(t,e){var r=t.color||H.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||H.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Pt(n+"")+"px;color:"+Pt(r)+";font-weight:"+Pt(i+""),valueStyle:"font-size:"+Pt(o+"")+"px;color:"+Pt(a)+";font-weight:"+Pt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function xa(t,e){return e.type=t,e}function q1(t){return t.type==="section"}function iN(t){return q1(t)?s7:l7}function aN(t){if(q1(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return T(t.blocks,function(i){var a=aN(i);a>=e&&(e=a+ +(n&&(!a||q1(i)&&!i.noHeader)))}),e}return 0}function s7(t,e,r,n){var i=e.noHeader,a=u7(aN(e)),o=[],s=e.blocks||[];je(!s||U(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new XL(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(v,m){var g=e.valueFormatter,y=iN(v)(g?G(G({},t),{valueFormatter:g}):t,v,m>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):K1(n,o.join(""),i?r:a.html);if(i)return c;var p=vg(e.header,"ordinal",t.useUTC),h=nN(n,t.renderMode).nameStyle,d=rN(n);return t.renderMode==="richText"?oN(t,p,h)+a.richText+c:K1(n,'<div style="'+h+";"+d+';">'+Pt(p)+"</div>"+c,r)}function l7(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(_){return _=U(_)?_:[_],V(_,function(b,S){return vg(b,U(h)?h[S]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||H.color.secondary,i),p=a?"":vg(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=nN(n,i),y=g.nameStyle,x=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":oN(t,p,y))+(o?"":p7(t,d,v,m,x)):K1(n,(s?"":c)+(a?"":f7(p,!s,y))+(o?"":c7(d,v,m,x)),r)}}function j1(t,e,r,n,i,a){if(t){var o=iN(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function u7(t){return{html:a7[t],richText:o7[t]}}function K1(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=rN(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function f7(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Pt(t)+"</span>"}function c7(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=U(t)?t:[t],'<span style="'+a+";"+n+'">'+V(t,function(o){return Pt(o)}).join(" ")+"</span>"}function oN(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function p7(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(U(e)?e.join(" "):e,a)}function sN(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Li(n)}function Bg(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var i7,a7,o7,Ug,Yf=k(()=>{vn();P();Yl();Se();Fe();i7="line-height:1";a7=[0,10,20,30],o7=["",`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];Ug=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Np()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=mg({color:r,type:e,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};U(r)?T(r,function(a){return G(n,a)}):G(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}()});function lN(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=U(s),u=sN(e,r),f,c,p,h;if(o>1||l&&!o){var d=h7(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=f=ro(i,r,a[0]),c=v.type}else h=f=l?s[0]:s;var m=lf(e),g=m&&e.name||"",y=i.getName(r),x=n?g:y;return xa("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[xa("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Yt(x),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(p||[])})}function h7(t,e,r,n,i){var a=e.getData(),o=ir(t,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?T(n,function(c){f(ro(a,r,c),c)}):T(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(xa("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var uN=k(()=>{P();Yf();Hl();re()});function Gg(t,e){return t.getName(e)||t.getId(e)}function fN(t){var e=t.name;lf(t)||(t.name=d7(t)||e)}function d7(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return T(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function v7(t){return t.model.getRawData().count()}function m7(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),g7}function g7(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cN(t,e){T(P_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ve(y7,e))})}function y7(t,e){var r=$1(t);return r&&r.setOutputEnd((e||this).count()),e}function $1(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var rs,yh,Hg,Vt,_a=k(()=>{q();P();Ht();re();wr();I1();Lg();dr();Ng();aa();tN();uN();rs=ne();yh="__universalTransitionEnabled",Hg=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ts({count:v7,reset:m7}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=rs(this).sourceManager=new eN(this);a.prepareSource();var o=this.getInitialData(r,i);cN(o,this),this.dataTask.context.data=o,rs(this).dataBeforeProcessed=o,fN(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Qo(this),a=i?fi(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),de(r,n.getTheme().get(this.subType)),de(r,this.getDefaultOption()),zp(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&In(r,a,i)},e.prototype.mergeOption=function(r,n){r=de(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Qo(this);i&&In(this.option,r,i);var a=rs(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);cN(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rs(this).dataBeforeProcessed=o,fN(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Tt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&zp(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=$1(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return rs(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=$1(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}rs(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return K(r)},e.prototype.getSourceManager=function(){return rs(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return rs(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(n),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),x=l.dataToCoord(y),_=u-x,b=Math.abs(_);b<=a&&((b<c||b===c&&_>=0&&p<0)&&(c=b,p=_,h=0),_===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return lN({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(xe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=fh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Gg(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=he(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Gg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yh])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],p=Gg(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],p=Gg(r,h);o.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ke);kt(Hg,mh);kt(Hg,fh);cm(Hg,ke);Vt=Hg});var J1,Je,mn=k(()=>{rf();si();aa();J1=function(){function t(){this.group=new ye,this.uid=ya("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();hf(J1);Vo(J1);Je=J1});function no(){var t=ne();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var xh=k(()=>{re()});function pN(t,e,r){t&&$p(t)&&(e==="emphasis"?ni:ii)(t,r)}function hN(t,e,r){var n=Qn(t,e),i=e&&e.highlightKey!=null?NI(e.highlightKey):null;n!=null?T(Ue(n),function(a){pN(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){pN(a,r,i)})}function _7(t){return x7(t.model)}function b7(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&dN(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),S7[l]}var dN,x7,Q1,S7,Dt,io=k(()=>{P();rf();si();aa();re();or();Ng();xh();Te();dN=ne(),x7=no(),Q1=function(){function t(){this.group=new ye,this.uid=ya("viewChart"),this.renderTask=ts({plan:_7,reset:b7}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&hN(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&hN(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){kn(this.group,e)},t.markUpdateMethod=function(e,r){dN(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();hf(Q1,["dispose"]);Vo(Q1);S7={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)}}},Dt=Q1});function Wl(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var v=f||e,m=f||r;f=null,s=n-(m?i:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),i=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function ns(t,e,r,n){var i=t[e];if(i){var a=i[Yg]||i,o=i[mN],s=i[vN];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Wl(a,r,n==="debounce"),i[Yg]=a,i[mN]=n,i[vN]=r}return i}}function Xl(t,e){var r=t[e];r&&r[Yg]&&(r.clear&&r.clear(),t[e]=r[Yg])}var Yg,vN,mN,is=k(()=>{Yg="\0__throttleOriginMethod",vN="\0__throttleRate",mN="\0__throttleType"});function xN(t,e){var r=t.visualStyleMapper||yN[e];return r||(console.warn("Unknown style type '"+e+"'."),yN.itemStyle)}function _N(t,e){var r=t.visualDrawType||w7[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var gN,yN,w7,bN,_h,SN,wN,TN=k(()=>{P();Bp();l1();o1();hn();re();gN=ne(),yN={itemStyle:oa(s1,!0),lineStyle:oa(a1,!0)},w7={lineStyle:"stroke",itemStyle:"fill"};bN={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=xN(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=_N(t,n),u=o[l],f=J(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=G({},o);m[l]=f(v),h.setItemVisual(d,"style",m)}}}},_h=new Ge,SN={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=xN(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){_h.option=l[n];var u=i(_h),f=o.ensureUniqueItemVisual(s,"style");G(f,u),_h.option.decal&&(o.setItemVisual(s,"decal",_h.option.decal),_h.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wN={performRawSeries:!0,overallReset:function(t){var e=K();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();gN(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=gN(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=_N(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();p[l]=r.getColorFromPalette(h,o,d)}})}})}}});function tw(t,e){e=e||{},oe(e,{text:"loading",textColor:H.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ye,n=new be({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Ie({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 be({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Al({shape:{startAngle:-Wg/2,endAngle:-Wg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Wg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Wg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Wg,CN=k(()=>{P();Te();Fe();Wg=Math.PI});function C7(t){t.overallReset(t.ecModel,t.api,t.payload)}function M7(t){return t.dirtyOnOverallProgress&&A7}function A7(){this.agent.dirty(),this.getDownstream().dirty()}function D7(){this.agent&&this.agent.dirty()}function k7(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function E7(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ue(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(r,n){return MN(n)}):O7}function MN(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function I7(t){return t.data.count()}function R7(t){Xg=null;try{t(bh,AN)}catch{}return Xg}function DN(t,e){for(var r in e.prototype)t[r]=qe}var T7,O7,bh,AN,Xg,rw,kN=k(()=>{P();Ng();si();R1();Cm();re();T7=function(){function t(e,r,n,i){this._stageTaskMap=K(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):fm(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=K();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";je(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;T(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,n);var v=o.getPerformArgs(p,i.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||ts({plan:k7,reset:E7,count:I7}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||ts({reset:C7});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=K(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";je(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):T(n.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(p=!0,ts({reset:M7,onDirty:D7})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return J(e)&&(e={overallReset:e,seriesType:R7(e)}),e.uid=ya("stageHandler"),r&&(e.visualType=r),e},t}();O7=MN(0);bh={},AN={};DN(bh,Dg);DN(AN,Tm);bh.eachSeriesByType=bh.eachRawSeriesByType=function(t){Xg=t};bh.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Xg=t.subType)};rw=T7});var le,EN,Sh,ON,IN,RN,LN=k(()=>{Fe();le=H.darkColor,EN=le.background,Sh=function(){return{axisLine:{lineStyle:{color:le.axisLine}},splitLine:{lineStyle:{color:le.axisSplitLine}},splitArea:{areaStyle:{color:[le.backgroundTint,le.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:le.axisMinorSplitLine}},axisLabel:{color:le.axisLabel},axisName:{}}},ON={label:{color:le.secondary},itemStyle:{borderColor:le.borderTint},dividerLineStyle:{color:le.border}},IN={darkMode:!0,color:le.theme,backgroundColor:EN,axisPointer:{lineStyle:{color:le.border},crossStyle:{color:le.borderShade},label:{color:le.tertiary}},legend:{textStyle:{color:le.secondary},pageTextStyle:{color:le.tertiary}},textStyle:{color:le.secondary},title:{textStyle:{color:le.primary},subtextStyle:{color:le.quaternary}},toolbox:{iconStyle:{borderColor:le.accent50},feature:{dataView:{backgroundColor:EN,textColor:le.primary,textareaColor:le.background,textareaBorderColor:le.border,buttonColor:le.accent50,buttonTextColor:le.neutral00}}},tooltip:{backgroundColor:le.neutral20,defaultBorderColor:le.border,textStyle:{color:le.tertiary}},dataZoom:{borderColor:le.accent10,textStyle:{color:le.tertiary},brushStyle:{color:le.backgroundTint},handleStyle:{color:le.neutral00,borderColor:le.accent20},moveHandleStyle:{color:le.accent40},emphasis:{handleStyle:{borderColor:le.accent50}},dataBackground:{lineStyle:{color:le.accent30},areaStyle:{color:le.accent20}},selectedDataBackground:{lineStyle:{color:le.accent50},areaStyle:{color:le.accent30}}},visualMap:{textStyle:{color:le.secondary},handleStyle:{borderColor:le.neutral30}},timeline:{lineStyle:{color:le.accent10},label:{color:le.tertiary},controlStyle:{color:le.accent30,borderColor:le.accent30}},calendar:{itemStyle:{color:le.neutral00,borderColor:le.neutral20},dayLabel:{color:le.tertiary},monthLabel:{color:le.secondary},yearLabel:{color:le.secondary}},matrix:{x:ON,y:ON,backgroundColor:{borderColor:le.axisLine},body:{itemStyle:{borderColor:le.borderTint}}},timeAxis:Sh(),logAxis:Sh(),valueAxis:Sh(),categoryAxis:Sh(),line:{symbol:"circle"},graph:{color:le.theme},gauge:{title:{color:le.secondary},axisLine:{lineStyle:{color:[[1,le.neutral05]]}},axisLabel:{color:le.axisLabel},detail:{color:le.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:le.background}},radar:function(){var t=Sh();return t.axisName={color:le.axisLabel},t.axisLine.lineStyle.color=le.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:le.neutral20,textStyle:{color:le.secondary}},emphasis:{itemStyle:{color:le.neutral30}}}},sunburst:{itemStyle:{borderColor:le.background}},map:{itemStyle:{borderColor:le.border,areaColor:le.neutral10},label:{color:le.tertiary},emphasis:{label:{color:le.primary},itemStyle:{areaColor:le.highlight}},select:{label:{color:le.primary},itemStyle:{areaColor:le.highlight}}},geo:{itemStyle:{borderColor:le.border,areaColor:le.neutral10},emphasis:{label:{color:le.primary},itemStyle:{areaColor:le.highlight}},select:{label:{color:le.primary},itemStyle:{color:le.highlight}}}};IN.categoryAxis.splitLine.show=!1;RN=IN});var NN,PN=k(()=>{P();aa();NN=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(W(e)){var a=on(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}()});var nw,zN,FN,VN,BN=k(()=>{P();nw=["symbol","symbolSize","symbolRotate","symbolOffset"],zN=nw.concat(["symbolKeepAspect"]),FN={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<nw.length;o++){var s=nw[o],l=t.get(s);J(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(G({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=he(i);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(p,m,i[m](h,d))}}return{dataEach:a?f:null}}},VN={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<zN.length;s++){var l=zN[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}}});function Zg(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function ba(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function UN(t,e,r,n){switch(r){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break;default:}}var Zl=k(()=>{});function Wf(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=Qn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:U(p)?c.getName(p[0]):c.getName(p),selected:W(l)?l:G({},l)})}})}function GN(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Wf("map","selectchanged",e,i,n),Wf("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Wf("map","selected",e,i,n),Wf("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Wf("map","unselected",e,i,n),Wf("pie","unselected",e,i,n))})}var HN=k(()=>{P();re()});function ao(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var qg=k(()=>{});var L7,Rn,YN=k(()=>{qi();L7=new Nt,Rn=L7});function XN(t,e){WN[t]=e}function iw(t){return WN[t]}var WN,aw=k(()=>{WN={}});function Kg(t,e){ZN[t]=e}function qN(t){return ZN[t]}var ZN,jg=k(()=>{ZN={}});function KN(t){$g(t).prepare={}}function jN(t){$g(t).fullUpdate={}}function Jg(t){return $g(t).prepare}function ql(t){return $g(t).fullUpdate}var $g,Qg=k(()=>{re();$g=ne()});var N7,P7,z7,$N,JN=k(()=>{N7=Math.round(Math.random()*9),P7=typeof Object.defineProperty=="function",z7=function(){function t(){this._id="__ec_inner_"+N7++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return P7?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),$N=z7});function W7(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||H.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function mt(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=ah(t.slice(8),new fe(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=ja(t.slice(7),{},new fe(e,r,n,i),o?"center":"cover"):l=new Y7({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=W7,a&&l.setColor(a),l}function Th(t){return U(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Kl(t,e){if(t!=null)return U(t)||(t=[t,t]),[ze(t[0],e[0])||0,ze(Z(t[1],t[0]),e[1])||0]}var F7,V7,B7,U7,G7,H7,wh,Y7,hi=k(()=>{P();Te();Ct();wn();Se();Fe();F7=ce.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),V7=ce.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),B7=ce.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),U7=ce.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),G7={line:pr,rect:be,roundRect:be,square:be,circle:Tl,diamond:V7,pin:B7,arrow:U7,triangle:F7},H7={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},wh={};T(G7,function(t,e){wh[e]=new t});Y7=ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=sl(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=wh[n];i||(n="rect",i=wh[n]),H7[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}})});function jl(t){return isFinite(t)}function Z7(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=jl(n)?n:0,i=jl(i)?i:1,a=jl(a)?a:0,o=jl(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function q7(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=jl(o)?o:.5,s=jl(s)?s:.5,l=l>=0&&jl(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Ch(t,e,r){for(var n=e.type==="radial"?q7(t,e,r):Z7(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function QN(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function ey(t){return parseInt(t,10)}function as(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||ey(s[n])||ey(t.style[n]))-(ey(s[a])||0)-(ey(s[o])||0)||0}var Mh=k(()=>{});function K7(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Me(t)?[t]:U(t)?t:null}function Ah(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&K7(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=V(r,function(a){return a/i}),n/=i)}return[r,n]}var ow=k(()=>{P()});function ty(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function eP(t){return typeof t=="string"&&t!=="none"}function ry(t){var e=t.fill;return e!=null&&e!=="none"}function tP(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function rP(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function ny(t,e,r){var n=Up(e.image,e.__image,r);if(df(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Us),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function $7(t,e,r,n,i){var a,o=ty(r),s=ry(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||j7,p=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(v||m)&&(w=e.getBoundingRect()),v&&(x=p?Ch(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(_=p?Ch(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(b=p||!e.__canvasFillPattern?ny(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(S=p||!e.__canvasStrokePattern?ny(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?t.fillStyle=x:g&&(b?t.fillStyle=b:s=!1),m?t.strokeStyle=_:y&&(S?t.strokeStyle=S:o=!1)}var M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold);var C,A;t.setLineDash&&r.lineDash&&(a=Ah(e),C=a[0],A=a[1]);var E=!0;(f||p&Do)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=A),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&rP(t,r),s&&tP(t,r)):(s&&tP(t,r),o&&rP(t,r)),C&&t.setLineDash([])}function J7(t,e,r){var n=e.__image=Up(r.image,e.__image,e,e.onload);if(!(!n||!df(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(n,u,f,c,p,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function Q7(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Zr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Ah(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(ty(r)&&t.strokeText(i,r.x,r.y),ry(r)&&t.fillText(i,r.x,r.y)):(ry(r)&&t.fillText(i,r.x,r.y),ty(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}function fP(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Br(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?sa.opacity:o}(n||e.blend!==r.blend)&&(a||(Br(t,i),a=!0),t.globalCompositeOperation=e.blend||sa.blend);for(var s=0;s<nP.length;s++){var l=nP[s];(n||e[l]!==r[l])&&(a||(Br(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Br(t,i),a=!0),t.shadowColor=e.shadowColor||sa.shadowColor),a}function aP(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=fP(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Br(t,i),s=!0),eP(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Br(t,i),s=!0),eP(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Br(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Br(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<iP.length;f++){var c=iP[f],p=c[0];(n||a[p]!==o[p])&&(s||(Br(t,i),s=!0),t[p]=a[p]||c[1])}return s}function e9(t,e,r,n,i){return fP(t,e.style,r&&r.style,n,i)}function cP(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function t9(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),cP(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function r9(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}function n9(t){var e=ry(t),r=ty(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Br(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Xf(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};os(t,e,r),$l(t,r)}function os(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~zt,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||QN(i,a))&&(a&&(Br(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Br(t,r),t.save(),t9(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~zt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ce&&e.autoBatch&&n9(o);s||r9(n,u.transform)?(Br(t,r),cP(t,e)):f||Br(t,r),e instanceof ce?(r.lastDrawType!==oP&&(l=!0,r.lastDrawType=oP),aP(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),$7(t,e,o,f,r)):e instanceof _l?(r.lastDrawType!==lP&&(l=!0,r.lastDrawType=lP),aP(t,e,u,l,r),Q7(t,e,o)):e instanceof _t?(r.lastDrawType!==sP&&(l=!0,r.lastDrawType=sP),e9(t,e,u,l,r),J7(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==uP&&(l=!0,r.lastDrawType=uP),i9(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Br(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function $l(t,e){Br(t,e),e.prevElClipPaths&&t.restore()}function i9(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),os(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}$l(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),os(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}$l(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var j7,nP,iP,oP,sP,lP,uP,Dh=k(()=>{la();pa();pm();Mh();At();Ho();xm();P();ow();ko();qr();j7=new Jt(!0);nP=["shadowBlur","shadowOffsetX","shadowOffsetY"],iP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];oP=1,sP=2,lP=3,uP=4});function Jl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&sw.delete(t);var a=sw.get(t);if(a)return a;var o=oe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,sw.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<hP.length;++p){var h=o[hP[p]];if(h!=null&&!U(h)&&!W(h)&&!Me(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var v=pP.get(d);v&&(i?u.svgElement=v:u.image=v)}var m=vP(o.dashArrayX),g=a9(o.dashArrayY),y=dP(o.symbol),x=o9(m),_=mP(g),b=!i&&at.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),M;b&&(b.width=w.width*r,b.height=w.height*r,M=b.getContext("2d")),A(),c&&pP.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var E=1,O=0,D=x.length;O<D;++O)E=Gb(E,x[O]);for(var L=1,O=0,D=y.length;O<D;++O)L=Gb(L,y[O].length);E*=L;var I=_*x.length*y.length;if(0)var R;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){M&&(M.clearRect(0,0,b.width,b.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,b.width,b.height)));for(var E=0,O=0;O<g.length;++O)E+=g[O];if(E<=0)return;for(var D=-_,L=0,I=0,R=0;D<w.height;){if(L%2===0){for(var F=I/2%y.length,z=0,Y=0,B=0;z<w.width*2;){for(var X=0,O=0;O<m[R].length;++O)X+=m[R][O];if(X<=0)break;if(Y%2===0){var ee=(1-o.symbolSize)*.5,ie=z+m[R][Y]*ee,ae=D+g[L]*ee,we=m[R][Y]*o.symbolSize,Oe=g[L]*o.symbolSize,Qe=B/2%y[F].length;nt(ie,ae,we,Oe,y[F][Qe])}z+=m[R][Y],++B,++Y,Y===m[R].length&&(Y=0)}++R,R===m.length&&(R=0)}D+=g[L],++I,++L,L===g.length&&(L=0)}function nt(Re,Ye,_e,Le,dt){var Ee=i?1:r,kr=mt(dt,Re*Ee,Ye*Ee,_e*Ee,Le*Ee,o.color,o.symbolKeepAspect);if(i){var Er=n.painter.renderOneToVNode(kr);Er&&S.children.push(Er)}else Xf(M,kr)}}}}function dP(t){if(!t||t.length===0)return[["rect"]];if(W(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!W(t[r])){e=!1;break}if(e)return dP([t]);for(var n=[],r=0;r<t.length;++r)W(t[r])?n.push([t[r]]):n.push(t[r]);return n}function vP(t){if(!t||t.length===0)return[[0,0]];if(Me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Me(t[n])){r=!1;break}if(r)return vP([t]);for(var i=[],n=0;n<t.length;++n)if(Me(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=V(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function a9(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Me(t)){var e=Math.ceil(t);return[e,e]}var r=V(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function o9(t){return V(t,function(e){return mP(e)})}function mP(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var sw,pP,hP,iy=k(()=>{JN();xp();P();Se();hi();Dh();qr();sw=new $N,pP=new Ji(100),hP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"]});function s9(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Jl(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Jl(i,e)}}})}var gP,yP=k(()=>{iy();re();gP=pf(s9)});function OP(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return RP(this,t,e)}}function IP(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return RP(this,t,e)}}function RP(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Nt.prototype[e].apply(t,r)}function dy(t,e,r){var n=!(r&&r.ssr);if(n){var i=ww(t);if(i)return i}var a=new uy(t,e,r);return a.id="ec_"+T9++,eu[a.id]=a,n&&Wb(t,Sw,a.id),PP(a),Rn.trigger("afterinit",a),a}function M9(t){if(U(t)){var e=t;t=null,T(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+C9++,T(e,function(r){r.group=t})}return py[t]=!0,t}function FP(t){py[t]=!1}function D9(t){W(t)?t=eu[t]:t instanceof uy||(t=ww(t)),t instanceof uy&&!t.isDisposed()&&t.dispose()}function ww(t){return eu[vO(t,Sw)]}function k9(t){return eu[t]}function Tw(t,e){zP[t]=e}function vy(t){ue(gw,t)<0&&gw.push(t)}function my(t,e){kw(mw,t,e,v9)}function Cw(t){kh("afterinit",t)}function Mw(t){kh("afterupdate",t)}function kh(t,e){Rn.on(t,e)}function Cr(t,e,r){var n,i,a,o,s;J(e)&&(r=e,e=""),j(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;fy[n]||(je(_P.test(n)&&_P.test(i)),a&&je(i!==n),fy[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},vw[i]=1,a&&s&&(vw[u]=1),dw[u]=n)}function Aw(t,e){Jo.register(t,e)}function E9(t){var e=Jo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function O9(t,e){Kg(t,e)}function Dw(t,e){kw(cy,t,e,DP,"layout",!0)}function so(t,e){kw(cy,t,e,kP,"visual",!0)}function kw(t,e,r,n,i,a){if((J(e)||j(e))&&(r=e,e=n),!(ue(AP,r)>=0)){AP.push(r);var o=rw.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function gy(t,e){yw[t]=e}function I9(t){vv({createCanvas:t})}function Ew(t,e,r){var n=iw("registerMap");n&&n(t,e,r)}function R9(t){var e=iw("getMap");return e&&e(t)}function Iw(t,e,r,n){return{eventContent:{selected:LI(r),isFromClick:e.isFromClick||!1}}}var l9,u9,f9,c9,p9,h9,d9,v9,xP,DP,m9,xw,kP,g9,hy,y9,x9,_9,EP,_w,Kt,ay,ur,lw,_P,uw,bP,b9,S9,LP,NP,Ql,fw,oy,oo,sy,cw,pw,Zf,qf,SP,wP,hw,TP,ly,CP,PP,di,MP,Kf,uy,bw,w9,fy,dw,vw,mw,gw,cy,zP,yw,eu,py,T9,C9,Sw,A9,AP,Ow,L9,tu=k(()=>{q();kp();P();Ht();rb();qi();R1();Cm();zl();AL();NL();zL();_a();mn();io();Te();Qt();or();re();is();TN();CN();kN();LN();aa();PN();un();BN();Zl();HN();W1();ng();qg();YN();qr();aw();jg();Qg();D1();yP();ng();l9="6.1.0",u9={zrender:"6.1.0"},f9=1,c9=800,p9=900,h9=920,d9=1e3,v9=2e3,xP=5e3,DP=1e3,m9=1100,xw=2e3,kP=3e3,g9=4e3,hy=4500,y9=4600,x9=5e3,_9=6e3,EP=7e3,_w={PROCESSOR:{SERIES_FILTER:c9,AXIS_STATISTICS:h9,FILTER:d9,STATISTIC:xP,STATISTICS:xP},VISUAL:{LAYOUT:DP,PROGRESSIVE_LAYOUT:m9,GLOBAL:xw,CHART:kP,POST_CHART_LAYOUT:y9,COMPONENT:g9,BRUSH:x9,CHART_ITEM:hy,ARIA:_9,DECAL:EP}},Kt="__flagInMainProcess",ay="__mainProcessVersion",ur="__pendingUpdate",lw="__needsUpdateStatus",_P=/^[a-zA-Z0-9_]+$/,uw="__connectUpdateStatus",bP=0,b9=1,S9=2;LP=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Nt),NP=LP.prototype;NP.on=IP("on");NP.off=IP("off");uy=function(t){N(e,t);function e(r,n,i){var a=t.call(this,new NN)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[ay]=1,0)var u;i.ssr&&Vb(function(h){var d=ge(h),v=d.dataIndex;if(v!=null){var m=K();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=am(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Z(i.useDirtyRect,l),useCoarsePointer:Z(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Wl($(f.flush,f),17),a._updateTheme(n),a._locale=qR(i.locale||tg),a._coordSysMgr=new Jo;var c=a._api=CP(a);function p(h,d){return h.__prio-d.__prio}return Ks(cy,p),Ks(mw,p),a._scheduler=new rw(a,c,mw,cy),a._messageCenter=new LP,a._initEvents(),a.resize=$(a.resize,a),f.animation.on("frame",a._onframe,a),SP(f,a),wP(f,a),Bs(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(MP(this),this[ur]){var a=this[ur].silent;this[Kt]=!0,Kf(this);try{Ql(this),oo.update.call(this,null,this[ur].updateParams)}catch(l){throw this[Kt]=!1,this[ur]=null,l}this._zr.flush(),this[Kt]=!1,this[ur]=null,Zf.call(this,a),qf.call(this,a)}else if(r.unfinished){var o=f9;do{r.unfinished=!1;var s=at.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),cw(this,n),r.performVisualTasks(n),ly(this,this._model,i,"remain",{}),o-=at.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Kt]){if(this._disposed){this.id;return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Kt]=!0,Kf(this),!this._model||n){var l=new ML(this._api),u=this._theme,f=this._model=new Dg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},gw);var c={seriesTransition:s,optionChanged:!0};if(i)this[ur]={silent:a,updateParams:c},this[Kt]=!1,this.getZr().wakeUp();else{try{Ql(this),oo.update.call(this,null,c)}catch(p){throw this[ur]=null,this[Kt]=!1,p}this._ssr||this._zr.flush(),this[ur]=null,this[Kt]=!1,Zf.call(this,a),qf.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Kt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[ur]&&(a==null&&(a=this[ur].silent),o=this[ur].updateParams,this[ur]=null),this[Kt]=!0,Kf(this);try{this._updateTheme(r),i.setTheme(this._theme),Ql(this),oo.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Kt]=!1,s}this[Kt]=!1,Zf.call(this,a),qf.call(this,a)}}},e.prototype._updateTheme=function(r){W(r)&&(r=zP[r]),r&&(r=te(r),r&&kg(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;T(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(py[i]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();T(eu,function(x,_){if(x.group===i){var b=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(te(r)),S=x.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),p.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,v=c-u,m=at.createCanvas(),g=am(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:v}),n){var y="";return T(p,function(x){var _=x.left-l,b=x.top-u;y+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new be({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),T(p,function(x){var _=new _t({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return sy(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return sy(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return sy(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=na(i,r);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=na(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Zg(s,l,n):ba(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;T(w9,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&ao(l,function(v){var m=ge(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=G({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;T(vw,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),GN(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Wb(this.getDom(),Sw,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete eu[n.id]},e.prototype.resize=function(r){if(!this[Kt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[ur]&&(a==null&&(a=this[ur].silent),i=!0,this[ur]=null),this[Kt]=!0,Kf(this);try{i&&Ql(this),oo.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!1,Zf.call(this,a),qf.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(j(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!yw[r]){var i=yw[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=dw[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!fy[r.type]&&this._model){if(this[Kt]){this._pendingActions.push(r);return}var i=n.silent;pw.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&xe.browser.weChat&&this._throttledZrFlush(),Zf.call(this,i),qf.call(this,i)}},e.prototype.updateLabelLayout=function(){Rn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ql=function(c){KN(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),fw(c,!0),fw(c,!1),p.plan()},fw=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,x=0;x<v.length;x++)v[x].__alive=!1;p?h.eachComponent(function(S,w){S!=="series"&&_(w)}):h.eachSeries(_);function _(S){var w=S.__requireNewView;S.__requireNewView=!1;var M="_ec_"+S.id+"_"+S.type,C=!w&&m[M];if(!C){var A=on(S.type),E=p?Je.getClass(A.main,A.sub):Dt.getClass(A.sub);C=new E,C.init(h,y),m[M]=C,v.push(C),g.add(C.group)}S.__viewId=C.__id=M,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&d.prepareView(C,S,h,y)}for(var x=0;x<v.length;){var b=v[x];b.__alive?x++:(!p&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),v.splice(x,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},oy=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){T([].concat(c._componentsViews).concat(c._chartsViews),_);return}var g=dO(h,d,v),y=h.excludeSeriesId,x;y!=null&&(x=K(),T(Ue(y),function(b){var S=an(b,null);S!=null&&x.set(S,!0)})),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;if(!S)if(IS(h))if(b instanceof Vt)h.type===Xo&&!h.notBlur&&!b.get(["emphasis","disabled"])&&EI(b,h,c._api);else{var w=Om(b.mainType,b.componentIndex,h.name,c._api),M=w.focusSelf,C=w.dispatchers;h.type===Xo&&M&&!h.notBlur&&Mm(b.mainType,b.componentIndex,c._api),C&&T(C,function(A){h.type===Xo?ni(A):ii(A)})}else Rm(h)&&b instanceof Vt&&(RI(b,h,c._api),OS(b),di(c))},c),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;S||_(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function _(b){b&&b.__alive&&b[p]&&b[p](b.__model,m,c._api,h)}},oo={prepareAndUpdate:function(c){Ql(this),oo.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){jN(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),Rn.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),cw(this,h),m.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var x=h.get("darkMode");x!=null&&x!=="auto"&&v.setDarkMode(x),hw(this,h,d,c,p),Rn.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Sm){var x=p.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,h,d,c);_&&_.update&&v.push(x)}else v.push(x)}});var m=K();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],x=g.pipelineContext;if(y.updateTransform&&!x.progressiveRender){var _=y.updateTransform(g,h,d,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),ly(p,h,d,c,{},m),Rn.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),Dt.markUpdateMethod(c,"updateView"),n(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),hw(this,p,this._api,c,{}),Rn.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),Dt.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),Rn.trigger("afterupdate",h,this._api))},updateLayout:function(c){oo.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,x=na(m,h),_=0;_<g.length;_++){var b=g[_];if(b[p]&&(y=b[p](m,x,d,v))!=null)return y}}sy=r,cw=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},pw=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=fy[v],y=(g.update||"update").split(":"),x=y.pop(),_=y[0]!=null&&on(y[0]);this[Kt]=!0,Kf(this);var b=[c],S=!1;c.batch&&(S=!0,b=V(c.batch,function(R){return R=oe(G({},R),c),R.batch=null,R}));var w=[],M,C=[],A=g.nonRefinedEventType,E=Rm(c),O=IS(c);if(O&&ES(this._api),T(b,function(R){var F=g.action(R,d,h._api);if(g.refineEvent?C.push(F):M=F,M=M||G({},R),M.type=A,w.push(M),O){var z=Fp(c),Y=z.queryOptionMap,B=z.mainTypeSpecified,X=B?Y.keys()[0]:"series";oy(h,x,R,X),di(h)}else E?(oy(h,x,R,"series"),di(h)):_&&oy(h,x,R,_.main,_.sub)}),x!=="none"&&!O&&!E&&!_)try{this[ur]?(Ql(this),oo.update.call(this,c),this[ur]=null):oo[x].call(this,c)}catch(R){throw this[Kt]=!1,R}if(S?M={type:A,escapeConnect:m,batch:w}:M=w[0],this[Kt]=!1,!p){var D=void 0;if(g.refineEvent){var L=g.refineEvent(C,c,d,this._api).eventContent;je(j(L)),D=oe({type:g.refinedEventType},L),D.fromAction=c.type,D.fromActionPayload=c,D.escapeConnect=!0}var I=this._messageCenter;I.trigger(M.type,M),D&&I.trigger(D.type,D)}},Zf=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();pw.call(this,h,c)}},qf=function(c){!c&&this.trigger("updated")},SP=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[ur]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},wP=function(c,p){c.on("mouseover",function(h){var d=h.target,v=ao(d,$p);v&&(OI(v,h,p._api),di(p))}).on("mouseout",function(h){var d=h.target,v=ao(d,$p);v&&(II(v,h,p._api),di(p))}).on("click",function(h){var d=h.target,v=ao(d,function(y){return ge(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ge(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function i(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,x){var _=x.get("zlevel")||0,b=x.get("z")||0,S=x.getZLevelKey();d=d||!!S,(y==="series"?h:p).push({zlevel:_,z:b,idx:x.componentIndex,type:y,key:S})}),d){var v=p.concat(h),m,g;Ks(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),T(v,function(y){var x=c.getComponent(y.type,y.idx),_=y.zlevel,b=y.key;m!=null&&(_=Math.max(m,_)),b?(_===m&&b!==g&&_++,g=b):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}hw=function(c,p,h,d,v){i(p),TP(c,p,h,d,v),T(c._chartsViews,function(m){m.__alive=!1}),ly(c,p,h,d,v),T(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},TP=function(c,p,h,d,v,m){T(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,d),l(y,g),f(y,g)})},ly=function(c,p,h,d,v,m){var g=c._scheduler;v=G(v||{},{updatedSeries:p.getSeries()}),Rn.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];_.__alive=!0;var b=_.renderTask;g.updatePayload(b,d),u(x,_),m&&m.get(x.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),_.group.silent=!!x.get("silent"),s(x,_),OS(x)}),g.unfinished=y||g.unfinished,Rn.trigger("series:layoutlabels",p,h,v),Rn.trigger("series:transition",p,h,v),p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];l(x,_),f(x,_)}),o(c,p),Rn.trigger("series:afterupdate",p,h,v)},di=function(c){c[lw]=!0,c.getZr().wakeUp()},Kf=function(c){c[ay]=(c[ay]+1)%1e6},MP=function(c){c[lw]&&(c.getZr().storage.traverse(function(p){Ka(p)||a(p)}),c[lw]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Xp&&c.states.emphasis?p.push("emphasis"):c.hoverState===Wp&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Z(p.get("hoverLayerThreshold"),Cg.hoverLayerThreshold)&&!xe.node&&!xe.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(x){var _=x.states.emphasis;_&&_.hoverLayer!==Oi&&(_.hoverLayer=m?jS:KS)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=ga(c);p.eachRendered(function(d){return sh(d,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Ka(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ka(g))return;if(g instanceof ce&&PI(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}CP=function(c){return new(function(p){N(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){ni(d,v),di(c)},h.prototype.leaveEmphasis=function(d,v){ii(d,v),di(c)},h.prototype.enterBlur=function(d){Em(d),di(c)},h.prototype.leaveBlur=function(d){jp(d),di(c)},h.prototype.enterSelect=function(d){DS(d),di(c)},h.prototype.leaveSelect=function(d){kS(d),di(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[ay]},h.prototype.usingTHL=function(){return c._usingTHL},h}(Tm))(c)},PP=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[uw]=d}}T(dw,function(h,d){c._messageCenter.on(d,function(v){if(py[c.group]&&c[uw]!==bP){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];T(eu,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,bP),T(g,function(y){y[uw]!==b9&&y.dispatchAction(m)}),p(g,S9)}})})}}(),e}(Nt),bw=uy.prototype;bw.on=OP("on");bw.off=OP("off");bw.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};w9=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],fy={},dw={},vw={},mw=[],gw=[],cy=[],zP={},yw={},eu={},py={},T9=+new Date-0,C9=+new Date-0,Sw="_echarts_instance_";A9=FP;AP=[];Ow=qL;so(xw,bN);so(hy,SN);so(hy,wN);so(xw,FN);so(hy,VN);so(EP,gP);vy(kg);my(p9,PL);gy("default",tw);Cr({type:Xo,event:Xo,update:Xo},qe);Cr({type:Zp,event:Zp,update:Zp},qe);Cr({type:qp,event:Dm,update:qp,action:qe,refineEvent:Iw,publishNonRefinedEvent:!0});Cr({type:Am,event:Dm,update:Am,action:qe,refineEvent:Iw,publishNonRefinedEvent:!0});Cr({type:Kp,event:Dm,update:Kp,action:qe,refineEvent:Iw,publishNonRefinedEvent:!0});Tw("default",{});Tw("dark",RN);L9={}});function Eh(t){return t==null?0:t.length||1}function VP(t){return t}var N9,zi,jf=k(()=>{N9=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||VP,this._newKeyGetter=i||VP,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Eh(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Eh(u),p=Eh(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Eh(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Eh(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),zi=N9});function BP(t,e){var r={},n=r.encode={},i=K(),a=[],o=[],s={};T(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;Rw(n,d)[v]=p,h.isExtraCoord||(i.set(d,1),z9(h.type)&&(a[0]=p),Rw(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}wm.each(function(m,g){var y=Rw(n,g),x=h.otherDims[g];x!=null&&x!==!1&&(y[x]=h.name)})});var l=[],u={};i.each(function(p,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=V(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new P9(s,e),r}function Rw(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function UP(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function z9(t){return!(t==="ordinal"||t==="time")}var P9,Lw=k(()=>{P();un();P9=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}()});var F9,$f,Nw=k(()=>{P();F9=function(){function t(e){this.otherDims={},e!=null&&G(this,e)}return t}(),$f=F9});function xy(t){return t instanceof Pw}function Oh(t){for(var e=K(),r=0;r<(t||[]).length;r++){var n=t[r],i=j(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function zw(t){var e=V9(t);return e.dimNameMap||(e.dimNameMap=Oh(t.dimensionsDefine))}function Fw(t){return t>30}var V9,B9,Pw,Ih=k(()=>{P();re();to();V9=ne(),B9={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Pw=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=zw(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Og(this.source),n=!Fw(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=B9[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}()});var Rh,ss,U9,G9,GP,H9,Y9,HP,_y,Lh,Nh,Vw,Ph,Bw,W9,Ln,Jf=k(()=>{P();hn();jf();Hl();Lw();Nw();un();re();Qt();to();Fg();Ih();Rh=j,ss=V,U9=typeof Int32Array>"u"?Array:Int32Array,G9="e\0\0",GP=-1,H9=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Y9=["_approximateExtent"],W9=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;xy(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],p=W(c)?new $f({name:c}):c instanceof $f?c:new $f(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),i&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=K();T(o,function(m){v.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof gh&&(a=e),!a){var o=this.dimensions,s=Uf(e)||wt(e)?new Rg(e,o.length):e;a=new gh;var l=ss(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=BP(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Bw(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Cn&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===er;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&sO(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=an(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=an(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Bw(this,f);HP(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Rh(e)?G(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Lh(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return _y(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return U(e)?i.getValues(ss(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?GP:i},t.prototype.each=function(e,r,n){"use strict";J(e)&&(n=r,r=e,e=[]);var i=n||this,a=ss(Nh(e),this._getStoreDimIndex,this);this._store.each(a,i?$(r,i):r)},t.prototype.filterSelf=function(e,r,n){"use strict";J(e)&&(n=r,r=e,e=[]);var i=n||this,a=ss(Nh(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?$(r,i):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,n={},i=he(e),a=[];return T(i,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){"use strict";J(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){"use strict";var a=n||i||this,o=ss(Nh(e),this._getStoreDimIndex,this),s=Ph(this);return s._store=this._store.map(o,a?$(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this,s=ss(Nh(e),this._getStoreDimIndex,this);this._store.modify(s,o?$(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Ph(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ph(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ph(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ge(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new zi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _y(e,n)},function(n){return _y(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Rh(e)?G(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),U(a)?a=a.slice():Rh(a)&&(a=G({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Rh(r)?G(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Rh(e)?G(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?G(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;gI(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){T(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ss(this.dimensions,this._getDimInfo,this),this.hostModel)),Vw(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];J(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(op(arguments)))})},t.internalField=function(){HP=function(e){var r=e._invertedIndicesMap;T(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new U9(o.categories.length);for(var l=0;l<n.length;l++)n[l]=GP;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Lh=function(e,r,n){return an(e._getCategory(r,n),null)},_y=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Lh(e,e._idDimIdx,r)),n==null&&(n=G9+r),n},Nh=function(e){return U(e)||(e=e!=null?[e]:[]),e},Ph=function(e){var r=new t(e._schema?e._schema:ss(e.dimensions,e._getDimInfo,e),e.hostModel);return Vw(r,e),r},Vw=function(e,r){T(H9.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,T(Y9,function(n){e[n]=te(r[n])}),e._calculationInfo=G({},r._calculationInfo)},Bw=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Lh(e,a,r)),l==null&&o!=null&&(i[r]=l=Lh(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),t}(),Ln=W9});function YP(t,e){return by(t,e).dimensions}function by(t,e){Uf(t)||(t=Gf(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=K(),a=[],o=X9(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Fw(o),l=n===t.dimensionsDefine,u=l?zw(t):Oh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=K(f),p=new Z1(o),h=0;h<p.length;h++)p[h]=-1;function d(C){var A=p[C];if(A<0){var E=n[C],O=j(E)?E:{name:E},D=new $f,L=O.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),O.type!=null&&(D.type=O.type),O.displayName!=null&&(D.displayName=O.displayName);var I=a.length;return p[C]=I,D.storeDimIndex=C,a.push(D),D}return a[A]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(C,A){var E=Ue(C).slice();if(E.length===1&&!W(E[0])&&E[0]<0){c.set(A,!1);return}var O=c.set(A,[]);T(E,function(D,L){var I=W(D)?u.get(D):D;I!=null&&I<o&&(O[L]=I,m(d(I),A,L))})});var v=0;T(r,function(C){var A,E,O,D;if(W(C))A=C,D={};else{D=C,A=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=G({},D),D.ordinalMeta=L,E=D.dimsDef,O=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var I=c.get(A);if(I!==!1){if(I=Ue(I),!I.length)for(var R=0;R<(E&&E.length||1);R++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&I.push(v++)}T(I,function(F,z){var Y=d(F);if(l&&D.type!=null&&(Y.type=D.type),m(oe(Y,D),A,z),Y.name==null&&E){var B=E[z];!j(B)&&(B={name:B}),Y.name=Y.displayName=B.name,Y.defaultTooltip=B.defaultTooltip}O&&oe(Y.otherDims,O)})}});function m(C,A,E){wm.get(A)!=null?C.otherDims[A]=E:(C.coordDim=A,C.coordDimIndex=E,i.set(A,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){b(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),M=w.coordDim;M==null&&(w.coordDim=Z9(_,i,x),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(Mg(t,S)===Vr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return cf(a,function(C){return C.name},function(C,A){A>0&&(C.name=C.name+(A-1))}),new Pw({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function X9(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return T(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Z9(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Uw=k(()=>{un();Nw();P();to();Fg();re();Bf();Ih()});function WP(t){var e=t.get("coordinateSystem"),r=new q9(e),n=K9[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}function Qf(t){return t.get("type")==="category"}var q9,K9,XP=k(()=>{P();re();q9=function(){function t(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return t}();K9={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",xt).models[0],a=t.getReferringComponents("yAxis",xt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Qf(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Qf(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",xt).models[0];e.coordSysDims=["single"],r.set("single",i),Qf(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",xt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Qf(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Qf(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Qf(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",xt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}}});function Sy(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;j9(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function d(_){return _.type!=="ordinal"&&_.type!=="time"}if(T(a,function(_,b){W(_)&&(a[b]=_={name:_}),d(_)||(h=!1)}),T(a,function(_,b){l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&d(_)&&(!h||_.coordDim!=="x"&&_.coordDim!=="angle")&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;T(a,function(_){_.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),x.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(a.push(y),a.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:c}}function j9(t){return!xy(t.schema)}function Nn(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function ec(t,e){return Nn(t,e)?t.getCalculationInfo("stackResultDimension"):e}var lo=k(()=>{P();Ih()});function $9(t,e){var r=t.get("coordinateSystem"),n=Jo.get(r),i;return e&&e.coordSysDims&&(i=V(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=UP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function J9(t,e,r){var n,i;return r&&T(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Q9(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=Gf(t)):(i=n.getSource(),a=i.sourceFormat===er);var o=WP(e),s=$9(e,o),l=r.useEncodeDefaulter,u=J(l)?l:l?ve(vL,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=by(i,f),p=J9(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=Sy(e,{schema:c,store:h}),v=new Ln(c,e);v.setCalculationInfo(d);var m=p!=null&&eq(i)?function(g,y,x,_){return _===p?x:this.defaultDimValueGetter(g,y,x,_)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,m),v}function eq(t){if(t.sourceFormat===er){var e=tq(t.data||[]);return!U(Wa(e))}}function tq(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var gn,ls=k(()=>{P();Jf();Uw();Lw();re();zl();XP();to();lo();Bf();un();gn=Q9});var ZP,Ur,tc=k(()=>{aa();ZP=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Vo(ZP);Ur=ZP});function iq(t){return j(t)&&t.value!=null?t.value:t+""}var rq,nq,zh,Gw=k(()=>{P();rq=0,nq=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rq,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&V(n,iq);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},t}();zh=nq});function nc(t,e,r){var n;t=t||{};var i=Ze();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(T(KP,function(o){a[o]&&(t[o]=$(a[o],a))}),n=a)}return n==null&&wy(t,r),{brk:n,mapper:t}}function ic(t,e){T(KP,function(r){t[r]=e[r]})}function ac(t,e){t.freeze=qe}function uo(t){return t.getExtentUnsafe(vr,vi)}function ru(t,e){return t.getExtentUnsafe(rc,e)||t.getExtentUnsafe(vr,e)}function $P(t){var e=ru(t,jP);return e[1]-e[0]}function oc(t){var e=t.getExtentUnsafe(vr,jP);return e[1]-e[0]}function wy(t,e){var r=t||{},n=[];return r._extents=n,n[vr]=e?e.slice():Zt(),G(r,oq),r}function qP(t,e,r,n){ki(r,n)&&(t[e][0]=r,t[e][1]=n)}var vr,rc,aq,KP,vi,jP,oq,mi=k(()=>{P();re();En();vr=0,rc=1,aq={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},KP=he(aq),vi=2,jP=3;oq={needTransform:function(){return!1},normalize:function(t){var e=this._extents[rc]||this._extents[vr];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[rc]||this._extents[vr];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=ru(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[vr].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){qP(this._extents,vr,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[vr].slice()),qP(n,t,e,r)},freeze:function(){}}});function Ty(t){return sc(t)||wa(t)}function sc(t){return t.type==="interval"}function Sa(t){return t.type==="time"}function wa(t){return t.type==="log"}function st(t){return t.type==="ordinal"}function JP(t){var e=of(t),r=zo(10,e),n=rn(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,De(n*r,-e)}function Fi(t){return Rr(t)+2}function Fh(t,e){return Po(t)/Po(e)}function Cy(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return zo(e,t)}function My(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=tt(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Di(n[0])||!Di(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function QP(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Vh(t,e){return t=t||e,rn(Ae(t,1))}function Ay(t,e,r){var n=uo(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var Bt=k(()=>{Se();re();mi()});var e2,t2,r2=k(()=>{q();tc();Gw();P();Se();mi();Bt();e2=function(t){N(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,ic(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new zh({})),U(i)&&(i=new zh({categories:V(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=nc(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,ac(n,a.mapper),n}return e.parse=function(r){return r==null?r=NaN:W(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=rn(r),r},e.prototype.getTicks=function(){var r=[];return Ay(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=rt(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=uo(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(rn(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e}(Ur);Ur.registerClass(e2);t2=e2});function lc(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,d=Fi(h);f<e-1;){var v=De(u.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Ze();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},n,o),a.push(c)}}return a}var Dy=k(()=>{Se();En();Bt()});var n2,nu,Hw=k(()=>{q();Se();vn();tc();Bt();En();P();Dy();mi();n2=function(t){N(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=ig(n,r),a=nc(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return te(this._cfg)},e.prototype.setConfig=function(r){var n=uo(this);this._cfg=r=te(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Fi(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=uo(this),o=n.niceExtent,s=n.intervalPrecision,l=Ze(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?De(o[0]-i,s):a[0]});for(var h=function(x,_){return rn((_-x)/i)},d=n.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=rt(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=De(v+i,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=De(v+g*i,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?De(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(x){return x.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return lc(this,r,Ll(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Rr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=De(r.value,i,!0);return uh(a)},e.type="interval",e}(Ur);Ur.registerClass(n2);nu=n2});function o2(t,e,r,n){return If(new Date(e),t,n).getTime()===If(new Date(r),t,n).getTime()}function lq(t,e){return t/=On,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function uq(t){var e=30*On;return t/=e,t>6?6:t>3?3:t>2?2:1}function fq(t){return t/=Ef,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function i2(t,e){return t/=e?lg:sg,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function cq(t){return Ae(Ha(t,!0),1)}function pq(t,e,r){var n=Math.max(0,ue(dn,e)-1);return If(new Date(t),dn[n],r).getTime()}function hq(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function dq(t,e,r,n,i,a){var o=3e3,s=JR,l=0;function u(R,F,z,Y,B,X,ee){for(var ie=hq(B,R),ae=F,we=new Date(ae);ae<z&&ae<=n[1]&&(ee.push({value:ae}),!(l++>o));)if(we[B](we[Y]()+R),ae=we.getTime(),a){var Oe=a.calcNiceTickMultiple(ae,ie);Oe>0&&(we[B](we[Y]()+Oe*R),ae=we.getTime())}ee.push({value:ae,notAdd:ae>n[1]})}function f(R,F,z){var Y=[],B=!F.length;if(!o2(Of(R),n[0],n[1],r)){B&&(F=[{value:pq(n[0],R,r)},{value:n[1]}]);for(var X=0;X<F.length-1;X++){var ee=F[X].value,ie=F[X+1].value;if(ee!==ie){var ae=void 0,we=void 0,Oe=void 0,Qe=!1;switch(R){case"year":ae=Math.max(1,Math.round(e/On/365)),we=v1(r),Oe=nL(r);break;case"half-year":case"quarter":case"month":ae=uq(e),we=ug(r),Oe=m1(r);break;case"week":case"half-week":case"day":ae=lq(e,31),we=fg(r),Oe=g1(r),Qe=!0;break;case"half-day":case"quarter-day":case"hour":ae=fq(e),we=cg(r),Oe=y1(r);break;case"minute":ae=i2(e,!0),we=pg(r),Oe=x1(r);break;case"second":ae=i2(e,!1),we=hg(r),Oe=_1(r);break;case"millisecond":ae=cq(e),we=dg(r),Oe=b1(r);break}ie>=n[0]&&ee<=n[1]&&u(ae,ee,ie,we,Oe,Qe,Y),R==="year"&&z.length>1&&X===0&&z.unshift({value:z[0].value-ae})}}for(var X=0;X<Y.length;X++)z.push(Y[X])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=Of(s[v]);if(eL(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?Of(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(R,F){return R.value-F.value});for(var y=[],x=0;x<p.length;++x){var _=p[x].value;(x===0||p[x-1].value!==_)&&(y.push(p[x]),_>=n[0]&&_<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[v]))break}p=[]}}}for(var S=Ce(V(c,function(R){return Ce(R,function(F){return F.value>=n[0]&&F.value<=n[1]&&!F.notAdd})}),function(R){return R.length>0}),w=S.length-1,M=[],v=0;v<S.length;++v)for(var C=S[v],A=0;A<C.length;++A){var E=Pl(C[A].value,r);M.push({value:C[A].value,time:{level:w-v,upperTimeUnit:E,lowerTimeUnit:E}})}cf(M,xO,null),M.sort(function(R,F){return R.value-F.value});var O=M[0],D=M[M.length-1],L=Pl(n[0],r),I=Pl(n[1],r);return(!O||O.value>n[0])&&M.unshift({value:n[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!D||D.value<n[1])&&M.push({value:n[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),M}var sq,a2,ky,s2,l2,Yw=k(()=>{q();Se();Rf();Bt();tc();P();En();Dy();mi();re();sq=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},a2=function(t){N(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=ig(n,r),a=nc(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Qa(r.value,d1[tL(Of(this._minLevelUnit))]||d1.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return rL(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=uo(this),a=Ze(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ze().addBreaksToTicks(l,o.breaks,i),l;l=dq(this._minLevelUnit,this._approxInterval,u,i,oc(this),o);var f=dn.length-1,c=0;return T(l,function(p){p.time&&(f=Math.min(f,ue(dn,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ze().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&Ze().addBreaksToTicks(l,o.breaks,i,function(p){for(var h=Math.max(ue(dn,Pl(p.vmin,u)),ue(dn,Pl(p.vmax,u))),d=0,v=0;v<dn.length;v++)if(!o2(dn[v],p.vmin,p.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:dn[g],upperTimeUnit:dn[m]}}),l},e.prototype.getMinorTicks=function(r){return lc(this,r,Ll(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return Me(r)?Math.round(r):+Lr(r)},e.type="time",e}(Ur),ky=[["second",sg],["minute",lg],["hour",Ef],["quarter-day",Ef*6],["half-day",Ef*12],["day",On*1.2],["half-week",On*3.5],["week",On*7],["month",On*31],["quarter",On*95],["half-year",h1/2],["year",h1]];s2=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=On,r[1]+=On),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-On}t.setExtent(r[0],r[1]);var i=Vh(e.splitNumber,10),a=oc(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=ky.length,u=Math.min(sq(ky,a,0,l),l-1),f=ky[u][1],c=ky[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Ur.registerClass(a2);l2=a2});var Ey,Oy,vq,p2,u2,f2,c2,h2,d2=k(()=>{q();tc();Hw();Bt();En();Dy();mi();P();re();Se();Ey=0,Oy=1,vq=2,p2=function(t){N(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=nu.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[Ey]=i[Oy]=a[Ey]=a[Oy]=NaN,ic(n,e.mapperMethods);var s=Ze(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},vq,u),n.powStub=new nu({breakParsed:u.original}),n.intervalStub=new nu({breakParsed:u.transformed}),ac(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=Ze(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return V(o.getTicks(r||{}),function(f){var c=f.value,p=Cy(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Ll(i),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return lc(this,r,Ll(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Fh(r,this.base))},scale:function(r){return Cy(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Fh(r,this.base),n&&n.depth===vi?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return u2.depth=i,f2.lookup=this._lookup,Cy(i===vi?r:this.intervalStub.transformOut(r,u2),this.base,f2)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(vr,r,n)},setExtent2:function(r,n,i){if(!(!ki(n,i)||n<=0||i<=0)){var a=c2,o=c2;if(r===vr){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Ey]=n,a[Oy]=i);var l=this.base;this.intervalStub.setExtent2(r,o[Ey]=Fh(n,l),o[Oy]=Fh(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return ki(n[0],n[1])&&Xt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e}(Ur);Ur.registerClass(p2);u2={},f2={},c2=[],h2=p2});var Iy,Ww=k(()=>{Iy={value:1,category:1,time:1,log:1}});function Ly(t){var e=t.get("type");return(e==null||!Q(Iy,e)&&!Ur.getClass(e))&&(e="value"),e}function Ny(t,e,r){var n=Ze(),i;switch(n&&(i=Xw(t,e,r)),e){case"category":return new t2({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Zt()});case"time":return new l2({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new h2({logBase:t.get("logBase"),breakOption:i});case"value":return new nu({breakOption:i});default:return new(Ur.getClass(e)||nu)({})}}function m2(t,e,r){var n=r?ru(t,null):t.getExtentUnsafe(vr,null),i=n[0],a=n[1];return ki(i,a)?i===e||a===e?gq:i<e&&a>e?mq:Ry:Ry}function g2(t){v2(t).noOnMyZero=!0}function y2(t){return v2(t).noOnMyZero}function Bh(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=QR(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(W(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(J(e)){if(t.type==="category")return function(i,a){return e(uc(t,i),i.value-t.scale.getExtent()[0],null)};var n=Ze();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(uc(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function uc(t,e){var r=t.scale;return st(r)?r.getLabel(e):e.value}function Py(t){var e=t.get("interval");return e??"auto"}function x2(t){return t.type==="category"&&Py(t.getLabelModel())===0}function _2(t,e){var r={};return T(t.mapDimensionsAll(e),function(n){r[ec(t,n)]=!0}),he(r)}function us(t){return t==="middle"||t==="center"}function iu(t){return t.getShallow("show")}function Xw(t,e,r){var n=t.get("breaks",!0);if(n!=null){if(!Ze())return;if(!r||!yq(e)){if(0)var i;return}return n}}function yq(t){return t!=="category"}function zy(t,e,r,n,i,a){var o=wa(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:vi},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),p=QP(r,n);e[0]&&!p[0]&&(f=i[0]),e[1]&&!p[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function fo(t,e){return st(t)?t.getRawOrdinalNumber(e.value):e.value}function Fy(t,e){return st(t)&&!!e.get("boundaryGap")}var v2,mq,gq,Ry,Pn=k(()=>{P();r2();Hw();tc();Yw();d2();Ww();lo();Rf();En();Bt();re();mi();v2=ne();mq=1,gq=2,Ry=3});var fc,Vy=k(()=>{fc=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()});function S2(t,e){var r=t.model,n=cc(ql(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function w2(t,e){return M2(S2(t,e))}function T2(t,e){var r=[];return C2(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(M2(n))}),r}function C2(t,e){var r=cc(ql(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function M2(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function A2(t,e){var r=t.model.ecModel,n=cc(ql(r)).axSer;n&&Gy(r,n.get(t.model.uid),e)}function jw(t,e,r){var n=S2(t,e);n&&Gy(t.model.ecModel,n.sers,r)}function Gy(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function D2(t,e,r){var n=cc(ql(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function $w(t,e){var r=t.model,n=cc(ql(r.ecModel)).keys;n&&T(n.get(r.uid),function(i){if(0)var a;e(i)})}function bq(t){var e=_q(Jg(t)),r=e.keyed||(e.keyed=K());C2(t,function(n,i,a){var o=r.get(i)||r.set(i,K()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&E2.liPosMinGap(t,n,s)})}function k2(t,e){E2[t]=e}function Jw(t,e,r){if(t){var n=e.ecModel,i=cc(ql(n)),a=t.model.uid;if(0)var o,s;var l=i.axSer||(i.axSer=K()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=Kw.get(qw(c,p,r))||Kw.get(qw(c,p,null));if(h){var d=i.keyed||(i.keyed=K()),v=i.keys||(i.keys=K()),m=h.key,g=d.get(m)||d.set(m,K()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function qw(t,e,r){return t+By+Z(e,!0)+By+(r||"")}function O2(t,e){var r=qw(e.seriesType,e.baseAxis,e.coordSysType);Kw.set(r,e),xq(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:bq})})}var xq,By,cc,Uy,b2,_q,E2,Kw,fs=k(()=>{P();re();Qg();xq=ff(),By="|&",cc=ne(),Uy=-2,b2=-1,_q=ne();E2={};Kw=K()});function I2(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),uf(e))}function Uh(t,e){return e==null?null:_n(e)?NaN:t.parse(e)}function Tq(t,e){var r;if(st(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=U(n)?n:[n,n]}return[R2(r[0]),R2(r[1])]}function R2(t){return tn(typeof t=="boolean"?0:t,1)||0}function z2(t){var e=Sq(t.scale);return e.extent||(e.extent=Zt()),e}function F2(t,e){z2(t).dimIdxInCoord=e.get(t.dim)}function Hy(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||Cq(r,t,i,n,e)}function Cq(t,e,r,n,i){var a=z2(e),o=a.extent,s=!1;A2(e,function(f){if(f.boxCoordinateSystem){var c=_g(f).coord,p=a.dimIdxInCoord;if(p>=0){if(U(c)){var h=c[p];h!=null&&!U(h)&&Vp(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;T(_2(d,r),function(m){gO(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=Aq(t,e,n),u=new P2(t,n,o,s,l);V2(t,u,i),a.extent=null}function Mq(t,e){var r=t.scale;V2(r,new P2(r,t.model,e,!1,!1),wq)}function V2(t,e,r){t.rawExtentInfo=e,e.from=r}function B2(t,e){Qw.set(t,e)}function Yy(t,e,r,n,i){t.rawExtentInfo||Mq({scale:t,model:e},i||Zt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function Aq(t,e,r){var n=Fy(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return $w(e,function(o){a=!!Qw.get(o)||a}),a}function U2(t,e,r,n){if(r.ctnShp){var i;if($w(t,function(s){var l=Qw.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],Xb(i,u[0]),Zb(i,u[1]),g2(t))}}),!!i){var a=e.getExtent();if(st(e))t.onBand||e.setExtent2(rc,rt(a[0],a[0]+i[0]),Ae(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=rt(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=Ae(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(rc,o[0],o[1])}}}}var Sq,L2,N2,wq,P2,Qw,pc=k(()=>{P();wn();Bt();re();Pn();zl();Se();mi();fs();Sq=ne(),L2=1,N2=2,wq=3,P2=function(){function t(e,r,n,i,a){var o=st(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(sc(e)||wa(e)||Sa(e))&&(Xb(f,Uh(e,r.get("dataMin",!0))),Zb(f,Uh(e,r.get("dataMax",!0)))),yO(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Uh(e,J(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Uh(e,J(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=Tq(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Di(c[0])&&(c[0]=NaN),!Di(c[1])&&(c[1]=NaN);var g=l||_n(c[0])||_n(c[1])||o&&!s,y=sc(e),x=y&&r.needIncludeZero&&r.needIncludeZero();x&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var b=Uh(e,r.get("startValue",!0)),S=b!=null;!Xt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Xt(b)&&(S||!y||x)&&(b<c[0]&&!p[0]?(c[0]=b,p[0]=!0):b>c[1]&&!p[1]&&(c[1]=b,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:x,tggAxInv:_,ctnShp:a};I2(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),I2(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t}();Qw=K()});function G2(t,e){var r=wa(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=My(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?kq(n,e):Dq(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Fi(c)),i[0]||(s[0]=De(nn(s[0]/f)*f,u)),i[1]||(s[1]=De(ra(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),zy(t,i,o,s,a,l)}function Dq(t,e){var r=Vh(e.splitNumber,5),n=oc(t),i=e.minInterval,a=e.maxInterval,o=Ha(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Fi(o),l=t.getExtent(),u=[De(ra(l[0]/o)*o,s),De(nn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function kq(t,e){var r=Vh(e.splitNumber,10),n=t.getExtent(),i=oc(t),a=Ae(af(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Fi(a),l=[De(ra(n[0]/a)*a,s),De(nn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function eT(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;tT(e,r,n,i,null)}function tT(t,e,r,n,i){var a=Yy(t,e,n,r,i),o=sc(t)||Sa(t);Eq(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&U2(r,t,a,n)}function Eq(t,e){Oq[t.type](t,e)}var Oq,rT=k(()=>{P();Bt();Se();Pn();Yw();pc();mi();Oq={interval:G2,log:G2,time:s2,ordinal:qe}});var nT={};Or(nT,{createDimensions:()=>YP,createList:()=>Iq,createScale:()=>Lq,createSymbol:()=>mt,createTextStyle:()=>Pq,dataStack:()=>Rq,enableHoverEmphasis:()=>Zo,getECData:()=>ge,getLayoutRect:()=>tr,mixinAxisModelCommonMethods:()=>Nq});function Iq(t){return gn(null,t)}function Lq(t,e){var r=e;e instanceof Ge||(r=new Ge(e));var n=Ly(r),i=Ny(r,n,!1);return t[1]<t[0]&&(t=t.slice().reverse()),tT(i,r,null,null,t),i}function Nq(t){kt(t,fc)}function Pq(t,e){return e=e||{},pt(t,null,null,e.state!=="normal")}var Rq,H2=k(()=>{P();ls();Pn();Vy();hn();dr();lo();Qt();Ot();rT();Uw();hi();or();Rq={isDimensionStacked:Nn,enableDataStack:Sy,getStackedDimension:ec}});function lt(t){if(U(t)){T(t,function(e){lt(e)});return}ue(Y2,t)>=0||(Y2.push(t),J(t)&&(t={install:t}),t.install(zq))}var Y2,zq,Vi=k(()=>{tu();mn();io();wr();_a();P();aw();kp();jg();Y2=[],zq={registerPreprocessor:vy,registerProcessor:my,registerPostInit:Cw,registerPostUpdate:Mw,registerUpdateLifecycle:kh,registerAction:Cr,registerCoordinateSystem:Aw,registerLayout:Dw,registerVisual:so,registerTransform:Ow,registerLoading:gy,registerMap:Ew,registerImpl:XN,PRIORITY:_w,ComponentModel:ke,ComponentView:Je,SeriesModel:Vt,ChartView:Dt,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){Je.registerClass(t)},registerSeriesModel:function(t){Vt.registerClass(t)},registerChartView:function(t){Dt.registerClass(t)},registerCustomSeries:function(t,e){Kg(t,e)},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zb(t,e)}}});function W2(t,e){return Math.abs(t-e)<Fq}function iT(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=ti(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!W2(i[0],s[0])||!W2(i[1],s[1]))&&(n+=ti(i[0],i[1],s[0],s[1],e,r)),n!==0}var Fq,X2=k(()=>{vS();Fq=1e-8});function aT(t,e){for(var r=0;r<t.length;r++)ot(t[r],t[r],e)}function Z2(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Hn(e,e,a),Yn(r,r,a))}}function Uq(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Bq,q2,oT,sT,K2,rge,j2=k(()=>{q();Ct();Lt();X2();bn();P();Bq=[];q2=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),oT=function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t}(),sT=function(){function t(e){this.type="linestring",this.points=e}return t}(),K2=function(t){N(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Uq(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Z2(s.exterior,i,a,r):T(s.points,function(l){Z2(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new fe(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(iT(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(iT(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new fe(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(aT(p.exterior,u),T(p.interiors,function(h){aT(h,u)})):T(p.points,function(h){aT(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(q2),rge=function(t){N(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Wn(Bq),o=r;o&&!o.isGeoSVGGraphicRoot;)Qr(a,o.getLocalTransform(),a),o=o.parent;return xr(a,a),ot(i,i,a),i},e}(q2)});function Gq(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return T(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=$2(s,o,r);break;case"Polygon":lT(s,o,r);break;case"MultiLineString":lT(s,o,r);break;case"MultiPolygon":T(s,function(l,u){return lT(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function lT(t,e,r){for(var n=0;n<t.length;n++)t[n]=$2(t[n],e[n],r)}function $2(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Wy(t,e){return t=Gq(t),V(Ce(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new oT(o[0],o.slice(1)));break;case"MultiPolygon":T(i.coordinates,function(l){l[0]&&a.push(new oT(l[0],l.slice(1)))});break;case"LineString":a.push(new sT([i.coordinates]));break;case"MultiLineString":a.push(new sT(i.coordinates))}var s=new K2(n[e||"name"],a,n.cp);return s.properties=n,s})}var uT=k(()=>{P();j2()});var fT={};Or(fT,{MAX_SAFE_INTEGER:()=>Op,asc:()=>Mt,getPercentWithPrecision:()=>JE,getPixelPrecision:()=>$E,getPrecision:()=>Rr,getPrecisionSafe:()=>Bb,isNumeric:()=>Lp,isRadianAroundZero:()=>ul,linearMap:()=>Be,nice:()=>Ha,numericToNumber:()=>Jn,parseDate:()=>Lr,parsePercent:()=>ze,quantile:()=>QE,quantity:()=>af,quantityExponent:()=>of,reformIntervals:()=>Rp,remRadian:()=>Ip,round:()=>jE});var J2=k(()=>{Se()});var cT={};Or(cT,{format:()=>Qa,parse:()=>Lr,roundTime:()=>If});var Q2=k(()=>{Se();Rf()});var pT={};Or(pT,{Arc:()=>Al,BezierCurve:()=>Ml,BoundingRect:()=>fe,Circle:()=>Tl,CompoundPath:()=>qo,Ellipse:()=>eh,Group:()=>ye,Image:()=>_t,IncrementalDisplayable:()=>Xm,Line:()=>pr,LinearGradient:()=>Ko,Polygon:()=>sr,Polyline:()=>fn,RadialGradient:()=>Bm,Rect:()=>be,Ring:()=>nh,Sector:()=>An,Text:()=>Ie,clipPointsByRect:()=>oh,clipRectByRect:()=>t1,createIcon:()=>$a,extendPath:()=>JS,extendShape:()=>$S,getShapeClass:()=>Cf,getTransform:()=>Ii,initProps:()=>vt,makeImage:()=>ah,makePath:()=>ja,mergePath:()=>QS,registerShape:()=>Dn,resizePath:()=>Km,updateProps:()=>We});var ez=k(()=>{Te()});var hT={};Or(hT,{addCommas:()=>uh,capitalFirst:()=>sL,encodeHTML:()=>Pt,formatTime:()=>oL,formatTpl:()=>Nf,getTextRect:()=>S1,getTooltipMarker:()=>mg,normalizeCssArray:()=>li,toCamelCase:()=>Lf,truncateText:()=>Jb});var tz=k(()=>{vn()});var dT={};Or(dT,{bind:()=>$,clone:()=>te,curry:()=>ve,defaults:()=>oe,each:()=>T,extend:()=>G,filter:()=>Ce,indexOf:()=>ue,inherits:()=>ap,isArray:()=>U,isFunction:()=>J,isObject:()=>j,isString:()=>W,map:()=>V,merge:()=>de,reduce:()=>ir});var rz=k(()=>{P()});function hc(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function nz(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:V(az(r,n),function(i,a){return{formattedLabel:Bh(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?Yq(t,e):Xq(t)}function iz(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:az(i,n)}:t.type==="category"?Wq(t,e):{ticks:n.getTicks(r)}}function az(t,e){var r=e.getExtent(),n=[];return T(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),cf(n,_O,null),Mt(n),V(n,function(i){return{value:i}})}function Yq(t,e){var r=t.getLabelModel(),n=oz(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function oz(t,e,r){var n=qq(t),i=Py(e),a=r.kind===yn.estimate;if(!a){var o=lz(n,i);if(o)return o}var s,l;J(i)?s=Xy(t,i,!1):(l=i==="auto"?Kq(t,r):i,s=Xy(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return vT(n,i,u),!0}):vT(n,i,u),u}function Wq(t,e){var r=Zq(t),n=Py(e),i=lz(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),J(n))a=Xy(t,n,!0);else if(n==="auto"){var s=oz(t,t.getLabelModel(),hc(yn.determine));o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tick})}else o=n,a=Xy(t,o,!0);return vT(r,n,{ticks:a,tickCategoryInterval:o})}function Xq(t){var e=t.scale.getTicks(),r=Bh(t);return{labels:V(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}function sz(t){return function(r){return Gh(r)[t]||(Gh(r)[t]={list:[]})}}function lz(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function vT(t,e,r){return t.list.push({key:e,value:r}),r}function Kq(t,e){if(e.kind===yn.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Gh(t).autoInterval=r,!0}),r}var n=Gh(t).autoInterval;return n??(Gh(t).autoInterval=t.calculateCategoryInterval(e))}function uz(t,e){var r=e.kind,n=$q(t),i=Bh(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,x=Qu(i({value:c}),n.font,"center","top");g=x.width*1.3,y=x.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var _=v/h,b=m/d;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b)));if(r===yn.estimate)return e.out.noPxChangeTryDetermine.push($(jq,null,t,S,l)),S;var w=fz(t,S,l);return w??S}function jq(t,e,r){return fz(t,e,r)==null}function fz(t,e,r){var n=Hq(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function $q(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Xy(t,e,r){var n=Bh(t),i=t.scale,a=[],o=J(e);return Ay(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var Hq,Gh,yn,Zq,qq,Zy=k(()=>{P();wn();re();Pn();Se();Bt();Hq=ne(),Gh=ne(),yn={estimate:1,determine:2};Zq=sz("axisTick"),qq=sz("axisLabel")});function bt(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=$P(n);Xt(o)||(o=NaN);var s=t.getExtent(),l=tt(s[1]-s[0]);return st(n)?Qq(r,t,o,l):i?eK(r,t,o,l,i):a==null,a!=null&&(r.w=Xt(r.w)?Ae(a,r.w):a),r}function Qq(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function eK(t,e,r,n,i){var a=!1,o=-1/0;T(i.key?[w2(e,i.key)]:T2(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Uy&&(a=!0))}),Xt(r)&&r>0&&Xt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*Jq,t.w2=t.w*r/n)}var Jq,Bi=k(()=>{P();Bt();Se();fs();mi();Jq=.8});function pz(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function rK(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=bt(t).w;if(!i)return!1;T(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var cz,tK,qy,mT=k(()=>{P();Se();Zy();Bt();Bi();Pn();cz=[0,1],tK=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),Be(e,cz,pz(this),r)},t.prototype.coordToData=function(e,r){var n=Be(e,pz(this),cz,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=iz(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=V(n.ticks,function(s){return{coord:this.dataToCoord(fo(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=rK(this,i,a);return V(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(st(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=V(n,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||hc(yn.determine),nz(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return bt(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||hc(yn.determine),uz(this,e)},t}();qy=tK});function nK(t){var e=ke.extend(t);return ke.registerClass(e),e}function iK(t){var e=Je.extend(t);return Je.registerClass(e),e}function aK(t){var e=Vt.extend(t);return Vt.registerClass(e),e}function oK(t){var e=Dt.extend(t);return Dt.registerClass(e),e}var hz=k(()=>{wr();mn();_a();io();Jf();kp();bn();Lt();P();Ir();is();H2();Vi();qr();uT();uT();J2();Q2();ez();tz();rz();Ht();hn();mT();Dh()});function lK(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0);break}}function uK(t,e,r,n,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,c=s*r+e;if(Math.abs(n-i)%Hh<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var p=n;n=ei(i),i=ei(p)}else n=ei(n),i=ei(i);n>i&&(i+=Hh);var h=Math.atan2(s,o);if(h<0&&(h+=Hh),h>=n&&h<=i||h+Hh>=n&&h+Hh<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+t,v=r*Math.sin(n)+e,m=r*Math.cos(i)+t,g=r*Math.sin(i)+e,y=(d-o)*(d-o)+(v-s)*(v-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=d,l[1]=v,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function yT(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var v=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((v-i)*(v-i)+(m-a)*(m-a))}function vz(t,e,r,n,i,a,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}function fK(t,e,r){var n=vz(e.x,e.y,e.width,e.height,t.x,t.y,Ui);return r.set(Ui[0],Ui[1]),n}function cK(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=e.data,c=t.x,p=t.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var v=u;switch(d){case au.M:a=f[h++],o=f[h++],n=a,i=o;break;case au.L:v=yT(n,i,f[h],f[h+1],c,p,Ui,!0),n=f[h++],i=f[h++];break;case au.C:v=Ov(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,p,Ui),n=f[h++],i=f[h++];break;case au.Q:v=Rv(n,i,f[h++],f[h++],f[h],f[h+1],c,p,Ui),n=f[h++],i=f[h++];break;case au.A:var m=f[h++],g=f[h++],y=f[h++],x=f[h++],_=f[h++],b=f[h++];h+=1;var S=!!(1-f[h++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,h<=1&&(a=s,o=l);var w=(c-m)*x/y+m;v=uK(m,g,x,_,_+b,S,w,p,Ui),n=Math.cos(_+b)*y+m,i=Math.sin(_+b)*x+g;break;case au.R:a=n=f[h++],o=i=f[h++];var M=f[h++],C=f[h++];v=vz(a,o,M,C,c,p,Ui);break;case au.Z:v=yT(n,i,a,o,c,p,Ui,!0),n=a,i=o;break}v<u&&(u=v,r.set(Ui[0],Ui[1]))}return u}function xT(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||sK,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=t.getComputedTransform(),c=f&&xr([],f),p=e.get("length2")||0;u&&zn.copy(u);for(var h=0;h<o.length;h++){var d=o[h];lK(d,0,s,su,dc),me.scaleAndAdd(fr,su,dc,p),fr.transform(c);var v=t.getBoundingRect(),m=u?u.distance(fr):t instanceof ce?cK(fr,t.path,zn):fK(fr,v,zn);m<l&&(l=m,fr.transform(f),zn.transform(f),zn.toArray(a[0]),fr.toArray(a[1]),su.toArray(a[2]))}pK(a,e.get("minTurnAngle")),r.setShape({points:a})}}}function pK(t,e){if(e<=180&&e>0){e=e/180*Math.PI,su.fromArray(t[0]),fr.fromArray(t[1]),zn.fromArray(t[2]),me.sub(dc,su,fr),me.sub(Yh,zn,fr);var r=dc.len(),n=Yh.len();if(!(r<.001||n<.001)){dc.scale(1/r),Yh.scale(1/n);var i=dc.dot(Yh),a=Math.cos(e);if(a<i){var o=yT(fr.x,fr.y,zn.x,zn.y,su.x,su.y,dz,!1);ou.fromArray(dz),ou.scaleAndAdd(Yh,o/Math.tan(Math.PI-e));var s=zn.x!==fr.x?(ou.x-fr.x)/(zn.x-fr.x):(ou.y-fr.y)/(zn.y-fr.y);if(isNaN(s))return;s<0?me.copy(ou,fr):s>1&&me.copy(ou,zn),ou.toArray(t[1])}}}}function gT(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function hK(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Pu(n[0],n[1]),a=Pu(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Hs([],n[1],n[0],o/i),l=Hs([],n[1],n[2],o/a),u=Hs([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function mz(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<yf.length;l++){var u=yf[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:Z(i.states[u]&&i.states[u].ignore,s);if(h||!Z(p,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&gT(n,!0,u,f);continue}n||(n=new fn,t.setTextGuideLine(n),!c&&(s||!o)&&gT(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),gT(n,!1,u,f)}}if(n){oe(n.style,r),n.style.fill=null;var v=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,n.buildPath=hK}}function gz(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<ar.length;n++){var i=ar[n];r[i]=t.getModel([i,e])}return r}var Hh,au,sK,Ui,su,fr,zn,dc,Yh,dz,ou,yz=k(()=>{Te();pa();ym();qn();P();bn();Lt();or();Hh=Math.PI*2,au=Jt.CMD,sK=["top","right","bottom","left"];Ui=[];su=new me,fr=new me,zn=new me,dc=new me,Yh=new me;dz=[],ou=new me});function Wh(t,e,r){r=r||bz,e?t.dirty|=r:t.dirty&=~r}function Sz(t,e){return e=e||bz,t.dirty==null||!!(t.dirty&e)}function Gi(t){if(t)return Sz(t)&&vK(t,t.label,t),t}function vK(t,e,r){var n=e.getComputedTransform();t.transform=$m(t.transform,n);var i=t.localRect=Af(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Il.textMargin);for(var c=0;c<4;c++)_T[c]=f===Il.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Il.textMargin&&Mf(i,_T,!1,!1);var p=t.rect=Af(t.rect,i);return n&&p.applyTransform(n),f===Il.minMargin&&Mf(p,_T,!1,!1),t.axisAligned=jm(n),(t.label=t.label||{}).ignore=e.ignore,Wh(t,!1),Wh(t,!0,Ky),t}function wz(t,e,r){return t.transform=$m(t.transform,r),t.localRect=Af(t.localRect,e),t.rect=Af(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=jm(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Xh(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Zh(t,e){for(var r=0;r<xz.length;r++){var n=xz[r];t[n]==null&&(t[n]=e[n])}return Gi(t)}function _z(t){var e=t.obb;return(!e||Sz(t,Ky))&&(t.obb=e=e||new Ym,e.fromBoundingRect(t.localRect,t.transform),Wh(t,!1,Ky)),e}function bT(t,e,r,n,i){var a=t.length,o=Fr[e],s=ai[e];if(a<2)return!1;t.sort(function(C,A){return C.rect[o]-A.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=t[p],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var v=Math.max(-u,0);c+=v,l=d[o]+d[s]}c>0&&i&&S(-c/a,0,a);var m=t[0],g=t[a-1],y,x;_(),y<0&&w(-y,.8),x<0&&w(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&M(-y),x<0&&M(x);function _(){y=m.rect[o]-r,x=n-g.rect[o]-g.rect[s]}function b(C,A,E){if(C<0){var O=Math.min(A,-C);if(O>0){S(O*E,0,a);var D=O+C;D<0&&w(-D*E,1)}else w(-C*E,1)}}function S(C,A,E){C!==0&&(f=!0);for(var O=A;O<E;O++){var D=t[O],L=D.rect;L[o]+=C,D.label[o]+=C}}function w(C,A){for(var E=[],O=0,D=1;D<a;D++){var L=t[D-1].rect,I=Math.max(t[D].rect[o]-L[o]-L[s],0);E.push(I),O+=I}if(O){var R=Math.min(Math.abs(C)/O,A);if(C>0)for(var D=0;D<a-1;D++){var F=E[D]*R;S(F,0,D+1)}else for(var D=a-1;D>0;D--){var F=E[D-1]*R;S(-F,D,a)}}}function M(C){var A=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(a-1)),O=0;O<a-1;O++)if(A>0?S(E,0,O+1):S(-E,a-O-1,a),C-=E,C<=0)return}return f}function Tz(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,i=r.labelLine;r.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}}function jy(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Gi(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(vc(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function vc(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:_z(t).intersect(_z(e),r,n)}var xz,dK,Ky,bz,_T,$y=k(()=>{Te();Ot();xz=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],dK=1,Ky=2,bz=dK|Ky;_T=[0,0,0,0]});function mK(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function gK(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:mK(n&&n.shape.points)}}function Jy(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];e[i]!=null&&(t[i]=e[i])}}var Cz,Gr,ST,yK,Qy,xK,Mz,Az=k(()=>{Te();Qt();Se();ta();yz();re();P();$y();Ot();ym();Cz=["align","verticalAlign","width","height","fontSize"],Gr=new $n,ST=ne(),yK=ne();Qy=["x","y","rotation"],xK=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();fe.applyTransform(f,f,u),u?Gr.setLocalTransform(u):(Gr.x=Gr.y=Gr.rotation=Gr.originX=Gr.originY=0,Gr.scaleX=Gr.scaleY=1),Gr.rotation=ei(Gr.rotation);var c=i.__hostTarget,p;if(c){p=c.getBoundingRect().plain();var h=c.getComputedTransform();fe.applyTransform(p,p,h)}var d=p&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:f,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Gr.x,y:Gr.y,scaleX:Gr.scaleX,scaleY:Gr.scaleY,rotation:Gr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(J(i)||he(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ge(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function i(x,_){return function(){xT(x,_)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;J(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(gK(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var p=!1;if(f.x!=null?(s.x=ze(f.x,r),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=ze(f.y,n),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),p=!1)}var d=ST(s);d.needsUpdateLabelLine=p,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<Cz.length;v++){var m=Cz[v];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),i=[];T(this._labelList,function(l){l.defaultAttr.ignore||i.push(Zh({},l))});var a=Ce(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ce(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});bT(a,0,0,r),bT(o,1,0,n);var s=Ce(i,function(l){return l.layoutOption.hideOverlap});Tz(s),jy(s)},t.prototype.processLabelsOverall=function(){var e=this;T(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=ST(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),i=ge(e),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");mz(e,gz(s),l),xT(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Ka(e))){var a=ST(n),o=a.oldLayout,s=ge(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var p=e.prevStates;p&&(ue(p,"select")>=0&&n.attr(a.oldLayoutSelect),ue(p,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),We(n,u,r,l)}else if(n.attr(u),!Ja(n).valueAnimation){var c=Z(n.style.opacity,1);n.style.opacity=0,vt(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Jy(h,u,Qy),Jy(h,n.states.select,Qy)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Jy(d,u,Qy),Jy(d,n.states.emphasis,Qy)}zR(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=yK(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),We(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,vt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},t}(),Mz=xK});function qh(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=wT(r).labelManager;i||(i=wT(r).labelManager=new Mz),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=wT(r).labelManager;T(n.updatedSeries,function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var wT,TT=k(()=>{re();Az();P();wT=ne()});var Dz=k(()=>{tu();hz();Vi();TT();lt(qh)});var CT={};Or(CT,{Axis:()=>qy,ChartView:()=>Dt,ComponentModel:()=>ke,ComponentView:()=>Je,List:()=>Ln,Model:()=>Ge,PRIORITY:()=>_w,SeriesModel:()=>Vt,color:()=>ju,connect:()=>M9,dataTool:()=>L9,dependencies:()=>u9,disConnect:()=>A9,disconnect:()=>FP,dispose:()=>D9,env:()=>xe,extendChartView:()=>oK,extendComponentModel:()=>nK,extendComponentView:()=>iK,extendSeriesModel:()=>aK,format:()=>hT,getCoordinateSystemDimensions:()=>E9,getInstanceByDom:()=>ww,getInstanceById:()=>k9,getMap:()=>R9,graphic:()=>pT,helper:()=>nT,init:()=>dy,innerDrawElementOnCanvas:()=>Xf,matrix:()=>ji,number:()=>fT,parseGeoJSON:()=>Wy,parseGeoJson:()=>Wy,registerAction:()=>Cr,registerCoordinateSystem:()=>Aw,registerCustomSeries:()=>O9,registerLayout:()=>Dw,registerLoading:()=>gy,registerLocale:()=>rg,registerMap:()=>Ew,registerPostInit:()=>Cw,registerPostUpdate:()=>Mw,registerPreprocessor:()=>vy,registerProcessor:()=>my,registerTheme:()=>Tw,registerTransform:()=>Ow,registerUpdateLifecycle:()=>kh,registerVisual:()=>so,setCanvasCreator:()=>I9,setPlatformAPI:()=>vv,throttle:()=>Wl,time:()=>cT,use:()=>lt,util:()=>dT,vector:()=>jr,version:()=>l9,zrUtil:()=>pe,zrender:()=>om});var kz=k(()=>{Dz()});var _K,Ez,Oz=k(()=>{q();ls();_a();hi();Te();Fe();_K=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var n;return gn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new ye,i=mt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=mt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=H.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(Vt),Ez=_K});function co(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ro(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(ro(t,e,r[o]));return a.join(" ")}}function e0(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Kh=k(()=>{Hl();P()});function SK(t,e){this.parent.drift(t,e)}var bK,jh,MT=k(()=>{q();hi();Te();Qt();or();Kh();P();Ot();Ho();jo();bK=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=mt(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=SK,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ni(this.childAt(0))},e.prototype.downplay=function(){ii(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):We(h,d,s,n),Zm(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,vt(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,d,v,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),h=x.get("blurScope"),d=x.get("disabled"),v=hr(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=Kl(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=r.getItemVisual(n,"style"),w=S.fill;if(s instanceof _t){var M=s.style;s.useStyle(G({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},S))}else s.__isEmptyBrush?s.useStyle(G({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var E=o&&o.useNameLabel;pn(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:O,inheritColor:w,defaultOpacity:S.opacity});function O(I){return E?r.getName(I):co(r,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),zr(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ge(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&wf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();wf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Th(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e}(ye);jh=bK});function t0(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Iz(t){return t!=null&&!j(t)&&(t={isIgnore:t}),t||{}}function Rz(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:hr(e),cursorStyle:e.get("cursor")}}function Lz(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var wK,mc,r0=k(()=>{Te();MT();P();Ot();wK=function(){function t(e){this.group=new ye,this._SymbolCtor=e||jh}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Iz(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=Rz(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var p=f(c);t0(e,p,c,r)&&Lz(o,e,c,l,u,p,n)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!t0(e,d,c,r)){n.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):We(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){n.remove(p)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);t0(r,l,a,e)?(s=s||Lz(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rz(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=Iz(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Oi)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(t0(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){kn(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t}(),mc=wK});function n0(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=TK(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=V(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Nn(e,c[0])&&(p=!0,c[0]=h),Nn(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function TK(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Me(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function i0(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function xn(t,e){return!isFinite(t)||!isFinite(e)}var a0=k(()=>{lo();P()});function Fn(t){return o0({ctor:CK},t).arr}function o0(t,e){var r=t.arr,n=t.ctor;if(e>Op&&(e=Op),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}var CK,Nz,gc=k(()=>{un();Se();CK=typeof Float32Array!==Wo?Float32Array:void 0,Nz=typeof Float64Array!==Wo?Float64Array:void 0});function MK(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function AT(t,e,r,n,i,a,o,s){for(var l=MK(t,e),u=[],f=[],c=[],p=[],h=[],d=[],v=[],m=n0(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=_.idx*2,w=_.idx1*2;var M=g[S],C=g[S+1],A=y[w],E=y[w+1];(isNaN(M)||isNaN(C))&&(M=A,C=E),u.push(M,C),f.push(A,E),c.push(r[S],r[S+1]),p.push(n[w],n[w+1]),v.push(e.getRawIndex(_.idx1));break;case"+":var O=_.idx,D=m.dataDimsForPoint,L=i.dataToPoint([e.get(D[0],O),e.get(D[1],O)]);w=O*2,u.push(L[0],L[1]),f.push(y[w],y[w+1]);var I=i0(m,i,e,O);c.push(I[0],I[1]),p.push(n[w],n[w+1]),v.push(e.getRawIndex(O));break;case"-":b=!1}b&&(h.push(_),d.push(d.length))}d.sort(function(we,Oe){return v[we]-v[Oe]});for(var R=u.length,F=Fn(R),z=Fn(R),Y=Fn(R),B=Fn(R),X=[],x=0;x<d.length;x++){var ee=d[x],ie=x*2,ae=ee*2;F[ie]=u[ae],F[ie+1]=u[ae+1],z[ie]=f[ae],z[ie+1]=f[ae+1],Y[ie]=c[ae],Y[ie+1]=c[ae+1],B[ie]=p[ae],B[ie+1]=p[ae+1],X[x]=h[ee]}return{current:F,next:z,stackedOnCurrent:Y,stackedOnNext:B,status:X}}var Pz=k(()=>{a0();gc()});function DT(t,e,r,n,i,a,o,s,l){for(var u,f,c,p,h,d,v=r,m=0;m<n;m++){var g=e[v*2],y=e[v*2+1];if(v>=i||v<0)break;if(xn(g,y)){if(l){v+=a;continue}break}if(v===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){v+=a;continue}if(o>0){for(var b=v+a,S=e[b*2],w=e[b*2+1];S===g&&w===y&&m<n;)m++,b+=a,v+=a,S=e[b*2],w=e[b*2+1],g=e[v*2],y=e[v*2+1],x=g-u,_=y-f;var M=m+1;if(l)for(;xn(S,w)&&M<n;)M++,b+=a,S=e[b*2],w=e[b*2+1];var C=.5,A=0,E=0,O=void 0,D=void 0;if(M>=n||xn(S,w))h=g,d=y;else{A=S-u,E=w-f;var L=g-u,I=S-g,R=y-f,F=w-y,z=void 0,Y=void 0;if(s==="x"){z=Math.abs(L),Y=Math.abs(I);var B=A>0?1:-1;h=g-B*z*o,d=y,O=g+B*Y*o,D=y}else if(s==="y"){z=Math.abs(R),Y=Math.abs(F);var X=E>0?1:-1;h=g,d=y-X*z*o,O=g,D=y+X*Y*o}else z=Math.sqrt(L*L+R*R),Y=Math.sqrt(I*I+F*F),C=Y/(Y+z),h=g-A*o*(1-C),d=y-E*o*(1-C),O=g+A*o*C,D=y+E*o*C,O=cs(O,ps(S,g)),D=cs(D,ps(w,y)),O=ps(O,cs(S,g)),D=ps(D,cs(w,y)),A=O-g,E=D-y,h=g-A*z/Y,d=y-E*z/Y,h=cs(h,ps(u,g)),d=cs(d,ps(f,y)),h=ps(h,cs(u,g)),d=ps(d,cs(f,y)),A=g-h,E=y-d,O=g+A*Y/z,D=y+E*Y/z}t.bezierCurveTo(c,p,h,d,g,y),c=O,p=D}else t.lineTo(g,y)}u=g,f=y,v+=a}return m}var cs,ps,zz,Fz,AK,Vz,Bz=k(()=>{q();At();pa();qn();Fe();a0();cs=Math.min,ps=Math.max;zz=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Fz=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new zz},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&xn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&xn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=DT(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Jt.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],x=u?(r-s)/(h-s):(r-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(h-s)*x+s;return u?[r,_]:[_,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?$s(s,h,v,g,r,f):$s(l,d,m,y,r,f);if(b>0)for(var S=0;S<b;S++){var w=f[S];if(w<=1&&w>=0){var _=u?yt(l,d,m,y,w):yt(s,h,v,g,w);return u?[r,_]:[_,r]}}s=g,l=y;break}}},e}(ce),AK=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(zz),Vz=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new AK},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&xn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&xn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=DT(r,i,o,s,s,1,n.smooth,l,n.connectNulls);DT(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(ce)});function kT(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new be({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=J(i)?function(m){i(m,c)}:null;vt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,v)}return c}function ET(t,e,r){var n=t.getArea(),i=De(n.r0,1),a=De(n.r,1),o=new An({shape:{cx:De(t.cx,1),cy:De(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,vt(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function s0(t,e,r,n,i){if(t){if(t.type==="polar")return ET(t,e,r);if(t.type==="cartesian2d")return kT(t,e,r,n,i)}else return null;return null}function Uz(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}var $h=k(()=>{Te();Se();P()});function gi(t,e){return t.type===e}function OT(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!t.getViewRect}var yc=k(()=>{});function Yz(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||Q(t,"text")))}function Wz(t,e,r){var n=t,i,a,o;if(e==="text")o=n;else{o={},Q(n,"text")&&(o.text=n.text),Q(n,"rich")&&(o.rich=n.rich),Q(n,"textFill")&&(o.fill=n.textFill),Q(n,"textStroke")&&(o.stroke=n.textStroke),Q(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Q(n,"fontSize")&&(o.fontSize=n.fontSize),Q(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Q(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Q(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Q(n,"textPosition")&&(i.position=n.textPosition),Q(n,"textOffset")&&(i.offset=n.textOffset),Q(n,"textRotation")&&(i.rotation=n.textRotation),Q(n,"textDistance")&&(i.distance=n.textDistance)}return Gz(o,t),T(o.rich,function(l){Gz(l,l)}),{textConfig:i,textContent:a}}function Gz(t,e){e&&(e.font=e.textFont||e.font,Q(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Q(e,"textAlign")&&(t.align=e.textAlign),Q(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Q(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Q(e,"textWidth")&&(t.width=e.textWidth),Q(e,"textHeight")&&(t.height=e.textHeight),Q(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Q(e,"textPadding")&&(t.padding=e.textPadding),Q(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Q(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Q(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Q(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Q(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Q(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Q(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function IT(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=t.fill||H.color.neutral99;Hz(n,e);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||H.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||H.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,T(e.rich,function(s){Hz(s,s)}),n}function Hz(t,e){e&&(Q(e,"fill")&&(t.textFill=e.fill),Q(e,"stroke")&&(t.textStroke=e.fill),Q(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Q(e,"font")&&(t.font=e.font),Q(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Q(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Q(e,"fontSize")&&(t.fontSize=e.fontSize),Q(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Q(e,"align")&&(t.textAlign=e.align),Q(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Q(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Q(e,"width")&&(t.textWidth=e.width),Q(e,"height")&&(t.textHeight=e.height),Q(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Q(e,"padding")&&(t.textPadding=e.padding),Q(e,"borderColor")&&(t.textBorderColor=e.borderColor),Q(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Q(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Q(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Q(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Q(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Q(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Q(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Q(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Q(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Q(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Xz=k(()=>{P();Fe()});function Zz(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function qz(t){for(var e=Zt(),r=Zt(),n=0;n<t.length;){var i=t[n++],a=t[n++];xn(i,a)||(Vp(e,i),Vp(r,a))}return[e,r]}function Kz(t,e){var r=qz(t),n=r[0],i=r[1],a=qz(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function jz(t){return Me(t)?t:t?.5:0}function DK(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=Fn(n*2),a=0;a<n;a++){var o=i0(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function hs(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(i){for(l=0;l<t.length;l+=2){var h=e||t;xn(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function kK(t,e){var r=[],n=t.length,i,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=zv(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function EK(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=V(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=kK(u,i==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";T(p,function(x){x.offset=(x.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Ko(0,0,0,0,p,!0);return y[i]=v,y[i+"2"]=m,y}}}function OK(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&IK(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){l.tick.offInterval||(s[fo(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function IK(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(jh.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function RK(t){for(var e=t.length/2;e>0&&xn(t[e*2-2],t[e*2-1]);e--);return e-1}function $z(t,e){return[t[e*2],t[e*2+1]]}function LK(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!xn(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Jz(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<ar.length;e++)if(t.get([ar[e],"endLabel","show"]))return!0;return!1}function RT(t,e,r,n){if(gi(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Jz(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=kT(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return ET(e,r,n)}function NK(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var PK,Qz,eF=k(()=>{q();P();r0();MT();Pz();Te();re();Bz();io();a0();$h();yc();or();Ot();Kh();Qt();gc();vn();Ir();Pn();PK=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ye,n=new mc;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=$(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=n0(a,s,x),b=y&&DK(a,s,_),S=r.get("showSymbol"),w=r.get("connectNulls"),M=S&&!c&&OK(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Re,Ye){Re.__temp&&(o.remove(Re),C.setItemGraphicEl(Ye,null))}),S||h.remove(),o.add(m);var A=c?!1:r.get("step"),E;a&&a.getArea&&r.get("clip",!0)&&(E=a.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var O=EK(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&A===this._step))S&&h.updateData(s,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Re){return[f[Re*2],f[Re*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,E),A&&(b&&(b=hs(b,f,a,A,w)),f=hs(f,null,a,A,w)),d=this._newPolyline(f),y?v=this._newPolygon(f,b):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Li(O)),m.setClipPath(RT(this,a,!0,r));else{y&&!v?v=this._newPolygon(f,b):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Li(O));var D=m.getClipPath();if(D){var L=RT(this,a,!1,r);vt(D,{shape:L.shape},r)}else m.setClipPath(RT(this,a,!0,r));S&&h.updateData(s,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Re){return[f[Re*2],f[Re*2+1]]}}),(!Zz(this._stackedOnPoints,b)||!Zz(this._points,f))&&(g?this._doUpdateAnimation(s,b,a,i,A,x,w):(A&&(b&&(b=hs(b,f,a,A,w)),f=hs(f,null,a,A,w)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:b})))}var I=r.getModel("emphasis"),R=I.get("focus"),F=I.get("blurScope"),z=I.get("disabled");if(d.useStyle(oe(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),wl(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Y=d.getState("emphasis").style;Y.lineWidth=+d.style.lineWidth+1}ge(d).seriesIndex=r.seriesIndex,zr(d,R,F,z);var B=jz(r.get("smooth")),X=r.get("smoothMonotone");if(d.setShape({smooth:B,smoothMonotone:X,connectNulls:w}),v){var ee=s.getCalculationInfo("stackedOnSeries"),ie=0;v.useStyle(oe(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ee&&(ie=jz(ee.get("smooth"))),v.setShape({smooth:B,stackedOnSmooth:ie,smoothMonotone:X,connectNulls:w}),wl(v,r,"areaStyle"),ge(v).seriesIndex=r.seriesIndex,zr(v,R,F,z)}var ae=this._changePolyState;s.eachItemGraphicEl(function(Re){Re&&(Re.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=x;var we=r.get("triggerEvent"),Oe=r.get("triggerLineEvent"),Qe=Oe===!0||we===!0||we==="line",nt=Oe===!0||we===!0||we==="area";this.packEventData(r,d,Qe),v&&this.packEventData(r,v,nt)},e.prototype.packEventData=function(r,n,i){ge(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Qn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(xn(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new jh(o,s),u.x=f,u.y=c,u.setZ(p,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Dt.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Qn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Dt.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;MS(this._polyline,r),n&&MS(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Fz({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Vz({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");J(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=J(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,x=void 0;if(i)if(o){var _=i,b=n.pointToCoord(m);a?(g=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(g=_.r0,y=_.r,x=b[0])}else{var S=i;a?(g=S.x,y=S.x+S.width,x=h.x):(g=S.y+S.height,y=S.y,x=h.y)}var w=y===g?0:(x-g)/(y-g);l&&(w=1-w);var M=J(c)?c(d):f*w+p,C=v.getSymbolPath(),A=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Jz(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ie({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=RK(l);f>=0&&(pn(s,hr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?e0(o,h):co(o,c)},enableTextSetter:!0},NK(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=n.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,b=(g?v:0)*(y?-1:1),S=(g?0:-v)*(y?-1:1),w=g?"x":"y",M=LK(c,_,w),C=M.range,A=C[1]-C[0],E=void 0;if(A>=1){if(A>1&&!h){var O=$z(c,C[0]);u.attr({x:O[0]+b,y:O[1]+S}),o&&(E=p.getRawValue(C[0]))}else{var O=f.getPointOn(_,w);O&&u.attr({x:O[0]+b,y:O[1]+S});var D=p.getRawValue(C[0]),L=p.getRawValue(C[1]);o&&(E=um(i,d,D,L,M.t))}a.lastFrameIndex=C[0]}else{var I=r===1||a.lastFrameIndex>0?C[0]:0,O=$z(c,I);o&&(E=p.getRawValue(I)),u.attr({x:O[0]+b,y:O[1]+S})}if(o){var R=Ja(u);typeof R.setLabelText=="function"&&R.setLabelText(E)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=AT(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=hs(p.stackedOnCurrent,p.current,i,o,l),h=hs(p.current,null,i,o,l),m=hs(p.stackedOnNext,p.next,i,o,l),v=hs(p.next,null,i,o,l)),Kz(h,v)>3e3||f&&Kz(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),We(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),We(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=p.status,_=0;_<x.length;_++){var b=x[_].cmd;if(b==="="){var S=r.getItemGraphicEl(x[_].idx1);S&&y.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,M=0;M<y.length;M++){var C=y[M].el,A=y[M].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Dt),Qz=PK});function lu(t,e){return{seriesType:t,plan:no(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=V(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Nn(n,s[0])&&(s[0]=u),Nn(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Fn(v*l),g=[],y=[],x=h.start,_=0;x<h.end;x++){var b=void 0;if(l===1){var S=f.get(c,x);b=i.dataToPoint(S,null,y)}else g[0]=f.get(c,x),g[1]=f.get(p,x),b=i.dataToPoint(g,null,y);o?(m[_++]=b[0],m[_++]=b[1]):d.setItemLayout(x,b.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var l0=k(()=>{P();xh();lo();gc()});function Jh(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;W(a)?d=zK[a]:J(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,FK))}}}}}var zK,FK,LT=k(()=>{P();zK={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},FK=function(t){return Math.round(t.length/2)}});function NT(t){t.registerChartView(Qz),t.registerSeriesModel(Ez),t.registerLayout(lu("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Jh("line"))}var tF=k(()=>{Oz();eF();l0();LT()});var VK,u0,PT=k(()=>{q();mT();VK=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(qy),u0=VK});function rF(t){zT||(zT=t)}function uu(){return zT}var zT,Qh=k(()=>{zT=null});function UT(t,e,r,n){var i=[];return T(t,function(a){i=i.concat(a.eventBreaks)}),{eventContent:{breaks:i}}}function nF(t){t.registerAction(BK,e),t.registerAction(UK,e),t.registerAction(GK,e);function e(r,n){var i=[],a=na(n,r);function o(s,l){T(a[s],function(u){var f=u.updateAxisBreaks(r);T(f.breaks,function(c){var p;i.push(oe((p={},p[l]=u.componentIndex,p),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:i}}}var xc,FT,VT,BT,BK,UK,GK,f0=k(()=>{re();P();xc="expandAxisBreak",FT="collapseAxisBreak",VT="toggleAxisBreak",BT="axisbreakchanged",BK={type:xc,event:BT,update:"update",refineEvent:UT},UK={type:FT,event:BT,update:"update",refineEvent:UT},GK={type:VT,event:BT,update:"update",refineEvent:UT}});function WK(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=XT(t.axisName)&&us(t.nameLocation);T(n,function(d){var v=Gi(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;l&&(m.transform?xr(ed,m.transform):Wn(ed),v.transform&&Qr(ed,ed,v.transform),fe.copy(c0,v.localRect),c0.applyTransform(ed),s?s.union(c0):fe.copy(s=new fe(0,0,0,0),c0))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=i.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new fe(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}function sF(t,e,r){var n=new me;vc(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&Xh(e,n)}function WT(t,e,r,n){for(var i=me.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||sF(s,r,n)}}function iF(t,e,r,n,i,a,o,s){uF(e)||QK(t,e,i,s,n,o);var l=e.labelLayoutList;ej(t,n,l,a),nj(n,t.rotation,l);var u=t.optionHideOverlap;KK(n,l,u),u&&jy(Ce(l,function(f){return f&&!f.label.ignore})),WK(t,r,n,l)}function qK(t,e,r,n){var i=Ip(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return ul(i-ds/2)?(o=l?"bottom":"top",a="center"):ul(i-ds*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ds*1.5&&i>ds/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function KK(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(x2(n))return;function a(u,f,c){var p=Gi(e[f]),h=Gi(e[c]),d=n.scale;if(!(!p||!h)){if(u==null){if(!r&&i)return;var v=vs(p.label).labelInfo.tick;if(Sa(d)&&v.notNice||st(d)&&v.offInterval){_c(p.label);return}}if(u===!1||p.suggestIgnore){_c(p.label);return}if(h.suggestIgnore){_c(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Zh({marginForce:g},p),h=Zh({marginForce:g},h)}vc(p,h,null,{touchThreshold:m})&&_c(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function jK(t,e,r){t.showMinorTicks||T(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=oF(a),s=vs(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){_c(a);return}}})}function _c(t){t&&(t.ignore=!0)}function lF(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(ot(o,o,e),ot(s,s,e));var f=new pr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});El(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=oF(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function $K(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=lF(u,r.transform,l,oe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function JK(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=oe(l.getLineStyle(),oe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=lF(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function aF(t,e,r){if(uF(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),GT(t,null,null,null))}return!0}function QK(t,e,r,n,i,a){var o=i.axis,s=yr(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ye;r.add(l);var u=hc(n);if(!s||o.scale.isBlank()){GT(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),p=(yr(t.raw.labelRotate,f.get("rotate"))||0)*ds/180,h=fu.innerTextLayout(t.rotation,p,t.labelDirection),d=i.getCategories&&i.getCategories(!0),v=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;T(c,function(_,b){var S,w=_.tick,M=_.formattedLabel,C=_.rawLabel,A=f,E=fo(o.scale,w);if(d&&d[E]){var O=d[E];j(O)&&O.textStyle&&(A=new Ge(O.textStyle,f,i.ecModel))}var D=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||h.textAlign,I=Z(A.getShallow("alignMinLabel",!0),L),R=Z(A.getShallow("alignMaxLabel",!0),L),F=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,z=Z(A.getShallow("verticalAlignMinLabel",!0),F),Y=Z(A.getShallow("verticalAlignMaxLabel",!0),F),B=10+(((S=w.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,B),y=Math.max(y,B);var X=new Ie({x:0,y:0,rotation:0,silent:fu.isLabelSilent(i),z2:B,style:pt(A,{text:M,align:b===0?I:b===c.length-1?R:L,verticalAlign:b===0?z:b===c.length-1?Y:F,fill:J(D)?D(o.type==="category"?C:o.type==="value"?E+"":E,b):D})});X.anid="label_"+E;var ee=vs(X);if(ee.labelInfo=_,ee.layoutRotation=h.rotation,$o({el:X,componentModel:i,itemName:M,formatterParamsExtra:{isTruncated:function(){return X.isTruncated},value:C,tickIndex:b}}),m){var ie=fu.makeAxisEventDataBase(i);ie.targetType="axisLabel",ie.value=C,ie.tickIndex=b;var ae=_.tick.break;if(ae){var we=ae.parsedBreak;ie.break={start:we.vmin,end:we.vmax}}o.type==="category"&&(ie.dataIndex=E),ge(X).eventData=ie,ae&&rj(i,a,X,ae)}v.push(X),l.add(X)});var x=V(v,function(_){return{label:_,priority:vs(_).labelInfo.tick.break?_.z2+(y-g+1):_.z2,defaultAttr:{ignore:_.ignore}}});GT(e,x,l,u)}function uF(t){return!!t.labelLayoutList}function GT(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function ej(t,e,r,n){var i=e.get(["axisLabel","margin"]);T(r,function(a,o){var s=Gi(a);if(s){var l=s.label,u=vs(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ba(po,tj);var f=e.axis;po.x=f.dataToCoord(fo(f.scale,u.labelInfo.tick)),po.y=t.labelOffset+t.labelDirection*i,po.rotation=u.layoutRotation,n.add(po),po.updateTransform(),n.remove(po),po.decomposeTransform(),Ba(l,po),l.markRedraw(),Wh(s,!0),Gi(s)}})}function XT(t){return!!t}function rj(t,e,r,n){r.on("click",function(i){var a={type:xc,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function nj(t,e,r){var n=Ze();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&vs(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&T(i,function(o){uu().adjustBreakLabelPair(t.axis.inverse,e,[Gi(r[o[0]]),Gi(r[o[1]])])})}}var ds,HK,YK,vs,oF,HT,ed,c0,YT,fu,XK,ZK,po,tj,p0,h0=k(()=>{P();Te();Qt();Ot();hn();Se();hi();bn();Lt();Pn();$y();re();Qh();f0();En();Ct();Bu();ta();Zy();Bt();ds=Math.PI,HK=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],YK=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],vs=ne(),oF=ne(),HT=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t}();ed=$e(),c0=new fe(0,0,0,0),YT=function(t,e,r,n,i,a){if(us(t.nameLocation)){var o=a.stOccupiedRect;o&&sF(wz({},o,a.transGroup.transform),n,i)}else WT(a.labelInfoList,a.dirVec,n,i)};fu=function(){function t(e,r,n,i){this.group=new ye,this._axisModel=e,this._api=r,this._local={},this._shared=i||new HT(YT),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(0)var r;var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Z(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:i,nameLocation:Kr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:XT(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ye({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new me(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(XK,function(i){e[i]&&ZK[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=Ip(r-e),a,o;return ul(i)?(o=n>0?"top":"bottom",a="center"):ul(i-ds)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ds?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),XK=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ZK={axisLine:function(t,e,r,n,i,a,o){if(0)var s;var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(ot(c,c,f),ot(p,p,f));var d=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&Nl(n.axis.scale))uu().buildAxisBreakLine(n,i,a,v);else{var m=new pr(G({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));El(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);W(g)&&(g=[g,g]),(W(y)||Me(y))&&(y=[y,y]);var x=Kl(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],b=y[1];T([{rotate:t.rotation+Math.PI/2,offset:x[0],r:0},{rotate:t.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var M=mt(g[w],-_/2,-b/2,_,b,d.stroke,!0),C=S.r+S.offset,A=h?p:c;M.attr({rotation:S.rotate,x:A[0]+C*Math.cos(t.rotation),y:A[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(M)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(0)var l;var u=aF(e,i,s);u&&iF(t,e,r,n,i,a,o,yn.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(0)var l;var u=aF(e,i,s);u&&iF(t,e,r,n,i,a,o,yn.determine);var f=$K(t,i,a,n);jK(t,e.labelLayoutList,f),JK(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);if(0)var u;e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(XT(f)){var c=t.nameLocation,p=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,v=n.axis.getExtent(),m=n.axis.inverse?-1:1,g=new me(0,0),y=new me(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var x=$e();y.transform(za(x,x,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*ds/180);var b,S;us(c)?b=fu.innerTextLayout(t.rotation,_??t.rotation,p):(b=qK(t.rotation,c,_||0,v),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=h.getFont(),M=n.get("nameTruncate",!0)||{},C=M.ellipsis,A=yr(t.raw.nameTruncateMaxWidth,M.maxWidth,S),E=s.nameMarginLevel||0,O=new Ie({x:g.x,y:g.y,rotation:b.rotation,silent:fu.isLabelSilent(n),style:pt(h,{text:f,font:w,overflow:"truncate",width:A,ellipsis:C,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if($o({el:O,componentModel:n,itemName:f}),O.__fullText=f,O.anid="name",n.get("triggerEvent")){var D=fu.makeAxisEventDataBase(n);D.targetType="axisName",D.name=f,ge(O).eventData=D}a.add(O),O.updateTransform(),e.nameEl=O;var L=l.nameLayout=Gi({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:us(c)?HK[E]:YK[E]});if(l.nameLocation=c,i.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&L){var I=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,L,y,I)}}}};po=new be,tj=new be;p0=fu});function td(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}i.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),yr(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-v:v,i.z2=1,i}function fF(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function cF(t){var e={xAxisModel:null,yAxisModel:null};return T(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,xt).models[0];e[n]=a}),e}function pF(t,e,r,n,i,a){for(var o=td(t,r),s=!1,l=!1,u=0;u<e.length;u++)Ty(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new p0(r,n,o,i)}function hF(t,e,r){var n=td(e,r);if(0)var i;t.updateCfg(n)}function dF(t){return t.dim+"_"+t.index}var rd=k(()=>{P();re();h0();Bt()});function vF(){k2("liPosMinGap",aj)}function aj(t,e,r){var n=K(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Pg(f);function p(x){Gy(t,e.sers,function(_){var b=_.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&x(S,_,b.getStore())})}var h=0;if(p(function(x,_,b){n.set(_.uid,1),(!i||!i.hasKey(_.uid))&&(o=!0),h+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}o0(cu,h);var d=0;p(function(x,_,b){for(var S=0,w=b.count();S<w;++S){var M=b.get(x,S);isFinite(M)&&(!f||zg(c,M))&&(u&&(M=l.transformIn(M,null)),cu.arr[d++]=M)}});var v=cu.typed?cu.arr.subarray(0,d):(cu.arr.length=d,cu.arr);cu.typed?v.sort():Mt(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Xt(m)?m:d>0?Uy:b2,r.serUids=n}var cu,mF=k(()=>{P();Se();Yl();gc();fs();cu=o0({ctor:Nz},50)});function gF(t){return function(e,r){var n=bt(e,{fromStat:{key:t}});if(Xt(n.w2))return[-n.w2/2,n.w2/2]}}function nd(t,e){return t+By+e}function yF(t){return vF(),{liPosMinGap:!st(t.scale)}}var ZT=k(()=>{Bi();fs();mF();Bt();Se()});function xF(t,e,r,n){O2(t,{key:e,seriesType:r,coordSysType:n,getMetrics:yF})}function _F(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var ho,id=k(()=>{ZT();fs();ho="bar"});var qT,ad,Mr,oj,bF,pu=k(()=>{q();wr();dr();Fe();qT={left:0,right:0,top:0,bottom:0},ad=["25%","25%"],Mr="cartesian2d",oj=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=fi(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&In(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&In(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:qT,outerBoundsContain:"all",outerBoundsClampWidth:ad[0],outerBoundsClampHeight:ad[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},e}(ke),bF=oj});function SF(t){return t.get("stack")||KT+t.seriesIndex}function wF(t){if(st(t.axis.scale)){for(var e=bt(t.axis),r=[],n=0;n<t.count;n++)r.push(oe({stackId:KT+n},t));for(var i=TF({bandWidthResult:e,seriesInfo:r}),a=[],n=0;n<t.count;n++){var o=i[KT+n];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function lj(t,e){var r=uj(t,e);return r.columnMap=TF(r),r}function uj(t,e){var r=nd(e,Mr),n=[],i=bt(t,{fromStat:{key:r},min:1});return jw(t,r,function(a){n.push({barWidth:ze(a.get("barWidth"),i.w),barMaxWidth:ze(a.get("barMaxWidth"),i.w),barMinWidth:ze(a.get("barMinWidth")||(AF(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:SF(a)})}),{bandWidthResult:i,seriesInfo:n}}function TF(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};T(t.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Q(s,g)||n++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var x=v.barWidth;x&&!y.width&&(y.width=x,x=rt(r,x),r-=x);var _=v.barMaxWidth;_&&(y.maxWidth=_);var b=v.barMinWidth;b&&(y.minWidth=b);var S=v.barGap;S!=null&&(a=S);var w=v.barCategoryGap;w!=null&&(i=w)}),i==null&&(i=Ae(35-o.length*4,15)+"%");var l=ze(i,e),u=ze(a,1),f=(r-l)/(n+(n-1)*u);f=Ae(f,0),T(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var x=m.width;g&&(x=rt(x,g)),y&&(x=Ae(x,y)),m.width=x,r-=x+u*x,n--}else{var x=f;g&&g<x&&(x=rt(g,r)),y&&y>x&&(x=y),x!==f&&(m.width=x,r-=x+u*x,n--)}}),f=(r-l)/(n+(n-1)*u),f=Ae(f,0);var c=0,p;T(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},d=-c/2;return T(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function CF(t){return{seriesType:t,overallReset:function(e){var r=nd(t,Mr);D2(e,r,function(n){var i=lj(n,t);jw(n,r,function(a){var o=i.columnMap[SF(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function MF(t){return{seriesType:t,plan:no(),reset:function(e){if(fF(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Nn(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(_F(a))),d=AF(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=d&&Fn(b*3),w=d&&l&&Fn(b*3),M=d&&Fn(b),C=n.master.getRect(),A=p?C.width:C.height,E,O=_.getStore(),D=0;(E=x.next())!=null;){var L=O.get(c?m:o,E),I=O.get(s,E),R=h,F=void 0;c&&(F=+L-O.get(o,E));var z=void 0,Y=void 0,B=void 0,X=void 0;if(p){var ee=n.dataToPoint([L,I]);c&&(R=n.dataToPoint([F,I])[0]),z=R,Y=ee[1]+y,B=ee[0]-R,X=g,tt(B)<v&&(B=(B<0?-1:1)*v)}else{var ee=n.dataToPoint([I,L]);c&&(R=n.dataToPoint([I,F])[1]),z=ee[0]+y,Y=R,B=g,X=ee[1]-R,tt(X)<v&&(X=(X<=0?-1:1)*v)}d?(S[D]=z,S[D+1]=Y,S[D+2]=p?B:X,w&&(w[D]=p?C.x:z,w[D+1]=p?Y:C.y,w[D+2]=A),M[E]=E):_.setItemLayout(E,{x:z,y:Y,width:B,height:X}),D+=3}d&&_.setLayout({largePoints:S,largeDataIndices:M,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function AF(t){return t.pipelineContext&&t.pipelineContext.large}function fj(t){return gF(nd(t,Mr))}function DF(t){sj(t,function(){function e(r){var n=nd(r,Mr);xF(t,n,r,Mr),B2(n,fj(r))}e("bar"),e("pictorialBar")})}var sj,KT,jT=k(()=>{P();Se();lo();xh();gc();re();Bt();rd();pc();fs();Bi();id();pu();ZT();sj=ff(),KT="__ec_stack_"});var kF,$T,EF=k(()=>{q();_a();ls();P();kF=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return gn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(p,h){if(p.type==="category"&&n!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;b<d.length;b++){var S=d[b].coord,w=b===d.length-1?d[b-1].tickValue+_:d[b].tickValue;if(w===m){x=S;break}else if(w<m)y=S;else if(y!=null&&w>m){x=(S+y)/2;break}b===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[h]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Vt);Vt.registerClass(kF);$T=kF});var cj,OF,IF=k(()=>{q();EF();ls();si();Fe();re();id();cj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return gn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=fm(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+ho,e.dependencies=["grid","polar"],e.defaultOption=oi($T.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:H.color.primary,borderWidth:2}},realtimeSort:!1}),e}($T),OF=cj});var pj,hj,JT,RF=k(()=>{q();Te();pj=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),hj=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new pj},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,p=n.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+i,m*o+a),r.arc(v*u+i,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(v*s+i,m*s+a),r.arc(i,a,s,f,c,!p),r.arc(g*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(i,a,o,c,f,p)},e}(ce),JT=hj});function LF(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return sl(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,d=(p+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,x=Math.cos,_=Math.sin,b=f+p*x(v),S=c+p*_(v),w="left",M="top";switch(s){case"startArc":b=f+(h-l)*x(g),S=c+(h-l)*_(g),w="center",M="top";break;case"insideStartArc":b=f+(h+l)*x(g),S=c+(h+l)*_(g),w="center",M="bottom";break;case"startAngle":b=f+d*x(v)+d0(v,l+y,!1),S=c+d*_(v)+v0(v,l+y,!1),w="right",M="middle";break;case"insideStartAngle":b=f+d*x(v)+d0(v,-l+y,!1),S=c+d*_(v)+v0(v,-l+y,!1),w="left",M="middle";break;case"middle":b=f+d*x(g),S=c+d*_(g),w="center",M="middle";break;case"endArc":b=f+(p+l)*x(g),S=c+(p+l)*_(g),w="center",M="bottom";break;case"insideEndArc":b=f+(p-l)*x(g),S=c+(p-l)*_(g),w="center",M="top";break;case"endAngle":b=f+d*x(m)+d0(m,l+y,!0),S=c+d*_(m)+v0(m,l+y,!0),w="left",M="middle";break;case"insideEndAngle":b=f+d*x(m)+d0(m,-l+y,!0),S=c+d*_(m)+v0(m,-l+y,!0),w="right",M="middle";break;default:return sl(n,i,a)}return n=n||{},n.x=b,n.y=S,n.align=w,n.verticalAlign=M,n}}function NF(t,e,r,n){if(Me(n)){t.setTextConfig({rotation:n});return}else if(U(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function d0(t,e,r){return e*Math.sin(t)*(r?-1:1)}function v0(t,e,r){return e*Math.cos(t)*(r?1:-1)}var PF=k(()=>{wn();P()});function zF(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:V(n,function(a){return tn(a,i)})}}var FF=k(()=>{P();wn()});function vj(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function UF(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?We:vt)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?We:vt)(r,{shape:u},f,i)}function GF(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}function yj(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function qF(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function YF(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=zF(n.getModel("itemStyle"),f,!0);G(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?wj(i,a.coordinateSystem):Tj(i,a.coordinateSystem),d=hr(n);pn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:co(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,NF(t,m==="outside"?h:m,qF(o),n.get(["label","rotate"]))}PR(v,d,a.getRawValue(r),function(y){return e0(e,y)});var g=n.getModel(["emphasis"]);zr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),wl(t,n),yj(i)&&(t.style.fill="none",t.style.stroke="none",T(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function xj(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}function XF(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?Fo(t):0;if(u){var c=new WF({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new WF({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),p.style.stroke=null,ge(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",ZF),p.on("mousemove",ZF)),r&&r.push(p)}function bj(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[n]=u,l[i]=a[p+2],s[n]=a[p+n],s[i]=a[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function KF(t,e,r){if(gi(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function Sj(t,e,r){var n=t.type==="polar"?An:be;return new n({shape:KF(e,r,t),silent:!0,z2:0})}function wj(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function Tj(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var QT,eC,dj,VF,BF,mj,gj,HF,m0,_j,WF,ZF,jF,$F=k(()=>{q();At();rf();P();Te();Qt();or();Ot();is();$h();RF();io();yc();Kh();PF();jo();FF();re();id();QT=Math.max,eC=Math.min,dj=function(t){N(e,t);function e(){var r=t.call(this)||this;return r.type=ho,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){kn(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=vj(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],b=this._backgroundEls,S=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function M(E){var O=m0[u.type](s,E);if(!O)return null;var D=Sj(u,c,O);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",x):D.setShape("cornerRadius",x),_[E]=D,D}s.diff(l).add(function(E){var O=s.getItemModel(E),D=m0[u.type](s,E,O);if(D&&(g&&M(E),!(!s.hasValue(E)||!HF[u.type](D)))){var L=!1;d&&(L=VF[u.type](v,D));var I=BF[u.type](r,s,E,D,c,p,f.model,!1,m);h&&(I.forceLabelAnimation=!0),YF(I,s,E,O,D,r,c,u.type==="polar"),S?I.attr({shape:D}):h?UF(h,p,I,D,E,c,!1,!1):vt(I,{shape:D},r,E),s.setItemGraphicEl(E,I),o.add(I),I.ignore=L}}).update(function(E,O){var D=s.getItemModel(E),L=m0[u.type](s,E,D);if(L){if(g){var I=void 0;b.length===0?I=M(O):(I=b[O],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",x):I.setShape("cornerRadius",x),_[E]=I);var R=m0[u.type](s,E),F=KF(c,R,u);We(I,{shape:F},p,E)}var z=l.getItemGraphicEl(O);if(!s.hasValue(E)||!HF[u.type](L)){o.remove(z);return}var Y=!1;d&&(Y=VF[u.type](v,L),Y&&o.remove(z));var B=z&&(z.type==="sector"&&m||z.type==="sausage"&&!m);if(B&&(z&&Tf(z,r,O),z=null),z?Zm(z):z=BF[u.type](r,s,E,L,c,p,f.model,!0,m),h&&(z.forceLabelAnimation=!0),w){var X=z.getTextContent();if(X){var ee=Ja(X);ee.prevValue!=null&&(ee.prevValue=ee.value)}}else YF(z,s,E,D,L,r,c,u.type==="polar");S?z.attr({shape:L}):h?UF(h,p,z,L,E,c,!0,w):We(z,{shape:L},r,E,null),s.setItemGraphicEl(E,z),z.ignore=Y,o.add(z)}}).remove(function(E){var O=l.getItemGraphicEl(E);O&&Tf(O,r,E)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ye);C.removeAll();for(var A=0;A<_.length;++A)C.add(_[A]);o.add(C),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),XF(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),XF(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&s0(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Tf(a,r,ge(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ho,e}(Dt),VF={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=QT(e.x,t.x),s=eC(e.x+e.width,i),l=QT(e.y,t.y),u=eC(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=eC(e.r,t.r),a=QT(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},BF={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new be({shape:G({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?JT:An,f=new u({shape:n,z2:1});f.name="item";var c=qF(i);if(f.calculateTextPosition=LF(c,{isRoundCap:u===JT}),a){var p=f.shape,h=i?"r":"endAngle",d={};p[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?We:vt)(f,{shape:d},a)}return f}};mj=["x","y","width","height"],gj=["cx","cy","r","startAngle","endAngle"],HF={cartesian2d:function(t){return!GF(t,mj)},polar:function(t){return!GF(t,gj)}},m0={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?xj(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};_j=function(){function t(){}return t}(),WF=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new _j},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e}(ce);ZF=Wl(function(t){var e=this,r=bj(e,t.offsetX,t.offsetY);ge(e).dataIndex=r>=0?r:null},30,!1);jF=dj});function tC(t){t.registerChartView(jF),t.registerSeriesModel(OF),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,CF(ho)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MF(ho)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Jh(ho)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),DF(t)}var JF=k(()=>{jT();LT();IF();$F();id()});var Cj,QF,eV=k(()=>{q();ls();_a();Fe();Cj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return gn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},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:H.color.primary}},universalTransition:{divideShape:"clone"}},e}(Vt),QF=Cj});var tV,Mj,Aj,Dj,rV,nV=k(()=>{q();Te();hi();Qt();tV=4,Mj=function(){function t(){}return t}(),Aj=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new Mj},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<tV,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var p=i[c++],h=i[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(r>=c&&n>=p&&r<=c+s&&n<=p+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<i.length;){var h=i[p++],d=i[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new fe(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e}(ce),Dj=function(){function t(){this.group=new ye}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Aj({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=mt(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<tV;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ge(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),rV=Dj});function rC(t){return{clipShape:Uz(t)}}var kj,iV,aV=k(()=>{q();r0();nV();l0();io();re();$h();kj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,rC(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Fo(n),rC(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=lu("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(rC(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new rV:new mc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Dt);iV=kj});var g0,oV=k(()=>{q();P();wr();Vy();re();g0=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xt).models[0]},e.type="cartesian2dAxis",e}(ke);kt(g0,fc)});var sV,Ej,nC,Oj,Ij,lV,uV=k(()=>{P();Fe();sV={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:H.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:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Ej=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},sV),nC=de({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},sV),Oj=de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nC),Ij=oe({logBase:10},nC),lV={category:Ej,value:nC,time:Oj,log:Ij}});function y0(t,e,r,n){T(Iy,function(i,a){var o=de(de({},lV[a],!0),n,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=Qo(this),h=p?fi(f):{},d=c.getTheme();de(f,d.get(a+"Axis")),de(f,this.getDefaultOption()),f.type=fV(f),p&&In(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=zh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=uu();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",fV)}function fV(t){return t.type||(t.data?"category":"value")}var cV=k(()=>{q();uV();dr();Gw();Ww();P();Qh()});var Rj,pV,hV=k(()=>{P();Rj=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return V(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ce(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),pV=Rj});function dV(t){return(t.type==="interval"||t.type==="time")&&!Nl(t)}var od,Lj,vV,mV=k(()=>{q();Ct();hV();pu();bn();Lt();mi();En();od=["x","y"];Lj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Mr,r.dimensions=od,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dV(r)||!dV(n))){var i=ru(r,null),a=ru(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=xr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new fe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ot(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return ot(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new fe(a,o,s,l)},e}(pV),vV=Lj});function gV(t,e){var r=t.scale,n=t.model,i=Yy(r,n,n.ecModel,t,null),a=wa(r),o=wa(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=tt(u[0].value-u[1].value),m=tt(u[1].value-u[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=i.zoomFixMM,x=y[0]||y[1],_=[i.fixMM[0]||x,i.fixMM[1]||x],b=r.getExtent(),S=s.getExtent(),w=My(S,_),M,C,A,E,O,D;function L(ee){for(var ie=50,ae=0;ae<ie&&!ee();ae++)A=a?A*Ae(l,2):JP(A),E=Fi(A)}function I(){M=De(D-A*p,E)}function R(){C=De(O+A*h,E)}function F(){D=p?De(M+A*p,E):M}function z(){O=h?De(C-A*h,E):C}if(_[0]&&_[1]){M=w[0],C=w[1],A=(C-M)/(d+p+h);var Y=t.getExtent(),B=tt(Y[1]-Y[0]);E=nf([C,M],B,.5/d),F(),z(),Xt(E)&&(A=De(A,E))}else{var X=w[1]-w[0];A=a?Ae(af(X),1):Ha(X/d,Ub),E=Fi(A),_[0]?(M=w[0],L(function(){if(F(),O=De(D+A*d,E),R(),C>=w[1])return!0})):_[1]?(C=w[1],L(function(){if(z(),D=De(O-A*d,E),I(),M<=w[0])return!0})):L(function(){D=De(ra(w[0]/A)*A,E),O=De(nn(w[1]/A)*A,E);var ee=rn((O-D)/A);if(ee<=d){var ie=d-ee,ae=void 0,we=i.incl0||a;if(we&&w[0]===0)ae=[0,ie];else if(we&&w[1]===0)ae=[ie,0];else{var Oe=nn(ie/2);ae=ie%2===0?[Oe,Oe]:M+C<w[0]+w[1]?[Oe,Oe+1]:[Oe+1,Oe]}if(D=De(D-A*ae[0],E),O=De(O+A*ae[1],E),I(),R(),M<=w[0]&&C>=w[1])return!0}})}zy(r,_,S,[M,C],b,{interval:A,intervalCount:d,intervalPrecision:E,niceExtent:[D,O]})}var yV=k(()=>{Se();Pn();Bt();pc()});function Pj(t,e){return t.getCoordSysModel()===e}function _V(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)bV(s,i[l])&&(a=i[l]);else for(var u in i)if(Q(i,u)&&bV(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function bV(t,e){if(!e)return!1;var r=e.scale,n=m2(r,0,!1),i=e&&e.type!=="category"&&e.type!=="time"&&n!==Ry;return i&&t==="auto"&&y2(e)&&(i=!1),i}function SV(t){for(var e=he(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];Ty(a.scale)&&Xw(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&T(n,function(o){o.__alignTo=r})}function zj(t,e){return Nl(t.scale)||Nl(e.scale)||e.scale.getTicks().length<2}function Fj(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function iC(t,e){T(t.x,function(r){return wV(r,e.x,e.width)}),T(t.y,function(r){return wV(r,e.y,e.height)})}function wV(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Fj(t,e)}function CV(t,e,r,n,i,a,o){MV(n,i,yn.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Gn(s,function(p){return p>0})==null;return Mf(n,s,!0,!0,r),iC(i,n),l;function u(p){T(i[Fr[p]],function(h){if(iu(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(fo(h.scale,vs(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var x=d.nameLayout;if(x){var y=us(d.nameLocation)?.5:NaN;f(x.rect,p,y),f(x.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[Fr[h]]-p[Fr[h]],m=p[ai[h]]+p[Fr[h]]-(t[ai[h]]+t[Fr[h]]);v=c(v,1-d),m=c(m,d);var g=xV[h][0],y=xV[h][1];s[g]=Ae(s[g],v),s[y]=Ae(s[y],m)}function c(p,h){return p>0&&!_n(h)&&h>1e-4&&(p/=h),p}}function Vj(t,e,r,n,i){var a=new HT(Uj);return T(r,function(o){return T(o,function(s){if(iu(s.model)){var l=!n;s.axisBuilder=pF(t,e,s.model,i,a,l)}})}),a}function MV(t,e,r,n,i,a){var o=r===yn.determine;T(e,function(u){return T(u,function(f){iu(f.model)&&(hF(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Fr[1-u]]=t[ai[u]]<=a.refContainer[ai[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){iu(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function Bj(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=tr(t.get("outerBounds",!0)||qT,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ue(["all","axisLabel"],a)<0?o="all":o=a;var s=[lm(Z(t.get("outerBoundsClampWidth",!0),ad[0]),e.width),lm(Z(t.get("outerBoundsClampHeight",!0),ad[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var xV,Nj,TV,Uj,AV,DV=k(()=>{P();dr();Pn();mV();PT();re();pu();rd();Bt();yV();Te();h0();Zy();zl();Se();rT();Ih();pc();En();fs();xV=[[3,1],[0,2]],Nj=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=od,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;T(this._axesList,function(o){Hy(o,L2);var s=o.scale;st(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):eT(f)}T(l,function(c){zj(c,c.__alignTo)?eT(c):gV(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};T(n.x,function(o){_V(n,"y",o,a)}),T(n.y,function(o){_V(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=ui(e,r),a=this._rect=tr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(iC(o,a),!n){var u=Vj(a,s,o,l,r),f=void 0;if(l)TV?(TV(this._axesList,a),iC(o,a)):f=CV(a.clone(),"axisLabel",null,a,o,u,i);else{var c=Bj(e,a,i),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=CV(p,h,d,a,o,u,i))}MV(a,o,yn.determine,null,f,i),T(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}j(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",xt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",xt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ue(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(p,h){var d="x"+c+"y"+h,v=new vV(d);v.master=i,v.model=e,i._coordsMap[d]=v,i._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),SV(s.x),SV(s.y);function u(f){return function(c,p){if(Pj(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=Ly(c),v=new u0(f,Ny(c,d,!0),[0,0],d,h);v.onBand=Fy(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return T(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ue(r,a)<0&&r.push(a),ue(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),T(o._axesList,function(s){F2(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;uL({targetModel:i,coordSysType:Mr,coordSysProvider:s});function s(){var l=cF(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Jw(a,i,Mr),Jw(o,i,Mr))},this),n},t.dimensions=od,t.dimIdxMap=Oh(od),t}();Uj=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";YT(t,e,r,n,i,a),us(t.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&WT(s.labelInfoList,s.dirVec,n,i)})},AV=Nj});function kV(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Gj(r,t,e),r.seriesInvolved&&Yj(r,t),r}function Gj(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=bc(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(T(s.getAxes(),ve(v,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&T(d.baseAxes,ve(v,h?"cross":!0,p)),h&&T(d.otherAxes,ve(v,"cross",!1))}function v(m,g,y){var x=y.model.getModel("axisPointer",i),_=x.get("show");if(!(!_||_==="auto"&&!m&&!oC(x))){g==null&&(g=x.get("triggerTooltip")),x=m?Hj(y,c,i,e,m,g):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),w=bc(y.model),M=g||b||y.type==="category",C=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:S,involveSeries:M,snap:b,useHandle:oC(x),seriesModels:[],linkGroup:null};u[w]=C,t.seriesInvolved=t.seriesInvolved||M;var A=Wj(a,y);if(A!=null){var E=o[A]||(o[A]={axesInfo:{}});E.axesInfo[w]=C,E.mapper=a[A].mapper,C.linkGroup=E}}}})}function Hj(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(p){l[p]=te(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&oe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ge(l,r,n))}function Yj(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(t.coordSysAxesInfo[bc(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Wj(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(aC(a[n+"AxisId"],r.id)||aC(a[n+"AxisIndex"],r.componentIndex)||aC(a[n+"AxisName"],r.name))return i}}function aC(t,e){return t==="all"||U(t)&&ue(t,e)>=0||t===e}function EV(t){var e=x0(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=oC(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function x0(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bc(t)]}function OV(t){var e=x0(t);return e&&e.axisPointerModel}function oC(t){return!!t.get(["handle","show"])}function bc(t){return t.type+"||"+t.id}var sd=k(()=>{hn();P()});var IV,Xj,_0,lC=k(()=>{q();sd();mn();IV={},Xj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&EV(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=OV(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){IV[r]=n},e.getAxisPointerClass=function(r){return r&&IV[r]},e.type="axis",e}(Je),_0=Xj});function RV(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=uC(t).splitAreaColors,p=K(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),x=void 0,_=void 0,b=void 0,S=void 0;i.isHorizontal()?(x=m,_=l.y,b=y-x,S=l.height,m=x+b):(x=l.x,_=m,b=l.width,S=y-_,m=_+S);var w=u[d-1].tickValue;w!=null&&p.set(w,h),e.add(new be({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:b,height:S},style:oe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}uC(t).splitAreaColors=p}}}function LV(t){uC(t).splitAreaColors=null}var uC,NV=k(()=>{P();Te();re();uC=ne()});var Zj,PV,qj,fC,zV,FV=k(()=>{q();P();Te();lC();NV();Qh();Pn();Zj=["splitArea","splitLine","minorSplitLine","breakArea"],PV=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ye,this.group.add(this._axisGroup),!!iu(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(Zj,function(l){r.get([l,"show"])&&qj[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||e1(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){LV(this)},e.type="cartesianAxis",e}(_0),qj={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var c=n.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var x=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var _=d[y].tickValue;p?(v[0]=x,v[1]=c.y,m[0]=x,m[1]=c.y+c.height):(v[0]=c.x,v[1]=x,m[0]=c.x+c.width,m[1]=x);var b=h++%l.length,S=new pr({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:oe({stroke:l[b]},g),silent:!0});El(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new pr({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});El(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){RV(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=uu(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},fC=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(PV),zV=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=fC.type,r}return e.type="yAxis",e}(PV)});function b0(t){t.registerComponentView(Kj),t.registerComponentModel(bF),t.registerCoordinateSystem("cartesian2d",AV),y0(t,"x",g0,VV),y0(t,"y",g0,VV),t.registerComponentView(fC),t.registerComponentView(zV),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Kj,VV,cC=k(()=>{q();mn();pu();Te();P();oV();cV();DV();FV();Kj=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new be({shape:r.coordinateSystem.getRect(),style:oe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Je),VV={offset:0}});var S0,jj,$j,pC=k(()=>{q();wr();Vy();P();S0="single",jj="singleAxis",$j=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getCoordSysModel=function(){return this},e.type=jj,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(ke);kt($j,fc.prototype)});function UV(t,e){var r=t.coordinateSystem,n=r&&r.type,i=r&&r.getBaseAxis&&r.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=n===Mr&&a==="ordinal"||n===S0,s=e.model.get("jitter")>0;return o&&s}function hC(t,e,r,n){if(t instanceof u0){var i=t.scale.type;if(i!=="ordinal")return r}var a=t.model,o=a.get("jitter");if(!(o>0))return r;var s=a.get("jitterOverlap"),l=a.get("jitterMargin")||0,u=st(t.scale)?bt(t).w:null;return s?GV(r,o,u,n):Qj(t,e,r,n,o,l)}function GV(t,e,r,n){if(r===null)return t+(Math.random()-.5)*e;var i=r-n*2,a=Math.min(Math.max(0,e),i);return t+(Math.random()-.5)*a}function Qj(t,e,r,n,i,a){var o=Jj(t);o.items||(o.items=[]);var s=o.items,l=BV(s,e,r,n,i,a,1),u=BV(s,e,r,n,i,a,-1),f=Math.abs(l-r)<Math.abs(u-r)?l:u,c=st(t.scale)?bt(t).w:null,p=Math.abs(f-r);return p>i/2||c&&p>c/2-n?GV(r,i,c,n):(s.push({fixedCoord:e,floatCoord:f,r:n}),f)}function BV(t,e,r,n,i,a,o){for(var s=r,l=0;l<t.length;l++){var u=t[l],f=e-u.fixedCoord,c=s-u.floatCoord,p=f*f+c*c,h=n+u.r+a;if(p<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-r)>i/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}var Jj,HV=k(()=>{Bi();PT();pu();pC();Bt();re();Jj=ne()});function dC(){return{seriesType:"scatter",plan:no(),reset:function(t){var e=t.coordinateSystem;if(!(!e||e.type!==Mr&&e.type!==S0)){var r=e.getBaseAxis&&e.getBaseAxis(),n=r&&UV(t,r);if(n){var i=r.dim,a=r.orient,o=a==="horizontal"&&r.type!=="category"||a==="vertical"&&r.type==="category",s=i==="y"||i==="single"&&o,l=i==="x"||i==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var c=f.getLayout("points"),p=!!c,h=u.start;h<u.end;h++){var d=p?(h-u.start)*2:-1,v=p?[c[d],c[d+1]]:f.getItemLayout(h);if(v){var m=f.getItemVisual(h,"symbolSize"),g=m instanceof Array?(m[1]+m[0])/2:m;if(s){var y=hC(r,v[0],v[1],g/2);p?c[d+1]=y:v[1]=y}else if(l){var y=hC(r,v[1],v[0],g/2);p?c[d]=y:v[0]=y}}}}}}}}}}var YV=k(()=>{HV();xh();pu();pC()});function vC(t){lt(b0),t.registerSeriesModel(QF),t.registerChartView(iV),t.registerLayout(lu("scatter"))}function mC(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,dC())}var gC=k(()=>{Vi();eV();aV();cC();l0();YV()});function WV(t,e,r){yC(t)[e]=r}function XV(t,e,r){var n=yC(t),i=n[e];i===r&&(n[e]=null)}function xC(t,e){return!!yC(t)[e]}var yC,_C=k(()=>{tu();P();re();yC=ne();Cr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},qe)});function w0(t,e,r){var n=e.getComponentByElement(t.topTarget);if(!n||n===r||e$.hasOwnProperty(n.mainType))return!1;var i=n.coordinateSystem;if(!i||i.model===r)return!1;var a=ga(n),o=ga(r);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var e$,bC=k(()=>{Te();e$={axisPointer:1,tooltip:1,brush:1}});function ld(t){return t.__ecRoamConsumed}function C0(t){var e=r$(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function ud(t,e,r,n){for(var i=C0(t),a=i.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),n$(t,e)}function fd(t,e,r){for(var n=C0(t),i=n.roam[e]||[],a=0;a<i.length;a++)if(i[a].listener===r){i.splice(a,1),i.length||i$(t,e);return}}function n$(t,e){var r=C0(t);r.uniform[e]||t.on(e,r.uniform[e]=function(n){var i=r.roam[e];if(i)for(var a=0;a<i.length;a++)i[a].listener(n)})}function i$(t,e){var r=C0(t),n=r.uniform;n[e]&&(t.off(e,n[e]),n[e]=null)}function qV(t,e,r,n,i){i.isAvailableBehavior=$(T0,null,r,n),t.trigger(e,i)}function T0(t,e,r){var n=r[t];return!t||n&&(!W(n)||e.event[n+"Key"])}var t$,r$,KV,jV=k(()=>{q();qi();Ki();_C();P();re();Te();bC();t$=function(t){N(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var i=$(n._mousedownHandler,n),a=$(n._mousemoveHandler,n),o=$(n._mouseupHandler,n),s=$(n._mousewheelHandler,n),l=$(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,p=ga(c.component),h=p.z,d=p.zlevel,v={component:c.component,z:h,zlevel:d,z2:Z(c.z2,-1/0)},m=G({},f.triggerInfo);this._opt=oe(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:v,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(ud(r,"mousedown",i,v),ud(r,"mousemove",a,v),ud(r,"mouseup",o,v)),(u===!0||u==="scale"||u==="zoom")&&(ud(r,"mousewheel",s,v),ud(r,"pinch",l,v)))},n.disable=function(){this._enabled&&(this._enabled=!1,fd(r,"mousedown",i),fd(r,"mousemove",a),fd(r,"mouseup",o),fd(r,"mousewheel",s),fd(r,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(r,n,i){var a=this._opt,o=a.zInfoParsed;if(w0(r,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,i)),u&&s.isInClip&&!s.isInClip(r,n,i)&&(u=!1),u},e.prototype._decideCursorStyle=function(r,n,i,a){var o=r.target;if(!o&&this._checkPointer(r,n,i))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!(W_(r)||ld(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this._checkPointer(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||xC(n,"globalPan")||ld(r))){var i=r.offsetX,a=r.offsetY;if(!this._dragging||!T0("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,i,a,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=i-s,f=a-l;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&Jr(r.event),r.__ecRoamConsumed=!0,qV(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:i,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){if(!ld(r)){var n=this._zr;if(!W_(r)){this._dragging=!1;var i=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);i&&n.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(r){if(!ld(r)){var n=T0("zoomOnMouseWheel",r,this._opt),i=T0("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),p=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(r){if(!(xC(this._zr,"globalPan")||ld(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(r,n,i,a,o){r._checkPointer(a,o.originX,o.originY)&&(Jr(a.event),a.__ecRoamConsumed=!0,qV(r,n,i,a,o))},e}(Nt);r$=ne();KV=t$});function QV(t,e){return Pa(t||[],e.mtOverall)}function eB(t){return t.zoom}function SC(t,e){return Gu(t||vp(),e.dataRect)}function l$(t,e){return Gu(t||vp(),e.viewRect)}function JV(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var a$,$V,o$,s$,C1e,M0,M1e,A1e,D1e,k1e,E1e,O1e,I1e,wC=k(()=>{q();Ct();ta();bn();Lt();a$=0,$V=1,o$=2,s$="view",C1e=function(t){N(e,t);function e(r,n,i){var a=t.call(this)||this;a.type=s$,a.dimensions=["x","y"];var o=a;o.invertY=r,o.lgCt=n,o.lgGeo=i;var s=o.trans=[];return s[a$]=Ju(),s[$V]=Ju(),s[o$]=Ju(),o.mtRaw=$e(),o.mtRawInv=$e(),o.mtOverall=$e(),o.mtOverallInv=$e(),o.zoom=1,a}return e.prototype.getBoundingRect=function(){return SC(null,this)},e.prototype.getViewRect=function(){return l$(null,this)},e.prototype.getRoamTransform=function(){return Ab(this.trans[$V])},e.prototype.dataToPoint=function(r,n,i){var a=n?this.mtRaw:this.mtOverall;return i=i||[],a?ot(i,r,a):yv(i,r)},e.prototype.pointToData=function(r,n,i){i=i||[];var a=this.mtOverallInv;return a?ot(i,r,a):yv(i,r)},e.prototype.convertToPixel=function(r,n,i){var a=JV(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=JV(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){var n=this;return Gu(M0,n.dataRect),Tv(M0,M0,n.mtOverall),Xk(M0,r[0],r[1])},e.dimensions=["x","y"],e}($n),M0=vp();M1e=$e(),A1e=$e(),D1e=vp(),k1e=$e(),E1e=$e();O1e=Ju(),I1e=Ju()});function f$(t){var e=t.pieceList;t.hasSpecialVisual=!1,T(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function c$(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(hd(e,function(o,s){r[o]=s}),!U(n)){var i=[];j(n)?hd(n,function(o,s){var l=r[s];i[l??k0]=o}):i[k0]=n,n=rB(t,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function TC(t,e){var r=t.visual,n=[];j(r)?hd(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),rB(t,n)}function A0(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:CC([0,1])}}function tB(t){var e=this.option.visual;return e[Math.round(Be(t,[0,1],[0,e.length-1],!0))]||{}}function cd(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function pd(t){var e=this.option.visual;return e[this.option.loop&&t!==k0?t%e.length:t]}function hu(){return this.option.visual[0]}function CC(t){return{linear:function(e){return Be(e,t,this.option.visual,!0)},category:pd,piecewise:function(e,r){var n=MC.call(this,r);return n==null&&(n=Be(e,t,this.option.visual,!0)),n},fixed:hu}}function MC(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=AC.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function rB(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=V(e,function(r){var n=Wt(r);return n||[0,0,0,1]})),e}function D0(t,e,r){return t?e<=r:e<r}var hd,u$,k0,AC,p$,rr,Sc=k(()=>{P();Ir();Se();hd=T,u$=j,k0=-1,AC=function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=te(e);this.type=n,this.mappingMethod=r,this._normalizeData=p$[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(TC(i),f$(i)):r==="category"?i.categories?c$(i):TC(i,!0):(je(r!=="linear"||i.dataExtent),TC(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return $(this._normalizeData,this)},t.listVisualTypes=function(){return he(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){j(e)?T(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=U(e)?[]:j(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&hd(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(u$(e)){var r=[];hd(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||W(l)&&l===e+"")return o;n&&p(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(D0(c[1],e,f[1]))return o}else if(f[1]===1/0){if(D0(c[0],f[0],e))return o}else if(D0(c[0],f[0],e)&&D0(c[1],e,f[1]))return o;n&&p(f[0],o),n&&p(f[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:i;function p(h,d){var v=Math.abs(h-e);v<a&&(a=v,i=d)}},t.visualHandlers={color:{applyVisual:cd("color"),getColorMapper:function(){var e=this.option;return $(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),pd.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=Zu(r,e.parsedVisual,i),a?i:en(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return en(Zu(e,this.option.parsedVisual),"rgba")},category:pd,piecewise:function(e,r){var n=MC.call(this,r);return n==null&&(n=en(Zu(e,this.option.parsedVisual),"rgba")),n},fixed:hu}},colorHue:A0(function(e,r){return Qi(e,r)}),colorSaturation:A0(function(e,r){return Qi(e,null,r)}),colorLightness:A0(function(e,r){return Qi(e,null,null,r)}),colorAlpha:A0(function(e,r){return qu(e,r)}),decal:{applyVisual:cd("decal"),_normalizedToVisual:{linear:null,category:pd,piecewise:null,fixed:null}},opacity:{applyVisual:cd("opacity"),_normalizedToVisual:CC([0,1])},liftZ:{applyVisual:cd("liftZ"),_normalizedToVisual:{linear:hu,category:hu,piecewise:hu,fixed:hu}},symbol:{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:tB,category:pd,piecewise:function(e,r){var n=MC.call(this,r);return n==null&&(n=tB.call(this,e)),n},fixed:hu}},symbolSize:{applyVisual:cd("symbolSize"),_normalizedToVisual:CC([0,1])}},t}();p$={linear:function(t){return Be(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=AC.findPieceIndex(t,e,!0);if(r!=null)return Be(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??k0},fixed:qe};rr=AC});function kC(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var nB,DC,iB,F1e,h$,aB,oB=k(()=>{q();Te();Lt();Fe();nB=pr.prototype,DC=Ml.prototype,iB=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),F1e=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iB);h$=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new iB},e.prototype.buildPath=function(r,n){kC(n)?nB.buildPath.call(this,r,n):DC.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return kC(this.shape)?nB.pointAt.call(this,r):DC.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,i=kC(n)?[n.x2-n.x1,n.y2-n.y1]:DC.tangentAt.call(this,r);return Gs(i,i)},e}(ce),aB=h$});function sB(t){return"_"+t+"Type"}function lB(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Th(i),u=Kl(o||0,l);return n+l+u+(a||"")+(s||"")}function uB(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Th(i),u=Kl(o||0,l),f=mt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}}function d$(t){var e=new aB({name:"line",subPixelOptimize:!0});return OC(e.shape,t),e}function OC(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var EC,v$,fB,cB=k(()=>{q();P();Lt();hi();oB();Te();or();Ot();Se();Fe();EC=["fromSymbol","toSymbol"];v$=function(t){N(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createLine(r,n,i),a}return e.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=d$(o);l.shape.percent=0,vt(l,{z2:Z(s,0),shape:{percent:1}},a,n),this.add(l),T(EC,function(u){var f=uB(u,r,n);this.add(f),this[sB(u)]=lB(u,r,n)},this),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};OC(l.shape,s),We(o,l,a,n),T(EC,function(u){var f=lB(u,r,n),c=sB(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=uB(u,r,n);this.add(p)}this[c]=f},this),this._updateCommonStl(r,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,p=i&&i.focus,h=i&&i.blurScope;if(!i||r.hasItemOption){var d=r.getItemModel(n),v=d.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=v.get("disabled"),p=v.get("focus"),h=v.get("blurScope"),f=hr(d)}var m=r.getItemVisual(n,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(EC,function(S){var w=this.childOfName(S);if(w){w.setColor(g),w.style.opacity=m.opacity;for(var M=0;M<ar.length;M++){var C=ar[M],A=o.getState(C);if(A){var E=A.style||{},O=w.ensureState(C),D=O.style||(O.style={});E.stroke!=null&&(D[w.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(D.opacity=E.opacity)}}w.markRedraw()}},this);var y=a.getRawValue(n);pn(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,w){return a.getFormattedLabel(S,w,r.dataType)}},inheritColor:g||H.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?r.getName(n):isFinite(y)?De(y,10):y)+""});var x=this.getTextContent();if(x){var _=f.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var b=_.get("distance");U(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),zr(this,p,h,c)},e.prototype.highlight=function(){ni(this)},e.prototype.downplay=function(){ii(this)},e.prototype.updateLayout=function(r,n){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");OC(n.shape,r),n.dirty()},e.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=lp([],c,f);Gs(p,p);function h(A,E){var O=A.__specifiedRotation;if(O==null){var D=l.tangentAt(E);A.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else A.attr("rotation",O)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,v=void 0,m=a.__labelDistance,g=m[0]*o,y=m[1]*o,x=u/2,_=l.tangentAt(x),b=[_[1],-_[0]],S=l.pointAt(x);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=_[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(_[1],_[0]);c[0]<f[0]&&(M=Math.PI+M),a.rotation=M}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,v="top";break;default:C=0,v="middle"}switch(a.__position){case"end":a.x=p[0]*g+c[0],a.y=p[1]*y+c[1],d=p[0]>.8?"left":p[0]<-.8?"right":"center",v=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":a.x=-p[0]*g+f[0],a.y=-p[1]*y+f[1],d=p[0]>.8?"right":p[0]<-.8?"left":"center",v=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*w+f[0],a.y=f[1]+C,d=_[0]<0?"right":"left",a.originX=-g*w,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+C,d="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*w+c[0],a.y=c[1]+C,d=_[0]>=0?"right":"left",a.originX=g*w,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||d})}},e}(ye),fB=v$});function g$(t){return t.animators&&t.animators.length>0}function pB(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:hr(e)}}function hB(t){return isNaN(t[0])||isNaN(t[1])}function IC(t){return t&&!hB(t[0])&&!hB(t[1])}var m$,dB,vB=k(()=>{Te();cB();Ot();m$=function(){function t(e){this.group=new ye,this._LineCtor=e||fB}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=pB(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=pB(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[];function i(l){!l.isGroup&&!g$(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Oi)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(IC(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(i),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){kn(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var i=e.getItemLayout(r);if(IC(i)){var a=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,n,i,a){var o=e.getItemGraphicEl(n);if(!IC(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},t}();dB=m$});function Vn(t,e,r,n,i,a){t=t||0;var o=Ga(r[1],-r[0]);if(i!=null&&(i=wc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(Ga(e[1],-e[0]));s=wc(s,[0,o]),i=a=wc(s,[i,a]),n=0}e[0]=wc(e[0],r),e[1]=wc(e[1],r);var l=RC(e,n);e[n]+=t;var u=i||0,f=r.slice();l.sign<0?f[0]=Ga(f[0],u):f[1]=Ga(f[1],-u),e[n]=wc(e[n],f);var c;return c=RC(e,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(e[1-n]=Ga(e[n],l.sign*i)),c=RC(e,n),a!=null&&c.span>a&&(e[1-n]=Ga(e[n],c.sign*a)),e}function RC(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function wc(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var Tc=k(()=>{Se()});function SB(t,e){var r=E0[e.brushType].createCover(t,e);return r.__brushOption=e,CB(r,e),t.group.add(r),r}function wB(t,e){var r=BC(e);return r.endCreating&&(r.endCreating(t,e),CB(e,e.__brushOption)),e}function TB(t,e){var r=e.__brushOption;BC(e).updateCoverShape(t,e,r.range,r)}function CB(t,e){var r=e.z;r==null&&(r=x$),t.traverse(function(n){n.z=r,n.z2=r})}function VC(t,e){BC(e).updateCommon(t,e),TB(t,e)}function BC(t){return E0[t.__brushOption.brushType]}function UC(t,e,r){var n=t._panels;if(!n)return du;var i,a=t._transform;return T(n,function(o){o.isTargetByCursor(e,r,a)&&(i=o)}),i}function MB(t,e){var r=t._panels;if(!r)return du;var n=e.__brushOption.panelId;return n!=null?r[n]:du}function LC(t){var e=t._covers,r=e.length;return T(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function vu(t,e){var r=V(t._covers,function(n){var i=n.__brushOption,a=te(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function M$(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],i=r[0]-n[0],a=r[1]-n[1],o=y$(i*i+a*a,.5);return o>_$}function AB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function DB(t,e,r,n){var i=new ye;return i.add(new be({name:"main",style:GC(r),silent:!0,draggable:!0,cursor:"move",drift:ve(yB,t,e,i,["n","s","w","e"]),ondragend:ve(vu,e,{isEnd:!0})})),T(n,function(a){i.add(new be({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ve(yB,t,e,i,a),ondragend:ve(vu,e,{isEnd:!0})}))}),i}function kB(t,e,r,n){var i=n.brushStyle.lineWidth||0,a=Cc(i,b$),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,f=r[0][1],c=r[1][1],p=f-a+i/2,h=c-a+i/2,d=f-o,v=c-s,m=d+i,g=v+i;vo(t,e,"main",o,s,d,v),n.transformable&&(vo(t,e,"w",l,u,a,g),vo(t,e,"e",p,u,a,g),vo(t,e,"n",l,u,m,a),vo(t,e,"s",l,h,m,a),vo(t,e,"nw",l,u,a,a),vo(t,e,"ne",p,u,a,a),vo(t,e,"sw",l,h,a,a),vo(t,e,"se",p,h,a,a))}function NC(t,e){var r=e.__brushOption,n=r.transformable,i=e.childAt(0);i.useStyle(GC(r)),i.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?PC(t,a[0]):D$(t,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?w$[s]+"-resize":null})})}function vo(t,e,r,n,i,a,o){var s=e.childOfName(r);s&&s.setShape(E$(HC(t,e,[[n,i],[n+a,i+o]])))}function GC(t){return oe({strokeNoScale:!0},t.brushStyle)}function EB(t,e,r,n){var i=[dd(t,r),dd(e,n)],a=[Cc(t,r),Cc(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function A$(t){return Ii(t.group)}function PC(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ol(r[e],A$(t));return n[i]}function D$(t,e){var r=[PC(t,e[0]),PC(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function yB(t,e,r,n,i,a){var o=r.__brushOption,s=t.toRectRange(o.range),l=OB(e,i,a);T(n,function(u){var f=S$[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=t.fromRectRange(EB(s[0][0],s[1][0],s[0][1],s[1][1])),VC(e,r),vu(e,{isEnd:!1})}function k$(t,e,r,n){var i=e.__brushOption.range,a=OB(t,r,n);T(i,function(o){o[0]+=a[0],o[1]+=a[1]}),VC(t,e),vu(t,{isEnd:!1})}function OB(t,e,r){var n=t.group,i=n.transformCoordToLocal(e,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function HC(t,e,r){var n=MB(t,e);return n&&n!==du?n.clipPath(r,t._transform):te(r)}function E$(t){var e=dd(t[0][0],t[1][0]),r=dd(t[0][1],t[1][1]),n=Cc(t[0][0],t[1][0]),i=Cc(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:i-r}}function O$(t,e,r){if(!(!t._brushType||R$(t,e.offsetX,e.offsetY))){var n=t._zr,i=t._covers,a=UC(t,e,r);if(!t._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===du||s.panelId===a.panelId)&&E0[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function zC(t){var e=t.event;e.preventDefault&&e.preventDefault()}function FC(t,e,r){return t.childOfName("main").contain(e,r)}function IB(t,e,r,n){var i=t._creatingCover,a=t._creatingPanel,o=t._brushOption,s;if(t._track.push(r.slice()),M$(t)||i){if(a&&!i){o.brushMode==="single"&&LC(t);var l=te(o);l.brushType=xB(l.brushType,a),l.panelId=a===du?null:a.panelId,i=t._creatingCover=SB(t,l),t._covers.push(i)}if(i){var u=E0[xB(t._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(HC(t,i,t._track)),n&&(wB(t,i),u.updateCommon(t,i)),TB(t,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&UC(t,e,r)&&LC(t)&&(s={isEnd:n,removeOnClick:!0});return s}function xB(t,e){return t==="auto"?e.defaultBrushType:t}function _B(t,e){if(t._dragging){zC(e);var r=e.offsetX,n=e.offsetY,i=t.group.transformCoordToLocal(r,n),a=IB(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&vu(t,a)}}function R$(t,e,r){var n=t._zr;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}function bB(t){return{createCover:function(e,r){return DB({toRectRange:function(n){var i=[n,[0,100]];return t&&i.reverse(),i},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=AB(e),n=dd(r[0][t],r[1][t]),i=Cc(r[0][t],r[1][t]);return[n,i]},updateCoverShape:function(e,r,n,i){var a,o=MB(e,r);if(o!==du&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),kB(e,r,l,i)},updateCommon:NC,contain:FC}}var du,dd,Cc,y$,x$,_$,b$,mB,S$,w$,gB,T$,C$,I$,E0,RB,LB=k(()=>{q();P();qi();Te();_C();jf();Fe();du=!0,dd=Math.min,Cc=Math.max,y$=Math.pow,x$=1e4,_$=6,b$=6,mB="globalPan",S$={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},w$={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},gB={brushStyle:{lineWidth:2,stroke:H.color.backgroundTint,fill:H.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},T$=0,C$=function(t){N(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new ye,n._uid="brushController_"+T$++,T(I$,function(i,a){this._handlers[a]=$(i,this)},n),n}return e.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||WV(n,mB,this._uid),T(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=de(te(gB),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;XV(r,mB,this._uid),T(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};T(r,function(i){n[i.panelId]=te(i)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(r){r=V(r,function(p){return de(te(gB),p,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new zi(i,r,u,l).add(f).update(f).remove(c).execute(),this;function l(p,h){return(p.id!=null?p.id:n+h)+"-"+p.brushType}function u(p,h){return l(p.__brushOption,h)}function f(p,h){var d=r[p];if(h!=null&&i[h]===s)a[p]=i[h];else{var v=a[p]=h!=null?(i[h].__brushOption=d,i[h]):wB(o,SB(o,d));VC(o,v)}}function c(p){i[p]!==s&&o.group.remove(i[p])}},e.prototype.unmount=function(){return this.enableBrush(!1),LC(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Nt);I$={mousedown:function(t){if(this._dragging)_B(this,t);else if(!t.target||!t.target.draggable){zC(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var r=this._creatingPanel=UC(this,t,e);r&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,r=t.offsetY,n=this.group.transformCoordToLocal(e,r);if(O$(this,t,n),this._dragging){zC(t);var i=IB(this,t,n,!1);i&&vu(this,i)}},mouseup:function(t){_B(this,t)}};E0={lineX:bB(0),lineY:bB(1),rect:{createCover:function(t,e){function r(n){return n}return DB({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=AB(t);return EB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){kB(t,e,r,n)},updateCommon:NC,contain:FC},polygon:{createCover:function(t,e){var r=new ye;return r.add(new fn({name:"main",style:GC(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new sr({name:"main",draggable:!0,drift:ve(k$,t,e),ondragend:ve(vu,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:HC(t,e,r)})},updateCommon:NC,contain:FC}};RB=C$});function NB(t){return t=YC(t),function(e){return oh(e,t)}}function PB(t,e){return t=YC(t),function(r){var n=e??r,i=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(i||0)]}}function zB(t,e,r){var n=YC(t);return function(i,a){return n.contain(a[0],a[1])&&!w0(i,e,r)}}function YC(t){return fe.create(t)}var FB=k(()=>{Ct();bC();Te()});var N$,P$,VB,BB=k(()=>{qr();Fe();N$=256,P$=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=at.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,p=c.getContext("2d"),h=e.length;c.width=r,c.height=n;for(var d=0;d<h;++d){var v=e[d],m=v[0],g=v[1],y=v[2],x=i(y);p.globalAlpha=x,p.drawImage(s,m-f,g-f)}if(!c.width||!c.height)return c;for(var _=p.getImageData(0,0,c.width,c.height),b=_.data,S=0,w=b.length,M=this.minOpacity,C=this.maxOpacity,A=C-M;S<w;){var x=b[S+3]/256,E=Math.floor(x*(N$-1))*4;if(x>0){var O=o(x)?l:u;x>0&&(x=x*A+M),b[S++]=O[E],b[S++]=O[E+1],b[S++]=O[E+2],b[S++]=O[E+3]*x*256}else S+=4}return p.putImageData(_,0,0),c},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=at.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=H.color.neutral99,i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t}(),VB=P$});function z$(t,e,r){var n=t[1]-t[0];e=V(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function F$(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(n){return n>=e[0]&&n<=e[1]}}var V$,UB,GB=k(()=>{q();Te();or();BB();P();io();yc();Ot();Bi();re();V$=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,i,0,r.getData().count()):OT(o)&&this._renderOnGeo(o,r,a,i)},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(OT(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnGridLike(n,a,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){kn(this._progressiveEls||this.group,r)},e.prototype._renderOnGridLike=function(r,n,i,a,o){var s=r.coordinateSystem,l=gi(s,"cartesian2d"),u=gi(s,"matrix"),f,c,p,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");f=bt(d).w+.5,c=bt(v).w+.5,p=d.scale.getExtent(),h=v.scale.getExtent()}for(var m=this.group,g=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),x=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),S=hr(r),w=r.getModel("emphasis"),M=w.get("focus"),C=w.get("blurScope"),A=w.get("disabled"),E=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],O=i;O<a;O++){var D=void 0,L=g.getItemVisual(O,"style");if(l){var I=g.get(E[0],O),R=g.get(E[1],O);if(isNaN(g.get(E[2],O))||isNaN(I)||isNaN(R)||I<p[0]||I>p[1]||R<h[0]||R>h[1])continue;var F=s.dataToPoint([I,R]);D=new be({shape:{x:F[0]-f/2,y:F[1]-c/2,width:f,height:c},style:L})}else if(u){var z=s.dataToLayout([g.get(E[0],O),g.get(E[1],O)]).rect;if(_n(z.x))continue;D=new be({z2:1,shape:z,style:L})}else{if(isNaN(g.get(E[1],O)))continue;var Y=s.dataToLayout([g.get(E[0],O)]),z=Y.contentRect||Y.rect;if(_n(z.x)||_n(z.y))continue;D=new be({z2:1,shape:z,style:L})}if(g.hasItemOption){var B=g.getItemModel(O),X=B.getModel("emphasis");y=X.getModel("itemStyle").getItemStyle(),x=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),M=X.get("focus"),C=X.get("blurScope"),A=X.get("disabled"),S=hr(B)}D.shape.r=b;var ee=r.getRawValue(O),ie="-";ee&&ee[2]!=null&&(ie=ee[2]+""),pn(D,S,{labelFetcher:r,labelDataIndex:O,defaultOpacity:L.opacity,defaultText:ie}),D.ensureState("emphasis").style=y,D.ensureState("blur").style=x,D.ensureState("select").style=_,zr(D,M,C,A),D.incremental=Fo(r,o),o&&(D.states.emphasis.hoverLayer=Oi),m.add(D),g.setItemGraphicEl(O,D),this._progressiveEls&&this._progressiveEls.push(D)}},e.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new VB;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var p=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,a.getWidth()),v=Math.min(f.height+f.y,a.getHeight()),m=d-p,g=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,M,C){var A=r.dataToPoint([w,M]);return A[0]-=p,A[1]-=h,A.push(C),A}),_=i.getExtent(),b=i.type==="visualMap.continuous"?F$(_,i.option.range):z$(_,i.getPieceList(),i.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new _t({style:{width:m,height:g,x:p,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(Dt),UB=V$});var B$,HB,YB=k(()=>{q();_a();ls();zl();Fe();B$=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return gn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=Jo.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:H.color.primary}}},e}(Vt),HB=B$});function WC(t){t.registerChartView(UB),t.registerSeriesModel(HB)}var WB=k(()=>{GB();YB()});var XC,XB,Ta,U$,ZB,ZC=k(()=>{q();ls();re();_a();XC={color:"fill",borderColor:"stroke"},XB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ta=ne(),U$=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return gn(null,this)},e.prototype.getDataParams=function(r,n,i){var a=t.prototype.getDataParams.call(this,r,n);return i&&(a.info=Ta(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Vt),ZB=U$});function G$(t,e){return e=e||[0,0],V(["x","y"],function(r,n){var i=this.getAxis(r),a=e[n],o=t[n]/2;return i.type==="category"?bt(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function qC(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(r){return t.dataToPoint(r)},size:$(G$,t)}}}var qB=k(()=>{P();Bi()});function H$(t,e){return e=e||[0,0],V([0,1],function(r){var n=e[r],i=t[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function KC(t){var e=t.view,r=e.getBoundingRect();return{coordSys:{type:"geo",x:r.x,y:r.y,width:r.width,height:r.height,zoom:eB(e)},api:{coord:function(n){return t.dataToPoint(n)},size:$(H$,t)}}}var KB=k(()=>{P();wC()});function Y$(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return r.type==="category"?bt(r).w:Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function jC(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:$(Y$,t)}}}var jB=k(()=>{Bi();P()});function W$(t,e){return e=e||[0,0],V(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=e[n],s=t[n]/2,l=a.type==="category"?bt(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function $C(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=t.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:$(W$,t)}}}var $B=k(()=>{P();Bi()});function JC(t){var e=t.getRect(),r=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:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return t.dataToPoint(n,i)},layout:function(n,i){return t.dataToLayout(n,i)}}}}var JB=k(()=>{});function QC(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r,n){return t.dataToPoint(r,n)},layout:function(r,n){return t.dataToLayout(r,n)}}}}var QB=k(()=>{});function tM(t,e,r,n,i){var a=t+"Animation",o=ma(t,n,i)||{},s=Ac(e).userDuring;return o.duration>0&&(o.during=s?$($$,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),G(o,r[a]),o}function nU(t,e,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Ac(t),u=e.style;l.userDuring=e.during;var f={},c={};if(Q$(t,e,c),t.type==="compound")for(var p=t.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var v=h[d];eM("shape",v,p[d])}else eM("shape",e,c),eM("extra",e,c);if(!a&&s&&(J$(t,e,f),tU("shape",t,e,f),tU("extra",t,e,f),eJ(t,e,u,f)),c.style=u,Z$(t,c,o),K$(t,e),s)if(a){var m={};T(vd,function(y){var x=y?e[y]:e;x&&x.enterFrom&&(y&&(m[y]=m[y]||{}),G(y?m[y]:m,x.enterFrom))});var g=tM("enter",t,e,r,i);g.duration>0&&t.animateFrom(m,g)}else q$(t,e,i||0,r,f);X$(t,e),u?t.dirty():t.markRedraw()}function X$(t,e){for(var r=Ac(t).leaveToProps,n=0;n<vd.length;n++){var i=vd[n],a=i?e[i]:e;a&&a.leaveTo&&(r||(r=Ac(t).leaveToProps={}),i&&(r[i]=r[i]||{}),G(i?r[i]:r,a.leaveTo))}}function O0(t,e,r,n){if(t){var i=t.parent,a=Ac(t).leaveToProps;if(a){var o=tM("update",t,e,r,0);o.done=function(){i&&i.remove(t),n&&n()},t.animateTo(a,o)}else i&&i.remove(t),n&&n()}}function Mc(t){return t==="all"}function Z$(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function q$(t,e,r,n,i){if(i){var a=tM("update",t,e,n,r);a.duration>0&&t.animateFrom(i,a)}}function K$(t,e){Q(e,"silent")&&(t.silent=e.silent),Q(e,"ignore")&&(t.ignore=e.ignore),t instanceof _r&&Q(e,"invisible")&&(t.invisible=e.invisible),t instanceof ce&&Q(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}function $$(){var t=this,e=t.el;if(e){var r=Ac(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}Ca.el=e,n(j$)}}function tU(t,e,r,n){var i=r[t];if(i){var a=e[t],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[t]={}),Mc(l))G(o,a);else for(var u=Ue(l),f=0;f<u.length;f++){var c=u[f],p=a[c];o[c]=p}else if(Mc(s)||ue(s,t)>=0){!o&&(o=n[t]={});for(var h=he(a),f=0;f<h.length;f++){var c=h[f],p=a[c];tJ(i[c],p)&&(o[c]=p)}}}}}function eM(t,e,r){var n=e[t];if(n)for(var i=r[t]={},a=he(n),o=0;o<a.length;o++){var s=a[o];i[s]=el(n[s])}}function J$(t,e,r){for(var n=e.transition,i=Mc(n)?jn:Ue(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];r[o]=s}}}function Q$(t,e,r){for(var n=0;n<eU.length;n++){var i=eU[n],a=rU[i],o=e[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<jn.length;n++){var s=jn[n];e[s]!=null&&(r[s]=e[s])}}function eJ(t,e,r,n){if(r){var i=t.style,a;if(i){var o=r.transition,s=e.transition;if(o&&!Mc(o)){var l=Ue(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=i[f];a[f]=c}}else if(t.getAnimationStyleProps&&(Mc(s)||Mc(o)||ue(s,"style")>=0)){var p=t.getAnimationStyleProps(),h=p?p.style:null;if(h){!a&&(a=n.style={});for(var d=he(r),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=i[f];a[f]=c}}}}}}}function tJ(t,e){return wt(t)?t!==e:t!=null&&isFinite(t)}var rU,eU,eTe,tTe,vd,Ac,Ca,j$,rM=k(()=>{re();P();$v();la();jo();Te();ta();rU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},eU=he(rU),eTe=ir(jn,function(t,e){return t[e]=1,t},{}),tTe=jn.join(", "),vd=["","style","shape","extra"],Ac=ne();Ca={},j$={setTransform:function(t,e){return Ca.el[t]=e,this},getTransform:function(t){return Ca.el[t]},setShape:function(t,e){var r=Ca.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=Ca.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=Ca.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=Ca.el.style;if(e)return e[t]},setExtra:function(t,e){var r=Ca.el.extra||(Ca.el.extra={});return r[t]=e,this},getExtra:function(t){var e=Ca.el.extra;if(e)return e[t]}}});function aU(t){t.stopAnimation("keyframe"),t.attr(iU(t))}function nM(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(U(e)){T(e,function(s){nM(t,s,r)});return}var n=e.keyframes,i=e.duration;if(r&&i==null){var a=ma("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=iU(t);T(vd,function(s){if(!(s&&!t[s])){var l,u=!1;n.sort(function(f,c){return f.percent-c.percent}),T(n,function(f){var c=t.animators,p=s?f[s]:f;if(p){var h=he(p);if(s||(h=Ce(h,function(m){return ue(rJ,m)<0})),!!h.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;T(h,function(m){v[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(i*f.percent,p,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var iU,rJ,oU=k(()=>{P();rM();jo();re();iU=ne(),rJ=["percent","easing","shape","style","extra"]});function sM(t){return t instanceof ce}function lM(t){return t instanceof _r}function oJ(t,e){e.copyTransform(t),lM(e)&&lM(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,sM(e)&&sM(t)&&e.setShape(t.shape))}function cM(t){var e=t.type,r;if(e==="path"){var n=t.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=dU(n);r=ja(a,null,i,n.layout||"center"),Ta(r).customPathData=a}else if(e==="image")r=new _t({}),Ta(r).customImagePath=t.style.image;else if(e==="text")r=new Ie({});else if(e==="group")r=new ye;else if(e==="compoundPath"){var n=t.shape;if(!n||!n.paths){var o="";Et(o)}var s=V(n.paths,function(f){if(f.type==="path")return ja(f.shape.pathData,f,null);var c=Cf(f.type);if(!c){var p="";Et(p)}return new c});r=new qo({shape:{paths:s}})}else{var l=Cf(e);if(!l){var o="";Et(o)}r=new l}return Ta(r).customGraphicType=e,r.name=t.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function pM(t,e,r,n,i,a,o){aU(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=nJ);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;Q(u,"textFill")&&(u.fill=u.textFill),Q(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=sM(e)?l.decal:null;t&&c&&(c.dirty=!0,f=Jl(c,t)),l.__decalPattern=f}if(lM(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}nU(e,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),nM(e,n.keyframeAnimation,a)}function pU(t,e,r,n,i){var a=e.isGroup?null:e,o=i&&i[t].cfg;if(a){var s=a.ensureState(t);if(n===!1){var l=a.getState(t);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),AS(a)}}function lJ(t,e,r){if(!t.isGroup){var n=t,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<gs.length;s++)uJ(n,e,gs[s])}}function uJ(t,e,r){var n=r===ms,i=n?e:I0(e,r),a=i?i.z2:null,o;a!=null&&(o=n?t:t.ensureState(r),o.z2=a||0)}function sU(t,e,r,n){var i=t.get("renderItem");if(typeof i=="string"){var a=qN(i);a&&(i=a)}var o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):aJ[o.type](o));for(var l=oe({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:w,ordinalRawValue:S,styleEmphasis:M,visual:E,barLayout:O,currentSeriesIndices:D,font:L},s.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:fJ(t.getData()),itemPayload:t.get("itemPayload")||{}},f,c,p={},h={},d={},v={},m=0;m<gs.length;m++){var g=gs[m];d[g]=t.getModel(iM[g]),v[g]=t.getModel(aM[g])}function y(I){return I===f?c||(c=e.getItemModel(I)):e.getItemModel(I)}function x(I,R){return e.hasItemOption?I===f?p[R]||(p[R]=y(I).getModel(iM[R])):y(I).getModel(iM[R]):d[R]}function _(I,R){return e.hasItemOption?I===f?h[R]||(h[R]=y(I).getModel(aM[R])):y(I).getModel(aM[R]):v[R]}return function(I,R){return f=I,c=null,p={},h={},i&&i(oe({dataIndexInside:I,dataIndex:e.getRawIndex(I),actionType:R?R.type:null},u),l)};function b(I,R){return R==null&&(R=f),e.getStore().get(e.getDimensionIndex(I||0),R)}function S(I,R){R==null&&(R=f),I=I||0;var F=e.getDimensionInfo(I);if(!F){var z=e.getDimensionIndex(I);return z>=0?e.getStore().get(z,R):void 0}var Y=e.get(F.name,R),B=F&&F.ordinalMeta;return B?B.categories[Y]:Y}function w(I,R){R==null&&(R=f);var F=e.getItemVisual(R,"style"),z=F&&F.fill,Y=F&&F.opacity,B=x(R,ms).getItemStyle();z!=null&&(B.fill=z),Y!=null&&(B.opacity=Y);var X={inheritColor:W(z)?z:H.color.neutral99},ee=_(R,ms),ie=pt(ee,null,X,!1,!0);ie.text=ee.getShallow("show")?Z(t.getFormattedLabel(R,ms),co(e,R)):null;var ae=lh(ee,X,!1);return A(I,B),B=IT(B,ie,ae),I&&C(B,I),B.legacy=!0,B}function M(I,R){R==null&&(R=f);var F=x(R,mo).getItemStyle(),z=_(R,mo),Y=pt(z,null,null,!0,!0);Y.text=z.getShallow("show")?Kr(t.getFormattedLabel(R,mo),t.getFormattedLabel(R,ms),co(e,R)):null;var B=lh(z,null,!0);return A(I,F),F=IT(F,Y,B),I&&C(F,I),F.legacy=!0,F}function C(I,R){for(var F in R)Q(R,F)&&(I[F]=R[F])}function A(I,R){I&&(I.textFill&&(R.textFill=I.textFill),I.textPosition&&(R.textPosition=I.textPosition))}function E(I,R){if(R==null&&(R=f),Q(XC,I)){var F=e.getItemVisual(R,"style");return F?F[XC[I]]:null}if(Q(XB,I))return e.getItemVisual(R,I)}function O(I){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return wF(oe({axis:R},I))}}function D(){return r.getCurrentSeriesIndices()}function L(I){return Df(I,r)}}function fJ(t){var e={};return T(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=e[i]=e[i]||[];a[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function oM(t,e,r,n,i,a,o){if(!n){a.remove(e);return}var s=hM(t,e,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&zr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function hM(t,e,r,n,i,a){var o=-1,s=e;e&&hU(e,n,i)&&(o=ue(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=cM(n),s&&oJ(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),yi.normal.cfg=yi.normal.conOpt=yi.emphasis.cfg=yi.emphasis.conOpt=yi.blur.cfg=yi.blur.conOpt=yi.select.cfg=yi.select.conOpt=null,yi.isLegacy=!1,pJ(u,r,n,i,l,yi),cJ(u,r,n,i,l),pM(t,u,r,n,yi,i,l),Q(n,"info")&&(Ta(u).info=n.info);for(var f=0;f<gs.length;f++){var c=gs[f];if(c!==ms){var p=I0(n,c),h=dM(n,p,c);pU(c,u,p,h,yi)}}return lJ(u,n,i),n.type==="group"&&hJ(t,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function hU(t,e,r){var n=Ta(t),i=e.type,a=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&gJ(a)&&dU(a)!==n.customPathData||i==="image"&&Q(o,"image")&&o.image!==n.customImagePath}function cJ(t,e,r,n,i){var a=r.clipPath;if(a===!1)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&hU(o,a,n)&&(o=null),o||(o=cM(a),t.setClipPath(o)),pM(null,o,e,a,null,n,i)}}function pJ(t,e,r,n,i,a){if(!(t.isGroup||t.type==="compoundPath")){lU(r,null,a),lU(r,mo,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=t.getTextContent();if(o===!1)f&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=cM(o),t.setTextContent(f)),pM(null,f,e,o,null,n,i);for(var c=o&&o.style,p=0;p<gs.length;p++){var h=gs[p];if(h!==ms){var d=a[h].conOpt;pU(h,f,d,dM(o,d,h),null)}}c?f.dirty():f.markRedraw()}}}}function lU(t,e,r){var n=e?I0(t,e):t,i=e?dM(t,n,mo):t.style,a=t.type,o=n?n.textConfig:null,s=t.textContent,l=s?e?I0(s,e):s:null;if(i&&(r.isLegacy||Yz(i,a,!!o,!!l))){r.isLegacy=!0;var u=Wz(i,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var c=e?r[e]:r.normal;c.cfg=o,c.conOpt=l}function I0(t,e){return e?t?t[e]:null:t}function dM(t,e,r){var n=e&&e.style;return n==null&&r===mo&&t&&(n=t.styleEmphasis),n}function hJ(t,e,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){vJ({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=a[f],p=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),hM(t,p,r,c,i,e)):p.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var d=e.childAt(h);dJ(e,d,i)}}}function dJ(t,e,r){e&&O0(e,Ta(t).option,r)}function vJ(t){new zi(t.oldChildren,t.newChildren,uU,uU,t).add(fU).update(fU).remove(mJ).execute()}function uU(t,e){var r=t&&t.name;return r??iJ+e}function fU(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,i=e!=null?r.oldChildren[e]:null;hM(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function mJ(t){var e=this.context,r=e.oldChildren[t];r&&O0(r,Ta(r).option,e.seriesModel)}function dU(t){return t&&(t.pathData||t.d)}function gJ(t){return t&&(Q(t,"pathData")||Q(t,"d"))}var mo,ms,uM,fM,gs,iM,aM,nJ,iJ,yi,aJ,sJ,cU,vU=k(()=>{q();P();Te();or();Ot();Kh();jT();jf();io();$h();qB();KB();jB();$B();JB();QB();la();Xz();fl();iy();ZC();rM();oU();jg();Fe();re();mo="emphasis",ms="normal",uM="blur",fM="select",gs=[ms,mo,uM,fM],iM={normal:["itemStyle"],emphasis:[mo,"itemStyle"],blur:[uM,"itemStyle"],select:[fM,"itemStyle"]},aM={normal:["label"],emphasis:[mo,"label"],blur:[uM,"label"],select:[fM,"label"]},nJ=["x","y"],iJ="e\0\0",yi={normal:{},emphasis:{},blur:{},select:{}},aJ={cartesian2d:qC,geo:KC,single:jC,polar:$C,calendar:JC,matrix:QC};sJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=sU(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(c){oM(i,null,c,u(c,a),r,l,s)}).remove(function(c){var p=o.getItemGraphicEl(c);p&&O0(p,Ta(p).option,r)}).update(function(c,p){var h=o.getItemGraphicEl(p);oM(i,h,c,u(c,a),r,l,s)}).execute();var f=r.get("clip",!0)?s0(r.coordinateSystem,!1,r):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=sU(n,s,i,a),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=Fo(n),h.ensureState("emphasis").hoverLayer=Oi)}for(var c=r.start;c<r.end;c++){var p=oM(null,null,c,l(c,o),n,this.group,s);p&&(p.traverse(f),u.push(p))}},e.prototype.eachRendered=function(r){kn(this._progressiveEls||this.group,r)},e.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(Dt),cU=sJ});function vM(t){t.registerChartView(cU),t.registerSeriesModel(ZB)}var mU=k(()=>{ZC();vU()});var gU=k(()=>{tF();JF();gC();WB();mU()});var yU=k(()=>{gU()});function _U(t,e,r,n){wU(mu(r).lastProp,n)||(mu(r).lastProp=n,e?We(r,n,t):(r.stopAnimation(),r.attr(n)))}function wU(t,e){if(j(t)&&j(e)){var r=!0;return T(e,function(n,i){r=r&&wU(t[i],n)}),!!r}else return t===e}function bU(t,e){t[e.get(["label","show"])?"show":"hide"]()}function gM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function SU(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var mu,xU,mM,yJ,TU,CU=k(()=>{P();Te();sd();Ki();is();re();Bi();mu=ne(),xU=te,mM=$,yJ=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ye,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var p=ve(_U,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}SU(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&bt(i).w>s)return!0;if(o){var l=x0(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=mu(e).pointerEl=new Xe[a.type](xU(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=mu(e).labelEl=new Ie(xU(r.label));e.add(a),bU(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=mu(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=mu(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),bU(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=$a(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Jr(u.event)},onmousedown:mM(this._onHandleDragMove,this,0,0),drift:mM(this._onHandleDragMove,this),ondragend:mM(this._onHandleDragEnd,this)}),n.add(i)),SU(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ns(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){_U(this._axisPointerModel,!r&&this._moveAnimation,this._handle,gM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(gM(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(gM(i)),mu(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();TU=yJ});function MU(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function xJ(t,e,r,n,i){var a=r.get("value"),o=yM(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=li(s.get("padding")||0),u=s.getFont(),f=Qu(o,u),c=i.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=i.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),_J(c,p,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:pt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function _J(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function yM(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:uc(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?a=o.replace("{value}",a):J(o)&&(a=o(s))}return a}function xM(t,e,r){var n=$e();return za(n,n,r.rotation),Vu(n,n,r.position),Ri([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function AU(t,e,r,n,i,a){var o=p0.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),xJ(e,n,i,a,{position:xM(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DU(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function kU(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function EU(t,e,r){return bt(t,{fromStat:{sers:V(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function OU(t,e,r){return[Ae(rt(e[0],e[1]),t-r/2),rt(t+r/2,Ae(e[0],e[1]))]}var _M=k(()=>{P();Te();wn();vn();bn();Pn();h0();Ot();Bi();Se()});function RU(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}function LU(t){return t.dim==="x"?0:1}var bJ,SJ,NU,PU=k(()=>{q();CU();_M();rd();Se();bJ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=RU(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=MU(a),d=SJ[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=td(l.getRect(),i);AU(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=td(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=xM(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=RU(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=rt(l[1],c[f]),c[f]=Ae(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e}(TU);SJ={line:function(t,e,r,n){var i=DU([e,n[0]],[e,n[1]],LU(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=EU(t,i,a),s=n[1]-n[0],l=OU(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:kU([u,n[0]],[f-u,s],LU(t))}}};NU=bJ});var wJ,zU,FU=k(()=>{q();wr();Fe();wJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:"dashed"},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.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:H.color.accent40,throttle:40}},e}(ke),zU=wJ});function R0(t,e,r){if(!xe.node){var n=e.getZr();go(n).records||(go(n).records={}),CJ(n,e);var i=go(n).records[t]||(go(n).records[t]={});i.handler=r}}function CJ(t,e){if(go(t).initialized)return;go(t).initialized=!0,r("click",ve(bM,"click")),r("mousemove",ve(bM,"mousemove")),r("mousewheel",ve(bM,"mousewheel")),r("globalout",AJ);function r(n,i){t.on(n,function(a){var o=DJ(e);TJ(go(t).records,function(s){s&&i(s,a,o.dispatchAction)}),MJ(o.pendings,e)})}}function MJ(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function AJ(t,e,r){t.handler("leave",null,r)}function bM(t,e,r,n){e.handler(t,r,n)}function DJ(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function md(t,e){if(!xe.node){var r=e.getZr(),n=(go(r).records||{})[t];n&&(go(r).records[t]=null)}}var go,TJ,SM=k(()=>{P();Ht();re();go=ne(),TJ=T});var kJ,BU,UU=k(()=>{q();SM();mn();kJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";R0("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){md("axisPointer",n)},e.prototype.dispose=function(r,n){md("axisPointer",n)},e.type="axisPointer",e}(Je),BU=kJ});function gd(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Qn(a,t);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(V(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var wM=k(()=>{P();re()});function TM(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||$(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L0(i)&&(i=gd({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=L0(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||L0(i),p={},h={},d={list:[],map:{}},v={showPointer:ve(OJ,h),showTooltip:ve(IJ,d)};T(s.coordSysMap,function(g,y){var x=l||g.containPoint(i);T(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,w=PJ(u,_);if(!c&&x&&(!u||w)){var M=w&&w.value;M==null&&!l&&(M=S.pointToData(i)),M!=null&&HU(_,M,v,!1,p)}})});var m={};return T(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&T(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var w=S.value;x.mapper&&(w=g.axis.scale.parse(x.mapper(w,YU(_),YU(g)))),m[g.key]=w}})}),T(m,function(g,y){HU(f[y],g,v,!0,p)}),RJ(h,f,p),LJ(d,i,t,o),NJ(f,o,r),p}}function HU(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=EJ(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&G(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function EJ(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(Xt(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,i=c,a.length=0),T(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function OJ(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function IJ(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=bc(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function RJ(t,e,r){var n=r.axesInfo=[];T(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function LJ(t,e,r,n){if(L0(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function NJ(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=GU(n)[i]||{},o=GU(n)[i]={};T(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&T(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(a,function(f,c){!o[c]&&l.push(u(f))}),T(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function PJ(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function YU(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function L0(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}var GU,WU=k(()=>{re();sd();wM();P();Se();GU=ne()});function gu(t){_0.registerAxisPointerClass("CartesianAxisPointer",NU),t.registerComponentModel(zU),t.registerComponentView(BU),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!U(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=kV(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},TM)}var N0=k(()=>{lC();PU();FU();UU();P();sd();WU()});function CM(t){lt(b0),lt(gu)}var XU=k(()=>{cC();N0();Vi()});function ZU(t){var e=t.get("coordinateSystem");return ue(FJ,e)>=0}function xi(t){return t+"Axis"}function qU(t,e){var r=K(),n=[],i=K();t.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(p,h){var d=r.get(p);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,p){(r.get(c)||r.set(c,[]))[p]=!0})}return n}function P0(t){var e=t.ecModel,r={infoList:[],infoMap:K()};return t.eachTargetAxis(function(n,i){var a=e.getComponent(xi(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}function KU(t){var e=zJ(Jg(t));return e.axisProxyMap||(e.axisProxyMap=K())}function Dc(t){if(t)return KU(t.ecModel).get(t.uid)}function jU(t,e){KU(t.ecModel).set(t.uid,e)}function z0(t,e){var r=e.getAxisModel().axis.__alignTo;return r&&t.getAxisProxy(r.dim,r.model.componentIndex)?Dc(r.model):null}var MM,zJ,FJ,yu=k(()=>{P();re();Qg();MM=["x","y","radius","angle","single"],zJ=ne(),FJ=["cartesian2d","polar","singleAxis"]});function $U(t){var e={};return T(["start","end","startValue","endValue","throttle"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var AM,VJ,ys,F0=k(()=>{q();P();wr();yu();re();AM=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),VJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,i){var a=$U(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},e.prototype.mergeOption=function(r){var n=$U(r);de(this.option,r,!0),de(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=K(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return T(MM,function(i){var a=this.getReferringComponents(xi(i),hO);if(a.specified){n=!0;var o=new AM;T(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var p=new AM;if(p.add(c.componentIndex),r.set(f,p),a=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",xt).models[0];h&&T(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",xt).models[0]&&p.add(d.componentIndex)})}}}a&&T(MM,function(u){if(a){var f=i.findComponents({mainType:xi(u),filter:function(p){return p.get("type",!0)==="category"}});if(f[0]){var c=new AM;c.add(f[0].componentIndex),r.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(xi(n),i))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){T(i.indexList,function(o){r.call(n,a,o)})})},e.prototype.getAxisProxy=function(r,n){return Dc(this.getAxisModel(r,n))},e.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(xi(r),n)},e.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;T(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value}else return this.getAxisProxy(r,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return Dc(r);for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},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}(ke);ys=VJ});var BJ,JU,QU=k(()=>{q();F0();BJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(ys),JU=BJ});var UJ,kc,V0=k(()=>{q();mn();UJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},e.type="dataZoom",e}(Je),kc=UJ});var GJ,e5,t5=k(()=>{q();V0();GJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(kc),e5=GJ});var HJ,r5,n5=k(()=>{P();Se();Tc();yu();re();Bt();pc();HJ=function(){function t(e,r,n,i){this._dimName=e,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getWindow=function(){return te(this._window)},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(ZU(r)){var n=xi(this._dimName),i=r.getReferringComponents(n,xt).models[0];i&&this._axisIndex===i.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return te(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._extent,n=this.getAxisModel().axis,i=n.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];T(["start","end"],function(x,_){var b=e[x],S=e[x+"Value"];o[_]==="percent"?(b==null&&(b=s[_]),S=Be(b,s,r),c[_]=!0):(f=!0,S==null?S=r[_]:(S=i.parse(S),i.sanitize&&(S=i.sanitize(S,r))),b=Be(S,r,s)),u[_]=S==null||isNaN(S)?r[_]:S,l[_]=b==null||isNaN(b)?s[_]:b}),Mt(u),Mt(l);var p=this._minMaxSpan;f?h(u,l,r,s,!1):h(l,u,s,r,!0);function h(x,_,b,S,w){var M=w?"Span":"ValueSpan";Vn(0,x,b,"all",p["min"+M],p["max"+M]);for(var C=0;C<2;C++)_[C]=Be(x[C],b,S,!0),w&&(_[C]=_[C],c[C]=!0);uf(_)}var d=st(i)||Sa(i),v=n.getExtent(),m=tt(v[1]-v[0]),g=d?0:nf(u,m,.5);T([[0,ra],[1,nn]],function(x){var _=x[0],b=x[1];!c[_]||!isFinite(g)||(u[_]=De(u[_],g),u[_]=rt(r[1],Ae(r[0],u[_])),l[_]===s[_]&&(u[_]=r[_],d&&(u[_]=b(u[_]))))}),uf(u);var y=[Be(u[0],r,s,!0),Be(u[1],r,s,!0)];return uf(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},t.prototype.reset=function(e,r){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Hy(n,N2);var i=n.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;r&&(a=oe({start:r[0],end:r[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&i.setZoomMM(0,l[0]),s[1]!==100&&i.setZoomMM(1,l[1])}},t.prototype.filterData=function(e,r){if(!this.hostedBy(e))return;var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;T(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var c=u.getStore(),p=V(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,v,m,g=0;g<f.length;g++){var y=c.get(p[g],h),x=!isNaN(y),_=y<o[0],b=y>o[1];if(x&&!_&&!b)return!0;x&&(m=!0),_&&(d=!0),b&&(v=!0)}return m&&d&&v})}else T(f,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});T(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._extent;T(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Be(n[0]+o,n,[0,100],!0):a!=null&&(o=Be(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t}(),r5=HJ});var YJ,i5,a5=k(()=>{P();yu();n5();YJ={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(xi(o),s);i(o,s,l,a)})})}var r=[];e(function(i,a,o,s){if(!Dc(o)){var l=new r5(i,a,s,t);r.push(l),jU(o,l)}});var n=K();return T(r,function(i){T(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){var n=[];r.eachTargetAxis(function(i,a){var o=r.getAxisProxy(i,a),s=z0(r,o);s?n.push([o,s]):o.reset(r,null)}),T(n,function(i){i[0].reset(r,i[1].getWindow().percentInverted)}),r.eachTargetAxis(function(i,a){r.getAxisProxy(i,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getWindow(),a=i.percent,o=i.value;r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},i5=YJ});function DM(t){t.registerAction("dataZoom",function(e,r){var n=qU(r,e);T(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var o5=k(()=>{yu();P()});function xu(t){WJ(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,i5),DM(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}var WJ,B0=k(()=>{a5();o5();re();WJ=ff()});function s5(t){t.registerComponentModel(JU),t.registerComponentView(e5),xu(t)}var l5=k(()=>{QU();t5();B0()});function Ec(t,e){u5[t]=e}function U0(t){return u5[t]}var Hr,u5,yo=k(()=>{Hr=function(){function t(){}return t}(),u5={}});var ZJ,f5,c5=k(()=>{q();yo();wr();Fe();P();ZJ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){var a=i.getTheme().get("toolbox"),o=a?a.feature:null;o&&(this._themeFeatureOption=G({},o),a.feature={}),t.prototype.init.call(this,r,n,i),o&&(a.feature=o)},e.prototype.optionUpdated=function(){T(this.option.feature,function(r,n){var i=this._themeFeatureOption,a=U0(n);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(this.ecModel)),i&&i[n]&&(de(r,i[n]),i[n]=null),de(r,a.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:H.size.m,itemSize:15,itemGap:H.size.s,showTitle:!0,iconStyle:{borderColor:H.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:H.color.accent70}},tooltip:{show:!1,position:"bottom"}},e}(ke),f5=ZJ});function G0(t,e){var r=li(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new be({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var kM=k(()=>{vn();Te()});function jJ(t){return t.indexOf("my")===0}function p5(t){return t instanceof Hr}var KJ,h5,d5=k(()=>{q();wn();Te();or();hn();jf();kM();mn();yo();si();Sl();Ot();dr();Fe();P();KJ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},f=this._features||(this._features=K()),c=[];T(u,function(y,x){c.push(x)}),new zi(this._featureNames||[],c).add(p).update(p).remove(ve(p,null)).execute(),this._featureNames=Ce(c,function(y){return f.hasKey(y)});function p(y,x){var _=y!=null&&x==null,b=y!=null&&x!=null,S=y==null,w=_||b?c[y]:c[x],M=u[w],C=_||b?new Ge(M,r,n):null,A=C&&C.get("show"),E;if(_){if(!A)return;if(jJ(w))E={onclick:C.option.onclick,featureName:w};else{var O=U0(w);if(!O)return;E=new O}f.set(w,E)}else E=f.get(w);if(S||!A){p5(E)&&E.dispose&&E.dispose(n,i),f.removeKey(w);return}a&&a.newTitle!=null&&a.featureName===w&&(M.title=a.newTitle),_&&(E.uid=ya("toolbox-feature")),E.model=C,E.ecModel=n,E.api=i,h(C,E,w),C.setIconStatus=function(D,L){var I=this.option,R=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[D]=L,R[D]&&(L==="emphasis"?ni:ii)(R[D])},p5(E)&&E.render&&E.render(C,n,i,a)}function h(y,x,_){var b=y.getModel("iconStyle"),S=y.getModel(["emphasis","iconStyle"]),w=x instanceof Hr&&x.getIcons?x.getIcons():y.get("icon"),M=y.get("title")||{},C,A;W(w)?(C={},C[_]=w):C=w,W(M)?(A={},A[_]=M):A=M;var E=y.iconPaths={};T(C,function(O,D){var L=$a(O,{},{x:-s/2,y:-s/2,width:s,height:s});L.setStyle(b.getItemStyle());var I=L.ensureState("emphasis");I.style=S.getItemStyle();var R=new Ie({style:{text:A[D],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:Df({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});L.setTextContent(R),$o({el:L,componentModel:r,itemName:D,formatterParamsExtra:{title:A[D]}}),L.__title=A[D],L.on("mouseover",function(){var F=S.getItemStyle(),z=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:S.get("textFill")||F.fill||F.stroke||H.color.neutral99,backgroundColor:S.get("textBackgroundColor")}),L.setTextConfig({position:S.get("textPosition")||z}),R.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",D])!=="emphasis"&&i.leaveEmphasis(this),R.hide()}),(y.get(["iconStatus",D])==="emphasis"?ni:ii)(L),o.add(L),L.on("click",$(x.onclick,x,n,i,D)),E[D]=L})}var d=ui(r,i).refContainer,v=r.getBoxLayoutParams(),m=r.get("padding"),g=tr(v,d,m);Ni(r.get("orient"),o,r.get("itemGap"),g.width,g.height),Tg(o,v,d,m),o.add(G0(o.getBoundingRect(),r)),l||o.eachChild(function(y){var x=y.__title,_=y.ensureState("emphasis"),b=_.textConfig||(_.textConfig={}),S=y.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!J(w)&&x){var M=w.style||(w.style={}),C=Qu(x,Ie.makeFont(M)),A=y.x+o.x,E=y.y+o.y+s,O=!1;E+C.height>i.getHeight()&&(b.position="top",O=!0);var D=O?-5-C.height:s+10;A+C.width/2>i.getWidth()?(b.position=["100%",D],M.align="right"):A-C.width/2<0&&(b.position=[0,D],M.align="left")}})},e.prototype.updateView=function(r,n,i,a){T(this._features,function(o){o&&o instanceof Hr&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.dispose=function(r,n){T(this._features,function(i){i&&i instanceof Hr&&i.dispose&&i.dispose(r,n)})},e.type="toolbox",e}(Je);h5=KJ});var $J,v5,m5=k(()=>{q();Ht();yo();Fe();$J=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||H.color.neutral00,connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=xe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var p=l.split(","),h=p[0].indexOf("base64")>-1,d=o?decodeURIComponent(p[1]):p[1];h&&(d=window.atob(d));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),_.focus(),b.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var S=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',M=window.open();M.document.write(w),M.document.title=a}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:H.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Hr),v5=$J});var g5,JJ,QJ,y5,x5,_5=k(()=>{q();tu();P();yo();re();g5="__ec_magicType_stack__",JJ=[["line","bar"],["stack"]],QJ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return T(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(y5[i]){var s={series:[]},l=function(c){var p=c.subType,h=c.id,d=y5[i](p,h,c,a);d&&(oe(d,c.option),s.series.push(d));var v=c.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=v.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=c.getReferringComponents(y,xt).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=i==="bar"}}};T(JJ,function(c){ue(c,i)>=0&&T(c,function(p){a.setIconStatus(p,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=de({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Hr),y5={line:function(t,e,r,n){if(t==="bar")return de({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return de({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var i=r.get("stack")===g5;if(t==="line"||t==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),de({id:e,stack:i?"":g5},n.get(["option","stack"])||{},!0)}};Cr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});x5=QJ});function eQ(t){var e={},r=[],n=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=dF(o);e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function tQ(t){var e=[];return T(t,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(V(r.series,function(h){return h.name})),l=[i.model.getCategories()];T(r.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(v){return v}))});for(var u=[s.join(Oc)],f=0;f<l[0].length;f++){for(var c=[],p=0;p<l.length;p++)c.push(l[p][f]);u.push(c.join(Oc))}e.push(u.join(`
|
|
16
|
+
`))}),e.join(`
|
|
17
|
+
|
|
18
|
+
`+Y0+`
|
|
19
|
+
|
|
20
|
+
`)}function rQ(t){return V(t,function(e){var r=e.getRawData(),n=[e.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Oc:"")+i.join(Oc))}),n.join(`
|
|
21
|
+
`)}).join(`
|
|
22
|
+
|
|
23
|
+
`+Y0+`
|
|
24
|
+
|
|
25
|
+
`)}function nQ(t){var e=eQ(t);return{value:Ce([tQ(e.seriesGroupByCategoryAxis),rQ(e.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
|
26
|
+
|
|
27
|
+
`+Y0+`
|
|
28
|
+
|
|
29
|
+
`),meta:e.meta}}function H0(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iQ(t){var e=t.slice(0,t.indexOf(`
|
|
30
|
+
`));if(e.indexOf(Oc)>=0)return!0}function aQ(t){for(var e=t.split(/\n+/g),r=H0(e.shift()).split(EM),n=[],i=V(r,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=H0(e[a]).split(EM);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function oQ(t){for(var e=t.split(/\n+/g),r=H0(e.shift()),n=[],i=0;i<e.length;i++){var a=H0(e[i]);if(a){var o=a.split(EM),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function sQ(t,e){var r=t.split(new RegExp(`
|
|
31
|
+
*`+Y0+`
|
|
32
|
+
*`,"g")),n={series:[]};return T(r,function(i,a){if(iQ(i)){var o=aQ(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=oQ(i);n.series.push(o)}}),n}function uQ(t,e){return V(t,function(r,n){var i=e&&e[n];if(j(i)&&!U(i)){var a=j(r)&&!U(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=oe(r,i),o&&delete r.name,r}else return r})}var Y0,Oc,EM,lQ,b5,S5=k(()=>{q();tu();P();yo();Ki();Fe();rd();Y0=new Array(60).join("-"),Oc=" ";EM=new RegExp("["+Oc+"]+","g");lQ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||H.color.neutral00;var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=a.get("optionToContent"),p=a.get("contentToOption"),h=nQ(r);if(J(c)){var d=c(n.getOption());W(d)?u.innerHTML=d:Ia(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var v=f.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),f.value=h.value,u.appendChild(f)}var m=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var b=this;function S(){i.removeChild(o),b._dom=null}pp(x,"click",S),pp(_,"click",function(){if(p==null&&c!=null||p!=null&&c==null){S();return}var w;try{J(p)?w=p(u,n.getOption()):w=sQ(f.value,m)}catch(M){throw S(),new Error("Data view format error "+M)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),S()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=y,!a.get("readOnly")&&g.appendChild(_),g.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.dispose=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},e.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:H.color.background,textColor:H.color.primary,textareaColor:H.color.background,textareaBorderColor:H.color.border,buttonColor:H.color.accent50,buttonTextColor:H.color.neutral00};return n},e}(Hr);Cr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var r=[];T(t.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)r.push(G({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:uQ(n.data,a)})}}),e.mergeOption(oe({series:r},t.newOption))});b5=lQ});function C5(t,e){var r=OM(t);w5(e,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(e)}function M5(t){var e=OM(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return w5(r,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function A5(t){T5(t).snapshots=null}function D5(t){return OM(t).length}function OM(t){var e=T5(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var w5,T5,IM=k(()=>{P();re();w5=T,T5=ne()});var fQ,E5,O5=k(()=>{q();tu();IM();yo();fQ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){A5(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Hr);Cr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});E5=fQ});function LM(t){return t[0]>t[1]&&t.reverse(),t}function I5(t,e){return na(t,e,{includeMainTypes:cQ})}function N5(t,e,r,n){var i=r.getAxis(["x","y"][t]),a=LM(V([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}function z5(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function dQ(t,e){var r=F5(t),n=F5(e),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function F5(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var cQ,pQ,hQ,R5,L5,RM,P5,NM,V5=k(()=>{P();FB();re();wC();Ct();cQ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pQ=function(){function t(e,r,n){var i=this;this._targetInfoList=[];var a=I5(r,e);T(hQ,function(o,s){(!n||!n.include||ue(n.include,s)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=RM[n.brushType](0,a,i);n.__rangeOffset={offset:P5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){T(e,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&T(a.coordSyses,function(o){var s=RM[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){T(e,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=RM[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?P5[n.brushType](a.values,o.offset,dQ(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,r){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:NB(i),isTargetByCursor:zB(i,e,n.coordSysModel),getLinearBrushOtherExtent:PB(i)}})},t.prototype.controlSeries=function(e,r,n){var i=this.findTargetInfo(e,n);return i===!0||i&&ue(i.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,i=I5(r,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<R5.length;l++)if(R5[l](i,o))return o}return!0},t}();hQ={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,a=K(),o={},s={};!r&&!n&&!i||(T(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(c,p){(ue(r,c.getAxis("x").model)>=0||ue(n,c.getAxis("y").model)>=0)&&f.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:L5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){T(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:L5.geo})})}},R5=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],L5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys.view,e=SC(null,t);return Tv(e,e,QV(null,t)),e}},RM={lineX:ve(N5,0),lineY:ve(N5,1),rect:function(t,e,r,n){var i=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),a=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[LM([i[0],a[0]]),LM([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var i=[Zt(),Zt()],a=V(r,function(o){var s=t?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};P5={lineX:ve(z5,0),lineY:ve(z5,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return V(t,function(n,i){return[n[0]-r[0]*e[i][0],n[1]-r[1]*e[i][1]]})}};NM=pQ});function zM(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function xQ(t,e){t.setIconStatus("back",D5(e)>1?"emphasis":"normal")}function _Q(t,e,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new NM(zM(t),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}var PM,vQ,mQ,gQ,yQ,B5,U5=k(()=>{q();P();LB();V5();IM();Tc();yo();re();O1();Fe();Se();PM=T,vQ=fO("toolbox-dataZoom_"),mQ={x:"width",y:"height"},gQ=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new RB(i.getZr()),this._brushController.on("brush",$(this._onBrush,this)).mount()),_Q(r,n,this,a,i),xQ(r,n)},e.prototype.onclick=function(r,n,i){yQ[i].call(this)},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new NM(zM(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,c){if(c.type==="cartesian2d"){var p=c.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",c,p,f[0]),s("y",c,p,f[1])):s({lineX:"x",lineY:"y"}[h],c,p,f)}}),C5(a,i),this._dispatchZoomAction(i);function s(u,f,c,p){var h=f.getAxis(u),d=h.model,v=l(u,d,a),m=v.findRepresentativeAxisProxy(d).getMinMaxSpan(),g=h.scale.getExtent();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(p=Vn(0,p.slice(),g,0,m.minValueSpan,m.maxValueSpan));var y=nf(g,c[mQ[u]],.5);v&&(i[v.id]={dataZoomId:v.id,startValue:isFinite(y)?De(p[0],y):p[0],endValue:isFinite(y)?De(p[1],y):p[1]})}function l(u,f,c){var p;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(p=h)}),p}},e.prototype._dispatchZoomAction=function(r){var n=[];PM(r,function(i,a){n.push(te(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:H.color.backgroundTint}};return n},e}(Hr),yQ={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(M5(this.ecModel))}};gL("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),i=[],a=zM(n),o=na(t,a);PM(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),PM(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:vQ+u+c};p[f]=c,i.push(p)}return i});B5=gQ});function FM(t){t.registerComponentModel(f5),t.registerComponentView(h5),Ec("saveAsImage",v5),Ec("magicType",x5),Ec("dataView",b5),Ec("dataZoom",B5),Ec("restore",E5),lt(s5)}var G5=k(()=>{Vi();l5();c5();d5();yo();m5();_5();S5();O5();U5()});var bQ,H5,Y5=k(()=>{q();wr();Fe();bQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:H.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},e}(ke),H5=bQ});function W0(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function W5(t){if(xe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}function BM(t,e){if(!t)return e;e=Lf(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function Z5(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var VM,X5,UM=k(()=>{vn();Ht();VM=W5(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),X5=W5(["webkitTransition","transition","OTransition","MozTransition","msTransition"])});function TQ(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function CQ(t,e,r){if(!W(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Li(e);var a=TQ(r),o=Math.max(Math.round(i)*1.5,6),s="",l=GM+":",u;ue(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function MQ(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(xe.transformSupported?""+GM+i:",left"+i+",top"+i)),SQ+":"+a}function q5(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!xe.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=xe.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+GM+":"+o+";":[["top",0],["left",0],[VM,o]]}function AQ(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function DQ(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Bg(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(MQ(a,r,n)),o&&i.push("background-color:"+o),T(["width","color","radius"],function(d){var v="border-"+d,m=Lf(v),g=t.get(m);g!=null&&i.push(v+":"+g+(d==="color"?"":"px"))}),i.push(AQ(c)),p!=null&&i.push("padding:"+li(p).join("px ")+"px"),i.join(";")+";"}function K5(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&Pk(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var SQ,GM,wQ,kQ,j5,$5=k(()=>{P();Ki();cp();Ht();vn();UM();Yf();SQ=BM(X5,"transition"),GM=BM(VM,"transform"),wQ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xe.transform3dSupported?"will-change:transform;":"");kQ=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,xe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(W(a)?document.querySelector(a):Ia(a)?a:J(a)&&a(e.getDom()));K5(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();$r(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=Z5(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=wQ+DQ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+q5(a[0],a[1],!0)+("border-color:"+Li(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!W0(n)&&(s=CQ(n,i,a)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)Ia(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(K5(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=q5(n[0],n[1]);T(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",xe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;zk(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t}(),j5=kQ});function xs(t){return Math.max(0,t)}function J5(t){var e=xs(t.shadowBlur||0),r=xs(t.shadowOffsetX||0),n=xs(t.shadowOffsetY||0);return{left:xs(e-r),right:xs(e+r),top:xs(e-n),bottom:xs(e+n)}}function Q5(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var EQ,eG,tG=k(()=>{P();Sl();Yf();fl();EQ=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Q5(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;j(e)&&Et(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ie({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Bg(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=J5(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Q5(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=xs(a.borderWidth||0),s=J5(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();eG=EQ});function yd(t,e,r){var n=e.ecModel,i;r?(i=new Ge(r,n,n),i=new Ge(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ge&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new Ge(o,i,n)))}return i}function rG(t,e){return t.dispatchAction||$(e.dispatchAction,e)}function RQ(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function LQ(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function NQ(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function nG(t){return t==="center"||t==="middle"}function PQ(t,e,r){var n=Fp(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ia(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ge(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var OQ,IQ,iG,aG=k(()=>{q();P();Ht();$5();tG();vn();Se();Te();wM();dr();hn();SM();Pn();_M();re();mn();Rf();Qt();UM();Lg();Yf();qg();is();OQ=new be({shape:{x:-1,y:-1,width:2,height:2}}),IQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(xe.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=mO(i.get("renderMode"));this._tooltipContent=a==="richText"?new eG(n):new j5(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(xe.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?ns(this,"_updatePosition",50,"fixRate"):Xl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");R0("itemTooltip",this._api,$(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||xe.node||!i.getDom())){var o=rG(a,i);this._ticket="";var s=a.dataByCoordSys,l=PQ(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=OQ;f.x=a.x,f.y=a.y,f.update(),ge(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=gd(a,n),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(rG(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=yd([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ge(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ao(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ge(f).dataIndex!=null?l=f:ge(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=$(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=yd([n.tooltipOption],a),l=this._renderMode,u=[],f=xa("section",{blocks:[],noHeader:!0}),c=[],p=new Ug;T(r,function(y){T(y.dataByAxis,function(x){var _=i.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value,S=_.axis,w=S.scale.parse(b);if(!(!_||b==null)){var M=yM(b,S,i,x.seriesDataIndices,x.valueLabelOpt),C=xa("section",{header:M,noHeader:!Yt(M),sortBlocks:!0,blocks:[]});f.blocks.push(C),T(x.seriesDataIndices,function(A){var E=i.getSeriesByIndex(A.seriesIndex),O=A.dataIndexInside,D=E.getDataParams(O);if(!(D.dataIndex<0)){D.axisDim=x.axisDim,D.axisIndex=x.axisIndex,D.axisType=x.axisType,D.axisId=x.axisId,D.axisValue=uc(_.axis,{value:w}),D.axisValueLabel=M,D.marker=p.makeTooltipMarker("item",Li(D.color),l);var L=H1(E.formatTooltip(O,!0,null)),I=L.frag;if(I){var R=yd([E],a).get("valueFormatter");C.blocks.push(R?G({valueFormatter:R},I):I)}L.text&&c.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),v=j1(f,p,l,d,i.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
|
|
33
|
+
|
|
34
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ge(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,d=r.positionDefault,v=yd([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Ug;g.marker=y.makeTooltipMarker("item",Li(g.color),h);var x=H1(u.formatTooltip(f,!1,c)),_=v.get("order"),b=v.get("valueFormatter"),S=x.frag,w=S?j1(b?G({valueFormatter:b},S):S,y,h,_,a.get("useUTC"),v.get("textStyle")):x.text,M="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,w,g,M,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ge(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=te(l),l.content=Pt(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,d=yd(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Ug;this._showOrMove(d,function(){var y=te(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(W(p)){var m=r.ecModel.get("useUTC"),g=U(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Qa(g.axisValue,h,m)),h=Nf(h,i,!0)}else if(J(p)){var x=$(function(_,b){_===this._ticket&&(c.setContent(b,f,r,v,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=p(i,a,x)}else h=p;c.setContent(h,f,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||U(n))return{color:a||o};if(!U(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),J(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(n))i=ze(n[0],u),a=ze(n[1],f);else if(j(n)){var v=n;v.width=c[0],v.height=c[1];var m=tr(v,{width:u,height:f});i=m.x,a=m.y,p=null,h=null}else if(W(n)&&l){var g=NQ(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=RQ(i,a,o,u,f,p?null:20,h?null:20);i=g[0],a=g[1]}if(p&&(i-=nG(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=nG(h)?c[1]/2:h==="bottom"?c[1]:0),W0(r)){var g=LQ(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&T(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&T(v,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),a&&T(p.seriesDataIndices,function(g){var y=g.seriesIndex,x=n[y],_=a[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){xe.node||!n.getDom()||(Xl(this,"_updatePosition"),this._tooltipContent.dispose(),md("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(Je);iG=IQ});function HM(t){lt(gu),t.registerComponentModel(H5),t.registerComponentView(iG),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qe)}var oG=k(()=>{N0();Vi();Y5();aG();P()});function lG(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function YM(t,e,r){var n={};return sG(e,function(a){var o=n[a]=i();sG(t[a],function(s,l){if(rr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new rr(u),l==="opacity"&&(u=te(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new rr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function uG(t,e,r){var n;T(r,function(i){e.hasOwnProperty(i)&&lG(e[i])&&(n=!0)}),n&&T(r,function(i){e.hasOwnProperty(i)&&lG(e[i])?t[i]=te(e[i]):delete t[i]})}function fG(t,e,r,n){var i={};return T(t,function(a){var o=rr.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return Zg(s,c,b)}function f(b,S){UN(s,c,b,S)}for(var c,p=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=n!=null?p.get(l,c):c,v=r(d),m=e[v],g=i[v],y=0,x=g.length;y<x;y++){var _=g[y];m[_]&&m[_].applyVisual(d,u,f)}}}}}var sG,WM=k(()=>{P();Sc();Zl();sG=T});function XM(t){t.registerComponentModel(zQ),t.registerComponentView(FQ)}var zQ,FQ,pG=k(()=>{q();P();Te();Qt();Ot();dr();wr();mn();vn();Fe();zQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:H.size.m,backgroundColor:H.color.transparent,borderColor:H.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:H.color.primary},subtextStyle:{fontSize:12,color:H.color.quaternary}},e}(ke),FQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ie({style:pt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=r.get("subtext"),h=new Ie({style:pt(s,{text:p,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!v&&!m,d&&f.on("click",function(){T1(d,"_"+r.get("target"))}),v&&h.on("click",function(){T1(v,"_"+r.get("subtarget"))}),ge(f).eventData=ge(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=ui(r,i),_=tr(y,x.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var S=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var M=new be({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(M)}},e.type="title",e}(Je)});function _u(t,e){if(!t)return!1;for(var r=U(t)?t:[t],n=0;n<r.length;n++)if(r[n]&&r[n][e])return!0;return!1}var X0=k(()=>{P()});function Z0(t){zp(t,"label",["show"])}var q0,hG,Ar,_s=k(()=>{q();P();Ht();Lg();wr();re();Yf();q0=ne(),hG=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(xe.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},e.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=q0(s)[o];if(!l||!l.data){q0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&Z0(l),T(l.data,function(f){f instanceof Array?(Z0(f[0]),Z0(f[1])):Z0(f)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),q0(s)[o]=u},this)},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return xa("section",{header:this.name,blocks:[xa("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,n){var i=mh.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(r,n){return q0(r)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(ke);kt(hG,mh.prototype);Ar=hG});var VQ,dG,vG=k(()=>{q();_s();VQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Ar),dG=VQ});function ZM(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function BQ(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function K0(t,e,r,n,i,a,o){var s=[],l=Nn(e,i),u=l?e.getCalculationInfo("stackResultDimension"):i,f=xd(e,u,t),c=e.hostModel,p=c.indicesOfNearest(r,u,f)[0];s[a]=e.get(n,p),s[o]=e.get(u,p);var h=e.get(i,p),d=Rr(e.get(i,p));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}function bs(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;if(!BQ(e)&&!U(e.coord)&&U(i)){var a=qM(e,r,n,t);if(e=te(e),e.type&&j0[e.type]&&a.baseAxis&&a.valueAxis){var o=ue(i,a.baseAxis.dim),s=ue(i,a.valueAxis.dim),l=j0[e.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!U(i)){e.coord=[];var u=t.getBaseAxis();if(u&&e.type&&j0[e.type]){var f=n.getOtherAxis(u);f&&(e.value=xd(r,r.mapDimension(f.dim),e.type))}}else for(var c=e.coord,p=0;p<2;p++)j0[c[p]]&&(c[p]=xd(r,r.mapDimension(i[p]),c[p]));return e}}function qM(t,e,r,n){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=r.getAxis(UQ(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function UQ(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Ss(t,e){return t&&t.containData&&e.coord&&!ZM(e)?t.containData(e.coord):!0}function mG(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!ZM(e)&&!ZM(r)?t.containZone(e.coord,r.coord):!0}function $0(t,e){return t?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return pi(o,e[a])}:function(r,n,i,a){return pi(r.value,e[a])}}function xd(t,e,r){if(r==="average"){var n=0,i=0;return t.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var j0,J0=k(()=>{Se();lo();P();Yl();j0={min:ve(K0,"min"),max:ve(K0,"max"),average:ve(K0,"average"),median:ve(K0,"median")}});function HQ(t,e,r){t.eachSeries(function(n){var i=Ar.getMarkerModelFromSeries(n,r),a=e.get(n.id);if(i&&a&&a.group){var o=ga(i),s=o.z,l=o.zlevel;sh(a.group,s,l)}})}var jM,GQ,Ic,Q0=k(()=>{q();mn();P();_s();re();or();Te();jM=ne(),GQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){jM(s).keep=!1}),n.eachSeries(function(s){var l=Ar.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!jM(s).keep&&a.group.remove(s.group)}),HQ(n,o,this.type)},e.prototype.markKeep=function(r){jM(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var i=this;T(r,function(a){var o=Ar.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?Em(l):jp(l))})}})},e.type="marker",e}(Je);Ic=GQ});function gG(t,e,r){var n=e.coordinateSystem,i=r.getWidth(),a=r.getHeight(),o=n&&n.getArea&&n.getArea();t.each(function(s){var l=t.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:i,c=u?o?o.height:0:a,p=u&&o?o.x:0,h=u&&o?o.y:0,d,v=ze(l.get("x"),f)+p,m=ze(l.get("y"),c)+h;if(!isNaN(v)&&!isNaN(m))d=[v,m];else if(e.getMarkerPosition)d=e.getMarkerPosition(t.getValues(t.dimensions,s));else if(n){var g=t.get(n.dimensions[0],s),y=t.get(n.dimensions[1],s);d=n.dataToPoint([g,y])}isNaN(v)||(d[0]=v),isNaN(m)||(d[1]=m),t.setItemLayout(s,d)})}function WQ(t,e,r){var n;t?n=V(t&&t.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return G(G({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Ln(n,r),a=V(r.get("data"),ve(bs,e));t&&(a=Ce(a,ve(Ss,t)));var o=$0(!!t,n);return i.initData(a,null,o),i}var YQ,yG,xG=k(()=>{q();r0();Se();Jf();J0();Q0();_s();P();Qt();Zl();YQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ar.getMarkerModelFromSeries(a,"markPoint");o&&(gG(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new mc),c=WQ(o,r,n);n.setData(c),gG(n.getData(),r,a),c.each(function(p){var h=c.getItemModel(p),d=h.getShallow("symbol"),v=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(J(d)||J(v)||J(m)||J(g)){var x=n.getRawValue(p),_=n.getDataParams(p);J(d)&&(d=d(x,_)),J(v)&&(v=v(x,_)),J(m)&&(m=m(x,_)),J(g)&&(g=g(x,_))}var b=h.getModel("itemStyle").getItemStyle(),S=h.get("z2"),w=ba(l,"color");b.fill||(b.fill=w),c.setItemVisual(p,{z2:Z(S,0),symbol:d,symbolSize:v,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(p){p.traverse(function(h){ge(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(Ic);yG=YQ});function $M(t){t.registerComponentModel(dG),t.registerComponentView(yG),t.registerPreprocessor(function(e){_u(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var _G=k(()=>{X0();vG();xG()});var XQ,bG,SG=k(()=>{q();_s();XQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,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}(Ar),bG=XQ});function tx(t){return!isNaN(t)&&!isFinite(t)}function wG(t,e,r,n){var i=1-t,a=n.dimensions[t];return tx(e[i])&&tx(r[i])&&e[t]===r[t]&&n.getAxis(a).containData(e[t])}function qQ(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(wG(1,r,n,t)||wG(0,r,n,t)))return!0}return Ss(t,e[0])&&Ss(t,e[1])}function JM(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=ze(o.get("x"),i.getWidth()),u=ze(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var f=a.dimensions,c=t.get(f[0],e),p=t.get(f[1],e);s=a.dataToPoint([c,p])}if(gi(a,"cartesian2d")){var h=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;tx(t.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):tx(t.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}function jQ(t,e,r){var n;t?n=V(t&&t.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Ln(n,r),a=new Ln(n,r),o=new Ln([],r),s=V(r.get("data"),ve(ZQ,e,t,r));t&&(s=Ce(s,ve(qQ,t)));var l=$0(!!t,n);return i.initData(V(s,function(u){return u[0]}),null,l),a.initData(V(s,function(u){return u[1]}),null,l),o.initData(V(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}var ex,ZQ,KQ,TG,CG=k(()=>{q();Jf();Se();J0();vB();Q0();lo();yc();Qt();_s();P();re();Zl();ex=ne(),ZQ=function(t,e,r,n){var i=t.getData(),a;if(U(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=yr(n.yAxis,n.xAxis);else{var u=qM(n,i,e,t);s=u.valueAxis;var f=ec(i,u.valueDataDim);l=xd(i,f,o)}var c=s.dim==="x"?0:1,p=1-c,h=te(n),d={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,d.coord[p]=1/0;var v=r.get("precision");v>=0&&Me(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[c]=d.coord[c]=l,a=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[bs(t,a[0]),bs(t,a[1]),G({},a[2])];return m[2].type=m[2].type||null,de(m[2],m[0]),de(m[2],m[1]),m};KQ=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ar.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=ex(o).from,u=ex(o).to;l.each(function(f){JM(l,f,!0,a,i),JM(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new dB);this.group.add(f.group);var c=jQ(o,r,n),p=c.from,h=c.to,d=c.line;ex(n).from=p,ex(n).to=h,n.setData(d);var v=n.get("symbol"),m=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");U(v)||(v=[v,v]),U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),c.from.each(function(_){x(p,_,!0),x(h,_,!1)}),d.each(function(_){var b=d.getItemModel(_),S=b.getModel("lineStyle").getLineStyle();d.setItemLayout(_,[p.getItemLayout(_),h.getItemLayout(_)]);var w=b.get("z2");S.stroke==null&&(S.stroke=p.getItemVisual(_,"style").fill),d.setItemVisual(_,{z2:Z(w,0),fromSymbolKeepAspect:p.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(_,"symbolOffset"),fromSymbolRotate:p.getItemVisual(_,"symbolRotate"),fromSymbolSize:p.getItemVisual(_,"symbolSize"),fromSymbol:p.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:S})}),f.updateData(d),c.line.eachItemGraphicEl(function(_){ge(_).dataModel=n,_.traverse(function(b){ge(b).dataModel=n})});function x(_,b,S){var w=_.getItemModel(b);JM(_,b,S,r,a);var M=w.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=ba(l,"color")),_.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Z(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:Z(w.get("symbolRotate",!0),g[S?0:1]),symbolSize:Z(w.get("symbolSize"),m[S?0:1]),symbol:Z(w.get("symbol",!0),v[S?0:1]),style:M})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(Ic);TG=KQ});function QM(t){t.registerComponentModel(bG),t.registerComponentView(TG),t.registerPreprocessor(function(e){_u(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var MG=k(()=>{X0();SG();CG()});var $Q,AG,DG=k(()=>{q();_s();$Q=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ar),AG=$Q});function nx(t){return!isNaN(t)&&!isFinite(t)}function kG(t,e,r,n){var i=1-t;return nx(e[i])&&nx(r[i])}function QQ(t,e){var r=e.coord[0],n=e.coord[1],i={coord:r,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return gi(t,"cartesian2d")?r&&n&&(kG(1,r,n,t)||kG(0,r,n,t))?!0:mG(t,i,a):Ss(t,i)||Ss(t,a)}function EG(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=ze(o.get(r[0]),i.getWidth()),u=ze(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),p=a.clampData(f),h=a.clampData(c),d=[];r[0]==="x0"?d[0]=p[0]>h[0]?c[0]:f[0]:d[0]=p[0]>h[0]?f[0]:c[0],r[1]==="y0"?d[1]=p[1]>h[1]?c[1]:f[1]:d[1]=p[1]>h[1]?f[1]:c[1],s=n.getMarkerPosition(d,r,!0)}else{var v=t.get(r[0],e),m=t.get(r[1],e),g=[v,m];a.clampData&&a.clampData(g,g),s=a.dataToPoint(g,!0)}if(gi(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=t.get(r[0],e),m=t.get(r[1],e);nx(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):nx(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}function tee(t,e,r){var n,i,a=["x0","y0","x1","y1"];if(t){var o=V(t&&t.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})});i=V(a,function(u,f){return{name:u,type:o[f%2].type}}),n=new Ln(i,r)}else i=[{name:"value",type:"float"}],n=new Ln(i,r);var s=V(r.get("data"),ve(JQ,e,t,r));t&&(s=Ce(s,ve(QQ,t)));var l=t?function(u,f,c,p){var h=u.coord[Math.floor(p/2)][p%2];return pi(h,i[p])}:function(u,f,c,p){return pi(u.value,i[p])};return n.initData(s,null,l),n.hasItemOption=!0,n}var rx,JQ,OG,eee,IG,RG=k(()=>{q();Ir();Jf();Se();Te();or();J0();Q0();P();yc();_s();re();Zl();Ot();Qt();Yl();Fe();rx=ne(),JQ=function(t,e,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=bs(t,i),s=bs(t,a),l=o.coord,u=s.coord;l[0]=yr(l[0],-1/0),l[1]=yr(l[1],-1/0),u[0]=yr(u[0],1/0),u[1]=yr(u[1],1/0);var f=R_([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};OG=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],eee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ar.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=V(OG,function(c){return EG(s,l,c,a,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ye});this.group.add(f.group),this.markKeep(f);var c=tee(o,r,n);n.setData(c),c.each(function(p){var h=V(OG,function(A){return EG(c,p,A,r,a)}),d=o.getAxis("x").scale,v=o.getAxis("y").scale,m=d.getExtent(),g=v.getExtent(),y=[d.parse(c.get("x0",p)),d.parse(c.get("x1",p))],x=[v.parse(c.get("y0",p)),v.parse(c.get("y1",p))];Mt(y),Mt(x);var _=!(m[0]>y[1]||m[1]<y[0]||g[0]>x[1]||g[1]<x[0]),b=!_;c.setItemLayout(p,{points:h,allClipped:b});var S=c.getItemModel(p),w=S.getModel("itemStyle").getItemStyle(),M=S.get("z2"),C=ba(l,"color");w.fill||(w.fill=C,W(w.fill)&&(w.fill=qu(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(p,"style",w),c.setItemVisual(p,"z2",Z(M,0))}),c.diff(rx(f).data).add(function(p){var h=c.getItemLayout(p),d=c.getItemVisual(p,"z2");if(!h.allClipped){var v=new sr({z2:Z(d,0),shape:{points:h.points}});c.setItemGraphicEl(p,v),f.group.add(v)}}).update(function(p,h){var d=rx(f).data.getItemGraphicEl(h),v=c.getItemLayout(p),m=c.getItemVisual(p,"z2");v.allClipped?d&&f.group.remove(d):(d?We(d,{z2:Z(m,0),shape:{points:v.points}},n,p):d=new sr({shape:{points:v.points}}),c.setItemGraphicEl(p,d),f.group.add(d))}).remove(function(p){var h=rx(f).data.getItemGraphicEl(p);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(p,h){var d=c.getItemModel(h),v=c.getItemVisual(h,"style");p.useStyle(c.getItemVisual(h,"style")),pn(p,hr(d),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:W(v.fill)?qu(v.fill,1):H.color.neutral99}),wl(p,d),zr(p,null,null,d.get(["emphasis","disabled"])),ge(p).dataModel=n}),rx(f).data=c,f.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(Ic);IG=eee});function eA(t){t.registerComponentModel(AG),t.registerComponentView(IG),t.registerPreprocessor(function(e){_u(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var LG=k(()=>{X0();DG();RG()});var ree,nee,_d,tA=k(()=>{q();P();hn();re();wr();Fe();ree=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},nee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&T(n,function(a,o){W(a)&&(a={type:a}),n[o]=de(a,ree(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(p)),p.length?n=n.concat(p):f=!0}else f=!0;f&&lf(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=K(),s=V(a,function(l){return(W(l)||Me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ge(l,this,this.ecModel))},this);this._data=Ce(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ue(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:H.size.m,align:"auto",backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.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:H.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ke),_d=nee});function aee(t,e,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),rA(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Jl(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),v=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function oee(t){var e=t.icon||"roundRect",r=mt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=H.color.neutral00,r.style.lineWidth=2),r}function NG(t,e,r,n){iA(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),nA(t,e,r,n)}function nA(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function iA(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}var Rc,rA,ix,iee,ax,aA=k(()=>{q();P();Ir();Te();or();Ot();kM();dr();mn();hi();iy();Qt();Fe();Rc=ve,rA=T,ix=ye,iee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new ix),this.group.add(this._selectorGroup=new ix),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=ui(r,i).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=tr(c,f,p),d=this.layoutInner(r,o,h,a,l,u),v=tr(oe({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=G0(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=K(),c=n.get("selectedMode"),p=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),rA(n.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
35
|
+
`)){var y=new ix;y.newline=!0,u.add(y);return}var x=i.getSeriesByName(g)[0];if(!f.get(g))if(x){var _=x.getData(),b=_.getVisual("legendLineStyle")||{},S=_.getVisual("legendIcon"),w=_.getVisual("style"),M=this._createItem(x,g,v,d,n,r,b,w,S,c,a);M.on("click",Rc(NG,g,null,a,h)).on("mouseover",Rc(nA,x.name,null,a,h)).on("mouseout",Rc(iA,x.name,null,a,h)),i.ssr&&M.eachChild(function(C){var A=ge(C);A.seriesIndex=x.seriesIndex,A.dataIndex=v,A.ssrType="legend"}),p&&M.eachChild(function(C){m.packEventData(C,n,x,v,g)}),f.set(g,!0)}else i.eachRawSeries(function(C){var A=this;if(!f.get(g)&&C.legendVisualProvider){var E=C.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),D=E.getItemVisual(O,"style"),L=E.getItemVisual(O,"legendIcon"),I=Wt(D.fill);I&&I[3]===0&&(I[3]=.2,D=G(G({},D),{fill:en(I,"rgba")}));var R=this._createItem(C,g,v,d,n,r,{},D,L,c,a);R.on("click",Rc(NG,null,g,a,h)).on("mouseover",Rc(nA,null,g,a,h)).on("mouseout",Rc(iA,null,g,a,h)),i.ssr&&R.eachChild(function(F){var z=ge(F);z.seriesIndex=C.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),p&&R.eachChild(function(F){A.packEventData(F,n,C,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ge(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();rA(r,function(u){var f=u.type,c=new Ie({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var p=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);pn(c,{normal:p,emphasis:h},{defaultText:u.title}),Zo(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,p){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");f=x||f||"roundRect";var _=aee(f,a,l,u,h,m,p),b=new ix,S=a.getModel("textStyle");if(J(r.getLegendIcon)&&(!x||x==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;b.add(oee({itemWidth:d,itemHeight:v,icon:f,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?d+5:-5,C=s,A=o.get("formatter"),E=n;W(A)&&A?E=A.replace("{name}",n??""):J(A)&&(E=A(n));var O=m?S.getTextColor():a.get("inactiveColor");b.add(new Ie({style:pt(S,{text:E,x:M,y:v/2,fill:O,align:C,verticalAlign:"middle"},{inheritColor:O})}));var D=new be({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&$o({el:D,componentModel:o,itemName:n,itemTooltipOption:L.option}),b.add(D),b.eachChild(function(I){I.silent=!0}),D.silent=!c,this.getContentGroup().add(b),Zo(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ni(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ni("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=f[m]+d:c[v]+=p[m]+d,h[1-v]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[m]=f[m]+d+p[m],x[g]=Math.max(f[g],p[g]),x[y]=Math.min(0,p[y]+h[1-v]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Je);ax=iee});function bd(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),PG(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(i,function(l,u){s[l?"select":"unSelect"](u)}),PG(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function PG(t,e){var r=e||{};return T(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
36
|
+
`||i==="")){var a=t.isSelected(i);Q(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function zG(t){t.registerAction("legendToggleSelect","legendselectchanged",ve(bd,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ve(bd,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ve(bd,"inverseSelect")),t.registerAction("legendSelect","legendselected",ve(bd,"select")),t.registerAction("legendUnSelect","legendunselected",ve(bd,"unSelect"))}var FG=k(()=>{P()});function see(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}var VG,BG=k(()=>{re();VG=pf(see)});function ox(t){t.registerComponentModel(_d),t.registerComponentView(ax),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,VG),t.registerSubTypeDefaulter("legend",function(){return"plain"}),zG(t)}var oA=k(()=>{tA();aA();FG();BG()});function UG(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,In(e,r,{type:"box",ignoreSize:!!i})}var lee,GG,HG=k(()=>{q();tA();dr();si();Fe();lee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=fi(r);t.prototype.init.call(this,r,n,i),UG(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),UG(this,this.option,r)},e.type="legend.scroll",e.defaultOption=oi(_d.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:H.color.accent50,pageIconInactiveColor:H.color.accent10,pageIconSize:15,pageTextStyle:{color:H.color.tertiary},animationDurationUpdate:800}),e}(_d);GG=lee});var YG,sA,lA,uee,WG,XG=k(()=>{q();P();Te();dr();aA();YG=ye,sA=["width","height"],lA=["x","y"],uee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new YG),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new YG)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),p=U(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Ie({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=$a(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:$(u._pageGo,u,g,n,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=sA[u],c=lA[u],p=sA[1-u],h=lA[1-u];o&&Ni("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=te(i);o&&(g[f]=i[f]-v[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var x=v[f]+d;m[u]-=x,y[c]-=x}y[f]+=v[f]+d,m[1-u]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ni(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ni("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],x=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var _=r.get("pageButtonPosition",!0);_==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+x}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var b={x:0,y:0};if(b[o]=v?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],v){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-x,0),S[s]=b[s],c.setClipPath(new be({shape:S})),c.__rectSize=S[o]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&We(f,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=sA[o],l=lA[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],p=f.length,h=p?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=_(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,x=null;m<=p;++m)x=_(f[m]),(!x&&y.e>g.s+a||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=x;for(var m=u-1,g=v,y=v,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=x;return d;function _(S){if(S){var w=S.getBoundingRect(),M=w[l]+S[l];return{s:M,e:M+w[s],i:S.__legendDataIndex}}}function b(S,w){return S.e>=w&&S.s<=w+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(ax),WG=uee});function uA(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}var ZG=k(()=>{});function qG(t){lt(ox),t.registerComponentModel(GG),t.registerComponentView(WG),uA(t)}var KG=k(()=>{Vi();oA();HG();XG();ZG()});function fA(t){lt(ox),lt(qG)}var jG=k(()=>{Vi();oA();KG()});var fee,$G,JG=k(()=>{q();F0();si();fee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=oi(ys.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(ys),$G=fee});function QG(t,e,r){cA(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function eH(t,e){for(var r=cA(t).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||tH(r,o))}}}function tH(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function cee(t,e){var r={model:e,containsPoint:ve(hee,e),dispatchAction:ve(pee,t),dataZoomInfoMap:null,controller:null},n=r.controller=new KV(t.getZr());return T(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function pee(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function hee(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function dee(t,e,r){var n,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return t.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;a[i+c]>a[i+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=Z(f.get("cursorGrab",!0),s),l=Z(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function rH(t){t.registerUpdateLifecycle("coordsys:aftercreate",function(e,r){var n=cA(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=K());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=P0(a);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,cee(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){tH(i,a);return}var f=dee(l,a,r);o.enable(f.controlType,f.opt),ns(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var cA,pA=k(()=>{jV();is();re();P();yu();cA=ne()});function nH(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(Vn(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var mee,hA,dA,iH,aH=k(()=>{q();V0();Tc();pA();P();mee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),QG(i,r,{pan:$(hA.pan,this),zoom:$(hA.zoom,this),scrollMove:$(hA.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){eH(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(kc),hA={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=dA[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Vn(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:nH(function(t,e,r,n,i,a){var o=dA[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:nH(function(t,e,r,n,i,a){var o=dA[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};dA={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},iH=mee});function oH(t){xu(t),t.registerComponentModel($G),t.registerComponentView(iH),rH(t)}var sH=k(()=>{JG();aH();pA();B0()});var gee,lH,uH=k(()=>{q();F0();si();Fe();gee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=oi(ys.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:H.color.accent10,borderRadius:0,backgroundColor:H.color.transparent,dataBackground:{lineStyle:{color:H.color.accent30,width:.5},areaStyle:{color:H.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:H.color.accent40,width:.5},areaStyle:{color:H.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:H.color.neutral00,borderColor:H.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:H.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:H.color.tertiary},brushSelect:!0,brushStyle:{color:H.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:H.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(ys),lH=gee});function cH(t,e,r,n){var i=t.get("labelFormatter"),a=t.get("labelPrecision");(a==null||a==="auto")&&(a=r.valuePrecision);var o=r.value[e],s=o==null||isNaN(o)?"":st(n)||Sa(n)?n.getLabel({value:Math.round(o)}):isFinite(a)?De(o,a,!0):o+"";return J(i)?i(o,s):W(i)?i.replace("{value}",s):s}function Tee(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Cee(t){return t==="vertical"?"ns-resize":"ew-resize"}var Sd,yee,vA,xee,wd,fH,_ee,bee,See,wee,pH,hH=k(()=>{q();P();Ki();Te();is();V0();Se();dr();Tc();yu();or();hi();Ot();Fe();Bt();Sd=be,yee=1,vA=30,xee=7,wd="horizontal",fH="vertical",_ee=5,bee=["line","bar","candlestick","scatter"],See={easing:"cubicOut",duration:100,delay:0},wee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),ns(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Xl(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?xee:0,o=ui(r,n).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===wd?{right:o.width-s.x-s.width,top:o.height-vA-l-a,width:s.width,height:vA}:{right:l,top:s.y,width:vA,height:s.height},f=fi(r.option);T(["right","top","width","height"],function(p){f[p]==="ph"&&(f[p]=u[p])});var c=tr(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fH&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===wd&&!o?{scaleY:l?1:-1,scaleX:1}:i===wd&&o?{scaleY:l?1:-1,scaleX:-1}:i===fH&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;r.x=n.x-f,r.y=n.y-c,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Sd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Sd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var c=o.getDataExtent(r.thisDim),p=o.getDataExtent(l),h=(p[1]-p[0])*.3;p=[p[0]-h,p[1]+h];var d=[0,n[1]],v=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=v[1]/Math.max(1,o.count()-1),x=n[0]/(c[1]-c[0]),_=r.thisAxis.type==="time",b=-y,S=Math.round(o.count()/n[0]),w;o.each([r.thisDim,l],function(O,D,L){if(S>0&&L%S){_||(b+=y);return}b=_?(+O-c[0])*x:b+y;var I=D==null||isNaN(D)||D==="",R=I?0:Be(D,p,d,!0);I&&!w&&L?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&w&&(m.push([b,0]),g.push([b,0])),I||(m.push([b,R]),g.push([b,R])),w=I}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var M=this.dataZoomModel;function C(O){var D=M.getModel(O?"selectedDataBackground":"dataBackground"),L=new ye,I=new sr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new fn({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(I),L.add(R),L}for(var A=0;A<3;A++){var E=C(A===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(n!==!0&&ue(bee,u.get("type"))<0)){var f=a.getComponent(xi(o),s).axis,c=Tee(o),p,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(p=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);i={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:p}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new Sd({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new Sd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:yee,fill:H.color.transparent}})),T([0,1],function(x){var _=l.get("handleIcon");!wh[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=mt(_,-1,0,2,2,null,!0);b.attr({cursor:Cee(this._orient),draggable:!0,drift:$(this._onDragMove,this,x),ondragend:$(this._onDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1),z2:5});var S=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ze(w,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Zo(b);var M=l.get("handleColor");M!=null&&(b.style.fill=M),o.add(i[x]=b);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},E=A.show||!1;r.add(a[x]=new Ie({silent:!0,invisible:!E,style:pt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=p;if(c){var d=ze(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new be({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),m=d*.8,g=n.moveHandleIcon=mt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,H.color.neutral00,!0);g.silent=!0,g.y=s[1]+d/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new be({invisible:!0,shape:{y:s[1]-y,height:d+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:$(this._onActualMoveZoneDrift,this),ondragstart:$(this._onActualMoveZoneDragStart,this),ondragend:$(this._onActualMoveZoneDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Be(r[0],[0,100],n,!0),Be(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Vn(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Be(s.minSpan,l,o,!0):null,s.maxSpan!=null?Be(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Mt([Be(a[0],o,l,!0),Be(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Mt(i.slice()),o=this._size;T([0,1],function(h){var d=n.handles[h],v=this._handleHeight;d.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],p=c.getClipPath();p||(p=new be,c.setClipPath(p)),p.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(r){var p={start:f[0],end:f[1]},h=z0(n,l);if(h){var d=h.calculateDataWindow(p).percentInverted;p={start:d[0],end:d[1]}}c=l.calculateDataWindow(p)}else c=l.getWindow();s=[cH(n,0,c,u),cH(n,1,c,u)]}}var v=Mt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=Ii(i.handles[g].parent,this.group),x=Ol(g===0?"right":"left",y),_=this._handleWidth/2+_ee,b=Ri([v[g]+(g===0?-_:_),this._size[1]/2],y);a[g].setStyle({x:b[0],y:b[1],verticalAlign:o===wd?"middle":x,align:o===wd?x:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},e.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=r||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(r,n,i){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,n,i)},e.prototype._onActualMoveZoneDragStart=function(r){r.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,Jr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ri([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new me(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[i.x,i.x+i.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Vn(0,l,o,0,u.minSpan!=null?Be(u.minSpan,s,o,!0):null,u.maxSpan!=null?Be(u.maxSpan,s,o,!0):null),this._range=Mt([Be(l[0],o,s,!0),Be(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(Jr(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Sd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?See:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=P0(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(kc);pH=wee});function dH(t){t.registerComponentModel(lH),t.registerComponentView(pH),xu(t)}var vH=k(()=>{uH();hH();B0()});function mA(t){lt(oH),lt(dH)}var mH=k(()=>{Vi();sH();vH()});var Mee,Aee,sx,gA=k(()=>{P();Fe();Mee={get:function(t,e,r){var n=te((Aee[t]||{})[e]);return r&&U(n)?n[n.length-1]:n}},Aee={color:{active:["#006edd","#e0ffff"],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},sx=Mee});var gH,Dee,kee,yA,Eee,Oee,Iee,Lc,xA=k(()=>{q();P();gA();Sc();WM();re();Se();wr();Fe();gH=rr.mapVisual,Dee=rr.eachVisual,kee=U,yA=T,Eee=Mt,Oee=Be,Iee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&uG(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=$(r,this),this.controllerVisuals=YM(this.option.controller,n,r),this.targetVisuals=YM(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this,n=this.option.seriesTargets;if(n){var i=[];return yA(n,function(l){if(l.seriesIndex!=null)i.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&i.push(u.componentIndex)}}),i}var a=this.option.seriesId,o=this.option.seriesIndex;o==null&&a==null&&(o="all");var s=ia(this.ecModel,"series",{index:o,id:a},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return V(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(r,n){T(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],U(r)&&(r=r.slice(),u=!0);var f=n?r:u?[c(r[0]),c(r[1])]:c(r);if(W(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(J(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+f[1]:r[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=Eee([r.min,r.max]);this._dataExtent=n},e.prototype.getDimension=function(r){var n=this,i=this.option.seriesTargets;if(i){var a=Gn(i,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(r).id});if(a)return a.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(r){var n=r.hostModel.seriesIndex,i=this.getDimension(n);if(i!=null)return r.getDimensionIndex(i);for(var a=r.dimensions,o=a.length-1;o>=0;o--){var s=a[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});de(a,i),de(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){kee(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,p,h){var d=c[p],v=c[h];d&&!v&&(v=c[h]={},yA(d,function(m,g){if(rr.isValidType(g)){var y=sx.get(g,"inactive",s);y!=null&&(v[g]=y,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function f(c){var p=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";yA(this.stateList,function(g){var y=this.itemSize,x=c[g];x||(x=c[g]={color:s?d:[d]}),x.symbol==null&&(x.symbol=p&&te(p)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&te(h)||(s?y[0]:[y[0],y[0]])),x.symbol=gH(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;Dee(_,function(S){S>b&&(b=S)}),x.symbolSize=gH(_,function(S){return Oee(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},e}(ke),Lc=Iee});function xH(t,e,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var yH,Ree,_H,bH=k(()=>{q();P();xA();Se();si();Fe();yH=[20,140],Ree=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=yH[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=yH[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):U(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=Mt((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},e.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent(),a=Z(this.option.unboundedRange,!0);return(a&&n[0]<=i[0]||n[0]<=r)&&(a&&n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=xH(this,"outOfRange",this.getExtent()),i=xH(this,"inRange",this.option.range.slice()),a=[];function o(h,d){a.push({value:h,color:r(h,d)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var c=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(c&&(a.length&&o(a[a.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var p=a.length;return{stops:a,outerColors:[p?a[0].color:"transparent",p?a[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=oi(Lc.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:H.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:H.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:H.color.shadow}}),e}(Lc);_H=Ree});var Lee,lx,_A=k(()=>{q();P();Te();vn();dr();Sc();mn();Lee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,i=li(n.get("padding")||0),a=r.getBoundingRect();r.add(new be({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[a||o.getValueState(r)],p=rr.prepareVisualTypes(c);return T(p,function(h){var d=c[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),rr.dependsOn(h,n)&&d&&d.applyVisual(r,u,f)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api,a=ui(n,i).refContainer;Tg(r,n.getBoxLayoutParams(),a)},e.prototype.doRender=function(r,n,i,a){},e.type="visualMap",e}(Je),lx=Lee});function ux(t,e,r){var n=t.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=SH[o],l=[0,null,10],u={},f=0;f<3;f++)u[SH[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],p=tr(u,a,n.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+p[c[1]]*.5<a[c[1]]*.5?0:1]}function Nc(t,e){return T(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var SH,bA=k(()=>{P();dr();SH=[["left","right","width"],["top","bottom","height"]]});function CH(t,e,r,n){return new sr({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(i){Jr(i.event)},ondragend:n})}function Vee(t,e,r){var n=Pee/2,i=t.get("hoverLinkDataSize");return i&&(n=Ma(i,e,r,!0)/2),n}function MH(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function AH(t){return t==="vertical"?"ns-resize":"ew-resize"}var Ma,Nee,TH,SA,Pee,zee,Fee,DH,kH=k(()=>{q();P();GS();Ki();_A();Te();Se();Tc();bA();re();wn();or();hi();Ho();Qt();Ot();qg();Ma=Be,Nee=T,TH=Math.min,SA=Math.max,Pee=12,zee=6,Fee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,n){t.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},e.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),c=this._applyTransform(i===0?"bottom":"top",u),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Ie({style:pt(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(p==="horizontal"?"middle":c),align:h.get("align")||(p==="horizontal"?c:"center"),text:a})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=ux(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new ye;u.add(f),f.add(i.outOfRange=CH()),f.add(i.inRange=CH(null,s?AH(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),f.setClipPath(new be({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var c=n.textStyleModel.getTextRect("\u56FD"),p=SA(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,p,o),this._createHandle(n,u,1,a,p,o)),this._createIndicator(n,u,a,p,o),r.add(u)},e.prototype._createHandle=function(r,n,i,a,o,s){var l=$(this._dragHandle,this,i,!1),u=$(this._dragHandle,this,i,!0),f=tn(r.get("handleSize"),a[0]),c=mt(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),p=AH(this._orient);c.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Jr(g.event)}}),c.x=a[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Im(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,d=new Ie({cursor:p,draggable:!0,drift:l,onmousemove:function(g){Jr(g.event)},ondragend:u,style:pt(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var v=[f,0],m=this._shapes;m.handleThumbs[i]=c,m.handleLabelPoints[i]=v,m.handleLabels[i]=d},e.prototype._createIndicator=function(r,n,i,a,o){var s=tn(r.get("indicatorSize"),i[0]),l=mt(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof _t){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,p=new Ie({silent:!0,invisible:!0,style:pt(c,{x:0,y:0,text:""})});this.group.add(p);var h=[(o==="horizontal"?a/2:zee)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=p,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():MH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Ma(n[0],i,a,!0),Ma(n[1],i,a,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Vn(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Ma(a[0],o,s,!0),Ma(a[1],o,s,!0)]},e.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Ko(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new ye(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);Nee([0,1],function(c){var p=o[c];p.setStyle("fill",n.handlesColor[c]),p.y=r[c];var h=Ma(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=d/l[0],p.x=l[0]-d/2;var v=Ri(i.handleLabelPoints[c],Ii(p,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;v[1]+=m}s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",p),d=this.getControllerVisual(r,"symbolSize"),v=Ma(r,s,u,!0),m=l[0]-d/2,g={x:c.x,y:c.y};c.y=v,c.x=m;var y=Ri(f.indicatorLabelPoint,Ii(c,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),b=this._orient,S=b==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:S?_:"middle",align:S?"center":_});var w={x:m,y:v,style:{fill:h}},M={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),x.animateTo(M,C)}else c.attr(w),x.attr(M);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var E=0;E<A.length;E++)this.api.enterBlur(A[E])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=TH(SA(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=TH(SA(o[0],r),o[1]);var l=Vee(i,s,o),u=[r-l,r+l],f=Ma(r,o,s,!0),c=[Ma(u[0],o,s,!0),Ma(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var p=this._hoverLinkDataIndices,h=[];(n||MH(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=pO(p,h);this._dispatchHighDown("downplay",Nc(d[0],i)),this._dispatchHighDown("highlight",Nc(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(ao(r.target,function(l){var u=ge(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Nc(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,i,a){var o=Ii(n,a?null:this.group);return U(r)?Ri(r,o,i):Ol(r,o,i)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(lx);DH=Fee});var EH,OH,IH=k(()=>{EH={type:"selectDataRange",event:"dataRangeSelected",update:"update"},OH=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})}});function Bee(t,e,r,n){for(var i=e.targetVisuals[n],a=rr.prepareVisualTypes(i),o={color:ba(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,p)}return o.color;function c(h){return o[h]}function p(h,d){o[h]=d}}var RH,LH=k(()=>{P();WM();Sc();Zl();RH=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var i=t.pipelineContext;!n.isTargetSeries(t)||i&&i.large||r.push(fG(n.stateList,n.targetVisuals,$(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var a=i.getVisualMeta($(Bee,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}]});function wA(t){var e=t&&t.visualMap;U(e)||(e=e?[e]:[]),NH(e,function(r){if(r){Pc(r,"splitList")&&!Pc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;if(n&&U(n)&&NH(n,function(a){j(a)&&(Pc(a,"start")&&!Pc(a,"min")&&(a.min=a.start),Pc(a,"end")&&!Pc(a,"max")&&(a.max=a.end))}),0)var i}})}function Pc(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var NH,PH=k(()=>{P();NH=T});function Td(t){zH||(zH=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(EH,OH),T(RH,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(wA))}var zH,TA=k(()=>{IH();LH();P();PH();zH=!1});function FH(t){t.registerComponentModel(_H),t.registerComponentView(DH),Td(t)}var VH=k(()=>{bH();kH();TA()});function BH(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var Uee,Gee,UH,GH=k(()=>{q();P();xA();Sc();gA();Se();si();Uee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Gee[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=te(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=te(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=rr.listVisualTypes(),a=this.isCategory();T(r.pieces,function(s){T(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),T(n,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&T(this.stateList,function(f){(r[f]||(r[f]={}))[l]=sx.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;T(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=te(r)},e.prototype.getValueState=function(r){var n=rr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=rr.findPieceIndex(l,i);f===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,c){var p=a.getRepresentValue({interval:f});c||(c=a.getValueState(p));var h=r(p,c);f[0]===-1/0?i[0]=h:f[1]===1/0?i[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=oi(Lc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Lc),Gee={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),Rp(t),T(t,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;T(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),BH(e,t)},pieces:function(t){var e=this.option;T(e.pieces,function(r,n){j(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=r[p[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=rr.retrieveVisuals(r),t.push(i)},this),BH(e,t),Rp(t),T(t,function(r){var n=r.close,i=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};UH=Uee});var Hee,HH,YH=k(()=>{q();P();_A();Te();hi();dr();bA();Ot();Hee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=yr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),T(l.viewPieceList,function(p){var h=p.piece,d=new ye;d.onclick=$(this._onItemClick,this,h),this._enableHoverLink(d,p.indexInModelPieceList);var v=n.getRepresentValue(h);if(this._createItemSymbol(d,v,[0,0,s[0],s[1]],c),f){var m=this.visualMapModel.getValueState(v),g=a.get("align")||o;d.add(new Ie({style:pt(a,{x:g==="right"?-i:s[0]+i,y:s[1]/2,text:h.text,verticalAlign:a.get("verticalAlign")||"middle",align:g,opacity:Z(a.get("opacity"),m==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),Ni(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Nc(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return ux(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new ye,l=this.visualMapModel.textStyleModel;s.add(new Ie({style:pt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=V(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i,a){var o=mt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,r.add(o)},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=te(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(lx),HH=Hee});function WH(t){t.registerComponentModel(UH),t.registerComponentView(HH),Td(t)}var XH=k(()=>{GH();YH();TA()});function CA(t){lt(FH),lt(WH)}var ZH=k(()=>{Vi();VH();XH()});var qH=k(()=>{XU();G5();oG();N0();pG();_G();MG();LG();jG();mH();ZH()});var KH=k(()=>{qH()});function zc(t,e){return Math.abs(t-e)<1e-5}function fx(t){var e=t.data,r=t.len(),n=[],i,a=0,o=0,s=0,l=0;function u(D,L){i&&i.length>2&&n.push(i),i=[D,L]}function f(D,L,I,R){zc(D,I)&&zc(L,R)||i.push(D,L,I,R,I,R)}function c(D,L,I,R,F,z){var Y=Math.abs(L-D),B=Math.tan(Y/4)*4/3,X=L<D?-1:1,ee=Math.cos(D),ie=Math.sin(D),ae=Math.cos(L),we=Math.sin(L),Oe=ee*F+I,Qe=ie*z+R,nt=ae*F+I,Re=we*z+R,Ye=F*B*X,_e=z*B*X;i.push(Oe-Ye*ie,Qe+_e*ee,nt+Ye*we,Re-_e*ae,nt,Re)}for(var p,h,d,v,m=0;m<r;){var g=e[m++],y=m===1;switch(y&&(a=e[m],o=e[m+1],s=a,l=o,(g===Aa.L||g===Aa.C||g===Aa.Q)&&(i=[s,l])),g){case Aa.M:a=s=e[m++],o=l=e[m++],u(s,l);break;case Aa.L:p=e[m++],h=e[m++],f(a,o,p,h),a=p,o=h;break;case Aa.C:i.push(e[m++],e[m++],e[m++],e[m++],a=e[m++],o=e[m++]);break;case Aa.Q:p=e[m++],h=e[m++],d=e[m++],v=e[m++],i.push(a+2/3*(p-a),o+2/3*(h-o),d+2/3*(p-d),v+2/3*(h-v),d,v),a=d,o=v;break;case Aa.A:var x=e[m++],_=e[m++],b=e[m++],S=e[m++],w=e[m++],M=e[m++]+w;m+=1;var C=!e[m++];p=Math.cos(w)*b+x,h=Math.sin(w)*S+_,y?(s=p,l=h,u(s,l)):f(a,o,p,h),a=Math.cos(M)*b+x,o=Math.sin(M)*S+_;for(var A=(C?-1:1)*Math.PI/2,E=w;C?E>M:E<M;E+=A){var O=C?Math.max(E+A,M):Math.min(E+A,M);c(E,O,x,_,b,S)}break;case Aa.R:s=a=e[m++],l=o=e[m++],p=s+e[m++],h=l+e[m++],u(p,l),f(p,l,p,h),f(p,h,s,h),f(s,h,s,l),f(s,l,p,l);break;case Aa.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function MA(t,e,r,n,i,a,o,s,l,u){if(zc(t,r)&&zc(e,n)&&zc(i,o)&&zc(a,s)){l.push(o,s);return}var f=2/u,c=f*f,p=o-t,h=s-e,d=Math.sqrt(p*p+h*h);p/=d,h/=d;var v=r-t,m=n-e,g=i-o,y=a-s,x=v*v+m*m,_=g*g+y*y;if(x<c&&_<c){l.push(o,s);return}var b=p*v+h*m,S=-p*g-h*y,w=x-b*b,M=_-S*S;if(w<c&&b>=0&&M<c&&S>=0){l.push(o,s);return}var C=[],A=[];Zn(t,r,i,o,.5,C),Zn(e,n,a,s,.5,A),MA(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),MA(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function jH(t,e){var r=fx(t),n=[];e=e||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],c=a[u++],p=a[u++],h=a[u++],d=a[u++],v=a[u++];MA(s,l,f,c,p,h,d,v,o,e),s=d,l=v}n.push(o)}return n}var Aa,AA=k(()=>{qn();pa();Aa=Jt.CMD});function e3(t,e,r){var n=t[e],i=t[1-e],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function $H(t,e,r){for(var n=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),c=e3([l,u],f?0:1,e),p=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],v=0;v<c[h];v++){var m={};f?(m.startAngle=a+p*h,m.endAngle=a+p*(h+1),m.r0=n+d*v,m.r=n+d*(v+1)):(m.startAngle=a+d*v,m.endAngle=a+d*(v+1),m.r0=n+p*h,m.r=n+p*(h+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,r.push(m)}}function Yee(t,e,r){for(var n=t.width,i=t.height,a=n>i,o=e3([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=t[s]/o.length,p=0;p<o.length;p++)for(var h=t[l]/o[p],d=0;d<o[p];d++){var v={};v[u]=p*c,v[f]=d*h,v[s]=c,v[l]=h,v.x+=t.x,v.y+=t.y,r.push(v)}}function JH(t,e,r,n){return t*n-r*e}function Wee(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,p=JH(f,c,l,u);if(Math.abs(p)<1e-6)return null;var h=t-i,d=e-a,v=JH(h,d,f,c)/p;return v<0||v>1?null:new me(v*l+t,v*u+e)}function Xee(t,e,r){var n=new me;me.sub(n,r,e),n.normalize();var i=new me;me.sub(i,t,e);var a=i.dot(n);return a}function Fc(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function Zee(t,e,r){for(var n=t.length,i=[],a=0;a<n;a++){var o=t[a],s=t[(a+1)%n],l=Wee(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&i.push({projPt:Xee(l,e,r),pt:l,idx:a})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(m,g){return m.projPt-g.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var p=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[p],v=[h],a=u.idx+1;a<=f.idx;a++)Fc(d,t[a].slice());Fc(d,h),Fc(d,p);for(var a=f.idx+1;a<=u.idx+n;a++)Fc(v,t[a%n].slice());return Fc(v,p),Fc(v,h),[{points:d},{points:v}]}function QH(t){var e=t.points,r=[],n=[];sS(e,r,n);var i=new fe(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new me,f=new me;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),Zee(e,u,f)}function cx(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);cx(t,a[0],i,n),cx(t,a[1],r-i,n)}return n}function qee(t,e){for(var r=[],n=0;n<e;n++)r.push(_f(t));return r}function Kee(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function jee(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function t3(t,e){var r=[],n=t.shape,i;switch(t.type){case"rect":Yee(n,e,r),i=be;break;case"sector":$H(n,e,r),i=An;break;case"circle":$H({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),i=An;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=V(jH(t.getUpdatedPathProxy(),o),function(g){return jee(g)}),l=s.length;if(l===0)cx(QH,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=V(s,function(g){var y=[],x=[];sS(g,y,x);var _=(x[1]-y[1])*(x[0]-y[0]);return f+=_,{poly:g,area:_}});c.sort(function(g,y){return y.area-g.area});for(var p=e,u=0;u<l;u++){var h=c[u];if(p<=0)break;var d=u===l-1?p:Math.ceil(h.area/f*e);d<0||(cx(QH,{points:h.poly},d,r),p-=d)}}i=sr;break}if(!i)return qee(t,e);for(var v=[],u=0;u<r.length;u++){var m=new i;m.setShape(r[u]),Kee(t,m),v.push(m)}return v}var r3=k(()=>{uS();Ct();Bu();P();VS();bm();PS();AA();Qp()});function $ee(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var i=[],a=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],p=l,h=2;h<s;){var d=o[h-2],v=o[h-1],m=o[h++],g=o[h++],y=o[h++],x=o[h++],_=o[h++],b=o[h++];if(p<=0){c.push(m,g,y,x,_,b);continue}for(var S=Math.min(p,f-1)+1,w=1;w<=S;w++){var M=w/S;Zn(d,m,y,_,M,i),Zn(v,g,x,b,M,a),d=i[3],v=a[3],c.push(i[1],a[1],i[2],a[2],d,v),m=i[5],g=a[5],y=i[6],x=a[6]}p-=S-1}return o===t?[c,e]:[t,c]}function n3(t,e){for(var r=t.length,n=t[r-2],i=t[r-1],a=[],o=0;o<e.length;)a[o++]=n,a[o++]=i;return a}function Jee(t,e){for(var r,n,i,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],f=void 0,c=void 0;l?u?(r=$ee(l,u),f=r[0],c=r[1],n=f,i=c):(c=n3(i||l,l),f=l):(f=n3(n||u,u),c=u),a.push(f),o.push(c)}return[a,o]}function i3(t){for(var e=0,r=0,n=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],f=t[a+1],c=s*f-u*l;e+=c,r+=(s+u)*c,n+=(l+f)*c}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function Qee(t,e,r,n){for(var i=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<i;u++){for(var f=u*6,c=0,p=0;p<s;p+=2){var h=p===0?f:(f+p-2)%l+2,d=t[h]-r[0],v=t[h+1]-r[1],m=e[p]-n[0],g=e[p+1]-n[1],y=m-d,x=g-v;c+=y*y+x*x}c<a&&(a=c,o=u)}return o}function ete(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function tte(t,e,r,n){for(var i=[],a,o=0;o<t.length;o++){var s=t[o],l=e[o],u=i3(s),f=i3(l);a==null&&(a=u[2]<0!=f[2]<0);var c=[],p=[],h=0,d=1/0,v=[],m=s.length;a&&(s=ete(s));for(var g=Qee(s,l,u,f)*6,y=m-2,x=0;x<y;x+=2){var _=(g+x)%y+2;c[x+2]=s[_]-u[0],c[x+3]=s[_+1]-u[1]}if(c[0]=s[g]-u[0],c[1]=s[g+1]-u[1],r>0)for(var b=n/r,S=-n/2;S<=n/2;S+=b){for(var w=Math.sin(S),M=Math.cos(S),C=0,x=0;x<s.length;x+=2){var A=c[x],E=c[x+1],O=l[x]-f[0],D=l[x+1]-f[1],L=O*M-D*w,I=O*w+D*M;v[x]=L,v[x+1]=I;var R=L-A,F=I-E;C+=R*R+F*F}if(C<d){d=C,h=S;for(var z=0;z<v.length;z++)p[z]=v[z]}}else for(var Y=0;Y<m;Y+=2)p[Y]=l[Y]-f[0],p[Y+1]=l[Y+1]-f[1];i.push({from:c,to:p,fromCp:u,toCp:f,rotation:-h})}return i}function Md(t){return t.__isCombineMorphing}function px(t,e,r){var n=o3+e,i=t[n]||t[e];t[n]||(t[n]=t[e]);var a=r.replace,o=r.after,s=r.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Cd(t,e){var r=o3+e;t[r]&&(t[e]=t[r],t[r]=null)}function a3(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=e[0]*a+e[2]*o+e[4],n[i++]=e[1]*a+e[3]*o+e[5]}}function s3(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=Jee(fx(r),fx(n)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&a3(a,s),l&&a3(o,l),px(e,"updateTransform",{replace:u}),e.transform=null;var f=tte(a,o,10,Math.PI),c=[];px(e,"buildPath",{replace:function(p){for(var h=e.__morphT,d=1-h,v=[],m=0;m<f.length;m++){var g=f[m],y=g.from,x=g.to,_=g.rotation*h,b=g.fromCp,S=g.toCp,w=Math.sin(_),M=Math.cos(_);Hs(v,b,S,h);for(var C=0;C<y.length;C+=2){var A=y[C],E=y[C+1],O=x[C],D=x[C+1],L=A*d+O*h,I=E*d+D*h;c[C]=L*M-I*w+v[0],c[C+1]=L*w+I*M+v[1]}var R=c[0],F=c[1];p.moveTo(R,F);for(var C=2;C<y.length;){var O=c[C++],D=c[C++],z=c[C++],Y=c[C++],B=c[C++],X=c[C++];R===O&&F===D&&z===B&&Y===X?p.lineTo(B,X):p.bezierCurveTo(O,D,z,Y,B,X),R=B,F=X}}}})}function dx(t,e,r){if(!t||!e)return e;var n=r.done,i=r.during;s3(t,e),e.__morphT=0;function a(){Cd(e,"buildPath"),Cd(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},oe({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),e}function rte(t,e,r,n,i,a){var o=16;t=i===r?0:Math.round(32767*(t-r)/(i-r)),e=a===n?0:Math.round(32767*(e-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(t&u)>0&&(f=1),(e&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function hx(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=V(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),r=Math.min(c,r),n=Math.max(f,n),i=Math.max(c,i),[f,c]}),o=V(a,function(s,l){return{cp:s,z:rte(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function l3(t){return t3(t.path,t.count)}function DA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function u3(t,e,r){var n=[];function i(b){for(var S=0;S<b.length;S++){var w=b[S];Md(w)?i(w.childrenRef()):w instanceof ce&&n.push(w)}}i(t);var a=n.length;if(!a)return DA();var o=r.dividePath||l3,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),DA();n=hx(n),s=hx(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new $n,p=0;p<a;p++){var h=n[p],d=s[p];d.parent=e,d.copyTransform(c),f||s3(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function v(b){for(var S=0;S<s.length;S++)s[S].addSelfToZr(b)}px(e,"addSelfToZr",{after:function(b){v(b)}}),px(e,"removeSelfFromZr",{after:function(b){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(b)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Cd(e,"addSelfToZr"),Cd(e,"removeSelfFromZr")}var g=s.length;if(f)for(var y=g,x=function(){y--,y===0&&(m(),l&&l())},p=0;p<g;p++){var _=f?oe({delay:(r.delay||0)+f(p,g,n[p],s[p]),done:x},r):r;dx(n[p],s[p],_)}else e.__morphT=0,e.animateTo({__morphT:1},oe({during:function(b){for(var S=0;S<g;S++){var w=s[S];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){m();for(var b=0;b<t.length;b++)Cd(t[b],"updateTransform");l&&l()}},r));return e.__zr&&v(e.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function f3(t,e,r){var n=e.length,i=[],a=r.dividePath||l3;function o(h){for(var d=0;d<h.length;d++){var v=h[d];Md(v)?o(v.childrenRef()):v instanceof ce&&i.push(v)}}if(Md(t)){o(t.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(_f(i[l++%s]));i.length=n}else{i=a({path:t,count:n});for(var f=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),DA()}i=hx(i),e=hx(e);for(var c=r.individualDelay,u=0;u<n;u++){var p=c?oe({delay:(r.delay||0)+c(u,n,i[u],e[u])},r):r;dx(i[u],e[u],p)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}var o3,c3=k(()=>{qn();At();P();Lt();Qp();ta();r3();AA();o3="__mOriginal_"});function p3(t){return U(t[0])}function h3(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(e[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}function vx(t,e,r,n,i,a){if(!t.length||!e.length)return;var o=ma("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o),u,f;p3(t)&&(u=t,f=e),p3(e)&&(u=e,f=t);function c(g,y,x,_,b){var S=g.many,w=g.one;if(S.length===1&&!b){var M=y?S[0]:w,C=y?w:S[0];if(Md(M))c({many:[M],one:C},!0,x,_,!0);else{var A=s?oe({delay:s(x,_)},l):l;dx(M,C,A),a(M,C,M,C,A)}}else for(var E=oe({dividePath:nte[r],individualDelay:s&&function(F,z,Y,B){return s(F+x,_)}},l),O=y?u3(S,w,E):f3(w,S,E),D=O.fromIndividuals,L=O.toIndividuals,I=D.length,R=0;R<I;R++){var A=s?oe({delay:s(R,I)},l):l;a(D[R],L[R],y?S[R]:g.one,y?g.one:S[R],A)}}for(var p=u?u===t:t.length>e.length,h=u?h3(f,u):h3(p?e:t,[p?t:e]),d=0,v=0;v<h.length;v++)d+=h[v].many.length;for(var m=0,v=0;v<h.length;v++)c(h[v],p,m,d),m+=h[v].many.length}function ws(t){if(!t)return[];if(U(t)){for(var e=[],r=0;r<t.length;r++)e.push(ws(t[r]));return e}var n=[];return t.traverse(function(i){i instanceof ce&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var nte,d3=k(()=>{c3();Te();P();jo();Qp();nte={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var i=_f(t.path);i.setStyle("opacity",r),e.push(i)}return e},split:null}});function ote(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var i=t.getDimensionInfo(r[n]);if(i&&i.otherDims[e]===0)return r[n]}}function ste(t,e,r){var n=t.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=t.get(n.name,e);return i&&i.categories[a]||a+""}}function g3(t,e,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=ote(t,i);if(a){var o=ste(t,e,a);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function y3(t){var e=[];return T(t,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>S3))for(var a=n.getIndices(),o=0;o<a.length;o++)e.push({data:n,groupId:g3(n,o,i,!1),childGroupId:g3(n,o,i,!0),divide:r.divide,dataIndex:o})}),e}function kA(t,e,r){t.traverse(function(n){n instanceof ce&&vt(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function EA(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Vc(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function lte(t,e,r){var n=ma("update",r,e);n&&t.traverse(function(i){if(i instanceof _r){var a=CR(i);a&&i.animateFrom({style:a},n)}})}function ute(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var i=t[n],a=e[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function w3(t,e,r){var n=y3(t),i=y3(e);function a(x,_,b,S,w){(b||x)&&_.animateFrom({style:b&&b!==x?G(G({},b.style),x.style):x.style},w)}var o=!1,s=ite,l=K(),u=K();T(n,function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var f=0;f<i.length;f++){var c=i[f].groupId;if(u.get(c)){s=v3;break}var p=i[f].childGroupId;if(p&&l.get(p)){s=m3;break}}function h(x,_){return function(b){var S=b.data,w=b.dataIndex;return _?S.getId(w):x?s===v3?b.childGroupId:b.groupId:s===m3?b.childGroupId:b.groupId}}var d=ute(n,i),v={};if(!d)for(var f=0;f<i.length;f++){var m=i[f],g=m.data.getItemGraphicEl(m.dataIndex);g&&(v[g.id]=!0)}function y(x,_){var b=n[_],S=i[x],w=S.data.hostModel,M=b.data.getItemGraphicEl(b.dataIndex),C=S.data.getItemGraphicEl(S.dataIndex);if(M===C){C&<e(C,S.dataIndex,w);return}M&&v[M.id]||C&&(Vc(C),M?(Vc(M),EA(M),o=!0,vx(ws(M),ws(C),S.divide,w,x,a)):kA(C,w,x))}new zi(n,i,h(!0,d),h(!1,d),null,"multiple").update(y).updateManyToOne(function(x,_){var b=i[x],S=b.data,w=S.hostModel,M=S.getItemGraphicEl(b.dataIndex),C=Ce(V(_,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==M&&!v[A.id]});M&&(Vc(M),C.length?(T(C,function(A){Vc(A),EA(A)}),o=!0,vx(ws(C),ws(M),b.divide,w,x,a)):kA(M,w,b.dataIndex))}).updateOneToMany(function(x,_){var b=n[_],S=b.data.getItemGraphicEl(b.dataIndex);if(!(S&&v[S.id])){var w=Ce(V(x,function(C){return i[C].data.getItemGraphicEl(i[C].dataIndex)}),function(C){return C&&C!==S}),M=i[x[0]].data.hostModel;w.length&&(T(w,function(C){return Vc(C)}),S?(Vc(S),EA(S),o=!0,vx(ws(S),ws(w),b.divide,M,x[0],a)):T(w,function(C){return kA(C,M,x[0])}))}}).updateManyToMany(function(x,_){new zi(_,x,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return i[b].data.getId(i[b].dataIndex)}).update(function(b,S){y(x[b],_[S])}).execute()}).execute(),o&&T(e,function(x){var _=x.data,b=_.hostModel,S=b&&r.getViewOfSeriesModel(b),w=ma("update",b,0);S&&b.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(M){M instanceof ce&&!M.animators.length&&M.animateFrom({style:{opacity:0}},w)})})}function x3(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function _3(t){return U(t)?t.sort().join(","):t}function Ts(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function fte(t,e){var r=K(),n=K(),i=K();T(t.oldSeries,function(o,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],f=x3(o),c=_3(f);n.set(c,{dataGroupId:l,data:u}),U(f)&&T(f,function(p){i.set(p,{key:c,dataGroupId:l,data:u})})});function a(o){r.get(o)&&nO("Duplicated seriesKey in universalTransition "+o)}return T(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=x3(o),f=_3(u),c=n.get(f);if(c)r.set(f,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ts(c.data),data:c.data}],newSeries:[{dataGroupId:s,divide:Ts(l),data:l}]});else if(U(u)){var p=[];T(u,function(v){var m=n.get(v);m.data&&p.push({dataGroupId:m.dataGroupId,divide:Ts(m.data),data:m.data})}),p.length&&r.set(f,{oldSeries:p,newSeries:[{dataGroupId:s,data:l,divide:Ts(l)}]})}else{var h=i.get(u);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ts(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Ts(l)})}}}}),r}function b3(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function cte(t,e,r,n){var i=[],a=[];T(Ue(t.from),function(o){var s=b3(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ts(e.oldData[s]),groupIdDim:o.dimension})}),T(Ue(t.to),function(o){var s=b3(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ts(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&w3(i,a,n)}function OA(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){T(Ue(n.seriesTransition),function(i){T(Ue(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][yh]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var i=ate(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)T(Ue(a),function(h){cte(h,i,n,r)});else{var o=fte(i,n);T(o.keys(),function(h){var d=o.get(h);w3(d.oldSeries,d.newSeries,r)})}T(n.updatedSeries,function(h){h[yh]&&(h[yh]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],c=0;c<s.length;c++){var p=s[c].getData();p.count()<S3&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(p))}})}var S3,ite,v3,m3,ate,T3=k(()=>{_a();P();d3();At();Te();jf();re();fl();jo();la();S3=1e4,ite=0,v3=1,m3=2,ate=ne()});function hte(t,e){return new pte(t,e)}function dte(t,e){var r=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};T(t.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(r+=l.val);var u=LA(s,e);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,p=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";a[h][l.type].has=!0,a[h][l.type].span=p,a[h][l.type].inExtFrac=p/(s.vmax-s.vmin),a[h][l.type].val=l.val}else n[l.type].span+=p,n[l.type].val+=l.val}});var o=r*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));T(t.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=r!==0?Ae(o,0)*l.val/r:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function vte(t,e,r,n,i,a){t!=="no"&&T(r,function(o){var s=LA(o,a);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=n(u),c=i*3/4;f>s.vmin-c&&f<s.vmax+c&&(t!=="preserve_extent_bound"||f!==a[0]&&f!==a[1])&&e.splice(l,1)}})}function mte(t,e,r,n){T(e,function(i){var a=LA(i,r);a&&(t.push({value:a.vmin,break:{type:"vmin",parsedBreak:a},time:n?n(a):void 0}),t.push({value:a.vmax,break:{type:"vmax",parsedBreak:a},time:n?n(a):void 0}))}),e.length&&t.sort(function(i,a){return i.value-a.value})}function LA(t,e){var r=Ae(t.vmin,e[0]),n=rt(t.vmax,e[1]);return r<n||r===n&&r>e[0]&&r<e[1]?{vmin:r,vmax:n,breakOption:t.breakOption,gapParsed:t.gapParsed,gapReal:t.gapReal}:null}function IA(t,e,r){var n=[];if(!t)return{breaks:n};function i(o,s){return o>=0&&o<1-1e-5}T(t,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:te(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(W(o.gap)){var u=Yt(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;i(f,"Percent gap")||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=e.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),r&&r.noNegative&&T(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var p=s.vmax;s.vmax=s.vmin,s.vmin=p}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var a=-1/0;return T(n,function(o,s){a>o.vmin&&(n[s]=null),a=o.vmax}),{breaks:Ce(n,function(o){return!!o})}}function NA(t,e){return RA(e)===RA(t)}function RA(t){return t.start+"_\0_"+t.end}function gte(t,e,r){var n=[];T(t,function(a,o){var s=e(a);s&&s.type==="vmin"&&n.push([o])}),T(t,function(a,o){var s=e(a);if(s&&s.type==="vmax"){var l=Gn(n,function(u){return NA(e(t[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var i=[];return T(n,function(a){a.length===2&&i.push(r?a:[t[a[0]],t[a[1]]])}),i}function yte(t,e,r,n){if(e.break){var i=e.break.parsedBreak,a=Gn(r,function(f){return NA(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:n,depth:vi},s=t.transformOut(i.vmin,o),l=t.transformOut(i.vmax,o),u={vmin:s,vmax:l,breakOption:i.breakOption,gapParsed:te(a.gapParsed),gapReal:i.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function xte(t,e,r,n,i){i.original=IA(t,e,r);var a=i.transformed=IA(t,e,r),o=i.lookup;a.breaks=V(a.breaks,function(s,l){var u={depth:vi},f=e.transformIn(s.vmin,u),c=e.transformIn(s.vmax,u),p={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=c,o.to[n+l+1]=s.vmax,{vmin:f,vmax:c,gapParsed:p,gapReal:s.gapReal,breakOption:s.breakOption}})}function bte(t,e){return e&&(t=t||{},t.break={type:_te[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}function A3(){$R({createBreakScaleMapper:hte,pruneTicksByBreak:vte,addBreaksToTicks:mte,parseAxisBreakOption:IA,identifyAxisBreak:NA,serializeAxisBreakIdentifier:RA,retrieveAxisBreakPairs:gte,getTicksBreakOutwardTransform:yte,parseAxisBreakOptionInwardTransform:xte,makeAxisLabelFormatterParamBreak:bte})}var pte,C3,M3,_te,D3=k(()=>{P();En();Se();mi();re();pte=function(){function t(e,r){ic(this,t.decoratedMethods),this._outOfBrk=wy(null,r);var n=this._linear=wy(null,r);ac(this,n),this.breaks=e&&e.breaks||[]}return t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(e,r){for(var n=0;n<this.breaks.length;n++){var i=this.breaks[n];if(i.vmin<e&&e<i.vmax){var a=r(e,i.vmax);return a}}return 0},t.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,r){return r==null||r===vi?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,r){this.setExtent2(vr,e,r)},setExtent2:function(e,r,n){ki(r,n)&&(e===vr&&dte(this,[r,n]),this._outOfBrk.setExtent2(e,r,n),this._linear.setExtent2(e,this.transformIn(r,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,r){if(r&&r.depth===vi)return e;for(var n=C3,i=M3,a=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?n+=s.vmin-i+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=e-i,i=s.vmax,a=!1;break}n+=s.vmin-i+s.gapReal,i=s.vmax}return a&&(n+=e-i),n},transformOut:function(e,r){if(r&&r.depth===vi)return e;for(var n=C3,i=M3,a=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-i,f=u+l.gapReal;if(e<=f){e>u?o=l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):o=i+e-n,i=l.vmax,a=!1;break}n=f,i=l.vmax}return a&&(o=i+e-n),o}},t}();C3=0,M3=0;_te={vmin:"start",vmax:"end"}});function Ste(t,e){var r=Gn(t,function(n){return Ze().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return r||t.push(r={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),r}function wte(t){T(t,function(e){return e.shouldRemove=!0})}function Tte(t){for(var e=t.length-1;e>=0;e--)t[e].shouldRemove&&t.splice(e,1)}function Cte(t,e,r,n,i){var a=r.axis;if(a.scale.isBlank()||!Ze())return;var o=Ze().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=r.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),p=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),v=d.stroke,m=d.lineWidth,g=d.lineDash,y=d.fill,x=new ye({ignoreModelZ:!0}),_=a.isHorizontal(),b=k3(e).visualList||(k3(e).visualList=[]);wte(b);for(var S=function(C){var A=o[C][0].break.parsedBreak,E=[];E[0]=a.toGlobalCoord(a.dataToCoord(A.vmin,!0)),E[1]=a.toGlobalCoord(a.dataToCoord(A.vmax,!0)),E[1]<E[0]&&E.reverse();var O=Ste(b,A);O.shouldRemove=!1;var D=new ye;M(O.zigzagRandomList,D,E[0],E[1],_,A),c&&D.on("click",function(){var L={type:xc,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};L[a.dim+"AxisIndex"]=r.componentIndex,i.dispatchAction(L)}),D.silent=!c,x.add(D)},w=0;w<o.length;w++)S(w);t.add(x),Tte(b);function M(C,A,E,O,D,L){var I={stroke:v,lineWidth:m,lineDash:g,fill:"none"},R=D?0:1,F=1-R,z=n[Fr[F]]+n[ai[F]];function Y(dt){var Ee=[],kr=[];Ee[R]=kr[R]=dt,Ee[F]=n[Fr[F]],kr[F]=z;var Er={x1:Ee[0],y1:Ee[1],x2:kr[0],y2:kr[1]};return bl(Er,Er,{lineWidth:1}),Ee[0]=Er.x1,Ee[1]=Er.y1,Ee[R]}E=Y(E),O=Y(O);for(var B=[],X=[],ee=!0,ie=n[Fr[F]],ae=0;;ae++){var we=ie===n[Fr[F]],Oe=ie>=z;Oe&&(ie=z);var Qe=[],nt=[];Qe[R]=E,nt[R]=O,!we&&!Oe&&(Qe[R]+=ee?-l:l,nt[R]-=ee?l:-l),Qe[F]=ie,nt[F]=ie,B.push(Qe),X.push(nt);var Re=void 0;if(ae<C.length?Re=C[ae]:(Re=Math.random(),C.push(Re)),ie+=Re*(f-u)+u,ee=!ee,Oe)break}var Ye=Ze().serializeAxisBreakIdentifier(L.breakOption);if(A.add(new fn({anid:"break_a_"+Ye,shape:{points:B},style:I,z:p})),L.gapReal!==0){A.add(new fn({anid:"break_b_"+Ye,shape:{points:X},style:I,z:p}));var _e=X.slice();_e.reverse();var Le=B.concat(_e);A.add(new sr({anid:"break_c_"+Ye,shape:{points:Le},style:{fill:y,opacity:d.opacity},z:p}))}}}function Mte(t,e,r,n){var i=t.axis,a=r.transform;je(n.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=Ze().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(m){return m.break},!1),l=V(s,function(m){var g=m[0].break.parsedBreak,y=[i.dataToCoord(g.vmin,!0),i.dataToCoord(g.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:Ze().serializeAxisBreakIdentifier(g.breakOption)}});l.sort(function(m,g){return m.coordPair[0]-g.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var p=l[c],h=Math.max(p.coordPair[0],o[0]),d=Math.min(p.coordPair[1],o[1]);u<=h&&v(u,h,f,p),u=d,f=p}u<=o[1]&&v(u,o[1],f,null);function v(m,g,y,x){function _(E,O){a&&(ot(E,E,a),ot(O,O,a))}function b(E,O){var D={x1:E[0],y1:E[1],x2:O[0],y2:O[1]};bl(D,D,n.style),E[0]=D.x1,E[1]=D.y1,O[0]=D.x2,O[1]=D.y2}var S=[m,0],w=[g,0],M=[m,5],C=[g,5];_(S,M),b(S,M),_(w,C),b(w,C),b(S,w);var A=new pr(G({shape:{x1:S[0],y1:S[1],x2:w[0],y2:w[1]}},n));e.add(A),A.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(x?x.brkId:"\0")}}function Ate(t,e,r){if(Gn(r,function(y){return!y}))return;var n=new me;if(!vc(r[0],r[1],n,{direction:-(t?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var i=$e();za(i,i,-e);var a=V(r,function(y){return y.transform?Qr($e(),i,y.transform):i});function o(y){var x=r[0].localRect,_=new me(x[ai[y]]*a[0][0],x[ai[y]]*a[0][1]);return Math.abs(_.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=V(r,function(y,x){var _=y.localRect.clone();return _.applyTransform(a[x]),_}),u=new me;u.copy(r[0].label).add(r[1].label).scale(.5),u.transform(i);var f=n.clone().transform(i),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),p=(c+f.x)/2-u.x,h=Math.min(p,p-f.x),d=Math.max(p,p-f.x),v=d<0?d:h>0?h:0;s=(p-v)/f.x}var m=new me,g=new me;me.scale(m,n,-s),me.scale(g,n,1-s),Xh(r[0],m),Xh(r[1],g)}function Dte(t,e){var r={breaks:[]};return T(e.breaks,function(n){if(n){var i=Gn(t.get("breaks",!0),function(s){return Ze().identifyAxisBreak(s,n)});if(i){var a=e.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===xc?!0:a===FT?!1:a===VT?!i.isExpanded:i.isExpanded,r.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),r}function E3(){rF({adjustBreakLabelPair:Ate,buildAxisBreakLine:Mte,rectCoordBuildBreakAxis:Cte,updateModelAxisBreak:Dte})}var k3,O3=k(()=>{re();P();En();Yp();Lt();bn();f0();$y();Qh();Te();k3=ne()});function PA(t){nF(t),A3(),E3()}var I3=k(()=>{D3();f0();O3()});var R3=k(()=>{T3();TT();I3();gC()});var L3=k(()=>{R3()});var zA,FA,N3,bu,kte,Ete,mx,VA=k(()=>{Qs();zA=Math.sin,FA=Math.cos,N3=Math.PI,bu=Math.PI*2,kte=180/N3,Ete=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=ea(c-bu)||(f?u>=bu:-u>=bu),h=u>0?u%bu:u%bu+bu,d=!1;p?d=!0:ea(c)?d=!1:d=h>=N3==!!f;var v=e+n*FA(o),m=r+i*zA(o);this._start&&this._add("M",v,m);var g=Math.round(a*kte);if(p){var y=1/this._p,x=(f?1:-1)*(bu-y);this._add("A",n,i,g,1,+f,e+n*FA(o+x),r+i*zA(o+x)),y>.01&&this._add("A",n,i,g,0,+f,v,m)}else{var _=e+n*FA(s),b=r+i*zA(s);this._add("A",n,i,g,+d,+f,_,b)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),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(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),mx=Ete});function Ite(t){var e=t.fill;return e!=null&&e!==Ad}function Rte(t){var e=t.stroke;return e!=null&&e!==Ad}function UA(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof _t){t("opacity",i);return}if(Ite(e)){var a=Lo(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&t("fill-opacity",o)}else t("fill",Ad);if(Rte(e)){var s=Lo(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((n||u!==1)&&t("stroke-width",u),(n||c)&&t("paint-order",c?"stroke":"fill"),(n||f<1)&&t("stroke-opacity",f),e.lineDash){var p=Ah(r),h=p[0],d=p[1];h&&(d=Ote(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}else n&&t("stroke-dasharray",Ad);for(var v=0;v<BA.length;v++){var m=BA[v];if(n||e[m]!==vf[m]){var g=e[m]||vf[m];g&&t(Lte[v],g)}}}else n&&t("stroke",Ad)}var Ad,Ote,BA,Lte,P3=k(()=>{At();Ho();ow();P();Qs();Ad="none",Ote=Math.round;BA=["lineCap","miterLimit","lineJoin"],Lte=V(BA,function(t){return"stroke-"+t.toLowerCase()})});function gx(t){return document.createElementNS(z3,t)}function Rt(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function Nte(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function Pte(t){return"</"+t+">"}function Dd(t,e){e=e||{};var r=e.newline?`
|
|
37
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Nte(o,s)+(o!=="style"?Pt(l):l||"")+(a?""+r+V(a,function(u){return n(u)}).join(r)+r:"")+Pte(o)}return n(t)}function B3(t,e,r){r=r||{};var n=r.newline?`
|
|
38
|
+
`:"",i=" {"+n,a=n+"}",o=V(he(t),function(l){return l+i+V(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=V(he(e),function(l){return"@keyframes "+l+i+V(he(e[l]),function(u){return u+i+V(he(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function kd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function YA(t,e,r,n){return Rt("svg","root",{width:t,height:e,xmlns:z3,"xmlns:xlink":GA,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var z3,GA,F3,V3,HA,Ed=k(()=>{P();cp();z3="http://www.w3.org/2000/svg",GA="http://www.w3.org/1999/xlink",F3="http://www.w3.org/2000/xmlns/",V3="http://www.w3.org/XML/1998/namespace",HA="ecmeta_"});function yx(){return zte++}var zte,WA=k(()=>{zte=0});function Fte(t,e,r){var n=G({},t.shape);G(n,e),t.buildPath(r,n);var i=new mx;return i.reset(Yv(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Vte(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Su]=r+"px "+n+"px")}function H3(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function Ute(t,e,r){var n=t.shape.paths,i={},a,o;if(T(n,function(l){var u=kd(r.zrId);u.animation=!0,Od(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=he(f),h=p.length;if(h){o=p[h-1];var d=f[o];for(var v in d){var m=d[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=H3(i,r);return a.replace(o,s)}}function G3(t){return W(t)?U3[t]?"cubic-bezier("+U3[t]+")":Wu(t)?t:"":""}function Od(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof qo){var s=Ute(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],p=G3(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function v(y){var x=y[1],_=x.length,b={},S={},w={},M="animation-timing-function";function C(nt,Re,Ye){for(var _e=nt.getTracks(),Le=nt.getMaxTime(),dt=0;dt<_e.length;dt++){var Ee=_e[dt];if(Ee.needsAnimate()){var kr=Ee.keyframes,Er=Ee.propName;if(Ye&&(Er=Ye(Er)),Er)for(var Yc=0;Yc<kr.length;Yc++){var xo=kr[Yc],ut=Math.round(xo.time/Le*100)+"%",jt=G3(xo.easing),Yr=xo.rawValue;(W(Yr)||Me(Yr))&&(Re[ut]=Re[ut]||{},Re[ut][Er]=xo.rawValue,jt&&(Re[ut][M]=jt))}}}}for(var A=0;A<_;A++){var E=x[A],O=E.targetName;O?O==="shape"&&C(E,S):!n&&C(E,b)}for(var D in b){var L={};Ba(L,t),G(L,b[D]);var I=Wv(L),R=b[D][M];w[D]=I?{transform:I}:{},Vte(w[D],L),R&&(w[D][M]=R)}var F,z=!0;for(var D in S){w[D]=w[D]||{};var Y=!F,R=S[D][M];Y&&(F=new Jt);var B=F.len();F.reset(),w[D].d=Fte(t,S[D],F);var X=F.len();if(!Y&&B!==X){z=!1;break}R&&(w[D][M]=R)}if(!z)for(var D in w)delete w[D].d;if(!n)for(var A=0;A<_;A++){var E=x[A],O=E.targetName;O==="style"&&C(E,w,function(_e){return Bte[_e]})}for(var ee=he(w),ie=!0,ae,A=1;A<ee.length;A++){var we=ee[A-1],Oe=ee[A];if(w[we][Su]!==w[Oe][Su]){ie=!1;break}ae=w[we][Su]}if(ie&&ae){for(var D in w)w[D][Su]&&delete w[D][Su];e[Su]=ae}if(Ce(ee,function(nt){return he(w[nt]).length>0}).length){var Qe=H3(w,r);return Qe+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yx();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}var U3,Su,Bte,Y3=k(()=>{ta();Ed();VA();pa();Qs();P();BS();Lv();WA();U3={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"},Su="transform-origin";Bte={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"}});function X3(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};W3(n,e,r,!0)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=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||o;l&&(a=Ku(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),W3(n,e,r,!0)}}function W3(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+yx(),r.cssStyleCache[i]=a,r.cssNodes["."+a+(n?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Z3=k(()=>{Ir();WA()});function $3(t){return t&&W(t.src)}function J3(t){return t&&J(t.toDataURL)}function XA(t,e,r,n){UA(function(i,a){var o=i==="fill"||i==="stroke";o&&Hv(a)?jA(e,t,i,n):o&&bp(a)?$A(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),qte(r,t,n)}function ZA(t,e){var r=Fb(e);r&&(r.each(function(n,i){n!=null&&(t[(HA+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[HA+"silent"]="true"))}function q3(t){return ea(t[0]-1)&&ea(t[1])&&ea(t[2])&&ea(t[3]-1)}function Gte(t){return ea(t[4])&&ea(t[5])}function qA(t,e,r){if(e&&!(Gte(e)&&q3(e))){var n=r?10:1e4;t.transform=q3(e)?"translate("+Id(e[4]*n)/n+" "+Id(e[5]*n)/n+")":_E(e)}}function K3(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Id(n[a][0]*r)/r),i.push(Id(n[a][1]*r)/r);e.points=i.join(" ")}function j3(t){return!t.smooth}function Hte(t){var e=V(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Id(s*i)/i)}}}function Wte(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function Q3(t,e){var r=t.style,n=t.shape,i=Yte[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Yv(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&Wte(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new mx),v.reset(u),p.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),a.d=v.getStr()}return qA(a,t.transform),XA(a,r,t,e),ZA(a,t),e.animation&&Od(t,a,e),e.emphasis&&X3(t,a,e),Rt(s,t.id+"",a)}function Xte(t,e){var r=t.style,n=r.image;if(n&&!W(n)&&($3(n)?n=n.src:J3(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),qA(l,t.transform),XA(l,r,t,e),ZA(l,t),e.animation&&Od(t,l,e),Rt("image",t.id+"",l)}}function Zte(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Zr,a=r.x||0,o=SE(r.y||0,ol(i),r.textBaseline),s=bE[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(xS(r)){var u="",f=r.fontStyle,c=yS(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||D_,h=r.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),qA(l,t.transform),XA(l,r,t,e),ZA(l,t),e.animation&&Od(t,l,e),Rt("text",t.id+"",l,void 0,n)}}function KA(t,e){if(t instanceof ce)return Q3(t,e);if(t instanceof _t)return Xte(t,e);if(t instanceof _l)return Zte(t,e)}function qte(t,e,r){var n=t.style;if(wE(n)){var i=TE(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,p=n.shadowBlur,h=Lo(n.shadowColor),d=h.opacity,v=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Rt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Rt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),a[i]=o}e.filter=Sp(o)}}function jA(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Uv(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Gv(i))a="radialGradient",o.cx=Z(i.x,.5),o.cy=Z(i.y,.5),o.r=Z(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Bv(s[u].offset)*100+"%",p=s[u].color,h=Lo(p),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(Rt("stop",u+"",m))}var g=Rt(a,"",o,l),y=Dd(g),x=n.gradientCache,_=x[y];_||(_=n.zrId+"-g"+n.gradientIdx++,x[y]=_,o.id=_,n.defs[_]=Rt(a,_,o,l)),e[r]=Sp(_)}function $A(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(hb(i)){var p=i.imageWidth,h=i.imageHeight,d=void 0,v=i.image;if(W(v)?d=v:$3(v)?d=v.src:J3(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";je(p,m),je(h,m)}else if(p==null||h==null){var g=function(A,E){if(A){var O=A.elm,D=p||E.width,L=h||E.height;A.tag==="pattern"&&(u?(L=1,D/=a.width):f&&(D=1,L/=a.height)),A.attrs.width=D,A.attrs.height=L,O&&(O.setAttribute("width",D),O.setAttribute("height",L))}},y=Up(d,null,t,function(A){l||g(S,A),g(c,A)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Rt("image","img",{href:d,width:p,height:h}),o.width=p,o.height=h}else i.svgElement&&(c=te(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=o.width/a.width):f?(x=1,_=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=Wv(i);b&&(o.patternTransform=b);var S=Rt("pattern","",o,[c]),w=Dd(S),M=n.patternCache,C=M[w];C||(C=n.zrId+"-p"+n.patternIdx++,M[w]=C,o.id=C,S=n.defs[C]=Rt("pattern",C,o,[c])),e[r]=Sp(C)}}function e4(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Rt("clipPath",a,o,[Q3(t,r)])}e["clip-path"]=Sp(a)}var Id,Yte,t4=k(()=>{Qs();At();Ho();wn();xm();VA();P3();Ed();P();pm();Y3();Sl();qr();Z3();kp();Id=Math.round;Yte={circle:[Hte(["cx","cy","r"])],polyline:[K3,j3],polygon:[K3,j3]}});function JA(t){return document.createTextNode(t)}function Cs(t,e,r){t.insertBefore(e,r)}function QA(t,e){t.removeChild(e)}function eD(t,e){t.appendChild(e)}function tD(t){return t.parentNode}function rD(t){return t.nextSibling}function xx(t,e){t.textContent=e}var r4=k(()=>{});function nD(t){return t===void 0}function Da(t){return t!==void 0}function Jte(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function Rd(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Ld(t){var e,r=t.children,n=t.tag;if(Da(n)){var i=t.elm=gx(n);if(bx($te,t),U(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&eD(i,Ld(a))}else Da(t.text)&&!j(t.text)&&eD(i,JA(t.text))}else t.elm=JA(t.text);return t.elm}function i4(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Cs(t,Ld(a),e)}}function _x(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Da(i.tag)){var a=tD(i.elm);QA(a,i.elm)}else QA(t,i.elm)}}function bx(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==jte?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(F3,r,o):r.charCodeAt(3)===n4?n.setAttributeNS(V3,r,o):r.charCodeAt(5)===n4?n.setAttributeNS(GA,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function Qte(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:Rd(o,u)?(Bc(o,u),o=e[++n],u=r[++i]):Rd(s,f)?(Bc(s,f),s=e[--a],f=r[--l]):Rd(o,f)?(Bc(o,f),Cs(t,o.elm,rD(s.elm)),o=e[++n],f=r[--l]):Rd(s,u)?(Bc(s,u),Cs(t,s.elm,o.elm),s=e[--a],u=r[++i]):(nD(c)&&(c=Jte(e,n,a)),p=c[u.key],nD(p)?Cs(t,Ld(u),o.elm):(h=e[p],h.tag!==u.tag?Cs(t,Ld(u),o.elm):(Bc(h,u),e[p]=void 0,Cs(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,i4(t,d,r,i,l)):_x(t,e,n,a))}function Bc(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(bx(t,e),nD(e.text)?Da(n)&&Da(i)?n!==i&&Qte(r,n,i):Da(i)?(Da(t.text)&&xx(r,""),i4(r,null,i,0,i.length-1)):Da(n)?_x(r,n,0,n.length-1):Da(t.text)&&xx(r,""):t.text!==e.text&&(Da(n)&&_x(r,n,0,n.length-1),xx(r,e.text)))}function iD(t,e){if(Rd(t,e))Bc(t,e);else{var r=t.elm,n=tD(r);Ld(e),n!==null&&(Cs(n,e.elm,rD(r)),_x(n,[t],0,0))}return e}var n4,jte,$te,a4=k(()=>{P();Ed();r4();n4=58,jte=120,$te=Rt("","")});function rre(t){return function(){}}function nre(t,e,r,n){var i;if(r&&r!=="none")if(i=Rt("rect","bg",{width:t,height:e,x:"0",y:"0"}),Hv(r))jA({fill:r},i.attrs,"fill",n);else if(bp(r))$A({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=Lo(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var ere,tre,o4,s4=k(()=>{t4();Ed();Qs();P();a4();Mh();ere=0,tre=function(){function t(e,r,n){if(this.type="svg",this.configLayer=rre("configLayer"),this.storage=r,this._opts=n=G({},n),this.root=e,this._id="zr"+ere++,this._oldVNode=YA(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=gx("svg");bx(null,this._oldVNode),i.appendChild(a),e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",iD(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return KA(e,kd(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=kd(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=nre(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Rt("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=V(he(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(Rt("defs","defs",{},u)),e.animation){var f=B3(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Rt("style","stl",{},[],f);o.push(c)}}return YA(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Dd(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(p&&l&&p[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=a[o-1];for(var g=v+1;g<h;g++){var y={};e4(p[g],y,r);var x=Rt("g","clip-g-"+u++,y,[]);(s?s.children:n).push(x),a[o++]=x,s=x}l=p;var _=KA(c,r);_&&(s?s.children:n).push(_)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=as(i,0,n),r=as(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(bp(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},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(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=CE(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();o4=tre});function aD(t){t.registerPainter("svg",o4)}var l4=k(()=>{s4()});function u4(t,e,r){var n=at.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}function Sx(t){return!t.__cursors.get(YS)}function f4(t){var e=t.__cursors.get(YS);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var ire,oD,c4=k(()=>{q();P();nl();Wm();qi();Mh();Dh();Ct();ko();qr();ire=function(t){N(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Sf,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||rl,typeof r=="string"?o=u4(r,n,i):j(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(sp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=f4(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=u4("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new fe(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var b=new fe(0,0,0,0);b.copy(_),o.push(b)}else{for(var S=!1,w=1/0,M=0,C=0;C<o.length;++C){var A=o[C];if(A.intersect(_)){var E=new fe(0,0,0,0);E.copy(A),E.union(_),o[C]=E,S=!0;break}else if(l){u.copy(_),u.union(A);var O=_.width*_.height,D=A.width*A.height,L=u.width*u.height,I=L-O-D;I<w&&(w=I,M=C)}}if(l&&(o[M].union(_),S=!0),!S){var b=new fe(0,0,0,0);b.copy(_),o.push(b)}l||(l=o.length>=s)}}for(var c=f4(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&zt||!d)?h.getPrevPaintRect():null;v&&f(v);var m=d&&(h.__dirty&zt||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=n[p],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var x=p+1;x<o.length;)o[p].intersect(o[x])?(y=!0,o[p].union(o[x]),o.splice(x,1)):x++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(v,m,g,y){if(o.clearRect(v,m,g,y),n&&n!=="transparent"){var x=void 0;if(Ra(n)){var _=n.global||n.__width===g&&n.__height===y;x=_&&n.__canvasGradient||Ch(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=x,n.__width=g,n.__height=y}else N_(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,x=ny(o,n,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=x||n,o.fillRect(v,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,v,m,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&T(i,function(v){d(v.x*c,v.y*c,v.width*c,v.height*c)})},e}(Nt),oD=ire});function ore(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function sre(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function h4(t,e,r,n){var i=new oD(t,e,e.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,d4(i),i}function d4(t){t.__cursorStack=[],t.__cursors=K()}function lre(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function ure(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,lre({key:n})))}function Tx(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function uD(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function Dr(t,e,r){for(var n=t.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=t.layers[a][o];(!r||(!(r&Nd)||s.__builtin__)&&(!(r&fD)||!s.__builtin__)&&(!(r&v4)||s!==t.hoverlayer))&&e(s,a,o,i)}}var p4,wu,sD,are,lD,Nd,fD,v4,Cx,fre,m4,g4=k(()=>{nl();P();c4();ib();Ht();Wm();Dh();ko();Mh();qr();p4=1e5,wu=314159,sD=void 0,are=1,lD=2;Nd=1,fD=2,v4=4,Cx=Nd|v4,fre=function(){function t(e,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||rl,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(sp(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=h4(l,this,wu,Sf);c.initContext(),this._insertLayer(c,wu,Sf,!0),this._domRoot=e}else{this._width=as(e,0,n),this._height=as(e,1,n);var s=this._domRoot=sre(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!j(e)?r={paintAll:!!e}:r=e||{};var n=Z(r.refresh,!0),i=Z(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=lD),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Dr(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},fD),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=sD,n!==sD&&(!r&&n===lD&&(r=this._i.hoverlayer=this._ensureLayer(p4)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),os(a,l,i),u&&(l.style=f)}}a&&($l(a,i),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(p4)},t.prototype.paintOne=function(e,r){Xf(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var i=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)Dr(this._i,function(o){o.afterBrush&&o.afterBrush()},Cx),this._paintHoverList(e);else{var a=this;yp(function(){a._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(wu).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),Dr(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)},Nd)},t.prototype._doPaintList=function(e,r){var n=this,i=!0;return Dr(this._i,function(a){var o=!1;if(Tx(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!Sx(a)?a.createRepaintRects(e,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}Tx(a,function(c){var p=n._paintPerCursor(a,c,e,s,u);i=i&&p})}},Cx),xe.wxa&&Dr(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Sx(e),u=l&&at.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=n[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=lD),i!=null){var d=h.getPaintRect();d&&d.intersect(i)&&(os(s,h,o),h.setPrevPaintRect(d))}else os(s,h,o);if(l){var v=at.getTime()-u;if(v>15){p++;break}}}}$l(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=wu,r=0);var a=uD(this._i,e)[r];return a||(a=h4("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&de(a,this._layerConfig[e],!0),(n||i&&e!==wu)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&ore(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(u=uD(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),uD(a,r)[n]=e,!i&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return Dr(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return Dr(this._i,function(n,i){e.call(r,n,i)},Nd)},t.prototype.eachOtherLayer=function(e,r){return Dr(this._i,function(n,i){e.call(r,n,i)},fD)},t.prototype.getLayers=function(){var e={};return Dr(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}Dr(n._i,function(m){m.__dirty=!1,Tx(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},Cx);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,d=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,d=bR):d=u?_R:Sf,(!s||p!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(p,d),l=null,!s.__builtin__)){Fs("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=ure(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var v=f-l.startIdx;l.startIdx=f,l.drawIdx+=v,l.endIdx+=v}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&zt&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Dr(n._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,x=g.length-1;x>=0;x--){var _=y.get(g[x]);if(!_.used)m.__dirty=!0,y.removeKey(g[x]),g.splice(x,1);else{var b=_.endIdxNew;(Sx(m)?b<_.drawIdx:b!==_.endIdx||!b||e[b-1].id!==_.last)&&(m.__dirty=!0),_.endIdx=_.endIdxNew,_.last=b?e[b-1].id:NaN}}m.__dirty&&(Tx(m,function(S){S.drawIdx=S.startIdx}),n._hoverLayerDirty===sD&&(n._hoverLayerDirty=are))},Cx)},t.prototype.clear=function(){return Dr(this._i,function(e){e.clear(),d4(e)},Nd),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Dr(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?de(n[e],r,!0):n[e]=r,Dr(this._i,function(i,a){de(i,n[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),r!=null&&(i.height=r),e=as(a,0,i),r=as(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",Dr(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(wu).resize(e,r)}return this},t.prototype.clearLayer=function(e){T(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[wu][0].dom;var r=new oD("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;Dr(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];os(n,f,o)}$l(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),m4=fre});function cD(t){t.registerPainter("canvas",m4)}var y4=k(()=>{g4()});var x4=k(()=>{l4();y4()});var _4=k(()=>{x4()});var pD={};Or(pD,{disposeChart:()=>T4,echarts:()=>CT,registerECharts:()=>Ax,renderChart:()=>w4,renderSVG:()=>C4});function Ax(){b4||(b4=!0,lt([NT,tC,vC,WC,vM,CM,HM,gu,fA,XM,mA,CA,QM,$M,eA,FM,PA,mC,qh,OA,cD,aD]))}function w4(t,e,r={}){Ax();let n=Mx.get(e);if(!n){let i=dy(e,r.theme,{renderer:r.renderer??"canvas",width:r.width??t.options.width,height:r.height??t.options.height,devicePixelRatio:r.devicePixelRatio}),a={chart:i,source:t,gridKey:"",cleanup:()=>{}};if(r.autoResize!==!1&&typeof window<"u"){let o=()=>{i.resize(),S4(a)},s=typeof ResizeObserver<"u"?new ResizeObserver(o):void 0;s?s.observe(e):window.addEventListener("resize",o),a.cleanup=()=>{s?.disconnect(),window.removeEventListener("resize",o)}}n=a,Mx.set(e,n)}return n.source=t,n.chart.setOption(t.option,{notMerge:!0,...r.setOption??{}}),n.gridKey=JSON.stringify(t.option.grid),S4(n),n.chart}function S4(t){let e=t.chart.getHeight();if(!e)return;let r=t.source.internals.gridFor(e),n=JSON.stringify(r);n!==t.gridKey&&(t.gridKey=n,t.chart.setOption({grid:r}))}function T4(t){let e=Mx.get(t);e&&(e.cleanup(),e.chart.dispose(),Mx.delete(t))}function C4(t,e={}){Ax();let r=dy(null,void 0,{renderer:"svg",ssr:!0,width:e.width??t.options.width??640,height:e.height??t.options.height??400});r.setOption({...t.option,animation:!1});let n=r.renderToSVGString();return r.dispose(),n}var b4,Mx,Dx=k(()=>{"use strict";kz();yU();KH();L3();_4();b4=!1;Mx=new WeakMap});var Au=Symbol("isopleth.identity"),_D=Symbol("isopleth.indexOf"),V4=new Set(["black","silver","gray","grey","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","transparent","currentcolor","none"]);function Yi(t){if(typeof t!="string")return!1;let e=t.trim().toLowerCase();return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")||e.startsWith("var(")||V4.has(e)}function bD(t){return typeof t=="object"&&t!==null&&"colorStops"in t}function SD(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof Date)&&!ArrayBuffer.isView(t)&&"value"in t}function B4(t){return(Array.isArray(t)||ArrayBuffer.isView(t))&&typeof t!="string"}function Ne(t,e){if(e!=null){if(e===Au)return t;if(e===_D)return t.map((r,n)=>n);if(SD(e))return Ne(t,e.value);if(typeof e=="function")return t.map((r,n)=>e(r,n,t));if(typeof e=="string")return t.map(r=>r?.[e]);if(B4(e)){if(e.length!==t.length)throw new Error(`channel array length ${e.length} does not match data length ${t.length}`);return Array.from(e)}return t.map(()=>e)}}function Vd(t,e){return typeof t=="string"?t:SD(t)?t.label??Vd(t.value):e}function _i(t,e,r){let n=Vd(t);return n&&!n.startsWith("__")&&n!==r&&!/^(x|y|x1|x2|y1|y2|z|fill|stroke)$/.test(n)?n:e}function St(t){if(t){for(let e of t)if(e!=null){if(typeof e=="number"){if(Number.isNaN(e))continue;return"quantitative"}if(e instanceof Date)return Number.isNaN(+e)?void 0:"temporal";if(typeof e=="string"||typeof e=="boolean")return"ordinal";if(typeof e=="bigint")return"quantitative"}}}function gt(t){return t==null||typeof t=="number"&&Number.isNaN(t)||t instanceof Date&&Number.isNaN(+t)}function Bd(t){let e=new Float64Array(t.length);for(let r=0;r<t.length;r++)e[r]=se(t[r]);return e}function se(t){return typeof t=="number"?t:t instanceof Date?+t:typeof t=="bigint"||typeof t=="string"&&t!==""&&!Number.isNaN(Number(t))?Number(t):NaN}function Pe(t){return t==null?null:t instanceof Date?+t:typeof t=="number"&&Number.isNaN(t)?null:t}function Nx(t,e){let r=new Map,n=[];if(e)for(let a of e){let o=Pe(a);o!==null&&!r.has(o)&&(r.set(o,n.length),n.push(a))}let i=new Int32Array(t.length);for(let a=0;a<t.length;a++){let o=Pe(t[a]);if(o===null){i[a]=-1;continue}let s=r.get(o);if(s===void 0){if(e){i[a]=-1;continue}s=n.length,r.set(o,s),n.push(t[a])}i[a]=s}return{codes:i,domain:n}}function Ea(t,e){if(gt(t))return gt(e)?0:1;if(gt(e))return-1;if(t instanceof Date||e instanceof Date)return se(t)-se(e);if(typeof t=="number"&&typeof e=="number")return t-e;let r=String(t),n=String(e);return r<n?-1:r>n?1:0}function Ud(t,e){return Ea(e,t)}function ft(t,e){if(gt(t))return"";if(t instanceof Date||e==="temporal"){let r=t instanceof Date?t:new Date(se(t));return r.getUTCHours()||r.getUTCMinutes()||r.getUTCSeconds()?r.toISOString().replace("T"," ").replace(/:\d\d\.\d{3}Z$/,""):r.toISOString().slice(0,10)}if(typeof t=="number"){if(Number.isInteger(t))return String(t);let r=Math.abs(t);return r>=1e3?t.toLocaleString(void 0,{maximumFractionDigits:0}):r>=10?t.toLocaleString(void 0,{maximumFractionDigits:1}):t.toLocaleString(void 0,{maximumSignificantDigits:3})}return String(t)}var Xd={};Or(Xd,{aggregate:()=>jc,binAssign:()=>Hx,binThresholds:()=>Ux,binThresholdsIn:()=>kD,binThresholdsInterval:()=>Gx,combineCodes:()=>Wx,counts:()=>Yx,cumsum:()=>Zx,diff:()=>jx,impute:()=>_o,nice:()=>AD,normalize:()=>Kx,parseReducer:()=>Kc,pctChange:()=>$x,quantileRank:()=>qx,rank:()=>Wd,suggestedCount:()=>DD,tickIncrement:()=>Bx,ticks:()=>Yd,window:()=>Xx});function Xr(t){let e=0;for(let r=0;r<t.length;r++)Number.isFinite(t[r])&&e++;return e}function Xc(t){let e=0;for(let r=0;r<t.length;r++)Number.isFinite(t[r])&&(e+=t[r]);return e}function nr(t){let e=0,r=0;for(let n=0;n<t.length;n++)Number.isFinite(t[n])&&(e++,r+=t[n]);return e===0?NaN:r/e}function Du(t){let e=NaN;for(let r=0;r<t.length;r++){let n=t[r];Number.isFinite(n)&&(Number.isNaN(e)||n<e)&&(e=n)}return e}function ku(t){let e=NaN;for(let r=0;r<t.length;r++){let n=t[r];Number.isFinite(n)&&(Number.isNaN(e)||n>e)&&(e=n)}return e}function Px(t){let e=0,r=0,n=0;for(let i=0;i<t.length;i++){let a=t[i];if(!Number.isFinite(a))continue;e++;let o=a-r;r+=o/e,n+=o*(a-r)}return e<2?NaN:n/(e-1)}function Ms(t){return Math.sqrt(Px(t))}function As(t){let e=new Float64Array(Xr(t)),r=0;for(let n=0;n<t.length;n++)Number.isFinite(t[n])&&(e[r++]=t[n]);return e.sort()}function Wi(t,e){let r=t.length;if(r===0)return NaN;if(e<=0||r===1)return t[0];if(e>=1)return t[r-1];let n=(r-1)*e,i=Math.floor(n),a=t[i],o=t[Math.min(i+1,r-1)];return a+(o-a)*(n-i)}function Gd(t,e){return Wi(As(t),e)}function Wr(t){return Gd(t,.5)}function Ds(t){let e=Wr(t);if(Number.isNaN(e))return NaN;let r=[];for(let n=0;n<t.length;n++)Number.isFinite(t[n])&&r.push(Math.abs(t[n]-e));return Wr(r)}function wD(t){let e=As(t);if(e.length===0)return NaN;let r=e[0],n=0,i=0;for(;i<e.length;){let a=i;for(;a<e.length&&e[a]===e[i];)a++;a-i>n&&(n=a-i,r=e[i]),i=a}return r}function Zc(t){for(let e=0;e<t.length;e++)if(Number.isFinite(t[e]))return t[e];return NaN}function qc(t){for(let e=t.length-1;e>=0;e--)if(Number.isFinite(t[e]))return t[e];return NaN}function TD(t){let e=As(t);if(e.length===0)return 0;let r=1;for(let n=1;n<e.length;n++)e[n]!==e[n-1]&&r++;return r}function zx(t,e){let r=0,n=0,i=0,a=0,o=0;for(let u=0;u<t.length;u++){let f=t[u],c=e[u];Number.isFinite(f)&&Number.isFinite(c)&&(r++,n+=f,i+=c,a+=f*f,o+=f*c)}if(r<2)return[NaN,NaN];let s=r*a-n*n;if(Math.abs(s)<Number.EPSILON)return[0,i/r];let l=(r*o-n*i)/s;return[l,(i-l*n)/r]}function Fx(t,e){let r=[];for(let a=0;a<t.length;a++)Number.isFinite(t[a])&&Number.isFinite(e[a])&&r.push([t[a],e[a]]);if(r.length<2)return[NaN,NaN];let n=[];for(let a=0;a<r.length;a++)for(let o=a+1;o<r.length;o++){let s=r[o][0]-r[a][0];s!==0&&n.push((r[o][1]-r[a][1])/s)}if(n.length===0)return[0,Wr(r.map(a=>a[1]))];let i=Wr(n);return[i,Wr(r.map(([a,o])=>o-i*a))]}function Vx(t,e){let r=t.length;if(e>=r||r<2)return NaN;let n=nr(t),i=s=>Number.isFinite(t[s])?t[s]-n:0,a=0,o=0;for(let s=0;s<r;s++){let l=i(s);o+=l*l,s+e<r&&(a+=l*i(s+e))}return o===0?NaN:a/o}function U4(t){if(!(t>=0&&t<=1))return NaN;if(t===0)return-1/0;if(t===1)return 1/0;let e=[-39.69683028665376,220.9460984245205,-275.9285104469687,138.357751867269,-30.66479806614716,2.506628277459239],r=[-54.47609879822406,161.5858368580409,-155.6989798598866,66.80131188771972,-13.28068155288572],n=[-.007784894002430293,-.3223964580411365,-2.400758277161838,-2.549732539343734,4.374664141464968,2.938163982698783],i=[.007784695709041462,.3224671290700398,2.445134137142996,3.754408661907416],a=.02425;if(t<a){let s=Math.sqrt(-2*Math.log(t));return(((((n[0]*s+n[1])*s+n[2])*s+n[3])*s+n[4])*s+n[5])/((((i[0]*s+i[1])*s+i[2])*s+i[3])*s+1)}if(t<=1-a){let s=t-.5,l=s*s;return(((((e[0]*l+e[1])*l+e[2])*l+e[3])*l+e[4])*l+e[5])*s/(((((r[0]*l+r[1])*l+r[2])*l+r[3])*l+r[4])*l+1)}let o=Math.sqrt(-2*Math.log(1-t));return-(((((n[0]*o+n[1])*o+n[2])*o+n[3])*o+n[4])*o+n[5])/((((i[0]*o+i[1])*o+i[2])*o+i[3])*o+1)}function CD(t){return U4(.5+t/2)}function ks(t,e){return t==null?e:6-4*Math.min(1,Math.max(0,t))}var He=class extends Error{name="IsoplethBackendError"};var G4=Math.sqrt(50),H4=Math.sqrt(10),Y4=Math.SQRT2;function Hd(t,e,r){let n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=G4?10:a>=H4?5:a>=Y4?2:1,s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(t*u),l=Math.round(e*u),s/u<t&&++s,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(t/u),l=Math.round(e/u),s*u<t&&++s,l*u>e&&--l),l<s&&.5<=r&&r<2?Hd(t,e,r*2):[s,l,u]}function Bx(t,e,r){return Hd(t,e,r)[2]}function Yd(t,e,r){if(!(r>0)||!Number.isFinite(t)||!Number.isFinite(e))return[];if(t===e)return[t];let n=e<t,[i,a,o]=n?Hd(e,t,r):Hd(t,e,r);if(!(a>=i))return[];let s=a-i+1,l=new Array(s);for(let u=0;u<s;u++)l[u]=n?o<0?(a-u)/-o:(a-u)*o:o<0?(i+u)/-o:(i+u)*o;return l}function AD(t,e,r){let n=0;for(;;){let i=Bx(t,e,r);if(i===n||i===0||!Number.isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),n=i}}function DD(t,e,r,n,i){let a=Xr(t);if(a===0||!(r>e))return 1;let o;switch(n){case"count":o=i;break;case"sturges":o=Math.max(1,Math.ceil(Math.log2(a))+1);break;case"freedman-diaconis":case"fd":{let s=As(t),l=Wi(s,.75)-Wi(s,.25);o=l>0?Math.ceil((r-e)/(2*l*Math.pow(a,-1/3))):1;break}case"scott":case"auto":default:{let s=Ms(t);o=s>0?Math.ceil((r-e)/(3.49*s*Math.pow(a,-1/3))):1,n!=="scott"&&(o=Math.min(o,200))}}return Math.max(1,o)}function Ux(t,e,r){let n=Du(t),i=ku(t);return kD(t,n,i,e,r)}function kD(t,e,r,n,i){if(!Number.isFinite(e)||!Number.isFinite(r))return new Float64Array(0);if(e===r)return Float64Array.of(e,e+1);let a=DD(t,e,r,n,i),[o,s]=AD(e,r,a),l=Yd(o,s,a);if(l.length===0)return Float64Array.of(e,r);if(l[l.length-1]>=s)if(r>=s){let f=Bx(o,s,a);Number.isFinite(f)&&(f>0?s=(Math.floor(s/f)+1)*f:f<0&&(s=(Math.ceil(s*-f)+1)/-f))}else l.pop();let u=[o];for(let f of l)f>o&&f<s&&u.push(f);return u.push(s),Float64Array.from(u)}function Gx(t,e){let r=Du(t),n=ku(t);if(!(e>0)||!Number.isFinite(r)||!Number.isFinite(n))return new Float64Array(0);let i=Math.floor(r/e)*e,a=Math.floor(n/e)*e+e,o=Math.round((a-i)/e),s=new Float64Array(o+1);for(let l=0;l<=o;l++)s[l]=i+l*e;return s}function Hx(t,e){let r=e.length-1,n=new Int32Array(t.length);for(let i=0;i<t.length;i++){let a=t[i];if(!Number.isFinite(a)||r<=0||a<e[0]||a>e[r]){n[i]=-1;continue}if(a===e[r]){n[i]=r-1;continue}let o=0,s=r;for(;o<s;){let l=o+s>>>1;e[l+1]<=a?o=l+1:s=l}n[i]=Math.min(o,r-1)}return n}function Kc(t){switch(t){case"count":return e=>Xr(e);case"sum":return e=>Xc(e);case"mean":return e=>nr(e);case"median":return e=>Wr(e);case"min":return e=>Du(e);case"max":return e=>ku(e);case"mode":return e=>wD(e);case"first":return e=>Zc(e);case"last":return e=>qc(e);case"deviation":return e=>Ms(e);case"variance":return e=>Px(e);case"distinct":return e=>TD(e);case"proportion":return(e,r,n)=>n===0?NaN:Xc(e)/n;case"min-index":case"max-index":{let e=t==="min-index";return(r,n)=>{let i=NaN,a=NaN;for(let o=0;o<r.length;o++)Number.isFinite(r[o])&&(Number.isNaN(i)||(e?r[o]<i:r[o]>i))&&(i=r[o],a=n[o]);return a}}default:{let e=/^p(\d\d)$/.exec(t);if(!e)return null;let r=Number(e[1])/100;return n=>Gd(n,r)}}}function jc(t,e,r,n){let i=Kc(n);if(!i)throw new He(`unknown reducer: ${n}`);let a=e.length===0,o=Array.from({length:r},()=>[]),s=Array.from({length:r},()=>[]);for(let f=0;f<t.length;f++){let c=t[f];c<0||c>=r||(o[c].push(a?1:e[f]),s[c].push(f))}let l=0;if(n==="proportion")for(let f of o)l+=Xc(f);let u=new Float64Array(r);for(let f=0;f<r;f++)o[f].length===0?u[f]=n==="count"||n==="sum"?0:NaN:u[f]=i(o[f],s[f],l);return u}function Yx(t,e){let r=new Float64Array(e);for(let n=0;n<t.length;n++){let i=t[n];i>=0&&i<e&&(r[i]+=1)}return r}function Wx(t,e,r,n){let i=new Int32Array(t.length);for(let a=0;a<t.length;a++)i[a]=t[a]<0||r[a]<0?-1:t[a]*n+r[a];return i}function W4(t,e){switch(t){case"start":return 0;case"end":return e-1;case"middle":return Math.floor((e-1)/2);default:throw new He(`unknown anchor: ${t}`)}}function Xx(t,e,r,n,i){if(!(e>=1))throw new He("window k must be >= 1");e=Math.floor(e);let a=t.length,o=W4(r,e),s=new Float64Array(a).fill(NaN);if(n==="sum"||n==="mean"||n==="count"){let u=new Float64Array(a+1),f=new Int32Array(a+1);for(let c=0;c<a;c++){let p=t[c],h=Number.isFinite(p);u[c+1]=u[c]+(h?p:0),f[c+1]=f[c]+(h?1:0)}for(let c=0;c<a;c++){let p=c-o,h=p+e,d=p>=0&&h<=a,v=Math.max(0,p),m=Math.min(a,Math.max(0,h));if(m<=v)continue;let g=f[m]-f[v];if(i&&(!d||g!==e))continue;if(g===0){s[c]=n==="count"?0:NaN;continue}let y=u[m]-u[v];s[c]=n==="sum"?y:n==="mean"?y/g:g}return s}if(n==="min"||n==="max"){let u=n==="max",f=[],c=0,p=0,h=new Int32Array(a+1);for(let d=0;d<a;d++)h[d+1]=h[d]+(Number.isFinite(t[d])?0:1);for(let d=0;d<a;d++){let v=d-o,m=v+e,g=v>=0&&m<=a,y=Math.max(0,v),x=Math.min(a,Math.max(0,m));for(;p<x;){let _=t[p];if(Number.isFinite(_)){for(;f.length>c&&(u?_>=t[f[f.length-1]]:_<=t[f[f.length-1]]);)f.pop();f.push(p)}p++}for(;f.length>c&&f[c]<y;)c++;x<=y||i&&(!g||h[x]-h[y]>0)||f.length>c&&(s[d]=t[f[c]])}return s}let l;if(n==="difference")l=u=>qc(u)-Zc(u);else if(n==="ratio")l=u=>qc(u)/Zc(u);else{let u=Kc(n);if(!u)throw new He(`unknown reducer: ${n}`);l=(f,c)=>u(f,c,0)}for(let u=0;u<a;u++){let f=u-o,c=f+e,p=f>=0&&c<=a,h=Math.max(0,f),d=Math.min(a,Math.max(0,c));if(d<=h)continue;let v=[],m=[],g=!1;for(let y=h;y<d;y++)v.push(t[y]),m.push(y),Number.isFinite(t[y])||(g=!0);i&&(!p||g)||(s[u]=l(v,m))}return s}function Zx(t){let e=new Float64Array(t.length),r=0;for(let n=0;n<t.length;n++)Number.isFinite(t[n])&&(r+=t[n]),e[n]=r;return e}function Wd(t){let e=[];for(let i=0;i<t.length;i++)Number.isFinite(t[i])&&e.push(i);e.sort((i,a)=>t[i]-t[a]);let r=new Float64Array(t.length).fill(NaN),n=0;for(let i=0;i<e.length;i++)i>0&&t[e[i]]!==t[e[i-1]]&&(n=i),r[e[i]]=n;return r}function qx(t){let e=Xr(t),r=e>1?e-1:1,n=Wd(t);for(let i=0;i<n.length;i++)n[i]/=r;return n}function Kx(t,e){let r=new Float64Array(t.length);if(e==="extent"){let i=Du(t),a=ku(t)-i;for(let o=0;o<t.length;o++)r[o]=a===0?0:(t[o]-i)/a;return r}if(e==="deviation"){let i=nr(t),a=Ms(t);for(let o=0;o<t.length;o++)r[o]=a===0?0:(t[o]-i)/a;return r}let n;switch(e){case"first":n=Zc(t);break;case"last":n=qc(t);break;case"min":n=Du(t);break;case"max":n=ku(t);break;case"mean":n=nr(t);break;case"median":n=Wr(t);break;case"sum":n=Xc(t);break;default:{let i=/^p(\d\d)$/.exec(e);if(!i)throw new He(`unknown basis: ${e}`);n=Gd(t,Number(i[1])/100)}}for(let i=0;i<t.length;i++)r[i]=t[i]/n;return r}function jx(t){let e=new Float64Array(t.length).fill(NaN);for(let r=1;r<t.length;r++)e[r]=t[r]-t[r-1];return e}function $x(t){let e=new Float64Array(t.length).fill(NaN);for(let r=1;r<t.length;r++){let n=t[r-1];e[r]=n===0?NaN:(t[r]-n)/Math.abs(n)}return e}function _o(t,e){let r=t.length,n=Float64Array.from(t),i=null;switch(e){case"linear":case"interpolate":{let a=0;for(;a<r;){if(Number.isFinite(n[a])){a++;continue}let o=a;for(;a<r&&!Number.isFinite(n[a]);)a++;let s=a,l=o>0?n[o-1]:NaN,u=s<r?n[s]:NaN;for(let f=o;f<s;f++)Number.isFinite(l)&&Number.isFinite(u)?n[f]=l+(u-l)*(f-o+1)/(s-o+1):Number.isFinite(l)?n[f]=l:Number.isFinite(u)?n[f]=u:n[f]=NaN}return n}case"previous":case"ffill":{let a=NaN;for(let o=0;o<r;o++)Number.isFinite(n[o])?a=n[o]:n[o]=a;return n}case"next":case"bfill":{let a=NaN;for(let o=r-1;o>=0;o--)Number.isFinite(n[o])?a=n[o]:n[o]=a;return n}case"zero":i=0;break;default:{let a=Number(e);if(!Number.isFinite(a))throw new He(`unknown impute method: ${e}`);i=a}}for(let a=0;a<r;a++)Number.isFinite(n[a])||(n[a]=i);return n}var Os=t=>Array.from(t);function X4(t,e){let r=t.length,n=Math.max(1,e%2===0?e+1:e),i=Math.floor(n/2),a=new Float64Array(r);for(let o=0;o<r;o++){let s=Math.max(0,o-i),l=Math.min(r,o+i+1),u=[];for(let f=s;f<l;f++)Number.isFinite(t[f])&&u.push(t[f]);u.sort((f,c)=>f-c),a[o]=Wi(u,.5)}return a}function Z4(t,e){let r=t.length,n=Math.floor(e/2),i=new Float64Array(r),a=(o,s)=>{let l=[];for(let u=o;u<s;u++)l.push(t[u]);return l};if(e%2===1||e===0){for(let o=0;o<r;o++)i[o]=nr(a(Math.max(0,o-n),Math.min(r,o+n+1)));return i}for(let o=0;o<r;o++){let s=nr(a(Math.max(0,o-n),Math.min(r,o+n))),l=nr(a(Math.max(0,o+1-n),Math.min(r,o+n+1)));i[o]=(s+l)/2}return i}function Kd(t,e){let r=t.length;if(e<2)throw new He("period must be >= 2");if(r<2*e)throw new He(`not enough data: needed ${2*e}, got ${r}`);let n=_o(t,"linear"),i=Z4(X4(n,e),e),a=Array.from({length:e},()=>[]);for(let f=0;f<r;f++){let c=n[f]-i[f];Number.isFinite(c)&&a[f%e].push(c)}let o=a.map(f=>f.length?Wr(f):0),s=nr(o);for(let f=0;f<e;f++)o[f]-=s;let l=new Array(r),u=new Array(r);for(let f=0;f<r;f++)l[f]=o[f%e],u[f]=Number.isFinite(t[f])?t[f]-i[f]-l[f]:NaN;return{trend:Os(i),seasonal:l,remainder:u,period:e}}function q4(t){let e=Float64Array.from({length:t.length},(a,o)=>o),[r,n]=zx(e,t),i=new Float64Array(t.length);for(let a=0;a<t.length;a++)i[a]=Number.isFinite(r)?t[a]-(r*a+n):t[a];return i}function K4(t,e,r,n){let i=t.length;if(i<4||r<e)return[];let a=Math.min(r,i-2),o=[];for(let u=0;u<=a+1;u++)o.push(Vx(t,u));let s=[];for(let u=Math.max(2,e);u<=a;u++)o[u]>n&&o[u]>=o[u-1]&&o[u]>=o[u+1]&&s.push([u,o[u]]);s.sort((u,f)=>f[1]-u[1]);let l=[];for(let[u]of s)l.some(f=>u%f===0||f%u===0)||l.push(u);return l}function jd(t,e={}){let r=t.length,n=e.minPeriod??4,i=Math.max(n,e.maxPeriod??Math.min(Math.floor(r/3),512));if(r<3*Math.max(2,n))return{periods:[],strengths:[],method:"none"};let a=q4(_o(t,"linear")),o=e.minStrength??.3,s=e.method==="autocorrelation"?e.threshold??.3:.3,u=K4(a,n,i,s).map(f=>[f,Vx(a,f)]).filter(([,f])=>Number.isFinite(f)&&f>=o);return u=u.filter(([f,c])=>!u.some(([p,h])=>p<f&&f%p===0&&h>=c-.05)),u.sort((f,c)=>c[1]-f[1]),{periods:u.map(f=>f[0]),strengths:u.map(f=>f[1]),method:"autocorrelation"}}function ED(t,e){let r=e!==void 0&&e>=4?Math.max(7,2*e):Math.max(7,Math.floor(t/10)),n=Math.min(r,201,Math.max(1,t));return n%2===0?n+1:n}function OD(t,e){let r=t.length;e=Math.max(1,Math.min(e,Math.max(1,r)));let n=Math.floor((e-1)/2),i=Math.max(Number.EPSILON,Ds(t)*1.4826),a=new Float64Array(r),o=new Float64Array(r),s=new Float64Array(e),l=new Float64Array(e);for(let u=0;u<r;u++){let f=Math.max(0,u-n),c=Math.min(r,f+e);f=Math.min(f,Math.max(0,c-e));let p=0;for(let m=f;m<c;m++)Number.isFinite(t[m])&&(s[p++]=t[m]);let h=s.subarray(0,p).sort(),d=Wi(h,.5);for(let m=0;m<p;m++)l[m]=Math.abs(h[m]-d);let v=Wi(l.subarray(0,p).sort(),.5)*1.4826;a[u]=d,o[u]=v>0&&Number.isFinite(v)?v:i}return[a,o]}function zD(t,e,r,n,i,a){let o=t.map(l=>Number.isFinite(l)&&l>n?1:0),s=[];return o.forEach((l,u)=>l&&s.push(u)),{scores:t,flags:o,lower:e,upper:r,indices:s,threshold:n,method:i,period:a}}function Zd(t,e,r,n,i,a){let o=t.length,s=new Array(o),l=new Array(o),u=new Array(o);for(let f=0;f<o;f++){let c=Number.isFinite(r[f])&&r[f]>0?r[f]:Number.EPSILON;l[f]=e[f]-n*c,u[f]=e[f]+n*c,s[f]=Number.isFinite(t[f])?Math.abs(t[f]-e[f])/c:NaN}return zD(s,l,u,n,i,a)}function Jx(t,e={}){let r=t.length;if(Xr(t)<3)throw new He(`not enough data: needed 3, got ${Xr(t)}`);let n=e.method??"mad";switch(n){case"auto":case"mad":{let i=ks(e.sensitivity,e.threshold??3.5),a=e.window??ED(r,e.period),[o,s]=OD(t,a);return Zd(t,o,s,i,"mad",null)}case"zscore":case"z-score":{let i=ks(e.sensitivity,e.threshold??3),a=nr(t),o=Ms(t);return Zd(t,new Float64Array(r).fill(a),new Float64Array(r).fill(o),i,"zscore",null)}case"iqr":{let i=e.sensitivity!==void 0?2.25-1.5*Math.min(1,Math.max(0,e.sensitivity)):e.threshold??1.5,a=As(t),o=Wi(a,.25),s=Wi(a,.75),l=s-o,u=o-i*l,f=s+i*l,c=Os(t).map(p=>Number.isFinite(p)?l===0?p<u||p>f?1/0:0:p>s?(p-s)/l:p<o?(o-p)/l:0:NaN);return zD(c,new Array(r).fill(u),new Array(r).fill(f),i,"iqr",null)}case"seasonal":case"stl":{let i=ks(e.sensitivity,e.threshold??3.5),a=e.period??jd(t).periods[0]??0;if(a<2||r<2*a)return Jx(t,{...e,method:"mad"});let o=Kd(t,a),s=e.window??ED(r,a),[l,u]=OD(o.remainder,s),f=new Float64Array(r);for(let c=0;c<r;c++)f[c]=o.trend[c]+o.seasonal[c]+l[c];return Zd(t,f,u,i,"seasonal",a)}case"ewma":{let i=ks(e.sensitivity,e.threshold??3),a=Math.min(1,Math.max(.01,e.lambda??.3)),o=Math.max(Number.EPSILON,Ds(t)*1.4826),s=new Float64Array(r),l=new Float64Array(r),u=Wr(t);for(let f=0;f<r;f++){let c=f+1,p=Math.max(Number.EPSILON,o*Math.sqrt(a/(2-a)*(1-Math.pow(1-a,2*c))));s[f]=u,l[f]=p;let h=t[f];Number.isFinite(h)&&Math.abs(h-u)/p<=i&&(u=a*h+(1-a)*u)}return Zd(t,s,l,i,"ewma",null)}default:throw new He(`unknown anomaly method: ${n}`)}}function Qx(t,e,r,n){if(r===null)return[t.map(()=>NaN),t.map(()=>NaN)];let i=CD(r);return[t.map((a,o)=>a-i*e*Math.sqrt(n(o+1))),t.map((a,o)=>a+i*e*Math.sqrt(n(o+1)))]}function e_(t,e){let r=[];for(let i=0;i<t.length;i++)r.push(t[i]-e[i]);let n=Ms(r);return Number.isFinite(n)&&n>0?n:Number.EPSILON}function ID(t,e){return e!==void 0?e>=2&&t.length>=2*e?e:null:jd(t).periods.find(r=>r>=2&&t.length>=3*r)??null}function qd(t,e,r,n){let i=t.length,a=t[i-1],o=n&&i>1?(a-t[0])/(i-1):0,s=new Array(i).fill(NaN);for(let p=1;p<i;p++)s[p]=t[p-1]+o;let l=e_(t,s),u=Array.from({length:e},(p,h)=>a+(h+1)*o),[f,c]=Qx(u,l,r,p=>n?p*(1+p/i):p);return{point:u,lower:f,upper:c,fitted:s,level:r,method:n?"drift":"naive",period:null}}function RD(t,e,r){let n=t.length,i=t[0],a=n>1?t[1]-t[0]:0,o=new Array(n).fill(NaN),s=0;for(let l=1;l<n;l++){let u=i+a;o[l]=u;let f=t[l]-u;s+=f*f;let c=e*t[l]+(1-e)*(i+a);a=r*(c-i)+(1-r)*a,i=c}return[o,i,a,s]}function LD(t,e,r){if(t.length<3)return qd(t,e,r,!1);let n=[.05,.15,.3,.5,.7,.9],i=[1/0,.3,.1];for(let d of n)for(let v of n){if(v>d)continue;let m=RD(t,d,v)[3];m<i[0]&&(i=[m,d,v])}let[,a,o]=i,[s,l,u]=RD(t,a,o),f=e_(t,s),c=Array.from({length:e},(d,v)=>l+(v+1)*u),[p,h]=Qx(c,f,r,d=>{let v=1;for(let m=1;m<d;m++)v+=Math.pow(a+o*m,2);return v});return{point:c,lower:p,upper:h,fitted:s,level:r,method:"holt",period:null}}function ND(t,e,r,n,i,a){let o=t.length,s=a.slice(),l=nr(t.subarray(0,e)),u=(nr(t.subarray(e,Math.min(2*e,o)))-l)/e,f=new Array(o).fill(NaN),c=0;for(let p=0;p<o;p++){let h=s[p%e],d=l+u+h;if(p>=e){f[p]=d;let m=t[p]-d;c+=m*m}let v=r*(t[p]-h)+(1-r)*(l+u);u=n*(v-l)+(1-n)*u,s[p%e]=i*(t[p]-v)+(1-i)*h,l=v}return[f,l,u,s,c]}function PD(t,e,r,n){let i=t.length;if(i<2*n||n<2)throw new He(`not enough data: needed ${2*n}, got ${i}`);let o=Kd(t,n).seasonal.slice(0,n),s=[1/0,.3,.05,.2];for(let x of[.1,.3,.5,.7])for(let _ of[.01,.05,.2])for(let b of[.05,.2,.5]){let S=ND(t,n,x,_,b,o)[4];S<s[0]&&(s=[S,x,_,b])}let[,l,u,f]=s,[c,p,h,d]=ND(t,n,l,u,f,o),v=e_(t,c),m=Array.from({length:e},(x,_)=>p+(_+1)*h+d[(i+_)%n]),[g,y]=Qx(m,v,r,x=>{let _=1;for(let b=1;b<x;b++)_+=Math.pow(l+u*b+(b%n===0?f:0),2);return _});return{point:m,lower:g,upper:y,fitted:c,level:r,method:"holt-winters",period:n}}function FD(t,e={}){let r=e.horizon??10,n=e.level===void 0?.95:e.level===null||e.level<=0?null:e.level;if(!(r>=1))throw new He("horizon must be >= 1");if(n!==null&&!(n>0&&n<1))throw new He("level must be in (0, 1)");if(Xr(t)<2)throw new He(`not enough data: needed 2, got ${Xr(t)}`);let i=_o(t,"linear"),a=e.method??"auto";switch(a){case"naive":return qd(i,r,n,!1);case"drift":return qd(i,r,n,!0);case"holt":case"ets":return LD(i,r,n);case"holt-winters":case"hw":case"mstl":{let o=ID(i,e.period);if(o===null)throw new He(`no seasonal period found for ${a}`);return PD(i,r,n,o)}case"auto":{if(i.length<10)return qd(i,r,n,i.length>=3);let o=ID(i,e.period);if(o!==null&&i.length>=3*o)try{return PD(i,r,n,o)}catch{}return LD(i,r,n)}default:throw new He(`unknown forecast method: ${a}`)}}function j4(t,e,r,n,i="linear"){let a=t.length,o=i==="linear",s=Math.max(o?3:1,e);if(a<2*s)return[];let l=[];for(let _=1;_<a;_++)l.push(t[_]-t[_-1]);let u=Math.max(1e-12,Ds(l)*1.4826/Math.SQRT2),f=Math.max(0,n)*3*(o?2:1)*u*u*Math.log(a),c=new Float64Array(a+1),p=new Float64Array(a+1),h=new Float64Array(a+1),d=new Float64Array(a+1),v=new Float64Array(a+1);for(let _=0;_<a;_++)c[_+1]=c[_]+t[_],p[_+1]=p[_]+t[_]*t[_],h[_+1]=h[_]+_,d[_+1]=d[_]+_*_,v[_+1]=v[_]+_*t[_];let m=(_,b)=>{let S=b-_,w=c[b]-c[_],M=p[b]-p[_]-w*w/S;if(!o)return M;let C=h[b]-h[_],A=d[b]-d[_]-C*C/S,E=v[b]-v[_]-C*w/S;return A<=0?M:Math.max(0,M-E*E/A)},g=(_,b)=>{if(b-_<2*s)return null;let S=m(_,b),w=null;for(let M=_+s;M<=b-s;M++){let C=S-m(_,M)-m(M,b);(w===null||C>w[1])&&(w=[M,C])}return w},y=[],x=[[0,a]];for(;y.length<r;){let _=null;if(x.forEach(([C,A],E)=>{let O=g(C,A);O&&O[1]>f&&(_===null||O[1]>_[2])&&(_=[E,O[0],O[1]])}),_===null)break;let[b,S]=_,[w,M]=x[b];x[b]=[w,S],x.push([S,M]),y.push(S)}return y.sort((_,b)=>_-b)}function VD(t,e={}){let r=e.minSegment??5;if(Xr(t)<2*Math.max(1,r))throw new He(`not enough data: needed ${2*r}, got ${Xr(t)}`);let n=e.method??"auto";if(!["auto","binseg","binary-segmentation","argpcp","normal-gamma"].includes(n))throw new He(`unknown changepoint method: ${n}`);let i=_o(t,"linear"),a=e.model??"linear";if(a!=="mean"&&a!=="linear")throw new He(`unknown changepoint model: ${a}`);let o=j4(i,r,e.maxChangepoints??10,e.penalty??1,a).filter(u=>u>0&&u<i.length),s=[],l=0;for(let u of[...o,i.length])s.push(nr(i.subarray(l,u))),l=u;return{indices:o,segmentMeans:s,method:"binseg"}}function BD(t,e,r){if(t.length!==e.length)throw new He(`length mismatch: expected ${t.length}, got ${e.length}`);let n=0;for(let c=0;c<t.length;c++)Number.isFinite(t[c])&&Number.isFinite(e[c])&&n++;if(n<2)throw new He(`not enough data: needed 2, got ${n}`);let i,a,o;switch(r){case"ols":case"linear":case"auto":[i,a]=zx(t,e),o="ols";break;case"theil-sen":case"theilsen":case"robust":{if(t.length>2e3){let p=t.length/2e3,h=Float64Array.from({length:2e3},(v,m)=>t[Math.floor(m*p)]),d=Float64Array.from({length:2e3},(v,m)=>e[Math.floor(m*p)]);[i,a]=Fx(h,d)}else[i,a]=Fx(t,e);o="theil-sen";break}default:throw new He(`unknown trend method: ${r}`)}let s=Os(t).map(c=>Number.isFinite(c)?i*c+a:NaN),l=nr(e),u=0,f=0;for(let c=0;c<e.length;c++)Number.isFinite(e[c])&&Number.isFinite(s[c])&&(u+=(e[c]-s[c])**2,f+=(e[c]-l)**2);return{slope:i,intercept:a,fitted:s,r2:f>0?1-u/f:NaN,method:o}}function UD(t){let e=Wr(t),r=Ds(t)*1.4826;if(!(r>0)){let n=[];for(let i=0;i<t.length;i++)Number.isFinite(t[i])&&n.push(Math.abs(t[i]-e));r=nr(n)*1.2533}return Os(t).map(n=>Number.isFinite(n)?r>0?(n-e)/r:0:NaN)}function GD(t,e,r){let n=ks(e,r??2.5),i=Os(t).map(l=>Math.log(Math.max(0,l)+1)),a=t.length>=3?UD(i):new Array(t.length).fill(0),o=[],s=[];return a.forEach((l,u)=>{l<-n&&o.push(u),l>n&&s.push(u)}),{scores:a,rare:o,dominant:s,threshold:n}}function HD(t,e,r,n,i,a){if(t.length!==e.length)throw new He(`length mismatch: expected ${t.length}, got ${e.length}`);let o=ks(i,a??3),s=n&&n!==""?n:"median";if(!Kc(s))throw new He(`unknown reducer: ${s}`);let l=Os(jc(t,e,r,s)),u=r>=3?UD(l):new Array(r).fill(0),f=[];u.forEach((v,m)=>Number.isFinite(v)&&Math.abs(v)>o&&f.push(m));let c=Array.from({length:r},()=>[]);for(let v=0;v<t.length;v++)t[v]>=0&&t[v]<r&&c[t[v]].push(e[v]);let p=c.map(v=>{if(Xr(v)<4)return[NaN,NaN];let m=Wr(v),g=Ds(v)*1.4826;return g>0||(g=nr(v.filter(Number.isFinite).map(y=>Math.abs(y-m)))*1.2533),[m,g]}),h=Os(t).map((v,m)=>{let g=e[m];if(v<0||v>=r||!Number.isFinite(g))return NaN;let[y,x]=p[v];return Number.isFinite(y)?x>0?Math.abs(g-y)/x:0:NaN}),d=[];return h.forEach((v,m)=>Number.isFinite(v)&&v>o&&d.push(m)),{aggregates:l,scores:u,categories:f,withinScores:h,within:d,threshold:o}}function YD(t,e,r){if(t.length===0)throw new He("not enough data: needed 1 series");let n=t[0].length;for(let c of t)if(c.length!==n)throw new He(`length mismatch: expected ${n}, got ${c.length}`);if(!["dbscan","mad","auto"].includes(e))throw new He(`unknown series outlier method: ${e}`);let a=6-4*Math.min(.99,Math.max(.01,r??.5)),o=t.map(()=>new Array(n).fill(0)),s=new Array(n).fill(NaN),l=new Array(n).fill(NaN),u=[];for(let c=0;c<n;c++){u.length=0;for(let d of t)u.push(d[c]);let p=Wr(u),h=Ds(u)*1.4826;h>0||(h=Math.abs(nr(u.filter(Number.isFinite).map(d=>Math.abs(d-p))))*.5),Xr(u)>=3&&(s[c]=p-a*h,l[c]=p+a*h);for(let d=0;d<t.length;d++){let v=u[d];o[d][c]=Number.isFinite(v)&&h>0?Math.min(1,Math.abs(v-p)/h/a):0}}let f=[];return o.forEach((c,p)=>{let h=c.filter(d=>d>=1).length/Math.max(1,c.length);t.length>=3&&h>=.1&&f.push(p)}),{outlying:f,scores:o,bandMin:s,bandMax:l,method:"mad"}}var t_={name:"js",capabilities:{ets:!1,mstl:!1,periodogram:!1,bocpd:!1,dbscan:!1},ticks:Yd,binThresholds:Ux,binThresholdsInterval:Gx,binAssign:Hx,aggregate:jc,counts:Yx,combineCodes:Wx,window:Xx,cumsum:Zx,rank:Wd,quantileRank:qx,normalize:Kx,diff:jx,pctChange:$x,impute:_o,anomalies:Jx,forecast:FD,changepoints:VD,seasonality:jd,trend:BD,decompose:Kd,frequencyOutliers:GD,categoryOutliers:HD,seriesOutliers:YD};var $c=t_;function it(){return $c}function WD(t){let e=$c;return $c=t,e}async function J4(t){if(!t)return $c;try{let e=await t;return WD(e),e}catch(e){return typeof console<"u"&&console.warn("[isopleth] backend failed to load, using the JS backend:",e),$c}}var Zi={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};function n_(t){if(!(t>0)&&!(t<0))throw new Error(`invalid number interval: ${t}`);let e=t<0?1/-t:t;return{kind:"number",name:String(e),floor:r=>Math.floor(r/e)*e,offset:(r,n=1)=>r+n*e,range:(r,n)=>{let i=[];for(let a=Math.ceil(r/e)*e;a<n;a+=e)i.push(a);return i}}}function XD(t,e,r){let n=new Date(t);switch(e){case"year":{let i=Math.floor(n.getUTCFullYear()/r)*r;return Date.UTC(i,0,1)}case"quarter":{let i=Math.floor(n.getUTCMonth()/3)*3;return Date.UTC(n.getUTCFullYear(),i,1)}case"month":{let i=Math.floor(n.getUTCMonth()/r)*r;return Date.UTC(n.getUTCFullYear(),i,1)}case"week":{let i=Date.UTC(1970,0,5),a=Zi.week*r;return Math.floor((t-i)/a)*a+i}default:{let i=Zi[e]*r;return Math.floor(t/i)*i}}}function r_(t,e,r,n){let i=new Date(t);switch(e){case"year":return Date.UTC(i.getUTCFullYear()+r*n,i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds());case"quarter":return Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+3*r*n,i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds());case"month":return Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+r*n,i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds());default:return t+Zi[e]*r*n}}function Xi(t){let e=/^\s*(?:(\d+)\s+)?(millisecond|second|minute|hour|day|week|month|quarter|year)s?\s*$/i.exec(t);if(!e)throw new Error(`unknown interval: ${JSON.stringify(t)}`);let r=e[1]?Number(e[1]):1,n=e[2].toLowerCase();return{kind:"time",name:r===1?n:`${r} ${n}s`,floor:i=>XD(i,n,r),offset:(i,a=1)=>r_(i,n,r,a),range:(i,a)=>{let o=[],s=XD(i,n,r);s<i&&(s=r_(s,n,r,1));let l=0;for(;s<a&&l++<1e6;)o.push(s),s=r_(s,n,r,1);return o}}}function bi(t){if(t!=null){if(typeof t=="number")return n_(t);if(typeof t=="string")return Xi(t);if(typeof t.floor=="function"&&typeof t.offset=="function"){if(!t.range){let e=t;return{...e,range:(r,n)=>{let i=[],a=e.floor(r);a<r&&(a=e.offset(a,1));let o=0;for(;a<n&&o++<1e6;)i.push(a),a=e.offset(a,1);return i}}}return t}throw new Error("invalid interval")}}function $d(t){let e=[];for(let r=1;r<t.length;r++){let n=t[r]-t[r-1];n>0&&Number.isFinite(n)&&e.push(n)}return e.length===0?NaN:(e.sort((r,n)=>r-n),e[Math.floor(e.length/2)])}function Eu(t){let e=Zi.day;return t>=360*e?Xi("year"):t>=85*e?Xi("quarter"):t>=27*e?Xi("month"):t>=6.5*e?Xi("week"):t>=.95*e?Xi("day"):t>=.95*Zi.hour?Xi(`${Math.round(t/Zi.hour)} hours`):t>=.95*Zi.minute?Xi(`${Math.round(t/Zi.minute)} minutes`):t>=.95*Zi.second?Xi(`${Math.round(t/Zi.second)} seconds`):n_(t)}function Jd(t,e){return t?e?(r,n)=>{let i=t(r,n);return e(i.data,i.facets)}:t:e}function Oa(t){let e;return[{value:(n,i)=>{if(!e)throw new Error("isopleth: column read before its transform ran");return e[i]},label:t},n=>e=n]}function ZD(t){return typeof t=="object"&&t!==null&&typeof t!="function"&&t.value===void 0&&t.channel===void 0}function qD(t){return(e,r)=>{let n=Ne(e,t);return n?{data:e,facets:r.map(i=>i.filter(a=>!!n[a]))}:{data:e,facets:r}}}function KD(t){if(typeof t=="function"&&t.length!==1){let n=t;return(i,a)=>({data:i,facets:a.map(o=>o.slice().sort((s,l)=>n(i[s],i[l])))})}let e,r="ascending";if(typeof t=="string"||typeof t=="function")e=t;else{let n=t,i=n.channel??"";i.startsWith("-")&&(i=i.slice(1),r="descending"),e=i,n.order&&(r=n.order)}return(n,i)=>{let a=Ne(n,e);if(!a)return{data:n,facets:i};let o=r==="descending"?Ud:Ea;return{data:n,facets:i.map(s=>s.slice().sort((l,u)=>o(a[l],a[u])))}}}function jD(t,e){return{data:t,facets:e.map(r=>r.slice().reverse())}}function mr(t={},e){let{filter:r,sort:n,reverse:i,transform:a,...o}=t,s=a;s===void 0&&(r!=null&&(s=qD(r)),n!=null&&!ZD(n)&&(s=Jd(s,KD(n))),i&&(s=Jd(s,jD)));let l={...o};n!==void 0&&ZD(n)&&(l.sort=n);let u=Jd(s,e);return u&&(l.transform=u),l}function Q4(t,e={}){return mr(e,qD(t))}function eY(t,e={}){return mr(e,KD(t))}function tY(t={}){return mr(t,jD)}function rY({seed:t=42}={},e={}){return mr(e,(r,n)=>{let i=t>>>0,a=()=>(i=i*1664525+1013904223>>>0)/4294967296;return{data:r,facets:n.map(o=>{let s=o.slice();for(let l=s.length-1;l>0;l--){let u=Math.floor(a()*(l+1));[s[l],s[u]]=[s[u],s[l]]}return s})}})}function Is(t,e,r){let n=$D(r);if(n===void 0)return[e.slice()];let i=Ne(t,n);if(!i)return[e.slice()];let a=new Map;for(let o of e){let s=i[o]instanceof Date?+i[o]:i[o],l=a.get(s);l||a.set(s,l=[]),l.push(o)}return[...a.values()]}function $D(t){if(t.z!==void 0&&t.z!==null)return t.z;if(Gt(t.fill))return t.fill;if(Gt(t.stroke))return t.stroke}function Gt(t){return t==null?!1:typeof t=="function"||Array.isArray(t)||ArrayBuffer.isView(t)?!0:typeof t=="string"?!Yi(t):typeof t=="object"?"value"in t:!1}function nY(t){return typeof t=="object"&&t!==null&&("offset"in t||"order"in t||"reverse"in t&&Object.keys(t).length===1)}function QD(t,e,r){let n=t==="y"?r.y:r.x,i=t==="y"?r.x:r.y,{offset:a,order:o,reverse:s}=e,l=r.z??(Gt(r.fill)?r.fill:Gt(r.stroke)?r.stroke:void 0),[u,f]=Oa(t+"1"),[c,p]=Oa(t+"2"),[h,d]=Oa(t),v=(y,x)=>{let _=y.length,b=n===void 0?void 0:Ne(y,n),S=i===void 0?void 0:Ne(y,i),w=l===void 0?void 0:Ne(y,l),M=new Float64Array(_);for(let D=0;D<_;D++)M[D]=b?se(b[D]):1;let C=new Float64Array(_),A=new Float64Array(_),E=[];for(let D of x){let L=new Map;for(let F of D){let z=S?Pe(S[F]):0,Y=L.get(z);Y||L.set(z,Y=[]),Y.push(F)}let I=[...L.values()],R=iY(o,y,M,w,D);if(R)for(let F of I)F.sort(R);if(s)for(let F of I)F.reverse();for(let F of I){let z=0,Y=0;for(let B of F){let X=M[B];if(!Number.isFinite(X)){C[B]=NaN,A[B]=NaN;continue}X<0?(C[B]=Y,Y+=X,A[B]=Y):(C[B]=z,z+=X,A[B]=z)}}aY(a,I,C,A,w),E.push(D)}let O=new Float64Array(_);for(let D=0;D<_;D++)O[D]=(C[D]+A[D])/2;return f(C),p(A),d(O),{data:y,facets:E}},m={...r};t==="y"?(delete m.y,m.y1=u,m.y2=c,m.y=h):(delete m.x,m.x1=u,m.x2=c,m.x=h),m.__stacked={axis:t,offset:a??null,order:o??null};let g=r.__labels??{};return m.__labels={...g,[t]:_i(n,g[t],t)},mr(m,v)}function iY(t,e,r,n,i){if(t!=null){if(typeof t=="function"){if(t.length===2){let o=t;return(s,l)=>o(e[s],e[l])}let a=t;return(o,s)=>JD(a(e[o]),a(e[s]))}if(Array.isArray(t)){let a=new Map(t.map((o,s)=>[Pe(o),s]));return(o,s)=>(a.get(Pe(n?.[o]))??1/0)-(a.get(Pe(n?.[s]))??1/0)}switch(t){case"value":case"x":case"y":return(a,o)=>r[a]-r[o];case"sum":case"appearance":case"inside-out":{if(!n)return;let a=new Map;for(let p of i){let h=Pe(n[p]),d=a.get(h);d||a.set(h,d={sum:0,peak:-1/0,peakAt:0,first:p});let v=r[p];Number.isFinite(v)&&(d.sum+=v,v>d.peak&&(d.peak=v,d.peakAt=p))}if(t==="sum")return(p,h)=>(a.get(Pe(n[p]))?.sum??0)-(a.get(Pe(n[h]))?.sum??0);if(t==="appearance")return(p,h)=>(a.get(Pe(n[p]))?.peakAt??0)-(a.get(Pe(n[h]))?.peakAt??0);let o=[...a.keys()].sort((p,h)=>a.get(p).peakAt-a.get(h).peakAt),s=new Map,l=[],u=[],f=0,c=0;for(let p of o){let h=a.get(p).sum;f<c?(f+=h,l.push(p)):(c+=h,u.push(p))}return[...u.reverse(),...l].forEach((p,h)=>s.set(p,h)),(p,h)=>(s.get(Pe(n[p]))??0)-(s.get(Pe(n[h]))??0)}default:{let a=Ne(e,t);return a?(o,s)=>JD(a[o],a[s]):void 0}}}}function JD(t,e){if(gt(t))return gt(e)?0:1;if(gt(e))return-1;let r=se(t),n=se(e);return Number.isFinite(r)&&Number.isFinite(n)?r-n:String(t)<String(e)?-1:String(t)>String(e)?1:0}function aY(t,e,r,n,i){if(t){if(typeof t=="function"){t(e,r,n,i??[]);return}if(t==="normalize"){for(let a of e){let o=0,s=0;for(let u of a)Number.isFinite(r[u])&&(o=Math.min(o,r[u],n[u]),s=Math.max(s,r[u],n[u]));let l=s-o;for(let u of a)Number.isFinite(r[u])&&(r[u]=l===0?0:(r[u]-o)/l,n[u]=l===0?0:(n[u]-o)/l)}return}if(t==="center"){for(let a of e){let o=1/0,s=-1/0;for(let u of a)Number.isFinite(r[u])&&(o=Math.min(o,r[u],n[u]),s=Math.max(s,r[u],n[u]));if(!Number.isFinite(o))continue;let l=(o+s)/2;for(let u of a)Number.isFinite(r[u])&&(r[u]-=l,n[u]-=l)}return}if(t==="wiggle"){if(!i)return;let a,o=0;for(let s of e){let l=new Map,u=0,f=0;for(let p of s){let h=n[p]-r[p];if(!Number.isFinite(h))continue;let d=Pe(i[p]),v=a?.get(d)??h;f+=(h-v)*(u+h/2),u+=h,l.set(d,h)}let c=a?o-(u>0?f/u:0):0;for(let p of s)Number.isFinite(r[p])&&(r[p]+=c,n[p]+=c);a=l,o=c}}}}function ek(t,e){if(e===void 0){if(t===void 0)return[{},{}];if(nY(t)){let{offset:r,order:n,reverse:i,...a}=t;return[{offset:r,order:n,reverse:i},a]}return[{},t]}return[t??{},e]}function bo(t,e){let[r,n]=ek(t,e);return QD("y",r,n)}function Jc(t,e){let[r,n]=ek(t,e);return QD("x",r,n)}function oY(t,e){let r=bo(t,e);return{...r,y:r.y1,y1:void 0,y2:void 0}}function sY(t,e){let r=bo(t,e);return{...r,y:r.y2,y1:void 0,y2:void 0}}function lY(t,e){let r=Jc(t,e);return{...r,x:r.x1,x1:void 0,x2:void 0}}function uY(t,e){let r=Jc(t,e);return{...r,x:r.x2,x1:void 0,x2:void 0}}function tk(t,e,r){let n=bi(e.interval),i=typeof e.reduce=="string"?e.reduce:"first",a=t==="x"?"y":"x",o=r[t],s=r[a],l=(c,p)=>{let h=Ne(c,o);if(!h)return{data:c,facets:p};let d=St(h)==="temporal",v=s!==void 0?Ne(c,s):void 0,m=[],g=[],y=it();for(let x of p){let _=[];for(let b of Is(c,x,r)){let S=new Map;for(let I of b){let R=se(h[I]);if(!Number.isFinite(R))continue;let F=n.floor(R),z=S.get(F);z||S.set(F,z=[]),z.push(I)}if(S.size===0)continue;let w=[...S.keys()].sort((I,R)=>I-R),M=w[0],C=w[w.length-1];e.domain&&(M=Math.min(M,n.floor(se(e.domain[0]))),C=Math.max(C,n.floor(se(e.domain[1]))));let A=[M,...n.range(n.offset(M,1),n.offset(C,1))],E=c[b[0]],O=new Float64Array(A.length).fill(NaN),D=new Array(A.length);A.forEach((I,R)=>{let F=S.get(I);if(F&&(D[R]=c[F[0]],v)){let z=Float64Array.from(F,Y=>se(v[Y]));O[R]=y.aggregate(Int32Array.from(z,()=>0),z,1,i)[0]}});let L=O;e.fill==="linear"||e.fill==="previous"||e.fill==="next"?L=y.impute(O,e.fill):e.fill==="zero"?L=y.impute(O,"0"):typeof e.fill=="number"&&(L=y.impute(O,String(e.fill))),A.forEach((I,R)=>{let z={...D[R]??E,__interval:d?new Date(I):I,__value:v?Number.isFinite(L[R])?L[R]:null:void 0,__missing:D[R]===void 0};_.push(m.length),m.push(z)})}g.push(_)}return{data:m,facets:g}},u={...r};delete u.interval,u[t]="__interval",s!==void 0&&(u[a]="__value");let f=r.__labels??{};return u.__labels={...f,[t]:_i(o,f[t],t),...s!==void 0?{[a]:_i(s,f[a],a)}:{}},mr(u,l)}function i_(t,e={}){let r=typeof t=="object"&&t!==null&&"interval"in t?t:{interval:t};return tk("x",r,e)}function a_(t,e={}){let r=typeof t=="object"&&t!==null&&"interval"in t?t:{interval:t};return tk("y",r,e)}var fY=0;function Ve(t,e,r={},n=!1){let i=r.id??`${t}-${++fY}`;return{type:t,data:e??[],options:{...r,id:i},id:i,generated:n}}function Qc(t,e){if(e.interval===void 0||e.interval===null)return e;let{interval:r,...n}=e,i={interval:r,reduce:e.reduce,fill:e.fillMissing};return t==="x"?i_(i,n):a_(i,n)}function o_(t){return t.y1!==void 0||t.y2!==void 0?t:bo(t)}function s_(t){return t.x1!==void 0||t.x2!==void 0?t:Jc(t)}function l_(t,e={}){return Ve("line",t,e)}function Ou(t,e={}){return Ve("lineY",t,Qc("x",e))}function u_(t,e={}){return Ve("lineX",t,Qc("y",e))}function cY(t,e={}){return Ve("area",t,e)}function Rs(t,e={}){return Ve("areaY",t,o_(Qc("x",e)))}function f_(t,e={}){return Ve("areaX",t,s_(Qc("y",e)))}function Ls(t,e={}){return Ve("barY",t,o_(e))}function c_(t,e={}){return Ve("barX",t,s_(e))}function ep(t,e={}){return Ve("rectY",t,o_(e))}function p_(t,e={}){return Ve("rectX",t,s_(e))}function h_(t,e={}){return Ve("rect",t,e)}function tp(t,e={}){return Ve("cell",t,e)}function Ns(t,e={}){return Ve("dot",t,Qc("x",e))}var pY=Ns,hY=Ns;function Qd(t,e={}){let r={...e};return r.x===void 0&&r.x1===void 0&&(r.x=Au),Ve("ruleX",t,r)}function ev(t,e={}){let r={...e};return r.y===void 0&&r.y1===void 0&&(r.y=Au),Ve("ruleY",t,r)}function d_(t,e={}){let r={...e};return r.text===void 0&&(r.text=Au),Ve("text",t,r)}var dY=d_,vY=d_;function mY(t,e={}){let r={...e};r.y2===void 0&&r.y!==void 0&&(r.y2=r.y),r.x2===void 0&&r.x!==void 0&&(r.x2=r.x);let n=r.x1!==void 0&&r.x1!==r.x2;return r.x1===void 0&&(r.x1=r.x2),r.y1===void 0&&(r.y1=n?r.y2:0),delete r.y,delete r.x,Ve("differenceY",t,r)}function gY(t,e={}){let r={...e};return r.x2===void 0&&r.x!==void 0&&(r.x2=r.x),r.y2===void 0&&r.y!==void 0&&(r.y2=r.y),r.y1===void 0&&(r.y1=r.y2),r.x1===void 0&&(r.x1=0),delete r.y,delete r.x,Ve("differenceX",t,r)}function yY(t={}){return Ve("frame",[],t)}function xY(t={}){return Ve("gridX",[],t)}function _Y(t={}){return Ve("gridY",[],t)}function tv(t){let e=[],r=n=>{n&&(Array.isArray(n)?n.forEach(r):e.push(n))};return r(t),e}function rv(...t){return tv(t)}var v_={observable10:["#4269d0","#efb118","#ff725c","#6cc5b0","#3ca951","#ff8ab7","#a463f2","#97bbf5","#9c6b4e","#9498a0"],echarts:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],tableau10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category10:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],pastel:["#8dd3c7","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],blues:["#f7fbff","#c6dbef","#6baed6","#2171b5","#08306b"],greens:["#f7fcf5","#c7e9c0","#74c476","#238b45","#00441b"],reds:["#fff5f0","#fcbba1","#fb6a4a","#cb181d","#67000d"],oranges:["#fff5eb","#fdd0a2","#fd8d3c","#d94801","#7f2704"],purples:["#fcfbfd","#dadaeb","#9e9ac8","#6a51a3","#3f007d"],greys:["#ffffff","#d9d9d9","#969696","#525252","#000000"],viridis:["#440154","#414487","#2a788e","#22a884","#7ad151","#fde725"],magma:["#000004","#3b0f70","#8c2981","#de4968","#fe9f6d","#fcfdbf"],inferno:["#000004","#420a68","#932667","#dd513a","#fca50a","#fcffa4"],plasma:["#0d0887","#6a00a8","#b12a90","#e16462","#fca636","#f0f921"],turbo:["#23171b","#4a58dd","#2fd8ca","#a3fd3d","#fa8a24","#900c00"],ylgnbu:["#ffffd9","#c7e9b4","#41b6c4","#225ea8","#081d58"],ylorrd:["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],rdbu:["#67001f","#d6604d","#f7f7f7","#4393c3","#053061"],burd:["#053061","#4393c3","#f7f7f7","#d6604d","#67001f"],brbg:["#543005","#bf812d","#f5f5f5","#35978f","#003c30"],piyg:["#8e0152","#de77ae","#f7f7f7","#7fbc41","#276419"],spectral:["#9e0142","#f46d43","#ffffbf","#66c2a5","#5e4fa2"],rdylgn:["#a50026","#f46d43","#ffffbf","#66bd63","#006837"]};var bY={anomaly:"#e4572e",forecast:"#785db0",changepoint:"#ff994d",trend:"#9498a0",outlier:"#e4572e",rare:"#9498a0",dominant:"#efb118",band:"#785db0",seriesOutlier:"#e4572e",positive:"#3ca951",negative:"#4269d0"};function m_(t,e){if(!t)return v_[e];let r=v_[t.toLowerCase()];if(!r)throw new Error(`unknown color scheme: ${t}`);return r}function rk(t){let e=t.trim(),r=/^#([0-9a-f]{3,8})$/i.exec(e);if(r){let i=r[1];(i.length===3||i.length===4)&&(i=[...i].map(u=>u+u).join(""));let a=parseInt(i.slice(0,2),16),o=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16),l=i.length===8?parseInt(i.slice(6,8),16)/255:1;return[a,o,s,l]}let n=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+)\s*)?\)$/i.exec(e);return n?[Number(n[1]),Number(n[2]),Number(n[3]),n[4]===void 0?1:Number(n[4])]:null}function SY(t){let e=rk(t);if(!e)return .5;let r=n=>{let i=n/255;return i<=.04045?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e[0])+.7152*r(e[1])+.0722*r(e[2])}function g_(t){return SY(t)>.42?"#111318":"#ffffff"}function Ps(t,e){let r=rk(t);return r?`rgba(${r[0]},${r[1]},${r[2]},${(r[3]*e).toFixed(3)})`:t}function nv(t,e=.6,r=.02){return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Ps(t,e)},{offset:1,color:Ps(t,r)}]}}var wY=["x","y","x1","x2","y1","y2","z","fill","stroke","r","text","title","fx","fy"],TY=(t,e)=>`${String(Pe(t))}\0${String(Pe(e))}`;function ik(t,e){let r=new Map,n=new Map,i=(u,f)=>{if(f)for(let c of f){let p=Pe(c);p!==null&&!u.has(p)&&u.set(p,c)}};for(let u of t){let f=u.options.fx??(e.facet?.x!==void 0&&iv(u,e)?e.facet.x:void 0),c=u.options.fy??(e.facet?.y!==void 0&&iv(u,e)?e.facet.y:void 0);i(r,f!==void 0?av(u.data,f):void 0),i(n,c!==void 0?av(u.data,c):void 0)}let a=[...r.values()].sort(nk),o=[...n.values()].sort(nk),s=[],l=new Map;if(a.length===0&&o.length===0)return{keys:[{}],xs:[],ys:[],index:l};for(let u of o.length?o:[void 0])for(let f of a.length?a:[void 0])l.set(TY(f,u),s.length),s.push({fx:f,fy:u});return{keys:s,xs:a,ys:o,index:l}}function iv(t,e){return e.facet?.data===void 0||e.facet.data===t.data}function nk(t,e){let r=t instanceof Date?+t:typeof t=="number"?t:NaN,n=e instanceof Date?+e:typeof e=="number"?e:NaN;return Number.isFinite(r)&&Number.isFinite(n)?r-n:String(t)<String(e)?-1:String(t)>String(e)?1:0}function av(t,e){try{return Ne(t,e)}catch{return}}function y_(t,e,r){let n=t.options,i=n.fx??(r.facet?.x!==void 0&&iv(t,r)?r.facet.x:void 0),a=n.fy??(r.facet?.y!==void 0&&iv(t,r)?r.facet.y:void 0),o=t.data.length,s=Array.from({length:o},(y,x)=>x),l,u=!1;if((i!==void 0||a!==void 0)&&e.keys.length>0&&(e.xs.length||e.ys.length)){let y=i!==void 0?av(t.data,i):void 0,x=a!==void 0?av(t.data,a):void 0;if(y||x){u=!0,l=e.keys.map(()=>[]);for(let _=0;_<o;_++){let b=y?y[_]:void 0,S=x?x[_]:void 0;for(let w=0;w<e.keys.length;w++){let M=e.keys[w];y&&Pe(M.fx)!==Pe(b)||x&&Pe(M.fy)!==Pe(S)||l[w].push(_)}}}else l=e.keys.map(()=>s)}else l=e.keys.map(()=>s);let f={...n};i!==void 0&&f.fx===void 0&&(f.fx=i),a!==void 0&&f.fy===void 0&&(f.fy=a);let c=t.data;if(typeof f.transform=="function"){let y=f.transform(c,l);c=y.data,l=y.facets}let p={},h={},d={};for(let y of wY){let x=f[y];if(x==null)continue;if((y==="fill"||y==="stroke")&&(Yi(x)||bD(x))){d[y]=x;continue}if((y==="fill"||y==="stroke")&&!Gt(x)||y==="r"&&typeof x=="number")continue;p[y]=Ne(c,x);let _=Vd(x);_&&!_.startsWith("__")&&_!==y&&(h[y]=_)}let v=f.__labels;if(v)for(let[y,x]of Object.entries(v))x&&h[y]===void 0&&p[y]&&(h[y]=x);let m={};if(f.channels)for(let[y,x]of Object.entries(f.channels))m[y]=Ne(c,x)??[];let g=r.color?.type==="categorical"||r.color?.type==="ordinal";return{mark:t,data:c,facets:l,channels:p,extra:m,constants:d,labels:h,faceted:u,categoricalColor:g}}function x_(t){let e;for(let r of t){let n=St(r);if(n){if(n==="ordinal")return"ordinal";n==="temporal"?e="temporal":e||(e="quantitative")}}return e}var CY=["x","x1","x2"],MY=["y","y1","y2"],AY=new Set(["barY","areaY","rectY","ruleX"]),DY=new Set(["barX","areaX","rectX","ruleY"]);function ak(t,e,r,n={}){let i=t==="x"?CY:MY,a=[],o;for(let m of[...e.filter(g=>!g.mark.generated),...e.filter(g=>g.mark.generated)])for(let g of i){let y=m.channels[g];y&&(a.push(y),m.mark.generated||(o??=m.labels[g]??m.labels[t]))}let s=n.type==="ordinal"||n.type==="band"||n.type==="point"||n.type==="category"?"ordinal":n.type==="time"||n.type==="utc"?"temporal":n.type==="linear"||n.type==="log"||n.type==="sqrt"?"quantitative":x_(a)??"quantitative";if(n.domain&&n.type===void 0){let m=St(n.domain);m==="ordinal"||n.domain.length>2?s="ordinal":m&&(s=m)}let l=[],u=new Map,f=[1/0,-1/0],c=Array.from({length:r},()=>[1/0,-1/0]);if(s==="ordinal"){if(n.domain)for(let m of n.domain)__(l,u,m);else{let m=kY(t,e,i);if(m)for(let g of m)__(l,u,g);else{let g=[],y=new Set;for(let x of a)for(let _ of x){let b=Pe(_);b===null||y.has(b)||(y.add(b),g.push(_))}g.sort(Ea);for(let x of g)__(l,u,x)}}n.reverse&&(l.reverse(),u.clear(),l.forEach((m,g)=>u.set(Pe(m),g)))}else{for(let m of e)for(let g of i){let y=m.channels[g];y&&m.facets.forEach((x,_)=>{let b=c[_];for(let S of x){let w=se(y[S]);Number.isFinite(w)&&(w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w))}})}for(let m of c)m[0]<f[0]&&(f[0]=m[0]),m[1]>f[1]&&(f[1]=m[1]);n.domain&&n.domain.length===2&&(f[0]=se(n.domain[0]),f[1]=se(n.domain[1]))}let[p,h]=t==="x"?["x1","x2"]:["y1","y2"],d=m=>m.mark.options.__stacked!==void 0||!(m.channels[p]&&m.channels[h]),v=n.zero??(s!=="temporal"&&e.some(m=>(t==="y"?AY:DY).has(m.mark.type)&&!m.mark.generated&&d(m)));return{type:s,domain:l,extent:f,facetExtents:c,label:n.label===null?void 0:n.label??o,zero:v,log:n.type==="log",percent:!!n.percent,options:n,index:u}}function __(t,e,r){let n=Pe(r);n===null||e.has(n)||(e.set(n,t.length),t.push(r))}function kY(t,e,r){for(let n of e){let i=n.mark.options.sort;if(!i||typeof i!="object"||typeof i=="function")continue;let a=i[t];if(a===void 0)continue;let o,s="ascending",l="max",u,f=!1;if(typeof a=="string")o=a;else{let g=a;o=g.value,g.order&&(s=g.order),typeof g.reduce=="string"&&(l=g.reduce),u=g.limit,f=!!g.reverse}o.startsWith("-")&&(o=o.slice(1),s="descending");let c=n.channels[r[0]]??n.channels[t],p=n.channels[o];if(!c||!p)continue;let h=new Map;for(let g=0;g<c.length;g++){let y=Pe(c[g]);if(y===null)continue;let x=h.get(y);x||h.set(y,x={v:c[g],vals:[]}),x.vals.push(se(p[g]))}let d=it(),v=[...h.values()].map(g=>{let y=Float64Array.from(g.vals);return{v:g.v,s:d.aggregate(Int32Array.from(y,()=>0),y,1,l)[0]}});v.sort((g,y)=>s==="descending"?Ud(g.s,y.s):Ea(g.s,y.s));let m=v.map(g=>g.v);return f&&m.reverse(),u!==void 0&&(m=u>=0?m.slice(0,u):m.slice(u)),m}}function EY(t,e={},r){let n=[],i;for(let h of t)if(!h.mark.generated)for(let d of["fill","stroke","z"]){let v=h.channels[d];v&&d!=="z"&&(i??=h.labels[d]),v&&n.push(v)}let a=new Map,o={kind:"none",identity:!1,domain:[],range:[],colorOf:()=>{},extent:[0,1],stops:[],legend:!1,options:e,index:a};if(n.length===0&&!e.domain)return o;let s=e.type==="categorical"||e.type==="ordinal"?"ordinal":e.type?"quantitative":x_(n);if(s==="ordinal"||s===void 0){let h=[],d=new Set,v=b=>{let S=Pe(b);S===null||d.has(S)||(d.add(S),a.set(S,h.length),h.push(b))};if(e.domain)e.domain.forEach(v);else for(let b of n)for(let S of b)v(S);let m=!e.domain&&!e.range&&!e.scheme&&!e.type&&h.length>0&&h.every(b=>Yi(b)),g=e.range??(e.scheme?m_(e.scheme,"observable10"):r.categorical);e.reverse&&(g=g.slice().reverse());let y=new Map;if(e.overrides)for(let[b,S]of Object.entries(e.overrides))y.set(b,S);let x=b=>{let S=Pe(b),w=y.get(S)??y.get(String(S));if(w)return w;if(m&&Yi(b))return b;let M=a.get(S);return M===void 0?e.unknown??r.textMuted:g[M%g.length]},_=h.map(b=>x(b));return{kind:"categorical",identity:m,domain:h,range:_.length?_:g,colorOf:x,extent:[0,1],stops:[],label:e.label??i,legend:e.legend??(!m&&h.length>1),options:e,index:a}}let l=1/0,u=-1/0;for(let h of n)for(let d of h){let v=se(d);Number.isFinite(v)&&(v<l&&(l=v),v>u&&(u=v))}e.domain&&e.domain.length===2&&(l=se(e.domain[0]),u=se(e.domain[1]));let f=e.type==="diverging",c=e.range??(e.scheme?m_(e.scheme,"viridis"):f?r.diverging:r.sequential);if(e.reverse&&(c=c.slice().reverse()),f&&!e.domain){let h=Math.max(Math.abs(l),Math.abs(u));l=-h,u=h}return{kind:"continuous",identity:!1,domain:[],range:c,colorOf:h=>{let d=se(h);if(!Number.isFinite(d))return e.unknown??r.textMuted;let v=u===l?.5:Math.min(1,Math.max(0,(d-l)/(u-l)));return OY(c,v)},extent:[l,u],stops:c,label:e.label??i,legend:e.legend??!0,options:e,index:a}}function OY(t,e){if(t.length===1)return t[0];let r=e*(t.length-1),n=Math.min(t.length-2,Math.floor(r)),i=r-n,a=ok(t[n]),o=ok(t[n+1]);if(!a||!o)return t[n];let s=a.map((l,u)=>Math.round(l+(o[u]-l)*i));return`rgb(${s[0]},${s[1]},${s[2]})`}function ok(t){let e=/^#([0-9a-f]{6})$/i.exec(t.trim());return e?[parseInt(e[1].slice(0,2),16),parseInt(e[1].slice(2,4),16),parseInt(e[1].slice(4,6),16)]:null}function IY(t,e={}){let r=1/0,n=-1/0;for(let o of t){let s=o.channels.r;if(s)for(let l of s){let u=se(l);Number.isFinite(u)&&(u<r&&(r=u),u>n&&(n=u))}}e.domain&&([r,n]=e.domain);let i=e.range??[2,9],a=o=>{let s=se(o);if(!Number.isFinite(s)||n<=0)return i[0];let l=Math.sqrt(Math.max(0,s)/n);return i[0]+l*(i[1]-i[0])};return{extent:[Number.isFinite(r)?r:0,Number.isFinite(n)?n:1],range:i,sizeOf:a}}function sk(t,e,r,n){return{x:ak("x",t,e,r.x),y:ak("y",t,e,r.y),color:EY(t,r.color,n),r:IY(t,r.r)}}function et(t,e){if(gt(e))return null;if(t.type==="ordinal")return e instanceof Date?e.toISOString():String(e);let r=se(e);return Number.isFinite(r)?r:null}function Si(t,e){let r=t.channels.z??t.channels.fill??t.channels.stroke,n=t.channels.z===void 0&&!t.categoricalColor&&(t.channels.fill&&ov(t.channels.fill)||t.channels.stroke&&ov(t.channels.stroke));if(!r||n)return[{key:null,value:void 0,index:e.slice()}];let i=new Map;for(let a of e){let o=Pe(r[a]),s=i.get(o);s||i.set(o,s={key:o,value:r[a],index:[]}),s.index.push(a)}return[...i.values()]}function ov(t){for(let e of t)if(e!=null)return typeof e=="number";return!1}var ck={basis:.5,natural:.4,"catmull-rom":.5,"monotone-x":.3,"bump-x":.5,linear:!1},sv={step:"middle","step-before":"start","step-after":"end"};function S_(t){let e=t.strokeDasharray;if(!e)return"solid";if(Array.isArray(e))return e;let r=String(e).split(/[\s,]+/).map(Number);return r.length===1?r[0]<=2?"dotted":"dashed":r}function uv(t,e){let r=t.mark.options;return e.value!==void 0?ft(e.value):r.name??t.labels.y??t.labels.x??t.mark.id}function zs(t,e,r,n){let i=t.mark.options,a=t.constants[n]??t.constants[n==="fill"?"stroke":"fill"];if(a!==void 0)return a;if(e.value!==void 0&&r.scales.color.kind==="categorical")return r.scales.color.colorOf(e.value);i.id&&t.mark.generated}function So(t,e,r,n){let i=n.seriesStyles.get(e.mark.id)?.get(r.key);i&&(i.color&&(t.itemStyle={...t.itemStyle??{},color:i.color},t.lineStyle&&(t.lineStyle={...t.lineStyle,color:i.color}),t.areaStyle&&(t.areaStyle={...t.areaStyle,color:i.color})),i.opacity!==void 0&&(t.lineStyle&&(t.lineStyle={...t.lineStyle,opacity:i.opacity}),t.areaStyle&&(t.areaStyle={...t.areaStyle,opacity:(t.areaStyle.opacity??1)*i.opacity}),t.itemStyle={...t.itemStyle??{},opacity:i.opacity}),i.width!==void 0&&t.lineStyle&&(t.lineStyle={...t.lineStyle,width:i.width}),i.dashed&&t.lineStyle&&(t.lineStyle={...t.lineStyle,type:"dashed"}),t.z=(t.z??2)+(i.width?1:0))}function gr(t,e,r,n){let i=t.mark.options;return{id:`${t.mark.id}:${r.facet}:${n}`,name:uv(t,e),xAxisIndex:r.facet,yAxisIndex:r.facet,z:2+(i.z2??0),silent:!!i.silent,animation:r.animation,...i.tip===!1||i.silent?{tooltip:{show:!1}}:{},...i.echarts??{}}}function fv(t){let e=[],r=[];t.channels.title&&(e.push("title"),r.push(t.channels.title));for(let[n,i]of Object.entries(t.extra))e.push(n),r.push(i);return{names:e,values:r}}function rp(t,e,r,n){let i=n.highlights.get(e.mark.id)?.get(r);if(!i)return t;let a=Array.isArray(t)?t:t.value,o=Array.isArray(t)?{value:a}:{...t};return i.color&&(o.itemStyle={...o.itemStyle??{},color:i.color,borderColor:i.color}),i.border&&(o.itemStyle={...o.itemStyle??{},borderColor:i.border,borderWidth:2}),i.size&&(o.symbolSize=i.size),i.label&&(o.label={show:!0,formatter:i.label,position:"top",color:i.color??n.theme.insight.anomaly,fontWeight:"bold"}),o}function RY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x,s=t.channels.y,l=[],u=[],f=cv(t);return Si(t,e).forEach((c,p)=>{let h=zs(t,c,r,"stroke"),d=c.index.map(m=>{let g=[et(i,o[m]),et(a,s[m])];return f&&g.push(se(f[m])),rp(g,t,m,r)}),v={...gr(t,c,r,p),type:"line",data:d,showSymbol:!!n.symbols||d.length===1,symbol:n.symbol??"circle",symbolSize:n.r!==void 0&&typeof n.r=="number"?n.r*2:r.theme.mark.dotRadius*2,connectNulls:!!n.connectNulls,lineStyle:{width:n.strokeWidth??r.theme.mark.lineWidth,type:S_(n),cap:"round",join:"round",opacity:n.strokeOpacity??n.opacity??1,...h?{color:h}:{}},itemStyle:{...h?{color:h}:{},borderColor:r.theme.background,borderWidth:r.theme.mark.gap},emphasis:{focus:"series",lineStyle:{width:(n.strokeWidth??r.theme.mark.lineWidth)+1}},blur:{lineStyle:{opacity:.25}},smooth:n.curve?ck[n.curve]??!1:!1,...n.curve&&sv[n.curve]?{step:sv[n.curve]}:{},...d.length>5e3?{sampling:"lttb"}:{}};n.gradient&&h&&typeof h=="string"&&!f&&(v.lineStyle.color=Array.isArray(n.gradient)?LY(n.gradient):h),f&&r.visualTargets.push({seriesId:v.id,dimension:2}),So(v,t,c,r),l.push(v),!t.mark.generated&&n.legend!==!1&&(c.value!==void 0||n.name)&&u.push(v.name)}),{series:l,legend:u,tooltip:"axis"}}function cv(t){if(t.channels.z!==void 0||t.categoricalColor)return;let e=t.channels.fill??t.channels.stroke;return e&&ov(e)?e:void 0}function LY(t){return{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:t.map((e,r)=>({offset:t.length===1?0:r/(t.length-1),color:e}))}}function pk(t,e){let r=t.mark.options.__stacked;if(e.length<=1)return"single";if(!r)return"bands";if(r.offset===null||r.offset===void 0||r.offset==="normalize"){let n=r.order;if(n==null||n==="sum"||n==="appearance"||n==="inside-out"||Array.isArray(n))return"native"}return"bands"}function hk(t,e){let r=n=>{let i=0,a=0;for(let o of n.index){let s=se(e[o]);Number.isFinite(s)&&(i+=Math.abs(s),a++)}return a?i/a:0};return t.slice().sort((n,i)=>r(n)-r(i))}function b_(t,e){for(let r of e){let n=se(t[r]);if(Number.isFinite(n)&&Math.abs(n)>1e-12)return!1}return!0}function lk(t,e,r,n){let i=t.mark.options,{x:a,y:o}=r.scales,s=n?t.channels.y:t.channels.x,l=n?t.channels.x1:t.channels.y1,u=n?t.channels.x2??t.channels.x:t.channels.y2??t.channels.y;if(!u)return{series:[],legend:[],tooltip:"axis"};let f=n?o:a,c=n?a:o,p=Si(t,e),h=pk(t,p);h==="native"&&l&&(p=hk(p,l));let d=p.length>1,v=[],m=[],g=t.constants.stroke;return p.forEach((y,x)=>{let _=zs(t,y,r,"fill"),b=i.fillOpacity??i.opacity??(d?r.theme.mark.stackOpacity:r.theme.mark.areaOpacity),S=i.gradient&&typeof _=="string"?Array.isArray(i.gradient)?NY(i.gradient):d?nv(_,.95,.55):nv(_,Math.max(.45,b*3),.03):_,w=(E,O)=>n?[et(c,O),et(f,s[E])]:[et(f,s[E]),et(c,O)],M=g?{width:i.strokeWidth??r.theme.mark.lineWidth,color:g,opacity:i.strokeOpacity??1,type:S_(i),cap:"round",join:"round"}:d&&h==="native"?{width:r.theme.mark.gap/2,color:r.theme.background,opacity:1}:{width:0,opacity:0},C={type:"line",showSymbol:!1,connectNulls:!!i.connectNulls,smooth:i.curve?ck[i.curve]??!1:!1,...i.curve&&sv[i.curve]?{step:sv[i.curve]}:{},emphasis:{focus:"series"}},A=!l||b_(l,y.index);if(h==="native"||A){let E=y.index.map(D=>{let L=se(u[D]),I=l?se(l[D]):0,R=h==="native"?Number.isFinite(L)&&Number.isFinite(I)?L-I:NaN:L;return rp(w(D,Number.isFinite(R)?R:null),t,D,r)}),O={...gr(t,y,r,x),...C,data:E,...h==="native"?{stack:t.mark.id,stackStrategy:"samesign"}:{},lineStyle:{...M,..._&&!g&&!(d&&h==="native")?{color:_}:{}},areaStyle:{color:S,opacity:i.gradient?1:b,origin:"auto"},itemStyle:_?{color:_}:{},emphasis:{focus:"series"},blur:{areaStyle:{opacity:.2}}};So(O,t,y,r),v.push(O)}else{let E=y.index.map(I=>et(f,s[I])),O=y.index.map(I=>se(l[I])),D=y.index.map(I=>se(u[I])),L=dk(gr(t,y,r,x),E,O,D,n,{color:S??_,opacity:i.gradient?1:b});So(L,t,y,r),v.push(L),g&&v.push({...gr(t,y,r,x),...C,id:`${t.mark.id}:${r.facet}:${x}:edge`,data:y.index.map(I=>w(I,Number.isFinite(se(u[I]))?se(u[I]):null)),lineStyle:M,itemStyle:{color:g},silent:!0,tooltip:{show:!1}})}!t.mark.generated&&i.legend!==!1&&(y.value!==void 0||i.name)&&m.push(uv(t,y))}),{series:v,legend:m,tooltip:"axis"}}function NY(t){return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:t.map((e,r)=>({offset:t.length===1?0:r/(t.length-1),color:e}))}}function dk(t,e,r,n,i,a){let o=e.map((s,l)=>[s,Number.isFinite(r[l])?r[l]:null,Number.isFinite(n[l])?n[l]:null]);return{...t,type:"custom",data:o,encode:i?{x:[1,2],y:0}:{x:0,y:[1,2]},clip:!0,silent:t.silent??!0,tooltip:{show:!1},itemStyle:{color:a.color,opacity:a.opacity},renderItem:(s,l)=>{if(s.dataIndex!==0)return null;let u=s.dataInsideLength??o.length,f=[],c=[],p=[],h=()=>{c.length>1&&f.push([...c,...p.reverse()]),c=[],p=[]};for(let m=0;m<u;m++){let g=l.value(0,m),y=l.value(1,m),x=l.value(2,m);if(g==null||Number.isNaN(g)||y===null||x===null||Number.isNaN(y)||Number.isNaN(x)){h();continue}c.push(i?l.coord([x,g]):l.coord([g,x])),p.push(i?l.coord([y,g]):l.coord([g,y]))}if(h(),f.length===0)return null;let d=l.visual("color"),v=f.map(m=>({type:"polygon",shape:{points:m},style:{fill:d,opacity:l.visual("opacity")??a.opacity,stroke:"none"}}));return v.length===1?v[0]:{type:"group",children:v}}}}function lv(t,e,r,n){let i=t.mark.options,{x:a,y:o}=r.scales,s=n?t.channels.y:t.channels.x,l=n?t.channels.x1:t.channels.y1,u=n?t.channels.x2??t.channels.x:t.channels.y2??t.channels.y,f=n?o:a,c=n?a:o;if(!u)return{series:[],legend:[],tooltip:"axis"};let p=Si(t,e),h=!!i.dodge,d=h?"single":pk(t,p);d==="native"&&l&&(p=hk(p,l));let v=[],m=[],g=cv(t),y=p.some(_=>d==="bands"&&l&&!b_(l,_.index)),x=(_,b)=>n?[b,et(f,s[_])]:[et(f,s[_]),b];return p.forEach((_,b)=>{let S=zs(t,_,r,"fill"),w=!l||b_(l,_.index),M=i.label?{show:!0,position:n?"right":"top",formatter:typeof i.label=="string"?i.label:void 0}:void 0,C=d!=="single"&&!h&&p.length>1,A=r.theme.mark.barRadius,E=i.borderRadius??(C?0:n?[0,A,A,0]:[A,A,0,0]),O={...S?{color:S}:{},opacity:i.fillOpacity??i.opacity??1,borderRadius:E};t.constants.stroke?(O.borderColor=t.constants.stroke,O.borderWidth=i.strokeWidth??1):C&&(O.borderColor=r.theme.background,O.borderWidth=r.theme.mark.gap/2);let D={type:"bar",barCategoryGap:`${Math.round((f.options.padding??.3)*100)}%`,barMaxWidth:i.barMaxWidth??r.theme.mark.barMaxWidth,...y?{barGap:"-100%"}:h?{barGap:"12%"}:{},label:M,itemStyle:O,emphasis:{focus:"series"},blur:{itemStyle:{opacity:.25}}};if(d==="native"||w||h){let L=_.index.map(R=>{let F=se(u[R]),z=l?se(l[R]):0,Y=d==="native"?Number.isFinite(F)&&Number.isFinite(z)?F-z:NaN:F,B=x(R,Number.isFinite(Y)?Y:null);return g&&B.push(se(g[R])),rp(B,t,R,r)}),I={...gr(t,_,r,b),...D,data:L,...d==="native"?{stack:t.mark.id,stackStrategy:"samesign"}:{}};g&&r.visualTargets.push({seriesId:I.id,dimension:2}),So(I,t,_,r),v.push(I)}else{let L=_.index.map(Y=>{let B=se(l[Y]),X=se(u[Y]),ee=[et(f,s[Y]),Number.isFinite(B)?B:null,Number.isFinite(X)?X:null];return g&&ee.push(se(g[Y])),rp(ee,t,Y,r)}),I=t.labels[n?"x":"y"]??"value",[R,F]=n?["x1","x2"]:["y1","y2"],z={...gr(t,_,r,b),type:"custom",data:L,dimensions:[t.labels[n?"y":"x"]??"key",t.labels[R]??`${I} start`,t.labels[F]??`${I} end`,t.labels.fill??"color"],encode:n?{y:0,x:[1,2],tooltip:[1,2]}:{x:0,y:[1,2],tooltip:[1,2]},itemStyle:O,clip:!0,renderItem:zY(n,{band:f.type==="ordinal",padding:f.options.padding??.3,maxWidth:Number(i.barMaxWidth??r.theme.mark.barMaxWidth),radius:i.borderRadius??(C?0:A),label:i.label?typeof i.label=="string"?i.label:!0:!1,labelColor:r.theme.text,font:r.theme.font}),emphasis:{focus:"series"},blur:{itemStyle:{opacity:.25}}};g&&r.visualTargets.push({seriesId:z.id,dimension:3}),So(z,t,_,r),v.push(z)}!t.mark.generated&&i.legend!==!1&&(_.value!==void 0||i.name)&&m.push(uv(t,_))}),{series:v,legend:m,tooltip:"axis"}}function PY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x1,s=t.channels.x2,l=t.channels.y1,u=t.channels.y2??t.channels.y,f=i.type==="ordinal",c=a.type==="ordinal";if(f&&!c&&(o===void 0||s===void 0))return lv(t,e,r,!1);if(c&&!f&&(l===void 0||u===void 0))return lv(t,e,r,!0);if(!o||!s||!u)return{series:[],legend:[],tooltip:"item"};let p=cv(t),h=n.inset??r.theme.mark.gap/2,d=[],v=[],{names:m,values:g}=fv(t);return Si(t,e).forEach((y,x)=>{let _=zs(t,y,r,"fill"),b=y.index.map(w=>{let M={value:[et(i,o[w]),et(i,s[w]),l?et(a,l[w])??0:0,et(a,u[w]),p?se(p[w]):null,...g.map(A=>gt(A[w])?null:ft(A[w]))]},C=r.highlights.get(t.mark.id)?.get(w);return C?.color&&(M.itemStyle={color:C.color}),M}),S={...gr(t,y,r,x),type:"custom",data:b,encode:{x:[0,1],y:[2,3],tooltip:p?[4]:[3],...m.length?{itemName:5}:{}},dimensions:["x1","x2","y1","y2",t.labels.fill??"value",...m],itemStyle:{..._?{color:_}:{},opacity:n.fillOpacity??n.opacity??1,...t.constants.stroke?{borderColor:t.constants.stroke,borderWidth:n.strokeWidth??1}:{}},clip:!0,renderItem:FY(h,!!p),emphasis:{focus:"series"}};p&&r.visualTargets.push({seriesId:S.id,dimension:4}),So(S,t,y,r),d.push(S),!t.mark.generated&&n.legend!==!1&&(y.value!==void 0||n.name)&&v.push(S.name)}),{series:d,legend:v,tooltip:"item"}}function zY(t,e){return(r,n)=>{let i=n.value(0),a=n.value(1),o=n.value(2);if([i,a,o].some(d=>d==null||Number.isNaN(d)))return null;let s=e.band?n.size(t?[0,1]:[1,0])[t?1:0]:16,l=Math.max(1,Math.min(s*(1-e.padding),e.maxWidth)),u=n.coord(t?[a,i]:[i,a]),f=n.coord(t?[o,i]:[i,o]),c=t?{x:Math.min(u[0],f[0]),y:u[1]-l/2,width:Math.abs(f[0]-u[0]),height:l,r:e.radius}:{x:u[0]-l/2,y:Math.min(u[1],f[1]),width:l,height:Math.abs(f[1]-u[1]),r:e.radius},p=ft(o-a),h=e.label===!1?void 0:typeof e.label=="string"?e.label.replace(/\{c\}/g,p):p;return{type:"rect",shape:c,style:{fill:n.visual("color"),opacity:n.visual("opacity")??1,stroke:n.visual("borderColor"),lineWidth:n.visual("borderWidth")??0},...h===void 0?{}:{textContent:{type:"text",style:{text:h,fill:e.labelColor,fontSize:11,fontFamily:e.font}},textConfig:{position:t?"right":"top",distance:4}}}}}function FY(t,e){return(r,n)=>{let i=n.value(0),a=n.value(1),o=n.value(2),s=n.value(3);if([i,a,o,s].some(v=>v==null||Number.isNaN(v)))return null;let l=n.coord([i,s]),u=n.coord([a,o]),f=Math.min(l[0],u[0])+t,c=Math.min(l[1],u[1])+t,p=Math.max(0,Math.abs(u[0]-l[0])-2*t),h=Math.max(0,Math.abs(u[1]-l[1])-2*t),d={fill:n.visual("color"),opacity:n.visual("opacity")??1,stroke:n.visual("borderColor"),lineWidth:n.visual("borderWidth")??0};return{type:"rect",shape:{x:f,y:c,width:p,height:h},style:d,emphasis:{style:{opacity:.8}}}}}function VY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x,s=t.channels.y,l=t.channels.fill??t.channels.stroke;if(!l||!ov(l)||t.categoricalColor)return BY(t,e,r);let{names:u,values:f}=fv(t),c=e.map(d=>{let v={value:[et(i,o[d]),et(a,s[d]),se(l[d]),...f.map(y=>ft(y[d]))]},m=r.scales.color.colorOf(l[d]);n.label&&m&&(v.label={color:g_(m)});let g=r.highlights.get(t.mark.id)?.get(d);return g?.color&&(v.itemStyle={borderColor:g.color,borderWidth:2}),v}),h={...gr(t,{key:null,value:void 0,index:e},r,0),type:"heatmap",data:c,dimensions:["x","y",t.labels.fill??"value",...u],encode:{x:0,y:1,value:2,tooltip:[2,...u.map((d,v)=>3+v)]},label:n.label?{show:!0,fontSize:11,fontFamily:r.theme.font,formatter:d=>ft(d.value[2])}:{show:!1},itemStyle:{borderColor:r.theme.background,borderWidth:n.inset??r.theme.mark.gap,borderRadius:3,opacity:n.fillOpacity??n.opacity??1},emphasis:{itemStyle:{shadowBlur:6,shadowColor:"rgba(0,0,0,0.3)"}}};return r.visualTargets.push({seriesId:h.id,dimension:2}),{series:[h],legend:[],tooltip:"item"}}function BY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x,s=t.channels.y,l=t.channels.fill??t.channels.stroke,{names:u,values:f}=fv(t),c=(n.inset??r.theme.mark.gap)/2,p=[],h=[];return Si(t,e).forEach((d,v)=>{let m=zs(t,d,r,"fill"),g=typeof m=="string"?g_(m):r.theme.text,y=d.index.map(b=>r.highlights.get(t.mark.id)?.get(b)?.color),x=d.index.map(b=>[et(i,o[b]),et(a,s[b]),l?ft(l[b]):"",...f.map(S=>ft(S[b]))]),_={...gr(t,d,r,v),type:"custom",data:x,dimensions:["x","y",t.labels.fill??"value",...u],encode:{x:0,y:1,tooltip:[...l?[2]:[],...u.map((b,S)=>3+S)]},itemStyle:{...m?{color:m}:{},opacity:n.fillOpacity??n.opacity??1},clip:!0,renderItem:(b,S)=>{let w=S.value(0),M=S.value(1);if(Number.isNaN(w)||Number.isNaN(M))return null;let C=S.coord([w,M]),[A,E]=S.size([1,1]),O=y[b.dataIndex],D=x[b.dataIndex][2];return{type:"rect",shape:{x:C[0]-A/2+c,y:C[1]-E/2+c,width:Math.max(0,A-2*c),height:Math.max(0,E-2*c),r:3},style:{fill:S.visual("color"),opacity:S.visual("opacity")??1,...O?{stroke:O,lineWidth:2}:{}},...n.label&&D?{textContent:{type:"text",style:{text:D,fill:g,fontSize:11,fontFamily:r.theme.font}},textConfig:{position:"inside"}}:{}}},emphasis:{focus:"series"}};So(_,t,d,r),p.push(_),!t.mark.generated&&n.legend!==!1&&(d.value!==void 0||n.name)&&h.push(_.name)}),{series:p,legend:h,tooltip:"item"}}function UY(t,e,r){let n=t.mark.options,{x:i,y:a,r:o}=r.scales,s=t.channels.x,l=t.channels.y;if(!s&&!l)return{series:[],legend:[],tooltip:"item"};let u=t.channels.r,f=cv(t),{names:c,values:p}=fv(t),h=[],d=[];return Si(t,e).forEach((v,m)=>{let g=zs(t,v,r,"fill")??zs(t,v,r,"stroke"),y=v.index.map(b=>{let S={value:[s?et(i,s[b]):0,l?et(a,l[b]):0,u?se(u[b]):null,f?se(f[b]):null,...p.map(w=>gt(w[b])?null:ft(w[b]))]};return rp(S,t,b,r)}),x=typeof n.r=="number"?n.r:void 0,_={...gr(t,v,r,m),type:"scatter",data:y,dimensions:["x","y",t.labels.r??"r",t.labels.fill??t.labels.stroke??"color",...c],encode:{x:0,y:1,tooltip:[0,1,...u?[2]:[],...f?[3]:[],...c.map((b,S)=>4+S)]},symbol:n.symbol??"circle",symbolSize:u?b=>o.sizeOf(b[2])*2:(x??r.theme.mark.dotRadius)*2,itemStyle:{...g?{color:g}:{},opacity:n.fillOpacity??n.opacity??1,borderColor:r.theme.background,borderWidth:r.theme.mark.gap/2,...t.constants.stroke?{borderColor:t.constants.stroke,borderWidth:n.strokeWidth??1}:{},...t.constants.fill==="none"?{color:"transparent",borderColor:typeof g=="string"?g:void 0,borderWidth:n.strokeWidth??1.5}:{}},emphasis:{focus:"series",scale:1.4},blur:{itemStyle:{opacity:.2}},...y.length>5e3?{large:!0,largeThreshold:5e3}:{}};f&&r.visualTargets.push({seriesId:_.id,dimension:3}),So(_,t,v,r),h.push(_),!t.mark.generated&&n.legend!==!1&&(v.value!==void 0||n.name)&&d.push(_.name)}),{series:h,legend:d,tooltip:"item"}}function uk(t,e,r,n){let i=t.mark.options,{x:a,y:o}=r.scales,s=n?t.channels.x:t.channels.y,l=n?t.channels.y1:t.channels.x1,u=n?t.channels.y2??t.channels.y:t.channels.x2??t.channels.x;if(!s)return{series:[],legend:[],tooltip:"axis"};let f=n?a:o,c=n?o:a,p=t.channels.text??t.channels.title,h=t.constants.stroke??t.constants.fill??(t.channels.stroke&&r.scales.color.kind==="categorical"?void 0:r.theme.textMuted),d={width:i.strokeWidth??1,type:S_(i),opacity:i.strokeOpacity??i.opacity??1,...h?{color:h}:{}},v={key:null,value:void 0,index:e};if(u===void 0&&l===void 0){let y=e.map(_=>{let b=et(f,s[_]);if(b===null)return null;let S=t.channels.stroke?r.scales.color.colorOf(t.channels.stroke[_]):void 0,w=n?{xAxis:b}:{yAxis:b};return p&&!gt(p[_])&&(w.label={show:!0,formatter:ft(p[_]),position:"insideEndTop"}),S&&(w.lineStyle={color:S}),w}).filter(Boolean);return{series:[{...gr(t,v,r,0),type:"line",data:[],silent:!0,tooltip:{show:!1},markLine:{silent:!0,symbol:"none",animation:r.animation,lineStyle:d,label:{show:!!p,fontSize:11},data:y,z:2+(i.z2??0)}}],legend:[],tooltip:"axis"}}let m=e.map(y=>{let x=et(f,s[y]),_=l?et(c,l[y]):0,b=et(c,u[y]);return{value:n?[x,_,b]:[_,b,x],...p&&!gt(p[y])?{name:ft(p[y])}:{}}});return{series:[{...gr(t,v,r,0),type:"custom",data:m,encode:n?{x:0,y:[1,2]}:{x:[0,1],y:2},clip:!0,renderItem:(y,x)=>{let _=[x.value(0),x.value(1),x.value(2)];if(_.some(w=>w===null||Number.isNaN(w)))return null;let b=n?x.coord([_[0],_[1]]):x.coord([_[0],_[2]]),S=n?x.coord([_[0],_[2]]):x.coord([_[1],_[2]]);return{type:"line",shape:{x1:b[0],y1:b[1],x2:S[0],y2:S[1]},style:{stroke:d.color??x.visual("color"),lineWidth:d.width,opacity:d.opacity,lineDash:d.type==="dashed"?[6,4]:d.type==="dotted"?[2,3]:Array.isArray(d.type)?d.type:void 0,fill:"none"}}},itemStyle:{opacity:d.opacity}}],legend:[],tooltip:"item"}}function GY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x,s=t.channels.y,l=t.channels.text,u=t.constants.fill??t.constants.stroke,f=e.filter(h=>!gt(l[h])).map(h=>({value:[o?et(i,o[h]):0,s?et(a,s[h]):0],label:{formatter:typeof n.label=="function"?n.label(t.data[h],h):ft(l[h])},...t.channels.fill?{itemStyle:{color:r.scales.color.colorOf(t.channels.fill[h])}}:{}}));return{series:[{...gr(t,{key:null,value:void 0,index:e},r,0),type:"scatter",data:f,symbolSize:1,silent:n.silent??!0,tooltip:{show:!1},itemStyle:{color:"transparent"},label:{show:!0,position:n.position??"top",offset:[n.dx??0,n.dy??0],fontSize:n.fontSize??11,color:u??r.theme.text,fontFamily:r.theme.font,fontWeight:n.fontWeight,textBorderColor:Ps(r.theme.background,.85),textBorderWidth:2},labelLayout:{hideOverlap:!0}}],legend:[],tooltip:"item"}}function HY(t,e,r){let n=t.mark.options,{x:i,y:a}=r.scales,o=t.channels.x1,s=t.channels.x2,l=t.channels.y1,u=t.channels.y2,f=[],c=n.positiveFill??r.theme.insight.positive,p=n.negativeFill??r.theme.insight.negative,h=n.fillOpacity??.5;return Si(t,e).forEach((d,v)=>{let m=d.index.map(O=>se(s[O])),g=d.index.map(O=>se(u[O])),y=d.index.map(O=>[se(o[O]),se(l[O])]).filter(O=>Number.isFinite(O[0])&&Number.isFinite(O[1])).sort((O,D)=>O[0]-D[0]),x=d.index.every(O=>se(o[O])===se(s[O])),_=x?d.index.map(O=>se(l[O])):m.map(O=>YY(y,O)),b=[],S=[],w=[];for(let O=0;O<m.length;O++){if(O>0){let D=g[O-1]-_[O-1],L=g[O]-_[O];if(Number.isFinite(D)&&Number.isFinite(L)&&D*L<0){let I=D/(D-L);b.push(m[O-1]+I*(m[O]-m[O-1]));let R=g[O-1]+I*(g[O]-g[O-1]);S.push(R),w.push(R)}}b.push(m[O]),S.push(g[O]),w.push(_[O])}let M=O=>i.type==="temporal"||i.type==="quantitative"?O:et(i,s[d.index[0]]),C=b.map(O=>M(O)),A=(O,D,L,I,R,F)=>dk({...gr(t,d,r,v),id:`${t.mark.id}:${r.facet}:${v}:${F}`,name:O,z:1},C,D,L,!1,{color:I,opacity:R});f.push(A("positive",w.map((O,D)=>Math.min(O,S[D])),S,c,n.positiveFillOpacity??h,"pos")),f.push(A("negative",S,w.map((O,D)=>Math.max(O,S[D])),p,n.negativeFillOpacity??h,"neg"));let E=t.constants.stroke??r.theme.text;f.push({...gr(t,d,r,v),type:"line",data:m.map((O,D)=>[M(O),Number.isFinite(g[D])?g[D]:null]),showSymbol:!1,lineStyle:{width:n.strokeWidth??r.theme.mark.lineWidth,color:E,opacity:n.strokeOpacity??1,cap:"round",join:"round"},itemStyle:{color:E},emphasis:{focus:"series"}}),(!x||n.stroke===void 0)&&f.push({...gr(t,d,r,v),id:`${t.mark.id}:${r.facet}:${v}:cmp`,name:`${uv(t,d)} (comparison)`,type:"line",data:m.map((O,D)=>[M(O),Number.isFinite(_[D])?_[D]:null]),showSymbol:!1,lineStyle:{width:1,color:E,opacity:.5,type:"dashed"},itemStyle:{color:E},tooltip:{show:!1},silent:!0})}),{series:f,legend:[],tooltip:"axis"}}function YY(t,e){if(t.length===0||!Number.isFinite(e))return NaN;if(e<t[0][0]||e>t[t.length-1][0])return NaN;let r=0,n=t.length-1;for(;n-r>1;){let l=r+n>>1;t[l][0]<=e?r=l:n=l}let[i,a]=t[r],[o,s]=t[n];return o===i?a:a+(s-a)*(e-i)/(o-i)}function vk(t,e,r){let n=t.facets[e]??[],i=t.mark.type,a={...r,facet:e};switch(i){case"line":case"lineY":case"lineX":return t.channels.x&&t.channels.y?RY(t,n,a):fk();case"area":case"areaY":return lk(t,n,a,!1);case"areaX":return lk(t,n,a,!0);case"barY":return lv(t,n,a,!1);case"barX":return lv(t,n,a,!0);case"rectY":case"rectX":case"rect":return PY(t,n,a);case"cell":return VY(t,n,a);case"dot":return UY(t,n,a);case"ruleX":return uk(t,n,a,!0);case"ruleY":return uk(t,n,a,!1);case"text":return GY(t,n,a);case"differenceY":case"differenceX":return HY(t,n,a);default:return fk()}}function fk(){return{series:[],legend:[],tooltip:"axis"}}function mk(t){return t.type==="barY"||t.type==="barX"||t.type==="cell"||t.type==="rectY"||t.type==="rectX"}var WY=new Set(["line","lineY","lineX","area","areaY","dot","barY","rectY"]),w_=new Set(["barY","barX","rectY","rectX"]);function gk(t,e){let r={};if(!t)return r;for(let n of["anomalies","forecast","changepoints","seasonality","trend","frequencyOutliers","categoryOutliers","seriesOutliers"]){let i=t[n];if(!i)continue;let a=i===!0?{}:{...i};a.target!==void 0&&!(Array.isArray(a.target)?a.target:[a.target]).includes(e)||(r[n]=a)}return r}function XY(t,e){let r=t.channels.x,n=t.channels.y1,i=t.channels.y2,a=t.channels.y;if(!r)return[];let o=!!t.mark.options.__stacked,s=St(r)==="temporal";if(St(r)==="ordinal")return[];let l=[];for(let u of Si(t,e)){let f=u.index.filter(h=>Number.isFinite(se(r[h]))).sort((h,d)=>se(r[h])-se(r[d])),c=Float64Array.from(f,h=>se(r[h])),p=Float64Array.from(f,h=>{if(o&&n&&i){let v=se(n[h]),m=se(i[h]);return Number.isFinite(v)&&Number.isFinite(m)?m-v:NaN}let d=i??a;return d?se(d[h]):NaN});f.length!==0&&l.push({index:f,x:c,y:p,temporal:s,key:u.key,name:u.value!==void 0?ft(u.value):t.mark.id,value:u.value})}return l}var cr=(t,e)=>e?new Date(t):t,wi;function yk(t,e,r,n){wi=n.insight;let i={marks:[],insights:[],highlights:new Map,seriesStyles:new Map,notes:[],warnings:[]},a=it();for(let o of t){if(o.mark.generated)continue;let s={...gk(r.insights,o.mark.id),...gk(o.mark.options.insights,o.mark.id)};if(Object.keys(s).length===0)continue;let l=o.faceted?o.facets.map((u,f)=>f):[0];for(let u of l){let f=o.facets[u]??[],c=o.faceted?e.keys[u]:{},p=v=>({...v,...c.fx!==void 0?{fx:c.fx}:{},...c.fy!==void 0?{fy:c.fy}:{}}),h={...c.fx!==void 0?{fx:"fx"}:{},...c.fy!==void 0?{fy:"fy"}:{}},d=WY.has(o.mark.type)?XY(o,f):[];for(let[v,m]of Object.entries(s))try{switch(v){case"anomalies":for(let g of d)ZY(o,g,{...m,kind:v},i,p,h,a.name);break;case"forecast":for(let g of d)qY(o,g,{...m,kind:v},i,p,h,a.name);break;case"changepoints":for(let g of d)KY(o,g,{...m,kind:v},i,p,h,a.name);break;case"seasonality":for(let g of d)jY(o,g,{...m,kind:v},i,a.name);break;case"trend":for(let g of d)$Y(o,g,{...m,kind:v},i,p,h,a.name);break;case"frequencyOutliers":QY(o,f,{...m,kind:v},i,p,h,a.name);break;case"categoryOutliers":e6(o,f,{...m,kind:v},i,p,h,a.name);break;case"seriesOutliers":t6(o,d,{...m,kind:v},i,p,h,a.name);break}}catch(g){i.warnings.push(`${v} on ${o.mark.id}: ${g instanceof Error?g.message:String(g)}`)}}}return i}function To(t,e){t.insights.push(e),t.notes.push(e.summary)}function wo(t,e){return e.value!==void 0?` (${e.name})`:""}function np(t,e,r,n){let i=t.highlights.get(e);i||t.highlights.set(e,i=new Map),i.set(r,{...i.get(r)??{},...n})}function ZY(t,e,r,n,i,a,o){if(e.y.filter(Number.isFinite).length<8)return;let s=it().anomalies(e.y,{method:r.method,sensitivity:r.sensitivity,threshold:r.threshold,window:r.window,period:r.period,lambda:r.lambda}),l=r.color??wi.anomaly,u=s.indices.map(p=>i({x:cr(e.x[p],e.temporal),y:e.y[p],score:s.scores[p],expected:(s.lower[p]+s.upper[p])/2,series:e.name})),f=s.indices.slice(0,3).map(p=>ft(cr(e.x[p],e.temporal))),c=s.indices.length;if(To(n,{kind:"anomalies",mark:t.mark.id,series:e.value,method:s.method,backend:o,data:s,summary:c===0?`no anomalies${wo(t,e)}`:`${c} anomal${c===1?"y":"ies"}${wo(t,e)} at ${f.join(", ")}${c>3?", \u2026":""}`}),r.show!==!1){if(r.band!==!1){let p=e.index.map((h,d)=>i({x:cr(e.x[d],e.temporal),lower:s.lower[d],upper:s.upper[d]}));n.marks.push(Ve("areaY",p,{...a,x:"x",y1:"lower",y2:"upper",fill:wi.band,fillOpacity:.07,silent:!0,legend:!1,id:`${t.mark.id}:anomaly-band:${e.key??""}`,z2:-1},!0))}u.length&&n.marks.push(Ve("dot",u,{...a,x:"x",y:"y",fill:l,stroke:"#fff",strokeWidth:1,r:5,id:`${t.mark.id}:anomalies:${e.key??""}`,name:"anomaly",channels:{score:p=>`z = ${ft(p.score)}`},z2:5},!0));for(let p of s.indices)np(n,t.mark.id,e.index[p],{color:l,size:10})}}function qY(t,e,r,n,i,a,o){if(e.y.filter(Number.isFinite).length<5)return;let s=r.horizon??10,l=r.level===void 0?.95:r.level,u=it().forecast(e.y,{method:r.method,horizon:s,level:l,period:r.period}),f=[];o==="js"&&(r.method==="ets"||r.method==="mstl")&&f.push(`${r.method} needs the wasm backend; used ${u.method}`);let c=$d(e.x),p=e.x[e.x.length-1],h=e.temporal?Eu(c):void 0,d=[],v=p;for(let x=0;x<s;x++)v=h?h.offset(v,1):v+(Number.isFinite(c)?c:1),d.push(v);let m=r.color??wi.forecast,g=e.y[e.y.length-1];if(To(n,{kind:"forecast",mark:t.mark.id,series:e.value,method:u.method,backend:o,data:{...u,x:d.map(x=>cr(x,e.temporal))},summary:`forecast${wo(t,e)}: ${u.method}, ${s} steps${u.level?`, ${Math.round(u.level*100)}% interval`:""}${u.period?`, period ${u.period}`:""}`,warnings:f.length?f:void 0}),r.show===!1)return;let y=[i({x:cr(p,e.temporal),y:Number.isFinite(g)?g:null}),...d.map((x,_)=>i({x:cr(x,e.temporal),y:u.point[_]}))];if(u.level){let x=d.map((_,b)=>i({x:cr(_,e.temporal),lower:u.lower[b],upper:u.upper[b]}));x.unshift(i({x:cr(p,e.temporal),lower:Number.isFinite(g)?g:null,upper:Number.isFinite(g)?g:null})),n.marks.push(Ve("areaY",x,{...a,x:"x",y1:"lower",y2:"upper",fill:m,fillOpacity:.15,silent:!0,legend:!1,id:`${t.mark.id}:forecast-band:${e.key??""}`,z2:-1},!0))}if(n.marks.push(Ve("lineY",y,{...a,x:"x",y:"y",stroke:m,strokeWidth:1.5,strokeDasharray:"5 3",id:`${t.mark.id}:forecast:${e.key??""}`,name:`forecast (${u.method})`,z2:2},!0)),r.shade!==!1&&n.marks.push(Ve("ruleX",[i({x:cr(p,e.temporal)})],{...a,x:"x",stroke:m,strokeOpacity:.5,strokeDasharray:"2 2",id:`${t.mark.id}:forecast-start:${e.key??""}`},!0)),r.fitted){let x=e.index.map((_,b)=>i({x:cr(e.x[b],e.temporal),y:Number.isFinite(u.fitted[b])?u.fitted[b]:null}));n.marks.push(Ve("lineY",x,{...a,x:"x",y:"y",stroke:m,strokeOpacity:.5,strokeWidth:1,id:`${t.mark.id}:fitted:${e.key??""}`},!0))}}function KY(t,e,r,n,i,a,o){if(e.y.filter(Number.isFinite).length<10)return;let s=it().changepoints(e.y,{method:r.method,model:r.model,minSegment:r.minSegment,maxChangepoints:r.maxChangepoints,penalty:r.penalty}),l=r.color??wi.changepoint,u=s.indices.length,f=s.indices.slice(0,3).map(c=>ft(cr(e.x[c],e.temporal)));if(To(n,{kind:"changepoints",mark:t.mark.id,series:e.value,method:s.method,backend:o,data:{...s,x:s.indices.map(c=>cr(e.x[c],e.temporal))},summary:u===0?`no changepoints${wo(t,e)}`:`${u} changepoint${u===1?"":"s"}${wo(t,e)} at ${f.join(", ")}${u>3?", \u2026":""}`}),!(r.show===!1||u===0)&&(n.marks.push(Ve("ruleX",s.indices.map(c=>i({x:cr(e.x[c],e.temporal)})),{...a,x:"x",stroke:l,strokeDasharray:"4 2",strokeWidth:1.5,id:`${t.mark.id}:changepoints:${e.key??""}`,z2:2},!0)),r.segments!==!1)){let c=[0,...s.indices,e.x.length-1],p=s.segmentMeans.map((h,d)=>i({x1:cr(e.x[c[d]],e.temporal),x2:cr(e.x[Math.min(c[d+1],e.x.length-1)],e.temporal),y:h}));n.marks.push(Ve("ruleY",p,{...a,y:"y",x1:"x1",x2:"x2",stroke:l,strokeOpacity:.8,strokeWidth:1.5,id:`${t.mark.id}:segments:${e.key??""}`,z2:2},!0))}}function jY(t,e,r,n,i){if(e.y.filter(Number.isFinite).length<12)return;let a=it().seasonality(e.y,{method:r.method,minPeriod:r.minPeriod,maxPeriod:r.maxPeriod,threshold:r.threshold,minStrength:r.minStrength}),o=$d(e.x),s=e.temporal&&Number.isFinite(o)?Eu(o).name:void 0,l=u=>{if(!s)return String(u);let c={"day:7":"weekly","day:365":"yearly","day:366":"yearly","month:12":"yearly","month:3":"quarterly","hour:24":"daily","hour:168":"weekly","minute:60":"hourly","week:52":"yearly","quarter:4":"yearly"}[`${s}:${u}`];return c?`${u} ${s}s (${c})`:`${u} ${s}${u===1?"":"s"}`};To(n,{kind:"seasonality",mark:t.mark.id,series:e.value,method:a.method,backend:i,data:a,summary:a.periods.length===0?`no seasonality${wo(t,e)}`:`seasonality${wo(t,e)}: period ${l(a.periods[0])} (strength ${a.strengths[0].toFixed(2)})${a.periods.length>1?`, also ${a.periods.slice(1,3).map(l).join(", ")}`:""}`})}function $Y(t,e,r,n,i,a,o){if(e.y.filter(Number.isFinite).length<3)return;let s=it().trend(e.x,e.y,r.method??"ols"),l=r.color??wi.trend,u=s.slope*(e.x[e.x.length-1]-e.x[0]);if(To(n,{kind:"trend",mark:t.mark.id,series:e.value,method:s.method,backend:o,data:s,summary:`trend${wo(t,e)}: ${u>=0?"+":""}${ft(u)} ${e.temporal?"over the period":"across the x range"} (R\xB2 ${Number.isFinite(s.r2)?s.r2.toFixed(2):"\u2013"})`}),r.show===!1)return;let f=[0,e.x.length-1].map(c=>i({x:cr(e.x[c],e.temporal),y:s.fitted[c]}));n.marks.push(Ve("lineY",f,{...a,x:"x",y:"y",stroke:l,strokeDasharray:"6 3",strokeWidth:1.5,id:`${t.mark.id}:trend:${e.key??""}`,name:`trend (${s.method})`,z2:2},!0))}function JY(t,e){let r=t.mark.type==="barX"||t.mark.type==="rectX",n=r?t.channels.y:t.channels.x;if(!n||St(n)!=="ordinal")return;let i=r?t.channels.x1:t.channels.y1,a=r?t.channels.x2??t.channels.x:t.channels.y2??t.channels.y;if(!a)return;let o=new Map;for(let l of e){let u=Pe(n[l]);if(u===null)continue;let f=o.get(u);f||o.set(u,f={v:n[l],total:0,rows:[]});let c=se(a[l])-(i?se(i[l]):0);Number.isFinite(c)&&(f.total+=c),f.rows.push(l)}let s=[...o.values()];return{values:s.map(l=>l.v),totals:Float64Array.from(s,l=>l.total),rows:s.map(l=>l.rows)}}function QY(t,e,r,n,i,a,o){if(!w_.has(t.mark.type))return;let s=JY(t,e);if(!s||s.values.length<3)return;let l=it().frequencyOutliers(s.totals,r.sensitivity,r.threshold),u=d=>ft(s.values[d]),f=[];if(l.rare.length&&f.push(`rare: ${l.rare.map(u).join(", ")}`),l.dominant.length&&f.push(`dominant: ${l.dominant.map(u).join(", ")}`),To(n,{kind:"frequencyOutliers",mark:t.mark.id,method:"robust-z(log count)",backend:o,data:{...l,categories:s.values},summary:f.length?`frequency outliers \u2014 ${f.join("; ")}`:"no frequency outliers"}),r.show===!1)return;let c=Si(t,e).length===1,p=t.mark.type==="barX"||t.mark.type==="rectX",h=[];for(let[d,v]of[[l.rare,"rare"],[l.dominant,"dominant"]]){let m=r.color??wi[v];for(let g of d){if(c)for(let y of s.rows[g])np(n,t.mark.id,y,{color:m});h.push(i(p?{x:s.totals[g],y:s.values[g],text:v,color:m}:{x:s.values[g],y:s.totals[g],text:v,color:m}))}}h.length&&n.marks.push(Ve("text",h,{...a,x:"x",y:"y",text:"text",fill:r.color??wi.anomaly,fontSize:10,fontWeight:"bold",position:p?"right":"top",id:`${t.mark.id}:frequency-labels`,z2:6},!0))}function e6(t,e,r,n,i,a,o){let s=t.mark.type==="barX"||t.mark.type==="rectX",l=s?t.channels.y:t.channels.x,u=s?t.channels.x2??t.channels.x:t.channels.y2??t.channels.y;if(!l||!u||St(l)!=="ordinal")return;let f=s?t.channels.x1:t.channels.y1,c=t.channels.z??t.channels.fill??t.channels.stroke,p=new Map,h=new Map,d=new Int32Array(e.length),v=new Int32Array(e.length),m=new Float64Array(e.length);if(e.forEach((I,R)=>{let F=Pe(l[I]);if(F===null){d[R]=-1;return}let z=p.get(F);z||p.set(F,z={v:l[I],code:p.size}),d[R]=z.code;let Y=c?Pe(c[I]):null,B=h.get(Y);B===void 0&&h.set(Y,B=h.size),v[R]=B,m[R]=se(u[I])-(f?se(f[I]):0)}),p.size<3)return;let g=typeof r.reduce=="string"?r.reduce:void 0,y=it(),x=y.categoryOutliers(d,m,p.size,g,r.sensitivity,r.threshold),_=Math.max(1,h.size),b=Int32Array.from(d,(I,R)=>I<0?-1:I*_+v[R]),S=_>1?y.categoryOutliers(b,m,p.size*_,g,r.sensitivity,r.threshold):x,w=[...p.values()],M=I=>ft(w[I].v),C=r.within===!1||w_.has(t.mark.type)?[]:S.within,A=[];if(x.categories.length&&A.push(`outlying categor${x.categories.length===1?"y":"ies"}: ${x.categories.map(I=>`${M(I)} (z ${x.scores[I].toFixed(1)})`).join(", ")}`),C.length&&A.push(`${C.length} within-category outlier${C.length===1?"":"s"}`),To(n,{kind:"categoryOutliers",mark:t.mark.id,method:`robust-z(${g??"median"})`,backend:o,data:{...x,within:C,withinScores:S.withinScores,categories:w.map(I=>I.v)},summary:A.length?A.join("; "):"no category outliers"}),r.show===!1)return;let E=r.color??wi.outlier,O=Si(t,e).length===1,D=w_.has(t.mark.type),L=[];for(let I of x.categories){e.forEach((F,z)=>{d[z]===I&&(D&&O?np(n,t.mark.id,F,{color:E}):D||np(n,t.mark.id,F,{border:E}))});let R=x.aggregates[I];L.push(i(s?{x:R,y:w[I].v,text:`z ${x.scores[I].toFixed(1)}`}:{x:w[I].v,y:R,text:`z ${x.scores[I].toFixed(1)}`}))}for(let I of C)np(n,t.mark.id,e[I],{color:E,size:10});L.length&&n.marks.push(Ve("text",L,{...a,x:"x",y:"y",text:"text",fill:E,fontSize:10,fontWeight:"bold",position:s?"right":"top",id:`${t.mark.id}:category-labels`,z2:6},!0))}function t6(t,e,r,n,i,a,o){if(e.length<3)return;let s=new Set;for(let y of e)for(let x of y.x)s.add(x);let l=[...s].sort((y,x)=>y-x),u=new Map(l.map((y,x)=>[y,x])),f=e.map(y=>{let x=new Float64Array(l.length).fill(NaN);return y.x.forEach((_,b)=>x[u.get(_)]=y.y[b]),x}),c=r.method??"dbscan",p=it().seriesOutliers(f,c,r.sensitivity),h=o==="js"&&c==="dbscan"?["dbscan needs the wasm backend; used mad"]:void 0,d=p.outlying.map(y=>e[y].name);if(To(n,{kind:"seriesOutliers",mark:t.mark.id,method:p.method,backend:o,data:{...p,series:e.map(y=>y.name)},summary:d.length?`outlying series: ${d.join(", ")}`:"no outlying series",warnings:h}),r.show===!1||p.outlying.length===0)return;let v=r.color??wi.seriesOutlier,m=n.seriesStyles.get(t.mark.id);m||n.seriesStyles.set(t.mark.id,m=new Map);let g=new Set(p.outlying);if(e.forEach((y,x)=>m.set(y.key,g.has(x)?{color:v,width:2.5}:{opacity:.35})),r.band!==!1&&p.bandMin.some(Number.isFinite)){let y=e[0].temporal,x=l.map((_,b)=>i({x:cr(_,y),lower:Number.isFinite(p.bandMin[b])?p.bandMin[b]:null,upper:Number.isFinite(p.bandMax[b])?p.bandMax[b]:null}));n.marks.push(Ve("areaY",x,{...a,x:"x",y1:"lower",y2:"upper",fill:wi.band,fillOpacity:.1,silent:!0,legend:!1,id:`${t.mark.id}:series-band`,z2:-1},!0))}}var xk='"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',_k='ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace',T_={name:"light",mode:"light",background:"#fbfbf9",surface:"#ffffff",text:"#1b1f24",textSecondary:"#4f5560",textMuted:"#8b919c",grid:"#e6e6e1",axis:"#c9c9c2",accent:"#2a78d6",font:xk,fontMono:_k,categorical:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],sequential:["#cde2fb","#9ec5f4","#6da7ec","#3987e5","#256abf","#184f95","#0d366b"],diverging:["#c0392b","#e8846f","#f0efec","#6da7ec","#1c5cab"],insight:{anomaly:"#e34948",forecast:"#4a3aa7",changepoint:"#eb6834",trend:"#8b919c",outlier:"#e34948",rare:"#8b919c",dominant:"#eda100",band:"#4a3aa7",seriesOutlier:"#e34948",positive:"#008300",negative:"#2a78d6"},mark:{lineWidth:2,areaOpacity:.12,stackOpacity:.9,barRadius:4,barMaxWidth:28,dotRadius:4,gap:2}},bk={name:"dark",mode:"dark",background:"#0e1222",surface:"#161b2e",text:"#eef1f8",textSecondary:"#aab3c8",textMuted:"#6f7891",grid:"#1f2640",axis:"#2f375a",accent:"#4a7df0",font:xk,fontMono:_k,categorical:["#4a7df0","#0baa92","#a86bfd","#eb5f3d","#0da2c6","#b57400","#c23a82","#6a9a08"],sequential:["#13203f","#1f3b7a","#2b5ab4","#3f7de8","#5aa1f5","#8ac6fb","#c6e6ff"],diverging:["#eb5f3d","#b06a5e","#3a3f55","#4a7df0","#8ac6fb"],insight:{anomaly:"#ff5c7a",forecast:"#a86bfd",changepoint:"#f5b545",trend:"#8b93a8",outlier:"#ff5c7a",rare:"#6f7891",dominant:"#f5b545",band:"#4a7df0",seriesOutlier:"#ff5c7a",positive:"#2ec27e",negative:"#4a7df0"},mark:{lineWidth:2,areaOpacity:.16,stackOpacity:.9,barRadius:4,barMaxWidth:28,dotRadius:4,gap:2}},Sk={...T_,name:"ink",background:"#ffffff",surface:"#ffffff",text:"#000000",textSecondary:"#333333",textMuted:"#777777",grid:"#e2e2e2",axis:"#000000",accent:"#000000",categorical:["#1f3a93","#c0392b","#1e8449","#b9770e","#7d3c98","#117a8b","#5d6d7e","#000000"]},Co={light:T_,dark:bk,ink:Sk};function r6(t,e="light",r={}){let n=typeof e=="string"?pv(e):e,i={...n,...r,name:t,insight:{...n.insight,...r.insight??{}},mark:{...n.mark,...r.mark??{}}};return Co[t]=i,i}function pv(t){if(!t)return Co.light;if(typeof t=="string"){let r=Co[t];if(!r)throw new Error(`unknown theme "${t}" (known: ${Object.keys(Co).join(", ")})`);return r}let e=Co[t.name??""]??(t.mode==="dark"?Co.dark:Co.light);return{...e,...t,name:t.name??e.name,insight:{...e.insight,...t.insight??{}},mark:{...e.mark,...t.mark??{}}}}function n6(t,e="--ip"){let r={[`${e}-bg`]:t.background,[`${e}-surface`]:t.surface,[`${e}-text`]:t.text,[`${e}-text-2`]:t.textSecondary,[`${e}-text-3`]:t.textMuted,[`${e}-grid`]:t.grid,[`${e}-axis`]:t.axis,[`${e}-accent`]:t.accent,[`${e}-font`]:t.font,[`${e}-mono`]:t.fontMono};return t.categorical.forEach((n,i)=>r[`${e}-c${i+1}`]=n),r}function M_(t){let e=tv(t.marks),r=ik(e,t),n=e.map(B=>y_(B,r,t)),i=pv(t.theme),a=yk(n,r,t,i),o=a.marks.map(B=>y_(B,r,t)),s=[...n,...o].filter(B=>!["frame","gridX","gridY"].includes(B.mark.type));s.sort((B,X)=>(B.mark.options.z2??0)-(X.mark.options.z2??0));let l=sk(s,r.keys.length,t,i),u=r.keys.length,f={scales:l,facet:0,animation:t.animation??!0,highlights:a.highlights,seriesStyles:a.seriesStyles,visualTargets:[],theme:i},c=[],p=[],h={axis:0,item:0};for(let B=0;B<u;B++)for(let X of s){let ee=vk(X,B,f);c.push(...ee.series);for(let ie of ee.legend)!p.includes(ie)&&!(l.color.identity&&l.color.index.has(ie))&&p.push(ie);B===0&&!X.mark.generated&&ee.series.length&&(h={...h,[ee.tooltip]:h[ee.tooltip]+1})}let d=t.insights?.annotate===!1?[]:a.notes,v=i6([t.subtitle,...d].filter(Boolean),120),m=!(t.legend===!1||p.length===0),g=[l.x.options.zoom,l.y.options.zoom].some(B=>B===!0||B==="slider"),y=l.color.kind==="continuous"&&l.color.legend&&f.visualTargets.length>0,x={legend:m,slider:g,colorBar:y,titleLines:(t.title?1:0)+v.length},_=B=>B.map(X=>({...X,containLabel:!1,outerBoundsMode:"auto"})),b=t.echarts?.grid,S=B=>{let X=_(wk(r,t,x,B).grids);return b===void 0?X:Ck({grid:X},{grid:b}).grid},w=wk(r,t,x,t.height),M=r.keys.map((B,X)=>Tk("x",l.x,X,r,t,e,i)),C=r.keys.map((B,X)=>Tk("y",l.y,X,r,t,e,i)),A=e.some(B=>B.type==="frame");for(let B of[...M,...C])A&&(B.axisLine={...B.axisLine??{},show:!0});if(e.some(B=>B.type==="gridX"))for(let B of M)B.splitLine={show:!0};if(e.some(B=>B.type==="gridY"))for(let B of C)B.splitLine={show:!0};let E=t.tooltip==="item"?"item":t.tooltip==="axis"?"axis":h.item>h.axis?"item":"axis",O=[],D=v.join(`
|
|
39
|
+
`);(t.title||D)&&O.push({text:t.title,subtext:D||void 0,left:8,top:4,textStyle:{fontSize:15,fontWeight:600,color:i.text,fontFamily:i.font},subtextStyle:{fontSize:11,lineHeight:15,color:i.textMuted,fontFamily:i.font}}),t.caption&&O.push({text:t.caption,left:8,bottom:0,textStyle:{fontSize:11,fontWeight:"normal",color:i.textMuted,fontFamily:i.font}}),u>1&&r.keys.forEach((B,X)=>{let ee=w.grids[X],ie=[B.fx,B.fy].filter(ae=>ae!==void 0).map(ae=>ft(ae)).join(" / ");O.push({text:ie,left:ee.left,top:`${Math.max(0,parseFloat(ee.top)-4).toFixed(3)}%`,textStyle:{fontSize:11,fontWeight:600,color:i.textSecondary,fontFamily:i.font}})});let L=a6(f,c,l,i,m),I=o6(l,u,m,i),R=m?{show:!0,data:p,bottom:t.caption?16:0,type:p.length>12?"scroll":"plain",icon:"roundRect",itemWidth:14,itemHeight:6,itemGap:14,textStyle:{color:i.textSecondary,fontSize:11,fontFamily:i.font},pageTextStyle:{color:i.textMuted},pageIconColor:i.textSecondary,pageIconInactiveColor:i.grid,inactiveColor:i.grid,...typeof t.legend=="object"?t.legend:{}}:{show:!1},F=t.tooltip===!1?{show:!1}:{trigger:E,confine:!0,backgroundColor:i.surface,borderColor:i.grid,borderWidth:1,padding:[8,10],extraCssText:"box-shadow: 0 6px 24px rgba(0,0,0,0.18); border-radius: 8px;",textStyle:{color:i.text,fontSize:12,fontFamily:i.font},axisPointer:{type:E==="axis"?"line":"none",snap:!0,lineStyle:{color:i.textMuted,width:1,type:"dashed"},crossStyle:{color:i.textMuted},label:{show:E==="axis",backgroundColor:i.textSecondary,color:i.background,fontSize:11}},valueFormatter:B=>Array.isArray(B)?B.map(X=>ft(X)).join(", "):ft(B),...typeof t.tooltip=="object"?t.tooltip:{}},z={animation:t.animation??!0,animationDuration:600,animationEasing:"cubicOut",backgroundColor:t.background??"transparent",textStyle:{fontFamily:i.font,color:i.text},...l.color.kind==="categorical"?{color:l.color.range}:{},title:O,grid:_(w.grids),xAxis:M,yAxis:C,series:c,legend:R,tooltip:F,...L.length?{visualMap:L}:{},...I.length?{dataZoom:I}:{},...t.toolbox?{toolbox:{feature:{saveAsImage:{},dataZoom:{},restore:{}},right:8}}:{},...u>1?{axisPointer:{link:[{xAxisIndex:"all"}]}}:{}};return{option:t.echarts?Ck(z,t.echarts):z,insights:a.insights,warnings:a.warnings,scales:l,marks:[...e,...a.marks],resolved:s,plan:r,theme:i,gridFor:S}}function i6(t,e){let r=[],n="";for(let i of t)n&&(n+" \xB7 "+i).length>e?(r.push(n),n=i):n=n?`${n} \xB7 ${i}`:i;return n&&r.push(n),r}function wk(t,e,r,n){let i=Math.max(1,t.xs.length||1),a=Math.max(1,t.ys.length||1),o=t.keys.length>1,s=typeof e.margin=="number"?{top:e.margin,right:e.margin,bottom:e.margin,left:e.margin}:e.margin??{},l=r.titleLines>0,u=(r.legend?24:0)+(r.slider?30:0)+(e.caption?16:0);if(!o){let _=s.top??(l?24+r.titleLines*16:20),b=s.bottom??48+u;if(n!==void 0){let M=(s.top===void 0?_:0)+(s.bottom===void 0?b:0),C=Math.max(0,n/2-(_+b-M));if(M>C){let A=C/M;s.top===void 0&&(_=Math.round(_*A)),s.bottom===void 0&&(b=Math.round(b*A))}}let S=s.left??56,w=s.right??(r.colorBar?90:20);return{grids:[{left:`${S}px`,top:`${_}px`,right:`${w}px`,bottom:`${b}px`}]}}let f=typeof s.left=="number"?s.left:7,c=typeof s.right=="number"?s.right:r.colorBar?12:3,p=typeof s.top=="number"?s.top:l?10+r.titleLines*4:8,h=typeof s.bottom=="number"?s.bottom:12+(r.legend?5:0)+(r.slider?7:0),d=e.facet?.gap??4,v=e.facet?.gap??9,m=(100-f-c-d*(i-1))/i,g=(100-p-h-v*(a-1))/a,y=[],x=_=>`${_.toFixed(3)}%`;for(let _ of t.keys){let b=t.xs.length?t.xs.findIndex(w=>w===_.fx):0,S=t.ys.length?t.ys.findIndex(w=>w===_.fy):0;y.push({left:x(f+b*(m+d)),top:x(p+S*(g+v)),width:x(m),height:x(g)})}return{grids:y}}function Tk(t,e,r,n,i,a,o){let s=e.options,l=Math.max(1,n.xs.length||1),u=Math.max(1,n.ys.length||1),f=r%l,c=Math.floor(r/l),p=t==="x"?c===u-1:f===0,h=a.some(mk),d=t==="x"?i.facet?.sharedX!==!1:i.facet?.sharedY!==!1,v={gridIndex:r,type:e.type==="ordinal"?"category":e.type==="temporal"?"time":e.log?"log":"value",show:s.axis!==null,name:p?e.label:void 0,nameLocation:"middle",nameGap:t==="x"?28:40,nameTextStyle:{fontSize:11,color:o.textSecondary,fontFamily:o.font},axisLabel:{hideOverlap:!0,fontSize:11,color:o.textSecondary,fontFamily:o.font,margin:10,showMaxLabel:void 0},splitLine:{show:s.grid??(t==="y"&&e.type!=="ordinal"),lineStyle:{color:o.grid,width:1,type:"solid"}},axisTick:{show:e.type==="ordinal",alignWithLabel:!0,length:4,lineStyle:{color:o.axis}},axisLine:{show:e.type==="ordinal"||t==="x",lineStyle:{color:o.axis,width:1}},axisPointer:{lineStyle:{color:o.textMuted}},inverse:!!s.reverse};if(e.type==="ordinal")v.data=e.domain.map(m=>m instanceof Date?m.toISOString():String(m)),v.boundaryGap=h,s.jitter&&(v.jitter=s.jitter),e.domain.length<=30&&(v.axisLabel.interval=0),e.domain.length>12&&t==="x"&&(v.axisLabel.rotate=e.domain.length>30?60:35);else{e.zero||(v.scale=!0),e.type==="temporal"&&(v.axisLabel.formatter=typeof s.tickFormat=="string"?s.tickFormat:void 0),s.breaks&&(v.breaks=s.breaks.map(y=>({start:y.start,end:y.end,gap:y.gap??"2%"}))),e.percent&&(v.axisLabel.formatter=y=>`${Math.round(y*100)}%`);let m=e.options.nice!==!1,g=d?e.extent:e.facetExtents[r]??e.extent;if(n.keys.length>1&&d&&Number.isFinite(g[0])&&Number.isFinite(g[1])&&e.type==="quantitative"){let[y,x]=m?Xd.nice(e.zero?Math.min(0,g[0]):g[0],e.zero?Math.max(0,g[1]):g[1],6):g;v.min=y,v.max=x}if(s.domain&&s.domain.length===2&&(v.min=se(s.domain[0]),v.max=se(s.domain[1])),typeof s.ticks=="number")v.splitNumber=s.ticks;else if(s.ticks!==void 0&&e.type==="quantitative"){let y=bi(s.ticks);y&&(v.interval=y.offset(0,1))}}if(typeof s.tickFormat=="function"){let m=s.tickFormat;v.axisLabel.formatter=g=>m(e.type==="temporal"?new Date(se(g)):g)}else typeof s.tickFormat=="string"&&e.type!=="temporal"&&(v.axisLabel.formatter=s.tickFormat);return(s.axis==="top"||s.axis==="right")&&(v.position=s.axis),v}function a6(t,e,r,n,i){if(t.visualTargets.length===0||r.color.kind!=="continuous")return[];let a=new Map;for(let l of t.visualTargets){let u=e.findIndex(c=>c.id===l.seriesId);if(u<0)continue;let f=a.get(l.dimension);f||a.set(l.dimension,f=[]),f.push(u)}let[o,s]=r.color.extent;return[...a.entries()].map(([l,u],f)=>({type:r.color.options.pieces?"piecewise":"continuous",...r.color.options.pieces?{splitNumber:r.color.options.pieces}:{},show:f===0&&r.color.legend,seriesIndex:u,dimension:l,min:o,max:s,inRange:{color:r.color.stops},calculable:!0,orient:"vertical",right:4,top:"middle",itemWidth:12,itemHeight:120,text:r.color.label?[`${r.color.label}`,""]:void 0,textStyle:{fontSize:11,color:n.textSecondary,fontFamily:n.font},handleStyle:{borderColor:n.textMuted},indicatorStyle:{borderColor:n.text},formatter:c=>ft(c),precision:Number.isInteger(o)&&Number.isInteger(s)?0:2}))}function o6(t,e,r,n){let i=[],a=Array.from({length:e},(o,s)=>s);for(let[o,s]of[["x",t.x],["y",t.y]]){let l=s.options.zoom;if(!l)continue;let u=o==="x"?{xAxisIndex:a}:{yAxisIndex:a};(l===!0||l==="inside")&&i.push({type:"inside",...u,filterMode:"none"}),(l===!0||l==="slider")&&i.push({type:"slider",...u,filterMode:"none",height:20,bottom:r?30:6,borderColor:n.grid,backgroundColor:"transparent",fillerColor:Ps(n.accent,.12),dataBackground:{lineStyle:{color:n.textMuted,opacity:.6},areaStyle:{color:n.textMuted,opacity:.12}},selectedDataBackground:{lineStyle:{color:n.accent},areaStyle:{color:n.accent,opacity:.2}},handleStyle:{color:n.surface,borderColor:n.textMuted},moveHandleStyle:{color:n.grid},emphasis:{handleStyle:{borderColor:n.accent}},textStyle:{color:n.textMuted,fontSize:10},brushSelect:!1})}return i}var s6=new Set(["xAxis","yAxis","grid"]);function Ck(t,e){let r={...t};for(let[n,i]of Object.entries(e)){let a=r[n];n==="series"&&Array.isArray(a)?r[n]=[...a,...Array.isArray(i)?i:[i]]:Array.isArray(a)&&Array.isArray(i)?r[n]=[...a.map((o,s)=>s<i.length?hv(o,i[s]):o),...i.slice(a.length)]:Array.isArray(a)&&C_(i)?r[n]=a.map((o,s)=>s6.has(n)||s===0?hv(o,i):o):r[n]=hv(a,i)}return r}function l6(t,e){let r={...t};for(let[n,i]of Object.entries(e))r[n]=hv(r[n],i);return r}function hv(t,e){return C_(t)&&C_(e)?l6(t,e):e}function C_(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var kx=class{option;insights;warnings;marks;scales;theme;options;compiled;constructor(e,r){this.options=e,this.compiled=r,this.option=r.option,this.insights=r.insights,this.warnings=r.warnings,this.marks=r.marks,this.scales=r.scales,this.theme=r.theme}toOption(){return this.option}describe(){return this.insights.map(e=>e.summary)}async render(e,r={}){let{renderChart:n}=await Promise.resolve().then(()=>(Dx(),pD));return n(this,e,r)}async toSVG(e={}){let{renderSVG:r}=await Promise.resolve().then(()=>(Dx(),pD));return r(this,e)}with(e){return M4({...this.options,...e})}get internals(){return this.compiled}};function M4(t){let e=cre(t)?t:{marks:t};return new kx(e,M_(e))}function cre(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!("type"in t&&"data"in t)}Dx();var pre=new Set(["thresholds","interval","domain","cumulative","filter","sort","reverse","data"]);function A4(t){if(!t)return;let e=[...new Map(t.filter(i=>!gt(i)).map(i=>[i instanceof Date?+i:i,i])).values()].sort(Ea),{codes:r,domain:n}=Nx(t,e);return{codes:r,n:n.length,values:n,bin:!1,temporal:St(t)==="temporal"}}function D4(t,e,r){if(!t)return;let n=it(),i=St(t)==="temporal",a=Bd(t),o=r?.thresholds??e.thresholds??"auto",s=bi(r?.interval??e.interval),l=r?.domain??e.domain,u=1/0,f=-1/0;for(let v of a)Number.isFinite(v)&&(v<u&&(u=v),v>f&&(f=v));l&&(u=se(l[0]),f=se(l[1]));let c;if(!Number.isFinite(u)||!Number.isFinite(f))c=[];else if(s){let v=s.floor(u),m=s.offset(s.floor(f),1);c=[v,...s.range(s.offset(v,1),m),m]}else if(Array.isArray(o))c=o.slice().sort((v,m)=>v-m);else if(typeof o=="function"){let v=o(Array.from(a).filter(Number.isFinite),u,f);c=Array.isArray(v)?v:Array.from(n.binThresholds(a,"count",v))}else if(typeof o=="object"&&o!==null){let v=bi(o),m=v.floor(u),g=v.offset(v.floor(f),1);c=[m,...v.range(v.offset(m,1),g),g]}else if(i){let v=typeof o=="number"?o:Math.max(5,Math.min(60,Math.ceil(Math.log2(a.length))+1)*2),m=Eu((f-u)/Math.max(1,v)),g=m.floor(u),y=m.offset(m.floor(f),1);c=[g,...m.range(m.offset(g,1),y),y]}else typeof o=="number"?c=Array.from(n.binThresholds(a,"count",o)):c=Array.from(n.binThresholds(a,o,0));let p=Float64Array.from(c),h=p.length>=2?n.binAssign(a,p):new Int32Array(a.length).fill(-1),d=i?Array.from(p,v=>new Date(v)):Array.from(p);return{codes:h,n:Math.max(0,p.length-1),values:d,bin:!0,temporal:i}}function k4(t){if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof Date)&&!ArrayBuffer.isView(t)&&"value"in t){let{value:e,...r}=t;return{value:e,opts:r}}return{value:t}}var hre=new Set(["count","sum","mean","median","min","max","mode","first","last","deviation","variance","distinct","proportion","min-index","max-index"]);function E4(t,e,r,n,i){if(typeof t=="function")return t(r??e,{data:e});switch(t){case"x":case"x1":case"x2":case"y":case"y1":case"y2":case"z":return i.group[t];case"proportion-facet":return i.facetTotal===0?NaN:(r?Ex(r):e.length)/i.facetTotal;case"proportion":return i.total===0?NaN:(r?Ex(r):e.length)/i.total;case"count":return r?r.filter(l=>!gt(l)).length:e.length;case"first":return r?r.find(l=>!gt(l)):e[0];case"last":return r?[...r].reverse().find(l=>!gt(l)):e[e.length-1];case"distinct":return new Set(r?.filter(l=>!gt(l)).map(l=>l instanceof Date?+l:l)).size;case"mode":{if(!r)return e.length;let l=new Map;for(let f of r){if(gt(f))continue;let c=f instanceof Date?+f:f,p=l.get(c);p?p[0]++:l.set(c,[1,f])}let u;for(let f of l.values())(!u||f[0]>u[0])&&(u=f);return u?.[1]}case"min":case"max":{if(!r)return e.length;if(St(r)==="ordinal"){let u=r.filter(f=>!gt(f)).sort(Ea);return t==="min"?u[0]:u[u.length-1]}break}default:break}let a=r?Bd(r):Float64Array.from(e,()=>1),s=it().aggregate(Int32Array.from(a,()=>0),a,1,t)[0];return t==="min-index"||t==="max-index"?Number.isNaN(s)?void 0:n[s]:s}function Ex(t){let e=0;for(let r of t){let n=se(r);Number.isFinite(n)&&(e+=n)}return e}function Tu(t,e,r){let{x:n,y:i,z:a,fill:o,stroke:s,fx:l,fy:u,...f}=r,c=k4(n),p=k4(i),h=e.fill!==void 0&&e.fill!==null,d=e.stroke!==void 0&&e.stroke!==null,v=a!==void 0?a:Gt(o)&&!h?o:Gt(s)&&!d?s:void 0,m=e.filter===null,g=Object.entries(e).filter(([M,C])=>!pre.has(M)&&C!==null&&C!==void 0&&C!==!1),y=e.data,x={};for(let[M]of g){let C=r[M];M==="x"&&t.x||M==="y"&&t.y||C!==void 0&&(M!=="fill"&&M!=="stroke"||Gt(C))&&(x[M]=C)}let _=(M,C)=>{let A=M,E=t.x?Ne(M,c.value):void 0,O=t.y?Ne(M,p.value):void 0,D=v!==void 0?Ne(M,v):void 0,L=l!==void 0?Ne(M,l):void 0,I=u!==void 0?Ne(M,u):void 0,R=Gt(o)&&!h?Ne(M,o):void 0,F=Gt(s)&&!d?Ne(M,s):void 0,z=t.x==="bin"?D4(E,e,c.opts):A4(E),Y=t.y==="bin"?D4(O,e,p.opts):A4(O),B=D?dre(D):void 0,X={};for(let[dt,Ee]of Object.entries(x))X[dt]=Ne(M,Ee);let ee=z?.n??1,ie=Y?.n??1,ae=B?.n??1,we=ee*ie*ae,Oe=Object.keys(X).length?void 0:A.length,Qe=[],nt=[],Re=e.cumulative===!0?1:e.cumulative===-1?-1:e.cumulative===1?1:0,Ye=it(),_e={};for(let[dt,Ee]of Object.entries(X)){let kr=St(Ee);_e[dt]=Ee&&kr!=="ordinal"?Bd(Ee):void 0}let Le=(dt,Ee)=>typeof Ee=="string"&&(hre.has(Ee)||/^p\d\d$/.test(Ee))&&Ee!=="proportion"&&Ee!=="min-index"&&Ee!=="max-index"&&(X[dt]===void 0||_e[dt]!==void 0);for(let dt of C){let Ee=Array.from({length:we},()=>[]),kr=new Int32Array(A.length).fill(-1);for(let ut of dt){let jt=z?z.codes[ut]:0,Yr=Y?Y.codes[ut]:0,Un=B?B.codes[ut]:0;if(jt<0||Yr<0||Un<0)continue;let Hi=(Un*ie+Yr)*ee+jt;Ee[Hi].push(ut),kr[ut]=Hi}let Er=[],Yc=dt.length,xo={};if(Re===0)for(let[ut,jt]of g)Le(ut,jt)&&(xo[ut]=Ye.aggregate(kr,_e[ut]??new Float64Array(0),we,jt));if(Re!==0&&z?.bin)for(let ut=0;ut<ae;ut++)for(let jt=0;jt<ie;jt++){let Yr=(ut*ie+jt)*ee,Un=[],Hi=Re>0?[...Array(ee).keys()]:[...Array(ee).keys()].reverse();for(let Cu of Hi)Un=Un.concat(Ee[Yr+Cu]),Ee[Yr+Cu]=Un.slice()}for(let ut=0;ut<we;ut++){let jt=Ee[ut];if(jt.length===0&&!m)continue;let Yr=ut%ee,Un=Math.floor(ut/ee)%ie,Hi=Math.floor(ut/(ee*ie)),Cu=jt.map(ka=>A[ka]),Ut={};z&&(z.bin?(Ut.x1=z.values[Yr],Ut.x2=z.values[Yr+1],Ut.x=O4(z.values[Yr],z.values[Yr+1],z.temporal)):Ut.x=z.values[Yr]),Y&&(Y.bin?(Ut.y1=Y.values[Un],Ut.y2=Y.values[Un+1],Ut.y=O4(Y.values[Un],Y.values[Un+1],Y.temporal)):Ut.y=Y.values[Un]),B&&(Ut.z=B.values[Hi]);let Wc=jt[0];Wc!==void 0?(Gt(o)&&!h&&(Ut.fill=D&&o===v?B.values[Hi]:R[Wc]),Gt(s)&&!d&&(Ut.stroke=D&&s===v?B.values[Hi]:F[Wc]),L&&(Ut.fx=L[Wc]),I&&(Ut.fy=I[Wc])):B&&(Gt(o)&&o===v&&(Ut.fill=B.values[Hi]),Gt(s)&&s===v&&(Ut.stroke=B.values[Hi]));let Fd={total:Oe??0,facetTotal:Yc,group:Ut};for(let[ka,Lx]of g){if(xo[ka]){Ut[ka]=xo[ka][ut];continue}let P4=X[ka]?jt.map(Mu=>X[ka][Mu]):void 0;if(Lx==="proportion"||Lx==="proportion-facet"){let Mu=X[ka];Fd.total=Mu?Ex(Mu):A.length,Fd.facetTotal=Mu?Ex(dt.map(z4=>Mu[z4])):dt.length}Ut[ka]=E4(Lx,Cu,P4,jt,Fd)}Ut.data=y?E4(y,Cu,void 0,jt,Fd):Cu,Er.push(Qe.length),Qe.push(Ut)}nt.push(Er)}return{data:Qe,facets:nt}},b={...f};t.x==="bin"?(b.x1="x1",b.x2="x2",g.some(([M])=>M==="x")||(b.x="x")):t.x==="group"?b.x="x":n!==void 0&&!g.some(([M])=>M==="x")&&(b.x=n),t.y==="bin"?(b.y1="y1",b.y2="y2",g.some(([M])=>M==="y")||(b.y="y")):t.y==="group"?b.y="y":i!==void 0&&!g.some(([M])=>M==="y")&&(b.y=i);for(let[M]of g)b[M]=M;v!==void 0&&(b.z="z"),Gt(o)||h?b.fill="fill":o!==void 0&&(b.fill=o),Gt(s)||d?b.stroke="stroke":s!==void 0&&(b.stroke=s),l!==void 0&&(b.fx="fx"),u!==void 0&&(b.fy="fy"),b.__grouped={x:t.x,y:t.y};let S=r.__labels??{},w={...S};c.value!==void 0&&(w.x=_i(c.value,S.x,"x")),p.value!==void 0&&(w.y=_i(p.value,S.y,"y"));for(let[M,C]of g){let A=x[M],E=A!==void 0?_i(A,S[M],M):void 0;w[M]=typeof C=="string"?E?`${C} of ${E}`:C==="count"?"count":C:E}return b.__labels=w,mr(b,_)}function dre(t){let{codes:e,domain:r}=Nx(t);return{codes:e,n:r.length,values:r,bin:!1,temporal:St(t)==="temporal"}}function O4(t,e,r){let n=(se(t)+se(e))/2;return r?new Date(n):n}function Pd(t={y:"count"},e={}){return Tu({x:"group",z:!0},t,e)}function hD(t={x:"count"},e={}){return Tu({y:"group",z:!0},t,e)}function zd(t={fill:"count"},e={}){return Tu({x:"group",y:"group",z:!0},t,e)}function vre(t={x:"count"},e={}){return Tu({z:!0},t,e)}function Uc(t={y:"count"},e={}){return Tu({x:"bin",y:e.y!==void 0&&t.y===void 0?"group":void 0,z:!0},t,e)}function dD(t={x:"count"},e={}){return Tu({y:"bin",x:e.x!==void 0&&t.x===void 0?"group":void 0,z:!0},t,e)}function vD(t={fill:"count"},e={}){return Tu({x:"bin",y:"bin",z:!0},t,e)}var mre=new Set(["distinct","count","sum","proportion"]),I4=new Set(["first","last","mode"]),gre=/^(count|sum|mean|median|min|max|mode|first|last|deviation|variance|distinct|proportion|proportion-facet|p\d\d)$/;function Ox(t){if(t==null)return{value:void 0,reduce:void 0,zero:void 0};if(typeof t=="string"&&gre.test(t))return{value:void 0,reduce:t,zero:void 0};if(typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)&&!ArrayBuffer.isView(t)&&("value"in t||"reduce"in t||"zero"in t||"color"in t)){let e=t;return{value:e.value,reduce:e.reduce,zero:e.zero,color:e.color}}return{value:t,reduce:void 0,zero:void 0}}function Gc(t){if(!t)return!1;let e,r=0;for(let n of t){let i=n instanceof Date?+n:typeof n=="number"?n:NaN;if(Number.isFinite(i)){if(e!==void 0&&i!==e){let a=Math.sign(i-e);if(r&&a!==r)return!1;r=a}e=i}}return!0}function R4(t,e={}){let r=Ox(e.x),n=Ox(e.y),i=Ox(e.color),a=Ox(e.size);typeof i.value=="string"&&Yi(i.value)&&(i.color=i.value,i.value=void 0);let o=r.reduce??null,s=n.reduce??null,l=a.reduce??null,u=i.reduce??null,f=Ne(t,r.value),c=Ne(t,n.value),p=St(f)==="ordinal",h=St(c)==="ordinal";if(r.value!==void 0&&!o&&n.value===void 0&&s===null&&a.value===void 0&&l===null&&n.reduce!==null&&(s="count"),n.value!==void 0&&!s&&r.value===void 0&&o===null&&a.value===void 0&&l===null&&r.reduce!==null&&(o="count"),a.value===void 0&&l===null&&!u&&!o&&!s&&(r.value===void 0||p)&&(n.value===void 0||h)&&(r.value!==void 0||n.value!==void 0)&&a.reduce!==null&&(l="count"),o&&s)throw new Error("auto: cannot reduce both x and y");let d=M=>typeof M=="string"&&mre.has(M),v,m;if(e.mark)v=e.mark,m=`mark "${v}" requested`;else if(a.value!==void 0||l)v="dot",m="size channel \u2192 dot";else if(d(o)||d(s)||u)v="bar",m=`${u?"color":o?"x":"y"} is aggregated \u2192 bar`;else if(r.value!==void 0&&n.value!==void 0)p||h?(v="dot",m="x and y with an ordinal axis \u2192 dot"):!o&&!s&&!Gc(f)&&!Gc(c)?(v="dot",m="two quantitative channels, neither ordered \u2192 dot"):(v="line",m="quantitative y over ordered x \u2192 line");else if(r.value!==void 0||n.value!==void 0)v="rule",m="a single channel \u2192 rule";else throw new Error("auto: must specify x or y");let g,y=d(o),x=d(s),_=r.zero??(y||!1),b=n.zero??(x||!1);switch(v){case"dot":g="dot";break;case"line":g=b||s||Gc(f)?"lineY":_||o||Gc(c)?"lineX":"line";break;case"area":g=b||s||Gc(f)?"areaY":_||o||Gc(c)?"areaX":"areaY";break;case"rule":g=r.value!==void 0?"ruleX":"ruleY";break;case"bar":o?g=h?"barX":I4.has(String(o))&&p?"cell":"rectX":s?g=p?"barY":I4.has(String(s))&&h?"cell":"rectY":u||l?g=p&&h?"cell":p?"barY":h?"barX":"rect":g=!p&&f&&h?"barX":!h&&c&&p?"barY":"cell";break}let S=null;s?S=p?"groupX":"binX":o?S=h?"groupY":"binY":(u||l)&&(r.value!==void 0&&n.value!==void 0?S=p&&h?"group":p?"binY":h?"binX":"bin":r.value!==void 0?S=p?"groupX":"binX":n.value!==void 0&&(S=h?"groupY":"binY"));let w=(M,C)=>(C==="x"?["barX","areaX","rectX","ruleY"]:["barY","areaY","rectY","ruleX"]).includes(M)&&!S?.startsWith("bin");return{mark:v,markImpl:g,transformImpl:S,x:{value:r.value,reduce:o,zero:r.zero??(y||w(g,"x"))},y:{value:n.value,reduce:s,zero:n.zero??(x||w(g,"y"))},color:{value:i.value,reduce:u,color:i.color},size:{value:a.value,reduce:l},reason:`${m} (${g}${S?` + ${S}`:""})`}}function mD(t,e={}){let r=R4(t,e),{x:n,y:i,color:a,size:o,fx:s,fy:l,mark:u,insights:f,id:c,...p}=e,h=r.markImpl.startsWith("line")||r.markImpl==="dot"||r.markImpl.startsWith("rule"),d=h?"stroke":"fill",v={...p,x:r.x.value,y:r.y.value,fx:s,fy:l,insights:f,id:c};r.color.value!==void 0?v[d]=r.color.value:r.color.color&&(v[d]=r.color.color),r.size.value!==void 0&&(v.r=r.size.value);let m={};switch(r.x.reduce&&(m.x=r.x.reduce),r.y.reduce&&(m.y=r.y.reduce),r.color.reduce&&(m[d]=r.color.reduce),r.size.reduce&&(m.r=r.size.reduce),r.transformImpl){case"groupX":v=Pd(m,v);break;case"groupY":v=hD(m,v);break;case"group":v=zd(m,v);break;case"binX":v=Uc(m,v);break;case"binY":v=dD(m,v);break;case"bin":v=vD(m,v);break;default:break}let y={line:l_,lineX:u_,lineY:Ou,areaY:Rs,areaX:f_,barX:c_,barY:Ls,rectX:p_,rectY:ep,rect:h_,cell:tp,dot:Ns,ruleX:Qd,ruleY:ev}[r.markImpl](t,v),x=r.markImpl==="lineY"||r.markImpl==="dot"?r.y.zero?ev([0],{strokeOpacity:.4}):r.x.zero?Qd([0],{strokeOpacity:.4}):null:null,_=h?rv(x,y):rv(y);return _.spec=r,_}var yre={x:["x","x1","x2"],y:["y","y1","y2"]};function Bn(t,e,r,n=[]){let i=[...yre[t],...n].filter(f=>r[f]!==void 0);if(i.length===0)return r;let a=Object.fromEntries(i.map(f=>[f,r[f]])),o=r.__labels??{},s=i.map(f=>[f,Oa(_i(a[f],o[f],f))]),l=(f,c)=>{let p={};for(let h of i){let d=Ne(f,a[h]),v=new Float64Array(f.length);for(let g=0;g<v.length;g++)v[g]=se(d[g]);let m=new Float64Array(f.length).fill(NaN);for(let g of c)for(let y of Is(f,g,r)){let x=new Float64Array(y.length);for(let b=0;b<y.length;b++)x[b]=v[y[b]];let _=e(x,y,f);for(let b=0;b<y.length;b++)m[y[b]]=_[b]}p[h]=m}for(let[h,[,d]]of s)d(p[h]);return{data:f,facets:c}},u={...r};for(let[f,[c]]of s)u[f]=c;return mr(u,l)}function gD(t){let e=it();if(typeof t=="function")return t;if(typeof t=="object"&&t!==null&&"mapIndex"in t)return(r,n)=>{let i=new Float64Array(r.length);return t.mapIndex(n.map((a,o)=>o),r,i),i};switch(t){case"cumsum":return r=>e.cumsum(r);case"rank":return r=>e.rank(r);case"quantile":return r=>e.quantileRank(r);case"diff":return r=>e.diff(r);case"pct-change":return r=>e.pctChange(r);default:throw new Error(`unknown map method: ${String(t)}`)}}function yD(t){let e=typeof t=="number"?{k:t}:t,r=e.anchor??(e.shift==="leading"?"start":e.shift==="trailing"?"end":"middle"),n=typeof e.reduce=="string"?e.reduce:"mean";if(typeof e.reduce=="function"){let i=e.reduce;return a=>{let o=Math.max(1,Math.floor(e.k)),s=r==="start"?0:r==="end"?o-1:Math.floor((o-1)/2),l=new Float64Array(a.length).fill(NaN);for(let u=0;u<a.length;u++){let f=Math.max(0,u-s),c=Math.min(a.length,u-s+o);e.strict&&(u-s<0||u-s+o>a.length)||(l[u]=se(i(Array.from(a.subarray(f,c)))))}return l}}return i=>it().window(i,e.k,r,n,!!e.strict)}function xre(t,e={}){let r=e;for(let[n,i]of Object.entries(t)){let a=gD(i);r=Bn(n.startsWith("x")?"x":"y",a,r,[n])}return r}function _re(t,e={}){return Bn("y",gD(t),e)}function bre(t,e={}){return Bn("x",gD(t),e)}function xD(t,e={}){return Bn("y",yD(t),e)}function Sre(t,e={}){return Bn("x",yD(t),e)}function Ix(t){return typeof t=="function"?e=>{let r=t(e),n=new Float64Array(e.length);for(let i=0;i<e.length;i++)n[i]=e[i]/r;return n}:e=>it().normalize(e,t)}function wre(t="first",e){return typeof t=="object"?Bn("y",Ix("first"),t):Bn("y",Ix(t),e??{})}function Tre(t="first",e){return typeof t=="object"?Bn("x",Ix("first"),t):Bn("x",Ix(t),e??{})}function Cre(t="linear",e={}){return Bn("y",r=>it().impute(r,String(t)),e)}function Mre(t="linear",e={}){return Bn("x",r=>it().impute(r,String(t)),e)}function Are(t={}){return Bn("y",e=>it().diff(e),t)}function Dre(t={}){return Bn("y",e=>it().cumsum(e),t)}function kre(t,e={}){let{sign:r,interval:n}=Ere(t),[i,a]=Oa("x1"),[o,s]=Oa("x2"),l=(f,c)=>{let p=Ne(f,e.x),h=p.some(v=>v instanceof Date),d=p.map(v=>{let m=se(v);if(!Number.isFinite(m))return v;let g=n.offset(m,r);return h?new Date(g):g});return a(d),s(p),{data:f,facets:c}},u={...e,x1:i,x2:o};return delete u.x,mr(u,l)}function Ere(t){if(typeof t=="number")return{sign:Math.sign(t)||1,interval:{offset:(e,r)=>e+r*Math.abs(t)}};if(typeof t=="string"){let e=/^\s*([+-])?\s*(.*)$/.exec(t);return{sign:e[1]==="-"?-1:1,interval:bi(e[2])}}return{sign:1,interval:bi(t)}}function L4(t,e=500){let r=t,n=new Set;for(let a of r.slice(0,e))for(let o of Object.keys(a))n.add(o);let i=[];for(let a of n){let o=Ne(r.slice(0,e),a)??[],s=St(o)??"ordinal",l={name:a,type:s};if(s==="ordinal"){let u=new Set,f=[];for(let c of Ne(r,a)??[])if(!(c==null||u.has(c))&&(u.add(c),f.push(c),f.length>=50))break;l.values=f}i.push(l)}return i}function N4(t,e){let r=t,{x:n,y:i,color:a,size:o,facet:s}=e,l=L4(r,200),u=v=>l.find(m=>m.name===v)?.type,f={x:n,y:i,fx:s,curve:e.curve,gradient:e.gradient,insights:e.insights,id:"main"};e.interval&&e.mark!=="histogram"&&e.mark!=="bar"&&(f.interval=e.interval);let c=e.mark==="line"||e.mark==="dot"?"stroke":"fill";a&&(f[c]=a),e.mark==="dot"&&a&&(f.fill=a),o&&(f.r=o),e.sort&&e.sort!=="none"&&(f.sort={x:e.sort});let p=e.reduce??void 0,h=f;switch(e.mark){case"auto":return mD(r,{x:n,y:p&&i?{value:i,reduce:p}:i,color:a,size:o,fx:s,insights:e.insights,curve:e.curve,id:"main"});case"histogram":{let v={...f};return delete v.y,[ep(r,Uc({y:"count",...e.bins?{thresholds:e.bins}:{},...e.interval?{interval:e.interval}:{}},v))]}case"cell":return[tp(r,zd({fill:p??"count"},{...f,fill:a??i,label:!0}))];default:break}if(p||e.mark==="bar"){let v=p??(i?"sum":"count");u(n)==="ordinal"?h=Pd({y:v},h):h=Uc({y:v,...e.interval?{interval:e.interval}:e.bins?{thresholds:e.bins}:{}},h)}e.window&&e.window>1&&(h=xD({k:e.window,anchor:"middle"},h));let d=e.stack!==!1&&e.stack!==void 0&&!!a;switch(e.mark){case"line":return[Ou(r,h)];case"area":return e.stack==="normalize"||e.stack==="center"?[Rs(r,bo({offset:e.stack},h))]:e.stack===!1&&a?[Rs(r,{...h,y1:0,y2:h.y,fillOpacity:.25})]:[Rs(r,h)];case"bar":return e.stack==="normalize"||e.stack==="center"?[Ls(r,bo({offset:e.stack},h))]:!d&&a?[Ls(r,{...h,dodge:!0})]:[Ls(r,h)];case"dot":return[Ns(r,h)];default:return[Ou(r,h)]}}function Ore(t,e){let r={marks:N4(t,e),theme:e.theme,title:e.title,subtitle:e.subtitle,x:{label:e.xLabel===void 0?void 0:e.xLabel,zoom:e.zoom},y:{label:e.yLabel===void 0?void 0:e.yLabel,percent:e.stack==="normalize"},color:{overrides:e.colors}};return e.facet&&(r.facet={x:e.facet}),r}var ht=t=>JSON.stringify(t);function Ire(t,e="data"){let{x:r,y:n,color:i,size:a,facet:o}=t,s=[];r&&s.push(`x: ${ht(r)}`),n&&t.mark!=="histogram"&&s.push(`y: ${ht(n)}`);let l=t.mark==="line"?"stroke":t.mark==="auto"?"color":"fill";i&&s.push(`${l}: ${ht(i)}`),a&&s.push(t.mark==="auto"?`size: ${ht(a)}`:`r: ${ht(a)}`),o&&s.push(`fx: ${ht(o)}`),t.curve&&s.push(`curve: ${ht(t.curve)}`),t.gradient&&s.push("gradient: true"),t.interval&&(t.mark==="line"||t.mark==="area"||t.mark==="dot")&&!t.reduce&&s.push(`interval: ${ht(t.interval)}`),t.sort&&t.sort!=="none"&&s.push(`sort: { x: ${ht(t.sort)} }`),t.stack===!1&&i&&t.mark==="bar"&&s.push("dodge: true");let u=`{ ${s.join(", ")} }`,f=t.reduce??(t.mark==="bar"?n?"sum":"count":void 0),c;switch(t.mark){case"auto":c=`ip.auto(${e}, { ${[r&&`x: ${ht(r)}`,n&&(t.reduce?`y: { value: ${ht(n)}, reduce: ${ht(t.reduce)} }`:`y: ${ht(n)}`),i&&`color: ${ht(i)}`,a&&`size: ${ht(a)}`,o&&`fx: ${ht(o)}`].filter(Boolean).join(", ")} })`;break;case"histogram":c=`ip.rectY(${e}, ip.binX({ y: "count"${t.bins?`, thresholds: ${t.bins}`:""}${t.interval?`, interval: ${ht(t.interval)}`:""} }, ${u}))`;break;case"cell":c=`ip.cell(${e}, ip.group({ fill: ${ht(f??"count")} }, { x: ${ht(r)}, y: ${ht(n)}, fill: ${ht(i??n)}, label: true }))`;break;default:f&&(u=`ip.groupX({ y: ${ht(f)} }, ${u})`),t.window&&t.window>1&&(u=`ip.windowY(${t.window}, ${u})`),(t.stack==="normalize"||t.stack==="center")&&(t.mark==="area"||t.mark==="bar")&&(u=`ip.stackY({ offset: ${ht(t.stack)} }, ${u})`),c=`ip.${{line:"lineY",area:"areaY",bar:"barY",dot:"dot"}[t.mark]??"lineY"}(${e}, ${u})`}let p=[`marks: [${c}]`];return t.insights&&Object.keys(t.insights).length&&p.push(`insights: ${JSON.stringify(t.insights)}`),t.facet&&p.push(`facet: { x: ${ht(t.facet)} }`),t.zoom&&p.push("x: { zoom: true }"),t.stack==="normalize"&&p.push("y: { percent: true }"),t.colors&&Object.keys(t.colors).length&&p.push(`color: { overrides: ${JSON.stringify(t.colors)} }`),t.theme&&t.theme!=="light"&&p.push(`theme: ${ht(t.theme)}`),t.title&&p.push(`title: ${ht(t.title)}`),`ip.plot({
|
|
40
|
+
${p.join(`,
|
|
41
|
+
`)},
|
|
42
|
+
})`}function Hc(t,e,r){return mr(r,(i,a)=>{let o=t?Ne(i,r[t]):void 0,s=o?o.map(se):void 0;return{data:i,facets:a.map(l=>{let u=[];for(let f of Is(i,l,r))u.push(...e(f,s));return u})}})}function Rre(t={}){return Hc(void 0,e=>e.length?[e[0]]:[],t)}function Lre(t={}){return Hc(void 0,e=>e.length?[e[e.length-1]]:[],t)}var Rx=t=>(e,r)=>{if(!r)return e.length?[e[0]]:[];let n=-1;for(let i of e)Number.isFinite(r[i])&&(n<0||t*(r[i]-r[n])>0)&&(n=i);return n<0?[]:[n]};function Nre(t={}){return Hc("y",Rx(-1),t)}function Pre(t={}){return Hc("y",Rx(1),t)}function zre(t={}){return Hc("x",Rx(-1),t)}function Fre(t={}){return Hc("x",Rx(1),t)}export{He as BackendError,kx as Chart,bY as INSIGHT_COLORS,v_ as SCHEMES,cY as area,f_ as areaX,Rs as areaY,mD as auto,R4 as autoSpec,c_ as barX,Ls as barY,mr as basic,vD as bin,Uc as binX,dD as binY,tp as cell,Oa as column,M_ as compile,Jd as composeTransform,Ve as createMark,Dre as cumsumY,bk as darkTheme,r6 as defineTheme,Are as diffY,gY as differenceX,mY as differenceY,T4 as disposeChart,Ns as dot,pY as dotX,hY as dotY,nv as fadeGradient,Q4 as filter,tv as flattenMarks,ft as formatValue,yY as frame,Ore as fromSpec,it as getBackend,xY as gridX,_Y as gridY,zd as group,Pd as groupX,hD as groupY,vre as groupZ,Eu as guessTimeInterval,Au as identity,Mre as imputeX,Cre as imputeY,_D as indexOf,St as inferType,J4 as init,Sk as inkTheme,L4 as inspectFields,i_ as intervalX,a_ as intervalY,Yi as isColor,Gt as isDataChannel,t_ as jsBackend,T_ as lightTheme,l_ as line,u_ as lineX,Ou as lineY,xre as map,bre as mapX,_re as mapY,rv as marks,bi as maybeInterval,$d as medianStep,Tre as normalizeX,wre as normalizeY,n_ as numberInterval,M4 as plot,h_ as rect,p_ as rectX,ep as rectY,Ax as registerECharts,w4 as renderChart,C4 as renderSVG,pv as resolveTheme,tY as reverse,Qd as ruleX,ev as ruleY,Rre as selectFirst,Lre as selectLast,Fre as selectMaxX,Pre as selectMaxY,zre as selectMinX,Nre as selectMinY,Is as seriesOf,kre as shiftX,rY as shuffle,eY as sort,N4 as specMarks,Ire as specToCode,Jc as stackX,lY as stackX1,uY as stackX2,bo as stackY,oY as stackY1,sY as stackY2,d_ as text,dY as textX,vY as textY,n6 as themeToCSSVars,Co as themes,WD as useBackend,Xi as utcInterval,Ne as valueof,yD as window,Sre as windowX,xD as windowY,Ps as withOpacity,$D as zOf};
|
|
43
|
+
/*! For license information please see isopleth.browser.js.LEGAL.txt */
|
|
44
|
+
//# sourceMappingURL=isopleth.browser.js.map
|