dsh-token-chart 0.0.0-stage → 0.1.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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +200 -2
  3. package/cordis.patch.yml +7 -0
  4. package/icon.svg +7 -0
  5. package/lib/buckets.js +115 -0
  6. package/lib/chunk/echarts.entry.js +25 -0
  7. package/lib/client.echarts.js +58 -0
  8. package/lib/client.js +1743 -0
  9. package/lib/constants.js +22 -0
  10. package/lib/index.js +640 -0
  11. package/lib/paths.js +24 -0
  12. package/lib/prefs.js +54 -0
  13. package/lib/store.js +273 -0
  14. package/lib/token-chart.css +568 -0
  15. package/lib/types/buckets.d.ts +24 -0
  16. package/lib/types/chunk/echarts.entry.d.ts +11 -0
  17. package/lib/types/constants.d.ts +22 -0
  18. package/lib/types/index.d.ts +8 -0
  19. package/lib/types/paths.d.ts +3 -0
  20. package/lib/types/prefs.d.ts +8 -0
  21. package/lib/types/store.d.ts +72 -0
  22. package/lib/types/types.d.ts +230 -0
  23. package/lib/types/update.d.ts +24 -0
  24. package/lib/types.js +10 -0
  25. package/lib/update.js +110 -0
  26. package/locale/en.json +4 -0
  27. package/locale/zh.json +4 -0
  28. package/package.json +110 -4
  29. package/src/buckets.ts +120 -0
  30. package/src/chunk/echarts.entry.ts +27 -0
  31. package/src/client/api.ts +126 -0
  32. package/src/client/charts.tsx +255 -0
  33. package/src/client/chrome.tsx +127 -0
  34. package/src/client/contract.ts +62 -0
  35. package/src/client/drawer.tsx +113 -0
  36. package/src/client/format.ts +36 -0
  37. package/src/client/globals.d.ts +21 -0
  38. package/src/client/index.tsx +227 -0
  39. package/src/client/locales.ts +164 -0
  40. package/src/client/models.ts +76 -0
  41. package/src/client/mount.tsx +312 -0
  42. package/src/client/panel.tsx +152 -0
  43. package/src/client/pill.ts +21 -0
  44. package/src/client/react.ts +12 -0
  45. package/src/client/series.tsx +140 -0
  46. package/src/client/settings.tsx +347 -0
  47. package/src/client/styles/components.less +191 -0
  48. package/src/client/styles/index.less +7 -0
  49. package/src/client/styles/tailwind.css +21 -0
  50. package/src/client/styles/tokens.less +25 -0
  51. package/src/client/table.tsx +153 -0
  52. package/src/client/ui.tsx +87 -0
  53. package/src/constants.ts +26 -0
  54. package/src/index.ts +673 -0
  55. package/src/paths.ts +28 -0
  56. package/src/prefs.ts +61 -0
  57. package/src/store.ts +295 -0
  58. package/src/types.ts +216 -0
  59. package/src/update.ts +106 -0
