@qaecy/cue-ui 0.0.50 → 0.0.52

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 (108) hide show
  1. package/1138.js +1 -0
  2. package/1153.js +1 -0
  3. package/{247.js → 1247.js} +1 -1
  4. package/1338.js +1 -0
  5. package/1359.js +1 -0
  6. package/1520.js +1 -0
  7. package/1573.js +1 -0
  8. package/1931.js +1 -0
  9. package/1985.js +1 -0
  10. package/2245.js +1 -0
  11. package/2269.js +1 -0
  12. package/2312.js +1 -0
  13. package/2399.js +1 -0
  14. package/2724.js +1 -0
  15. package/2839.js +1 -0
  16. package/29.js +1 -0
  17. package/3036.js +1 -0
  18. package/3039.js +1 -0
  19. package/{418.js → 3418.js} +1 -1
  20. package/3523.js +1 -0
  21. package/4283.js +1 -0
  22. package/4284.js +1 -0
  23. package/4311.js +1 -0
  24. package/4613.js +1 -0
  25. package/4687.js +1 -0
  26. package/4879.js +1 -0
  27. package/503.js +1 -0
  28. package/5137.js +1 -0
  29. package/5187.js +1 -0
  30. package/5500.js +1 -0
  31. package/5559.js +1 -0
  32. package/5649.js +1 -0
  33. package/5738.js +1 -0
  34. package/5740.js +1 -0
  35. package/5872.js +1 -0
  36. package/617.js +1 -0
  37. package/63.js +1 -0
  38. package/6376.js +1 -0
  39. package/640.js +1 -0
  40. package/6419.js +1 -0
  41. package/6423.js +1 -0
  42. package/6586.js +1 -0
  43. package/6911.js +1 -0
  44. package/6947.js +1 -0
  45. package/7056.js +1 -0
  46. package/7247.js +1 -0
  47. package/7284.js +1 -0
  48. package/7441.js +1 -0
  49. package/7598.js +1 -0
  50. package/7719.js +1 -0
  51. package/804.js +1 -0
  52. package/8336.js +1 -0
  53. package/836.js +1 -1
  54. package/8560.js +1 -0
  55. package/8855.js +1 -0
  56. package/8957.js +1 -0
  57. package/9004.js +1 -0
  58. package/928.js +1 -1
  59. package/9396.js +1 -0
  60. package/9417.js +1 -0
  61. package/9443.js +1 -0
  62. package/9495.js +1 -0
  63. package/9695.js +1 -0
  64. package/9769.js +1 -0
  65. package/README.md +183 -0
  66. package/common.js +1 -1
  67. package/index.js +1 -1
  68. package/main.js +1 -1
  69. package/package.json +1 -1
  70. package/runtime.js +1 -1
  71. package/149.js +0 -1
  72. package/153.js +0 -1
  73. package/245.js +0 -1
  74. package/269.js +0 -1
  75. package/284.js +0 -1
  76. package/311.js +0 -1
  77. package/336.js +0 -1
  78. package/36.js +0 -1
  79. package/376.js +0 -1
  80. package/393.js +0 -1
  81. package/396.js +0 -1
  82. package/399.js +0 -1
  83. package/4.js +0 -1
  84. package/41.js +0 -1
  85. package/419.js +0 -1
  86. package/423.js +0 -1
  87. package/494.js +0 -1
  88. package/523.js +0 -1
  89. package/560.js +0 -1
  90. package/586.js +0 -1
  91. package/598.js +0 -1
  92. package/613.js +0 -1
  93. package/628.js +0 -1
  94. package/7.js +0 -1
  95. package/719.js +0 -1
  96. package/724.js +0 -1
  97. package/740.js +0 -1
  98. package/773.js +0 -1
  99. package/791.js +0 -1
  100. package/799.js +0 -1
  101. package/802.js +0 -1
  102. package/839.js +0 -1
  103. package/855.js +0 -1
  104. package/872.js +0 -1
  105. package/879.js +0 -1
  106. package/903.js +0 -1
  107. package/911.js +0 -1
  108. package/931.js +0 -1
package/423.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[423],{6756(hn,ut,N){N.d(ut,{BK:()=>L,In:()=>Oe,Kz:()=>jt,Mc:()=>$t,U6:()=>rt,g0:()=>dn,g8:()=>I,r:()=>M,u9:()=>Vt});const L=["#2B5DE6","#1A2B50","#C5E045","#6FA8FF","#00C2E0","#5847EB","#008585","#4ADE80","#0F4C81","#8B5CF6","#FACC15","#FB923C","#F43F5E","#E879F9","#D97706","#334155","#64748B","#94A3B8","#C7D2FE","#F8FAFC"];function M(H){switch(H){case"primary":default:return"#2859e1";case"accent":return"#e2f552";case"tertiary":return"#ffffff"}}function rt(H){switch(H){case"primary":default:return"#1744c2";case"accent":return"#b8cc3f";case"tertiary":return"#eeeeee"}}function I(H){const[he,j,$]=function Gt(H,he){if(void 0===H)return[];const $=window.getComputedStyle(H.nativeElement);return he.map(Re=>$.getPropertyValue(Re).trim()||"")}(H,["--cue-chart-text-color","--cue-chart-border-background-color","--chart-graph-edge-color"]);return{text:he,borderBackground:j,edgeColor:$}}const Vt={fontFamily:"Poppins, sans-serif",fontWeight:"normal",color:"#333"};function Oe(H){return H>=1e6?`${(H/1e6).toFixed(1)}m`:H>=1e3?`${(H/1e3).toFixed(0)}k`:H.toString()}function jt(H,he,j,$){if(1===$)return H;const Re=re(H),Qe=re(he),fe=j/($-1);return`rgb(${Math.round(Re.r+(Qe.r-Re.r)*fe)}, ${Math.round(Re.g+(Qe.g-Re.g)*fe)}, ${Math.round(Re.b+(Qe.b-Re.b)*fe)})`}const $t=(H,he)=>void 0===he?H:he.children??[];function dn(H,he,j=.05,$="Other"){const Re=H.reduce((ae,X)=>ae+le(X),0),Qe=[],fe=[];if(H.forEach(ae=>{let X,ne;X=void 0===ae.value&&Array.isArray(ae.children)&&ae.children.length>0?ae.children.reduce((G,Z)=>G+le(Z),0):void 0!==ae.value?ae.value:0,Array.isArray(ae.children)&&ae.children.length>0&&(ne=dn(ae.children,he,j,$));const W={...ae,value:X,children:ne};he&&Re>0&&X/Re<j?fe.push(W):Qe.push(W)}),he&&fe.length>0){const ae=fe.reduce((X,ne)=>X+ne.value,0);Qe.push({id:"__grouped_small__",name:$,value:ae,children:fe,isGroup:!0})}return Qe}function re(H){const he=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(H);return he?{r:parseInt(he[1],16),g:parseInt(he[2],16),b:parseInt(he[3],16)}:{r:0,g:0,b:0}}function le(H){return"number"==typeof H.value?H.value:Array.isArray(H.children)&&H.children.length>0?H.children.reduce((he,j)=>he+le(j),0):0}},7672(hn,ut,N){N.d(ut,{r:()=>uB});var L={};N.r(L),N.d(L,{EPSILON:()=>jT,HashMap:()=>Ad,RADIAN_TO_DEGREE:()=>Pd,assert:()=>Dr,assignProps:()=>xd,bind:()=>Pe,clone:()=>me,concatArray:()=>Ld,createCanvas:()=>WT,createHashMap:()=>ve,createObject:()=>Ei,curry:()=>Xe,defaults:()=>He,disableUserSelect:()=>Nl,each:()=>w,eqNaN:()=>Ii,extend:()=>k,filter:()=>Ye,find:()=>qT,guid:()=>Ol,hasOwn:()=>oe,indexOf:()=>xe,inherits:()=>kl,isArray:()=>V,isArrayLike:()=>gt,isBuiltInObject:()=>Bl,isDom:()=>Va,isFunction:()=>ce,isGradientObject:()=>Pi,isImagePatternObject:()=>wd,isNumber:()=>Be,isObject:()=>J,isPrimitive:()=>Ua,isRegExp:()=>XT,isString:()=>q,isStringSafe:()=>jo,isTypedArray:()=>wt,keys:()=>Le,logError:()=>Ko,map:()=>ie,merge:()=>Fe,mergeAll:()=>UT,mixin:()=>hr,noop:()=>ft,normalizeCssArray:()=>Qo,reduce:()=>vr,retrieve:()=>Ri,retrieve2:()=>te,retrieve3:()=>yn,setAsPrimitive:()=>Jo,slice:()=>$o,trim:()=>dr});var M={};N.r(M),N.d(M,{add:()=>Fl,applyTransform:()=>Ut,clone:()=>Id,copy:()=>$T,create:()=>Un,dist:()=>ns,distSquare:()=>Wn,distance:()=>rs,distanceSquare:()=>Od,div:()=>rb,dot:()=>nb,len:()=>Hl,lenSquare:()=>zl,length:()=>JT,lengthSquare:()=>eb,lerp:()=>as,max:()=>_n,min:()=>mn,mul:()=>tb,negate:()=>ab,normalize:()=>Ed,scale:()=>ts,scaleAndAdd:()=>QT,set:()=>es,sub:()=>Rd});var rt={};N.r(rt),N.d(rt,{clone:()=>Tb,copy:()=>Oi,create:()=>er,identity:()=>qn,invert:()=>Xn,mul:()=>Yn,rotate:()=>ss,scale:()=>zd,translate:()=>os});var I={};N.r(I),N.d(I,{fastLerp:()=>gp,fastMapToColor:()=>jb,lerp:()=>yp,lift:()=>sf,liftColor:()=>uf,lum:()=>Gi,mapToColor:()=>$b,modifyAlpha:()=>Qb,modifyHSL:()=>ys,parse:()=>qt,parseCssFloat:()=>Tn,parseCssInt:()=>ps,random:()=>Jb,stringify:()=>xn,toHex:()=>Kb});var Gt={};N.r(Gt),N.d(Gt,{dispose:()=>O1,disposeAll:()=>k1,getElementSSRData:()=>N1,getInstance:()=>B1,init:()=>Ef,registerPainter:()=>Wp,registerSSRDataGetter:()=>qp,version:()=>F1});var Vt={};N.r(Vt),N.d(Vt,{Arc:()=>bu,BezierCurve:()=>Ch,BoundingRect:()=>ye,Circle:()=>Cu,CompoundPath:()=>v0,Ellipse:()=>yh,Group:()=>Yt,HOVER_LAYER_FOR_INCREMENTAL:()=>x0,HOVER_LAYER_FROM_THRESHOLD:()=>b0,HOVER_LAYER_NO:()=>T0,Image:()=>Pn,IncrementalDisplayable:()=>_0,Line:()=>pi,LinearGradient:()=>p0,OrientedBoundingRect:()=>y0,Path:()=>Ne,Point:()=>de,Polygon:()=>Sh,Polyline:()=>To,RadialGradient:()=>g0,Rect:()=>vt,Ring:()=>_h,Sector:()=>Co,Text:()=>Je,WH:()=>C0,XY:()=>S0,applyTransform:()=>Ah,calcZ2Range:()=>wL,clipPointsByRect:()=>I0,clipRectByRect:()=>R0,createIcon:()=>Lu,decomposeTransform:()=>ML,ensureCopyRect:()=>xo,ensureCopyTransform:()=>Eh,expandOrShrinkRect:()=>Ph,extendPath:()=>D0,extendShape:()=>w0,getCurrentCanvasPainter:()=>AL,getShapeClass:()=>xh,getTransform:()=>L0,groupTransition:()=>TL,initProps:()=>In,isBoundingRectAxisAligned:()=>Rh,isElementRemoved:()=>ai,lineLineIntersect:()=>E0,linePolygonIntersect:()=>bL,makeImage:()=>wh,makePath:()=>Au,mergePath:()=>A0,payloadDisableAnimation:()=>DL,registerShape:()=>ur,removeElement:()=>dy,removeElementWithFadeOut:()=>gy,resizePath:()=>Dh,retrieveZInfo:()=>B0,setTooltipConfig:()=>bo,subPixelOptimize:()=>_L,subPixelOptimizeLine:()=>Mh,subPixelOptimizeRect:()=>mL,transformDirection:()=>SL,traverseElements:()=>k0,traverseUpdateZ:()=>N0,updateProps:()=>Sr});var Kt={};N.r(Kt),N.d(Kt,{createDimensions:()=>DI,createList:()=>oE,createScale:()=>uE,createSymbol:()=>ku,createTextStyle:()=>fE,dataStack:()=>sE,enableHoverEmphasis:()=>js,getECData:()=>Me,getLayoutRect:()=>an,mixinAxisModelCommonMethods:()=>lE});var Ae={};N.r(Ae),N.d(Ae,{MAX_SAFE_INTEGER:()=>K1,asc:()=>kf,getPercentWithPrecision:()=>X1,getPixelPrecision:()=>Y1,getPrecision:()=>Yr,getPrecisionSafe:()=>Zp,isNumeric:()=>$p,isRadianAroundZero:()=>Zi,linearMap:()=>ks,nice:()=>Ff,numericToNumber:()=>Zr,parseDate:()=>Xr,parsePercent:()=>qe,quantile:()=>Q1,quantity:()=>jp,quantityExponent:()=>Nf,reformIntervals:()=>J1,remRadian:()=>Bf,round:()=>q1});var Oe={};N.r(Oe),N.d(Oe,{format:()=>oo,parse:()=>Xr,roundTime:()=>iu});var jt={};N.r(jt),N.d(jt,{Arc:()=>bu,BezierCurve:()=>Ch,BoundingRect:()=>ye,Circle:()=>Cu,CompoundPath:()=>v0,Ellipse:()=>yh,Group:()=>Yt,Image:()=>Pn,IncrementalDisplayable:()=>_0,Line:()=>pi,LinearGradient:()=>p0,Polygon:()=>Sh,Polyline:()=>To,RadialGradient:()=>g0,Rect:()=>vt,Ring:()=>_h,Sector:()=>Co,Text:()=>Je,clipPointsByRect:()=>I0,clipRectByRect:()=>R0,createIcon:()=>Lu,extendPath:()=>D0,extendShape:()=>w0,getShapeClass:()=>xh,getTransform:()=>L0,initProps:()=>In,makeImage:()=>wh,makePath:()=>Au,mergePath:()=>A0,registerShape:()=>ur,resizePath:()=>Dh,updateProps:()=>Sr});var vn={};N.r(vn),N.d(vn,{addCommas:()=>Gc,capitalFirst:()=>FD,encodeHTML:()=>Dt,formatTime:()=>ND,formatTpl:()=>qc,getTextRect:()=>gE,getTooltipMarker:()=>Fy,normalizeCssArray:()=>so,toCamelCase:()=>Vc,truncateText:()=>Gx});var $t={};N.r($t),N.d($t,{bind:()=>Pe,clone:()=>me,curry:()=>Xe,defaults:()=>He,each:()=>w,extend:()=>k,filter:()=>Ye,indexOf:()=>xe,inherits:()=>kl,isArray:()=>V,isFunction:()=>ce,isObject:()=>J,isString:()=>q,map:()=>ie,merge:()=>Fe,reduce:()=>vr});var dn={};N.r(dn),N.d(dn,{Axis:()=>OE,ChartView:()=>sn,ComponentModel:()=>ze,ComponentView:()=>sr,List:()=>pv,Model:()=>et,PRIORITY:()=>L_,SeriesModel:()=>En,color:()=>I,connect:()=>rI,dataTool:()=>fI,dependencies:()=>FP,disConnect:()=>nI,disconnect:()=>W_,dispose:()=>aI,env:()=>Ce,extendChartView:()=>FE,extendComponentModel:()=>kE,extendComponentView:()=>BE,extendSeriesModel:()=>NE,format:()=>vn,getCoordinateSystemDimensions:()=>oI,getInstanceByDom:()=>iv,getInstanceById:()=>iI,getMap:()=>lI,graphic:()=>jt,helper:()=>Kt,init:()=>tI,innerDrawElementOnCanvas:()=>Vh,matrix:()=>rt,number:()=>Ae,parseGeoJSON:()=>KS,parseGeoJson:()=>KS,registerAction:()=>Oa,registerCoordinateSystem:()=>X_,registerCustomSeries:()=>sI,registerLayout:()=>Z_,registerLoading:()=>fv,registerLocale:()=>Ic,registerMap:()=>j_,registerPostInit:()=>q_,registerPostUpdate:()=>Y_,registerPreprocessor:()=>sv,registerProcessor:()=>uv,registerTheme:()=>ov,registerTransform:()=>$_,registerUpdateLifecycle:()=>Ku,registerVisual:()=>On,setCanvasCreator:()=>uI,setPlatformAPI:()=>Sd,throttle:()=>kh,time:()=>Oe,use:()=>kn,util:()=>$t,vector:()=>M,version:()=>NP,zrUtil:()=>L,zrender:()=>Gt});var re=N(7705),le=N(2271),H=N(5802),he=N(467),j=N(5547),$=N(9079),Re=N(2771),Qe=N(8359),fe=N(1413),ae=N(3236),X=N(4226),ne=N(9974),W=N(4360),G=N(8750),Se=N(1584);var xt=N(5558);const Qt=new H.nKC("NGX_ECHARTS_CONFIG");class Ll{constructor(){this.subject=new Re.m(1),this.subscriptions=new Qe.yU}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){const a=n[e].currentValue;null!=a&&r(a)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&r(n[e].currentValue)}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&!n[e].isFirstChange()&&r(n[e].currentValue)}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){const a=n[e].currentValue;null!=a&&r(a)}}))}}let AT=(()=>{class t{constructor(){this.el=(0,H.WQX)(j.aKT),this.ngZone=(0,H.WQX)(H.SKi),this.config=(0,H.WQX)(Qt),this.options=(0,re.hFB)(null),this.theme=(0,re.hFB)(this.config.theme??null),this.initOpts=(0,re.hFB)(null),this.merge=(0,re.hFB)(null),this.autoResize=(0,re.hFB)(!0),this.loading=(0,re.hFB)(!1),this.loadingType=(0,re.hFB)("default"),this.loadingOpts=(0,re.hFB)(null),this.chartInit=(0,re.CGW)(),this.optionsError=(0,re.CGW)(),this.chartClick=(0,$.p)(this.createLazyEvent("click")),this.chartDblClick=(0,$.p)(this.createLazyEvent("dblclick")),this.chartMouseDown=(0,$.p)(this.createLazyEvent("mousedown")),this.chartMouseMove=(0,$.p)(this.createLazyEvent("mousemove")),this.chartMouseUp=(0,$.p)(this.createLazyEvent("mouseup")),this.chartMouseOver=(0,$.p)(this.createLazyEvent("mouseover")),this.chartMouseOut=(0,$.p)(this.createLazyEvent("mouseout")),this.chartGlobalOut=(0,$.p)(this.createLazyEvent("globalout")),this.chartContextMenu=(0,$.p)(this.createLazyEvent("contextmenu")),this.chartHighlight=(0,$.p)(this.createLazyEvent("highlight")),this.chartDownplay=(0,$.p)(this.createLazyEvent("downplay")),this.chartSelectChanged=(0,$.p)(this.createLazyEvent("selectchanged")),this.chartLegendSelectChanged=(0,$.p)(this.createLazyEvent("legendselectchanged")),this.chartLegendSelected=(0,$.p)(this.createLazyEvent("legendselected")),this.chartLegendUnselected=(0,$.p)(this.createLazyEvent("legendunselected")),this.chartLegendLegendSelectAll=(0,$.p)(this.createLazyEvent("legendselectall")),this.chartLegendLegendInverseSelect=(0,$.p)(this.createLazyEvent("legendinverseselect")),this.chartLegendScroll=(0,$.p)(this.createLazyEvent("legendscroll")),this.chartDataZoom=(0,$.p)(this.createLazyEvent("datazoom")),this.chartDataRangeSelected=(0,$.p)(this.createLazyEvent("datarangeselected")),this.chartGraphRoam=(0,$.p)(this.createLazyEvent("graphroam")),this.chartGeoRoam=(0,$.p)(this.createLazyEvent("georoam")),this.chartTreeRoam=(0,$.p)(this.createLazyEvent("treeroam")),this.chartTimelineChanged=(0,$.p)(this.createLazyEvent("timelinechanged")),this.chartTimelinePlayChanged=(0,$.p)(this.createLazyEvent("timelineplaychanged")),this.chartRestore=(0,$.p)(this.createLazyEvent("restore")),this.chartDataViewChanged=(0,$.p)(this.createLazyEvent("dataviewchanged")),this.chartMagicTypeChanged=(0,$.p)(this.createLazyEvent("magictypechanged")),this.chartGeoSelectChanged=(0,$.p)(this.createLazyEvent("geoselectchanged")),this.chartGeoSelected=(0,$.p)(this.createLazyEvent("geoselected")),this.chartGeoUnselected=(0,$.p)(this.createLazyEvent("geounselected")),this.chartAxisAreaSelected=(0,$.p)(this.createLazyEvent("axisareaselected")),this.chartBrush=(0,$.p)(this.createLazyEvent("brush")),this.chartBrushEnd=(0,$.p)(this.createLazyEvent("brushend")),this.chartBrushSelected=(0,$.p)(this.createLazyEvent("brushselected")),this.chartGlobalCursorTaken=(0,$.p)(this.createLazyEvent("globalcursortaken")),this.chartRendered=(0,$.p)(this.createLazyEvent("rendered")),this.chartFinished=(0,$.p)(this.createLazyEvent("finished")),this.animationFrameID=null,this.chart$=new Re.m(1),this.resize$=new fe.B,this.changeFilter=new Ll,this.resizeObFired=!1,this.echarts=this.config.echarts}ngOnChanges(r){this.changeFilter.doFilter(r)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function ke(t,e=ae.E,r){const n=(0,Se.O)(t,e);return function Z(t,e){return(0,ne.N)((r,n)=>{const{leading:a=!0,trailing:i=!1}=e??{};let o=!1,s=null,u=null,l=!1;const f=()=>{u?.unsubscribe(),u=null,i&&(h(),l&&n.complete())},c=()=>{u=null,l&&n.complete()},v=d=>u=(0,G.Tg)(t(d)).subscribe((0,W._)(n,f,c)),h=()=>{if(o){o=!1;const d=s;s=null,n.next(d),!l&&v(d)}};r.subscribe((0,W._)(n,d=>{o=!0,s=d,(!u||u.closed)&&(a?h():v(d))},()=>{l=!0,(!(i&&o&&u)||u.closed)&&n.complete()}))})}(()=>n,r)}(100,ae.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize()&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(r=>{for(const n of r)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType(),this.loadingOpts()):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>r?n.showLoading(this.loadingType(),this.loadingOpts()):n.hideLoading())}setOption(r,n){if(this.chart)try{this.chart.setOption(r,n)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){var r=this;return(0,he.A)(function*(){r.dispose(),yield r.initChart()})()}createChart(){const r=this.el.nativeElement;if(window&&window.getComputedStyle){const n=window.getComputedStyle(r,null).getPropertyValue("height");(!n||"0px"===n)&&(!r.style.height||"0px"===r.style.height)&&(r.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(r,this.theme()??this.config?.theme,this.initOpts())))}initChart(){var r=this;return(0,he.A)(function*(){yield r.onOptionsChange(r.options());const n=r.merge();n&&r.chart&&r.setOption(n)})()}onOptionsChange(r){var n=this;return(0,he.A)(function*(){r&&(n.chart||(n.chart=yield n.createChart(),n.chart$.next(n.chart),n.chartInit.emit(n.chart)),n.setOption(n.options(),!0))})()}createLazyEvent(r){return(0,$.yC)(this.chartInit).pipe((0,xt.n)(n=>new X.c(a=>(n.on(r,i=>this.ngZone.run(()=>a.next(i))),()=>{this.chart&&(this.chart.isDisposed()||n.off(r))}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=j.FsC({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:[1,"options"],theme:[1,"theme"],initOpts:[1,"initOpts"],merge:[1,"merge"],autoResize:[1,"autoResize"],loading:[1,"loading"],loadingType:[1,"loadingType"],loadingOpts:[1,"loadingOpts"]},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[j.OA$]})}}return t})();function _d(t){return{provide:Qt,useValue:t}}let LT=(()=>{class t{static forRoot(r){return{ngModule:t,providers:[_d(r)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=j.$C({type:t})}static{this.\u0275inj=H.G2t({})}}return t})();var K=N(5215),PT=function(){return function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),pn=new(function(){return function t(){this.browser=new PT,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"}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(pn.wxa=!0,pn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?pn.worker=!0:!pn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(pn.node=!0,pn.svgSupported=!0):function RT(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);if(n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[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),e.domSupported=typeof document<"u"){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,pn);const Ce=pn;var gn="12px sans-serif",FT=function NT(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-20)/100;e[n]=a}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),lt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=lt.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||gn),t.measureText(r);r=r||"";var i=/((?:\d+)?\.?\d*)px/.exec(n=n||gn),o=i&&+i[1]||12,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=FT[r[u]];s+=null==l?o:l*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};function Sd(t){for(var e in lt)lt.hasOwnProperty(e)&&t[e]&&(lt[e]=t[e])}var Cd=vr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Td=vr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ga=Object.prototype.toString,Xo=Array.prototype,HT=Xo.forEach,zT=Xo.filter,Il=Xo.slice,GT=Xo.map,bd=function(){}.constructor,Zo=bd?bd.prototype:null,Rl="__proto__",El=2311,VT=Math.pow(2,53)-1;function Ol(){return El>=VT&&(El=0),El++}function Ko(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function me(t){if(null==t||"object"!=typeof t)return t;var e=t,r=Ga.call(t);if("[object Array]"===r){if(!Ua(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=me(t[n])}}else if(Td[r]){if(!Ua(t)){var i=t.constructor;if(i.from)e=i.from(t);else for(e=new i(t.length),n=0,a=t.length;n<a;n++)e[n]=t[n]}}else if(!Cd[r]&&!Ua(t)&&!Va(t))for(var o in e={},t)t.hasOwnProperty(o)&&o!==Rl&&(e[o]=me(t[o]));return e}function Fe(t,e,r){if(!J(e)||!J(t))return r?me(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Rl){var a=t[n],i=e[n];!J(i)||!J(a)||V(i)||V(a)||Va(i)||Va(a)||Bl(i)||Bl(a)||Ua(i)||Ua(a)?(r||!(n in t))&&(t[n]=me(e[n])):Fe(a,i,r)}return t}function UT(t,e){for(var r=t[0],n=1,a=t.length;n<a;n++)r=Fe(r,t[n],e);return r}function k(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Rl&&(t[r]=e[r]);return t}function xd(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var a=r[n];t[a]=e[a]}return t}function He(t,e,r){for(var n=Le(e),a=0,i=n.length;a<i;a++){var o=n[a];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var WT=lt.createCanvas;function xe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function kl(t,e){var r=t.prototype;function n(){}for(var a in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function hr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];"constructor"!==i&&(r?null!=e[i]:null==t[i])&&(t[i]=e[i])}else He(t,e,r)}function gt(t){return!(!t||"string"==typeof t)&&"number"==typeof t.length}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===HT)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function ie(t,e,r){if(!t)return[];if(!e)return $o(t);if(t.map&&t.map===GT)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function vr(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function Ye(t,e,r){if(!t)return[];if(!e)return $o(t);if(t.filter&&t.filter===zT)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function qT(t,e,r){if(t&&e)for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}function Le(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}var Pe=Zo&&ce(Zo.bind)?Zo.call.bind(Zo.bind):function YT(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Il.call(arguments)))}};function Xe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Il.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===Ga.call(t)}function ce(t){return"function"==typeof t}function q(t){return"string"==typeof t}function jo(t){return"[object String]"===Ga.call(t)}function Be(t){return"number"==typeof t}function J(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Bl(t){return!!Cd[Ga.call(t)]}function wt(t){return!!Td[Ga.call(t)]}function Va(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Pi(t){return null!=t.colorStops}function wd(t){return null!=t.image}function XT(t){return"[object RegExp]"===Ga.call(t)}function Ii(t){return t!=t}function Ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(null!=t[r])return t[r]}function te(t,e){return t??e}function yn(t,e,r){return t??e??r}function $o(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Il.apply(t,e)}function Qo(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Dr(t,e){if(!t)throw new Error(e)}function dr(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Dd="__ec_primitive__";function Jo(t){t[Dd]=!0}function Ua(t){return t[Dd]}var ZT=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 Le(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Md="function"==typeof Map,Ad=function(){function t(e){var r=V(e);this.data=function KT(){return Md?new Map:new ZT}();var n=this;function a(i,o){r?n.set(i,o):n.set(o,i)}e instanceof t?e.each(a):e&&w(e,a)}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return Md?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ve(t){return new Ad(t)}function Ld(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];var a=t.length;for(n=0;n<e.length;n++)r[n+a]=e[n];return r}function Ei(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&k(r,e),r}function Nl(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 ft(){}var Pd=180/Math.PI,jT=Number.EPSILON||Math.pow(2,-52);function Un(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function $T(t,e){return t[0]=e[0],t[1]=e[1],t}function Id(t){return[t[0],t[1]]}function es(t,e,r){return t[0]=e,t[1]=r,t}function Fl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function QT(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Rd(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Hl(t){return Math.sqrt(zl(t))}var JT=Hl;function zl(t){return t[0]*t[0]+t[1]*t[1]}var eb=zl;function tb(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function rb(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function nb(t,e){return t[0]*e[0]+t[1]*e[1]}function ts(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Ed(t,e){var r=Hl(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function rs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ns=rs;function Od(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Wn=Od;function ab(t,e){return t[0]=-e[0],t[1]=-e[1],t}function as(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Ut(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function mn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function _n(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Wa=function(){return function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}}(),ib=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 Wa(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new Wa(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Wa(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Wa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Wa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Wa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const ob=ib;var sb=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof r&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;null!=r&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var u={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,f=i[e][l];return f&&f.callAtLast?i[e].splice(l,0,u):i[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,u=0;u<s;u++){var l=a[u];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],u=a.length,l=0;l<u;l++){var f=a[l];if(!i||!i.filter||null==f.query||i.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))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const Mr=sb;var ub=Math.log(2);function Gl(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(1===e){var u=Math.round(Math.log((1<<s)-1&~a)/ub);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*t[r][v]*Gl(t,e-1,f,l,a|d,i),h++)}return i[o]=c,c}function kd(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=Gl(r,8,0,0,0,n);if(0!==a){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Gl(r,7,0===o?1:0,1<<o,1<<s,n)/a*e[o];return function(u,l,f){var c=l*i[6]+f*i[7]+1;u[0]=(l*i[0]+f*i[1]+i[2])/c,u[1]=(l*i[3]+f*i[4]+i[5])/c}}}var is="___zrEVENTSAVED",Vl=[];function Ul(t,e,r,n,a){if(e.getBoundingClientRect&&Ce.domSupported&&!Bd(e)){var i=e[is]||(e[is]={}),o=function cb(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),u=i%2,l=(i>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",a[l]+":0",n[1-u]+":auto",a[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}(e,i),s=function hb(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,v=f.left,h=f.top;o.push(v,h),u=u&&i&&v===i[c]&&h===i[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&a?a:(e.srcCoords=o,e[n]=r?kd(s,o):kd(o,s))}(o,i,a);if(s)return s(t,r,n),!0}return!1}function Bd(t){return"CANVAS"===t.nodeName.toUpperCase()}var vb=/([&<>"'])/g,db={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Dt(t){return null==t?"":(t+"").replace(vb,function(e,r){return db[r]})}var pb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wl=[],gb=Ce.browser.firefox&&+Ce.browser.version.split(".")[0]<39;function ql(t,e,r,n){return r=r||{},n?Nd(t,e,r):gb&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):Nd(t,e,r),r}function Nd(t,e,r){if(Ce.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Bd(t)){var i=t.getBoundingClientRect();return r.zrX=n-i.left,void(r.zrY=a-i.top)}if(Ul(Wl,t,n,a))return r.zrX=Wl[0],void(r.zrY=Wl[1])}r.zrX=r.zrY=0}function Yl(t){return t||window.event}function Jt(t,e,r){if(null!=(e=Yl(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&ql(t,o,e,r)}else{ql(t,e,e,r);var i=function yb(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*Math.abs(0!==n?n:r)*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&pb.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function _b(t,e,r,n){t.removeEventListener(e,r,n)}var Fd=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Sb=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var u=a[o],l=ql(n,u,{});i.points.push([l.zrX,l.zrY]),i.touches.push(u)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Xl)if(Xl.hasOwnProperty(r)){var n=Xl[r](this._track,e);if(n)return n}},t}();function Hd(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var Xl={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Hd(n)/Hd(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function Cb(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function er(){return[1,0,0,1,0,0]}function qn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Oi(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 Yn(t,e,r){var a=e[1]*r[0]+e[3]*r[1],i=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],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=e[0]*r[0]+e[2]*r[1],t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t}function os(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 ss(t,e,r,n){void 0===n&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=a*c+s*f,t[1]=-a*f+s*c,t[2]=i*c+u*f,t[3]=-i*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function zd(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Xn(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],u=r*o-i*n;return u?(t[0]=o*(u=1/u),t[1]=-i*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*a)*u,t[5]=(i*a-r*s)*u,t):null}function Tb(t){var e=[1,0,0,1,0,0];return Oi(e,t),e}var bb=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}();const de=bb;var Zn=Math.min,qa=Math.max,Zl=Math.abs,Gd=["x","y"],xb=["width","height"],Kn=new de,jn=new de,$n=new de,Qn=new de,Wt=Wd(),ki=Wt.minTv,Kl=Wt.maxTv,Bi=[0,0],Ur=function(){function t(e,r,n,a){jl(this,e,r,n,a)}return t.set=function(e,r,n,a,i){return a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),e.x=r,e.y=n,e.width=a,e.height=i,e},t.prototype.union=function(e){var r=Zn(e.x,this.x),n=Zn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?qa(e.x+e.width,this.x+this.width)-r:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?qa(e.y+e.height,this.y+this.height)-n:e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return wb([1,0,0,1,0,0],this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,a){n&&de.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=jl(Db,e.x,e.y,e.width,e.height)),r instanceof t||(r=jl(Mb,r.x,r.y,r.width,r.height));var s=!!n;Wt.reset(a,s);var u=Wt.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,v=e.y+e.height-u,h=r.x+u,d=r.x+r.width-u,g=r.y+u,p=r.y+r.height-u;if(l>f||c>v||h>d||g>p)return!1;var y=!(f<h||d<l||v<g||p<c);return(s||i)&&(Bi[0]=1/0,Bi[1]=0,Ud(l,f,h,d,0,s,i,o),Ud(c,v,g,p,1,s,i,o),s&&de.copy(n,y?Wt.useDir?Wt.dirMinTv:ki:Kl)),y},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Vd(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 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],s=n[5];return e.x=r.x*a+n[4],e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Kn.x=$n.x=r.x,Kn.y=Qn.y=r.y,jn.x=Qn.x=r.x+r.width,jn.y=$n.y=r.y+r.height,Kn.transform(n),Qn.transform(n),jn.transform(n),$n.transform(n),e.x=Zn(Kn.x,jn.x,$n.x,Qn.x),e.y=Zn(Kn.y,jn.y,$n.y,Qn.y);var u=qa(Kn.x,jn.x,$n.x,Qn.x),l=qa(Kn.y,jn.y,$n.y,Qn.y);e.width=u-e.x,e.height=l-e.y}else e!==r&&Vd(e,r)},t.calculateTransform=function(e,r,n){var a=n.width/r.width,i=n.height/r.height;return os(e=qn(e||[]),e,es($l,-r.x,-r.y)),zd(e,e,es($l,a,i)),os(e,e,es($l,n.x,n.y)),e},t}(),jl=Ur.set,Vd=Ur.copy,wb=Ur.calculateTransform,Db=new Ur(0,0,0,0),Mb=new Ur(0,0,0,0),$l=[];function Ud(t,e,r,n,a,i,o,s){var u=Zl(e-r),l=Zl(n-t),f=Zn(u,l),c=Gd[a],v=Gd[1-a],h=xb[a];e<r||n<t?u<l?(i&&(Kl[c]=-u),s&&(o[c]=e,o[h]=0)):(i&&(Kl[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=qa(t,r),o[h]=Zn(e,n)-o[c]),i&&(f<Bi[0]||Wt.useDir)&&(Bi[0]=Zn(f,Bi[0]),(u<l||!Wt.bidirectional)&&(ki[c]=u,ki[v]=0,Wt.useDir&&Wt.calcDirMTV()),(u>=l||!Wt.bidirectional)&&(ki[c]=-l,ki[v]=0,Wt.useDir&&Wt.calcDirMTV())))}function Wd(){var t=0,e=new de,r=new de,n={minTv:new de,maxTv:new de,useDir:!1,dirMinTv:new de,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&null!=i.touchThreshold&&(n.touchThreshold=qa(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&null!=i.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,u=Math.sin(t),l=Math.cos(t),f=u*i.y+l*i.x;a(f)?a(i.x)&&a(i.y)&&o.set(0,0):(r.x=s*l/f,r.y=s*u/f,a(r.x)&&a(r.y)?o.set(0,0):(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r))}};function a(i){return Zl(i)<1e-10}return n}const ye=Ur;function Lb(){Fd(this.event)}var Pb=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.handler=null,r}return(0,K.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Mr),Ni=function(){return function t(e,r){this.x=e,this.y=r}}(),Ib=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ql=new ye(0,0,0,0),Yd=function(t){function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new Ni(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new Pb,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new ob(s),s}return(0,K.C6)(e,t),e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(Ib,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=Zd(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var u=this._hovered=i?new Ni(n,a):this.findHover(n,a),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;"only_globalout"!==n&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==n&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ni(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){var i=(r=r||{}).target;if(!i||!i.silent){for(var o="on"+n,s=function Ab(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:Lb}}(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){"function"==typeof u[o]&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Ni(r,n);if(Xd(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ye(r-l,n-l,u,u),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ql.copy(v.getBoundingRect()),v.transform&&Ql.applyTransform(v.transform),Ql.intersect(f)&&s.push(v))}if(s.length)for(var d=Math.PI/12,g=2*Math.PI,p=0;p<l;p+=4)for(var y=0;y<g;y+=d)if(Xd(s,o,r+p*Math.cos(y),n+p*Math.sin(y),a),o.target)return o}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Sb);var a=this._gestureMgr;"start"===n&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===n&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Ni;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Mr);function Rb(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!a||"silent"}return!1}function Xd(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=Rb(o,r,n))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function Zd(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Yd.prototype[t]=function(e){var i,o,r=e.zrX,n=e.zrY,a=Zd(this,r,n);if(("mouseup"!==t||!a)&&(o=(i=this.findHover(r,n)).target),"mousedown"===t)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===t)this._upEl=o;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ns(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});const Eb=Yd;function jd(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;!function kb(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function $d(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var u,i=t[n],o=e,s=n;o<s;)a(i,t[u=o+s>>>1])<0?s=u:o=u+1;var l=n-o;switch(l){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(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=i}}function Jl(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])>0){for(s=n-a;u<s&&i(t,e[r+a+u])>0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}else{for(s=a+1;u<s&&i(t,e[r+a-u])<=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}for(o++;o<u;){var f=o+(u-o>>>1);i(t,e[r+f])>0?o=f+1:u=f}return u}function ef(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])<0){for(s=a+1;u<s&&i(t,e[r+a-u])<0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}else{for(s=n-a;u<s&&i(t,e[r+a+u])>=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}for(o++;o<u;){var f=o+(u-o>>>1);i(t,e[r+f])<0?u=f:o=f+1}return u}function us(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<32)return void $d(t,r,n,r+(i=jd(t,r,n,e)),e);var o=function Bb(t,e){var n,a,r=7,i=0,o=[];function f(h){var d=n[h],g=a[h],p=n[h+1],y=a[h+1];a[h]=g+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=ef(t[p],t,d,g,0,e);d+=m,0!==(g-=m)&&0!==(y=Jl(t[d+g-1],t,p,y,y-1,e))&&(g<=y?function c(h,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=t[h+y];var m=0,_=g,S=h;if(t[S++]=t[_++],0!==--p)if(1!==d){for(var T,x,D,C=r;;){T=0,x=0,D=!1;do{if(e(t[_],o[m])<0){if(t[S++]=t[_++],x++,T=0,0===--p){D=!0;break}}else if(t[S++]=o[m++],T++,x=0,1===--d){D=!0;break}}while((T|x)<C);if(D)break;do{if(0!==(T=ef(t[_],o,m,d,0,e))){for(y=0;y<T;y++)t[S+y]=o[m+y];if(S+=T,m+=T,(d-=T)<=1){D=!0;break}}if(t[S++]=t[_++],0===--p){D=!0;break}if(0!==(x=Jl(o[m],t,_,p,0,e))){for(y=0;y<x;y++)t[S+y]=t[_+y];if(S+=x,_+=x,0===(p-=x)){D=!0;break}}if(t[S++]=o[m++],1===--d){D=!0;break}C--}while(T>=7||x>=7);if(D)break;C<0&&(C=0),C+=2}if((r=C)<1&&(r=1),1===d){for(y=0;y<p;y++)t[S+y]=t[_+y];t[S+p]=o[m]}else{if(0===d)throw new Error;for(y=0;y<d;y++)t[S+y]=o[m+y]}}else{for(y=0;y<p;y++)t[S+y]=t[_+y];t[S+p]=o[m]}else for(y=0;y<d;y++)t[S+y]=o[m+y]}(d,g,p,y):function v(h,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=t[g+y];var m=h+d-1,_=p-1,S=g+p-1,C=0,T=0;if(t[S--]=t[m--],0!==--d)if(1!==p){for(var x=r;;){var D=0,b=0,A=!1;do{if(e(o[_],t[m])<0){if(t[S--]=t[m--],D++,b=0,0===--d){A=!0;break}}else if(t[S--]=o[_--],b++,D=0,1===--p){A=!0;break}}while((D|b)<x);if(A)break;do{if(0!==(D=d-ef(o[_],t,h,d,d-1,e))){for(d-=D,T=1+(S-=D),C=1+(m-=D),y=D-1;y>=0;y--)t[T+y]=t[C+y];if(0===d){A=!0;break}}if(t[S--]=o[_--],1===--p){A=!0;break}if(0!==(b=p-Jl(t[m],o,0,p,p-1,e))){for(p-=b,T=1+(S-=b),C=1+(_-=b),y=0;y<b;y++)t[T+y]=o[C+y];if(p<=1){A=!0;break}}if(t[S--]=t[m--],0===--d){A=!0;break}x--}while(D>=7||b>=7);if(A)break;x<0&&(x=0),x+=2}if((r=x)<1&&(r=1),1===p){for(T=1+(S-=d),C=1+(m-=d),y=d-1;y>=0;y--)t[T+y]=t[C+y];t[S]=o[_]}else{if(0===p)throw new Error;for(C=S-(p-1),y=0;y<p;y++)t[C+y]=o[y]}}else{for(T=1+(S-=d),C=1+(m-=d),y=d-1;y>=0;y--)t[T+y]=t[C+y];t[S]=o[_]}else for(C=S-(p-1),y=0;y<p;y++)t[C+y]=o[y]}(d,g,p,y))}return n=[],a=[],{mergeRuns:function u(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}},forceMergeRuns:function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}},pushRun:function s(h,d){n[i]=h,a[i]=d,i+=1}}}(t,e),s=function Ob(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((i=jd(t,r,n,e))<s){var u=a;u>s&&(u=s),$d(t,r,r+u,r+i,e),i=u}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(0!==a);o.forceMergeRuns()}}var Qd=!1;function tf(){Qd||(Qd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jd(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Nb=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jd}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,us(n,Jd)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=a,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(tf(),d.z=0),isNaN(d.z2)&&(tf(),d.z2=0),isNaN(d.zlevel)&&(tf(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array)for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);else{var a=xe(this._roots,e);a>=0&&this._roots.splice(a,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}();const Fb=Nb;var ep;ep=Ce.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const rf=ep;var ls={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},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;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ls.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ls.bounceIn(2*t):.5*ls.bounceOut(2*t-1)+.5}};const tp=ls;var fs=Math.pow,Sn=Math.sqrt,np=Sn(3),hs=1/3,Ar=Un(),tr=Un(),Xa=Un();function Cn(t){return t>-1e-8&&t<1e-8}function ap(t){return t>1e-8||t<-1e-8}function ct(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function ip(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function op(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-2*e+t),u=3*(e-t),l=t-a,f=s*s-3*o*u,c=s*u-9*o*l,v=u*u-3*s*l,h=0;if(Cn(f)&&Cn(c))Cn(s)?i[0]=0:(d=-u/s)>=0&&d<=1&&(i[h++]=d);else{var g=c*c-4*f*v;if(Cn(g)){var p=c/f,y=-p/2;(d=-s/o+p)>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var m=Sn(g),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);(d=(-s-((_=_<0?-fs(-_,hs):fs(_,hs))+(S=S<0?-fs(-S,hs):fs(S,hs))))/(3*o))>=0&&d<=1&&(i[h++]=d)}else{var C=(2*f*s-3*o*c)/(2*Sn(f*f*f)),T=Math.acos(C)/3,x=Sn(f),D=Math.cos(T),d=(-s-2*x*D)/(3*o),b=(y=(-s+x*(D+np*Math.sin(T)))/(3*o),(-s+x*(D-np*Math.sin(T)))/(3*o));d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),b>=0&&b<=1&&(i[h++]=b)}}return h}function sp(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Cn(o))ap(i)&&(l=-s/i)>=0&&l<=1&&(a[u++]=l);else{var f=i*i-4*o*s;if(Cn(f))a[0]=-i/(2*o);else if(f>0){var l,c=Sn(f),v=(-i-c)/(2*o);(l=(-i+c)/(2*o))>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}function vs(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,u=(n-r)*a+r,l=(s-o)*a+o,f=(u-s)*a+s,c=(f-l)*a+l;i[0]=t,i[1]=o,i[2]=l,i[3]=c,i[4]=c,i[5]=f,i[6]=u,i[7]=n}function up(t,e,r,n,a,i,o,s,u,l,f){var c,d,g,p,y,v=.005,h=1/0;Ar[0]=u,Ar[1]=l;for(var m=0;m<1;m+=.05)tr[0]=ct(t,r,a,o,m),tr[1]=ct(e,n,i,s,m),(p=Wn(Ar,tr))<h&&(c=m,h=p);h=1/0;for(var _=0;_<32&&!(v<1e-4);_++)g=c+v,tr[0]=ct(t,r,a,o,d=c-v),tr[1]=ct(e,n,i,s,d),p=Wn(tr,Ar),d>=0&&p<h?(c=d,h=p):(Xa[0]=ct(t,r,a,o,g),Xa[1]=ct(e,n,i,s,g),y=Wn(Xa,Ar),g<=1&&y<h?(c=g,h=y):v*=.5);return f&&(f[0]=ct(t,r,a,o,c),f[1]=ct(e,n,i,s,c)),Sn(h)}function Hb(t,e,r,n,a,i,o,s,u){for(var l=t,f=e,c=0,v=1/u,h=1;h<=u;h++){var d=h*v,g=ct(t,r,a,o,d),p=ct(e,n,i,s,d),y=g-l,m=p-f;c+=Math.sqrt(y*y+m*m),l=g,f=p}return c}function yt(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function lp(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function fp(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function ds(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function cp(t,e,r,n,a,i,o,s,u){var l,f=.005,c=1/0;Ar[0]=o,Ar[1]=s;for(var v=0;v<1;v+=.05)tr[0]=yt(t,r,a,v),tr[1]=yt(e,n,i,v),(h=Wn(Ar,tr))<c&&(l=v,c=h);c=1/0;for(var d=0;d<32&&!(f<1e-4);d++){var g=l-f,p=l+f;tr[0]=yt(t,r,a,g),tr[1]=yt(e,n,i,g);var h=Wn(tr,Ar);if(g>=0&&h<c)l=g,c=h;else{Xa[0]=yt(t,r,a,p),Xa[1]=yt(e,n,i,p);var y=Wn(Xa,Ar);p<=1&&y<c?(l=p,c=y):f*=.5}}return u&&(u[0]=yt(t,r,a,l),u[1]=yt(e,n,i,l)),Sn(c)}function Gb(t,e,r,n,a,i,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=yt(t,r,a,v),d=yt(e,n,i,v),g=h-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=h,u=d}return l}var Vb=/cubic-bezier\(([0-9,\.e ]+)\)/;function hp(t){var e=t&&Vb.exec(t);if(e){var r=e[1].split(","),n=+dr(r[0]),a=+dr(r[1]),i=+dr(r[2]),o=+dr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:op(0,n,i,1,u,s)&&ct(0,a,o,1,s[0])}}}var Ub=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||ft,this.ondestroy=e.ondestroy||ft,this.onrestart=e.onrestart||ft,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){var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-a%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=r},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ce(e)?e:tp[e]||hp(e)},t}();const Wb=Ub;var vp=function(){return function t(e){this.value=e}}(),qb=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new vp(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Yb=function(){function t(e){this._list=new qb,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(null==a[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete a[u.key],i=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new vp(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(null!=r)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Za=Yb;var dp={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 pr(t){return(t=Math.round(t))<0?0:t>255?255:t}function zi(t){return t<0?0:t>1?1:t}function ps(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?pr(parseFloat(e)/100*255):pr(parseInt(e,10))}function Tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?zi(parseFloat(e)/100):zi(parseFloat(e))}function nf(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function bn(t,e,r){return t+(e-t)*r}function rr(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function af(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var pp=new Za(20),gs=null;function Ka(t,e){gs&&af(gs,e),gs=pp.put(t,gs||e.slice())}function qt(t,e){if(t){e=e||[];var r=pp.get(t);if(r)return af(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in dp)return af(e,dp[n]),Ka(t,e),e;var i,a=n.length;if("#"===n.charAt(0))return 4===a||5===a?(i=parseInt(n.slice(1,4),16))>=0&&i<=4095?(rr(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(n.slice(4),16)/15:1),Ka(t,e),e):void rr(e,0,0,0,1):7===a||9===a?(i=parseInt(n.slice(1,7),16))>=0&&i<=16777215?(rr(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(n.slice(7),16)/255:1),Ka(t,e),e):void rr(e,0,0,0,1):void 0;var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===a){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(4!==l.length)return 3===l.length?rr(e,+l[0],+l[1],+l[2],1):rr(e,0,0,0,1);f=Tn(l.pop());case"rgb":return l.length>=3?(rr(e,ps(l[0]),ps(l[1]),ps(l[2]),3===l.length?f:Tn(l[3])),Ka(t,e),e):void rr(e,0,0,0,1);case"hsla":return 4!==l.length?void rr(e,0,0,0,1):(l[3]=Tn(l[3]),of(l,e),Ka(t,e),e);case"hsl":return 3!==l.length?void rr(e,0,0,0,1):(of(l,e),Ka(t,e),e);default:return}}rr(e,0,0,0,1)}}function of(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Tn(t[1]),a=Tn(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=2*a-i;return rr(e=e||[],pr(255*nf(o,i,r+1/3)),pr(255*nf(o,i,r)),pr(255*nf(o,i,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function sf(t,e){var r=qt(t);if(r){for(var n=0;n<3;n++)r[n]=e<0?r[n]*(1-e)|0:(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return xn(r,4===r.length?"rgba":"rgb")}}function Kb(t){var e=qt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function gp(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],u=n-a;return r[0]=pr(bn(o[0],s[0],u)),r[1]=pr(bn(o[1],s[1],u)),r[2]=pr(bn(o[2],s[2],u)),r[3]=zi(bn(o[3],s[3],u)),r}}var jb=gp;function yp(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=qt(e[a]),s=qt(e[i]),u=n-a,l=xn([pr(bn(o[0],s[0],u)),pr(bn(o[1],s[1],u)),pr(bn(o[2],s[2],u)),zi(bn(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}var $b=yp;function ys(t,e,r,n){var a=qt(t);if(t)return a=function Zb(t){if(t){var u,l,e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2;if(0===o)u=0,l=0;else{l=s<.5?o/(i+a):o/(2-i-a);var f=((i-e)/6+o/2)/o,c=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?u=v-c:r===i?u=1/3+f-v:n===i&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[360*u,l,s];return null!=t[3]&&h.push(t[3]),h}}(a),null!=e&&(a[0]=function Xb(t){return(t=Math.round(t))<0?0:t>360?360:t}(ce(e)?e(a[0]):e)),null!=r&&(a[1]=Tn(ce(r)?r(a[1]):r)),null!=n&&(a[2]=Tn(ce(n)?n(a[2]):n)),xn(of(a),"rgba")}function Qb(t,e){var r=qt(t);if(r&&null!=e)return r[3]=zi(e),xn(r,"rgba")}function xn(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(r+=","+t[3]),e+"("+r+")"}}function Gi(t,e){var r=qt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function Jb(){return xn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var mp=new Za(100);function uf(t){if(q(t)){var e=mp.get(t);return e||(e=sf(t,-.1),mp.put(t,e)),e}if(Pi(t)){var r=k({},t);return r.colorStops=ie(t.colorStops,function(n){return{offset:n.offset,color:sf(n.color,-.1)}}),r}return t}Math,typeof Buffer<"u"&&Buffer;var ff=Array.prototype.slice;function Wr(t,e,r){return(e-t)*r+t}function cf(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Wr(e[i],r[i],n);return t}function _s(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function Tp(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function o1(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function s1(t,e,r){var n=t,a=e;if(n.push&&a.push){var i=n.length,o=a.length;if(i!==o)if(i>o)n.length=o;else for(var u=i;u<o;u++)n.push(1===r?a[u]:ff.call(a[u]));var l=n[0]&&n[0].length;for(u=0;u<n.length;u++)if(1===r)isNaN(n[u])&&(n[u]=a[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=a[u][f])}}function Ui(t){if(gt(t)){var e=t.length;if(gt(t[0])){for(var r=[],n=0;n<e;n++)r.push(ff.call(t[n]));return r}return ff.call(t)}return t}function Ss(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function wp(t){return 4===t||5===t}function bs(t){return 1===t||2===t}var qi=[0,0,0,0],l1=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=6,u=r;if(gt(r)){var l=function u1(t){return gt(t&&t[0])?2:1}(r);s=l,(1===l&&!Be(r[0])||2===l&&!Be(r[0][0]))&&(o=!0)}else if(Be(r)&&!Ii(r))s=0;else if(q(r))if(isNaN(+r)){var f=qt(r);f&&(u=f,s=3)}else s=0;else if(Pi(r)){var c=k({},u);c.colorStops=ie(r.colorStops,function(h){return{offset:h.offset,color:qt(h.color)}}),function n1(t){return"linear"===t.type}(r)?s=4:function a1(t){return"radial"===t.type}(r)&&(s=5),u=c}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ce(n)?n:tp[n]||hp(n)),a.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,u=bs(a),l=wp(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==i-1?s1(v,h,a):l&&o1(v.colorStops,h.colorStops))}if(!s&&5!==a&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;var d=n[0].value;for(f=0;f<i;f++)0===a?n[f].additiveValue=n[f].value-d:3===a?n[f].additiveValue=_s([],n[f].value,d,-1):bs(a)&&(n[f].additiveValue=1===a?_s([],n[f].value,d,-1):Tp([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,h,d,n=null!=this._additiveTrack,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=3===i,c=this._lastFr,v=Math.min;if(1===s)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){for(f=v(c+1,s-1);f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,y=0===p?1:v((r-h.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?qi:e[u];if((bs(i)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)e[u]=y<1?h.rawValue:d.rawValue;else if(bs(i))1===i?cf(m,h[a],d[a],y):function i1(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Wr(e[o][s],r[o][s],n)}}(m,h[a],d[a],y);else if(wp(i)){var _=h[a],S=d[a],C=4===i;e[u]={type:C?"linear":"radial",x:Wr(_.x,S.x,y),y:Wr(_.y,S.y,y),colorStops:ie(_.colorStops,function(x,D){var b=S.colorStops[D];return{offset:Wr(x.offset,b.offset,y),color:Ss(cf([],x.color,b.color,y))}}),global:S.global},C?(e[u].x2=Wr(_.x2,S.x2,y),e[u].y2=Wr(_.y2,S.y2,y)):e[u].r=Wr(_.r,S.r,y)}else if(l)cf(m,h[a],d[a],y),n||(e[u]=Ss(m));else{var T=Wr(h[a],d[a],y);n?this._additiveValue=T:e[u]=T}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;0===r?e[n]=e[n]+a:3===r?(qt(e[n],qi),_s(qi,qi,a,1),e[n]=Ss(qi)):1===r?_s(e[n],e[n],a,1):2===r&&Tp(e[n],e[n],a,1)},t}(),f1=function(){function t(e,r,n,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a?Ko("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Le(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],u=i[s];if(!u){u=i[s]=new l1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];l=v&&v.value,3===f.valType&&l&&(l=Ss(l))}else l=this._target[s];if(null==l)continue;e>0&&u.addKeyframe(0,Ui(l),a),this._trackKeys.push(s)}u.addKeyframe(e,Ui(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(a,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Wb({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(p=0;p<n.length;p++)n[p].step(r._target,h);var y=r._onframeCbs;if(y)for(p=0;p<y.length;p++)y[p](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){this._clip&&(e&&this._clip.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 ie(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(o&&!o.isFinished()){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[i]=Ui(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Le(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const df=f1;function ja(){return(new Date).getTime()}var c1=function(t){function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(r=r||{}).stage||{},n}return(0,K.C6)(e,t),e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ja()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next;i.step(n,a)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0,rf(function n(){r._running&&(rf(n),!r._paused&&r.update())})},e.prototype.start=function(){this._running||(this._time=ja(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ja(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ja()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new df(r,n.loop);return this.addAnimator(a),a},e}(Mr);const h1=c1;var t,r,pf=Ce.domSupported,gf=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:ie(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a})}),Dp_mouse=["mousemove","mouseup"],Dp_pointer=["pointermove","pointerup"],Mp=!1;function yf(t){var e=t.pointerType;return"pen"===e||"touch"===e}function mf(t){t&&(t.zrByTouch=!0)}function Ap(t,e){for(var r=e,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var g1=function(){return function t(e,r){this.stopPropagation=ft,this.stopImmediatePropagation=ft,this.preventDefault=ft,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}}(),gr={mousedown:function(t){t=Jt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Jt(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=Jt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ap(this,(t=Jt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Mp=!0,t=Jt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Mp||(t=Jt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){mf(t=Jt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),gr.mousemove.call(this,t),gr.mousedown.call(this,t)},touchmove:function(t){mf(t=Jt(this.dom,t)),this.handler.processGesture(t,"change"),gr.mousemove.call(this,t)},touchend:function(t){mf(t=Jt(this.dom,t)),this.handler.processGesture(t,"end"),gr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&gr.click.call(this,t)},pointerdown:function(t){gr.mousedown.call(this,t)},pointermove:function(t){yf(t)||gr.mousemove.call(this,t)},pointerup:function(t){gr.mouseup.call(this,t)},pointerout:function(t){yf(t)||gr.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){gr[t]=function(e){e=Jt(this.dom,e),this.trigger(t,e)}});var _f={pointermove:function(t){yf(t)||_f.mousemove.call(this,t)},pointerup:function(t){_f.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 xs(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,function mb(t,e,r,n){t.addEventListener(e,r,n)}(t.domTarget,e,r,n)}function Sf(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&_b(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Lp=function(){return function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}}(),_1=function(t){function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Lp(r,gr),pf&&(a._globalHandlerScope=new Lp(document,_f)),function y1(t,e){var r=e.domHandlers;Ce.pointerEventsSupported?w(gf.pointer,function(n){xs(e,n,function(a){r[n].call(t,a)})}):(Ce.touchEventsSupported&&w(gf.touch,function(n){xs(e,n,function(a){r[n].call(t,a),function d1(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),w(gf.mouse,function(n){xs(e,n,function(a){a=Yl(a),e.touching||r[n].call(t,a)})}))}(a,a._localHandlerScope),a}return(0,K.C6)(e,t),e.prototype.dispose=function(){Sf(this._localHandlerScope),pf&&Sf(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,pf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?function m1(t,e){function r(n){xs(e,n,function a(i){i=Yl(i),Ap(t,i.target)||(i=function p1(t,e){return Jt(t.dom,new g1(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}Ce.pointerEventsSupported?w(Dp_pointer,r):Ce.touchEventsSupported||w(Dp_mouse,r)}(this,n):Sf(n)}},e}(Mr);const S1=_1;var Pp=1;Ce.hasGlobalWindow&&(Pp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ws=Pp,Tf="#333",bf="#ccc",Ip=qn;function Jn(t){return t>5e-5||t<-5e-5}var ea=[],$a=[],xf=[1,0,0,1,0,0],wf=Math.abs,Df=function(){function t(){}return t.prototype.getLocalTransform=function(e){return T1(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 Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;r||e?(n=n||[1,0,0,1,0,0],r?this.getLocalTransform(n):Ip(n),e&&(r?Yn(n,e,n):Oi(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],Xn(this.invTransform,n)):n&&(Ip(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(ea);var n=ea[0]<0?-1:1,a=ea[1]<0?-1:1,i=((ea[0]-n)*r+n)/ea[0]||0,o=((ea[1]-a)*r+a)/ea[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],Yn($a,e.invTransform,r),r=$a);var n=this.originX,a=this.originY;(n||a)&&(xf[4]=n,xf[5]=a,Yn($a,r,xf),$a[4]-=n,$a[5]-=a,r=$a),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&Ut(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&Ut(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&wf(e[0]-1)>1e-10&&wf(e[3]-1)>1e-10?Math.sqrt(wf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ds(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||u){var d=n+s,g=a+u;r[4]=-d*i-v*g*o,r[5]=-g*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,l&&ss(r,r,l),r[4]+=n+f,r[5]+=a+c,r},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t;var e}(),T1=Df.getLocalTransform,qr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ds(t,e){return xd(t,e,qr)}const Yi=Df;var Ms;function yr(t){Ms||(Ms=new Za(100));var e=Ms.get(t=t||gn);return e||(e={font:t,strWidthCache:new Za(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:lt.measureText("\u56fd",t).width,asciiCharWidth:lt.measureText("a",t).width},Ms.put(t,e)),e}var Mf=0;function Op(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function x1(t){if(!(Mf>=5)){t=t||gn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=lt.measureText(String.fromCharCode(n),t).width;var a=+new Date-r;return a>16?Mf=5:a>2&&Mf++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function mr(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=lt.measureText(e,t.font).width,r.put(e,n)),n}function kp(t,e,r,n){var a=mr(yr(e),t),i=As(e),o=Qa(0,a,r),s=ta(0,i,n);return new ye(o,s,a,i)}function Bp(t,e,r,n){var a=((t||"")+"").split("\n");if(1===a.length)return kp(a[0],e,r,n);for(var o=new ye(0,0,0,0),s=0;s<a.length;s++){var u=kp(a[s],e,r,n);0===s?o.copy(u):o.union(u)}return o}function Qa(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function ta(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function As(t){return yr(t).stWideCharWidth}function ra(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Np(t,e,r){var n=e.position||"inside",a=null!=e.distance?e.distance:5,i=r.height,o=r.width,s=i/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=ra(n[0],r.width),l+=ra(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=a,l+=s,f="right",c="middle";break;case"right":u+=a+o,l+=s,c="middle";break;case"top":u+=o/2,l-=a,f="center",c="bottom";break;case"bottom":u+=o/2,l+=i+a,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=a,l+=s,c="middle";break;case"insideRight":u+=o-a,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=a,f="center";break;case"insideBottom":u+=o/2,l+=i-a,f="center",c="bottom";break;case"insideTopLeft":u+=a,l+=a;break;case"insideTopRight":u+=o-a,l+=a,f="right";break;case"insideBottomLeft":u+=a,l+=i-a,c="bottom";break;case"insideBottomRight":u+=o-a,l+=i-a,f="right",c="bottom"}return(t=t||{}).x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var Af="__zr_normal__",Lf=qr.concat(["ignore"]),w1=vr(qr,function(t,e){return t[e]=!0,t},{ignore:!1}),Ja={},D1=new ye(0,0,0,0),Ls=[],Pf=function(){function t(e){this.id=Ol(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,u=!1;i.parent=a?this:null;var l=!1;i.copyTransform(r);var f=null!=n.position,c=n.autoOverflowArea,v=void 0;if((c||f)&&((v=D1).copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ja,n,v):Np(Ja,n,v),i.x=Ja.x,i.y=Ja.y,o=Ja.align,s=Ja.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,g=void 0;"center"===h?(d=.5*v.width,g=.5*v.height):(d=ra(h[0],v.width),g=ra(h[1],v.height)),l=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+g+(a?0:v.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new ye(0,0,0,0);i.getLocalTransform(Ls),Xn(Ls,Ls),ye.copy(m,v),m.applyTransform(Ls)}else y.overflowRect=null;var S=void 0,C=void 0,T=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(C=n.insideStroke,(null==(S=n.insideFill)||"auto"===S)&&(S=this.getInsideTextFill()),(null==C||"auto"===C)&&(C=this.getInsideTextStroke(S),T=!0)):(C=n.outsideStroke,(null==(S=n.outsideFill)||"auto"===S)&&(S=this.getOutsideFill()),(null==C||"auto"===C)&&(C=this.getOutsideStroke(S),T=!0)),((S=S||"#000")!==y.fill||C!==y.stroke||T!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(u=!0,y.fill=S,y.stroke=C,y.autoStroke=T,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=1,u&&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()?bf:Tf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof r&&qt(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,xn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){"textConfig"===e?this.setTextConfig(r):"textContent"===e?this.setTextContent(r):"clipPath"===e?this.setClipPath(r):"extra"===e?(this.extra=this.extra||{},k(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("string"==typeof e)this.attrKV(e,r);else if(J(e))for(var a=Le(e),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Af)){var o=a.targetName;a.saveTo(o?r[o]:r)}}},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,Lf)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];null!=e[i]&&!(i in r)&&(r[i]=this[i])}},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(Af,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Af;if(this.hasState()||!i){var s=this.currentStates,u=this.stateTransition;if(!(xe(s,e)>=0)||!r&&1!==s.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i)return void Ko("State "+e+" not exists.");i||this.saveCurrentToNormalState(l);var f=this._textContent,c=Hp(this,f,l,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,Gp(this,n,u),u);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),l}}},t.prototype.useStates=function(e,r,n){if(e.length){var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var u=0;u<o;u++)if(e[u]!==i[u]){s=!1;break}if(s)return;for(u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&a.push(f)}var v=this._textContent,h=Hp(this,v,a[o-1],n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Gp(this,r,g),g);var p=this._textGuide;v&&v.useStates(e,r,!!h),p&&p.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},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=xe(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=xe(a,e),o=xe(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n,r={},a=0;a<e.length;a++){var i=e[a];k(r,i),i.textConfig&&k(n=n||{},i.textConfig)}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){if(1!==this.__inHover){var s=!(r&&a);r&&r.textConfig?(this.textConfig=k({},a?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Lf.length;f++){var c=Lf[f],v=i&&w1[c];r&&null!=r[c]?v?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&null!=n[c]&&(v?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!i)for(f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,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 Yi,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(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|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=new df(e?this[e]:this,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=xe(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];e&&e!==s.scope?i.push(s):s.stop(r)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){If(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){If(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=If(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function a(i,o,s,u){function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(v){f[u]=v}})}Object.defineProperty(e,i,{get:function(){return this[o]||l(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();function If(t,e,r,n,a){var i=[];Fp(t,"",t,e,r=r||{},n,i,a);var o=i.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,--o<=0&&(s?u&&u():l&&l())},c=function(){--o<=0&&(s?u&&u():l&&l())};o||u&&u(),i.length>0&&r.during&&i[0].during(function(d,g){r.during(g)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function Rf(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function A1(t,e,r){if(gt(e[r]))if(gt(t[r])||(t[r]=[]),wt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Rf(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(function M1(t){return gt(t[0])}(a))for(var s=a[0].length,u=0;u<o;u++)i[u]?Rf(i[u],a[u],s):i[u]=Array.prototype.slice.call(a[u]);else Rf(i,a,o);i.length=a.length}else t[r]=e[r]}function Fp(t,e,r,n,a,i,o,s){for(var u=Le(n),l=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!J(i),d=t.animators,g=[],p=0;p<u.length;p++){var m=n[y=u[p]];if(null!=m&&null!=r[y]&&(h||i[y]))if(!J(m)||gt(m)||Pi(m))g.push(y);else{if(e){s||(r[y]=m,t.updateDuringAnimation(e));continue}Fp(t,y,r[y],m,a,i&&i[y],o,s)}else s||(r[y]=m,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!c&&_)for(var S=0;S<d.length;S++)if((C=d[S]).targetName===e&&C.stopTracks(g)){var x=xe(d,C);d.splice(x,1)}if(a.force||(g=Ye(g,function(R){return!function L1(t,e){return t===e||gt(t)&&gt(e)&&function P1(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}(n[R],r[R])}),_=g.length),_>0||a.force&&!o.length){var C,D=void 0,b=void 0,A=void 0;if(s)for(b={},v&&(D={}),S=0;S<_;S++)b[y=g[S]]=r[y],v?D[y]=n[y]:r[y]=n[y];else if(v)for(A={},S=0;S<_;S++){var y;A[y=g[S]]=Ui(r[y]),A1(r,n,y)}(C=new df(r,!1,!1,c?Ye(d,function(E){return E.targetName===e}):null)).targetName=e,a.scope&&(C.scope=a.scope),v&&D&&C.whenWithKeys(0,D,g),A&&C.whenWithKeys(0,A,g),C.whenWithKeys(l??500,s?b:n,g).delay(f||0),t.addAnimator(C,e),o.push(C)}}function Hp(t,e,r,n){return!(r&&r.hoverLayer||n)||zp(t)||e&&zp(e)?0:1}function zp(t){return"text"===t.type||"tspan"===t.type}function Gp(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}hr(Pf,Mr),hr(Pf,Yi);const Vp=Pf;var Up=function(t){function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return(0,K.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=xe(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=xe(a,r);return i<0||(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh()),this},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++)r.call(n,a[i],i);return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(r)},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(r)},e.prototype.getBoundingRect=function(r){for(var n=new ye(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var u=a[s];if(!u.ignore&&!u.invisible){var l=u.getBoundingRect(),f=u.getLocalTransform(i);f?(ye.applyTransform(n,l,f),(o=o||n.clone()).union(n)):(o=o||l.clone()).union(l)}}return o||n},e}(Vp);Up.prototype.type="group";const Yt=Up;var Of,Rs={},na={},E1=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new Fb,o=n.renderer||"canvas";Rs[o]||(o=Le(Rs)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Rs[o](r,i,n,e),u=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var h,l=Ce.node||Ce.worker||u?null:new S1(s.getViewportRoot(),s.root),f=n.useCoarsePointer;(null==f||"auto"===f?Ce.touchEventsSupported:!!f)&&(h=te(n.pointerSize,44)),this.handler=new Eb(i,s,l,s.root,h),this.animation=new h1({stage:{update:u?null:function(){return a._flush(!1)}}}),u||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=function R1(t){if(!t)return!1;if("string"==typeof t)return Gi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=Gi(e[a].color,1);return(r/=n)<.4}return!1}(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=ja(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(r=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:i}));var o=ja();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(this.painter.resize((e=e||{}).width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Yt&&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,function I1(t){delete na[t]}(this.id))},t}();function Ef(t,e){var r=new E1(Ol(),t,e);return na[r.id]=r,r}function O1(t){t.dispose()}function k1(){for(var t in na)na.hasOwnProperty(t)&&na[t].dispose();na={}}function B1(t){return na[t]}function Wp(t,e){Rs[t]=e}function N1(t){if("function"==typeof Of)return Of(t)}function qp(t){Of=t}var F1="6.1.0",Bt=Math.min,Ue=Math.max,mt=Math.abs,wn=Math.round,aa=Math.floor,Os=Math.ceil,ei=Math.pow,ia=Math.log,Xi=Math.LN10,G1=Math.PI,V1=Math.random;function ks(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],u=i-a,l=s-o;if(0===u)return 0===l?o:(o+s)/2;if(n)if(u>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/u*l+o}var qe=function U1(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%"}return function W1(t,e,r){return q(t)?function Xp(t){return!!function z1(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)}(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):null==t?NaN:+t}(t,e,r)};function ht(t,e,r){return isNaN(e)?r?""+t:+t:(e=Bt(Ue(0,e),20),t=(+t).toFixed(e),r?t:+t)}function q1(t,e,r){return null==e&&(e=10),ht(t,e,r)}function kf(t){return t.sort(function(e,r){return e-r}),t}function Yr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,r=0;r<15;r++,e*=10)if(wn(t*e)/e===t)return r;return Zp(t)}function Zp(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf(".");return Ue(0,(i<0?0:a-1-i)-n)}function Y1(t,e){var r=aa(ia(t[1]-t[0])/Xi),n=wn(ia(mt(e[1]-e[0]))/Xi),a=Bt(Ue(-r+n,0),20);return isFinite(a)?a:20}function X1(t,e,r){return t[e]&&Kp(t,r)[e]||0}function Kp(t,e){var r=vr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(0===r)return[];for(var n=ei(10,e),a=ie(t,function(h){return(isNaN(h)?0:h)/r*n*100}),i=100*n,o=ie(a,function(h){return aa(h)}),s=vr(o,function(h,d){return h+d},0),u=ie(a,function(h,d){return h-o[d]});s<i;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,v=u.length;c<v;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return ie(o,function(h){return h/n})}function Z1(t,e){var r=Ue(Yr(t),Yr(e)),n=t+e;return r>20?n:ht(n,r)}var K1=ei(2,53)-1;function Bf(t){var e=2*G1;return(t%e+e)%e}function Zi(t){return t>-1e-4&&t<1e-4}var j1=/^(?:(\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 Xr(t){if(t instanceof Date)return t;if(q(t)){var e=j1.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(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))}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)}return null==t?new Date(NaN):new Date(wn(t))}function jp(t){return ei(10,Nf(t))}function Nf(t){if(0===t)return 0;var e=aa(ia(t)/Xi);return t/ei(10,e)>=10&&e++,e}function Ff(t,e){var r=Nf(t),n=ei(10,r),a=t/n;return ht(t=(2===e?1:e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*n,-r)}function Q1(t,e){var r=(t.length-1)*e+1,n=aa(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function J1(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Zr(t){var e=parseFloat(t);return e==t&&(0!==e||!q(t)||t.indexOf("x")<=0)?e:NaN}function $p(t){return!isNaN(Zr(t))}function Hf(){return wn(9*V1())}function Qp(t,e){return 0===e?t:Qp(e,t%e)}function Jp(t,e){return null==t?e:null==e?t:t*e/Qp(t,e)}function Kr(t){return null!=t&&isFinite(t)}function eg(t,e,r){return(e-t)*r+t}var tg="series\0";function nt(t){return t instanceof Array?t:null==t?[]:[t]}function zf(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var ng=["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 Ki(t){return!J(t)||V(t)||t instanceof Date?t:t.value}function ox(t){return J(t)&&!(t instanceof Array)}function ag(t,e,r){var n="normalMerge"===r,a="replaceMerge"===r,i="replaceAll"===r;t=t||[],e=(e||[]).slice();var o=ve();w(e,function(u,l){J(u)||(e[l]=null)});var s=function sx(t,e,r){var n=[];if("replaceAll"===r)return n;for(var a=0;a<t.length;a++){var i=t[a];i&&null!=i.id&&e.set(i.id,a),n.push({existing:"replaceMerge"===r||$i(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}(t,o,r);return(n||a)&&function ux(t,e,r,n){w(n,function(a,i){if(a&&null!=a.id){var o=ji(a.id),s=r.get(o);if(null!=s){var u=t[s];Dr(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=e[s],n[i]=null}}})}(s,t,o,e),n&&function lx(t,e){w(e,function(r,n){if(r&&null!=r.name)for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(null==i.id||null==r.id)&&!$i(r)&&!$i(i)&&ig("name",i,r))return t[a].newOption=r,void(e[n]=null)}})}(s,e),n||a?function fx(t,e,r){w(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||$i(a.existing)||a.existing&&null!=n.id&&!ig("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}(s,e,a):i&&function cx(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function hx(t){var e=ve();w(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),w(t,function(r){var n=r.newOption;Dr(!n||null==n.id||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(J(i)){if(o.name=null!=i.name?ji(i.name):a?a.name:tg+n,a)o.id=ji(a.id);else if(null!=i.id)o.id=ji(i.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,r)}})}(s),s}function ig(t,e,r){var n=Mt(e[t],null),a=Mt(r[t],null);return null!=n&&null!=a&&n===a}function ji(t){return Mt(t,"")}function Mt(t,e){return null==t?e:q(t)?t:Be(t)||jo(t)?t+"":e}function Gf(t){var e=t.name;return!(!e||!e.indexOf(tg))}function $i(t){return t&&null!=t.id&&0===ji(t.id).indexOf("\0_ec_\0")}function Qi(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?V(e.dataIndex)?ie(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?V(e.name)?ie(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name):void 0}function we(){var t="__ec_inner_"+px++;return function(e){return e[t]||(e[t]={})}}var px=Hf();function Vf(t,e,r){var n=Uf(e,r),i=n.queryOptionMap,s=n.others,u=r?r.defaultMainType:null;return!n.mainTypeSpecified&&u&&i.set(u,{}),i.each(function(l,f){var c=Ji(t,f,l,{useDefault:u===f,enableAll:!r||null==r.enableAll||r.enableAll,enableNone:!r||null==r.enableNone||r.enableNone});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Uf(t,e){var r;if(q(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=ve(),i={},o=!1;return w(r,function(s,u){if("dataIndex"!==u&&"dataIndexInside"!==u){var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();!f||!c||e&&e.includeMainTypes&&xe(e.includeMainTypes,f)<0||(o=o||!!f,(a.get(f)||a.set(f,{}))[c]=s)}else i[u]=s}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Dn={useDefault:!0,enableAll:!1,enableNone:!1};function Ji(t,e,r,n){n=n||Dn;var a=r.index,i=r.id,o=r.name,s={models:null,specified:null!=a||null!=i||null!=o};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if("none"===a||!1===a){if(n.enableNone)return s.models=[],s;a=-1}return"all"===a&&(a=n.enableAll?i=o=null:-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function og(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function jr(){return[1/0,-1/0]}function sg(t,e){$r(e)&&e<t[0]&&(t[0]=e)}function ug(t,e){$r(e)&&e>t[1]&&(t[1]=e)}function $r(t){return null!=t&&isFinite(t)}function eo(t,e){return $r(t)&&$r(e)&&t<=e}!function(){function t(){}t.prototype.reset=function(e,r,n,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=n??(a>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)}}();var bx=Hf();function Wf(t,e,r){var n=ve(),a=0;w(t,function(i){var o=e(i),s=n.get(o)||0;r&&r(i,s),!s&&!r&&(t[a++]=i),n.set(o,s+1)}),r||(t.length=a)}function xx(t){return t.value+""}function Dx(t){return t+""}function qf(t){return{overallReset:t}}var oa="___EC__COMPONENT__CONTAINER___",lg="___EC__EXTENDED_CLASS___";function Lr(t){var e={main:"",sub:""};if(t){var r=t.split(".");e.main=r[0]||"",e.sub=r[1]||""}return e}function Yf(t,e){t.$constructor=t,t.extend=function(r){var a,n=this;return function Rx(t){return ce(t)&&/^class\s/.test(Function.prototype.toString.call(t))}(n)?a=function(i){function o(){return i.apply(this,arguments)||this}return(0,K.C6)(o,i),o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},kl(a,this)),k(a.prototype,r),a[lg]=!0,a.extend=this.extend,a.superCall=kx,a.superApply=Bx,a.superClass=n,a}}function fg(t,e){t.extend=e.extend}var Ex=Math.round(10*Math.random());function kx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function Bx(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Bs(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){(function Px(t){Dr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(a),n.prototype.type=a;var i=Lr(a);if(i.sub){if(i.sub!==oa){var o=function r(n){var a=e[n.main];return(!a||!a[oa])&&((a=e[n.main]={})[oa]=!0),a}(i);o[i.sub]=n}}else e[i.main]=n}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[oa]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=Lr(n),i=[],o=e[a.main];return o&&o[oa]?w(o,function(s,u){u!==oa&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=Lr(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return w(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=Lr(n),i=e[a.main];return i&&i[oa]}}function to(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(a&&xe(a,u)>=0||i&&xe(i,u)<0)){var l=n.getShallow(u,e);null!=l&&(o[t[s][0]]=l)}}return o}}var Fx=to([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Hx=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Fx(this,e,r)},t}(),Xf=new Za(50);function zx(t){if("string"==typeof t){var e=Xf.get(t);return e&&e.image}return t}function cg(t,e,r,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var i=Xf.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?!Ns(e=i.image)&&i.pending.push(o):((e=lt.loadImage(t,hg,hg)).__zrImageSrc=t,Xf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function hg(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Ns(t){return t&&t.width&&t.height}var Zf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Gx(t,e,r,n,a){var i={};return vg(i,t,e,r,n,a),i.text}function vg(t,e,r,n,a,i){if(!r)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");i=dg(r,n,a,i);for(var s=!1,u={},l=0,f=o.length;l<f;l++)pg(u,o[l],i),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function dg(t,e,r,n){var a=k({},n=n||{});r=te(r,"..."),a.maxIterations=te(n.maxIterations,2);var i=a.minChar=te(n.minChar,0),o=a.fontMeasureInfo=yr(e),s=o.asciiCharWidth;a.placeholder=te(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<i&&u>=s;l++)u-=s;var f=mr(o,r);return f>u&&(r="",f=0),u=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=u,a.containerWidth=t,a}function pg(t,e,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n)return t.textLine="",void(t.isTruncated=!1);var o=mr(i,e);if(o<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var u=0===s?Vx(e,a,i):o>0?Math.floor(e.length*a/o):0;o=mr(i,e=e.substr(0,u))}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Vx(t,e,r){for(var n=0,a=0,i=t.length;a<i&&n<e;a++)n+=Op(r,t.charCodeAt(a));return a}var Wx=function(){return function t(){}}(),gg=function(){return function t(e){this.tokens=[],e&&(this.tokens=e)}}(),qx=function(){return 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}}();function Kf(t,e,r,n,a){var f,c,i=""===e,o=a&&r.rich[a]||{},s=t.lines,u=o.font||r.font,l=!1;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(null!=o.width&&"auto"!==o.width){var d=ra(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split("\n"),l=!0),n.accumWidth=d}else{var g=yg(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}f||(f=e.split("\n"));for(var p=yr(u),y=0;y<f.length;y++){var m=f[y],_=new Wx;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,_.width="number"==typeof o.width?o.width:c?c[y]:mr(p,m),y||l)s.push(new gg([_]));else{var S=(s[s.length-1]||(s[0]=new gg)).tokens,C=S.length;1===C&&S[0].isLineHolder?S[0]=_:(m||!C||i)&&S.push(_)}}}var Zx=vr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Kx(t){return!function Xx(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Zx[t]}function yg(t,e,r,n,a){for(var i=[],o=[],s="",u="",l=0,f=0,c=yr(e),v=0;v<t.length;v++){var h=t.charAt(v);if("\n"!==h){var d=Op(c,h.charCodeAt(0)),g=!n&&!Kx(h);(i.length?f+d>r:a+f+d>r)?f?(s||u)&&(g?(s||(s=u,u="",f=l=0),i.push(s),o.push(f-l),u+=h,s="",f=l+=d):(u&&(s+=u,u="",l=0),i.push(s),o.push(f),s=h,f=d)):g?(i.push(u),o.push(l),u=h,l=d):(i.push(h),o.push(d)):(f+=d,g?(u+=h,l+=d):(u&&(s+=u,u="",l=0),s+=h))}else u&&(s+=u,f+=l),i.push(s),o.push(f),s="",u="",l=0,f=0}return u&&(s+=u),s&&(i.push(s),o.push(f)),1===i.length&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function mg(t,e,r,n,a,i){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ye.set(_g,Qa(r,o,a),ta(n,s,i),o,s),ye.intersect(e,_g,null,Sg);var u=Sg.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=Qa(u.x,u.width,a,!0),t.baseY=ta(u.y,u.height,i,!0)}}var _g=new ye(0,0,0,0),Sg={outIntersectRect:{},clamp:!0};function jf(t){return null!=t?t+="":t=""}function $f(t,e,r,n){var a=new ye(Qa(t.x||0,e,t.textAlign),ta(t.y||0,r,t.textBaseline),e,r),i=n??(Cg(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function Cg(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Qf="__zr_style_"+Math.round(10*Math.random()),sa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sa[Qf]=!0;var Tg=["z","z2","invisible"],$x=["invisible"],Qx=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype._init=function(r){for(var n=Le(r),a=0;a<n.length;a++){var i=n[a];"style"===i?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function Jx(t,e,r){return Jf.copy(t.getBoundingRect()),t.transform&&Jf.applyTransform(t.transform),ec.width=e,ec.height=r,!Jf.intersect(ec)}(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n);return this.getBoundingRect().contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,u=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(r,a,n):r.copy(a),(o||s||u)&&(r.width+=2*o+Math.abs(s),r.height+=2*o+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+2*l),r.height=Math.ceil(r.height+1+2*l))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ye(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){"style"===r?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){"style"!==r?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return"string"==typeof r?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(r){return Ei(sa,r)},e.prototype.useStyle=function(r){r[Qf]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Qf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Tg)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var f,u=!(n&&i),l=1===this.__inHover;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):u&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var v=Le(c),h=0;h<v.length;h++)(d=v[h])in f&&(f[d]=f[d],this.style[d]=c[d]);var g=Le(f);for(h=0;h<g.length;h++)this.style[d=g[h]]=this.style[d];this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l){var p=this.__inHover?$x:Tg;for(h=0;h<p.length;h++){var d=p[h];n&&null!=n[d]?this[d]=n[d]:u&&null!=a[d]&&(this[d]=a[d])}}},e.prototype._mergeStates=function(r){for(var a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.style&&this._mergeStyle(a=a||{},o.style)}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return k(r,n),r},e.prototype.getAnimationStyleProps=function(){return Fs},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=3}(),e}(Vp),Jf=new ye(0,0,0,0),ec=new ye(0,0,0,0);const ua=Qx;var Nt=Math.min,Ft=Math.max,tc=Math.sin,rc=Math.cos,la=2*Math.PI,Hs=Un(),zs=Un(),Gs=Un();function bg(t,e,r,n,a,i){a[0]=Nt(t,r),a[1]=Nt(e,n),i[0]=Ft(t,r),i[1]=Ft(e,n)}var xg=[],wg=[];function ew(t,e,r,n,a,i,o,s,u,l){var f=sp,c=ct,v=f(t,r,a,o,xg);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,a,o,xg[h]);u[0]=Nt(d,u[0]),l[0]=Ft(d,l[0])}for(v=f(e,n,i,s,wg),h=0;h<v;h++){var g=c(e,n,i,s,wg[h]);u[1]=Nt(g,u[1]),l[1]=Ft(g,l[1])}u[0]=Nt(t,u[0]),l[0]=Ft(t,l[0]),u[0]=Nt(o,u[0]),l[0]=Ft(o,l[0]),u[1]=Nt(e,u[1]),l[1]=Ft(e,l[1]),u[1]=Nt(s,u[1]),l[1]=Ft(s,l[1])}function tw(t,e,r,n,a,i,o,s){var u=fp,l=yt,f=Ft(Nt(u(t,r,a),1),0),c=Ft(Nt(u(e,n,i),1),0),v=l(t,r,a,f),h=l(e,n,i,c);o[0]=Nt(t,a,v),o[1]=Nt(e,i,h),s[0]=Ft(t,a,v),s[1]=Ft(e,i,h)}function rw(t,e,r,n,a,i,o,s,u){var l=mn,f=_n,c=Math.abs(a-i);if(c%la<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-n,u[0]=t+r,void(u[1]=e+n);if(Hs[0]=rc(a)*r+t,Hs[1]=tc(a)*n+e,zs[0]=rc(i)*r+t,zs[1]=tc(i)*n+e,l(s,Hs,zs),f(u,Hs,zs),(a%=la)<0&&(a+=la),(i%=la)<0&&(i+=la),a>i&&!o?i+=la:a<i&&o&&(a+=la),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Gs[0]=rc(h)*r+t,Gs[1]=tc(h)*n+e,l(s,Gs,s),f(u,Gs,u))}var Ie={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],ca=[],Pr=[],Mn=[],Ir=[],Rr=[],nc=Math.min,ac=Math.max,ha=Math.cos,va=Math.sin,Qr=Math.abs,ic=Math.PI,An=2*ic,oc=typeof Float32Array<"u",ro=[];function sc(t){return Math.round(t/ic*1e8)/1e8%2*ic}function Dg(t,e){var r=sc(t[0]);r<0&&(r+=An);var a=t[1];a+=r-t[0],!e&&a-r>=An?a=r+An:e&&r-a>=An?a=r-An:!e&&r>a?a=r+(An-sc(r-a)):e&&r<a&&(a=r-(An-sc(a-r))),t[0]=r,t[1]=a}var nw=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){(n=n||0)>0&&(this._ux=Qr(n/ws/e)||0,this._uy=Qr(n/ws/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(Ie.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Qr(e-this._xi),a=Qr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Ie.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(Ie.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Ie.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){return this._drawPendingPt(),ro[0]=a,ro[1]=i,Dg(ro,o),this.addData(Ie.A,e,r,n,n,a=ro[0],(i=ro[1])-a,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=ha(i)*n+e,this._yi=va(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Ie.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ie.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;(!this.data||this.data.length!==r)&&oc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();var o=this.data;if(oc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(i=0;i<r;i++){var u=e[i].data;for(s=0;s<u.length;s++)this.data[a++]=u[s]}this._len=a}},t.prototype.addData=function(e,r,n,a,i,o,s,u,l){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,oc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Pr[0]=Pr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,Mn[0]=Mn[1]=Rr[0]=Rr[1]=-Number.MAX_VALUE;var o,e=this.data,r=0,n=0,a=0,i=0;for(o=0;o<this._len;){var s=e[o++],u=1===o;switch(u&&(a=r=e[o],i=n=e[o+1]),s){case Ie.M:r=a=e[o++],n=i=e[o++],Ir[0]=a,Ir[1]=i,Rr[0]=a,Rr[1]=i;break;case Ie.L:bg(r,n,e[o],e[o+1],Ir,Rr),r=e[o++],n=e[o++];break;case Ie.C:ew(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ir,Rr),r=e[o++],n=e[o++];break;case Ie.Q:tw(r,n,e[o++],e[o++],e[o],e[o+1],Ir,Rr),r=e[o++],n=e[o++];break;case Ie.A:var l=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var g=!e[o++];u&&(a=ha(h)*c+l,i=va(h)*v+f),rw(l,f,c,v,h,d,g,Ir,Rr),r=ha(d)*c+l,n=va(d)*v+f;break;case Ie.R:bg(a=r=e[o++],i=n=e[o++],a+e[o++],i+e[o++],Ir,Rr);break;case Ie.Z:r=a,n=i}mn(Pr,Pr,Ir),_n(Mn,Mn,Rr)}return 0===o&&(Pr[0]=Pr[1]=Mn[0]=Mn[1]=0),new ye(Pr[0],Pr[1],Mn[0]-Pr[0],Mn[1]-Pr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=1===v;d&&(s=i=e[v],u=o=e[v+1]);var g=-1;switch(h){case Ie.M:i=s=e[v++],o=u=e[v++];break;case Ie.L:var p=e[v++],_=(y=e[v++])-o;(Qr(m=p-i)>n||Qr(_)>a||v===r-1)&&(g=Math.sqrt(m*m+_*_),i=p,o=y);break;case Ie.C:var S=e[v++],C=e[v++],y=(p=e[v++],e[v++]),T=e[v++],x=e[v++];g=Hb(i,o,S,C,p,y,T,x,10),i=T,o=x;break;case Ie.Q:g=Gb(i,o,S=e[v++],C=e[v++],p=e[v++],y=e[v++],10),i=p,o=y;break;case Ie.A:var D=e[v++],b=e[v++],A=e[v++],R=e[v++],E=e[v++],P=e[v++],O=P+E;v+=1,d&&(s=ha(E)*A+D,u=va(E)*R+b),g=ac(A,R)*nc(An,Math.abs(P)),i=ha(O)*A+D,o=va(O)*R+b;break;case Ie.R:s=i=e[v++],u=o=e[v++],g=2*e[v++]+2*e[v++];break;case Ie.Z:var m=s-i;_=u-o,g=Math.sqrt(m*m+_*_),i=s,o=u}g>=0&&(l[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var s,u,l,f,c,v,d,m,S,C,n=this.data,a=this._ux,i=this._uy,o=this._len,h=r<1,p=0,y=0,_=0;if(!h||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=r*this._pathLen))e:for(var T=0;T<o;){var x=n[T++],D=1===T;switch(D&&(s=l=n[T],u=f=n[T+1]),x!==Ie.L&&_>0&&(e.lineTo(S,C),_=0),x){case Ie.M:s=l=n[T++],u=f=n[T++],e.moveTo(l,f);break;case Ie.L:c=n[T++],v=n[T++];var b=Qr(c-l),A=Qr(v-f);if(b>a||A>i){if(h){if(p+(R=d[y++])>m){e.lineTo(l*(1-(E=(m-p)/R))+c*E,f*(1-E)+v*E);break e}p+=R}e.lineTo(c,v),l=c,f=v,_=0}else{var P=b*b+A*A;P>_&&(S=c,C=v,_=P)}break;case Ie.C:var O=n[T++],F=n[T++],B=n[T++],U=n[T++],Y=n[T++],Q=n[T++];if(h){if(p+(R=d[y++])>m){vs(l,O,B,Y,E=(m-p)/R,fa),vs(f,F,U,Q,E,ca),e.bezierCurveTo(fa[1],ca[1],fa[2],ca[2],fa[3],ca[3]);break e}p+=R}e.bezierCurveTo(O,F,B,U,Y,Q),l=Y,f=Q;break;case Ie.Q:if(O=n[T++],F=n[T++],B=n[T++],U=n[T++],h){if(p+(R=d[y++])>m){ds(l,O,B,E=(m-p)/R,fa),ds(f,F,U,E,ca),e.quadraticCurveTo(fa[1],ca[1],fa[2],ca[2]);break e}p+=R}e.quadraticCurveTo(O,F,B,U),l=B,f=U;break;case Ie.A:var ee=n[T++],se=n[T++],pe=n[T++],_e=n[T++],ue=n[T++],De=n[T++],We=n[T++],ot=!n[T++],bt=pe>_e?pe:_e,pt=Qr(pe-_e)>.001,$e=ue+De,ge=!1;if(h&&(p+(R=d[y++])>m&&($e=ue+De*(m-p)/R,ge=!0),p+=R),pt&&e.ellipse?e.ellipse(ee,se,pe,_e,We,ue,$e,ot):e.arc(ee,se,bt,ue,$e,ot),ge)break e;D&&(s=ha(ue)*pe+ee,u=va(ue)*_e+se),l=ha($e)*pe+ee,f=va($e)*_e+se;break;case Ie.R:s=l=n[T],u=f=n[T+1],c=n[T++],v=n[T++];var be=n[T++],Vr=n[T++];if(h){if(p+(R=d[y++])>m){var st=m-p;e.moveTo(c,v),e.lineTo(c+nc(st,be),v),(st-=be)>0&&e.lineTo(c+be,v+nc(st,Vr)),(st-=Vr)>0&&e.lineTo(c+ac(be-st,0),v+Vr),(st-=be)>0&&e.lineTo(c,v+ac(Vr-st,0));break e}p+=R}e.rect(c,v,be,Vr);break;case Ie.Z:if(h){var R;if(p+(R=d[y++])>m){var E;e.lineTo(l*(1-(E=(m-p)/R))+s*E,f*(1-E)+u*E);break e}p+=R}e.closePath(),l=s,f=u}}},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=Ie,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t;var e}();const da=nw;function ti(t,e,r,n,a,i,o){if(0===a)return!1;var u,s=a;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t===r)return Math.abs(i-t)<=s/2;var f=(u=(e-n)/(t-r))*i-o+(t*n-r*e)/(t-r);return f*f/(u*u+1)<=s/2*s/2}function aw(t,e,r,n,a,i,o,s,u,l,f){if(0===u)return!1;var c=u;return!(f>e+c&&f>n+c&&f>i+c&&f>s+c||f<e-c&&f<n-c&&f<i-c&&f<s-c||l>t+c&&l>r+c&&l>a+c&&l>o+c||l<t-c&&l<r-c&&l<a-c&&l<o-c)&&up(t,e,r,n,a,i,o,s,l,f,null)<=c/2}function iw(t,e,r,n,a,i,o,s,u){if(0===o)return!1;var l=o;return!(u>e+l&&u>n+l&&u>i+l||u<e-l&&u<n-l&&u<i-l||s>t+l&&s>r+l&&s>a+l||s<t-l&&s<r-l&&s<a-l)&&cp(t,e,r,n,a,i,s,u,null)<=l/2}var Mg=2*Math.PI;function Jr(t){return(t%=Mg)<0&&(t+=Mg),t}var no=2*Math.PI;function ow(t,e,r,n,a,i,o,s,u){if(0===o)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-a)%no<1e-4)return!0;if(i){var c=n;n=Jr(a),a=Jr(c)}else n=Jr(n),a=Jr(a);n>a&&(a+=no);var v=Math.atan2(u,s);return v<0&&(v+=no),v>=n&&v<=a||v+no>=n&&v+no<=a}function en(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===a?1/0:u>a?s:0}var Ln=da.CMD,pa=2*Math.PI,At=[-1,-1,-1],nr=[-1,-1];function lw(){var t=nr[0];nr[0]=nr[1],nr[1]=t}function fw(t,e,r,n,a,i,o,s,u,l){if(l>e&&l>n&&l>i&&l>s||l<e&&l<n&&l<i&&l<s)return 0;var f=op(e,n,i,s,l,At);if(0===f)return 0;for(var c=0,v=-1,h=void 0,d=void 0,g=0;g<f;g++){var p=At[g],y=0===p||1===p?.5:1;ct(t,r,a,o,p)<u||(v<0&&(v=sp(e,n,i,s,nr),nr[1]<nr[0]&&v>1&&lw(),h=ct(e,n,i,s,nr[0]),v>1&&(d=ct(e,n,i,s,nr[1]))),c+=2===v?p<nr[0]?h<e?y:-y:p<nr[1]?d<h?y:-y:s<d?y:-y:p<nr[0]?h<e?y:-y:s<h?y:-y)}return c}function cw(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var u=function zb(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Cn(i))ap(o)&&(l=-s/o)>=0&&l<=1&&(a[u++]=l);else{var f=o*o-4*i*s;if(Cn(f))(l=-o/(2*i))>=0&&l<=1&&(a[u++]=l);else if(f>0){var l,c=Sn(f),v=(-o-c)/(2*i);(l=(-o+c)/(2*i))>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}(e,n,i,s,At);if(0===u)return 0;var l=fp(e,n,i);if(l>=0&&l<=1){for(var f=0,c=yt(e,n,i,l),v=0;v<u;v++){var h=0===At[v]||1===At[v]?.5:1;yt(t,r,a,At[v])<o||(f+=At[v]<l?c<e?h:-h:i<c?h:-h)}return f}return h=0===At[0]||1===At[0]?.5:1,yt(t,r,a,At[0])<o?0:i<e?h:-h}function hw(t,e,r,n,a,i,o,s){if((s-=e)>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);At[0]=-u,At[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=pa-1e-4){n=0,a=pa;var f=i?1:-1;return o>=At[0]+t&&o<=At[1]+t?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=pa,a+=pa);for(var v=0,h=0;h<2;h++){var d=At[h];if(d+t>o){var g=Math.atan2(s,d);f=i?1:-1,g<0&&(g=pa+g),(g>=n&&g<=a||g+pa>=n&&g+pa<=a)&&(g>Math.PI/2&&g<1.5*Math.PI&&(f=-f),v+=f)}}return v}function Ag(t,e,r,n,a){for(var v,h,i=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,d=0;d<o;){var g=i[d++],p=1===d;switch(g===Ln.M&&d>1&&(r||(s+=en(u,l,f,c,n,a))),p&&(f=u=i[d],c=l=i[d+1]),g){case Ln.M:u=f=i[d++],l=c=i[d++];break;case Ln.L:if(r){if(ti(u,l,i[d],i[d+1],e,n,a))return!0}else s+=en(u,l,i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case Ln.C:if(r){if(aw(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=fw(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case Ln.Q:if(r){if(iw(u,l,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=cw(u,l,i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case Ln.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],C=i[d++],T=i[d++];d+=1;var x=!!(1-i[d++]);v=Math.cos(C)*_+y,h=Math.sin(C)*S+m,p?(f=v,c=h):s+=en(u,l,v,h,n,a);var D=(n-y)*S/_+y;if(r){if(ow(y,m,S,C,C+T,x,e,D,a))return!0}else s+=hw(y,m,S,C,C+T,x,D,a);u=Math.cos(C+T)*_+y,l=Math.sin(C+T)*S+m;break;case Ln.R:if(f=u=i[d++],c=l=i[d++],v=f+i[d++],h=c+i[d++],r){if(ti(f,c,v,c,e,n,a)||ti(v,c,v,h,e,n,a)||ti(v,h,f,h,e,n,a)||ti(f,h,f,c,e,n,a))return!0}else s+=en(v,c,v,h,n,a),s+=en(f,h,f,c,n,a);break;case Ln.Z:if(r){if(ti(u,l,f,c,e,n,a))return!0}else s+=en(u,l,f,c,n,a);u=f,l=c}}return!r&&!function uw(t,e){return Math.abs(t-e)<1e-4}(l,c)&&(s+=en(u,l,f,c,n,a)||0),0!==s}var Lg=He({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sa),pw={style:He({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fs.style)},uc=qr.concat(["invisible","culling","z","z2","zlevel","parent"]),gw=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(u){r.buildPath(u,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<uc.length;++s)a[uc[s]]=this[uc[s]];a.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Le(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];"style"===o?this.style?k(this.style,s):this.useStyle(s):"shape"===o?k(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("none"!==r){if(q(r)){var n=Gi(r,0);return n>.5?Tf:n>.2?"#eee":bf}if(r)return bf}return Tf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var a=this.__zr;if(!(!a||!a.isDarkMode())==Gi(r,0)<.4)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=-5},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 da(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(null==n||"none"===n||!(r.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(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||a){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;this.hasFill()||(l=Math.max(l,this.strokeContainThreshold??4)),u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(i.contain(r=a[0],n=a[1])){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),function dw(t,e,r,n){return Ag(t,e,!0,r,n)}(s,u/l,r,n)))return!0}if(this.hasFill())return function vw(t,e,r){return Ag(t,0,!1,e,r)}(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,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){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){"shape"===r?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),"string"==typeof r?a[r]=n:k(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(r){return Ei(Lg,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){if(t.prototype._applyStateObj.call(this,r,n,a,i,o,s),1!==this.__inHover){var l,u=!(n&&i);if(n&&n.shape?o?i?l=n.shape:(l=k({},a.shape),k(l,n.shape)):(l=k({},i?this.shape:a.shape),k(l,n.shape)):u&&(l=a.shape),l)if(o){this.shape=k({},this.shape);for(var f={},c=Le(l),v=0;v<c.length;v++){var h=c[v];"object"==typeof l[h]?this.shape[h]=l[h]:f[h]=l[h]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.shape&&this._mergeStyle(a=a||{},o.shape)}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return pw},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){function o(s){var u=i.call(this,s)||this;return r.init&&r.init.call(u,s),u}return(0,K.C6)(o,i),o.prototype.getDefaultStyle=function(){return me(r.style)},o.prototype.getDefaultShape=function(){return me(r.shape)},o}(e);for(var a in r)"function"==typeof r[a]&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=7}(),e}(ua);const Ne=gw;var yw=He({strokeFirst:!0,font:gn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lg),Pg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e.prototype.hasStroke=function(){return Cg(this.style)},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.createStyle=function(r){return Ei(yw,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function jx(t){var e=jf(t.text),r=t.font;return $f(t,mr(yr(r),e),As(r),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ua);Pg.prototype.type="tspan";const lc=Pg;var mw=He({x:0,y:0},sa),_w={style:He({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fs.style)},Ig=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e.prototype.createStyle=function(r){return Ei(mw,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(null!=a)return a;var i=function Sw(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(n.image)?n.image:this.__image;if(!i)return 0;var o="width"===r?"height":"width",s=n[o];return null==s?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return _w},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ye(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ua);Ig.prototype.type="image";const Pn=Ig;var ri=Math.round;function Rg(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(ri(2*n)===ri(2*a)&&(t.x1=t.x2=ga(n,s,!0)),ri(2*i)===ri(2*o)&&(t.y1=t.y2=ga(i,s,!0))),t}}function Eg(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ga(n,s,!0),t.y=ga(a,s,!0),t.width=Math.max(ga(n+i,s,!1)-t.x,0===i?0:1),t.height=Math.max(ga(a+o,s,!1)-t.y,0===o?0:1)),t}}function ga(t,e,r){if(!e)return t;var n=ri(2*t);return(n+ri(e))%2==0?n/2:(n+(r?1:-1))/2}var Tw=function(){return function t(){this.x=0,this.y=0,this.width=0,this.height=0}}(),bw={},Og=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new Tw},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Eg(bw,n,this.style);a=u.x,i=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?function Cw(t,e){var s,u,l,f,c,r=e.x,n=e.y,a=e.width,i=e.height,o=e.r;a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),"number"==typeof o?s=u=l=f=o:o instanceof Array?1===o.length?s=u=l=f=o[0]:2===o.length?(s=l=o[0],u=f=o[1]):3===o.length?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0,s+u>a&&(s*=a/(c=s+u),u*=a/c),l+f>a&&(l*=a/(c=l+f),f*=a/c),u+l>i&&(u*=i/(c=u+l),l*=i/c),s+f>i&&(s*=i/(c=s+f),f*=i/c),t.moveTo(r+s,n),t.lineTo(r+a-u,n),0!==u&&t.arc(r+a-u,n+u,u,-Math.PI/2,0),t.lineTo(r+a,n+i-l),0!==l&&t.arc(r+a-l,n+i-l,l,0,Math.PI/2),t.lineTo(r+f,n+i),0!==f&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),0!==s&&t.arc(r+s,n+s,s,Math.PI,1.5*Math.PI),t.closePath()}(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ne);Og.prototype.type="rect";const vt=Og;var kg={fill:"#000"},Er={},xw={style:He({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},Fs.style)},Ng=function(t){function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kg,n.attr(r),n}return(0,K.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function Lw(t){zg(t),w(t.rich,zg)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ye(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(a);l?(r.copy(u),r.applyTransform(l),(i=i||r.clone()).union(r)):(i=i||u.clone()).union(u)}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||kg},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return k(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=Le(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},k(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return xw},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||gn,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||i.align||"left",l=r.verticalAlign||i.verticalAlign||"top";mg(Er,i.overflowRect,o,s,u,l),o=Er.baseX,s=Er.baseY;var c=function Ux(t,e,r,n){var a=jf(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f="truncate"===i,c=As(l),v=te(e.lineHeight,c),h="truncate"===e.lineOverflow,d=!1,g=e.width;null==g&&null!=r&&(g=r-s);var y,p=e.height;null==p&&null!=n&&(p=n-u);var m=(y=null==g||"break"!==i&&"breakAll"!==i?a?a.split("\n"):[]:a?yg(a,e.font,g,"breakAll"===i,0).lines:[]).length*v;if(null==p&&(p=m),m>p&&h){var _=Math.floor(p/v);d=d||y.length>_,m=(y=y.slice(0,_)).length*v}if(a&&f&&null!=g)for(var S=dg(g,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),C={},T=0;T<y.length;T++)pg(C,y[T],S),y[T]=C.textLine,d=d||C.isTruncated;var x=p,D=0,b=yr(l);for(T=0;T<y.length;T++)D=Math.max(mr(b,y[T]),D);null==g&&(g=D);var A=g;return{lines:y,height:p,outerWidth:A+=s,outerHeight:x+=u,lineHeight:v,calculatedLineHeight:c,contentWidth:D,contentHeight:m,width:g,isTruncated:d}}(Wg(r),r,Er.outerWidth,Er.outerHeight),v=fc(r),h=!!r.backgroundColor,d=c.outerHeight,g=c.outerWidth,p=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=ta(s,c.contentHeight,l);if(v||a){var S=Qa(o,g,u),C=ta(s,d,l);v&&this._renderBackground(r,r,S,C,g,d)}_+=y/2,a&&(m=Ug(o,u,a),"top"===l?_+=a[0]:"bottom"===l&&(_-=a[2]));for(var T=0,x=!1,D=!1,b=(Vg("fill"in r?r.fill:(D=!0,i.fill))),A=(Gg("stroke"in r?r.stroke:h||i.autoStroke&&!D?null:(T=2,x=!0,i.stroke))),R=r.textShadowBlur>0,E=0;E<p.length;E++){var P=this._getOrCreateChild(lc),O=P.createStyle();P.useStyle(O),O.text=p[E],O.x=m,O.y=_,u&&(O.textAlign=u),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,R&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=A,O.fill=b,A&&(O.lineWidth=r.lineWidth||T,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,Hg(O,r),_+=y,P.setBoundingRect($f(O,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;mg(Er,n.overflowRect,o,s,a,i),o=Er.baseX,s=Er.baseY;var l=function Yx(t,e,r,n,a){var i=new qx,o=jf(t);if(!o)return i;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;null==f&&null!=r&&(f=r-u);var c=e.height;null==c&&null!=n&&(c=n-l);for(var g,v=e.overflow,h="break"!==v&&"breakAll"!==v||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===v},d=Zf.lastIndex=0;null!=(g=Zf.exec(o));){var p=g.index;p>d&&Kf(i,o.substring(d,p),e,h),Kf(i,g[2],e,h,g[1]),d=Zf.lastIndex}d<o.length&&Kf(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S="truncate"===v,C="truncate"===e.lineOverflow,T={};function x(We,ot,bt){We.width=ot,We.lineHeight=bt,m+=bt,_=Math.max(_,ot)}e:for(var D=0;D<i.lines.length;D++){for(var b=i.lines[D],A=0,R=0,E=0;E<b.tokens.length;E++){var O=(P=b.tokens[E]).styleName&&e.rich[P.styleName]||{},F=P.textPadding=O.padding,B=F?F[1]+F[3]:0,U=P.font=O.font||e.font;P.contentHeight=As(U);var Y=te(O.height,P.contentHeight);if(P.innerHeight=Y,F&&(Y+=F[0]+F[2]),P.height=Y,P.lineHeight=yn(O.lineHeight,e.lineHeight,Y),P.align=O&&O.align||a,P.verticalAlign=O&&O.verticalAlign||"middle",C&&null!=c&&m+P.lineHeight>c){var Q=i.lines.length;E>0?(b.tokens=b.tokens.slice(0,E),x(b,R,A),i.lines=i.lines.slice(0,D+1)):i.lines=i.lines.slice(0,D),i.isTruncated=i.isTruncated||i.lines.length<Q;break e}var ee=O.width,se=null==ee||"auto"===ee;if("string"==typeof ee&&"%"===ee.charAt(ee.length-1))P.percentWidth=ee,y.push(P),P.contentWidth=mr(yr(U),P.text);else{if(se){var pe=O.backgroundColor,_e=pe&&pe.image;_e&&Ns(_e=zx(_e))&&(P.width=Math.max(P.width,_e.width*Y/_e.height))}var ue=S&&null!=f?f-R:null;null!=ue&&ue<P.width?!se||ue<B?(P.text="",P.width=P.contentWidth=0):(vg(T,P.text,ue-B,U,e.ellipsis,{minChar:e.truncateMinChar}),P.text=T.text,i.isTruncated=i.isTruncated||T.isTruncated,P.width=P.contentWidth=mr(yr(U),P.text)):P.contentWidth=mr(yr(U),P.text)}P.width+=B,R+=P.width,O&&(A=Math.max(A,P.lineHeight))}x(b,R,A)}for(i.outerWidth=i.width=te(f,_),i.outerHeight=i.height=te(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=u,i.outerHeight+=l,D=0;D<y.length;D++){var P;(P=y[D]).width=parseInt(P.percentWidth,10)/100*i.width}return i}(Wg(r),r,Er.outerWidth,Er.outerHeight,a),f=l.width,c=l.outerWidth,v=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=Qa(o,c,a),g=ta(s,v,i),p=d,y=g;h&&(p+=h[3],y+=h[0]);var m=p+f;fc(r)&&this._renderBackground(r,r,d,g,c,v);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var C=l.lines[S],T=C.tokens,x=T.length,D=C.lineHeight,b=C.width,A=0,R=p,E=m,P=x-1,O=void 0;A<x&&(!(O=T[A]).align||"left"===O.align);)this._placeToken(O,r,D,y,R,"left",_),b-=O.width,R+=O.width,A++;for(;P>=0&&"right"===(O=T[P]).align;)this._placeToken(O,r,D,y,E,"right",_),b-=O.width,E-=O.width,P--;for(R+=(f-(R-p)-(m-E)-b)/2;A<=P;)this._placeToken(O=T[A],r,D,y,R+O.width/2,"center",_),R+=O.width,A++;y+=D}},e.prototype._placeToken=function(r,n,a,i,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=i+a/2;"top"===f?c=i+r.height/2:"bottom"===f&&(c=i+a-r.height/2),!r.isLineHolder&&fc(l)&&this._renderBackground(l,n,"right"===s?o-r.width:"center"===s?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!l.backgroundColor,d=r.textPadding;d&&(o=Ug(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(lc),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=!1,C=Vg("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),T=Gg("stroke"in l?l.stroke:"stroke"in n?n.stroke:h||u||y.autoStroke&&!m?null:(_=2,S=!0,y.stroke)),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||gn,p.opacity=yn(l.opacity,n.opacity,1),Hg(p,l),T&&(p.lineWidth=yn(l.lineWidth,n.lineWidth,_),p.lineDash=te(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=T),C&&(p.fill=C),g.setBoundingRect($f(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,a,i,o,s){var g,p,m,u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,v=u&&!c,h=r.borderRadius,d=this;if(v||r.lineHeight||l&&f){(g=this._getOrCreateChild(vt)).useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(v)(m=g.style).fill=u||null,m.fillOpacity=te(r.fillOpacity,1);else if(c){(p=this._getOrCreateChild(Pn)).onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=a,_.y=i,_.width=o,_.height=s}l&&f&&((m=g.style).lineWidth=l,m.stroke=f,m.strokeOpacity=te(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(g||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=yn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return function Aw(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(r)&&(n=[r.fontStyle,r.fontWeight,Mw(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dr(n)||r.textFont||r.font},e}(ua),ww={left:!0,right:1,center:1},Dw={top:1,bottom:1,middle:1},Fg=["fontStyle","fontWeight","fontSize","fontFamily"];function Mw(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Hg(t,e){for(var r=0;r<Fg.length;r++){var n=Fg[r],a=e[n];null!=a&&(t[n]=a)}}function zg(t){if(t){t.font=Ng.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||ww[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||Dw[r]?r:"top",t.padding&&(t.padding=Qo(t.padding))}}function Gg(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Vg(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ug(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function Wg(t){var e=t.text;return null!=e&&(e+=""),e}function fc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Je=Ng;var Me=we(),Vs="undefined",Yg=ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xt="original",_t="arrayRows",ar="objectRows",_r="keyedColumns",tn="typedArray",Xg="unknown",Or="column",ya="row",Iw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Rw=function(){return function t(e){w(Iw,function(r){this[r]=Pe(e[r],e)},this)}}();const Zg=Rw;var Kg=1,jg={},$g=we(),cc=we(),kr=["emphasis","blur","select"],qs=["normal","emphasis","blur","select"],ma="highlight",Ys="downplay",Xs="select",vc="unselect",Zs="toggleSelect",dc="selectchanged";function ni(t){return null!=t&&"none"!==t}function Ks(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Qg(t){Ks(t,"emphasis",2)}function Jg(t){2===t.hoverState&&Ks(t,"normal",0)}function pc(t){Ks(t,"blur",1)}function ey(t){1===t.hoverState&&Ks(t,"normal",0)}function Nw(t){t.selected=!0}function Fw(t){t.selected=!1}function ty(t,e,r){e(t,r)}function rn(t,e,r){ty(t,e,r),t.isGroup&&t.traverse(function(n){ty(n,e,r)})}function gc(t,e){var r=this.states[t];if(this.style){if("emphasis"===t)return function zw(t,e,r,n){var a=r&&xe(r,"select")>=0,i=!1;if(t instanceof Ne){var o=$g(t),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(ni(s)||ni(u)){var l=(n=n||{}).style||{};"inherit"===l.fill?(i=!0,n=k({},n),(l=k({},l)).fill=s):!ni(l.fill)&&ni(s)?(i=!0,n=k({},n),(l=k({},l)).fill=uf(s)):!ni(l.stroke)&&ni(u)&&(i||(n=k({},n),l=k({},l)),l.stroke=uf(u)),n.style=l}}return n&&null==n.z2&&(i||(n=k({},n)),n.z2=t.z2+(t.z2EmphasisLift??10)),n}(this,0,e,r);if("blur"===t)return function Vw(t,e,r){var n=xe(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:function Hw(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o];i[s]=a[s]??(n&&n[s])}for(o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&"style"===l.targetName&&l.saveTo(i,e)}return i}(t,["opacity"],e,{opacity:1}),o=(r=r||{}).style||{};return null==o.opacity&&(r=k({},r),o=k({opacity:n?a:.1*i.opacity},o),r.style=o),r}(this,t,r);if("select"===t)return function Gw(t,e,r){return r&&null==r.z2&&((r=k({},r)).z2=t.z2+(t.z2SelectLift??9)),r}(this,0,r)}return r}function Uw(t){t.stateProxy=gc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=gc),r&&(r.stateProxy=gc)}function ry(t,e){!sy(t,e)&&!t.__highByOuter&&rn(t,Qg)}function ny(t,e){!sy(t,e)&&!t.__highByOuter&&rn(t,Jg)}function yc(t,e){t.__highByOuter|=1<<(e||0),rn(t,Qg)}function mc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&rn(t,Jg)}function ay(t){rn(t,ey)}function iy(t){rn(t,Nw)}function oy(t){rn(t,Fw)}function sy(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function uy(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=cc(i),s=function Ew(t,e){return"series"===e.mainType?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}(t,i),u="series"===a;!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){ey(l)}),u&&r.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function _c(t,e,r,n){var a=n.getModel();function i(l,f){for(var c=0;c<f.length;c++){var v=l.getItemGraphicEl(f[c]);v&&ay(v)}}if(r=r||"coordinateSystem",null!=t&&e&&"none"!==e){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===r&&!f||"coordinateSystem"===r&&!(c&&s?c===s:f)||"series"===e&&f)){if(n.getViewOfSeriesModel(l).group.traverse(function(p){p.__highByOuter&&f&&"self"===e||pc(p)}),gt(e))i(l.getData(),e);else if(J(e))for(var d=Le(e),g=0;g<d.length;g++)i(l.getData(d[g]),e[d[g]]);u.push(l),cc(l).isBlured=!0}}),a.eachComponent(function(l,f){if("series"!==l){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,a)}})}}function Sc(t,e,r){if(null!=t&&null!=e){var n=r.getModel().getComponent(t,e);if(n){cc(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){pc(i)})}}}function Cc(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==r)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var u,s=o.findHighDownDispatchers(r),l=0;l<s.length;l++)if("self"===Me(s[l]).focus){u=!0;break}return{focusSelf:u,dispatchers:s}}function ly(t){w(t.getAllData(),function(r){var a=r.type;r.data.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?iy(i):oy(i)})})}function Kw(t){var e=[];return t.eachSeries(function(r){w(r.getAllData(),function(a){var o=a.type,s=r.getSelectedDataIndices();if(s.length>0){var u={dataIndex:s,seriesIndex:r.seriesIndex};null!=o&&(u.dataType=o),e.push(u)}})}),e}function js(t,e,r){cy(t,!0),rn(t,Uw),function Qw(t,e,r){var n=Me(t);null!=e?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}(t,e,r)}var fy=["emphasis","blur","select"],Jw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cy(t,e){var r=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Tc(t){return!(!t||!t.__highDownDispatcher)}function bc(t){var e=t.type;return e===Xs||e===vc||e===Zs}function hy(t){var e=t.type;return e===ma||e===Ys}var vy=we();function xc(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,f=void 0,c=void 0;return n?(l=te(n.duration,200),f=te(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(l=i.duration),null!=i.easing&&(f=i.easing),null!=i.delay&&(c=i.delay)),ce(c)&&(c=c(r,a)),ce(l)&&(l=l(r)),{duration:l||0,delay:c,easing:f}}return null}function wc(t,e,r,n,a,i,o){var u,s=!1;ce(a)?(o=i,i=a,a=null):J(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l="leave"===t;l||e.stopAnimation("leave");var f=xc(t,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Sr(t,e,r,n,a,i){wc("update",t,e,r,n,a,i)}function In(t,e,r,n,a,i){wc("enter",t,e,r,n,a,i)}function ai(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function dy(t,e,r,n,a,i){ai(t)||wc("leave",t,e,r,n,a,i)}function py(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),dy(t,{style:{opacity:0}},e,r,n)}function gy(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||py(a,e,r,n)}):py(t,e,r,n)}var $s={};function yy(t,e){for(var r=0;r<kr.length;r++){var n=kr[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Dc(t,e,r){var s,n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),null!=r?{interpolatedValue:r}:null)),null==s&&(s=ce(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var u={normal:s},l=0;l<kr.length;l++){var f=kr[l],c=e[f];u[f]=te(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return u}function my(t,e,r,n){r=r||$s;for(var a=t instanceof Je,i=!1,o=0;o<qs.length;o++)if((s=e[qs[o]])&&s.getShallow("show")){i=!0;break}var u=a?t:t.getTextContent();if(i){a||(u||(u=new Je,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Dc(r,e),f=e.normal,c=!!f.getShallow("show"),v=nn(f,n&&n.normal,r,!1,!a);for(v.text=l.normal,a||t.setTextConfig(_y(f,r,!1)),o=0;o<kr.length;o++){var s,h=kr[o];if(s=e[h]){var d=u.ensureState(h),g=!!te(s.getShallow("show"),c);g!==c&&(d.ignore=!g),d.style=nn(s,n&&n[h],r,!0,!a),d.style.text=l[h],a||(t.ensureState(h).textConfig=_y(s,r,!0))}}u.silent=!!f.getShallow("silent"),null!=u.style.x&&(v.x=u.style.x),null!=u.style.y&&(v.y=u.style.y),u.ignore=!c,u.useStyle(v),u.dirty(),r.enableTextSetter&&(Qs(u).setLabelText=function(y){var m=Dc(r,e,y);yy(u,m)})}else u&&(u.ignore=!0);t.dirty()}function nn(t,e,r,n,a){var i={};return function iD(t,e,r,n,a){r=r||$s;var u,i=e.ecModel,o=i&&i.option.textStyle,s=function oD(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||$s).rich;if(r){e=e||{};for(var n=Le(r),a=0;a<n.length;a++)e[n[a]]=1}t=t.parentModel}return e}(e);if(s){u={};var l="richInheritPlainLabel",f=te(e.get(l),i?i.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);by(u[c]={},v,o,e,f,r,n,a,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,p=e.get("minMargin");if(null!=p)p=Be(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=ii.minMargin;else{var y=e.get("textMargin");null!=y&&(g.margin=Qo(y),g.__marginType=ii.textMargin)}by(t,e,o,null,null,r,n,a,!0,!1)}(i,t,r,n,a),e&&k(i,e),i}function _y(t,e,r){e=e||{};var a,n={},i=t.getShallow("rotate"),o=te(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return"outside"===(a=t.getShallow("position")||(r?null:"inside"))&&(a=e.defaultOutsidePosition||"top"),null!=a&&(n.position=a),null!=s&&(n.offset=s),null!=i&&(i*=Math.PI/180,n.rotation=i),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(n.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(n.layoutRect=e.layoutRect),n}var Sy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Cy=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Ty=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function by(t,e,r,n,a,i,o,s,u,l){r=!o&&r||$s;var f=i&&i.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=te(e.getShallow("opacity"),r.opacity);("inherit"===c||"auto"===c)&&(c=f||null),("inherit"===v||"auto"===v)&&(v=f||null),s||(c=c||r.color,v=v||r.textBorderColor),null!=c&&(t.fill=c),null!=v&&(t.stroke=v);var d=te(e.getShallow("textBorderWidth"),r.textBorderWidth);null!=d&&(t.lineWidth=d);var g=te(e.getShallow("textBorderType"),r.textBorderType);null!=g&&(t.lineDash=g);var p=te(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),!o&&null==h&&!l&&(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),!o&&!s&&null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var y=0;y<Sy.length;y++){var m=Sy[y];null!=(_=!1!==a&&n?yn(e.getShallow(m),n.getShallow(m),r[m]):te(e.getShallow(m),r[m]))&&(t[m]=_)}for(y=0;y<Cy.length;y++)null!=(_=e.getShallow(m=Cy[y]))&&(t[m]=_);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!u||!i.disableBox){for(y=0;y<Ty.length;y++){var _;null!=(_=e.getShallow(m=Ty[y]))&&(t[m]=_)}var C=e.getShallow("borderType");null!=C&&(t.borderDash=C),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&f&&(t.backgroundColor=f),("auto"===t.borderColor||"inherit"===t.borderColor)&&f&&(t.borderColor=f)}}var Qs=we();var ii={minMargin:1,textMargin:2},lD=["textStyle","color"],Mc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ac=new Je,fD=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(lD):null)},t.prototype.getFont=function(){return function sD(t,e){var r=e&&e.getModel("textStyle");return dr([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(" "))}({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Mc.length;n++)r[Mc[n]]=this.getShallow(Mc[n]);return Ac.useStyle(r),Ac.update(),Ac.getBoundingRect()},t}();const cD=fD;var xy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],hD=to(xy),vD=function(){function t(){}return t.prototype.getLineStyle=function(e){return hD(this,e)},t}(),wy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dD=to(wy),pD=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return dD(this,e,r)},t}(),_a=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i]},t.prototype.mergeOption=function(e,r){Fe(this.option,e,!0)},t.prototype.get=function(e,r){return null==e?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=null==n?n:n[e];if(null==a&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=null!=e,a=n?this.parsePath(e):null;return new t(n?this._doGet(a):this.option,r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(me(this.option))},t.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Ce.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&(!e[a]||null!=(n=n&&"object"==typeof n?n[e[a]]:null));a++);return null==n&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Yf(_a),function Ox(t){var e=["__\0is_clz",Ex++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!(!r||!r[e])}}(_a),hr(_a,vD),hr(_a,pD),hr(_a,Hx),hr(_a,cD);const et=_a;var gD=Math.round(10*Math.random());function Js(t){return[t||"",gD++].join("_")}var oi="EN",tu={},Pc={},Dy=Ce.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||oi).toUpperCase().indexOf("ZH")>-1?"ZH":oi;function Ic(t,e){t=t.toUpperCase(),Pc[t]=new et(e),tu[t]=e}Ic("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Ic("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});function Lt(){return null}function My(t,e){var r=null,a=e.breakParsed;return!a&&r&&(a=r.parseAxisBreakOption(e.breakOption,t)),a}function ru(t){var e=t.brk;return e?e.breaks:[]}var ao=36e5,ir=24*ao,Ay=365*ir,DD={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})/},nu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},au="{yyyy}-{MM}-{dd}",Ly={year:"{yyyy}",month:"{yyyy}-{MM}",day:au,hour:au+" "+nu.hour,minute:au+" "+nu.minute,second:au+" "+nu.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Zt=["year","month","day","hour","minute","second","millisecond"],AD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pt(t,e){return"0000".substr(0,e-(t+="").length)+t}function io(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 ID(t){return t===io(t)}function oo(t,e,r,n){var a=Xr(t),i=a[Py(r)](),o=a[kc(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[Bc(r)](),l=a["get"+(r?"UTC":"")+"Day"](),f=a[Nc(r)](),c=(f-1)%12+1,v=a[Fc(r)](),h=a[Hc(r)](),d=a[zc(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof et?n:function bD(t){return Pc[t]}(n||Dy)||function xD(){return Pc[oi]}(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),C=m.get("dayOfWeek"),T=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Pt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Pt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Pt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,C[l]).replace(/{ee}/g,T[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Pt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Pt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Pt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Pt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Pt(d,3)).replace(/{S}/g,d+"")}function si(t,e){var r=Xr(t),n=r[kc(e)]()+1,a=r[Bc(e)](),i=r[Nc(e)](),o=r[Fc(e)](),s=r[Hc(e)](),l=0===r[zc(e)](),f=l&&0===s,c=f&&0===o,v=c&&0===i,h=v&&1===a;return h&&1===n?"year":h?"month":v?"day":c?"hour":f?"minute":l?"second":"millisecond"}function iu(t,e,r){switch(e){case"year":t[Iy(r)](0);case"month":t[Ry(r)](1);case"day":t[Ey(r)](0);case"hour":t[Oy(r)](0);case"minute":t[ky(r)](0);case"second":t[By(r)](0)}return t}function Py(t){return t?"getUTCFullYear":"getFullYear"}function kc(t){return t?"getUTCMonth":"getMonth"}function Bc(t){return t?"getUTCDate":"getDate"}function Nc(t){return t?"getUTCHours":"getHours"}function Fc(t){return t?"getUTCMinutes":"getMinutes"}function Hc(t){return t?"getUTCSeconds":"getSeconds"}function zc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function OD(t){return t?"setUTCFullYear":"setFullYear"}function Iy(t){return t?"setUTCMonth":"setMonth"}function Ry(t){return t?"setUTCDate":"setDate"}function Ey(t){return t?"setUTCHours":"setHours"}function Oy(t){return t?"setUTCMinutes":"setMinutes"}function ky(t){return t?"setUTCSeconds":"setSeconds"}function By(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Gc(t){if(!$p(t))return q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Vc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var so=Qo;function Uc(t,e,r){function a(f){return f&&dr(f)?f:"-"}function i(f){return Kr(f)}var o="time"===e,s=t instanceof Date;if(o||s){var u=o?Xr(t):t;if(!isNaN(+u))return oo(u,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",r);if(s)return"-"}if("ordinal"===e)return jo(t)?a(t):Be(t)&&i(t)?t+"":"-";var l=Zr(t);return i(l)?Gc(l):jo(t)?a(t):"boolean"==typeof t?t+"":"-"}var Ny=["a","b","c","d","e","f","g"],Wc=function(t,e){return"{"+t+(e??"")+"}"};function qc(t,e,r){V(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Ny[i];t=t.replace(Wc(o),Wc(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=e[s][a[u]];t=t.replace(Wc(Ny[u],s),r?Dt(l):l)}return t}function Fy(t,e){var r=q(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";return n?"html"===i?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Dt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Dt(n)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ND(t,e,r){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Xr(e),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),u=n[a+"Hours"](),l=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return t.replace("MM",Pt(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Pt(i%100+"",2)).replace("dd",Pt(s,2)).replace("d",s).replace("hh",Pt(u,2)).replace("h",u).replace("mm",Pt(l,2)).replace("m",l).replace("ss",Pt(f,2)).replace("s",f).replace("SSS",Pt(c,3))}function FD(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function uo(t,e){return e=e||"transparent",q(t)?t:J(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Hy(t,e){if("_blank"===e||"blank"===e){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var ou={},Yc={},zD=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){function n(a,i){var o=[];return w(a,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}this._nonSeriesBoxMasterList=n(ou),this._normalMasterList=n(Yc)},t.prototype.update=function(e,r){w(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){"matrix"!==e&&"calendar"!==e?Yc[e]=r:ou[e]=r},t.get=function(e){return Yc[e]||ou[e]},t}(),Gy=ve();const uu=zD;var lu=w,Vy=["left","right","top","bottom","width","height"],Sa=[["width","left","right"],["height","top","bottom"]];function Xc(t,e,r,n,a){var i=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild(function(u,l){var h,d,f=u.getBoundingRect(),c=e.childAt(l+1),v=c&&c.getBoundingRect();if("horizontal"===t){var g=f.width+(v?-v.x+f.x:0);(h=i+g)>n||u.newline?(i=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);(d=o+p)>a||u.newline?(i+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),"horizontal"===t?i=h+r:o=d+r)})}var lo=Xc;function an(t,e,r){r=so(r||0);var n=e.width,a=e.height,i=qe(t.left,n),o=qe(t.top,a),s=qe(t.right,n),u=qe(t.bottom,a),l=qe(t.width,n),f=qe(t.height,a),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-v-i),isNaN(f)&&(f=a-u-c-o),null!=h&&(isNaN(l)&&isNaN(f)&&(h>n/a?l=.8*n:f=.8*a),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(i)&&(i=n-s-l-v),isNaN(o)&&(o=a-u-f-c),t.left||t.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-v}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c}i=i||0,o=o||0,isNaN(l)&&(l=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(u||0));var d=new ye((e.x||0)+i+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}Xe(Xc,"vertical"),Xe(Xc,"horizontal");var fo={rect:1,point:2};function Zc(t,e,r){var n,a,i,s,o=t.boxCoordinateSystem;if(o){var u=function WD(t){var e=t.getShallow("coord",!0),r=1;if(null==e){var n=Gy.get(t.type);n&&n.getCoord2&&(r=2,e=n.getCoord2(t))}return{coord:e,from:r}}(t),l=u.coord,f=u.from;if(o.dataToLayout){i=fo.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=fo.point,s=f,a=o.dataToPoint(l))}return null==i&&(i=fo.rect),i===fo.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function jD(t,e,r,n,a,i){var l,o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if((i=i||t).x=t.x,i.y=t.y,!o&&!s)return!1;if("raw"===u)l="group"===t.type?new ye(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();(l=l.clone()).applyTransform(f)}var c=an(He({width:l.width,height:l.height},e),r,n),v=o?c.x-l.x:0,h=s?c.y-l.y:0;return"raw"===u?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===t&&t.markRedraw(),!0}function fu(t){var e=t.layoutMode||t.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function li(t,e,r){var n=r&&r.ignoreSize;!V(n)&&(n=[n,n]);var a=o(Sa[0],0),i=o(Sa[1],1);function o(l,f){var c={},v=0,h={},d=0;if(lu(l,function(m){h[m]=t[m]}),lu(l,function(m){oe(e,m)&&(c[m]=h[m]=e[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(2===d||!v)return h;if(v>=2)return c;for(var p=0;p<l.length;p++){var y=l[p];if(!oe(c,y)&&oe(t,y)){c[y]=t[y];break}}return c}function s(l,f){return null!=l[f]&&"auto"!==l[f]}function u(l,f,c){lu(l,function(v){f[v]=c[v]})}u(Sa[0],t,a),u(Sa[1],t,i)}function Kc(t){return Uy({},t)}function Uy(t,e){return e&&t&&lu(Vy,function(r){oe(e,r)&&(t[r]=e[r])}),t}var $D=we(),fi=function(t){function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Js("ec_cpt_model"),i}return(0,K.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=fu(this),i=a?Kc(r):{};Fe(r,n.getTheme().get(this.mainType)),Fe(r,this.getDefaultOption()),a&&li(r,i,a)},e.prototype.mergeOption=function(r,n){Fe(this.option,r,!0);var a=fu(this);a&&li(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!function Ix(t){return!(!t||!t[lg])}(r))return r.defaultOption;var n=$D(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=Fe(s,a[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Id";return Ji(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return function XD(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)}}(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}(et);fg(fi,et),Bs(fi),function yD(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=Lr(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=Lr(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}(fi),function mD(t,e){function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}t.topologicalTravel=function(i,o,s,u){if(i.length){var l=function r(i){var o={},s=[];return w(i,function(u){var l=n(o,u),c=function a(i,o){var s=[];return w(i,function(u){xe(o,u)>=0&&s.push(u)}),s}(l.originalDeps=e(u),i);l.entryCount=c.length,0===l.entryCount&&s.push(u),w(c,function(v){xe(l.predecessor,v)<0&&l.predecessor.push(v);var h=n(o,v);xe(h.successor,v)<0&&h.successor.push(u)})}),{graph:o,noEntryList:s}}(o),f=l.graph,c=l.noEntryList,v={};for(w(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],g=!!v[h];g&&(s.call(u,h,d.originalDeps.slice()),delete v[h]),w(d.successor,g?y:p)}w(v,function(){throw new Error("")})}function p(m){f[m].entryCount--,0===f[m].entryCount&&c.push(m)}function y(m){v[m]=!0,p(m)}}}(fi,function QD(t){var e=[];return w(fi.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ie(e,function(r){return Lr(r).main}),"dataset"!==t&&xe(e,"dataset")<=0&&e.unshift("dataset"),e});const ze=fi;var Ca={color:{},darkColor:{},size:{}},Ze=Ca.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var Ta in k(Ze,{primary:Ze.neutral80,secondary:Ze.neutral70,tertiary:Ze.neutral60,quaternary:Ze.neutral50,disabled:Ze.neutral20,border:Ze.neutral30,borderTint:Ze.neutral20,borderShade:Ze.neutral40,background:Ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ze.neutral70,axisLineTint:Ze.neutral40,axisTick:Ze.neutral70,axisTickMinor:Ze.neutral60,axisLabel:Ze.neutral70,axisSplitLine:Ze.neutral15,axisMinorSplitLine:Ze.neutral05}),Ze)if(Ze.hasOwnProperty(Ta)){var Wy=Ze[Ta];"theme"===Ta?Ca.darkColor.theme=Ze.theme.slice():"highlight"===Ta?Ca.darkColor.highlight="rgba(255,231,130,0.4)":Ca.darkColor[Ta]=0===Ta.indexOf("accent")?ys(Wy,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):ys(Wy,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}Ca.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Te=Ca;var qy="";typeof navigator<"u"&&(qy=navigator.platform||"");var ci="rgba(0, 0, 0, 0.2)",Yy=Te.color.theme[0],JD=ys(Yy,null,null,.9);const Xy={darkMode:"auto",colorBy:"series",color:Te.color.theme,gradientColor:[JD,Yy],aria:{decal:{decals:[{color:ci,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ci,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ci,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ci,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ci,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ci,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qy.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 Zy=we();function tM(t,e,r){var n={},a=jc(e);if(!a||!t)return n;var f,c,i=[],o=[],u=Zy(e.ecModel).datasetMap,l=a.uid+"_"+r.seriesLayoutBy;w(t=t.slice(),function(g,p){var y=J(g)?g:t[p]={name:g};"ordinal"===y.type&&null==f&&(f=p,c=d(y)),n[y.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});function h(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return w(t,function(g,p){var y=g.name,m=d(g);if(null==f)h(n[y],_=v.valueWayDim,m),h(o,_,m),v.valueWayDim+=m;else if(f===p)h(n[y],0,m),h(i,0,m);else{var _;h(n[y],_=v.categoryWayDim,m),h(o,_,m),v.categoryWayDim+=m}}),i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function rM(t,e,r){var n={};if(!jc(t))return n;var s,i=e.sourceFormat,o=e.dimensionsDefine;(i===ar||i===_r)&&w(o,function(f,c){"name"===(J(f)?f.name:f)&&(s=c)});var u=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var g=jy(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);v.push(g);var p=3===g;if(p&&null==f.v&&h!==s&&(f.v=h),(null==f.n||f.n===f.v||!p&&3===v[f.n])&&(f.n=h),y(f)&&3!==v[f.n])return f;p||(2===g&&null==c.v&&h!==s&&(c.v=h),(null==c.n||c.n===c.v)&&(c.n=h))}function y(m){return null!=m.v&&null!=m.n}return y(f)?f:y(c)?c:null}();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function jc(t){if(!t.get("data",!0))return Ji(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Dn).models[0]}function Ky(t,e){return jy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function jy(t,e,r,n,a,i){var o,u,l;if(wt(t))return 3;if(n){var f=n[i];J(f)?(u=f.name,l=f.type):q(f)&&(u=f)}if(null!=l)return"ordinal"===l?1:3;if(e===_t){var c=t;if(r===ya){for(var v=c[i],h=0;h<(v||[]).length&&h<5;h++)if(null!=(o=S(v[a+h])))return o}else for(h=0;h<c.length&&h<5;h++){var d=c[a+h];if(d&&null!=(o=S(d[i])))return o}}else if(e===ar){var g=t;if(!u)return 3;for(h=0;h<g.length&&h<5;h++)if((p=g[h])&&null!=(o=S(p[u])))return o}else if(e===_r){if(!u)return 3;if(!(v=t[u])||wt(v))return 3;for(h=0;h<v.length&&h<5;h++)if(null!=(o=S(v[h])))return o}else if(e===Xt){var m=t;for(h=0;h<m.length&&h<5;h++){var p,_=Ki(p=m[h]);if(!V(_))return 3;if(null!=(o=S(_[i])))return o}}function S(C){var T=q(C);return null!=C&&isFinite(Number(C))&&""!==C?T?2:3:T&&"-"!==C?1:void 0}return 3}var $c=ve(),$y=we(),Qc=(we(),function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=nt(this.get("color",!0)),i=this.get("colorLayer",!0);return function Qy(t,e,r,n,a,i,o){var s=e(i=i||t),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var f=null!=o&&n?function uM(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}(n,o):r;if((f=f||r)&&f.length){var c=f[u];return a&&(l[a]=c),s.paletteIdx=(u+1)%f.length,c}}(this,$y,a,i,e,r,n)},t.prototype.clearColorPalette=function(){!function lM(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,$y)},t}());var cu,co,Jy,em="\0_ec_inner",rm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new et(i),this._locale=new et(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=im(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,im(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||"recreate"===r){var o=i.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(o,n)):Jy(this,o),a=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||"recreate"===r||"media"===r){var u=i.getMediaOption(this);u.length&&w(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=ve(),l=n&&n.replaceMergeMainTypeMap;(function eM(t){Zy(t).datasetMap=ve()})(this),w(r,function(c,v){null!=c&&(ze.hasClass(v)?v&&(s.push(v),u.set(v,!0)):a[v]=null==a[v]?me(c):Fe(a[v],c,!0))}),l&&l.each(function(c,v){ze.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),ze.topologicalTravel(s,ze.getAllClassMainTypes(),function f(c){var v=function iM(t,e,r){var n=$c.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}(this,c,nt(r[c])),h=i.get(c),g=ag(h,v,h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll");(function vx(t,e,r){w(t,function(n){var a=n.newOption;J(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=function dx(t,e,r,n){return e.type?e.type:r?r.subType:n.determineSubType(t,e)}(e,a,n.existing,r))})})(g,c,ze),a[c]=null,i.set(c,null),o.set(c,0);var _,p=[],y=[],m=0;w(g,function(C,T){var x=C.existing,D=C.newOption;if(D){var A=ze.getClass(c,C.keyInfo.subType,!("series"===c));if(!A)return;if("tooltip"===c){if(_)return;_=!0}if(x&&x.constructor===A)x.name=C.keyInfo.name,x.mergeOption(D,this),x.optionUpdated(D,!1);else{var P=k({componentIndex:T},C.keyInfo);k(x=new A(D,this,this,P),P),C.brandNew&&(x.__requireNewView=!0),x.init(D,this,this),x.optionUpdated(null,!0)}}else x&&(x.mergeOption({},this),x.optionUpdated({},!1));x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),a[c]=p,i.set(c,y),o.set(c,m),"series"===c&&cu(this)},this),this._seriesIndices||cu(this)},e.prototype.getOption=function(){var r=me(this.option);return w(r,function(n,a){if(ze.hasClass(a)){for(var i=nt(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!$i(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[em],r},e.prototype.setTheme=function(r){this._theme=new et(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(null==n)for(var o=0;o<a.length;o++)if(a[o])return a[o]}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var u,a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);return s&&s.length?(null!=a?(u=[],w(nt(a),function(l){s[l]&&u.push(s[l])})):u=null!=i?nm("id",i,s):null!=o?nm("name",o,s):Ye(s,function(l){return!!l}),am(u,r)):[]},e.prototype.findComponents=function(r){var a=r.mainType,i=function s(l){var f=a+"Index",c=a+"Id",v=a+"Name";return!l||null==l[f]&&null==l[c]&&null==l[v]?null:{mainType:a,index:l[f],id:l[c],name:l[v]}}(r.query);return function u(l){return r.filter?Ye(l,r.filter):l}(am(i?this.queryComponents(i):Ye(this._componentsMap.get(a),function(l){return!!l}),r))},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ce(r)){var o=n,s=r;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=q(r)?i.get(r):J(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Mt(r,null);return Ye(this._componentsMap.get("series"),function(a){return!!a&&null!=n&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){co(this),w(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){w(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){co(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return w(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return co(this),null==this._seriesIndicesMap.get(r.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){co(this);var a=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ve(a)},e.prototype.restoreData=function(r){cu(this);var n=this._componentsMap,a=[];n.each(function(i,o){ze.hasClass(o)&&a.push(o)}),ze.topologicalTravel(a,ze.getAllClassMainTypes(),function(i){w(n.get(i),function(o){o&&("series"!==i||!function pM(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return null!=r&&t.componentIndex!==r||null!=n&&t.id!==n||null!=a&&t.name!==a}}(o,r))&&o.restoreData()})})},e.internalField=(cu=function(r){var n=r._seriesIndices=[];w(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ve(n)},co=function(r){},void(Jy=function(r,n){r.option={},r.option[em]=1,r._componentsMap=ve({series:[]}),r._componentsCount=ve();var a=n.aria;J(a)&&null==a.enabled&&(a.enabled=!0),function gM(t,e){var r=t.color&&!t.colorLayer;w(e,function(n,a){"colorLayer"===a&&r||"color"===a&&t.color||ze.hasClass(a)||("object"==typeof n?t[a]=t[a]?Fe(t[a],n,!1):me(n):null==t[a]&&(t[a]=n))})}(n,r._theme.option),Fe(n,Xy,!1),r._mergeOption(n,null)})),e}(et);function nm(t,e,r){if(V(e)){var n=ve();return w(e,function(i){null!=i&&null!=Mt(i,null)&&n.set(i,!0)}),Ye(r,function(i){return i&&n.get(i[t])})}var a=Mt(e,null);return Ye(r,function(i){return i&&null!=a&&i[t]===a})}function am(t,e){return e.hasOwnProperty("subType")?Ye(t,function(r){return r&&r.subType===e.subType}):t}function im(t){var e=ve();return t&&w(nt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}hr(rm,Qc);const om=rm;var yM=/^(min|max)?(.+)$/,mM=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(w(nt(e.series),function(o){o&&o.data&&wt(o.data)&&Jo(o.data)}),w(nt(e.dataset),function(o){o&&o.source&&wt(o.source)&&Jo(o.source)})),e=me(e);var a=this._optionBackup,i=function _M(t,e,r){var a,i,n=[],o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);function v(h){w(e,function(d){d(h,r)})}return o?(i=o).timeline||(i.timeline=s):((c||f)&&(t.options=t.media=null),i=t),f&&V(l)&&w(l,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),w(u,function(h){return v(h)}),w(n,function(h){return v(h.option)}),{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],me(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=me(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)SM(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!function TM(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=ie(o,function(f){return me(-1===f?i.option:a[f].option)})),this._currentMediaIndices=o,s},t}();function SM(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return w(t,function(i,o){var s=o.match(yM);if(s&&s[1]&&s[2]){var u=s[1],l=s[2].toLowerCase();(function CM(t,e,r){return"min"===r?t>=e:"max"===r?t<=e:t===e})(n[l],i,u)||(a=!1)}}),a}const bM=mM;var Cr=w,ho=J,sm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Jc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=sm.length;r<n;r++){var a=sm[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?Fe(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Fe(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function St(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,He(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function vo(t){St(t,"itemStyle"),St(t,"lineStyle"),St(t,"areaStyle"),St(t,"label"),St(t,"labelLine"),St(t,"upperLabel"),St(t,"edgeLabel")}function je(t,e){var r=ho(t)&&t[e],n=ho(r)&&r.textStyle;if(n)for(var a=0,i=ng.length;a<i;a++){var o=ng[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function or(t){t&&(vo(t),je(t,"label"),t.emphasis&&je(t.emphasis,"label"))}function on(t){return V(t)?t:t?[t]:[]}function um(t){return(V(t)?t[0]:t)||{}}function lm(t){t&&w(AM,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var AM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],LM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],eh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function po(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<eh.length;r++){var n=eh[r][1];null!=e[n]&&(e[eh[r][0]]=e[n])}}function fm(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function cm(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function hm(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&hm(t[r].children,e)}function vm(t,e){(function wM(t,e){Cr(on(t.series),function(n){ho(n)&&function xM(t){if(ho(t)){Jc(t),vo(t),je(t,"label"),je(t,"upperLabel"),je(t,"edgeLabel"),t.emphasis&&(je(t.emphasis,"label"),je(t.emphasis,"upperLabel"),je(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Jc(e),or(e));var r=t.markLine;r&&(Jc(r),or(r));var n=t.markArea;n&&or(n);var a=t.data;if("graph"===t.type){a=a||t.nodes;var i=t.links||t.edges;if(i&&!wt(i))for(var o=0;o<i.length;o++)or(i[o]);w(t.categories,function(l){vo(l)})}if(a&&!wt(a))for(o=0;o<a.length;o++)or(a[o]);if((e=t.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)or(s[o])}if((r=t.markLine)&&r.data){var u=r.data;for(o=0;o<u.length;o++)V(u[o])?(or(u[o][0]),or(u[o][1])):or(u[o])}"gauge"===t.type?(je(t,"axisLabel"),je(t,"title"),je(t,"detail")):"treemap"===t.type?(St(t.breadcrumb,"itemStyle"),w(t.levels,function(l){vo(l)})):"tree"===t.type&&vo(t.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Cr(r,function(n){Cr(on(t[n]),function(a){a&&(je(a,"axisLabel"),je(a.axisPointer,"label"))})}),Cr(on(t.parallel),function(n){var a=n&&n.parallelAxisDefault;je(a,"axisLabel"),je(a&&a.axisPointer,"label")}),Cr(on(t.calendar),function(n){St(n,"itemStyle"),je(n,"dayLabel"),je(n,"monthLabel"),je(n,"yearLabel")}),Cr(on(t.radar),function(n){je(n,"name"),n.name&&null==n.axisName&&(n.axisName=n.name,delete n.name),null!=n.nameGap&&null==n.axisNameGap&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Cr(on(t.geo),function(n){ho(n)&&(or(n),Cr(on(n.regions),function(a){or(a)}))}),Cr(on(t.timeline),function(n){or(n),St(n,"label"),St(n,"itemStyle"),St(n,"controlStyle",!0);var a=n.data;V(a)&&w(a,function(i){J(i)&&(St(i,"label"),St(i,"itemStyle"))})}),Cr(on(t.toolbox),function(n){St(n,"iconStyle"),Cr(n.feature,function(a){St(a,"iconStyle")})}),je(um(t.axisPointer),"label"),je(um(t.tooltip).axisPointer,"label")})(t,e),t.series=nt(t.series),w(t.series,function(r){if(J(r)){var n=r.type;if("line"===n)null!=r.clipOverflow&&(r.clip=r.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=r.clockWise&&(r.clockwise=r.clockWise),fm(r.label),(a=r.data)&&!wt(a))for(var i=0;i<a.length;i++)fm(a[i]);null!=r.hoverOffset&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if("gauge"===n){var o=function DM(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&null!=(n=n&&n[r[a]]);a++);return n}(r,"pointer.color");null!=o&&function MM(t,e,r,n){for(var o,a=e.split(","),i=t,s=0;s<a.length-1;s++)null==i[o=a[s]]&&(i[o]={}),i=i[o];(n||null==i[a[s]])&&(i[a[s]]=r)}(r,"itemStyle.color",o)}else if("bar"===n){var a;if(po(r),po(r.backgroundStyle),po(r.emphasis),(a=r.data)&&!wt(a))for(i=0;i<a.length;i++)"object"==typeof a[i]&&(po(a[i]),po(a[i]&&a[i].emphasis))}else if("sunburst"===n){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),cm(r),hm(r.data,cm)}else"graph"===n||"sankey"===n?function PM(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(r):"map"===n&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&He(r,r.mapLocation));null!=r.hoverAnimation&&(r.emphasis=r.emphasis||{},r.emphasis&&null==r.emphasis.scale&&(r.emphasis.scale=r.hoverAnimation)),lm(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(LM,function(r){var n=t[r];n&&(V(n)||(n=[n]),w(n,function(a){lm(a)}))})}var IM=qf(function RM(t){var e=ve();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;a.push(o)}}),e.each(function(r){0!==r.length&&("seriesDesc"===(r[0].seriesModel.get("stackOrder")||"seriesAsc")&&r.reverse(),w(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),function EM(t){w(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,f,c){var h,d,v=o.get(e.stackedDimension,c);if(isNaN(v))return a;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var y=t[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===u||"positive"===u&&m>0||"negative"===u&&m<0||"samesign"===u&&v>=0&&m>0||"samesign"===u&&v<=0&&m<0){v=Z1(v,m),g=m;break}}}return n[0]=v,n[1]=g,n})})}(r))})}),hu=function(){return function t(e){this.data=e.data||(e.sourceFormat===_r?{}:[]),this.sourceFormat=e.sourceFormat||Xg,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 n=0;n<r.length;n++){var a=r[n];null==a.type&&1===Ky(this,n)&&(a.type="ordinal")}}}();function th(t){return t instanceof hu}function rh(t,e,r){r=r||dm(t);var n=e.seriesLayoutBy,a=function kM(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:pm(a),startIndex:o,dimensionsDetectedCount:i};if(e===_t){var s=t;"auto"===n||null==n?gm(function(l){null!=l&&"-"!==l&&(q(l)?null==o&&(o=1):o=0)},r,s,10):o=Be(n)?n:n?1:0,!a&&1===o&&(a=[],gm(function(l,f){a[f]=null!=l?l+"":""},r,s,1/0)),i=a?a.length:r===ya?s.length:s[0]?s[0].length:null}else if(e===ar)a||(a=function BM(t){for(var r,e=0;e<t.length&&!(r=t[e++]););if(r)return Le(r)}(t));else if(e===_r)a||(a=[],w(t,function(l,f){a.push(f)}));else if(e===Xt){var u=Ki(t[0]);i=V(u)&&u.length||1}return{startIndex:o,dimensionsDefine:pm(a),dimensionsDetectedCount:i}}(t,r,n,e.sourceHeader,e.dimensions);return new hu({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:me(e)})}function nh(t){return new hu({data:t,sourceFormat:wt(t)?tn:Xt})}function OM(t){return new hu({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:me(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function dm(t){var e=Xg;if(wt(t))e=tn;else if(V(t)){0===t.length&&(e=_t);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(null!=a){if(V(a)||wt(a)){e=_t;break}if(J(a)){e=ar;break}}}}else if(J(t))for(var i in t)if(oe(t,i)&&gt(t[i])){e=_r;break}return e}function pm(t){if(t){var e=ve();return ie(t,function(r,n){var a={name:(r=J(r)?r:{name:r}).name,displayName:r.displayName,type:r.type};if(null==a.name)return a;a.name+="",null==a.displayName&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function gm(t,e,r,n){if(e===ya)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else{var i=r[0]||[];for(a=0;a<i.length&&a<n;a++)t(i[a],a)}}function ym(t){var e=t.sourceFormat;return e===ar||e===_r}var mm={},FM=typeof console<"u"&&console.warn&&console.log;function _m(t,e){!function ah(t,e,r){if(FM){if(r){if(mm[e])return;mm[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function It(t){throw new Error(t)}var ba,xa,wa,Da,Cm,Tm,bm=function(){function t(e,r){var n=th(e)?e:nh(e);this._source=n;var a=this._data=n.data;n.sourceFormat===tn&&(this._offset=0,this._dimSize=r,this._data=a),Tm(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var e;Tm=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,v=u.dimensionsDefine;if(k(o,Cm[oh(l,f)]),l===tn)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=wm(l,f);o.getItem=Pe(d,null,s,c,v);var g=Mm(l,f);o.count=Pe(g,null,s,c,v)}};var r=function(o,s){s=s||[];for(var u=this._data,l=this._dimSize,f=l*(o-=this._offset),c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=l[v],d=null==h[0]?1/0:h[0],g=null==h[1]?-1/0:h[1],p=s-o,y=u[v],m=0;m<p;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}h[0]=d,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[_t+"_"+Or]={pure:!0,appendData:i},e[_t+"_"+ya]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ar]={pure:!0,appendData:i},e[_r]={pure:!0,appendData:function(o){var s=this._data;w(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[Xt]={appendData:i},e[tn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},Cm=e}(),t;var e}(),vu=function(t){V(t)||_m("series.data or dataset.source must be an array.")},xm=((ba={})[_t+"_"+Or]=vu,ba[_t+"_"+ya]=vu,ba[ar]=vu,ba[_r]=function(t,e){for(var r=0;r<e.length;r++)null==e[r].name&&_m("dimension name must not be null/undefined.")},ba[Xt]=vu,function(t,e,r,n){return t[n]}),GM=((xa={})[_t+"_"+Or]=function(t,e,r,n){return t[n+e]},xa[_t+"_"+ya]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},xa[ar]=xm,xa[_r]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=null!=s?t[s]:null;i[o]=u?u[n]:null}return i},xa[Xt]=xm,xa);function wm(t,e){return GM[oh(t,e)]}var Dm=function(t,e,r){return t.length},VM=((wa={})[_t+"_"+Or]=function(t,e,r){return Math.max(0,t.length-e)},wa[_t+"_"+ya]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},wa[ar]=Dm,wa[_r]=function(t,e,r){var n=r[0].name,a=null!=n?t[n]:null;return a?a.length:0},wa[Xt]=Dm,wa);function Mm(t,e){return VM[oh(t,e)]}var ih=function(t,e,r){return t[e]},UM=((Da={})[_t]=ih,Da[ar]=function(t,e,r){return t[r]},Da[_r]=ih,Da[Xt]=function(t,e,r){var n=Ki(t);return n instanceof Array?n[e]:n},Da[tn]=ih,Da);function Am(t){return UM[t]}function oh(t,e){return t===_t?t+"_"+e:t}function du(t,e,r){if(t){var n=t.getRawDataItem(e);if(null!=n){var a=t.getStore(),i=a.getSource().sourceFormat;if(null!=r){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return Am(i)(n,o,s)}var u=n;return i===Xt&&(u=Ki(n)),u}}}var WM=/\{@(.+?)\}/g,qM=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,v="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:l,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);return o&&(u.value=o.interpolatedValue),null!=a&&V(u.value)&&(u.value=u.value[a]),i||(i=s.getItemModel(e).get("normal"===r?["label","formatter"]:[r,"label","formatter"])),ce(i)?(u.status=r,u.dimensionIndex=a,i(u)):q(i)?qc(i,u).replace(WM,function(c,v){var h=v.length,d=v;"["===d.charAt(0)&&"]"===d.charAt(h-1)&&(d=+d.slice(1,h-1));var g=du(s,e,d);if(o&&V(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return null!=g?g+"":""}):void 0},t.prototype.getRawValue=function(e,r){return du(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Lm(t){var e,r;return J(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function go(t){return new YM(t)}var YM=function(){function t(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var i,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(i=this._plan(this.context));var c,o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==u||s!==l)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var v=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var g=this._progress;if(V(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],h,d,u,l);else this._doProgress(g,h,d,u,l)}this._dueIndex=d,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:d}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){Pm.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Pm.next},this.context)},t.prototype._doReset=function(e){var r,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((r=this._reset(this.context))&&r.progress&&(n=r.forceFirstProgress,r=r.progress),V(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Pm=function(){var t,e,r,n,a,i={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var u=e%a*r+Math.ceil(e/a),l=e>=t?null:u<n?u:e;return e++,l}}();function pu(t,e){var r=e&&e.type;return"ordinal"===r?t:("time"===r&&!Be(t)&&null!=t&&"-"!==t&&(t=+Xr(t)),null==t||""===t?NaN:Number(t))}ve({number:function(t){return parseFloat(t)},time:function(t){return+Xr(t)},trim:function(t){return q(t)?dr(t):t}});var jM=function(){function t(e,r){var n="desc"===e;this._resultLT=n?1:-1,null==r&&(r=n?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Be(e)?e:Zr(e),a=Be(r)?r:Zr(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=q(e),u=q(r);s&&(n=u?e:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}();function JM(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var eA=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 pu(e,r)},t}();function rA(t){return sh(t.sourceFormat)||It(""),t.data}function nA(t){var e=t.sourceFormat,r=t.data;if(sh(e)||It(""),e===_t){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}if(e===ar){for(a=[],i=0,o=r.length;i<o;i++)a.push(k({},r[i]));return a}}function aA(t,e,r){if(null!=r){if(Be(r)||!isNaN(r)&&!oe(e,r))return t[r];if(oe(e,r))return e[r]}}function iA(t){return me(t)}var Rm=ve();function uA(t,e,r,n){e.length||It(""),J(t)||It("");var o=Rm.get(t.type);o||It("");var s=ie(e,function(f){return function tA(t,e){var r=new eA,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex;t.seriesLayoutBy!==Or&&It("");var s=[],u={},l=t.dimensionsDefine;if(l)w(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};s.push(m),null!=y&&(oe(u,y)&&It(""),u[y]=m)});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=wm(a,Or);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,i,s,g)},r.getRawData=Pe(rA,null,t)),r.cloneRawData=Pe(nA,null,t);var v=Mm(a,Or);r.count=Pe(v,null,n,i,s);var h=Am(a);r.retrieveValue=function(g,p){var y=c(n,i,s,g);return d(y,p)};var d=r.retrieveValueFromItem=function(g,p){if(null!=g){var y=s[p];if(y)return h(g,p,y.name)}};return r.getDimensionInfo=Pe(aA,null,s,u),r.cloneAllDimensionInfo=Pe(iA,null,s),r}(f,o)});return ie(nt(o.transform({upstream:s[0],upstreamList:s,config:me(t.config)})),function(f,c){J(f)||It(""),f.data||It(""),sh(dm(f.data))||It("");var d,g=e[0];if(g&&0===c&&!f.dimensions){var p=g.startIndex;p&&(f.data=g.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:Or,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:Or,sourceHeader:0,dimensions:f.dimensions};return rh(f.data,d,null)})}function sh(t){return t===_t||t===ar}var uh,lA=typeof Uint32Array===Vs?Array:Uint32Array,fA=typeof Uint16Array===Vs?Array:Uint16Array,Em=typeof Int32Array===Vs?Array:Int32Array,Om=typeof Float64Array===Vs?Array:Float64Array,km={float:Om,int:Em,ordinal:Array,number:Array,time:Om};function hi(t){return t>65535?lA:fA}function cA(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Bm(t,e,r,n,a){var i=km[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new i(n)}var hA=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ve()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=uh[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],ym(a),this._dimensions=ie(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(null!=i){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new km[r||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var u=i[e],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<i;l++)Bm(n,l,a[l].type,u,!0);for(var c=[],v=s;v<u;v++)for(var h=v-s,d=0;d<i;d++){var g=uh.arrayRows.call(this,e[h]||c,a[d].property,h,d);n[d][v]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=ie(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=jr()),Bm(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,u);else for(var v=[],h=e;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var g=i[d],p=this._dimValueGetter(v,l[d],h,d);g[h]=p;var y=u[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(null==r){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;i=0;for(var o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var n=0;if(this._chunks[e])for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)}),kf(r);var n=this.count();return 0===n?0:n%2==1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(null!=n&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else{if(!(r[o]>e))return o;i=o-1}}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var a=this._count;if((n=r.constructor)===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n;for(e=new(n=hi(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=new(hi(n._rawCount))(a),s=[],u=e.length,l=0,f=e[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(0===u)h=r(v);else if(1===u)h=r(c[f][d],v);else{for(var p=0;p<u;p++)s[p]=c[e[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=Le(e),i=a.length;if(!i)return this;var o=r.count(),u=new(hi(r._rawCount))(o),l=0,f=a[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var g=0;if(1===i){for(var p=h[a[0]],y=0;y<n;y++)((m=p[y])>=c&&m<=v||isNaN(m))&&(u[l++]=g),g++;d=!0}else if(2===i){p=h[a[0]];var _=h[a[1]],S=e[a[1]][0],C=e[a[1]][1];for(y=0;y<n;y++){var T=_[y];((m=p[y])>=c&&m<=v||isNaN(m))&&(T>=S&&T<=C||isNaN(T))&&(u[l++]=g),g++}d=!0}}if(!d)if(1===i)for(y=0;y<o;y++){var x=r.getRawIndex(y);((m=h[a[0]][x])>=c&&m<=v||isNaN(m))&&(u[l++]=x)}else for(y=0;y<o;y++){for(var D=!0,b=(x=r.getRawIndex(y),0);b<i;b++){var m,A=a[b];((m=h[A][x])<e[A][0]||m>e[A][1])&&(D=!1)}D&&(u[l++]=r.getRawIndex(y))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=jr();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)u[h]=a[r[h]][v];u[o]=c;var d=n&&n.apply(null,u);if(null!=d)for("object"!=typeof d&&(i[0]=d,d=i),f=0;f<d.length;f++){var g=r[f],p=d[f],y=l[g],m=a[g];m&&(m[v]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}},t.prototype.lttbDownSample=function(e,r){var f,c,v,n=this.clone([e],!0),i=n._chunks[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),h=new(hi(this._rawCount))(Math.min(2*(Math.ceil(o/u)+2),o));h[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+2*u,o),y=(p+g)/2,m=0,_=g;_<p;_++){var C=i[S=this.getRawIndex(_)];isNaN(C)||(m+=C)}m/=p-g;var T=d,x=Math.min(d+u,o),D=d-1,b=i[l];f=-1,v=T;var A=-1,R=0;for(_=T;_<x;_++){var S;C=i[S=this.getRawIndex(_)],isNaN(C)?(R++,A<0&&(A=S)):(c=Math.abs((D-y)*(C-b)-(D-_)*(m-b)))>f&&(f=c,v=S)}R>0&&R<x-T&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,l=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),u=new(hi(this._rawCount))(2*Math.ceil(s/i)),l=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],g=i;f+i>s&&(g=s-f);for(var p=0;p<g;p++){var m=o[this.getRawIndex(f+p)];m<v&&(v=m,c=f+p),m>d&&(d=m,h=f+p)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=i._rawExtent[e]=[1/0,-1/0],v=new(hi(this._rawCount))(Math.ceil(f/u)),h=0,d=0;d<f;d+=u){u>f-d&&(s.length=u=f-d);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));l[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[e[u]][s];l[u]=i,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],a=[1/0,-1/0];if(!n)return a;var i=this.count();if(!this._indices&&!r)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=function QM(t){var e="",r=-1/0,n=-1/0,a=1/0,i=1/0;return t&&(null!=t.g&&(e+="G"+t.g,r=t.g),null!=t.ge&&(e+="GE"+t.ge,n=t.ge),null!=t.l&&(e+="L"+t.l,a=t.l),null!=t.le&&(e+="LE"+t.le,i=t.le)),{key:e,g:r,ge:n,l:a,le:i}}(r),f=l.key,c=u[f];if(c)return c.slice();for(var v=a[0],h=a[1],d=0;d<i;d++){var p=n[this.getRawIndex(d)];(!r||JM(l,p))&&(p<v&&(v=p),p>h&&(h=p))}return u[f]=[v,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&vr(e,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?cA(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=me(this._extent),e._rawExtent=me(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return pu(r[i],this._dimensions[i])}uh={arrayRows:e,objectRows:function(r,n,a,i){return pu(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(null==r.value?r:r.value);return pu(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}();const lh=hA;var dA=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 a,i,e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length;if(gu(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),s=(l=f.getSource()).data,u=l.sourceFormat,i=[f._getVersionSign()]}else u=wt(s=o.get("data",!0))?tn:Xt,i=[];var c=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},h=te(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=te(c.sourceHeader,v.sourceHeader),g=te(c.dimensions,v.dimensions);a=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||g?[rh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:g},u)]:[]}else{var y=e;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else a=[rh(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&Nm("");var o,s=[],u=[];return w(e,function(l){l.prepareSource();var f=l.getSource(a||0);null!=a&&!f&&Nm(""),s.push(f),u.push(l._getVersionSign())}),n?o=function sA(t,e){var n=nt(t),a=n.length;a||It("");for(var o=0,s=a;o<s;o++)e=uA(n[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(n,s):null!=a&&(o=[OM(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){var r=this._sourceList[e=e||0];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];gu(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new lh).initData(new bm(r,e.length),e),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(gu(e)){var r=jc(e);return r?[r.getSourceManager()]:[]}return ie(function nM(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ji(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Dn).models:[]}(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r,n,a,e=this._sourceHost;if(gu(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function gu(t){return"series"===t.mainType}function Nm(t){throw new Error(t)}function Fm(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+Dt(e+"")+"px"}function Hm(t,e){var r=t.color||Te.color.tertiary,n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||Te.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Dt(n+"")+"px;color:"+Dt(r)+";font-weight:"+Dt(a+""),valueStyle:"font-size:"+Dt(o+"")+"px;color:"+Dt(i)+";font-weight:"+Dt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var gA=[0,10,20,30],yA=["","\n","\n\n","\n\n\n"];function yo(t,e){return e.type=t,e}function fh(t){return"section"===t.type}function zm(t){return fh(t)?mA:_A}function Gm(t){if(fh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return w(t.blocks,function(a){var i=Gm(a);i>=e&&(e=i+ +(n&&(!i||fh(a)&&!a.noHeader)))}),e}return 0}function mA(t,e,r,n){var a=e.noHeader,i=function SA(t){return{html:gA[t],richText:yA[t]}}(Gm(e)),o=[],s=e.blocks||[];Dr(!s||V(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(oe(l,u)){var f=new jM(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else"seriesDesc"===u&&s.reverse()}w(s,function(g,p){var y=e.valueFormatter,m=zm(g)(y?k(k({},t),{valueFormatter:y}):t,g,p>0?i.html:0,n);null!=m&&o.push(m)});var c="richText"===t.renderMode?o.join(i.richText):ch(n,o.join(""),a?r:i.html);if(a)return c;var v=Uc(e.header,"ordinal",t.useUTC),h=Hm(n,t.renderMode).nameStyle,d=Fm(n);return"richText"===t.renderMode?Um(t,v,h)+i.richText+c:ch(n,'<div style="'+h+";"+d+';">'+Dt(v)+"</div>"+c,r)}function _A(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return ie(S=V(S)?S:[S],function(C,T){return Uc(C,V(h)?h[T]:h,l)})};if(!i||!o){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Te.color.secondary,a),v=i?"":Uc(u,"ordinal",l),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),g=!s||!i,p=!s&&i,y=Hm(n,a),m=y.nameStyle,_=y.valueStyle;return"richText"===a?(s?"":c)+(i?"":Um(t,v,m))+(o?"":function bA(t,e,r,n,a){var i=[a];return r&&i.push({padding:[0,0,0,n?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,i)}(t,d,g,p,_)):ch(n,(s?"":c)+(i?"":function CA(t,e,r){return'<span style="'+r+";"+(e?"margin-left:2px":"")+'">'+Dt(t)+"</span>"}(v,!s,m))+(o?"":function TA(t,e,r,n){return'<span style="'+(e?"float:right;margin-left:"+(r?"10px":"20px"):"")+";"+n+'">'+ie(t=V(t)?t:[t],function(o){return Dt(o)}).join("&nbsp;&nbsp;")+"</span>"}(d,g,p,_)),r)}}function Vm(t,e,r,n,a,i){if(t)return zm(t)({useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,i)}function ch(t,e,r){return'<div style="margin: '+r+"px 0 0;"+Fm(t)+';">'+e+'<div style="clear:both"></div></div>'}function Um(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Wm(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var hh=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Hf()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a="richText"===n?this._generateStyleName():null,i=Fy({color:r,type:e,renderMode:n,markerId:a});return q(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};V(r)?w(r,function(i){return k(n,i)}):k(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();var Rn=we();function yu(t,e){return t.getName(e)||t.getId(e)}var mu=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return(0,K.C6)(e,t),e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=go({count:LA,reset:PA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a),(Rn(this).sourceManager=new dA(this)).prepareSource();var o=this.getInitialData(r,a);Ym(o,this),this.dataTask.context.data=o,Rn(this).dataBeforeProcessed=o,qm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=fu(this),i=a?Kc(r):{},o=this.subType;ze.hasClass(o)&&(o+="Series"),Fe(r,n.getTheme().get(this.subType)),Fe(r,this.getDefaultOption()),zf(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&li(r,i,a)},e.prototype.mergeOption=function(r,n){r=Fe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=fu(this);a&&li(this.option,r,a);var i=Rn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Ym(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Rn(this).dataBeforeProcessed=o,qm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!wt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&zf(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){this.getRawData().appendData(r.data)},e.prototype.getData=function(r){var n=vh(this);if(n){var a=n.context.data;return null!=r&&a.getLinkedData?a.getLinkedData(r):a}return Rn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=vh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Rn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ve(r)},e.prototype.getSourceManager=function(){return Rn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Rn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(a);null==i&&(i=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),g=o.getStore(),p=0,y=g.count();p<y;p++){var m=g.get(d,p),S=l-u.dataToCoord(m),C=Math.abs(S);C<=i&&((C<c||C===c&&S>=0&&v<0)&&(c=C,v=S,h=0),S===v&&(f[h++]=p))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,a){return function wA(t){var f,c,v,h,e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),u=V(s),l=function xA(t,e){return uo(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(e,r);if(o>1||u&&!o){var d=function DA(t,e,r,n,a){var i=e.getData(),o=vr(t,function(c,v,h){var d=i.getDimensionInfo(h);return c||d&&!1!==d.tooltip&&null!=d.displayName},!1),s=[],u=[],l=[];function f(c,v){var h=i.getDimensionInfo(v);!h||!1===h.otherDims.tooltip||(o?l.push(yo("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return n.length?w(n,function(c){f(du(i,r,c),c)}):w(t,f),{inlineValues:s,inlineValueTypes:u,blocks:l}}(s,e,r,i,l);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=f=du(a,r,i[0]),c=g.type}else h=f=u?s[0]:s;var p=Gf(e),y=p&&e.name||"",m=a.getName(r),_=n?y:m;return yo("section",{header:y,noHeader:n||!p,sortParam:h,blocks:[yo("nameValue",{markerType:"item",markerColor:l,name:_,noName:!dr(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(r)})].concat(v||[])})}({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ce.node&&(!r||!r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Qc.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if("series"===i||"all"===a)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<r.length;s++){var l=yu(o,r[s]);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Le(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return("all"===a||a[yu(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(s&&u)if("series"===s)o.selectedMap="all";else if("multiple"===s){J(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f];l[v=yu(r,c)]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if("single"===s||!0===s){var h=n[u-1],v=yu(r,h);o.selectedMap=((a={})[v]=!0,a),this._selectedDataIndicesMap=((i={})[v]=r.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ze.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}(ze);function qm(t){var e=t.name;Gf(t)||(t.name=function AA(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return w(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}(t)||e)}function LA(t){return t.model.getRawData().count()}function PA(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),IA}function IA(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ym(t,e){w(Ld(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Xe(RA,e))})}function RA(t,e){var r=vh(t);return r&&r.setOutputEnd((e||this).count()),e}function vh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}hr(mu,qM),hr(mu,Qc),fg(mu,ze);const En=mu;var dh=function(){function t(){this.group=new Yt,this.uid=Js("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Yf(dh),Bs(dh);const sr=dh;var vi=da.CMD,OA=[[],[],[]],Xm=Math.sqrt,kA=Math.atan2,ph=Math.sqrt,_u=Math.sin,Su=Math.cos,mo=Math.PI;function Zm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function gh(t,e){return(t[0]*e[0]+t[1]*e[1])/(Zm(t)*Zm(e))}function Km(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(gh(t,e))}function jm(t,e,r,n,a,i,o,s,u,l,f){var c=u*(mo/180),v=Su(c)*(t-r)/2+_u(c)*(e-n)/2,h=-1*_u(c)*(t-r)/2+Su(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=ph(d),s*=ph(d));var g=(a===i?-1:1)*ph((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=g*o*h/s,y=g*-s*v/o,m=(t+r)/2+Su(c)*p-_u(c)*y,_=(e+n)/2+_u(c)*p+Su(c)*y,S=Km([1,0],[(v-p)/o,(h-y)/s]),C=[(v-p)/o,(h-y)/s],T=[(-1*v-p)/o,(-1*h-y)/s],x=Km(C,T);if(gh(C,T)<=-1&&(x=mo),gh(C,T)>=1&&(x=0),x<0){var D=Math.round(x/mo*1e6)/1e6;x=2*mo+D%2*mo}f.addData(l,m,_,o,s,S,x,c,i)}var HA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,zA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,$m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e.prototype.applyTransform=function(r){},e}(Ne);function Qm(t){return null!=t.setData}function Jm(t,e){var r=function GA(t){var e=new da;if(!t)return e;var o,r=0,n=0,a=r,i=n,s=da.CMD,u=t.match(HA);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),v=void 0,h=f.match(zA)||[],d=h.length,g=0;g<d;g++)h[g]=parseFloat(h[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,S=void 0,C=void 0,T=void 0,x=void 0,D=r,b=n,A=void 0,R=void 0;switch(c){case"l":r+=h[p++],n+=h[p++],e.addData(v=s.L,r,n);break;case"L":r=h[p++],n=h[p++],e.addData(v=s.L,r,n);break;case"m":r+=h[p++],n+=h[p++],e.addData(v=s.M,r,n),a=r,i=n,c="l";break;case"M":r=h[p++],n=h[p++],e.addData(v=s.M,r,n),a=r,i=n,c="L";break;case"h":r+=h[p++],e.addData(v=s.L,r,n);break;case"H":r=h[p++],e.addData(v=s.L,r,n);break;case"v":n+=h[p++],e.addData(v=s.L,r,n);break;case"V":n=h[p++],e.addData(v=s.L,r,n);break;case"C":e.addData(v=s.C,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":e.addData(v=s.C,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":y=r,m=n,A=e.len(),R=e.data,o===s.C&&(y+=r-R[A-4],m+=n-R[A-3]),D=h[p++],b=h[p++],r=h[p++],n=h[p++],e.addData(v=s.C,y,m,D,b,r,n);break;case"s":y=r,m=n,A=e.len(),R=e.data,o===s.C&&(y+=r-R[A-4],m+=n-R[A-3]),D=r+h[p++],b=n+h[p++],r+=h[p++],n+=h[p++],e.addData(v=s.C,y,m,D,b,r,n);break;case"Q":D=h[p++],b=h[p++],r=h[p++],n=h[p++],e.addData(v=s.Q,D,b,r,n);break;case"q":D=h[p++]+r,b=h[p++]+n,r+=h[p++],n+=h[p++],e.addData(v=s.Q,D,b,r,n);break;case"T":y=r,m=n,A=e.len(),R=e.data,o===s.Q&&(y+=r-R[A-4],m+=n-R[A-3]),r=h[p++],n=h[p++],e.addData(v=s.Q,y,m,r,n);break;case"t":y=r,m=n,A=e.len(),R=e.data,o===s.Q&&(y+=r-R[A-4],m+=n-R[A-3]),r+=h[p++],n+=h[p++],e.addData(v=s.Q,y,m,r,n);break;case"A":_=h[p++],S=h[p++],C=h[p++],T=h[p++],x=h[p++],jm(D=r,b=n,r=h[p++],n=h[p++],T,x,_,S,C,v=s.A,e);break;case"a":_=h[p++],S=h[p++],C=h[p++],T=h[p++],x=h[p++],jm(D=r,b=n,r+=h[p++],n+=h[p++],T,x,_,S,C,v=s.A,e)}}("z"===c||"Z"===c)&&(e.addData(v=s.Z),r=a,n=i),o=v}return e.toStatic(),e}(t),n=k({},e);return n.buildPath=function(a){var o,i=Qm(a);i&&a.canSave()?(a.appendPath(r),(o=a.getContext())&&a.rebuildPath(o,1)):(o=i?a.getContext():a)&&r.rebuildPath(o,1)},n.applyTransform=function(a){(function BA(t,e){if(e){var a,i,o,s,u,l,r=t.data,n=t.len(),f=vi.M,c=vi.C,v=vi.L,h=vi.R,d=vi.A,g=vi.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:case v:i=1;break;case c:i=3;break;case g:i=2;break;case d:var p=e[4],y=e[5],m=Xm(e[0]*e[0]+e[1]*e[1]),_=Xm(e[2]*e[2]+e[3]*e[3]),S=kA(-e[1]/_,e[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,s=o+=2;break;case h:l[0]=r[o++],l[1]=r[o++],Ut(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],Ut(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<i;u++){var C=OA[u];C[0]=r[o++],C[1]=r[o++],Ut(C,C,e),r[s++]=C[0],r[s++]=C[1]}}t.increaseVersion()}})(r,a),this.dirtyShape()},n}var qA=function(){return function t(){this.cx=0,this.cy=0,this.r=0}}(),e0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,2*Math.PI)},e}(Ne);e0.prototype.type="circle";const Cu=e0;var YA=function(){return function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),t0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new YA},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*a,f=u*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-l,o-u,i,o-u),r.bezierCurveTo(i+l,o-u,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+l,o+u,i,o+u),r.bezierCurveTo(i-l,o+u,i-s,o+f,i-s,o),r.closePath()},e}(Ne);t0.prototype.type="ellipse";const yh=t0;var r0=Math.PI,mh=2*r0,Ma=Math.sin,di=Math.cos,XA=Math.acos,Ct=Math.atan2,n0=Math.abs,_o=Math.sqrt,So=Math.max,Br=Math.min,Tr=1e-4;function Tu(t,e,r,n,a,i,o){var s=t-r,u=e-n,l=(o?i:-i)/_o(s*s+u*u),f=l*u,c=-l*s,v=t+f,h=e+c,d=r+f,g=n+c,p=(v+d)/2,y=(h+g)/2,m=d-v,_=g-h,S=m*m+_*_,C=a-i,T=v*g-d*h,x=(_<0?-1:1)*_o(So(0,C*C*S-T*T)),D=(T*_-m*x)/S,b=(-T*m-_*x)/S,A=(T*_+m*x)/S,R=(-T*m+_*x)/S,E=D-p,P=b-y,O=A-p,F=R-y;return E*E+P*P>O*O+F*F&&(D=A,b=R),{cx:D,cy:b,x0:-f,y0:-c,x1:D*(a/C-1),y1:b*(a/C-1)}}var $A=function(){return function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),a0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new $A},e.prototype.buildPath=function(r,n){!function jA(t,e){var r,n=So(e.r,0),a=So(e.r0||0,0),i=n>0;if(i||a>0){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=e.startAngle,l=e.endAngle;if(!isNaN(u)&&!isNaN(l)){var f=e.cx,c=e.cy,v=!!e.clockwise,h=n0(l-u),d=h>mh&&h%mh;if(d>Tr&&(h=d),n>Tr)if(h>mh-Tr)t.moveTo(f+n*di(u),c+n*Ma(u)),t.arc(f,c,n,u,l,!v),a>Tr&&(t.moveTo(f+a*di(l),c+a*Ma(l)),t.arc(f,c,a,l,u,v));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,C=void 0,T=void 0,x=void 0,D=void 0,b=void 0,A=void 0,R=void 0,E=void 0,P=void 0,O=void 0,F=n*di(u),B=n*Ma(u),U=a*di(l),Y=a*Ma(l),Q=h>Tr;if(Q){var ee=e.cornerRadius;ee&&(r=function KA(t){var e;if(V(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(ee),g=r[0],p=r[1],y=r[2],m=r[3]);var se=n0(n-a)/2;if(_=Br(se,y),S=Br(se,m),C=Br(se,g),T=Br(se,p),b=x=So(_,S),A=D=So(C,T),(x>Tr||D>Tr)&&(R=n*di(l),E=n*Ma(l),P=a*di(u),O=a*Ma(u),h<r0)){var pe=function ZA(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,f=o-a,c=s-i,v=c*u-f*l;if(!(v*v<Tr))return[t+(v=(f*(e-i)-c*(t-a))/v)*u,e+v*l]}(F,B,P,O,R,E,U,Y);if(pe){var _e=F-pe[0],ue=B-pe[1],De=R-pe[0],We=E-pe[1],ot=1/Ma(XA((_e*De+ue*We)/(_o(_e*_e+ue*ue)*_o(De*De+We*We)))/2),bt=_o(pe[0]*pe[0]+pe[1]*pe[1]);b=Br(x,(n-bt)/(ot+1)),A=Br(D,(a-bt)/(ot-1))}}}if(Q)if(b>Tr){var pt=Br(y,b),$e=Br(m,b),ge=Tu(P,O,F,B,n,pt,v),be=Tu(R,E,U,Y,n,$e,v);t.moveTo(f+ge.cx+ge.x0,c+ge.cy+ge.y0),b<x&&pt===$e?t.arc(f+ge.cx,c+ge.cy,b,Ct(ge.y0,ge.x0),Ct(be.y0,be.x0),!v):(pt>0&&t.arc(f+ge.cx,c+ge.cy,pt,Ct(ge.y0,ge.x0),Ct(ge.y1,ge.x1),!v),t.arc(f,c,n,Ct(ge.cy+ge.y1,ge.cx+ge.x1),Ct(be.cy+be.y1,be.cx+be.x1),!v),$e>0&&t.arc(f+be.cx,c+be.cy,$e,Ct(be.y1,be.x1),Ct(be.y0,be.x0),!v))}else t.moveTo(f+F,c+B),t.arc(f,c,n,u,l,!v);else t.moveTo(f+F,c+B);a>Tr&&Q?A>Tr?(pt=Br(g,A),ge=Tu(U,Y,R,E,a,-($e=Br(p,A)),v),be=Tu(F,B,P,O,a,-pt,v),t.lineTo(f+ge.cx+ge.x0,c+ge.cy+ge.y0),A<D&&pt===$e?t.arc(f+ge.cx,c+ge.cy,A,Ct(ge.y0,ge.x0),Ct(be.y0,be.x0),!v):($e>0&&t.arc(f+ge.cx,c+ge.cy,$e,Ct(ge.y0,ge.x0),Ct(ge.y1,ge.x1),!v),t.arc(f,c,a,Ct(ge.cy+ge.y1,ge.cx+ge.x1),Ct(be.cy+be.y1,be.cx+be.x1),v),pt>0&&t.arc(f+be.cx,c+be.cy,pt,Ct(be.y1,be.x1),Ct(be.y0,be.x0),!v))):(t.lineTo(f+U,c+Y),t.arc(f,c,a,l,u,v)):t.lineTo(f+U,c+Y)}else t.moveTo(f,c);t.closePath()}}}(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ne);a0.prototype.type="sector";const Co=a0;var QA=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),i0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new QA},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=2*Math.PI;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(Ne);i0.prototype.type="ring";const _h=i0;function o0(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=function JA(t,e,r,n){var u,l,f,c,a=[],i=[],o=[],s=[];if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)mn(f,f,t[v]),_n(c,c,t[v]);mn(f,f,n[0]),_n(c,c,n[1])}for(v=0,h=t.length;v<h;v++){var d=t[v];if(r)u=t[v?v-1:h-1],l=t[(v+1)%h];else{if(0===v||v===h-1){a.push(Id(t[v]));continue}u=t[v-1],l=t[v+1]}Rd(i,l,u),ts(i,i,e);var g=rs(d,u),p=rs(d,l),y=g+p;0!==y&&(g/=y,p/=y),ts(o,i,-g),ts(s,i,p);var m=Fl([],d,o),_=Fl([],d,s);n&&(_n(m,m,f),mn(m,m,c),_n(_,_,f),mn(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[2*s],l=i[2*s+1],f=a[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]),s=1;for(var c=a.length;s<c;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var eL=function(){return function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),s0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultShape=function(){return new eL},e.prototype.buildPath=function(r,n){o0(r,n,!0)},e}(Ne);s0.prototype.type="polygon";const Sh=s0;var tL=function(){return function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),u0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tL},e.prototype.buildPath=function(r,n){o0(r,n,!1)},e}(Ne);u0.prototype.type="polyline";const To=u0;var rL={},nL=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),l0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nL},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Rg(rL,n,this.style);a=u.x1,i=u.y1,o=u.x2,s=u.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;0!==l&&(r.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Ne);l0.prototype.type="line";const pi=l0;var Ht=[],aL=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function f0(t,e,r){return null!=t.cpx2||null!=t.cpy2?[(r?ip:ct)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ip:ct)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?lp:yt)(t.x1,t.cpx1,t.x2,e),(r?lp:yt)(t.y1,t.cpy1,t.y2,e)]}var c0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aL},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;0!==v&&(r.moveTo(a,i),null==f||null==c?(v<1&&(ds(a,u,o,v,Ht),u=Ht[1],o=Ht[2],ds(i,l,s,v,Ht),l=Ht[1],s=Ht[2]),r.quadraticCurveTo(u,l,o,s)):(v<1&&(vs(a,u,f,o,v,Ht),u=Ht[1],f=Ht[2],o=Ht[3],vs(i,l,c,s,v,Ht),l=Ht[1],c=Ht[2],s=Ht[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return f0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=f0(this.shape,r,!0);return Ed(n,n)},e}(Ne);c0.prototype.type="bezier-curve";const Ch=c0;var iL=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),h0=function(t){function e(r){return t.call(this,r)||this}return(0,K.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iL},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,u,!l)},e}(Ne);h0.prototype.type="arc";const bu=h0;var oL=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="compound",r}return(0,K.C6)(e,t),e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ne.prototype.getBoundingRect.call(this)},e}(Ne);const v0=oL;var sL=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const d0=sL;var uL=function(t){function e(r,n,a,i,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=a??1,u.y2=i??0,u.type="linear",u.global=s||!1,u}return(0,K.C6)(e,t),e}(d0);const p0=uL;var lL=function(t){function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return(0,K.C6)(e,t),e}(d0);const g0=lL;var Th=Math.min,fL=Math.max,xu=Math.abs,Aa=[0,0],La=[0,0],at=Wd(),wu=at.minTv,Du=at.maxTv,cL=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new de;for(n=0;n<2;n++)this._axes[n]=new de;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,u=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,u),n[3].set(i,u),r)for(var l=0;l<4;l++)n[l].transform(r);for(de.sub(a[0],n[1],n[0]),de.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize(),l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var a=!0,i=!r;return r&&de.set(r,0,0),at.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!at.negativeSize&&de.copy(r,a?at.useDir?at.dirMinTv:wu:Du),a},t.prototype._intersectCheckOneSide=function(e,r,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Aa),e._getProjMinMaxOnAxis(o,r._corners,La),at.negativeSize||Aa[1]<La[0]||Aa[0]>La[1]){if(i=!1,at.negativeSize||n)return i;var u=xu(La[0]-Aa[1]),l=xu(Aa[0]-La[1]);Th(u,l)>Du.len()&&de.scale(Du,s,u<l?-u*a:l*a)}else n||(u=xu(La[0]-Aa[1]),l=xu(Aa[0]-La[1]),(at.useDir||Th(u,l)<wu.len())&&((u<l||!at.bidirectional)&&(de.scale(wu,s,u*a),at.useDir&&at.calcDirMTV()),(u>=l||!at.bidirectional)&&(de.scale(wu,s,-l*a),at.useDir&&at.calcDirMTV())))}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(a)+i[e];s=Th(f,s),u=fL(f,u)}n[0]=s+at.touchThreshold,n[1]=u-at.touchThreshold,at.negativeSize=n[1]<n[0]},t}();const y0=cL;var pL=[],gL=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=1,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return(0,K.C6)(e,t),e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++)(n=this._displayables[r]).parent=this,n.update(),n.parent=null;for(r=0;r<this._temporaryDisplayables.length;r++){var n;(n=this._temporaryDisplayables[r]).parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(pL)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n);if(this.getBoundingRect().contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,n))return!0;return!1},e}(ua);const _0=gL;var bh={},S0=["x","y"],C0=["width","height"],T0=0,b0=1,x0=2;function w0(t){return Ne.extend(t)}function D0(t,e){return function UA(t,e){var r=Jm(t,e);return function(a){function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return(0,K.C6)(i,a),i}($m)}(t,e)}function ur(t,e){bh[t]=e}function xh(t){if(bh.hasOwnProperty(t))return bh[t]}function Au(t,e,r,n){var a=function VA(t,e){return new $m(Jm(t,e))}(t,e);return r&&("center"===n&&(r=M0(r,a.getBoundingRect())),Dh(a,r)),a}function wh(t,e,r){var n=new Pn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){"center"===r&&n.setStyle(M0(e,{width:a.width,height:a.height}))}});return n}function M0(t,e){var a,r=e.width/e.height,n=t.height*r;return a=n<=t.width?t.height:(n=t.width)/r,{x:t.x+t.width/2-n/2,y:t.y+t.height/2-a/2,width:n,height:a}}var A0=function WA(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push(t[a].getUpdatedPathProxy(!0));var o=new Ne(e);return o.createPathProxy(),o.buildPath=function(s){if(Qm(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o};function Dh(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Mh(t,e){return Rg(t,t,{lineWidth:e}),t}function mL(t,e){return Eg(t,t,e),t}var _L=ga;function L0(t,e){for(var r=qn([]);t&&t!==e;)Yn(r,t.getLocalTransform(),r),t=t.parent;return r}function Ah(t,e,r){return e&&!gt(e)&&(e=Yi.getLocalTransform(e)),r&&(e=Xn([],e)),Ut([],t,e)}function SL(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:mt(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:mt(2*e[4]/e[2]),i=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return i=Ah(i,e,r),mt(i[0])>mt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function P0(t){return!t.isGroup}function TL(t,e,r){if(t&&e){var i=function n(o){var s={};return o.traverse(function(u){P0(u)&&u.anid&&(s[u.anid]=u)}),s}(t);e.traverse(function(o){if(P0(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),Sr(o,u,r,Me(o).dataIndex)}}})}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function CL(t){return null!=t.shape}(o)&&(s.shape=me(o.shape)),s}}function I0(t,e){return ie(t,function(r){var n=r[0];n=Ue(n,e.x),n=Bt(n,e.x+e.width);var a=r[1];return a=Ue(a,e.y),[n,a=Bt(a,e.y+e.height)]})}function R0(t,e){var r=Ue(t.x,e.x),n=Bt(t.x+t.width,e.x+e.width),a=Ue(t.y,e.y),i=Bt(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Lu(t,e,r){var n=k({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),He(a,r),new Pn(n)):Au(t.replace("path://",""),n,r,"center")}function bL(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(E0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function E0(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,f=o-a,c=s-i,v=Lh(f,c,u,l);if(function xL(t){return t<=1e-6&&t>=-1e-6}(v))return!1;var h=t-a,d=e-i,g=Lh(h,d,u,l)/v;if(g<0||g>1)return!1;var p=Lh(h,d,f,c)/v;return!(p<0||p>1)}function Lh(t,e,r,n){return t*n-r*e}function Ph(t,e,r,n,a){return null==e||(Be(e)?Ge[0]=Ge[1]=Ge[2]=Ge[3]=e:(Ge[0]=e[0],Ge[1]=e[1],Ge[2]=e[2],Ge[3]=e[3]),n&&(Ge[0]=Ue(0,Ge[0]),Ge[1]=Ue(0,Ge[1]),Ge[2]=Ue(0,Ge[2]),Ge[3]=Ue(0,Ge[3])),r&&(Ge[0]=-Ge[0],Ge[1]=-Ge[1],Ge[2]=-Ge[2],Ge[3]=-Ge[3]),O0(t,Ge,"x","width",3,1,a&&a[0]||0),O0(t,Ge,"y","height",0,2,a&&a[1]||0)),t}var Ge=[0,0,0,0];function O0(t,e,r,n,a,i,o){var s=e[i]+e[a],u=t[n];t[n]+=s,o=Ue(0,Bt(o,u)),t[n]<o?(t[n]=o,t[r]+=e[a]>=0?-e[a]:e[i]>=0?u+e[i]:mt(s)>1e-8?(u-o)*e[a]/s:0):t[r]-=e[a]}function bo(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=q(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=t.formatterParamsExtra;u&&w(Le(u),function(f){oe(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=Me(t.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:He({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Ih(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function k0(t,e){if(t)if(V(t))for(var r=0;r<t.length;r++)Ih(t[r],e);else Ih(t,e)}function Rh(t){return!t||mt(t[1])<Pu&&mt(t[2])<Pu||mt(t[0])<Pu&&mt(t[3])<Pu}var Pu=1e-5;function xo(t,e){return t?ye.copy(t,e):e.clone()}function Eh(t,e){return e?Oi(t||[1,0,0,1,0,0],e):void 0}function B0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function wL(t){var e=-1/0,r=1/0;function n(i){if(i&&!i.isGroup){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return Ih(t,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())}),r>e&&(r=e=0),{min:r,max:e}}function N0(t,e,r){F0(t,e,r,-1/0)}function F0(t,e,r,n){if(t.ignoreModelZ)return n;var a=t.getTextContent(),i=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=Ue(F0(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=Ue(t.z2||0,n);if(a&&(a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var l=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+(l&&l.showAbove?1:-1))}return n}function DL(t){return t.animation={duration:0},t}function ML(t,e){return e?Oi(wo.transform,e):qn(wo.transform),wo.decomposeTransform(),Ds(t,wo),t}var wo=new Yi;function AL(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}wo.transform=[1,0,0,1,0,0],ur("circle",Cu),ur("ellipse",yh),ur("sector",Co),ur("ring",_h),ur("polygon",Sh),ur("polyline",To),ur("rect",vt),ur("line",pi),ur("bezierCurve",Ch),ur("arc",bu);var H0=we(),LL=function EA(){var t=we();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return(a!==o||i!==s)&&"reset"}}(),Oh=function(){function t(){this.group=new Yt,this.uid=Js("viewChart"),this.renderTask=go({plan:PL,reset:IL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&G0(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&G0(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){k0(this.group,e)},t.markUpdateMethod=function(e,r){H0(e).updateMethod=r},t.protoInitialize=void(t.prototype.type="chart"),t}();function z0(t,e,r){t&&Tc(t)&&("emphasis"===e?yc:mc)(t,r)}function G0(t,e,r){var n=Qi(t,e),a=e&&null!=e.highlightKey?function tD(t){var e=jg[t];return null==e&&Kg<=32&&(e=jg[t]=Kg++),e}(e.highlightKey):null;null!=n?w(nt(n),function(i){z0(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){z0(i,r,a)})}function PL(t){return LL(t.model)}function IL(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&H0(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==u&&o[u](e,r,n,a),RL[u]}Yf(Oh),Bs(Oh);var RL={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)}}};const sn=Oh;var Iu="\0__throttleOriginMethod",V0="\0__throttleRate",U0="\0__throttleType";function kh(t,e,r){var n,s,u,l,f,a=0,i=0,o=null;function c(){i=(new Date).getTime(),o=null,t.apply(u,l||[])}e=e||0;var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=(new Date).getTime(),u=this,l=h;var g=f||e,p=f||r;f=null,s=n-(p?a:i)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function W0(t,e,r,n){var a=t[e];if(a){var i=a[Iu]||a;if(a[V0]!==r||a[U0]!==n){if(null==r||!n)return t[e]=i;(a=t[e]=kh(i,r,"debounce"===n))[Iu]=i,a[U0]=n,a[V0]=r}return a}}function Bh(t,e){var r=t[e];r&&r[Iu]&&(r.clear&&r.clear(),t[e]=r[Iu])}var q0=we(),Y0={itemStyle:to(wy,!0),lineStyle:to(xy,!0)},EL={lineStyle:"stroke",itemStyle:"fill"};function X0(t,e){return t.visualStyleMapper||Y0[e]||(console.warn("Unknown style type '"+e+"'."),Y0.itemStyle)}function Z0(t,e){return t.visualDrawType||EL[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var OL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),o=X0(t,n)(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Z0(t,n),l=o[u],f=ce(l)?l:null;if(!o[u]||f||"auto"===o.fill||"auto"===o.stroke){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=v,r.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ce(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||ce(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var g=t.getDataParams(d),p=k({},o);p[u]=f(g),h.setItemVisual(d,"style",p)}}}},Do=new et,kL={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=X0(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Do.option=u[n];var l=a(Do);k(o.ensureUniqueItemVisual(s,"style"),l),Do.option.decal&&(o.setItemVisual(s,"decal",Do.option.decal),Do.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BL={performRawSeries:!0,overallReset:function(t){var e=ve();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();q0(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),a={},i=r.getData(),o=q0(r).scope,u=Z0(r,r.visualStyleAccessPath||"itemStyle");i.each(function(l){var f=i.getRawIndex(l);a[f]=l}),n.each(function(l){var f=a[l];if(i.getItemVisual(f,"colorFromPalette")){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(l)||l+"",d=n.count();v[u]=r.getColorFromPalette(h,o,d)}})}})}},Ru=Math.PI,FL=function(){function t(e,r,n,a){this._stageTaskMap=ve(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,s=a&&a.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(r,n):function Mx(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}(e,r,n);e.pipelineContext=n.context=a},t.prototype.restorePipelines=function(e,r){var n=this,a=n._pipelineMap=ve();r.eachSeries(function(i){var o="canvas"===e.painter.type&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{});Dr(!(a.reset&&a.overallReset),""),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}w(e,function(u,l){if(!a.visualType||a.visualType===u.visualType){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var g=o.getPerformArgs(v,a.block);d.each(function(p){p.perform(g)}),v.perform(g)&&(i=!0)}else c&&c.each(function(p,y){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){"remain"!==r&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ve(),u=e.seriesType,l=e.getTargetSeries;function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||go({plan:UL,reset:WL,count:YL}));h.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,a).each(f)},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||go({reset:HL});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=ve(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1;function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(v=!0,go({reset:zL,onDirty:VL})));y.context={model:g,dirtyOnOverallProgress:c},y.agent=o,y.__block=c,i._pipe(g,y)}Dr(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):f?f(n,a).each(d):w(n.getSeries(),d),v&&o.dirty()},t.prototype._pipe=function(e,r){var a=this._pipelineMap.get(e.uid);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return ce(e)&&(e={overallReset:e,seriesType:XL(e)}),e.uid=Js("stageHandler"),r&&(e.visualType=r),e},t}();function HL(t){t.overallReset(t.ecModel,t.api,t.payload)}function zL(t){return t.dirtyOnOverallProgress&&GL}function GL(){this.agent.dirty(),this.getDownstream().dirty()}function VL(){this.agent&&this.agent.dirty()}function UL(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function WL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ie(e,function(r,n){return K0(n)}):qL}var qL=K0(0);function K0(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function YL(t){return t.data.count()}function XL(t){Eu=null;try{t(Mo,j0)}catch{}return Eu}var Eu,Mo={},j0={};function $0(t,e){for(var r in e.prototype)t[r]=ft}$0(Mo,om),$0(j0,Zg),Mo.eachSeriesByType=Mo.eachRawSeriesByType=function(t){Eu=t},Mo.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Eu=t.subType)};const Q0=FL;var z=Te.darkColor,J0=z.background,Ao=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:{}}},e_={label:{color:z.secondary},itemStyle:{borderColor:z.borderTint},dividerLineStyle:{color:z.border}},t_={darkMode:!0,color:z.theme,backgroundColor:J0,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:J0,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:e_,y:e_,backgroundColor:{borderColor:z.axisLine},body:{itemStyle:{borderColor:z.borderTint}}},timeAxis:Ao(),logAxis:Ao(),valueAxis:Ao(),categoryAxis:Ao(),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=Ao();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}}}};t_.categoryAxis.splitLine.show=!1;const ZL=t_;var KL=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(q(e)){var i=Lr(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=l.lastIndexOf(v);if(h>0&&h===l.length-v.length){var d=l.slice(0,h);"data"!==d&&(r.mainType=d,r[v.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,i,"name")&&f(l,i,"dataIndex")&&f(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(c,v,h,d){return null==c[h]||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Nh=["symbol","symbolSize","symbolRotate","symbolOffset"],r_=Nh.concat(["symbolKeepAspect"]),jL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},a={},i=!1,o=0;o<Nh.length;o++){var s=Nh[o],u=t.get(s);ce(u)?(i=!0,a[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(k({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var l=Le(a);return{dataEach:i?function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),g=0;g<l.length;g++){var p=l[g];c.setItemVisual(v,p,a[p](h,d))}}:null}}}}},$L={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function n(a,i){for(var o=a.getItemModel(i),s=0;s<r_.length;s++){var u=r_[s],l=o.getShallow(u,!0);null!=l&&a.setItemVisual(i,u,l)}}:null}}};function gi(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),v=Qi(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:V(v)?c.getName(v[0]):c.getName(v),selected:q(u)?u:k({},u)})}})}function Lo(t,e,r){for(var n;t&&(!e(t)||(n=t,!r));)t=t.__hostTarget||t.parent;return n}const lr=new Mr;var n_={};function a_(t){return n_[t]}var i_={};function o_(t,e){i_[t]=e}var Ou=we();function Fh(t){return Ou(t).fullUpdate}var oP=Math.round(9*Math.random()),sP="function"==typeof Object.defineProperty,uP=function(){function t(){this._id="__ec_inner_"+oP++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return sP?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},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}();const lP=uP;var cP=Ne.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),hP=Ne.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),vP=Ne.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),v=Math.cos(l),h=.6*o,d=.7*o;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(r+f-c*h,u+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,u+s+v*h,r-f,u+s),t.closePath()}}),dP=Ne.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.x,i=e.y,o=e.width/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),gP={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},Hh={};w({line:pi,rect:vt,roundRect:vt,square:vt,circle:Cu,diamond:hP,pin:vP,arrow:dP,triangle:cP},function(t,e){Hh[e]=new t});var yP=Ne.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Np(t,e,r),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===e.position&&(n.y=r.y+.4*r.height),n},buildPath:function(t,e,r){var n=e.symbolType;if("none"!==n){var a=Hh[n];a||(a=Hh[n="rect"]),gP[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function mP(t,e){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Te.color.neutral00,r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=t:r.fill=t,this.markRedraw()}}function ku(t,e,r,n,a,i,o){var u,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?wh(t.slice(8),new ye(e,r,n,a),o?"center":"cover"):0===t.indexOf("path://")?Au(t.slice(7),{},new ye(e,r,n,a),o?"center":"cover"):new yP({shape:{symbolType:t,x:e,y:r,width:n,height:a}})).__isEmptyBrush=s,u.setColor=mP,i&&u.setColor(i),u}function Pa(t){return isFinite(t)}function zh(t,e,r){for(var n="radial"===e.type?function CP(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(o=o*n+r.x,s=s*a+r.y,u*=i),o=Pa(o)?o:.5,s=Pa(s)?s:.5,u=u>=0&&Pa(u)?u:.5,t.createRadialGradient(o,s,0,o,s,u)}(t,e,r):function SP(t,e,r){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,i=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Pa(n)?n:0,a=Pa(a)?a:1,i=Pa(i)?i:0,o=Pa(o)?o:0,t.createLinearGradient(n,i,a,o)}(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function Bu(t){return parseInt(t,10)}function Nu(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||Bu(s[n])||Bu(t.style[n]))-(Bu(s[i])||0)-(Bu(s[o])||0)||0}function s_(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&function bP(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Be(t)?[t]:V(t)?t:null:null}(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=ie(r,function(i){return i/a}),n/=a)}return[r,n]}var xP=new da(!0);function Fu(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function u_(t){return"string"==typeof t&&"none"!==t}function Hu(t){var e=t.fill;return null!=e&&"none"!==e}function l_(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function f_(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Gh(t,e,r){var n=cg(e.image,e.__image,r);if(Ns(n)){var a=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Pd),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}var c_=["shadowBlur","shadowOffsetX","shadowOffsetY"],h_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function v_(t,e,r,n,a){var i=!1;if(!n&&e===(r=r||{}))return!1;if(n||e.opacity!==r.opacity){Rt(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?sa.opacity:o}(n||e.blend!==r.blend)&&(i||(Rt(t,a),i=!0),t.globalCompositeOperation=e.blend||sa.blend);for(var s=0;s<c_.length;s++){var u=c_[s];(n||e[u]!==r[u])&&(i||(Rt(t,a),i=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(Rt(t,a),i=!0),t.shadowColor=e.shadowColor||sa.shadowColor),i}function d_(t,e,r,n,a){var i=e.style,o=n?null:r&&r.style||{};if(i===o)return!1;var s=v_(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Rt(t,a),s=!0),u_(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Rt(t,a),s=!0),u_(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Rt(t,a),s=!0),t.globalAlpha=null==i.opacity?1:i.opacity),e.hasStroke()){var l=i.lineWidth/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Rt(t,a),s=!0),t.lineWidth=l)}for(var f=0;f<h_.length;f++){var c=h_[f],v=c[0];(n||i[v]!==o[v])&&(s||(Rt(t,a),s=!0),t[v]=i[v]||c[1])}return s}function p_(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function Rt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Vh(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ia(t,e,r),yi(t,r)}function Ia(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var a=e.__clipPaths,i=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!i||function TP(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}(a,i))&&(i&&(Rt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Rt(t,r),t.save(),function LP(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),p_(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}(a,t,r),s=!0,r.prevElClipPaths=a)),r.allClipped)return e.__dirty&=-2,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof Ne&&e.autoBatch&&function IP(t){var e=Hu(t),r=Fu(t);return!(t.lineDash||!(+e^+r)||e&&"string"!=typeof t.fill||r&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(o);s||function PP(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)}(n,l.transform)?(Rt(t,r),p_(t,e)):f||Rt(t,r),e instanceof Ne?(1!==r.lastDrawType&&(u=!0,r.lastDrawType=1),d_(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),function wP(t,e,r,n,a){var i,o=Fu(r),s=Hu(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||xP,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,g=s&&!!h.colorStops,p=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,C=void 0,T=void 0,x=void 0;(g||p)&&(x=e.getBoundingRect()),g&&(_=v?zh(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(S=v?zh(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),y&&(C=v||!e.__canvasFillPattern?Gh(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=C),m&&(T=v||!e.__canvasStrokePattern?Gh(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),g?t.fillStyle=_:y&&(C?t.fillStyle=C:s=!1),p?t.strokeStyle=S:m&&(T?t.strokeStyle=T:o=!1)}var b,A,D=e.getGlobalScale();c.setScale(D[0],D[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(b=(i=s_(e))[0],A=i[1]);var R=!0;(f||4&v)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),R=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),R&&c.rebuildPath(t,l?u:1),b&&(t.setLineDash(b),t.lineDashOffset=A),n?(a.batchFill=s,a.batchStroke=o):r.strokeFirst?(o&&f_(t,r),s&&l_(t,r)):(s&&l_(t,r),o&&f_(t,r)),b&&t.setLineDash([])}(t,e,o,f,r)):e instanceof lc?(3!==r.lastDrawType&&(u=!0,r.lastDrawType=3),d_(t,e,l,u,r),function MP(t,e,r){var n,a=r.text;if(null!=a&&(a+=""),a){t.font=r.font||gn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=(n=s_(e))[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(Fu(r)&&t.strokeText(a,r.x,r.y),Hu(r)&&t.fillText(a,r.x,r.y)):(Hu(r)&&t.fillText(a,r.x,r.y),Fu(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}(t,e,o)):e instanceof Pn?(2!==r.lastDrawType&&(u=!0,r.lastDrawType=2),function AP(t,e,r,n,a){v_(t,e.style,r&&r.style,n,a)}(t,e,l,u,r),function DP(t,e,r){var n=e.__image=cg(r.image,e.__image,e,e.onload);if(n&&Ns(n)){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(null==o&&null!=s?o=s*u:null==s&&null!=o?s=o/u:null==o&&null==s&&(o=n.width,s=n.height),r.sWidth&&r.sHeight)t.drawImage(n,l=r.sx||0,f=r.sy||0,r.sWidth,r.sHeight,a,i,o,s);else if(r.sx&&r.sy){var l,f;t.drawImage(n,l=r.sx,f=r.sy,o-l,s-f,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}(t,e,o)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(u=!0,r.lastDrawType=4),function RP(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var o,s,i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}};for(o=e.getCursor(),s=n.length;o<s;o++)(u=n[o]).beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Ia(t,u,i),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u;yi(t,i);for(var l=0,f=a.length;l<f;l++){var u;(u=a[l]).beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Ia(t,u,i),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}yi(t,i),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Rt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function yi(t,e){Rt(t,e),e.prevElClipPaths&&t.restore()}var Uh=new lP,S_=new Za(100),C_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Wh(t,e){if("none"===t)return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a="svg"===n.painter.type;t.dirty&&Uh.delete(t);var i=Uh.get(t);if(i)return i;var o=He(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function u(l){for(var f=[r],c=!0,v=0;v<C_.length;++v){var h=o[C_[v]];if(null!=h&&!V(h)&&!q(h)&&!Be(h)&&"boolean"!=typeof h){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var g=S_.get(d);g&&(a?l.svgElement=g:l.image=g)}var D,p=b_(o.dashArrayX),y=function EP(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Be(t)){var e=Math.ceil(t);return[e,e]}var r=ie(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}(o.dashArrayY),m=T_(o.symbol),_=function OP(t){return ie(t,function(e){return x_(e)})}(p),S=x_(y),C=!a&&lt.createCanvas(),T=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function b(){for(var R=1,E=0,P=_.length;E<P;++E)R=Jp(R,_[E]);var O=1;for(E=0,P=m.length;E<P;++E)O=Jp(O,m[E].length);R*=O;var F=S*_.length*m.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}();C&&(C.width=x.width*r,C.height=x.height*r,D=C.getContext("2d")),function A(){D&&(D.clearRect(0,0,C.width,C.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,C.width,C.height)));for(var R=0,E=0;E<y.length;++E)R+=y[E];if(!(R<=0))for(var P=-S,O=0,F=0,B=0;P<x.height;){if(O%2==0){for(var U=F/2%m.length,Y=0,Q=0,ee=0;Y<2*x.width;){var se=0;for(E=0;E<p[B].length;++E)se+=p[B][E];if(se<=0)break;if(Q%2==0){var pe=.5*(1-o.symbolSize);bt(Y+p[B][Q]*pe,P+y[O]*pe,p[B][Q]*o.symbolSize,y[O]*o.symbolSize,m[U][ee/2%m[U].length])}Y+=p[B][Q],++ee,++Q===p[B].length&&(Q=0)}++B===p.length&&(B=0)}P+=y[O],++F,++O===y.length&&(O=0)}function bt(pt,$e,ge,be,Vr){var st=a?1:r,Vn=ku(Vr,pt*st,$e*st,ge*st,be*st,o.color,o.symbolKeepAspect);if(a){var cn=n.painter.renderOneToVNode(Vn);cn&&T.children.push(cn)}else Vh(D,Vn)}}(),c&&S_.put(d,C||T),l.image=C,l.svgElement=T,l.svgWidth=x.width,l.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Uh.set(t,s),t.dirty=!1,s}function T_(t){if(!t||0===t.length)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return T_([t]);var n=[];for(r=0;r<t.length;++r)q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function b_(t){if(!t||0===t.length)return[[0,0]];if(Be(t))return[[e=Math.ceil(t),e]];for(var r=!0,n=0;n<t.length;++n)if(!Be(t[n])){r=!1;break}if(r)return b_([t]);var a=[];for(n=0;n<t.length;++n)if(Be(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else e=ie(t[n],function(s){return Math.ceil(s)}),a.push(e.length%2==1?e.concat(e):e);return a}function x_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2==1?2*e:e}var kP=qf(function BP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");s&&(n.ensureUniqueItemVisual(o,"style").decal=Wh(s,e))});var a=n.getVisual("decal");a&&(n.getVisual("style").decal=Wh(a,e))}})}),NP="6.1.0",FP={zrender:"6.1.0"},L_={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},tt="__flagInMainProcess",Gu="__mainProcessVersion",it="__pendingUpdate",Yh="__needsUpdateStatus",P_=/^[a-zA-Z0-9_]+$/,Xh="__connectUpdateStatus";function R_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(!this.isDisposed())return O_(this,t,e)}}function E_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return O_(this,t,e)}}function O_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Mr.prototype[e].apply(t,r)}var k_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e}(Mr),B_=k_.prototype;B_.on=E_("on"),B_.off=E_("off");var Ra,Zh,Vu,un,Uu,Kh,jh,mi,_i,N_,F_,$h,H_,Wu,z_,G_,fr,V_,Si,qu=function(t){function e(r,n,a){var i=t.call(this,new KL)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=r,i[Gu]=1,a.ssr&&qp(function(h){var d=Me(h),g=d.dataIndex;if(null!=g){var p=ve();return p.set("series_index",d.seriesIndex),p.set("data_index",g),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var f=i._zr=Ef(r,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:te(a.useDirtyRect,!1),useCoarsePointer:te(a.useCoarsePointer,"auto"),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=kh(Pe(f.flush,f),17),i._updateTheme(n),i._locale=function TD(t){if(q(t)){var e=tu[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?me(e):Fe(me(e),me(tu[oi]),!1)}return Fe(me(t),me(tu[oi]),!1)}(a.locale||Dy),i._coordSysMgr=new uu;var c=i._api=z_(i);function v(h,d){return h.__prio-d.__prio}return us(Xu,v),us(tv,v),i._scheduler=new Q0(i,c,tv,Xu),i._messageCenter=new k_,i._initEvents(),i.resize=Pe(i.resize,i),f.animation.on("frame",i._onframe,i),N_(f,i),F_(f,i),Jo(i),i}return(0,K.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,a=this._api;if(V_(this),this[it]){var i=this[it].silent;this[tt]=!0,Si(this);try{Ra(this),un.update.call(this,null,this[it].updateParams)}catch(u){throw this[tt]=!1,this[it]=null,u}this._zr.flush(),this[tt]=!1,this[it]=null,mi.call(this,i),_i.call(this,i)}else if(r.unfinished){var o=1;do{r.unfinished=!1;var s=lt.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),Kh(this,n),r.performVisualTasks(n),Wu(this,this._model,a,"remain",{}),o-=lt.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[tt]){if(this._disposed)return;var i,o,s;if(J(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[tt]=!0,Si(this),!this._model||n){var u=new bM(this._api),l=this._theme,f=this._model=new om;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},rv);var c={seriesTransition:s,optionChanged:!0};if(a)this[it]={silent:i,updateParams:c},this[tt]=!1,this.getZr().wakeUp();else{try{Ra(this),un.update.call(this,null,c)}catch(v){throw this[it]=null,this[tt]=!1,v}this._ssr||this._zr.flush(),this[it]=null,this[tt]=!1,mi.call(this,i),_i.call(this,i)}}},e.prototype.setTheme=function(r,n){if(!this[tt]){if(this._disposed)return;var a=this._model;if(a){var i=n&&n.silent,o=null;this[it]&&(null==i&&(i=this[it].silent),o=this[it].updateParams,this[it]=null),this[tt]=!0,Si(this);try{this._updateTheme(r),a.setTheme(this._theme),Ra(this),un.update.call(this,{type:"setTheme"},o)}catch(s){throw this[tt]=!1,s}this[tt]=!1,mi.call(this,i),_i.call(this,i)}}},e.prototype._updateTheme=function(r){q(r)&&(r=U_[r]),r&&((r=me(r))&&vm(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||Ce.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){return this._zr.painter.renderToString({useViewBox:(r=r||{}).useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr;return w(r.storage.getDisplayList(),function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(!this._disposed){var a=this._model,i=[],o=this;w((r=r||{}).excludeComponents,function(u){a.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return w(i,function(u){u.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(r){if(!this._disposed){var n="svg"===r.type,a=this.group,i=Math.min,o=Math.max,s=1/0;if(Zu[a]){var u=s,l=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Ea,function(_,S){if(_.group===a){var C=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(me(r)),T=_.getDom().getBoundingClientRect();u=i(T.left,u),l=i(T.top,l),f=o(T.right,f),c=o(T.bottom,c),v.push({dom:C,left:T.left,top:T.top})}});var d=(f*=h)-(u*=h),g=(c*=h)-(l*=h),p=lt.createCanvas(),y=Ef(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return w(v,function(_){m+='<g transform="translate('+(_.left-u)+","+(_.top-l)+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return r.connectedBackgroundColor&&y.add(new vt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),w(v,function(_){var S=new Pn({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},e.prototype.convertToPixel=function(r,n,a){return Uu(this,"convertToPixel",r,n,a)},e.prototype.convertToLayout=function(r,n,a){return Uu(this,"convertToLayout",r,n,a)},e.prototype.convertFromPixel=function(r,n,a){return Uu(this,"convertFromPixel",r,n,a)},e.prototype.containPixel=function(r,n){var i;if(!this._disposed)return w(Vf(this._model,r),function(s,u){u.indexOf("Models")>=0&&w(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if("seriesModels"===u){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var i=Vf(this._model,r,{defaultMainType:"series"}),s=i.seriesModel.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=u?function QL(t,e,r){switch(r){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}(s,u,n):function JL(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(QP,function(a){var i=function(o){var l,s=r.getModel(),u=o.target;if("globalout"===a?l={}:u&&Lo(u,function(g){var p=Me(g);if(p&&null!=p.dataIndex){var y=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=y&&y.getDataParams(p.dataIndex,p.dataType,u)||{},!0}if(p.eventData)return l=k({},p.eventData),!0},!0),l){var c=l.componentType,v=l.componentIndex;("markLine"===c||"markPoint"===c||"markArea"===c)&&(c="series",v=l.seriesIndex);var h=c&&null!=v&&s.getComponent(c,v),d=h&&r["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=a,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(a,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;w(ev,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),function tP(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(gi("map","selectchanged",e,a,n),gi("pie","selectchanged",e,a,n)):"select"===n.fromAction?(gi("map","selected",e,a,n),gi("pie","selected",e,a,n)):"unselect"===n.fromAction&&(gi("map","unselected",e,a,n),gi("pie","unselected",e,a,n))})}(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&og(this.getDom(),av,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ea[n.id]}},e.prototype.resize=function(r){if(!this[tt]){if(this._disposed)return;this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),n){var a=n.resetOption("media"),i=r&&r.silent;this[it]&&(null==i&&(i=this[it].silent),a=!0,this[it]=null),this[tt]=!0,Si(this);try{a&&Ra(this),un.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[tt]=!1,o}this[tt]=!1,mi.call(this,i),_i.call(this,i)}}},e.prototype.showLoading=function(r,n){if(!this._disposed&&(J(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),nv[r])){var a=nv[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(r){var n=k({},r);return n.type=Jh[r.type],n},e.prototype.dispatchAction=function(r,n){if(!this._disposed&&(J(n)||(n={silent:!!n}),Yu[r.type]&&this._model)){if(this[tt])return void this._pendingActions.push(r);var a=n.silent;jh.call(this,r,a);var i=n.flush;i?this._zr.flush():!1!==i&&Ce.browser.weChat&&this._throttledZrFlush(),mi.call(this,a),_i.call(this,a)}},e.prototype.updateLabelLayout=function(){lr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(!this._disposed){var n=r.seriesIndex;this.getModel().getSeriesByIndex(n).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var g=h[d];"emphasis"===g||"blur"===g||"select"===g||v.push(g)}c.selected&&c.states.select&&v.push("select"),2===c.hoverState&&c.states.emphasis?v.push("emphasis"):1===c.hoverState&&c.states.blur&&v.push("blur"),c.useStates(v)}function u(c,v){if(!c.preventAutoZ){var h=B0(c);v.eachRendered(function(d){return N0(d,h.z,h.zlevel),!0})}}function l(c,v){v.eachRendered(function(h){if(!ai(h)){var d=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=h.get("duration"),p=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ai(y))return;if(y instanceof Ne&&function rD(t){var e=$g(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}(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}Ra=function(c){!function aP(t){Ou(t).prepare={}}(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),Zh(c,!0),Zh(c,!1),v.plan()},Zh=function(c,v){for(var h=c._model,d=c._scheduler,g=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<g.length;_++)g[_].__alive=!1;function S(T){var x=T.__requireNewView;T.__requireNewView=!1;var D="_ec_"+T.id+"_"+T.type,b=!x&&p[D];if(!b){var A=Lr(T.type);(b=new(v?sr.getClass(A.main,A.sub):sn.getClass(A.sub))).init(h,m),p[D]=b,g.push(b),y.add(b.group)}T.__viewId=b.__id=D,b.__alive=!0,b.__model=T,b.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!v&&d.prepareView(b,T,h,m)}for(v?h.eachComponent(function(T,x){"series"!==T&&S(x)}):h.eachSeries(S),_=0;_<g.length;){var C=g[_];C.__alive?_++:(!v&&C.renderTask.dispose(),y.remove(C.group),C.dispose(h,m),g.splice(_,1),p[C.__id]===C&&delete p[C.__id],C.__id=C.group.__ecComponentInfo=null)}},Vu=function(c,v,h,d,g){var p=c._model;if(p.setUpdatePayload(h),d){var _,y=function gx(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var a={mainType:e,query:n};return r&&(a.subType=r),a}(h,d,g),m=h.excludeSeriesId;null!=m&&(_=ve(),w(nt(m),function(C){var T=Mt(C,null);null!=T&&_.set(T,!0)})),p&&p.eachComponent(y,function(C){if(!_||null==_.get(C.id))if(hy(h))if(C instanceof En)h.type===ma&&!h.notBlur&&!C.get(["emphasis","disabled"])&&function qw(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=Qi(a,e);i=(V(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=Me(o);_c(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=f&&_c(n,f,c,r)}}}(C,h,c._api);else{var x=Cc(C.mainType,C.componentIndex,h.name,c._api),b=x.dispatchers;h.type===ma&&x.focusSelf&&!h.notBlur&&Sc(C.mainType,C.componentIndex,c._api),b&&w(b,function(A){h.type===ma?yc(A):mc(A)})}else bc(h)&&C instanceof En&&(function Zw(t,e){if(bc(e)){var n=e.dataType,i=Qi(t.getData(n),e);V(i)||(i=[i]),t[e.type===Zs?"toggleSelect":e.type===Xs?"select":"unselect"](i,n)}}(C,h),ly(C),fr(c))},c),p&&p.eachComponent(y,function(C){_&&null!=_.get(C.id)||S(c["series"===d?"_chartsMap":"_componentsMap"][C.__viewId])},c)}else w([].concat(c._componentsViews).concat(c._chartsViews),S);function S(C){C&&C.__alive&&C[v]&&C[v](C.__model,p,c._api,h)}},un={prepareAndUpdate:function(c){Ra(this),un.update.call(this,c,c&&{optionChanged:null!=c.newOption})},update:function(c,v){var h=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(h){(function iP(t){Ou(t).fullUpdate={}})(h),h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),p.create(h,d),lr.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,c),Kh(this,h),p.update(h,d),n(h),y.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";g.setBackgroundColor(m);var _=h.get("darkMode");null!=_&&"auto"!==_&&g.setDarkMode(_),$h(this,h,d,c,v),lr.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(y,m){if("series"!==y){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&g.push(_)}else g.push(_)}});var p=ve();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform&&!y.pipelineContext.progressiveRender){var S=m.updateTransform(y,h,d,c);S&&S.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),Wu(v,h,d,c,{},p),lr.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),sn.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),$h(this,v,this._api,c,{}),lr.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),sn.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,g){if("series"!==d){var p=v.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,h,v._api,c)}}),h.eachSeries(function(d){v._chartsMap[d.__viewId].updateVisual(d,h,v._api,c)}),lr.trigger("afterupdate",h,this._api))},updateLayout:function(c){un.update.call(this,c)}},Uu=function r(c,v,h,d,g){if(!c._disposed)for(var m,p=c._model,y=c._coordSysMgr.getCoordinateSystems(),_=Vf(p,h),S=0;S<y.length;S++){var C=y[S];if(C[v]&&null!=(m=C[v](p,_,d,g)))return m}},Kh=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(g){d.updateStreamModes(g,h[g.__viewId])})},jh=function(c,v){var h=this,d=this.getModel(),p=c.escapeConnect,y=Yu[c.type],m=(y.update||"update").split(":"),_=m.pop(),S=null!=m[0]&&Lr(m[0]);this[tt]=!0,Si(this);var C=[c],T=!1;c.batch&&(T=!0,C=ie(c.batch,function(B){return(B=He(k({},B),c)).batch=null,B}));var D,x=[],b=[],A=y.nonRefinedEventType,R=bc(c),E=hy(c);if(E&&uy(this._api),w(C,function(B){var U=y.action(B,d,h._api);if(y.refineEvent?b.push(U):D=U,(D=D||k({},B)).type=A,x.push(D),E){var Y=Uf(c),se=Y.mainTypeSpecified?Y.queryOptionMap.keys()[0]:"series";Vu(h,_,B,se),fr(h)}else R?(Vu(h,_,B,"series"),fr(h)):S&&Vu(h,_,B,S.main,S.sub)}),"none"!==_&&!E&&!R&&!S)try{this[it]?(Ra(this),un.update.call(this,c),this[it]=null):un[_].call(this,c)}catch(B){throw this[tt]=!1,B}if(D=T?{type:A,escapeConnect:p,batch:x}:x[0],this[tt]=!1,!v){var P=void 0;if(y.refineEvent){var O=y.refineEvent(b,c,d,this._api).eventContent;Dr(J(O)),(P=He({type:y.refinedEventType},O)).fromAction=c.type,P.fromActionPayload=c,P.escapeConnect=!0}var F=this._messageCenter;F.trigger(D.type,D),P&&F.trigger(P.type,P)}},mi=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();jh.call(this,h,c)}},_i=function(c){!c&&this.trigger("updated")},N_=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),!c.animation.isFinished()||v[it]||v._scheduler.unfinished||v._pendingActions.length?c.refresh():v.trigger("finished")})},F_=function(c,v){c.on("mouseover",function(h){var g=Lo(h.target,Tc);g&&(function Yw(t,e,r){var n=Me(t),a=Cc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers;i?(a.focusSelf&&Sc(n.componentMainType,n.componentIndex,r),w(i,function(s){return ry(s,e)})):(_c(n.seriesIndex,n.focus,n.blurScope,r),"self"===n.focus&&Sc(n.componentMainType,n.componentIndex,r),ry(t,e))}(g,h,v._api),fr(v))}).on("mouseout",function(h){var g=Lo(h.target,Tc);g&&(function Xw(t,e,r){uy(r);var n=Me(t),a=Cc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?w(a,function(i){return ny(i,e)}):ny(t,e)}(g,h,v._api),fr(v))}).on("click",function(h){var g=Lo(h.target,function(m){return null!=Me(m).dataIndex},!0);if(g){var p=g.selected?"unselect":"select",y=Me(g);v._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})},$h=function(c,v,h,d,g){(function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,C=_.get("z")||0,T=_.getZLevelKey();d=d||!!T,("series"===m?h:v).push({zlevel:S,z:C,idx:_.componentIndex,type:m,key:T})}),d){var p,y,g=v.concat(h);us(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(g,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,C=m.key;null!=p&&(S=Math.max(p,S)),C?(S===p&&C!==y&&S++,y=C):y&&(S===p&&S++,y=""),p=S,_.setZLevel(S)})}})(v),H_(c,v,h,d,g),w(c._chartsViews,function(p){p.__alive=!1}),Wu(c,v,h,d,g),w(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},H_=function(c,v,h,d,g,p){w(p||c._componentsViews,function(y){var m=y.__model;l(0,y),y.render(m,v,h,d),u(m,y),f(m,y)})},Wu=function(c,v,h,d,g,p){var y=c._scheduler;g=k(g||{},{updatedSeries:v.getSeries()}),lr.trigger("series:beforeupdate",v,h,g);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var C=S.renderTask;y.updatePayload(C,d),l(0,S),p&&p.get(_.uid)&&C.dirty(),C.perform(y.getPerformArgs(C))&&(m=!0),S.group.silent=!!_.get("silent"),function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}(_,S),ly(_)}),y.unfinished=m||y.unfinished,lr.trigger("series:layoutlabels",v,h,g),lr.trigger("series:transition",v,h,g),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];u(_,S),f(_,S)}),function o(c,v){var h=c._zr;if("canvas"===h.painter.type){var g=0;h.storage.traverse(function(y){y.isGroup||g++});var p=g>te(v.get("hoverLayerThreshold"),Xy.hoverLayerThreshold)&&!Ce.node&&!Ce.worker;(c._usingTHL||p)&&(v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=c._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==x0&&(S.hoverLayer=p?b0:T0)})}}),c._usingTHL=p)}}(c,v),lr.trigger("series:afterupdate",v,h,g)},fr=function(c){c[Yh]=!0,c.getZr().wakeUp()},Si=function(c){c[Gu]=(c[Gu]+1)%1e6},V_=function(c){c[Yh]&&(c.getZr().storage.traverse(function(v){ai(v)||i(v)}),c[Yh]=!1)},z_=function(c){return new(function(v){function h(){return null!==v&&v.apply(this,arguments)||this}return(0,K.C6)(h,v),h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(null!=g)return c._model.getComponent(g.mainType,g.index);d=d.parent}},h.prototype.enterEmphasis=function(d,g){yc(d,g),fr(c)},h.prototype.leaveEmphasis=function(d,g){mc(d,g),fr(c)},h.prototype.enterBlur=function(d){(function Ww(t){rn(t,pc)})(d),fr(c)},h.prototype.leaveBlur=function(d){ay(d),fr(c)},h.prototype.enterSelect=function(d){iy(d),fr(c)},h.prototype.leaveSelect=function(d){oy(d),fr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Gu]},h.prototype.usingTHL=function(){return c._usingTHL},h}(Zg))(c)},G_=function(c){function v(h,d){for(var g=0;g<h.length;g++)h[g][Xh]=d}w(Jh,function(h,d){c._messageCenter.on(d,function(g){if(Zu[c.group]&&0!==c[Xh]){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),y=[];w(Ea,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,0),w(y,function(m){1!==m[Xh]&&m.dispatchAction(p)}),v(y,2)}})})}}(),e}(Mr),Qh=qu.prototype;Qh.on=R_("on"),Qh.off=R_("off"),Qh.one=function(t,e,r){var n=this;this.on.call(this,t,function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)},r)};var QP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Yu={},Jh={},ev={},tv=[],rv=[],Xu=[],U_={},nv={},Ea={},Zu={},JP=+new Date-0,eI=+new Date-0,av="_echarts_instance_";function tI(t,e,r){var n=!(r&&r.ssr);if(n){var a=iv(t);if(a)return a}var i=new qu(t,e,r);return i.id="ec_"+JP++,Ea[i.id]=i,n&&og(t,av,i.id),G_(i),lr.trigger("afterinit",i),i}function rI(t){if(V(t)){var e=t;t=null,w(e,function(r){null!=r.group&&(t=r.group)}),t=t||"g_"+eI++,w(e,function(r){r.group=t})}return Zu[t]=!0,t}function W_(t){Zu[t]=!1}var nI=W_;function aI(t){q(t)?t=Ea[t]:t instanceof qu||(t=iv(t)),t instanceof qu&&!t.isDisposed()&&t.dispose()}function iv(t){return Ea[function yx(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,av)]}function iI(t){return Ea[t]}function ov(t,e){U_[t]=e}function sv(t){xe(rv,t)<0&&rv.push(t)}function uv(t,e){lv(tv,t,e,2e3)}function q_(t){Ku("afterinit",t)}function Y_(t){Ku("afterupdate",t)}function Ku(t,e){lr.on(t,e)}function Oa(t,e,r){var n,a,i,o,s;function u(f){return f.toLowerCase()}ce(e)&&(r=e,e=""),J(t)?(n=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(n=t,a=e),a=u(a||n);var l=i?u(n):a;Yu[n]||(Dr(P_.test(n)&&P_.test(a)),i&&Dr(a!==n),Yu[n]={actionType:n,refinedEventType:a,nonRefinedEventType:l,update:o,action:r,refineEvent:i},ev[a]=1,i&&s&&(ev[l]=1),Jh[l]=n)}function X_(t,e){uu.register(t,e)}function oI(t){var e=uu.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function sI(t,e){o_(t,e)}function Z_(t,e){lv(Xu,t,e,1e3,"layout")}function On(t,e){lv(Xu,t,e,3e3,"visual")}var K_=[];function lv(t,e,r,n,a,i){if((ce(e)||J(e))&&(r=e,e=n),!(xe(K_,r)>=0)){K_.push(r);var o=Q0.wrapStageHandler(r,a);o.__prio=e,o.__raw=r,t.push(o)}}function fv(t,e){nv[t]=e}function uI(t){Sd({createCanvas:t})}function j_(t,e,r){var n=a_("registerMap");n&&n(t,e,r)}function lI(t){var e=a_("getMap");return e&&e(t)}var $_=function oA(t){var e=(t=me(t)).type;e||It("");var n=e.split(":");2!==n.length&&It("");var a=!1;"echarts"===n[0]&&(e=n[1],a=!0),t.__isBuiltIn=a,Rm.set(e,t)};function cv(t,e,r,n){return{eventContent:{selected:Kw(r),isFromClick:e.isFromClick||!1}}}On(2e3,OL),On(4500,kL),On(4500,BL),On(2e3,jL),On(4500,$L),On(7e3,kP),sv(vm),uv(900,IM),fv("default",function NL(t,e){He(e=e||{},{text:"loading",textColor:Te.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Te.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Yt,n=new vt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var o,a=new Je({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new vt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(i),e.showSpinner&&((o=new bu({shape:{startAngle:-Ru/2,endAngle:-Ru/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Ru/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*Ru/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*u-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),i.setShape({x:l-u,y:f-u,width:2*u,height:2*u}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}),Oa({type:ma,event:ma,update:ma},ft),Oa({type:Ys,event:Ys,update:Ys},ft),Oa({type:Xs,event:dc,update:Xs,action:ft,refineEvent:cv,publishNonRefinedEvent:!0}),Oa({type:vc,event:dc,update:vc,action:ft,refineEvent:cv,publishNonRefinedEvent:!0}),Oa({type:Zs,event:dc,update:Zs,action:ft,refineEvent:cv,publishNonRefinedEvent:!0}),ov("default",{}),ov("dark",ZL);var fI={},Q_=[],cI={registerPreprocessor:sv,registerProcessor:uv,registerPostInit:q_,registerPostUpdate:Y_,registerUpdateLifecycle:Ku,registerAction:Oa,registerCoordinateSystem:X_,registerLayout:Z_,registerVisual:On,registerTransform:$_,registerLoading:fv,registerMap:j_,registerImpl:function nP(t,e){n_[t]=e},PRIORITY:L_,ComponentModel:ze,ComponentView:sr,SeriesModel:En,ChartView:sn,registerComponentModel:function(t){ze.registerClass(t)},registerComponentView:function(t){sr.registerClass(t)},registerSeriesModel:function(t){En.registerClass(t)},registerChartView:function(t){sn.registerClass(t)},registerCustomSeries:function(t,e){o_(t,e)},registerSubTypeDefaulter:function(t,e){ze.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Wp(t,e)}};function kn(t){V(t)?w(t,function(e){kn(e)}):xe(Q_,t)>=0||(Q_.push(t),ce(t)&&(t={install:t}),t.install(cI))}function Po(t){return null==t?0:t.length||1}function J_(t){return t}var hI=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||J_,this._newKeyGetter=a||J_,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],u=n[s],l=Po(u);if(l>1){var f=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(f,o)}else 1===l?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var r=this._new,n={},a={},i=[],o=[];this._initIndexMap(this._old,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],l=n[u],f=a[u],c=Po(l),v=Po(f);if(c>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,l),a[u]=null;else if(1===c&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),a[u]=null;else if(1===c&&1===v)this._update&&this._update(f,l),a[u]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),a[u]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=Po(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else 1===o&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),r){var u=r[s],l=Po(u);0===l?(r[s]=o,i&&n.push(s)):1===l?r[s]=[u,o]:u.push(o)}}},t}();const vI=hI;var dI=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 hv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const ju=function(){return function t(e){this.otherDims={},null!=e&&k(this,e)}}();var _I=we(),SI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eS=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=nS(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return te(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=ym(this.source),n=!aS(e),a="",i=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=r?v.name:null,l=v.type)}i.push({property:u,type:l,ordinalMeta:f}),r&&null!=u&&(!c||!c.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=SI[l]||"f",f&&(a+=f.uid),a+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,a].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function tS(t){return t instanceof eS}function rS(t){for(var e=ve(),r=0;r<(t||[]).length;r++){var n=t[r],a=J(n)?n.name:n;null!=a&&null==e.get(a)&&e.set(a,r)}return e}function nS(t){var e=_I(t);return e.dimNameMap||(e.dimNameMap=rS(t.dimensionsDefine))}function aS(t){return t>30}var oS,$u,Ro,Eo,vv,Oo,dv,Io=J,Bn=ie,CI=typeof Int32Array>"u"?Array:Int32Array,bI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xI=["_approximateExtent"],wI=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;tS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],v=q(c)?new ju({name:c}):c instanceof ju?c:new ju(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,null!=l[h]&&(u=!0),v.createInvertedIndices&&(s[h]=[]),a&&(v.storeDimIndex=f),0===d.itemName&&(this._nameDimIdx=v.storeDimIndex),0===d.itemId&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ve();w(o,function(p){g.set(i[p].storeDimIndex,p)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(null==r)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(null!=n)return n;var a=this._schema.getSourceDimension(r);return a?a.name:void 0},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(null!=r)return r;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Be(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(null==r)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i,a=this;if(e instanceof lh&&(i=e),!i){var o=this.dimensions,s=th(e)||gt(e)?new bm(e,o.length):e;i=new lh;var u=Bn(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function pI(t,e){var r={},n=r.encode={},a=ve(),i=[],o=[],s={};w(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var g=h.coordDimIndex;hv(n,d)[g]=v,h.isExtraCoord||(a.set(d,1),function yI(t){return!("ordinal"===t||"time"===t)}(h.type)&&(i[0]=v),hv(s,d)[g]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Yg.each(function(p,y){var m=hv(n,y),_=h.otherDims[y];null!=_&&!1!==_&&(m[_]=h.name)})});var u=[],l={};a.each(function(v,h){var d=n[h];l[h]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=ie(u,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new dI(s,e),r}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++)this._nameList[s]=r[s-a],o&&dv(this,s)},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==tn&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var a=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(a.getSource().sourceFormat===Xt&&!a.pure)for(var l=[],f=e;f<r;f++){var c=a.getItem(f,l);if(!this.hasItemOption&&ox(c)&&(this.hasItemOption=!0),c){var v=c.name;null==i[f]&&null!=v&&(i[f]=Mt(v,null));var h=c.id;null==o[f]&&null!=h&&(o[f]=Mt(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<r;f++)dv(this,f);oS(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){Io(e)?k(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return null==n&&null!=this._nameDimIdx&&(n=Ro(this,this._nameDimIdx,r)),null==n&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return $u(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var a=this._dimInfos[e];if(a)return this._store.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var a=this._dimInfos[e];if(a)return this._store.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return V(e)?a.getValues(Bn(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],a=n&&n[r];return null==a||isNaN(a)?-1:a},t.prototype.each=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=n||this,i=Bn(Eo(e),this._getStoreDimIndex,this);this._store.each(i,a?Pe(r,a):r)},t.prototype.filterSelf=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=n||this,i=Bn(Eo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Pe(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=Le(e),i=[];return w(a,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],i.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n=n||this),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=Bn(Eo(e),this._getStoreDimIndex,this),s=Oo(this);return s._store=this._store.map(o,i?Pe(r,i):r),s},t.prototype.modify=function(e,r,n,a){var o=n||a||this,s=Bn(Eo(e),this._getStoreDimIndex,this);this._store.modify(s,o?Pe(r,o):r)},t.prototype.downSample=function(e,r,n,a){var i=Oo(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=Oo(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Oo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new et(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new vI(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return $u(e,n)},function(n){return $u(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Io(e)?k(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e];return(n&&n[r])??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return null==i&&(V(i=this.getVisual(r))?i=i.slice():Io(i)&&(i=k({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Io(r)?k(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Io(e)?k(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){(function(t,e,r,n){if(n){var a=Me(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart","group"===n.type&&n.traverse(function(i){var o=Me(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Bn(this.dimensions,this._getDimInfo,this),this.hostModel)),vv(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ce(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat($o(arguments)))})},t.internalField=(oS=function(e){var r=e._invertedIndicesMap;w(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new CI(o.categories.length);for(var u=0;u<n.length;u++)n[u]=-1;for(u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},Ro=function(e,r,n){return Mt(e._getCategory(r,n),null)},$u=function(e,r){var n=e._idList[r];return null==n&&null!=e._idDimIdx&&(n=Ro(e,e._idDimIdx,r)),null==n&&(n="e\0\0"+r),n},Eo=function(e){return V(e)||(e=null!=e?[e]:[]),e},Oo=function(e){var r=new t(e._schema?e._schema:Bn(e.dimensions,e._getDimInfo,e),e.hostModel);return vv(r,e),r},vv=function(e,r){w(bI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,w(xI,function(n){e[n]=me(r[n])}),e._calculationInfo=k({},r._calculationInfo)},void(dv=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=a[r];if(null==s&&null!=i&&(n[r]=s=Ro(e,i,r)),null==u&&null!=o&&(a[r]=u=Ro(e,o,r)),null==u&&null!=s){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),a[r]=u}})),t}();const pv=wI;function DI(t,e){return gv(t,e).dimensions}function gv(t,e){th(t)||(t=nh(t));var r=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=ve(),i=[],o=function MI(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return w(e,function(i){var o;J(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&aS(o),u=n===t.dimensionsDefine,l=u?nS(t):rS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ve(f),v=new Em(o),h=0;h<v.length;h++)v[h]=-1;function d(b){var A=v[b];if(A<0){var R=n[b],E=J(R)?R:{name:R},P=new ju,O=E.name;return null!=O&&null!=l.get(O)&&(P.name=P.displayName=O),null!=E.type&&(P.type=E.type),null!=E.displayName&&(P.displayName=E.displayName),v[b]=i.length,P.storeDimIndex=b,i.push(P),P}return i[A]}if(!s)for(h=0;h<o;h++)d(h);c.each(function(b,A){var R=nt(b).slice();if(1===R.length&&!q(R[0])&&R[0]<0)c.set(A,!1);else{var E=c.set(A,[]);w(R,function(P,O){var F=q(P)?l.get(P):P;null!=F&&F<o&&(E[O]=F,p(d(F),A,O))})}});var g=0;function p(b,A,R){null!=Yg.get(A)?b.otherDims[A]=R:(b.coordDim=A,b.coordDimIndex=R,a.set(A,!0))}w(r,function(b){var A,R,E,P;if(q(b))A=b,P={};else{A=(P=b).name;var O=P.ordinalMeta;P.ordinalMeta=null,(P=k({},P)).ordinalMeta=O,R=P.dimsDef,E=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var F=c.get(A);if(!1!==F){if(!(F=nt(F)).length)for(var B=0;B<(R&&R.length||1);B++){for(;g<o&&null!=d(g).coordDim;)g++;g<o&&F.push(g++)}w(F,function(U,Y){var Q=d(U);if(u&&null!=P.type&&(Q.type=P.type),p(He(Q,P),A,Y),null==Q.name&&R){var ee=R[Y];!J(ee)&&(ee={name:ee}),Q.name=Q.displayName=ee.name,Q.defaultTooltip=ee.defaultTooltip}E&&He(Q.otherDims,E)})}});var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var S=y||"value";function C(b){null==b.name&&(b.name=b.coordDim)}if(s)w(i,function(b){C(b)}),i.sort(function(b,A){return b.storeDimIndex-A.storeDimIndex});else for(var T=0;T<o;T++){var x=d(T);null==x.coordDim&&(x.coordDim=AI(S,a,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),C(x),null==x.type&&(1===Ky(t,T)||x.isExtraCoord&&(null!=x.otherDims.itemName||null!=x.otherDims.seriesName))&&(x.type="ordinal")}return Wf(i,function(b){return b.name},function(b,A){A>0&&(b.name=b.name+(A-1))}),new eS({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function AI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var LI=function(){return function t(e){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=e}}(),II={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",Dn).models[0],i=t.getReferringComponents("yAxis",Dn).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Ci(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Ci(i)&&(n.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",Dn).models[0];e.coordSysDims=["single"],r.set("single",a),Ci(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",Dn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Ci(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Ci(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,u){var l=a.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Ci(l)&&(n.set(f,l),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var a=t.getReferringComponents("matrix",Dn).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Ci(t){return"category"===t.get("type")}function sS(t,e,r){var i,o,s,n=(r=r||{}).byIndex,a=r.stackedCoordDimension;!function RI(t){return!tS(t.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var l,f,c,v,u=!(!t||!t.get("stack")),h=!0;function d(S){return"ordinal"!==S.type&&"time"!==S.type}if(w(i,function(S,C){q(S)&&(i[C]=S={name:S}),d(S)||(h=!1)}),w(i,function(S,C){u&&!S.isExtraCoord&&(!n&&!l&&S.ordinalMeta&&(l=S),!f&&d(S)&&(!h||"x"!==S.coordDim&&"angle"!==S.coordDim)&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=f.coordDim,p=f.type,y=0;w(i,function(S){S.coordDim===g&&y++});var m={name:c,coordDim:g,coordDimIndex:y,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:v,coordDim:v,coordDimIndex:y+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,p),_.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function uS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}var lS=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Bs(lS);const Nr=lS;var zI=0,GI=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zI,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&ie(n,VI);return new t({categories:a,needCollect:!a,deduplication:!1!==r.dedplication})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!q(e)&&!n)return e;if(n&&!this._deduplication)return this.categories[r=this.categories.length]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return null==(r=a.get(e))&&(n?(this.categories[r=this.categories.length]=e,a.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},t}();function VI(t){return J(t)&&null!=t.value?t.value:t+""}const fS=GI;var cS=Le({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function yv(t,e,r){var n;t=t||{};var a=null;if(a){var i=a.createBreakScaleMapper(e,r);i.hasBreaks()&&(w(cS,function(o){i[o]&&(t[o]=Pe(i[o],i))}),n=i)}return null==n&&function qI(t,e){var r=t||{},n=[];r._extents=n,n[0]=e?e.slice():[1/0,-1/0],k(r,YI)}(t,r),{brk:n,mapper:t}}function vS(t,e){w(cS,function(r){t[r]=e[r]})}function dS(t,e){t.freeze=ft}function Bo(t){return t.getExtentUnsafe(0,2)}function pS(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function Ju(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var YI={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=pS(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){gS(this._extents,0,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[0].slice()),gS(n,t,e,r)},freeze:function(){}};function gS(t,e,r,n){eo(r,n)&&(t[e][0]=r,t[e][1]=n)}function No(t){return"interval"===t.type}function el(t){return"time"===t.type}function tl(t){return"log"===t.type}function Nn(t){return"ordinal"===t.type}function Ti(t){return Yr(t)+2}function rl(t,e){return ia(t)/ia(e)}function _v(t,e,r){var n=r&&r.lookup;if(n)for(var a=0;a<n.from.length;a++)if(t===n.from[a])return n.to[a];return ei(e,t)}function Sv(t,e){return wn(Ue(t=t||e,1))}function yS(t,e,r){var n=Bo(t),a=n[0],i=t.count(),o=Math.max((e||0)+1,1);0!==a&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&u(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);function u(l,f,c){r({value:l,offInterval:f},c)}s-o!==n[1]&&u(n[1],!0,!0)}var mS=function(t){function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,vS(n,e.decoratedMethods);var a=r.ordinalMeta;a||(a=new fS({})),V(a)&&(a=new fS({categories:ie(a,function(o){return J(o)?o.value:o})})),n._ordinalMeta=a;var i=yv(null,null,r.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,dS(n),n}return(0,K.C6)(e,t),e.parse=function(r){return null==r?r=NaN:q(r)?null==(r=this._ordinalMeta.getOrdinal(r))&&(r=NaN):r=wn(r),r},e.prototype.getTicks=function(){var r=[];return yS(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(null!=r){for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Bt(s,n.length);o<u;++o)i[a[o]=n[o]]=o;for(var f=0;o<s;++o){for(;null!=i[f];)f++;a[o]=f,i[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return null==a?"":a+""}},e.prototype.count=function(){var r=Bo(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(wn(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,a){return this._mapper.setExtent2(r,n,a)}},e}(Nr);Nr.registerClass(mS);const tR=mS;function Cv(t,e,r,n){for(var a=t.getTicks({expandToNicedExtent:!0}),i=[],o=t.getExtent(),s=1;s<a.length;s++){var u=a[s],l=a[s-1];if(!l.break&&!u.break){for(var f=0,c=[],h=(u.value-l.value)/e,d=Ti(h);f<e-1;){var g=ht(l.value+(f+1)*h,d);g>o[0]&&g<o[1]&&c.push(g),f++}var p=Lt();p&&p.pruneTicksByBreak("auto",c,r,function(y){return y},n,o),i.push(c)}}return i}var _S=function(t){function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse;var i=yv(n,My(n,r=r||{}),null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return(0,K.C6)(e,t),e.parse=function(r){return null==r||""===r?NaN:Number(r)},e.prototype.getConfig=function(){return me(this._cfg)},e.prototype.setConfig=function(r){var n=Bo(this);this._cfg=r=me(r),null==r.niceExtent&&(r.niceExtent=n.slice()),null==r.intervalPrecision&&(r.intervalPrecision=Ti(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,a=n.interval,i=Bo(this),o=n.niceExtent,s=n.intervalPrecision,u=null,l=this.brk,f=u&&l,c=[];if(!a)return c;if("only_break"===r.breakTicks&&f)return u.addBreaksToTicks(c,l.breaks,i),c;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?ht(o[0]-a,s):i[0]});for(var h=function(_,S){return wn((S-_)/a)},d=n.intervalCount,g=o[0],p=0;;p++){if(null==d){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=Bt(g,o[1]),p===d&&(g=o[1])}if(c.push({value:g}),g=ht(g+a,s),l){var y=l.calcNiceTickMultiple(g,h);y>=0&&(g=ht(g+y*a,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>3e3)return[]}var m=c.length?c[c.length-1].value:o[1];return i[1]>m&&c.push({value:r.expandToNicedExtent?ht(m+a,s):i[1]}),f&&u.pruneTicksByBreak(r.pruneByBreak,c,l.breaks,function(_){return _.value},n.interval,i),f&&"none"!==r.breakTicks&&u.addBreaksToTicks(c,l.breaks,i),c},e.prototype.getMinorTicks=function(r){return Cv(this,r,ru(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(null==r)return"";var a=n&&n.precision;return null==a?a=Yr(r.value)||0:"auto"===a&&(a=this._cfg.intervalPrecision),Gc(ht(r.value,a,!0))},e.type="interval",e}(Nr);Nr.registerClass(_S);const Fo=_S;var SS=function(t){function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=yv(n,My(n,r),null);return n.brk=i.brk,n}return(0,K.C6)(e,t),e.prototype.getLabel=function(r){return oo(r.value,Ly[function RD(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(io(this._minLevelUnit))]||Ly.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,a){return function ED(t,e,r,n,a){var i=null;if(q(r))i=r;else if(ce(r)){var o={time:t.time,level:t.time?t.time.level:0},s=null;s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];i=l[Math.min(u.level,l.length-1)]||""}else{var f=si(t.value,a);i=r[f][f][0]}}return oo(new Date(t.value),i,a,n)}(r,n,a,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=Bo(this),o=this.brk,s=null,u=[];if(!n)return u;var l=this._useUTC;u=function lR(t,e,r,n,a,i){var s=AD,u=0;function l(B,U,Y,Q,ee,se,pe){for(var _e=function uR(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}(ee,B),ue=U,De=new Date(ue);ue<Y&&ue<=n[1]&&(pe.push({value:ue}),!(u++>3e3));)if(De[ee](De[Q]()+B),ue=De.getTime(),i){var We=i.calcNiceTickMultiple(ue,_e);We>0&&(De[ee](De[Q]()+We*B),ue=De.getTime())}pe.push({value:ue,notAdd:ue>n[1]})}function f(B,U,Y){var Q=[],ee=!U.length;if(!CS(io(B),n[0],n[1],r)){ee&&(U=[{value:sR(n[0],B,r)},{value:n[1]}]);for(var se=0;se<U.length-1;se++){var pe=U[se].value,_e=U[se+1].value;if(pe!==_e){var ue=void 0,De=void 0,We=void 0;switch(B){case"year":ue=Math.max(1,Math.round(e/ir/365)),De=Py(r),We=OD(r);break;case"half-year":case"quarter":case"month":ue=aR(e),De=kc(r),We=Iy(r);break;case"week":case"half-week":case"day":ue=nR(e),De=Bc(r),We=Ry(r);break;case"half-day":case"quarter-day":case"hour":ue=iR(e),De=Nc(r),We=Ey(r);break;case"minute":ue=TS(e,!0),De=Fc(r),We=Oy(r);break;case"second":ue=TS(e,!1),De=Hc(r),We=ky(r);break;case"millisecond":ue=oR(e),De=zc(r),We=By(r)}_e>=n[0]&&pe<=n[1]&&l(ue,pe,_e,De,We,0,Q),"year"===B&&Y.length>1&&0===se&&Y.unshift({value:Y[0].value-ue})}}for(se=0;se<Q.length;se++)Y.push(Q[se])}}for(var c=[],v=[],h=0,d=0,g=0;g<s.length;++g){var p=io(s[g]);if(ID(s[g])&&(f(s[g],c[c.length-1]||[],v),p!==(s[g+1]?io(s[g+1]):null))){if(v.length){d=h,v.sort(function(B,U){return B.value-U.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(0===_||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var C=a/e;if(h>1.5*C&&d>C/1.5||(c.push(m),h>C||t===s[g]))break}v=[]}}var T=Ye(ie(c,function(B){return Ye(B,function(U){return U.value>=n[0]&&U.value<=n[1]&&!U.notAdd})}),function(B){return B.length>0}),x=T.length-1,D=[];for(g=0;g<T.length;++g)for(var b=T[g],A=0;A<b.length;++A){var R=si(b[A].value,r);D.push({value:b[A].value,time:{level:x-g,upperTimeUnit:R,lowerTimeUnit:R}})}Wf(D,xx,null),D.sort(function(B,U){return B.value-U.value});var E=D[0],P=D[D.length-1],O=si(n[0],r),F=si(n[1],r);return(!E||E.value>n[0])&&D.unshift({value:n[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!P||P.value<n[1])&&D.push({value:n[1],time:{level:0,upperTimeUnit:F,lowerTimeUnit:F},notNice:!0}),D}(this._minLevelUnit,this._approxInterval,l,a,Ju(this),o);var f=Zt.length-1,c=0;return w(u,function(v){v.time&&(f=Math.min(f,xe(Zt,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),u},e.prototype.getMinorTicks=function(r){return Cv(this,r,ru(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 Be(r)?Math.round(r):+Xr(r)},e.type="time",e}(Nr),nl=[["second",1e3],["minute",6e4],["hour",ao],["quarter-day",6*ao],["half-day",12*ao],["day",1.2*ir],["half-week",3.5*ir],["week",7*ir],["month",31*ir],["quarter",95*ir],["half-year",Ay/2],["year",Ay]];function CS(t,e,r,n){return iu(new Date(e),t,n).getTime()===iu(new Date(r),t,n).getTime()}function nR(t,e){return(t/=ir)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function aR(t){return(t/=30*ir)>6?6:t>3?3:t>2?2:1}function iR(t){return(t/=ao)>12?12:t>6?6:t>3.5?4:t>2?2:1}function TS(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function oR(t){return Ue(Ff(t,!0),1)}function sR(t,e,r){var n=Math.max(0,xe(Zt,e)-1);return iu(new Date(t),Zt[n],r).getTime()}Nr.registerClass(SS);const cR=SS;var bS=function(t){function e(r){var n=t.call(this)||this;n.type="log",n.parse=Fo.parse,n.base=r.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[0]=a[1]=i[0]=i[1]=NaN,vS(n,e.mapperMethods);var s=null,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(r.breakOption,n,{noNegative:!0},2,l),n.powStub=new Fo({breakParsed:l.original}),n.intervalStub=new Fo({breakParsed:l.transformed}),dS(n),n}return(0,K.C6)(e,t),e.prototype.getTicks=function(r){var n=this.base,a=this.powStub,i=null,o=this.intervalStub,l={lookup:{from:o.getExtent(),to:a.getExtent()}};return ie(o.getTicks(r||{}),function(f){var h,v=_v(f.value,n,l);if(i){var d=i.getTicksBreakOutwardTransform(this,f,ru(a),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return Cv(this,r,ru(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(rl(r,this.base))},scale:function(r){return _v(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=rl(r,this.base),n&&2===n.depth?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var a=n?n.depth:null;return xS.depth=a,wS.lookup=this._lookup,_v(2===a?r:this.intervalStub.transformOut(r,xS),this.base,wS)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(0,r,n)},setExtent2:function(r,n,a){if(!(!eo(n,a)||n<=0||a<=0)){var i=DS,o=DS;if(0===r){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[0]=n,i[1]=a);var u=this.base;this.intervalStub.setExtent2(r,o[0]=rl(n,u),o[1]=rl(a,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return eo(n[0],n[1])&&Kr(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return null===n?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e}(Nr);Nr.registerClass(bS);var xS={},wS={},DS=[];const vR=bS;var dR={value:1,category:1,time:1,log:1},AS=we();function ol(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var r=function LD(t){return q(t)||ce(t)?t:function PD(t){t=t||{};var e={},r=!0;return w(Zt,function(n){r&&(r=null==t[n])}),w(Zt,function(n,a){var i=t[n];e[n]={};for(var o=null,s=a;s>=0;s--){var u=Zt[s],l=J(i)&&!V(i)?i[u]:i,f=void 0;V(l)?o=(f=l.slice())[0]||"":q(l)?f=[o=l]:(null==o?o=nu[n]:DD[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}(t)}(e);return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}if(q(e))return function(a){var i=t.scale.getLabel(a);return e.replace("{value}",i??"")};if(ce(e)){if("category"===t.type)return function(a,i){return e(sl(t,a),a.value-t.scale.getExtent()[0],null)};var n=null;return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(sl(t,a),i,o)}}return function(a){return t.scale.getLabel(a)}}function sl(t,e){var r=t.scale;return Nn(r)?r.getLabel(e):e.value}function Tv(t){return t.get("interval")??"auto"}function ul(t){return"middle"===t||"center"===t}function bv(t,e){return Nn(t)?t.getRawOrdinalNumber(e.value):e.value}var LR=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),xi=(function Tx(){var t="__ec_once_"+bx++}(),we());function kR(t,e){return RS(function wv(t,e){var r=t.model,n=xi(Fh(r.ecModel)).keyed,a=n&&n.get(e);return a&&a.get(r.uid)}(t,e))}function RS(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}we(),ve(),we();var kS=function(){function t(e,r,n,a,i){var u,o=Nn(e),s=o?r.getCategories().length:null;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(No(e)||tl(e)||el(e))&&(sg(f,Ho(e,r.get("dataMin",!0))),ug(f,Ho(e,r.get("dataMax",!0)))),function Sx(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);"dataMin"===h?(c[0]=f[0],v[0]=!0):(c[0]=Ho(e,ce(h)?h({min:f[0],max:f[1]}):h),v[0]=null!=c[0]);var d=r.get("max",!0);"dataMax"===d?(c[1]=f[1],v[1]=!0):(c[1]=Ho(e,ce(d)?d({min:f[0],max:f[1]}):d),v[1]=null!=c[1]);var g=function jR(t,e){var r;if(Nn(t))r=[0,0];else{var n=e.get("boundaryGap");"boolean"==typeof n&&(n=null),r=V(n)?n:[n,n]}return[NS(r[0]),NS(r[1])]}(e,r),p=o?null:f[1]-f[0]||Math.abs(f[0]);null==c[0]&&(c[0]=o?u?f[0]:s?0:NaN:f[0]-g[0]*p),null==c[1]&&(c[1]=o?u?f[1]:s?s-1:NaN:f[1]+g[1]*p),!$r(c[0])&&(c[0]=NaN),!$r(c[1])&&(c[1]=NaN);var y=u||Ii(c[0])||Ii(c[1])||o&&!s,m=No(e),_=m&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var C=Ho(e,r.get("startValue",!0)),T=null!=C;!Kr(C)&&a&&(C=e.getDefaultStartValue?e.getDefaultStartValue():0),Kr(C)&&(T||!m||_)&&(C<c[0]&&!v[0]?(c[0]=C,v[0]=!0):C>c[1]&&!v[1]&&(c[1]=C,v[1]=!0)),BS(this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:C,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i},c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,a=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:e.noZoomEffMM.slice()},s=o.effMM;return null!=r[0]&&(s[0]=r[0],i[0]=a[0]=!0),null!=r[1]&&(s[1]=r[1],i[1]=a[1]=!0),BS(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 BS(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),function Cx(t){eo(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}(e))}function Ho(t,e){return null==e?null:Ii(e)?NaN:t.parse(e)}function NS(t){return ra("boolean"==typeof t?0:t,1)||0}var Lv=ve();function zS(t,e){var r=tl(t),n=r?t.intervalStub:t,a=e.fixMinMax||[],i=r?t.getExtent():null,o=n.getExtent(),s=function JI(t,e,r){var n=t.slice();if(n[0]===n[1]){var a=r&&r.ctnShp;if(0!==n[0]){var i=mt(n[0]);e[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!$r(n[0])||!$r(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}(o,a,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?function nE(t,e){var r=Sv(e.splitNumber,10),n=t.getExtent(),a=Ju(t),i=Ue(jp(a),1);r/a*i<=.5&&(i*=10);var s=Ti(i);return{intervalPrecision:s,interval:i,niceExtent:[ht(Os(n[0]/i)*i,s),ht(aa(n[1]/i)*i,s)]}}(n,e):function rE(t,e){var r=Sv(e.splitNumber,5),n=Ju(t),a=e.minInterval,i=e.maxInterval,o=Ff(n/r,!0);null!=a&&o<a&&(o=a),null!=i&&o>i&&(o=i);var s=Ti(o),u=t.getExtent();return{interval:o,intervalPrecision:s,niceExtent:[ht(Os(u[0]/o)*o,s),ht(aa(u[1]/o)*o,s)]}}(n,e),l=u.intervalPrecision,f=u.interval,c=e.userInterval;null!=c&&(u.interval=c,u.intervalPrecision=Ti(c)),a[0]||(s[0]=ht(aa(s[0]/f)*f,l)),a[1]||(s[1]=ht(Os(s[1]/f)*f,l)),null!=c&&(u.niceExtent=s.slice()),function AR(t,e,r,n,a,i){var o=tl(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var u=t.powStub,l={depth:2},f=t.transformOut(n[0],l),c=t.transformOut(n[1],l),v=function eR(t,e){return[t[0]!==e[0],t[1]!==e[1]]}(r,n);e[0]&&!v[0]&&(f=a[0]),e[1]&&!v[1]&&(c=a[1]),u.setExtent(f,c)}s.setConfig(i)}(t,a,o,s,i,u)}function GS(t,e,r,n,a){var i=function JR(t,e,r,n,a){t.rawExtentInfo||function QR(t,e){var r=t.scale;!function HS(t,e,r){t.rawExtentInfo=e,e.from=r}(r,new kS(r,t.model,e,!1,!1),3)}({scale:t,model:e},a||[1/0,-1/0]);var i=t.rawExtentInfo.makeFinal(),o=i.effMM;return t.setExtent(o[0],o[1]),t.setBlank(i.isBlank),n&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}(t,e,n,r,a),o=No(t)||el(t);(function aE(t,e){iE[t.type](t,e)})(t,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),r&&n&&function tE(t,e,r,n){var a;if(r.ctnShp&&(function NR(t,e){var r=t.model,n=xi(Fh(r.ecModel)).keys;n&&w(n.get(r.uid),function(a){e(a)})}(t,function(s){var u=Lv.get(s);if(u){var l=u(t,n);l&&(sg(a=a||[0,0],l[0]),ug(a,l[1]),function xR(t){AS(t).noOnMyZero=!0}(t))}}),a)){var i=e.getExtent();if(Nn(e))t.onBand||e.setExtent2(1,Bt(i[0],i[0]+a[0]),Ue(i[1],i[1]+a[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=Bt(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=Ue(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(1,o[0],o[1])}}}(r,t,i,n)}var iE={interval:zS,log:zS,time:function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=ir,r[1]+=ir),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-ir}t.setExtent(r[0],r[1]);var a=Sv(e.splitNumber,10),i=Ju(t)/a,o=e.minInterval,s=e.maxInterval;null!=o&&i<o&&(i=o),null!=s&&i>s&&(i=s);var u=nl.length,l=Math.min(function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r}(nl,i,0,u),u-1),f=nl[l][1],c=nl[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})},ordinal:ft};function oE(t){return function BI(t,e,r){r=r||{};var a,n=e.getSourceManager(),i=!1;t?(i=!0,a=nh(t)):i=(a=n.getSource()).sourceFormat===Xt;var o=function PI(t){var e=t.get("coordinateSystem"),r=new LI(e),n=II[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}(e),s=function OI(t,e){var a,r=t.get("coordinateSystem"),n=uu.get(r);return e&&e.coordSysDims&&(a=ie(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var u=s.get("type");o.type=function gI(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(u)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}(e,o),u=r.useEncodeDefaulter,l=ce(u)?u:u?Xe(tM,s,e):null,c=gv(a,{coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i}),v=function kI(t,e,r){var n,a;return r&&w(t,function(i,o){var u=r.categoryAxisMap.get(i.coordDim);u&&(null==n&&(n=o),i.ordinalMeta=u.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(a=!0)}),!a&&null!=n&&(t[n].otherDims.itemName=0),n}(c.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=sS(e,{schema:c,store:h}),g=new pv(c,e);g.setCalculationInfo(d);var p=null!=v&&function NI(t){if(t.sourceFormat===Xt){var e=function FI(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!V(Ki(e))}}(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,p),g}(null,t)}var sE={isDimensionStacked:uS,enableDataStack:sS,getStackedDimension:function EI(t,e){return uS(t,e)?t.getCalculationInfo("stackResultDimension"):e}};function uE(t,e){var r=e;e instanceof et||(r=new et(e));var n=function SR(t){var e=t.get("type");return(null==e||!oe(dR,e)&&!Nr.getClass(e))&&(e="value"),e}(r),a=function CR(t,e,r){var a;switch(e){case"category":return new tR({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new cR({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:a});case"log":return new vR({logBase:t.get("logBase"),breakOption:a});case"value":return new Fo({breakOption:a});default:return new(Nr.getClass(e)||Fo)({})}}(r,n);return t[1]<t[0]&&(t=t.slice().reverse()),GS(a,r,null,null,t),a}function lE(t){hr(t,LR)}function fE(t,e){return nn(t,null,null,"normal"!==(e=e||{}).state)}function VS(t,e){return Math.abs(t-e)<1e-8}function US(t,e,r){var n=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];n+=en(a[0],a[1],o[0],o[1],e,r),a=o}var s=t[0];return(!VS(a[0],s[0])||!VS(a[1],s[1]))&&(n+=en(a[0],a[1],s[0],s[1],e,r)),0!==n}var hE=[];function Pv(t,e){for(var r=0;r<t.length;r++)Ut(t[r],t[r],e)}function WS(t,e,r,n){for(var a=0;a<t.length;a++){var i=t[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(mn(e,e,i),_n(r,r,i))}}var qS=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}(),YS=function(){return function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}}(),XS=function(){return function t(e){this.type="linestring",this.points=e}}(),dE=function(t){function e(r,n,a){var i=t.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return(0,K.C6)(e,t),e.prototype.calcCenter=function(){for(var n,r=this.geometries,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,u=s&&s.length;u>a&&(n=o,a=u)}if(n)return function vE(t){for(var e=0,r=0,n=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var u=t[s][0],l=t[s][1],f=i*l-u*o;e+=f,r+=(i+u)*f,n+=(o+l)*f,i=u,o=l}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0];return w(this.geometries,function(s){"polygon"===s.type?WS(s.exterior,a,i,r):w(s.points,function(u){WS(u,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if("polygon"===s.type){var l=s.interiors;if(US(s.exterior,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(US(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var u=new ye(r,n,a,i),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var v=f[c];"polygon"===v.type?(Pv(v.exterior,l),w(v.interiors,function(h){Pv(h,l)})):w(v.points,function(h){Pv(h,l)})}(o=this._rect).copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){null==r&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(qS);function Iv(t,e,r){for(var n=0;n<t.length;n++)t[n]=ZS(t[n],e[n],r)}function ZS(t,e,r){for(var n=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),a=s+=a,i=u+=i,n.push([s/r,u/r])}return n}function KS(t,e){return t=function pE(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;return null==r&&(r=1024),w(e.features,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=ZS(s,o,r);break;case"Polygon":case"MultiLineString":Iv(s,o,r);break;case"MultiPolygon":w(s,function(u,l){return Iv(u,o[l],r)})}}),e.UTF8Encoding=!1,e}(t),ie(Ye(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new YS(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(u){u[0]&&i.push(new YS(u[0],u.slice(1)))});break;case"LineString":i.push(new XS([a.coordinates]));break;case"MultiLineString":i.push(new XS(a.coordinates))}var s=new dE(n[e||"name"],i,n.cp);return s.properties=n,s})}function gE(t,e,r,n,a,i,o,s){return new Je({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}!function(t){function e(r,n){var a=t.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}(0,K.C6)(e,t),e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=qn(hE),o=r;o&&!o.isGeoSVGGraphicRoot;)Yn(i,o.getLocalTransform(),i),o=o.parent;return Xn(i,i),Ut(a,a,i),a}}(qS);var yE=we(),zo=we();function ll(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function jS(t,e){var r=e.getExtent(),n=[];return w(t,function(a){(a=e.parse(a))>=r[0]&&a<=r[1]&&n.push(a)}),Wf(n,Dx,null),kf(n),ie(n,function(a){return{value:a}})}function $S(t,e,r){var s,u,n=xE(t),a=Tv(e),i=1===r.kind;if(!i){var o=JS(n,a);if(o)return o}ce(a)?s=fl(t,a,!1):(u="auto"===a?function wE(t,e){if(1===e.kind){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return zo(t).autoInterval=r,!0}),r}return zo(t).autoInterval??(zo(t).autoInterval=t.calculateCategoryInterval(e))}(t,r):a,s=fl(t,u,!1));var l={labels:s,labelCategoryInterval:u};return i?r.out.noPxChangeTryDetermine.push(function(){return Rv(n,a,l),!0}):Rv(n,a,l),l}var bE=QS("axisTick"),xE=QS("axisLabel");function QS(t){return function(r){return zo(r)[t]||(zo(r)[t]={list:[]})}}function JS(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Rv(t,e,r){return t.list.push({key:e,value:r}),r}function ME(t,e,r){return null==eC(t,e,r)}function eC(t,e,r){var n=yE(t.model),a=t.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(null!=i&&null!=o&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function fl(t,e,r){var n=ol(t),a=t.scale,i=[],o=ce(e);return yS(a,o?0:e,function(s,u){var l=a.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}i.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),i}function cl(t,e){var r={w:NaN,w2:NaN},n=t.scale,a=(e=e||{}).fromStat,i=e.min,o=function WI(t){var e=pS(t,3);return e[1]-e[0]}(n);Kr(o)||(o=NaN);var s=t.getExtent(),u=mt(s[1]-s[0]);return Nn(n)?function PE(t,e,r,n){var a=e.onBand,i=r+(a?1:0);0===i&&(i=1),t.w=n/i,!a&&r&&n&&(t.w2=t.w*r/n)}(r,t,o,u):a&&function IE(t,e,r,n,a){var i=!1,o=-1/0;w(a.key?[kR(e,a.key)]:function BR(t,e){var r=[];return function IS(t,e){var r=xi(Fh(t)).keyed;r&&r.each(function(n,a){n.each(function(i,o){e(i,a,o)})})}(t.model.ecModel,function(n){for(var a=0;a<e.length;a++)e[a]&&n.serByIdx[e[a].seriesIndex]&&r.push(RS(n))}),r}(e,a.sers||[]),function(s){var u=s.liPosMinGap;null!=u&&(u>0?(u>o&&(o=u),i=!1):-2===u&&(i=!0))}),Kr(r)&&r>0&&Kr(o)?(t.w=n/r*o,t.w2=o):i&&(t.w=.8*n,t.w2=t.w*r/n)}(r,t,o,u,a),null!=i&&(r.w=Kr(r.w)?Ue(i,r.w):i),r}var tC=[0,1],RE=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return ks(e=n.normalize(n.parse(e)),tC,rC(this),r)},t.prototype.coordToData=function(e,r){var n=ks(e,rC(this),tC,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){var r=(e=e||{}).tickModel||this.getTickModel(),a=ie(function _E(t,e,r){var n=t.scale,a=t.getTickModel().get("customValues");return a?{ticks:jS(a,n)}:"category"===t.type?function CE(t,e){var i,o,r=bE(t),n=Tv(e),a=JS(r,n);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),ce(n))i=fl(t,n,!0);else if("auto"===n){var s=$S(t,t.getLabelModel(),ll(2));o=s.labelCategoryInterval,i=ie(s.labels,function(u){return u.tick})}else i=fl(t,o=n,!0);return Rv(r,n,{ticks:i,tickCategoryInterval:o})}(t,e):{ticks:n.getTicks(r)}}(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(s){return{coord:this.dataToCoord(bv(this.scale,s)),tick:s}},this),o=function EE(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var a=cl(t).w;if(!a)return!1;w(e,function(s){s.coord-=a/2});var i=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}(this,a,r.get("alignWithLabel"));return ie(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Nn(this.scale))return[];var r=this.model.getModel("minorTick").get("splitNumber");return r>0&&r<100||(r=5),ie(this.scale.getMinorTicks(r),function(i){return ie(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},t.prototype.getViewLabels=function(e){return function mE(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:ie(jS(r,n),function(a,i){return{formattedLabel:ol(t)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return"category"===t.type?function SE(t,e){var r=t.getLabelModel(),n=$S(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}(t,e):function TE(t){var e=t.scale.getTicks(),r=ol(t);return{labels:ie(e,function(n,a){return{formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tick:n}})}}(t)}(this,e=e||ll(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return cl(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return function DE(t,e){var r=e.kind,n=function AE(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()}}(t),a=ol(t),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1;u>40&&(l=Math.max(1,Math.floor(u/40)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),g=0,p=0;c<=s[1];c+=l){var m,_=Bp(a({value:c}),n.font,"center","top");m=1.3*_.height,g=Math.max(g,1.3*_.width,7),p=Math.max(p,m,7)}var S=g/h,C=p/d;isNaN(S)&&(S=1/0),isNaN(C)&&(C=1/0);var T=Math.max(0,Math.floor(Math.min(S,C)));return 1===r?(e.out.noPxChangeTryDetermine.push(Pe(ME,null,t,T,u)),T):eC(t,T,u)??T}(this,e=e||ll(2))},t}();function rC(t){var e=t.getExtent();if(t.onBand){var n=(e[1]-e[0])/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}const OE=RE;function kE(t){var e=ze.extend(t);return ze.registerClass(e),e}function BE(t){var e=sr.extend(t);return sr.registerClass(e),e}function NE(t){var e=En.extend(t);return En.registerClass(e),e}function FE(t){var e=sn.extend(t);return sn.registerClass(e),e}var Go=2*Math.PI,ka=da.CMD,HE=["top","right","bottom","left"];function zE(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0)}}function GE(t,e,r,n,a,i,o,s,u){o-=t,s-=e;var l=Math.sqrt(o*o+s*s),f=(o/=l)*r+t,c=(s/=l)*r+e;if(Math.abs(n-a)%Go<1e-4)return u[0]=f,u[1]=c,l-r;if(i){var v=n;n=Jr(a),a=Jr(v)}else n=Jr(n),a=Jr(a);n>a&&(a+=Go);var h=Math.atan2(s,o);if(h<0&&(h+=Go),h>=n&&h<=a||h+Go>=n&&h+Go<=a)return u[0]=f,u[1]=c,l-r;var d=r*Math.cos(n)+t,g=r*Math.sin(n)+e,p=r*Math.cos(a)+t,y=r*Math.sin(a)+e,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function hl(t,e,r,n,a,i,o,s){var u=a-t,l=i-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c),d=(u*(f/=v)+l*(c/=v))/v;s&&(d=Math.min(Math.max(d,0),1));var g=o[0]=t+(d*=v)*f,p=o[1]=e+d*c;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function nC(t,e,r,n,a,i,o){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n);var s=t+r,u=e+n,l=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(i,e),u);return Math.sqrt((l-a)*(l-a)+(f-i)*(f-i))}var xr=[];function VE(t,e,r){var n=nC(e.x,e.y,e.width,e.height,t.x,t.y,xr);return r.set(xr[0],xr[1]),n}function UE(t,e,r){for(var s,u,n=0,a=0,i=0,o=0,l=1/0,f=e.data,c=t.x,v=t.y,h=0;h<f.length;){var d=f[h++];1===h&&(i=n=f[h],o=a=f[h+1]);var g=l;switch(d){case ka.M:n=i=f[h++],a=o=f[h++];break;case ka.L:g=hl(n,a,f[h],f[h+1],c,v,xr,!0),n=f[h++],a=f[h++];break;case ka.C:g=up(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,xr),n=f[h++],a=f[h++];break;case ka.Q:g=cp(n,a,f[h++],f[h++],f[h],f[h+1],c,v,xr),n=f[h++],a=f[h++];break;case ka.A:var p=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],C=f[h++];h+=1;var T=!!(1-f[h++]);s=Math.cos(S)*m+p,u=Math.sin(S)*_+y,h<=1&&(i=s,o=u),g=GE(p,y,_,S,S+C,T,(c-p)*_/m+p,v,xr),n=Math.cos(S+C)*m+p,a=Math.sin(S+C)*_+y;break;case ka.R:g=nC(i=n=f[h++],o=a=f[h++],f[h++],f[h++],c,v,xr);break;case ka.Z:g=hl(n,a,i,o,c,v,xr,!0),n=i,a=o}g<l&&(l=g,r.set(xr[0],xr[1]))}return l}var wr=new de,Ee=new de,Ke=new de,Fr=new de,Hr=new de;function aC(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||HE,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=a.anchor,f=t.getComputedTransform(),c=f&&Xn([],f),v=e.get("length2")||0;l&&Ke.copy(l);for(var h=0;h<o.length;h++){zE(o[h],0,s,wr,Fr),de.scaleAndAdd(Ee,wr,Fr,v),Ee.transform(c);var g=t.getBoundingRect(),p=l?l.distance(Ee):t instanceof Ne?UE(Ee,t.path,Ke):VE(Ee,g,Ke);p<u&&(u=p,Ee.transform(f),Ke.transform(f),Ke.toArray(i[0]),Ee.toArray(i[1]),wr.toArray(i[2]))}iC(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var vl=[],Et=new de;function iC(t,e){if(e<=180&&e>0){e=e/180*Math.PI,wr.fromArray(t[0]),Ee.fromArray(t[1]),Ke.fromArray(t[2]),de.sub(Fr,wr,Ee),de.sub(Hr,Ke,Ee);var r=Fr.len(),n=Hr.len();if(!(r<.001||n<.001)){Fr.scale(1/r),Hr.scale(1/n);var a=Fr.dot(Hr);if(Math.cos(e)<a){var o=hl(Ee.x,Ee.y,Ke.x,Ke.y,wr.x,wr.y,vl,!1);Et.fromArray(vl),Et.scaleAndAdd(Hr,o/Math.tan(Math.PI-e));var s=Ke.x!==Ee.x?(Et.x-Ee.x)/(Ke.x-Ee.x):(Et.y-Ee.y)/(Ke.y-Ee.y);if(isNaN(s))return;s<0?de.copy(Et,Ee):s>1&&de.copy(Et,Ke),Et.toArray(t[1])}}}}function WE(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,wr.fromArray(t[0]),Ee.fromArray(t[1]),Ke.fromArray(t[2]),de.sub(Fr,Ee,wr),de.sub(Hr,Ke,Ee);var n=Fr.len(),a=Hr.len();if(!(n<.001||a<.001)&&(Fr.scale(1/n),Hr.scale(1/a),Fr.dot(e)<Math.cos(r))){var s=hl(Ee.x,Ee.y,Ke.x,Ke.y,wr.x,wr.y,vl,!1);Et.fromArray(vl);var u=Math.PI/2,f=u+Math.acos(Hr.dot(e))-r;if(f>=u)de.copy(Et,Ke);else{Et.scaleAndAdd(Hr,s/Math.tan(Math.PI/2-f));var c=Ke.x!==Ee.x?(Et.x-Ee.x)/(Ke.x-Ee.x):(Et.y-Ee.y)/(Ke.y-Ee.y);if(isNaN(c))return;c<0?de.copy(Et,Ee):c>1&&de.copy(Et,Ke)}Et.toArray(t[1])}}}function Ev(t,e,r,n){var a="normal"===r,i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function qE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=ns(n[0],n[1]),i=ns(n[1],n[2]);if(!a||!i)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var o=Math.min(a,i)*r,s=as([],n[1],n[0],o/a),u=as([],n[1],n[2],o/i),l=as([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function oC(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(a){for(var i=e.normal,o=i.get("show"),s=a.ignore,u=0;u<qs.length;u++){var l=qs[u],f=e[l],c="normal"===l;if(f){var v=f.get("show");if((c?s:te(a.states[l]&&a.states[l].ignore,s))||!te(v,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0),n&&Ev(n,!0,l,f);continue}n||(n=new To,t.setTextGuideLine(n),!c&&(s||!o)&&Ev(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Ev(n,!1,l,f)}}if(n){He(n.style,r),n.style.fill=null;var g=i.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=qE}}else n&&t.removeTextGuideLine()}function sC(t,e){for(var r={normal:t.getModel(e=e||"labelLine")},n=0;n<kr.length;n++){var a=kr[n];r[a]=t.getModel([a,e])}return r}var uC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function pl(t,e,r){r=r||3,e?t.dirty|=r:t.dirty&=~r}function fC(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function zr(t){if(t)return fC(t)&&cC(t,t.label,t),t}function cC(t,e,r){var n=e.getComputedTransform();t.transform=Eh(t.transform,n);var a=t.localRect=xo(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=i.__marginType;null==f&&l&&(o=l,f=ii.textMargin);for(var c=0;c<4;c++)Ov[c]=f===ii.minMargin&&u&&null!=u[c]?u[c]:s&&null!=s[c]?s[c]:o?o[c]:0;f===ii.textMargin&&Ph(a,Ov,!1,!1);var v=t.rect=xo(t.rect,a);return n&&v.applyTransform(n),f===ii.minMargin&&Ph(v,Ov,!1,!1),t.axisAligned=Rh(n),(t.label=t.label||{}).ignore=e.ignore,pl(t,!1),pl(t,!0,2),t}var Ov=[0,0,0,0];function kv(t,e){for(var r=0;r<uC.length;r++){var n=uC[r];null==t[n]&&(t[n]=e[n])}return zr(t)}function hC(t){var e=t.obb;return(!e||fC(t,2))&&(t.obb=e=e||new y0,e.fromBoundingRect(t.localRect,t.transform),pl(t,!1,2)),e}function Bv(t,e,r,n,a){var i=t.length,o=S0[e],s=C0[e];if(i<2)return!1;t.sort(function(b,A){return b.rect[o]-A.rect[o]});for(var l,u=0,f=!1,c=0,v=0;v<i;v++){var h=t[v],d=h.rect;(l=d[o]-u)<0&&(d[o]-=l,h.label[o]-=l,f=!0),c+=Math.max(-l,0),u=d[o]+d[s]}c>0&&a&&T(-c/i,0,i);var m,_,p=t[0],y=t[i-1];function S(){m=p.rect[o]-r,_=n-y.rect[o]-y.rect[s]}function C(b,A,R){if(b<0){var E=Math.min(A,-b);if(E>0){T(E*R,0,i);var P=E+b;P<0&&x(-P*R,1)}else x(-b*R,1)}}function T(b,A,R){0!==b&&(f=!0);for(var E=A;E<R;E++){var P=t[E];P.rect[o]+=b,P.label[o]+=b}}function x(b,A){for(var R=[],E=0,P=1;P<i;P++){var O=t[P-1].rect,F=Math.max(t[P].rect[o]-O[o]-O[s],0);R.push(F),E+=F}if(E){var B=Math.min(Math.abs(b)/E,A);if(b>0)for(P=0;P<i-1;P++)T(R[P]*B,0,P+1);else for(P=i-1;P>0;P--)T(-R[P-1]*B,P,i)}}function D(b){var A=b<0?-1:1;b=Math.abs(b);for(var R=Math.ceil(b/(i-1)),E=0;E<i-1;E++)if(A>0?T(R,0,E+1):T(-R,i-E-1,i),(b-=R)<=0)return}return S(),m<0&&x(-m,.8),_<0&&x(_,.8),S(),C(m,_,1),C(_,m,-1),S(),m<0&&D(-m),_<0&&D(_),f}function vC(t){var e=[];function r(l){if(!l.ignore){var f=l.ensureState("emphasis");null==f.ignore&&(f.ignore=!1)}l.ignore=!0}t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});for(var n=0;n<t.length;n++){var a=zr(t[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,u=0;u<e.length;u++)if(Nv(a,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(a)}}}function Nv(t,e,r,n){return!(!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n))&&(!(!t.axisAligned||!e.axisAligned)||hC(t).intersect(hC(e),r,n))}function jE(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function $E(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:jE(n&&n.shape.points)}}var dC=["align","verticalAlign","width","height","fontSize"],Ot=new Yi,Fv=we(),QE=we();function gl(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];null!=e[a]&&(t[a]=e[a])}}var yl=["x","y","rotation"],JE=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,u=a.__hostTarget.textConfig||{},l=a.getComputedTransform(),f=a.getBoundingRect().plain();ye.applyTransform(f,f,l),l?Ot.setLocalTransform(l):(Ot.x=Ot.y=Ot.rotation=Ot.originX=Ot.originY=0,Ot.scaleX=Ot.scaleY=1),Ot.rotation=Jr(Ot.rotation);var v,c=a.__hostTarget;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();ye.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Ot.x,y:Ot.y,scaleX:Ot.scaleX,scaleY:Ot.scaleY,rotation:Ot.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:u.position,attachedRot:u.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(ce(a)||Le(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Me(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(_,S){return function(){aC(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;f=ce(o.layoutOptionOrCb)?o.layoutOptionOrCb($E(o,u)):o.layoutOptionOrCb,o.layoutOption=f=f||{};var c=Math.PI/180;u&&u.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:l.attachedPos,rotation:null!=f.rotate?f.rotate*c:l.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(s.x=qe(f.x,r),s.setStyle("x",0),v=!0):(s.x=l.x,s.setStyle("x",l.style.x)),null!=f.y?(s.y=qe(f.y,n),s.setStyle("y",0),v=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var h=u.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}Fv(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*c:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var g=0;g<dC.length;g++){var p=dC[g];s.setStyle(p,null!=f[p]?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var y=o.seriesModel;null!=o.dataIndex&&(y=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",a(u,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=[];w(this._labelList,function(u){u.defaultAttr.ignore||a.push(kv({},u))});var i=Ye(a,function(u){return"shiftX"===u.layoutOption.moveOverlap}),o=Ye(a,function(u){return"shiftY"===u.layoutOption.moveOverlap});Bv(i,0,0,r),Bv(o,1,0,n);var s=Ye(a,function(u){return u.layoutOption.hideOverlap});(function KE(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}})(s),vC(s)},t.prototype.processLabelsOverall=function(){var e=this;w(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,u=o.getTextContent();!s&&u&&(s=Fv(u).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=Me(e),i=a.dataIndex;if(n&&null!=i){var o=r.getData(a.dataType),s=o.getItemModel(i),u={},l=o.getItemVisual(i,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var c=s.getModel("labelLine");oC(e,sC(s),u),aC(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!ai(e))){var o=(i=Fv(n)).oldLayout,s=Me(e),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(xe(v,"select")>=0&&n.attr(i.oldLayoutSelect),xe(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Sr(n,l,r,u)}else if(n.attr(l),!Qs(n).valueAnimation){var c=te(n.style.opacity,1);n.style.opacity=0,In(n,{style:{opacity:c}},r,u)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};gl(h,l,yl),gl(h,n.states.select,yl)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};gl(d,l,yl),gl(d,n.states.emphasis,yl)}!function uD(t,e,r,n,a){var i=Qs(t);if(i.valueAnimation&&i.prevValue!==i.value){var o=i.defaultInterpolatedText,s=te(i.interpolatedValue,i.prevValue),u=i.value;t.percent=0,(null==i.prevValue?In:Sr)(t,{percent:1},n,e,null,function l(f){var c=function _x(t,e,r,n,a){var i=null==e||"auto"===e;if(null==n)return n;if(Be(n))return ht(o=eg(r||0,n,a),i?Math.max(Yr(r||0),Yr(n)):e);if(q(n))return a<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&"ordinal"===v.type)s[c]=(a<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,d=l[c],o=eg(h,d,a);s[c]=ht(o,i?Math.max(Yr(h),Yr(d)):e)}}return s}(r,i.precision,s,u,f);i.interpolatedValue=1===f?null:c;var v=Dc({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);yy(t,v)})}}(n,u,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=QE(a),g={points:a.shape.points};(o=i.oldLayout)?(a.attr({shape:o}),Sr(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,In(a,{style:{strokePercent:1}},r)),i.oldLayout=g}},t}();const eO=JE;var Hv=we();function pC(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=Hv(r).labelManager;a||(a=Hv(r).labelManager=new eO),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=Hv(r).labelManager;w(n.updatedSeries,function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}kn(pC);var nO=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){return this._getRawData().indexOfName(e)>=0},t.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},t.prototype.getItemVisual=function(e,r){return this._getDataWithEncodedVisual().getItemVisual(e,r)},t}();const aO=nO;var Hn="pie",iO=we(),gC=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aO(Pe(this.getData,this),Pe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function rO(t,e,r){e=V(e)&&{coordDimensions:e}||k({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=gv(n,e).dimensions,i=new pv(a,t);return i.initData(n,r),i}(this,{coordDimensions:["value"],encodeDefaulter:Xe(rM,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=iO(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),i=a.seats=Kp(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){zf(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series.pie",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}(En);!function UD(t){Gy.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}({fullType:gC.type,getCoord2:function(t){return t.getShallow("center")}});const oO=gC;var sO=Math.PI/180;function yC(t,e,r,n,a,i,o,s,u,l){if(!(t.length<2)){for(var v=t.length,h=0;h<v;h++)"outer"===t[h].position&&"labelLine"===t[h].labelAlignTo&&(t[h].linePoints[1][0]+=t[h].label.x-l,t[h].label.x=l);Bv(t,1,u,u+o)&&function c(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if("none"===g[m].labelAlignTo){var _=g[m],S=_.label.y>r?y:p,C=Math.abs(_.label.y-r);if(C>=S.maxY){var T=_.label.x-e-_.len2*a,x=n+_.len,D=Math.abs(T)<x?Math.sqrt(C*C/(1-T*T/x/x)):x;S.rB=D,S.maxY=C}S.list.push(_)}f(p),f(y)}(t)}function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],S=Math.abs(_.label.y-r),C=n+_.len,x=Math.sqrt(Math.abs(C*C*(1-S*S/y))),D=e+(x+_.len2)*a;mC(_,_.targetTextWidth-(D-_.label.x)*a,!0),_.label.x=D}}}function mC(t,e,r){if(null==t.labelStyleWidth){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,u=s?s[1]+s[3]:0,l=a.overflow,f=i.width+(o?0:u);if(e<f||r){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-u;n.setStyle("width",e<f?v:r?v>t.unconstrainedWidth?null:v:null)}_C(i,n)}}}function _C(t,e){SC.rect=t,cC(SC,e,lO)}var lO={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},SC={};function zv(t){return"center"===t.position}function ml(t,e,r){var n=t.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ie(n,function(i){return ra(i,a)})}}var CC=2*Math.PI,_l=Math.PI/180,cO=function Ax(t,e){return{seriesType:t,overallReset:e}}(Hn,function hO(t,e){t.eachSeriesByType(Hn,function(r){var n=r.getData(),a=n.mapDimension("value"),i=function KD(t,e){var r=function ZD(t,e){var a,i,r=Zc(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams();if(r.type===fo.point)i=r.refPoint,a=an(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=V(o)?o:[o,o];a=an(n,r.refContainer),i=2===r.boxCoordFrom?r.refPoint:[qe(s[0],a.width)+a.x,qe(s[1],a.height)+a.y]}return{viewRect:a,center:i}}(t,e),n=r.viewRect,a=r.center,i=t.get("radius");V(i)||(i=[0,i]);var o=qe(n.width,e.getWidth()),s=qe(n.height,e.getHeight()),u=Math.min(o,s),l=qe(i[0],u/2),f=qe(i[1],u/2);return{cx:a[0],cy:a[1],r0:l,r:f,viewRect:n}}(r,e),o=i.cx,s=i.cy,u=i.r,l=i.r0,f=i.viewRect,c=-r.get("startAngle")*_l,v=r.get("endAngle"),h=r.get("padAngle")*_l;v="auto"===v?c-CC:-v*_l;var g=r.get("minAngle")*_l+h,p=0;n.each(a,function(B){!isNaN(B)&&p++});var y=n.getSum(a),m=Math.PI/(y||p)*2,_=r.get("clockwise"),S=r.get("roseType"),C=r.get("stillShowZeroSum"),T=n.getDataExtent(a);T[0]=0;var x=_?1:-1,D=[c,v],b=x*h/2;Dg(D,!_),c=D[0],v=D[1];var A=TC(r);A.startAngle=c,A.endAngle=v,A.clockwise=_,A.cx=o,A.cy=s,A.r=u,A.r0=l;var R=Math.abs(v-c),E=R,P=0,O=c;if(n.setLayout({viewRect:f,r:u}),n.each(a,function(B,U){var Y;if(isNaN(B))n.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:S?NaN:u});else{(Y="area"!==S?0===y&&C?m:B*m:R/p)<g?(Y=g,E-=g):P+=B;var Q=O+x*Y,ee=0,se=0;h>Y?se=ee=O+x*Y/2:(ee=O+b,se=Q-b),n.setItemLayout(U,{angle:Y,startAngle:ee,endAngle:se,clockwise:_,cx:o,cy:s,r0:l,r:S?ks(B,T,[l,u]):u}),O=Q}}),E<CC&&p)if(E<=.001){var F=R/p;n.each(a,function(B,U){if(!isNaN(B)){var Y=n.getItemLayout(U);Y.angle=F;var Q=0,ee=0;F<h?ee=Q=c+x*(U+.5)*F:(Q=c+x*U*F+b,ee=c+x*(U+1)*F-b),Y.startAngle=Q,Y.endAngle=ee}})}else m=E/P,O=c,n.each(a,function(B,U){if(!isNaN(B)){var Y=n.getItemLayout(U),Q=Y.angle===g?g:B*m,ee=0,se=0;Q<h?se=ee=O+x*Q/2:(ee=O+b,se=O+x*Q-b),Y.startAngle=ee,Y.endAngle=se,O+=x*Q}})})}),TC=we(),vO=function(t){function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new Je;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return(0,K.C6)(e,t),e.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),c=k(ml(u.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(In(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===v?(o.shape.r=f.r0,In(o,{shape:{r:f.r}},s,n)):null!=a?(o.setShape({startAngle:a,endAngle:a}),In(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Sr(o,{shape:{endAngle:f.endAngle}},s,n))}else(function nD(t){vy(t).oldStyle=t.style})(o),Sr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),function eD(t,e,r,n){r=r||"itemStyle";for(var a=0;a<fy.length;a++){var i=fy[a],o=e.getModel([i,r]);t.ensureState(i).style=n?n(o):o[Jw[r]]()}}(o,u);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(h)*d,p=Math.sin(h)*d,y=u.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=k({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},ml(l.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:g,y:p,shape:ml(u.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:ml(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:g,y:p}),k(_.ensureState("select"),{x:g,y:p}),function $w(t,e,r,n){n?function jw(t){cy(t,!1)}(t):js(t,e,r)}(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),u=n.getItemVisual(a,"style"),l=u&&u.fill,f=u&&u.opacity;my(i,function aD(t,e){for(var r={normal:t.getModel(e=e||"label")},n=0;n<kr.length;n++){var a=kr[n];r[a]=t.getModel([a,e])}return r}(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if("outside"!==v&&"outer"!==v)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new To,this.setTextGuideLine(h)),oC(this,sC(o),{stroke:l,opacity:yn(s.get(["lineStyle","opacity"]),f,1)})}},e}(Co),dO=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=Hn,r.ignoreLabelLineUpdate=!0,r}return(0,K.C6)(e,t),e.prototype.render=function(r,n,a,i){var l,o=r.getData(),s=this._data,u=this.group;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&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===o.count()&&r.get("showEmptyCircle")){var v=TC(r),h=new Co({shape:me(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(d){var g=new vO(o,d,l);o.setItemGraphicEl(d,g),u.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,l),p.off("click"),u.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){gy(s.getItemGraphicEl(d),r,d)}).execute(),function fO(t){var n,a,e=t.getData(),r=[],i=!1,o=(t.get("minShowLabelAngle")||0)*sO,s=e.getLayout("viewRect"),u=e.getLayout("r"),l=s.width,f=s.x,c=s.y,v=s.height;function h(T){T.ignore=!0}e.each(function(T){var x=e.getItemGraphicEl(T),D=x.shape,b=x.getTextContent(),A=x.getTextGuideLine(),R=e.getItemModel(T),E=R.getModel("label"),P=E.get("position")||R.get(["emphasis","label","position"]),O=E.get("distanceToLabelLine"),F=E.get("alignTo"),B=qe(E.get("edgeDistance"),l),U=E.get("bleedMargin");null==U&&(U=Math.min(l,v)>200?10:2);var Y=R.getModel("labelLine"),Q=Y.get("length");Q=qe(Q,l);var ee=Y.get("length2");if(ee=qe(ee,l),Math.abs(D.endAngle-D.startAngle)<o)return w(b.states,h),b.ignore=!0,void(A&&(w(A.states,h),A.ignore=!0));if(function d(T){if(!T.ignore)return!0;for(var x in T.states)if(!1===T.states[x].ignore)return!0;return!1}(b)){var ue,De,We,ot,se=(D.startAngle+D.endAngle)/2,pe=Math.cos(se),_e=Math.sin(se);n=D.cx,a=D.cy;var bt="inside"===P||"inner"===P;if("center"===P)ue=D.cx,De=D.cy,ot="center";else{var pt=(bt?(D.r+D.r0)/2*pe:D.r*pe)+n,$e=(bt?(D.r+D.r0)/2*_e:D.r*_e)+a;if(ue=pt+3*pe,De=$e+3*_e,!bt){var ge=pt+pe*(Q+u-D.r),be=$e+_e*(Q+u-D.r),Vr=ge+(pe<0?-1:1)*ee;ue="edge"===F?pe<0?f+B:f+l-B:Vr+(pe<0?-O:O),De=be,We=[[pt,$e],[ge,be],[Vr,be]]}ot=bt?"center":"edge"===F?pe>0?"right":"left":pe>0?"left":"right"}var Vn=Math.PI,cn=0,za=E.get("rotate");if(Be(za))cn=za*(Vn/180);else if("center"===P)cn=0;else if("radial"===za||!0===za)cn=pe<0?-se+Vn:-se;else if("tangential"===za||"tangential-noflip"===za&&"outside"!==P&&"outer"!==P){var Li=Math.atan2(pe,_e);Li<0&&(Li=2*Vn+Li),_e>0&&"tangential-noflip"!==za&&(Li=Vn+Li),cn=Li-Vn}if(i=!!cn,b.x=ue,b.y=De,b.rotation=cn,b.setStyle({verticalAlign:"middle"}),bt){b.setStyle({align:ot});var md=b.states.select;md&&(md.x+=b.x,md.y+=b.y)}else{var yd=new ye(0,0,0,0);_C(yd,b),r.push({label:b,labelLine:A,position:P,len:Q,len2:ee,minTurnAngle:Y.get("minTurnAngle"),maxSurfaceAngle:Y.get("maxSurfaceAngle"),surfaceNormal:new de(pe,_e),linePoints:We,textAlign:ot,labelDistance:O,labelAlignTo:F,edgeDistance:B,bleedMargin:U,rect:yd,unconstrainedWidth:yd.width,labelStyleWidth:b.style.width})}x.setTextConfig({inside:bt})}}),!i&&t.get("avoidLabelOverlap")&&function uO(t,e,r,n,a,i,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;zv(t[v])||(h.x<e?(f=Math.min(f,h.x),u.push(t[v])):(c=Math.max(c,h.x),l.push(t[v])))}for(v=0;v<t.length;v++)if(!zv(d=t[v])&&d.linePoints){if(null!=d.labelStyleWidth)continue;h=d.label;var p,g=d.linePoints;d.targetTextWidth=p="edge"===d.labelAlignTo?h.x<e?g[2][0]-d.labelDistance-o-d.edgeDistance:o+a-d.edgeDistance-g[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?h.x<e?f-o-d.bleedMargin:o+a-c-d.bleedMargin:h.x<e?h.x-o-d.bleedMargin:o+a-h.x-d.bleedMargin,mC(d,p,!1)}for(yC(l,e,r,n,1,0,i,0,s,c),yC(u,e,r,n,-1,0,i,0,s,f),v=0;v<t.length;v++){var d;if(!zv(d=t[v])&&d.linePoints){var m=(h=d.label).style.padding,C=d.rect.width+(h.style.backgroundColor?0:m?m[1]+m[3]:0),T=(g=d.linePoints)[1][0]-g[2][0];"edge"===d.labelAlignTo?g[2][0]=h.x<e?o+d.edgeDistance+C+d.labelDistance:o+a-d.edgeDistance-C-d.labelDistance:(g[2][0]=h.x<e?h.x+d.labelDistance:h.x-d.labelDistance,g[1][0]=g[2][0]+T),g[1][1]=g[2][1]=h.y}}}(r,n,a,u,l,v,f,c);for(var g=0;g<r.length;g++){var p=r[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(w(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var C=p.linePoints;_||!C?(w(m.states,h),m.ignore=!0):(iC(C,p.minTurnAngle),WE(C,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:C}),y.__hostTarget.textGuideLineConfig={anchor:new de(C[0][0],C[0][1])})}}}(r),"expansion"!==r.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData().getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,u=Math.sqrt(o*o+s*s);return u<=i.r&&u>=i.r0}},e.type=Hn,e}(sn);const pO=dO;var mO=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,K.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Te.size.m,backgroundColor:Te.color.transparent,borderColor:Te.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Te.color.primary},subtextStyle:{fontSize:12,color:Te.color.quaternary}},e}(ze),_O=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.render=function(r,n,a){if(this.group.removeAll(),r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=te(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Je({style:nn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Je({style:nn(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,h.silent=!g&&!p,d&&f.on("click",function(){Hy(d,"_"+r.get("target"))}),g&&h.on("click",function(){Hy(g,"_"+r.get("subtarget"))}),Me(f).eventData=Me(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var S=an(m,Zc(r,a).refContainer,r.get("padding"));u||("middle"===(u=r.get("left")||r.get("right"))&&(u="center"),"right"===u?S.x+=S.width:"center"===u&&(S.x+=S.width/2)),l||("center"===(l=r.get("top")||r.get("bottom"))&&(l="middle"),"bottom"===l?S.y+=S.height:"middle"===l&&(S.y+=S.height/2),l=l||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var C={align:u,verticalAlign:l};f.setStyle(C),h.setStyle(C),y=i.getBoundingRect();var T=S.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var D=new vt({shape:{x:y.x-T[3],y:y.y-T[0],width:y.width+T[1]+T[3],height:y.height+T[0]+T[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(D)}},e.type="title",e}(sr);function Gv(t,e){return"all"===t||V(t)&&xe(t,e)>=0||t===e}function Vv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Vo(t)]}function Uv(t){return!!t.get(["handle","show"])}function Vo(t){return t.type+"||"+t.id}var bC={},AO=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.render=function(r,n,a,i){this.axisPointerClass&&function DO(t){var e=Vv(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");null!=o&&(o=n.parse(o));var s=Uv(r);null==i&&(a.status=s?"show":"hide");var u=n.getExtent();(null==o||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function MO(t){var e=Vv(t);return e&&e.axisPointerModel}(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){bC[r]=n},e.getAxisPointerClass=function(r){return r&&bC[r]},e.type="axis",e}(sr);const LO=AO;var Ba=we(),xC=me,Wv=Pe,PO=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,a||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(u&&u.hide());s&&s.show(),u&&u.show();var l={};this.makeElOption(l,i,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(s){var v=Xe(wC,r,c);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,r)}else s=this._group=new Yt,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);AC(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i="category"===a.type,o=r.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&cl(a).w>s)return!0;if(o){var u=Vv(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return!0===n},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=Ba(e).pointerEl=new Vt[i.type](xC(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=Ba(e).labelEl=new Je(xC(r.label));e.add(i),MC(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Ba(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=Ba(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),MC(i,a))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||"hide"===o)return a&&n.remove(a),void(this._handle=null);this._handle||(s=!0,a=this._handle=Lu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Fd(l.event)},onmousedown:Wv(this._onHandleDragMove,this,0,0),drift:Wv(this._onHandleDragMove,this),ondragend:Wv(this._onHandleDragEnd,this)}),n.add(a)),AC(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");V(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,W0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){wC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,qv(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(qv(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(qv(a)),Ba(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Bh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return{x:e[n=n||0],y:e[1-n],width:r[n],height:r[1-n]}},t}();function wC(t,e,r,n){DC(Ba(r).lastProp,n)||(Ba(r).lastProp=n,e?Sr(r,n,t):(r.stopAnimation(),r.attr(n)))}function DC(t,e){if(J(t)&&J(e)){var r=!0;return w(e,function(n,a){r=r&&DC(t[a],n)}),!!r}return t===e}function MC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function qv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function AC(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){"group"!==i.type&&(null!=n&&(i.z=n),null!=a&&(i.zlevel=a),i.silent=r)})}const IO=PO;var zn=Math.PI,HO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],zO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],wi=we(),RC=we(),GO=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},t}(),Uo=[1,0,0,1,0,0],Sl=new ye(0,0,0,0),UO=function(t,e,r,n,a,i){if(ul(t.nameLocation)){var o=i.stOccupiedRect;o&&EC(function XE(t,e,r){return t.transform=Eh(t.transform,r),t.localRect=xo(t.localRect,e),t.rect=xo(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Rh(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},o,i.transGroup.transform),n,a)}else!function WO(t,e,r,n){for(var a=de.dot(n,e)>=0,i=0,o=t.length;i<o;i++){var s=t[a?i:o-1-i];s.label.ignore||EC(s,r,n)}}(i.labelInfoList,i.dirVec,n,a)};function EC(t,e,r){var n=new de;Nv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&function ZE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,r)}}(e,n)}var Na=function(){function t(e,r,n,a){this.group=new Yt,this._axisModel=e,this._api=r,this._local={},this._shared=a||new GO(UO),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=te(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(null==i||"auto"===i)&&(i=te(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:te(e.nameDirection,1),tickDirection:te(e.tickDirection,1),labelDirection:te(e.labelDirection,1),labelOffset:te(e.labelOffset,0),silent:te(e.silent,!0),axisName:a,nameLocation:yn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:jv(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Yt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(qO,function(a){e[a]&&YO[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i,o,a=Bf(r-e);return Zi(a)?(o=n>0?"top":"bottom",i="center"):Zi(a-zn)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a<zn?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,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}(),qO=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],YO={axisLine:function(t,e,r,n,a,i,o){var u=n.get(["axisLine","show"]);if("auto"===u&&(u=!0,null!=t.raw.axisLineAutoShow&&(u=!!t.raw.axisLineAutoShow)),u){var l=n.axis.getExtent(),f=i.transform,c=[l[0],0],v=[l[1],0],h=c[0]>v[0];f&&(Ut(c,c,f),Ut(v,v,f));var d=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&function wD(t){var e=t.brk;return!!e&&e.hasBreaks()}(n.axis.scale))null.buildAxisBreakLine(n,a,i,g);else{var p=new pi(k({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},g));Mh(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var y=n.get(["axisLine","symbol"]);if(null!=y){var m=n.get(["axisLine","symbolSize"]);q(y)&&(y=[y,y]),(q(m)||Be(m))&&(m=[m,m]);var _=function _P(t,e){if(null!=t)return V(t)||(t=[t,t]),[qe(t[0],e[0])||0,qe(te(t[1],t[0]),e[1])||0]}(n.get(["axisLine","symbolOffset"])||0,m),S=m[0],C=m[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-v[0])*(c[0]-v[0])+(c[1]-v[1])*(c[1]-v[1]))}],function(T,x){if("none"!==y[x]&&null!=y[x]){var D=ku(y[x],-S/2,-C/2,S,C,d.stroke,!0),b=T.r+T.offset,A=h?v:c;D.attr({rotation:T.rotate,x:A[0]+b*Math.cos(t.rotation),y:A[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),a.add(D)}})}}},axisTickLabelEstimate:function(t,e,r,n,a,i,o,s){BC(e,a,s)&&OC(t,e,r,n,a,i,o,1)},axisTickLabelDetermine:function(t,e,r,n,a,i,o,s){BC(e,a,s)&&OC(t,e,r,n,a,i,o,2);var f=function jO(t,e,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),u=t.tickDirection*i.get("length"),f=kC(a.getTicksCoords(),r.transform,u,He(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}(t,a,i,n);(function KO(t,e,r){t.showMinorTicks||w(e,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=RC(i),s=wi(n.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.labelInfo.tick.value)return void Di(i)}})})(t,e.labelLayoutList,f),function $O(t,e,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(t.showMinorTicks&&!i.scale.isBlank()){var s=i.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=a*o.get("length"),f=He(u.getLineStyle(),He(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=kC(s[c],r.transform,l,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}(t,a,i,n,t.tickDirection)},axisName:function(t,e,r,n,a,i,o,s){var u=r.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(jv(f)){var c=t.nameLocation,v=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,g=n.axis.getExtent(),p=n.axis.inverse?-1:1,y=new de(0,0),m=new de(0,0);"start"===c?(y.x=g[0]-p*d,m.x=-p):"end"===c?(y.x=g[1]+p*d,m.x=p):(y.x=(g[0]+g[1])/2,y.y=t.labelOffset+v*d,m.y=v);var _=[1,0,0,1,0,0];m.transform(ss(_,_,t.rotation));var C,T,S=n.get("nameRotate");null!=S&&(S=S*zn/180),ul(c)?C=Na.innerTextLayout(t.rotation,S??t.rotation,v):(C=function XO(t,e,r,n){var i,o,a=Bf(r-t),s=n[0]>n[1],u="start"===e&&!s||"start"!==e&&s;return Zi(a-zn/2)?(o=u?"bottom":"top",i="center"):Zi(a-1.5*zn)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*zn&&a>zn/2?u?"left":"right":u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,c,S||0,g),null!=(T=t.raw.axisNameAvailableWidth)&&(T=Math.abs(T/Math.sin(C.rotation)),!isFinite(T)&&(T=null)));var x=h.getFont(),D=n.get("nameTruncate",!0)||{},b=D.ellipsis,A=Ri(t.raw.nameTruncateMaxWidth,D.maxWidth,T),R=s.nameMarginLevel||0,E=new Je({x:y.x,y:y.y,rotation:C.rotation,silent:Na.isLabelSilent(n),style:nn(h,{text:f,font:x,overflow:"truncate",width:A,ellipsis:b,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||C.textAlign,verticalAlign:h.get("verticalAlign")||C.textVerticalAlign}),z2:1});if(bo({el:E,componentModel:n,itemName:f}),E.__fullText=f,E.anid="name",n.get("triggerEvent")){var P=Na.makeAxisEventDataBase(n);P.targetType="axisName",P.name=f,Me(E).eventData=P}i.add(E),E.updateTransform(),e.nameEl=E;var O=u.nameLayout=zr({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:ul(c)?HO[R]:zO[R]});if(u.nameLocation=c,a.add(E),E.decomposeTransform(),t.shouldNameMoveOverlap&&O){var F=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,O,m,F)}}}};function OC(t,e,r,n,a,i,o,s){NC(e)||function QO(t,e,r,n,a,i){var o=a.axis,s=Ri(t.raw.axisLabelShow,a.get(["axisLabel","show"])),u=new Yt;r.add(u);var l=ll(n);if(s&&!o.scale.isBlank()){var f=a.getModel("axisLabel"),c=o.getViewLabels(l),v=(Ri(t.raw.labelRotate,f.get("rotate"))||0)*zn/180,h=Na.innerTextLayout(t.rotation,v,t.labelDirection),d=a.getCategories&&a.getCategories(!0),g=[],p=a.get("triggerEvent"),y=1/0,m=-1/0;w(c,function(S,C){var T,x=S.tick,D=S.formattedLabel,b=S.rawLabel,A=f,R=bv(o.scale,x);if(d&&d[R]){var E=d[R];J(E)&&E.textStyle&&(A=new et(E.textStyle,f,a.ecModel))}var P=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),O=A.getShallow("align",!0)||h.textAlign,F=te(A.getShallow("alignMinLabel",!0),O),B=te(A.getShallow("alignMaxLabel",!0),O),U=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,Y=te(A.getShallow("verticalAlignMinLabel",!0),U),Q=te(A.getShallow("verticalAlignMaxLabel",!0),U),ee=10+((null===(T=x.time)||void 0===T?void 0:T.level)||0);y=Math.min(y,ee),m=Math.max(m,ee);var se=new Je({x:0,y:0,rotation:0,silent:Na.isLabelSilent(a),z2:ee,style:nn(A,{text:D,align:0===C?F:C===c.length-1?B:O,verticalAlign:0===C?Y:C===c.length-1?Q:U,fill:ce(P)?P("category"===o.type?b:"value"===o.type?R+"":R,C):P})});se.anid="label_"+R;var pe=wi(se);if(pe.labelInfo=S,pe.layoutRotation=h.rotation,bo({el:se,componentModel:a,itemName:D,formatterParamsExtra:{isTruncated:function(){return se.isTruncated},value:b,tickIndex:C}}),p){var _e=Na.makeAxisEventDataBase(a);_e.targetType="axisLabel",_e.value=b,_e.tickIndex=C;var ue=S.tick.break;if(ue){var De=ue.parsedBreak;_e.break={start:De.vmin,end:De.vmax}}"category"===o.type&&(_e.dataIndex=R),Me(se).eventData=_e,ue&&function t2(t,e,r,n){r.on("click",function(a){var i={type:"expandAxisBreak",breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}(a,i,se,ue)}g.push(se),u.add(se)}),Kv(e,ie(g,function(S){return{label:S,priority:wi(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}}),u,l)}else Kv(e,[],u,l)}(t,e,a,s,n,o);var u=e.labelLayoutList;(function JO(t,e,r,n){var a=e.get(["axisLabel","margin"]);w(r,function(i,o){var s=zr(i);if(s){var u=s.label,l=wi(u);s.suggestIgnore=u.ignore,u.ignore=!1,Ds(ln,e2);var f=e.axis;ln.x=f.dataToCoord(bv(f.scale,l.labelInfo.tick)),ln.y=t.labelOffset+t.labelDirection*a,ln.rotation=l.layoutRotation,n.add(ln),ln.updateTransform(),n.remove(ln),ln.decomposeTransform(),Ds(u,ln),u.markRedraw(),pl(s,!0),zr(s)}})})(t,n,u,i),function r2(t,e,r){var n=null;if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&wi(o.label).labelInfo.tick.break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===i||"auto"===i)&&w(a,function(o){null.adjustBreakLabelPair(t.axis.inverse,e,[zr(r[o[0]]),zr(r[o[1]])])})}}(n,t.rotation,u);var l=t.optionHideOverlap;(function ZO(t,e,r){var n=t.axis,a=t.get(["axisLabel","customValues"]);if(!function wR(t){return"category"===t.type&&0===Tv(t.getLabelModel())}(n)){var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),u=e.length;i(o,0,1),i(s,u-1,u-2)}function i(l,f,c){var v=zr(e[f]),h=zr(e[c]),d=n.scale;if(v&&h){if(null==l){if(!r&&a)return;var g=wi(v.label).labelInfo.tick;if(el(d)&&g.notNice||Nn(d)&&g.offInterval)return void Di(v.label)}if(!1===l||v.suggestIgnore)return void Di(v.label);if(h.suggestIgnore)return void Di(h.label);if(!r){var y=[0,0,0,0];v=kv({marginForce:y},v),h=kv({marginForce:y},h)}Nv(v,h,null,{touchThreshold:.1})&&Di(l?h.label:v.label)}}})(n,u,l),l&&vC(Ye(u,function(f){return f&&!f.label.ignore})),function VO(t,e,r,n){var s,a=r.axis,i=e.ensureRecord(r),o=[],u=jv(t.axisName)&&ul(t.nameLocation);w(n,function(d){var g=zr(d);if(g&&!g.label.ignore){o.push(g);var p=i.transGroup;u&&(p.transform?Xn(Uo,p.transform):qn(Uo),g.transform&&Yn(Uo,Uo,g.transform),ye.copy(Sl,g.localRect),Sl.applyTransform(Uo),s?s.union(Sl):ye.copy(s=new ye(0,0,0,0),Sl))}});var l=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[l];if(o.sort(function(d,g){return Math.abs(d.label[l]-f)-Math.abs(g.label[l]-f)}),u&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ye(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}(t,r,n,u)}function Di(t){t&&(t.ignore=!0)}function kC(t,e,r,n,a){for(var i=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(Ut(o,o,e),Ut(s,s,e));var f=new pi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Mh(f.shape,f.style.lineWidth),f.anid=a+"_"+t[u].tickValue,i.push(f);var c=RC(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return i}function BC(t,e,r){if(NC(t)){var a=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(t.labelGroup),Kv(t,null,null,null))}return!0}function NC(t){return!!t.labelLayoutList}function Kv(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}var ln=new vt,e2=new vt;function jv(t){return!!t}const n2=Na;function FC(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:sl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),c=l&&l.getDataParams(u.dataIndexInside);c&&s.seriesData.push(c)}),q(o)?i=o.replace("{value}",i):ce(o)&&(i=o(s))}return i}function HC(t,e,r){var n=[1,0,0,1,0,0];return ss(n,n,r.rotation),os(n,n,r.position),Ah([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function l2(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}}function Cl(t,e,r){r=r||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,u=n.dim,l=[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,v="x"===u?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=["y"===u?v[f[s]]:l[0],"x"===u?v[f[s]]:l[3]],a.rotation=Math.PI/2*("x"===u?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ri(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===s?-g:g,a.z2=1,a}var g2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,K.C6)(e,t),e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,u=s.grid,l=i.get("type"),f=s.getGlobalExtent(),c=zC(u,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&"none"!==l){var h=function a2(t){var n,e=t.get("type"),r=t.getModel(e+"Style");return"line"===e?(n=r.getLineStyle()).fill=null:"shadow"===e&&((n=r.getAreaStyle()).stroke=null),n}(i),d=y2[l](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}!function s2(t,e,r,n,a,i){var o=n2.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),function i2(t,e,r,n,a){var o=FC(r.get("value"),e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=so(s.get("padding")||0),l=s.getFont(),f=Bp(o,l),c=a.position,v=f.width+u[1]+u[3],h=f.height+u[0]+u[2],d=a.align;"right"===d&&(c[0]-=v),"center"===d&&(c[0]-=v/2);var g=a.verticalAlign;"bottom"===g&&(c[1]-=h),"middle"===g&&(c[1]-=h/2),function o2(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,v,h,n);var p=s.get("backgroundColor");(!p||"auto"===p)&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:nn(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}(e,n,a,i,{position:HC(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(n,r,Cl(u.getRect(),a),a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=Cl(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=HC(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),l=zC(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Bt(u[1],c[f]),c[f]=Ue(u[0],c[f]);var v=(l[1]+l[0])/2,h=[v,v];return h[f]=c[f],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(IO);function zC(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var y2={line:function(t,e,r,n){var a=function u2(t,e,r){return{x1:t[r=r||0],y1:t[1-r],x2:e[r],y2:e[1-r]}}([e,n[0]],[e,n[1]],GC(t));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(t,e,r,n,a,i){var o=function f2(t,e,r){return cl(t,{fromStat:{sers:ie(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}(t,a,i),s=n[1]-n[0],u=function c2(t,e,r){return[Ue(Bt(e[0],e[1]),t-r/2),Bt(t+r/2,Ue(e[0],e[1]))]}(e,r,o),l=u[0];return{type:"Rect",shape:l2([l,n[0]],[u[1]-l,s],GC(t))}}};function GC(t){return"x"===t.dim?0:1}const m2=g2;var _2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Te.color.border,width:1,type:"dashed"},shadowStyle:{color:Te.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Te.color.neutral00,padding:[5,7,5,7],backgroundColor:Te.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:Te.color.accent40,throttle:40}},e}(ze);const S2=_2;var fn=we(),C2=w;function VC(t,e,r){if(!Ce.node){var n=e.getZr();fn(n).records||(fn(n).records={}),function T2(t,e){function r(n,a){t.on(n,function(i){var o=function w2(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}(e);C2(fn(t).records,function(s){s&&a(s,i,o.dispatchAction)}),function b2(t,e){var a,r=t.showTip.length,n=t.hideTip.length;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}(o.pendings,e)})}fn(t).initialized||(fn(t).initialized=!0,r("click",Xe($v,"click")),r("mousemove",Xe($v,"mousemove")),r("mousewheel",Xe($v,"mousewheel")),r("globalout",x2))}(n,e),(fn(n).records[t]||(fn(n).records[t]={})).handler=r}}function x2(t,e,r){t.handler("leave",null,r)}function $v(t,e,r,n){e.handler(t,r,n)}function Qv(t,e){if(!Ce.node){var r=e.getZr();(fn(r).records||{})[t]&&(fn(r).records[t]=null)}}var D2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";VC("axisPointer",a,function(s,u,l){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){Qv("axisPointer",n)},e.prototype.dispose=function(r,n){Qv("axisPointer",n)},e.type="axisPointer",e}(sr);const M2=D2;function UC(t,e){var a,r=[],n=t.seriesIndex;if(null==n||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Qi(i,t);if(null==o||o<0||V(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),c=u.getOtherAxis(l).dim,h="x"===c||"radius"===c?1:0,d=i.mapDimension(l.dim),g=[];g[h]=i.get(d,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(i.getValues(ie(u.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var WC=we();function A2(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||Pe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Tl(a)&&(a=UC({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=Tl(a),l=i.axesInfo,f=s.axesInfo,c="leave"===n||Tl(a),v={},h={},d={list:[],map:{}},g={showPointer:Xe(P2,h),showTooltip:Xe(I2,d)};w(s.coordSysMap,function(y,m){var _=u||y.containPoint(a);w(s.coordSysAxesInfo[m],function(S,C){var T=S.axis,x=function k2(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(l,S);if(!c&&_&&(!l||x)){var D=x&&x.value;null==D&&!u&&(D=T.pointToData(a)),null!=D&&qC(S,D,g,!1,v)}})});var p={};return w(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&w(_.axesInfo,function(S,C){var T=h[C];if(S!==y&&T){var x=T.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,YC(S),YC(y)))),p[y.key]=x}})}),w(p,function(y,m){qC(f[m],y,g,!0,v)}),function R2(t,e,r){var n=r.axesInfo=[];w(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}(h,f,v),function E2(t,e,r,n){if(!Tl(e)&&t.list.length){var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(d,a,t,o),function O2(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=WC(n)[a]||{},o=WC(n)[a]={};w(t,function(f,c){var v=f.axisPointerModel.option;"show"===v.status&&f.triggerEmphasis&&w(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(i,function(f,c){!o[c]&&u.push(l(f))}),w(o,function(f,c){!i[c]&&s.push(l(f))}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,r),v}}function qC(t,e,r,n,a){var i=t.axis;if(!i.scale.isBlank()&&i.containData(e)){if(!t.involveSeries)return void r.showPointer(t,e);var o=function L2(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(u,l){var c,v,f=u.getData().mapDimensionsAll(n);if(u.getAxisTooltipData){var h=u.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(!(v=u.indicesOfNearest(n,f[0],t,"category"===r.type?.5:null)).length)return;c=u.getData().get(f[0],v[0])}if(Kr(c)){var d=t-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,a=c,i.length=0),w(v,function(p){i.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&null==a.seriesIndex&&k(a,s[0]),!n&&t.snap&&i.containData(u)&&null!=u&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function P2(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function I2(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var u=e.coordSys.model,l=Vo(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function YC(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Tl(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function B2(t){LO.registerAxisPointerClass("CartesianAxisPointer",m2),t.registerComponentModel(S2),t.registerComponentView(M2),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!V(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=function CO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function TO(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var u=Vo(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var c=s.model.getModel("tooltip",n);if(w(s.getAxes(),Xe(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&w(d.baseAxes,Xe(g,!h||"cross",v)),h&&w(d.otherAxes,Xe(g,"cross",!1))}}function g(p,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(S&&("auto"!==S||p||Uv(_))){null==y&&(y=_.get("triggerTooltip")),_=p?function bO(t,e,r,n,a,i){var o=e.getModel("axisPointer"),u={};w(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){u[v]=me(o.get(v))}),u.snap="category"!==t.type&&!!i,"cross"===o.get("type")&&(u.type="line");var l=u.label||(u.label={});if(null==l.show&&(l.show=!1),"cross"===a){var f=o.get(["label","show"]);if(l.show=f??!0,!i){var c=u.lineStyle=o.get("crossStyle");c&&He(l,c.textStyle)}}return t.model.getModel("axisPointer",new et(u,r,n))}(m,c,a,e,p,y):_;var C=_.get("snap"),T=_.get("triggerEmphasis"),x=Vo(m.model),D=y||C||"category"===m.type,b=t.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:T,involveSeries:D,snap:C,useHandle:Uv(_),seriesModels:[],linkGroup:null};l[x]=b,t.seriesInvolved=t.seriesInvolved||D;var A=function wO(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Gv(i[n+"AxisId"],r.id)||Gv(i[n+"AxisIndex"],r.componentIndex)||Gv(i[n+"AxisName"],r.name))return a}}(i,m);if(null!=A){var R=o[A]||(o[A]={axesInfo:{}});R.axesInfo[x]=b,R.mapper=i[A].mapper,b.linkGroup=R}}}})}(r,t,e),r.seriesInvolved&&function xO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||"none"===a||!1===a||"item"===a||!1===i||!1===r.get(["axisPointer","show"],!0)||w(t.coordSysAxesInfo[Vo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),null==o.seriesDataCount&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}(r,t),r}(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A2)}var N2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Te.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Te.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Te.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Te.color.tertiary,fontSize:14}},e}(ze);const F2=N2;function XC(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function ZC(t){if(Ce.domSupported)for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}var KC=ZC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function jC(t,e){if(!t)return e;e=Vc(e,!0);var r=t.indexOf(e);return(t=-1===r?e:"-"+t.slice(0,r)+"-"+e).toLowerCase()}var G2=jC(ZC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Jv=jC(KC,"transform"),V2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ce.transform3dSupported?"will-change:transform;":"");function $C(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Ce.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Jv+":"+o+";":[["top",0],["left",0],[KC,o]]}function QC(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&function lb(t,e,r,n,a){Ul(Vl,e,n,a,!0)&&Ul(t,r,Vl[0],Vl[1])}(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Z2=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,Ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(q(i)?document.querySelector(i):Va(i)?i:ce(i)&&i(e.getDom()));QC(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler;Jt(a.painter.getViewportRoot(),u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=function z2(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}(r,"position"),a=r.style;"absolute"!==a.position&&"absolute"!==n&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=V2+function X2(t,e,r,n){var a=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Wm(t,"html");return a.push("box-shadow:"+l+"px "+f+"px "+s+"px "+u),e&&i>0&&a.push(function q2(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(i="opacity"+(a=" "+t/2+"s "+n)+",visibility"+a),e||(a=" "+t+"s "+n,i+=(i.length?",":"")+(Ce.transformSupported?""+Jv+a:",left"+a+",top"+a)),G2+":"+i}(i,r,n)),o&&a.push("background-color:"+o),w(["width","color","radius"],function(d){var g="border-"+d,p=Vc(g),y=t.get(p);null!=y&&a.push(g+":"+y+("color"===d?"":"px"))}),a.push(function Y2(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=te(t.get("lineHeight"),Math.round(3*r/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+i),w(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}(c)),null!=v&&a.push("padding:"+so(v).join("px ")+"px"),a.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+$C(i[0],i[1],!0)+"border-color:"+uo(r)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(null!=e){var s="";if(q(i)&&"item"===n.get("trigger")&&!XC(n)&&(s=function W2(t,e,r){if(!q(r)||"inside"===r)return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=uo(e);var l,i=function U2(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(r),o=Math.max(1.5*Math.round(a),6),s="",u=Jv+":";xe(["left","right"],i)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l="left"===i?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l="top"===i?225:45)+"deg)");var f=l*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2))/100+"px")+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}(n,a,i)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",V(e)||(e=[e]);for(var u=0;u<e.length;u++)Va(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(QC(n,this._zr,this._container,e,r),null!=n[0]&&null!=n[1]){var a=this.el.style;w($C(n[0],n[1]),function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*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",Ce.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;!function fb(t,e){function r(n){var a=n[is];a&&(a.clearMarkers&&a.clearMarkers(),delete n[is])}t&&r(t),e&&r(e)}(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t}();const K2=Z2;var j2=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),eT(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;J(e)&&It(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Je({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Wm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=JC(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;eT(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=Gn(i.borderWidth||0),s=JC(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Gn(t){return Math.max(0,t)}function JC(t){var e=Gn(t.shadowBlur||0),r=Gn(t.shadowOffsetX||0),n=Gn(t.shadowOffsetY||0);return{left:Gn(e-r),right:Gn(e+r),top:Gn(e-n),bottom:Gn(e+n)}}function eT(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const $2=j2;var Q2=new vt({shape:{x:-1,y:-1,width:2,height:2}}),J2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.init=function(r,n){if(!Ce.node&&n.getDom()){var a=r.getComponent("tooltip"),i=this._renderMode=function mx(t){return"auto"===t?Ce.domSupported?"html":"richText":t||"html"}(a.get("renderMode"));this._tooltipContent="richText"===i?new $2(n):new K2(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!Ce.node&&a.getDom()){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&r.get("transitionDuration")?W0(this,"_updatePosition",50,"fixRate"):Bh(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");VC("itemTooltip",this._api,Pe(function(a,i,o){"none"!==n&&(n.indexOf(a)>=0?this._tryShow(i,o):"leave"===a&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if("axis"!==r.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(i.from!==this.uid&&!Ce.node&&a.getDom()){var o=tT(i,a);this._ticket="";var s=i.dataByCoordSys,u=function nk(t,e,r){var n=Uf(t).queryOptionMap,a=n.keys()[0];if(a&&"series"!==a){var u,o=Ji(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(r.getViewOfComponentModel(o).group.traverse(function(l){var f=Me(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u))return{componentMainType:a,componentIndex:o.componentIndex,el:u}}}(i,n,a);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var f=Q2;f.x=i.x,f.y=i.y,f.update(),Me(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=UC(i,n),v=c.point[0],h=c.point[1];null!=v&&null!=h&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(tT(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=u){var l=n.getSeriesByIndex(o);if(l&&"axis"===Wo([l.getData().getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(r,n){var a=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var u,l;if("legend"===Me(a).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,Lo(a,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(null!=Me(f).dataIndex?u=f:null!=Me(f).tooltipConfig&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Pe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Wo([n.tooltipOption],i),u=this._renderMode,l=[],f=yo("section",{blocks:[],noHeader:!0}),c=[],v=new hh;w(r,function(m){w(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value,T=S.axis,x=T.scale.parse(C);if(S&&null!=C){var D=FC(C,T,a,_.seriesDataIndices,_.valueLabelOpt),b=yo("section",{header:D,noHeader:!dr(D),sortBlocks:!0,blocks:[]});f.blocks.push(b),w(_.seriesDataIndices,function(A){var R=a.getSeriesByIndex(A.seriesIndex),E=A.dataIndexInside,P=R.getDataParams(E);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=sl(S.axis,{value:x}),P.axisValueLabel=D,P.marker=v.makeTooltipMarker("item",uo(P.color),u);var O=Lm(R.formatTooltip(E,!0,null)),F=O.frag;if(F){var B=Wo([R],i).get("valueFormatter");b.blocks.push(B?k({valueFormatter:B},F):F)}O.text&&c.push(O.text),l.push(P)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),g=Vm(f,v,u,d,a.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var y=c.join("richText"===u?"\n\n":"<br/>");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Me(n),s=o.seriesIndex,u=i.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,v=l.getData(c),h=this._renderMode,d=r.positionDefault,g=Wo([v.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(null==p||"item"===p){var y=l.getDataParams(f,c),m=new hh;y.marker=m.makeTooltipMarker("item",uo(y.color),h);var _=Lm(l.formatTooltip(f,!1,c)),S=g.get("order"),C=g.get("valueFormatter"),T=_.frag,x=T?Vm(C?k({valueFormatter:C},T):T,m,h,S,i.get("useUTC"),g.get("textStyle")):_.text,D="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,y,D,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i="html"===this._renderMode,o=Me(n),u=o.tooltipConfig.option||{},l=u.encodeHTMLContent;q(u)&&(u={content:u,formatter:u},l=!0),l&&i&&u.content&&((u=me(u)).content=Dt(u.content));var c=[u],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:u.content});var h=r.positionDefault,d=Wo(c,this._tooltipModel,h?{position:h}:null),g=d.get("content"),p=Math.random()+"",y=new hh;this._showOrMove(d,function(){var m=me(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,u,l,f){if(this._ticket="",r.get("showContent")&&r.get("show")){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");u=u||r.get("position");var h=n,g=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)).color;if(v)if(q(v)){var p=r.ecModel.get("useUTC"),y=V(a)?a[0]:a;h=v,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(h=oo(y.axisValue,h,p)),h=qc(h,a,!0)}else if(ce(v)){var _=Pe(function(S,C){S===this._ticket&&(c.setContent(C,f,r,g,u),this._updatePosition(r,u,o,s,c,a,l))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,r,g,u),c.show(r,g),this._updatePosition(r,u,o,s,c,a,l)}},e.prototype._getNearestPoint=function(r,n,a,i,o){return"axis"===a||V(n)?{color:i||o}:V(n)?void 0:{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),ce(n)&&(n=n([a,i],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),V(n))a=qe(n[0],l),i=qe(n[1],f);else if(J(n)){var g=n;g.width=c[0],g.height=c[1];var p=an(g,{width:l,height:f});a=p.x,i=p.y,v=null,h=null}else if(q(n)&&u){var y=function rk(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-a/2,u=e.y+f/2-i/2;break;case"top":s=e.x+l/2-a/2,u=e.y-i-o;break;case"bottom":s=e.x+l/2-a/2,u=e.y+f+o;break;case"left":s=e.x-a-o,u=e.y+f/2-i/2;break;case"right":s=e.x+l+o,u=e.y+f/2-i/2}return[s,u]}(n,d,c,r.get("borderWidth"));a=y[0],i=y[1]}else y=function ek(t,e,r,n,a,i,o){var s=r.getSize(),u=s[0],l=s[1];return null!=i&&(t+u+i+2>n?t-=u+i:t+=i),null!=o&&(e+l+o>a?e-=l+o:e+=o),[t,e]}(a,i,o,l,f,v?null:20,h?null:20),a=y[0],i=y[1];v&&(a-=rT(v)?c[0]/2:"right"===v?c[0]:0),h&&(i-=rT(h)?c[1]/2:"bottom"===h?c[1]:0),XC(r)&&(y=function tk(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(a,i,o,l,f),a=y[0],i=y[1]),o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&w(a,function(s,u){var l=s.dataByAxis||[],c=(r[u]||{}).dataByAxis||[];(o=o&&l.length===c.length)&&w(l,function(v,h){var d=c[h]||{},g=v.seriesDataIndices||[],p=d.seriesDataIndices||[];(o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&g.length===p.length)&&w(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&w(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Ce.node||!n.getDom()||(Bh(this,"_updatePosition"),this._tooltipContent.dispose(),Qv("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(sr);function Wo(t,e,r){var a,n=e.ecModel;r?(a=new et(r,n,n),a=new et(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof et&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(a=new et(o,a,n)))}return a}function tT(t,e){return t.dispatchAction||Pe(e.dispatchAction,e)}function rT(t){return"center"===t||"middle"===t}const ak=J2;var sk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,K.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;!0===n&&(n=r.selector=["all","inverse"]),V(n)&&w(n,function(i,o){q(i)&&(i={type:i}),n[o]=Fe(i,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&"single"===this.get("selectedMode")){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(u){var f;if(a.push(u.name),u.legendVisualProvider){var v=u.legendVisualProvider.getAllNames();r.isSeriesFiltered(u)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Gf(u)&&n.push(u.name)}),this._availableNames=a;var i=this.get("data")||n,o=ve(),s=ie(i,function(u){return(q(u)||Be(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new et(u,this,this.ecModel))},this);this._data=Ye(s,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected;"single"===this.get("selectedMode")&&w(this._data,function(o){n[o.get("name")]=!1}),n[r]=!0},e.prototype.unSelect=function(r){"single"!==this.get("selectedMode")&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var n=this.option.selected;w(this._data,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this.option.selected;w(this._data,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&xe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Te.size.m,align:"auto",backgroundColor:Te.color.transparent,borderColor:Te.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Te.color.disabled,inactiveBorderColor:Te.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:Te.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Te.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Te.color.tertiary,borderWidth:1,borderColor:Te.color.border},emphasis:{selectorLabel:{show:!0,color:Te.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ze);const ed=sk;var Mi=Xe,td=w,bl=Yt,lk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return(0,K.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new bl),this.group.add(this._selectorGroup=new bl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||"auto"===o)&&(o="right"===r.get("left")&&"vertical"===s?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||"auto"===l)&&(l="horizontal"===s?"end":"start"),this.renderInner(o,r,n,a,u,s,l);var f=Zc(r,a).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=an(c,f,v),d=this.layoutInner(r,o,h,i,u,l),g=an(He({width:d.width,height:d.height},c),f,v);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function uk(t,e){var r=so(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new vt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,u){var l=this.getContentGroup(),f=ve(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),td(n.getData(),function(d,g){var p=this,y=d.get("name");if(!this.newlineDisabled&&(""===y||"\n"===y)){var m=new bl;return m.newline=!0,void l.add(m)}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),C=S.getVisual("legendLineStyle")||{},T=S.getVisual("legendIcon"),x=S.getVisual("style"),D=this._createItem(_,y,g,d,n,r,C,x,T,c,i);D.on("click",Mi(nT,y,null,i,h)).on("mouseover",Mi(rd,_.name,null,i,h)).on("mouseout",Mi(nd,_.name,null,i,h)),a.ssr&&D.eachChild(function(b){var A=Me(b);A.seriesIndex=_.seriesIndex,A.dataIndex=g,A.ssrType="legend"}),v&&D.eachChild(function(b){p.packEventData(b,n,_,g,y)}),f.set(y,!0)}else a.eachRawSeries(function(b){var A=this;if(!f.get(y)&&b.legendVisualProvider){var R=b.legendVisualProvider;if(!R.containName(y))return;var E=R.indexOfName(y),P=R.getItemVisual(E,"style"),O=R.getItemVisual(E,"legendIcon"),F=qt(P.fill);F&&0===F[3]&&(F[3]=.2,P=k(k({},P),{fill:xn(F,"rgba")}));var B=this._createItem(b,y,g,d,n,r,{},P,O,c,i);B.on("click",Mi(nT,null,y,i,h)).on("mouseover",Mi(rd,null,y,i,h)).on("mouseout",Mi(nd,null,y,i,h)),a.ssr&&B.eachChild(function(U){var Y=Me(U);Y.seriesIndex=b.seriesIndex,Y.dataIndex=g,Y.ssrType="legend"}),v&&B.eachChild(function(U){A.packEventData(U,n,b,g,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,u)},e.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Me(r).eventData=s},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();td(r,function(l){var f=l.type,c=new Je({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c),my(c,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),js(c)})},e.prototype._createItem=function(r,n,a,i,o,s,u,l,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon"),S=function fk(t,e,r,n,a,i,o){function s(p,y){"auto"===p.lineWidth&&(p.lineWidth=y.lineWidth>0?2:0),td(p,function(m,_){"inherit"===p[_]&&(p[_]=y[_])})}var u=e.getModel("itemStyle"),l=u.getItemStyle(),f=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=u.getShallow("decal");l.decal=c&&"inherit"!==c?Wh(c,o):n.decal,"inherit"===l.fill&&(l.fill=n[a]),"inherit"===l.stroke&&(l.stroke=n[f]),"inherit"===l.opacity&&(l.opacity=("fill"===a?n:r).opacity),s(l,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),"auto"===l.fill&&(l.fill=n.fill),"auto"===l.stroke&&(l.stroke=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth");l.lineWidth="auto"===d?n.lineWidth>0&&l[f]?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}(f=_||f||"roundRect",i,u,l,h,p,v),C=new bl,T=i.getModel("textStyle");if(!ce(r.getLegendIcon)||_&&"inherit"!==_){var x="inherit"===_&&r.getData().getVisual("symbol")?"inherit"===y?r.getData().getVisual("symbolRotate"):y:0;C.add(function ck(t){var e=t.icon||"roundRect",r=ku(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=Te.color.neutral00,r.style.lineWidth=2),r}({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}else C.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));var D="left"===s?d+5:-5,b=s,A=o.get("formatter"),R=n;q(A)&&A?R=A.replace("{name}",n??""):ce(A)&&(R=A(n));var E=p?T.getTextColor():i.get("inactiveColor");C.add(new Je({style:nn(T,{text:R,x:D,y:g/2,fill:E,align:b,verticalAlign:"middle"},{inheritColor:E})}));var P=new vt({shape:C.getBoundingRect(),style:{fill:"transparent"}}),O=i.getModel("tooltip");return O.get("show")&&bo({el:P,componentModel:o,itemName:n,itemTooltipOption:O.option}),C.add(P),C.eachChild(function(F){F.silent=!0}),P.silent=!c,this.getContentGroup().add(C),js(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(r,n,a,i,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();lo(r.get("orient"),u,r.get("itemGap"),a.width,a.height);var f=u.getBoundingRect(),c=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){lo("horizontal",l,r.get("selectorItemGap",!0));var v=l.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=0===g?"width":"height",y=0===g?"height":"width",m=0===g?"y":"x";"end"===s?h[g]+=f[p]+d:c[g]+=v[p]+d,h[1-g]+=f[y]/2-v[y]/2,l.x=h[0],l.y=h[1],u.x=c[0],u.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-g]),_}return u.x=c[0],u.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(sr);function nT(t,e,r,n){nd(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),rd(t,e,r,n)}function rd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function nd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const aT=lk;function qo(t,e,r){var n="allSelect"===t||"inverseSelect"===t,a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),iT(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){w(a,function(u,l){s[u?"select":"unSelect"](l)}),iT(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function iT(t,e){var r=e||{};return w(t.getData(),function(n){var a=n.get("name");if("\n"!==a&&""!==a){var i=t.isSelected(a);r[a]=oe(r,a)?r[a]&&i:i}}),r}var vk=qf(function dk(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})});function oT(t){t.registerComponentModel(ed),t.registerComponentView(aT),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,vk),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function hk(t){t.registerAction("legendToggleSelect","legendselectchanged",Xe(qo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Xe(qo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Xe(qo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Xe(qo,"select")),t.registerAction("legendUnSelect","legendunselected",Xe(qo,"unSelect"))}(t)}var pk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=Kc(r);t.prototype.init.call(this,r,n,a),sT(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),sT(this,this.option,r)},e.type="legend.scroll",e.defaultOption=function _D(t,e){return Fe(Fe({},t,!0),e,!0)}(ed.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:Te.color.accent50,pageIconInactiveColor:Te.color.accent10,pageIconSize:15,pageTextStyle:{color:Te.color.tertiary},animationDurationUpdate:800}),e}(ed);function sT(t,e,r){var a=[1,1];a[t.getOrient().index]=0,li(e,r,{type:"box",ignoreSize:!!a})}const gk=pk;var uT=Yt,ad=["width","height"],id=["x","y"],yk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return(0,K.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new uT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new uT)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=V(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(g,p){var y=g+"DataIndex",m=Lu(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Pe(l._pageGo,l,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=g,f.add(m)}f.add(new Je({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(r,n,a,i,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=ad[l],c=id[l],v=ad[1-l],h=id[1-l];o&&lo("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],y=me(a);o&&(y[f]=a[f]-g[f]-d);var m=this._layoutContentAndController(r,i,y,l,f,v,h,c);if(o){if("end"===s)p[l]+=m[f]+d;else{var _=g[f]+d;p[l]-=_,m[c]-=_}m[f]+=g[f]+d,p[1-l]+=m[h]+m[v]/2-g[v]/2,m[v]=Math.max(m[v],g[v]),m[h]=Math.min(m[h],g[h]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return m},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;lo(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),lo("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),g=this._showController=h[o]>a[o],p=[-h.x,-h.y];n||(p[i]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=te(r.get("pageButtonGap",!0),r.get("itemGap",!0));g&&("end"===r.get("pageButtonPosition",!0)?m[i]+=a[o]-d[o]:y[i]+=d[o]+_),m[1-i]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(y),v.setPosition(m);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],d[s]),C[u]=Math.min(0,d[u]+m[1-i]),c.__rectSize=a[o],g){var T={x:0,y:0};T[o]=Math.max(a[o]-d[o]-_,0),T[s]=C[s],c.setClipPath(new vt({shape:T})),c.__rectSize=T[o]}else v.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return null!=x.pageIndex&&Sr(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?r:null),this._updatePageInfoView(r,x),C},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];null!=i&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var v=null!=n[f+"DataIndex"],h=a.childOfName(f);h&&(h.setStyle("fill",r.get(v?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=null!=s?s+1:0,l=n.pageCount;i&&o&&i.setStyle("text",q(o)?o.replace("{current}",null==u?"":u+"").replace("{total}",null==l?"":l+""):o({current:u,total:l}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=ad[o],u=id[o],l=this._findTargetItemIndex(n),f=a.children(),c=f[l],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=S(c);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=v;++p)(!(_=S(f[p]))&&m.e>y.s+i||_&&!C(_,y.s))&&(y=m.i>y.i?m:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=y.i),++d.pageCount),m=_;for(p=l-1,y=g,m=g,_=null;p>=-1;--p)(!(_=S(f[p]))||!C(m,_.s))&&y.i<m.i&&(m=y,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(T){if(T){var x=T.getBoundingRect(),D=x[u]+T[u];return{s:D,e:D+x[s],i:T.__legendDataIndex}}}function C(T,x){return T.e>=x&&T.s<=x+i}},e.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(o,s){var u=o.__legendDataIndex;null==i&&null!=u&&(i=s),u===r&&(n=s)}),n??i):0;var n,i},e.type="legend.scroll",e}(aT);const mk=yk;function Sk(t){kn(oT),t.registerComponentModel(gk),t.registerComponentView(mk),function _k(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;null!=n&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}(t)}function lT(t,e){var r;return w(e,function(n){null!=t[n]&&"auto"!==t[n]&&(r=!0)}),r}var fT=["transition","enterFrom","leaveTo"],xk=fT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function xl(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),t&&e)for(var n=r?fT:xk,a=0;a<n.length;a++){var i=n[a];null==t[i]&&null!=e[i]&&(t[i]=e[i])}}var Dk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return(0,K.C6)(e,t),e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var u=ag(o,s,"normalMerge"),l=this._elOptionsToUpdate=[];w(u,function(f,c){var v=f.newOption;v&&(l.push(v),function Tk(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}(f,v),function bk(t,e,r){var n=k({},r),a=t[e],i=r.$action||"merge";"merge"===i?a?(Fe(a,n,!0),li(a,n,{ignoreSize:!0}),Uy(r,a),xl(r,a),xl(r,a,"shape"),xl(r,a,"style"),xl(r,a,"extra"),r.clipPath=a.clipPath):t[e]=n:"replace"===i?t[e]=n:"remove"===i&&a&&(t[e]=null)}(o,c,v),function wk(t,e){if(t&&(t.hv=e.hv=[lT(e,["left","right"]),lT(e,["top","bottom"])],"group"===t.type)){var r=t,n=e;null==r.width&&(r.width=n.width=0),null==r.height&&(r.height=n.height=0)}}(o[c],v))},this),a.elements=Ye(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(r,n,a){w(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(ze);function cT(t,e){e&&(e.font=e.textFont||e.font,oe(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),oe(e,"textAlign")&&(t.align=e.textAlign),oe(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),oe(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),oe(e,"textWidth")&&(t.width=e.textWidth),oe(e,"textHeight")&&(t.height=e.textHeight),oe(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),oe(e,"textPadding")&&(t.padding=e.textPadding),oe(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),oe(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),oe(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),oe(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),oe(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),oe(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),oe(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var vT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dT=Le(vT),wl=(vr(qr,function(t,e){return t[e]=1,t},{}),qr.join(", "),["","style","shape","extra"]),Ai=we();function sd(t,e,r,n,a){var i=t+"Animation",o=xc(t,n,a)||{},s=Ai(e).userDuring;return o.duration>0&&(o.during=s?Pe(kk,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),k(o,r[i]),o}function ud(t,e,r,n){var a=(n=n||{}).dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),u=Ai(t),l=e.style;u.userDuring=e.during;var f={},c={};if(function Nk(t,e,r){for(var n=0;n<dT.length;n++){var a=dT[n],i=vT[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(n=0;n<qr.length;n++){var s=qr[n];null!=e[s]&&(r[s]=e[s])}}(0,e,c),"compound"===t.type)for(var v=t.shape.paths,h=e.shape.paths,d=0;d<h.length;d++)ld("shape",h[d],v[d]);else ld("shape",e,c),ld("extra",e,c);if(!i&&s&&(function Bk(t,e,r){for(var n=e.transition,a=Fa(n)?qr:nt(n||[]),i=0;i<a.length;i++){var o=a[i];"style"!==o&&"shape"!==o&&"extra"!==o&&(r[o]=t[o])}}(t,e,f),gT("shape",t,e,f),gT("extra",t,e,f),function Fk(t,e,r,n){if(r){var i,a=t.style;if(a){var o=r.transition,s=e.transition;if(o&&!Fa(o)){var u=nt(o);!i&&(i=n.style={});for(var l=0;l<u.length;l++)i[f=u[l]]=a[f]}else if(t.getAnimationStyleProps&&(Fa(s)||Fa(o)||xe(s,"style")>=0)){var v=t.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});var d=Le(r);for(l=0;l<d.length;l++){var f;h[f=d[l]]&&(i[f]=a[f])}}}}}}(t,e,l,f)),c.style=l,function Ik(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}(t,c,o),function Ek(t,e){oe(e,"silent")&&(t.silent=e.silent),oe(e,"ignore")&&(t.ignore=e.ignore),t instanceof ua&&oe(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ne&&oe(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(i){var p={};w(wl,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(p[m]=p[m]||{}),k(m?p[m]:p,_.enterFrom))});var y=sd("enter",t,e,r,a);y.duration>0&&t.animateFrom(p,y)}else!function Rk(t,e,r,n,a){if(a){var i=sd("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}(t,e,a||0,r,f);pT(t,e),l?t.dirty():t.markRedraw()}function pT(t,e){for(var r=Ai(t).leaveToProps,n=0;n<wl.length;n++){var a=wl[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=Ai(t).leaveToProps={}),a&&(r[a]=r[a]||{}),k(a?r[a]:r,i.leaveTo))}}function Fa(t){return"all"===t}var Gr={},Ok={setTransform:function(t,e){return Gr.el[t]=e,this},getTransform:function(t){return Gr.el[t]},setShape:function(t,e){var r=Gr.el;return(r.shape||(r.shape={}))[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=Gr.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=Gr.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=Gr.el.style;if(e)return e[t]},setExtra:function(t,e){return(Gr.el.extra||(Gr.el.extra={}))[t]=e,this},getExtra:function(t){var e=Gr.el.extra;if(e)return e[t]}};function kk(){var t=this,e=t.el;if(e){var r=Ai(e).userDuring,n=t.userDuring;if(r!==n)return void(t.el=t.userDuring=null);Gr.el=e,n(Ok)}}function gT(t,e,r,n){var a=r[t];if(a){var o,i=e[t];if(i){var s=r.transition,u=a.transition;if(u)if(!o&&(o=n[t]={}),Fa(u))k(o,i);else for(var l=nt(u),f=0;f<l.length;f++)o[c=l[f]]=v=i[c];else if(Fa(s)||xe(s,t)>=0){!o&&(o=n[t]={});var h=Le(i);for(f=0;f<h.length;f++){var c,v;Hk(a[c=h[f]],v=i[c])&&(o[c]=v)}}}}}function ld(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=Le(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ui(n[s])}}function Hk(t,e){return gt(t)?t!==e:null!=t&&isFinite(t)}var yT=we(),zk=["percent","easing","shape","style","extra"];function fd(t,e,r){if(r.isAnimationEnabled()&&e){if(V(e))return void w(e,function(s){fd(t,s,r)});var n=e.keyframes,a=e.duration;if(r&&null==a){var i=xc("enter",r,0);a=i&&i.duration}if(n&&a){var o=yT(t);w(wl,function(s){var u;s&&!t[s]||(n.sort(function(f,c){return f.percent-c.percent}),w(n,function(f){var c=t.animators,v=s?f[s]:f;if(v){var h=Le(v);if(s||(h=Ye(h,function(p){return xe(zk,p)<0})),h.length){u||((u=t.animate(s,e.loop,!0)).scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==u&&c[d].targetName===u.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var g=s?o[s]:o;w(h,function(p){g[p]=((s?t[s]:t)||{})[p]}),u.whenWithKeys(a*f.percent,v,h,f.easing)}}}),u&&u.delay(e.delay||0).duration(a).start(e.easing))})}}}var mT={path:null,compoundPath:null,group:Yt,image:Pn,text:Je},cr=we(),Vk=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,K.C6)(e,t),e.prototype.init=function(){this._elMap=ve()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");w(n,function(u){var l=Mt(u.id,null),f=null!=l?a.get(l):null,c=Mt(u.parentId,null),v=null!=c?a.get(c):i,h=u.type,d=u.style;"text"===h&&d&&u.hv&&u.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var g=u.textContent,p=u.textConfig;if(d&&function Ak(t,e,r,n){return t&&(t.legacy||!1!==t.legacy&&!r&&!n&&"tspan"!==e&&("text"===e||oe(t,"text")))}(d,h,!!p,!!g)){var y=function Lk(t,e,r){var a,i,o,n=t;if("text"===e)o=n;else{o={},oe(n,"text")&&(o.text=n.text),oe(n,"rich")&&(o.rich=n.rich),oe(n,"textFill")&&(o.fill=n.textFill),oe(n,"textStroke")&&(o.stroke=n.textStroke),oe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),oe(n,"fontSize")&&(o.fontSize=n.fontSize),oe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),oe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=oe(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),oe(n,"textPosition")&&(a.position=n.textPosition),oe(n,"textOffset")&&(a.offset=n.textOffset),oe(n,"textRotation")&&(a.rotation=n.textRotation),oe(n,"textDistance")&&(a.distance=n.textDistance)}return cT(o,t),w(o.rich,function(u){cT(u,u)}),{textConfig:a,textContent:i}}(d,h,!0);!p&&y.textConfig&&(p=u.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var m=function Uk(t){return t=k({},t),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Vy),function(e){delete t[e]}),t}(u),_=u.$action||"merge",S="merge"===_,C="replace"===_;if(S){var x=f;(T=!f)?x=_T(l,v,u.type,a):(x&&(cr(x).isNew=!1),function Gk(t){t.stopAnimation("keyframe"),t.attr(yT(t))}(x)),x&&(ud(x,m,r,{isInit:T}),ST(x,u,o,s))}else if(C){Dl(f,u,a,r);var D=_T(l,v,u.type,a);D&&(ud(D,m,r,{isInit:!0}),ST(D,u,o,s))}else"remove"===_&&(pT(f,u),Dl(f,u,a,r));var b=a.get(l);if(b&&g)if(S){var A=b.getTextContent();A?A.attr(g):b.setTextContent(new Je(g))}else C&&b.setTextContent(new Je(g));if(b){var R=u.clipPath;if(R){var E=R.type,P=void 0,T=!1;if(S){var O=b.getClipPath();P=(T=!O||cr(O).type!==E)?cd(E):O}else C&&(T=!0,P=cd(E));b.setClipPath(P),ud(P,R,r,{isInit:T}),fd(P,R.keyframeAnimation,r)}var F=cr(b);b.setTextConfig(p),F.option=u,function Wk(t,e,r){var n=Me(t).eventData;!t.silent&&!t.ignore&&!n&&(n=Me(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}(b,r,u),bo({el:b,componentModel:r,itemName:b.name,itemTooltipOption:u.tooltip}),fd(b,u.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),u=n.getHeight(),l=["x","y"],f=0;f<a.length;f++)if((h=null!=(v=Mt((c=a[f]).id,null))?o.get(v):null)&&h.isGroup){var g=(d=h.parent)===i,p=cr(h),y=cr(d);p.width=qe(p.option.width,g?s:y.width)||0,p.height=qe(p.option.height,g?u:y.height)||0}for(f=a.length-1;f>=0;f--){var c,v,h;if(h=null!=(v=Mt((c=a[f]).id,null))?o.get(v):null){y=cr(d=h.parent);var d,_={},S=jD(h,c,d===i?{width:s,height:u}:{width:y.width,height:y.height},null,{hv:c.hv,boundingMode:c.bounding},_);if(!cr(h).isNew&&S){for(var C=c.transition,T={},x=0;x<l.length;x++){var D=l[x],b=_[D];C&&(Fa(C)||xe(C,D)>=0)?T[D]=b:h[D]=b}Sr(h,T,r,0)}else h.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){Dl(a,cr(a).option,n,r._lastGraphicModel)}),this._elMap=ve()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(sr);function cd(t){var r=new(oe(mT,t)?mT[t]:xh(t))({});return cr(r).type=t,r}function _T(t,e,r,n){var a=cd(r);return e.add(a),n.set(t,a),cr(a).id=t,cr(a).isNew=!0,a}function Dl(t,e,r,n){t&&t.parent&&("group"===t.type&&t.traverse(function(i){Dl(i,e,r,n)}),function Pk(t,e,r,n){if(t){var a=t.parent,i=Ai(t).leaveToProps;if(i){var o=sd("update",t,e,r,0);o.done=function(){a&&a.remove(t),n&&n()},t.animateTo(i,o)}else a&&a.remove(t),n&&n()}}(t,e,n),r.removeKey(cr(t).id))}function ST(t,e,r,n){t.isGroup||w([["cursor",ua.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];oe(e,i)?t[i]=te(e[i],a[1]):null==t[i]&&(t[i]=a[1])}),w(Le(e),function(a){if(0===a.indexOf("on")){var i=e[a];t[a]=ce(i)?i:null}}),oe(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function CT(t,e,r){var n=lt.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}function hd(t){return!t.__cursors.get(0)}function TT(t){var e=t.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var Yk=function(t){function e(r,n,a){var o,i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0},a=a||ws,"string"==typeof r?o=CT(r,n,a):J(r)&&(r=(o=r).id),i.id=r,i.dom=o;var s=o.style;return s&&(Nl(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return(0,K.C6)(e,t),e.prototype.afterBrush=function(){this.__prevIdx=TT(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=CT("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var m,o=[],s=this.maxRepaintRectCount,u=!1,l=new ye(0,0,0,0);function f(S){if(S.isFinite()&&!S.isZero())if(0===o.length)(C=new ye(0,0,0,0)).copy(S),o.push(C);else{for(var T=!1,x=1/0,D=0,b=0;b<o.length;++b){var A=o[b];if(A.intersect(S)){var R=new ye(0,0,0,0);R.copy(A),R.union(S),o[b]=R,T=!0;break}if(u){l.copy(S),l.union(A);var F=l.width*l.height-S.width*S.height-A.width*A.height;F<x&&(x=F,D=b)}}var C;u&&(o[D].union(S),T=!0),T||((C=new ye(0,0,0,0)).copy(S),o.push(C)),u||(u=o.length>=s)}}for(var c=TT(this),v=c.startIdx;v<c.endIdx;++v)if(h=r[v]){var d=h.shouldBePainted(a,i,!0,!0);(g=h.__isRendered&&(1&h.__dirty||!d)?h.getPrevPaintRect():null)&&f(g);var p=d&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}var y=this.__prevIdx;for(v=y.startIdx;v<y.endIdx;++v){var h,g;d=(h=n[v])&&h.shouldBePainted(a,i,!0,!0),!h||d&&h.__zr||!h.__isRendered||(g=h.getPrevPaintRect())&&f(g)}do{for(m=!1,v=0;v<o.length;)if(o[v].isZero())o.splice(v,1);else{for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(m=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,1!==a&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,u=i.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,u/c));var h=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&"transparent"!==n){var _=void 0;Pi(n)?(_=(n.global||n.__width===y&&n.__height===m)&&n.__canvasGradient||zh(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m):wd(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Gh(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(h,g,p,y,m),o.restore())}!a||l?d(0,0,s,u):a.length&&w(a,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},e}(Mr);const bT=Yk;var Ha=314159,vd=void 0;function wT(t,e,r,n){var a=new bT(t,e,e.dpr);return a.zlevel=r,a.zlevel2=n,a.__builtin__=!0,DT(a),a}function DT(t){t.__cursorStack=[],t.__cursors=ve()}function $k(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,function jk(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}({key:n})))}function Ml(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function pd(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function Tt(t,e,r){for(var n=t.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=t.layers[i][o];(!r||(!(r&Yo)||s.__builtin__)&&(!(r&gd)||!s.__builtin__)&&(!(r&MT)||s!==t.hoverlayer))&&e(s,i,o,a)}}var Yo=1,gd=2,MT=4,Al=Yo|MT,Qk=function(){function t(e,r,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();if(this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||ws,this._singleCanvas=i,this.root=e,e.style&&(Nl(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],i){var u=e,l=u.width,f=u.height;null!=n.width&&(l=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=l*this.dpr,u.height=f*this.dpr,this._width=l,this._height=f;var c=wT(u,this,Ha,0);c.initContext(),this._insertLayer(c,Ha,0,!0),this._domRoot=e}else{this._width=Nu(e,0,n),this._height=Nu(e,1,n);var s=this._domRoot=function Kk(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r,n=te((r=e&&!J(e)?{paintAll:!!e}:e||{}).refresh,!0),a=te(r.refreshHover,!1);if(a&&(this._hoverLayerDirty=2),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,r.paintAll),this._redrawId=Math.random(),this._paintList(i,this._prevDisplayList,this._redrawId);var s=this._backgroundColor;return Tt(this._i,function(u,l,f,c){u.refresh&&u.refresh(0===c?s:null)},gd),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=vd,n!==vd&&(!r&&2===n&&(r=this._i.hoverlayer=this._ensureLayer(1e5)),r)){r.clear();for(var i,a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,s=e.length;o<s;o++){var u=e[o];if(u.__inHover){i||(i=r.ctx).save();var l=u.__hoverStyle,f=void 0;l&&(f=u.style,u.style=l),Ia(i,u,a),l&&(u.style=f)}}i&&(yi(i,a),i.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(1e5)},t.prototype.paintOne=function(e,r){Vh(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var a=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),a)Tt(this._i,function(o){o.afterBrush&&o.afterBrush()},Al),this._paintHoverList(e);else{var i=this;rf(function(){i._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Ha).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),Tt(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)},Yo)},t.prototype._doPaintList=function(e,r){var n=this,a=!0;return Tt(this._i,function(i){var o=!1;if(Ml(i,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),o||i.__dirty){var s=n._opts.useDirtyRect&&!hd(i)?i.createRepaintRects(e,r,n._width,n._height):null,u=n._i.layerStack[0],l=!0;i.__dirty&&(l=!1,i.__dirty=!1,i.clear(!1,i.zlevel===u.zl&&i.zlevel2===u.zl2?n._backgroundColor:null,s)),Ml(i,function(c){var v=n._paintPerCursor(i,c,e,s,l);a=a&&v})}},Al),Ce.wxa&&Tt(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},t.prototype._paintPerCursor=function(e,r,n,a,i){var o=e.ctx;if(a)if(a.length)for(var s=this.dpr,u=0;u<a.length;++u){var l=a[u];o.save(),o.beginPath(),o.rect(l.x*s,l.y*s,l.width*s,l.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,l,i),o.restore()}else r.drawIdx=r.endIdx;else o.save(),this._paintPerCursorInRect(e,r,n,null,i),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,u=hd(e),l=u&&lt.getTime(),f=r.drawIdx,c=r.notClearIdx,v=c>=0?Math.min(c,f):f;v<r.endIdx;v++){var h=n[v];if(!(v<f)||h.notClear){if(h.__inHover&&(this._hoverLayerDirty=2),null!=a){var d=h.getPaintRect();d&&d.intersect(a)&&(Ia(s,h,o),h.setPrevPaintRect(d))}else Ia(s,h,o);if(u&&lt.getTime()-l>15){v++;break}}}yi(s,o),r.drawIdx=Math.max(v,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=Ha,r=0);var i=pd(this._i,e)[r];return i||(i=wT("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&Fe(i,this._layerConfig[e],!0),(n||a&&e!==Ha)&&(i.virtual=!0),this._insertLayer(i,e,r,!1),i.initContext()),i},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,a){var i=this._i,o=i.layers,s=i.layerStack,u=this._domRoot,l=null;if((!o[r]||!o[r][n])&&function Zk(t){return!(!t||!t.__builtin__&&("function"!=typeof t.resize||"function"!=typeof t.refresh))}(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(l=pd(i,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),pd(i,r)[n]=e,!a&&!e.virtual)if(l){var v=l.dom;v.nextSibling?u.insertBefore(e.dom,v.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return Tt(this._i,function(n,a){e.call(r,n,a)})},t.prototype.eachBuiltinLayer=function(e,r){return Tt(this._i,function(n,a){e.call(r,n,a)},Yo)},t.prototype.eachOtherLayer=function(e,r){return Tt(this._i,function(n,a){e.call(r,n,a)},gd)},t.prototype.getLayers=function(){var e={};return Tt(this._i,function(r,n,a){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var a=1;a<e.length;a++)if((i=e[a]).zlevel!==e[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}Tt(n._i,function(p){p.__dirty=!1,Ml(p,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Al);for(var o,s=null,u=null,l=!1,f=0,c=e.length;f<c;f++){var i,v=(i=e[f]).zlevel,h=i.incremental,d=void 0;if(o!==v&&(o=v,l=!1),h?(l=!0,d=1):d=l?2:0,s&&v===s.zlevel&&d===s.zlevel2||(u=null,(s=n._ensureLayer(v,d)).__builtin__)){if(!(u&&h===u.key||(u=$k(s,h),u.used)))if(u.used=!0,r||u.first!==i.id)s.__dirty=!0,u.first=i.id,u.startIdx=u.drawIdx=f,u.endIdx=f+1;else{var g=f-u.startIdx;u.startIdx=f,u.drawIdx+=g,u.endIdx+=g}u.endIdxNew=f+1,1&i.__dirty&&!i.__inHover&&((!h||!i.notClear&&f<u.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&u.notClearIdx<0&&(u.notClearIdx=f))}else Ko("ZLevel "+v+" has been used by unknown layer "+s.id)}Tt(n._i,function(p){for(var y=p.__cursorStack,m=p.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(S.used){var C=S.endIdxNew;(hd(p)?C<S.drawIdx:C!==S.endIdx||!C||e[C-1].id!==S.last)&&(p.__dirty=!0),S.endIdx=S.endIdxNew,S.last=C?e[C-1].id:NaN}else p.__dirty=!0,m.removeKey(y[_]),y.splice(_,1)}p.__dirty&&(Ml(p,function(T){T.drawIdx=T.startIdx}),n._hoverLayerDirty===vd&&(n._hoverLayerDirty=1))},Al)},t.prototype.clear=function(){return Tt(this._i,function(e){e.clear(),DT(e)},Yo),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Tt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Fe(n[e],r,!0):n[e]=r,Tt(this._i,function(a,i){Fe(a,n[i],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,a=r.length-1;a>=0;a--){var i=r[a];if(i.zl===e){var o=n[e][i.zl2];if(o.__builtin__)continue;if(r.splice(a,1),n[e][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;null!=e&&(a.width=e),null!=r&&(a.height=r),e=Nu(i,0,a),r=Nu(i,1,a),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",Tt(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(null==e||null==r)return;this._width=e,this._height=r,this._ensureLayer(Ha).resize(e,r)}return this},t.prototype.clearLayer=function(e){w(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._i.layers[Ha][0].dom;var r=new bT("image",this,(e=e||{}).pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;Tt(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++)Ia(n,s[u],o);yi(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const Jk=Qk;var zt=N(6756),tB=N(2245),rB=N(5381),nB=N(6170);const aB=["chart"],iB=()=>({renderer:"canvas",width:"auto",height:"auto"});function oB(t,e){if(1&t&&(j.j41(0,"cue-flexcontainer",3),j.nrm(1,"cue-typography",5),j.k0s()),2&t){const r=j.XpG();j.R7$(),j.Y8G("innerHTML",r.currentHoveredValue()||r.formattedSum(),j.npT)}}function sB(t,e){if(1&t&&(j.j41(0,"cue-flexcontainer",4)(1,"cue-typography",6),j.EFF(2),j.k0s()()),2&t){const r=j.XpG();j.R7$(2),j.JRh(r.currentHoveredValue())}}kn([function SO(t){t.registerComponentModel(mO),t.registerComponentView(_O)},function ik(t){kn(B2),t.registerComponentModel(F2),t.registerComponentView(ak),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ft),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ft)},function Ck(t){kn(oT),kn(Sk)},function yO(t){t.registerChartView(pO),t.registerSeriesModel(oO),function eP(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}w([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=k({},a),o.dispatchAction(k(a,{type:n[1],seriesIndex:r(i,a)}))})})}(Hn,t.registerAction),t.registerLayout(cO),t.registerProcessor(function tO(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(n&&n.length){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}(Hn)),t.registerProcessor(function gO(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Be(o)&&!isNaN(o)&&o<0)})}}}(Hn))},function eB(t){t.registerPainter("canvas",Jk)},pC,function qk(t){t.registerComponentModel(Dk),t.registerComponentView(Vk),t.registerPreprocessor(function(e){var r=e.graphic;V(r)?e.graphic=r[0]&&r[0].elements?[e.graphic[0]]:[{elements:r}]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}]);let uB=(()=>{class t{data=re.hFB.required();variant=(0,re.hFB)("primary");doughnut=(0,re.hFB)(!1);hoverType=(0,re.hFB)("name");labelType=(0,re.hFB)("name");clickable=(0,re.hFB)(!0);labelThresholdPct=(0,re.hFB)(3);groupSmallFractions=(0,re.hFB)(void 0);clickedCategory=(0,re.CGW)();clickedCanvas=(0,re.CGW)();radius=(0,le.EW)(()=>this.doughnut()?["40%","70%"]:"70%");startColor=(0,le.EW)(()=>(0,zt.r)(this.variant()));endColor=(0,le.EW)(()=>(0,zt.U6)(this.variant()));currentParent=(0,H.vPA)(void 0);saturated=(0,le.EW)(()=>{const r=this.groupSmallFractions();return r?.enabled?(0,zt.g0)(this.data(),!0,r.threshold,r.groupName):(0,zt.g0)(this.data(),!1)});chartData=(0,le.EW)(()=>(0,zt.Mc)(this.saturated(),this.currentParent()));borderColor=(0,le.EW)(()=>"tertiary"===this.variant()?"#cccccc":this.borderBackgroundColor());textColor=(0,H.vPA)("#333");borderBackgroundColor=(0,H.vPA)("#fff");sum=(0,le.EW)(()=>this.chartData().reduce((r,n)=>r+n.value,0));formattedSum=(0,le.EW)(()=>(0,zt.In)(this.sum()));chartInstance=null;currentHoveredValue=(0,H.vPA)(null);hoveredItemName=(0,H.vPA)(null);chartRef;ngAfterViewInit(){this.updateColors()}updateColors(){const r=(0,zt.g8)(this.chartRef);this.textColor.set(r.text),this.borderBackgroundColor.set(r.borderBackground)}onChartInit(r){this.chartInstance=r,this.setupChartEvents()}setupChartEvents(){this.chartInstance&&(this.chartInstance.on("mouseover",r=>{r.data&&(this.hoveredItemName.set(r.data.name),this.updateHoveredValue(r.data),this.chartInstance?.setOption(this.chartOptions()))}),this.chartInstance.on("mouseout",()=>{this.hoveredItemName.set(null),this.currentHoveredValue.set(null),this.chartInstance?.setOption(this.chartOptions())}),this.chartInstance.on("click",r=>{const n=window.event||r.event;n&&"function"==typeof n.stopPropagation&&n.stopPropagation(),r.data&&(!0!==r.data?.isGroup&&this.clickedCategory.emit(r.data),this.currentParent.set(void 0!==r.data.children&&r.data.children.length>0?r.data:void 0))}))}onData=(0,H.QZP)(()=>{this.data(),this.currentHoveredValue.set(null)});handleCanvasClick(){this.clickedCanvas.emit(),this.currentParent.set(void 0)}updateHoveredValue(r){switch(this.hoverType()){case"value":this.currentHoveredValue.set(r.value.toString());break;case"valueShort":this.currentHoveredValue.set((0,zt.In)(r.value));break;case"pct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${n}%`);break}case"nameValue":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${r.value.toString()}`);break;case"nameValueShort":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${(0,zt.In)(r.value)}`);break;case"namePct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${n}%`);break}default:this.currentHoveredValue.set(r.name)}}chartOptions=(0,le.EW)(()=>{const r=this.chartData();return{fontStyle:zt.u9,series:[{name:"Distribution",type:"pie",radius:this.radius(),cursor:this.clickable()?"pointer":"default",data:r.map((n,a)=>({...n,itemStyle:{color:(0,zt.Kz)(this.startColor(),this.endColor(),a,r.length),borderColor:this.borderColor(),borderWidth:"tertiary"===this.variant()?1:2,borderType:"solid"},...n.name===this.hoveredItemName()?{label:{width:void 0,overflow:"break",align:"center"}}:{}})),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)",borderWidth:"tertiary"===this.variant()?2:0,borderColor:"tertiary"===this.variant()?"#999999":"transparent"}},labelLine:{show:!1},label:{color:"inherit",position:"outside",distanceToLabelLine:-100,show:"none"!==this.labelType(),backgroundColor:this.borderBackgroundColor(),borderColor:"#333"===this.textColor()||"var(--cue-chart-text-color)"===this.textColor()?"rgba(0, 0, 0, 0.08)":"rgba(255, 255, 255, 0.12)",borderWidth:1,borderRadius:9999,padding:[5,10],shadowBlur:6,shadowColor:"rgba(0, 0, 0, 0.1)",shadowOffsetX:0,shadowOffsetY:2,fontFamily:zt.u9.fontFamily,fontSize:12,fontWeight:500,formatter:n=>{const{data:a}=n,i=a.value/this.sum()*100;if(i<this.labelThresholdPct())return"";let o="";switch(this.labelType()){case"value":o=a.value.toString();break;case"valueShort":o=(0,zt.In)(a.value);break;case"pct":o=`${i.toFixed(1)}%`;break;default:o=a.name}return`{dot|\u25cf} {text|${o}}`},rich:{dot:{fontSize:14,padding:[0,4,0,0]},text:{color:this.textColor(),fontFamily:zt.u9.fontFamily,fontSize:12,fontWeight:500}}}}]}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=j.VBU({type:t,selectors:[["cue-pie-chart"]],viewQuery:function(n,a){if(1&n&&j.GBs(aB,5),2&n){let i;j.mGM(i=j.lsd())&&(a.chartRef=i.first)}},inputs:{data:[1,"data"],variant:[1,"variant"],doughnut:[1,"doughnut"],hoverType:[1,"hoverType"],labelType:[1,"labelType"],clickable:[1,"clickable"],labelThresholdPct:[1,"labelThresholdPct"],groupSmallFractions:[1,"groupSmallFractions"]},outputs:{clickedCategory:"clickedCategory",clickedCanvas:"clickedCanvas"},features:[j.Jv_([_d({echarts:dn})])],decls:5,vars:5,consts:[["chart",""],["cueDarkMode","",1,"chart-container",3,"darkModeChange","click"],["echarts","",1,"chart",3,"chartInit","options","initOpts"],["justify","center",1,"center-text"],["justify","center",1,"bottom-text"],["size","l","weight","semibold","align","center",3,"innerHTML"],["size","l","weight","semibold"]],template:function(n,a){1&n&&(j.j41(0,"div",1),j.bIt("darkModeChange",function(){return a.updateColors()})("click",function(){return a.handleCanvasClick()}),j.j41(1,"div",2,0),j.bIt("chartInit",function(o){return a.onChartInit(o)}),j.k0s(),j.nVh(3,oB,2,1,"cue-flexcontainer",3),j.nVh(4,sB,3,1,"cue-flexcontainer",4),j.k0s()),2&n&&(j.R7$(),j.Y8G("options",a.chartOptions())("initOpts",j.lJ4(4,iB)),j.R7$(2),j.vxM(a.doughnut()?3:-1),j.R7$(),j.vxM(a.doughnut()?-1:4))},dependencies:[LT,AT,tB.Typography,rB.n,nB.R],styles:[".chart-container[_ngcontent-%COMP%]{position:relative;width:100%;height:400px}.chart[_ngcontent-%COMP%]{width:100%;height:100%}.center-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:80%}.bottom-text[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;text-align:center;padding-bottom:10px}"]})}return t})()},9811(hn,ut,N){N.d(ut,{z:()=>rt});var L=N(5802),M=N(1519);let rt=(()=>{class I{handlers=(0,L.vPA)(new M.$);projectId=(0,L.vPA)("");portalBaseURL=(0,L.vPA)("");resourceBaseURL=(0,L.vPA)("");graphIsSaturated=(0,L.vPA)(!1);privileges=(0,L.vPA)(new M.c);availableContentCategories=(0,L.vPA)(void 0);availableEntityCategories=(0,L.vPA)(void 0);availableEntityRelationships=(0,L.vPA)(void 0);entityInfoMap=(0,L.vPA)({});documentInfoMap=(0,L.vPA)({});static \u0275fac=function(Kt){return new(Kt||I)};static \u0275prov=L.jDH({token:I,factory:I.\u0275fac})}return I})()},7993(hn,ut,N){N.d(ut,{o:()=>Qe});var L=N(467),M=N(5802),rt=N(7705),I=N(2271),Gt=N(7672),Vt=N(7573);const re=[{"@id":"https://dev.qaecy.com/enum#ConstructionProcessDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#ScheduleDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Schedule Document"}},{"@id":"https://dev.qaecy.com/enum#SafetyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Safety Document"}},{"@id":"https://dev.qaecy.com/enum#QualityAssuranceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"QA/QC Document"}},{"@id":"https://dev.qaecy.com/enum#ProgressStatusReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Progress & Status Report"}},{"@id":"https://dev.qaecy.com/enum#OtherConstructionProcessDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Construction Management Document"}},{"@id":"https://dev.qaecy.com/enum#ChangeOrderRFIDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Change Order & RFI Document"}}],label:{"@language":"en","@value":"Construction Process & Management Document"}},{"@id":"https://dev.qaecy.com/enum#ContractualDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PurchaseOrLeaseAgreement","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Purchase & Lease Agreement"}},{"@id":"https://dev.qaecy.com/enum#OtherContractualDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#InsuranceBondDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Insurance & Bond Document"}},{"@id":"https://dev.qaecy.com/enum#ConstructionContract","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Construction Contract"}}],label:{"@language":"en","@value":"Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#DesignDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Design Document"}},{"@id":"https://dev.qaecy.com/enum#LandscapeDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Landscape Design Document"}},{"@id":"https://dev.qaecy.com/enum#InteriorDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Interior Design Document"}},{"@id":"https://dev.qaecy.com/enum#EngineeringDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Engineering Design Document"}},{"@id":"https://dev.qaecy.com/enum#ArchitecturalDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Architectural Design Document"}}],label:{"@language":"en","@value":"Design Document"}},{"@id":"https://dev.qaecy.com/enum#FinancialAdministrativeDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherFinancialAdministrativeDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#InvoicePaymentDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Invoice or Payment Document"}},{"@id":"https://dev.qaecy.com/enum#BudgetEstimateDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Budget or Estimate Document"}},{"@id":"https://dev.qaecy.com/enum#AppraisalValuationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Appraisal or Valuation Document"}}],label:{"@language":"en","@value":"Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#MiscDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherMiscDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#MarketingCloseoutDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Marketing or Project Closeout Document"}},{"@id":"https://dev.qaecy.com/enum#DueDiligenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Due Diligence Document"}},{"@id":"https://dev.qaecy.com/enum#CorrespondenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Correspondence Document"}}],label:{"@language":"en","@value":"Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#OperationsMaintenanceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#WarrantyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Warranty or Guarantee Document"}},{"@id":"https://dev.qaecy.com/enum#OtherOperationsMaintenanceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other O&M Document"}},{"@id":"https://dev.qaecy.com/enum#OperationManual","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Operation Manual"}},{"@id":"https://dev.qaecy.com/enum#MaintenanceLog","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Maintenance Log"}},{"@id":"https://dev.qaecy.com/enum#AsBuiltDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"As-Built Document"}}],label:{"@language":"en","@value":"Operations & Maintenance Document"}},{"@id":"https://dev.qaecy.com/enum#RegulatoryComplianceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PermitDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Permit Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRegulatoryComplianceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#InspectionDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Inspection Document"}},{"@id":"https://dev.qaecy.com/enum#ComplianceReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Compliance Report"}},{"@id":"https://dev.qaecy.com/enum#CertificationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Certification Document"}}],label:{"@language":"en","@value":"Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#RequirementsDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#TechnicalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Technical Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#ScopeOfWorkDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Scope of Work (SOW) Document"}},{"@id":"https://dev.qaecy.com/enum#PerformanceRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Performance Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Requirements & Scoping Document"}},{"@id":"https://dev.qaecy.com/enum#FunctionalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Functional Requirements Document"}}],label:{"@language":"en","@value":"Requirements & Scoping Document"}}],he=(fe,ae,X="size")=>{const ne=Array.isArray(fe)?fe.reduce((Z,Se)=>({...Z,[Se.id]:Se.value}),{}):Object.entries(fe).reduce((Z,[Se,ke])=>{const xt="number"==typeof ke?ke:ke[X];return{...Z,[Se]:xt}},{});if(ae&&ae.length>0)return j(ne,ae);const W=Object.entries(ne).map(([Z,Se])=>({id:Z,value:Se}));if(!(fe=>{const ae=(()=>{const fe=new Set,ae=X=>{for(const ne of X)fe.add(ne["@id"]),ne.children&&ae(ne.children)};return ae(re),fe})(),X=Array.isArray(fe)?fe.map(ne=>ne.id):Object.keys(fe);for(const ne of X)if(!ae.has(ne))return!1;return!0})(ne))return W.map(Z=>({id:Z.id,name:String(Z.id),value:Z.value}));const G=Z=>{const Se=ne[Z["@id"]]||0,ke=Z.children?Z.children.map(Qt=>G(Qt)).filter(Qt=>void 0!==Qt):void 0;let xt=Se;if(ke&&ke.length>0&&(xt+=ke.reduce((Qt,Ll)=>Qt+(Ll.value||0),0)),xt>0)return{id:Z["@id"],name:Z.label["@value"],value:xt,children:ke&&ke.length>0?ke:void 0}};return re.map(Z=>G(Z)).filter(Z=>void 0!==Z)},j=(fe,ae)=>{const X=new Map,ne=[];ae.forEach(G=>{X.set(G.iri,{id:G.iri,name:G.label,value:fe[G.iri]||0,children:[]})}),ae.forEach(G=>{const Z=X.get(G.iri);G.parent&&X.has(G.parent)?X.get(G.parent).children.push(Z):ne.push(Z)});const W=G=>{let Z=0;return G.children&&G.children.length>0&&(G.children=G.children.map(Se=>W(Se)).filter(Se=>void 0!==Se),Z=G.children.reduce((Se,ke)=>Se+(ke.value||0),0)),(!G.children||0===G.children.length)&&delete G.children,G.value=(G.value||0)+Z,(G.value||0)>0?G:void 0};return ne.map(G=>W(G)).filter(G=>void 0!==G)};var $=N(9811),Re=N(5547);let Qe=(()=>{class fe{ctx=(0,M.WQX)($.z);data=rt.hFB.required();config=rt.hFB.required();handlers=(0,I.EW)(()=>this.config().handlers);navigated=(0,rt.CGW)();selectedContentCategories=(0,M.vPA)([]);onReset=(0,M.QZP)(()=>{this.handleCanvasClick()});fullTree=(0,I.EW)(()=>he(this.data().documents,this.ctx.availableContentCategories(),"count"));chartData=(0,I.EW)(()=>{const X=this.selectedContentCategories();if(!X.length)return this.fullTree();const ne=X[0],W=Z=>{for(const Se of Z){if(Se.id===ne)return Se;if(Se.children){const ke=W(Se.children);if(ke)return ke}}};return W(this.fullTree())?.children??this.fullTree()});groupSmallFractions=(0,I.EW)(()=>({enabled:!0,threshold:.05,groupName:"Rest"}));handleContentCategoryClick(X){var ne=this;return(0,L.A)(function*(){const W=Z=>{const Se=[];return Se.push(Z.id),Array.isArray(Z.children)&&Z.children.forEach(ke=>{Se.push(...W(ke))}),Se};if(X.children&&X.children.length>0)return ne.selectedContentCategories.set([X.id]),void ne.navigated.emit({filterBy:"contentCat",values:W(X),label:X.name??X.id});const G=W(X);ne.selectedContentCategories.set(G),ne.navigated.emit({filterBy:"contentCat",values:G,label:X.name??X.id}),ne.requestDocumentList(X)})()}requestDocumentList(X){var ne=this;return(0,L.A)(function*(){const W=ne.handlers()?.subsequentBlockRequest;if((fe=>fe===`${Vt.E["qcy-e"]}ContractualDocument`||"https://dev.qaecy.com/c/tend/enum#RentalContract"===fe)(X.id)&&void 0!==W)return void W({id:"content-category",data:{categoryIRI:X.id},config:ne.config(),focusOnAdd:!1},X.name??X.id,!0);const Z=ne.handlers()?.docListFilterRequest;if(void 0===Z)return;const Se=yield Z("contentCat",[X.id]);Se&&void 0!==W&&W({id:"document-list",data:Se,config:ne.config(),focusOnAdd:!0},X.name??X.id,!0)})()}handleCanvasClick(){this.selectedContentCategories.set([]),this.navigated.emit(null)}static \u0275fac=function(ne){return new(ne||fe)};static \u0275cmp=Re.VBU({type:fe,selectors:[["cue-block-documents-by-content-category"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated"},decls:1,vars:4,consts:[[1,"chart",3,"clickedCanvas","clickedCategory","data","doughnut","hoverType","groupSmallFractions"]],template:function(ne,W){1&ne&&(Re.j41(0,"cue-pie-chart",0),Re.bIt("clickedCanvas",function(){return W.handleCanvasClick()})("clickedCategory",function(Z){return W.handleContentCategoryClick(Z)}),Re.k0s()),2&ne&&Re.Y8G("data",W.chartData())("doughnut",!1)("hoverType","nameValue")("groupSmallFractions",W.groupSmallFractions())},dependencies:[Gt.r],encapsulation:2,changeDetection:0})}return fe})()},3615(hn,ut,N){N.d(ut,{Y:()=>vn});var L=N(467),M=N(7705),rt=N(5802),I=N(2271),Gt=N(4820),Vt=N(6114),Kt=N(7672),Ae=N(5547);const jt="unknown";let vn=(()=>{class $t{data=M.hFB.required();config=M.hFB.required();handlers=(0,I.EW)(()=>this.config().handlers);navigated=(0,M.CGW)();documentInfoReady=(0,M.CGW)();documentInfo=(0,I.EW)(()=>{const re=this.data().documents;return Object.entries(re).map(([le,H])=>{const he=le.toLowerCase();return{id:le,name:le,value:H.count,info:Vt.V[he]}})});categorySuffixMap=(0,I.EW)(()=>{const re={};return this.documentInfo().forEach(le=>{const H=le.info?.type;void 0===H||H===Gt.p.UNKNOWN?(Object.keys(re).includes(jt)||(re[jt]=[]),re[jt].push(le.name)):(Object.keys(re).includes(H)||(re[H]=[]),re[H].push(le.name))}),re});groupSmallFractions=(0,I.EW)(()=>({enabled:!0,threshold:.05,groupName:"other"}));onDocumentInfo=(0,rt.QZP)(()=>{this.documentInfoReady.emit(this.documentInfo())});byCategory=(0,I.EW)(()=>{const re={};let le=0;return this.documentInfo().forEach(H=>{const he=H.info?.type;void 0===he||he===Gt.p.UNKNOWN?le+=H.value??0:(Object.keys(re).includes(he)||(re[he]=0),re[he]+=H.value??0)}),le>0&&(re[jt]=le),Object.keys(re).map(H=>({name:H,value:re[H],id:H}))});docChartData=(0,I.EW)(()=>{const re=this.selectedMimeCategories();if(!re.length)return this.byCategory();const le=[];if(re.includes(jt)){const H=this.documentInfo().filter(he=>void 0===he.info||he.info.type===Gt.p.UNKNOWN);le.push(...H)}return this.documentInfo().forEach(H=>{re.includes(H.info?.type??"")&&le.push(H)}),le});selectedMimeCategories=(0,rt.vPA)([]);selectedSuffixes=(0,rt.vPA)([]);handleDataClick(re){var le=this;return(0,L.A)(function*(){const H=re.name,he=le.selectedMimeCategories();if(!H?.startsWith(".")&&!he.length){le.selectedMimeCategories.set([H??""]);const W=le.categorySuffixMap()[H??""];return void le.navigated.emit({filterBy:"suffix",values:W,label:H??""})}const $=W=>{const G=[];return G.push(W.name??""),Array.isArray(W.children)&&W.children.forEach(Z=>{G.push(...$(Z))}),G},Re=$(re),Qe=le.handlers()?.docListFilterRequest;if(void 0===Qe)return;let fe;const ae=Re.some(W=>W.startsWith("."));if(console.log("[DocumentsBySuffix] handleDataClick",ae,Re),ae)fe=yield Qe("suffix",Re),le.navigated.emit({filterBy:"suffix",values:Re,label:H??""});else{const W=le.categorySuffixMap()[Re[0]];fe=yield Qe("suffix",W),le.navigated.emit({filterBy:"suffix",values:W,label:Re[0]})}if(!fe)return;const X=le.handlers()?.subsequentBlockRequest;void 0!==X?X({id:"document-list",data:fe,config:le.config(),focusOnAdd:!0},H,!0):console.error("subsequentBlockRequest is undefined!")})()}handleCanvasClick(){this.selectedMimeCategories.update(()=>[]),this.selectedSuffixes.update(()=>[]),this.navigated.emit(null)}static \u0275fac=function(le){return new(le||$t)};static \u0275cmp=Ae.VBU({type:$t,selectors:[["cue-block-documents-by-suffix"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated",documentInfoReady:"documentInfoReady"},decls:1,vars:5,consts:[[1,"chart",3,"clickedCategory","clickedCanvas","data","doughnut","hoverType","groupSmallFractions","labelThresholdPct"]],template:function(le,H){1&le&&(Ae.j41(0,"cue-pie-chart",0),Ae.bIt("clickedCategory",function(j){return H.handleDataClick(j)})("clickedCanvas",function(){return H.handleCanvasClick()}),Ae.k0s()),2&le&&Ae.Y8G("data",H.docChartData())("doughnut",!0)("hoverType","nameValue")("groupSmallFractions",H.groupSmallFractions())("labelThresholdPct",1)},dependencies:[Kt.r],encapsulation:2,changeDetection:0})}return $t})()},1519(hn,ut,N){N.d(ut,{$:()=>rt,c:()=>I});var L=N(467),M=N(7573);class rt{docListFilterRequest=(0,L.A)(function*(){console.warn("docListFilterRequest block request not implemented")});alternativeRepresentationsRequest=()=>{throw new Error("No alternative representation request handler defined")};buildAgentPlan=(0,L.A)(function*(){console.warn("buildAgentPlan not implemented")});downloadURLRequest=(Vt,Kt=`${M.E.qcy}InformationObject`)=>{throw console.log(Vt,Kt),new Error("No download URL request handler defined")};requestDocumentsByFilter=(0,L.A)(function*(){return console.warn("requestDocumentsByFilter not implemented"),[]});documentDuplicatesRequest=(0,L.A)(function*(){return console.warn("documentDuplicatesRequest not implemented"),{}});executeAgentPlan=(0,L.A)(function*(){return console.warn("executeAgentPlan not implemented"),"xx"});filteredDocumentListRequest;openDocumentInFileManager=()=>{console.warn("openDocumentInFileManager not implemented")};openDocumentInViewer;openEntityInViewer;queryHandler=(0,L.A)(function*(){throw new Error("No query handler defined")});relatedDocumentsRequest=(0,L.A)(function*(){console.warn("relatedDocumentsRequest block request not implemented")});requestEntityLocations=()=>{console.warn("requestEntityLocations not implemented")};requestFullScreen=()=>{console.warn("requestFullScreen not implemented")};requestGeoFeatures=()=>(console.warn("requestGeoFeatures not implemented"),Promise.resolve([]));requestRDFChange;rowClickHandler=()=>{throw new Error("No row click handler defined")};rowHoverHandler=()=>{throw new Error("No row hover handler defined")};subsequentBlockRequest=(0,L.A)(function*(){console.warn("subsequentBlockRequest not implemented")});requestEntityData=()=>{console.warn("requestEntityData not implemented")};requestEntityRelationships=(0,L.A)(function*(){console.warn("requestEntityRelationships not implemented")});openEntity=()=>{console.warn("openEntity not implemented")};requestDocumentData=()=>{console.warn("requestDocumentData not implemented")};requestDocumentURL;removeAgentPlanFromHistory=(0,L.A)(function*(){console.warn("removeAgentPlanFromHistory not implemented")})}class I{canEditContentCategory=!1;canEditEntityCategories=!1}},6114(hn,ut,N){N.d(ut,{N:()=>M,V:()=>rt});var L=N(4820),M=function(I){return I.AAC=".aac",I.ABW=".abw",I.ARC=".arc",I.AVIF=".avif",I.AVI=".avi",I.APNG=".apng",I.BAK=".bak",I.BIN=".bin",I.BMC=".bmc",I.BMP=".bmp",I.BZ=".bz",I.BZ2=".bz2",I.C3D=".c3d",I.CPG=".cpg",I.CSS=".css",I.CSV=".csv",I.DAT=".dat",I.DOC=".doc",I.DOCX=".docx",I.E57=".e57",I.EPUB=".epub",I.EXE=".exe",I.FFS=".ffs",I.FME=".fme",I.FMW=".fmw",I.FRAG=".fragments",I.GH=".gh",I.GZ=".gz",I.GIF=".gif",I.HTML=".html",I.HTM=".htm",I.ICO=".ico",I.ICS=".ics",I.JAR=".jar",I.JPG=".jpg",I.JPEG=".jpeg",I.JSON=".json",I.JSONLD=".jsonld",I.JS=".js",I.MOV=".mov",I.MP3=".mp3",I.MP4=".mp4",I.MPEG=".mpeg",I.MSI=".msi",I.MTL=".mtl",I.ODP=".odp",I.ODS=".ods",I.ODT=".odt",I.OGA=".oga",I.OGG=".ogg",I.OGV=".ogv",I.OGX=".ogx",I.OTF=".otf",I.PNG=".png",I.PDF=".pdf",I.PHP=".php",I.PKG=".pkg",I.PPT=".ppt",I.PPTX=".pptx",I.PS=".ps",I.RAR=".rar",I.RCP=".rcp",I.RTF=".rtf",I.SH=".sh",I.SLK=".slk",I.SVG=".svg",I.TAR=".tar",I.TIFF=".tiff",I.TIF=".tif",I.TTF=".ttf",I.TXT=".txt",I.VGL=".vgl",I.VWX=".vwx",I.WAV=".wav",I.WEBM=".webm",I.WEBP=".webp",I.WMV=".wmv",I.WOFF=".woff",I.WOFF2=".woff2",I.XLS=".xls",I.XLSX=".xlsx",I.XHTML=".xhtml",I.XML=".xml",I.XYZ=".xyz",I.ZIP=".zip",I.SEVEN_Z=".7z",I.DBF=".dbf",I.EML=".eml",I.EMLX=".emlx",I.MBX=".mbx",I.MD=".md",I.MSG=".msg",I.RST=".rst",I.HEIC=".heic",I.MPP=".mpp",I.TSV=".tsv",I.B3DM=".b3dm",I.I3DM=".i3dm",I.PNTS=".pnts",I.CMPT=".cmpt",I.GLTF=".gltf",I.GLB=".glb",I.IFC=".ifc",I.IFCZIP=".ifczip",I.IFXML=".ifcxml",I.THREEDM=".3dm",I.THREEDS=".3ds",I.GHP=".ghp",I.RVT=".rvt",I.RFA=".rfa",I.RFT=".rft",I.RTE=".rte",I.PLA=".pla",I.PLN=".pln",I.GSM=".gsm",I.SMC=".smc",I.BCF=".bcf",I.DWG=".dwg",I.DWL=".dwl",I.DXF=".dxf",I.DGN=".dgn",I.NWD=".nwd",I.OBJ=".obj",I.C4D=".c4d",I.TEKLASTRUCTURES=".teklastructures",I.PTS=".pts",I.LAS=".las",I.LAZ=".laz",I.USDZ=".usdz",I.USDA=".usda",I.USDC=".usdc",I.USD=".usd",I.PSD=".psd",I.PSP=".psp",I.AI=".ai",I.SBN=".sbn",I.SBX=".sbx",I.SHX=".shx",I.SKP=".skp",I.STL=".stl",I.FBX=".fbx",I.KML=".kml",I.SHP=".shp",I}(M||{});const rt={[M.AAC]:{type:L.p.AUDIO,open:!0,suffix:".aac"},[M.ABW]:{type:L.p.TEXT,open:!0,suffix:".abw"},[M.ARC]:{type:L.p.ARCHIVE,open:!1,suffix:".arc"},[M.AVIF]:{type:L.p.IMAGE,open:!0,suffix:".avif"},[M.AVI]:{type:L.p.VIDEO,open:!0,suffix:".avi"},[M.APNG]:{type:L.p.IMAGE,open:!0,suffix:".apng"},[M.BAK]:{type:L.p.BACKUP,open:!1,suffix:".bak"},[M.BIN]:{type:L.p.BINARY,open:!1,suffix:".bin"},[M.BMC]:{type:L.p.BIM,open:!1,suffix:".bmc"},[M.BMP]:{type:L.p.IMAGE,open:!0,suffix:".bmp"},[M.BZ]:{type:L.p.ARCHIVE,open:!0,suffix:".bz"},[M.BZ2]:{type:L.p.ARCHIVE,open:!0,suffix:".bz2"},[M.C3D]:{type:L.p.THREE_D,open:!0,suffix:".c3d"},[M.CPG]:{type:L.p.GEOSPATIAL,open:!0,suffix:".cpg"},[M.CSS]:{type:L.p.MARKUP,open:!0,suffix:".css"},[M.CSV]:{type:L.p.DATA,open:!0,suffix:".csv"},[M.DAT]:{type:L.p.DATA,open:!1,suffix:".dat"},[M.DBF]:{type:L.p.DATA,open:!0,suffix:".dbf"},[M.DOC]:{type:L.p.TEXT,open:!1,suffix:".doc"},[M.DOCX]:{type:L.p.TEXT,open:!0,suffix:".docx"},[M.E57]:{type:L.p.THREE_D,open:!0,suffix:".e57"},[M.EPUB]:{type:L.p.TEXT,open:!0,suffix:".epub"},[M.EXE]:{type:L.p.INSTALLER,open:!1,suffix:".exe"},[M.FFS]:{type:L.p.AUTOMATION,open:!1,suffix:".ffs"},[M.FME]:{type:L.p.AUTOMATION,open:!1,suffix:".fme"},[M.FMW]:{type:L.p.AUTOMATION,open:!1,suffix:".fmw"},[M.FRAG]:{type:L.p.BIM,open:!0,suffix:".fragments"},[M.GH]:{type:L.p.THREE_D,open:!1,suffix:".gh"},[M.GZ]:{type:L.p.ARCHIVE,open:!0,suffix:".gz"},[M.GIF]:{type:L.p.IMAGE,open:!0,suffix:".gif"},[M.HTML]:{type:L.p.MARKUP,open:!0,suffix:".html"},[M.HTM]:{type:L.p.MARKUP,open:!0,suffix:".htm"},[M.ICO]:{type:L.p.IMAGE,open:!1,suffix:".ico"},[M.ICS]:{type:L.p.DATA,open:!0,suffix:".ics"},[M.JAR]:{type:L.p.ARCHIVE,open:!0,suffix:".jar"},[M.JPG]:{type:L.p.IMAGE,open:!0,suffix:".jpg"},[M.JPEG]:{type:L.p.IMAGE,open:!0,suffix:".jpeg"},[M.JSON]:{type:L.p.DATA,open:!0,suffix:".json"},[M.JSONLD]:{type:L.p.DATA,open:!0,suffix:".jsonld"},[M.JS]:{type:L.p.SCRIPT,open:!0,suffix:".js"},[M.MSI]:{type:L.p.INSTALLER,open:!1,suffix:".msi"},[M.MOV]:{type:L.p.VIDEO,open:!0,suffix:".mov"},[M.MP3]:{type:L.p.AUDIO,open:!0,suffix:".mp3"},[M.MP4]:{type:L.p.VIDEO,open:!0,suffix:".mp4"},[M.MPEG]:{type:L.p.VIDEO,open:!0,suffix:".mpeg"},[M.MTL]:{type:L.p.THREE_D,open:!0,suffix:".mtl"},[M.ODP]:{type:L.p.PRESENTATION,open:!0,suffix:".odp"},[M.ODS]:{type:L.p.SPREADSHEET,open:!0,suffix:".ods"},[M.ODT]:{type:L.p.TEXT,open:!0,suffix:".odt"},[M.OGA]:{type:L.p.AUDIO,open:!0,suffix:".oga"},[M.OGG]:{type:L.p.AUDIO,open:!0,suffix:".ogg"},[M.OGV]:{type:L.p.VIDEO,open:!0,suffix:".ogv"},[M.OGX]:{type:L.p.VIDEO,open:!0,suffix:".ogx"},[M.OTF]:{type:L.p.FONT,open:!0,suffix:".otf"},[M.PNG]:{type:L.p.IMAGE,open:!0,suffix:".png"},[M.PDF]:{type:L.p.TEXT,open:!0,suffix:".pdf"},[M.PHP]:{type:L.p.SCRIPT,open:!0,suffix:".php"},[M.PKG]:{type:L.p.INSTALLER,open:!1,suffix:".pkg"},[M.PPT]:{type:L.p.PRESENTATION,open:!1,suffix:".ppt"},[M.PPTX]:{type:L.p.PRESENTATION,open:!0,suffix:".pptx"},[M.PS]:{type:L.p.IMAGE,open:!1,suffix:".ps"},[M.RAR]:{type:L.p.ARCHIVE,open:!1,suffix:".rar"},[M.RCP]:{type:L.p.THREE_D,open:!1,suffix:".rcp"},[M.RTF]:{type:L.p.TEXT,open:!0,suffix:".rtf"},[M.SBN]:{type:L.p.GEOSPATIAL,open:!1,suffix:".sbn"},[M.SBX]:{type:L.p.GEOSPATIAL,open:!1,suffix:".sbx"},[M.SHX]:{type:L.p.GEOSPATIAL,open:!0,suffix:".shx"},[M.SH]:{type:L.p.SCRIPT,open:!0,suffix:".sh"},[M.SLK]:{type:L.p.DATA,open:!0,suffix:".slk"},[M.SVG]:{type:L.p.IMAGE,open:!0,suffix:".svg"},[M.TAR]:{type:L.p.ARCHIVE,open:!0,suffix:".tar"},[M.TIFF]:{type:L.p.IMAGE,open:!0,suffix:".tiff"},[M.TIF]:{type:L.p.IMAGE,open:!0,suffix:".tif"},[M.TTF]:{type:L.p.FONT,open:!0,suffix:".ttf"},[M.TXT]:{type:L.p.TEXT,open:!0,suffix:".txt"},[M.VGL]:{type:L.p.THREE_D,open:!1,suffix:".vgl"},[M.VWX]:{type:L.p.CAD,open:!1,suffix:".vwx"},[M.WAV]:{type:L.p.AUDIO,open:!0,suffix:".wav"},[M.WEBM]:{type:L.p.VIDEO,open:!0,suffix:".webm"},[M.WEBP]:{type:L.p.IMAGE,open:!0,suffix:".webp"},[M.WMV]:{type:L.p.VIDEO,open:!0,suffix:".wmv"},[M.WOFF]:{type:L.p.FONT,open:!0,suffix:".woff"},[M.WOFF2]:{type:L.p.FONT,open:!0,suffix:".woff2"},[M.XLS]:{type:L.p.SPREADSHEET,open:!1,suffix:".xls"},[M.XLSX]:{type:L.p.SPREADSHEET,open:!0,suffix:".xlsx"},[M.XHTML]:{type:L.p.MARKUP,open:!0,suffix:".xhtml"},[M.XML]:{type:L.p.DATA,open:!0,suffix:".xml"},[M.XYZ]:{type:L.p.THREE_D,open:!0,suffix:".xyz"},[M.ZIP]:{type:L.p.ARCHIVE,open:!0,suffix:".zip"},[M.SEVEN_Z]:{type:L.p.ARCHIVE,open:!0,suffix:".7z"},[M.EML]:{type:L.p.EMAIL,open:!0,suffix:".eml"},[M.EMLX]:{type:L.p.EMAIL,open:!0,suffix:".emlx"},[M.MBX]:{type:L.p.EMAIL,open:!0,suffix:".mbx"},[M.MD]:{type:L.p.TEXT,open:!0,suffix:".md"},[M.MSG]:{type:L.p.EMAIL,open:!1,suffix:".msg"},[M.RST]:{type:L.p.TEXT,open:!0,suffix:".rst"},[M.HEIC]:{type:L.p.IMAGE,open:!1,suffix:".heic"},[M.MPP]:{type:L.p.PLANNING,open:!1,suffix:".mpp"},[M.TSV]:{type:L.p.DATA,open:!0,suffix:".tsv"},[M.B3DM]:{type:L.p.THREE_D,open:!0,suffix:".b3dm"},[M.I3DM]:{type:L.p.THREE_D,open:!0,suffix:".i3dm"},[M.PNTS]:{type:L.p.THREE_D,open:!1,suffix:".pnts"},[M.CMPT]:{type:L.p.THREE_D,open:!1,suffix:".cmpt"},[M.GLTF]:{type:L.p.THREE_D,open:!0,suffix:".gltf"},[M.GLB]:{type:L.p.THREE_D,open:!0,suffix:".glb"},[M.IFC]:{type:L.p.BIM,open:!0,suffix:".ifc"},[M.IFCZIP]:{type:L.p.BIM,open:!0,suffix:".ifczip"},[M.IFXML]:{type:L.p.BIM,open:!0,suffix:".ifcxml"},[M.THREEDM]:{type:L.p.CAD,open:!1,suffix:".3dm"},[M.THREEDS]:{type:L.p.THREE_D,open:!1,suffix:".3ds"},[M.GHP]:{type:L.p.CAD,open:!1,suffix:".ghp"},[M.RVT]:{type:L.p.BIM,open:!1,suffix:".rvt"},[M.RFA]:{type:L.p.BIM,open:!1,suffix:".rfa"},[M.RFT]:{type:L.p.BIM,open:!1,suffix:".rft"},[M.RTE]:{type:L.p.BIM,open:!1,suffix:".rte"},[M.PLA]:{type:L.p.BIM,open:!1,suffix:".pla"},[M.PLN]:{type:L.p.BIM,open:!1,suffix:".pln"},[M.GSM]:{type:L.p.BIM,open:!1,suffix:".gsm"},[M.SMC]:{type:L.p.BIM,open:!1,suffix:".smc"},[M.STL]:{type:L.p.THREE_D,open:!0,suffix:".stl"},[M.BCF]:{type:L.p.BIM,open:!0,suffix:".bcf"},[M.DWG]:{type:L.p.CAD,open:!1,suffix:".dwg"},[M.DWL]:{type:L.p.CAD,open:!1,suffix:".dwl"},[M.DXF]:{type:L.p.CAD,open:!0,suffix:".dxf"},[M.DGN]:{type:L.p.CAD,open:!1,suffix:".dgn"},[M.NWD]:{type:L.p.BIM,open:!1,suffix:".nwd"},[M.OBJ]:{type:L.p.THREE_D,open:!0,suffix:".obj"},[M.C4D]:{type:L.p.THREE_D,open:!1,suffix:".c4d"},[M.TEKLASTRUCTURES]:{type:L.p.BIM,open:!1,suffix:".teklastructures"},[M.PTS]:{type:L.p.THREE_D,open:!1,suffix:".pts"},[M.LAS]:{type:L.p.THREE_D,open:!0,suffix:".las"},[M.LAZ]:{type:L.p.THREE_D,open:!0,suffix:".laz"},[M.USDZ]:{type:L.p.THREE_D,open:!0,suffix:".usdz"},[M.USDA]:{type:L.p.THREE_D,open:!0,suffix:".usda"},[M.USDC]:{type:L.p.THREE_D,open:!0,suffix:".usdc"},[M.USD]:{type:L.p.THREE_D,open:!0,suffix:".usd"},[M.PSD]:{type:L.p.IMAGE,open:!1,suffix:".psd"},[M.PSP]:{type:L.p.IMAGE,open:!1,suffix:".psp"},[M.AI]:{type:L.p.IMAGE,open:!1,suffix:".ai"},[M.SKP]:{type:L.p.THREE_D,open:!1,suffix:".skp"},[M.FBX]:{type:L.p.THREE_D,open:!0,suffix:".fbx"},[M.KML]:{type:L.p.GEOSPATIAL,open:!0,suffix:".kml"},[M.SHP]:{type:L.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(hn,ut,N){N.d(ut,{p:()=>L});var L=function(M){return M.AUTOMATION="automation",M.ARCHIVE="archive",M.AUDIO="audio",M.BACKUP="backup",M.BINARY="binary",M.BIM="bim",M.CAD="cad",M.DATA="data",M.EMAIL="email",M.FONT="font",M.GEOSPATIAL="geospatial",M.IMAGE="image",M.INSTALLER="installer",M.MARKUP="markup",M.MULTIMEDIA="multimedia",M.PLANNING="planning",M.PRESENTATION="presentation",M.SCRIPT="script",M.SPREADSHEET="spreadsheet",M.TEXT="text",M.THREE_D="3d",M.UNKNOWN="unknown",M.VIDEO="video",M}(L||{})},7573(hn,ut,N){N.d(ut,{E:()=>L});const L={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);