@@ -0,0 +1,58 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "dsh-token-chart",
3
+ chunk: 'client.echarts.js',
4
+ factory: (require) => {
5
+ "use strict";var __DTC_ECHARTS=(()=>{var Ph=Object.defineProperty;var rM=Object.getOwnPropertyDescriptor;var iM=Object.getOwnPropertyNames;var nM=Object.prototype.hasOwnProperty;var Vt=(t,e)=>{for(var r in e)Ph(t,r,{get:e[r],enumerable:!0})},aM=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of iM(e))!nM.call(t,n)&&n!==r&&Ph(t,n,{get:()=>e[n],enumerable:!(i=rM(e,n))||i.enumerable});return t};var oM=t=>aM(Ph({},"__esModule",{value:!0}),t);var jU={};Vt(jU,{default:()=>KU});var ay={};Vt(ay,{Axis:()=>qp,ChartView:()=>ft,ComponentModel:()=>Se,ComponentView:()=>et,List:()=>xs,Model:()=>Ce,PRIORITY:()=>vg,SeriesModel:()=>Tt,color:()=>af,connect:()=>BN,dataTool:()=>WN,dependencies:()=>_N,disConnect:()=>zN,disconnect:()=>ow,dispose:()=>UN,env:()=>oe,extendChartView:()=>_k,extendComponentModel:()=>mk,extendComponentView:()=>gk,extendSeriesModel:()=>yk,format:()=>Jg,getCoordinateSystemDimensions:()=>VN,getInstanceByDom:()=>gg,getInstanceById:()=>FN,getMap:()=>YN,graphic:()=>Qg,helper:()=>Hg,init:()=>kN,innerDrawElementOnCanvas:()=>sp,matrix:()=>wi,number:()=>Kg,parseGeoJSON:()=>Xp,parseGeoJson:()=>Xp,registerAction:()=>mi,registerCoordinateSystem:()=>Sg,registerCustomSeries:()=>GN,registerLayout:()=>bg,registerLoading:()=>_p,registerLocale:()=>vc,registerMap:()=>wg,registerPostInit:()=>_g,registerPostUpdate:()=>xg,registerPreprocessor:()=>gp,registerProcessor:()=>yp,registerTheme:()=>yg,registerTransform:()=>Cg,registerUpdateLifecycle:()=>$l,registerVisual:()=>Ui,setCanvasCreator:()=>HN,setPlatformAPI:()=>Fu,throttle:()=>Wa,time:()=>jg,use:()=>yt,util:()=>$g,vector:()=>gr,version:()=>yN,zrUtil:()=>pe,zrender:()=>Df});var Rh=function(t,e){return Rh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Rh(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Rh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Df={};Vt(Df,{dispose:()=>WI,disposeAll:()=>XI,getElementSSRData:()=>Gv,getInstance:()=>ZI,init:()=>Af,registerPainter:()=>Vv,registerSSRDataGetter:()=>Hv,version:()=>qI});var sM=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),lM=(function(){function t(){this.browser=new sM,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})(),Xi=new lM;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Xi.wxa=!0,Xi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Xi.worker=!0:!Xi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Xi.node=!0,Xi.svgSupported=!0):uM(navigator.userAgent,Xi);function uM(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var oe=Xi;var pe={};Vt(pe,{EPSILON:()=>DM,HashMap:()=>z0,RADIAN_TO_DEGREE:()=>Gn,assert:()=>Be,assignProps:()=>Fh,bind:()=>J,clone:()=>$,concatArray:()=>Gh,createCanvas:()=>xM,createHashMap:()=>G,createObject:()=>bi,curry:()=>be,defaults:()=>re,disableUserSelect:()=>AM,each:()=>T,eqNaN:()=>Si,extend:()=>P,filter:()=>Ee,find:()=>Vh,guid:()=>Fs,hasOwn:()=>Oe,indexOf:()=>ae,inherits:()=>Gs,isArray:()=>k,isArrayLike:()=>je,isBuiltInObject:()=>Bh,isDom:()=>Bn,isFunction:()=>W,isGradientObject:()=>zn,isImagePatternObject:()=>bM,isNumber:()=>se,isObject:()=>H,isPrimitive:()=>fo,isRegExp:()=>TM,isString:()=>U,isStringSafe:()=>po,isTypedArray:()=>Ve,keys:()=>ie,logError:()=>Vs,map:()=>z,merge:()=>de,mergeAll:()=>_M,mixin:()=>ct,noop:()=>Me,normalizeCssArray:()=>Fn,reduce:()=>Ct,retrieve:()=>Un,retrieve2:()=>Y,retrieve3:()=>Ht,setAsPrimitive:()=>Vn,slice:()=>Hs,trim:()=>pt});var Uu=12,Nh="sans-serif",Gt=Uu+"px "+Nh,fM=20,cM=100,pM="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hM(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-fM)/cM;e[i]=n}return e}var vM=hM(pM),at={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=at.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Gt),t.measureText(r);r=r||"",i=i||Gt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Uu,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=vM[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function Fu(t){for(var e in at)at.hasOwnProperty(e)&&t[e]&&(at[e]=t[e])}var R0=Ct(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),N0=Ct(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),co=Object.prototype.toString,Gu=Array.prototype,dM=Gu.forEach,mM=Gu.filter,zh=Gu.slice,gM=Gu.map,P0=function(){}.constructor,Vu=P0?P0.prototype:null,Uh="__proto__",kh=2311,yM=Math.pow(2,53)-1;function Fs(){return kh>=yM&&(kh=0),kh++}function Vs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function $(t){if(t==null||typeof t!="object")return t;var e=t,r=co.call(t);if(r==="[object Array]"){if(!fo(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=$(t[i])}}else if(N0[r]){if(!fo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!R0[r]&&!fo(t)&&!Bn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Uh&&(e[o]=$(t[o]))}return e}function de(t,e,r){if(!H(e)||!H(t))return r?$(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Uh){var n=t[i],a=e[i];H(a)&&H(n)&&!k(a)&&!k(n)&&!Bn(a)&&!Bn(n)&&!Bh(a)&&!Bh(n)&&!fo(a)&&!fo(n)?de(n,a,r):(r||!(i in t))&&(t[i]=$(e[i]))}return t}function _M(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=de(r,t[i],e);return r}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Uh&&(t[r]=e[r]);return t}function Fh(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function re(t,e,r){for(var i=ie(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var xM=at.createCanvas;function ae(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Gs(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function ct(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else re(t,e,r)}function je(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function T(t,e,r){if(t&&e)if(t.forEach&&t.forEach===dM)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function z(t,e,r){if(!t)return[];if(!e)return Hs(t);if(t.map&&t.map===gM)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function Ct(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Ee(t,e,r){if(!t)return[];if(!e)return Hs(t);if(t.filter&&t.filter===mM)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Vh(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function ie(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 SM(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(zh.call(arguments)))}}var J=Vu&&W(Vu.bind)?Vu.call.bind(Vu.bind):SM;function be(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(zh.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):co.call(t)==="[object Array]"}function W(t){return typeof t=="function"}function U(t){return typeof t=="string"}function po(t){return co.call(t)==="[object String]"}function se(t){return typeof t=="number"}function H(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Bh(t){return!!R0[co.call(t)]}function Ve(t){return!!N0[co.call(t)]}function Bn(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function zn(t){return t.colorStops!=null}function bM(t){return t.image!=null}function TM(t){return co.call(t)==="[object RegExp]"}function Si(t){return t!==t}function Un(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Y(t,e){return t??e}function Ht(t,e,r){return t??e??r}function Hs(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return zh.apply(t,e)}function Fn(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 Be(t,e){if(!t)throw new Error(e)}function pt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var k0="__ec_primitive__";function Vn(t){t[k0]=!0}function fo(t){return t[k0]}var wM=(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 ie(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),B0=typeof Map=="function";function CM(){return B0?new Map:new wM}var z0=(function(){function t(e){var r=k(e);this.data=CM();var i=this;e instanceof t?e.each(n):e&&T(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return B0?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function G(t){return new z0(t)}function Gh(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function bi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function AM(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Oe(t,e){return t.hasOwnProperty(e)}function Me(){}var Gn=180/Math.PI,DM=Number.EPSILON||Math.pow(2,-52);var gr={};Vt(gr,{add:()=>Hu,applyTransform:()=>Qe,clone:()=>Hh,copy:()=>EM,create:()=>Ti,dist:()=>ho,distSquare:()=>Zi,distance:()=>Xs,distanceSquare:()=>U0,div:()=>PM,dot:()=>RM,len:()=>Wh,lenSquare:()=>Xh,length:()=>IM,lengthSquare:()=>OM,lerp:()=>Zs,max:()=>mr,min:()=>dr,mul:()=>LM,negate:()=>NM,normalize:()=>Zh,scale:()=>Ws,scaleAndAdd:()=>MM,set:()=>Ys,sub:()=>Yh});function Ti(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function EM(t,e){return t[0]=e[0],t[1]=e[1],t}function Hh(t){return[t[0],t[1]]}function Ys(t,e,r){return t[0]=e,t[1]=r,t}function Hu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function MM(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function Yh(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Wh(t){return Math.sqrt(Xh(t))}var IM=Wh;function Xh(t){return t[0]*t[0]+t[1]*t[1]}var OM=Xh;function LM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function PM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function RM(t,e){return t[0]*e[0]+t[1]*e[1]}function Ws(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Zh(t,e){var r=Wh(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Xs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ho=Xs;function U0(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Zi=U0;function NM(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Zs(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Qe(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function dr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function mr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var vo=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),kM=(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 vo(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new vo(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new vo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new vo(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new vo(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new vo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),F0=kM;var BM=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),_t=BM;var zM=Math.log(2);function qh(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/zM);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*qh(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Kh(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=qh(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*qh(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Yu="___zrEVENTSAVED",jh=[];function V0(t,e,r,i,n){return Wu(jh,e,i,n,!0)&&Wu(t,r,jh[0],jh[1])}function G0(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Yu];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Yu])}}function Wu(t,e,r,i,n){if(e.getBoundingClientRect&&oe.domSupported&&!Qh(e)){var a=e[Yu]||(e[Yu]={}),o=UM(e,a),s=FM(o,a,n);if(s)return s(t,r,i),!0}return!1}function UM(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function FM(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Kh(s,o):Kh(o,s))}function Qh(t){return t.nodeName.toUpperCase()==="CANVAS"}var VM=/([&<>"'])/g,GM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Je(t){return t==null?"":(t+"").replace(VM,function(e,r){return GM[r]})}var HM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jh=[],YM=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function Xu(t,e,r,i){return r=r||{},i?H0(t,e,r):YM&&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):H0(t,e,r),r}function H0(t,e,r){if(oe.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Qh(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Wu(Jh,t,i,n)){r.zrX=Jh[0],r.zrY=Jh[1];return}}r.zrX=r.zrY=0}function Zu(t){return t||window.event}function Yt(t,e,r){if(e=Zu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Xu(t,o,e,r)}else{Xu(t,e,e,r);var a=WM(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&HM.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function WM(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Y0(t,e,r,i){t.addEventListener(e,r,i)}function W0(t,e,r,i){t.removeEventListener(e,r,i)}var Qr=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function $h(t){return t.which===2||t.which===3}var Z0=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Xu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in ev)if(ev.hasOwnProperty(r)){var i=ev[r](this._track,e);if(i)return i}},t})();function X0(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function XM(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ev={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=X0(i)/X0(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=XM(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var wi={};Vt(wi,{clone:()=>ZM,copy:()=>Hn,create:()=>xt,identity:()=>yr,invert:()=>tr,mul:()=>Nr,rotate:()=>Yn,scale:()=>tv,translate:()=>mo});function xt(){return[1,0,0,1,0,0]}function yr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Hn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Nr(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function mo(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 Yn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function tv(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function tr(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function ZM(t){var e=xt();return Hn(e,t),e}var qM=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),le=qM;var Kn=Math.min,go=Math.max,nv=Math.abs,q0=["x","y"],KM=["width","height"],Wn=new le,Xn=new le,Zn=new le,qn=new le,rr=ov(),Ks=rr.minTv,av=rr.maxTv,js=[0,0],Ci=(function(){function t(e,r,i,n){rv(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Kn(e.x,this.x),i=Kn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=go(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=go(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return jM(xt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&le.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=rv(QM,e.x,e.y,e.width,e.height)),r instanceof t||(r=rv(JM,r.x,r.y,r.width,r.height));var s=!!i;rr.reset(n,s);var l=rr.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(js[0]=1/0,js[1]=0,j0(u,f,h,v,0,s,a,o),j0(c,p,d,m,1,s,a,o),s&&le.copy(i,g?rr.useDir?rr.dirMinTv:Ks:av)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){K0(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&K0(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wn.x=Zn.x=r.x,Wn.y=qn.y=r.y,Xn.x=qn.x=r.x+r.width,Xn.y=Zn.y=r.y+r.height,Wn.transform(i),qn.transform(i),Xn.transform(i),Zn.transform(i),e.x=Kn(Wn.x,Xn.x,Zn.x,qn.x),e.y=Kn(Wn.y,Xn.y,Zn.y,qn.y);var l=go(Wn.x,Xn.x,Zn.x,qn.x),u=go(Wn.y,Xn.y,Zn.y,qn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=yr(e||[]),mo(e,e,Ys(iv,-r.x,-r.y)),tv(e,e,Ys(iv,n,a)),mo(e,e,Ys(iv,i.x,i.y)),e},t})(),vF=Ci.create,rv=Ci.set,K0=Ci.copy,jM=Ci.calculateTransform,dF=Ci.applyTransform,mF=Ci.contain,QM=new Ci(0,0,0,0),JM=new Ci(0,0,0,0),iv=[];function j0(t,e,r,i,n,a,o,s){var l=nv(e-r),u=nv(i-t),f=Kn(l,u),c=q0[n],p=q0[1-n],h=KM[n];e<r||i<t?l<u?(a&&(av[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(av[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=go(t,r),o[h]=Kn(e,i)-o[c]),a&&(f<js[0]||rr.useDir)&&(js[0]=Kn(f,js[0]),(l<u||!rr.bidirectional)&&(Ks[c]=l,Ks[p]=0,rr.useDir&&rr.calcDirMTV()),(l>=u||!rr.bidirectional)&&(Ks[c]=-u,Ks[p]=0,rr.useDir&&rr.calcDirMTV())))}function ov(){var t=0,e=new le,r=new le,i={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=go(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return nv(a)<1e-10}return i}var ne=Ci;var J0="silent";function $M(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:eI}}function eI(){Qr(this.event)}var tI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(_t),Qs=(function(){function t(e,r){this.x=e,this.y=r}return t})(),rI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sv=new ne(0,0,0,0),$0=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Qs(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new tI,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new F0(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(rI,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=e_(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Qs(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Qs(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=$M(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Qs(r,i);if(Q0(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(sv.copy(p.getBoundingRect()),p.transform&&sv.applyTransform(p.transform),sv.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(Q0(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Z0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Qs;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(_t);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$0.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=e_(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||ho(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function iI(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?J0:!0}return!1}function Q0(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=iI(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==J0)){e.target=o;break}}}function e_(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var t_=$0;var n_=32,Js=7;function nI(t){for(var e=0;t>=n_;)e|=t&1,t>>=1;return t+e}function r_(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;aI(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function aI(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function i_(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function lv(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function uv(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function oI(t,e){var r=Js,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=uv(t[m],t,v,d,0,e);v+=y,d-=y,d!==0&&(g=lv(t[v+d-1],t,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,w,A;;){b=0,w=0,A=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],w++,b=0,--m===0){A=!0;break}}else if(t[x++]=o[y++],b++,w=0,--v===1){A=!0;break}while((b|w)<S);if(A)break;do{if(b=uv(t[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){A=!0;break}}if(t[x++]=t[_++],--m===0){A=!0;break}if(w=lv(o[y],t,_,m,0,e),w!==0){for(g=0;g<w;g++)t[x+g]=t[_+g];if(x+=w,_+=w,m-=w,m===0){A=!0;break}}if(t[x++]=o[y++],--v===1){A=!0;break}S--}while(b>=Js||w>=Js);if(A)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(t[x--]=t[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var w=r;;){var A=0,C=0,D=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],A++,C=0,--v===0){D=!0;break}}else if(t[x--]=o[_--],C++,A=0,--m===1){D=!0;break}while((A|C)<w);if(D)break;do{if(A=v-uv(o[_],t,h,v,v-1,e),A!==0){for(x-=A,y-=A,v-=A,b=x+1,S=y+1,g=A-1;g>=0;g--)t[b+g]=t[S+g];if(v===0){D=!0;break}}if(t[x--]=o[_--],--m===1){D=!0;break}if(C=m-lv(t[y],o,0,m,m-1,e),C!==0){for(x-=C,_-=C,m-=C,b=x+1,S=_+1,g=0;g<C;g++)t[b+g]=o[S+g];if(m<=1){D=!0;break}}if(t[x--]=t[y--],--v===0){D=!0;break}w--}while(A>=Js||C>=Js);if(D)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function jn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<n_){a=r_(t,r,i,e),i_(t,r,i,r+a,e);return}var o=oI(t,e),s=nI(n);do{if(a=r_(t,r,i,e),a<s){var l=n;l>s&&(l=s),i_(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var At=1,Qn=2,qi=4;var a_=!1;function fv(){a_||(a_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function o_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var sI=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=o_}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,jn(i,o_)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=At),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(fv(),v.z=0),isNaN(v.z2)&&(fv(),v.z2=0),isNaN(v.zlevel)&&(fv(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ae(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),s_=sI;var l_;l_=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var cv=l_;var qu={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-qu.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?qu.bounceIn(t*2)*.5:qu.bounceOut(t*2-1)*.5+.5}},Ku=qu;var ju=Math.pow,ji=Math.sqrt,Ju=1e-8,f_=1e-4,u_=ji(3),Qu=1/3,Jr=Ti(),_r=Ti(),yo=Ti();function Ki(t){return t>-Ju&&t<Ju}function c_(t){return t>Ju||t<-Ju}function ze(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function pv(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Jn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Ki(f)&&Ki(c))if(Ki(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Ki(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=ji(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-ju(-_,Qu):_=ju(_,Qu),x<0?x=-ju(-x,Qu):x=ju(x,Qu);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*ji(f*f*f)),b=Math.acos(S)/3,w=ji(f),A=Math.cos(b),v=(-s-2*w*A)/(3*o),g=(-s+w*(A+u_*Math.sin(b)))/(3*o),C=(-s+w*(A-u_*Math.sin(b)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),C>=0&&C<=1&&(a[h++]=C)}}return h}function $u(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Ki(o)){if(c_(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Ki(f))n[0]=-a/(2*o);else if(f>0){var c=ji(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function _o(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function p_(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;Jr[0]=l,Jr[1]=u;for(var y=0;y<1;y+=.05)_r[0]=ze(t,r,n,o,y),_r[1]=ze(e,i,a,s,y),m=Zi(Jr,_r),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<f_);_++)v=c-p,d=c+p,_r[0]=ze(t,r,n,o,v),_r[1]=ze(e,i,a,s,v),m=Zi(_r,Jr),v>=0&&m<h?(c=v,h=m):(yo[0]=ze(t,r,n,o,d),yo[1]=ze(e,i,a,s,d),g=Zi(yo,Jr),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=ze(t,r,n,o,c),f[1]=ze(e,i,a,s,c)),ji(h)}function h_(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=ze(t,r,n,o,v),m=ze(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function ot(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function hv(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function v_(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Ki(a)){if(c_(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Ki(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=ji(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function ef(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function xo(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function d_(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Jr[0]=o,Jr[1]=s;for(var p=0;p<1;p+=.05){_r[0]=ot(t,r,n,p),_r[1]=ot(e,i,a,p);var h=Zi(Jr,_r);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<f_);v++){var d=u-f,m=u+f;_r[0]=ot(t,r,n,d),_r[1]=ot(e,i,a,d);var h=Zi(_r,Jr);if(d>=0&&h<c)u=d,c=h;else{yo[0]=ot(t,r,n,m),yo[1]=ot(e,i,a,m);var g=Zi(yo,Jr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=ot(t,r,n,u),l[1]=ot(e,i,a,u)),ji(c)}function m_(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=ot(t,r,n,p),v=ot(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var lI=/cubic-bezier\(([0-9,\.e ]+)\)/;function So(t){var e=t&&lI.exec(t);if(e){var r=e[1].split(","),i=+pt(r[0]),n=+pt(r[1]),a=+pt(r[2]),o=+pt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Jn(0,i,a,1,l,s)&&ze(0,n,o,1,s[0])}}}var uI=(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||Me,this.ondestroy=e.ondestroy||Me,this.onrestart=e.onrestart||Me,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:Ku[e]||So(e)},t})(),g_=uI;var af={};Vt(af,{fastLerp:()=>b_,fastMapToColor:()=>dI,lerp:()=>nf,lift:()=>yv,liftColor:()=>wo,lum:()=>$n,mapToColor:()=>mI,modifyAlpha:()=>gI,modifyHSL:()=>To,parse:()=>ht,parseCssFloat:()=>Ji,parseCssInt:()=>rf,random:()=>yI,stringify:()=>ei,toHex:()=>vI});var y_=(function(){function t(e){this.value=e}return t})();var fI=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new y_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var cI=(function(){function t(e){this._list=new fI,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new y_(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),$r=cI;var __={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function kr(t){return t=Math.round(t),t<0?0:t>255?255:t}function pI(t){return t=Math.round(t),t<0?0:t>360?360:t}function $s(t){return t<0?0:t>1?1:t}function rf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?kr(parseFloat(e)/100*255):kr(parseInt(e,10))}function Ji(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?$s(parseFloat(e)/100):$s(parseFloat(e))}function dv(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 Qi(t,e,r){return t+(e-t)*r}function xr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function mv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var S_=new $r(20),tf=null;function bo(t,e){tf&&mv(tf,e),tf=S_.put(t,tf||e.slice())}function ht(t,e){if(t){e=e||[];var r=S_.get(t);if(r)return mv(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in __)return mv(e,__[i]),bo(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){xr(e,0,0,0,1);return}return xr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),bo(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){xr(e,0,0,0,1);return}return xr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),bo(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xr(e,+u[0],+u[1],+u[2],1):xr(e,0,0,0,1);f=Ji(u.pop());case"rgb":if(u.length>=3)return xr(e,rf(u[0]),rf(u[1]),rf(u[2]),u.length===3?f:Ji(u[3])),bo(t,e),e;xr(e,0,0,0,1);return;case"hsla":if(u.length!==4){xr(e,0,0,0,1);return}return u[3]=Ji(u[3]),gv(u,e),bo(t,e),e;case"hsl":if(u.length!==3){xr(e,0,0,0,1);return}return gv(u,e),bo(t,e),e;default:return}}xr(e,0,0,0,1)}}function gv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ji(t[1]),n=Ji(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],xr(e,kr(dv(o,a,r+1/3)*255),kr(dv(o,a,r)*255),kr(dv(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function hI(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function yv(t,e){var r=ht(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return ei(r,r.length===4?"rgba":"rgb")}}function vI(t){var e=ht(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function b_(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=kr(Qi(o[0],s[0],l)),r[1]=kr(Qi(o[1],s[1],l)),r[2]=kr(Qi(o[2],s[2],l)),r[3]=$s(Qi(o[3],s[3],l)),r}}var dI=b_;function nf(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=ht(e[n]),s=ht(e[a]),l=i-n,u=ei([kr(Qi(o[0],s[0],l)),kr(Qi(o[1],s[1],l)),kr(Qi(o[2],s[2],l)),$s(Qi(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var mI=nf;function To(t,e,r,i){var n=ht(t);if(t)return n=hI(n),e!=null&&(n[0]=pI(W(e)?e(n[0]):e)),r!=null&&(n[1]=Ji(W(r)?r(n[1]):r)),i!=null&&(n[2]=Ji(W(i)?i(n[2]):i)),ei(gv(n),"rgba")}function gI(t,e){var r=ht(t);if(r&&e!=null)return r[3]=$s(e),ei(r,"rgba")}function ei(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 $n(t,e){var r=ht(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function yI(){return ei([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var x_=new $r(100);function wo(t){if(U(t)){var e=x_.get(t);return e||(e=yv(t,-.1),x_.put(t,e)),e}else if(zn(t)){var r=P({},t);return r.colorStops=z(t.colorStops,function(i){return{offset:i.offset,color:yv(i.color,-.1)}}),r}return t}var sf=Math.round;function $i(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=ht(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var T_=1e-4;function ti(t){return t<T_&&t>-T_}function of(t){return sf(t*1e3)/1e3}function lf(t){return sf(t*1e4)/1e4}function w_(t){return"matrix("+of(t[0])+","+of(t[1])+","+of(t[2])+","+of(t[3])+","+lf(t[4])+","+lf(t[5])+")"}var C_={left:"start",right:"end",center:"middle",middle:"middle"};function A_(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function D_(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function E_(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 _v(t){return t&&!!t.image}function _I(t){return t&&!!t.svgElement}function el(t){return _v(t)||_I(t)}function uf(t){return t.type==="linear"}function ff(t){return t.type==="radial"}function cf(t){return t&&(t.type==="linear"||t.type==="radial")}function tl(t){return"url(#"+t+")"}function pf(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 hf(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*Gn,n=Y(t.scaleX,1),a=Y(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+sf(o*Gn)+"deg, "+sf(s*Gn)+"deg)"),l.join(" ")}var M_=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var Sv=Array.prototype.slice;function Ai(t,e,r){return(e-t)*r+t}function xv(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=Ai(e[a],r[a],i);return t}function xI(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Ai(e[o][s],r[o][s],i)}return t}function vf(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function I_(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function SI(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function bI(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:Sv.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function nl(t){if(je(t)){var e=t.length;if(je(t[0])){for(var r=[],i=0;i<e;i++)r.push(Sv.call(t[i]));return r}return Sv.call(t)}return t}function gf(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 TI(t){return je(t&&t[0])?2:1}var df=0,yf=1,P_=2,il=3,bv=4,Tv=5,O_=6;function L_(t){return t===bv||t===Tv}function mf(t){return t===yf||t===P_}var rl=[0,0,0,0],wI=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=O_,l=r;if(je(r)){var u=TI(r);s=u,(u===1&&!se(r[0])||u===2&&!se(r[0][0]))&&(o=!0)}else if(se(r)&&!Si(r))s=df;else if(U(r))if(!isNaN(+r))s=df;else{var f=ht(r);f&&(l=f,s=il)}else if(zn(r)){var c=P({},l);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:ht(h.color)}}),uf(r)?s=bv:ff(r)&&(s=Tv),l=c}a===0?this.valType=s:(s!==this.valType||s===O_)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=W(i)?i:Ku[i]||So(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=mf(n),u=L_(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?bI(p,h,n):u&&SI(p.colorStops,h.colorStops))}if(!s&&n!==Tv&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===df?i[f].additiveValue=i[f].value-v:n===il?i[f].additiveValue=vf([],i[f].value,v,-1):mf(n)&&(i[f].additiveValue=n===yf?vf([],i[f].value,v,-1):I_([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===il,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?rl:e[l];if((mf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(mf(a))a===yf?xv(y,h[n],v[n],g):xI(y,h[n],v[n],g);else if(L_(a)){var _=h[n],x=v[n],S=a===bv;e[l]={type:S?"linear":"radial",x:Ai(_.x,x.x,g),y:Ai(_.y,x.y,g),colorStops:z(_.colorStops,function(w,A){var C=x.colorStops[A];return{offset:Ai(w.offset,C.offset,g),color:gf(xv([],w.color,C.color,g))}}),global:x.global},S?(e[l].x2=Ai(_.x2,x.x2,g),e[l].y2=Ai(_.y2,x.y2,g)):e[l].r=Ai(_.r,x.r,g)}else if(u)xv(y,h[n],v[n],g),i||(e[l]=gf(y));else{var b=Ai(h[n],v[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===df?e[i]=e[i]+n:r===il?(ht(e[i],rl),vf(rl,rl,n,1),e[i]=gf(rl)):r===yf?vf(e[i],e[i],n,1):r===P_&&I_(e[i],e[i],n,1)},t})(),CI=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Vs("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,ie(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new wI(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===il&&u&&(u=gf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,nl(u),n),this._trackKeys.push(s)}l.addKeyframe(e,nl(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new g_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=nl(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ie(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),al=CI;function ea(){return new Date().getTime()}var AI=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=ea()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(cv(i),!r._paused&&r.update())}cv(i)},e.prototype.start=function(){this._running||(this._time=ea(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ea(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ea()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new al(r,i.loop);return this.addAnimator(n),n},e})(_t),R_=AI;var DI=300,wv=oe.domSupported,Cv=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=z(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),N_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},k_=!1;function Ev(t){var e=t.pointerType;return e==="pen"||e==="touch"}function EI(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 Av(t){t&&(t.zrByTouch=!0)}function MI(t,e){return Yt(t.dom,new II(t,e),!0)}function z_(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var II=(function(){function t(e,r){this.stopPropagation=Me,this.stopImmediatePropagation=Me,this.preventDefault=Me,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Br={mousedown:function(t){t=Yt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Yt(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=Yt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Yt(this.dom,t);var e=t.toElement||t.relatedTarget;z_(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){k_=!0,t=Yt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){k_||(t=Yt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Yt(this.dom,t),Av(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Br.mousemove.call(this,t),Br.mousedown.call(this,t)},touchmove:function(t){t=Yt(this.dom,t),Av(t),this.handler.processGesture(t,"change"),Br.mousemove.call(this,t)},touchend:function(t){t=Yt(this.dom,t),Av(t),this.handler.processGesture(t,"end"),Br.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<DI&&Br.click.call(this,t)},pointerdown:function(t){Br.mousedown.call(this,t)},pointermove:function(t){Ev(t)||Br.mousemove.call(this,t)},pointerup:function(t){Br.mouseup.call(this,t)},pointerout:function(t){Ev(t)||Br.mouseout.call(this,t)}};T(["click","dblclick","contextmenu"],function(t){Br[t]=function(e){e=Yt(this.dom,e),this.trigger(t,e)}});var Mv={pointermove:function(t){Ev(t)||Mv.mousemove.call(this,t)},pointerup:function(t){Mv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function OI(t,e){var r=e.domHandlers;oe.pointerEventsSupported?T(Cv.pointer,function(i){_f(e,i,function(n){r[i].call(t,n)})}):(oe.touchEventsSupported&&T(Cv.touch,function(i){_f(e,i,function(n){r[i].call(t,n),EI(e)})}),T(Cv.mouse,function(i){_f(e,i,function(n){n=Zu(n),e.touching||r[i].call(t,n)})}))}function LI(t,e){oe.pointerEventsSupported?T(N_.pointer,r):oe.touchEventsSupported||T(N_.mouse,r);function r(i){function n(a){a=Zu(a),z_(t,a.target)||(a=MI(t,a),e.domHandlers[i].call(t,a))}_f(e,i,n,{capture:!0})}}function _f(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Y0(t.domTarget,e,r,i)}function Dv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&W0(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var B_=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),PI=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new B_(r,Br),wv&&(n._globalHandlerScope=new B_(document,Mv)),OI(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Dv(this._localHandlerScope),wv&&Dv(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,wv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?LI(this,i):Dv(i)}},e})(_t),U_=PI;var F_=1;oe.hasGlobalWindow&&(F_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Iv=F_,ol=.4,sl="#333",ll="#ccc",V_="#eee";var G_=yr,H_=5e-5;function ta(t){return t>H_||t<-H_}var ra=[],Co=[],Ov=xt(),Lv=Math.abs,Y_=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return RI(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 ta(this.rotation)||ta(this.x)||ta(this.y)||ta(this.scaleX-1)||ta(this.scaleY-1)||ta(this.skewX)||ta(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(G_(i),this.invTransform=null);return}i=i||xt(),r?this.getLocalTransform(i):G_(i),e&&(r?Nr(i,e,i):Hn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||xt(),tr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ra);var i=ra[0]<0?-1:1,n=ra[1]<0?-1:1,a=((ra[0]-i)*r+i)/ra[0]||0,o=((ra[1]-n)*r+n)/ra[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||xt(),Nr(Co,e.invTransform,r),r=Co);var i=this.originX,n=this.originY;(i||n)&&(Ov[4]=i,Ov[5]=n,Nr(Co,r,Ov),Co[4]-=i,Co[5]-=n,r=Co),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&Qe(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&Qe(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Lv(e[0]-1)>1e-10&&Lv(e[3]-1)>1e-10?Math.sqrt(Lv(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){en(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&Yn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),RI=Y_.getLocalTransform;var Ao=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function en(t,e){return Fh(t,e,Ao)}var Do=Y_;function Ur(t){xf||(xf=new $r(100)),t=t||Gt;var e=xf.get(t);return e||(e={font:t,strWidthCache:new $r(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:at.measureText("国",t).width,asciiCharWidth:at.measureText("a",t).width},xf.put(t,e)),e}var xf;function NI(t){if(!(Pv>=W_)){t=t||Gt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=at.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Pv=W_:n>2&&Pv++,e}}var Pv=0,W_=5;function Rv(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=NI(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Fr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=at.measureText(e,t.font).width,r.put(e,i)),i}function X_(t,e,r,i){var n=Fr(Ur(e),t),a=ia(e),o=tn(0,n,r),s=Di(0,a,i),l=new ne(o,s,n,a);return l}function Sf(t,e,r,i){var n=((t||"")+"").split(`
6
+ `),a=n.length;if(a===1)return X_(n[0],e,r,i);for(var o=new ne(0,0,0,0),s=0;s<n.length;s++){var l=X_(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function tn(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function Di(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function ia(t){return Ur(t).stWideCharWidth}function zr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function na(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=zr(i[0],r.width),u+=zr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Nv="__zr_normal__",kv=Ao.concat(["ignore"]),kI=Ct(Ao,function(t,e){return t[e]=!0,t},{ignore:!1}),Eo={},BI=new ne(0,0,0,0),bf=[],Tf=0,Mo=1,Uv=(function(){function t(e){this.id=Fs(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=BI,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Eo,i,p):na(Eo,i,p),a.x=Eo.x,a.y=Eo.y,o=Eo.align,s=Eo.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=zr(h[0],p.width),d=zr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ne(0,0,0,0);a.getLocalTransform(bf),tr(bf,bf),ne.copy(y,p),y.applyTransform(bf)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=At,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()?ll:sl},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&ht(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ei(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},P(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(H(e))for(var i=e,n=ie(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Nv)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,kv)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Nv,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Nv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ae(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){Vs("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=q_(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,j_(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Tf,this.__dirty&=~At),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=q_(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,j_(this,r,d),d);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Tf,this.__dirty&=~At)}},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=ae(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ae(n,e),o=ae(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];P(r,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==Mo){var s=!(r&&n);r&&r.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<kv.length;f++){var c=kv[f],p=a&&kI[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Do,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=At;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new al(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ae(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Bv(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Bv(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Bv(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Tf,e.__dirty=At;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();ct(Uv,_t);ct(Uv,Do);function Bv(t,e,r,i,n){r=r||{};var a=[];Q_(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function zv(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function zI(t){return je(t[0])}function UI(t,e,r){if(je(e[r]))if(je(t[r])||(t[r]=[]),Ve(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),zv(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(zI(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?zv(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else zv(a,n,o);a.length=n.length}else t[r]=e[r]}function FI(t,e){return t===e||je(t)&&je(e)&&VI(t,e)}function VI(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function Q_(t,e,r,i,n,a,o,s){for(var l=ie(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!H(a),v=t.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(H(y)&&!je(y)&&!zn(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Q_(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var w=ae(v,S);v.splice(w,1)}}}if(n.force||(d=Ee(d,function(M){return!FI(i[M],r[M])}),_=d.length),_>0||n.force&&!o.length){var A=void 0,C=void 0,D=void 0;if(s){C={},p&&(A={});for(var x=0;x<_;x++){var g=d[x];C[g]=r[g],p?A[g]=i[g]:r[g]=i[g]}}else if(p){D={};for(var x=0;x<_;x++){var g=d[x];D[g]=nl(r[g]),UI(r,i,g)}}var S=new al(r,!1,!1,c?Ee(v,function(I){return I.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&A&&S.whenWithKeys(0,A,d),D&&S.whenWithKeys(0,D,d),S.whenWithKeys(u??500,s?C:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function q_(t,e,r,i){return!(r&&r.hoverLayer||i)||K_(t)||e&&K_(e)?Tf:Mo}function K_(t){return t.type==="text"||t.type==="tspan"}function j_(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var wf=Uv;var J_=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ae(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ae(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new ne(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(wf);J_.prototype.type="group";var xe=J_;var Cf={},aa={};function GI(t){delete aa[t]}function HI(t){if(!t)return!1;if(typeof t=="string")return $n(t,1)<ol;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=$n(e[n].color,1);return r/=i,r<ol}return!1}var YI=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new s_,o=i.renderer||"canvas";Cf[o]||(o=ie(Cf)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Cf[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!oe.node&&!oe.worker&&!l?new U_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?oe.touchEventsSupported:!!f,p=44,h;c&&(h=Y(i.pointerSize,p)),this.handler=new t_(a,s,u,s.root,h),this.animation=new R_({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=HI(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=ea(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=ea();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof xe&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,GI(this.id))},t})();function Af(t,e){var r=new YI(Fs(),t,e);return aa[r.id]=r,r}function WI(t){t.dispose()}function XI(){for(var t in aa)aa.hasOwnProperty(t)&&aa[t].dispose();aa={}}function ZI(t){return aa[t]}function Vv(t,e){Cf[t]=e}var Fv;function Gv(t){if(typeof Fv=="function")return Fv(t)}function Hv(t){Fv=t}var qI="6.1.0";var $_=1e-4,Ef=20;function KI(t){return t.replace(/^\s+|\s+$/g,"")}var Re=Math.min,he=Math.max,Ie=Math.abs,Wt=Math.round,Xt=Math.floor,ri=Math.ceil,nn=Math.pow,rn=Math.log,ul=Math.LN10,jI=Math.PI,QI=Math.random;function Le(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var we=JI;function JI(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 Mf(t,e,r)}function Mf(t,e,r){return U(t)?$I(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function $I(t){return!!KI(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Re(he(0,e),Ef),t=(+t).toFixed(e),r?t:+t)}function ex(t,e,r){return e==null&&(e=10),ve(t,e,r)}function Dt(t){return t.sort(function(e,r){return e-r}),t}function ir(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Wt(t*e)/e===t)return r}return Yv(t)}function Yv(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return he(0,o-i)}function tx(t,e){var r=Xt(rn(t[1]-t[0])/ul),i=Wt(rn(Ie(e[1]-e[0]))/ul),n=Re(he(-r+i,0),Ef);return isFinite(n)?n:Ef}function If(t,e,r){var i=Ie(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=rn(2*Ie(r||1)*Ie(i))/ul,a=rn(Ie(e))/ul,o=he(0,ri(-n+a));return isFinite(o)||(o=NaN),o}function rx(t,e,r){if(!t[e])return 0;var i=Wv(t,r);return i[e]||0}function Wv(t,e){var r=Ct(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=nn(10,e),n=z(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=z(n,function(h){return Xt(h)}),s=Ct(o,function(h,v){return h+v},0),l=z(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return z(o,function(h){return h/i})}function Ei(t,e){var r=he(ir(t),ir(e)),i=t+e;return r>Ef?i:ve(i,r)}var fl=nn(2,53)-1;function cl(t){var e=jI*2;return(t%e+e)%e}function oa(t){return t>-$_&&t<$_}var eO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Pt(t){if(t instanceof Date)return t;if(U(t)){var e=eO.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(Wt(t))}function Io(t){return nn(10,Oo(t))}function Oo(t){if(t===0)return 0;var e=Xt(rn(t)/ul);return t/nn(10,e)>=10&&e++,e}var Xv=2;function Mi(t,e){var r=Oo(t),i=nn(10,r),n=t/i,a;return e===Xv?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function ix(t,e){var r=(t.length-1)*e+1,i=Xt(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function nx(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Sr(t){var e=parseFloat(t);return e==t&&(e!==0||!U(t)||t.indexOf("x")<=0)?e:NaN}function pl(t){return!isNaN(Sr(t))}function hl(){return Wt(QI()*9)}function ax(t,e){return e===0?t:ax(e,t%e)}function Zv(t,e){return t==null?e:e==null?t:t*e/ax(t,e)}function tt(t){return t!=null&&isFinite(t)}var tO="[ECharts] ",sx={},rO=typeof console<"u"&&console.warn&&console.log;function iO(t,e,r){if(rO){if(r){if(sx[e])return;sx[e]=!0}console[t](tO+e)}}function qv(t,e){iO("error",t,e)}function vt(t){throw new Error(t)}function lx(t,e,r){return(e-t)*r+t}var ux="series\0",nO="\0_ec_\0";function Ue(t){return t instanceof Array?t:t==null?[]:[t]}function dl(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Kv=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ii(t){return H(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function fx(t){return H(t)&&!(t instanceof Array)}function cx(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=G();T(e,function(l,u){if(!H(l)){e[u]=null;return}});var s=aO(t,o,r);return(i||n)&&oO(s,t,o,e),i&&sO(s,e),i||n?lO(s,e,n):a&&uO(s,e),fO(s),s}function aO(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||Lo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function oO(t,e,r,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=vl(n.id),s=r.get(o);if(s!=null){var l=t[s];Be(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function sO(t,e){T(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!Lo(r)&&!Lo(a)&&px("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function lO(t,e,r){T(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||Lo(n.existing)||n.existing&&i.id!=null&&!px("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function uO(t,e){T(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function fO(t){var e=G();T(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),T(t,function(r){var i=r.newOption;Be(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),T(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(H(a)){if(o.name=a.name!=null?vl(a.name):n?n.name:ux+i,n)o.id=vl(n.id);else if(a.id!=null)o.id=vl(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 px(t,e,r){var i=nr(e[t],null),n=nr(r[t],null);return i!=null&&n!=null&&i===n}function vl(t){return nr(t,"")}function nr(t,e){return t==null?e:U(t)?t:se(t)||po(t)?t+"":e}function Po(t){var e=t.name;return!!(e&&e.indexOf(ux))}function Lo(t){return t&&t.id!=null&&vl(t.id).indexOf(nO)===0}function hx(t,e,r){T(t,function(i){var n=i.newOption;H(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=cO(e,n,i.existing,r))})}function cO(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function br(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return k(e.dataIndex)?z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return k(e.name)?z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function te(){var t="__ec_inner_"+pO++;return function(e){return e[t]||(e[t]={})}}var pO=hl();function Of(t,e,r){var i=ml(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=an(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 ml(t,e){var r;if(U(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=G(),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&&ae(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var We={useDefault:!0,enableAll:!1,enableNone:!1},vx={useDefault:!1,enableAll:!0,enableNone:!0};function an(t,e,r,i){i=i||We;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function dx(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function jv(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function mx(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function gx(t){return t==="auto"?oe.domSupported?"html":"richText":t||"html"}function Qv(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(se(i)){var o=lx(r||0,i,n);return ve(o,a?Math.max(ir(r||0),ir(i)):e)}else{if(U(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=lx(h,v,n);s[c]=ve(o,a?Math.max(ir(h),ir(v)):e)}}return s}}var HV=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function St(){return[1/0,-1/0]}function gl(t,e){Vr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Jv(t,e){Vr(e)&&e<t[0]&&(t[0]=e)}function $v(t,e){Vr(e)&&e>t[1]&&(t[1]=e)}function yx(t,e){Oi(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Vr(t){return t!=null&&isFinite(t)}function Oi(t,e){return Vr(t)&&Vr(e)&&t<=e}function _x(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Ro(t){Oi(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function No(){var t="__ec_once_"+hO++;return function(e,r){Oe(e,t)||(e[t]=1,r())}}var hO=hl();function ko(t,e,r){var i=G(),n=0;T(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function xx(t){return t.value+""}function Sx(t){return t+""}function bx(t,e){return Y(e,!0)?t.seriesIndex+2:0}function Lf(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Tx(t,e){return{seriesType:t,overallReset:e}}function Bo(t){return{overallReset:t}}var vO=".",sa="___EC__COMPONENT__CONTAINER___",Cx="___EC__EXTENDED_CLASS___";function Zt(t){var e={main:"",sub:""};if(t){var r=t.split(vO);e.main=r[0]||"",e.sub=r[1]||""}return e}function dO(t){Be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Ax(t){return!!(t&&t[Cx])}function zo(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return mO(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Gs(n,this)),P(n.prototype,r),n[Cx]=!0,n.extend=this.extend,n.superCall=yO,n.superApply=_O,n.superClass=i,n}}function mO(t){return W(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Pf(t,e){t.extend=e.extend}var gO=Math.round(Math.random()*10);function Dx(t){var e=["__\0is_clz",gO++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function yO(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function _O(t,e,r){return this.superClass.prototype[e].apply(t,r)}function sn(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){dO(n),i.prototype.type=n;var a=Zt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==sa){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[sa]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Zt(i),a=[],o=e[n.main];return o&&o[sa]?T(o,function(s,l){l!==sa&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Zt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return T(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Zt(i),a=e[n.main];return a&&a[sa]};function r(i){var n=e[i.main];return(!n||!n[sa])&&(n=e[i.main]={},n[sa]=!0),n}}function ii(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ae(n,l)>=0||a&&ae(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var xO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SO=ii(xO),Ex=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return SO(this,e,r)},t})();var td=new $r(50);function Ix(t){if(typeof t=="string"){var e=td.get(t);return e&&e.image}else return t}function yl(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=td.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Uo(e)&&a.pending.push(o)):(e=at.loadImage(t,Mx,Mx),e.__zrImageSrc=t,td.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Mx(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Uo(t){return t&&t.width&&t.height}var rd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nd(t,e,r,i,n){var a={};return Rx(a,t,e,r,i,n),a.text}function Rx(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
7
+ `);a=Nx(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)kx(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
8
+ `),t.isTruncated=s}function Nx(t,e,r,i){i=i||{};var n=P({},i);r=Y(r,"..."),n.maxIterations=Y(i.maxIterations,2);var a=n.minChar=Y(i.minChar,0),o=n.fontMeasureInfo=Ur(e),s=o.asciiCharWidth;n.placeholder=Y(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Fr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function kx(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Fr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?TO(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Fr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function TO(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Rv(r,t.charCodeAt(n));return n}function Bx(t,e,r,i){var n=od(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=ia(u),p=Y(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?Ux(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
9
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=Nx(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)kx(S,g[b],x),g[b]=S.textLine,v=v||S.isTruncated;for(var w=m,A=0,C=Ur(u),b=0;b<g.length;b++)A=Math.max(Fr(C,g[b]),A);d==null&&(d=A);var D=d;return w+=l,D+=s,{lines:g,height:m,outerWidth:D,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:d,isTruncated:v}}var wO=(function(){function t(){}return t})(),Ox=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),CO=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function zx(t,e,r,i,n){var a=new CO,o=od(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=rd.lastIndex=0,d;(d=rd.exec(o))!=null;){var m=d.index;m>v&&id(a,o.substring(v,m),e,h),id(a,d[2],e,h,d[1]),v=rd.lastIndex}v<o.length&&id(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function w(ye,He,Fe){ye.width=He,ye.lineHeight=Fe,y+=Fe,_=Math.max(_,He)}e:for(var A=0;A<a.lines.length;A++){for(var C=a.lines[A],D=0,M=0,I=0;I<C.tokens.length;I++){var E=C.tokens[I],O=E.styleName&&e.rich[E.styleName]||{},R=E.textPadding=O.padding,N=R?R[1]+R[3]:0,F=E.font=O.font||e.font;E.contentHeight=ia(F);var B=Y(O.height,E.contentHeight);if(E.innerHeight=B,R&&(B+=R[0]+R[2]),E.height=B,E.lineHeight=Ht(O.lineHeight,e.lineHeight,B),E.align=O&&O.align||n,E.verticalAlign=O&&O.verticalAlign||"middle",S&&c!=null&&y+E.lineHeight>c){var V=a.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,M,D),a.lines=a.lines.slice(0,A+1)):a.lines=a.lines.slice(0,A),a.isTruncated=a.isTruncated||a.lines.length<V;break e}var X=O.width,K=X==null||X==="auto";if(typeof X=="string"&&X.charAt(X.length-1)==="%")E.percentWidth=X,g.push(E),E.contentWidth=Fr(Ur(F),E.text);else{if(K){var Q=O.backgroundColor,ee=Q&&Q.image;ee&&(ee=Ix(ee),Uo(ee)&&(E.width=Math.max(E.width,ee.width*B/ee.height)))}var j=x&&f!=null?f-M:null;j!=null&&j<E.width?!K||j<N?(E.text="",E.width=E.contentWidth=0):(Rx(b,E.text,j-N,F,e.ellipsis,{minChar:e.truncateMinChar}),E.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,E.width=E.contentWidth=Fr(Ur(F),E.text)):E.contentWidth=Fr(Ur(F),E.text)}E.width+=N,M+=E.width,O&&(D=Math.max(D,E.lineHeight))}w(C,M,D)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var E=g[A],ce=E.percentWidth;E.width=parseInt(ce,10)/100*a.width}return a}function id(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=zr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
10
+ `),u=!0),i.accumWidth=v}else{var d=Ux(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
11
+ `));for(var m=Ur(l),g=0;g<f.length;g++){var y=f[g],_=new wO;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Fr(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new Ox)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new Ox([_]))}}function AO(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DO=Ct(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function EO(t){return AO(t)?!!DO[t]:!0}function Ux(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Ur(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
12
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Rv(c,h.charCodeAt(0)),d=i?!1:!EO(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function ad(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(Lx,tn(r,o,n),Di(i,s,a),o,s),ne.intersect(e,Lx,null,Px);var l=Px.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=tn(l.x,l.width,n,!0),t.baseY=Di(l.y,l.height,a,!0)}}var Lx=new ne(0,0,0,0),Px={outIntersectRect:{},clamp:!0};function od(t){return t!=null?t+="":t=""}function Fx(t){var e=od(t.text),r=t.font,i=Fr(Ur(r),e),n=ia(r);return Rf(t,i,n,null)}function Rf(t,e,r,i){var n=new ne(tn(t.x||0,e,t.textAlign),Di(t.y||0,r,t.textBaseline),e,r),a=i??(sd(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function sd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var fd="__zr_style_"+Math.round(Math.random()*10),ni={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},la={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ni[fd]=!0;var Vx=["z","z2","invisible"],MO=["invisible"],IO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=ie(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&OO(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),i?ne.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:P(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Qn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Qn)},e.prototype.styleUpdated=function(){this.__dirty&=~Qn},e.prototype.createStyle=function(r){return bi(ni,r)},e.prototype.useStyle=function(r){r[fd]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[fd]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,Vx)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===Mo,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=ie(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=ie(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?MO:Vx,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return P(r,i),r},e.prototype.getAnimationStyleProps=function(){return la},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=At|Qn})(),e})(wf),ld=new ne(0,0,0,0),ud=new ne(0,0,0,0);function OO(t,e,r){return ld.copy(t.getBoundingRect()),t.transform&&ld.applyTransform(t.transform),ud.width=e,ud.height=r,!ld.intersect(ud)}var ai=IO;var Tr=Math.min,wr=Math.max,cd=Math.sin,pd=Math.cos,ua=Math.PI*2,Nf=Ti(),kf=Ti(),Bf=Ti();function hd(t,e,r,i,n,a){n[0]=Tr(t,r),n[1]=Tr(e,i),a[0]=wr(t,r),a[1]=wr(e,i)}var Gx=[],Hx=[];function Yx(t,e,r,i,n,a,o,s,l,u){var f=$u,c=ze,p=f(t,r,n,o,Gx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,Gx[h]);l[0]=Tr(v,l[0]),u[0]=wr(v,u[0])}p=f(e,i,a,s,Hx);for(var h=0;h<p;h++){var d=c(e,i,a,s,Hx[h]);l[1]=Tr(d,l[1]),u[1]=wr(d,u[1])}l[0]=Tr(t,l[0]),u[0]=wr(t,u[0]),l[0]=Tr(o,l[0]),u[0]=wr(o,u[0]),l[1]=Tr(e,l[1]),u[1]=wr(e,u[1]),l[1]=Tr(s,l[1]),u[1]=wr(s,u[1])}function Wx(t,e,r,i,n,a,o,s){var l=ef,u=ot,f=wr(Tr(l(t,r,n),1),0),c=wr(Tr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Tr(t,n,p),o[1]=Tr(e,a,h),s[0]=wr(t,n,p),s[1]=wr(e,a,h)}function Xx(t,e,r,i,n,a,o,s,l){var u=dr,f=mr,c=Math.abs(n-a);if(c%ua<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Nf[0]=pd(n)*r+t,Nf[1]=cd(n)*i+e,kf[0]=pd(a)*r+t,kf[1]=cd(a)*i+e,u(s,Nf,kf),f(l,Nf,kf),n=n%ua,n<0&&(n=n+ua),a=a%ua,a<0&&(a=a+ua),n>a&&!o?a+=ua:n<a&&o&&(n+=ua),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Bf[0]=pd(h)*r+t,Bf[1]=cd(h)*i+e,u(s,Bf,s),f(l,Bf,l))}var De={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],ca=[],oi=[],ln=[],si=[],li=[],vd=Math.min,dd=Math.max,pa=Math.cos,ha=Math.sin,Li=Math.abs,yd=Math.PI,un=yd*2,md=typeof Float32Array<"u",_l=[];function gd(t){var e=Math.round(t/yd*1e8)/1e8;return e%2*yd}function _d(t,e){var r=gd(t[0]);r<0&&(r+=un);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=un?n=r+un:e&&r-n>=un?n=r-un:!e&&r>n?n=r+(un-gd(r-n)):e&&r<n&&(n=r-(un-gd(n-r))),t[0]=r,t[1]=n}var LO=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Li(i/Iv/e)||0,this._uy=Li(i/Iv/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(De.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Li(e-this._xi),n=Li(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(De.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(De.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(De.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),_l[0]=n,_l[1]=a,_d(_l,o),n=_l[0],a=_l[1];var s=a-n;return this.addData(De.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=pa(a)*i+e,this._yi=ha(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(De.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(De.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&md&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(md&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,md&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){oi[0]=oi[1]=si[0]=si[1]=Number.MAX_VALUE,ln[0]=ln[1]=li[0]=li[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case De.M:r=n=e[o++],i=a=e[o++],si[0]=n,si[1]=a,li[0]=n,li[1]=a;break;case De.L:hd(r,i,e[o],e[o+1],si,li),r=e[o++],i=e[o++];break;case De.C:Yx(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],si,li),r=e[o++],i=e[o++];break;case De.Q:Wx(r,i,e[o++],e[o++],e[o],e[o+1],si,li),r=e[o++],i=e[o++];break;case De.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=pa(h)*c+u,a=ha(h)*p+f),Xx(u,f,c,p,h,v,d,si,li),r=pa(v)*c+u,i=ha(v)*p+f;break;case De.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];hd(n,a,n+m,a+g,si,li);break;case De.Z:r=n,i=a;break}dr(oi,oi,si),mr(ln,ln,li)}return o===0&&(oi[0]=oi[1]=ln[0]=ln[1]=0),new ne(oi[0],oi[1],ln[0]-oi[0],ln[1]-oi[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case De.M:a=s=e[p++],o=l=e[p++];break;case De.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Li(y)>i||Li(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case De.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],w=e[p++];d=h_(a,o,x,S,m,g,b,w,10),a=b,o=w;break}case De.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=m_(a,o,x,S,m,g,10),a=m,o=g;break}case De.A:var A=e[p++],C=e[p++],D=e[p++],M=e[p++],I=e[p++],E=e[p++],O=E+I;p+=1,v&&(s=pa(I)*D+A,l=ha(I)*M+C),d=dd(D,M)*vd(un,Math.abs(E)),a=pa(O)*D+A,o=ha(O)*M+C;break;case De.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],N=e[p++];d=R*2+N*2;break}case De.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var b=0;b<o;){var w=i[b++],A=b===1;switch(A&&(u=i[b],f=i[b+1],s=u,l=f),w!==De.L&&_>0&&(e.lineTo(x,S),_=0),w){case De.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case De.L:{c=i[b++],p=i[b++];var C=Li(c-u),D=Li(p-f);if(C>n||D>a){if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+c*I,f*(1-I)+p*I);break e}m+=M}e.lineTo(c,p),u=c,f=p,_=0}else{var E=C*C+D*D;E>_&&(x=c,S=p,_=E)}break}case De.C:{var O=i[b++],R=i[b++],N=i[b++],F=i[b++],B=i[b++],V=i[b++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;_o(u,O,N,B,I,fa),_o(f,R,F,V,I,ca),e.bezierCurveTo(fa[1],ca[1],fa[2],ca[2],fa[3],ca[3]);break e}m+=M}e.bezierCurveTo(O,R,N,F,B,V),u=B,f=V;break}case De.Q:{var O=i[b++],R=i[b++],N=i[b++],F=i[b++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;xo(u,O,N,I,fa),xo(f,R,F,I,ca),e.quadraticCurveTo(fa[1],ca[1],fa[2],ca[2]);break e}m+=M}e.quadraticCurveTo(O,R,N,F),u=N,f=F;break}case De.A:var X=i[b++],K=i[b++],Q=i[b++],ee=i[b++],j=i[b++],ce=i[b++],ye=i[b++],He=!i[b++],Fe=Q>ee?Q:ee,Te=Li(Q-ee)>.001,Pe=j+ce,fe=!1;if(h){var M=v[g++];m+M>y&&(Pe=j+ce*(y-m)/M,fe=!0),m+=M}if(Te&&e.ellipse?e.ellipse(X,K,Q,ee,ye,j,Pe,He):e.arc(X,K,Fe,j,Pe,He),fe)break e;A&&(s=pa(j)*Q+X,l=ha(j)*ee+K),u=pa(Pe)*Q+X,f=ha(Pe)*ee+K;break;case De.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var _e=i[b++],Ut=i[b++];if(h){var M=v[g++];if(m+M>y){var Ye=y-m;e.moveTo(c,p),e.lineTo(c+vd(Ye,_e),p),Ye-=_e,Ye>0&&e.lineTo(c+_e,p+vd(Ye,Ut)),Ye-=Ut,Ye>0&&e.lineTo(c+dd(_e-Ye,0),p+Ut),Ye-=_e,Ye>0&&e.lineTo(c,p+dd(Ut-Ye,0));break e}m+=M}e.rect(c,p,_e,Ut);break;case De.Z:if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=M}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=De,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),bt=LO;function va(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function Zx(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=p_(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function qx(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=d_(t,e,r,i,n,a,s,l,null);return f<=u/2}var Kx=Math.PI*2;function xl(t){return t%=Kx,t<0&&(t+=Kx),t}var Sl=Math.PI*2;function jx(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Sl<1e-4)return!0;if(a){var c=i;i=xl(n),n=xl(c)}else i=xl(i),n=xl(n);i>n&&(n+=Sl);var p=Math.atan2(l,s);return p<0&&(p+=Sl),p>=i&&p<=n||p+Sl>=i&&p+Sl<=n}function Cr(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var fn=bt.CMD,da=Math.PI*2,BO=1e-4;function zO(t,e){return Math.abs(t-e)<BO}var Rt=[-1,-1,-1],Ar=[-1,-1];function UO(){var t=Ar[0];Ar[0]=Ar[1],Ar[1]=t}function FO(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=Jn(e,i,a,s,u,Rt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=Rt[d],g=m===0||m===1?.5:1,y=ze(t,r,n,o,m);y<l||(p<0&&(p=$u(e,i,a,s,Ar),Ar[1]<Ar[0]&&p>1&&UO(),h=ze(e,i,a,s,Ar[0]),p>1&&(v=ze(e,i,a,s,Ar[1]))),p===2?m<Ar[0]?c+=h<e?g:-g:m<Ar[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<Ar[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function VO(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=v_(e,i,a,s,Rt);if(l===0)return 0;var u=ef(e,i,a);if(u>=0&&u<=1){for(var f=0,c=ot(e,i,a,u),p=0;p<l;p++){var h=Rt[p]===0||Rt[p]===1?.5:1,v=ot(t,r,n,Rt[p]);v<o||(Rt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Rt[0]===0||Rt[0]===1?.5:1,v=ot(t,r,n,Rt[0]);return v<o?0:a<e?h:-h}}function GO(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Rt[0]=-l,Rt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=da-1e-4){i=0,n=da;var f=a?1:-1;return o>=Rt[0]+t&&o<=Rt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=da,n+=da);for(var p=0,h=0;h<2;h++){var v=Rt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=da+d),(d>=i&&d<=n||d+da>=i&&d+da<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function Qx(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===fn.M&&v>1&&(r||(s+=Cr(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case fn.M:f=a[v++],c=a[v++],l=f,u=c;break;case fn.L:if(r){if(va(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Cr(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case fn.C:if(r){if(Zx(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=FO(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case fn.Q:if(r){if(qx(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=VO(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case fn.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var w=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Cr(l,u,p,h,i,n);var A=(i-g)*x/_+g;if(r){if(jx(g,y,x,S,S+b,w,e,A,n))return!0}else s+=GO(g,y,x,S,S+b,w,A,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case fn.R:f=l=a[v++],c=u=a[v++];var C=a[v++],D=a[v++];if(p=f+C,h=c+D,r){if(va(f,c,p,c,e,i,n)||va(p,c,p,h,e,i,n)||va(p,h,f,h,e,i,n)||va(f,h,f,c,e,i,n))return!0}else s+=Cr(p,c,p,h,i,n),s+=Cr(f,h,f,c,i,n);break;case fn.Z:if(r){if(va(l,u,f,c,e,i,n))return!0}else s+=Cr(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!zO(u,c)&&(s+=Cr(l,u,f,c,i,n)||0),s!==0}function Jx(t,e,r){return Qx(t,0,!1,e,r)}function $x(t,e,r,i){return Qx(t,e,!0,r,i)}var Fo=re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ni),YO={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},la.style)},xd=Ao.concat(["invisible","culling","z","z2","zlevel","parent"]),WO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<xd.length;++s)n[xd[s]]=this[xd[s]];n.__dirty|=At}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=ie(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?P(this.style,s):this.useStyle(s):o==="shape"?P(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(U(r)){var i=$n(r,0);return i>.5?sl:i>.2?V_:ll}else if(r)return ll}return sl},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=$n(r,0)<ol;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~qi},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 bt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&qi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$x(s,l/u,r,i)))return!0}if(this.hasFill())return Jx(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=qi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:P(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&qi)},e.prototype.createStyle=function(r){return bi(Fo,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==Mo){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=ie(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return YO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(r.style)},o.prototype.getDefaultShape=function(){return $(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=At|Qn|qi})(),e})(ai),ue=WO;var XO=re({strokeFirst:!0,font:Gt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fo),eS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return sd(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return bi(XO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Fx(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ai);eS.prototype.type="tspan";var ma=eS;var ZO=re({x:0,y:0},ni),qO={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},la.style)};function KO(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var tS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return bi(ZO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=KO(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qO},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ai);tS.prototype.type="image";var dt=tS;function rS(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Vo=Math.round;function zf(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Vo(i*2)===Vo(n*2)&&(t.x1=t.x2=cn(i,s,!0)),Vo(a*2)===Vo(o*2)&&(t.y1=t.y2=cn(a,s,!0))),t}}function Uf(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=cn(i,s,!0),t.y=cn(n,s,!0),t.width=Math.max(cn(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(cn(n+o,s,!1)-t.y,o===0?0:1)),t}}function cn(t,e,r){if(!e)return t;var i=Vo(t*2);return(i+Vo(e))%2===0?i/2:(i+(r?1:-1))/2}var JO=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var $O={},iS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JO},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Uf($O,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?rS(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ue);iS.prototype.type="rect";var ge=iS;var nS={fill:"#000"},aS=2,ui={},eL={style:re({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},la.style)},hS=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=nS,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iL(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||nS},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return P(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=ie(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},P(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return eL},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Gt,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";ad(ui,a.overflowRect,o,s,l,u),o=ui.baseX,s=ui.baseY;var f=pS(r),c=Bx(f,r,ui.outerWidth,ui.outerHeight),p=Sd(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Di(s,c.contentHeight,u);if(p||n){var x=tn(o,d,l),S=Di(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=g/2,n&&(y=cS(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,w=!1,A=!1,C=fS("fill"in r?r.fill:(A=!0,a.fill)),D=uS("stroke"in r?r.stroke:!h&&(!a.autoStroke||A)?(b=aS,w=!0,a.stroke):null),M=r.textShadowBlur>0,I=0;I<m.length;I++){var E=this._getOrCreateChild(ma),O=E.createStyle();E.useStyle(O),O.text=m[I],O.x=y,O.y=_,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,M&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=D,O.fill=C,D&&(O.lineWidth=r.lineWidth||b,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=i,sS(O,r),_+=g,E.setBoundingRect(Rf(O,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;ad(ui,i.overflowRect,o,s,n,a),o=ui.baseX,s=ui.baseY;var l=pS(r),u=zx(l,r,ui.outerWidth,ui.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=tn(o,c,n),d=Di(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;Sd(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,w=b.length,A=S.lineHeight,C=S.width,D=0,M=m,I=y,E=w-1,O=void 0;D<w&&(O=b[D],!O.align||O.align==="left");)this._placeToken(O,r,A,g,M,"left",_),C-=O.width,M+=O.width,D++;for(;E>=0&&(O=b[E],O.align==="right");)this._placeToken(O,r,A,g,I,"right",_),C-=O.width,I-=O.width,E--;for(M+=(f-(M-m)-(y-I)-C)/2;D<=E;)O=b[D],this._placeToken(O,r,A,g,M+O.width/2,"center",_),M+=O.width,D++;g+=A}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&Sd(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=cS(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(ma),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=fS("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=uS("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=aS,x=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Gt,m.opacity=Ht(u.opacity,i.opacity,1),sS(m,u),b&&(m.lineWidth=Ht(u.lineWidth,i.lineWidth,_),m.lineDash=Y(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect(Rf(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(ge),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(dt),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Ht(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return Td(r)&&(i=[r.fontStyle,r.fontWeight,bd(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&pt(i)||r.textFont||r.font},e})(ai),tL={left:!0,right:1,center:1},rL={top:1,bottom:1,middle:1},oS=["fontStyle","fontWeight","fontSize","fontFamily"];function bd(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Uu+"px":t+"px"}function sS(t,e){for(var r=0;r<oS.length;r++){var i=oS[r],n=e[i];n!=null&&(t[i]=n)}}function Td(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iL(t){return lS(t),T(t.rich,lS),t}function lS(t){if(t){t.font=hS.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||tL[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||rL[r]?r:"top";var i=t.padding;i&&(t.padding=Fn(t.padding))}}function uS(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function fS(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function cS(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function pS(t){var e=t.text;return e!=null&&(e+=""),e}function Sd(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ae=hS;var me=te(),vS=function(t,e,r,i){if(i){var n=me(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=me(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var pn="undefined",Ff="series",Vf=G(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),st="original",rt="arrayRows",Et="objectRows",qt="keyedColumns",ar="typedArray",wd="unknown",or="column",fi="row";var nL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aL=(function(){function t(e){T(nL,function(r){this[r]=J(e[r],e)},this)}return t})();function dS(t,e){return e.mainType===Ff?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Gf=aL;var mS=1,gS={},bS=te(),Dd=te(),Ed=0,bl=1,Tl=2,Nt=["emphasis","blur","select"],Ho=["normal","emphasis","blur","select"],oL=10,sL=9,hn="highlight",wl="downplay",Cl="select",Yf="unselect",Al="toggleSelect",Wf="selectchanged";function Go(t){return t!=null&&t!=="none"}function Xf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function TS(t){Xf(t,"emphasis",Tl)}function wS(t){t.hoverState===Tl&&Xf(t,"normal",Ed)}function Md(t){Xf(t,"blur",bl)}function CS(t){t.hoverState===bl&&Xf(t,"normal",Ed)}function lL(t){t.selected=!0}function uL(t){t.selected=!1}function yS(t,e,r){e(t,r)}function Pi(t,e,r){yS(t,e,r),t.isGroup&&t.traverse(function(i){yS(i,e,r)})}function Id(t,e){switch(e){case"emphasis":t.hoverState=Tl;break;case"normal":t.hoverState=Ed;break;case"blur":t.hoverState=bl;break;case"select":t.selected=!0}}function fL(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function cL(t,e,r,i){var n=r&&ae(r,"select")>=0,a=!1;if(t instanceof ue){var o=bS(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Go(s)||Go(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!Go(u.fill)&&Go(s)?(a=!0,i=P({},i),u=P({},u),u.fill=wo(s)):!Go(u.stroke)&&Go(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=wo(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??oL)}return i}function pL(t,e,r){if(r&&r.z2==null){r=P({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??sL)}return r}function hL(t,e,r){var i=ae(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:fL(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:i?n:a.opacity*.1},o),r.style=o),r}function Cd(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return cL(this,t,e,r);if(t==="blur")return hL(this,t,r);if(t==="select")return pL(this,t,r)}return r}function vL(t){t.stateProxy=Cd;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Cd),r&&(r.stateProxy=Cd)}function _S(t,e){!DS(t,e)&&!t.__highByOuter&&Pi(t,TS)}function xS(t,e){!DS(t,e)&&!t.__highByOuter&&Pi(t,wS)}function ga(t,e){t.__highByOuter|=1<<(e||0),Pi(t,TS)}function ya(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Pi(t,wS)}function AS(t){Pi(t,Md)}function Od(t){Pi(t,CS)}function Ld(t){Pi(t,lL)}function Pd(t){Pi(t,uL)}function DS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Rd(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=Dd(a),s=dS(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){CS(u)}),l&&r.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function Ad(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Od(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Md(m)}),je(e))a(u.getData(),e);else if(H(e))for(var v=ie(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),Dd(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Hf(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){Dd(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Md(a)})}}}function ES(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=br(n,e);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=me(o);Ad(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Ad(i,f,c,r)}}}function Zf(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(me(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function MS(t,e,r){var i=me(t),n=Zf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Hf(i.componentMainType,i.componentIndex,r),T(a,function(s){return _S(s,e)})):(Ad(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Hf(i.componentMainType,i.componentIndex,r),_S(t,e))}function IS(t,e,r){Rd(r);var i=me(t),n=Zf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?T(n,function(a){return xS(a,e)}):xS(t,e)}function OS(t,e,r){if(qf(e)){var i=e.dataType,n=t.getData(i),a=br(n,e);k(a)||(a=[a]),t[e.type===Al?"toggleSelect":e.type===Cl?"select":"unselect"](a,i)}}function Nd(t){var e=t.getAllData();T(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Ld(a):Pd(a)})})}function LS(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();T(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function vn(t,e,r){PS(t,!0),Pi(t,vL),mL(t,e,r)}function dL(t){PS(t,!1)}function Ri(t,e,r,i){i?dL(t):vn(t,e,r)}function mL(t,e,r){var i=me(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var SS=["emphasis","blur","select"],gL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _a(t,e,r,i){r=r||"itemStyle";for(var n=0;n<SS.length;n++){var a=SS[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[gL[r]]()}}function PS(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function Dl(t){return!!(t&&t.__highDownDispatcher)}function RS(t){var e=gS[t];return e==null&&mS<=32&&(e=gS[t]=mS++),e}function qf(t){var e=t.type;return e===Cl||e===Yf||e===Al}function kd(t){var e=t.type;return e===hn||e===wl}function NS(t){var e=bS(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 lt={};Vt(lt,{Arc:()=>Ta,BezierCurve:()=>Pl,BoundingRect:()=>ne,Circle:()=>xa,CompoundPath:()=>Xo,Ellipse:()=>Ml,Group:()=>xe,HOVER_LAYER_FOR_INCREMENTAL:()=>Nl,HOVER_LAYER_FROM_THRESHOLD:()=>qd,HOVER_LAYER_NO:()=>Zd,Image:()=>dt,IncrementalDisplayable:()=>ac,Line:()=>lr,LinearGradient:()=>Zo,OrientedBoundingRect:()=>nc,Path:()=>ue,Point:()=>le,Polygon:()=>ba,Polyline:()=>Hr,RadialGradient:()=>ec,Rect:()=>ge,Ring:()=>Ll,Sector:()=>sr,Text:()=>Ae,WH:()=>mn,XY:()=>pi,applyTransform:()=>Ea,calcZ2Range:()=>eP,clipPointsByRect:()=>tm,clipRectByRect:()=>rm,createIcon:()=>Ma,decomposeTransform:()=>rP,ensureCopyRect:()=>$o,ensureCopyTransform:()=>uc,expandOrShrinkRect:()=>Qo,extendPath:()=>jd,extendShape:()=>Kd,getCurrentCanvasPainter:()=>iP,getShapeClass:()=>Qd,getTransform:()=>Bl,groupTransition:()=>em,initProps:()=>it,isBoundingRectAxisAligned:()=>lc,isElementRemoved:()=>Aa,lineLineIntersect:()=>cb,linePolygonIntersect:()=>JL,makeImage:()=>kl,makePath:()=>jo,mergePath:()=>Jd,payloadDisableAnimation:()=>tP,registerShape:()=>ur,removeElement:()=>qo,removeElementWithFadeOut:()=>dn,resizePath:()=>sc,retrieveZInfo:()=>gn,setTooltipConfig:()=>Jo,subPixelOptimize:()=>jL,subPixelOptimizeLine:()=>Da,subPixelOptimizeRect:()=>KL,transformDirection:()=>$d,traverseElements:()=>Ia,traverseUpdateZ:()=>im,updateProps:()=>ke});var Yo=bt.CMD,yL=[[],[],[]],kS=Math.sqrt,_L=Math.atan2;function Bd(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Yo.M,c=Yo.C,p=Yo.L,h=Yo.R,v=Yo.A,d=Yo.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=kS(e[0]*e[0]+e[1]*e[1]),_=kS(e[2]*e[2]+e[3]*e[3]),x=_L(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Qe(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Qe(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=yL[l];S[0]=r[o++],S[1]=r[o++],Qe(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var zd=Math.sqrt,Kf=Math.sin,jf=Math.cos,El=Math.PI;function BS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ud(t,e){return(t[0]*e[0]+t[1]*e[1])/(BS(t)*BS(e))}function zS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ud(t,e))}function US(t,e,r,i,n,a,o,s,l,u,f){var c=l*(El/180),p=jf(c)*(t-r)/2+Kf(c)*(e-i)/2,h=-1*Kf(c)*(t-r)/2+jf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=zd(v),s*=zd(v));var d=(n===a?-1:1)*zd((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+jf(c)*m-Kf(c)*g,_=(e+i)/2+Kf(c)*m+jf(c)*g,x=zS([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],w=zS(S,b);if(Ud(S,b)<=-1&&(w=El),Ud(S,b)>=1&&(w=0),w<0){var A=Math.round(w/El*1e6)/1e6;w=El*2+A%2*El}f.addData(u,y,_,o,s,x,w,c,a)}var xL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bL(t){var e=new bt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=bt.CMD,l=t.match(xL);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(SL)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=r,C=i,D=void 0,M=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,D=e.len(),M=e.data,o===s.C&&(g+=r-M[D-4],y+=i-M[D-3]),p=s.C,A=h[m++],C=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,A,C,r,i);break;case"s":g=r,y=i,D=e.len(),M=e.data,o===s.C&&(g+=r-M[D-4],y+=i-M[D-3]),p=s.C,A=r+h[m++],C=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,r,i);break;case"Q":A=h[m++],C=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"q":A=h[m++]+r,C=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"T":g=r,y=i,D=e.len(),M=e.data,o===s.Q&&(g+=r-M[D-4],y+=i-M[D-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,D=e.len(),M=e.data,o===s.Q&&(g+=r-M[D-4],y+=i-M[D-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],w=h[m++],A=r,C=i,r=h[m++],i=h[m++],p=s.A,US(A,C,r,i,b,w,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],w=h[m++],A=r,C=i,r+=h[m++],i+=h[m++],p=s.A,US(A,C,r,i,b,w,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var FS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ue);function VS(t){return t.setData!=null}function GS(t,e){var r=bL(t),i=P({},e);return i.buildPath=function(n){var a=VS(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Bd(r,n),this.dirtyShape()},i}function HS(t,e){return new FS(GS(t,e))}function YS(t,e){var r=GS(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(FS);return i}function WS(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ue(e);return o.createPathProxy(),o.buildPath=function(s){if(VS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var wL=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var XS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new wL},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ue);XS.prototype.type="circle";var xa=XS;var CL=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var ZS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CL},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ue);ZS.prototype.type="ellipse";var Ml=ZS;var KS=Math.PI,Fd=KS*2,Sa=Math.sin,Wo=Math.cos,AL=Math.acos,Mt=Math.atan2,qS=Math.abs,Ol=Math.sqrt,Il=Math.max,ci=Math.min,Gr=1e-4;function DL(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Gr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function Qf(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/Ol(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,w=(_<0?-1:1)*Ol(Il(0,S*S*x-b*b)),A=(b*_-y*w)/x,C=(-b*y-_*w)/x,D=(b*_+y*w)/x,M=(-b*y+_*w)/x,I=A-m,E=C-g,O=D-m,R=M-g;return I*I+E*E>O*O+R*R&&(A=D,C=M),{cx:A,cy:C,x0:-f,y0:-c,x1:A*(n/S-1),y1:C*(n/S-1)}}function EL(t){var e;if(k(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 jS(t,e){var r,i=Il(e.r,0),n=Il(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=qS(u-l),v=h>Fd&&h%Fd;if(v>Gr&&(h=v),!(i>Gr))t.moveTo(f,c);else if(h>Fd-Gr)t.moveTo(f+i*Wo(l),c+i*Sa(l)),t.arc(f,c,i,l,u,!p),n>Gr&&(t.moveTo(f+n*Wo(u),c+n*Sa(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=void 0,C=void 0,D=void 0,M=void 0,I=void 0,E=void 0,O=void 0,R=i*Wo(l),N=i*Sa(l),F=n*Wo(u),B=n*Sa(u),V=h>Gr;if(V){var X=e.cornerRadius;X&&(r=EL(X),d=r[0],m=r[1],g=r[2],y=r[3]);var K=qS(i-n)/2;if(_=ci(K,g),x=ci(K,y),S=ci(K,d),b=ci(K,m),C=w=Il(_,x),D=A=Il(S,b),(w>Gr||A>Gr)&&(M=i*Wo(u),I=i*Sa(u),E=n*Wo(l),O=n*Sa(l),h<KS)){var Q=DL(R,N,E,O,M,I,F,B);if(Q){var ee=R-Q[0],j=N-Q[1],ce=M-Q[0],ye=I-Q[1],He=1/Sa(AL((ee*ce+j*ye)/(Ol(ee*ee+j*j)*Ol(ce*ce+ye*ye)))/2),Fe=Ol(Q[0]*Q[0]+Q[1]*Q[1]);C=ci(w,(i-Fe)/(He+1)),D=ci(A,(n-Fe)/(He-1))}}}if(!V)t.moveTo(f+R,c+N);else if(C>Gr){var Te=ci(g,C),Pe=ci(y,C),fe=Qf(E,O,R,N,i,Te,p),_e=Qf(M,I,F,B,i,Pe,p);t.moveTo(f+fe.cx+fe.x0,c+fe.cy+fe.y0),C<w&&Te===Pe?t.arc(f+fe.cx,c+fe.cy,C,Mt(fe.y0,fe.x0),Mt(_e.y0,_e.x0),!p):(Te>0&&t.arc(f+fe.cx,c+fe.cy,Te,Mt(fe.y0,fe.x0),Mt(fe.y1,fe.x1),!p),t.arc(f,c,i,Mt(fe.cy+fe.y1,fe.cx+fe.x1),Mt(_e.cy+_e.y1,_e.cx+_e.x1),!p),Pe>0&&t.arc(f+_e.cx,c+_e.cy,Pe,Mt(_e.y1,_e.x1),Mt(_e.y0,_e.x0),!p))}else t.moveTo(f+R,c+N),t.arc(f,c,i,l,u,!p);if(!(n>Gr)||!V)t.lineTo(f+F,c+B);else if(D>Gr){var Te=ci(d,D),Pe=ci(m,D),fe=Qf(F,B,M,I,n,-Pe,p),_e=Qf(R,N,E,O,n,-Te,p);t.lineTo(f+fe.cx+fe.x0,c+fe.cy+fe.y0),D<A&&Te===Pe?t.arc(f+fe.cx,c+fe.cy,D,Mt(fe.y0,fe.x0),Mt(_e.y0,_e.x0),!p):(Pe>0&&t.arc(f+fe.cx,c+fe.cy,Pe,Mt(fe.y0,fe.x0),Mt(fe.y1,fe.x1),!p),t.arc(f,c,n,Mt(fe.cy+fe.y1,fe.cx+fe.x1),Mt(_e.cy+_e.y1,_e.cx+_e.x1),p),Te>0&&t.arc(f+_e.cx,c+_e.cy,Te,Mt(_e.y1,_e.x1),Mt(_e.y0,_e.x0),!p))}else t.lineTo(f+F,c+B),t.arc(f,c,n,u,l,p)}t.closePath()}}}var IL=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var QS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new IL},e.prototype.buildPath=function(r,i){jS(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ue);QS.prototype.type="sector";var sr=QS;var OL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var JS=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OL},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ue);JS.prototype.type="ring";var Ll=JS;function Vd(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)dr(f,f,t[p]),mr(c,c,t[p]);dr(f,f,i[0]),mr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Hh(t[p]));continue}else l=t[p-1],u=t[p+1];Yh(a,u,l),Ws(a,a,e);var d=Xs(v,l),m=Xs(v,u),g=d+m;g!==0&&(d/=g,m/=g),Ws(o,a,-d),Ws(s,a,m);var y=Hu([],v,o),_=Hu([],v,s);i&&(mr(y,y,f),dr(y,y,c),mr(_,_,f),dr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Jf(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Vd(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var LL=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var eb=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LL},e.prototype.buildPath=function(r,i){Jf(r,i,!0)},e})(ue);eb.prototype.type="polygon";var ba=eb;var PL=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var tb=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PL},e.prototype.buildPath=function(r,i){Jf(r,i,!1)},e})(ue);tb.prototype.type="polyline";var Hr=tb;var RL={},NL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var rb=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NL},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=zf(RL,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ue);rb.prototype.type="line";var lr=rb;var Kt=[],kL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function ib(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?pv:ze)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?pv:ze)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?hv:ot)(t.x1,t.cpx1,t.x2,e),(r?hv:ot)(t.y1,t.cpy1,t.y2,e)]}var nb=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kL},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(xo(n,l,o,p,Kt),l=Kt[1],o=Kt[2],xo(a,u,s,p,Kt),u=Kt[1],s=Kt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(_o(n,l,f,o,p,Kt),l=Kt[1],f=Kt[2],o=Kt[3],_o(a,u,c,s,p,Kt),u=Kt[1],c=Kt[2],s=Kt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ib(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=ib(this.shape,r,!0);return Zh(i,i)},e})(ue);nb.prototype.type="bezier-curve";var Pl=nb;var BL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var ab=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BL},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ue);ab.prototype.type="arc";var Ta=ab;var zL=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ue.prototype.getBoundingRect.call(this)},e})(ue),Xo=zL;var UL=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),$f=UL;var FL=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})($f),Zo=FL;var VL=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})($f),ec=VL;var Gd=Math.min,GL=Math.max,tc=Math.abs,wa=[0,0],Ca=[0,0],mt=ov(),rc=mt.minTv,ic=mt.maxTv,HL=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new le;for(var i=0;i<2;i++)this._axes[i]=new le;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);le.sub(n[0],i[1],i[0]),le.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&le.set(r,0,0),mt.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!mt.negativeSize&&le.copy(r,n?mt.useDir?mt.dirMinTv:rc:ic),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,wa),e._getProjMinMaxOnAxis(o,r._corners,Ca),mt.negativeSize||wa[1]<Ca[0]||wa[0]>Ca[1]){if(a=!1,mt.negativeSize||i)return a;var l=tc(Ca[0]-wa[1]),u=tc(wa[0]-Ca[1]);Gd(l,u)>ic.len()&&(l<u?le.scale(ic,s,-l*n):le.scale(ic,s,u*n))}else if(!i){var l=tc(Ca[0]-wa[1]),u=tc(wa[0]-Ca[1]);(mt.useDir||Gd(l,u)<rc.len())&&((l<u||!mt.bidirectional)&&(le.scale(rc,s,l*n),mt.useDir&&mt.calcDirMTV()),(l>=u||!mt.bidirectional)&&(le.scale(rc,s,-u*n),mt.useDir&&mt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Gd(f,s),l=GL(f,l)}i[0]=s+mt.touchThreshold,i[1]=l-mt.touchThreshold,mt.negativeSize=i[1]<i[0]},t})(),nc=HL;var ob=1;var YL=[],WL=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=ob,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(YL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(ai),ac=WL;var XL=te();function ZL(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Y(i.duration,200),f=Y(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),W(c)&&(c=c(r,n)),W(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Hd(t,e,r,i,n,a,o){var s=!1,l;W(n)?(o=a,a=n,n=null):H(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=ZL(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ke(t,e,r,i,n,a){Hd("update",t,e,r,i,n,a)}function it(t,e,r,i,n,a){Hd("enter",t,e,r,i,n,a)}function Aa(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 qo(t,e,r,i,n,a){Aa(t)||Hd("leave",t,e,r,i,n,a)}function sb(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),qo(t,{style:{opacity:0}},e,r,i)}function dn(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||sb(n,e,r,i)}):sb(t,e,r,i)}function Ko(t){XL(t).oldStyle=t.style}var Wd={},pi=["x","y"],mn=["width","height"],Zd=0,qd=1,Nl=2;function Kd(t){return ue.extend(t)}var qL=YS;function jd(t,e){return qL(t,e)}function ur(t,e){Wd[t]=e}function Qd(t){if(Wd.hasOwnProperty(t))return Wd[t]}function jo(t,e,r,i){var n=HS(t,e);return r&&(i==="center"&&(r=fb(r,n.getBoundingRect())),sc(n,r)),n}function kl(t,e,r){var i=new dt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(fb(e,a))}}});return i}function fb(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Jd=WS;function sc(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function Da(t,e){return zf(t,t,{lineWidth:e}),t}function KL(t,e){return Uf(t,t,e),t}var jL=cn;function Bl(t,e){for(var r=yr([]);t&&t!==e;)Nr(r,t.getLocalTransform(),r),t=t.parent;return r}function Ea(t,e,r){return e&&!je(e)&&(e=Do.getLocalTransform(e)),r&&(e=tr([],e)),Qe([],t,e)}function $d(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ie(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ie(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Ea(a,e,r),Ie(a[0])>Ie(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function lb(t){return!t.isGroup}function QL(t){return t.shape!=null}function em(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){lb(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return QL(o)&&(s.shape=$(o.shape)),s}var a=i(t);e.traverse(function(o){if(lb(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ke(o,l,r,me(o).dataIndex)}}})}function tm(t,e){return z(t,function(r){var i=r[0];i=he(i,e.x),i=Re(i,e.x+e.width);var n=r[1];return n=he(n,e.y),n=Re(n,e.y+e.height),[i,n]})}function rm(t,e){var r=he(t.x,e.x),i=Re(t.x+t.width,e.x+e.width),n=he(t.y,e.y),a=Re(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Ma(t,e,r){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),re(n,r),new dt(i)):jo(t.replace("path://",""),i,r,"center")}function JL(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(cb(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function cb(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Yd(f,c,l,u);if($L(p))return!1;var h=t-n,v=e-a,d=Yd(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Yd(h,v,f,c)/p;return!(m<0||m>1)}function Yd(t,e,r,i){return t*i-r*e}function $L(t){return t<=1e-6&&t>=-1e-6}function Qo(t,e,r,i,n){return e==null||(se(e)?Ne[0]=Ne[1]=Ne[2]=Ne[3]=e:(Ne[0]=e[0],Ne[1]=e[1],Ne[2]=e[2],Ne[3]=e[3]),i&&(Ne[0]=he(0,Ne[0]),Ne[1]=he(0,Ne[1]),Ne[2]=he(0,Ne[2]),Ne[3]=he(0,Ne[3])),r&&(Ne[0]=-Ne[0],Ne[1]=-Ne[1],Ne[2]=-Ne[2],Ne[3]=-Ne[3]),ub(t,Ne,"x","width",3,1,n&&n[0]||0),ub(t,Ne,"y","height",0,2,n&&n[1]||0)),t}var Ne=[0,0,0,0];function ub(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=he(0,Re(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ie(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Jo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=U(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&T(ie(l),function(f){Oe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=me(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:re({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Xd(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ia(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)Xd(t[r],e);else Xd(t,e)}function lc(t){return!t||Ie(t[1])<oc&&Ie(t[2])<oc||Ie(t[0])<oc&&Ie(t[3])<oc}var oc=1e-5;function $o(t,e){return t?ne.copy(t,e):e.clone()}function uc(t,e){return e?Hn(t||xt(),e):void 0}function gn(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function eP(t){var e=-1/0,r=1/0;Xd(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function im(t,e,r){pb(t,e,r,-1/0)}function pb(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=he(pb(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=he(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function tP(t){return t.animation={duration:0},t}function rP(t,e){return e?Hn(Rl.transform,e):yr(Rl.transform),Rl.decomposeTransform(),en(t,Rl),t}var Rl=new Do;Rl.transform=xt();function iP(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}ur("circle",xa);ur("ellipse",Ml);ur("sector",sr);ur("ring",Ll);ur("polygon",ba);ur("polyline",Hr);ur("rect",ge);ur("line",lr);ur("bezierCurve",Pl);ur("arc",Ta);var fc={};function nP(t,e){for(var r=0;r<Nt.length;r++){var i=Nt[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function hb(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=W(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Nt.length;u++){var f=Nt[u],c=e[f];l[f]=Y(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function hi(t,e,r,i){r=r||fc;for(var n=t instanceof Ae,a=!1,o=0;o<Ho.length;o++){var s=e[Ho[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new Ae,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=hb(r,e),f=e.normal,c=!!f.getShallow("show"),p=fr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(vb(f,r,!1));for(var o=0;o<Nt.length;o++){var h=Nt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!Y(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=fr(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=vb(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&&(es(l).setLabelText=function(g){var y=hb(r,e,g);nP(l,y)})}else l&&(l.ignore=!0);t.dirty()}function vi(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Nt.length;i++){var n=Nt[i];r[n]=t.getModel([n,e])}return r}function fr(t,e,r,i,n){var a={};return aP(a,t,r,i,n),e&&P(a,e),a}function vb(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=Y(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function aP(t,e,r,i,n){r=r||fc;var a=e.ecModel,o=a&&a.option.textStyle,s=oP(e),l;if(s){l={};var u="richInheritPlainLabel",f=Y(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);yb(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var d=t,m=e.get("minMargin");if(m!=null)m=se(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=Oa.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=Fn(g),d.__marginType=Oa.textMargin)}yb(t,e,o,null,null,r,i,n,!0,!1)}function oP(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||fc).rich;if(r){e=e||{};for(var i=ie(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var db=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mb=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],gb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function yb(t,e,r,i,n,a,o,s,l,u){r=!o&&r||fc;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Y(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=Y(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=Y(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var m=Y(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<db.length;g++){var y=db[g],_=n!==!1&&i?Ht(e.getShallow(y),i.getShallow(y),r[y]):Y(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<mb.length;g++){var y=mb[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<gb.length;g++){var y=gb[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function _b(t,e){var r=e&&e.getModel("textStyle");return pt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var es=te();function xb(t,e,r,i){if(t){var n=es(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var Oa={minMargin:1,textMargin:2};var sP=["textStyle","color"],nm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],am=new Ae,lP=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(sP):null)},t.prototype.getFont=function(){return _b({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<nm.length;i++)r[nm[i]]=this.getShallow(nm[i]);return am.useStyle(r),am.update(),am.getBoundingRect()},t})(),Sb=lP;var om=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],uP=ii(om),bb=(function(){function t(){}return t.prototype.getLineStyle=function(e){return uP(this,e)},t})();var sm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],fP=ii(sm),Tb=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return fP(this,e,r)},t})();var La=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){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 i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e($(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();zo(La);Dx(La);ct(La,bb);ct(La,Tb);ct(La,Ex);ct(La,Sb);var Ce=La;var cP=Math.round(Math.random()*10);function yn(t){return[t||"",cP++].join("_")}function wb(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Zt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Zt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function Cb(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(T(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),T(v.successor,d?g:m)}T(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return T(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(p){ae(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ae(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(l){ae(o,l)>=0&&s.push(l)}),s}}function _n(t,e){return de(de({},t,!0),e,!0)}var Ab={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 Db={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var pc="ZH",um="EN",ts=um,cc={},fm={},hc=oe.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ts).toUpperCase();return t.indexOf(pc)>-1?pc:ts})():ts;function vc(t,e){t=t.toUpperCase(),fm[t]=new Ce(e),cc[t]=e}function Eb(t){if(U(t)){var e=cc[t.toUpperCase()]||{};return t===pc||t===um?$(e):de($(e),$(cc[ts]),!1)}else return de($(t),$(cc[ts]),!1)}function Mb(t){return fm[t]}function Ib(){return fm[ts]}vc(um,Ab);vc(pc,Db);var pP=null;function Ge(){return pP}function dc(t,e){var r=Ge(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Pa(t){var e=t.brk;return e?e.breaks:[]}function Ra(t){var e=t.brk;return e?e.hasBreaks():!1}var yc=1e3,_c=yc*60,rs=_c*60,cr=rs*24,cm=cr*365,hP={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})/},gc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vP="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",mc="{yyyy}-{MM}-{dd}",pm={year:"{yyyy}",month:"{yyyy}-{MM}",day:mc,hour:mc+" "+gc.hour,minute:mc+" "+gc.minute,second:mc+" "+gc.second,millisecond:vP},jt=["year","month","day","hour","minute","second","millisecond"],Ob=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Lb(t){return!U(t)&&!W(t)?dP(t):t}function dP(t){t=t||{};var e={},r=!0;return T(jt,function(i){r&&(r=t[i]==null)}),T(jt,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=jt[s],u=H(a)&&!k(a)?a[l]:a,f=void 0;k(u)?(f=u.slice(),o=f[0]||""):U(u)?(o=u,f=[o]):(o==null?o=gc[i]:hP[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function It(t,e){return t+="","0000".substr(0,e-t.length)+t}function is(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 Pb(t){return t===is(t)}function Rb(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ni(t,e,r,i){var n=Pt(t),a=n[hm(r)](),o=n[xc(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Sc(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[bc(r)](),c=(f-1)%12+1,p=n[Tc(r)](),h=n[wc(r)](),v=n[Cc(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Ce?i:Mb(i||hc)||Ib(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,It(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,It(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,It(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,It(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,It(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,It(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,It(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,It(v,3)).replace(/{S}/g,v+"")}function Nb(t,e,r,i,n){var a=null;if(U(r))a=r;else if(W(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ge();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Na(t.value,n);a=r[f][f][0]}}return Ni(new Date(t.value),a,n,i)}function Na(t,e){var r=Pt(t),i=r[xc(e)]()+1,n=r[Sc(e)](),a=r[bc(e)](),o=r[Tc(e)](),s=r[wc(e)](),l=r[Cc(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function ns(t,e,r){switch(e){case"year":t[vm(r)](0);case"month":t[dm(r)](1);case"day":t[mm(r)](0);case"hour":t[gm(r)](0);case"minute":t[ym(r)](0);case"second":t[_m(r)](0)}return t}function hm(t){return t?"getUTCFullYear":"getFullYear"}function xc(t){return t?"getUTCMonth":"getMonth"}function Sc(t){return t?"getUTCDate":"getDate"}function bc(t){return t?"getUTCHours":"getHours"}function Tc(t){return t?"getUTCMinutes":"getMinutes"}function wc(t){return t?"getUTCSeconds":"getSeconds"}function Cc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function kb(t){return t?"setUTCFullYear":"setFullYear"}function vm(t){return t?"setUTCMonth":"setMonth"}function dm(t){return t?"setUTCDate":"setDate"}function mm(t){return t?"setUTCHours":"setHours"}function gm(t){return t?"setUTCMinutes":"setMinutes"}function ym(t){return t?"setUTCSeconds":"setSeconds"}function _m(t){return t?"setUTCMilliseconds":"setMilliseconds"}function xm(t,e,r,i,n,a,o,s){var l=new Ae({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function zl(t){if(!pl(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function as(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var di=Fn;function Ac(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&pt(f)?f:"-"}function a(f){return tt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Pt(t):t;if(isNaN(+l)){if(s)return"-"}else return Ni(l,i,r)}if(e==="ordinal")return po(t)?n(t):se(t)&&a(t)?t+"":"-";var u=Sr(t);return a(u)?zl(u):po(t)?n(t):typeof t=="boolean"?t+"":"-"}var Bb=["a","b","c","d","e","f","g"],Sm=function(t,e){return"{"+t+(e??"")+"}"};function os(t,e,r){k(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=Bb[a];t=t.replace(Sm(o),Sm(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(Sm(Bb[l],s),r?Je(u):u)}return t}function Dc(t,e){var r=U(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Je(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Je(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function zb(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
13
+ yyyy`);var i=Pt(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",It(o,2)).replace("M",o).replace("yyyy",a).replace("yy",It(a%100+"",2)).replace("dd",It(s,2)).replace("d",s).replace("hh",It(l,2)).replace("h",l).replace("mm",It(u,2)).replace("m",u).replace("ss",It(f,2)).replace("s",f).replace("SSS",It(c,3)),t}function Ub(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Yr(t,e){return e=e||"transparent",U(t)?t:H(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Ec={},Tm={},mP=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(Ec,!0),this._normalMasterList=i(Tm,!1);function i(n,a){var o=[];return T(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){T(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ec[e]=r;return}Tm[e]=r},t.get=function(e){return Tm[e]||Ec[e]},t})();function gP(t){return!!Ec[t]}var yP=1,wm=2;function Fb(t){Vb.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Vb=G();function Ic(t){var e=t.getShallow("coord",!0),r=yP;if(e==null){var i=Vb.get(t.type);i&&i.getCoord2&&(r=wm,e=i.getCoord2(t))}return{coord:e,from:r}}var ss=0,Mc=1,_P=2;function xP(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=ss;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Mc,o||(a=ss)):i==="box"&&(a=_P,!o&&!gP(r)&&(a=ss))}return{coordSysType:r,kind:a}}function Gb(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=xP(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Mc&&(s=Mc,l=r),s===ss||l!==r)return ss;var u=i(r,e);return u?(s===Mc?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):ss}var ls=mP;var Lc=T,SP=["left","right","top","bottom","width","height"],Oc=[["width","left","right"],["height","top","bottom"]];function Cm(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var ka=Cm,V3=be(Cm,"vertical"),G3=be(Cm,"horizontal");function Hb(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 bP(t,e){var r=Ba(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),n,a;if(r.type===Ul.point)a=r.refPoint,n=Qt(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=k(o)?o:[o,o];n=Qt(i,r.refContainer),a=r.boxCoordFrom===wm?r.refPoint:[we(s[0],n.width)+n.x,we(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function Yb(t,e){var r=bP(t,e),i=r.viewRect,n=r.center,a=t.get("radius");k(a)||(a=[0,a]);var o=we(i.width,e.getWidth()),s=we(i.height,e.getHeight()),l=Math.min(o,s),u=we(a[0],l/2),f=we(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function Qt(t,e,r){r=di(r||0);var i=e.width,n=e.height,a=we(t.left,i),o=we(t.top,n),s=we(t.right,i),l=we(t.bottom,n),u=we(t.width,i),f=we(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var Ul={rect:1,point:2};function Ba(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=Ic(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Ul.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ul.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Ul.rect),a===Ul.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function xn(t){var e=t.layoutMode||t.constructor.layoutMode;return H(e)?e:e?{type:e}:null}function pr(t,e,r){var i=r&&r.ignoreSize;!k(i)&&(i=[i,i]);var n=o(Oc[0],0),a=o(Oc[1],1);l(Oc[0],t,n),l(Oc[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(Lc(u,function(y){h[y]=t[y]}),Lc(u,function(y){Oe(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Oe(c,g)&&Oe(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){Lc(u,function(p){f[p]=c[p]})}}function Dr(t){return TP({},t)}function TP(t,e){return e&&t&&Lc(SP,function(r){Oe(e,r)&&(t[r]=e[r])}),t}var wP=te(),us=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=yn("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=xn(this),a=n?Dr(r):{},o=i.getTheme();de(r,o.get(this.mainType)),de(r,this.getDefaultOption()),n&&pr(r,a,n)},e.prototype.mergeOption=function(r,i){de(this.option,r,!0);var n=xn(this);n&&pr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Ax(r))return r.defaultOption;var i=wP(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=de(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return an(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return Hb(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})(Ce);Pf(us,Ce);sn(us);wb(us);Cb(us,CP);function CP(t){var e=[];return T(us.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=z(e,function(r){return Zt(r).main}),t!=="dataset"&&ae(e,"dataset")<=0&&e.unshift("dataset"),e}var Se=us;var za={color:{},darkColor:{},size:{}},Xe=za.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};P(Xe,{primary:Xe.neutral80,secondary:Xe.neutral70,tertiary:Xe.neutral60,quaternary:Xe.neutral50,disabled:Xe.neutral20,border:Xe.neutral30,borderTint:Xe.neutral20,borderShade:Xe.neutral40,background:Xe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Xe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Xe.neutral70,axisLineTint:Xe.neutral40,axisTick:Xe.neutral70,axisTickMinor:Xe.neutral60,axisLabel:Xe.neutral70,axisSplitLine:Xe.neutral15,axisMinorSplitLine:Xe.neutral05});for(Sn in Xe)Xe.hasOwnProperty(Sn)&&(Am=Xe[Sn],Sn==="theme"?za.darkColor.theme=Xe.theme.slice():Sn==="highlight"?za.darkColor.highlight="rgba(255,231,130,0.4)":Sn.indexOf("accent")===0?za.darkColor[Sn]=To(Am,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):za.darkColor[Sn]=To(Am,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var Am,Sn;za.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var q=za;var Wb="";typeof navigator<"u"&&(Wb=navigator.platform||"");var fs="rgba(0, 0, 0, 0.2)",Xb=q.color.theme[0],AP=To(Xb,null,null,.9),Rc={darkMode:"auto",colorBy:"series",color:q.color.theme,gradientColor:[AP,Xb],aria:{decal:{decals:[{color:fs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Wb.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var ut={Must:1,Might:2,Not:3},Zb=te();function qb(t){Zb(t).datasetMap=G()}function Kb(t,e,r){var i={},n=Nc(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=Zb(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),T(t,function(d,m){var g=H(d)?d:t[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(t,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function jb(t,e,r){var i={},n=Nc(t);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Et||a===qt)&&T(o,function(f,c){(H(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,v=Math.min(5,r);h<v;h++){var d=Jb(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===ut.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===ut.Not)&&(f.n=h),g(f)&&p[f.n]!==ut.Not)return f;m||(d===ut.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Nc(t){var e=t.get("data",!0);if(!e)return an(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},We).models[0]}function Qb(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:an(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},We).models}function kc(t,e){return Jb(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Jb(t,e,r,i,n,a){var o,s=5;if(Ve(t))return ut.Not;var l,u;if(i){var f=i[a];H(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?ut.Must:ut.Not;if(e===rt){var c=t;if(r===fi){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===Et){var d=t;if(!l)return ut.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===qt){var g=t;if(!l)return ut.Not;var p=g[l];if(!p||Ve(p))return ut.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===st)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=Ii(m);if(!k(_))return ut.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=U(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?ut.Might:ut.Not;if(b&&S!=="-")return ut.Must}return ut.Not}var DP=G();function $b(t,e,r){var i=DP.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var eT=te(),sY=te(),Fl=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ue(this.get("color",!0)),a=this.get("colorLayer",!0);return MP(this,eT,n,a,e,r,i)},t.prototype.clearColorPalette=function(){IP(this,eT)},t})();function EP(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function MP(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:EP(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function IP(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Bc,Vl,tT,rT="\0_ec_inner",OP=1;var oT=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ce(a),this._locale=new Ce(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=aT(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,aT(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?tT(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=G(),u=i&&i.replaceMergeMainTypeMap;qb(this),T(r,function(c,p){c!=null&&(Se.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?$(c):de(n[p],c,!0))}),u&&u.each(function(c,p){Se.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(c){var p=$b(this,c,Ue(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=cx(h,p,v);hx(d,c,Se),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;T(d,function(S,b){var w=S.existing,A=S.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=Se.getClass(c,S.keyInfo.subType,!C);if(!D){if(0)var M,I;return}if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var E=P({componentIndex:b},S.keyInfo);w=new D(A,this,this,E),P(w,E),S.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Bc(this)}this._seriesIndices||Bc(this)},e.prototype.getOption=function(){var r=$(this.option);return T(r,function(i,n){if(Se.hasClass(n)){for(var a=Ue(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Lo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[rT],r},e.prototype.setTheme=function(r){this._theme=new Ce(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(Ue(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=iT("id",a,s):o!=null?l=iT("name",o,s):l=Ee(s,function(u){return!!u}),nT(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Ee(this._componentsMap.get(n),function(u){return!!u});return l(nT(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Ee(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(W(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=U(r)?a.get(r):H(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=nr(r,null);return Ee(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ee(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Ee(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Vl(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){T(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Vl(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return T(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Vl(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Vl(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=G(n)},e.prototype.restoreData=function(r){Bc(this);var i=this._componentsMap,n=[];i.each(function(a,o){Se.hasClass(o)&&n.push(o)}),Se.topologicalTravel(n,Se.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!LP(o,r))&&o.restoreData()})})},e.internalField=(function(){Bc=function(r){var i=r._seriesIndices=[];T(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=G(i)},Vl=function(r){},tT=function(r,i){r.option={},r.option[rT]=OP,r._componentsMap=G({series:[]}),r._componentsCount=G();var n=i.aria;H(n)&&n.enabled==null&&(n.enabled=!0),PP(i,r._theme.option),de(i,Rc,!1),r._mergeOption(i,null)}})(),e})(Ce);function LP(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function PP(t,e){var r=t.color&&!t.colorLayer;T(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||Se.hasClass(n)||(typeof i=="object"?t[n]=t[n]?de(t[n],i,!1):$(i):t[n]==null&&(t[n]=i))})}function iT(t,e,r){if(k(e)){var i=G();return T(e,function(a){if(a!=null){var o=nr(a,null);o!=null&&i.set(a,!0)}}),Ee(r,function(a){return a&&i.get(a[t])})}else{var n=nr(e,null);return Ee(r,function(a){return a&&n!=null&&a[t]===n})}}function nT(t,e){return e.hasOwnProperty("subType")?Ee(t,function(r){return r&&r.subType===e.subType}):t}function aT(t){var e=G();return t&&T(Ue(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ct(oT,Fl);var zc=oT;var RP=/^(min|max)?(.+)$/,NP=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(T(Ue(e.series),function(o){o&&o.data&&Ve(o.data)&&Vn(o.data)}),T(Ue(e.dataset),function(o){o&&o.source&&Ve(o.source)&&Vn(o.source)})),e=$(e);var n=this._optionBackup,a=kP(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],$(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=$(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)BP(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!UP(o,this._currentMediaIndices)&&(s=z(o,function(f){return $(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function kP(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&k(u)&&T(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),T(l,function(h){return p(h)}),T(i,function(h){return p(h.option)});function p(h){T(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function BP(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return T(t,function(a,o){var s=o.match(RP);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();zP(i[u],a,l)||(n=!1)}}),n}function zP(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function UP(t,e){return t.join(",")===e.join(",")}var sT=NP;var Wr=T,Hl=H,lT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Dm(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=lT.length;r<i;r++){var n=lT[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?de(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?de(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function Ot(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,re(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Gl(t){Ot(t,"itemStyle"),Ot(t,"lineStyle"),Ot(t,"areaStyle"),Ot(t,"label"),Ot(t,"labelLine"),Ot(t,"upperLabel"),Ot(t,"edgeLabel")}function $e(t,e){var r=Hl(t)&&t[e],i=Hl(r)&&r.textStyle;if(i)for(var n=0,a=Kv.length;n<a;n++){var o=Kv[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Er(t){t&&(Gl(t),$e(t,"label"),t.emphasis&&$e(t.emphasis,"label"))}function FP(t){if(Hl(t)){Dm(t),Gl(t),$e(t,"label"),$e(t,"upperLabel"),$e(t,"edgeLabel"),t.emphasis&&($e(t.emphasis,"label"),$e(t.emphasis,"upperLabel"),$e(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Dm(e),Er(e));var r=t.markLine;r&&(Dm(r),Er(r));var i=t.markArea;i&&Er(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Ve(a))for(var o=0;o<a.length;o++)Er(a[o]);T(t.categories,function(u){Gl(u)})}if(n&&!Ve(n))for(var o=0;o<n.length;o++)Er(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Er(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)k(l[o])?(Er(l[o][0]),Er(l[o][1])):Er(l[o]);t.type==="gauge"?($e(t,"axisLabel"),$e(t,"title"),$e(t,"detail")):t.type==="treemap"?(Ot(t.breadcrumb,"itemStyle"),T(t.levels,function(u){Gl(u)})):t.type==="tree"&&Gl(t.leaves)}}function ki(t){return k(t)?t:t?[t]:[]}function uT(t){return(k(t)?t[0]:t)||{}}function Em(t,e){Wr(ki(t.series),function(i){Hl(i)&&FP(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Wr(r,function(i){Wr(ki(t[i]),function(n){n&&($e(n,"axisLabel"),$e(n.axisPointer,"label"))})}),Wr(ki(t.parallel),function(i){var n=i&&i.parallelAxisDefault;$e(n,"axisLabel"),$e(n&&n.axisPointer,"label")}),Wr(ki(t.calendar),function(i){Ot(i,"itemStyle"),$e(i,"dayLabel"),$e(i,"monthLabel"),$e(i,"yearLabel")}),Wr(ki(t.radar),function(i){$e(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Wr(ki(t.geo),function(i){Hl(i)&&(Er(i),Wr(ki(i.regions),function(n){Er(n)}))}),Wr(ki(t.timeline),function(i){Er(i),Ot(i,"label"),Ot(i,"itemStyle"),Ot(i,"controlStyle",!0);var n=i.data;k(n)&&T(n,function(a){H(a)&&(Ot(a,"label"),Ot(a,"itemStyle"))})}),Wr(ki(t.toolbox),function(i){Ot(i,"iconStyle"),Wr(i.feature,function(n){Ot(n,"iconStyle")})}),$e(uT(t.axisPointer),"label"),$e(uT(t.tooltip).axisPointer,"label")}function VP(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function GP(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function fT(t){t&&T(HP,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var HP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],YP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Mm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Yl(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Mm.length;r++){var i=Mm[r][1],n=Mm[r][0];e[i]!=null&&(e[n]=e[i])}}function cT(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function pT(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function WP(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function hT(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&hT(t[r].children,e)}function Uc(t,e){Em(t,e),t.series=Ue(t.series),T(t.series,function(r){if(H(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),cT(r.label);var n=r.data;if(n&&!Ve(n))for(var a=0;a<n.length;a++)cT(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=VP(r,"pointer.color");o!=null&&GP(r,"itemStyle.color",o)}else if(i==="bar"){Yl(r),Yl(r.backgroundStyle),Yl(r.emphasis);var n=r.data;if(n&&!Ve(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Yl(n[a]),Yl(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),pT(r),hT(r.data,pT)}else i==="graph"||i==="sankey"?WP(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&re(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),fT(r)}}),t.dataRange&&(t.visualMap=t.dataRange),T(YP,function(r){var i=t[r];i&&(k(i)||(i=[i]),T(i,function(n){fT(n)}))})}var vT=Bo(XP);function XP(t){var e=G();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),ZP(r)}})}function ZP(t){T(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Ei(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Fc=(function(){function t(e){this.data=e.data||(e.sourceFormat===qt?{}:[]),this.sourceFormat=e.sourceFormat||wd,this.seriesLayoutBy=e.seriesLayoutBy||or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&kc(this,i)===ut.Must&&(n.type="ordinal")}}return t})();function cs(t){return t instanceof Fc}function Wl(t,e,r){r=r||Im(t);var i=e.seriesLayoutBy,n=qP(t,r,i,e.sourceHeader,e.dimensions),a=new Fc({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:$(e)});return a}function ps(t){return new Fc({data:t,sourceFormat:Ve(t)?ar:st})}function gT(t){return new Fc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:$(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Im(t){var e=wd;if(Ve(t))e=ar;else if(k(t)){t.length===0&&(e=rt);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(k(n)||Ve(n)){e=rt;break}else if(H(n)){e=Et;break}}}}else if(H(t)){for(var a in t)if(Oe(t,a)&&je(t[a])){e=qt;break}}return e}function qP(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:dT(n),startIndex:o,dimensionsDetectedCount:a};if(e===rt){var s=t;i==="auto"||i==null?mT(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},r,s,10):o=se(i)?i:i?1:0,!n&&o===1&&(n=[],mT(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===fi?s.length:s[0]?s[0].length:null}else if(e===Et)n||(n=KP(t));else if(e===qt)n||(n=[],T(t,function(u,f){n.push(f)}));else if(e===st){var l=Ii(t[0]);a=k(l)&&l.length||1}return{startIndex:o,dimensionsDefine:dT(n),dimensionsDetectedCount:a}}function KP(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ie(r)}function dT(t){if(t){var e=G();return z(t,function(r,i){r=H(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function mT(t,e,r,i){if(e===fi)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function Vc(t){var e=t.sourceFormat;return e===Et||e===qt}var Ua,Fa,Va,Ga,yT,_T,Hc=(function(){function t(e,r){var i=cs(e)?e:ps(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===ar&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;_T(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;_T=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=yT[Nm(u,f)];if(P(o,h),u===ar)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=Lm(u,f);o.getItem=J(v,null,s,c,p);var d=Pm(u,f);o.count=J(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};yT=(e={},e[rt+"_"+or]={pure:!0,appendData:a},e[rt+"_"+fi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Et]={pure:!0,appendData:a},e[qt]={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[st]={appendData:a},e[ar]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Gc=function(t){k(t)||qv("series.data or dataset.source must be an array.")},WY=(Ua={},Ua[rt+"_"+or]=Gc,Ua[rt+"_"+fi]=Gc,Ua[Et]=Gc,Ua[qt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&qv("dimension name must not be null/undefined.")}},Ua[st]=Gc,Ua),xT=function(t,e,r,i){return t[i]},jP=(Fa={},Fa[rt+"_"+or]=function(t,e,r,i){return t[i+e]},Fa[rt+"_"+fi]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Fa[Et]=xT,Fa[qt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},Fa[st]=xT,Fa);function Lm(t,e){var r=jP[Nm(t,e)];return r}var ST=function(t,e,r){return t.length},QP=(Va={},Va[rt+"_"+or]=function(t,e,r){return Math.max(0,t.length-e)},Va[rt+"_"+fi]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Va[Et]=ST,Va[qt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Va[st]=ST,Va);function Pm(t,e){var r=QP[Nm(t,e)];return r}var Om=function(t,e,r){return t[e]},JP=(Ga={},Ga[rt]=Om,Ga[Et]=function(t,e,r){return t[r]},Ga[qt]=Om,Ga[st]=function(t,e,r){var i=Ii(t);return i instanceof Array?i[e]:i},Ga[ar]=Om,Ga);function Rm(t){var e=JP[t];return e}function Nm(t,e){return t===rt?t+"_"+e:t}function Bi(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Rm(a)(i,o,s)}else{var l=i;return a===st&&(l=Ii(i)),l}}}}var $P=/\{@(.+?)\}/g,bT=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&k(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(W(a))return l.status=r,l.dimensionIndex=n,a(l);if(U(a)){var f=os(a,l);return f.replace($P,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=Bi(s,e,v);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return Bi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function km(t){var e,r;return H(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function bn(t){return new eR(t)}var eR=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(k(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){TT.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:TT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var TT=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function hs(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!se(t)&&t!=null&&t!=="-"&&(t=+Pt(t)),t==null||t===""?NaN:Number(t))}var rW=G({number:function(t){return parseFloat(t)},time:function(t){return+Pt(t)},trim:function(t){return U(t)?pt(t):t}});var tR={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}},iW=(function(){function t(e,r){if(!se(r)){var i="";vt(i)}this._opFn=tR[e],this._rvalFloat=Sr(r)}return t.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(Sr(e),this._rvalFloat)},t})(),wT=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=se(e)?e:Sr(e),n=se(r)?r:Sr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(e),l=U(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var nW=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Sr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Sr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Yc(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Wc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var rR=(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 hs(e,r)},t})();function iR(t,e){var r=new rR,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==or&&vt(o);var s=[],l={},u=t.dimensionsDefine;if(u)T(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Oe(l,g)&&vt(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Lm(n,or);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=J(nR,null,t)),r.cloneRawData=J(aR,null,t);var p=Pm(n,or);r.count=J(p,null,i,a,s);var h=Rm(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return r.getDimensionInfo=J(oR,null,s,l),r.cloneAllDimensionInfo=J(sR,null,s),r}function nR(t){var e=t.sourceFormat;if(!Bm(e)){var r="";vt(r)}return t.data}function aR(t){var e=t.sourceFormat,r=t.data;if(!Bm(e)){var i="";vt(i)}if(e===rt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===Et){for(var n=[],a=0,o=r.length;a<o;a++)n.push(P({},r[a]));return n}}function oR(t,e,r){if(r!=null){if(se(r)||!isNaN(r)&&!Oe(e,r))return t[r];if(Oe(e,r))return e[r]}}function sR(t){return $(t)}var CT=G();function AT(t){t=$(t);var e=t.type,r="";e||vt(r);var i=e.split(":");i.length!==2&&vt(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,CT.set(e,t)}function DT(t,e,r){var i=Ue(t),n=i.length,a="";n||vt(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=lR(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function lR(t,e,r,i){var n="";e.length||vt(n),H(t)||vt(n);var a=t.type,o=CT.get(a);o||vt(n);var s=z(e,function(f){return iR(f,o)}),l=Ue(o.transform({upstream:s[0],upstreamList:s,config:$(t.config)}));if(0&&t.print)var u;return z(l,function(f,c){var p="";H(f)||vt(p),f.data||vt(p);var h=Im(f.data);Bm(h)||vt(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:or,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:or,sourceHeader:0,dimensions:f.dimensions};return Wl(f.data,v,null)})}function Bm(t){return t===rt||t===Et}var uR=typeof Uint32Array===pn?Array:Uint32Array,fR=typeof Uint16Array===pn?Array:Uint16Array,Um=typeof Int32Array===pn?Array:Int32Array,ET=typeof Float64Array===pn?Array:Float64Array,IT={float:ET,int:Um,ordinal:Array,number:Array,time:ET},zm;function vs(t){return t>65535?uR:fR}function cR(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function MT(t,e,r,i,n){var a=IT[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var pR=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=zm[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Vc(n);this._dimensions=z(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new IT[r||"float"](this._rawCount),this._rawExtent[a]=St(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=St());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];MT(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=zm.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=St()),MT(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Dt(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=vs(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=vs(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=ie(e),a=n.length;if(!a)return this;var o=r.count(),s=vs(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=h[n[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=r.getRawIndex(g),C=0;C<a;C++){var D=n[C],y=h[D][w];(y<e[D][0]||y>e[D][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=St();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(vs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var b=v,w=Math.min(v+l,o),A=v-1,C=a[u];f=-1,p=b;for(var D=-1,M=0,_=b;_<w;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){M++,D<0&&(D=x);continue}c=Math.abs((A-g)*(S-C)-(A-_)*(y-C)),c>f&&(f=c,p=x)}M>0&&M<w-b&&(h[s++]=Math.min(D,p),p=Math.max(D,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(vs(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=St(),p=new(vs(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=St();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Yc(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!r||Wc(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&Ct(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?cR(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=$(this._extent),e._rawExtent=$(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return hs(r[a],this._dimensions[a])}zm={arrayRows:e,objectRows:function(r,i,n,a){return hs(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return hs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),Xl=pR;var LT=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Xc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ve(s)?ar:st,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Y(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=Y(c.sourceHeader,p.sourceHeader),d=Y(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[Wl(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Wl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&OT(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&OT(c),s.push(f),l.push(u._getVersionSign())}),i?o=DT(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[gT(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Xc(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Xl,s.initData(new Hc(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xc(e)){var r=Nc(e);return r?[r.getSourceManager()]:[]}else return z(Qb(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Xc(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Xc(t){return t.mainType==="series"}function OT(t){throw new Error(t)}var hR="line-height:1";function PT(t){var e=t.lineHeight;return e==null?hR:"line-height:"+Je(e+"")+"px"}function RT(t,e){var r=t.color||q.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||q.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Je(i+"")+"px;color:"+Je(r)+";font-weight:"+Je(n+""),valueStyle:"font-size:"+Je(o+"")+"px;color:"+Je(a)+";font-weight:"+Je(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var vR=[0,10,20,30],dR=["",`
14
+ `,`
15
+
16
+ `,`
17
+
18
+
19
+ `];function Ha(t,e){return e.type=t,e}function Fm(t){return t.type==="section"}function NT(t){return Fm(t)?mR:gR}function kT(t){if(Fm(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return T(t.blocks,function(n){var a=kT(n);a>=e&&(e=a+ +(i&&(!a||Fm(n)&&!n.noHeader)))}),e}return 0}function mR(t,e,r,i){var n=e.noHeader,a=yR(kT(e)),o=[],s=e.blocks||[];Be(!s||k(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oe(u,l)){var f=new wT(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,m){var g=e.valueFormatter,y=NT(d)(g?P(P({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Vm(i,o.join(""),n?r:a.html);if(n)return c;var p=Ac(e.header,"ordinal",t.useUTC),h=RT(i,t.renderMode).nameStyle,v=PT(i);return t.renderMode==="richText"?BT(t,p,h)+a.richText+c:Vm(i,'<div style="'+h+";"+v+';">'+Je(p)+"</div>"+c,r)}function gR(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=k(x)?x:[x],z(x,function(S,b){return Ac(S,k(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||q.color.secondary,n),p=a?"":Ac(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=RT(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":BT(t,p,y))+(o?"":SR(t,v,d,m,_)):Vm(i,(s?"":c)+(a?"":_R(p,!s,y))+(o?"":xR(v,d,m,_)),r)}}function Gm(t,e,r,i,n,a){if(t){var o=NT(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function yR(t){return{html:vR[t],richText:dR[t]}}function Vm(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=PT(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function _R(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Je(t)+"</span>"}function xR(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=k(t)?t:[t],'<span style="'+a+";"+i+'">'+z(t,function(o){return Je(o)}).join("&nbsp;&nbsp;")+"</span>"}function BT(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function SR(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(k(e)?e.join(" "):e,a)}function zT(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Yr(i)}function Zc(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var qc=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=hl()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=Dc({color:r,type:e,renderMode:i,markerId:n});return U(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};k(r)?T(r,function(a){return P(i,a)}):P(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function UT(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=k(s),u=zT(e,r),f,c,p,h;if(o>1||l&&!o){var v=bR(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=Bi(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=Po(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return Ha("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[Ha("nameValue",{markerType:"item",markerColor:u,name:_,noName:!pt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function bR(t,e,r,i,n){var a=e.getData(),o=Ct(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(c){f(Bi(a,r,c),c)}):T(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Ha("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Tn=te();function Kc(t,e){return t.getName(e)||t.getId(e)}var TR="__universalTransitionEnabled",jc=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=bn({count:CR,reset:AR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Tn(this).sourceManager=new LT(this);a.prepareSource();var o=this.getInitialData(r,n);VT(o,this),this.dataTask.context.data=o,Tn(this).dataBeforeProcessed=o,FT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=xn(this),a=n?Dr(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),de(r,i.getTheme().get(this.subType)),de(r,this.getDefaultOption()),dl(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&pr(r,a,n)},e.prototype.mergeOption=function(r,i){r=de(this.option,r,!0),this.fillDataTextStyle(r.data);var n=xn(this);n&&pr(this.option,r,n);var a=Tn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);VT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Tn(this).dataBeforeProcessed=o,FT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ve(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&dl(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Hm(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Tn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Hm(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Tn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return G(r)},e.prototype.getSourceManager=function(){return Tn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Tn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return UT({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(oe.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Fl.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Kc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ie(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Kc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[TR])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Kc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Kc(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return Se.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})(Se);ct(jc,bT);ct(jc,Fl);Pf(jc,Se);function FT(t){var e=t.name;Po(t)||(t.name=wR(t)||e)}function wR(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return T(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function CR(t){return t.model.getRawData().count()}function AR(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),DR}function DR(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function VT(t,e){T(Gh(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,be(ER,e))})}function ER(t,e){var r=Hm(t);return r&&r.setOutputEnd((e||this).count()),e}function Hm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Tt=jc;var Ym=(function(){function t(){this.group=new xe,this.uid=yn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();zo(Ym);sn(Ym);var et=Ym;function Ya(){var t=te();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var YT=te(),MR=Ya(),Wm=(function(){function t(){this.group=new xe,this.uid=yn("viewChart"),this.renderTask=bn({plan:IR,reset:OR}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&HT(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&HT(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Ia(this.group,e)},t.markUpdateMethod=function(e,r){YT(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function GT(t,e,r){t&&Dl(t)&&(e==="emphasis"?ga:ya)(t,r)}function HT(t,e,r){var i=br(t,e),n=e&&e.highlightKey!=null?RS(e.highlightKey):null;i!=null?T(Ue(i),function(a){GT(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){GT(a,r,n)})}zo(Wm,["dispose"]);sn(Wm);function IR(t){return MR(t.model)}function OR(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&YT(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),LR[l]}var LR={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)}}},ft=Wm;var Qc="\0__throttleOriginMethod",WT="\0__throttleRate",XT="\0__throttleType";function Wa(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function wn(t,e,r,i){var n=t[e];if(n){var a=n[Qc]||n,o=n[XT],s=n[WT];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=Wa(a,r,i==="debounce"),n[Qc]=a,n[XT]=i,n[WT]=r}return n}}function Xa(t,e){var r=t[e];r&&r[Qc]&&(r.clear&&r.clear(),t[e]=r[Qc])}var ZT=te(),qT={itemStyle:ii(sm,!0),lineStyle:ii(om,!0)},PR={lineStyle:"stroke",itemStyle:"fill"};function KT(t,e){var r=t.visualStyleMapper||qT[e];return r||(console.warn("Unknown style type '"+e+"'."),qT.itemStyle)}function jT(t,e){var r=t.visualDrawType||PR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var QT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=KT(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=jT(t,i),u=o[l],f=W(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"||W(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||W(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=t.getDataParams(v),m=P({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},Zl=new Ce,JT={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=KT(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Zl.option=l[i];var u=n(Zl),f=o.ensureUniqueItemVisual(s,"style");P(f,u),Zl.option.decal&&(o.setItemVisual(s,"decal",Zl.option.decal),Zl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},$T={performRawSeries:!0,overallReset:function(t){var e=G();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();ZT(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=ZT(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=jT(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var Jc=Math.PI;function Zm(t,e){e=e||{},re(e,{text:"loading",textColor:q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xe,i=new ge({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Ae({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ge({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ta({shape:{startAngle:-Jc/2,endAngle:-Jc/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:Jc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var RR=(function(){function t(e,r,i,n){this._stageTaskMap=G(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Lf(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=G();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Be(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;T(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=G(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||bn({plan:UR,reset:FR,count:GR}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||bn({reset:NR});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=G(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Be(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):T(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,bn({reset:kR,onDirty:zR})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return W(e)&&(e={overallReset:e,seriesType:HR(e)}),e.uid=yn("stageHandler"),r&&(e.visualType=r),e},t})();function NR(t){t.overallReset(t.ecModel,t.api,t.payload)}function kR(t){return t.dirtyOnOverallProgress&&BR}function BR(){this.agent.dirty(),this.getDownstream().dirty()}function zR(){this.agent&&this.agent.dirty()}function UR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function FR(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?z(e,function(r,i){return e1(i)}):VR}var VR=e1(0);function e1(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function GR(t){return t.data.count()}function HR(t){$c=null;try{t(ql,t1)}catch{}return $c}var ql={},t1={},$c;r1(ql,zc);r1(t1,Gf);ql.eachSeriesByType=ql.eachRawSeriesByType=function(t){$c=t};ql.eachComponent=function(t){t.mainType==="series"&&t.subType&&($c=t.subType)};function r1(t,e){for(var r in e.prototype)t[r]=Me}var qm=RR;var Z=q.darkColor,i1=Z.background,Kl=function(){return{axisLine:{lineStyle:{color:Z.axisLine}},splitLine:{lineStyle:{color:Z.axisSplitLine}},splitArea:{areaStyle:{color:[Z.backgroundTint,Z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Z.axisMinorSplitLine}},axisLabel:{color:Z.axisLabel},axisName:{}}},n1={label:{color:Z.secondary},itemStyle:{borderColor:Z.borderTint},dividerLineStyle:{color:Z.border}},a1={darkMode:!0,color:Z.theme,backgroundColor:i1,axisPointer:{lineStyle:{color:Z.border},crossStyle:{color:Z.borderShade},label:{color:Z.tertiary}},legend:{textStyle:{color:Z.secondary},pageTextStyle:{color:Z.tertiary}},textStyle:{color:Z.secondary},title:{textStyle:{color:Z.primary},subtextStyle:{color:Z.quaternary}},toolbox:{iconStyle:{borderColor:Z.accent50},feature:{dataView:{backgroundColor:i1,textColor:Z.primary,textareaColor:Z.background,textareaBorderColor:Z.border,buttonColor:Z.accent50,buttonTextColor:Z.neutral00}}},tooltip:{backgroundColor:Z.neutral20,defaultBorderColor:Z.border,textStyle:{color:Z.tertiary}},dataZoom:{borderColor:Z.accent10,textStyle:{color:Z.tertiary},brushStyle:{color:Z.backgroundTint},handleStyle:{color:Z.neutral00,borderColor:Z.accent20},moveHandleStyle:{color:Z.accent40},emphasis:{handleStyle:{borderColor:Z.accent50}},dataBackground:{lineStyle:{color:Z.accent30},areaStyle:{color:Z.accent20}},selectedDataBackground:{lineStyle:{color:Z.accent50},areaStyle:{color:Z.accent30}}},visualMap:{textStyle:{color:Z.secondary},handleStyle:{borderColor:Z.neutral30}},timeline:{lineStyle:{color:Z.accent10},label:{color:Z.tertiary},controlStyle:{color:Z.accent30,borderColor:Z.accent30}},calendar:{itemStyle:{color:Z.neutral00,borderColor:Z.neutral20},dayLabel:{color:Z.tertiary},monthLabel:{color:Z.secondary},yearLabel:{color:Z.secondary}},matrix:{x:n1,y:n1,backgroundColor:{borderColor:Z.axisLine},body:{itemStyle:{borderColor:Z.borderTint}}},timeAxis:Kl(),logAxis:Kl(),valueAxis:Kl(),categoryAxis:Kl(),line:{symbol:"circle"},graph:{color:Z.theme},gauge:{title:{color:Z.secondary},axisLine:{lineStyle:{color:[[1,Z.neutral05]]}},axisLabel:{color:Z.axisLabel},detail:{color:Z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Z.background}},radar:(function(){var t=Kl();return t.axisName={color:Z.axisLabel},t.axisLine.lineStyle.color=Z.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:Z.neutral20,textStyle:{color:Z.secondary}},emphasis:{itemStyle:{color:Z.neutral30}}}},sunburst:{itemStyle:{borderColor:Z.background}},map:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},label:{color:Z.tertiary},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}}},geo:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{color:Z.highlight}}}};a1.categoryAxis.splitLine.show=!1;var o1=a1;var s1=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(U(e)){var a=Zt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Km=["symbol","symbolSize","symbolRotate","symbolOffset"],l1=Km.concat(["symbolKeepAspect"]),u1={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Km.length;o++){var s=Km[o],l=t.get(s);W(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(P({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=ie(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},f1={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<l1.length;s++){var l=l1[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function c1(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function p1(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 h1(t,e){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:t,query:n},function(o){a.push(o.seriesIndex)}),a}T([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=P({},n),o.dispatchAction(P(n,{type:i[1],seriesIndex:r(a,n)}))})})}function ds(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=br(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:U(l)?l:P({},l)})}})}function v1(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(ds("map","selectchanged",e,n,i),ds("pie","selectchanged",e,n,i)):i.fromAction==="select"?(ds("map","selected",e,n,i),ds("pie","selected",e,n,i)):i.fromAction==="unselect"&&(ds("map","unselected",e,n,i),ds("pie","unselected",e,n,i))})}function Za(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var YR=new _t,hr=YR;var d1={};function m1(t,e){d1[t]=e}function jm(t){return d1[t]}var WR={};function ep(t,e){WR[t]=e}var tp=te();function g1(t){tp(t).prepare={}}function y1(t){tp(t).fullUpdate={}}function rp(t){return tp(t).prepare}function qa(t){return tp(t).fullUpdate}var XR=Math.round(Math.random()*9),ZR=typeof Object.defineProperty=="function",qR=(function(){function t(){this._id="__ec_inner_"+XR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return ZR?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),_1=qR;var KR=ue.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),jR=ue.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),QR=ue.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),JR=ue.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),$R={line:lr,rect:ge,roundRect:ge,square:ge,circle:xa,diamond:jR,pin:QR,arrow:JR,triangle:KR},eN={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},jl={};T($R,function(t,e){jl[e]=new t});var tN=ue.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=na(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=jl[i];n||(i="rect",n=jl[i]),eN[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function rN(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Lt(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=kl(t.slice(8),new ne(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=jo(t.slice(7),{},new ne(e,r,i,n),o?"center":"cover"):l=new tN({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=rN,a&&l.setColor(a),l}function x1(t){return k(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ip(t,e){if(t!=null)return k(t)||(t=[t,t]),[we(t[0],e[0])||0,we(Y(t[1],t[0]),e[1])||0]}function Ka(t){return isFinite(t)}function iN(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Ka(i)?i:0,n=Ka(n)?n:1,a=Ka(a)?a:0,o=Ka(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function nN(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Ka(o)?o:.5,s=Ka(s)?s:.5,l=l>=0&&Ka(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Qm(t,e,r){for(var i=e.type==="radial"?nN(t,e,r):iN(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function S1(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 np(t){return parseInt(t,10)}function Jm(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||np(s[i])||np(t.style[i]))-(np(s[a])||0)-(np(s[o])||0)||0}function aN(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:se(t)?[t]:k(t)?t:null}function Ql(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&aN(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=z(r,function(a){return a/n}),i/=n)}return[r,i]}var oN=new bt(!0);function ap(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function b1(t){return typeof t=="string"&&t!=="none"}function op(t){var e=t.fill;return e!=null&&e!=="none"}function T1(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 w1(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 C1(t,e,r){var i=yl(e.image,e.__image,r);if(Uo(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Gn),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function sN(t,e,r,i,n){var a,o=ap(r),s=op(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||oN,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(_=p?Qm(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?Qm(t,v,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?C1(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?C1(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,D;t.setLineDash&&r.lineDash&&(a=Ql(e),C=a[0],D=a[1]);var M=!0;(f||p&qi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=D),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&w1(t,r),s&&T1(t,r)):(s&&T1(t,r),o&&w1(t,r)),C&&t.setLineDash([])}function lN(t,e,r){var i=e.__image=yl(r.image,e.__image,e,e.onload);if(!(!i||!Uo(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function uN(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Gt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Ql(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(ap(r)&&t.strokeText(n,r.x,r.y),op(r)&&t.fillText(n,r.x,r.y)):(op(r)&&t.fillText(n,r.x,r.y),ap(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var A1=["shadowBlur","shadowOffsetX","shadowOffsetY"],D1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P1(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){kt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ni.opacity:o}(i||e.blend!==r.blend)&&(a||(kt(t,n),a=!0),t.globalCompositeOperation=e.blend||ni.blend);for(var s=0;s<A1.length;s++){var l=A1[s];(i||e[l]!==r[l])&&(a||(kt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(kt(t,n),a=!0),t.shadowColor=e.shadowColor||ni.shadowColor),a}function E1(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=P1(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(kt(t,n),s=!0),b1(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(kt(t,n),s=!0),b1(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(kt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(kt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<D1.length;f++){var c=D1[f],p=c[0];(i||a[p]!==o[p])&&(s||(kt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function fN(t,e,r,i,n){return P1(t,e.style,r&&r.style,i,n)}function R1(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function cN(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),R1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function pN(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var M1=1,I1=2,O1=3,L1=4;function hN(t){var e=op(t),r=ap(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 kt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function sp(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};$m(t,e,r),eg(t,r)}function $m(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~At,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||S1(n,a))&&(a&&(kt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(kt(t,r),t.save(),cN(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~At,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ue&&e.autoBatch&&hN(o);s||pN(i,u.transform)?(kt(t,r),R1(t,e)):f||kt(t,r),e instanceof ue?(r.lastDrawType!==M1&&(l=!0,r.lastDrawType=M1),E1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),sN(t,e,o,f,r)):e instanceof ma?(r.lastDrawType!==O1&&(l=!0,r.lastDrawType=O1),E1(t,e,u,l,r),uN(t,e,o)):e instanceof dt?(r.lastDrawType!==I1&&(l=!0,r.lastDrawType=I1),fN(t,e,u,l,r),lN(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==L1&&(l=!0,r.lastDrawType=L1),vN(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&kt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function eg(t,e){kt(t,e),e.prevElClipPaths&&t.restore()}function vN(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),$m(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}eg(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),$m(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}eg(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var tg=new _1,N1=new $r(100),k1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Jl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&tg.delete(t);var a=tg.get(t);if(a)return a;var o=re(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,tg.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<k1.length;++p){var h=o[k1[p]];if(h!=null&&!k(h)&&!U(h)&&!se(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=N1.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=z1(o.dashArrayX),g=dN(o.dashArrayY),y=B1(o.symbol),_=mN(m),x=U1(g),S=!n&&at.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;S&&(S.width=w.width*r,S.height=w.height*r,A=S.getContext("2d")),D(),c&&N1.put(v,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,I=0,E=_.length;I<E;++I)M=Zv(M,_[I]);for(var O=1,I=0,E=y.length;I<E;++I)O=Zv(O,y[I].length);M*=O;var R=x*_.length*y.length;if(0)var N;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I<g.length;++I)M+=g[I];if(M<=0)return;for(var E=-x,O=0,R=0,N=0;E<w.height;){if(O%2===0){for(var F=R/2%y.length,B=0,V=0,X=0;B<w.width*2;){for(var K=0,I=0;I<m[N].length;++I)K+=m[N][I];if(K<=0)break;if(V%2===0){var Q=(1-o.symbolSize)*.5,ee=B+m[N][V]*Q,j=E+g[O]*Q,ce=m[N][V]*o.symbolSize,ye=g[O]*o.symbolSize,He=X/2%y[F].length;Fe(ee,j,ce,ye,y[F][He])}B+=m[N][V],++X,++V,V===m[N].length&&(V=0)}++N,N===m.length&&(N=0)}E+=g[O],++R,++O,O===g.length&&(O=0)}function Fe(Te,Pe,fe,_e,Ut){var Ye=n?1:r,Lr=Lt(Ut,Te*Ye,Pe*Ye,fe*Ye,_e*Ye,o.color,o.symbolKeepAspect);if(n){var Ft=i.painter.renderOneToVNode(Lr);Ft&&b.children.push(Ft)}else sp(A,Lr)}}}}function B1(t){if(!t||t.length===0)return[["rect"]];if(U(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!U(t[r])){e=!1;break}if(e)return B1([t]);for(var i=[],r=0;r<t.length;++r)U(t[r])?i.push([t[r]]):i.push(t[r]);return i}function z1(t){if(!t||t.length===0)return[[0,0]];if(se(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!se(t[i])){r=!1;break}if(r)return z1([t]);for(var n=[],i=0;i<t.length;++i)if(se(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=z(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function dN(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(se(t)){var e=Math.ceil(t);return[e,e]}var r=z(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function mN(t){return z(t,function(e){return U1(e)})}function U1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var F1=Bo(gN);function gN(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Jl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Jl(n,e)}}})}var yN="6.1.0",_N={zrender:"6.1.0"},xN=1,SN=800,bN=900,TN=920,wN=1e3,CN=2e3,V1=5e3,j1=1e3,AN=1100,hg=2e3,Q1=3e3,DN=4e3,mp=4500,EN=4600,MN=5e3,IN=6e3,J1=7e3,vg={PROCESSOR:{SERIES_FILTER:SN,AXIS_STATISTICS:TN,FILTER:wN,STATISTIC:V1,STATISTICS:V1},VISUAL:{LAYOUT:j1,PROGRESSIVE_LAYOUT:AN,GLOBAL:hg,CHART:Q1,POST_CHART_LAYOUT:EN,COMPONENT:DN,BRUSH:MN,CHART_ITEM:mp,ARIA:IN,DECAL:J1}},nt="__flagInMainProcess",lp="__mainProcessVersion",gt="__pendingUpdate",rg="__needsUpdateStatus",G1=/^[a-zA-Z0-9_]+$/,ig="__connectUpdateStatus",H1=0,ON=1,LN=2;function $1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return tw(this,t,e)}}function ew(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return tw(this,t,e)}}function tw(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),_t.prototype[e].apply(t,r)}var rw=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(_t),iw=rw.prototype;iw.on=ew("on");iw.off=ew("off");var ja,ng,up,zi,fp,ag,og,ms,gs,Y1,W1,sg,X1,cp,Z1,nw,Mr,q1,ys,pp=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new s1)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[lp]=1,0)var u;n.ssr&&Hv(function(h){var v=me(h),d=v.dataIndex;if(d!=null){var m=G();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=Af(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Y(n.useDirtyRect,l),useCoarsePointer:Y(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Wa(J(f.flush,f),17),a._updateTheme(i),a._locale=Eb(n.locale||hc),a._coordSysMgr=new ls;var c=a._api=Z1(a);function p(h,v){return h.__prio-v.__prio}return jn(vp,p),jn(fg,p),a._scheduler=new qm(a,c,fg,vp),a._messageCenter=new rw,a._initEvents(),a.resize=J(a.resize,a),f.animation.on("frame",a._onframe,a),Y1(f,a),W1(f,a),Vn(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(q1(this),this[gt]){var a=this[gt].silent;this[nt]=!0,ys(this);try{ja(this),zi.update.call(this,null,this[gt].updateParams)}catch(l){throw this[nt]=!1,this[gt]=null,l}this._zr.flush(),this[nt]=!1,this[gt]=null,ms.call(this,a),gs.call(this,a)}else if(r.unfinished){var o=xN;do{r.unfinished=!1;var s=at.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),ag(this,i),r.performVisualTasks(i),cp(this,this._model,n,"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,i,n){if(!this[nt]){if(this._disposed){this.id;return}var a,o,s;if(H(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[nt]=!0,ys(this),!this._model||i){var l=new sT(this._api),u=this._theme,f=this._model=new zc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},cg);var c={seriesTransition:s,optionChanged:!0};if(n)this[gt]={silent:a,updateParams:c},this[nt]=!1,this.getZr().wakeUp();else{try{ja(this),zi.update.call(this,null,c)}catch(p){throw this[gt]=null,this[nt]=!1,p}this._ssr||this._zr.flush(),this[gt]=null,this[nt]=!1,ms.call(this,a),gs.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[nt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[gt]&&(a==null&&(a=this[gt].silent),o=this[gt].updateParams,this[gt]=null),this[nt]=!0,ys(this);try{this._updateTheme(r),n.setTheme(this._theme),ja(this),zi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[nt]=!1,s}this[nt]=!1,ms.call(this,a),gs.call(this,a)}}},e.prototype._updateTheme=function(r){U(r)&&(r=aw[r]),r&&(r=$(r),r&&Uc(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||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(dp[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();T(Qa,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=at.createCanvas(),g=Af(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return T(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new ge({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),T(p,function(_){var x=new dt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return fp(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return fp(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return fp(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Of(n,r);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Of(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?c1(s,l,i):p1(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;T(PN,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Za(l,function(d){var m=me(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=P({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;T(ug,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),v1(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&jv(this.getDom(),mg,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Qa[i.id]},e.prototype.resize=function(r){if(!this[nt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[gt]&&(a==null&&(a=this[gt].silent),n=!0,this[gt]=null),this[nt]=!0,ys(this);try{n&&ja(this),zi.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[nt]=!1,o}this[nt]=!1,ms.call(this,a),gs.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(H(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!pg[r]){var n=pg[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=P({},r);return i.type=lg[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(H(i)||(i={silent:!!i}),!!hp[r.type]&&this._model){if(this[nt]){this._pendingActions.push(r);return}var n=i.silent;og.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&oe.browser.weChat&&this._throttledZrFlush(),ms.call(this,n),gs.call(this,n)}},e.prototype.updateLabelLayout=function(){hr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ja=function(c){g1(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),ng(c,!0),ng(c,!1),p.plan()},ng=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(b,w){b!=="series"&&x(w)}):h.eachSeries(x);function x(b){var w=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!w&&m[A];if(!C){var D=Zt(b.type),M=p?et.getClass(D.main,D.sub):ft.getClass(D.sub);C=new M,C.init(h,y),m[A]=C,d.push(C),g.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(C,b,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},up=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){T([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=dx(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=G(),T(Ue(y),function(S){var b=nr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(kd(h))if(S instanceof Tt)h.type===hn&&!h.notBlur&&!S.get(["emphasis","disabled"])&&ES(S,h,c._api);else{var w=Zf(S.mainType,S.componentIndex,h.name,c._api),A=w.focusSelf,C=w.dispatchers;h.type===hn&&A&&!h.notBlur&&Hf(S.mainType,S.componentIndex,c._api),C&&T(C,function(D){h.type===hn?ga(D):ya(D)})}else qf(h)&&S instanceof Tt&&(OS(S,h,c._api),Nd(S),Mr(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},zi={prepareAndUpdate:function(c){ja(this),zi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){y1(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),hr.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),ag(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),sg(this,h,v,c,p),hr.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==Ff){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=G();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),cp(p,h,v,c,{},m),hr.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),ft.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),sg(this,p,this._api,c,{}),hr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),ft.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),hr.trigger("afterupdate",h,this._api))},updateLayout:function(c){zi.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Of(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}fp=r,ag=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},og=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=hp[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Zt(y[0]);this[nt]=!0,ys(this);var S=[c],b=!1;c.batch&&(b=!0,S=z(c.batch,function(N){return N=re(P({},N),c),N.batch=null,N}));var w=[],A,C=[],D=g.nonRefinedEventType,M=qf(c),I=kd(c);if(I&&Rd(this._api),T(S,function(N){var F=g.action(N,v,h._api);if(g.refineEvent?C.push(F):A=F,A=A||P({},N),A.type=D,w.push(A),I){var B=ml(c),V=B.queryOptionMap,X=B.mainTypeSpecified,K=X?V.keys()[0]:"series";up(h,_,N,K),Mr(h)}else M?(up(h,_,N,"series"),Mr(h)):x&&up(h,_,N,x.main,x.sub)}),_!=="none"&&!I&&!M&&!x)try{this[gt]?(ja(this),zi.update.call(this,c),this[gt]=null):zi[_].call(this,c)}catch(N){throw this[nt]=!1,N}if(b?A={type:D,escapeConnect:m,batch:w}:A=w[0],this[nt]=!1,!p){var E=void 0;if(g.refineEvent){var O=g.refineEvent(C,c,v,this._api).eventContent;Be(H(O)),E=re({type:g.refinedEventType},O),E.fromAction=c.type,E.fromActionPayload=c,E.escapeConnect=!0}var R=this._messageCenter;R.trigger(A.type,A),E&&R.trigger(E.type,E)}},ms=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();og.call(this,h,c)}},gs=function(c){!c&&this.trigger("updated")},Y1=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[gt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},W1=function(c,p){c.on("mouseover",function(h){var v=h.target,d=Za(v,Dl);d&&(MS(d,h,p._api),Mr(p))}).on("mouseout",function(h){var v=h.target,d=Za(v,Dl);d&&(IS(d,h,p._api),Mr(p))}).on("click",function(h){var v=h.target,d=Za(v,function(y){return me(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=me(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;jn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}sg=function(c,p,h,v,d){n(p),X1(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive=!1}),cp(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},X1=function(c,p,h,v,d,m){T(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},cp=function(c,p,h,v,d,m){var g=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),hr.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Nd(_)}),g.unfinished=y||g.unfinished,hr.trigger("series:layoutlabels",p,h,d),hr.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),hr.trigger("series:afterupdate",p,h,d)},Mr=function(c){c[rg]=!0,c.getZr().wakeUp()},ys=function(c){c[lp]=(c[lp]+1)%1e6},q1=function(c){c[rg]&&(c.getZr().storage.traverse(function(p){Aa(p)||a(p)}),c[rg]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Tl&&c.states.emphasis?p.push("emphasis"):c.hoverState===bl&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>Y(p.get("hoverLayerThreshold"),Rc.hoverLayerThreshold)&&!oe.node&&!oe.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Nl&&(x.hoverLayer=m?qd:Zd)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=gn(c);p.eachRendered(function(v){return im(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Aa(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Aa(g))return;if(g instanceof ue&&NS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}Z1=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){ga(v,d),Mr(c)},h.prototype.leaveEmphasis=function(v,d){ya(v,d),Mr(c)},h.prototype.enterBlur=function(v){AS(v),Mr(c)},h.prototype.leaveBlur=function(v){Od(v),Mr(c)},h.prototype.enterSelect=function(v){Ld(v),Mr(c)},h.prototype.leaveSelect=function(v){Pd(v),Mr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[lp]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Gf))(c)},nw=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[ig]=v}}T(lg,function(h,v){c._messageCenter.on(v,function(d){if(dp[c.group]&&c[ig]!==H1){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];T(Qa,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,H1),T(g,function(y){y[ig]!==ON&&y.dispatchAction(m)}),p(g,LN)}})})}})(),e})(_t),dg=pp.prototype;dg.on=$1("on");dg.off=$1("off");dg.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var PN=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var hp={},lg={},ug={},fg=[],cg=[],vp=[],aw={},pg={},Qa={},dp={},RN=+new Date-0,NN=+new Date-0,mg="_echarts_instance_";function kN(t,e,r){var i=!(r&&r.ssr);if(i){var n=gg(t);if(n)return n}var a=new pp(t,e,r);return a.id="ec_"+RN++,Qa[a.id]=a,i&&jv(t,mg,a.id),nw(a),hr.trigger("afterinit",a),a}function BN(t){if(k(t)){var e=t;t=null,T(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+NN++,T(e,function(r){r.group=t})}return dp[t]=!0,t}function ow(t){dp[t]=!1}var zN=ow;function UN(t){U(t)?t=Qa[t]:t instanceof pp||(t=gg(t)),t instanceof pp&&!t.isDisposed()&&t.dispose()}function gg(t){return Qa[mx(t,mg)]}function FN(t){return Qa[t]}function yg(t,e){aw[t]=e}function gp(t){ae(cg,t)<0&&cg.push(t)}function yp(t,e){Tg(fg,t,e,CN)}function _g(t){$l("afterinit",t)}function xg(t){$l("afterupdate",t)}function $l(t,e){hr.on(t,e)}function mi(t,e,r){var i,n,a,o,s;W(e)&&(r=e,e=""),H(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;hp[i]||(Be(G1.test(i)&&G1.test(n)),a&&Be(n!==i),hp[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},ug[n]=1,a&&s&&(ug[u]=1),lg[u]=i)}function Sg(t,e){ls.register(t,e)}function VN(t){var e=ls.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function GN(t,e){ep(t,e)}function bg(t,e){Tg(vp,t,e,j1,"layout",!0)}function Ui(t,e){Tg(vp,t,e,Q1,"visual",!0)}var K1=[];function Tg(t,e,r,i,n,a){if((W(e)||H(e))&&(r=e,e=i),!(ae(K1,r)>=0)){K1.push(r);var o=qm.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function _p(t,e){pg[t]=e}function HN(t){Fu({createCanvas:t})}function wg(t,e,r){var i=jm("registerMap");i&&i(t,e,r)}function YN(t){var e=jm("getMap");return e&&e(t)}var Cg=AT;Ui(hg,QT);Ui(mp,JT);Ui(mp,$T);Ui(hg,u1);Ui(mp,f1);Ui(J1,F1);gp(Uc);yp(bN,vT);_p("default",Zm);mi({type:hn,event:hn,update:hn},Me);mi({type:wl,event:wl,update:wl},Me);mi({type:Cl,event:Wf,update:Cl,action:Me,refineEvent:Ag,publishNonRefinedEvent:!0});mi({type:Yf,event:Wf,update:Yf,action:Me,refineEvent:Ag,publishNonRefinedEvent:!0});mi({type:Al,event:Wf,update:Al,action:Me,refineEvent:Ag,publishNonRefinedEvent:!0});function Ag(t,e,r,i){return{eventContent:{selected:LS(r),isFromClick:e.isFromClick||!1}}}yg("default",{});yg("dark",o1);var WN={};function eu(t){return t==null?0:t.length||1}function sw(t){return t}var ZN=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||sw,this._newKeyGetter=n||sw,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=eu(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=eu(u),p=eu(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=eu(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=eu(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),lw=ZN;var qN=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function uw(t,e){var r={},i=r.encode={},n=G(),a=[],o=[],s={};T(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;Dg(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),KN(h.type)&&(a[0]=p),Dg(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Vf.each(function(m,g){var y=Dg(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=z(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new qN(s,e),r}function Dg(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function fw(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function KN(t){return!(t==="ordinal"||t==="time")}var jN=(function(){function t(e){this.otherDims={},e!=null&&P(this,e)}return t})(),_s=jN;var QN=te(),JN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Eg=(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=Mg(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Y(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Vc(this.source),i=!Ig(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=JN[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function xp(t){return t instanceof Eg}function tu(t){for(var e=G(),r=0;r<(t||[]).length;r++){var i=t[r],n=H(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Mg(t){var e=QN(t);return e.dimNameMap||(e.dimNameMap=tu(t.dimensionsDefine))}function Ig(t){return t>30}var ru=H,Cn=z,$N=typeof Int32Array>"u"?Array:Int32Array,e2="e\0\0",cw=-1,t2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],r2=["_approximateExtent"],pw,Sp,iu,nu,Og,au,Lg,i2=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;xp(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=U(c)?new _s({name:c}):c instanceof _s?c:new _s(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=G();T(o,function(m){d.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(se(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof Xl&&(a=e),!a){var o=this.dimensions,s=cs(e)||je(e)?new Hc(e,o.length):e;a=new Xl;var l=Cn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=uw(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&Lg(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ar&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===st;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&fx(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=nr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=nr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Lg(this,f);pw(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){ru(e)?P(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=iu(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Sp(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return k(e)?n.getValues(Cn(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?cw:n},t.prototype.each=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]);var n=i||this,a=Cn(nu(e),this._getStoreDimIndex,this);this._store.each(a,n?J(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]);var n=i||this,a=Cn(nu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?J(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=ie(e),a=[];return T(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";W(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=Cn(nu(e),this._getStoreDimIndex,this),s=au(this);return s._store=this._store.map(o,a?J(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=Cn(nu(e),this._getStoreDimIndex,this);this._store.modify(s,o?J(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=au(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=au(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=au(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Ce(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new lw(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Sp(e,i)},function(i){return Sp(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ru(e)?P(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():ru(a)&&(a=P({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,ru(r)?P(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ru(e)?P(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;vS(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){T(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Cn(this.dimensions,this._getDimInfo,this),this.hostModel)),Og(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];W(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Hs(arguments)))})},t.internalField=(function(){pw=function(e){var r=e._invertedIndicesMap;T(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new $N(o.categories.length);for(var l=0;l<i.length;l++)i[l]=cw;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},iu=function(e,r,i){return nr(e._getCategory(r,i),null)},Sp=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=iu(e,e._idDimIdx,r)),i==null&&(i=e2+r),i},nu=function(e){return k(e)||(e=e!=null?[e]:[]),e},au=function(e){var r=new t(e._schema?e._schema:Cn(e.dimensions,e._getDimInfo,e),e.hostModel);return Og(r,e),r},Og=function(e,r){T(t2.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,T(r2,function(i){e[i]=$(r[i])}),e._calculationInfo=P({},r._calculationInfo)},Lg=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=iu(e,a,r)),l==null&&o!=null&&(n[r]=l=iu(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),xs=i2;var Hg={};Vt(Hg,{createDimensions:()=>hw,createList:()=>W2,createScale:()=>Z2,createSymbol:()=>Lt,createTextStyle:()=>K2,dataStack:()=>X2,enableHoverEmphasis:()=>vn,getECData:()=>me,getLayoutRect:()=>Qt,mixinAxisModelCommonMethods:()=>q2});function hw(t,e){return Ss(t,e).dimensions}function Ss(t,e){cs(t)||(t=ps(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=G(),a=[],o=n2(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ig(o),l=i===t.dimensionsDefine,u=l?Mg(t):tu(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=G(f),p=new Um(o),h=0;h<p.length;h++)p[h]=-1;function v(C){var D=p[C];if(D<0){var M=i[C],I=H(M)?M:{name:M},E=new _s,O=I.name;O!=null&&u.get(O)!=null&&(E.name=E.displayName=O),I.type!=null&&(E.type=I.type),I.displayName!=null&&(E.displayName=I.displayName);var R=a.length;return p[C]=R,E.storeDimIndex=C,a.push(E),E}return a[D]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,D){var M=Ue(C).slice();if(M.length===1&&!U(M[0])&&M[0]<0){c.set(D,!1);return}var I=c.set(D,[]);T(M,function(E,O){var R=U(E)?u.get(E):E;R!=null&&R<o&&(I[O]=R,m(v(R),D,O))})});var d=0;T(r,function(C){var D,M,I,E;if(U(C))D=C,E={};else{E=C,D=E.name;var O=E.ordinalMeta;E.ordinalMeta=null,E=P({},E),E.ordinalMeta=O,M=E.dimsDef,I=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var R=c.get(D);if(R!==!1){if(R=Ue(R),!R.length)for(var N=0;N<(M&&M.length||1);N++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&R.push(d++)}T(R,function(F,B){var V=v(F);if(l&&E.type!=null&&(V.type=E.type),m(re(V,E),D,B),V.name==null&&M){var X=M[B];!H(X)&&(X={name:X}),V.name=V.displayName=X.name,V.defaultTooltip=X.defaultTooltip}I&&re(V.otherDims,I)})}});function m(C,D,M){Vf.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,n.set(D,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){S(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var w=v(b),A=w.coordDim;A==null&&(w.coordDim=a2(x,n,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(kc(t,b)===ut.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return ko(a,function(C){return C.name},function(C,D){D>0&&(C.name=C.name+(D-1))}),new Eg({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function n2(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return T(e,function(a){var o;H(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function a2(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var o2=(function(){function t(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return t})();function vw(t){var e=t.get("coordinateSystem"),r=new o2(e),i=s2[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var s2={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",We).models[0],a=t.getReferringComponents("yAxis",We).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),bs(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),bs(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",We).models[0];e.coordSysDims=["single"],r.set("single",n),bs(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",We).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),bs(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),bs(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),bs(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",We).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function bs(t){return t.get("type")==="category"}function bp(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;l2(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(T(a,function(x,S){U(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),T(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;T(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function l2(t){return!xp(t.schema)}function Xr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Tp(t,e){return Xr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function u2(t,e){var r=t.get("coordinateSystem"),i=ls.get(r),n;return e&&e.coordSysDims&&(n=z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=fw(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function f2(t,e,r){var i,n;return r&&T(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function c2(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=ps(t)):(n=i.getSource(),a=n.sourceFormat===st);var o=vw(e),s=u2(e,o),l=r.useEncodeDefaulter,u=W(l)?l:l?be(Kb,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Ss(n,f),p=f2(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=bp(e,{schema:c,store:h}),d=new xs(c,e);d.setCalculationInfo(v);var m=p!=null&&p2(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function p2(t){if(t.sourceFormat===st){var e=h2(t.data||[]);return!k(Ii(e))}}function h2(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var An=c2;var dw=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();sn(dw);var Bt=dw;var v2=0,d2=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++v2,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&z(i,m2);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!U(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},t})();function m2(t){return H(t)&&t.value!=null?t.value:t+""}var ou=d2;var Jt=0,Ts=1,g2={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},gw=ie(g2),ws=2,yw=3;function Cs(t,e,r){var i;t=t||{};var n=Ge();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(T(gw,function(o){a[o]&&(t[o]=J(a[o],a))}),i=a)}return i==null&&y2(t,r),{brk:i,mapper:t}}function wp(t,e){T(gw,function(r){t[r]=e[r]})}function Cp(t,e){t.freeze=Me}function Fi(t){return t.getExtentUnsafe(Jt,ws)}function Ja(t,e){return t.getExtentUnsafe(Ts,e)||t.getExtentUnsafe(Jt,e)}function _w(t){var e=Ja(t,yw);return e[1]-e[0]}function As(t){var e=t.getExtentUnsafe(Jt,yw);return e[1]-e[0]}function y2(t,e){var r=t||{},i=[];return r._extents=i,i[Jt]=e?e.slice():St(),P(r,_2),r}var _2={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Ts]||this._extents[Jt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Ts]||this._extents[Jt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Ja(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Jt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){mw(this._extents,Jt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Jt].slice()),mw(i,t,e,r)},freeze:function(){}};function mw(t,e,r,i){Oi(r,i)&&(t[e][0]=r,t[e][1]=i)}function Ap(t){return Ds(t)||yi(t)}function Ds(t){return t.type==="interval"}function gi(t){return t.type==="time"}function yi(t){return t.type==="log"}function Ze(t){return t.type==="ordinal"}function xw(t){var e=Oo(t),r=nn(10,e),i=Wt(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function Zr(t){return ir(t)+2}function su(t,e){return rn(t)/rn(e)}function Dp(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return nn(e,t)}function Ep(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ie(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Vr(i[0])||!Vr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function Sw(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function lu(t,e){return t=t||e,Wt(he(t,1))}function Mp(t,e,r){var i=Fi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var bw=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,wp(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new ou({})),k(n)&&(n=new ou({categories:z(n,function(o){return H(o)?o.value:o})})),i._ordinalMeta=n;var a=Cs(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Cp(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:U(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Wt(r),r},e.prototype.getTicks=function(){var r=[];return Mp(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Re(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Fi(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(Wt(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(Bt);Bt.registerClass(bw);var Tw=bw;function Es(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Zr(h);f<e-1;){var d=ve(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Ge();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var ww=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=dc(i,r),a=Cs(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return $(this._cfg)},e.prototype.setConfig=function(r){var i=Fi(this);this._cfg=r=$(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Zr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Fi(this),o=i.niceExtent,s=i.intervalPrecision,l=Ge(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return Wt((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=Re(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=ve(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=ve(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Es(this,r,Pa(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=ir(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return zl(a)},e.type="interval",e})(Bt);Bt.registerClass(ww);var $a=ww;var x2=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},Aw=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=dc(i,r),a=Cs(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return Ni(r.value,pm[Rb(is(this._minLevelUnit))]||pm.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return Nb(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Fi(this),a=Ge(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ge().addBreaksToTicks(l,o.breaks,n),l;l=D2(this._minLevelUnit,this._approxInterval,u,n,As(this),o);var f=jt.length-1,c=0;return T(l,function(p){p.time&&(f=Math.min(f,ae(jt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ge().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Ge().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ae(jt,Na(p.vmin,u)),ae(jt,Na(p.vmax,u))),v=0,d=0;d<jt.length;d++)if(!Dw(jt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:jt[g],upperTimeUnit:jt[m]}}),l},e.prototype.getMinorTicks=function(r){return Es(this,r,Pa(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return se(r)?Math.round(r):+Pt(r)},e.type="time",e})(Bt),Ip=[["second",yc],["minute",_c],["hour",rs],["quarter-day",rs*6],["half-day",rs*12],["day",cr*1.2],["half-week",cr*3.5],["week",cr*7],["month",cr*31],["quarter",cr*95],["half-year",cm/2],["year",cm]];function Dw(t,e,r,i){return ns(new Date(e),t,i).getTime()===ns(new Date(r),t,i).getTime()}function S2(t,e){return t/=cr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function b2(t){var e=30*cr;return t/=e,t>6?6:t>3?3:t>2?2:1}function T2(t){return t/=rs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Cw(t,e){return t/=e?_c:yc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function w2(t){return he(Mi(t,!0),1)}function C2(t,e,r){var i=Math.max(0,ae(jt,e)-1);return ns(new Date(t),jt[i],r).getTime()}function A2(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function D2(t,e,r,i,n,a){var o=3e3,s=Ob,l=0;function u(N,F,B,V,X,K,Q){for(var ee=A2(X,N),j=F,ce=new Date(j);j<B&&j<=i[1]&&(Q.push({value:j}),!(l++>o));)if(ce[X](ce[V]()+N),j=ce.getTime(),a){var ye=a.calcNiceTickMultiple(j,ee);ye>0&&(ce[X](ce[V]()+ye*N),j=ce.getTime())}Q.push({value:j,notAdd:j>i[1]})}function f(N,F,B){var V=[],X=!F.length;if(!Dw(is(N),i[0],i[1],r)){X&&(F=[{value:C2(i[0],N,r)},{value:i[1]}]);for(var K=0;K<F.length-1;K++){var Q=F[K].value,ee=F[K+1].value;if(Q!==ee){var j=void 0,ce=void 0,ye=void 0,He=!1;switch(N){case"year":j=Math.max(1,Math.round(e/cr/365)),ce=hm(r),ye=kb(r);break;case"half-year":case"quarter":case"month":j=b2(e),ce=xc(r),ye=vm(r);break;case"week":case"half-week":case"day":j=S2(e,31),ce=Sc(r),ye=dm(r),He=!0;break;case"half-day":case"quarter-day":case"hour":j=T2(e),ce=bc(r),ye=mm(r);break;case"minute":j=Cw(e,!0),ce=Tc(r),ye=gm(r);break;case"second":j=Cw(e,!1),ce=wc(r),ye=ym(r);break;case"millisecond":j=w2(e),ce=Cc(r),ye=_m(r);break}ee>=i[0]&&Q<=i[1]&&u(j,Q,ee,ce,ye,He,V),N==="year"&&B.length>1&&K===0&&B.unshift({value:B[0].value-j})}}for(var K=0;K<V.length;K++)B.push(V[K])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=is(s[d]);if(Pb(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?is(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(N,F){return N.value-F.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var b=Ee(z(c,function(N){return Ee(N,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(N){return N.length>0}),w=b.length-1,A=[],d=0;d<b.length;++d)for(var C=b[d],D=0;D<C.length;++D){var M=Na(C[D].value,r);A.push({value:C[D].value,time:{level:w-d,upperTimeUnit:M,lowerTimeUnit:M}})}ko(A,xx,null),A.sort(function(N,F){return N.value-F.value});var I=A[0],E=A[A.length-1],O=Na(i[0],r),R=Na(i[1],r);return(!I||I.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!E||E.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),A}var Ew=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=cr,r[1]+=cr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-cr}t.setExtent(r[0],r[1]);var n=lu(e.splitNumber,10),a=As(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Ip.length,u=Math.min(x2(Ip,a,0,l),l-1),f=Ip[u][1],c=Ip[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Bt.registerClass(Aw);var Mw=Aw;var Op=0,Lp=1,E2=2,Pw=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=$a.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Op]=n[Lp]=a[Op]=a[Lp]=NaN,wp(i,e.mapperMethods);var s=Ge(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},E2,u),i.powStub=new $a({breakParsed:u.original}),i.intervalStub=new $a({breakParsed:u.transformed}),Cp(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ge(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return z(o.getTicks(r||{}),function(f){var c=f.value,p=Dp(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Pa(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Es(this,r,Pa(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(su(r,this.base))},scale:function(r){return Dp(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=su(r,this.base),i&&i.depth===ws?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Iw.depth=n,Ow.lookup=this._lookup,Dp(n===ws?r:this.intervalStub.transformOut(r,Iw),this.base,Ow)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Jt,r,i)},setExtent2:function(r,i,n){if(!(!Oi(i,n)||i<=0||n<=0)){var a=Lw,o=Lw;if(r===Jt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Op]=i,a[Lp]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Op]=su(i,l),o[Lp]=su(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return Oi(i[0],i[1])&&tt(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(Bt);Bt.registerClass(Pw);var Iw={},Ow={},Lw=[],Rw=Pw;var Pp={value:1,category:1,time:1,log:1};var Nw=te();function Np(t){var e=t.get("type");return(e==null||!Oe(Pp,e)&&!Bt.getClass(e))&&(e="value"),e}function kp(t,e,r){var i=Ge(),n;switch(i&&(n=Pg(t,e,r)),e){case"category":return new Tw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:St()});case"time":return new Mw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Rw({logBase:t.get("logBase"),breakOption:n});case"value":return new $a({breakOption:n});default:return new(Bt.getClass(e)||$a)({})}}function kw(t,e,r){var i=r?Ja(t,null):t.getExtentUnsafe(Jt,null),n=i[0],a=i[1];return Oi(n,a)?n===e||a===e?I2:n<e&&a>e?M2:Rp:Rp}var M2=1,I2=2,Rp=3;function Bw(t){Nw(t).noOnMyZero=!0}function zw(t){return Nw(t).noOnMyZero}function uu(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=Lb(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(U(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(W(e)){if(t.type==="category")return function(n,a){return e(Ms(t,n),n.value-t.scale.getExtent()[0],null)};var i=Ge();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Ms(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Ms(t,e){var r=t.scale;return Ze(r)?r.getLabel(e):e.value}function Bp(t){var e=t.get("interval");return e??"auto"}function Uw(t){return t.type==="category"&&Bp(t.getLabelModel())===0}function Fw(t,e){var r={};return T(t.mapDimensionsAll(e),function(i){r[Tp(t,i)]=!0}),ie(r)}function Dn(t){return t==="middle"||t==="center"}function eo(t){return t.getShallow("show")}function Pg(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Ge())return;if(!r||!O2(e)){if(0)var n;return}return i}}function O2(t){return t!=="category"}function zp(t,e,r,i,n,a){var o=yi(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:ws},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=Sw(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Vi(t,e){return Ze(t)?t.getRawOrdinalNumber(e.value):e.value}function Up(t,e){return Ze(t)&&!!e.get("boundaryGap")}var Fp=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var L2=No(),Vp="|&",Is=te(),Gp=-2,Vw=-1,P2=te();function Gw(t,e){var r=t.model,i=Is(qa(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function Hw(t,e){return Xw(Gw(t,e))}function Yw(t,e){var r=[];return Ww(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(Xw(i))}),r}function Ww(t,e){var r=Is(qa(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function Xw(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function Zw(t,e){var r=t.model.ecModel,i=Is(qa(r)).axSer;i&&Hp(r,i.get(t.model.uid),e)}function Bg(t,e,r){var i=Gw(t,e);i&&Hp(t.model.ecModel,i.sers,r)}function Hp(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function qw(t,e,r){var i=Is(qa(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function zg(t,e){var r=t.model,i=Is(qa(r.ecModel)).keys;i&&T(i.get(r.uid),function(n){if(0)var a;e(n)})}function R2(t){var e=P2(rp(t)),r=e.keyed||(e.keyed=G());Ww(t,function(i,n,a){var o=r.get(n)||r.set(n,G()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&jw.liPosMinGap(t,i,s)})}function Kw(t,e){jw[t]=e}var jw={};function Ug(t,e,r){if(t){var i=e.ecModel,n=Is(qa(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=G()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=kg.get(Ng(c,p,r))||kg.get(Ng(c,p,null));if(h){var v=n.keyed||(n.keyed=G()),d=n.keys||(n.keys=G()),m=h.key,g=v.get(m)||v.set(m,G()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Ng(t,e,r){return t+Vp+Y(e,!0)+Vp+(r||"")}function Qw(t,e){var r=Ng(e.seriesType,e.baseAxis,e.coordSysType);kg.set(r,e),L2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:R2})})}var kg=G();var N2=te(),eC=1,tC=2,k2=3,rC=(function(){function t(e,r,i,n,a){var o=Ze(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(Ds(e)||yi(e)||gi(e))&&(Jv(f,fu(e,r.get("dataMin",!0))),$v(f,fu(e,r.get("dataMax",!0)))),_x(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]=fu(e,W(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=fu(e,W(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=B2(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Vr(c[0])&&(c[0]=NaN),!Vr(c[1])&&(c[1]=NaN);var g=l||Si(c[0])||Si(c[1])||o&&!s,y=Ds(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=fu(e,r.get("startValue",!0)),b=S!=null;!tt(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),tt(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};Jw(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),Jw(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Jw(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Ro(e))}function fu(t,e){return e==null?null:Si(e)?NaN:t.parse(e)}function B2(t,e){var r;if(Ze(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=k(i)?i:[i,i]}return[$w(r[0]),$w(r[1])]}function $w(t){return zr(typeof t=="boolean"?0:t,1)||0}function iC(t){var e=N2(t.scale);return e.extent||(e.extent=St()),e}function nC(t,e){iC(t).dimIdxInCoord=e.get(t.dim)}function Yp(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||z2(r,t,n,i,e)}function z2(t,e,r,i,n){var a=iC(e),o=a.extent,s=!1;Zw(e,function(f){if(f.boxCoordinateSystem){var c=Ic(f).coord,p=a.dimIdxInCoord;if(p>=0){if(k(c)){var h=c[p];h!=null&&!k(h)&&gl(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;T(Fw(v,r),function(m){yx(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=F2(t,e,i),u=new rC(t,i,o,s,l);aC(t,u,n),a.extent=null}function U2(t,e){var r=t.scale;aC(r,new rC(r,t.model,e,!1,!1),k2)}function aC(t,e,r){t.rawExtentInfo=e,e.from=r}function oC(t,e){Fg.set(t,e)}var Fg=G();function Wp(t,e,r,i,n){t.rawExtentInfo||U2({scale:t,model:e},n||St());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function F2(t,e,r){var i=Up(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return zg(e,function(o){a=!!Fg.get(o)||a}),a}function sC(t,e,r,i){if(r.ctnShp){var n;if(zg(t,function(s){var l=Fg.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Jv(n,u[0]),$v(n,u[1]),Bw(t))}}),!!n){var a=e.getExtent();if(Ze(e))t.onBand||e.setExtent2(Ts,Re(a[0],a[0]+n[0]),he(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Re(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=he(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Ts,o[0],o[1])}}}}function lC(t,e){var r=yi(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Ep(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?G2(i,e):V2(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Zr(c)),n[0]||(s[0]=ve(Xt(s[0]/f)*f,u)),n[1]||(s[1]=ve(ri(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),zp(t,n,o,s,a,l)}function V2(t,e){var r=lu(e.splitNumber,5),i=As(t),n=e.minInterval,a=e.maxInterval,o=Mi(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Zr(o),l=t.getExtent(),u=[ve(ri(l[0]/o)*o,s),ve(Xt(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function G2(t,e){var r=lu(e.splitNumber,10),i=t.getExtent(),n=As(t),a=he(Io(n),1),o=r/n*a;o<=.5&&(a*=10);var s=Zr(a),l=[ve(ri(i[0]/a)*a,s),ve(Xt(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Vg(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;Gg(e,r,i,n,null)}function Gg(t,e,r,i,n){var a=Wp(t,e,i,r,n),o=Ds(t)||gi(t);H2(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&sC(r,t,a,i)}function H2(t,e){Y2[t.type](t,e)}var Y2={interval:lC,log:lC,time:Ew,ordinal:Me};function W2(t){return An(null,t)}var X2={isDimensionStacked:Xr,enableDataStack:bp,getStackedDimension:Tp};function Z2(t,e){var r=e;e instanceof Ce||(r=new Ce(e));var i=Np(r),n=kp(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),Gg(n,r,null,null,t),n}function q2(t){ct(t,Fp)}function K2(t,e){return e=e||{},fr(t,null,null,e.state!=="normal")}var uC=[],j2={registerPreprocessor:gp,registerProcessor:yp,registerPostInit:_g,registerPostUpdate:xg,registerUpdateLifecycle:$l,registerAction:mi,registerCoordinateSystem:Sg,registerLayout:bg,registerVisual:Ui,registerTransform:Cg,registerLoading:_p,registerMap:wg,registerImpl:m1,PRIORITY:vg,ComponentModel:Se,ComponentView:et,SeriesModel:Tt,ChartView:ft,registerComponentModel:function(t){Se.registerClass(t)},registerComponentView:function(t){et.registerClass(t)},registerSeriesModel:function(t){Tt.registerClass(t)},registerChartView:function(t){ft.registerClass(t)},registerCustomSeries:function(t,e){ep(t,e)},registerSubTypeDefaulter:function(t,e){Se.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Vv(t,e)}};function yt(t){if(k(t)){T(t,function(e){yt(e)});return}ae(uC,t)>=0||(uC.push(t),W(t)&&(t={install:t}),t.install(j2))}var Q2=1e-8;function fC(t,e){return Math.abs(t-e)<Q2}function Yg(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=Cr(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!fC(n[0],s[0])||!fC(n[1],s[1]))&&(i+=Cr(n[0],n[1],s[0],s[1],e,r)),i!==0}var $2=[];function Wg(t,e){for(var r=0;r<t.length;r++)Qe(t[r],t[r],e)}function cC(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(dr(e,e,a),mr(r,r,a))}}function ek(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var pC=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var Xg=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var Zg=(function(){function t(e){this.type="linestring",this.points=e}return t})();var hC=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return ek(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?cC(s.exterior,n,a,r):T(s.points,function(l){cC(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new ne(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Yg(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Yg(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new ne(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(Wg(p.exterior,u),T(p.interiors,function(h){Wg(h,u)})):T(p.points,function(h){Wg(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(pC);var y6=(function(t){L(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=yr($2),o=r;o&&!o.isGeoSVGGraphicRoot;)Nr(a,o.getLocalTransform(),a),o=o.parent;return tr(a,a),Qe(n,n,a),n},e})(pC);function tk(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return T(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=vC(s,o,r);break;case"Polygon":qg(s,o,r);break;case"MultiLineString":qg(s,o,r);break;case"MultiPolygon":T(s,function(l,u){return qg(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function qg(t,e,r){for(var i=0;i<t.length;i++)t[i]=vC(t[i],e[i],r)}function vC(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function Xp(t,e){return t=tk(t),z(Ee(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Xg(o[0],o.slice(1)));break;case"MultiPolygon":T(n.coordinates,function(l){l[0]&&a.push(new Xg(l[0],l.slice(1)))});break;case"LineString":a.push(new Zg([n.coordinates]));break;case"MultiLineString":a.push(new Zg(n.coordinates))}var s=new hC(i[e||"name"],a,i.cp);return s.properties=i,s})}var Kg={};Vt(Kg,{MAX_SAFE_INTEGER:()=>fl,asc:()=>Dt,getPercentWithPrecision:()=>rx,getPixelPrecision:()=>tx,getPrecision:()=>ir,getPrecisionSafe:()=>Yv,isNumeric:()=>pl,isRadianAroundZero:()=>oa,linearMap:()=>Le,nice:()=>Mi,numericToNumber:()=>Sr,parseDate:()=>Pt,parsePercent:()=>we,quantile:()=>ix,quantity:()=>Io,quantityExponent:()=>Oo,reformIntervals:()=>nx,remRadian:()=>cl,round:()=>ex});var jg={};Vt(jg,{format:()=>Ni,parse:()=>Pt,roundTime:()=>ns});var Qg={};Vt(Qg,{Arc:()=>Ta,BezierCurve:()=>Pl,BoundingRect:()=>ne,Circle:()=>xa,CompoundPath:()=>Xo,Ellipse:()=>Ml,Group:()=>xe,Image:()=>dt,IncrementalDisplayable:()=>ac,Line:()=>lr,LinearGradient:()=>Zo,Polygon:()=>ba,Polyline:()=>Hr,RadialGradient:()=>ec,Rect:()=>ge,Ring:()=>Ll,Sector:()=>sr,Text:()=>Ae,clipPointsByRect:()=>tm,clipRectByRect:()=>rm,createIcon:()=>Ma,extendPath:()=>jd,extendShape:()=>Kd,getShapeClass:()=>Qd,getTransform:()=>Bl,initProps:()=>it,makeImage:()=>kl,makePath:()=>jo,mergePath:()=>Jd,registerShape:()=>ur,resizePath:()=>sc,updateProps:()=>ke});var Jg={};Vt(Jg,{addCommas:()=>zl,capitalFirst:()=>Ub,encodeHTML:()=>Je,formatTime:()=>zb,formatTpl:()=>os,getTextRect:()=>xm,getTooltipMarker:()=>Dc,normalizeCssArray:()=>di,toCamelCase:()=>as,truncateText:()=>nd});var $g={};Vt($g,{bind:()=>J,clone:()=>$,curry:()=>be,defaults:()=>re,each:()=>T,extend:()=>P,filter:()=>Ee,indexOf:()=>ae,inherits:()=>Gs,isArray:()=>k,isFunction:()=>W,isObject:()=>H,isString:()=>U,map:()=>z,merge:()=>de,reduce:()=>Ct});var rk=te(),cu=te(),$t={estimate:1,determine:2};function Os(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function dC(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:z(gC(r,i),function(n,a){return{formattedLabel:uu(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?ik(t,e):ak(t)}function mC(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:gC(n,i)}:t.type==="category"?nk(t,e):{ticks:i.getTicks(r)}}function gC(t,e){var r=e.getExtent(),i=[];return T(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),ko(i,Sx,null),Dt(i),z(i,function(n){return{value:n}})}function ik(t,e){var r=t.getLabelModel(),i=yC(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function yC(t,e,r){var i=sk(t),n=Bp(e),a=r.kind===$t.estimate;if(!a){var o=xC(i,n);if(o)return o}var s,l;W(n)?s=Zp(t,n,!1):(l=n==="auto"?lk(t,r):n,s=Zp(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return ey(i,n,u),!0}):ey(i,n,u),u}function nk(t,e){var r=ok(t),i=Bp(e),n=xC(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),W(i))a=Zp(t,i,!0);else if(i==="auto"){var s=yC(t,t.getLabelModel(),Os($t.determine));o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tick})}else o=i,a=Zp(t,o,!0);return ey(r,i,{ticks:a,tickCategoryInterval:o})}function ak(t){var e=t.scale.getTicks(),r=uu(t);return{labels:z(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var ok=_C("axisTick"),sk=_C("axisLabel");function _C(t){return function(r){return cu(r)[t]||(cu(r)[t]={list:[]})}}function xC(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function ey(t,e,r){return t.list.push({key:e,value:r}),r}function lk(t,e){if(e.kind===$t.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return cu(t).autoInterval=r,!0}),r}var i=cu(t).autoInterval;return i??(cu(t).autoInterval=t.calculateCategoryInterval(e))}function SC(t,e){var r=e.kind,i=fk(t),n=uu(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Sf(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===$t.estimate)return e.out.noPxChangeTryDetermine.push(J(uk,null,t,b,l)),b;var w=bC(t,b,l);return w??b}function uk(t,e,r){return bC(t,e,r)==null}function bC(t,e,r){var i=rk(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function fk(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 Zp(t,e,r){var i=uu(t),n=t.scale,a=[],o=W(e);return Mp(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var ck=.8;function qr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=_w(i);tt(o)||(o=NaN);var s=t.getExtent(),l=Ie(s[1]-s[0]);return Ze(i)?pk(r,t,o,l):n?hk(r,t,o,l,n):a==null,a!=null&&(r.w=tt(r.w)?he(a,r.w):a),r}function pk(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function hk(t,e,r,i,n){var a=!1,o=-1/0;T(n.key?[Hw(e,n.key)]:Yw(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Gp&&(a=!0))}),tt(r)&&r>0&&tt(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*ck,t.w2=t.w*r/i)}var TC=[0,1],vk=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),Le(e,TC,wC(this),r)},t.prototype.coordToData=function(e,r){var i=Le(e,wC(this),TC,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=mC(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=z(i.ticks,function(s){return{coord:this.dataToCoord(Vi(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=dk(this,n,a);return z(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Ze(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=z(i,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Os($t.determine),dC(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 qr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Os($t.determine),SC(this,e)},t})();function wC(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function dk(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=qr(t).w;if(!n)return!1;T(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var qp=vk;function mk(t){var e=Se.extend(t);return Se.registerClass(e),e}function gk(t){var e=et.extend(t);return et.registerClass(e),e}function yk(t){var e=Tt.extend(t);return Tt.registerClass(e),e}function _k(t){var e=ft.extend(t);return ft.registerClass(e),e}var pK=Math.PI*2,hK=bt.CMD;function CC(t,e,r,i,n,a,o,s){var l=n-t,u=a-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var d=o[0]=t+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var En=new le,qe=new le,wt=new le,Mn=new le,_i=new le;var Kp=[],zt=new le;function AC(t,e){if(e<=180&&e>0){e=e/180*Math.PI,En.fromArray(t[0]),qe.fromArray(t[1]),wt.fromArray(t[2]),le.sub(Mn,En,qe),le.sub(_i,wt,qe);var r=Mn.len(),i=_i.len();if(!(r<.001||i<.001)){Mn.scale(1/r),_i.scale(1/i);var n=Mn.dot(_i),a=Math.cos(e);if(a<n){var o=CC(qe.x,qe.y,wt.x,wt.y,En.x,En.y,Kp,!1);zt.fromArray(Kp),zt.scaleAndAdd(_i,o/Math.tan(Math.PI-e));var s=wt.x!==qe.x?(zt.x-qe.x)/(wt.x-qe.x):(zt.y-qe.y)/(wt.y-qe.y);if(isNaN(s))return;s<0?le.copy(zt,qe):s>1&&le.copy(zt,wt),zt.toArray(t[1])}}}}function DC(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,En.fromArray(t[0]),qe.fromArray(t[1]),wt.fromArray(t[2]),le.sub(Mn,qe,En),le.sub(_i,wt,qe);var i=Mn.len(),n=_i.len();if(!(i<.001||n<.001)){Mn.scale(1/i),_i.scale(1/n);var a=Mn.dot(e),o=Math.cos(r);if(a<o){var s=CC(qe.x,qe.y,wt.x,wt.y,En.x,En.y,Kp,!1);zt.fromArray(Kp);var l=Math.PI/2,u=Math.acos(_i.dot(e)),f=l+u-r;if(f>=l)le.copy(zt,wt);else{zt.scaleAndAdd(_i,s/Math.tan(Math.PI/2-f));var c=wt.x!==qe.x?(zt.x-qe.x)/(wt.x-qe.x):(zt.y-qe.y)/(wt.y-qe.y);if(isNaN(c))return;c<0?le.copy(zt,qe):c>1&&le.copy(zt,wt)}zt.toArray(t[1])}}}}function ty(t,e,r,i){var n=r==="normal",a=n?t:t.ensureState(r);a.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?t.useStyle(s):a.style=s}function xk(t,e){var r=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=ho(i[0],i[1]),a=ho(i[1],i[2]);if(!n||!a){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=Zs([],i[1],i[0],o/n),l=Zs([],i[1],i[2],o/a),u=Zs([],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],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function EC(t,e,r){var i=t.getTextGuideLine(),n=t.getTextContent();if(!n){i&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<Ho.length;l++){var u=Ho[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:Y(n.states[u]&&n.states[u].ignore,s);if(h||!Y(p,o)){var v=c?i:i&&i.states[u];v&&(v.ignore=!0),i&&ty(i,!0,u,f);continue}i||(i=new Hr,t.setTextGuideLine(i),!c&&(s||!o)&&ty(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),ty(i,!1,u,f)}}if(i){re(i.style,r),i.style.fill=null;var d=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=xk}}function MC(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},i=0;i<Nt.length;i++){var n=Nt[i];r[n]=t.getModel([n,e])}return r}var IC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Sk=1,jp=2,LC=Sk|jp;function pu(t,e,r){r=r||LC,e?t.dirty|=r:t.dirty&=~r}function PC(t,e){return e=e||LC,t.dirty==null||!!(t.dirty&e)}function Kr(t){if(t)return PC(t)&&iy(t,t.label,t),t}function iy(t,e,r){var i=e.getComputedTransform();t.transform=uc(t.transform,i);var n=t.localRect=$o(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Oa.textMargin);for(var c=0;c<4;c++)ry[c]=f===Oa.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Oa.textMargin&&Qo(n,ry,!1,!1);var p=t.rect=$o(t.rect,n);return i&&p.applyTransform(i),f===Oa.minMargin&&Qo(p,ry,!1,!1),t.axisAligned=lc(i),(t.label=t.label||{}).ignore=e.ignore,pu(t,!1),pu(t,!0,jp),t}var ry=[0,0,0,0];function RC(t,e,r){return t.transform=uc(t.transform,r),t.localRect=$o(t.localRect,e),t.rect=$o(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=lc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function NC(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function ny(t,e){for(var r=0;r<IC.length;r++){var i=IC[r];t[i]==null&&(t[i]=e[i])}return Kr(t)}function OC(t){var e=t.obb;return(!e||PC(t,jp))&&(t.obb=e=e||new nc,e.fromBoundingRect(t.localRect,t.transform),pu(t,!1,jp)),e}function kC(t,e,r,i,n){var a=t.length,o=pi[e],s=mn[e];if(a<2)return!1;t.sort(function(C,D){return C.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=t[p],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0);var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}c>0&&n&&b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;x(),y<0&&w(-y,.8),_<0&&w(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-r,_=i-g.rect[o]-g.rect[s]}function S(C,D,M){if(C<0){var I=Math.min(D,-C);if(I>0){b(I*M,0,a);var E=I+C;E<0&&w(-E*M,1)}else w(-C*M,1)}}function b(C,D,M){C!==0&&(f=!0);for(var I=D;I<M;I++){var E=t[I],O=E.rect;O[o]+=C,E.label[o]+=C}}function w(C,D){for(var M=[],I=0,E=1;E<a;E++){var O=t[E-1].rect,R=Math.max(t[E].rect[o]-O[o]-O[s],0);M.push(R),I+=R}if(I){var N=Math.min(Math.abs(C)/I,D);if(C>0)for(var E=0;E<a-1;E++){var F=M[E]*N;b(F,0,E+1)}else for(var E=a-1;E>0;E--){var F=M[E-1]*N;b(-F,E,a)}}}function A(C){var D=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(a-1)),I=0;I<a-1;I++)if(D>0?b(M,0,I+1):b(-M,a-I-1,a),C-=M,C<=0)return}return f}function BC(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Kr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Qp(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Qp(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:OC(t).intersect(OC(e),r,i)}var bk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new xe,n=Lt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Lt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=q.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Tt),zC=bk;function Ls(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Bi(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Bi(t,e,r[o]));return a.join(" ")}}function Jp(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!k(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var Tk=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=Lt(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=wk,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(){ga(this.childAt(0))},e.prototype.downplay=function(){ya(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ke(h,v,s,i),Ko(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,it(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=vi(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=ip(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),w=b.fill;if(s instanceof dt){var A=s.style;s.useStyle(P({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(P({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(i,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;hi(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):Ls(r,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;E.scaleX=this._sizeX*O,E.scaleY=this._sizeY*O,this.setSymbolScale(1),Ri(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=me(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&qo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();qo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return x1(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(xe);function wk(t,e){this.parent.drift(t,e)}var hu=Tk;function $p(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function UC(t){return t!=null&&!H(t)&&(t={isIgnore:t}),t||{}}function FC(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:vi(e),cursorStyle:e.get("cursor")}}function VC(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var Ck=(function(){function t(e){this.group=new xe,this._SymbolCtor=e||hu}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=UC(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=FC(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);$p(e,p,c,r)&&VC(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!$p(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):ke(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);$p(r,l,a,e)?(s=s||VC(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FC(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=UC(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Nl)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if($p(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Ia(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),GC=Ck;function eh(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=Ak(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Xr(e,c[0])&&(p=!0,c[0]=h),Xr(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 Ak(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:se(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function th(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function er(t,e){return!isFinite(t)||!isFinite(e)}var Dk=typeof Float32Array!==pn?Float32Array:void 0,HC=typeof Float64Array!==pn?Float64Array:void 0;function vr(t){return rh({ctor:Dk},t).arr}function rh(t,e){var r=t.arr,i=t.ctor;if(e>fl&&(e=fl),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function Ek(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function oy(t,e,r,i,n,a,o,s){for(var l=Ek(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=eh(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=x.idx*2,w=x.idx1*2;var A=g[b],C=g[b+1],D=y[w],M=y[w+1];(isNaN(A)||isNaN(C))&&(A=D,C=M),u.push(A,C),f.push(D,M),c.push(r[b],r[b+1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,E=m.dataDimsForPoint,O=n.dataToPoint([e.get(E[0],I),e.get(E[1],I)]);w=I*2,u.push(O[0],O[1]),f.push(y[w],y[w+1]);var R=th(m,n,e,I);c.push(R[0],R[1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(I));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(ce,ye){return d[ce]-d[ye]});for(var N=u.length,F=vr(N),B=vr(N),V=vr(N),X=vr(N),K=[],_=0;_<v.length;_++){var Q=v[_],ee=_*2,j=Q*2;F[ee]=u[j],F[ee+1]=u[j+1],B[ee]=f[j],B[ee+1]=f[j+1],V[ee]=c[j],V[ee+1]=c[j+1],X[ee]=p[j],X[ee+1]=p[j+1],K[_]=h[Q]}return{current:F,next:B,stackedOnCurrent:V,stackedOnNext:X,status:K}}var In=Math.min,On=Math.max;function sy(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(er(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,b=e[S*2],w=e[S*2+1];b===g&&w===y&&m<i;)m++,S+=a,d+=a,b=e[S*2],w=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;er(b,w)&&A<i;)A++,S+=a,b=e[S*2],w=e[S*2+1];var C=.5,D=0,M=0,I=void 0,E=void 0;if(A>=i||er(b,w))h=g,v=y;else{D=b-u,M=w-f;var O=g-u,R=b-g,N=y-f,F=w-y,B=void 0,V=void 0;if(s==="x"){B=Math.abs(O),V=Math.abs(R);var X=D>0?1:-1;h=g-X*B*o,v=y,I=g+X*V*o,E=y}else if(s==="y"){B=Math.abs(N),V=Math.abs(F);var K=M>0?1:-1;h=g,v=y-K*B*o,I=g,E=y+K*V*o}else B=Math.sqrt(O*O+N*N),V=Math.sqrt(R*R+F*F),C=V/(V+B),h=g-D*o*(1-C),v=y-M*o*(1-C),I=g+D*o*C,E=y+M*o*C,I=In(I,On(b,g)),E=In(E,On(w,y)),I=On(I,In(b,g)),E=On(E,In(w,y)),D=I-g,M=E-y,h=g-D*B/V,v=y-M*B/V,h=In(h,On(u,g)),v=In(v,On(f,y)),h=On(h,In(u,g)),v=On(v,In(f,y)),D=g-h,M=y-v,I=g+D*V/B,E=y+M*V/B}t.bezierCurveTo(c,p,h,v,g,y),c=I,p=E}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var YC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),WC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new YC},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&er(n[o*2-2],n[o*2-1]);o--);for(;a<o&&er(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=sy(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=bt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?Jn(s,h,d,g,r,f):Jn(l,v,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var w=f[b];if(w<=1&&w>=0){var x=u?ze(l,v,m,y,w):ze(s,h,d,g,w);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(ue);var Mk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(YC),XC=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new Mk},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&er(n[s*2-2],n[s*2-1]);s--);for(;o<s&&er(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=sy(r,n,o,s,s,1,i.smooth,l,i.connectNulls);sy(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(ue);function ly(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new ge({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=W(n)?function(m){n(m,c)}:null;it(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function uy(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new sr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,it(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function ZC(t,e,r,i,n){if(t){if(t.type==="polar")return uy(t,e,r);if(t.type==="cartesian2d")return ly(t,e,r,i,n)}else return null;return null}function ih(t,e){return t.type===e}function qC(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function KC(t){for(var e=St(),r=St(),i=0;i<t.length;){var n=t[i++],a=t[i++];er(n,a)||(gl(e,n),gl(r,a))}return[e,r]}function jC(t,e){var r=KC(t),i=r[0],n=r[1],a=KC(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function QC(t){return se(t)?t:t?.5:0}function Ik(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=vr(i*2),a=0;a<i;a++){var o=th(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Ln(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;er(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Ok(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=nf(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function Lk(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=Ok(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";T(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Zo(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function Pk(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&Rk(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){l.tick.offInterval||(s[Vi(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Rk(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(hu.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function Nk(t){for(var e=t.length/2;e>0&&er(t[e*2-2],t[e*2-1]);e--);return e-1}function JC(t,e){return[t[e*2],t[e*2+1]]}function kk(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!er(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function $C(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Nt.length;e++)if(t.get([Nt[e],"endLabel","show"]))return!0;return!1}function fy(t,e,r,i){if(ih(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=$C(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=ly(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return uy(e,r,i)}function Bk(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var zk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new xe,i=new GC;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=J(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=eh(a,s,_),S=y&&Ik(a,s,x),b=r.get("showSymbol"),w=r.get("connectNulls"),A=b&&!c&&Pk(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Te,Pe){Te.__temp&&(o.remove(Te),C.setItemGraphicEl(Pe,null))}),b||h.remove(),o.add(m);var D=c?!1:r.get("step"),M;a&&a.getArea&&r.get("clip",!0)&&(M=a.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=Lk(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&D===this._step))b&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,M),D&&(S&&(S=Ln(S,f,a,D,w)),f=Ln(f,null,a,D,w)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Yr(I)),m.setClipPath(fy(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Yr(I));var E=m.getClipPath();if(E){var O=fy(this,a,!1,r);it(E,{shape:O.shape},r)}else m.setClipPath(fy(this,a,!0,r));b&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),(!qC(this._stackedOnPoints,S)||!qC(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,D,_,w):(D&&(S&&(S=Ln(S,f,a,D,w)),f=Ln(f,null,a,D,w)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),N=R.get("focus"),F=R.get("blurScope"),B=R.get("disabled");if(v.useStyle(re(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),_a(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=v.getState("emphasis").style;V.lineWidth=+v.style.lineWidth+1}me(v).seriesIndex=r.seriesIndex,Ri(v,N,F,B);var X=QC(r.get("smooth")),K=r.get("smoothMonotone");if(v.setShape({smooth:X,smoothMonotone:K,connectNulls:w}),d){var Q=s.getCalculationInfo("stackedOnSeries"),ee=0;d.useStyle(re(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&(ee=QC(Q.get("smooth"))),d.setShape({smooth:X,stackedOnSmooth:ee,smoothMonotone:K,connectNulls:w}),_a(d,r,"areaStyle"),me(d).seriesIndex=r.seriesIndex,Ri(d,N,F,B)}var j=this._changePolyState;s.eachItemGraphicEl(function(Te){Te&&(Te.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=D,this._valueOrigin=_;var ce=r.get("triggerEvent"),ye=r.get("triggerLineEvent"),He=ye===!0||ce===!0||ce==="line",Fe=ye===!0||ce===!0||ce==="area";this.packEventData(r,v,He),d&&this.packEventData(r,d,Fe)},e.prototype.packEventData=function(r,i,n){me(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=br(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(er(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new hu(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ft.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=br(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 ft.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Id(this._polyline,r),i&&Id(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new WC({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new XC({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");W(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=W(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var A=W(c)?c(v):f*w+p,C=d.getSymbolPath(),D=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if($C(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Nk(l);f>=0&&(hi(s,vi(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Jp(o,h):Ls(o,c)},enableTextSetter:!0},Bk(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),w=g?"x":"y",A=kk(c,x,w),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!h){var I=JC(c,C[0]);u.attr({x:I[0]+S,y:I[1]+b}),o&&(M=p.getRawValue(C[0]))}else{var I=f.getPointOn(x,w);I&&u.attr({x:I[0]+S,y:I[1]+b});var E=p.getRawValue(C[0]),O=p.getRawValue(C[1]);o&&(M=Qv(n,v,E,O,A.t))}a.lastFrameIndex=C[0]}else{var R=r===1||a.lastFrameIndex>0?C[0]:0,I=JC(c,R);o&&(M=p.getRawValue(R)),u.attr({x:I[0]+S,y:I[1]+b})}if(o){var N=es(u);typeof N.setLabelText=="function"&&N.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=oy(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=Ln(p.stackedOnCurrent,p.current,n,o,l),h=Ln(p.current,null,n,o,l),m=Ln(p.stackedOnNext,p.next,n,o,l),d=Ln(p.next,null,n,o,l)),jC(h,d)>3e3||f&&jC(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),ke(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),ke(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,D=y[A].ptIdx*2;C.x=w[D],C.y=w[D+1],C.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(ft),eA=zk;function cy(t,e){return{seriesType:t,plan:Ya(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=z(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Xr(i,s[0])&&(s[0]=u),Xr(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&vr(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var Uk={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Fk=function(t){return Math.round(t.length/2)};function vu(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;U(a)?v=Uk[a]:W(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,Fk))}}}}}function py(t){t.registerChartView(eA),t.registerSeriesModel(zC),t.registerLayout(cy("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vu("line"))}var Vk=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(qp),tA=Vk;var Gk=null;function to(){return Gk}var rA="expandAxisBreak";var Pn=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]],Rn=te(),aA=te(),vy=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function Wk(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=gy(t.axisName)&&Dn(t.nameLocation);T(i,function(v){var d=Kr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?tr(du,m.transform):yr(du),d.transform&&Nr(du,du,d.transform),ne.copy(nh,d.localRect),nh.applyTransform(du),s?s.union(nh):ne.copy(s=new ne(0,0,0,0),nh))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new ne(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var du=xt(),nh=new ne(0,0,0,0),dy=function(t,e,r,i,n,a){if(Dn(t.nameLocation)){var o=a.stOccupiedRect;o&&oA(RC({},o,a.transGroup.transform),i,n)}else my(a.labelInfoList,a.dirVec,i,n)};function oA(t,e,r){var i=new le;Qp(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&NC(e,i)}function my(t,e,r,i){for(var n=le.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||oA(s,r,i)}}var ro=(function(){function t(e,r,i,n){this.group=new xe,this._axisModel=e,this._api=r,this._local={},this._shared=n||new vy(dy),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Y(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Y(e.nameDirection,1),tickDirection:Y(e.tickDirection,1),labelDirection:Y(e.labelDirection,1),labelOffset:Y(e.labelOffset,0),silent:Y(e.silent,!0),axisName:n,nameLocation:Ht(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:gy(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new xe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(Xk,function(n){e[n]&&Zk[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=cl(r-e),a,o;return oa(n)?(o=i>0?"top":"bottom",a="center"):oa(n-Pn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Pn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),Xk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Zk={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Qe(c,c,f),Qe(p,p,f));var v=P({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&Ra(i.axis.scale))to().buildAxisBreakLine(i,n,a,d);else{var m=new lr(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));Da(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||se(y))&&(y=[y,y]);var _=ip(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];T([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var A=Lt(g[w],-x/2,-S/2,x,S,v.stroke,!0),C=b.r+b.offset,D=h?p:c;A.attr({rotation:b.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),n.add(A)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=nA(e,n,s);u&&iA(t,e,r,i,n,a,o,$t.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=nA(e,n,s);u&&iA(t,e,r,i,n,a,o,$t.determine);var f=Qk(t,n,a,i);jk(t,e.labelLayoutList,f),Jk(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(gy(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new le(0,0),y=new le(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=xt();y.transform(Yn(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Pn/180);var S,b;Dn(c)?S=ro.innerTextLayout(t.rotation,x??t.rotation,p):(S=qk(t.rotation,c,x||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,D=Un(t.raw.nameTruncateMaxWidth,A.maxWidth,b),M=s.nameMarginLevel||0,I=new Ae({x:g.x,y:g.y,rotation:S.rotation,silent:ro.isLabelSilent(i),style:fr(h,{text:f,font:w,overflow:"truncate",width:D,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Jo({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var E=ro.makeAxisEventDataBase(i);E.targetType="axisName",E.name=f,me(I).eventData=E}a.add(I),I.updateTransform(),e.nameEl=I;var O=l.nameLayout=Kr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Dn(c)?Hk[M]:Yk[M]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),t.shouldNameMoveOverlap&&O){var R=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,O,y,R)}}}};function iA(t,e,r,i,n,a,o,s){lA(e)||$k(t,e,n,s,i,o);var l=e.labelLayoutList;eB(t,i,l,a),iB(i,t.rotation,l);var u=t.optionHideOverlap;Kk(i,l,u),u&&BC(Ee(l,function(f){return f&&!f.label.ignore})),Wk(t,r,i,l)}function qk(t,e,r,i){var n=cl(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return oa(n-Pn/2)?(o=l?"bottom":"top",a="center"):oa(n-Pn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Pn*1.5&&n>Pn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function Kk(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(Uw(i))return;function a(u,f,c){var p=Kr(e[f]),h=Kr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=Rn(p.label).labelInfo.tick;if(gi(v)&&d.notNice||Ze(v)&&d.offInterval){Ps(p.label);return}}if(u===!1||p.suggestIgnore){Ps(p.label);return}if(h.suggestIgnore){Ps(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=ny({marginForce:g},p),h=ny({marginForce:g},h)}Qp(p,h,null,{touchThreshold:m})&&Ps(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(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=aA(a),s=Rn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ps(a);return}}})}function Ps(t){t&&(t.ignore=!0)}function sA(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Qe(o,o,e),Qe(s,s,e));var f=new lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Da(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=aA(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function Qk(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=sA(u,r.transform,l,re(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function Jk(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=re(l.getLineStyle(),re(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=sA(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function nA(t,e,r){if(lA(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),hy(t,null,null,null))}return!0}function $k(t,e,r,i,n,a){var o=n.axis,s=Un(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new xe;r.add(l);var u=Os(i);if(!s||o.scale.isBlank()){hy(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Un(t.raw.labelRotate,f.get("rotate"))||0)*Pn/180,h=ro.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;T(c,function(x,S){var b,w=x.tick,A=x.formattedLabel,C=x.rawLabel,D=f,M=Vi(o.scale,w);if(v&&v[M]){var I=v[M];H(I)&&I.textStyle&&(D=new Ce(I.textStyle,f,n.ecModel))}var E=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=D.getShallow("align",!0)||h.textAlign,R=Y(D.getShallow("alignMinLabel",!0),O),N=Y(D.getShallow("alignMaxLabel",!0),O),F=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||h.textVerticalAlign,B=Y(D.getShallow("verticalAlignMinLabel",!0),F),V=Y(D.getShallow("verticalAlignMaxLabel",!0),F),X=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,X),y=Math.max(y,X);var K=new Ae({x:0,y:0,rotation:0,silent:ro.isLabelSilent(n),z2:X,style:fr(D,{text:A,align:S===0?R:S===c.length-1?N:O,verticalAlign:S===0?B:S===c.length-1?V:F,fill:W(E)?E(o.type==="category"?C:o.type==="value"?M+"":M,S):E})});K.anid="label_"+M;var Q=Rn(K);if(Q.labelInfo=x,Q.layoutRotation=h.rotation,Jo({el:K,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:C,tickIndex:S}}),m){var ee=ro.makeAxisEventDataBase(n);ee.targetType="axisLabel",ee.value=C,ee.tickIndex=S;var j=x.tick.break;if(j){var ce=j.parsedBreak;ee.break={start:ce.vmin,end:ce.vmax}}o.type==="category"&&(ee.dataIndex=M),me(K).eventData=ee,j&&rB(n,a,K,j)}d.push(K),l.add(K)});var _=z(d,function(x){return{label:x,priority:Rn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});hy(e,_,l,u)}function lA(t){return!!t.labelLayoutList}function hy(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function eB(t,e,r,i){var n=e.get(["axisLabel","margin"]);T(r,function(a,o){var s=Kr(a);if(s){var l=s.label,u=Rn(l);s.suggestIgnore=l.ignore,l.ignore=!1,en(Gi,tB);var f=e.axis;Gi.x=f.dataToCoord(Vi(f.scale,u.labelInfo.tick)),Gi.y=t.labelOffset+t.labelDirection*n,Gi.rotation=u.layoutRotation,i.add(Gi),Gi.updateTransform(),i.remove(Gi),Gi.decomposeTransform(),en(l,Gi),l.markRedraw(),pu(s,!0),Kr(s)}})}var Gi=new ge,tB=new ge;function gy(t){return!!t}function rB(t,e,r,i){r.on("click",function(n){var a={type:rA,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function iB(t,e,r){var i=Ge();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Rn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&T(n,function(o){to().adjustBreakLabelPair(t.axis.inverse,e,[Kr(r[o[0]]),Kr(r[o[1]])])})}}var ah=ro;function mu(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Un(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function uA(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function fA(t){var e={xAxisModel:null,yAxisModel:null};return T(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,We).models[0];e[i]=a}),e}function cA(t,e,r,i,n,a){for(var o=mu(t,r),s=!1,l=!1,u=0;u<e.length;u++)Ap(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 ah(r,i,o,n)}function pA(t,e,r){var i=mu(e,r);if(0)var n;t.updateCfg(i)}function hA(){Kw("liPosMinGap",aB)}function aB(t,e,r){var i=G(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Yc(f);function p(_){Hp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}rh(io,h);var v=0;p(function(_,x,S){for(var b=0,w=S.count();b<w;++b){var A=S.get(_,b);isFinite(A)&&(!f||Wc(c,A))&&(u&&(A=l.transformIn(A,null)),io.arr[v++]=A)}});var d=io.typed?io.arr.subarray(0,v):(io.arr.length=v,io.arr);io.typed?d.sort():Dt(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=tt(m)?m:v>0?Gp:Vw,r.serUids=i}var io=rh({ctor:HC},50);function vA(t){return function(e,r){var i=qr(e,{fromStat:{key:t}});if(tt(i.w2))return[-i.w2/2,i.w2/2]}}function gu(t,e){return t+Vp+e}function dA(t){return hA(),{liPosMinGap:!Ze(t.scale)}}var Hi="bar";function mA(t,e,r,i){Qw(t,{key:e,seriesType:r,coordSysType:i,getMetrics:dA})}function gA(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var yy={left:0,right:0,top:0,bottom:0},yu=["25%","25%"],Ir="cartesian2d",oB=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=Dr(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&pr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&pr(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:yy,outerBoundsContain:"all",outerBoundsClampWidth:yu[0],outerBoundsClampHeight:yu[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},e})(Se),yA=oB;var sB=No(),lB="__ec_stack_";function _A(t){return t.get("stack")||lB+t.seriesIndex}function uB(t,e){var r=fB(t,e);return r.columnMap=cB(r),r}function fB(t,e){var r=gu(e,Ir),i=[],n=qr(t,{fromStat:{key:r},min:1});return Bg(t,r,function(a){i.push({barWidth:we(a.get("barWidth"),n.w),barMaxWidth:we(a.get("barMaxWidth"),n.w),barMinWidth:we(a.get("barMinWidth")||(bA(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:_A(a)})}),{bandWidthResult:n,seriesInfo:i}}function cB(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};T(t.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Oe(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=Re(r,_),r-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var w=d.barCategoryGap;w!=null&&(n=w)}),n==null&&(n=he(35-o.length*4,15)+"%");var l=we(n,e),u=we(a,1),f=(r-l)/(i+(i-1)*u);f=he(f,0),T(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Re(_,g)),y&&(_=he(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Re(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=he(f,0);var c=0,p;T(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return T(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function xA(t){return{seriesType:t,overallReset:function(e){var r=gu(t,Ir);qw(e,r,function(i){var n=uB(i,t);Bg(i,r,function(a){var o=n.columnMap[_A(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function SA(t){return{seriesType:t,plan:Ya(),reset:function(e){if(uA(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Xr(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(gA(a))),v=bA(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=v&&vr(S*3),w=v&&l&&vr(S*3),A=v&&vr(S),C=i.master.getRect(),D=p?C.width:C.height,M,I=x.getStore(),E=0;(M=_.next())!=null;){var O=I.get(c?m:o,M),R=I.get(s,M),N=h,F=void 0;c&&(F=+O-I.get(o,M));var B=void 0,V=void 0,X=void 0,K=void 0;if(p){var Q=i.dataToPoint([O,R]);c&&(N=i.dataToPoint([F,R])[0]),B=N,V=Q[1]+y,X=Q[0]-N,K=g,Ie(X)<d&&(X=(X<0?-1:1)*d)}else{var Q=i.dataToPoint([R,O]);c&&(N=i.dataToPoint([R,F])[1]),B=Q[0]+y,V=N,X=g,K=Q[1]-N,Ie(K)<d&&(K=(K<=0?-1:1)*d)}v?(b[E]=B,b[E+1]=V,b[E+2]=p?X:K,w&&(w[E]=p?C.x:B,w[E+1]=p?V:C.y,w[E+2]=D),A[M]=M):x.setItemLayout(M,{x:B,y:V,width:X,height:K}),E+=3}v&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function bA(t){return t.pipelineContext&&t.pipelineContext.large}function pB(t){return vA(gu(t,Ir))}function TA(t){sB(t,function(){function e(r){var i=gu(r,Ir);mA(t,i,r,Ir),oC(i,pB(r))}e("bar"),e("pictorialBar")})}var wA=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var b=v[S].coord,w=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(w===m){_=b;break}else if(w<m)y=b;else if(y!=null&&w>m){_=(b+y)/2;break}S===1&&(x=w-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Tt);Tt.registerClass(wA);var _y=wA;var hB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return An(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=Lf(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Hi,e.dependencies=["grid","polar"],e.defaultOption=_n(_y.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:q.color.primary,borderWidth:2}},realtimeSort:!1}),e})(_y),CA=hB;var vB=(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})(),dB=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new vB},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(d*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(ue),xy=dB;function AA(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return na(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(d),b=c+p*x(d),w="left",A="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),w="center",A="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),w="center",A="bottom";break;case"startAngle":S=f+v*_(d)+oh(d,l+y,!1),b=c+v*x(d)+sh(d,l+y,!1),w="right",A="middle";break;case"insideStartAngle":S=f+v*_(d)+oh(d,-l+y,!1),b=c+v*x(d)+sh(d,-l+y,!1),w="left",A="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),w="center",A="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),w="center",A="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),w="center",A="top";break;case"endAngle":S=f+v*_(m)+oh(m,l+y,!0),b=c+v*x(m)+sh(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":S=f+v*_(m)+oh(m,-l+y,!0),b=c+v*x(m)+sh(m,-l+y,!0),w="right",A="middle";break;default:return na(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=w,i.verticalAlign=A,i}}function DA(t,e,r,i){if(se(i)){t.setTextConfig({rotation:i});return}else if(k(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function oh(t,e,r){return e*Math.sin(t)*(r?-1:1)}function sh(t,e,r){return e*Math.cos(t)*(r?1:-1)}function no(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;k(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(i,function(a){return zr(a,n)})}}var Sy=Math.max,by=Math.min,mB=(function(t){L(e,t);function e(){var r=t.call(this)||this;return r.type=Hi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Ia(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=gB(r,u);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function A(M){var I=lh[u.type](s,M);if(!I)return null;var E=wB(u,c,I);return E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),x[M]=E,E}s.diff(l).add(function(M){var I=s.getItemModel(M),E=lh[u.type](s,M,I);if(E&&(g&&A(M),!(!s.hasValue(M)||!LA[u.type](E)))){var O=!1;v&&(O=EA[u.type](d,E));var R=MA[u.type](r,s,M,E,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),PA(R,s,M,I,E,r,c,u.type==="polar"),b?R.attr({shape:E}):h?IA(h,p,R,E,M,c,!1,!1):it(R,{shape:E},r,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=O}}).update(function(M,I){var E=s.getItemModel(M),O=lh[u.type](s,M,E);if(O){if(g){var R=void 0;S.length===0?R=A(I):(R=S[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[M]=R);var N=lh[u.type](s,M),F=zA(c,N,u);ke(R,{shape:F},p,M)}var B=l.getItemGraphicEl(I);if(!s.hasValue(M)||!LA[u.type](O)){o.remove(B);return}var V=!1;v&&(V=EA[u.type](d,O),V&&o.remove(B));var X=B&&(B.type==="sector"&&m||B.type==="sausage"&&!m);if(X&&(B&&dn(B,r,I),B=null),B?Ko(B):B=MA[u.type](r,s,M,O,c,p,f.model,!0,m),h&&(B.forceLabelAnimation=!0),w){var K=B.getTextContent();if(K){var Q=es(K);Q.prevValue!=null&&(Q.prevValue=Q.value)}}else PA(B,s,M,E,O,r,c,u.type==="polar");b?B.attr({shape:O}):h?IA(h,p,B,O,M,c,!0,w):ke(B,{shape:O},r,M,null),s.setItemGraphicEl(M,B),B.ignore=V,o.add(B)}}).remove(function(M){var I=l.getItemGraphicEl(M);I&&dn(I,r,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new xe);C.removeAll();for(var D=0;D<x.length;++D)C.add(x[D]);o.add(C),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),NA(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),NA(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&ZC(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){dn(a,r,me(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Hi,e})(ft),EA={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=Sy(e.x,t.x),s=by(e.x+e.width,n),l=Sy(e.y,t.y),u=by(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=by(e.r,t.r),a=Sy(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},MA={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new ge({shape:P({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?xy:sr,f=new u({shape:i,z2:1});f.name="item";var c=BA(n);if(f.calculateTextPosition=AA(c,{isRoundCap:u===xy}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?ke:it)(f,{shape:v},a)}return f}};function gB(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function IA(t,e,r,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?ke:it)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?ke:it)(r,{shape:u},f,n)}function OA(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var yB=["x","y","width","height"],_B=["cx","cy","r","startAngle","endAngle"],LA={cartesian2d:function(t){return!OA(t,yB)},polar:function(t){return!OA(t,_B)}},lh={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?SB(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function xB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function BA(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function PA(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=no(i.getModel("itemStyle"),f,!0);P(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?CB(n,a.coordinateSystem):AB(n,a.coordinateSystem),v=vi(i);hi(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:Ls(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,DA(t,m==="outside"?h:m,BA(o),i.get(["label","rotate"]))}xb(d,v,a.getRawValue(r),function(y){return Jp(e,y)});var g=i.getModel(["emphasis"]);Ri(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),_a(t,i),xB(n)&&(t.style.fill="none",t.style.stroke="none",T(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function SB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var bB=(function(){function t(){}return t})(),RA=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new bB},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(ue);function NA(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?bx(t):0;if(u){var c=new RA({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 RA({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,me(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",kA),p.on("mousemove",kA)),r&&r.push(p)}var kA=Wa(function(t){var e=this,r=TB(e,t.offsetX,t.offsetY);me(e).dataIndex=r>=0?r:null},30,!1);function TB(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function zA(t,e,r){if(ih(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function wB(t,e,r){var i=t.type==="polar"?sr:ge;return new i({shape:zA(e,r,t),silent:!0,z2:0})}function CB(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function AB(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var UA=mB;function Ty(t){t.registerChartView(UA),t.registerSeriesModel(CA),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,xA(Hi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,SA(Hi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vu(Hi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),TA(t)}function wy(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function Cy(t,e,r){e=k(e)&&{coordDimensions:e}||P({encodeDefine:t.getEncode()},e);var i=t.getSource(),n=Ss(i,e).dimensions,a=new xs(n,t);return a.initData(i,r),a}var DB=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t})(),FA=DB;var jr="pie",EB=te(),VA=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FA(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Cy(this,{coordDimensions:["value"],encodeDefaulter:be(jb,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),n=EB(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=Wv(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){dl(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+jr,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Tt);Fb({fullType:VA.type,getCoord2:function(t){return t.getShallow("center")}});var GA=VA;var MB=Math.PI/180;function HA(t,e,r,i,n,a,o,s,l,u){if(t.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-r),S=i+_.len,b=S*S,w=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(w+_.len2)*n,C=A-_.label.x,D=_.targetTextWidth-C*n;WA(_,D,!0),_.label.x=A}}function c(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var _=d[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*n,w=i+_.len,A=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var p=t.length,h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}kC(t,1,l,l+o)&&c(t)}function IB(t,e,r,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var h=t[p].label;Ay(t[p])||(h.x<e?(f=Math.min(f,h.x),l.push(t[p])):(c=Math.max(c,h.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var v=t[p];if(!Ay(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<e?m=d[2][0]-v.labelDistance-o-v.edgeDistance:m=o+n-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?m=f-o-v.bleedMargin:m=o+n-c-v.bleedMargin:h.x<e?m=h.x-o-v.bleedMargin:m=o+n-h.x-v.bleedMargin,v.targetTextWidth=m,WA(v,m,!1)}}HA(u,e,r,i,1,n,a,o,s,c),HA(l,e,r,i,-1,n,a,o,s,f);for(var p=0;p<t.length;p++){var v=t[p];if(!Ay(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=v.rect.width+x,b=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+S+v.labelDistance:d[2][0]=o+n-v.edgeDistance-S-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=h.y}}}function WA(t,e,r){if(t.labelStyleWidth==null){var i=t.label,n=i.style,a=t.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",h)}XA(a,i)}}}function XA(t,e){YA.rect=t,iy(YA,e,OB)}var OB={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},YA={};function Ay(t){return t.position==="center"}function Dy(t){var e=t.getData(),r=[],i,n,a=!1,o=(t.get("minShowLabelAngle")||0)*MB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(b){b.ignore=!0}function v(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),A=w.shape,C=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(b),I=M.getModel("label"),E=I.get("position")||M.get(["emphasis","label","position"]),O=I.get("distanceToLabelLine"),R=I.get("alignTo"),N=we(I.get("edgeDistance"),u),F=I.get("bleedMargin");F==null&&(F=Math.min(u,p)>200?10:2);var B=M.getModel("labelLine"),V=B.get("length");V=we(V,u);var X=B.get("length2");if(X=we(X,u),Math.abs(A.endAngle-A.startAngle)<o){T(C.states,h),C.ignore=!0,D&&(T(D.states,h),D.ignore=!0);return}if(v(C)){var K=(A.startAngle+A.endAngle)/2,Q=Math.cos(K),ee=Math.sin(K),j,ce,ye,He;i=A.cx,n=A.cy;var Fe=E==="inside"||E==="inner";if(E==="center")j=A.cx,ce=A.cy,He="center";else{var Te=(Fe?(A.r+A.r0)/2*Q:A.r*Q)+i,Pe=(Fe?(A.r+A.r0)/2*ee:A.r*ee)+n;if(j=Te+Q*3,ce=Pe+ee*3,!Fe){var fe=Te+Q*(V+l-A.r),_e=Pe+ee*(V+l-A.r),Ut=fe+(Q<0?-1:1)*X,Ye=_e;R==="edge"?j=Q<0?f+N:f+u-N:j=Ut+(Q<0?-O:O),ce=Ye,ye=[[Te,Pe],[fe,_e],[Ut,Ye]]}He=Fe?"center":R==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var Lr=Math.PI,Ft=0,Pr=I.get("rotate");if(se(Pr))Ft=Pr*(Lr/180);else if(E==="center")Ft=0;else if(Pr==="radial"||Pr===!0){var lo=Q<0?-K+Lr:-K;Ft=lo}else if(Pr==="tangential"||Pr==="tangential-noflip"&&E!=="outside"&&E!=="outer"){var Rr=Math.atan2(Q,ee);Rr<0&&(Rr=Lr*2+Rr);var zu=ee>0;zu&&Pr!=="tangential-noflip"&&(Rr=Lr+Rr),Ft=Rr-Lr}if(a=!!Ft,C.x=j,C.y=ce,C.rotation=Ft,C.setStyle({verticalAlign:"middle"}),Fe){C.setStyle({align:He});var Lh=C.states.select;Lh&&(Lh.x+=C.x,Lh.y+=C.y)}else{var uo=new ne(0,0,0,0);XA(uo,C),r.push({label:C,labelLine:D,position:E,len:V,len2:X,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new le(Q,ee),linePoints:ye,textAlign:He,labelDistance:O,labelAlignTo:R,edgeDistance:N,bleedMargin:F,rect:uo,unconstrainedWidth:uo.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Fe})}}),!a&&t.get("avoidLabelOverlap")&&IB(r,i,n,l,u,p,f,c);for(var d=0;d<r.length;d++){var m=r[d],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(T(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(T(y.states,h),y.ignore=!0):(AC(S,m.minTurnAngle),DC(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new le(S[0][0],S[0][1])})}}}var ZA=Math.PI*2,uh=Math.PI/180,qA=Tx(jr,LB);function LB(t,e){t.eachSeriesByType(jr,function(r){var i=r.getData(),n=i.mapDimension("value"),a=Yb(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*uh,p=r.get("endAngle"),h=r.get("padAngle")*uh;p=p==="auto"?c-ZA:-p*uh;var v=r.get("minAngle")*uh,d=v+h,m=0;i.each(n,function(N){!isNaN(N)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=i.getDataExtent(n);b[0]=0;var w=_?1:-1,A=[c,p],C=w*h/2;_d(A,!_),c=A[0],p=A[1];var D=Ey(r);D.startAngle=c,D.endAngle=p,D.clockwise=_,D.cx=o,D.cy=s,D.r=l,D.r0=u;var M=Math.abs(p-c),I=M,E=0,O=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(N,F){var B;if(isNaN(N)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?B=g===0&&S?y:N*y:B=M/m,B<d?(B=d,I-=d):E+=N;var V=O+w*B,X=0,K=0;h>B?(X=O+w*B/2,K=X):(X=O+C,K=V-C),i.setItemLayout(F,{angle:B,startAngle:X,endAngle:K,clockwise:_,cx:o,cy:s,r0:u,r:x?Le(N,b,[u,l]):l}),O=V}),I<ZA&&m)if(I<=.001){var R=M/m;i.each(n,function(N,F){if(!isNaN(N)){var B=i.getItemLayout(F);B.angle=R;var V=0,X=0;R<h?(V=c+w*(F+1/2)*R,X=V):(V=c+w*F*R+C,X=c+w*(F+1)*R-C),B.startAngle=V,B.endAngle=X}})}else y=I/E,O=c,i.each(n,function(N,F){if(!isNaN(N)){var B=i.getItemLayout(F),V=B.angle===d?d:N*y,X=0,K=0;V<h?(X=O+w*V/2,K=X):(X=O+C,K=O+w*V-C),B.startAngle=X,B.endAngle=K,O+=w*V}})})}var Ey=te();var PB=(function(t){L(e,t);function e(r,i,n){var a=t.call(this)||this;a.z2=2;var o=new Ae;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return e.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=P(no(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(it(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,it(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),it(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,ke(o,{shape:{endAngle:f.endAngle}},s,i))}else Ko(o),ke(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),_a(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=P({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},no(u.getModel("itemStyle"),f)),P(o.ensureState("select"),{x:d,y:m,shape:no(l.getModel(["select","itemStyle"]),f)}),P(o.ensureState("blur"),{shape:no(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&P(y.ensureState("select"),{x:d,y:m}),P(_.ensureState("select"),{x:d,y:m}),Ri(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;hi(a,vi(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Hr,this.setTextGuideLine(h)),EC(this,MC(o),{stroke:u,opacity:Ht(s.get(["lineStyle","opacity"]),f,1)})}},e})(sr),RB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=jr,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=Ey(r),h=new sr({shape:$(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new PB(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);dn(d,r,v)}).execute(),Dy(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=jr,e})(ft),KA=RB;function My(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(se(o)&&!isNaN(o)&&o<0)})}}}function Iy(t){t.registerChartView(KA),t.registerSeriesModel(GA),h1(jr,t.registerAction),t.registerLayout(qA),t.registerProcessor(wy(jr)),t.registerProcessor(My(jr))}var fh=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",We).models[0]},e.type="cartesian2dAxis",e})(Se);ct(fh,Fp);var jA={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},NB=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},jA),Oy=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:q.color.axisMinorSplitLine,width:1}}},jA),kB=de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Oy),BB=re({logBase:10},Oy),QA={category:NB,value:Oy,time:kB,log:BB};function ch(t,e,r,i){T(Pp,function(n,a){var o=de(de({},QA[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=xn(this),h=p?Dr(f):{},v=c.getTheme();de(f,v.get(a+"Axis")),de(f,this.getDefaultOption()),f.type=JA(f),p&&pr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ou.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=to();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",JA)}function JA(t){return t.type||(t.data?"category":"value")}var zB=(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 z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ee(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})(),$A=zB;var _u=["x","y"];function eD(t){return(t.type==="interval"||t.type==="time")&&!Ra(t)}var UB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ir,r.dimensions=_u,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!eD(r)||!eD(i))){var n=Ja(r,null),a=Ja(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=tr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new ne(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Qe(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return Qe(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new ne(a,o,s,l)},e})($A),tD=UB;function rD(t,e){var r=t.scale,i=t.model,n=Wp(r,i,i.ecModel,t,null),a=yi(r),o=yi(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ie(u[0].value-u[1].value),m=Ie(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),w=Ep(b,x),A,C,D,M,I,E;function O(Q){for(var ee=50,j=0;j<ee&&!Q();j++)D=a?D*he(l,2):xw(D),M=Zr(D)}function R(){A=ve(E-D*p,M)}function N(){C=ve(I+D*h,M)}function F(){E=p?ve(A+D*p,M):A}function B(){I=h?ve(C-D*h,M):C}if(x[0]&&x[1]){A=w[0],C=w[1],D=(C-A)/(v+p+h);var V=t.getExtent(),X=Ie(V[1]-V[0]);M=If([C,A],X,.5/v),F(),B(),tt(M)&&(D=ve(D,M))}else{var K=w[1]-w[0];D=a?he(Io(K),1):Mi(K/v,Xv),M=Zr(D),x[0]?(A=w[0],O(function(){if(F(),I=ve(E+D*v,M),N(),C>=w[1])return!0})):x[1]?(C=w[1],O(function(){if(B(),E=ve(I-D*v,M),R(),A<=w[0])return!0})):O(function(){E=ve(ri(w[0]/D)*D,M),I=ve(Xt(w[1]/D)*D,M);var Q=Wt((I-E)/D);if(Q<=v){var ee=v-Q,j=void 0,ce=n.incl0||a;if(ce&&w[0]===0)j=[0,ee];else if(ce&&w[1]===0)j=[ee,0];else{var ye=Xt(ee/2);j=ee%2===0?[ye,ye]:A+C<w[0]+w[1]?[ye,ye+1]:[ye+1,ye]}if(E=ve(E-D*j[0],M),I=ve(I+D*j[1],M),R(),N(),A<=w[0]&&C>=w[1])return!0}})}zp(r,x,b,[A,C],S,{interval:D,intervalCount:v,intervalPrecision:M,niceExtent:[E,I]})}var iD=[[3,1],[0,2]],FB=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_u,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;T(this._axesList,function(o){Yp(o,eC);var s=o.scale;Ze(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=ie(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Vg(f)}T(l,function(c){GB(c,c.__alignTo)?Vg(c):rD(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};T(i.x,function(o){nD(i,"y",o,a)}),T(i.y,function(o){nD(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=Ba(e,r),a=this._rect=Qt(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Ly(o,a),!i){var u=YB(a,s,o,l,r),f=void 0;if(l)lD?(lD(this._axesList,a),Ly(o,a)):f=uD(a.clone(),"axisLabel",null,a,o,u,n);else{var c=WB(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=uD(p,h,v,a,o,u,n))}fD(a,o,$t.determine,null,f,n),T(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}H(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",We).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",We).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ae(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(p,h){var v="x"+c+"y"+h,d=new tD(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),oD(s.x),oD(s.y);function u(f){return function(c,p){if(VB(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=Np(c),d=new tA(f,kp(c,v,!0),[0,0],v,h);d.onBand=Up(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return T(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ae(r,a)<0&&r.push(a),ae(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),T(o._axesList,function(s){nC(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;Gb({targetModel:n,coordSysType:Ir,coordSysProvider:s});function s(){var l=fA(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Ug(a,n,Ir),Ug(o,n,Ir))},this),i},t.dimensions=_u,t.dimIdxMap=tu(_u),t})();function VB(t,e){return t.getCoordSysModel()===e}function nD(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)aD(s,n[l])&&(a=n[l]);else for(var u in n)if(Oe(n,u)&&aD(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function aD(t,e){if(!e)return!1;var r=e.scale,i=kw(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Rp;return n&&t==="auto"&&zw(e)&&(n=!1),n}function oD(t){for(var e=ie(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];Ap(a.scale)&&Pg(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&T(i,function(o){o.__alignTo=r})}function GB(t,e){return Ra(t.scale)||Ra(e.scale)||e.scale.getTicks().length<2}function HB(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function Ly(t,e){T(t.x,function(r){return sD(r,e.x,e.width)}),T(t.y,function(r){return sD(r,e.y,e.height)})}function sD(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),HB(t,e)}var lD;function uD(t,e,r,i,n,a,o){fD(i,n,$t.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Vh(s,function(p){return p>0})==null;return Qo(i,s,!0,!0,r),Ly(n,i),l;function u(p){T(n[pi[p]],function(h){if(eo(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Vi(h.scale,Rn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Dn(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[pi[h]]-p[pi[h]],m=p[mn[h]]+p[pi[h]]-(t[mn[h]]+t[pi[h]]);d=c(d,1-v),m=c(m,v);var g=iD[h][0],y=iD[h][1];s[g]=he(s[g],d),s[y]=he(s[y],m)}function c(p,h){return p>0&&!Si(h)&&h>1e-4&&(p/=h),p}}function YB(t,e,r,i,n){var a=new vy(XB);return T(r,function(o){return T(o,function(s){if(eo(s.model)){var l=!i;s.axisBuilder=cA(t,e,s.model,n,a,l)}})}),a}function fD(t,e,r,i,n,a){var o=r===$t.determine;T(e,function(u){return T(u,function(f){eo(f.model)&&(pA(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[pi[1-u]]=t[mn[u]]<=a.refContainer[mn[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){eo(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function WB(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Qt(t.get("outerBounds",!0)||yy,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ae(["all","axisLabel"],a)<0?o="all":o=a;var s=[Mf(Y(t.get("outerBoundsClampWidth",!0),yu[0]),e.width),Mf(Y(t.get("outerBoundsClampHeight",!0),yu[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var XB=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";dy(t,e,r,i,n,a),Dn(t.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&my(s.labelInfoList,s.dirVec,i,n)})},cD=FB;function pD(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ZB(r,t,e),r.seriesInvolved&&KB(r,t),r}function ZB(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Rs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(T(s.getAxes(),be(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&T(v.baseAxes,be(d,h?"cross":!0,p)),h&&T(v.otherAxes,be(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!Ry(_))){g==null&&(g=_.get("triggerTooltip")),_=m?qB(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),w=Rs(y.model),A=g||S||y.type==="category",C=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:Ry(_),seriesModels:[],linkGroup:null};u[w]=C,t.seriesInvolved=t.seriesInvolved||A;var D=jB(a,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=a[D].mapper,C.linkGroup=M}}}})}function qB(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(p){l[p]=$(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&re(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ce(l,r,i))}function KB(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(t.coordSysAxesInfo[Rs(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function jB(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(Py(a[i+"AxisId"],r.id)||Py(a[i+"AxisIndex"],r.componentIndex)||Py(a[i+"AxisName"],r.name))return n}}function Py(t,e){return t==="all"||k(t)&&ae(t,e)>=0||t===e}function hD(t){var e=ph(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Ry(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function ph(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Rs(t)]}function vD(t){var e=ph(t);return e&&e.axisPointerModel}function Ry(t){return!!t.get(["handle","show"])}function Rs(t){return t.type+"||"+t.id}var dD={},QB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&hD(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=vD(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){dD[r]=i},e.getAxisPointerClass=function(r){return r&&dD[r]},e.type="axis",e})(et),hh=QB;var ky=te();function mD(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=ky(t).splitAreaColors,p=G(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var w=u[v-1].tickValue;w!=null&&p.set(w,h),e.add(new ge({anid:w!=null?"area_"+w:null,shape:{x:_,y:x,width:S,height:b},style:re({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}ky(t).splitAreaColors=p}}}function gD(t){ky(t).splitAreaColors=null}var JB=["splitArea","splitLine","minorSplitLine","breakArea"],yD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xe,this.group.add(this._axisGroup),!!eo(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(JB,function(l){r.get([l,"show"])&&$B[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||em(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){gD(this)},e.type="cartesianAxis",e})(hh),$B={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=k(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new lr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:re({stroke:l[S]},g),silent:!0});Da(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new lr({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});Da(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){mD(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=to(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},By=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(yD);var _D=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=By.type,r}return e.type="yAxis",e})(yD);var ez=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new ge({shape:r.coordinateSystem.getRect(),style:re({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(et),xD={offset:0};function SD(t){t.registerComponentView(ez),t.registerComponentModel(yA),t.registerCoordinateSystem("cartesian2d",cD),ch(t,"x",fh,xD),ch(t,"y",fh,xD),t.registerComponentView(By),t.registerComponentView(_D),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var tz=te();function zy(t,e){return!!tz(t)[e]}mi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Me);var iz={axisPointer:1,tooltip:1,brush:1};function bD(t,e,r){var i=e.getComponentByElement(t.topTarget);if(!i||i===r||iz.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===r)return!1;var a=gn(i),o=gn(r);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var nz=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i._zr=r;var n=J(i._mousedownHandler,i),a=J(i._mousemoveHandler,i),o=J(i._mouseupHandler,i),s=J(i._mousewheelHandler,i),l=J(i._pinchHandler,i);return i.enable=function(u,f){var c=f.zInfo,p=gn(c.component),h=p.z,v=p.zlevel,d={component:c.component,z:h,zlevel:v,z2:Y(c.z2,-1/0)},m=P({},f.triggerInfo);this._opt=re(P({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,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")&&(Su(r,"mousedown",n,d),Su(r,"mousemove",a,d),Su(r,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(Su(r,"mousewheel",s,d),Su(r,"pinch",l,d)))},i.disable=function(){this._enabled&&(this._enabled=!1,bu(r,"mousedown",n),bu(r,"mousemove",a),bu(r,"mouseup",o),bu(r,"mousewheel",s),bu(r,"pinch",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(r,i,n){var a=this._opt,o=a.zInfoParsed;if(bD(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,i,n)),u&&s.isInClip&&!s.isInClip(r,i,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(r,i,n,a){var o=r.target;if(!o&&this._checkPointer(r,i,n))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!($h(r)||xu(r))){for(var i=r.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=r.offsetX,a=r.offsetY;this._checkPointer(r,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){var i=this._zr;if(!(r.gestureEvent==="pinch"||zy(i,"globalPan")||xu(r))){var n=r.offsetX,a=r.offsetY;if(!this._dragging||!vh("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=a-l;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Qr(r.event),r.__ecRoamConsumed=!0,TD(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){if(!xu(r)){var i=this._zr;if(!$h(r)){this._dragging=!1;var n=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);n&&i.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(r){if(!xu(r)){var i=vh("zoomOnMouseWheel",r,this._opt),n=vh("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!i&&!n)){if(i){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(n){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(!(zy(this._zr,"globalPan")||xu(r))){var i=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:i,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(r,i,n,a,o){r._checkPointer(a,o.originX,o.originY)&&(Qr(a.event),a.__ecRoamConsumed=!0,TD(r,i,n,a,o))},e})(_t);function xu(t){return t.__ecRoamConsumed}var az=te();function dh(t){var e=az(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Su(t,e,r,i){for(var n=dh(t),a=n.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:i}),oz(t,e)}function bu(t,e,r){for(var i=dh(t),n=i.roam[e]||[],a=0;a<n.length;a++)if(n[a].listener===r){n.splice(a,1),n.length||sz(t,e);return}}function oz(t,e){var r=dh(t);r.uniform[e]||t.on(e,r.uniform[e]=function(i){var n=r.roam[e];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function sz(t,e){var r=dh(t),i=r.uniform;i[e]&&(t.off(e,i[e]),i[e]=null)}function TD(t,e,r,i,n){n.isAvailableBehavior=J(vh,null,r,i),t.trigger(e,n)}function vh(t,e,r){var i=r[t];return!t||i&&(!U(i)||e.event[i+"Key"])}var wD=nz;function Yi(t,e,r,i,n,a){t=t||0;var o=Ei(r[1],-r[0]);if(n!=null&&(n=Ns(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(Ei(e[1],-e[0]));s=Ns(s,[0,o]),n=a=Ns(s,[n,a]),i=0}e[0]=Ns(e[0],r),e[1]=Ns(e[1],r);var l=Uy(e,i);e[i]+=t;var u=n||0,f=r.slice();l.sign<0?f[0]=Ei(f[0],u):f[1]=Ei(f[1],-u),e[i]=Ns(e[i],f);var c;return c=Uy(e,i),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-i]=Ei(e[i],l.sign*n)),c=Uy(e,i),a!=null&&c.span>a&&(e[1-i]=Ei(e[i],c.sign*a)),e}function Uy(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 Ns(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var ao=te(),CD=$,Fy=J,lz=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new xe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=be(AD,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}ED(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&qr(n).w>s)return!0;if(o){var l=ph(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=ao(e).pointerEl=new lt[a.type](CD(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=ao(e).labelEl=new Ae(CD(r.label));e.add(a),DD(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=ao(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=ao(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),DD(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ma(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Qr(u.event)},onmousedown:Fy(this._onHandleDragMove,this,0,0),drift:Fy(this._onHandleDragMove,this),ondragend:Fy(this._onHandleDragEnd,this)}),i.add(n)),ED(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");k(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,wn(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){AD(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Vy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Vy(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Vy(n)),ao(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Xa(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function AD(t,e,r,i){MD(ao(r).lastProp,i)||(ao(r).lastProp=i,e?ke(r,i,t):(r.stopAnimation(),r.attr(i)))}function MD(t,e){if(H(t)&&H(e)){var r=!0;return T(e,function(i,n){r=r&&MD(t[n],i)}),!!r}else return t===e}function DD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Vy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ED(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var ID=lz;function OD(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function uz(t,e,r,i,n){var a=r.get("value"),o=Gy(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=di(s.get("padding")||0),u=s.getFont(),f=Sf(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),fz(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:fr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function fz(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Gy(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ms(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):W(o)&&(a=o(s))}return a}function Hy(t,e,r){var i=xt();return Yn(i,i,r.rotation),mo(i,i,r.position),Ea([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function LD(t,e,r,i,n,a){var o=ah.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),uz(e,i,n,a,{position:Hy(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function PD(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function RD(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function ND(t,e,r){return qr(t,{fromStat:{sers:z(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function kD(t,e,r){return[he(Re(e[0],e[1]),t-r/2),Re(t+r/2,he(e[0],e[1]))]}var cz=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=zD(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=OD(a),v=pz[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=mu(l.getRect(),n);LD(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=mu(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Hy(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=zD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Re(l[1],c[f]),c[f]=he(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(ID);function zD(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var pz={line:function(t,e,r,i){var n=PD([e,i[0]],[e,i[1]],UD(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=ND(t,n,a),s=i[1]-i[0],l=kD(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:RD([u,i[0]],[f-u,s],UD(t))}}};function UD(t){return t.dim==="x"?0:1}var FD=cz;var hz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:"dashed"},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:q.color.accent40,throttle:40}},e})(Se),VD=hz;var Wi=te(),vz=T;function mh(t,e,r){if(!oe.node){var i=e.getZr();Wi(i).records||(Wi(i).records={}),dz(i,e);var n=Wi(i).records[t]||(Wi(i).records[t]={});n.handler=r}}function dz(t,e){if(Wi(t).initialized)return;Wi(t).initialized=!0,r("click",be(Yy,"click")),r("mousemove",be(Yy,"mousemove")),r("mousewheel",be(Yy,"mousewheel")),r("globalout",gz);function r(i,n){t.on(i,function(a){var o=yz(e);vz(Wi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),mz(o.pendings,e)})}}function mz(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function gz(t,e,r){t.handler("leave",null,r)}function Yy(t,e,r,i){e.handler(t,r,i)}function yz(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Tu(t,e){if(!oe.node){var r=e.getZr(),i=(Wi(r).records||{})[t];i&&(Wi(r).records[t]=null)}}var _z=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";mh("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Tu("axisPointer",i)},e.prototype.dispose=function(r,i){Tu("axisPointer",i)},e.type="axisPointer",e})(et),HD=_z;function wu(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=br(a,t);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(z(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 YD=te();function Wy(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||J(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){gh(n)&&(n=wu({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=gh(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||gh(n),p={},h={},v={list:[],map:{}},d={showPointer:be(Sz,h),showTooltip:be(bz,v)};T(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,w=Az(u,x);if(!c&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=b.pointToData(n)),A!=null&&WD(x,A,d,!1,p)}})});var m={};return T(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&T(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var w=b.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,XD(x),XD(g)))),m[g.key]=w}})}),T(m,function(g,y){WD(f[y],g,d,!0,p)}),Tz(h,f,p),wz(v,n,t,o),Cz(f,o,r),p}}function WD(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=xz(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function xz(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(tt(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),T(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function Sz(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function bz(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Rs(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Tz(t,e,r){var i=r.axesInfo=[];T(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function wz(t,e,r,i){if(gh(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function Cz(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=YD(i)[n]||{},o=YD(i)[n]={};T(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&T(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(a,function(f,c){!o[c]&&l.push(u(f))}),T(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Az(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function XD(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function gh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function yh(t){hh.registerAxisPointerClass("CartesianAxisPointer",FD),t.registerComponentModel(VD),t.registerComponentView(HD),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!k(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=pD(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Wy)}function Xy(t){yt(SD),yt(yh)}var Zy=["x","y","radius","angle","single"],Dz=te(),Ez=["cartesian2d","polar","singleAxis"];function ZD(t){var e=t.get("coordinateSystem");return ae(Ez,e)>=0}function Or(t){return t+"Axis"}function qD(t,e){var r=G(),i=[],n=G();t.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(p,h){var v=r.get(p);v&&v[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,p){(r.get(c)||r.set(c,[]))[p]=!0})}return i}function _h(t){var e=t.ecModel,r={infoList:[],infoMap:G()};return t.eachTargetAxis(function(i,n){var a=e.getComponent(Or(i),n);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 KD(t){var e=Dz(rp(t));return e.axisProxyMap||(e.axisProxyMap=G())}function ks(t){if(t)return KD(t.ecModel).get(t.uid)}function jD(t,e){KD(t.ecModel).set(t.uid,e)}function xh(t,e){var r=e.getAxisModel().axis.__alignTo;return r&&t.getAxisProxy(r.dim,r.model.componentIndex)?ks(r.model):null}var qy=(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})(),Mz=(function(t){L(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,i,n){var a=QD(r);this.settledOption=a,this.mergeDefaultAndTheme(r,n),this._doInit(a)},e.prototype.mergeOption=function(r){var i=QD(r);de(this.option,r,!0),de(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(r){var i=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),i=this._targetAxisInfoMap=G(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var i=!1;return T(Zy,function(n){var a=this.getReferringComponents(Or(n),vx);if(a.specified){i=!0;var o=new qy;T(a.models,function(s){o.add(s.componentIndex)}),r.set(n,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(r,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var c=u[0];if(c){var p=new qy;if(p.add(c.componentIndex),r.set(f,p),a=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",We).models[0];h&&T(u,function(v){c.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",We).models[0]&&p.add(v.componentIndex)})}}}a&&T(Zy,function(u){if(a){var f=n.findComponents({mainType:Or(u),filter:function(p){return p.get("type",!0)==="category"}});if(f[0]){var c=new qy;c.add(f[0].componentIndex),r.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(i){!r&&(r=i)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var i=this._rangePropMode,n=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(i,n){r==null&&(r=this.ecModel.getComponent(Or(i),n))},this),r},e.prototype.eachTargetAxis=function(r,i){this._targetAxisInfoMap.each(function(n,a){T(n.indexList,function(o){r.call(i,a,o)})})},e.prototype.getAxisProxy=function(r,i){return ks(this.getAxisModel(r,i))},e.prototype.getAxisModel=function(r,i){var n=this._targetAxisInfoMap.get(r);if(n&&n.indexMap[i])return this.ecModel.getComponent(Or(r),i)},e.prototype.setRawRange=function(r){var i=this.option,n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(i[a[0]]=n[a[0]]=r[a[0]],i[a[1]]=n[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var i=this.option;T(["start","startValue","end","endValue"],function(n){i[n]=r[n]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},e.prototype.getValueRange=function(r,i){if(r==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(r,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return ks(r);for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[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;i||(i=u)}return i},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})(Se);function QD(t){var e={};return T(["start","end","startValue","endValue","throttle"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Bs=Mz;var Iz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.dataZoomModel=r,this.ecModel=i,this.api=n},e.type="dataZoom",e})(et),Sh=Iz;var Oz=(function(){function t(e,r,i,n){this._dimName=e,this._axisIndex=r,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getWindow=function(){return $(this._window)},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(ZD(r)){var i=Or(this._dimName),n=r.getReferringComponents(i,We).models[0];n&&this._axisIndex===n.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._extent,i=this.getAxisModel().axis,n=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];T(["start","end"],function(_,x){var S=e[_],b=e[_+"Value"];o[x]==="percent"?(S==null&&(S=s[x]),b=Le(S,s,r),c[x]=!0):(f=!0,b==null?b=r[x]:(b=n.parse(b),n.sanitize&&(b=n.sanitize(b,r))),S=Le(b,r,s)),u[x]=b==null||isNaN(b)?r[x]:b,l[x]=S==null||isNaN(S)?s[x]:S}),Dt(u),Dt(l);var p=this._minMaxSpan;f?h(u,l,r,s,!1):h(l,u,s,r,!0);function h(_,x,S,b,w){var A=w?"Span":"ValueSpan";Yi(0,_,S,"all",p["min"+A],p["max"+A]);for(var C=0;C<2;C++)x[C]=Le(_[C],S,b,!0),w&&(x[C]=x[C],c[C]=!0);Ro(x)}var v=Ze(n)||gi(n),d=i.getExtent(),m=Ie(d[1]-d[0]),g=v?0:If(u,m,.5);T([[0,ri],[1,Xt]],function(_){var x=_[0],S=_[1];!c[x]||!isFinite(g)||(u[x]=ve(u[x],g),u[x]=Re(r[1],he(r[0],u[x])),l[x]===s[x]&&(u[x]=r[x],v&&(u[x]=S(u[x]))))}),Ro(u);var y=[Le(u[0],r,s,!0),Le(u[1],r,s,!0)];return Ro(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},t.prototype.reset=function(e,r){if(this.hostedBy(e)){var i=this.getAxisModel().axis;Yp(i,tC);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;r&&(a=re({start:r[0],end:r[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},t.prototype.filterData=function(e,r){if(!this.hostedBy(e))return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;T(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var c=u.getStore(),p=z(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,d,m,g=0;g<f.length;g++){var y=c.get(p[g],h),_=!isNaN(y),x=y<o[0],S=y>o[1];if(_&&!x&&!S)return!0;_&&(m=!0),x&&(v=!0),S&&(d=!0)}return m&&v&&d})}else T(f,function(h){if(a==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});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,i=this._extent;T(["min","max"],function(n){var a=r.get(n+"Span"),o=r.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Le(i[0]+o,i,[0,100],!0):a!=null&&(o=Le(a,[0,100],i,!0)-i[0]),e[n+"Span"]=a,e[n+"ValueSpan"]=o},this)},t})(),JD=Oz;var Lz={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(n){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(Or(o),s);n(o,s,l,a)})})}var r=[];e(function(n,a,o,s){if(!ks(o)){var l=new JD(n,a,s,t);r.push(l),jD(o,l)}});var i=G();return T(r,function(n){T(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){var i=[];r.eachTargetAxis(function(n,a){var o=r.getAxisProxy(n,a),s=xh(r,o);s?i.push([o,s]):o.reset(r,null)}),T(i,function(n){n[0].reset(r,n[1].getWindow().percentInverted)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var i=r.findRepresentativeAxisProxy();if(i){var n=i.getWindow(),a=n.percent,o=n.value;r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},$D=Lz;function Ky(t){t.registerAction("dataZoom",function(e,r){var i=qD(r,e);T(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Pz=No();function Cu(t){Pz(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,$D),Ky(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function eE(t,e){var r=di(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new ge({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var Rz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},e})(Se),tE=Rz;function bh(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function rE(t){if(oe.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var jy=rE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iE=rE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Qy(t,e){if(!t)return e;e=as(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function nE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var Nz=Qy(iE,"transition"),Jy=Qy(jy,"transform"),kz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function Bz(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function zz(t,e,r){if(!U(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Yr(e);var a=Bz(r),o=Math.max(Math.round(n)*1.5,6),s="",l=Jy+":",u;ae(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Uz(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(oe.transformSupported?""+Jy+n:",left"+n+",top"+n)),Nz+":"+a}function aE(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!oe.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Jy+":"+o+";":[["top",0],["left",0],[jy,o]]}function Fz(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Y(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Vz(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Zc(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(Uz(a,r,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(v){var d="border-"+v,m=as(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Fz(c)),p!=null&&n.push("padding:"+di(p).join("px ")+"px"),n.join(";")+";"}function oE(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&V0(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Gz=(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,oe.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):Bn(a)?a:W(a)&&a(e.getDom()));oE(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Yt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=nE(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=kz+Vz(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+aE(a[0],a[1],!0)+("border-color:"+Yr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!bh(i)&&(s=zz(i,n,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",k(e)||(e=[e]);for(var l=0;l<e.length;l++)Bn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(oE(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=aE(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",oe.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(J(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;G0(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),sE=Gz;var Hz=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uE(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;H(e)&&vt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ae({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Zc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=lE(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;uE(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=Nn(a.borderWidth||0),s=lE(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Nn(t){return Math.max(0,t)}function lE(t){var e=Nn(t.shadowBlur||0),r=Nn(t.shadowOffsetX||0),i=Nn(t.shadowOffsetY||0);return{left:Nn(e-r),right:Nn(e+r),top:Nn(e-i),bottom:Nn(e+i)}}function uE(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var fE=Hz;var Yz=new ge({shape:{x:-1,y:-1,width:2,height:2}}),Wz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(oe.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=gx(n.get("renderMode"));this._tooltipContent=a==="richText"?new fE(i):new sE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(oe.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?wn(this,"_updatePosition",50,"fixRate"):Xa(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");mh("itemTooltip",this._api,J(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||oe.node||!n.getDom())){var o=cE(a,n);this._ticket="";var s=a.dataByCoordSys,l=Kz(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Yz;f.x=a.x,f.y=a.y,f.update(),me(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=wu(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(cE(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Au([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=me(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Za(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(me(f).dataIndex!=null?l=f:me(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=J(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Au([i.tooltipOption],a),l=this._renderMode,u=[],f=Ha("section",{blocks:[],noHeader:!0}),c=[],p=new qc;T(r,function(y){T(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,w=b.scale.parse(S);if(!(!x||S==null)){var A=Gy(S,b,n,_.seriesDataIndices,_.valueLabelOpt),C=Ha("section",{header:A,noHeader:!pt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),T(_.seriesDataIndices,function(D){var M=n.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,E=M.getDataParams(I);if(!(E.dataIndex<0)){E.axisDim=_.axisDim,E.axisIndex=_.axisIndex,E.axisType=_.axisType,E.axisId=_.axisId,E.axisValue=Ms(x.axis,{value:w}),E.axisValueLabel=A,E.marker=p.makeTooltipMarker("item",Yr(E.color),l);var O=km(M.formatTooltip(I,!0,null)),R=O.frag;if(R){var N=Au([M],a).get("valueFormatter");C.blocks.push(N?P({valueFormatter:N},R):R)}O.text&&c.push(O.text),u.push(E)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Gm(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
20
+
21
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=me(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Au([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new qc;g.marker=y.makeTooltipMarker("item",Yr(g.color),h);var _=km(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,w=b?Gm(S?P({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,g,A,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=me(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=$(l),l.content=Je(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Au(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new qc;this._showOrMove(v,function(){var y=$(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(U(p)){var m=r.ecModel.get("useUTC"),g=k(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Ni(g.axisValue,h,m)),h=os(h,n,!0)}else if(W(p)){var _=J(function(x,S){x===this._ticket&&(c.setContent(S,f,r,d,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||k(i))return{color:a||o};if(!k(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),W(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),k(i))n=we(i[0],u),a=we(i[1],f);else if(H(i)){var d=i;d.width=c[0],d.height=c[1];var m=Qt(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(U(i)&&l){var g=qz(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=Xz(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=pE(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=pE(h)?c[1]/2:h==="bottom"?c[1]:0),bh(r)){var g=Zz(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&T(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&T(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){oe.node||!i.getDom()||(Xa(this,"_updatePosition"),this._tooltipContent.dispose(),Tu("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(et);function Au(t,e,r){var i=e.ecModel,n;r?(n=new Ce(r,i,i),n=new Ce(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Ce(o,n,i)))}return n}function cE(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function Xz(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function Zz(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function qz(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function pE(t){return t==="center"||t==="middle"}function Kz(t,e,r){var i=ml(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=an(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=me(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var hE=Wz;function $y(t){yt(yh),t.registerComponentModel(tE),t.registerComponentView(hE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Me),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Me)}var jz=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"])}},Qz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),k(i)&&T(i,function(a,o){U(a)&&(a={type:a}),i[o]=de(a,jz(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&Po(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=G(),s=z(a,function(l){return(U(l)||se(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ce(l,this,this.ecModel))},this);this._data=Ee(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;T(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&ae(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:q.size.m,align:"auto",backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Se),Du=Qz;var zs=be,e0=T,Th=xe,Jz=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Th),this.group.add(this._selectorGroup=new Th),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=Ba(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Qt(c,f,p),v=this.layoutInner(r,o,h,a,l,u),d=Qt(re({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eE(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=G(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),e0(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
22
+ `)){var y=new Th;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),w=x.getVisual("style"),A=this._createItem(_,g,d,v,i,r,S,w,b,c,a);A.on("click",zs(vE,g,null,a,h)).on("mouseover",zs(t0,_.name,null,a,h)).on("mouseout",zs(r0,_.name,null,a,h)),n.ssr&&A.eachChild(function(C){var D=me(C);D.seriesIndex=_.seriesIndex,D.dataIndex=d,D.ssrType="legend"}),p&&A.eachChild(function(C){m.packEventData(C,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(C){var D=this;if(!f.get(g)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(g))return;var I=M.indexOfName(g),E=M.getItemVisual(I,"style"),O=M.getItemVisual(I,"legendIcon"),R=ht(E.fill);R&&R[3]===0&&(R[3]=.2,E=P(P({},E),{fill:ei(R,"rgba")}));var N=this._createItem(C,g,d,v,i,r,{},E,O,c,a);N.on("click",zs(vE,null,g,a,h)).on("mouseover",zs(t0,null,g,a,h)).on("mouseout",zs(r0,null,g,a,h)),n.ssr&&N.eachChild(function(F){var B=me(F);B.seriesIndex=C.seriesIndex,B.dataIndex=d,B.ssrType="legend"}),p&&N.eachChild(function(F){D.packEventData(F,i,C,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};me(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();e0(r,function(u){var f=u.type,c=new Ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);hi(c,{normal:p,emphasis:h},{defaultText:u.title}),vn(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=$z(f,a,l,u,h,m,p),S=new Th,b=a.getModel("textStyle");if(W(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(eU({itemWidth:v,itemHeight:d,icon:f,iconRotate:w,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?v+5:-5,C=s,D=o.get("formatter"),M=i;U(D)&&D?M=D.replace("{name}",i??""):W(D)&&(M=D(i));var I=m?b.getTextColor():a.get("inactiveColor");S.add(new Ae({style:fr(b,{text:M,x:A,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var E=new ge({shape:S.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&Jo({el:E,componentModel:o,itemName:i,itemTooltipOption:O.option}),S.add(E),S.eachChild(function(R){R.silent=!0}),E.silent=!c,this.getContentGroup().add(S),vn(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ka(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ka("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=r.get("selectorButtonGap",!0),d=r.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(et);function $z(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),e0(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Jl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function eU(t){var e=t.icon||"roundRect",r=Lt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=q.color.neutral00,r.style.lineWidth=2),r}function vE(t,e,r,i){r0(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),t0(t,e,r,i)}function t0(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function r0(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var wh=Jz;function Eu(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),dE(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),dE(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function dE(t,e){var r=e||{};return T(t.getData(),function(i){var n=i.get("name");if(!(n===`
23
+ `||n==="")){var a=t.isSelected(n);Oe(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function mE(t){t.registerAction("legendToggleSelect","legendselectchanged",be(Eu,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",be(Eu,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",be(Eu,"inverseSelect")),t.registerAction("legendSelect","legendselected",be(Eu,"select")),t.registerAction("legendUnSelect","legendunselected",be(Eu,"unSelect"))}var gE=Bo(tU);function tU(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function Ch(t){t.registerComponentModel(Du),t.registerComponentView(wh),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,gE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),mE(t)}var rU=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=Dr(r);t.prototype.init.call(this,r,i,n),yE(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),yE(this,this.option,r)},e.type="legend.scroll",e.defaultOption=_n(Du.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),e})(Du);function yE(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,pr(e,r,{type:"box",ignoreSize:!!n})}var _E=rU;var xE=xe,i0=["width","height"],n0=["x","y"],iU=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new xE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xE)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=k(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Ae({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=Ma(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:J(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=i0[u],c=n0[u],p=i0[1-u],h=n0[1-u];o&&ka("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=$(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;ka(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),ka("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-v[o]-_,0),b[s]=S[s],c.setClipPath(new ge({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&ke(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?r:null),this._updatePageInfoView(r,w),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=i0[o],l=n0[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(b){if(b){var w=b.getBoundingRect(),A=w[l]+b[l];return{s:A,e:A+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(wh),SE=iU;function a0(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function bE(t){yt(Ch),t.registerComponentModel(_E),t.registerComponentView(SE),a0(t)}function o0(t){yt(Ch),yt(bE)}var nU=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=_n(Bs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Bs),TE=nU;var s0=te();function wE(t,e,r){s0(t).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)})}function CE(t,e){for(var r=s0(t).coordSysRecordMap,i=r.keys(),n=0;n<i.length;n++){var a=i[n],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||AE(r,o))}}}function AE(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function aU(t,e){var r={model:e,containsPoint:be(sU,e),dispatchAction:be(oU,t),dataZoomInfoMap:null,controller:null},i=r.controller=new wD(t.getZr());return T(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],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 oU(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function sU(t,e,r,i){return t.coordinateSystem.containPoint([r,i])}function lU(t,e,r){var i,n="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[n+c]>a[n+i]&&(i=c),o=o&&f.get("preventDefaultMouseMove",!0),s=Y(f.get("cursorGrab",!0),s),l=Y(f.get("cursorGrabbing",!0),l)}),{controlType:i,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 DE(t){t.registerUpdateLifecycle("coordsys:aftercreate",function(e,r){var i=s0(r),n=i.coordSysRecordMap||(i.coordSysRecordMap=G());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=_h(a);T(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,aU(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=G());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.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){AE(n,a);return}var f=lU(l,a,r);o.enable(f.controlType,f.opt),wn(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fU=(function(t){L(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,i,n){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),wE(n,r,{pan:J(l0.pan,this),zoom:J(l0.zoom,this),scrollMove:J(l0.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){CE(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(Sh),l0={zoom:function(t,e,r,i){var n=this.range,a=n.slice(),o=t.axisModels[0];if(o){var s=u0[e](null,[i.originX,i.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/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Yi(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:EE(function(t,e,r,i,n,a){var o=u0[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:EE(function(t,e,r,i,n,a){var o=u0[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function EE(t){return function(e,r,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,i,n);if(Yi(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var u0={grid:function(t,e,r,i,n){var a=r.axis,o={},s=n.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,i,n){var a=r.axis,o={},s=n.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,i,n){var a=r.axis,o=n.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}},ME=fU;function IE(t){Cu(t),t.registerComponentModel(TE),t.registerComponentView(ME),DE(t)}var cU=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=_n(Bs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:q.color.accent10,borderRadius:0,backgroundColor:q.color.transparent,dataBackground:{lineStyle:{color:q.color.accent30,width:.5},areaStyle:{color:q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:q.color.accent40,width:.5},areaStyle:{color:q.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:q.color.neutral00,borderColor:q.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:q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:q.color.tertiary},brushSelect:!0,brushStyle:{color:q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Bs),OE=cU;var Mu=ge,pU=1,f0=30,hU=7,Iu="horizontal",LE="vertical",vU=5,dU=["line","bar","candlestick","scatter"],mU={easing:"cubicOut",duration:100,delay:0},gU=(function(t){L(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,i){this.api=i,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},e.prototype.render=function(r,i,n,a){if(t.prototype.render.apply(this,arguments),wn(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(){Xa(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 i=this._displayables.sliderGroup=new xe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,i=this.api,n=r.get("brushSelect"),a=n?hU:0,o=Ba(r,i).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Iu?{right:o.width-s.x-s.width,top:o.height-f0-l-a,width:s.width,height:f0}:{right:l,top:s.y,width:f0,height:s.height},f=Dr(r.option);T(["right","top","width","height"],function(p){f[p]==="ph"&&(f[p]=u[p])});var c=Qt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===LE&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Iu&&!o?{scaleY:l?1:-1,scaleX:1}:n===Iu&&o?{scaleY:l?1:-1,scaleX:-1}:n===LE&&!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=i.x-f,r.y=i.y-c,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=r.get("brushSelect");n.add(new Mu({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Mu({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:J(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)),n.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var i=this._size,n=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||i[0]!==n[0]||i[1]!==n[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 v=[0,i[1]],d=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),_=i[0]/(c[1]-c[0]),x=r.thisAxis.type==="time",S=-y,b=Math.round(o.count()/i[0]),w;o.each([r.thisDim,l],function(I,E,O){if(b>0&&O%b){x||(S+=y);return}S=x?(+I-c[0])*_:S+y;var R=E==null||isNaN(E)||E==="",N=R?0:Le(E,p,v,!0);R&&!w&&O?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&w&&(m.push([S,0]),g.push([S,0])),R||(m.push([S,N]),g.push([S,N])),w=R}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var A=this.dataZoomModel;function C(I){var E=A.getModel(I?"selectedDataBackground":"dataBackground"),O=new xe,R=new ba({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new Hr({shape:{points:f},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(R),O.add(N),O}for(var D=0;D<3;D++){var M=C(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,i=r.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!n&&!(i!==!0&&ae(dU,u.get("type"))<0)){var f=a.getComponent(Or(o),s).axis,c=yU(o),p,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(p=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var v=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:v,otherDim:c,otherAxisInverse:p}}},this)},this),n}},e.prototype._renderHandle=function(){var r=this.group,i=this._displayables,n=i.handles=[null,null],a=i.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=i.filler=new Mu({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new Mu({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:pU,fill:q.color.transparent}})),T([0,1],function(_){var x=l.get("handleIcon");!jl[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=Lt(x,-1,0,2,2,null,!0);S.attr({cursor:_U(this._orient),draggable:!0,drift:J(this._onDragMove,this,_),ondragend:J(this._onDragEnd,this),onmouseover:J(this._onOverDataInfoTriggerArea,this,!0),onmouseout:J(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=we(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),vn(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(n[_]=S);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;r.add(a[_]=new Ae({silent:!0,invisible:!M,style:fr(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 v=we(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new ge({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Lt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,q.color.neutral00,!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new ge({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:J(this._onActualMoveZoneDrift,this),ondragstart:J(this._onActualMoveZoneDragStart,this),ondragend:J(this._onActualMoveZoneDragEnd,this),onmouseover:J(this._onOverDataInfoTriggerArea,this,!0),onmouseout:J(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Le(r[0],[0,100],i,!0),Le(r[1],[0,100],i,!0)]},e.prototype._updateInterval=function(r,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Yi(i,a,o,n.get("zoomLock")?"all":r,s.minSpan!=null?Le(s.minSpan,l,o,!0):null,s.maxSpan!=null?Le(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Dt([Le(a[0],o,l,!0),Le(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(r){var i=this._displayables,n=this._handleEnds,a=Dt(n.slice()),o=this._size;T([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:n[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.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]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],p=c.getClipPath();p||(p=new ge,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 i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(r){var p={start:f[0],end:f[1]},h=xh(i,l);if(h){var v=h.calculateDataWindow(p).percentInverted;p={start:v[0],end:v[1]}}c=l.calculateDataWindow(p)}else c=l.getWindow();s=[PE(i,0,c,u),PE(i,1,c,u)]}}var d=Dt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=Bl(n.handles[g].parent,this.group),_=$d(g===0?"right":"left",y),x=this._handleWidth/2+vU,S=Ea([d[g]+(g===0?-x:x),this._size[1]/2],y);a[g].setStyle({x:S[0],y:S[1],verticalAlign:o===Iu?"middle":_,align:o===Iu?_:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},e.prototype._showDataInfo=function(r){var i=this.dataZoomModel.get("handleLabel")||{},n=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=r||this._dragging?o:n,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,i,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,i,n)},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,i,n,a){this._dragging=!0,Qr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ea([i,n],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 i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var i=r.offsetX,n=r.offsetY;this._brushStart=new le(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Yi(0,l,o,0,u.minSpan!=null?Le(u.minSpan,s,o,!0):null,u.maxSpan!=null?Le(u.maxSpan,s,o,!0):null),this._range=Dt([Le(l[0],o,s,!0),Le(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(Qr(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Mu({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,i),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 i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?mU:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var r,i=_h(this.dataZoomModel).infoList;if(!r&&i.length){var n=i[0].model.coordinateSystem;r=n.getRect&&n.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})(Sh);function PE(t,e,r,i){var n=t.get("labelFormatter"),a=t.get("labelPrecision");(a==null||a==="auto")&&(a=r.valuePrecision);var o=r.value[e],s=o==null||isNaN(o)?"":Ze(i)||gi(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?ve(o,a,!0):o+"";return W(n)?n(o,s):U(n)?n.replace("{value}",s):s}function yU(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function _U(t){return t==="vertical"?"ns-resize":"ew-resize"}var RE=gU;function NE(t){t.registerComponentModel(OE),t.registerComponentView(RE),Cu(t)}function c0(t){yt(IE),yt(NE)}var p0=Math.sin,h0=Math.cos,kE=Math.PI,oo=Math.PI*2,xU=180/kE,SU=(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,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=ti(c-oo)||(f?u>=oo:-u>=oo),h=u>0?u%oo:u%oo+oo,v=!1;p?v=!0:ti(c)?v=!1:v=h>=kE==!!f;var d=e+i*h0(o),m=r+n*p0(o);this._start&&this._add("M",d,m);var g=Math.round(a*xU);if(p){var y=1/this._p,_=(f?1:-1)*(oo-y);this._add("A",i,n,g,1,+f,e+i*h0(o+_),r+n*p0(o+_)),y>.01&&this._add("A",i,n,g,0,+f,d,m)}else{var x=e+i*h0(s),S=r+n*p0(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,n,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})(),Ah=SU;var Ou="none",bU=Math.round;function TU(t){var e=t.fill;return e!=null&&e!==Ou}function wU(t){var e=t.stroke;return e!=null&&e!==Ou}var v0=["lineCap","miterLimit","lineJoin"],CU=z(v0,function(t){return"stroke-"+t.toLowerCase()});function d0(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof dt){t("opacity",n);return}if(TU(e)){var a=$i(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t("fill-opacity",o)}else t("fill",Ou);if(wU(e)){var s=$i(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*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=Ql(r),h=p[0],v=p[1];h&&(v=bU(v||0),t("stroke-dasharray",h.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Ou);for(var d=0;d<v0.length;d++){var m=v0[d];if(i||e[m]!==Fo[m]){var g=e[m]||Fo[m];g&&t(CU[d],g)}}}else i&&t("stroke",Ou)}var BE="http://www.w3.org/2000/svg",m0="http://www.w3.org/1999/xlink",zE="http://www.w3.org/2000/xmlns/",UE="http://www.w3.org/XML/1998/namespace",g0="ecmeta_";function Dh(t){return document.createElementNS(BE,t)}function Ke(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function AU(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function DU(t){return"</"+t+">"}function Lu(t,e){e=e||{};var r=e.newline?`
24
+ `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return AU(o,s)+(o!=="style"?Je(l):l||"")+(a?""+r+z(a,function(u){return i(u)}).join(r)+r:"")+DU(o)}return i(t)}function FE(t,e,r){r=r||{};var i=r.newline?`
25
+ `:"",n=" {"+i,a=i+"}",o=z(ie(t),function(l){return l+n+z(ie(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=z(ie(e),function(l){return"@keyframes "+l+n+z(ie(e[l]),function(u){return u+n+z(ie(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Pu(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function y0(t,e,r,i){return Ke("svg","root",{width:t,height:e,xmlns:BE,"xmlns:xlink":m0,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var EU=0;function Eh(){return EU++}var VE={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"},so="transform-origin";function MU(t,e,r){var i=P({},t.shape);P(i,e),t.buildPath(r,i);var n=new Ah;return n.reset(pf(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function IU(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[so]=r+"px "+i+"px")}var OU={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function HE(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function LU(t,e,r){var i=t.shape.paths,n={},a,o;if(T(i,function(l){var u=Pu(r.zrId);u.animation=!0,Ru(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=ie(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:""},n[d].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=HE(n,r);return a.replace(o,s)}}function GE(t){return U(t)?VE[t]?"cubic-bezier("+VE[t]+")":So(t)?t:"":""}function Ru(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof Xo){var s=LU(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=n[u],c=[f.getMaxTime()/1e3+"s"],p=GE(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 v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},w={},A="animation-timing-function";function C(Fe,Te,Pe){for(var fe=Fe.getTracks(),_e=Fe.getMaxTime(),Ut=0;Ut<fe.length;Ut++){var Ye=fe[Ut];if(Ye.needsAnimate()){var Lr=Ye.keyframes,Ft=Ye.propName;if(Pe&&(Ft=Pe(Ft)),Ft)for(var Pr=0;Pr<Lr.length;Pr++){var lo=Lr[Pr],Rr=Math.round(lo.time/_e*100)+"%",zu=GE(lo.easing),uo=lo.rawValue;(U(uo)||se(uo))&&(Te[Rr]=Te[Rr]||{},Te[Rr][Ft]=lo.rawValue,zu&&(Te[Rr][A]=zu))}}}}for(var D=0;D<x;D++){var M=_[D],I=M.targetName;I?I==="shape"&&C(M,b):!i&&C(M,S)}for(var E in S){var O={};en(O,t),P(O,S[E]);var R=hf(O),N=S[E][A];w[E]=R?{transform:R}:{},IU(w[E],O),N&&(w[E][A]=N)}var F,B=!0;for(var E in b){w[E]=w[E]||{};var V=!F,N=b[E][A];V&&(F=new bt);var X=F.len();F.reset(),w[E].d=MU(t,b[E],F);var K=F.len();if(!V&&X!==K){B=!1;break}N&&(w[E][A]=N)}if(!B)for(var E in w)delete w[E].d;if(!i)for(var D=0;D<x;D++){var M=_[D],I=M.targetName;I==="style"&&C(M,w,function(fe){return OU[fe]})}for(var Q=ie(w),ee=!0,j,D=1;D<Q.length;D++){var ce=Q[D-1],ye=Q[D];if(w[ce][so]!==w[ye][so]){ee=!1;break}j=w[ce][so]}if(ee&&j){for(var E in w)w[E][so]&&delete w[E][so];e[so]=j}if(Ee(Q,function(Fe){return ie(w[Fe]).length>0}).length){var He=HE(w,r);return He+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Eh();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function WE(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};YE(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.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=wo(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),YE(i,e,r,!0)}}function YE(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+Eh(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Nu=Math.round;function KE(t){return t&&U(t.src)}function jE(t){return t&&W(t.toDataURL)}function _0(t,e,r,i){d0(function(n,a){var o=n==="fill"||n==="stroke";o&&cf(a)?T0(e,t,n,i):o&&el(a)?w0(r,t,n,i):t[n]=a,o&&i.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),UU(r,t,i)}function x0(t,e){var r=Gv(e);r&&(r.each(function(i,n){i!=null&&(t[(g0+n).toLowerCase()]=i+"")}),e.isSilent()&&(t[g0+"silent"]="true"))}function XE(t){return ti(t[0]-1)&&ti(t[1])&&ti(t[2])&&ti(t[3]-1)}function PU(t){return ti(t[4])&&ti(t[5])}function S0(t,e,r){if(e&&!(PU(e)&&XE(e))){var i=r?10:1e4;t.transform=XE(e)?"translate("+Nu(e[4]*i)/i+" "+Nu(e[5]*i)/i+")":w_(e)}}function ZE(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(Nu(i[a][0]*r)/r),n.push(Nu(i[a][1]*r)/r);e.points=n.join(" ")}function qE(t){return!t.smooth}function RU(t){var e=z(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=Nu(s*n)/n)}}}var NU={circle:[RU(["cx","cy","r"])],polyline:[ZE,qE],polygon:[ZE,qE]};function kU(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function QE(t,e){var r=t.style,i=t.shape,n=NU[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&pf(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&kU(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,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(),v=t,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new Ah),d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=d.getStr()}return S0(a,t.transform),_0(a,r,t,e),x0(a,t),e.animation&&Ru(t,a,e),e.emphasis&&WE(t,a,e),Ke(s,t.id+"",a)}function BU(t,e){var r=t.style,i=r.image;if(i&&!U(i)&&(KE(i)?i=i.src:jE(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),S0(l,t.transform),_0(l,r,t,e),x0(l,t),e.animation&&Ru(t,l,e),Ke("image",t.id+"",l)}}function zU(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||Gt,a=r.x||0,o=A_(r.y||0,ia(n),r.textBaseline),s=C_[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Td(r)){var u="",f=r.fontStyle,c=bd(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||Nh,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: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),S0(l,t.transform),_0(l,r,t,e),x0(l,t),e.animation&&Ru(t,l,e),Ke("text",t.id+"",l,void 0,i)}}function b0(t,e){if(t instanceof ue)return QE(t,e);if(t instanceof dt)return BU(t,e);if(t instanceof ma)return zU(t,e)}function UU(t,e,r){var i=t.style;if(D_(i)){var n=E_(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=$i(i.shadowColor),v=h.opacity,d=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Ke("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ke("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),a[n]=o}e.filter=tl(o)}}function T0(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(uf(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(ff(n))a="radialGradient",o.cx=Y(n.x,.5),o.cy=Y(n.y,.5),o.r=Y(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=lf(s[u].offset)*100+"%",p=s[u].color,h=$i(p),v=h.color,d=h.opacity,m={offset:c};m["stop-color"]=v,d<1&&(m["stop-opacity"]=d),l.push(Ke("stop",u+"",m))}var g=Ke(a,"",o,l),y=Lu(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=Ke(a,x,o,l)),e[r]=tl(x)}function w0(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(_v(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,d=n.image;if(U(d)?v=d:KE(d)?v=d.src:jE(d)&&(v=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Be(p,m),Be(h,m)}else if(p==null||h==null){var g=function(D,M){if(D){var I=D.elm,E=p||M.width,O=h||M.height;D.tag==="pattern"&&(u?(O=1,E/=a.width):f&&(E=1,O/=a.height)),D.attrs.width=E,D.attrs.height=O,I&&(I.setAttribute("width",E),I.setAttribute("height",O))}},y=yl(v,null,t,function(D){l||g(b,D),g(c,D)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Ke("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=$(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=hf(n);S&&(o.patternTransform=S);var b=Ke("pattern","",o,[c]),w=Lu(b),A=i.patternCache,C=A[w];C||(C=i.zrId+"-p"+i.patternIdx++,A[w]=C,o.id=C,b=i.defs[C]=Ke("pattern",C,o,[c])),e[r]=tl(C)}}function JE(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=Ke("clipPath",a,o,[QE(t,r)])}e["clip-path"]=tl(a)}function C0(t){return document.createTextNode(t)}function kn(t,e,r){t.insertBefore(e,r)}function A0(t,e){t.removeChild(e)}function D0(t,e){t.appendChild(e)}function E0(t){return t.parentNode}function M0(t){return t.nextSibling}function Mh(t,e){t.textContent=e}var $E=58,VU=120,GU=Ke("","");function I0(t){return t===void 0}function xi(t){return t!==void 0}function HU(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function ku(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function Bu(t){var e,r=t.children,i=t.tag;if(xi(i)){var n=t.elm=Dh(i);if(Oh(GU,t),k(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&D0(n,Bu(a))}else xi(t.text)&&!H(t.text)&&D0(n,C0(t.text))}else t.elm=C0(t.text);return t.elm}function eM(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&kn(t,Bu(a),e)}}function Ih(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(xi(n.tag)){var a=E0(n.elm);A0(a,n.elm)}else A0(t,n.elm)}}function Oh(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==VU?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(zE,r,o):r.charCodeAt(3)===$E?i.setAttributeNS(UE,r,o):r.charCodeAt(5)===$E?i.setAttributeNS(m0,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function YU(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=r[++n]:f==null?f=r[--l]:ku(o,u)?(Us(o,u),o=e[++i],u=r[++n]):ku(s,f)?(Us(s,f),s=e[--a],f=r[--l]):ku(o,f)?(Us(o,f),kn(t,o.elm,M0(s.elm)),o=e[++i],f=r[--l]):ku(s,u)?(Us(s,u),kn(t,s.elm,o.elm),s=e[--a],u=r[++n]):(I0(c)&&(c=HU(e,i,a)),p=c[u.key],I0(p)?kn(t,Bu(u),o.elm):(h=e[p],h.tag!==u.tag?kn(t,Bu(u),o.elm):(Us(h,u),e[p]=void 0,kn(t,h.elm,o.elm))),u=r[++n]);(i<=a||n<=l)&&(i>a?(v=r[l+1]==null?null:r[l+1].elm,eM(t,v,r,n,l)):Ih(t,e,i,a))}function Us(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(Oh(t,e),I0(e.text)?xi(i)&&xi(n)?i!==n&&YU(r,i,n):xi(n)?(xi(t.text)&&Mh(r,""),eM(r,null,n,0,n.length-1)):xi(i)?Ih(r,i,0,i.length-1):xi(t.text)&&Mh(r,""):t.text!==e.text&&(xi(i)&&Ih(r,i,0,i.length-1),Mh(r,e.text)))}function O0(t,e){if(ku(t,e))Us(t,e);else{var r=t.elm,i=E0(r);Bu(e),i!==null&&(kn(i,e.elm,M0(r)),Ih(i,[t],0,0))}return e}var WU=0,XU=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=ZU("configLayer"),this.storage=r,this._opts=i=P({},i),this.root=e,this._id="zr"+WU++,this._oldVNode=y0(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Dh("svg");Oh(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.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",O0(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return b0(e,Pu(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=Pu(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=qU(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ke("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=z(ie(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(Ke("defs","defs",{},u)),e.animation){var f=FE(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ke("style","stl",{},[],f);o.push(c)}}return y0(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Lu(this.renderToVNode({animation:Y(e.cssAnimation,!0),emphasis:Y(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Y(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,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(p&&l&&p[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};JE(p[g],y,r);var _=Ke("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=b0(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display="none",e=Jm(n,0,i),r=Jm(n,1,i),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(el(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(),i="data:image/svg+xml;";return e?(r=M_(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function ZU(t){return function(){}}function qU(t,e,r,i){var n;if(r&&r!=="none")if(n=Ke("rect","bg",{width:t,height:e,x:"0",y:"0"}),cf(r))T0({fill:r},n.attrs,"fill",i);else if(el(r))w0({style:{fill:r},dirty:Me,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=$i(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var tM=XU;function L0(t){t.registerPainter("svg",tM)}yt([Ty,py,Iy,Xy,$y,o0,c0,L0]);var KU=ay;return oM(jU);})();
26
+ /*! Bundled license information:
27
+
28
+ tslib/tslib.es6.js:
29
+ (*! *****************************************************************************
30
+ Copyright (c) Microsoft Corporation.
31
+
32
+ Permission to use, copy, modify, and/or distribute this software for any
33
+ purpose with or without fee is hereby granted.
34
+
35
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
+ PERFORMANCE OF THIS SOFTWARE.
42
+ ***************************************************************************** *)
43
+
44
+ zrender/lib/zrender.js:
45
+ (*!
46
+ * ZRender, a high performance 2d drawing library.
47
+ *
48
+ * Copyright (c) 2013, Baidu Inc.
49
+ * All rights reserved.
50
+ *
51
+ * LICENSE
52
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
53
+ *)
54
+ */
55
+
56
+ return __DTC_ECHARTS
57
+ },
58
+ })