@qaecy/cue-ui 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/112.js +1 -0
- package/149.js +1 -0
- package/245.js +1 -1
- package/247.js +3 -0
- package/284.js +1 -1
- package/{236.js → 311.js} +1 -1
- package/334.js +1 -0
- package/336.js +1 -1
- package/376.js +1 -1
- package/382.js +1 -0
- package/393.js +1 -0
- package/418.js +1 -1
- package/419.js +1 -1
- package/523.js +1 -1
- package/540.js +1 -0
- package/544.js +1 -0
- package/560.js +1 -1
- package/571.js +1 -0
- package/60.js +1 -1
- package/722.js +1 -0
- package/740.js +1 -0
- package/741.js +1 -1
- package/903.js +1 -0
- package/911.js +1 -0
- package/960.js +1 -0
- package/995.js +1 -0
- package/README.md +127 -288
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/runtime.js +1 -1
- package/344.js +0 -1
- package/371.js +0 -1
- package/443.js +0 -1
- package/570.js +0 -1
- package/613.js +0 -1
- package/710.js +0 -1
- package/774.js +0 -1
- package/83.js +0 -1
package/571.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[571],{4571(uo,Cr,Y){Y.d(Cr,{BlockProjectDocuments:()=>Z2});var R={};Y.r(R),Y.d(R,{EPSILON:()=>EC,HashMap:()=>Tv,RADIAN_TO_DEGREE:()=>Dv,assert:()=>tr,bind:()=>ve,clone:()=>le,concatArray:()=>wv,createCanvas:()=>MC,createHashMap:()=>ae,createObject:()=>$i,curry:()=>Re,defaults:()=>we,disableUserSelect:()=>Wu,each:()=>D,eqNaN:()=>Zi,extend:()=>N,filter:()=>Pe,find:()=>AC,guid:()=>Hu,hasOwn:()=>J,indexOf:()=>fe,inherits:()=>Gu,isArray:()=>G,isArrayLike:()=>Ke,isBuiltInObject:()=>Vu,isDom:()=>vi,isFunction:()=>ee,isGradientObject:()=>ji,isImagePatternObject:()=>Cv,isNumber:()=>_e,isObject:()=>K,isPrimitive:()=>di,isRegExp:()=>PC,isString:()=>j,isStringSafe:()=>ho,isTypedArray:()=>rt,keys:()=>ge,logError:()=>co,map:()=>$,merge:()=>xe,mergeAll:()=>DC,mixin:()=>zt,noop:()=>nt,normalizeCssArray:()=>po,reduce:()=>Ht,retrieve:()=>Ki,retrieve2:()=>Q,retrieve3:()=>Vr,setAsPrimitive:()=>go,slice:()=>vo,trim:()=>Gt});var P={};Y.r(P),Y.d(P,{add:()=>qu,applyTransform:()=>mt,clone:()=>Mv,copy:()=>kC,create:()=>gn,dist:()=>_o,distSquare:()=>yn,distance:()=>mo,distanceSquare:()=>Pv,div:()=>HC,dot:()=>GC,len:()=>Uu,lenSquare:()=>Yu,length:()=>NC,lengthSquare:()=>FC,lerp:()=>So,max:()=>qr,min:()=>Wr,mul:()=>zC,negate:()=>VC,normalize:()=>Lv,scale:()=>yo,scaleAndAdd:()=>BC,set:()=>OC,sub:()=>Av});var zr={};Y.r(zr),Y.d(zr,{clone:()=>ob,copy:()=>bo,create:()=>Vt,identity:()=>Qi,invert:()=>_n,mul:()=>mn,rotate:()=>To,scale:()=>Bv,translate:()=>xo});var I={};Y.r(I),Y.d(I,{fastLerp:()=>cd,fastMapToColor:()=>Eb,lerp:()=>hd,lift:()=>cl,liftColor:()=>hl,lum:()=>aa,mapToColor:()=>kb,modifyAlpha:()=>Ob,modifyHSL:()=>ko,parse:()=>Ct,parseCssFloat:()=>Xr,parseCssInt:()=>Io,random:()=>Bb,stringify:()=>Zr,toHex:()=>Ib});var dn={};Y.r(dn),Y.d(dn,{dispose:()=>yx,disposeAll:()=>mx,getElementSSRData:()=>Sx,getInstance:()=>_x,init:()=>Nl,registerPainter:()=>Bd,registerSSRDataGetter:()=>Nd,version:()=>Cx});var fi={};Y.r(fi),Y.d(fi,{Arc:()=>ks,BezierCurve:()=>xc,BoundingRect:()=>ne,Circle:()=>Is,CompoundPath:()=>tm,Ellipse:()=>_c,Group:()=>bt,Image:()=>tn,IncrementalDisplayable:()=>om,Line:()=>zi,LinearGradient:()=>nm,OrientedBoundingRect:()=>am,Path:()=>Te,Point:()=>te,Polygon:()=>bc,Polyline:()=>Na,RadialGradient:()=>im,Rect:()=>Xe,Ring:()=>Cc,Sector:()=>Ba,Text:()=>Ne,WH:()=>um,XY:()=>sm,applyTransform:()=>Pc,calcZ2Range:()=>NM,clipPointsByRect:()=>pm,clipRectByRect:()=>gm,createIcon:()=>zs,ensureCopyRect:()=>za,ensureCopyTransform:()=>Oc,expandOrShrinkRect:()=>Ic,extendPath:()=>fm,extendShape:()=>lm,getShapeClass:()=>Dc,getTransform:()=>vm,groupTransition:()=>kM,initProps:()=>rn,isBoundingRectAxisAligned:()=>kc,isElementRemoved:()=>Ai,lineLineIntersect:()=>ym,linePolygonIntersect:()=>OM,makeImage:()=>Mc,makePath:()=>Fs,mergePath:()=>hm,registerShape:()=>Ot,removeElement:()=>rg,removeElementWithFadeOut:()=>ig,resizePath:()=>Ac,retrieveZInfo:()=>Sm,setTooltipConfig:()=>Fa,subPixelOptimize:()=>RM,subPixelOptimizeLine:()=>Lc,subPixelOptimizeRect:()=>PM,transformDirection:()=>IM,traverseElements:()=>_m,traverseUpdateZ:()=>Cm,updateProps:()=>jt});var pn={};Y.r(pn),Y.d(pn,{createDimensions:()=>EL,createList:()=>kP,createScale:()=>BP,createSymbol:()=>qs,createTextStyle:()=>FP,dataStack:()=>OP,enableHoverEmphasis:()=>us,getECData:()=>de,getLayoutRect:()=>Rr,mixinAxisModelCommonMethods:()=>NP});var ci={};Y.r(ci),Y.d(ci,{MAX_SAFE_INTEGER:()=>Lx,asc:()=>Dx,getPercentWithPrecision:()=>Mx,getPixelPrecision:()=>Gd,getPrecision:()=>sr,getPrecisionSafe:()=>Hd,isNumeric:()=>qd,isRadianAroundZero:()=>ca,linearMap:()=>jo,nice:()=>Gl,numericToNumber:()=>Tr,parseDate:()=>xr,parsePercent:()=>Se,quantile:()=>Rx,quantity:()=>Wd,quantityExponent:()=>Hl,reformIntervals:()=>Ix,remRadian:()=>zl,round:()=>or});var Iu={};Y.r(Iu),Y.d(Iu,{format:()=>ba,parse:()=>xr,roundTime:()=>gs});var Eu={};Y.r(Eu),Y.d(Eu,{Arc:()=>ks,BezierCurve:()=>xc,BoundingRect:()=>ne,Circle:()=>Is,CompoundPath:()=>tm,Ellipse:()=>_c,Group:()=>bt,Image:()=>tn,IncrementalDisplayable:()=>om,Line:()=>zi,LinearGradient:()=>nm,Polygon:()=>bc,Polyline:()=>Na,RadialGradient:()=>im,Rect:()=>Xe,Ring:()=>Cc,Sector:()=>Ba,Text:()=>Ne,clipPointsByRect:()=>pm,clipRectByRect:()=>gm,createIcon:()=>zs,extendPath:()=>fm,extendShape:()=>lm,getShapeClass:()=>Dc,getTransform:()=>vm,initProps:()=>rn,makeImage:()=>Mc,makePath:()=>Fs,mergePath:()=>hm,registerShape:()=>Ot,resizePath:()=>Ac,updateProps:()=>jt});var ku={};Y.r(ku),Y.d(ku,{addCommas:()=>Vf,capitalFirst:()=>tw,encodeHTML:()=>it,formatTime:()=>ew,formatTpl:()=>Yf,getTextRect:()=>qP,getTooltipMarker:()=>wg,normalizeCssArray:()=>xa,toCamelCase:()=>Wf,truncateText:()=>u1});var Ou={};Y.r(Ou),Y.d(Ou,{bind:()=>ve,clone:()=>le,curry:()=>Re,defaults:()=>we,each:()=>D,extend:()=>N,filter:()=>Pe,indexOf:()=>fe,inherits:()=>Gu,isArray:()=>G,isFunction:()=>ee,isObject:()=>K,isString:()=>j,map:()=>$,merge:()=>xe,reduce:()=>Ht});var Bu={};Y.r(Bu),Y.d(Bu,{Axis:()=>aR,ChartView:()=>kr,ComponentModel:()=>De,ComponentView:()=>kt,List:()=>gh,Model:()=>Fe,PRIORITY:()=>c0,SeriesModel:()=>an,color:()=>I,connect:()=>lL,dataTool:()=>yL,dependencies:()=>UA,disConnect:()=>fL,disconnect:()=>D0,dispose:()=>cL,env:()=>ue,extendChartView:()=>lR,extendComponentModel:()=>oR,extendComponentView:()=>sR,extendSeriesModel:()=>uR,format:()=>ku,getCoordinateSystemDimensions:()=>vL,getInstanceByDom:()=>oh,getInstanceById:()=>hL,getMap:()=>gL,graphic:()=>Eu,helper:()=>pn,init:()=>uL,innerDrawElementOnCanvas:()=>Wc,matrix:()=>zr,number:()=>ci,parseGeoJSON:()=>y_,parseGeoJson:()=>y_,registerAction:()=>ni,registerCoordinateSystem:()=>L0,registerCustomSeries:()=>dL,registerLayout:()=>P0,registerLoading:()=>ch,registerLocale:()=>If,registerMap:()=>I0,registerPostInit:()=>M0,registerPostUpdate:()=>A0,registerPreprocessor:()=>uh,registerProcessor:()=>lh,registerTheme:()=>sh,registerTransform:()=>E0,registerUpdateLifecycle:()=>iu,registerVisual:()=>on,setCanvasCreator:()=>pL,setPlatformAPI:()=>yv,throttle:()=>Nc,time:()=>Iu,use:()=>sn,util:()=>Ou,vector:()=>P,version:()=>qA,zrUtil:()=>R,zrender:()=>dn});var Ve=Y(467),me=Y(7705),oe=Y(5802),pe=Y(2271),cv=Y(6114),O=Y(5547),se=Y(9079),hv=Y(2771),tC=Y(8359),rC=Y(1413),vv=Y(3236),nC=Y(4226),iC=Y(9974),dv=Y(4360),aC=Y(8750),sC=Y(1584);var lC=Y(5558);const pv=new oe.nKC("NGX_ECHARTS_CONFIG");class fC{constructor(){this.subject=new hv.m(1),this.subscriptions=new tC.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 i=n[e].currentValue;null!=i&&r(i)}}))}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 i=n[e].currentValue;null!=i&&r(i)}}))}}let cC=(()=>{class t{constructor(){this.el=(0,oe.WQX)(O.aKT),this.ngZone=(0,oe.WQX)(oe.SKi),this.config=(0,oe.WQX)(pv),this.options=(0,me.hFB)(null),this.theme=(0,me.hFB)(this.config.theme??null),this.initOpts=(0,me.hFB)(null),this.merge=(0,me.hFB)(null),this.autoResize=(0,me.hFB)(!0),this.loading=(0,me.hFB)(!1),this.loadingType=(0,me.hFB)("default"),this.loadingOpts=(0,me.hFB)(null),this.chartInit=(0,me.CGW)(),this.optionsError=(0,me.CGW)(),this.chartClick=(0,se.p)(this.createLazyEvent("click")),this.chartDblClick=(0,se.p)(this.createLazyEvent("dblclick")),this.chartMouseDown=(0,se.p)(this.createLazyEvent("mousedown")),this.chartMouseMove=(0,se.p)(this.createLazyEvent("mousemove")),this.chartMouseUp=(0,se.p)(this.createLazyEvent("mouseup")),this.chartMouseOver=(0,se.p)(this.createLazyEvent("mouseover")),this.chartMouseOut=(0,se.p)(this.createLazyEvent("mouseout")),this.chartGlobalOut=(0,se.p)(this.createLazyEvent("globalout")),this.chartContextMenu=(0,se.p)(this.createLazyEvent("contextmenu")),this.chartHighlight=(0,se.p)(this.createLazyEvent("highlight")),this.chartDownplay=(0,se.p)(this.createLazyEvent("downplay")),this.chartSelectChanged=(0,se.p)(this.createLazyEvent("selectchanged")),this.chartLegendSelectChanged=(0,se.p)(this.createLazyEvent("legendselectchanged")),this.chartLegendSelected=(0,se.p)(this.createLazyEvent("legendselected")),this.chartLegendUnselected=(0,se.p)(this.createLazyEvent("legendunselected")),this.chartLegendLegendSelectAll=(0,se.p)(this.createLazyEvent("legendselectall")),this.chartLegendLegendInverseSelect=(0,se.p)(this.createLazyEvent("legendinverseselect")),this.chartLegendScroll=(0,se.p)(this.createLazyEvent("legendscroll")),this.chartDataZoom=(0,se.p)(this.createLazyEvent("datazoom")),this.chartDataRangeSelected=(0,se.p)(this.createLazyEvent("datarangeselected")),this.chartGraphRoam=(0,se.p)(this.createLazyEvent("graphroam")),this.chartGeoRoam=(0,se.p)(this.createLazyEvent("georoam")),this.chartTreeRoam=(0,se.p)(this.createLazyEvent("treeroam")),this.chartTimelineChanged=(0,se.p)(this.createLazyEvent("timelinechanged")),this.chartTimelinePlayChanged=(0,se.p)(this.createLazyEvent("timelineplaychanged")),this.chartRestore=(0,se.p)(this.createLazyEvent("restore")),this.chartDataViewChanged=(0,se.p)(this.createLazyEvent("dataviewchanged")),this.chartMagicTypeChanged=(0,se.p)(this.createLazyEvent("magictypechanged")),this.chartGeoSelectChanged=(0,se.p)(this.createLazyEvent("geoselectchanged")),this.chartGeoSelected=(0,se.p)(this.createLazyEvent("geoselected")),this.chartGeoUnselected=(0,se.p)(this.createLazyEvent("geounselected")),this.chartAxisAreaSelected=(0,se.p)(this.createLazyEvent("axisareaselected")),this.chartBrush=(0,se.p)(this.createLazyEvent("brush")),this.chartBrushEnd=(0,se.p)(this.createLazyEvent("brushend")),this.chartBrushSelected=(0,se.p)(this.createLazyEvent("brushselected")),this.chartGlobalCursorTaken=(0,se.p)(this.createLazyEvent("globalcursortaken")),this.chartRendered=(0,se.p)(this.createLazyEvent("rendered")),this.chartFinished=(0,se.p)(this.createLazyEvent("finished")),this.animationFrameID=null,this.chart$=new hv.m(1),this.resize$=new rC.B,this.changeFilter=new fC,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 uC(t,e=vv.E,r){const n=(0,sC.O)(t,e);return function oC(t,e){return(0,iC.N)((r,n)=>{const{leading:i=!0,trailing:a=!1}=e??{};let o=!1,s=null,u=null,l=!1;const f=()=>{u?.unsubscribe(),u=null,a&&(h(),l&&n.complete())},c=()=>{u=null,l&&n.complete()},v=d=>u=(0,aC.Tg)(t(d)).subscribe((0,dv._)(n,f,c)),h=()=>{if(o){o=!1;const d=s;s=null,n.next(d),!l&&v(d)}};r.subscribe((0,dv._)(n,d=>{o=!0,s=d,(!u||u.closed)&&(i?h():v(d))},()=>{l=!0,(!(a&&o&&u)||u.closed)&&n.complete()}))})}(()=>n,r)}(100,vv.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(i){console.error(i),this.optionsError.emit(i)}}refreshChart(){var r=this;return(0,Ve.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:i})=>i(r,this.theme()??this.config?.theme,this.initOpts())))}initChart(){var r=this;return(0,Ve.A)(function*(){yield r.onOptionsChange(r.options());const n=r.merge();n&&r.chart&&r.setOption(n)})()}onOptionsChange(r){var n=this;return(0,Ve.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,se.yC)(this.chartInit).pipe((0,lC.n)(n=>new nC.c(i=>(n.on(r,a=>this.ngZone.run(()=>i.next(a))),()=>{this.chart&&(this.chart.isDisposed()||n.off(r))}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=O.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:[O.OA$]})}}return t})();function gv(t){return{provide:pv,useValue:t}}let hC=(()=>{class t{static forRoot(r){return{ngModule:t,providers:[gv(r)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=O.$C({type:t})}static{this.\u0275inj=oe.G2t({})}}return t})();var Z=Y(5215),vC=function(){return function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Hr=new(function(){return function t(){this.browser=new vC,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?(Hr.wxa=!0,Hr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Hr.worker=!0:!Hr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Hr.node=!0,Hr.svgSupported=!0):function pC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);if(n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),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,Hr);const ue=Hr;var Gr="12px sans-serif",CC=function SC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-20)/100;e[n]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Dt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=Dt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Gr),t.measureText(r);r=r||"";var a=/((?:\d+)?\.?\d*)px/.exec(n=n||Gr),o=a&&+a[1]||12,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=CC[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}};function yv(t){for(var e in Dt)t[e]&&(Dt[e]=t[e])}var mv=Ht(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),_v=Ht(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),hi=Object.prototype.toString,lo=Array.prototype,bC=lo.forEach,xC=lo.filter,Fu=lo.slice,TC=lo.map,Sv=function(){}.constructor,fo=Sv?Sv.prototype:null,zu="__proto__",wC=2311;function Hu(){return wC++}function co(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function le(t){if(null==t||"object"!=typeof t)return t;var e=t,r=hi.call(t);if("[object Array]"===r){if(!di(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=le(t[n])}}else if(_v[r]){if(!di(t)){var a=t.constructor;if(a.from)e=a.from(t);else for(e=new a(t.length),n=0,i=t.length;n<i;n++)e[n]=t[n]}}else if(!mv[r]&&!di(t)&&!vi(t))for(var o in e={},t)t.hasOwnProperty(o)&&o!==zu&&(e[o]=le(t[o]));return e}function xe(t,e,r){if(!K(e)||!K(t))return r?le(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==zu){var i=t[n],a=e[n];!K(a)||!K(i)||G(a)||G(i)||vi(a)||vi(i)||Vu(a)||Vu(i)||di(a)||di(i)?(r||!(n in t))&&(t[n]=le(e[n])):xe(i,a,r)}return t}function DC(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=xe(r,t[n],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==zu&&(t[r]=e[r]);return t}function we(t,e,r){for(var n=ge(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var MC=Dt.createCanvas;function fe(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 Gu(t,e){var r=t.prototype;function n(){}for(var i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function zt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=e[a]:null==t[a])&&(t[a]=e[a])}else we(t,e,r)}function Ke(t){return!(!t||"string"==typeof t)&&"number"==typeof t.length}function D(t,e,r){if(t&&e)if(t.forEach&&t.forEach===bC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function $(t,e,r){if(!t)return[];if(!e)return vo(t);if(t.map&&t.map===TC)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Ht(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Pe(t,e,r){if(!t)return[];if(!e)return vo(t);if(t.filter&&t.filter===xC)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function AC(t,e,r){if(t&&e)for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}function ge(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 ve=fo&&ee(fo.bind)?fo.call.bind(fo.bind):function LC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Fu.call(arguments)))}};function Re(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Fu.call(arguments)))}}function G(t){return Array.isArray?Array.isArray(t):"[object Array]"===hi.call(t)}function ee(t){return"function"==typeof t}function j(t){return"string"==typeof t}function ho(t){return"[object String]"===hi.call(t)}function _e(t){return"number"==typeof t}function K(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Vu(t){return!!mv[hi.call(t)]}function rt(t){return!!_v[hi.call(t)]}function vi(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ji(t){return null!=t.colorStops}function Cv(t){return null!=t.image}function PC(t){return"[object RegExp]"===hi.call(t)}function Zi(t){return t!=t}function Ki(){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 Q(t,e){return t??e}function Vr(t,e,r){return t??e??r}function vo(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Fu.apply(t,e)}function po(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 tr(t,e){if(!t)throw new Error(e)}function Gt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var bv="__ec_primitive__";function go(t){t[bv]=!0}function di(t){return t[bv]}var RC=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 ge(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),xv="function"==typeof Map,Tv=function(){function t(e){var r=G(e);this.data=function IC(){return xv?new Map:new RC}();var n=this;function i(a,o){r?n.set(a,o):n.set(o,a)}e instanceof t?e.each(i):e&&D(e,i)}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return xv?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ae(t){return new Tv(t)}function wv(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];var i=t.length;for(n=0;n<e.length;n++)r[n+i]=e[n];return r}function $i(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&N(r,e),r}function Wu(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(t,e){return t.hasOwnProperty(e)}function nt(){}var Dv=180/Math.PI,EC=Number.EPSILON||Math.pow(2,-52);function gn(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function kC(t,e){return t[0]=e[0],t[1]=e[1],t}function Mv(t){return[t[0],t[1]]}function OC(t,e,r){return t[0]=e,t[1]=r,t}function qu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function BC(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Av(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Uu(t){return Math.sqrt(Yu(t))}var NC=Uu;function Yu(t){return t[0]*t[0]+t[1]*t[1]}var FC=Yu;function zC(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function HC(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function GC(t,e){return t[0]*e[0]+t[1]*e[1]}function yo(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Lv(t,e){var r=Uu(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function mo(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _o=mo;function Pv(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var yn=Pv;function VC(t,e){return t[0]=-e[0],t[1]=-e[1],t}function So(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 mt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Wr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function qr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var pi=function(){return function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}}(),WC=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 pi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new pi(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new pi(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new pi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new pi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new pi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const qC=WC;var UC=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if("function"==typeof r&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;null!=r&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[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 i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&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 i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!a||!a.filter||null==l.query||a.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 a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!a||!a.filter||null==f.query||a.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1))}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}();const rr=UC;var YC=Math.log(2);function Xu(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(1===e){var u=Math.round(Math.log((1<<s)-1&~i)/YC);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&i||(c+=(h%2?-1:1)*t[r][v]*Xu(t,e-1,f,l,i|d,a),h++)}return a[o]=c,c}function Rv(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Xu(r,8,0,0,0,n);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Xu(r,7,0===o?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var Co="___zrEVENTSAVED",ju=[];function Zu(t,e,r,n,i){if(e.getBoundingClientRect&&ue.domSupported&&!Iv(e)){var a=e[Co]||(e[Co]={}),o=function ZC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),u=a%2,l=(a>>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",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}(e,a),s=function KC(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=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&&a&&v===a[c]&&h===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?Rv(s,o):Rv(o,s))}(o,a,i);if(s)return s(t,r,n),!0}return!1}function Iv(t){return"CANVAS"===t.nodeName.toUpperCase()}var $C=/([&<>"'])/g,QC={"&":"&","<":"<",">":">",'"':""","'":"'"};function it(t){return null==t?"":(t+"").replace($C,function(e,r){return QC[r]})}var JC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ku=[],eb=ue.browser.firefox&&+ue.browser.version.split(".")[0]<39;function $u(t,e,r,n){return r=r||{},n?Ev(t,e,r):eb&&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):Ev(t,e,r),r}function Ev(t,e,r){if(ue.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Iv(t)){var a=t.getBoundingClientRect();return r.zrX=n-a.left,void(r.zrY=i-a.top)}if(Zu(Ku,t,n,i))return r.zrX=Ku[0],void(r.zrY=Ku[1])}r.zrX=r.zrY=0}function Qu(t){return t||window.event}function Mt(t,e,r){if(null!=(e=Qu(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&&$u(t,o,e,r)}else{$u(t,e,e,r);var a=function tb(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=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&JC.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function nb(t,e,r,n){t.removeEventListener(e,r,n)}var kv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},ib=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=$u(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Ju)if(Ju.hasOwnProperty(r)){var n=Ju[r](this._track,e);if(n)return n}},t}();function Ov(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var Ju={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Ov(n)/Ov(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=function ab(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 Vt(){return[1,0,0,1,0,0]}function Qi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function bo(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 mn(t,e,r){var i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=e[0]*r[0]+e[2]*r[1],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function xo(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 To(t,e,r,n){void 0===n&&(n=[0,0]);var i=e[0],a=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]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+u*f,t[3]=-a*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 Bv(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function _n(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(t[0]=o*(u=1/u),t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}function ob(t){var e=[1,0,0,1,0,0];return bo(e,t),e}var sb=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}();const te=sb;var Sn=Math.min,gi=Math.max,el=Math.abs,Nv=["x","y"],ub=["width","height"],Cn=new te,bn=new te,xn=new te,Tn=new te,_t=zv(),Ji=_t.minTv,tl=_t.maxTv,ea=[0,0],rl=function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r+=i,i=-i),a<0&&(n+=a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Sn(e.x,this.x),n=Sn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gi(e.x+e.width,this.x+this.width)-r:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?gi(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){var r=this,n=e.width/r.width,i=e.height/r.height,a=[1,0,0,1,0,0];return xo(a,a,[-r.x,-r.y]),Bv(a,a,[n,i]),xo(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&te.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(lb,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(fb,r.x,r.y,r.width,r.height));var s=!!n;_t.reset(i,s);var u=_t.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,y=r.y+u,p=r.y+r.height-u;if(l>f||c>v||h>d||y>p)return!1;var g=!(f<h||d<l||v<y||p<c);return(s||a)&&(ea[0]=1/0,ea[1]=0,Fv(l,f,h,d,0,s,a,o),Fv(c,v,y,p,1,s,a,o),s&&te.copy(n,g?_t.useDir?_t.dirMinTv:Ji:tl)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(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.x,e.y,e.width,e.height)},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 i=n[0],a=n[3],s=n[5];return e.x=r.x*i+n[4],e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Cn.x=xn.x=r.x,Cn.y=Tn.y=r.y,bn.x=Tn.x=r.x+r.width,bn.y=xn.y=r.y+r.height,Cn.transform(n),Tn.transform(n),bn.transform(n),xn.transform(n),e.x=Sn(Cn.x,bn.x,xn.x,Tn.x),e.y=Sn(Cn.y,bn.y,xn.y,Tn.y);var u=gi(Cn.x,bn.x,xn.x,Tn.x),l=gi(Cn.y,bn.y,xn.y,Tn.y);e.width=u-e.x,e.height=l-e.y}else e!==r&&t.copy(e,r)},t}(),lb=new rl(0,0,0,0),fb=new rl(0,0,0,0);function Fv(t,e,r,n,i,a,o,s){var u=el(e-r),l=el(n-t),f=Sn(u,l),c=Nv[i],v=Nv[1-i],h=ub[i];e<r||n<t?u<l?(a&&(tl[c]=-u),s&&(o[c]=e,o[h]=0)):(a&&(tl[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=gi(t,r),o[h]=Sn(e,n)-o[c]),a&&(f<ea[0]||_t.useDir)&&(ea[0]=Sn(f,ea[0]),(u<l||!_t.bidirectional)&&(Ji[c]=u,Ji[v]=0,_t.useDir&&_t.calcDirMTV()),(u>=l||!_t.bidirectional)&&(Ji[c]=-l,Ji[v]=0,_t.useDir&&_t.calcDirMTV())))}function zv(){var t=0,e=new te,r=new te,n={minTv:new te,maxTv:new te,useDir:!1,dirMinTv:new te,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&null!=a.touchThreshold&&(n.touchThreshold=gi(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&null!=a.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=null==a.bidirectional||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;i(f)?i(a.x)&&i(a.y)&&o.set(0,0):(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)?o.set(0,0):(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r))}};function i(a){return el(a)<1e-10}return n}const ne=rl;function hb(){kv(this.event)}var vb=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.handler=null,r}return(0,Z.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(rr),ta=function(){return function t(e,r){this.x=e,this.y=r}}(),db=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nl=new ne(0,0,0,0),Gv=function(t){function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new ta(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new vb,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new qC(s),s}return(0,Z.C6)(e,t),e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(db,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Wv(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var u=this._hovered=a?new ta(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},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 ta(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){var a=(r=r||{}).target;if(!a||!a.silent){for(var o="on"+n,s=function cb(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:hb}}(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){"function"==typeof u[o]&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ta(r,n);if(Vv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ne(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(nl.copy(v.getBoundingRect()),v.transform&&nl.applyTransform(v.transform),nl.intersect(f)&&s.push(v))}if(s.length)for(var d=Math.PI/12,y=2*Math.PI,p=0;p<l;p+=4)for(var g=0;g<y;g+=d)if(Vv(s,o,r+p*Math.cos(g),n+p*Math.sin(g),i),o.target)return o}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new ib);var i=this._gestureMgr;"start"===n&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===n&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ta;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(rr);function pb(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!i||"silent"}return!1}function Vv(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=pb(o,r,n))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function Wv(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Gv.prototype[t]=function(e){var a,o,r=e.zrX,n=e.zrY,i=Wv(this,r,n);if(("mouseup"!==t||!i)&&(o=(a=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||_o(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});const gb=Gv;function Uv(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;!function mb(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function Yv(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var u,a=t[n],o=e,s=n;o<s;)i(a,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]=a}}function il(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[r+i+u])>0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(t,e[r+i-u])<=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])>0?o=f+1:u=f}return u}function al(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[r+i-u])<0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(t,e[r+i+u])>=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])<0?u=f:o=f+1}return u}function wo(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<32)return void Yv(t,r,n,r+(a=Uv(t,r,n,e)),e);var o=function _b(t,e){var n,i,r=7,a=0,o=[];function f(h){var d=n[h],y=i[h],p=n[h+1],g=i[h+1];i[h]=y+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var m=al(t[p],t,d,y,0,e);d+=m,0!==(y-=m)&&0!==(g=il(t[d+y-1],t,p,g,g-1,e))&&(y<=g?function c(h,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var m=0,_=y,S=h;if(t[S++]=t[_++],0!==--p)if(1!==d){for(var C,x,T,b=r;;){C=0,x=0,T=!1;do{if(e(t[_],o[m])<0){if(t[S++]=t[_++],x++,C=0,0===--p){T=!0;break}}else if(t[S++]=o[m++],C++,x=0,1===--d){T=!0;break}}while((C|x)<b);if(T)break;do{if(0!==(C=al(t[_],o,m,d,0,e))){for(g=0;g<C;g++)t[S+g]=o[m+g];if(S+=C,m+=C,(d-=C)<=1){T=!0;break}}if(t[S++]=t[_++],0===--p){T=!0;break}if(0!==(x=il(o[m],t,_,p,0,e))){for(g=0;g<x;g++)t[S+g]=t[_+g];if(S+=x,_+=x,0===(p-=x)){T=!0;break}}if(t[S++]=o[m++],1===--d){T=!0;break}b--}while(C>=7||x>=7);if(T)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=1),1===d){for(g=0;g<p;g++)t[S+g]=t[_+g];t[S+p]=o[m]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[S+g]=o[m+g]}}else{for(g=0;g<p;g++)t[S+g]=t[_+g];t[S+p]=o[m]}else for(g=0;g<d;g++)t[S+g]=o[m+g]}(d,y,p,g):function v(h,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=t[y+g];var m=h+d-1,_=p-1,S=y+p-1,b=0,C=0;if(t[S--]=t[m--],0!==--d)if(1!==p){for(var x=r;;){var T=0,w=0,A=!1;do{if(e(o[_],t[m])<0){if(t[S--]=t[m--],T++,w=0,0===--d){A=!0;break}}else if(t[S--]=o[_--],w++,T=0,1===--p){A=!0;break}}while((T|w)<x);if(A)break;do{if(0!==(T=d-al(o[_],t,h,d,d-1,e))){for(d-=T,C=1+(S-=T),b=1+(m-=T),g=T-1;g>=0;g--)t[C+g]=t[b+g];if(0===d){A=!0;break}}if(t[S--]=o[_--],1===--p){A=!0;break}if(0!==(w=p-il(t[m],o,0,p,p-1,e))){for(p-=w,C=1+(S-=w),b=1+(_-=w),g=0;g<w;g++)t[C+g]=o[b+g];if(p<=1){A=!0;break}}if(t[S--]=t[m--],0===--d){A=!0;break}x--}while(T>=7||w>=7);if(A)break;x<0&&(x=0),x+=2}if((r=x)<1&&(r=1),1===p){for(C=1+(S-=d),b=1+(m-=d),g=d-1;g>=0;g--)t[C+g]=t[b+g];t[S]=o[_]}else{if(0===p)throw new Error;for(b=S-(p-1),g=0;g<p;g++)t[b+g]=o[g]}}else{for(C=1+(S-=d),b=1+(m-=d),g=d-1;g>=0;g--)t[C+g]=t[b+g];t[S]=o[_]}else for(b=S-(p-1),g=0;g<p;g++)t[b+g]=o[g]}(d,y,p,g))}return n=[],i=[],{mergeRuns:function u(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}},forceMergeRuns:function l(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}},pushRun:function s(h,d){n[a]=h,i[a]=d,a+=1}}}(t,e),s=function yb(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((a=Uv(t,r,n,e))<s){var u=i;u>s&&(u=s),Yv(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(0!==i);o.forceMergeRuns()}}var Xv=!1;function ol(){Xv||(Xv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Sb=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jv}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,wo(n,jv)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,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)&&(ol(),d.z=0),isNaN(d.z2)&&(ol(),d.z2=0),isNaN(d.zlevel)&&(ol(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=e.getDecalElement&&e.getDecalElement();y&&this._updateAndAddDisplayable(y,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array)for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);else{var i=fe(this._roots,e);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Cb=Sb;var Zv;Zv=ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const sl=Zv;var Do={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-Do.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*Do.bounceIn(2*t):.5*Do.bounceOut(2*t-1)+.5}};const Kv=Do;var Mo=Math.pow,Ur=Math.sqrt,Qv=Ur(3),Lo=1/3,nr=gn(),At=gn(),mi=gn();function Yr(t){return t>-1e-8&&t<1e-8}function Jv(t){return t>1e-8||t<-1e-8}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function ed(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function td(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-2*e+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,v=u*u-3*s*l,h=0;if(Yr(f)&&Yr(c))Yr(s)?a[0]=0:(d=-u/s)>=0&&d<=1&&(a[h++]=d);else{var y=c*c-4*f*v;if(Yr(y)){var p=c/f,g=-p/2;(d=-s/o+p)>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(y>0){var m=Ur(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);(d=(-s-((_=_<0?-Mo(-_,Lo):Mo(_,Lo))+(S=S<0?-Mo(-S,Lo):Mo(S,Lo))))/(3*o))>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Ur(f*f*f)),C=Math.acos(b)/3,x=Ur(f),T=Math.cos(C),d=(-s-2*x*T)/(3*o),w=(g=(-s+x*(T+Qv*Math.sin(C)))/(3*o),(-s+x*(T-Qv*Math.sin(C)))/(3*o));d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),w>=0&&w<=1&&(a[h++]=w)}}return h}function rd(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Yr(o))Jv(a)&&(l=-s/a)>=0&&l<=1&&(i[u++]=l);else{var f=a*a-4*o*s;if(Yr(f))i[0]=-a/(2*o);else if(f>0){var l,c=Ur(f),v=(-a-c)/(2*o);(l=(-a+c)/(2*o))>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function Po(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function nd(t,e,r,n,i,a,o,s,u,l,f){var c,d,y,p,g,v=.005,h=1/0;nr[0]=u,nr[1]=l;for(var m=0;m<1;m+=.05)At[0]=Ye(t,r,i,o,m),At[1]=Ye(e,n,a,s,m),(p=yn(nr,At))<h&&(c=m,h=p);h=1/0;for(var _=0;_<32&&!(v<1e-4);_++)y=c+v,At[0]=Ye(t,r,i,o,d=c-v),At[1]=Ye(e,n,a,s,d),p=yn(At,nr),d>=0&&p<h?(c=d,h=p):(mi[0]=Ye(t,r,i,o,y),mi[1]=Ye(e,n,a,s,y),g=yn(mi,nr),y<=1&&g<h?(c=y,h=g):v*=.5);return f&&(f[0]=Ye(t,r,i,o,c),f[1]=Ye(e,n,a,s,c)),Ur(h)}function bb(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,v=1/u,h=1;h<=u;h++){var d=h*v,y=Ye(t,r,i,o,d),p=Ye(e,n,a,s,d),g=y-l,m=p-f;c+=Math.sqrt(g*g+m*m),l=y,f=p}return c}function $e(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function id(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function ad(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function Ro(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function od(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;nr[0]=o,nr[1]=s;for(var v=0;v<1;v+=.05)At[0]=$e(t,r,i,v),At[1]=$e(e,n,a,v),(h=yn(nr,At))<c&&(l=v,c=h);c=1/0;for(var d=0;d<32&&!(f<1e-4);d++){var y=l-f,p=l+f;At[0]=$e(t,r,i,y),At[1]=$e(e,n,a,y);var h=yn(At,nr);if(y>=0&&h<c)l=y,c=h;else{mi[0]=$e(t,r,i,p),mi[1]=$e(e,n,a,p);var g=yn(mi,nr);p<=1&&g<c?(l=p,c=g):f*=.5}}return u&&(u[0]=$e(t,r,i,l),u[1]=$e(e,n,a,l)),Ur(c)}function Tb(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=$e(t,r,i,v),d=$e(e,n,a,v),y=h-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=h,u=d}return l}var wb=/cubic-bezier\(([0-9,\.e ]+)\)/;function sd(t){var e=t&&wb.exec(t);if(e){var r=e[1].split(","),n=+Gt(r[0]),i=+Gt(r[1]),a=+Gt(r[2]),o=+Gt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:td(0,n,a,1,u,s)&&Ye(0,i,o,1,s[0])}}}var Db=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||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,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,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),1===a){if(!this.loop)return!0;this._startTime=e-i%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=ee(e)?e:Kv[e]||sd(e)},t}();const Mb=Db;var ud=function(){return function t(e){this.value=e}}(),Ab=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new ud(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}(),Lb=function(){function t(e){this._list=new Ab,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new ud(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(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 _i=Lb;var ld={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 Wt(t){return(t=Math.round(t))<0?0:t>255?255:t}function ia(t){return t<0?0:t>1?1:t}function Io(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Wt(parseFloat(e)/100*255):Wt(parseInt(e,10))}function Xr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ia(parseFloat(e)/100):ia(parseFloat(e))}function ul(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 jr(t,e,r){return t+(e-t)*r}function Lt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function ll(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var fd=new _i(20),Eo=null;function Si(t,e){Eo&&ll(Eo,e),Eo=fd.put(t,Eo||e.slice())}function Ct(t,e){if(t){e=e||[];var r=fd.get(t);if(r)return ll(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in ld)return ll(e,ld[n]),Si(t,e),e;var a,i=n.length;if("#"===n.charAt(0))return 4===i||5===i?(a=parseInt(n.slice(1,4),16))>=0&&a<=4095?(Lt(e,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(n.slice(4),16)/15:1),Si(t,e),e):void Lt(e,0,0,0,1):7===i||9===i?(a=parseInt(n.slice(1,7),16))>=0&&a<=16777215?(Lt(e,(16711680&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(n.slice(7),16)/255:1),Si(t,e),e):void Lt(e,0,0,0,1):void 0;var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(4!==l.length)return 3===l.length?Lt(e,+l[0],+l[1],+l[2],1):Lt(e,0,0,0,1);f=Xr(l.pop());case"rgb":return l.length>=3?(Lt(e,Io(l[0]),Io(l[1]),Io(l[2]),3===l.length?f:Xr(l[3])),Si(t,e),e):void Lt(e,0,0,0,1);case"hsla":return 4!==l.length?void Lt(e,0,0,0,1):(l[3]=Xr(l[3]),fl(l,e),Si(t,e),e);case"hsl":return 3!==l.length?void Lt(e,0,0,0,1):(fl(l,e),Si(t,e),e);default:return}}Lt(e,0,0,0,1)}}function fl(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Xr(t[1]),i=Xr(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=2*i-a;return Lt(e=e||[],Wt(255*ul(o,a,r+1/3)),Wt(255*ul(o,a,r)),Wt(255*ul(o,a,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function cl(t,e){var r=Ct(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 Zr(r,4===r.length?"rgba":"rgb")}}function Ib(t){var e=Ct(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function cd(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=Wt(jr(o[0],s[0],u)),r[1]=Wt(jr(o[1],s[1],u)),r[2]=Wt(jr(o[2],s[2],u)),r[3]=ia(jr(o[3],s[3],u)),r}}var Eb=cd;function hd(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ct(e[i]),s=Ct(e[a]),u=n-i,l=Zr([Wt(jr(o[0],s[0],u)),Wt(jr(o[1],s[1],u)),Wt(jr(o[2],s[2],u)),ia(jr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var kb=hd;function ko(t,e,r,n){var i=Ct(t);if(t)return i=function Rb(t){if(t){var u,l,e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2;if(0===o)u=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?u=v-c:r===a?u=1/3+f-v:n===a&&(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}}(i),null!=e&&(i[0]=function Pb(t){return(t=Math.round(t))<0?0:t>360?360:t}(ee(e)?e(i[0]):e)),null!=r&&(i[1]=Xr(ee(r)?r(i[1]):r)),null!=n&&(i[2]=Xr(ee(n)?n(i[2]):n)),Zr(fl(i),"rgba")}function Ob(t,e){var r=Ct(t);if(r&&null!=e)return r[3]=ia(e),Zr(r,"rgba")}function Zr(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 aa(t,e){var r=Ct(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function Bb(){return Zr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var vd=new _i(100);function hl(t){if(j(t)){var e=vd.get(t);return e||(e=cl(t,-.1),vd.put(t,e)),e}if(ji(t)){var r=N({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:cl(n.color,-.1)}}),r}return t}Math,ue.hasGlobalWindow&&ee(window.btoa);var dl=Array.prototype.slice;function br(t,e,r){return(e-t)*r+t}function pl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=br(e[a],r[a],n);return t}function Bo(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function yd(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function Wb(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function qb(t,e,r){var n=t,i=e;if(n.push&&i.push){var a=n.length,o=i.length;if(a!==o)if(a>o)n.length=o;else for(var u=a;u<o;u++)n.push(1===r?i[u]:dl.call(i[u]));var l=n[0]&&n[0].length;for(u=0;u<n.length;u++)if(1===r)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function sa(t){if(Ke(t)){var e=t.length;if(Ke(t[0])){for(var r=[],n=0;n<e;n++)r.push(dl.call(t[n]));return r}return dl.call(t)}return t}function No(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 Sd(t){return 4===t||5===t}function Ho(t){return 1===t||2===t}var la=[0,0,0,0],Yb=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=6,u=r;if(Ke(r)){var l=function Ub(t){return Ke(t&&t[0])?2:1}(r);s=l,(1===l&&!_e(r[0])||2===l&&!_e(r[0][0]))&&(o=!0)}else if(_e(r)&&!Zi(r))s=0;else if(j(r))if(isNaN(+r)){var f=Ct(r);f&&(u=f,s=3)}else s=0;else if(ji(r)){var c=N({},u);c.colorStops=$(r.colorStops,function(h){return{offset:h.offset,color:Ct(h.color)}}),function Hb(t){return"linear"===t.type}(r)?s=4:function Gb(t){return"radial"===t.type}(r)&&(s=5),u=c}0===a?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=ee(n)?n:Kv[n]||sd(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,p){return y.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ho(i),l=Sd(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==a-1?qb(v,h,i):l&&Wb(v.colorStops,h.colorStops))}if(!s&&5!==i&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;var d=n[0].value;for(f=0;f<a;f++)0===i?n[f].additiveValue=n[f].value-d:3===i?n[f].additiveValue=Bo([],n[f].value,d,-1):Ho(i)&&(n[f].additiveValue=1===i?Bo([],n[f].value,d,-1):yd([],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,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=3===a,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,g=0===p?1:v((r-h.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:l?la:e[u];if((Ho(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)e[u]=g<1?h.rawValue:d.rawValue;else if(Ho(a))1===a?pl(m,h[i],d[i],g):function Vb(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=br(e[o][s],r[o][s],n)}}(m,h[i],d[i],g);else if(Sd(a)){var _=h[i],S=d[i],b=4===a;e[u]={type:b?"linear":"radial",x:br(_.x,S.x,g),y:br(_.y,S.y,g),colorStops:$(_.colorStops,function(x,T){var w=S.colorStops[T];return{offset:br(x.offset,w.offset,g),color:No(pl([],x.color,w.color,g))}}),global:S.global},b?(e[u].x2=br(_.x2,S.x2,g),e[u].y2=br(_.y2,S.y2,g)):e[u].r=br(_.r,S.r,g)}else if(l)pl(m,h[i],d[i],g),n||(e[u]=No(m));else{var C=br(h[i],d[i],g);n?this._additiveValue=C:e[u]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;0===r?e[n]=e[n]+i:3===r?(Ct(e[n],la),Bo(la,la,i,1),e[n]=No(la)):1===r?Bo(e[n],e[n],i,1):2===r&&yd(e[n],e[n],i,1)},t}(),Xb=function(){function t(e,r,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i?co("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ge(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new Yb(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=No(l))}else l=this._target[s];if(null==l)continue;e>0&&u.addKeyframe(0,sa(l),i),this._trackKeys.push(s)}u.addKeyframe(e,sa(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,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 Mb({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(p=0;p<n.length;p++)n[p].step(r._target,h);var g=r._onframeCbs;if(g)for(p=0;p<g.length;p++)g[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 $(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(o&&!o.isFinished()){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[a]=sa(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ge(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();const ml=Xb;function Ci(){return(new Date).getTime()}var jb=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,Z.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,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ci()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next;a.step(n,i)&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0,sl(function n(){r._running&&(sl(n),!r._paused&&r.update())})},e.prototype.start=function(){this._running||(this._time=Ci(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ci(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ci()-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 i=new ml(r,n.loop);return this.addAnimator(i),i},e}(rr);const Zb=jb;var t,r,_l=ue.domSupported,Sl=(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:$(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i})}),Cd_mouse=["mousemove","mouseup"],Cd_pointer=["pointermove","pointerup"],bd=!1;function Cl(t){var e=t.pointerType;return"pen"===e||"touch"===e}function bl(t){t&&(t.zrByTouch=!0)}function xd(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 Jb=function(){return function t(e,r){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}}(),qt={mousedown:function(t){t=Mt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Mt(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=Mt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){xd(this,(t=Mt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){bd=!0,t=Mt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){bd||(t=Mt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){bl(t=Mt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qt.mousemove.call(this,t),qt.mousedown.call(this,t)},touchmove:function(t){bl(t=Mt(this.dom,t)),this.handler.processGesture(t,"change"),qt.mousemove.call(this,t)},touchend:function(t){bl(t=Mt(this.dom,t)),this.handler.processGesture(t,"end"),qt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&qt.click.call(this,t)},pointerdown:function(t){qt.mousedown.call(this,t)},pointermove:function(t){Cl(t)||qt.mousemove.call(this,t)},pointerup:function(t){qt.mouseup.call(this,t)},pointerout:function(t){Cl(t)||qt.mouseout.call(this,t)}};D(["click","dblclick","contextmenu"],function(t){qt[t]=function(e){e=Mt(this.dom,e),this.trigger(t,e)}});var xl={pointermove:function(t){Cl(t)||xl.mousemove.call(this,t)},pointerup:function(t){xl.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 Go(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,function rb(t,e,r,n){t.addEventListener(e,r,n)}(t.domTarget,e,r,n)}function Tl(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&nb(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Td=function(){return function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}}(),rx=function(t){function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Td(r,qt),_l&&(i._globalHandlerScope=new Td(document,xl)),function ex(t,e){var r=e.domHandlers;ue.pointerEventsSupported?D(Sl.pointer,function(n){Go(e,n,function(i){r[n].call(t,i)})}):(ue.touchEventsSupported&&D(Sl.touch,function(n){Go(e,n,function(i){r[n].call(t,i),function $b(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)})}),D(Sl.mouse,function(n){Go(e,n,function(i){i=Qu(i),e.touching||r[n].call(t,i)})}))}(i,i._localHandlerScope),i}return(0,Z.C6)(e,t),e.prototype.dispose=function(){Tl(this._localHandlerScope),_l&&Tl(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,_l&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?function tx(t,e){function r(n){Go(e,n,function i(a){a=Qu(a),xd(t,a.target)||(a=function Qb(t,e){return Mt(t.dom,new Jb(t,e),!0)}(t,a),e.domHandlers[n].call(t,a))},{capture:!0})}ue.pointerEventsSupported?D(Cd_pointer,r):ue.touchEventsSupported||D(Cd_mouse,r)}(this,n):Tl(n)}},e}(rr);const nx=rx;var wd=1;ue.hasGlobalWindow&&(wd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vo=wd,Dl="#333",Ml="#ccc",Dd=Qi;function wn(t){return t>5e-5||t<-5e-5}var Dn=[],bi=[],Al=[1,0,0,1,0,0],Ll=Math.abs,ax=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(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 wn(this.rotation)||wn(this.x)||wn(this.y)||wn(this.scaleX-1)||wn(this.scaleY-1)||wn(this.skewX)||wn(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):Dd(n),e&&(r?mn(n,e,n):bo(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Dd(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(Dn);var n=Dn[0]<0?-1:1,i=Dn[1]<0?-1:1,a=((Dn[0]-n)*r+n)/Dn[0]||0,o=((Dn[1]-i)*r+i)/Dn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],_n(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],mn(bi,e.invTransform,r),r=bi);var n=this.originX,i=this.originY;(n||i)&&(Al[4]=n,Al[5]=i,mn(bi,r,Al),bi[4]-=n,bi[5]-=i,r=bi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&mt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&mt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Ll(e[0]-1)>1e-10&&Ll(e[3]-1)>1e-10?Math.sqrt(Ll(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Pl(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,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||i||s||u){var d=n+s,y=i+u;r[4]=-d*a-v*y*o,r[5]=-y*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,l&&To(r,r,l),r[4]+=n+f,r[5]+=i+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}(),ir=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pl(t,e){for(var r=0;r<ir.length;r++){var n=ir[r];t[n]=e[n]}}const Wo=ax;var qo;function Ut(t){qo||(qo=new _i(100));var e=qo.get(t=t||Gr);return e||(e={font:t,strWidthCache:new _i(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Dt.measureText("\u56fd",t).width,asciiCharWidth:Dt.measureText("a",t).width},qo.put(t,e)),e}var Rl=0;function Ld(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function sx(t){if(!(Rl>=5)){t=t||Gr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Dt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Rl=5:i>2&&Rl++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Yt(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=Dt.measureText(e,t.font).width,r.put(e,n)),n}function Pd(t,e,r,n){var i=Yt(Ut(e),t),a=Uo(e),o=xi(0,i,r),s=Mn(0,a,n);return new ne(o,s,i,a)}function Rd(t,e,r,n){var i=((t||"")+"").split("\n");if(1===i.length)return Pd(i[0],e,r,n);for(var o=new ne(0,0,0,0),s=0;s<i.length;s++){var u=Pd(i[s],e,r,n);0===s?o.copy(u):o.union(u)}return o}function xi(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function Mn(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function Uo(t){return Ut(t).stWideCharWidth}function Kr(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Id(t,e,r){var n=e.position||"inside",i=null!=e.distance?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=Kr(n[0],r.width),l+=Kr(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=i,l+=s,f="right",c="middle";break;case"right":u+=i+o,l+=s,c="middle";break;case"top":u+=o/2,l-=i,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=i,l+=s,c="middle";break;case"insideRight":u+=o-i,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",c="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,c="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",c="bottom"}return(t=t||{}).x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var Il="__zr_normal__",El=ir.concat(["ignore"]),ux=Ht(ir,function(t,e){return t[e]=!0,t},{ignore:!1}),Ti={},lx=new ne(0,0,0,0),Yo=[],kl=function(){function t(e){this.id=Hu(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=null!=n.position,c=n.autoOverflowArea,v=void 0;if((c||f)&&((v=lx).copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ti,n,v):Id(Ti,n,v),a.x=Ti.x,a.y=Ti.y,o=Ti.align,s=Ti.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,y=void 0;"center"===h?(d=.5*v.width,y=.5*v.height):(d=Kr(h[0],v.width),y=Kr(h[1],v.height)),l=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+y+(i?0:v.y)}}null!=n.rotation&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],l||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=g.overflowRect=g.overflowRect||new ne(0,0,0,0);a.getLocalTransform(Yo),_n(Yo,Yo),ne.copy(m,v),m.applyTransform(Yo)}else g.overflowRect=null;var S=void 0,b=void 0,C=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(b=n.insideStroke,(null==(S=n.insideFill)||"auto"===S)&&(S=this.getInsideTextFill()),(null==b||"auto"===b)&&(b=this.getInsideTextStroke(S),C=!0)):(b=n.outsideStroke,(null==(S=n.outsideFill)||"auto"===S)&&(S=this.getOutsideFill()),(null==b||"auto"===b)&&(b=this.getOutsideStroke(S),C=!0)),((S=S||"#000")!==g.fill||b!==g.stroke||C!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=S,g.stroke=b,g.autoStroke=C,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),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()?Ml:Dl},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof r&&Ct(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Zr(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||{},N(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(K(e))for(var i=ge(e),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Il)){var o=i.targetName;i.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,El)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];null!=e[a]&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Il,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Il;if(this.hasState()||!a){var s=this.currentStates,u=this.stateTransition;if(!(fe(s,e)>=0)||!r&&1!==s.length){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a)return void co("State "+e+" not exists.");a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var c=this._textContent,v=this._textGuide;return c&&c.useState(e,r,n,f),v&&v.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),l}}},t.prototype.useStates=function(e,r,n){if(e.length){var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s)for(var u=0;u<o;u++)if(e[u]!==a[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&&i.push(f)}var c=i[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(e,r,v),p&&p.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),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=fe(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=fe(i,e),o=fe(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n,r={},i=0;i<e.length;i++){var a=e[i];N(r,a),a.textConfig&&N(n=n||{},a.textConfig)}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<El.length;f++){var c=El[f],v=a&&ux[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(!a)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 Wo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},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 a=new ml(e?this[e]:this,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];e&&e!==s.scope?a.push(s):s.stop(r)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Ol(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Ol(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Ol(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function i(a,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,a,{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=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function Ol(t,e,r,n,i){var a=[];Ed(t,"",t,e,r=r||{},n,a,i);var o=a.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(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Bl(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function cx(t,e,r){if(Ke(e[r]))if(Ke(t[r])||(t[r]=[]),rt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Bl(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(function fx(t){return Ke(t[0])}(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Bl(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Bl(a,i,o);a.length=i.length}else t[r]=e[r]}function Ed(t,e,r,n,i,a,o,s){for(var u=ge(n),l=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!K(a),d=t.animators,y=[],p=0;p<u.length;p++){var m=n[g=u[p]];if(null!=m&&null!=r[g]&&(h||a[g]))if(!K(m)||Ke(m)||ji(m))y.push(g);else{if(e){s||(r[g]=m,t.updateDuringAnimation(e));continue}Ed(t,g,r[g],m,i,a&&a[g],o,s)}else s||(r[g]=m,t.updateDuringAnimation(e),y.push(g))}var _=y.length;if(!c&&_)for(var S=0;S<d.length;S++)if((b=d[S]).targetName===e&&b.stopTracks(y)){var x=fe(d,b);d.splice(x,1)}if(i.force||(y=Pe(y,function(L){return!function hx(t,e){return t===e||Ke(t)&&Ke(e)&&function vx(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[L],r[L])}),_=y.length),_>0||i.force&&!o.length){var b,T=void 0,w=void 0,A=void 0;if(s)for(w={},v&&(T={}),S=0;S<_;S++)w[g=y[S]]=r[g],v?T[g]=n[g]:r[g]=n[g];else if(v)for(A={},S=0;S<_;S++){var g;A[g=y[S]]=sa(r[g]),cx(r,n,g)}(b=new ml(r,!1,!1,c?Pe(d,function(E){return E.targetName===e}):null)).targetName=e,i.scope&&(b.scope=i.scope),v&&T&&b.whenWithKeys(0,T,y),A&&b.whenWithKeys(0,A,y),b.whenWithKeys(l??500,s?w:n,y).delay(f||0),t.addAnimator(b,e),o.push(b)}}zt(kl,rr),zt(kl,Wo);const kd=kl;var Od=function(t){function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return(0,Z.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,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=fe(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=fe(i,r);return a<0||(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh()),this},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++)r.call(n,i[a],a);return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)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 ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!u.ignore&&!u.invisible){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(ne.applyTransform(n,l,f),(o=o||n.clone()).union(n)):(o=o||l.clone()).union(l)}}return o||n},e}(kd);Od.prototype.type="group";const bt=Od;var Fl,Xo={},An={},gx=function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Cb,o=n.renderer||"canvas";Xo[o]||(o=ge(Xo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Xo[o](r,a,n,e),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var h,l=ue.node||ue.worker||u?null:new nx(s.getViewportRoot(),s.root),f=n.useCoarsePointer;(null==f||"auto"===f?ue.touchEventsSupported:!!f)&&(h=Q(n.pointerSize,44)),this.handler=new gb(a,s,l,s.root,h),this.animation=new Zb({stage:{update:u?null:function(){return i._flush(!0)}}}),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 px(t){if(!t)return!1;if("string"==typeof t)return aa(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=aa(e[i].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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Ci();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ci();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},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 bt&&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 dx(t){delete An[t]}(this.id))},t}();function Nl(t,e){var r=new gx(Hu(),t,e);return An[r.id]=r,r}function yx(t){t.dispose()}function mx(){for(var t in An)An.hasOwnProperty(t)&&An[t].dispose();An={}}function _x(t){return An[t]}function Bd(t,e){Xo[t]=e}function Sx(t){if("function"==typeof Fl)return Fl(t)}function Nd(t){Fl=t}var Cx="6.0.0",fa=Math.min,Xt=Math.max,ar=Math.abs;function jo(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],u=a-i,l=s-o;if(0===u)return 0===l?o:(o+s)/2;if(n)if(u>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/u*l+o}var Se=function xx(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 Tx(t,e,r){return j(t)?function bx(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):null==t?NaN:+t}(t,e,r)};function or(t,e,r){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),r?t:+t}function Dx(t){return t.sort(function(e,r){return e-r}),t}function sr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r;return Hd(t)}function Hd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf(".");return Math.max(0,(a<0?0:i-1-a)-n)}function Gd(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(ar(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Mx(t,e,r){return t[e]&&Vd(t,r)[e]||0}function Vd(t,e){var r=Ht(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(0===r)return[];for(var n=Math.pow(10,e),i=$(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=100*n,o=$(i,function(h){return Math.floor(h)}),s=Ht(o,function(h,d){return h+d},0),u=$(i,function(h,d){return h-o[d]});s<a;){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 $(o,function(h){return h/n})}function Ax(t,e){var r=Math.max(sr(t),sr(e)),n=t+e;return r>20?n:or(n,r)}var Lx=9007199254740991;function zl(t){var e=2*Math.PI;return(t%e+e)%e}function ca(t){return t>-1e-4&&t<1e-4}var Px=/^(?:(\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(j(t)){var e=Px.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(Math.round(t))}function Wd(t){return Math.pow(10,Hl(t))}function Hl(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Gl(t,e){var r=Hl(t),n=Math.pow(10,r),i=t/n;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Rx(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function Ix(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 i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(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 Tr(t){var e=parseFloat(t);return e==t&&(0!==e||!j(t)||t.indexOf("x")<=0)?e:NaN}function qd(t){return!isNaN(Tr(t))}function Ud(){return Math.round(9*Math.random())}function Yd(t,e){return 0===e?t:Yd(e,t%e)}function Xd(t,e){return null==t?e:null==e?t:t*e/Yd(t,e)}function jd(t,e,r){return(e-t)*r+t}var Zd="series\0";function Ge(t){return t instanceof Array?t:null==t?[]:[t]}function Vl(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var $d=["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 ha(t){return!K(t)||G(t)||t instanceof Date?t:t.value}function Nx(t){return K(t)&&!(t instanceof Array)}function Qd(t,e,r){var n="normalMerge"===r,i="replaceMerge"===r,a="replaceAll"===r;t=t||[],e=(e||[]).slice();var o=ae();D(e,function(u,l){K(u)||(e[l]=null)});var s=function Fx(t,e,r){var n=[];if("replaceAll"===r)return n;for(var i=0;i<t.length;i++){var a=t[i];a&&null!=a.id&&e.set(a.id,i),n.push({existing:"replaceMerge"===r||da(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}(t,o,r);return(n||i)&&function zx(t,e,r,n){D(n,function(i,a){if(i&&null!=i.id){var o=va(i.id),s=r.get(o);if(null!=s){var u=t[s];tr(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=e[s],n[a]=null}}})}(s,t,o,e),n&&function Hx(t,e){D(e,function(r,n){if(r&&null!=r.name)for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(null==a.id||null==r.id)&&!da(r)&&!da(a)&&Jd("name",a,r))return t[i].newOption=r,void(e[n]=null)}})}(s,e),n||i?function Gx(t,e,r){D(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||da(i.existing)||i.existing&&null!=n.id&&!Jd("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}(s,e,i):a&&function Vx(t,e){D(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function Wx(t){var e=ae();D(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),D(t,function(r){var n=r.newOption;tr(!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={})}),D(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(K(a)){if(o.name=null!=a.name?va(a.name):i?i.name:Zd+n,i)o.id=va(i.id);else if(null!=a.id)o.id=va(a.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 Jd(t,e,r){var n=at(e[t],null),i=at(r[t],null);return null!=n&&null!=i&&n===i}function va(t){return at(t,"")}function at(t,e){return null==t?e:j(t)?t:_e(t)||ho(t)?t+"":e}function Wl(t){var e=t.name;return!(!e||!e.indexOf(Zd))}function da(t){return t&&null!=t.id&&0===va(t.id).indexOf("\0_ec_\0")}function pa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?G(e.dataIndex)?$(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?G(e.name)?$(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name):void 0}function Ce(){var t="__ec_inner_"+Yx++;return function(e){return e[t]||(e[t]={})}}var Yx=Ud();function ql(t,e,r){var n=Ul(e,r),a=n.queryOptionMap,s=n.others,u=r?r.defaultMainType:null;return!n.mainTypeSpecified&&u&&a.set(u,{}),a.each(function(l,f){var c=ga(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 Ul(t,e){var r;if(j(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ae(),a={},o=!1;return D(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&&fe(e.includeMainTypes,f)<0||(o=o||!!f,(i.get(f)||i.set(f,{}))[c]=s)}else a[u]=s}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var $r={useDefault:!0,enableAll:!1,enableNone:!1};function ga(t,e,r,n){n=n||$r;var i=r.index,a=r.id,o=r.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if("none"===i||!1===i){if(n.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=n.enableAll?a=o=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function ep(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}!function(){function t(){}t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Ln="___EC__COMPONENT__CONTAINER___",tp="___EC__EXTENDED_CLASS___";function ur(t){var e={main:"",sub:""};if(t){var r=t.split(".");e.main=r[0]||"",e.sub=r[1]||""}return e}function Yl(t,e){t.$constructor=t,t.extend=function(r){var i,n=this;return function Jx(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}(n)?i=function(a){function o(){return a.apply(this,arguments)||this}return(0,Z.C6)(o,a),o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Gu(i,this)),N(i.prototype,r),i[tp]=!0,i.extend=this.extend,i.superCall=r1,i.superApply=n1,i.superClass=n,i}}function rp(t,e){t.extend=e.extend}var e1=Math.round(10*Math.random());function r1(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 n1(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Zo(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){(function $x(t){tr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(i),n.prototype.type=i;var a=ur(i);if(a.sub){if(a.sub!==Ln){var o=function r(n){var i=e[n.main];return(!i||!i[Ln])&&((i=e[n.main]={})[Ln]=!0),i}(a);o[a.sub]=n}}else e[a.main]=n}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Ln]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=ur(n),a=[],o=e[i.main];return o&&o[Ln]?D(o,function(s,u){u!==Ln&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=ur(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return D(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=ur(n),a=e[i.main];return a&&a[Ln]}}function ya(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&fe(i,u)>=0||a&&fe(a,u)<0)){var l=n.getShallow(u,e);null!=l&&(o[t[s][0]]=l)}}return o}}var a1=ya([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o1=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return a1(this,e,r)},t}(),Xl=new _i(50);function s1(t){if("string"==typeof t){var e=Xl.get(t);return e&&e.image}return t}function np(t,e,r,n,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var a=Xl.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?!Ko(e=a.image)&&a.pending.push(o):((e=Dt.loadImage(t,ip,ip)).__zrImageSrc=t,Xl.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function ip(){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 Ko(t){return t&&t.width&&t.height}var jl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u1(t,e,r,n,i){var a={};return ap(a,t,e,r,n,i),a.text}function ap(t,e,r,n,i,a){if(!r)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");a=op(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)sp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function op(t,e,r,n){var i=N({},n=n||{});r=Q(r,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0),o=i.fontMeasureInfo=Ut(e),s=o.asciiCharWidth;i.placeholder=Q(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=Yt(o,r);return f>u&&(r="",f=0),u=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=t,i}function sp(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n)return t.textLine="",void(t.isTruncated=!1);var o=Yt(a,e);if(o<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var u=0===s?l1(e,i,a):o>0?Math.floor(e.length*i/o):0;o=Yt(a,e=e.substr(0,u))}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function l1(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Ld(r,t.charCodeAt(i));return i}var c1=function(){return function t(){}}(),up=function(){return function t(e){this.tokens=[],e&&(this.tokens=e)}}(),h1=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 Zl(t,e,r,n,i){var f,c,a=""===e,o=i&&r.rich[i]||{},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=Kr(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split("\n"),l=!0),n.accumWidth=d}else{var y=lp(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+h,c=y.linesWidths,f=y.lines}}f||(f=e.split("\n"));for(var p=Ut(u),g=0;g<f.length;g++){var m=f[g],_=new c1;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,_.width="number"==typeof o.width?o.width:c?c[g]:Yt(p,m),g||l)s.push(new up([_]));else{var S=(s[s.length-1]||(s[0]=new up)).tokens,b=S.length;1===b&&S[0].isLineHolder?S[0]=_:(m||!b||a)&&S.push(_)}}}var p1=Ht(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function g1(t){return!function d1(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!p1[t]}function lp(t,e,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,c=Ut(e),v=0;v<t.length;v++){var h=t.charAt(v);if("\n"!==h){var d=Ld(c,h.charCodeAt(0)),y=!n&&!g1(h);(a.length?f+d>r:i+f+d>r)?f?(s||u)&&(y?(s||(s=u,u="",f=l=0),a.push(s),o.push(f-l),u+=h,s="",f=l+=d):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=h,f=d)):y?(a.push(u),o.push(l),u=h,l=d):(a.push(h),o.push(d)):(f+=d,y?(u+=h,l+=d):(u&&(s+=u,u="",l=0),s+=h))}else u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0}return u&&(s+=u),s&&(a.push(s),o.push(f)),1===a.length&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function fp(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ne.set(cp,xi(r,o,i),Mn(n,s,a),o,s),ne.intersect(e,cp,null,hp);var u=hp.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=xi(u.x,u.width,i,!0),t.baseY=Mn(u.y,u.height,a,!0)}}var cp=new ne(0,0,0,0),hp={outIntersectRect:{},clamp:!0};function Kl(t){return null!=t?t+="":t=""}function $l(t,e,r,n){var i=new ne(xi(t.x||0,e,t.textAlign),Mn(t.y||0,r,t.textBaseline),e,r),a=n??(vp(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function vp(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ql="__zr_style_"+Math.round(10*Math.random()),Pn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$o={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Pn[Ql]=!0;var dp=["z","z2","invisible"],m1=["invisible"],_1=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype._init=function(r){for(var n=ge(r),i=0;i<n.length;i++){var a=n[i];"style"===a?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function S1(t,e,r){return Jl.copy(t.getBoundingRect()),t.transform&&Jl.applyTransform(t.transform),ef.width=e,ef.height=r,!Jl.intersect(ef)}(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(a&&this.parent)for(var 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 i=this.transformCoordToLocal(r,n);return this.getBoundingRect().contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,i,n):r.copy(i),(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 ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){"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:N(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 $i(Pn,r)},e.prototype.useStyle=function(r){r[Ql]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Ql]},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,dp)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l,u=!(n&&a);if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var c=ge(f),v=0;v<c.length;v++)(h=c[v])in l&&(l[h]=l[h],this.style[h]=f[h]);var d=ge(l);for(v=0;v<d.length;v++)this.style[h=d[v]]=this.style[h];this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var y=this.__inHover?m1:dp;for(v=0;v<y.length;v++){var h=y[v];n&&null!=n[h]?this[h]=n[h]:u&&null!=i[h]&&(this[h]=i[h])}},e.prototype._mergeStates=function(r){for(var i,n=t.prototype._mergeStates.call(this,r),a=0;a<r.length;a++){var o=r[a];o.style&&this._mergeStyle(i=i||{},o.style)}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return N(r,n),r},e.prototype.getAnimationStyleProps=function(){return $o},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=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=3}(),e}(kd),Jl=new ne(0,0,0,0),ef=new ne(0,0,0,0);const Rn=_1;var vt=Math.min,dt=Math.max,tf=Math.sin,rf=Math.cos,In=2*Math.PI,Qo=gn(),Jo=gn(),es=gn();function pp(t,e,r,n,i,a){i[0]=vt(t,r),i[1]=vt(e,n),a[0]=dt(t,r),a[1]=dt(e,n)}var gp=[],yp=[];function C1(t,e,r,n,i,a,o,s,u,l){var f=rd,c=Ye,v=f(t,r,i,o,gp);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,i,o,gp[h]);u[0]=vt(d,u[0]),l[0]=dt(d,l[0])}for(v=f(e,n,a,s,yp),h=0;h<v;h++){var y=c(e,n,a,s,yp[h]);u[1]=vt(y,u[1]),l[1]=dt(y,l[1])}u[0]=vt(t,u[0]),l[0]=dt(t,l[0]),u[0]=vt(o,u[0]),l[0]=dt(o,l[0]),u[1]=vt(e,u[1]),l[1]=dt(e,l[1]),u[1]=vt(s,u[1]),l[1]=dt(s,l[1])}function b1(t,e,r,n,i,a,o,s){var u=ad,l=$e,f=dt(vt(u(t,r,i),1),0),c=dt(vt(u(e,n,a),1),0),v=l(t,r,i,f),h=l(e,n,a,c);o[0]=vt(t,i,v),o[1]=vt(e,a,h),s[0]=dt(t,i,v),s[1]=dt(e,a,h)}function x1(t,e,r,n,i,a,o,s,u){var l=Wr,f=qr,c=Math.abs(i-a);if(c%In<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-n,u[0]=t+r,void(u[1]=e+n);if(Qo[0]=rf(i)*r+t,Qo[1]=tf(i)*n+e,Jo[0]=rf(a)*r+t,Jo[1]=tf(a)*n+e,l(s,Qo,Jo),f(u,Qo,Jo),(i%=In)<0&&(i+=In),(a%=In)<0&&(a+=In),i>a&&!o?a+=In:i<a&&o&&(i+=In),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&(es[0]=rf(h)*r+t,es[1]=tf(h)*n+e,l(s,es,s),f(u,es,u))}var ye={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},En=[],kn=[],lr=[],Qr=[],fr=[],cr=[],nf=Math.min,af=Math.max,On=Math.cos,Bn=Math.sin,wr=Math.abs,of=Math.PI,Jr=2*of,sf=typeof Float32Array<"u",ma=[];function uf(t){return Math.round(t/of*1e8)/1e8%2*of}function mp(t,e){var r=uf(t[0]);r<0&&(r+=Jr);var i=t[1];i+=r-t[0],!e&&i-r>=Jr?i=r+Jr:e&&r-i>=Jr?i=r-Jr:!e&&r>i?i=r+(Jr-uf(r-i)):e&&r<i&&(i=r-(Jr-uf(i-r))),t[0]=r,t[1]=i}var T1=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=wr(n/Vo/e)||0,this._uy=wr(n/Vo/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(ye.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=wr(e-this._xi),i=wr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ye.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(ye.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(ye.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){return this._drawPendingPt(),ma[0]=i,ma[1]=a,mp(ma,o),this.addData(ye.A,e,r,n,n,i=ma[0],(a=ma[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=On(a)*n+e,this._yi=Bn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(ye.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ye.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)&&sf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(sf&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(a=0;a<r;a++){var u=e[a].data;for(s=0;s<u.length;s++)this.data[i++]=u[s]}this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var 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,sf&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){lr[0]=lr[1]=fr[0]=fr[1]=Number.MAX_VALUE,Qr[0]=Qr[1]=cr[0]=cr[1]=-Number.MAX_VALUE;var o,e=this.data,r=0,n=0,i=0,a=0;for(o=0;o<this._len;){var s=e[o++],u=1===o;switch(u&&(i=r=e[o],a=n=e[o+1]),s){case ye.M:r=i=e[o++],n=a=e[o++],fr[0]=i,fr[1]=a,cr[0]=i,cr[1]=a;break;case ye.L:pp(r,n,e[o],e[o+1],fr,cr),r=e[o++],n=e[o++];break;case ye.C:C1(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],fr,cr),r=e[o++],n=e[o++];break;case ye.Q:b1(r,n,e[o++],e[o++],e[o],e[o+1],fr,cr),r=e[o++],n=e[o++];break;case ye.A:var l=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var y=!e[o++];u&&(i=On(h)*c+l,a=Bn(h)*v+f),x1(l,f,c,v,h,d,y,fr,cr),r=On(d)*c+l,n=Bn(d)*v+f;break;case ye.R:pp(i=r=e[o++],a=n=e[o++],i+e[o++],a+e[o++],fr,cr);break;case ye.Z:r=i,n=a}Wr(lr,lr,fr),qr(Qr,Qr,cr)}return 0===o&&(lr[0]=lr[1]=Qr[0]=Qr[1]=0),new ne(lr[0],lr[1],Qr[0]-lr[0],Qr[1]-lr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=1===v;d&&(s=a=e[v],u=o=e[v+1]);var y=-1;switch(h){case ye.M:a=s=e[v++],o=u=e[v++];break;case ye.L:var p=e[v++],_=(g=e[v++])-o;(wr(m=p-a)>n||wr(_)>i||v===r-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break;case ye.C:var S=e[v++],b=e[v++],g=(p=e[v++],e[v++]),C=e[v++],x=e[v++];y=bb(a,o,S,b,p,g,C,x,10),a=C,o=x;break;case ye.Q:y=Tb(a,o,S=e[v++],b=e[v++],p=e[v++],g=e[v++],10),a=p,o=g;break;case ye.A:var T=e[v++],w=e[v++],A=e[v++],L=e[v++],E=e[v++],M=e[v++],k=M+E;v+=1,d&&(s=On(E)*A+T,u=Bn(E)*L+w),y=af(A,L)*nf(Jr,Math.abs(M)),a=On(k)*A+T,o=Bn(k)*L+w;break;case ye.R:s=a=e[v++],u=o=e[v++],y=2*e[v++]+2*e[v++];break;case ye.Z:var m=s-a;_=u-o,y=Math.sqrt(m*m+_*_),a=s,o=u}y>=0&&(l[c++]=y,f+=y)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var s,u,l,f,c,v,d,m,S,b,n=this.data,i=this._ux,a=this._uy,o=this._len,h=r<1,p=0,g=0,_=0;if(!h||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=r*this._pathLen))e:for(var C=0;C<o;){var x=n[C++],T=1===C;switch(T&&(s=l=n[C],u=f=n[C+1]),x!==ye.L&&_>0&&(e.lineTo(S,b),_=0),x){case ye.M:s=l=n[C++],u=f=n[C++],e.moveTo(l,f);break;case ye.L:c=n[C++],v=n[C++];var w=wr(c-l),A=wr(v-f);if(w>i||A>a){if(h){if(p+(L=d[g++])>m){e.lineTo(l*(1-(E=(m-p)/L))+c*E,f*(1-E)+v*E);break e}p+=L}e.lineTo(c,v),l=c,f=v,_=0}else{var M=w*w+A*A;M>_&&(S=c,b=v,_=M)}break;case ye.C:var k=n[C++],B=n[C++],F=n[C++],X=n[C++],U=n[C++],V=n[C++];if(h){if(p+(L=d[g++])>m){Po(l,k,F,U,E=(m-p)/L,En),Po(f,B,X,V,E,kn),e.bezierCurveTo(En[1],kn[1],En[2],kn[2],En[3],kn[3]);break e}p+=L}e.bezierCurveTo(k,B,F,X,U,V),l=U,f=V;break;case ye.Q:if(k=n[C++],B=n[C++],F=n[C++],X=n[C++],h){if(p+(L=d[g++])>m){Ro(l,k,F,E=(m-p)/L,En),Ro(f,B,X,E,kn),e.quadraticCurveTo(En[1],kn[1],En[2],kn[2]);break e}p+=L}e.quadraticCurveTo(k,B,F,X),l=F,f=X;break;case ye.A:var q=n[C++],W=n[C++],H=n[C++],ie=n[C++],Le=n[C++],ct=n[C++],wt=n[C++],ht=!n[C++],tt=H>ie?H:ie,Ze=wr(H-ie)>.001,Be=Le+ct,re=!1;if(h&&(p+(L=d[g++])>m&&(Be=Le+ct*(m-p)/L,re=!0),p+=L),Ze&&e.ellipse?e.ellipse(q,W,H,ie,wt,Le,Be,ht):e.arc(q,W,tt,Le,Be,ht),re)break e;T&&(s=On(Le)*H+q,u=Bn(Le)*ie+W),l=On(Be)*H+q,f=Bn(Be)*ie+W;break;case ye.R:s=l=n[C],u=f=n[C+1],c=n[C++],v=n[C++];var he=n[C++],Sr=n[C++];if(h){if(p+(L=d[g++])>m){var Ue=m-p;e.moveTo(c,v),e.lineTo(c+nf(Ue,he),v),(Ue-=he)>0&&e.lineTo(c+he,v+nf(Ue,Sr)),(Ue-=Sr)>0&&e.lineTo(c+af(he-Ue,0),v+Sr),(Ue-=he)>0&&e.lineTo(c,v+af(Sr-Ue,0));break e}p+=L}e.rect(c,v,he,Sr);break;case ye.Z:if(h){var L;if(p+(L=d[g++])>m){var E;e.lineTo(l*(1-(E=(m-p)/L))+s*E,f*(1-E)+u*E);break e}p+=L}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=ye,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t;var e}();const Nn=T1;function wi(t,e,r,n,i,a,o){if(0===i)return!1;var u,s=i;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t===r)return Math.abs(a-t)<=s/2;var f=(u=(e-n)/(t-r))*a-o+(t*n-r*e)/(t-r);return f*f/(u*u+1)<=s/2*s/2}function w1(t,e,r,n,i,a,o,s,u,l,f){if(0===u)return!1;var c=u;return!(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||l>t+c&&l>r+c&&l>i+c&&l>o+c||l<t-c&&l<r-c&&l<i-c&&l<o-c)&&nd(t,e,r,n,i,a,o,s,l,f,null)<=c/2}function D1(t,e,r,n,i,a,o,s,u){if(0===o)return!1;var l=o;return!(u>e+l&&u>n+l&&u>a+l||u<e-l&&u<n-l&&u<a-l||s>t+l&&s>r+l&&s>i+l||s<t-l&&s<r-l&&s<i-l)&&od(t,e,r,n,i,a,s,u,null)<=l/2}var _p=2*Math.PI;function Dr(t){return(t%=_p)<0&&(t+=_p),t}var _a=2*Math.PI;function M1(t,e,r,n,i,a,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-i)%_a<1e-4)return!0;if(a){var c=n;n=Dr(i),i=Dr(c)}else n=Dr(n),i=Dr(i);n>i&&(i+=_a);var v=Math.atan2(u,s);return v<0&&(v+=_a),v>=n&&v<=i||v+_a>=n&&v+_a<=i}function Mr(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===i?1/0:u>i?s:0}var en=Nn.CMD,Fn=2*Math.PI,ot=[-1,-1,-1],Pt=[-1,-1];function P1(){var t=Pt[0];Pt[0]=Pt[1],Pt[1]=t}function R1(t,e,r,n,i,a,o,s,u,l){if(l>e&&l>n&&l>a&&l>s||l<e&&l<n&&l<a&&l<s)return 0;var f=td(e,n,a,s,l,ot);if(0===f)return 0;for(var c=0,v=-1,h=void 0,d=void 0,y=0;y<f;y++){var p=ot[y],g=0===p||1===p?.5:1;Ye(t,r,i,o,p)<u||(v<0&&(v=rd(e,n,a,s,Pt),Pt[1]<Pt[0]&&v>1&&P1(),h=Ye(e,n,a,s,Pt[0]),v>1&&(d=Ye(e,n,a,s,Pt[1]))),c+=2===v?p<Pt[0]?h<e?g:-g:p<Pt[1]?d<h?g:-g:s<d?g:-g:p<Pt[0]?h<e?g:-g:s<h?g:-g)}return c}function I1(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var u=function xb(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Yr(a))Jv(o)&&(l=-s/o)>=0&&l<=1&&(i[u++]=l);else{var f=o*o-4*a*s;if(Yr(f))(l=-o/(2*a))>=0&&l<=1&&(i[u++]=l);else if(f>0){var l,c=Ur(f),v=(-o-c)/(2*a);(l=(-o+c)/(2*a))>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}(e,n,a,s,ot);if(0===u)return 0;var l=ad(e,n,a);if(l>=0&&l<=1){for(var f=0,c=$e(e,n,a,l),v=0;v<u;v++){var h=0===ot[v]||1===ot[v]?.5:1;$e(t,r,i,ot[v])<o||(f+=ot[v]<l?c<e?h:-h:a<c?h:-h)}return f}return h=0===ot[0]||1===ot[0]?.5:1,$e(t,r,i,ot[0])<o?0:a<e?h:-h}function E1(t,e,r,n,i,a,o,s){if((s-=e)>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);ot[0]=-u,ot[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Fn-1e-4){n=0,i=Fn;var f=a?1:-1;return o>=ot[0]+t&&o<=ot[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Fn,i+=Fn);for(var v=0,h=0;h<2;h++){var d=ot[h];if(d+t>o){var y=Math.atan2(s,d);f=a?1:-1,y<0&&(y=Fn+y),(y>=n&&y<=i||y+Fn>=n&&y+Fn<=i)&&(y>Math.PI/2&&y<1.5*Math.PI&&(f=-f),v+=f)}}return v}function Sp(t,e,r,n,i){for(var v,h,a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,d=0;d<o;){var y=a[d++],p=1===d;switch(y===en.M&&d>1&&(r||(s+=Mr(u,l,f,c,n,i))),p&&(f=u=a[d],c=l=a[d+1]),y){case en.M:u=f=a[d++],l=c=a[d++];break;case en.L:if(r){if(wi(u,l,a[d],a[d+1],e,n,i))return!0}else s+=Mr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case en.C:if(r){if(w1(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=R1(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case en.Q:if(r){if(D1(u,l,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=I1(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case en.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],C=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*S+m,p?(f=v,c=h):s+=Mr(u,l,v,h,n,i);var T=(n-g)*S/_+g;if(r){if(M1(g,m,S,b,b+C,x,e,T,i))return!0}else s+=E1(g,m,S,b,b+C,x,T,i);u=Math.cos(b+C)*_+g,l=Math.sin(b+C)*S+m;break;case en.R:if(f=u=a[d++],c=l=a[d++],v=f+a[d++],h=c+a[d++],r){if(wi(f,c,v,c,e,n,i)||wi(v,c,v,h,e,n,i)||wi(v,h,f,h,e,n,i)||wi(f,h,f,c,e,n,i))return!0}else s+=Mr(v,c,v,h,n,i),s+=Mr(f,h,f,c,n,i);break;case en.Z:if(r){if(wi(u,l,f,c,e,n,i))return!0}else s+=Mr(u,l,f,c,n,i);u=f,l=c}}return!r&&!function L1(t,e){return Math.abs(t-e)<1e-4}(l,c)&&(s+=Mr(u,l,f,c,n,i)||0),0!==s}var Cp=we({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pn),B1={style:we({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$o.style)},lf=ir.concat(["invisible","culling","z","z2","zlevel","parent"]),N1=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<lf.length;++s)i[lf[s]]=this[lf[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ge(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];"style"===o?this.style?N(this.style,s):this.useStyle(s):"shape"===o?N(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(j(r)){var n=aa(r,0);return n>.5?Dl:n>.2?"#eee":Ml}if(r)return Ml}return Dl},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(j(n)){var i=this.__zr;if(!(!i||!i.isDarkMode())==aa(r,0)<.4)return n}},e.prototype.buildPath=function(r,n,i){},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 Nn(!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,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||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||i){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 i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(a.contain(r=i[0],n=i[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 O1(t,e,r,n){return Sp(t,e,!0,r,n)}(s,u/l,r,n)))return!0}if(this.hasFill())return function k1(t,e,r){return Sp(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 i=this.shape;return i||(i=this.shape={}),"string"==typeof r?i[r]=n:N(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(r){return $i(Cp,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l,u=!(n&&a);if(n&&n.shape?o?a?l=n.shape:(l=N({},i.shape),N(l,n.shape)):(l=N({},a?this.shape:i.shape),N(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=N({},this.shape);for(var f={},c=ge(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 i,n=t.prototype._mergeStates.call(this,r),a=0;a<r.length;a++){var o=r[a];o.shape&&this._mergeStyle(i=i||{},o.shape)}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return B1},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return(0,Z.C6)(o,a),o.prototype.getDefaultStyle=function(){return le(r.style)},o.prototype.getDefaultShape=function(){return le(r.shape)},o}(e);for(var i in r)"function"==typeof r[i]&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=7}(),e}(Rn);const Te=N1;var F1=we({strokeFirst:!0,font:Gr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Cp),bp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.hasStroke=function(){return vp(this.style)},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.createStyle=function(r){return $i(F1,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function y1(t){var e=Kl(t.text),r=t.font;return $l(t,Yt(Ut(r),e),Uo(r),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Rn);bp.prototype.type="tspan";const ff=bp;var z1=we({x:0,y:0},Pn),H1={style:we({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$o.style)},xp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.createStyle=function(r){return $i(z1,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(null!=i)return i;var a=function G1(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(n.image)?n.image:this.__image;if(!a)return 0;var o="width"===r?"height":"width",s=n[o];return null==s?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return H1},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rn);xp.prototype.type="image";const tn=xp;var Di=Math.round;function Tp(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Di(2*n)===Di(2*i)&&(t.x1=t.x2=zn(n,s,!0)),Di(2*a)===Di(2*o)&&(t.y1=t.y2=zn(a,s,!0))),t}}function wp(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=zn(n,s,!0),t.y=zn(i,s,!0),t.width=Math.max(zn(n+a,s,!1)-t.x,0===a?0:1),t.height=Math.max(zn(i+o,s,!1)-t.y,0===o?0:1)),t}}function zn(t,e,r){if(!e)return t;var n=Di(2*t);return(n+Di(e))%2==0?n/2:(n+(r?1:-1))/2}var W1=function(){return function t(){this.x=0,this.y=0,this.width=0,this.height=0}}(),q1={},Dp=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new W1},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=wp(q1,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?function V1(t,e){var s,u,l,f,c,r=e.x,n=e.y,i=e.width,a=e.height,o=e.r;i<0&&(r+=i,i=-i),a<0&&(n+=a,a=-a),"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>i&&(s*=i/(c=s+u),u*=i/c),l+f>i&&(l*=i/(c=l+f),f*=i/c),u+l>a&&(u*=a/(c=u+l),l*=a/c),s+f>a&&(s*=a/(c=s+f),f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-u,n),0!==u&&t.arc(r+i-u,n+u,u,-Math.PI/2,0),t.lineTo(r+i,n+a-l),0!==l&&t.arc(r+i-l,n+a-l,l,0,Math.PI/2),t.lineTo(r+f,n+a),0!==f&&t.arc(r+f,n+a-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)}(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Te);Dp.prototype.type="rect";const Xe=Dp;var Mp={fill:"#000"},hr={},U1={style:we({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},$o.style)},Lp=function(t){function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Mp,n.attr(r),n}return(0,Z.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 K1(t){Ip(t),D(t.rich,Ip)}(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 ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),(a=a||r.clone()).union(r)):(a=a||u.clone()).union(u)}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Mp},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return N(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ge(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},N(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return U1},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||Gr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";fp(hr,a.overflowRect,o,s,u,l),o=hr.baseX,s=hr.baseY;var c=function f1(t,e,r,n){var i=Kl(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f="truncate"===a,c=Uo(l),v=Q(e.lineHeight,c),h="truncate"===e.lineOverflow,d=!1,y=e.width;null==y&&null!=r&&(y=r-s);var g,p=e.height;null==p&&null!=n&&(p=n-u);var m=(g=null==y||"break"!==a&&"breakAll"!==a?i?i.split("\n"):[]:i?lp(i,e.font,y,"breakAll"===a,0).lines:[]).length*v;if(null==p&&(p=m),m>p&&h){var _=Math.floor(p/v);d=d||g.length>_,m=(g=g.slice(0,_)).length*v}if(i&&f&&null!=y)for(var S=op(y,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},C=0;C<g.length;C++)sp(b,g[C],S),g[C]=b.textLine,d=d||b.isTruncated;var x=p,T=0,w=Ut(l);for(C=0;C<g.length;C++)T=Math.max(Yt(w,g[C]),T);null==y&&(y=T);var A=y;return{lines:g,height:p,outerWidth:A+=s,outerHeight:x+=u,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:y,isTruncated:d}}(Bp(r),r,hr.outerWidth,hr.outerHeight),v=cf(r),h=!!r.backgroundColor,d=c.outerHeight,y=c.outerWidth,p=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=Mn(s,c.contentHeight,l);if(v||i){var S=xi(o,y,u),b=Mn(s,d,l);v&&this._renderBackground(r,r,S,b,y,d)}_+=g/2,i&&(m=Op(o,u,i),"top"===l?_+=i[0]:"bottom"===l&&(_-=i[2]));for(var C=0,x=!1,T=!1,w=(kp("fill"in r?r.fill:(T=!0,a.fill))),A=(Ep("stroke"in r?r.stroke:h||a.autoStroke&&!T?null:(C=2,x=!0,a.stroke))),L=r.textShadowBlur>0,E=0;E<p.length;E++){var M=this._getOrCreateChild(ff),k=M.createStyle();M.useStyle(k),k.text=p[E],k.x=m,k.y=_,u&&(k.textAlign=u),k.textBaseline="middle",k.opacity=r.opacity,k.strokeFirst=!0,L&&(k.shadowBlur=r.textShadowBlur||0,k.shadowColor=r.textShadowColor||"transparent",k.shadowOffsetX=r.textShadowOffsetX||0,k.shadowOffsetY=r.textShadowOffsetY||0),k.stroke=A,k.fill=w,A&&(k.lineWidth=r.lineWidth||C,k.lineDash=r.lineDash,k.lineDashOffset=r.lineDashOffset||0),k.font=n,Rp(k,r),_+=g,M.setBoundingRect($l(k,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;fp(hr,n.overflowRect,o,s,i,a),o=hr.baseX,s=hr.baseY;var l=function v1(t,e,r,n,i){var a=new h1,o=Kl(t);if(!o)return a;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 y,v=e.overflow,h="break"!==v&&"breakAll"!==v||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===v},d=jl.lastIndex=0;null!=(y=jl.exec(o));){var p=y.index;p>d&&Zl(a,o.substring(d,p),e,h),Zl(a,y[2],e,h,y[1]),d=jl.lastIndex}d<o.length&&Zl(a,o.substring(d,o.length),e,h);var g=[],m=0,_=0,S="truncate"===v,b="truncate"===e.lineOverflow,C={};function x(wt,ht,tt){wt.width=ht,wt.lineHeight=tt,m+=tt,_=Math.max(_,ht)}e:for(var T=0;T<a.lines.length;T++){for(var w=a.lines[T],A=0,L=0,E=0;E<w.tokens.length;E++){var k=(M=w.tokens[E]).styleName&&e.rich[M.styleName]||{},B=M.textPadding=k.padding,F=B?B[1]+B[3]:0,X=M.font=k.font||e.font;M.contentHeight=Uo(X);var U=Q(k.height,M.contentHeight);if(M.innerHeight=U,B&&(U+=B[0]+B[2]),M.height=U,M.lineHeight=Vr(k.lineHeight,e.lineHeight,U),M.align=k&&k.align||i,M.verticalAlign=k&&k.verticalAlign||"middle",b&&null!=c&&m+M.lineHeight>c){var V=a.lines.length;E>0?(w.tokens=w.tokens.slice(0,E),x(w,L,A),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<V;break e}var q=k.width,W=null==q||"auto"===q;if("string"==typeof q&&"%"===q.charAt(q.length-1))M.percentWidth=q,g.push(M),M.contentWidth=Yt(Ut(X),M.text);else{if(W){var H=k.backgroundColor,ie=H&&H.image;ie&&Ko(ie=s1(ie))&&(M.width=Math.max(M.width,ie.width*U/ie.height))}var Le=S&&null!=f?f-L:null;null!=Le&&Le<M.width?!W||Le<F?(M.text="",M.width=M.contentWidth=0):(ap(C,M.text,Le-F,X,e.ellipsis,{minChar:e.truncateMinChar}),M.text=C.text,a.isTruncated=a.isTruncated||C.isTruncated,M.width=M.contentWidth=Yt(Ut(X),M.text)):M.contentWidth=Yt(Ut(X),M.text)}M.width+=F,L+=M.width,k&&(A=Math.max(A,M.lineHeight))}x(w,L,A)}for(a.outerWidth=a.width=Q(f,_),a.outerHeight=a.height=Q(c,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l,T=0;T<g.length;T++){var M;(M=g[T]).width=parseInt(M.percentWidth,10)/100*a.width}return a}(Bp(r),r,hr.outerWidth,hr.outerHeight,i),f=l.width,c=l.outerWidth,v=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=xi(o,c,i),y=Mn(s,v,a),p=d,g=y;h&&(p+=h[3],g+=h[0]);var m=p+f;cf(r)&&this._renderBackground(r,r,d,y,c,v);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var b=l.lines[S],C=b.tokens,x=C.length,T=b.lineHeight,w=b.width,A=0,L=p,E=m,M=x-1,k=void 0;A<x&&(!(k=C[A]).align||"left"===k.align);)this._placeToken(k,r,T,g,L,"left",_),w-=k.width,L+=k.width,A++;for(;M>=0&&"right"===(k=C[M]).align;)this._placeToken(k,r,T,g,E,"right",_),w-=k.width,E-=k.width,M--;for(L+=(f-(L-p)-(m-E)-w)/2;A<=M;)this._placeToken(k=C[A],r,T,g,L+k.width/2,"center",_),L+=k.width,A++;g+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+i/2;"top"===f?c=a+r.height/2:"bottom"===f&&(c=a+i-r.height/2),!r.isLineHolder&&cf(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=Op(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(ff),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=!1,b=kp("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,g.fill)),C=Ep("stroke"in l?l.stroke:"stroke"in n?n.stroke:h||u||g.autoStroke&&!m?null:(_=2,S=!0,g.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||Gr,p.opacity=Vr(l.opacity,n.opacity,1),Rp(p,l),C&&(p.lineWidth=Vr(l.lineWidth,n.lineWidth,_),p.lineDash=Q(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=C),b&&(p.fill=b),y.setBoundingRect($l(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var y,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){(y=this._getOrCreateChild(Xe)).useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,y.dirtyShape()}if(v)(m=y.style).fill=u||null,m.fillOpacity=Q(r.fillOpacity,1);else if(c){(p=this._getOrCreateChild(tn)).onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}l&&f&&((m=y.style).lineWidth=l,m.stroke=f,m.strokeOpacity=Q(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Vr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return function Z1(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(r)&&(n=[r.fontStyle,r.fontWeight,j1(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gt(n)||r.textFont||r.font},e}(Rn),Y1={left:!0,right:1,center:1},X1={top:1,bottom:1,middle:1},Pp=["fontStyle","fontWeight","fontSize","fontFamily"];function j1(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Rp(t,e){for(var r=0;r<Pp.length;r++){var n=Pp[r],i=e[n];null!=i&&(t[n]=i)}}function Ip(t){if(t){t.font=Lp.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Y1[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||X1[r]?r:"top",t.padding&&(t.padding=po(t.padding))}}function Ep(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function kp(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Op(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function Bp(t){var e=t.text;return null!=e&&(e+=""),e}function cf(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Ne=Lp;var de=Ce(),Np=1,Fp={},zp=Ce(),hf=Ce(),vr=["emphasis","blur","select"],ns=["normal","emphasis","blur","select"],Hn="highlight",is="downplay",as="select",df="unselect",os="toggleSelect",pf="selectchanged";function Mi(t){return null!=t&&"none"!==t}function ss(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Hp(t){ss(t,"emphasis",2)}function Gp(t){2===t.hoverState&&ss(t,"normal",0)}function gf(t){ss(t,"blur",1)}function Vp(t){1===t.hoverState&&ss(t,"normal",0)}function tT(t){t.selected=!0}function rT(t){t.selected=!1}function Wp(t,e,r){e(t,r)}function Ar(t,e,r){Wp(t,e,r),t.isGroup&&t.traverse(function(n){Wp(n,e,r)})}function yf(t,e){var r=this.states[t];if(this.style){if("emphasis"===t)return function iT(t,e,r,n){var i=r&&fe(r,"select")>=0,a=!1;if(t instanceof Te){var o=zp(t),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Mi(s)||Mi(u)){var l=(n=n||{}).style||{};"inherit"===l.fill?(a=!0,n=N({},n),(l=N({},l)).fill=s):!Mi(l.fill)&&Mi(s)?(a=!0,n=N({},n),(l=N({},l)).fill=hl(s)):!Mi(l.stroke)&&Mi(u)&&(a||(n=N({},n),l=N({},l)),l.stroke=hl(u)),n.style=l}}return n&&null==n.z2&&(a||(n=N({},n)),n.z2=t.z2+(t.z2EmphasisLift??10)),n}(this,0,e,r);if("blur"===t)return function oT(t,e,r){var n=fe(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:function nT(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o];a[s]=i[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(a,e)}return a}(t,["opacity"],e,{opacity:1}),o=(r=r||{}).style||{};return null==o.opacity&&(r=N({},r),o=N({opacity:n?i:.1*a.opacity},o),r.style=o),r}(this,t,r);if("select"===t)return function aT(t,e,r){return r&&null==r.z2&&((r=N({},r)).z2=t.z2+(t.z2SelectLift??9)),r}(this,0,r)}return r}function sT(t){t.stateProxy=yf;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=yf),r&&(r.stateProxy=yf)}function qp(t,e){!Zp(t,e)&&!t.__highByOuter&&Ar(t,Hp)}function Up(t,e){!Zp(t,e)&&!t.__highByOuter&&Ar(t,Gp)}function mf(t,e){t.__highByOuter|=1<<(e||0),Ar(t,Hp)}function _f(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ar(t,Gp)}function Yp(t){Ar(t,Vp)}function Xp(t){Ar(t,tT)}function jp(t){Ar(t,rT)}function Zp(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Kp(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=hf(a),s="series"===i,u=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Vp(l)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Sf(t,e,r,n){var i=n.getModel();function a(l,f){for(var c=0;c<f.length;c++){var v=l.getItemGraphicEl(f[c]);v&&Yp(v)}}if(r=r||"coordinateSystem",null!=t&&e&&"none"!==e){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.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||gf(p)}),Ke(e))a(l.getData(),e);else if(K(e))for(var d=ge(e),y=0;y<d.length;y++)a(l.getData(d[y]),e[d[y]]);u.push(l),hf(l).isBlured=!0}}),i.eachComponent(function(l,f){if("series"!==l){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,i)}})}}function Cf(t,e,r){if(null!=t&&null!=e){var n=r.getModel().getComponent(t,e);if(n){hf(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){gf(a)})}}}function bf(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==r)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var u,s=o.findHighDownDispatchers(r),l=0;l<s.length;l++)if("self"===de(s[l]).focus){u=!0;break}return{focusSelf:u,dispatchers:s}}function $p(t){D(t.getAllData(),function(r){var i=r.type;r.data.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Xp(a):jp(a)})})}function vT(t){var e=[];return t.eachSeries(function(r){D(r.getAllData(),function(i){var o=i.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 us(t,e,r){Jp(t,!0),Ar(t,sT),function gT(t,e,r){var n=de(t);null!=e?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}(t,e,r)}var Qp=["emphasis","blur","select"],yT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jp(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 xf(t){return!(!t||!t.__highDownDispatcher)}function Tf(t){var e=t.type;return e===as||e===df||e===os}function eg(t){var e=t.type;return e===Hn||e===is}var tg=Ce();function wf(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,f=void 0,c=void 0;return n?(l=Q(n.duration,200),f=Q(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(f=a.easing),null!=a.delay&&(c=a.delay)),ee(c)&&(c=c(r,i)),ee(l)&&(l=l(r)),{duration:l||0,delay:c,easing:f}}return null}function Df(t,e,r,n,i,a,o){var u,s=!1;ee(i)?(o=a,a=i,i=null):K(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l="leave"===t;l||e.stopAnimation("leave");var f=wf(t,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:a,force:!!a||!!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),a&&a()}function jt(t,e,r,n,i,a){Df("update",t,e,r,n,i,a)}function rn(t,e,r,n,i,a){Df("enter",t,e,r,n,i,a)}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 rg(t,e,r,n,i,a){Ai(t)||Df("leave",t,e,r,n,i,a)}function ng(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),rg(t,{style:{opacity:0}},e,r,n)}function ig(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||ng(i,e,r,n)}):ng(t,e,r,n)}var ls={};function ag(t,e){for(var r=0;r<vr.length;r++){var n=vr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Mf(t,e,r){var s,n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),null!=r?{interpolatedValue:r}:null)),null==s&&(s=ee(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var u={normal:s},l=0;l<vr.length;l++){var f=vr[l],c=e[f];u[f]=Q(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return u}function og(t,e,r,n){r=r||ls;for(var i=t instanceof Ne,a=!1,o=0;o<ns.length;o++)if((s=e[ns[o]])&&s.getShallow("show")){a=!0;break}var u=i?t:t.getTextContent();if(a){i||(u||(u=new Ne,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Mf(r,e),f=e.normal,c=!!f.getShallow("show"),v=Lr(f,n&&n.normal,r,!1,!i);for(v.text=l.normal,i||t.setTextConfig(sg(f,r,!1)),o=0;o<vr.length;o++){var s,h=vr[o];if(s=e[h]){var d=u.ensureState(h),y=!!Q(s.getShallow("show"),c);y!==c&&(d.ignore=!y),d.style=Lr(s,n&&n[h],r,!0,!i),d.style.text=l[h],i||(t.ensureState(h).textConfig=sg(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&&(fs(u).setLabelText=function(g){var m=Mf(r,e,g);ag(u,m)})}else u&&(u.ignore=!0);t.dirty()}function Lr(t,e,r,n,i){var a={};return function xT(t,e,r,n,i){r=r||ls;var u,a=e.ecModel,o=a&&a.option.textStyle,s=function TT(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||ls).rich;if(r){e=e||{};for(var n=ge(r),i=0;i<n.length;i++)e[n[i]]=1}t=t.parentModel}return e}(e);if(s){u={};var l="richInheritPlainLabel",f=Q(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);cg(u[c]={},v,o,e,f,r,n,i,!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 y=t,p=e.get("minMargin");if(null!=p)p=_e(p)?p/2:0,y.margin=[p,p,p,p],y.__marginType=Li.minMargin;else{var g=e.get("textMargin");null!=g&&(y.margin=po(g),y.__marginType=Li.textMargin)}cg(t,e,o,null,null,r,n,i,!0,!1)}(a,t,r,n,i),e&&N(a,e),a}function sg(t,e,r){e=e||{};var i,n={},a=t.getShallow("rotate"),o=Q(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(r?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(n.position=i),null!=s&&(n.offset=s),null!=a&&(a*=Math.PI/180,n.rotation=a),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 ug=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function cg(t,e,r,n,i,a,o,s,u,l){r=!o&&r||ls;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Q(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=Q(e.getShallow("textBorderWidth"),r.textBorderWidth);null!=d&&(t.lineWidth=d);var y=Q(e.getShallow("textBorderType"),r.textBorderType);null!=y&&(t.lineDash=y);var p=Q(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),!o&&null==h&&!l&&(h=a&&a.defaultOpacity),null!=h&&(t.opacity=h),!o&&!s&&null==t.fill&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<ug.length;g++){var m=ug[g];null!=(_=!1!==i&&n?Vr(e.getShallow(m),n.getShallow(m),r[m]):Q(e.getShallow(m),r[m]))&&(t[m]=_)}for(g=0;g<lg.length;g++)null!=(_=e.getShallow(m=lg[g]))&&(t[m]=_);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!u||!a.disableBox){for(g=0;g<fg.length;g++){var _;null!=(_=e.getShallow(m=fg[g]))&&(t[m]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&f&&(t.backgroundColor=f),("auto"===t.borderColor||"inherit"===t.borderColor)&&f&&(t.borderColor=f)}}var fs=Ce();var Li={minMargin:1,textMargin:2},MT=["textStyle","color"],Af=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Lf=new Ne,AT=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(MT):null)},t.prototype.getFont=function(){return function wT(t,e){var r=e&&e.getModel("textStyle");return Gt([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<Af.length;n++)r[Af[n]]=this.getShallow(Af[n]);return Lf.useStyle(r),Lf.update(),Lf.getBoundingRect()},t}();const LT=AT;var hg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],PT=ya(hg),RT=function(){function t(){}return t.prototype.getLineStyle=function(e){return PT(this,e)},t}(),vg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],IT=ya(vg),ET=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return IT(this,e,r)},t}(),Gn=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){xe(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,i=null==n?n:n[e];if(null==i&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=null!=e,i=n?this.parsePath(e):null;return new t(n?this._doGet(i):this.option,r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(le(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(!ue.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 i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Yl(Gn),function t1(t){var e=["__\0is_clz",e1++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!(!r||!r[e])}}(Gn),zt(Gn,RT),zt(Gn,ET),zt(Gn,o1),zt(Gn,LT);const Fe=Gn;var kT=Math.round(10*Math.random());function cs(t){return[t||"",kT++].join("_")}var Pi="EN",vs={},Rf={},dg=ue.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pi).toUpperCase().indexOf("ZH")>-1?"ZH":Pi;function If(t,e){t=t.toUpperCase(),Rf[t]=new Fe(e),vs[t]=e}If("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:". "}}}}),If("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 pt(){return null}var Sa=36e5,Rt=24*Sa,pg=365*Rt,WT={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})/},ds={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ps="{yyyy}-{MM}-{dd}",gg={year:"{yyyy}",month:"{yyyy}-{MM}",day:ps,hour:ps+" "+ds.hour,minute:ps+" "+ds.minute,second:ps+" "+ds.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},xt=["year","month","day","hour","minute","second","millisecond"],UT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function st(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ca(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 jT(t){return t===Ca(t)}function ba(t,e,r,n){var i=xr(t),a=i[yg(r)](),o=i[Bf(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Nf(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Ff(r)](),c=(f-1)%12+1,v=i[zf(r)](),h=i[Hf(r)](),d=i[Gf(r)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=n instanceof Fe?n:function GT(t){return Rf[t]}(n||dg)||function VT(){return Rf[Pi]}(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),C=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,st(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,st(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,st(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,b[l]).replace(/{ee}/g,C[l]).replace(/{e}/g,l+"").replace(/{HH}/g,st(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,st(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,st(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,st(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,st(d,3)).replace(/{S}/g,d+"")}function Ri(t,e){var r=xr(t),n=r[Bf(e)]()+1,i=r[Nf(e)](),a=r[Ff(e)](),o=r[zf(e)](),s=r[Hf(e)](),l=0===r[Gf(e)](),f=l&&0===s,c=f&&0===o,v=c&&0===a,h=v&&1===i;return h&&1===n?"year":h?"month":v?"day":c?"hour":f?"minute":l?"second":"millisecond"}function gs(t,e,r){switch(e){case"year":t[mg(r)](0);case"month":t[_g(r)](1);case"day":t[Sg(r)](0);case"hour":t[Cg(r)](0);case"minute":t[bg(r)](0);case"second":t[xg(r)](0)}return t}function yg(t){return t?"getUTCFullYear":"getFullYear"}function Bf(t){return t?"getUTCMonth":"getMonth"}function Nf(t){return t?"getUTCDate":"getDate"}function Ff(t){return t?"getUTCHours":"getHours"}function zf(t){return t?"getUTCMinutes":"getMinutes"}function Hf(t){return t?"getUTCSeconds":"getSeconds"}function Gf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function $T(t){return t?"setUTCFullYear":"setFullYear"}function mg(t){return t?"setUTCMonth":"setMonth"}function _g(t){return t?"setUTCDate":"setDate"}function Sg(t){return t?"setUTCHours":"setHours"}function Cg(t){return t?"setUTCMinutes":"setMinutes"}function bg(t){return t?"setUTCSeconds":"setSeconds"}function xg(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vf(t){if(!qd(t))return j(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Wf(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 xa=po;function qf(t,e,r){function i(f){return f&&Gt(f)?f:"-"}function a(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=t instanceof Date;if(o||s){var u=o?xr(t):t;if(!isNaN(+u))return ba(u,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",r);if(s)return"-"}if("ordinal"===e)return ho(t)?i(t):_e(t)&&a(t)?t+"":"-";var l=Tr(t);return a(l)?Vf(l):ho(t)?i(t):"boolean"==typeof t?t+"":"-"}var Tg=["a","b","c","d","e","f","g"],Uf=function(t,e){return"{"+t+(e??"")+"}"};function Yf(t,e,r){G(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Tg[a];t=t.replace(Uf(o),Uf(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=e[s][i[u]];t=t.replace(Uf(Tg[u],s),r?it(l):l)}return t}function wg(t,e){var r=j(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";return n?"html"===a?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+it(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(n)+";"+(e||"")+'"></span>':{renderMode:a,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ew(t,e,r){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=xr(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t.replace("MM",st(o,2)).replace("M",o).replace("yyyy",a).replace("yy",st(a%100+"",2)).replace("dd",st(s,2)).replace("d",s).replace("hh",st(u,2)).replace("h",u).replace("mm",st(l,2)).replace("m",l).replace("ss",st(f,2)).replace("s",f).replace("SSS",st(c,3))}function tw(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Ta(t,e){return e=e||"transparent",j(t)?t:K(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Dg(t,e){if("_blank"===e||"blank"===e){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var ys={},Xf={},nw=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){function n(i,a){var o=[];return D(i,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}this._nonSeriesBoxMasterList=n(ys),this._normalMasterList=n(Xf)},t.prototype.update=function(e,r){D(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?Xf[e]=r:ys[e]=r},t.get=function(e){return Xf[e]||ys[e]},t}(),Mg=ae();const ms=nw;var _s=D,Ag=["left","right","top","bottom","width","height"],Vn=[["width","left","right"],["height","top","bottom"]];function Zf(t,e,r,n,i){var a=0,o=0;null==n&&(n=1/0),null==i&&(i=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 y=f.width+(v?-v.x+f.x:0);(h=a+y)>n||u.newline?(a=0,h=y,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)>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),"horizontal"===t?a=h+r:o=d+r)})}var wa=Zf;function Rr(t,e,r){r=xa(r||0);var n=e.width,i=e.height,a=Se(t.left,n),o=Se(t.top,i),s=Se(t.right,n),u=Se(t.bottom,i),l=Se(t.width,n),f=Se(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-v-a),isNaN(f)&&(f=i-u-c-o),null!=h&&(isNaN(l)&&isNaN(f)&&(h>n/i?l=.8*n:f=.8*i),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(a)&&(a=n-s-l-v),isNaN(o)&&(o=i-u-f-c),t.left||t.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-v}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c}a=a||0,o=o||0,isNaN(l)&&(l=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(u||0));var d=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}Re(Zf,"vertical"),Re(Zf,"horizontal");var Da={rect:1,point:2};function Kf(t,e,r){var n,i,a,s,o=t.boxCoordinateSystem;if(o){var u=function ow(t){var e=t.getShallow("coord",!0),r=1;if(null==e){var n=Mg.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){a=Da.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Da.point,s=f,i=o.dataToPoint(l))}return null==a&&(a=Da.rect),a===Da.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function cw(t,e,r,n,i,a){var l,o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((a=a||t).x=t.x,a.y=t.y,!o&&!s)return!1;if("raw"===u)l="group"===t.type?new ne(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=Rr(we({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?(a.x=v,a.y=h):(a.x+=v,a.y+=h),a===t&&t.markRedraw(),!0}function Ss(t){var e=t.layoutMode||t.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function Ii(t,e,r){var n=r&&r.ignoreSize;!G(n)&&(n=[n,n]);var i=o(Vn[0],0),a=o(Vn[1],1);function o(l,f){var c={},v=0,h={},d=0;if(_s(l,function(m){h[m]=t[m]}),_s(l,function(m){J(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 g=l[p];if(!J(c,g)&&J(t,g)){c[g]=t[g];break}}return c}function s(l,f){return null!=l[f]&&"auto"!==l[f]}function u(l,f,c){_s(l,function(v){f[v]=c[v]})}u(Vn[0],t,i),u(Vn[1],t,a)}function $f(t){return Lg({},t)}function Lg(t,e){return e&&t&&_s(Ag,function(r){J(e,r)&&(t[r]=e[r])}),t}var hw=Ce(),Ei=function(t){function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=cs("ec_cpt_model"),a}return(0,Z.C6)(e,t),e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ss(this),a=i?$f(r):{};xe(r,n.getTheme().get(this.mainType)),xe(r,this.getDefaultOption()),i&&Ii(r,a,i)},e.prototype.mergeOption=function(r,n){xe(this.option,r,!0);var i=Ss(this);i&&Ii(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!function Qx(t){return!(!t||!t[tp])}(r))return r.defaultOption;var n=hw(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=xe(s,i[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Id";return ga(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return function uw(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}(Fe);rp(Ei,Fe),Zo(Ei),function OT(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=ur(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=ur(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}(Ei),function BT(t,e){function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}t.topologicalTravel=function(a,o,s,u){if(a.length){var l=function r(a){var o={},s=[];return D(a,function(u){var l=n(o,u),c=function i(a,o){var s=[];return D(a,function(u){fe(o,u)>=0&&s.push(u)}),s}(l.originalDeps=e(u),a);l.entryCount=c.length,0===l.entryCount&&s.push(u),D(c,function(v){fe(l.predecessor,v)<0&&l.predecessor.push(v);var h=n(o,v);fe(h.successor,v)<0&&h.successor.push(u)})}),{graph:o,noEntryList:s}}(o),f=l.graph,c=l.noEntryList,v={};for(D(a,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],y=!!v[h];y&&(s.call(u,h,d.originalDeps.slice()),delete v[h]),D(d.successor,y?g:p)}D(v,function(){throw new Error("")})}function p(m){f[m].entryCount--,0===f[m].entryCount&&c.push(m)}function g(m){v[m]=!0,p(m)}}}(Ei,function vw(t){var e=[];return D(Ei.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return ur(r).main}),"dataset"!==t&&fe(e,"dataset")<=0&&e.unshift("dataset"),e});const De=Ei;var Wn={color:{},darkColor:{},size:{}},Ie=Wn.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 qn in N(Ie,{primary:Ie.neutral80,secondary:Ie.neutral70,tertiary:Ie.neutral60,quaternary:Ie.neutral50,disabled:Ie.neutral20,border:Ie.neutral30,borderTint:Ie.neutral20,borderShade:Ie.neutral40,background:Ie.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ie.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ie.neutral70,axisLineTint:Ie.neutral40,axisTick:Ie.neutral70,axisTickMinor:Ie.neutral60,axisLabel:Ie.neutral70,axisSplitLine:Ie.neutral15,axisMinorSplitLine:Ie.neutral05}),Ie)if(Ie.hasOwnProperty(qn)){var Pg=Ie[qn];"theme"===qn?Wn.darkColor.theme=Ie.theme.slice():"highlight"===qn?Wn.darkColor.highlight="rgba(255,231,130,0.4)":Wn.darkColor[qn]=0===qn.indexOf("accent")?ko(Pg,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):ko(Pg,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}Wn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const ce=Wn;var Rg="";typeof navigator<"u"&&(Rg=navigator.platform||"");var ki="rgba(0, 0, 0, 0.2)",Ig=ce.color.theme[0],dw=ko(Ig,null,null,.9);const pw={darkMode:"auto",colorBy:"series",color:ce.color.theme,gradientColor:[dw,Ig],aria:{decal:{decals:[{color:ki,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ki,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ki,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ki,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ki,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ki,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Rg.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 Eg=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",Qe="arrayRows",It="objectRows",Zt="keyedColumns",Ir="typedArray",kg="unknown",dr="column",Un="row",Og=Ce();function yw(t,e,r){var n={},i=Qf(e);if(!i||!t)return n;var f,c,a=[],o=[],u=Og(e.ecModel).datasetMap,l=i.uid+"_"+r.seriesLayoutBy;D(t=t.slice(),function(y,p){var g=K(y)?y:t[p]={name:y};"ordinal"===g.type&&null==f&&(f=p,c=d(g)),n[g.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});function h(y,p,g){for(var m=0;m<g;m++)y.push(p+m)}function d(y){var p=y.dimsDef;return p?p.length:1}return D(t,function(y,p){var g=y.name,m=d(y);if(null==f)h(n[g],_=v.valueWayDim,m),h(o,_,m),v.valueWayDim+=m;else if(f===p)h(n[g],0,m),h(a,0,m);else{var _;h(n[g],_=v.categoryWayDim,m),h(o,_,m),v.categoryWayDim+=m}}),a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function mw(t,e,r){var n={};if(!Qf(t))return n;var s,a=e.sourceFormat,o=e.dimensionsDefine;(a===It||a===Zt)&&D(o,function(f,c){"name"===(K(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 y=Ng(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(y);var p=3===y;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),g(f)&&3!==v[f.n])return f;p||(2===y&&null==c.v&&h!==s&&(c.v=h),(null==c.n||c.n===c.v)&&(c.n=h))}function g(m){return null!=m.v&&null!=m.n}return g(f)?f:g(c)?c:null}();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Qf(t){if(!t.get("data",!0))return ga(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},$r).models[0]}function Bg(t,e){return Ng(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ng(t,e,r,n,i,a){var o,u,l;if(rt(t))return 3;if(n){var f=n[a];K(f)?(u=f.name,l=f.type):j(f)&&(u=f)}if(null!=l)return"ordinal"===l?1:3;if(e===Qe){var c=t;if(r===Un){for(var v=c[a],h=0;h<(v||[]).length&&h<5;h++)if(null!=(o=S(v[i+h])))return o}else for(h=0;h<c.length&&h<5;h++){var d=c[i+h];if(d&&null!=(o=S(d[a])))return o}}else if(e===It){var y=t;if(!u)return 3;for(h=0;h<y.length&&h<5;h++)if((p=y[h])&&null!=(o=S(p[u])))return o}else if(e===Zt){if(!u)return 3;if(!(v=t[u])||rt(v))return 3;for(h=0;h<v.length&&h<5;h++)if(null!=(o=S(v[h])))return o}else if(e===Tt){var m=t;for(h=0;h<m.length&&h<5;h++){var p,_=ha(p=m[h]);if(!G(_))return 3;if(null!=(o=S(_[a])))return o}}function S(b){var C=j(b);return null!=b&&Number.isFinite(Number(b))&&""!==b?C?2:3:C&&"-"!==b?1:void 0}return 3}var Jf=ae(),Fg=Ce(),ec=(Ce(),function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Ge(this.get("color",!0)),a=this.get("colorLayer",!0);return function zg(t,e,r,n,i,a,o){var s=e(a=a||t),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=null!=o&&n?function Tw(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 i&&(l[i]=c),s.paletteIdx=(u+1)%f.length,c}}(this,Fg,i,a,e,r,n)},t.prototype.clearColorPalette=function(){!function ww(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Fg)},t}());var Cs,Ma,Hg,Gg="\0_ec_inner",Wg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Fe(a),this._locale=new Fe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Yg(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Yg(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||"recreate"===r){var o=a.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(o,n)):Hg(this,o),i=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||"recreate"===r||"media"===r){var u=a.getMediaOption(this);u.length&&D(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=ae(),l=n&&n.replaceMergeMainTypeMap;(function gw(t){Og(t).datasetMap=ae()})(this),D(r,function(c,v){null!=c&&(De.hasClass(v)?v&&(s.push(v),u.set(v,!0)):i[v]=null==i[v]?le(c):xe(i[v],c,!0))}),l&&l.each(function(c,v){De.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),De.topologicalTravel(s,De.getAllClassMainTypes(),function f(c){var v=function Cw(t,e,r){var n=Jf.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}(this,c,Ge(r[c])),h=a.get(c),y=Qd(h,v,h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll");(function qx(t,e,r){D(t,function(n){var i=n.newOption;K(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=function Ux(t,e,r,n){return e.type?e.type:r?r.subType:n.determineSubType(t,e)}(e,i,n.existing,r))})})(y,c,De),i[c]=null,a.set(c,null),o.set(c,0);var _,p=[],g=[],m=0;D(y,function(b,C){var x=b.existing,T=b.newOption;if(T){var A=De.getClass(c,b.keyInfo.subType,!("series"===c));if(!A)return;if("tooltip"===c){if(_)return;_=!0}if(x&&x.constructor===A)x.name=b.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=N({componentIndex:C},b.keyInfo);N(x=new A(T,this,this,M),M),b.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}else x&&(x.mergeOption({},this),x.optionUpdated({},!1));x?(p.push(x.option),g.push(x),m++):(p.push(void 0),g.push(void 0))},this),i[c]=p,a.set(c,g),o.set(c,m),"series"===c&&Cs(this)},this),this._seriesIndices||Cs(this)},e.prototype.getOption=function(){var r=le(this.option);return D(r,function(n,i){if(De.hasClass(i)){for(var a=Ge(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!da(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Gg],r},e.prototype.setTheme=function(r){this._theme=new Fe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(null==n)for(var o=0;o<i.length;o++)if(i[o])return i[o]}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var u,i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);return s&&s.length?(null!=i?(u=[],D(Ge(i),function(l){s[l]&&u.push(s[l])})):u=null!=a?qg("id",a,s):null!=o?qg("name",o,s):Pe(s,function(l){return!!l}),Ug(u,r)):[]},e.prototype.findComponents=function(r){var i=r.mainType,a=function s(l){var f=i+"Index",c=i+"Id",v=i+"Name";return!l||null==l[f]&&null==l[c]&&null==l[v]?null:{mainType:i,index:l[f],id:l[c],name:l[v]}}(r.query);return function u(l){return r.filter?Pe(l,r.filter):l}(Ug(a?this.queryComponents(a):Pe(this._componentsMap.get(i),function(l){return!!l}),r))},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ee(r)){var o=n,s=r;a.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=j(r)?a.get(r):K(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=at(r,null);return Pe(this._componentsMap.get("series"),function(i){return!!i&&null!=n&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Pe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Pe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Ma(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Ma(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Ma(this),null==this._seriesIndicesMap.get(r.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Ma(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ae(i)},e.prototype.restoreData=function(r){Cs(this);var n=this._componentsMap,i=[];n.each(function(a,o){De.hasClass(o)&&i.push(o)}),De.topologicalTravel(i,De.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&("series"!==a||!function Rw(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return null!=r&&t.componentIndex!==r||null!=n&&t.id!==n||null!=i&&t.name!==i}}(o,r))&&o.restoreData()})})},e.internalField=(Cs=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ae(n)},Ma=function(r){},void(Hg=function(r,n){r.option={},r.option[Gg]=1,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var i=n.aria;K(i)&&null==i.enabled&&(i.enabled=!0),function Iw(t,e){var r=t.color&&!t.colorLayer;D(e,function(n,i){"colorLayer"===i&&r||"color"===i&&t.color||De.hasClass(i)||("object"==typeof n?t[i]=t[i]?xe(t[i],n,!1):le(n):null==t[i]&&(t[i]=n))})}(n,r._theme.option),xe(n,pw,!1),r._mergeOption(n,null)})),e}(Fe);function qg(t,e,r){if(G(e)){var n=ae();return D(e,function(a){null!=a&&null!=at(a,null)&&n.set(a,!0)}),Pe(r,function(a){return a&&n.get(a[t])})}var i=at(e,null);return Pe(r,function(a){return a&&null!=i&&a[t]===i})}function Ug(t,e){return e.hasOwnProperty("subType")?Pe(t,function(r){return r&&r.subType===e.subType}):t}function Yg(t){var e=ae();return t&&D(Ge(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}zt(Wg,ec);const Xg=Wg;var Ew=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kw=function(){return function t(e){D(Ew,function(r){this[r]=ve(e[r],e)},this)}}();const jg=kw;var Ow=/^(min|max)?(.+)$/,Bw=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(D(Ge(e.series),function(o){o&&o.data&&rt(o.data)&&go(o.data)}),D(Ge(e.dataset),function(o){o&&o.source&&rt(o.source)&&go(o.source)})),e=le(e);var i=this._optionBackup,a=function Nw(t,e,r){var i,a,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){D(e,function(d){d(h,r)})}return o?(a=o).timeline||(a.timeline=s):((c||f)&&(t.options=t.media=null),a=t),f&&G(l)&&D(l,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),D(u,function(h){return v(h)}),D(n,function(h){return v(h.option)}),{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=le(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)Fw(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!function Hw(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=$(o,function(f){return le(-1===f?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function Fw(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return D(t,function(a,o){var s=o.match(Ow);if(s&&s[1]&&s[2]){var u=s[1],l=s[2].toLowerCase();(function zw(t,e,r){return"min"===r?t>=e:"max"===r?t<=e:t===e})(n[l],a,u)||(i=!1)}}),i}const Gw=Bw;var Kt=D,Aa=K,Zg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function tc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Zg.length;r<n;r++){var i=Zg[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?xe(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?xe(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Je(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,we(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function La(t){Je(t,"itemStyle"),Je(t,"lineStyle"),Je(t,"areaStyle"),Je(t,"label"),Je(t,"labelLine"),Je(t,"upperLabel"),Je(t,"edgeLabel")}function ke(t,e){var r=Aa(t)&&t[e],n=Aa(r)&&r.textStyle;if(n)for(var i=0,a=$d.length;i<a;i++){var o=$d[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Et(t){t&&(La(t),ke(t,"label"),t.emphasis&&ke(t.emphasis,"label"))}function Er(t){return G(t)?t:t?[t]:[]}function Kg(t){return(G(t)?t[0]:t)||{}}function $g(t){t&&D(Yw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Yw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Xw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],rc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pa(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<rc.length;r++){var n=rc[r][1];null!=e[n]&&(e[rc[r][0]]=e[n])}}function Qg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Jg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ey(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&ey(t[r].children,e)}function ty(t,e){(function Ww(t,e){Kt(Er(t.series),function(n){Aa(n)&&function Vw(t){if(Aa(t)){tc(t),La(t),ke(t,"label"),ke(t,"upperLabel"),ke(t,"edgeLabel"),t.emphasis&&(ke(t.emphasis,"label"),ke(t.emphasis,"upperLabel"),ke(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(tc(e),Et(e));var r=t.markLine;r&&(tc(r),Et(r));var n=t.markArea;n&&Et(n);var i=t.data;if("graph"===t.type){i=i||t.nodes;var a=t.links||t.edges;if(a&&!rt(a))for(var o=0;o<a.length;o++)Et(a[o]);D(t.categories,function(l){La(l)})}if(i&&!rt(i))for(o=0;o<i.length;o++)Et(i[o]);if((e=t.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)Et(s[o])}if((r=t.markLine)&&r.data){var u=r.data;for(o=0;o<u.length;o++)G(u[o])?(Et(u[o][0]),Et(u[o][1])):Et(u[o])}"gauge"===t.type?(ke(t,"axisLabel"),ke(t,"title"),ke(t,"detail")):"treemap"===t.type?(Je(t.breadcrumb,"itemStyle"),D(t.levels,function(l){La(l)})):"tree"===t.type&&La(t.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Kt(r,function(n){Kt(Er(t[n]),function(i){i&&(ke(i,"axisLabel"),ke(i.axisPointer,"label"))})}),Kt(Er(t.parallel),function(n){var i=n&&n.parallelAxisDefault;ke(i,"axisLabel"),ke(i&&i.axisPointer,"label")}),Kt(Er(t.calendar),function(n){Je(n,"itemStyle"),ke(n,"dayLabel"),ke(n,"monthLabel"),ke(n,"yearLabel")}),Kt(Er(t.radar),function(n){ke(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)}),Kt(Er(t.geo),function(n){Aa(n)&&(Et(n),Kt(Er(n.regions),function(i){Et(i)}))}),Kt(Er(t.timeline),function(n){Et(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var i=n.data;G(i)&&D(i,function(a){K(a)&&(Je(a,"label"),Je(a,"itemStyle"))})}),Kt(Er(t.toolbox),function(n){Je(n,"iconStyle"),Kt(n.feature,function(i){Je(i,"iconStyle")})}),ke(Kg(t.axisPointer),"label"),ke(Kg(t.tooltip).axisPointer,"label")})(t,e),t.series=Ge(t.series),D(t.series,function(r){if(K(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),Qg(r.label),(i=r.data)&&!rt(i))for(var a=0;a<i.length;a++)Qg(i[a]);null!=r.hoverOffset&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if("gauge"===n){var o=function qw(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&null!=(n=n&&n[r[i]]);i++);return n}(r,"pointer.color");null!=o&&function Uw(t,e,r,n){for(var o,i=e.split(","),a=t,s=0;s<i.length-1;s++)null==a[o=i[s]]&&(a[o]={}),a=a[o];(n||null==a[i[s]])&&(a[i[s]]=r)}(r,"itemStyle.color",o)}else if("bar"===n){var i;if(Pa(r),Pa(r.backgroundStyle),Pa(r.emphasis),(i=r.data)&&!rt(i))for(a=0;a<i.length;a++)"object"==typeof i[a]&&(Pa(i[a]),Pa(i[a]&&i[a].emphasis))}else if("sunburst"===n){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Jg(r),ey(r.data,Jg)}else"graph"===n||"sankey"===n?function jw(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&&we(r,r.mapLocation));null!=r.hoverAnimation&&(r.emphasis=r.emphasis||{},r.emphasis&&null==r.emphasis.scale&&(r.emphasis.scale=r.hoverAnimation)),$g(r)}}),t.dataRange&&(t.visualMap=t.dataRange),D(Xw,function(r){var n=t[r];n&&(G(n)||(n=[n]),D(n,function(i){$g(i)}))})}var bs=function(){return function t(e){this.data=e.data||(e.sourceFormat===Zt?{}:[]),this.sourceFormat=e.sourceFormat||kg,this.seriesLayoutBy=e.seriesLayoutBy||dr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];null==i.type&&1===Bg(this,n)&&(i.type="ordinal")}}}();function nc(t){return t instanceof bs}function ic(t,e,r){r=r||ry(t);var n=e.seriesLayoutBy,i=function Qw(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:ny(i),startIndex:o,dimensionsDetectedCount:a};if(e===Qe){var s=t;"auto"===n||null==n?iy(function(l){null!=l&&"-"!==l&&(j(l)?null==o&&(o=1):o=0)},r,s,10):o=_e(n)?n:n?1:0,!i&&1===o&&(i=[],iy(function(l,f){i[f]=null!=l?l+"":""},r,s,1/0)),a=i?i.length:r===Un?s.length:s[0]?s[0].length:null}else if(e===It)i||(i=function Jw(t){for(var r,e=0;e<t.length&&!(r=t[e++]););if(r)return ge(r)}(t));else if(e===Zt)i||(i=[],D(t,function(l,f){i.push(f)}));else if(e===Tt){var u=ha(t[0]);a=G(u)&&u.length||1}return{startIndex:o,dimensionsDefine:ny(i),dimensionsDetectedCount:a}}(t,r,n,e.sourceHeader,e.dimensions);return new bs({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:le(e)})}function ac(t){return new bs({data:t,sourceFormat:rt(t)?Ir:Tt})}function $w(t){return new bs({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:le(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ry(t){var e=kg;if(rt(t))e=Ir;else if(G(t)){0===t.length&&(e=Qe);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(null!=i){if(G(i)||rt(i)){e=Qe;break}if(K(i)){e=It;break}}}}else if(K(t))for(var a in t)if(J(t,a)&&Ke(t[a])){e=Zt;break}return e}function ny(t){if(t){var e=ae();return $(t,function(r,n){var i={name:(r=K(r)?r:{name:r}).name,displayName:r.displayName,type:r.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function iy(t,e,r,n){if(e===Un)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else{var a=r[0]||[];for(i=0;i<a.length&&i<n;i++)t(a[i],i)}}function ay(t){var e=t.sourceFormat;return e===It||e===Zt}var oy={},tD=typeof console<"u"&&console.warn&&console.log;function sy(t,e){!function oc(t,e,r){if(tD){if(r){if(oy[e])return;oy[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function ut(t){throw new Error(t)}var Yn,Xn,jn,Zn,ly,fy,cy=function(){function t(e,r){var n=nc(e)?e:ac(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Ir&&(this._offset=0,this._dimSize=r,this._data=i),fy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var e;fy=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,v=u.dimensionsDefine;if(N(o,ly[uc(l,f)]),l===Ir)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=vy(l,f);o.getItem=ve(d,null,s,c,v);var y=py(l,f);o.count=ve(y,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],y=null==h[1]?-1/0:h[1],p=s-o,g=u[v],m=0;m<p;m++){var _=f[m*c+v];g[o+m]=_,_<d&&(d=_),_>y&&(y=_)}h[0]=d,h[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[Qe+"_"+dr]={pure:!0,appendData:a},e[Qe+"_"+Un]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[It]={pure:!0,appendData:a},e[Zt]={pure:!0,appendData:function(o){var s=this._data;D(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[Tt]={appendData:a},e[Ir]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},ly=e}(),t;var e}(),xs=function(t){G(t)||sy("series.data or dataset.source must be an array.")},hy=((Yn={})[Qe+"_"+dr]=xs,Yn[Qe+"_"+Un]=xs,Yn[It]=xs,Yn[Zt]=function(t,e){for(var r=0;r<e.length;r++)null==e[r].name&&sy("dimension name must not be null/undefined.")},Yn[Tt]=xs,function(t,e,r,n){return t[n]}),iD=((Xn={})[Qe+"_"+dr]=function(t,e,r,n){return t[n+e]},Xn[Qe+"_"+Un]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},Xn[It]=hy,Xn[Zt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=null!=s?t[s]:null;a[o]=u?u[n]:null}return a},Xn[Tt]=hy,Xn);function vy(t,e){return iD[uc(t,e)]}var dy=function(t,e,r){return t.length},aD=((jn={})[Qe+"_"+dr]=function(t,e,r){return Math.max(0,t.length-e)},jn[Qe+"_"+Un]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},jn[It]=dy,jn[Zt]=function(t,e,r){var n=r[0].name,i=null!=n?t[n]:null;return i?i.length:0},jn[Tt]=dy,jn);function py(t,e){return aD[uc(t,e)]}var sc=function(t,e,r){return t[e]},oD=((Zn={})[Qe]=sc,Zn[It]=function(t,e,r){return t[r]},Zn[Zt]=sc,Zn[Tt]=function(t,e,r){var n=ha(t);return n instanceof Array?n[e]:n},Zn[Ir]=sc,Zn);function gy(t){return oD[t]}function uc(t,e){return t===Qe?t+"_"+e:t}function Ts(t,e,r){if(t){var n=t.getRawDataItem(e);if(null!=n){var i=t.getStore(),a=i.getSource().sourceFormat;if(null!=r){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return gy(a)(n,o,s)}var u=n;return a===Tt&&(u=ha(n)),u}}}var sD=/\{@(.+?)\}/g,uD=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),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:a,data:s,dataType:r,value:i,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,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);return o&&(u.value=o.interpolatedValue),null!=i&&G(u.value)&&(u.value=u.value[i]),a||(a=s.getItemModel(e).get("normal"===r?["label","formatter"]:[r,"label","formatter"])),ee(a)?(u.status=r,u.dimensionIndex=i,a(u)):j(a)?Yf(a,u).replace(sD,function(c,v){var h=v.length,d=v;"["===d.charAt(0)&&"]"===d.charAt(h-1)&&(d=+d.slice(1,h-1));var y=Ts(s,e,d);if(o&&G(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return null!=y?y+"":""}):void 0},t.prototype.getRawValue=function(e,r){return Ts(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function yy(t){var e,r;return K(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ra(t){return new lD(t)}var lD=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 a,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(a=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)&&(a="reset"),(this._dirty||"reset"===a)&&(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 y=this._progress;if(G(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],h,d,u,l);else this._doProgress(y,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,i,a){my.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:my.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),G(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),my=function(){var t,e,r,n,i,a={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%i*r+Math.ceil(e/i),l=e>=t?null:u<n?u:e;return e++,l}}();function ws(t,e){var r=e&&e.type;return"ordinal"===r?t:("time"===r&&!_e(t)&&null!=t&&"-"!==t&&(t=+xr(t)),null==t||""===t?NaN:Number(t))}ae({number:function(t){return parseFloat(t)},time:function(t){return+xr(t)},trim:function(t){return j(t)?Gt(t):t}});var vD=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=_e(e)?e:Tr(e),i=_e(r)?r:Tr(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=j(e),u=j(r);s&&(n=u?e:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),pD=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 ws(e,r)},t}();function yD(t){return lc(t.sourceFormat)||ut(""),t.data}function mD(t){var e=t.sourceFormat,r=t.data;if(lc(e)||ut(""),e===Qe){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}if(e===It){for(i=[],a=0,o=r.length;a<o;a++)i.push(N({},r[a]));return i}}function _D(t,e,r){if(null!=r){if(_e(r)||!isNaN(r)&&!J(e,r))return t[r];if(J(e,r))return e[r]}}function SD(t){return le(t)}var Sy=ae();function xD(t,e,r,n){e.length||ut(""),K(t)||ut("");var o=Sy.get(t.type);o||ut("");var s=$(e,function(f){return function gD(t,e){var r=new pD,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex;t.seriesLayoutBy!==dr&&ut("");var s=[],u={},l=t.dimensionsDefine;if(l)D(l,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};s.push(m),null!=g&&(J(u,g)&&ut(""),u[g]=m)});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=vy(i,dr);e.__isBuiltIn&&(r.getRawDataItem=function(y){return c(n,a,s,y)},r.getRawData=ve(yD,null,t)),r.cloneRawData=ve(mD,null,t);var v=py(i,dr);r.count=ve(v,null,n,a,s);var h=gy(i);r.retrieveValue=function(y,p){var g=c(n,a,s,y);return d(g,p)};var d=r.retrieveValueFromItem=function(y,p){if(null!=y){var g=s[p];if(g)return h(y,p,g.name)}};return r.getDimensionInfo=ve(_D,null,s,u),r.cloneAllDimensionInfo=ve(SD,null,s),r}(f,o)});return $(Ge(o.transform({upstream:s[0],upstreamList:s,config:le(t.config)})),function(f,c){K(f)||ut(""),f.data||ut(""),lc(ry(f.data))||ut("");var d,y=e[0];if(y&&0===c&&!f.dimensions){var p=y.startIndex;p&&(f.data=y.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:dr,sourceHeader:p,dimensions:y.metaRawOption.dimensions}}else d={seriesLayoutBy:dr,sourceHeader:0,dimensions:f.dimensions};return ic(f.data,d,null)})}function lc(t){return t===Qe||t===It}var fc,Ds="undefined",TD=typeof Uint32Array===Ds?Array:Uint32Array,wD=typeof Uint16Array===Ds?Array:Uint16Array,Cy=typeof Int32Array===Ds?Array:Int32Array,by=typeof Float64Array===Ds?Array:Float64Array,xy={float:by,int:Cy,ordinal:Array,number:Array,time:by};function Oi(t){return t>65535?TD:wD}function Bi(){return[1/0,-1/0]}function DD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ty(t,e,r,n,i){var a=xy[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(n)}var MD=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=fc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],ay(i),this._dimensions=$(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(null!=a){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new xy[r||"float"](this._rawCount),this._rawExtent[a]=[1/0,-1/0],a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;0===o&&(a[e]=[1/0,-1/0]);for(var u=a[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]))}i.ordinalMeta=r,i.ordinalOffset=s,i.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 i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++)Ty(n,l,i[l].type,u,!0);for(var c=[],v=s;v<u;v++)for(var h=v-s,d=0;d<a;d++){var y=fc.arrayRows.call(this,e[h]||c,i[d].property,h,d);n[d][v]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=$(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=Bi()),Ty(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,u);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var y=a[d],p=this._dimValueGetter(v,l[d],h,d);y[h]=p;var g=u[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(null==r){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;a=0;for(var o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var n=0;if(this._chunks[e])for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else{if(!(r[o]>e))return o;a=o-1}}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=this._count;if((n=r.constructor)===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n;for(e=new(n=Oi(this._rawCount))(this.count()),a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Oi(n._rawCount))(i),s=[],u=e.length,l=0,f=e[0],c=n._chunks,v=0;v<i;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<i&&(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 i=ge(e),a=i.length;if(!a)return this;var o=r.count(),u=new(Oi(r._rawCount))(o),l=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var y=0;if(1===a){for(var p=h[i[0]],g=0;g<n;g++)((m=p[g])>=c&&m<=v||isNaN(m))&&(u[l++]=y),y++;d=!0}else if(2===a){p=h[i[0]];var _=h[i[1]],S=e[i[1]][0],b=e[i[1]][1];for(g=0;g<n;g++){var C=_[g];((m=p[g])>=c&&m<=v||isNaN(m))&&(C>=S&&C<=b||isNaN(C))&&(u[l++]=y),y++}d=!0}}if(!d)if(1===a)for(g=0;g<o;g++){var x=r.getRawIndex(g);((m=h[i[0]][x])>=c&&m<=v||isNaN(m))&&(u[l++]=x)}else for(g=0;g<o;g++){for(var T=!0,w=(x=r.getRawIndex(g),0);w<a;w++){var m,A=i[w];((m=h[A][x])<e[A][0]||m>e[A][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(g))}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 i=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=Bi();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)u[h]=i[r[h]][v];u[o]=c;var d=n&&n.apply(null,u);if(null!=d)for("object"!=typeof d&&(a[0]=d,d=a),f=0;f<d.length;f++){var y=r[f],p=d[f],g=l[y],m=i[y];m&&(m[v]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}},t.prototype.lttbDownSample=function(e,r){var f,c,v,n=this.clone([e],!0),a=n._chunks[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),h=new(Oi(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 y=Math.min(d+u,o-1),p=Math.min(d+2*u,o),g=(p+y)/2,m=0,_=y;_<p;_++){var b=a[S=this.getRawIndex(_)];isNaN(b)||(m+=b)}m/=p-y;var C=d,x=Math.min(d+u,o),T=d-1,w=a[l];f=-1,v=C;var A=-1,L=0;for(_=C;_<x;_++){var S;b=a[S=this.getRawIndex(_)],isNaN(b)?(L++,A<0&&(A=S)):(c=Math.abs((T-g)*(b-w)-(T-_)*(m-w)))>f&&(f=c,v=S)}L>0&&L<x-C&&(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),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),u=new(Oi(this._rawCount))(2*Math.ceil(s/a)),l=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],y=a;f+a>s&&(y=s-f);for(var p=0;p<y;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,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=[1/0,-1/0],v=new(Oi(this._rawCount))(Math.ceil(f/u)),h=0,d=0;d<f;d+=u){u>f-d&&(s.length=u=f-d);for(var y=0;y<u;y++){var p=this.getRawIndex(d+y);s[y]=l[p]}var g=n(s),m=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));l[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),v[h++]=m}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=[1/0,-1/0];if(!r)return n;var o,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(o=this._extent[e])return o.slice();for(var s=(o=n)[0],u=o[1],l=0;l<i;l++){var c=r[this.getRawIndex(l)];c<s&&(s=c),c>u&&(u=c)}return this._extent[e]=o=[s,u],o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Ht(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?DD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=le(this._extent),e._rawExtent=le(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return ws(r[a],this._dimensions[a])}fc={arrayRows:e,objectRows:function(r,n,i,a){return ws(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(null==r.value?r:r.value);return ws(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}();const cc=MD;var LD=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 i,a,e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length;if(Ms(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,a=[f._getVersionSign()]}else u=rt(s=o.get("data",!0))?Ir:Tt,a=[];var c=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},h=Q(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(c.sourceHeader,v.sourceHeader),y=Q(c.dimensions,v.dimensions);i=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y?[ic(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:y},u)]:[]}else{var g=e;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else i=[ic(g.get("source",!0),this._getSourceMetaRawOption(),null)],a=[]}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);null!=i&&1!==e.length&&wy("");var o,s=[],u=[];return D(e,function(l){l.prepareSource();var f=l.getSource(i||0);null!=i&&!f&&wy(""),s.push(f),u.push(l._getVersionSign())}),n?o=function bD(t,e){var n=Ge(t),i=n.length;i||ut("");for(var o=0,s=i;o<s;o++)e=xD(n[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(n,s):null!=i&&(o=[$w(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 a=this._storeList,o=a[0];o||(o=a[0]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Ms(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new cc).initData(new cy(r,e.length),e),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ms(e)){var r=Qf(e);return r?[r.getSourceManager()]:[]}return $(function _w(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?ga(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},$r).models:[]}(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r,n,i,e=this._sourceHost;if(Ms(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function Ms(t){return"series"===t.mainType}function wy(t){throw new Error(t)}function Dy(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+it(e+"")+"px"}function My(t,e){var r=t.color||ce.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ce.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+it(n+"")+"px;color:"+it(r)+";font-weight:"+it(i+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var RD=[0,10,20,30],ID=["","\n","\n\n","\n\n\n"];function Ia(t,e){return e.type=t,e}function hc(t){return"section"===t.type}function Ay(t){return hc(t)?ED:kD}function Ly(t){if(hc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return D(t.blocks,function(i){var a=Ly(i);a>=e&&(e=a+ +(n&&(!a||hc(i)&&!i.noHeader)))}),e}return 0}function ED(t,e,r,n){var i=e.noHeader,a=function OD(t){return{html:RD[t],richText:ID[t]}}(Ly(e)),o=[],s=e.blocks||[];tr(!s||G(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(J(l,u)){var f=new vD(l[u],null);s.sort(function(y,p){return f.evaluate(y.sortParam,p.sortParam)})}else"seriesDesc"===u&&s.reverse()}D(s,function(y,p){var g=e.valueFormatter,m=Ay(y)(g?N(N({},t),{valueFormatter:g}):t,y,p>0?a.html:0,n);null!=m&&o.push(m)});var c="richText"===t.renderMode?o.join(a.richText):vc(n,o.join(""),i?r:a.html);if(i)return c;var v=qf(e.header,"ordinal",t.useUTC),h=My(n,t.renderMode).nameStyle,d=Dy(n);return"richText"===t.renderMode?Ry(t,v,h)+a.richText+c:vc(n,'<div style="'+h+";"+d+';">'+it(v)+"</div>"+c,r)}function kD(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return $(S=G(S)?S:[S],function(b,C){return qf(b,G(h)?h[C]:h,l)})};if(!a||!o){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ce.color.secondary,i),v=a?"":qf(u,"ordinal",l),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),y=!s||!a,p=!s&&a,g=My(n,i),m=g.nameStyle,_=g.valueStyle;return"richText"===i?(s?"":c)+(a?"":Ry(t,v,m))+(o?"":function FD(t,e,r,n,i){var a=[i];return r&&a.push({padding:[0,0,0,n?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,a)}(t,d,y,p,_)):vc(n,(s?"":c)+(a?"":function BD(t,e,r){return'<span style="'+r+";"+(e?"margin-left:2px":"")+'">'+it(t)+"</span>"}(v,!s,m))+(o?"":function ND(t,e,r,n){return'<span style="'+(e?"float:right;margin-left:"+(r?"10px":"20px"):"")+";"+n+'">'+$(t=G(t)?t:[t],function(o){return it(o)}).join(" ")+"</span>"}(d,y,p,_)),r)}}function Py(t,e,r,n,i,a){if(t)return Ay(t)({useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,a)}function vc(t,e,r){return'<div style="margin: '+r+"px 0 0;"+Dy(t)+';">'+e+'<div style="clear:both"></div></div>'}function Ry(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Iy(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var dc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ud()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i="richText"===n?this._generateStyleName():null,a=wg({color:r,type:e,renderMode:n,markerId:i});return j(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};G(r)?D(r,function(a){return N(n,a)}):N(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();var nn=Ce();function As(t,e){return t.getName(e)||t.getId(e)}var Ls=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return(0,Z.C6)(e,t),e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ra({count:qD,reset:UD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i),(nn(this).sourceManager=new LD(this)).prepareSource();var o=this.getInitialData(r,i);ky(o,this),this.dataTask.context.data=o,nn(this).dataBeforeProcessed=o,Ey(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ss(this),a=i?$f(r):{},o=this.subType;De.hasClass(o)&&(o+="Series"),xe(r,n.getTheme().get(this.subType)),xe(r,this.getDefaultOption()),Vl(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ii(r,a,i)},e.prototype.mergeOption=function(r,n){r=xe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ss(this);i&&Ii(this.option,r,i);var a=nn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ky(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,nn(this).dataBeforeProcessed=o,Ey(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!rt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Vl(r[i],"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=pc(this);if(n){var i=n.context.data;return null!=r&&i.getLinkedData?i.getLinkedData(r):i}return nn(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=pc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}nn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return nn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return nn(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,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);null==a&&(a=1/0);var f=[],c=1/0,v=-1,h=0;return o.each(n,function(d,y){var p=u.dataToCoord(d),g=l-p,m=Math.abs(g);m<=a&&((m<c||m===c&&g>=0&&v<0)&&(c=m,v=g,h=0),g===v&&(f[h++]=y))}),f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return function HD(t){var f,c,v,h,e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=G(s),l=function zD(t,e){return Ta(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(e,r);if(o>1||u&&!o){var d=function GD(t,e,r,n,i){var a=e.getData(),o=Ht(t,function(c,v,h){var d=a.getDimensionInfo(h);return c||d&&!1!==d.tooltip&&null!=d.displayName},!1),s=[],u=[],l=[];function f(c,v){var h=a.getDimensionInfo(v);!h||!1===h.otherDims.tooltip||(o?l.push(Ia("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return n.length?D(n,function(c){f(Ts(a,r,c),c)}):D(t,f),{inlineValues:s,inlineValueTypes:u,blocks:l}}(s,e,r,a,l);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);h=f=Ts(i,r,a[0]),c=y.type}else h=f=u?s[0]:s;var p=Wl(e),g=p&&e.name||"",m=i.getName(r),_=n?g:m;return Ia("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Ia("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Gt(_),value:f,valueType:c,dataIndex:r})].concat(v||[])})}({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ue.node&&(!r||!r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=ec.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if("series"===a||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<r.length;s++){var l=As(o,r[s]);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ge(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return("all"===i||i[As(a,r)])&&!a.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 i,a,o=this.option,s=o.selectedMode,u=n.length;if(s&&u)if("series"===s)o.selectedMap="all";else if("multiple"===s){K(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f];l[v=As(r,c)]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if("single"===s||!0===s){var h=n[u-1],v=As(r,h);o.selectedMap=((i={})[v]=!0,i),this._selectedDataIndicesMap=((a={})[v]=r.getRawIndex(h),a)}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return De.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}(De);function Ey(t){var e=t.name;Wl(t)||(t.name=function WD(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}(t)||e)}function qD(t){return t.model.getRawData().count()}function UD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),YD}function YD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ky(t,e){D(wv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Re(XD,e))})}function XD(t,e){var r=pc(t);return r&&r.setOutputEnd((e||this).count()),e}function pc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}zt(Ls,uD),zt(Ls,ec),rp(Ls,De);const an=Ls;var gc=function(){function t(){this.group=new bt,this.uid=cs("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Yl(gc),Zo(gc);const kt=gc;var Ni=Nn.CMD,ZD=[[],[],[]],Oy=Math.sqrt,KD=Math.atan2,yc=Math.sqrt,Ps=Math.sin,Rs=Math.cos,Ea=Math.PI;function By(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function mc(t,e){return(t[0]*e[0]+t[1]*e[1])/(By(t)*By(e))}function Ny(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(mc(t,e))}function Fy(t,e,r,n,i,a,o,s,u,l,f){var c=u*(Ea/180),v=Rs(c)*(t-r)/2+Ps(c)*(e-n)/2,h=-1*Ps(c)*(t-r)/2+Rs(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=yc(d),s*=yc(d));var y=(i===a?-1:1)*yc((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=y*o*h/s,g=y*-s*v/o,m=(t+r)/2+Rs(c)*p-Ps(c)*g,_=(e+n)/2+Ps(c)*p+Rs(c)*g,S=Ny([1,0],[(v-p)/o,(h-g)/s]),b=[(v-p)/o,(h-g)/s],C=[(-1*v-p)/o,(-1*h-g)/s],x=Ny(b,C);if(mc(b,C)<=-1&&(x=Ea),mc(b,C)>=1&&(x=0),x<0){var T=Math.round(x/Ea*1e6)/1e6;x=2*Ea+T%2*Ea}f.addData(l,m,_,o,s,S,x,c,a)}var eM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,tM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.applyTransform=function(r){},e}(Te);function Hy(t){return null!=t.setData}function Gy(t,e){var r=function rM(t){var e=new Nn;if(!t)return e;var o,r=0,n=0,i=r,a=n,s=Nn.CMD,u=t.match(eM);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(tM)||[],d=h.length,y=0;y<d;y++)h[y]=parseFloat(h[y]);for(var p=0;p<d;){var g=void 0,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0,x=void 0,T=r,w=n,A=void 0,L=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),i=r,a=n,c="l";break;case"M":r=h[p++],n=h[p++],e.addData(v=s.M,r,n),i=r,a=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":g=r,m=n,A=e.len(),L=e.data,o===s.C&&(g+=r-L[A-4],m+=n-L[A-3]),T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.C,g,m,T,w,r,n);break;case"s":g=r,m=n,A=e.len(),L=e.data,o===s.C&&(g+=r-L[A-4],m+=n-L[A-3]),T=r+h[p++],w=n+h[p++],r+=h[p++],n+=h[p++],e.addData(v=s.C,g,m,T,w,r,n);break;case"Q":T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"q":T=h[p++]+r,w=h[p++]+n,r+=h[p++],n+=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"T":g=r,m=n,A=e.len(),L=e.data,o===s.Q&&(g+=r-L[A-4],m+=n-L[A-3]),r=h[p++],n=h[p++],e.addData(v=s.Q,g,m,r,n);break;case"t":g=r,m=n,A=e.len(),L=e.data,o===s.Q&&(g+=r-L[A-4],m+=n-L[A-3]),r+=h[p++],n+=h[p++],e.addData(v=s.Q,g,m,r,n);break;case"A":_=h[p++],S=h[p++],b=h[p++],C=h[p++],x=h[p++],Fy(T=r,w=n,r=h[p++],n=h[p++],C,x,_,S,b,v=s.A,e);break;case"a":_=h[p++],S=h[p++],b=h[p++],C=h[p++],x=h[p++],Fy(T=r,w=n,r+=h[p++],n+=h[p++],C,x,_,S,b,v=s.A,e)}}("z"===c||"Z"===c)&&(e.addData(v=s.Z),r=i,n=a),o=v}return e.toStatic(),e}(t),n=N({},e);return n.buildPath=function(i){var o,a=Hy(i);a&&i.canSave()?(i.appendPath(r),(o=i.getContext())&&i.rebuildPath(o,1)):(o=a?i.getContext():i)&&r.rebuildPath(o,1)},n.applyTransform=function(i){(function $D(t,e){if(e){var i,a,o,s,u,l,r=t.data,n=t.len(),f=Ni.M,c=Ni.C,v=Ni.L,h=Ni.R,d=Ni.A,y=Ni.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:case v:a=1;break;case c:a=3;break;case y:a=2;break;case d:var p=e[4],g=e[5],m=Oy(e[0]*e[0]+e[1]*e[1]),_=Oy(e[2]*e[2]+e[3]*e[3]),S=KD(-e[1]/_,e[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=g,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++],mt(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],mt(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var b=ZD[u];b[0]=r[o++],b[1]=r[o++],mt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}})(r,i),this.dirtyShape()},n}var oM=function(){return function t(){this.cx=0,this.cy=0,this.r=0}}(),Vy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new oM},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}(Te);Vy.prototype.type="circle";const Is=Vy;var sM=function(){return function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),Wy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},e}(Te);Wy.prototype.type="ellipse";const _c=Wy;var qy=Math.PI,Sc=2*qy,Kn=Math.sin,Fi=Math.cos,uM=Math.acos,et=Math.atan2,Uy=Math.abs,ka=Math.sqrt,Oa=Math.max,pr=Math.min,$t=1e-4;function Es(t,e,r,n,i,a,o){var s=t-r,u=e-n,l=(o?a:-a)/ka(s*s+u*u),f=l*u,c=-l*s,v=t+f,h=e+c,d=r+f,y=n+c,p=(v+d)/2,g=(h+y)/2,m=d-v,_=y-h,S=m*m+_*_,b=i-a,C=v*y-d*h,x=(_<0?-1:1)*ka(Oa(0,b*b*S-C*C)),T=(C*_-m*x)/S,w=(-C*m-_*x)/S,A=(C*_+m*x)/S,L=(-C*m+_*x)/S,E=T-p,M=w-g,k=A-p,B=L-g;return E*E+M*M>k*k+B*B&&(T=A,w=L),{cx:T,cy:w,x0:-f,y0:-c,x1:T*(i/b-1),y1:w*(i/b-1)}}var hM=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}}(),Yy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(r,n){!function cM(t,e){var r,n=Oa(e.r,0),i=Oa(e.r0||0,0),a=n>0;if(a||i>0){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=e.startAngle,l=e.endAngle;if(!isNaN(u)&&!isNaN(l)){var f=e.cx,c=e.cy,v=!!e.clockwise,h=Uy(l-u),d=h>Sc&&h%Sc;if(d>$t&&(h=d),n>$t)if(h>Sc-$t)t.moveTo(f+n*Fi(u),c+n*Kn(u)),t.arc(f,c,n,u,l,!v),i>$t&&(t.moveTo(f+i*Fi(l),c+i*Kn(l)),t.arc(f,c,i,l,u,v));else{var y=void 0,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0,x=void 0,T=void 0,w=void 0,A=void 0,L=void 0,E=void 0,M=void 0,k=void 0,B=n*Fi(u),F=n*Kn(u),X=i*Fi(l),U=i*Kn(l),V=h>$t;if(V){var q=e.cornerRadius;q&&(r=function fM(t){var e;if(G(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}(q),y=r[0],p=r[1],g=r[2],m=r[3]);var W=Uy(n-i)/2;if(_=pr(W,g),S=pr(W,m),b=pr(W,y),C=pr(W,p),w=x=Oa(_,S),A=T=Oa(b,C),(x>$t||T>$t)&&(L=n*Fi(l),E=n*Kn(l),M=i*Fi(u),k=i*Kn(u),h<qy)){var H=function lM(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,v=c*u-f*l;if(!(v*v<$t))return[t+(v=(f*(e-a)-c*(t-i))/v)*u,e+v*l]}(B,F,M,k,L,E,X,U);if(H){var ie=B-H[0],Le=F-H[1],ct=L-H[0],wt=E-H[1],ht=1/Kn(uM((ie*ct+Le*wt)/(ka(ie*ie+Le*Le)*ka(ct*ct+wt*wt)))/2),tt=ka(H[0]*H[0]+H[1]*H[1]);w=pr(x,(n-tt)/(ht+1)),A=pr(T,(i-tt)/(ht-1))}}}if(V)if(w>$t){var Ze=pr(g,w),Be=pr(m,w),re=Es(M,k,B,F,n,Ze,v),he=Es(L,E,X,U,n,Be,v);t.moveTo(f+re.cx+re.x0,c+re.cy+re.y0),w<x&&Ze===Be?t.arc(f+re.cx,c+re.cy,w,et(re.y0,re.x0),et(he.y0,he.x0),!v):(Ze>0&&t.arc(f+re.cx,c+re.cy,Ze,et(re.y0,re.x0),et(re.y1,re.x1),!v),t.arc(f,c,n,et(re.cy+re.y1,re.cx+re.x1),et(he.cy+he.y1,he.cx+he.x1),!v),Be>0&&t.arc(f+he.cx,c+he.cy,Be,et(he.y1,he.x1),et(he.y0,he.x0),!v))}else t.moveTo(f+B,c+F),t.arc(f,c,n,u,l,!v);else t.moveTo(f+B,c+F);i>$t&&V?A>$t?(Ze=pr(y,A),re=Es(X,U,L,E,i,-(Be=pr(p,A)),v),he=Es(B,F,M,k,i,-Ze,v),t.lineTo(f+re.cx+re.x0,c+re.cy+re.y0),A<T&&Ze===Be?t.arc(f+re.cx,c+re.cy,A,et(re.y0,re.x0),et(he.y0,he.x0),!v):(Be>0&&t.arc(f+re.cx,c+re.cy,Be,et(re.y0,re.x0),et(re.y1,re.x1),!v),t.arc(f,c,i,et(re.cy+re.y1,re.cx+re.x1),et(he.cy+he.y1,he.cx+he.x1),v),Ze>0&&t.arc(f+he.cx,c+he.cy,Ze,et(he.y1,he.x1),et(he.y0,he.x0),!v))):(t.lineTo(f+X,c+U),t.arc(f,c,i,l,u,v)):t.lineTo(f+X,c+U)}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}(Te);Yy.prototype.type="sector";const Ba=Yy;var vM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Xy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new vM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=2*Math.PI;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(Te);Xy.prototype.type="ring";const Cc=Xy;function jy(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=function dM(t,e,r,n){var u,l,f,c,i=[],a=[],o=[],s=[];if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)Wr(f,f,t[v]),qr(c,c,t[v]);Wr(f,f,n[0]),qr(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){i.push(Mv(t[v]));continue}u=t[v-1],l=t[v+1]}Av(a,l,u),yo(a,a,e);var y=mo(d,u),p=mo(d,l),g=y+p;0!==g&&(y/=g,p/=g),yo(o,a,-y),yo(s,a,p);var m=qu([],d,o),_=qu([],d,s);n&&(qr(m,m,f),Wr(m,m,c),qr(_,_,f),Wr(_,_,c)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[2*s],l=a[2*s+1],f=i[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var pM=function(){return function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Zy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultShape=function(){return new pM},e.prototype.buildPath=function(r,n){jy(r,n,!0)},e}(Te);Zy.prototype.type="polygon";const bc=Zy;var gM=function(){return function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Ky=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gM},e.prototype.buildPath=function(r,n){jy(r,n,!1)},e}(Te);Ky.prototype.type="polyline";const Na=Ky;var yM={},mM=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),$y=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Tp(yM,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;0!==l&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(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}(Te);$y.prototype.type="line";const zi=$y;var gt=[],_M=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 Qy(t,e,r){return null!=t.cpx2||null!=t.cpy2?[(r?ed:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ed:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?id:$e)(t.x1,t.cpx1,t.x2,e),(r?id:$e)(t.y1,t.cpy1,t.y2,e)]}var Jy=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _M},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;0!==v&&(r.moveTo(i,a),null==f||null==c?(v<1&&(Ro(i,u,o,v,gt),u=gt[1],o=gt[2],Ro(a,l,s,v,gt),l=gt[1],s=gt[2]),r.quadraticCurveTo(u,l,o,s)):(v<1&&(Po(i,u,f,o,v,gt),u=gt[1],f=gt[2],o=gt[3],Po(a,l,c,s,v,gt),l=gt[1],c=gt[2],s=gt[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return Qy(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Qy(this.shape,r,!0);return Lv(n,n)},e}(Te);Jy.prototype.type="bezier-curve";const xc=Jy;var SM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),em=function(t){function e(r){return t.call(this,r)||this}return(0,Z.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new SM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,u,!l)},e}(Te);em.prototype.type="arc";const ks=em;var CM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="compound",r}return(0,Z.C6)(e,t),e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Te.prototype.getBoundingRect.call(this)},e}(Te);const tm=CM;var bM=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const rm=bM;var xM=function(t){function e(r,n,i,a,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return(0,Z.C6)(e,t),e}(rm);const nm=xM;var TM=function(t){function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return(0,Z.C6)(e,t),e}(rm);const im=TM;var Tc=Math.min,wM=Math.max,Os=Math.abs,$n=[0,0],Qn=[0,0],We=zv(),Bs=We.minTv,Ns=We.maxTv,DM=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new te;for(n=0;n<2;n++)this._axes[n]=new te;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);for(te.sub(i[0],n[1],n[0]),te.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&te.set(r,0,0),We.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!We.negativeSize&&te.copy(r,i?We.useDir?We.dirMinTv:Bs:Ns),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,$n),e._getProjMinMaxOnAxis(o,r._corners,Qn),We.negativeSize||$n[1]<Qn[0]||$n[0]>Qn[1]){if(a=!1,We.negativeSize||n)return a;var u=Os(Qn[0]-$n[1]),l=Os($n[0]-Qn[1]);Tc(u,l)>Ns.len()&&te.scale(Ns,s,u<l?-u*i:l*i)}else n||(u=Os(Qn[0]-$n[1]),l=Os($n[0]-Qn[1]),(We.useDir||Tc(u,l)<Bs.len())&&((u<l||!We.bidirectional)&&(te.scale(Bs,s,u*i),We.useDir&&We.calcDirMTV()),(u>=l||!We.bidirectional)&&(te.scale(Bs,s,-l*i),We.useDir&&We.calcDirMTV())))}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[e];s=Tc(f,s),u=wM(f,u)}n[0]=s+We.touchThreshold,n[1]=u-We.touchThreshold,We.negativeSize=n[1]<n[0]},t}();const am=DM;var MM=[],AM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return(0,Z.C6)(e,t),e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(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 ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(MM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n);if(this.getBoundingRect().contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,n))return!0;return!1},e}(Rn);const om=AM;var wc={},sm=["x","y"],um=["width","height"];function lm(t){return Te.extend(t)}function fm(t,e){return function iM(t,e){var r=Gy(t,e);return function(i){function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return(0,Z.C6)(a,i),a}(zy)}(t,e)}function Ot(t,e){wc[t]=e}function Dc(t){if(wc.hasOwnProperty(t))return wc[t]}function Fs(t,e,r,n){var i=function nM(t,e){return new zy(Gy(t,e))}(t,e);return r&&("center"===n&&(r=cm(r,i.getBoundingRect())),Ac(i,r)),i}function Mc(t,e,r){var n=new tn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){"center"===r&&n.setStyle(cm(e,{width:i.width,height:i.height}))}});return n}function cm(t,e){var i,r=e.width/e.height,n=t.height*r;return i=n<=t.width?t.height:(n=t.width)/r,{x:t.x+t.width/2-n/2,y:t.y+t.height/2-i/2,width:n,height:i}}var hm=function aM(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push(t[i].getUpdatedPathProxy(!0));var o=new Te(e);return o.createPathProxy(),o.buildPath=function(s){if(Hy(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o};function Ac(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Lc(t,e){return Tp(t,t,{lineWidth:e}),t}function PM(t,e){return wp(t,t,e),t}var RM=zn;function vm(t,e){for(var r=Qi([]);t&&t!==e;)mn(r,t.getLocalTransform(),r),t=t.parent;return r}function Pc(t,e,r){return e&&!Ke(e)&&(e=Wo.getLocalTransform(e)),r&&(e=_n([],e)),mt([],t,e)}function IM(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:ar(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:ar(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-i:"bottom"===t?i:0];return a=Pc(a,e,r),ar(a[0])>ar(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function dm(t){return!t.isGroup}function kM(t,e,r){if(t&&e){var a=function n(o){var s={};return o.traverse(function(u){dm(u)&&u.anid&&(s[u.anid]=u)}),s}(t);e.traverse(function(o){if(dm(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),jt(o,u,r,de(o).dataIndex)}}})}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function EM(t){return null!=t.shape}(o)&&(s.shape=le(o.shape)),s}}function pm(t,e){return $(t,function(r){var n=r[0];n=Xt(n,e.x),n=fa(n,e.x+e.width);var i=r[1];return i=Xt(i,e.y),[n,i=fa(i,e.y+e.height)]})}function gm(t,e){var r=Xt(t.x,e.x),n=fa(t.x+t.width,e.x+e.width),i=Xt(t.y,e.y),a=fa(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function zs(t,e,r){var n=N({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),we(i,r),new tn(n)):Fs(t.replace("path://",""),n,r,"center")}function OM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ym(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ym(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,v=Rc(f,c,u,l);if(function BM(t){return t<=1e-6&&t>=-1e-6}(v))return!1;var h=t-i,d=e-a,y=Rc(h,d,u,l)/v;if(y<0||y>1)return!1;var p=Rc(h,d,f,c)/v;return!(p<0||p>1)}function Rc(t,e,r,n){return t*n-r*e}function Ic(t,e,r,n,i){return null==e||(_e(e)?Me[0]=Me[1]=Me[2]=Me[3]=e:(Me[0]=e[0],Me[1]=e[1],Me[2]=e[2],Me[3]=e[3]),n&&(Me[0]=Xt(0,Me[0]),Me[1]=Xt(0,Me[1]),Me[2]=Xt(0,Me[2]),Me[3]=Xt(0,Me[3])),r&&(Me[0]=-Me[0],Me[1]=-Me[1],Me[2]=-Me[2],Me[3]=-Me[3]),mm(t,Me,"x","width",3,1,i&&i[0]||0),mm(t,Me,"y","height",0,2,i&&i[1]||0)),t}var Me=[0,0,0,0];function mm(t,e,r,n,i,a,o){var s=e[a]+e[i],u=t[n];t[n]+=s,o=Xt(0,fa(o,u)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?u+e[a]:ar(s)>1e-8?(u-o)*e[i]/s:0):t[r]-=e[i]}function Fa(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=j(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&D(ge(u),function(f){J(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=de(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:we({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Ec(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function _m(t,e){if(t)if(G(t))for(var r=0;r<t.length;r++)Ec(t[r],e);else Ec(t,e)}function kc(t){return!t||ar(t[1])<Hs&&ar(t[2])<Hs||ar(t[0])<Hs&&ar(t[3])<Hs}var Hs=1e-5;function za(t,e){return t?ne.copy(t,e):e.clone()}function Oc(t,e){return e?bo(t||[1,0,0,1,0,0],e):void 0}function Sm(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function NM(t){var e=-1/0,r=1/0;function n(a){if(a&&!a.isGroup){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return Ec(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())}),r>e&&(r=e=0),{min:r,max:e}}function Cm(t,e,r){bm(t,e,r,-1/0)}function bm(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=Xt(bm(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=Xt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}Ot("circle",Is),Ot("ellipse",_c),Ot("sector",Ba),Ot("ring",Cc),Ot("polygon",bc),Ot("polyline",Na),Ot("rect",Xe),Ot("line",zi),Ot("bezierCurve",xc),Ot("arc",ks);var xm=Ce(),FM=function jD(){var t=Ce();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return(i!==o||a!==s)&&"reset"}}(),Bc=function(){function t(){this.group=new bt,this.uid=cs("viewChart"),this.renderTask=Ra({plan:zM,reset:HM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&wm(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&wm(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){_m(this.group,e)},t.markUpdateMethod=function(e,r){xm(e).updateMethod=r},t.protoInitialize=void(t.prototype.type="chart"),t}();function Tm(t,e,r){t&&xf(t)&&("emphasis"===e?mf:_f)(t,r)}function wm(t,e,r){var n=pa(t,e),i=e&&null!=e.highlightKey?function _T(t){var e=Fp[t];return null==e&&Np<=32&&(e=Fp[t]=Np++),e}(e.highlightKey):null;null!=n?D(Ge(n),function(a){Tm(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Tm(a,r,i)})}function zM(t){return FM(t.model)}function HM(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&xm(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==u&&o[u](e,r,n,i),GM[u]}Yl(Bc),Zo(Bc);var GM={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 kr=Bc;var Gs="\0__throttleOriginMethod",Dm="\0__throttleRate",Mm="\0__throttleType";function Nc(t,e,r){var n,s,u,l,f,i=0,a=0,o=null;function c(){a=(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 y=f||e,p=f||r;f=null,s=n-(p?i:a)-y,clearTimeout(o),p?o=setTimeout(c,y):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Am(t,e,r,n){var i=t[e];if(i){var a=i[Gs]||i;if(i[Dm]!==r||i[Mm]!==n){if(null==r||!n)return t[e]=a;(i=t[e]=Nc(a,r,"debounce"===n))[Gs]=a,i[Mm]=n,i[Dm]=r}return i}}function Fc(t,e){var r=t[e];r&&r[Gs]&&(r.clear&&r.clear(),t[e]=r[Gs])}var Lm=Ce(),Pm={itemStyle:ya(vg,!0),lineStyle:ya(hg,!0)},VM={lineStyle:"stroke",itemStyle:"fill"};function Rm(t,e){return t.visualStyleMapper||Pm[e]||(console.warn("Unknown style type '"+e+"'."),Pm.itemStyle)}function Im(t,e){return t.visualDrawType||VM[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var WM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),o=Rm(t,n)(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Im(t,n),l=o[u],f=ee(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||ee(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||ee(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 y=t.getDataParams(d),p=N({},o);p[u]=f(y),h.setItemVisual(d,"style",p)}}}},Ha=new Fe,qM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Rm(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Ha.option=u[n];var l=i(Ha);N(o.ensureUniqueItemVisual(s,"style"),l),Ha.option.decal&&(o.setItemVisual(s,"decal",Ha.option.decal),Ha.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},UM={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||e.set(i,a={}),Lm(r).scope=a}}),t.eachSeries(function(r){if(!r.isColorBySeries()&&!t.isSeriesFiltered(r)){var n=r.getRawData(),i={},a=r.getData(),o=Lm(r).scope,u=Im(r,r.visualStyleAccessPath||"itemStyle");a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l];if(a.getItemVisual(f,"colorFromPalette")){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(l)||l+"",d=n.count();v[u]=r.getColorFromPalette(h,o,d)}})}})}},Vs=Math.PI,XM=function(){function t(e,r,n,i){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,o=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,s=i&&i.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.getData().count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),u="mod"===e.get("progressiveChunkMode")?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ae();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{});tr(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}D(e,function(u,l){if(!i.visualType||i.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(i,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(y)}),v.perform(y)&&(a=!0)}else c&&c.each(function(p,g){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}}),this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){"remain"!==r&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),u=e.seriesType,l=e.getTargetSeries;function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Ra({plan:QM,reset:JM,count:tA}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f)},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ra({reset:jM});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=ae(),l=e.seriesType,f=e.getTargetSeries,c=!0,v=!1;function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(v=!0,Ra({reset:ZM,onDirty:$M})));g.context={model:y,overallProgress:c},g.agent=o,g.__block=c,a._pipe(y,g)}tr(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(c=!1,D(n.getSeries(),d)),v&&o.dirty()},t.prototype._pipe=function(e,r){var i=this._pipelineMap.get(e.uid);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:rA(e)}),e.uid=cs("stageHandler"),r&&(e.visualType=r),e},t}();function jM(t){t.overallReset(t.ecModel,t.api,t.payload)}function ZM(t){return t.overallProgress&&KM}function KM(){this.agent.dirty(),this.getDownstream().dirty()}function $M(){this.agent&&this.agent.dirty()}function QM(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function JM(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ge(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(r,n){return Em(n)}):eA}var eA=Em(0);function Em(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function tA(t){return t.data.count()}function rA(t){Ws=null;try{t(Ga,km)}catch{}return Ws}var Ws,Ga={},km={};function Om(t,e){for(var r in e.prototype)t[r]=nt}Om(Ga,Xg),Om(km,jg),Ga.eachSeriesByType=Ga.eachRawSeriesByType=function(t){Ws=t},Ga.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ws=t.subType)};const Bm=XM;var z=ce.darkColor,Va=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:{}}},Nm={label:{color:z.secondary},itemStyle:{borderColor:z.borderTint},dividerLineStyle:{color:z.border}},Fm={darkMode:!0,color:z.theme,backgroundColor:z.background,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}},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:Nm,y:Nm,backgroundColor:{borderColor:z.axisLine},body:{itemStyle:{borderColor:z.borderTint}}},timeAxis:Va(),logAxis:Va(),valueAxis:Va(),categoryAxis:Va(),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=Va();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}}}};Fm.categoryAxis.splitLine.show=!1;const iA=Fm;var aA=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(j(e)){var a=ur(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(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||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return null==c[h]||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zc=["symbol","symbolSize","symbolRotate","symbolOffset"],zm=zc.concat(["symbolKeepAspect"]),oA={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={},i={},a=!1,o=0;o<zc.length;o++){var s=zc[o],u=t.get(s);ee(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var l=ge(i);return{dataEach:a?function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),y=0;y<l.length;y++){var p=l[y];c.setItemVisual(v,p,i[p](h,d))}}:null}}}}},sA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function n(i,a){for(var o=i.getItemModel(a),s=0;s<zm.length;s++){var u=zm[s],l=o.getShallow(u,!0);null!=l&&i.setItemVisual(a,u,l)}}:null}}};function Hi(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),v=pa(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:G(v)?c.getName(v[0]):c.getName(v),selected:j(u)?u:N({},u)})}})}function Wa(t,e,r){for(var n;t&&(!e(t)||(n=t,!r));)t=t.__hostTarget||t.parent;return n}var hA=Math.round(9*Math.random()),vA="function"==typeof Object.defineProperty,dA=function(){function t(){this._id="__ec_inner_"+hA++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return vA?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 pA=dA;var yA=Te.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),mA=Te.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),_A=Te.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),u=n-a+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()}}),SA=Te.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.x,a=e.y,o=e.width/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),bA={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Hc={};D({line:zi,rect:Xe,roundRect:Xe,square:Xe,circle:Is,diamond:mA,pin:_A,arrow:SA,triangle:yA},function(t,e){Hc[e]=new t});var xA=Te.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Id(t,e,r),i=this.shape;return i&&"pin"===i.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 i=Hc[n];i||(i=Hc[n="rect"]),bA[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function TA(t,e){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ce.color.neutral00,r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=t:r.fill=t,this.markRedraw()}}function qs(t,e,r,n,i,a,o){var u,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?Mc(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):0===t.indexOf("path://")?Fs(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):new xA({shape:{symbolType:t,x:e,y:r,width:n,height:i}})).__isEmptyBrush=s,u.setColor=TA,a&&u.setColor(a),u}function Jn(t){return isFinite(t)}function Gc(t,e,r){for(var n="radial"===e.type?function MA(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),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*i+r.y,u*=a),o=Jn(o)?o:.5,s=Jn(s)?s:.5,u=u>=0&&Jn(u)?u:.5,t.createRadialGradient(o,s,0,o,s,u)}(t,e,r):function DA(t,e,r){var n=null==e.x?0:e.x,i=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Jn(n)?n:0,i=Jn(i)?i:1,a=Jn(a)?a:0,o=Jn(o)?o:0,t.createLinearGradient(n,a,i,o)}(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Us(t){return parseInt(t,10)}function Ys(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["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[i]||Us(s[n])||Us(t.style[n]))-(Us(s[a])||0)-(Us(s[o])||0)|0}function Hm(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&function LA(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:_e(t)?[t]:G(t)?t:null:null}(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var PA=new Nn(!0);function Xs(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Gm(t){return"string"==typeof t&&"none"!==t}function js(t){var e=t.fill;return null!=e&&"none"!==e}function Vm(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 Wm(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 Vc(t,e,r){var n=np(e.image,e.__image,r);if(Ko(n)){var i=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Dv),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var qm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Um=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ym(t,e,r,n,i){var a=!1;if(!n&&e===(r=r||{}))return!1;if(n||e.opacity!==r.opacity){yt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Pn.opacity:o}(n||e.blend!==r.blend)&&(a||(yt(t,i),a=!0),t.globalCompositeOperation=e.blend||Pn.blend);for(var s=0;s<qm.length;s++){var u=qm[s];(n||e[u]!==r[u])&&(a||(yt(t,i),a=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(yt(t,i),a=!0),t.shadowColor=e.shadowColor||Pn.shadowColor),a}function Xm(t,e,r,n,i){var a=qa(e,i.inHover),o=n?null:r&&qa(r,i.inHover)||{};if(a===o)return!1;var s=Ym(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(yt(t,i),s=!0),Gm(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(yt(t,i),s=!0),Gm(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(yt(t,i),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(yt(t,i),s=!0),t.lineWidth=l)}for(var f=0;f<Um.length;f++){var c=Um[f],v=c[0];(n||a[v]!==o[v])&&(s||(yt(t,i),s=!0),t[v]=a[v]||c[1])}return s}function jm(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 yt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qa(t,e){return e&&t.__hoverStyle||t.style}function Wc(t,e){ei(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ei(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||function AA(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,o))&&(o&&o.length&&(yt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(yt(t,r),t.save(),function OA(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),jm(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof Te&&e.autoBatch&&function NA(t){var e=js(t),r=Xs(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)}(e.style);s||function BA(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)}(i,l.transform)?(yt(t,r),jm(t,e)):f||yt(t,r);var c=qa(e,r.inHover);e instanceof Te?(1!==r.lastDrawType&&(u=!0,r.lastDrawType=1),Xm(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),function RA(t,e,r,n){var i,a=Xs(r),o=js(r),s=r.strokePercent,u=s<1,l=!e.path;(!e.silent||u)&&l&&e.createPathProxy();var f=e.path||PA,c=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,y=a&&!!h.colorStops,p=o&&!!v.image,g=a&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0;(d||y)&&(C=e.getBoundingRect()),d&&(m=c?Gc(t,v,C):e.__canvasFillGradient,e.__canvasFillGradient=m),y&&(_=c?Gc(t,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(S=c||!e.__canvasFillPattern?Vc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),g&&(b=c||!e.__canvasStrokePattern?Vc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:p&&(S?t.fillStyle=S:o=!1),y?t.strokeStyle=_:g&&(b?t.strokeStyle=b:a=!1)}var T,w,x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(T=(i=Hm(e))[0],w=i[1]);var A=!0;(l||4&c)&&(f.setDPR(t.dpr),u?f.setContext(null):(f.setContext(t),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(t,u?s:1),T&&(t.setLineDash(T),t.lineDashOffset=w),n||(r.strokeFirst?(a&&Wm(t,r),o&&Vm(t,r)):(o&&Vm(t,r),a&&Wm(t,r))),T&&t.setLineDash([])}(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof ff?(3!==r.lastDrawType&&(u=!0,r.lastDrawType=3),Xm(t,e,l,u,r),function EA(t,e,r){var n,i=r.text;if(null!=i&&(i+=""),i){t.font=r.font||Gr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(a=(n=Hm(e))[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Xs(r)&&t.strokeText(i,r.x,r.y),js(r)&&t.fillText(i,r.x,r.y)):(js(r)&&t.fillText(i,r.x,r.y),Xs(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}(t,e,c)):e instanceof tn?(2!==r.lastDrawType&&(u=!0,r.lastDrawType=2),function kA(t,e,r,n,i){Ym(t,qa(e,i.inHover),r&&qa(r,i.inHover),n,i)}(t,e,l,u,r),function IA(t,e,r){var n=e.__image=np(r.image,e.__image,e,e.onload);if(n&&Ko(n)){var i=r.x||0,a=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,i,a,o,s);else if(r.sx&&r.sy){var l,f;t.drawImage(n,l=r.sx,f=r.sy,o-l,s-f,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}(t,e,c)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(u=!0,r.lastDrawType=4),function FA(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,s,a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),s=n.length;o<s;o++)(u=n[o]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ei(t,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u;for(var l=0,f=i.length;l<f;l++){var u;(u=i[l]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ei(t,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r)),f&&n&&yt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var qc=new pA,Jm=new _i(100),e0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Uc(t,e){if("none"===t)return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i="svg"===n.painter.type;t.dirty&&qc.delete(t);var a=qc.get(t);if(a)return a;var o=we(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<e0.length;++v){var h=o[e0[v]];if(null!=h&&!G(h)&&!j(h)&&!_e(h)&&"boolean"!=typeof h){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var y=Jm.get(d);y&&(i?l.svgElement=y:l.image=y)}var T,p=r0(o.dashArrayX),g=function zA(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(_e(t)){var e=Math.ceil(t);return[e,e]}var r=$(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}(o.dashArrayY),m=t0(o.symbol),_=function HA(t){return $(t,function(e){return n0(e)})}(p),S=n0(g),b=!i&&Dt.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function w(){for(var L=1,E=0,M=_.length;E<M;++E)L=Xd(L,_[E]);var k=1;for(E=0,M=m.length;E<M;++E)k=Xd(k,m[E].length);L*=k;var B=S*_.length*m.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}();b&&(b.width=x.width*r,b.height=x.height*r,T=b.getContext("2d")),function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var L=0,E=0;E<g.length;++E)L+=g[E];if(!(L<=0))for(var M=-S,k=0,B=0,F=0;M<x.height;){if(k%2==0){for(var X=B/2%m.length,U=0,V=0,q=0;U<2*x.width;){var W=0;for(E=0;E<p[F].length;++E)W+=p[F][E];if(W<=0)break;if(V%2==0){var H=.5*(1-o.symbolSize);tt(U+p[F][V]*H,M+g[k]*H,p[F][V]*o.symbolSize,g[k]*o.symbolSize,m[X][q/2%m[X].length])}U+=p[F][V],++q,++V===p[F].length&&(V=0)}++F===p.length&&(F=0)}M+=g[k],++B,++k===g.length&&(k=0)}function tt(Ze,Be,re,he,Sr){var Ue=i?1:r,vn=qs(Sr,Ze*Ue,Be*Ue,re*Ue,he*Ue,o.color,o.symbolKeepAspect);if(i){var Fr=n.painter.renderOneToVNode(vn);Fr&&C.children.push(Fr)}else Wc(T,vn)}}(),c&&Jm.put(d,b||C),l.image=b,l.svgElement=C,l.svgWidth=x.width,l.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,qc.set(t,s),t.dirty=!1,s}function t0(t){if(!t||0===t.length)return[["rect"]];if(j(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!j(t[r])){e=!1;break}if(e)return t0([t]);var n=[];for(r=0;r<t.length;++r)j(t[r])?n.push([t[r]]):n.push(t[r]);return n}function r0(t){if(!t||0===t.length)return[[0,0]];if(_e(t))return[[e=Math.ceil(t),e]];for(var r=!0,n=0;n<t.length;++n)if(!_e(t[n])){r=!1;break}if(r)return r0([t]);var i=[];for(n=0;n<t.length;++n)if(_e(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else e=$(t[n],function(s){return Math.ceil(s)}),i.push(e.length%2==1?e.concat(e):e);return i}function n0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2==1?2*e:e}const Qt=new rr;var i0={};function a0(t){return i0[t]}var o0={};function s0(t,e){o0[t]=e}var qA="6.0.0",UA={zrender:"6.0.0"},c0={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC: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}},ze="__flagInMainProcess",Ks="__mainProcessVersion",qe="__pendingUpdate",Xc="__needsUpdateStatus",h0=/^[a-zA-Z0-9_]+$/,jc="__connectUpdateStatus";function d0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(!this.isDisposed())return g0(this,t,e)}}function p0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return g0(this,t,e)}}function g0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),rr.prototype[e].apply(t,r)}var y0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e}(rr),m0=y0.prototype;m0.on=p0("on"),m0.off=p0("off");var ti,Zc,$s,Or,Qs,Kc,$c,Gi,Vi,_0,S0,Qc,C0,Js,b0,x0,Bt,T0,Wi,eu=function(t){function e(r,n,i){var a=t.call(this,new aA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r,a[Ks]=1,i.ssr&&Nd(function(h){var d=de(h),y=d.dataIndex;if(null!=y){var p=ae();return p.set("series_index",d.seriesIndex),p.set("data_index",y),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var f=a._zr=Nl(r,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,!1),useCoarsePointer:Q(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Nc(ve(f.flush,f),17),a._updateTheme(n),a._locale=function HT(t){if(j(t)){var e=vs[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?le(e):xe(le(e),le(vs[Pi]),!1)}return xe(le(t),le(vs[Pi]),!1)}(i.locale||dg),a._coordSysMgr=new ms;var c=a._api=b0(a);function v(h,d){return h.__prio-d.__prio}return wo(ru,v),wo(rh,v),a._scheduler=new Bm(a,c,rh,ru),a._messageCenter=new y0,a._initEvents(),a.resize=ve(a.resize,a),f.animation.on("frame",a._onframe,a),_0(f,a),S0(f,a),go(a),a}return(0,Z.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){T0(this);var r=this._scheduler;if(this[qe]){var n=this[qe].silent;this[ze]=!0,Wi(this);try{ti(this),Or.update.call(this,null,this[qe].updateParams)}catch(u){throw this[ze]=!1,this[qe]=null,u}this._zr.flush(),this[ze]=!1,this[qe]=null,Gi.call(this,n),Vi.call(this,n)}else if(r.unfinished){var i=1,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Kc(this,a),r.performVisualTasks(a),Js(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[ze]){if(this._disposed)return;var a,o,s;if(K(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ze]=!0,Wi(this),!this._model||n){var u=new Gw(this._api),l=this._theme,f=this._model=new Xg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},nh);var c={seriesTransition:s,optionChanged:!0};if(i)this[qe]={silent:a,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{ti(this),Or.update.call(this,null,c)}catch(v){throw this[qe]=null,this[ze]=!1,v}this._ssr||this._zr.flush(),this[qe]=null,this[ze]=!1,Gi.call(this,a),Vi.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[ze]){if(this._disposed)return;var i=this._model;if(i){var a=n&&n.silent,o=null;this[qe]&&(null==a&&(a=this[qe].silent),o=this[qe].updateParams,this[qe]=null),this[ze]=!0,Wi(this);try{this._updateTheme(r),i.setTheme(this._theme),ti(this),Or.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ze]=!1,s}this[ze]=!1,Gi.call(this,a),Vi.call(this,a)}}},e.prototype._updateTheme=function(r){j(r)&&(r=w0[r]),r&&((r=le(r))&&ty(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||ue.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 D(r.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(!this._disposed){var i=this._model,a=[],o=this;D((r=r||{}).excludeComponents,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(u){u.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(r){if(!this._disposed){var n="svg"===r.type,i=this.group,a=Math.min,o=Math.max,s=1/0;if(nu[i]){var u=s,l=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(ri,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(le(r)),C=_.getDom().getBoundingClientRect();u=a(C.left,u),l=a(C.top,l),f=o(C.right,f),c=o(C.bottom,c),v.push({dom:b,left:C.left,top:C.top})}});var d=(f*=h)-(u*=h),y=(c*=h)-(l*=h),p=Dt.createCanvas(),g=Nl(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var m="";return D(v,function(_){m+='<g transform="translate('+(_.left-u)+","+(_.top-l)+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return r.connectedBackgroundColor&&g.add(new Xe({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),D(v,function(_){var S=new tn({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},e.prototype.convertToPixel=function(r,n,i){return Qs(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Qs(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Qs(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){var a;if(!this._disposed)return D(ql(this._model,r),function(s,u){u.indexOf("Models")>=0&&D(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if("seriesModels"===u){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,l))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var a=ql(this._model,r,{defaultMainType:"series"}),s=a.seriesModel.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return null!=u?function uA(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 lA(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;D(aL,function(i){var a=function(o){var l,s=r.getModel(),u=o.target;if("globalout"===i?l={}:u&&Wa(u,function(y){var p=de(y);if(p&&null!=p.dataIndex){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,u)||{},!0}if(p.eventData)return l=N({},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=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;D(th,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),function cA(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Hi("map","selectchanged",e,i,n),Hi("pie","selectchanged",e,i,n)):"select"===n.fromAction?(Hi("map","selected",e,i,n),Hi("pie","selected",e,i,n)):"unselect"===n.fromAction&&(Hi("map","unselected",e,i,n),Hi("pie","unselected",e,i,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()&&ep(this.getDom(),ah,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ri[n.id]}},e.prototype.resize=function(r){if(!this[ze]){if(this._disposed)return;this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),n){var i=n.resetOption("media"),a=r&&r.silent;this[qe]&&(null==a&&(a=this[qe].silent),i=!0,this[qe]=null),this[ze]=!0,Wi(this);try{i&&ti(this),Or.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[ze]=!1,o}this[ze]=!1,Gi.call(this,a),Vi.call(this,a)}}},e.prototype.showLoading=function(r,n){if(!this._disposed&&(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),ih[r])){var i=ih[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(r){var n=N({},r);return n.type=eh[r.type],n},e.prototype.dispatchAction=function(r,n){if(!this._disposed&&(K(n)||(n={silent:!!n}),tu[r.type]&&this._model)){if(this[ze])return void this._pendingActions.push(r);var i=n.silent;$c.call(this,r,i);var a=n.flush;a?this._zr.flush():!1!==a&&ue.browser.weChat&&this._throttledZrFlush(),Gi.call(this,i),Vi.call(this,i)}},e.prototype.updateLabelLayout=function(){Qt.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 a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var y=h[d];"emphasis"===y||"blur"===y||"select"===y||v.push(y)}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=Sm(c);v.eachRendered(function(d){return Cm(d,h.z,h.zlevel),!0})}}function l(c,v){v.eachRendered(function(h){if(!Ai(h)){var d=h.getTextContent(),y=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.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(),y=h.get("duration"),p=y>0?{duration:y,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ai(g))return;if(g instanceof Te&&function ST(t){var e=zp(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}(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=p;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&a(g)}})}ti=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),Zc(c,!0),Zc(c,!1),v.plan()},Zc=function(c,v){for(var h=c._model,d=c._scheduler,y=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<y.length;_++)y[_].__alive=!1;function S(C){var x=C.__requireNewView;C.__requireNewView=!1;var T="_ec_"+C.id+"_"+C.type,w=!x&&p[T];if(!w){var A=ur(C.type);(w=new(v?kt.getClass(A.main,A.sub):kr.getClass(A.sub))).init(h,m),p[T]=w,y.push(w),g.add(w.group)}C.__viewId=w.__id=T,w.__alive=!0,w.__model=C,w.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!v&&d.prepareView(w,C,h,m)}for(v?h.eachComponent(function(C,x){"series"!==C&&S(x)}):h.eachSeries(S),_=0;_<y.length;){var b=y[_];b.__alive?_++:(!v&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,m),y.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},$s=function(c,v,h,d,y){var p=c._model;if(p.setUpdatePayload(h),d){var g={};g[d+"Id"]=h[d+"Id"],g[d+"Index"]=h[d+"Index"],g[d+"Name"]=h[d+"Name"];var m={mainType:d,query:g};y&&(m.subType=y);var S,_=h.excludeSeriesId;null!=_&&(S=ae(),D(Ge(_),function(C){var x=at(C,null);null!=x&&S.set(x,!0)})),p&&p.eachComponent(m,function(C){if(!S||null==S.get(C.id))if(eg(h))if(C instanceof an)h.type===Hn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&function lT(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=pa(i,e);a=(G(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=de(o);Sf(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=f&&Sf(n,f,c,r)}}}(C,h,c._api);else{var T=bf(C.mainType,C.componentIndex,h.name,c._api),A=T.dispatchers;h.type===Hn&&T.focusSelf&&!h.notBlur&&Cf(C.mainType,C.componentIndex,c._api),A&&D(A,function(L){h.type===Hn?mf(L):_f(L)})}else Tf(h)&&C instanceof an&&(function hT(t,e){if(Tf(e)){var n=e.dataType,a=pa(t.getData(n),e);G(a)||(a=[a]),t[e.type===os?"toggleSelect":e.type===as?"select":"unselect"](a,n)}}(C,h),$p(C),Bt(c))},c),p&&p.eachComponent(m,function(C){S&&null!=S.get(C.id)||b(c["series"===d?"_chartsMap":"_componentsMap"][C.__viewId])},c)}else D([].concat(c._componentsViews).concat(c._chartsViews),b);function b(C){C&&C.__alive&&C[v]&&C[v](C.__model,p,c._api,h)}},Or={prepareAndUpdate:function(c){ti(this),Or.update.call(this,c,c&&{optionChanged:null!=c.newOption})},update:function(c,v){var h=this._model,d=this._api,y=this._zr,p=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),p.create(h,d),g.performDataProcessorTasks(h,c),Kc(this,h),p.update(h,d),n(h),g.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=h.get("darkMode");null!=_&&"auto"!==_&&y.setDarkMode(_),Qc(this,h,d,c,v),Qt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(c);var y=[];h.eachComponent(function(g,m){if("series"!==g){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&y.push(_)}else y.push(_)}});var p=ae();h.eachSeries(function(g){var m=v._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,h,d,c);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),Js(this,h,d,c,{},p),Qt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),kr.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),Qc(this,v,this._api,c,{}),Qt.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()}),kr.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,y){if("series"!==d){var p=v.getViewOfComponentModel(y);p&&p.__alive&&p.updateVisual(y,h,v._api,c)}}),h.eachSeries(function(d){v._chartsMap[d.__viewId].updateVisual(d,h,v._api,c)}),Qt.trigger("afterupdate",h,this._api))},updateLayout:function(c){Or.update.call(this,c)}},Qs=function r(c,v,h,d,y){if(!c._disposed)for(var m,p=c._model,g=c._coordSysMgr.getCoordinateSystems(),_=ql(p,h),S=0;S<g.length;S++){var b=g[S];if(b[v]&&null!=(m=b[v](p,_,d,y)))return m}},Kc=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(y){d.updateStreamModes(y,h[y.__viewId])})},$c=function(c,v){var h=this,d=this.getModel(),p=c.escapeConnect,g=tu[c.type],m=(g.update||"update").split(":"),_=m.pop(),S=null!=m[0]&&ur(m[0]);this[ze]=!0,Wi(this);var b=[c],C=!1;c.batch&&(C=!0,b=$(c.batch,function(F){return(F=we(N({},F),c)).batch=null,F}));var T,x=[],w=[],A=g.nonRefinedEventType,L=Tf(c),E=eg(c);if(E&&Kp(this._api),D(b,function(F){var X=g.action(F,d,h._api);if(g.refineEvent?w.push(X):T=X,(T=T||N({},F)).type=A,x.push(T),E){var U=Ul(c),W=U.mainTypeSpecified?U.queryOptionMap.keys()[0]:"series";$s(h,_,F,W),Bt(h)}else L?($s(h,_,F,"series"),Bt(h)):S&&$s(h,_,F,S.main,S.sub)}),"none"!==_&&!E&&!L&&!S)try{this[qe]?(ti(this),Or.update.call(this,c),this[qe]=null):Or[_].call(this,c)}catch(F){throw this[ze]=!1,F}if(T=C?{type:A,escapeConnect:p,batch:x}:x[0],this[ze]=!1,!v){var M=void 0;if(g.refineEvent){var k=g.refineEvent(w,c,d,this._api).eventContent;tr(K(k)),(M=we({type:g.refinedEventType},k)).fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var B=this._messageCenter;B.trigger(T.type,T),M&&B.trigger(M.type,M)}},Gi=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();$c.call(this,h,c)}},Vi=function(c){!c&&this.trigger("updated")},_0=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[qe]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},S0=function(c,v){c.on("mouseover",function(h){var y=Wa(h.target,xf);y&&(function fT(t,e,r){var n=de(t),i=bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers;a?(i.focusSelf&&Cf(n.componentMainType,n.componentIndex,r),D(a,function(s){return qp(s,e)})):(Sf(n.seriesIndex,n.focus,n.blurScope,r),"self"===n.focus&&Cf(n.componentMainType,n.componentIndex,r),qp(t,e))}(y,h,v._api),Bt(v))}).on("mouseout",function(h){var y=Wa(h.target,xf);y&&(function cT(t,e,r){Kp(r);var n=de(t),i=bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return Up(a,e)}):Up(t,e)}(y,h,v._api),Bt(v))}).on("click",function(h){var y=Wa(h.target,function(m){return null!=de(m).dataIndex},!0);if(y){var p=y.selected?"unselect":"select",g=de(y);v._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})},Qc=function(c,v,h,d,y){(function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,C=_.getZLevelKey();d=d||!!C,("series"===m?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:C})}),d){var p,g,y=v.concat(h);wo(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(y,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;null!=p&&(S=Math.max(p,S)),b?(S===p&&b!==g&&S++,g=b):g&&(S===p&&S++,g=""),p=S,_.setZLevel(S)})}})(v),C0(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive=!1}),Js(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},C0=function(c,v,h,d,y,p){D(p||c._componentsViews,function(g){var m=g.__model;l(0,g),g.render(m,v,h,d),u(m,g),f(m,g)})},Js=function(c,v,h,d,y,p){var g=c._scheduler;y=N(y||{},{updatedSeries:v.getSeries()}),Qt.trigger("series:beforeupdate",v,h,y);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),l(0,S),p&&p.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(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),$p(_)}),g.unfinished=m||g.unfinished,Qt.trigger("series:layoutlabels",v,h,y),Qt.trigger("series:transition",v,h,y),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];u(_,S),f(_,S)}),function o(c,v){var y=0;c._zr.storage.traverse(function(p){p.isGroup||y++}),y>v.get("hoverLayerThreshold")&&!ue.node&&!ue.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=c._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}(c,v),Qt.trigger("series:afterupdate",v,h,y)},Bt=function(c){c[Xc]=!0,c.getZr().wakeUp()},Wi=function(c){c[Ks]=(c[Ks]+1)%1e3},T0=function(c){c[Xc]&&(c.getZr().storage.traverse(function(v){Ai(v)||a(v)}),c[Xc]=!1)},b0=function(c){return new(function(v){function h(){return null!==v&&v.apply(this,arguments)||this}return(0,Z.C6)(h,v),h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(null!=y)return c._model.getComponent(y.mainType,y.index);d=d.parent}},h.prototype.enterEmphasis=function(d,y){mf(d,y),Bt(c)},h.prototype.leaveEmphasis=function(d,y){_f(d,y),Bt(c)},h.prototype.enterBlur=function(d){(function uT(t){Ar(t,gf)})(d),Bt(c)},h.prototype.leaveBlur=function(d){Yp(d),Bt(c)},h.prototype.enterSelect=function(d){Xp(d),Bt(c)},h.prototype.leaveSelect=function(d){jp(d),Bt(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.getMainProcessVersion=function(){return c[Ks]},h}(jg))(c)},x0=function(c){function v(h,d){for(var y=0;y<h.length;y++)h[y][jc]=d}D(eh,function(h,d){c._messageCenter.on(d,function(y){if(nu[c.group]&&0!==c[jc]){if(y&&y.escapeConnect)return;var p=c.makeActionFromEvent(y),g=[];D(ri,function(m){m!==c&&m.group===c.group&&g.push(m)}),v(g,0),D(g,function(m){1!==m[jc]&&m.dispatchAction(p)}),v(g,2)}})})}}(),e}(rr),Jc=eu.prototype;Jc.on=d0("on"),Jc.off=d0("off"),Jc.one=function(t,e,r){var n=this;this.on.call(this,t,function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)},r)};var aL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],tu={},eh={},th={},rh=[],nh=[],ru=[],w0={},ih={},ri={},nu={},oL=+new Date-0,sL=+new Date-0,ah="_echarts_instance_";function uL(t,e,r){var n=!(r&&r.ssr);if(n){var i=oh(t);if(i)return i}var a=new eu(t,e,r);return a.id="ec_"+oL++,ri[a.id]=a,n&&ep(t,ah,a.id),x0(a),Qt.trigger("afterinit",a),a}function lL(t){if(G(t)){var e=t;t=null,D(e,function(r){null!=r.group&&(t=r.group)}),t=t||"g_"+sL++,D(e,function(r){r.group=t})}return nu[t]=!0,t}function D0(t){nu[t]=!1}var fL=D0;function cL(t){j(t)?t=ri[t]:t instanceof eu||(t=oh(t)),t instanceof eu&&!t.isDisposed()&&t.dispose()}function oh(t){return ri[function Xx(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,ah)]}function hL(t){return ri[t]}function sh(t,e){w0[t]=e}function uh(t){fe(nh,t)<0&&nh.push(t)}function lh(t,e){fh(rh,t,e,2e3)}function M0(t){iu("afterinit",t)}function A0(t){iu("afterupdate",t)}function iu(t,e){Qt.on(t,e)}function ni(t,e,r){var n,i,a,o,s;function u(f){return f.toLowerCase()}ee(e)&&(r=e,e=""),K(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e),i=u(i||n);var l=a?u(n):i;tu[n]||(tr(h0.test(n)&&h0.test(i)),a&&tr(i!==n),tu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},th[i]=1,a&&s&&(th[l]=1),eh[l]=n)}function L0(t,e){ms.register(t,e)}function vL(t){var e=ms.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function dL(t,e){s0(t,e)}function P0(t,e){fh(ru,t,e,1e3,"layout")}function on(t,e){fh(ru,t,e,3e3,"visual")}var R0=[];function fh(t,e,r,n,i){if((ee(e)||K(e))&&(r=e,e=n),!(fe(R0,r)>=0)){R0.push(r);var a=Bm.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function ch(t,e){ih[t]=e}function pL(t){yv({createCanvas:t})}function I0(t,e,r){var n=a0("registerMap");n&&n(t,e,r)}function gL(t){var e=a0("getMap");return e&&e(t)}var E0=function CD(t){var e=(t=le(t)).type;e||ut("");var n=e.split(":");2!==n.length&&ut("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Sy.set(e,t)};function hh(t,e,r,n){return{eventContent:{selected:vT(r),isFromClick:e.isFromClick||!1}}}on(2e3,WM),on(4500,qM),on(4500,UM),on(2e3,oA),on(4500,sA),on(7e3,function GA(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=Uc(s,e))});var i=n.getVisual("decal");i&&(n.getVisual("style").decal=Uc(i,e))}})}),uh(ty),lh(900,function Zw(t){var e=ae();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}}),e.each(function(r){0!==r.length&&("seriesDesc"===(r[0].seriesModel.get("stackOrder")||"seriesAsc")&&r.reverse(),D(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),function Kw(t){D(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var h,d,v=o.get(e.stackedDimension,c);if(isNaN(v))return i;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var y=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var m=g.data.getByRawIndex(g.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=Ax(v,m),y=m;break}}}return n[0]=v,n[1]=y,n})})}(r))})}),ch("default",function YM(t,e){we(e=e||{},{text:"loading",textColor:ce.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ce.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new bt,n=new Xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var o,i=new Ne({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Xe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(a),e.showSpinner&&((o=new ks({shape:{startAngle:-Vs/2,endAngle:-Vs/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*Vs/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*Vs/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.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}),a.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}),ni({type:Hn,event:Hn,update:Hn},nt),ni({type:is,event:is,update:is},nt),ni({type:as,event:pf,update:as,action:nt,refineEvent:hh,publishNonRefinedEvent:!0}),ni({type:df,event:pf,update:df,action:nt,refineEvent:hh,publishNonRefinedEvent:!0}),ni({type:os,event:pf,update:os,action:nt,refineEvent:hh,publishNonRefinedEvent:!0}),sh("default",{}),sh("dark",iA);var yL={},k0=[],mL={registerPreprocessor:uh,registerProcessor:lh,registerPostInit:M0,registerPostUpdate:A0,registerUpdateLifecycle:iu,registerAction:ni,registerCoordinateSystem:L0,registerLayout:P0,registerVisual:on,registerTransform:E0,registerLoading:ch,registerMap:I0,registerImpl:function WA(t,e){i0[t]=e},PRIORITY:c0,ComponentModel:De,ComponentView:kt,SeriesModel:an,ChartView:kr,registerComponentModel:function(t){De.registerClass(t)},registerComponentView:function(t){kt.registerClass(t)},registerSeriesModel:function(t){an.registerClass(t)},registerChartView:function(t){kr.registerClass(t)},registerCustomSeries:function(t,e){s0(t,e)},registerSubTypeDefaulter:function(t,e){De.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Bd(t,e)}};function sn(t){G(t)?D(t,function(e){sn(e)}):fe(k0,t)>=0||(k0.push(t),ee(t)&&(t={install:t}),t.install(mL))}function Ua(t){return null==t?0:t.length||1}function O0(t){return t}var _L=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||O0,this._newKeyGetter=i||O0,this.context=a,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={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],u=n[s],l=Ua(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(a,n)},t.prototype._executeMultiple=function(){var r=this._new,n={},i={},a=[],o=[];this._initIndexMap(this._old,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],c=Ua(l),v=Ua(f);if(c>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(1===c&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(1===c&&1===v)this._update&&this._update(f,l),i[u]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[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,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Ua(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),r){var u=r[s],l=Ua(u);0===l?(r[s]=o,a&&n.push(s)):1===l?r[s]=[u,o]:u.push(o)}}},t}();const SL=_L;var CL=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 vh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const au=function(){return function t(e){this.otherDims={},null!=e&&N(this,e)}}();var DL=Ce(),ML={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},B0=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=z0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Q(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=ay(this.source),n=!H0(e),i="",a=[],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)}a.push({property:u,type:l,ordinalMeta:f}),r&&null!=u&&(!c||!c.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=ML[l]||"f",f&&(i+=f.uid),i+="$"}var h=this.source;return{dimensions:a,hash:[h.seriesLayoutBy,h.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function N0(t){return t instanceof B0}function F0(t){for(var e=ae(),r=0;r<(t||[]).length;r++){var n=t[r],i=K(n)?n.name:n;null!=i&&null==e.get(i)&&e.set(i,r)}return e}function z0(t){var e=DL(t);return e.dimNameMap||(e.dimNameMap=F0(t.dimensionsDefine))}function H0(t){return t>30}var V0,ou,Xa,ja,dh,Za,ph,Ya=K,un=$,AL=typeof Int32Array>"u"?Array:Int32Array,PL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],RL=["_approximateExtent"],IL=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;N0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],v=j(c)?new au({name:c}):c instanceof au?c:new au(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),a[h]=v,null!=l[h]&&(u=!0),v.createInvertedIndices&&(s[h]=[]);var y=f;_e(v.storeDimIndex)&&(y=v.storeDimIndex),0===d.itemName&&(this._nameDimIdx=y),0===d.itemId&&(this._idDimIdx=y),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ae();D(o,function(g){p.set(a[g].storeDimIndex,g)})}}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 i=this._schema.getSourceDimension(r);return i?i.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(_e(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 i=n.encode[e];return i?i[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 a,i=this;if(e instanceof cc&&(a=e),!a){var o=this.dimensions,s=nc(e)||Ke(e)?new cy(e,o.length):e;a=new cc;var u=un(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=function bL(t,e){var r={},n=r.encode={},i=ae(),a=[],o=[],s={};D(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var y=h.coordDimIndex;vh(n,d)[y]=v,h.isExtraCoord||(i.set(d,1),function TL(t){return!("ordinal"===t||"time"===t)}(h.type)&&(a[0]=v),vh(s,d)[y]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Eg.each(function(p,g){var m=vh(n,g),_=h.otherDims[g];null!=_&&!1!==_&&(m[_]=h.name)})});var u=[],l={};i.each(function(v,h){var d=n[h];l[h]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=$(u,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new CL(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),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++)this._nameList[s]=r[s-i],o&&ph(this,s)},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Ir&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Tt&&!i.pure)for(var l=[],f=e;f<r;f++){var c=i.getItem(f,l);if(!this.hasItemOption&&Nx(c)&&(this.hasItemOption=!0),c){var v=c.name;null==a[f]&&null!=v&&(a[f]=at(v,null));var h=c.id;null==o[f]&&null!=h&&(o[f]=at(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<r;f++)ph(this,f);V0(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){Ya(e)?N(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=Xa(this,this._nameDimIdx,r)),null==n&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return ou(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._dimInfos[e];if(i)return this._store.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._dimInfos[e];if(i)return this._store.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return G(e)?i.getValues(un(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return null==i||isNaN(i)?-1:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=un(ja(e),this._getStoreDimIndex,this);this._store.each(a,i?ve(r,i):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=un(ja(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ve(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=ge(e),a=[];return D(i,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n=n||this),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=un(ja(e),this._getStoreDimIndex,this),s=Za(this);return s._store=this._store.map(o,a?ve(r,a):r),s},t.prototype.modify=function(e,r,n,i){var o=n||i||this,s=un(ja(e),this._getStoreDimIndex,this);this._store.modify(s,o?ve(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Za(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Za(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Za(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 Fe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new SL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ou(e,n)},function(n){return ou(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||{},Ya(e)?N(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,i=n[e];i||(i=n[e]={});var a=i[r];return null==a&&(G(a=this.getVisual(r))?a=a.slice():Ya(a)&&(a=N({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Ya(r)?N(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ya(e)?N(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?N(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 i=de(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===n.type&&n.traverse(function(a){var o=de(a);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){D(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:un(this.dimensions,this._getDimInfo,this),this.hostModel)),dh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ee(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vo(arguments)))})},t.internalField=(V0=function(e){var r=e._invertedIndicesMap;D(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new AL(o.categories.length);for(var u=0;u<n.length;u++)n[u]=-1;for(u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},Xa=function(e,r,n){return at(e._getCategory(r,n),null)},ou=function(e,r){var n=e._idList[r];return null==n&&null!=e._idDimIdx&&(n=Xa(e,e._idDimIdx,r)),null==n&&(n="e\0\0"+r),n},ja=function(e){return G(e)||(e=null!=e?[e]:[]),e},Za=function(e){var r=new t(e._schema?e._schema:un(e.dimensions,e._getDimInfo,e),e.hostModel);return dh(r,e),r},dh=function(e,r){D(PL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,D(RL,function(n){e[n]=le(r[n])}),e._calculationInfo=N({},r._calculationInfo)},void(ph=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=i[r];if(null==s&&null!=a&&(n[r]=s=Xa(e,a,r)),null==u&&null!=o&&(i[r]=u=Xa(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),i[r]=u}})),t}();const gh=IL;function EL(t,e){return yh(t,e).dimensions}function yh(t,e){nc(t)||(t=ac(t));var r=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ae(),a=[],o=function OL(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return D(e,function(a){var o;K(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&H0(o),u=n===t.dimensionsDefine,l=u?z0(t):F0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ae(f),v=new Cy(o),h=0;h<v.length;h++)v[h]=-1;function d(w){var A=v[w];if(A<0){var L=n[w],E=K(L)?L:{name:L},M=new au,k=E.name;return null!=k&&null!=l.get(k)&&(M.name=M.displayName=k),null!=E.type&&(M.type=E.type),null!=E.displayName&&(M.displayName=E.displayName),v[w]=a.length,M.storeDimIndex=w,a.push(M),M}return a[A]}if(!s)for(h=0;h<o;h++)d(h);c.each(function(w,A){var L=Ge(w).slice();if(1===L.length&&!j(L[0])&&L[0]<0)c.set(A,!1);else{var E=c.set(A,[]);D(L,function(M,k){var B=j(M)?l.get(M):M;null!=B&&B<o&&(E[k]=B,p(d(B),A,k))})}});var y=0;function p(w,A,L){null!=Eg.get(A)?w.otherDims[A]=L:(w.coordDim=A,w.coordDimIndex=L,i.set(A,!0))}D(r,function(w){var A,L,E,M;if(j(w))A=w,M={};else{A=(M=w).name;var k=M.ordinalMeta;M.ordinalMeta=null,(M=N({},M)).ordinalMeta=k,L=M.dimsDef,E=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var B=c.get(A);if(!1!==B){if(!(B=Ge(B)).length)for(var F=0;F<(L&&L.length||1);F++){for(;y<o&&null!=d(y).coordDim;)y++;y<o&&B.push(y++)}D(B,function(X,U){var V=d(X);if(u&&null!=M.type&&(V.type=M.type),p(we(V,M),A,U),null==V.name&&L){var q=L[U];!K(q)&&(q={name:q}),V.name=V.displayName=q.name,V.defaultTooltip=q.defaultTooltip}E&&we(V.otherDims,E)})}});var g=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=g?m||1:0;var S=g||"value";function b(w){null==w.name&&(w.name=w.coordDim)}if(s)D(a,function(w){b(w)}),a.sort(function(w,A){return w.storeDimIndex-A.storeDimIndex});else for(var C=0;C<o;C++){var x=d(C);null==x.coordDim&&(x.coordDim=BL(S,i,_),x.coordDimIndex=0,(!g||m<=0)&&(x.isExtraCoord=!0),m--),b(x),null==x.type&&(1===Bg(t,C)||x.isExtraCoord&&(null!=x.otherDims.itemName||null!=x.otherDims.seriesName))&&(x.type="ordinal")}return function kL(t){for(var e=ae(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}(a),new B0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function BL(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 NL=function(){return function t(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}}(),zL={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",$r).models[0],a=t.getReferringComponents("yAxis",$r).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),qi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),qi(a)&&(n.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",$r).models[0];e.coordSysDims=["single"],r.set("single",i),qi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",$r).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),qi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),qi(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 i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),qi(l)&&(n.set(f,l),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",$r).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function qi(t){return"category"===t.get("type")}function W0(t,e,r){var a,o,s,n=(r=r||{}).byIndex,i=r.stackedCoordDimension;!function HL(t){return!N0(t.schema)}(e)?(a=(o=e.schema).dimensions,s=e.store):a=e;var l,f,c,v,u=!(!t||!t.get("stack"));if(D(a,function(m,_){j(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&"ordinal"!==m.type&&"time"!==m.type&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var h=f.coordDim,d=f.type,y=0;D(a,function(m){m.coordDim===h&&y++});var p={name:c,coordDim:h,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function q0(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ka(t){return sr(t)+2}function Y0(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function mh(t,e){return t>=e[0]&&t<=e[1]}var $L=function(){function t(){this.normalize=X0,this.scale=j0}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=ve(e.normalize,e),this.scale=ve(e.scale,e)):(this.normalize=X0,this.scale=j0)},t}();function X0(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function j0(t,e){return t*(e[1]-e[0])+e[0]}function Z0(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var K0=function(){function t(e){this._calculator=new $L,this._setting=e||{},this._extent=[1/0,-1/0];var r=null;r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){var r=null;r&&this._innerSetBreak(r.parseAxisBreakOption(e,ve(this.parse,this)))},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Zo(K0);const ii=K0;var QL=0,JL=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QL,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&$(n,eP);return new t({categories:i,needCollect:!i,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(!j(e)&&!n)return e;if(n&&!this._deduplication)return this.categories[r=this.categories.length]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return null==(r=i.get(e))&&(n?(this.categories[r=this.categories.length]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t}();function eP(t){return K(t)&&null!=t.value?t.value:t+""}const $0=JL;var Q0=function(t){function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new $0({})),G(i)&&(i=new $0({categories:$(i,function(a){return K(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,Z.C6)(e,t),e.prototype.parse=function(r){return null==r?NaN:j(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return mh(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(null!=r){for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;null!=a[f];)f++;i.push(f),a[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),i=this._ordinalMeta.categories[n];return null==i?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ii);ii.registerClass(Q0);const tP=Q0;var ln=or,J0=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return(0,Z.C6)(e,t),e.prototype.parse=function(r){return null==r||""===r?NaN:Number(r)},e.prototype.contain=function(r){return mh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ka(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=null,u=[];if(!n)return u;if("only_break"===(r=r||{}).breakTicks&&s)return s.addBreaksToTicks(u,this._brkCtx.breaks,this._extent),u;i[0]<a[0]&&u.push(r.expandToNicedExtent?{value:ln(a[0]-n,o)}:{value:i[0]});for(var f=function(d,y){return Math.round((y-d)/n)},c=a[0];c<=a[1];){if(u.push({value:c}),c=ln(c+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(c,f);v>=0&&(c=ln(c+v*n,o))}if(u.length>0&&c===u[u.length-1].value)break;if(u.length>1e4)return[]}var h=u.length?u[u.length-1].value:a[1];return i[1]>h&&u.push(r.expandToNicedExtent?{value:ln(h+n,o)}:{value:i[1]}),s&&s.pruneTicksByBreak(r.pruneByBreak,u,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),"none"!==r.breakTicks&&s&&s.addBreaksToTicks(u,this._brkCtx.breaks,this._extent),u},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],u=n[o-1];if(!u.break&&!s.break){for(var l=0,f=[],v=(s.value-u.value)/r,h=Ka(v);l<r-1;){var d=ln(u.value+(l+1)*v,h);d>a[0]&&d<a[1]&&f.push(d),l++}var y=pt();y&&y.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(null==r)return"";var i=n&&n.precision;return null==i?i=sr(r.value)||0:"auto"===i&&(i=this._intervalPrecision),Vf(ln(r.value,i,!0))},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=function ZL(t,e,r,n,i){var a={},o=a.interval=Gl(e/r,!0);null!=n&&o<n&&(o=a.interval=n),null!=i&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Ka(o);return function KL(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Y0(t,0,e),Y0(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(a.niceTickExtent=[or(Math.ceil(t[0]/o)*o,s),or(Math.floor(t[1]/o)*o,s)],t),a}(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(0!==n[0]){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;isFinite(n[1]-n[0])||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=ln(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=ln(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(ii);ii.registerClass(J0);const su=J0;function Ch(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function bh(t){return t.dim+t.index}function t_(t){var e=function oP(t){var e={};D(t,function(u){var f=u.coordinateSystem.getBaseAxis();if("time"===f.type||"value"===f.type)for(var c=u.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(h,y);e[v]?e[v].push(g):e[v]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(u,l){return u-l});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=null===a?s:Math.min(a,s))}r[n]=a}}return r}(t),r=[];return D(t,function(n){var s,a=n.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)s=a.getBandWidth();else if("value"===a.type||"time"===a.type){var l=e[a.dim+"_"+a.index],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=l?f/v*l:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=Se(n.get("barWidth"),s),y=Se(n.get("barMaxWidth"),s),p=Se(n.get("barMinWidth")||(function i_(t){return t.pipelineContext&&t.pipelineContext.large}(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:bh(a),stackId:Ch(n)})}),function r_(t){var e={};D(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;e[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(u[l].maxWidth=c);var v=n.barMinWidth;v&&(u[l].minWidth=v);var h=n.barGap;null!=h&&(s.gap=h);var d=n.barCategoryGap;null!=d&&(s.categoryGap=d)});var r={};return D(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(null==s){var u=ge(a).length;s=Math.max(35-4*u,15)+"%"}var l=Se(s,o),f=Se(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-l)/(v+(v-1)*f);h=Math.max(h,0),D(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,v--}else S=h,m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==h&&(g.width=S,c-=S+f*S,v--)}),h=(c-l)/(v+(v-1)*f),h=Math.max(h,0);var y,d=0;D(a,function(g,m){g.width||(g.width=h),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;D(a,function(g,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}(r)}var a_=function(t){function e(r){var n=t.call(this,r)||this;return n.type="time",n}return(0,Z.C6)(e,t),e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return ba(r.value,gg[function ZT(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ca(this._minLevelUnit))]||gg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC");return function KT(t,e,r,n,i){var a=null;if(j(r))a=r;else if(ee(r)){var o={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Ri(t.value,i);a=r[f][f][0]}}return ba(new Date(t.value),a,i,n)}(r,n,i,this.getSetting("locale"),a)},e.prototype.getTicks=function(r){r=r||{};var i=this._extent,a=null,o=[];if(!this._interval)return o;var s=this.getSetting("useUTC");var u=Ri(i[1],s);o.push({value:i[0],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}});var l=function gP(t,e,r,n,i,a){var s=UT,u=0;function l(M,k,B,F,X,U,V){for(var q=function pP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}(X,M),W=k,H=new Date(W);W<B&&W<=n[1]&&(V.push({value:W}),!(u++>1e4));)if(H[X](H[F]()+M),W=H.getTime(),a){var ie=a.calcNiceTickMultiple(W,q);ie>0&&(H[X](H[F]()+ie*M),W=H.getTime())}V.push({value:W,notAdd:!0})}function f(M,k,B){var F=[],X=!k.length;if(!o_(Ca(M),n[0],n[1],r)){X&&(k=[{value:dP(n[0],M,r)},{value:n[1]}]);for(var U=0;U<k.length-1;U++){var V=k[U].value,q=k[U+1].value;if(V!==q){var W=void 0,H=void 0,ie=void 0;switch(M){case"year":W=Math.max(1,Math.round(e/Rt/365)),H=yg(r),ie=$T(r);break;case"half-year":case"quarter":case"month":W=cP(e),H=Bf(r),ie=mg(r);break;case"week":case"half-week":case"day":W=fP(e),H=Nf(r),ie=_g(r);break;case"half-day":case"quarter-day":case"hour":W=hP(e),H=Ff(r),ie=Sg(r);break;case"minute":W=s_(e,!0),H=zf(r),ie=Cg(r);break;case"second":W=s_(e,!1),H=Hf(r),ie=bg(r);break;case"millisecond":W=vP(e),H=Gf(r),ie=xg(r)}q>=n[0]&&V<=n[1]&&l(W,V,q,H,ie,0,F),"year"===M&&B.length>1&&0===U&&B.unshift({value:B[0].value-W})}}for(U=0;U<F.length;U++)B.push(F[U])}}for(var c=[],v=[],h=0,d=0,y=0;y<s.length;++y){var p=Ca(s[y]);if(jT(s[y])&&(f(s[y],c[c.length-1]||[],v),p!==(s[y+1]?Ca(s[y+1]):null))){if(v.length){d=h,v.sort(function(M,k){return M.value-k.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 b=i/e;if(h>1.5*b&&d>b/1.5||(c.push(m),h>b||t===s[y]))break}v=[]}}var C=Pe($(c,function(M){return Pe(M,function(k){return k.value>=n[0]&&k.value<=n[1]&&!k.notAdd})}),function(M){return M.length>0}),x=[],T=C.length-1;for(y=0;y<C.length;++y)for(var w=C[y],A=0;A<w.length;++A){var L=Ri(w[A].value,r);x.push({value:w[A].value,time:{level:T-y,upperTimeUnit:L,lowerTimeUnit:L}})}x.sort(function(M,k){return M.value-k.value});var E=[];for(y=0;y<x.length;++y)(0===y||x[y].value!==x[y-1].value)&&E.push(x[y]);return E}(this._minLevelUnit,this._approxInterval,s,i,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var f=Ri(i[1],s);o.push({value:i[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});this.getSetting("useUTC");var v=xt.length-1,h=0;return D(o,function(d){v=Math.min(v,fe(xt,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),o},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Rt,n[1]+=Rt),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Rt}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,null!=n&&this._approxInterval<n&&(this._approxInterval=n),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=uu.length,s=Math.min(function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r}(uu,this._approxInterval,0,o),o-1);this._interval=uu[s][1],this._intervalPrecision=Ka(this._interval),this._minLevelUnit=uu[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return _e(r)?r:+xr(r)},e.prototype.contain=function(r){return mh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e}(su),uu=[["second",1e3],["minute",6e4],["hour",Sa],["quarter-day",6*Sa],["half-day",12*Sa],["day",1.2*Rt],["half-week",3.5*Rt],["week",7*Rt],["month",31*Rt],["quarter",95*Rt],["half-year",pg/2],["year",pg]];function o_(t,e,r,n){return gs(new Date(e),t,n).getTime()===gs(new Date(r),t,n).getTime()}function fP(t,e){return(t/=Rt)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cP(t){return(t/=30*Rt)>6?6:t>3?3:t>2?2:1}function hP(t){return(t/=Sa)>12?12:t>6?6:t>3.5?4:t>2?2:1}function s_(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 vP(t){return Gl(t,!0)}function dP(t,e,r){var n=Math.max(0,fe(xt,e)-1);return gs(new Date(t),xt[n],r).getTime()}ii.registerClass(a_);const yP=a_;var xh=or,mP=Math.floor,_P=Math.ceil,lu=Math.pow,fu=Math.log,u_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new su,r}return(0,Z.C6)(e,t),e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),u=null;return $(a,function(l){var h,f=l.value,c=null,v=lu(o,f);if(f===n[0]&&this._fixMin?c=i[0]:f===n[1]&&this._fixMax&&(c=i[1]),u){var d=u.getTicksLogTransformBreak(l,o,s,cu);h=d.vBreak,null==c&&(c=d.brkRoundingCriterion)}return null!=c&&(v=cu(v,c)),{value:v,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=Z0(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=lu(r,n[0]),n[1]=lu(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=cu(n[0],i[0])),this._fixMax&&(n[1]=cu(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=Z0(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)&&!(i<=0)){var a=Wd(i);for(r/i*a<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[xh(_P(n[0]/a)*a),xh(mP(n[1]/a)*a)];this._interval=a,this._intervalPrecision=Ka(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=fu(r)/fu(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=fu(r)/fu(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),lu(this.base,r)},e.prototype.setBreaksFromOption=function(r){var n=null;if(n){var i=n.logarithmicParseBreaksFromOption(r,this.base,ve(this.parse,this)),o=i.parsedLogged;this._originalScale._innerSetBreak(i.parsedOriginal),this._innerSetBreak(o)}},e.type="log",e}(su);function cu(t,e){return xh(t,sr(e))}ii.registerClass(u_);const SP=u_;var CP=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);null==a&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ee(o)?this._modelMinNum=hu(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=hu(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ee(s)?this._modelMaxNum=hu(e,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=hu(e,s)),i)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=G(u)?u:[u||0,u||0];this._boundaryGapInner="boolean"==typeof l[0]||"boolean"==typeof l[1]?[0,0]:[Kr(l[0],1),Kr(l[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s="dataMin"===this._modelMinRaw?r:this._modelMinNum,u="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=s,f=null!=u;null==s&&(s=e?i?0:NaN:r-a[0]*o),null==u&&(u=e?i?i-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN);var c=Zi(s)||Zi(u)||e&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var v=this._determinedMin,h=this._determinedMax;return null!=v&&(s=v,l=!0),null!=h&&(u=h,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[xP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){this[bP[e]]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),bP={min:"_determinedMin",max:"_determinedMax"},xP={min:"_dataMin",max:"_dataMax"};function hu(t,e){return null==e?null:Zi(e)?NaN:t.parse(e)}function AP(t,e){var r=e,n=function DP(t,e){var r=t.type,n=function TP(t,e,r){var n=t.rawExtentInfo;return n||(n=new CP(t,e,r),t.rawExtentInfo=n,n)}(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&"time"===r){var s=function e_(t,e){var r=[];return e.eachSeriesByType(t,function(n){(function n_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(n)&&r.push(n)}),r}("bar",o),u=!1;if(D(s,function(c){u=u||c.getBaseAxis()===e.axis}),u){var l=t_(s),f=function MP(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=function sP(t,e,r){if(t&&e){var n=t[bh(e)];return null!=n&&null!=r?n[Ch(r)]:n}}(n,r.axis);if(void 0===o)return{min:t,max:e};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var u=-1/0;D(o,function(h){u=Math.max(h.offset+h.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=e-t,v=f/(1-(s+u)/a)-f;return{min:t-=v*(s/l),max:e+=v*(u/l)}}(i,a,e,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}(t,r),i=n.extent,a=r.get("splitNumber");t instanceof SP&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),u="interval"===o||"time"===o;t.setBreaksFromOption(function RP(t){t.get("breaks",!0)}(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function $a(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var r=function YT(t){return j(t)||ee(t)?t:function XT(t){t=t||{};var e={},r=!0;return D(xt,function(n){r&&(r=null==t[n])}),D(xt,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var u=xt[s],l=K(a)&&!G(a)?a[u]:a,f=void 0;G(l)?o=(f=l.slice())[0]||"":j(l)?f=[o=l]:(null==o?o=ds[n]:WT[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(i,a){return t.scale.getFormattedLabel(i,a,r)}}if(j(e))return function(i){var a=t.scale.getLabel(i);return e.replace("{value}",a??"")};if(ee(e)){if("category"===t.type)return function(i,a){return e(vu(t,i),i.value-t.scale.getExtent()[0],null)};var n=null;return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(vu(t,i),a,o)}}return function(i){return t.scale.getLabel(i)}}function vu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function wh(t){return t.get("interval")??"auto"}function l_(t){return"category"===t.type&&0===wh(t.getLabelModel())}function du(t){return"middle"===t||"center"===t}var EP=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function kP(t){return function qL(t,e,r){r=r||{};var i,n=e.getSourceManager(),a=!1;t?(a=!0,i=ac(t)):a=(i=n.getSource()).sourceFormat===Tt;var o=function FL(t){var e=t.get("coordinateSystem"),r=new NL(e),n=zL[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}(e),s=function VL(t,e){var i,r=t.get("coordinateSystem"),n=ms.get(r);return e&&e.coordSysDims&&(i=$(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var u=s.get("type");o.type=function xL(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}(e,o),u=r.useEncodeDefaulter,l=ee(u)?u:u?Re(yw,s,e):null,c=yh(i,{coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a}),v=function WL(t,e,r){var n,i;return r&&D(t,function(a,o){var u=r.categoryAxisMap.get(a.coordDim);u&&(null==n&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),null!=a.otherDims.itemName&&(i=!0)}),!i&&null!=n&&(t[n].otherDims.itemName=0),n}(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=W0(e,{schema:c,store:h}),y=new gh(c,e);y.setCalculationInfo(d);var p=null!=v&&function UL(t){if(t.sourceFormat===Tt){var e=function YL(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!G(ha(e))}}(i)?function(g,m,_,S){return S===v?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?i:h,null,p),y}(null,t)}var OP={isDimensionStacked:q0,enableDataStack:W0,getStackedDimension:function GL(t,e){return q0(t,e)?t.getCalculationInfo("stackResultDimension"):e}};function BP(t,e){var r=e;e instanceof Fe||(r=new Fe(e));var n=function LP(t,e){if(e=e||t.get("type"))switch(e){case"category":return new tP({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ii.getClass(e)||su)}}(r);return n.setExtent(t[0],t[1]),AP(n,r),n}function NP(t){zt(t,EP)}function FP(t,e){return Lr(t,null,null,"normal"!==(e=e||{}).state)}function f_(t,e){return Math.abs(t-e)<1e-8}function c_(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Mr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!f_(i[0],s[0])||!f_(i[1],s[1]))&&(n+=Mr(i[0],i[1],s[0],s[1],e,r)),0!==n}var HP=[];function Dh(t,e){for(var r=0;r<t.length;r++)mt(t[r],t[r],e)}function h_(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Wr(e,e,a),qr(r,r,a))}}var v_=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}(),d_=function(){return function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}}(),p_=function(){return function t(e){this.type="linestring",this.points=e}}(),VP=function(t){function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return(0,Z.C6)(e,t),e.prototype.calcCenter=function(){for(var n,r=this.geometries,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return function GP(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var u=t[s][0],l=t[s][1],f=a*l-u*o;e+=f,r+=(a+u)*f,n+=(o+l)*f,a=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 i=[1/0,1/0],a=[-1/0,-1/0];return D(this.geometries,function(s){"polygon"===s.type?h_(s.exterior,i,a,r):D(s.points,function(u){h_(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if("polygon"===s.type){var l=s.interiors;if(c_(s.exterior,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(c_(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new ne(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var v=f[c];"polygon"===v.type?(Dh(v.exterior,l),D(v.interiors,function(h){Dh(h,l)})):D(v.points,function(h){Dh(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}(v_);function Mh(t,e,r){for(var n=0;n<t.length;n++)t[n]=g_(t[n],e[n],r)}function g_(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),i=s+=i,a=u+=a,n.push([s/r,u/r])}return n}function y_(t,e){return t=function WP(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;return null==r&&(r=1024),D(e.features,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=g_(s,o,r);break;case"Polygon":case"MultiLineString":Mh(s,o,r);break;case"MultiPolygon":D(s,function(u,l){return Mh(u,o[l],r)})}}),e.UTF8Encoding=!1,e}(t),$(Pe(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new d_(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(u){u[0]&&a.push(new d_(u[0],u.slice(1)))});break;case"LineString":a.push(new p_([i.coordinates]));break;case"MultiLineString":a.push(new p_(i.coordinates))}var s=new VP(n[e||"name"],a,n.cp);return s.properties=n,s})}function qP(t,e,r,n,i,a,o,s){return new Ne({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}!function(t){function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}(0,Z.C6)(e,t),e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Qi(HP),o=r;o&&!o.isGeoSVGGraphicRoot;)mn(a,o.getLocalTransform(),a),o=o.parent;return _n(a,a),mt(i,i,a),i}}(v_);var UP=Ce(),Qa=Ce();function pu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function m_(t,e){var r=$(e,function(n){return t.scale.parse(n)});return"time"===t.type&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function __(t,e,r){var s,u,n=QP(t),i=wh(e),a=1===r.kind;if(!a){var o=C_(n,i);if(o)return o}ee(i)?s=T_(t,i):(u="auto"===i?function JP(t,e){if(1===e.kind){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Qa(t).autoInterval=r,!0}),r}return Qa(t).autoInterval??(Qa(t).autoInterval=t.calculateCategoryInterval(e))}(t,r):i,s=x_(t,u));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return Ah(n,i,l),!0}):Ah(n,i,l),l}var $P=S_("axisTick"),QP=S_("axisLabel");function S_(t){return function(r){return Qa(r)[t]||(Qa(r)[t]={list:[]})}}function C_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Ah(t,e,r){return t.list.push({key:e,value:r}),r}function tR(t,e,r){return null==b_(t,e,r)}function b_(t,e,r){var n=UP(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(null!=a&&null!=o&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function x_(t,e,r){var n=$a(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),l=a[0],f=i.count();0!==l&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var c=l_(t),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&l!==a[0]&&y(a[0]);for(var d=l;d<=a[1];d+=u)y(d);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return h&&d-u!==a[1]&&y(a[1]),s}function T_(t,e,r){var n=t.scale,i=$a(t),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;e(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var w_=[0,1],nR=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Gd(e||this.scale.getExtent(),this._extent)},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._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&"ordinal"===i.type&&D_(n=n.slice(),i.count()),jo(e,w_,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&D_(n=n.slice(),i.count());var a=jo(e,n,w_,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){var r=(e=e||{}).tickModel||this.getTickModel(),a=$(function XP(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:Pe(m_(t,n),function(o){return o>=i[0]&&o<=i[1]})}}return"category"===t.type?function ZP(t,e){var a,o,r=$P(t),n=wh(e),i=C_(r,n);if(i)return i;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=T_(t,n,!0);else if("auto"===n){var s=__(t,t.getLabelModel(),pu(2));o=s.labelCategoryInterval,a=$(s.labels,function(u){return u.tickValue})}else a=x_(t,o=n,!0);return Ah(r,n,{ticks:a,tickCategoryInterval:o})}(t,e):{ticks:$(t.scale.getTicks(r),function(o){return o.value})}}(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function iR(t,e,r,n){var i=e.length;if(t.onBand&&!r&&i){var o,a=t.getExtent();if(1===i)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=(e[i-1].coord-e[0].coord)/(e[i-1].tickValue-e[0].tickValue);D(e,function(h){h.coord-=l/2,h.onBand=!0});var f=t.scale.getExtent();e.push(o={coord:e[i-1].coord+l*(1+f[1]-e[i-1].tickValue),tickValue:f[1]+1,onBand:!0})}var c=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1],onBand:!0})}function v(h,d){return h=or(h),d=or(d),c?h>d:h<d}}(this,a,r.get("alignWithLabel"),e.clamp),a},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var r=this.model.getModel("minorTick").get("splitNumber");return r>0&&r<100||(r=5),$(this.scale.getMinorTicks(r),function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},t.prototype.getViewLabels=function(e){return function YP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=$a(t),i=t.scale.getExtent();return{labels:$(Pe(m_(t,r),function(s){return s>=i[0]&&s<=i[1]}),function(s){var u={value:s};return{formattedLabel:n(u),rawLabel:t.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return"category"===t.type?function jP(t,e){var r=t.getLabelModel(),n=__(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}(t,e):function KP(t){var e=t.scale.getTicks(),r=$a(t);return{labels:$(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}(t)}(this,e=e||pu(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return function eR(t,e){var r=e.kind,n=function rR(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),i=$a(t),a=(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(a)),d=Math.abs(v*Math.sin(a)),y=0,p=0;c<=s[1];c+=l){var m,_=Rd(i({value:c}),n.font,"center","top");m=1.3*_.height,y=Math.max(y,1.3*_.width,7),p=Math.max(p,m,7)}var S=y/h,b=p/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var C=Math.max(0,Math.floor(Math.min(S,b)));return 1===r?(e.out.noPxChangeTryDetermine.push(ve(tR,null,t,C,u)),C):b_(t,C,u)??C}(this,e=e||pu(2))},t}();function D_(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}const aR=nR;function oR(t){var e=De.extend(t);return De.registerClass(e),e}function sR(t){var e=kt.extend(t);return kt.registerClass(e),e}function uR(t){var e=an.extend(t);return an.registerClass(e),e}function lR(t){var e=kr.extend(t);return kr.registerClass(e),e}var Ja=2*Math.PI,ai=Nn.CMD,fR=["top","right","bottom","left"];function cR(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0)}}function hR(t,e,r,n,i,a,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-i)%Ja<1e-4)return u[0]=f,u[1]=c,l-r;if(a){var v=n;n=Dr(i),i=Dr(v)}else n=Dr(n),i=Dr(i);n>i&&(i+=Ja);var h=Math.atan2(s,o);if(h<0&&(h+=Ja),h>=n&&h<=i||h+Ja>=n&&h+Ja<=i)return u[0]=f,u[1]=c,l-r;var d=r*Math.cos(n)+t,y=r*Math.sin(n)+e,p=r*Math.cos(i)+t,g=r*Math.sin(i)+e,m=(d-o)*(d-o)+(y-s)*(y-s),_=(p-o)*(p-o)+(g-s)*(g-s);return m<_?(u[0]=d,u[1]=y,Math.sqrt(m)):(u[0]=p,u[1]=g,Math.sqrt(_))}function gu(t,e,r,n,i,a,o,s){var u=i-t,l=a-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 y=o[0]=t+(d*=v)*f,p=o[1]=e+d*c;return Math.sqrt((y-i)*(y-i)+(p-a)*(p-a))}function M_(t,e,r,n,i,a,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(i,t),s),f=o[1]=Math.min(Math.max(a,e),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Jt=[];function vR(t,e,r){var n=M_(e.x,e.y,e.width,e.height,t.x,t.y,Jt);return r.set(Jt[0],Jt[1]),n}function dR(t,e,r){for(var s,u,n=0,i=0,a=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&&(a=n=f[h],o=i=f[h+1]);var y=l;switch(d){case ai.M:n=a=f[h++],i=o=f[h++];break;case ai.L:y=gu(n,i,f[h],f[h+1],c,v,Jt,!0),n=f[h++],i=f[h++];break;case ai.C:y=nd(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,Jt),n=f[h++],i=f[h++];break;case ai.Q:y=od(n,i,f[h++],f[h++],f[h],f[h+1],c,v,Jt),n=f[h++],i=f[h++];break;case ai.A:var p=f[h++],g=f[h++],m=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var C=!!(1-f[h++]);s=Math.cos(S)*m+p,u=Math.sin(S)*_+g,h<=1&&(a=s,o=u),y=hR(p,g,_,S,S+b,C,(c-p)*_/m+p,v,Jt),n=Math.cos(S+b)*m+p,i=Math.sin(S+b)*_+g;break;case ai.R:y=M_(a=n=f[h++],o=i=f[h++],f[h++],f[h++],c,v,Jt);break;case ai.Z:y=gu(n,i,a,o,c,v,Jt,!0),n=a,i=o}y<l&&(l=y,r.set(Jt[0],Jt[1]))}return l}var er=new te,be=new te,Ee=new te,gr=new te,yr=new te;function A_(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||fR,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=i.anchor,f=t.getComputedTransform(),c=f&&_n([],f),v=e.get("length2")||0;l&&Ee.copy(l);for(var h=0;h<o.length;h++){cR(o[h],0,s,er,gr),te.scaleAndAdd(be,er,gr,v),be.transform(c);var y=t.getBoundingRect(),p=l?l.distance(be):t instanceof Te?dR(be,t.path,Ee):vR(be,y,Ee);p<u&&(u=p,be.transform(f),Ee.transform(f),Ee.toArray(a[0]),be.toArray(a[1]),er.toArray(a[2]))}L_(a,e.get("minTurnAngle")),r.setShape({points:a})}}}var yu=[],lt=new te;function L_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,er.fromArray(t[0]),be.fromArray(t[1]),Ee.fromArray(t[2]),te.sub(gr,er,be),te.sub(yr,Ee,be);var r=gr.len(),n=yr.len();if(!(r<.001||n<.001)){gr.scale(1/r),yr.scale(1/n);var i=gr.dot(yr);if(Math.cos(e)<i){var o=gu(be.x,be.y,Ee.x,Ee.y,er.x,er.y,yu,!1);lt.fromArray(yu),lt.scaleAndAdd(yr,o/Math.tan(Math.PI-e));var s=Ee.x!==be.x?(lt.x-be.x)/(Ee.x-be.x):(lt.y-be.y)/(Ee.y-be.y);if(isNaN(s))return;s<0?te.copy(lt,be):s>1&&te.copy(lt,Ee),lt.toArray(t[1])}}}}function pR(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,er.fromArray(t[0]),be.fromArray(t[1]),Ee.fromArray(t[2]),te.sub(gr,be,er),te.sub(yr,Ee,be);var n=gr.len(),i=yr.len();if(!(n<.001||i<.001)&&(gr.scale(1/n),yr.scale(1/i),gr.dot(e)<Math.cos(r))){var s=gu(be.x,be.y,Ee.x,Ee.y,er.x,er.y,yu,!1);lt.fromArray(yu);var u=Math.PI/2,f=u+Math.acos(yr.dot(e))-r;if(f>=u)te.copy(lt,Ee);else{lt.scaleAndAdd(yr,s/Math.tan(Math.PI/2-f));var c=Ee.x!==be.x?(lt.x-be.x)/(Ee.x-be.x):(lt.y-be.y)/(Ee.y-be.y);if(isNaN(c))return;c<0?te.copy(lt,be):c>1&&te.copy(lt,Ee)}lt.toArray(t[1])}}}function Lh(t,e,r,n){var i="normal"===r,a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function gR(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=_o(n[0],n[1]),a=_o(n[1],n[2]);if(!i||!a)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var o=Math.min(i,a)*r,s=So([],n[1],n[0],o/i),u=So([],n[1],n[2],o/a),l=So([],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 P_(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var a=e.normal,o=a.get("show"),s=i.ignore,u=0;u<ns.length;u++){var l=ns[u],f=e[l],c="normal"===l;if(f){var v=f.get("show");if((c?s:Q(i.states[l]&&i.states[l].ignore,s))||!Q(v,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0),n&&Lh(n,!0,l,f);continue}n||(n=new Na,t.setTextGuideLine(n),!c&&(s||!o)&&Lh(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Lh(n,!1,l,f)}}if(n){we(n.style,r),n.style.fill=null;var y=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=gR}}else n&&t.removeTextGuideLine()}function R_(t,e){for(var r={normal:t.getModel(e=e||"labelLine")},n=0;n<vr.length;n++){var i=vr[n];r[i]=t.getModel([i,e])}return r}var I_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function _u(t,e,r){r=r||3,e?t.dirty|=r:t.dirty&=~r}function k_(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function mr(t){if(t)return k_(t)&&O_(t,t.label,t),t}function O_(t,e,r){var n=e.getComputedTransform();t.transform=Oc(t.transform,n);var i=t.localRect=za(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;null==f&&l&&(o=l,f=Li.textMargin);for(var c=0;c<4;c++)Ph[c]=f===Li.minMargin&&u&&null!=u[c]?u[c]:s&&null!=s[c]?s[c]:o?o[c]:0;f===Li.textMargin&&Ic(i,Ph,!1,!1);var v=t.rect=za(t.rect,i);return n&&v.applyTransform(n),f===Li.minMargin&&Ic(v,Ph,!1,!1),t.axisAligned=kc(n),(t.label=t.label||{}).ignore=e.ignore,_u(t,!1),_u(t,!0,2),t}var Ph=[0,0,0,0];function Rh(t,e){for(var r=0;r<I_.length;r++){var n=I_[r];null==t[n]&&(t[n]=e[n])}return mr(t)}function B_(t){var e=t.obb;return(!e||k_(t,2))&&(t.obb=e=e||new am,e.fromBoundingRect(t.localRect,t.transform),_u(t,!1,2)),e}function Ih(t,e,r,n,i){var a=t.length,o=sm[e],s=um[e];if(a<2)return!1;t.sort(function(w,A){return w.rect[o]-A.rect[o]});for(var l,u=0,f=!1,c=0,v=0;v<a;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&&i&&C(-c/a,0,a);var m,_,p=t[0],g=t[a-1];function S(){m=p.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function b(w,A,L){if(w<0){var E=Math.min(A,-w);if(E>0){C(E*L,0,a);var M=E+w;M<0&&x(-M*L,1)}else x(-w*L,1)}}function C(w,A,L){0!==w&&(f=!0);for(var E=A;E<L;E++){var M=t[E];M.rect[o]+=w,M.label[o]+=w}}function x(w,A){for(var L=[],E=0,M=1;M<a;M++){var k=t[M-1].rect,B=Math.max(t[M].rect[o]-k[o]-k[s],0);L.push(B),E+=B}if(E){var F=Math.min(Math.abs(w)/E,A);if(w>0)for(M=0;M<a-1;M++)C(L[M]*F,0,M+1);else for(M=a-1;M>0;M--)C(-L[M-1]*F,M,a)}}function T(w){var A=w<0?-1:1;w=Math.abs(w);for(var L=Math.ceil(w/(a-1)),E=0;E<a-1;E++)if(A>0?C(L,0,E+1):C(-L,a-E-1,a),(w-=L)<=0)return}return S(),m<0&&x(-m,.8),_<0&&x(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),f}function N_(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 i=mr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<e.length;u++)if(Eh(i,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Eh(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)||B_(t).intersect(B_(e),r,n))}function CR(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function bR(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:CR(n&&n.shape.points)}}var F_=["align","verticalAlign","width","height","fontSize"],ft=new Wo,kh=Ce(),xR=Ce();function Su(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];null!=e[i]&&(t[i]=e[i])}}var Cu=["x","y","rotation"],TR=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,i,a){var o=i.style,u=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),f=i.getBoundingRect().plain();ne.applyTransform(f,f,l),l?ft.setLocalTransform(l):(ft.x=ft.y=ft.rotation=ft.originX=ft.originY=0,ft.scaleX=ft.scaleY=1),ft.rotation=Dr(ft.rotation);var v,c=i.__hostTarget;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();ne.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ft.x,y:ft.y,scaleX:ft.scaleX,scaleY:ft.scaleY,rotation:ft.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(ee(i)||ge(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=de(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function i(_,S){return function(){A_(_,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;f=ee(o.layoutOptionOrCb)?o.layoutOptionOrCb(bR(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=Se(f.x,r),s.setStyle("x",0),v=!0):(s.x=l.x,s.setStyle("x",l.style.x)),null!=f.y?(s.y=Se(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)}kh(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*c:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var y=0;y<F_.length;y++){var p=F_[y];s.setStyle(p,null!=f[p]?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var g=o.seriesModel;null!=o.dataIndex&&(g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",i(u,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),i=[];D(this._labelList,function(u){u.defaultAttr.ignore||i.push(Rh({},u))});var a=Pe(i,function(u){return"shiftX"===u.layoutOption.moveOverlap}),o=Pe(i,function(u){return"shiftY"===u.layoutOption.moveOverlap});Ih(a,0,0,r),Ih(o,1,0,n);var s=Pe(i,function(u){return u.layoutOption.hideOverlap});(function SR(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,i=r.labelLine;r.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}})(s),N_(s)},t.prototype.processLabelsOverall=function(){var e=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=kh(u).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),i=de(e),a=i.dataIndex;if(n&&null!=a){var o=r.getData(i.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var c=s.getModel("labelLine");P_(e,R_(s),u),A_(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Ai(e))){var o=(a=kh(n)).oldLayout,s=de(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&&(fe(v,"select")>=0&&n.attr(a.oldLayoutSelect),fe(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),jt(n,l,r,u)}else if(n.attr(l),!fs(n).valueAnimation){var c=Q(n.style.opacity,1);n.style.opacity=0,rn(n,{style:{opacity:c}},r,u)}if(a.oldLayout=l,n.states.select){var h=a.oldLayoutSelect={};Su(h,l,Cu),Su(h,n.states.select,Cu)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Su(d,l,Cu),Su(d,n.states.emphasis,Cu)}!function DT(t,e,r,n,i){var a=fs(t);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=Q(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?rn:jt)(t,{percent:1},n,e,null,function l(f){var c=function Zx(t,e,r,n,i){var a=null==e||"auto"===e;if(null==n)return n;if(_e(n))return or(o=jd(r||0,n,i),a?Math.max(sr(r||0),sr(n)):e);if(j(n))return i<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]=(i<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,d=l[c],o=jd(h,d,i);s[c]=or(o,a?Math.max(sr(h),sr(d)):e)}}return s}(r,a.precision,s,u,f);a.interpolatedValue=1===f?null:c;var v=Mf({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);ag(t,v)})}}(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=xR(i),y={points:i.shape.points};(o=a.oldLayout)?(i.attr({shape:o}),jt(i,{shape:y},r)):(i.setShape(y),i.style.strokePercent=0,rn(i,{style:{strokePercent:1}},r)),a.oldLayout=y}},t}();const wR=TR;var Oh=Ce();function z_(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=Oh(r).labelManager;i||(i=Oh(r).labelManager=new wR),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=Oh(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}sn(z_);var H_=2*Math.PI,bu=Math.PI/180;function DR(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=function fw(t,e){var r=function lw(t,e){var i,a,r=Kf(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams();if(r.type===Da.point)a=r.refPoint,i=Rr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=G(o)?o:[o,o];i=Rr(n,r.refContainer),a=2===r.boxCoordFrom?r.refPoint:[Se(s[0],i.width)+i.x,Se(s[1],i.height)+i.y]}return{viewRect:i,center:a}}(t,e),n=r.viewRect,i=r.center,a=t.get("radius");G(a)||(a=[0,a]);var o=Se(n.width,e.getWidth()),s=Se(n.height,e.getHeight()),u=Math.min(o,s),l=Se(a[0],u/2),f=Se(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}(n,r),s=o.cx,u=o.cy,l=o.r,f=o.r0,c=o.viewRect,v=-n.get("startAngle")*bu,h=n.get("endAngle"),d=n.get("padAngle")*bu;h="auto"===h?v-H_:-h*bu;var p=n.get("minAngle")*bu+d,g=0;i.each(a,function(X){!isNaN(X)&&g++});var m=i.getSum(a),_=Math.PI/(m||g)*2,S=n.get("clockwise"),b=n.get("roseType"),C=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var T=S?1:-1,w=[v,h],A=T*d/2;mp(w,!S),v=w[0],h=w[1];var L=G_(n);L.startAngle=v,L.endAngle=h,L.clockwise=S,L.cx=s,L.cy=u,L.r=l,L.r0=f;var E=Math.abs(h-v),M=E,k=0,B=v;if(i.setLayout({viewRect:c,r:l}),i.each(a,function(X,U){var V;if(isNaN(X))i.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:u,r0:f,r:b?NaN:l});else{(V="area"!==b?0===m&&C?_:X*_:E/g)<p?(V=p,M-=p):k+=X;var q=B+T*V,W=0,H=0;d>V?H=W=B+T*V/2:(W=B+A,H=q-A),i.setItemLayout(U,{angle:V,startAngle:W,endAngle:H,clockwise:S,cx:s,cy:u,r0:f,r:b?jo(X,x,[f,l]):l}),B=q}}),M<H_&&g)if(M<=.001){var F=E/g;i.each(a,function(X,U){if(!isNaN(X)){var V=i.getItemLayout(U);V.angle=F;var q=0,W=0;F<d?W=q=v+T*(U+.5)*F:(q=v+T*U*F+A,W=v+T*(U+1)*F-A),V.startAngle=q,V.endAngle=W}})}else _=M/k,B=v,i.each(a,function(X,U){if(!isNaN(X)){var V=i.getItemLayout(U),q=V.angle===p?p:X*_,W=0,H=0;q<d?H=W=B+T*q/2:(W=B+A,H=B+T*q-A),V.startAngle=W,V.endAngle=H,B+=T*q}})})}var G_=Ce(),AR=Math.PI/180;function V_(t,e,r,n,i,a,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);Ih(t,1,u,u+o)&&function c(y){for(var p={list:[],maxY:0},g={list:[],maxY:0},m=0;m<y.length;m++)if("none"===y[m].labelAlignTo){var _=y[m],S=_.label.y>r?g:p,b=Math.abs(_.label.y-r);if(b>=S.maxY){var C=_.label.x-e-_.len2*i,x=n+_.len,T=Math.abs(C)<x?Math.sqrt(b*b/(1-C*C/x/x)):x;S.rB=T,S.maxY=b}S.list.push(_)}f(p),f(g)}(t)}function f(y){for(var p=y.rB,g=p*p,m=0;m<y.list.length;m++){var _=y.list[m],S=Math.abs(_.label.y-r),b=n+_.len,x=Math.sqrt(Math.abs(b*b*(1-S*S/g))),T=e+(x+_.len2)*i;W_(_,_.targetTextWidth-(T-_.label.x)*i,!0),_.label.x=T}}}function W_(t,e,r){if(null==t.labelStyleWidth){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.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)}q_(a,n)}}}function q_(t,e){U_.rect=t,O_(U_,e,PR)}var PR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},U_={};function Bh(t){return"center"===t.position}function xu(t,e,r){var n=t.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;G(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(a){return Kr(a,i)})}}var IR=function(t){function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Ne;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return(0,Z.C6)(e,t),e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),c=N(xu(u.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle))o.setShape(c);else{if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(rn(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,rn(o,{shape:{r:f.r}},s,n)):null!=i?(o.setShape({startAngle:i,endAngle:i}),rn(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,jt(o,{shape:{endAngle:f.endAngle}},s,n))}else(function CT(t){tg(t).oldStyle=t.style})(o),jt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),function mT(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Qp.length;i++){var a=Qp[i],o=e.getModel([a,r]);t.ensureState(a).style=n?n(o):o[yT[r]]()}}(o,u);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),y=Math.cos(h)*d,p=Math.sin(h)*d,g=u.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=N({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},xu(l.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:y,y:p,shape:xu(u.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:xu(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&N(m.ensureState("select"),{x:y,y:p}),N(_.ensureState("select"),{x:y,y:p}),function pT(t,e,r,n){n?function dT(t){Jp(t,!1)}(t):us(t,e,r)}(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),u=n.getItemVisual(i,"style"),l=u&&u.fill,f=u&&u.opacity;og(a,function bT(t,e){for(var r={normal:t.getModel(e=e||"label")},n=0;n<vr.length;n++){var i=vr[n];r[i]=t.getModel([i,e])}return r}(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if("outside"!==v&&"outer"!==v)a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Na,this.setTextGuideLine(h)),P_(this,R_(o),{stroke:l,opacity:Vr(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ba),ER=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return(0,Z.C6)(e,t),e.prototype.render=function(r,n,i,a){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=G_(r),h=new Ba({shape:le(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(d){var y=new IR(o,d,l);o.setItemGraphicEl(d,y),u.add(y)}).update(function(d,y){var p=s.getItemGraphicEl(y);p.updateData(o,d,l),p.off("click"),u.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){ig(s.getItemGraphicEl(d),r,d)}).execute(),function RR(t){var n,i,e=t.getData(),r=[],a=!1,o=(t.get("minShowLabelAngle")||0)*AR,s=e.getLayout("viewRect"),u=e.getLayout("r"),l=s.width,f=s.x,c=s.y,v=s.height;function h(C){C.ignore=!0}e.each(function(C){var x=e.getItemGraphicEl(C),T=x.shape,w=x.getTextContent(),A=x.getTextGuideLine(),L=e.getItemModel(C),E=L.getModel("label"),M=E.get("position")||L.get(["emphasis","label","position"]),k=E.get("distanceToLabelLine"),B=E.get("alignTo"),F=Se(E.get("edgeDistance"),l),X=E.get("bleedMargin");null==X&&(X=Math.min(l,v)>200?10:2);var U=L.getModel("labelLine"),V=U.get("length");V=Se(V,l);var q=U.get("length2");if(q=Se(q,l),Math.abs(T.endAngle-T.startAngle)<o)return D(w.states,h),w.ignore=!0,void(A&&(D(A.states,h),A.ignore=!0));if(function d(C){if(!C.ignore)return!0;for(var x in C.states)if(!1===C.states[x].ignore)return!0;return!1}(w)){var Le,ct,wt,ht,W=(T.startAngle+T.endAngle)/2,H=Math.cos(W),ie=Math.sin(W);n=T.cx,i=T.cy;var tt="inside"===M||"inner"===M;if("center"===M)Le=T.cx,ct=T.cy,ht="center";else{var Ze=(tt?(T.r+T.r0)/2*H:T.r*H)+n,Be=(tt?(T.r+T.r0)/2*ie:T.r*ie)+i;if(Le=Ze+3*H,ct=Be+3*ie,!tt){var re=Ze+H*(V+u-T.r),he=Be+ie*(V+u-T.r),Sr=re+(H<0?-1:1)*q;Le="edge"===B?H<0?f+F:f+l-F:Sr+(H<0?-k:k),ct=he,wt=[[Ze,Be],[re,he],[Sr,he]]}ht=tt?"center":"edge"===B?H>0?"right":"left":H>0?"left":"right"}var vn=Math.PI,Fr=0,so=E.get("rotate");if(_e(so))Fr=so*(vn/180);else if("center"===M)Fr=0;else if("radial"===so||!0===so)Fr=H<0?-W+vn:-W;else if("tangential"===so&&"outside"!==M&&"outer"!==M){var Xi=Math.atan2(H,ie);Xi<0&&(Xi=2*vn+Xi),ie>0&&(Xi=vn+Xi),Fr=Xi-vn}if(a=!!Fr,w.x=Le,w.y=ct,w.rotation=Fr,w.setStyle({verticalAlign:"middle"}),tt){w.setStyle({align:ht});var fv=w.states.select;fv&&(fv.x+=w.x,fv.y+=w.y)}else{var lv=new ne(0,0,0,0);q_(lv,w),r.push({label:w,labelLine:A,position:M,len:V,len2:q,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new te(H,ie),linePoints:wt,textAlign:ht,labelDistance:k,labelAlignTo:B,edgeDistance:F,bleedMargin:X,rect:lv,unconstrainedWidth:lv.width,labelStyleWidth:w.style.width})}x.setTextConfig({inside:tt})}}),!a&&t.get("avoidLabelOverlap")&&function LR(t,e,r,n,i,a,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;Bh(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(!Bh(d=t[v])&&d.linePoints){if(null!=d.labelStyleWidth)continue;h=d.label;var p,y=d.linePoints;d.targetTextWidth=p="edge"===d.labelAlignTo?h.x<e?y[2][0]-d.labelDistance-o-d.edgeDistance:o+i-d.edgeDistance-y[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?h.x<e?f-o-d.bleedMargin:o+i-c-d.bleedMargin:h.x<e?h.x-o-d.bleedMargin:o+i-h.x-d.bleedMargin,W_(d,p,!1)}for(V_(l,e,r,n,1,0,a,0,s,c),V_(u,e,r,n,-1,0,a,0,s,f),v=0;v<t.length;v++){var d;if(!Bh(d=t[v])&&d.linePoints){var m=(h=d.label).style.padding,b=d.rect.width+(h.style.backgroundColor?0:m?m[1]+m[3]:0),C=(y=d.linePoints)[1][0]-y[2][0];"edge"===d.labelAlignTo?y[2][0]=h.x<e?o+d.edgeDistance+b+d.labelDistance:o+i-d.edgeDistance-b-d.labelDistance:(y[2][0]=h.x<e?h.x+d.labelDistance:h.x-d.labelDistance,y[1][0]=y[2][0]+C),y[1][1]=y[2][1]=h.y}}}(r,n,i,u,l,v,f,c);for(var y=0;y<r.length;y++){var p=r[y],g=p.label,m=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(D(g.states,h),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=p.linePoints;_||!b?(D(m.states,h),m.ignore=!0):(L_(b,p.minTurnAngle),pR(b,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new te(b[0][0],b[0][1])})}}}(r),"expansion"!==r.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var a=n.getData().getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},e.type="pie",e}(kr);const kR=ER;var BR=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 NR=BR;var FR=Ce(),Y_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new NR(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function OR(t,e,r){e=G(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=yh(n,e).dimensions,a=new gh(i,t);return a.initData(n,r),a}(this,{coordDimensions:["value"],encodeDefaulter:Re(mw,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=FR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=Vd(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Vl(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.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}(an);!function aw(t){Mg.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}({fullType:Y_.type,getCoord2:function(t){return t.getShallow("center")}});const zR=Y_;var VR=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,Z.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ce.size.m,backgroundColor:ce.color.transparent,borderColor:ce.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ce.color.primary},subtextStyle:{fontSize:12,color:ce.color.quaternary}},e}(De),WR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.render=function(r,n,i){if(this.group.removeAll(),r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=Q(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ne({style:Lr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ne({style:Lr(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,h.silent=!y&&!p,d&&f.on("click",function(){Dg(d,"_"+r.get("target"))}),y&&h.on("click",function(){Dg(y,"_"+r.get("subtarget"))}),de(f).eventData=de(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var S=Rr(m,Kf(r,i).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"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:u,verticalAlign:l};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var C=S.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new Xe({shape:{x:g.x-C[3],y:g.y-C[0],width:g.width+C[1]+C[3],height:g.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(kt);function Nh(t,e){return"all"===t||G(t)&&fe(t,e)>=0||t===e}function Fh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[eo(t)]}function zh(t){return!!t.get(["handle","show"])}function eo(t){return t.type+"||"+t.id}var X_={},QR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.render=function(r,n,i,a){this.axisPointerClass&&function KR(t){var e=Fh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");null!=o&&(o=n.parse(o));var s=zh(r);null==a&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=function $R(t){var e=Fh(t);return e&&e.axisPointerModel}(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){X_[r]=n},e.getAxisPointerClass=function(r){return r&&X_[r]},e.type="axis",e}(kt);const JR=QR;var oi=Ce(),j_=le,Hh=ve,eI=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,i||this._lastValue!==a||this._lastStatus!==o){this._lastValue=a,this._lastStatus=o;var s=this._group,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,a,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=Re(Z_,r,c);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,r)}else s=this._group=new bt,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);Q_(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a="category"===i.type,o=r.get("snap");if(!o&&!a)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=Fh(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return!0===n},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=oi(e).pointerEl=new fi[a.type](j_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=oi(e).labelEl=new Ne(j_(r.label));e.add(a),$_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=oi(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=oi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),$_(a,i))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);this._handle||(s=!0,i=this._handle=zs(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){kv(l.event)},onmousedown:Hh(this._onHandleDragMove,this,0,0),drift:Hh(this._onHandleDragMove,this),ondragend:Hh(this._onHandleDragEnd,this)}),n.add(i)),Q_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");G(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Am(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Z_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Gh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Gh(i)),oi(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,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Fc(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 Z_(t,e,r,n){K_(oi(r).lastProp,n)||(oi(r).lastProp=n,e?jt(r,n,t):(r.stopAnimation(),r.attr(n)))}function K_(t,e){if(K(t)&&K(e)){var r=!0;return D(e,function(n,i){r=r&&K_(t[i],n)}),!!r}return t===e}function $_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Q_(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){"group"!==a.type&&(null!=n&&(a.z=n),null!=i&&(a.zlevel=i),a.silent=r)})}const tI=eI;var cn=Math.PI,lI=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fI=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],to=Ce(),rS=Ce(),cI=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t}(),ro=[1,0,0,1,0,0],Tu=new ne(0,0,0,0),vI=function(t,e,r,n,i,a){if(du(t.nameLocation)){var o=a.stOccupiedRect;o&&nS(function mR(t,e,r){return t.transform=Oc(t.transform,r),t.localRect=za(t.localRect,e),t.rect=za(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=kc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},o,a.transGroup.transform),n,i)}else!function dI(t,e,r,n){for(var i=te.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||nS(s,r,n)}}(a.labelInfoList,a.dirVec,n,i)};function nS(t,e,r){var n=new te;Eh(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&function _R(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}(e,n)}var si=function(){function t(e,r,n,i){this.group=new bt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new cI(vI),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():{},i=Q(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(null==a||"auto"===a)&&(a=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:i,nameLocation:Vr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Yh(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new bt({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 te(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}),D(pI,function(i){e[i]&&gI[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var a,o,i=zl(r-e);return ca(i)?(o=n>0?"top":"bottom",a="center"):ca(i-cn)?(o=n>0?"bottom":"top",a="center"):(o="middle",a=i>0&&i<cn?n>0?"right":"left":n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),pI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],gI={axisLine:function(t,e,r,n,i,a,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=a.transform,c=[l[0],0],v=[l[1],0],h=c[0]>v[0];f&&(mt(c,c,f),mt(v,v,f));var d=N({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),y={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())null.buildAxisBreakLine(n,i,a,y);else{var p=new zi(N({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},y));Lc(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(null!=g){var m=n.get(["axisLine","symbolSize"]);j(g)&&(g=[g,g]),(j(m)||_e(m))&&(m=[m,m]);var _=function wA(t,e){if(null!=t)return G(t)||(t=[t,t]),[Se(t[0],e[0])||0,Se(Q(t[1],t[0]),e[1])||0]}(n.get(["axisLine","symbolOffset"])||0,m),S=m[0],b=m[1];D([{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(C,x){if("none"!==g[x]&&null!=g[x]){var T=qs(g[x],-S/2,-b/2,S,b,d.stroke,!0),w=C.r+C.offset,A=h?v:c;T.attr({rotation:C.rotate,x:A[0]+w*Math.cos(t.rotation),y:A[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){oS(e,i,s)&&iS(t,e,r,n,i,a,o,1)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){oS(e,i,s)&&iS(t,e,r,n,i,a,o,2);var f=function SI(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=t.tickDirection*a.get("length"),f=aS(i.getTicksCoords(),r.transform,u,we(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}(t,i,a,n);(function _I(t,e,r){t.showMinorTicks||D(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=rS(a),s=to(n.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.tickValue)return void no(a)}})})(t,e.labelLayoutList,f),function CI(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(t.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=we(u.getLineStyle(),we(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=aS(s[c],r.transform,l,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var u=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(Yh(f)){var c=t.nameLocation,v=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,y=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new te(0,0),m=new te(0,0);"start"===c?(g.x=y[0]-p*d,m.x=-p):"end"===c?(g.x=y[1]+p*d,m.x=p):(g.x=(y[0]+y[1])/2,g.y=t.labelOffset+v*d,m.y=v);var _=[1,0,0,1,0,0];m.transform(To(_,_,t.rotation));var b,C,S=n.get("nameRotate");null!=S&&(S=S*cn/180),du(c)?b=si.innerTextLayout(t.rotation,S??t.rotation,v):(b=function yI(t,e,r,n){var a,o,i=zl(r-t),s=n[0]>n[1],u="start"===e&&!s||"start"!==e&&s;return ca(i-cn/2)?(o=u?"bottom":"top",a="center"):ca(i-1.5*cn)?(o=u?"top":"bottom",a="center"):(o="middle",a=i<1.5*cn&&i>cn/2?u?"left":"right":u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}(t.rotation,c,S||0,y),null!=(C=t.raw.axisNameAvailableWidth)&&(C=Math.abs(C/Math.sin(b.rotation)),!isFinite(C)&&(C=null)));var x=h.getFont(),T=n.get("nameTruncate",!0)||{},w=T.ellipsis,A=Ki(t.raw.nameTruncateMaxWidth,T.maxWidth,C),L=s.nameMarginLevel||0,E=new Ne({x:g.x,y:g.y,rotation:b.rotation,silent:si.isLabelSilent(n),style:Lr(h,{text:f,font:x,overflow:"truncate",width:A,ellipsis:w,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Fa({el:E,componentModel:n,itemName:f}),E.__fullText=f,E.anid="name",n.get("triggerEvent")){var M=si.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(E).eventData=M}a.add(E),E.updateTransform(),e.nameEl=E;var k=u.nameLayout=mr({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:du(c)?lI[L]:fI[L]});if(u.nameLocation=c,i.add(E),E.decomposeTransform(),t.shouldNameMoveOverlap&&k){var B=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,k,m,B)}}}};function iS(t,e,r,n,i,a,o,s){sS(e)||function bI(t,e,r,n,i,a){var o=i.axis,s=Ki(t.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new bt;r.add(u);var l=pu(n);if(s&&!o.scale.isBlank()){var f=i.getModel("axisLabel"),c=o.getViewLabels(l),v=(Ki(t.raw.labelRotate,f.get("rotate"))||0)*cn/180,h=si.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),y=[],p=i.get("triggerEvent"),g=1/0,m=-1/0;D(c,function(S,b){var C,x="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,w=S.rawLabel,A=f;if(d&&d[x]){var L=d[x];K(L)&&L.textStyle&&(A=new Fe(L.textStyle,f,i.ecModel))}var E=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=A.getShallow("align",!0)||h.textAlign,k=Q(A.getShallow("alignMinLabel",!0),M),B=Q(A.getShallow("alignMaxLabel",!0),M),F=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,X=Q(A.getShallow("verticalAlignMinLabel",!0),F),U=Q(A.getShallow("verticalAlignMaxLabel",!0),F),V=10+((null===(C=S.time)||void 0===C?void 0:C.level)||0);g=Math.min(g,V),m=Math.max(m,V);var q=new Ne({x:0,y:0,rotation:0,silent:si.isLabelSilent(i),z2:V,style:Lr(A,{text:T,align:0===b?k:b===c.length-1?B:M,verticalAlign:0===b?X:b===c.length-1?U:F,fill:ee(E)?E("category"===o.type?w:"value"===o.type?x+"":x,b):E})});q.anid="label_"+x;var W=to(q);if(W.break=S.break,W.tickValue=x,W.layoutRotation=h.rotation,Fa({el:q,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:w,tickIndex:b}}),p){var H=si.makeAxisEventDataBase(i);H.targetType="axisLabel",H.value=w,H.tickIndex=b,S.break&&(H.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),"category"===o.type&&(H.dataIndex=x),de(q).eventData=H,S.break&&function wI(t,e,r,n){r.on("click",function(i){var a={type:"expandAxisBreak",breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}(i,a,q,S.break)}y.push(q),u.add(q)}),Uh(e,$(y,function(S){return{label:S,priority:to(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}}),u,l)}else Uh(e,[],u,l)}(t,e,i,s,n,o);var u=e.labelLayoutList;(function xI(t,e,r,n){var i=e.get(["axisLabel","margin"]);D(r,function(a,o){var s=mr(a);if(s){var u=s.label,l=to(u);s.suggestIgnore=u.ignore,u.ignore=!1,Pl(Br,TI),Br.x=e.axis.dataToCoord(l.tickValue),Br.y=t.labelOffset+t.labelDirection*i,Br.rotation=l.layoutRotation,n.add(Br),Br.updateTransform(),n.remove(Br),Br.decomposeTransform(),Pl(u,Br),u.markRedraw(),_u(s,!0),mr(s)}})})(t,n,u,a),function DI(t,e,r){var n=null;if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&to(o.label).break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===a||"auto"===a)&&D(i,function(o){null.adjustBreakLabelPair(t.axis.inverse,e,[mr(r[o[0]]),mr(r[o[1]])])})}}(n,t.rotation,u);var l=t.optionHideOverlap;(function mI(t,e,r){if(!l_(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function n(s,u,l){var f=mr(e[u]),c=mr(e[l]);if(f&&c){if(!1===s||f.suggestIgnore)return void no(f.label);if(c.suggestIgnore)return void no(c.label);if(!r){var h=[0,0,0,0];f=Rh({marginForce:h},f),c=Rh({marginForce:h},c)}Eh(f,c,null,{touchThreshold:.1})&&no(s?c.label:f.label)}}})(n,u,l),l&&N_(Pe(u,function(f){return f&&!f.label.ignore})),function hI(t,e,r,n){var s,i=r.axis,a=e.ensureRecord(r),o=[],u=Yh(t.axisName)&&du(t.nameLocation);D(n,function(d){var y=mr(d);if(y&&!y.label.ignore){o.push(y);var p=a.transGroup;u&&(p.transform?_n(ro,p.transform):Qi(ro),y.transform&&mn(ro,ro,y.transform),ne.copy(Tu,y.localRect),Tu.applyTransform(ro),s?s.union(Tu):ne.copy(s=new ne(0,0,0,0),Tu))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,y){return Math.abs(d.label[l]-f)-Math.abs(y.label[l]-f)}),u&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}(t,r,n,u)}function no(t){t&&(t.ignore=!0)}function aS(t,e,r,n,i){for(var a=[],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&&(mt(o,o,e),mt(s,s,e));var f=new zi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Lc(f.shape,f.style.lineWidth),f.anid=i+"_"+t[u].tickValue,a.push(f);var c=rS(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return a}function oS(t,e,r){if(sS(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Uh(t,null,null,null))}return!0}function sS(t){return!!t.labelLayoutList}function Uh(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}var Br=new Xe,TI=new Xe;function Yh(t){return!!t}const MI=si;function uS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:vu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),c=l&&l.getDataParams(u.dataIndexInside);c&&s.seriesData.push(c)}),j(o)?a=o.replace("{value}",a):ee(o)&&(a=o(s))}return a}function lS(t,e,r){var n=[1,0,0,1,0,0];return To(n,n,r.rotation),xo(n,n,r.position),Pc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EI(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}}function wu(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"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(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=["y"===u?v[f[s]]:l[0],"x"===u?v[f[s]]:l[3]],i.rotation=Math.PI/2*("x"===u?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ki(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-y:y,i.z2=1,i}var FI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Z.C6)(e,t),e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=fS(u,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&"none"!==l){var v=function AI(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}(a),h=zI[l](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}!function RI(t,e,r,n,i,a){var o=MI.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),function LI(t,e,r,n,i){var o=uS(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=xa(s.get("padding")||0),l=s.getFont(),f=Rd(o,l),c=i.position,v=f.width+u[1]+u[3],h=f.height+u[0]+u[2],d=i.align;"right"===d&&(c[0]-=v),"center"===d&&(c[0]-=v/2);var y=i.verticalAlign;"bottom"===y&&(c[1]-=h),"middle"===y&&(c[1]-=h/2),function PI(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(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:Lr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}(e,n,i,a,{position:lS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(n,r,wu(u.getRect(),i),i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=wu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=lS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=fS(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(u[1],c[f]),c[f]=Math.max(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}(tI);function fS(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var zI={line:function(t,e,r){var n=function II(t,e,r){return{x1:t[r=r||0],y1:t[1-r],x2:e[r],y2:e[1-r]}}([e,r[0]],[e,r[1]],cS(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth());return{type:"Rect",shape:EI([e-n/2,r[0]],[n,r[1]-r[0]],cS(t))}}};function cS(t){return"x"===t.dim?0:1}const HI=FI;var GI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.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:ce.color.border,width:1,type:"dashed"},shadowStyle:{color:ce.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ce.color.neutral00,padding:[5,7,5,7],backgroundColor:ce.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:ce.color.accent40,throttle:40}},e}(De);const VI=GI;var Nr=Ce(),WI=D;function hS(t,e,r){if(!ue.node){var n=e.getZr();Nr(n).records||(Nr(n).records={}),function qI(t,e){function r(n,i){t.on(n,function(a){var o=function XI(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}(e);WI(Nr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),function UI(t,e){var i,r=t.showTip.length,n=t.hideTip.length;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}(o.pendings,e)})}Nr(t).initialized||(Nr(t).initialized=!0,r("click",Re(vS,"click")),r("mousemove",Re(vS,"mousemove")),r("globalout",YI))}(n,e),(Nr(n).records[t]||(Nr(n).records[t]={})).handler=r}}function YI(t,e,r){t.handler("leave",null,r)}function vS(t,e,r,n){e.handler(t,r,n)}function Xh(t,e){if(!ue.node){var r=e.getZr();(Nr(r).records||{})[t]&&(Nr(r).records[t]=null)}}var jI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";hS("axisPointer",i,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){Xh("axisPointer",n)},e.prototype.dispose=function(r,n){Xh("axisPointer",n)},e.type="axisPointer",e}(kt);const ZI=jI;function dS(t,e){var i,r=[],n=t.seriesIndex;if(null==n||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=pa(a,t);if(null==o||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.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=a.mapDimension(l.dim),y=[];y[h]=a.get(d,o),y[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(y)||[]}else r=u.dataToPoint(a.getValues($(u.dimensions,function(g){return a.mapDimension(g)}),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 pS=Ce();function KI(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||ve(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Du(i)&&(i=dS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=Du(i),l=a.axesInfo,f=s.axesInfo,c="leave"===n||Du(i),v={},h={},d={list:[],map:{}},y={showPointer:Re(QI,h),showTooltip:Re(JI,d)};D(s.coordSysMap,function(g,m){var _=u||g.containPoint(i);D(s.coordSysAxesInfo[m],function(S,b){var C=S.axis,x=function nE(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 T=x&&x.value;null==T&&!u&&(T=C.pointToData(i)),null!=T&&gS(S,T,y,!1,v)}})});var p={};return D(f,function(g,m){var _=g.linkGroup;_&&!h[m]&&D(_.axesInfo,function(S,b){var C=h[b];if(S!==g&&C){var x=C.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,yS(S),yS(g)))),p[g.key]=x}})}),D(p,function(g,m){gS(f[m],g,y,!0,v)}),function eE(t,e,r){var n=r.axesInfo=[];D(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}(h,f,v),function tE(t,e,r,n){if(!Du(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(d,i,t,o),function rE(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=pS(n)[i]||{},o=pS(n)[i]={};D(t,function(l,f){var c=l.axisPointerModel.option;"show"===c.status&&l.triggerEmphasis&&D(c.seriesDataIndices,function(v){o[v.seriesIndex+" | "+v.dataIndex]=v})});var s=[],u=[];D(a,function(l,f){!o[f]&&u.push(l)}),D(o,function(l,f){!a[f]&&s.push(l)}),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 gS(t,e,r,n,i){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void r.showPointer(t,e);var o=function $I(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return D(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(null!=c&&isFinite(c)){var d=t-c,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,i=c,a.length=0),D(v,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&null==i.seriesIndex&&N(i,s[0]),!n&&t.snap&&a.containData(u)&&null!=u&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function QI(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function JI(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var u=e.coordSys.model,l=eo(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function yS(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 Du(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function iE(t){JR.registerAxisPointerClass("CartesianAxisPointer",HI),t.registerComponentModel(VI),t.registerComponentView(ZI),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!G(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=function UR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function YR(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var u=eo(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var c=s.model.getModel("tooltip",n);if(D(s.getAxes(),Re(y,!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)&&D(d.baseAxes,Re(y,!h||"cross",v)),h&&D(d.otherAxes,Re(y,"cross",!1))}}function y(p,g,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(S&&("auto"!==S||p||zh(_))){null==g&&(g=_.get("triggerTooltip")),_=p?function XR(t,e,r,n,i,a){var o=e.getModel("axisPointer"),u={};D(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){u[v]=le(o.get(v))}),u.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(u.type="line");var l=u.label||(u.label={});if(null==l.show&&(l.show=!1),"cross"===i){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var c=u.lineStyle=o.get("crossStyle");c&&we(l,c.textStyle)}}return t.model.getModel("axisPointer",new Fe(u,r,n))}(m,c,i,e,p,g):_;var b=_.get("snap"),C=_.get("triggerEmphasis"),x=eo(m.model),T=g||b||"category"===m.type,w=t.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:C,involveSeries:T,snap:b,useHandle:zh(_),seriesModels:[],linkGroup:null};l[x]=w,t.seriesInvolved=t.seriesInvolved||T;var A=function ZR(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Nh(a[n+"AxisId"],r.id)||Nh(a[n+"AxisIndex"],r.componentIndex)||Nh(a[n+"AxisName"],r.name))return i}}(a,m);if(null!=A){var L=o[A]||(o[A]={axesInfo:{}});L.axesInfo[x]=w,L.mapper=a[A].mapper,w.linkGroup=L}}}})}(r,t,e),r.seriesInvolved&&function jR(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||"none"===i||!1===i||"item"===i||!1===a||!1===r.get(["axisPointer","show"],!0)||D(t.coordSysAxesInfo[eo(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"},KI)}var aE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ce.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ce.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ce.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ce.color.tertiary,fontSize:14}},e}(De);const oE=aE;function mS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function _S(t){if(ue.domSupported)for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}var SS=_S(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function CS(t,e){if(!t)return e;e=Wf(e,!0);var r=t.indexOf(e);return(t=-1===r?e:"-"+t.slice(0,r)+"-"+e).toLowerCase()}var lE=CS(_S(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),jh=CS(SS,"transform"),fE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ue.transform3dSupported?"will-change:transform;":"");function bS(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ue.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ue.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+jh+":"+o+";":[["top",0],["left",0],[SS,o]]}function xS(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&function XC(t,e,r,n,i){Zu(ju,e,n,i,!0)&&Zu(t,r,ju[0],ju[1])}(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gE=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,ue.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(j(a)?document.querySelector(a):vi(a)?a:ee(a)&&a(e.getDom()));xS(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler;Mt(i.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 uE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}(r,"position"),i=r.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=fE+function pE(t,e,r,n){var i=[],a=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=Iy(t,"html");return i.push("box-shadow:"+l+"px "+f+"px "+s+"px "+u),e&&a>0&&i.push(function vE(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(a="opacity"+(i=" "+t/2+"s "+n)+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ue.transformSupported?""+jh+i:",left"+i+",top"+i)),lE+":"+a}(a,r,n)),o&&i.push("background-color:"+o),D(["width","color","radius"],function(d){var y="border-"+d,p=Wf(y),g=t.get(p);null!=g&&i.push(y+":"+g+("color"===d?"":"px"))}),i.push(function dE(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Q(t.get("lineHeight"),Math.round(3*r/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),D(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}(c)),null!=v&&i.push("padding:"+xa(v).join("px ")+"px"),i.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+bS(a[0],a[1],!0)+"border-color:"+Ta(r)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(null!=e){var s="";if(j(a)&&"item"===n.get("trigger")&&!mS(n)&&(s=function hE(t,e,r){if(!j(r)||"inside"===r)return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Ta(e);var l,a=function cE(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(r),o=Math.max(1.5*Math.round(i),6),s="",u=jh+":";fe(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l="left"===a?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l="top"===a?225:45)+"deg)");var f=l*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+a+":-"+Math.round(100*((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2))/100+"px")+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}(n,i,a)),j(e))o.innerHTML=e+s;else if(e){o.innerHTML="",G(e)||(e=[e]);for(var u=0;u<e.length;u++)vi(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(xS(n,this._zr,this._container,e,r),null!=n[0]&&null!=n[1]){var i=this.el.style;D(bS(n[0],n[1]),function(o){i[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",ue.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(ve(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 jC(t,e){function r(n){var i=n[Co];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Co])}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 yE=gE;var mE=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),wS(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;K(e)&&ut(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ne({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Iy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),D(["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=TS(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;wS(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=hn(a.borderWidth||0),s=TS(a);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(ve(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function hn(t){return Math.max(0,t)}function TS(t){var e=hn(t.shadowBlur||0),r=hn(t.shadowOffsetX||0),n=hn(t.shadowOffsetY||0);return{left:hn(e-r),right:hn(e+r),top:hn(e-n),bottom:hn(e+n)}}function wS(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const _E=mE;var SE=new Xe({shape:{x:-1,y:-1,width:2,height:2}}),CE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.init=function(r,n){if(!ue.node&&n.getDom()){var i=r.getComponent("tooltip"),a=this._renderMode=function jx(t){return"auto"===t?ue.domSupported?"html":"richText":t||"html"}(i.get("renderMode"));this._tooltipContent="richText"===a?new _E(n):new yE(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!ue.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&r.get("transitionDuration")?Am(this,"_updatePosition",50,"fixRate"):Fc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");hS("itemTooltip",this._api,ve(function(i,a,o){"none"!==n&&(n.indexOf(i)>=0?this._tryShow(a,o):"leave"===i&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a&&"click"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(a.from!==this.uid&&!ue.node&&i.getDom()){var o=DS(a,i);this._ticket="";var s=a.dataByCoordSys,u=function wE(t,e,r){var n=Ul(t).queryOptionMap,i=n.keys()[0];if(i&&"series"!==i){var u,o=ga(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(r.getViewOfComponentModel(o).group.traverse(function(l){var f=de(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u))return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&null!=a.x&&null!=a.y){var f=SE;f.x=a.x,f.y=a.y,f.update(),de(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(null!=a.seriesIndex){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=dS(a,n),v=c.point[0],h=c.point[1];null!=v&&null!=h&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else null!=a.x&&null!=a.y&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(DS(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=u){var l=n.getSeriesByIndex(o);if(l&&"axis"===io([l.getData().getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}},e.prototype._tryShow=function(r,n){var i=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(i){var u,l;if("legend"===de(i).ssrType)return;this._lastDataByCoordSys=null,Wa(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(null!=de(f).dataIndex?u=f:null!=de(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._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ve(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=io([n.tooltipOption],a),u=this._renderMode,l=[],f=Ia("section",{blocks:[],noHeader:!0}),c=[],v=new dc;D(r,function(m){D(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(S&&null!=b){var C=uS(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ia("section",{header:C,noHeader:!Gt(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(T){var w=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,L=w.getDataParams(A);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=vu(S.axis,{value:b}),L.axisValueLabel=C,L.marker=v.makeTooltipMarker("item",Ta(L.color),u);var E=yy(w.formatTooltip(A,!0,null)),M=E.frag;if(M){var k=io([w],a).get("valueFormatter");x.blocks.push(k?N({valueFormatter:k},M):M)}E.text&&c.push(E.text),l.push(L)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),y=Py(f,v,u,d,i.get("useUTC"),s.get("textStyle"));y&&c.unshift(y);var g=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,g,l,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=de(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,v=l.getData(c),h=this._renderMode,d=r.positionDefault,y=io([v.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(null==p||"item"===p){var g=l.getDataParams(f,c),m=new dc;g.marker=m.makeTooltipMarker("item",Ta(g.color),h);var _=yy(l.formatTooltip(f,!1,c)),S=y.get("order"),b=y.get("valueFormatter"),C=_.frag,x=C?Py(b?N({valueFormatter:b},C):C,m,h,S,a.get("useUTC"),y.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,g,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a="html"===this._renderMode,o=de(n),u=o.tooltipConfig.option||{},l=u.encodeHTMLContent;j(u)&&(u={content:u,formatter:u},l=!0),l&&a&&u.content&&((u=le(u)).content=it(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=io(c,this._tooltipModel,h?{position:h}:null),y=d.get("content"),p=Math.random()+"",g=new dc;this._showOrMove(d,function(){var m=le(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,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,y=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)).color;if(v)if(j(v)){var p=r.ecModel.get("useUTC"),g=G(i)?i[0]:i;h=v,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(h=ba(g.axisValue,h,p)),h=Yf(h,i,!0)}else if(ee(v)){var _=ve(function(S,b){S===this._ticket&&(c.setContent(b,f,r,y,u),this._updatePosition(r,u,o,s,c,i,l))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,y,u),c.show(r,y),this._updatePosition(r,u,o,s,c,i,l)}},e.prototype._getNearestPoint=function(r,n,i,a,o){return"axis"===i||G(n)?{color:a||o}:G(n)?void 0:{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,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),ee(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),G(n))i=Se(n[0],l),a=Se(n[1],f);else if(K(n)){var y=n;y.width=c[0],y.height=c[1];var p=Rr(y,{width:l,height:f});i=p.x,a=p.y,v=null,h=null}else if(j(n)&&u){var g=function TE(t,e,r,n){var i=r[0],a=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-i/2,u=e.y+f/2-a/2;break;case"top":s=e.x+l/2-i/2,u=e.y-a-o;break;case"bottom":s=e.x+l/2-i/2,u=e.y+f+o;break;case"left":s=e.x-i-o,u=e.y+f/2-a/2;break;case"right":s=e.x+l+o,u=e.y+f/2-a/2}return[s,u]}(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else g=function bE(t,e,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return null!=a&&(t+u+a+2>n?t-=u+a:t+=a),null!=o&&(e+l+o>i?e-=l+o:e+=o),[t,e]}(i,a,o,l,f,v?null:20,h?null:20),i=g[0],a=g[1];v&&(i-=MS(v)?c[0]/2:"right"===v?c[0]:0),h&&(a-=MS(h)?c[1]/2:"bottom"===h?c[1]:0),mS(r)&&(g=function xE(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(i,a,o,l,f),i=g[0],a=g[1]),o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,u){var l=s.dataByAxis||[],c=(r[u]||{}).dataByAxis||[];(o=o&&l.length===c.length)&&D(l,function(v,h){var d=c[h]||{},y=v.seriesDataIndices||[],p=d.seriesDataIndices||[];(o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&y.length===p.length)&&D(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&D(v.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ue.node||!n.getDom()||(Fc(this,"_updatePosition"),this._tooltipContent.dispose(),Xh("itemTooltip",n))},e.type="tooltip",e}(kt);function io(t,e,r){var i,n=e.ecModel;r?(i=new Fe(r,n,n),i=new Fe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Fe&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(i=new Fe(o,i,n)))}return i}function DS(t,e){return t.dispatchAction||ve(e.dispatchAction,e)}function MS(t){return"center"===t||"middle"===t}const DE=CE;var LE=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,Z.C6)(e,t),e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;!0===n&&(n=r.selector=["all","inverse"]),G(n)&&D(n,function(a,o){j(a)&&(a={type:a}),n[o]=xe(a,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}(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&"single"===this.get("selectedMode")){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var f;if(i.push(u.name),u.legendVisualProvider){var v=u.legendVisualProvider.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Wl(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=ae(),s=$(a,function(u){return(j(u)||_e(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new Fe(u,this,this.ecModel))},this);this._data=Pe(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")&&D(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;D(this._data,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this.option.selected;D(this._data,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(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:ce.size.m,align:"auto",backgroundColor:ce.color.transparent,borderColor:ce.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ce.color.disabled,inactiveBorderColor:ce.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:ce.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ce.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ce.color.tertiary,borderWidth:1,borderColor:ce.color.border},emphasis:{selectorLabel:{show:!0,color:ce.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(De);const Zh=LE;var Ui=Re,Kh=D,Mu=bt,RE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return(0,Z.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Mu),this.group.add(this._selectorGroup=new Mu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||"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,i,u,s,l);var f=Kf(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Rr(c,f,v),d=this.layoutInner(r,o,h,a,u,l),y=Rr(we({width:d.width,height:d.height},c),f,v);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function PE(t,e){var r=xa(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new Xe({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,i,a,o,s,u){var l=this.getContentGroup(),f=ae(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Kh(n.getData(),function(d,y){var p=this,g=d.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var m=new Mu;return m.newline=!0,void l.add(m)}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},C=S.getVisual("legendIcon"),x=S.getVisual("style"),T=this._createItem(_,g,y,d,n,r,b,x,C,c,a);T.on("click",Ui(AS,g,null,a,h)).on("mouseover",Ui($h,_.name,null,a,h)).on("mouseout",Ui(Qh,_.name,null,a,h)),i.ssr&&T.eachChild(function(w){var A=de(w);A.seriesIndex=_.seriesIndex,A.dataIndex=y,A.ssrType="legend"}),v&&T.eachChild(function(w){p.packEventData(w,n,_,y,g)}),f.set(g,!0)}else i.eachRawSeries(function(w){var A=this;if(!f.get(g)&&w.legendVisualProvider){var L=w.legendVisualProvider;if(!L.containName(g))return;var E=L.indexOfName(g),M=L.getItemVisual(E,"style"),k=L.getItemVisual(E,"legendIcon"),B=Ct(M.fill);B&&0===B[3]&&(B[3]=.2,M=N(N({},M),{fill:Zr(B,"rgba")}));var F=this._createItem(w,g,y,d,n,r,{},M,k,c,a);F.on("click",Ui(AS,null,g,a,h)).on("mouseover",Ui($h,null,g,a,h)).on("mouseout",Ui(Qh,null,g,a,h)),i.ssr&&F.eachChild(function(X){var U=de(X);U.seriesIndex=w.seriesIndex,U.dataIndex=y,U.ssrType="legend"}),v&&F.eachChild(function(X){A.packEventData(X,n,w,y,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};de(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Kh(r,function(l){var f=l.type,c=new Ne({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c),og(c,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),us(c)})},e.prototype._createItem=function(r,n,i,a,o,s,u,l,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon"),S=function IE(t,e,r,n,i,a,o){function s(p,g){"auto"===p.lineWidth&&(p.lineWidth=g.lineWidth>0?2:0),Kh(p,function(m,_){"inherit"===p[_]&&(p[_]=g[_])})}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?Uc(c,o):n.decal,"inherit"===l.fill&&(l.fill=n[i]),"inherit"===l.stroke&&(l.stroke=n[f]),"inherit"===l.opacity&&(l.opacity=("fill"===i?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),!a){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",a,u,l,h,p,v),b=new Mu,C=a.getModel("textStyle");if(!ee(r.getLegendIcon)||_&&"inherit"!==_){var x="inherit"===_&&r.getData().getVisual("symbol")?"inherit"===g?r.getData().getVisual("symbolRotate"):g:0;b.add(function EE(t){var e=t.icon||"roundRect",r=qs(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=ce.color.neutral00,r.style.lineWidth=2),r}({itemWidth:d,itemHeight:y,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}else b.add(r.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));var T="left"===s?d+5:-5,w=s,A=o.get("formatter"),L=n;j(A)&&A?L=A.replace("{name}",n??""):ee(A)&&(L=A(n));var E=p?C.getTextColor():a.get("inactiveColor");b.add(new Ne({style:Lr(C,{text:L,x:T,y:y/2,fill:E,align:w,verticalAlign:"middle"},{inheritColor:E})}));var M=new Xe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&Fa({el:M,componentModel:o,itemName:n,itemTooltipOption:k.option}),b.add(M),b.eachChild(function(B){B.silent=!0}),M.silent=!c,this.getContentGroup().add(b),us(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();wa(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),c=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){wa("horizontal",l,r.get("selectorItemGap",!0));var v=l.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,p=0===y?"width":"height",g=0===y?"height":"width",m=0===y?"y":"x";"end"===s?h[y]+=f[p]+d:c[y]+=v[p]+d,h[1-y]+=f[g]/2-v[g]/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],_[g]=Math.max(f[g],v[g]),_[m]=Math.min(0,v[m]+h[1-y]),_}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}(kt);function AS(t,e,r,n){Qh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),$h(t,e,r,n)}function LS(t){for(var r,e=t.getZr().storage.getDisplayList(),n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function $h(t,e,r,n){LS(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Qh(t,e,r,n){LS(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const PS=RE;function kE(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 ao(t,e,r){var n="allSelect"===t||"inverseSelect"===t,i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),RS(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(i,function(u,l){s[u?"select":"unSelect"](l)}),RS(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function RS(t,e){var r=e||{};return D(t.getData(),function(n){var i=n.get("name");if("\n"!==i&&""!==i){var a=t.isSelected(i);r[i]=J(r,i)?r[i]&&a:a}}),r}function IS(t){t.registerComponentModel(Zh),t.registerComponentView(PS),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function OE(t){t.registerAction("legendToggleSelect","legendselectchanged",Re(ao,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Re(ao,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Re(ao,"inverseSelect")),t.registerAction("legendSelect","legendselected",Re(ao,"select")),t.registerAction("legendUnSelect","legendunselected",Re(ao,"unSelect"))}(t)}var BE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=$f(r);t.prototype.init.call(this,r,n,i),ES(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),ES(this,this.option,r)},e.type="legend.scroll",e.defaultOption=function NT(t,e){return xe(xe({},t,!0),e,!0)}(Zh.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:ce.color.accent50,pageIconInactiveColor:ce.color.accent10,pageIconSize:15,pageTextStyle:{color:ce.color.tertiary},animationDurationUpdate:800}),e}(Zh);function ES(t,e,r){var i=[1,1];i[t.getOrient().index]=0,Ii(e,r,{type:"box",ignoreSize:!!i})}const NE=BE;var kS=bt,Jh=["width","height"],ev=["x","y"],FE=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,Z.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new kS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kS)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=G(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(y,p){var g=y+"DataIndex",m=zs(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ve(l._pageGo,l,g,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=y,f.add(m)}f.add(new Ne({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,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=Jh[l],c=ev[l],v=Jh[1-l],h=ev[1-l];o&&wa("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),y=u.getBoundingRect(),p=[-y.x,-y.y],g=le(i);o&&(g[f]=i[f]-y[f]-d);var m=this._layoutContentAndController(r,a,g,l,f,v,h,c);if(o){if("end"===s)p[l]+=m[f]+d;else{var _=y[f]+d;p[l]-=_,m[c]-=_}m[f]+=y[f]+d,p[1-l]+=m[h]+m[v]/2-y[v]/2,m[v]=Math.max(m[v],y[v]),m[h]=Math.min(m[h],y[h]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return m},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;wa(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),wa("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),y=this._showController=h[o]>i[o],p=[-h.x,-h.y];n||(p[a]=f[l]);var g=[0,0],m=[-d.x,-d.y],_=Q(r.get("pageButtonGap",!0),r.get("itemGap",!0));y&&("end"===r.get("pageButtonPosition",!0)?m[a]+=i[o]-d[o]:g[a]+=d[o]+_),m[1-a]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(g),v.setPosition(m);var b={x:0,y:0};if(b[o]=y?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[u]=Math.min(0,d[u]+m[1-a]),c.__rectSize=i[o],y){var C={x:0,y:0};C[o]=Math.max(i[o]-d[o]-_,0),C[s]=b[s],c.setClipPath(new Xe({shape:C})),c.__rectSize=C[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return null!=x.pageIndex&&jt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];null!=a&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=null!=n[f+"DataIndex"],h=i.childOfName(f);h&&(h.setStyle("fill",r.get(v?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=null!=s?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",j(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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Jh[o],u=ev[o],l=this._findTargetItemIndex(n),f=i.children(),c=f[l],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var y=S(c);d.contentPosition[o]=-y.s;for(var p=l+1,g=y,m=y,_=null;p<=v;++p)(!(_=S(f[p]))&&m.e>g.s+a||_&&!b(_,g.s))&&(g=m.i>g.i?m:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=_;for(p=l-1,g=y,m=y,_=null;p>=-1;--p)(!(_=S(f[p]))||!b(m,_.s))&&g.i<m.i&&(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(C){if(C){var x=C.getBoundingRect(),T=x[u]+C[u];return{s:T,e:T+x[s],i:C.__legendDataIndex}}}function b(C,x){return C.e>=x&&C.s<=x+a}},e.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(o,s){var u=o.__legendDataIndex;null==a&&null!=u&&(a=s),u===r&&(n=s)}),n??a):0;var n,a},e.type="legend.scroll",e}(PS);const zE=FE;function GE(t){sn(IS),t.registerComponentModel(NE),t.registerComponentView(zE),function HE(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;null!=n&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}(t)}function OS(t,e){var r;return D(e,function(n){null!=t[n]&&"auto"!==t[n]&&(r=!0)}),r}var BS=["transition","enterFrom","leaveTo"],UE=BS.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Au(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),t&&e)for(var n=r?BS:UE,i=0;i<n.length;i++){var a=n[i];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}var XE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return(0,Z.C6)(e,t),e.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=i},e.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var u=Qd(o,s,"normalMerge"),l=this._elOptionsToUpdate=[];D(u,function(f,c){var v=f.newOption;v&&(l.push(v),function WE(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 qE(t,e,r){var n=N({},r),i=t[e],a=r.$action||"merge";"merge"===a?i?(xe(i,n,!0),Ii(i,n,{ignoreSize:!0}),Lg(r,i),Au(r,i),Au(r,i,"shape"),Au(r,i,"style"),Au(r,i,"extra"),r.clipPath=i.clipPath):t[e]=n:"replace"===a?t[e]=n:"remove"===a&&i&&(t[e]=null)}(o,c,v),function YE(t,e){if(t&&(t.hv=e.hv=[OS(e,["left","right"]),OS(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),i.elements=Pe(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(r,n,i){D(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(De);function NS(t,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(t.align=e.textAlign),J(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),J(e,"textWidth")&&(t.width=e.textWidth),J(e,"textHeight")&&(t.height=e.textHeight),J(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(t.padding=e.textPadding),J(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var zS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},HS=ge(zS),Lu=(Ht(ir,function(t,e){return t[e]=1,t},{}),ir.join(", "),["","style","shape","extra"]),Yi=Ce();function rv(t,e,r,n,i){var a=t+"Animation",o=wf(t,n,i)||{},s=Yi(e).userDuring;return o.duration>0&&(o.during=s?ve(r2,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),N(o,r[a]),o}function nv(t,e,r,n){var i=(n=n||{}).dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),u=Yi(t),l=e.style;u.userDuring=e.during;var f={},c={};if(function i2(t,e,r){for(var n=0;n<HS.length;n++){var i=HS[n],a=zS[i],o=e[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(n=0;n<ir.length;n++){var s=ir[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++)iv("shape",h[d],v[d]);else iv("shape",e,c),iv("extra",e,c);if(!a&&s&&(function n2(t,e,r){for(var n=e.transition,i=ui(n)?ir:Ge(n||[]),a=0;a<i.length;a++){var o=i[a];"style"!==o&&"shape"!==o&&"extra"!==o&&(r[o]=t[o])}}(t,e,f),VS("shape",t,e,f),VS("extra",t,e,f),function a2(t,e,r,n){if(r){var a,i=t.style;if(i){var o=r.transition,s=e.transition;if(o&&!ui(o)){var u=Ge(o);!a&&(a=n.style={});for(var l=0;l<u.length;l++)a[f=u[l]]=i[f]}else if(t.getAnimationStyleProps&&(ui(s)||ui(o)||fe(s,"style")>=0)){var v=t.getAnimationStyleProps(),h=v?v.style:null;if(h){!a&&(a=n.style={});var d=ge(r);for(l=0;l<d.length;l++){var f;h[f=d[l]]&&(a[f]=i[f])}}}}}}(t,e,l,f)),c.style=l,function QE(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];"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 e2(t,e){J(e,"silent")&&(t.silent=e.silent),J(e,"ignore")&&(t.ignore=e.ignore),t instanceof Rn&&J(e,"invisible")&&(t.invisible=e.invisible),t instanceof Te&&J(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(a){var p={};D(Lu,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(p[m]=p[m]||{}),N(m?p[m]:p,_.enterFrom))});var g=rv("enter",t,e,r,i);g.duration>0&&t.animateFrom(p,g)}else!function JE(t,e,r,n,i){if(i){var a=rv("update",t,e,n,r);a.duration>0&&t.animateFrom(i,a)}}(t,e,i||0,r,f);GS(t,e),l?t.dirty():t.markRedraw()}function GS(t,e){for(var r=Yi(t).leaveToProps,n=0;n<Lu.length;n++){var i=Lu[n],a=i?e[i]:e;a&&a.leaveTo&&(r||(r=Yi(t).leaveToProps={}),i&&(r[i]=r[i]||{}),N(i?r[i]:r,a.leaveTo))}}function ui(t){return"all"===t}var _r={},t2={setTransform:function(t,e){return _r.el[t]=e,this},getTransform:function(t){return _r.el[t]},setShape:function(t,e){var r=_r.el;return(r.shape||(r.shape={}))[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=_r.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=_r.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=_r.el.style;if(e)return e[t]},setExtra:function(t,e){return(_r.el.extra||(_r.el.extra={}))[t]=e,this},getExtra:function(t){var e=_r.el.extra;if(e)return e[t]}};function r2(){var t=this,e=t.el;if(e){var r=Yi(e).userDuring,n=t.userDuring;if(r!==n)return void(t.el=t.userDuring=null);_r.el=e,n(t2)}}function VS(t,e,r,n){var i=r[t];if(i){var o,a=e[t];if(a){var s=r.transition,u=i.transition;if(u)if(!o&&(o=n[t]={}),ui(u))N(o,a);else for(var l=Ge(u),f=0;f<l.length;f++)o[c=l[f]]=v=a[c];else if(ui(s)||fe(s,t)>=0){!o&&(o=n[t]={});var h=ge(a);for(f=0;f<h.length;f++){var c,v;o2(i[c=h[f]],v=a[c])&&(o[c]=v)}}}}}function iv(t,e,r){var n=e[t];if(n)for(var i=r[t]={},a=ge(n),o=0;o<a.length;o++){var s=a[o];i[s]=sa(n[s])}}function o2(t,e){return Ke(t)?t!==e:null!=t&&isFinite(t)}var WS=Ce(),s2=["percent","easing","shape","style","extra"];function av(t,e,r){if(r.isAnimationEnabled()&&e){if(G(e))return void D(e,function(s){av(t,s,r)});var n=e.keyframes,i=e.duration;if(r&&null==i){var a=wf("enter",r,0);i=a&&a.duration}if(n&&i){var o=WS(t);D(Lu,function(s){var u;s&&!t[s]||(n.sort(function(f,c){return f.percent-c.percent}),D(n,function(f){var c=t.animators,v=s?f[s]:f;if(v){var h=ge(v);if(s||(h=Pe(h,function(p){return fe(s2,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 y=s?o[s]:o;D(h,function(p){y[p]=((s?t[s]:t)||{})[p]}),u.whenWithKeys(i*f.percent,v,h,f.easing)}}}),u&&u.delay(e.delay||0).duration(i).start(e.easing))})}}}var qS={path:null,compoundPath:null,group:bt,image:tn,text:Ne},Nt=Ce(),l2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,Z.C6)(e,t),e.prototype.init=function(){this._elMap=ae()},e.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(u){var l=at(u.id,null),f=null!=l?i.get(l):null,c=at(u.parentId,null),v=null!=c?i.get(c):a,h=u.type,d=u.style;"text"===h&&d&&u.hv&&u.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var y=u.textContent,p=u.textConfig;if(d&&function ZE(t,e,r,n){return t&&(t.legacy||!1!==t.legacy&&!r&&!n&&"tspan"!==e&&("text"===e||J(t,"text")))}(d,h,!!p,!!y)){var g=function KE(t,e,r){var i,a,o,n=t;if("text"===e)o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=J(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),J(n,"textPosition")&&(i.position=n.textPosition),J(n,"textOffset")&&(i.offset=n.textOffset),J(n,"textRotation")&&(i.rotation=n.textRotation),J(n,"textDistance")&&(i.distance=n.textDistance)}return NS(o,t),D(o.rich,function(u){NS(u,u)}),{textConfig:i,textContent:a}}(d,h,!0);!p&&g.textConfig&&(p=u.textConfig=g.textConfig),!y&&g.textContent&&(y=g.textContent)}var m=function f2(t){return t=N({},t),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ag),function(e){delete t[e]}),t}(u),_=u.$action||"merge",S="merge"===_,b="replace"===_;if(S){var x=f;(C=!f)?x=US(l,v,u.type,i):(x&&(Nt(x).isNew=!1),function u2(t){t.stopAnimation("keyframe"),t.attr(WS(t))}(x)),x&&(nv(x,m,r,{isInit:C}),YS(x,u,o,s))}else if(b){Pu(f,u,i,r);var T=US(l,v,u.type,i);T&&(nv(T,m,r,{isInit:!0}),YS(T,u,o,s))}else"remove"===_&&(GS(f,u),Pu(f,u,i,r));var w=i.get(l);if(w&&y)if(S){var A=w.getTextContent();A?A.attr(y):w.setTextContent(new Ne(y))}else b&&w.setTextContent(new Ne(y));if(w){var L=u.clipPath;if(L){var E=L.type,M=void 0,C=!1;if(S){var k=w.getClipPath();M=(C=!k||Nt(k).type!==E)?ov(E):k}else b&&(C=!0,M=ov(E));w.setClipPath(M),nv(M,L,r,{isInit:C}),av(M,L.keyframeAnimation,r)}var B=Nt(w);w.setTextConfig(p),B.option=u,function c2(t,e,r){var n=de(t).eventData;!t.silent&&!t.ignore&&!n&&(n=de(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}(w,r,u),Fa({el:w,componentModel:r,itemName:w.name,itemTooltipOption:u.tooltip}),av(w,u.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),u=n.getHeight(),l=["x","y"],f=0;f<i.length;f++)if((h=null!=(v=at((c=i[f]).id,null))?o.get(v):null)&&h.isGroup){var y=(d=h.parent)===a,p=Nt(h),g=Nt(d);p.width=Se(p.option.width,y?s:g.width)||0,p.height=Se(p.option.height,y?u:g.height)||0}for(f=i.length-1;f>=0;f--){var c,v,h;if(h=null!=(v=at((c=i[f]).id,null))?o.get(v):null){g=Nt(d=h.parent);var d,_={},S=cw(h,c,d===a?{width:s,height:u}:{width:g.width,height:g.height},null,{hv:c.hv,boundingMode:c.bounding},_);if(!Nt(h).isNew&&S){for(var b=c.transition,C={},x=0;x<l.length;x++){var T=l[x],w=_[T];b&&(ui(b)||fe(b,T)>=0)?C[T]=w:h[T]=w}jt(h,C,r,0)}else h.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Pu(i,Nt(i).option,n,r._lastGraphicModel)}),this._elMap=ae()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(kt);function ov(t){var r=new(J(qS,t)?qS[t]:Dc(t))({});return Nt(r).type=t,r}function US(t,e,r,n){var i=ov(r);return e.add(i),n.set(t,i),Nt(i).id=t,Nt(i).isNew=!0,i}function Pu(t,e,r,n){t&&t.parent&&("group"===t.type&&t.traverse(function(a){Pu(a,e,r,n)}),function $E(t,e,r,n){if(t){var i=t.parent,a=Yi(t).leaveToProps;if(a){var o=rv("update",t,e,r,0);o.done=function(){i&&i.remove(t),n&&n()},t.animateTo(a,o)}else i&&i.remove(t),n&&n()}}(t,e,n),r.removeKey(Nt(t).id))}function YS(t,e,r,n){t.isGroup||D([["cursor",Rn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];J(e,a)?t[a]=Q(e[a],i[1]):null==t[a]&&(t[a]=i[1])}),D(ge(e),function(i){if(0===i.indexOf("on")){var a=e[i];t[i]=ee(a)?a:null}}),J(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function XS(t,e,r){var n=Dt.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var v2=function(t){function e(r,n,i){var o,a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,i=i||Vo,"string"==typeof r?o=XS(r,n,i):K(r)&&(r=(o=r).id),a.id=r,a.dom=o;var s=o.style;return s&&(Wu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return(0,Z.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=XS("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,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var p,o=[],s=this.maxRepaintRectCount,u=!1,l=new ne(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new ne(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,C=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var w=new ne(0,0,0,0);w.copy(T),w.union(m),o[x]=w,S=!0;break}if(u){l.copy(m),l.union(T);var M=l.width*l.height-m.width*m.height-T.width*T.height;M<b&&(b=M,C=x)}}var _;u&&(o[C].union(m),S=!0),S||((_=new ne(0,0,0,0)).copy(m),o.push(_)),u||(u=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(v=r[c]){var h=v.shouldBePainted(i,a,!0,!0);(d=v.__isRendered&&(1&v.__dirty||!h)?v.getPrevPaintRect():null)&&f(d);var y=h&&(1&v.__dirty||!v.__isRendered)?v.getPaintRect():null;y&&f(y)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v,d;h=(v=n[c])&&v.shouldBePainted(i,a,!0,!0),!v||h&&v.__zr||!v.__isRendered||(d=v.getPrevPaintRect())&&f(d)}do{for(p=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(p=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,u/c));var h=this.domBack;function d(y,p,g,m){if(o.clearRect(y,p,g,m),n&&"transparent"!==n){var _=void 0;ji(n)?(_=(n.global||n.__width===g&&n.__height===m)&&n.__canvasGradient||Gc(o,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=_,n.__width=g,n.__height=m):Cv(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Vc(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(y,p,g,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(h,y,p,g,m),o.restore())}!i||l?d(0,0,s,u):i.length&&D(i,function(y){d(y.x*c,y.y*c,y.width*c,y.height*c)})},e}(rr);const sv=v2;var li=314159,y2=function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||Vo,this._singleCanvas=a,this.root=e,e.style&&(Wu(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=e,c=f.width,v=f.height;null!=n.width&&(c=n.width),null!=n.height&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new sv(f,this,this.dpr);h.__builtin__=!0,h.initContext(),u[li]=h,h.zlevel=li,s.push(li),this._domRoot=e}else{this._width=Ys(e,0,n),this._height=Ys(e,1,n);var l=this._domRoot=function g2(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(l)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var s=this._layers[i[a]];!s.__builtin__&&s.refresh&&s.refresh(0===a?this._backgroundColor:null)}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),r){for(var a,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),a||(a=n.ctx).save(),ei(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(e,r){Wc(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;sl(function(){u._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(li).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._layers[this._zlevelList[s]];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,c=!1,v=function(y){var p=a[y],g=p.ctx,m=o&&p.createRepaintRects(e,r,h._width,h._height),_=n?p.__startIndex:p.__drawIndex,S=!n&&p.incremental&&Date.now,b=S&&Date.now(),C=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,C,m);else if(_===p.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,C,m)}-1===_&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,w=function(M){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var B=e[T];if(B.__inHover&&(c=!0),i._doPaintEl(B,p,o,M,k,T===p.__endIndex-1),S&&Date.now()-b>15)break}k.prevElClipPaths&&g.restore()};if(m)if(0===m.length)T=p.__endIndex;else for(var A=h.dpr,L=0;L<m.length;++L){var E=m[L];g.save(),g.beginPath(),g.rect(E.x*A,E.y*A,E.width*A,E.height*A),g.clip(),w(E),g.restore()}else g.save(),w(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<a.length;d++)v(d);return ue.wxa&&D(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var u=e.getPaintRect();(!i||u&&u.intersect(i))&&(ei(s,e,a,o),e.setPrevPaintRect(u))}else ei(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=li);var n=this._layers[e];return n||((n=new sv("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?xe(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&xe(n,this._layerConfig[e-.01],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[e]&&function p2(t){return!(!t||!t.__builtin__&&("function"!=typeof t.resize||"function"!=typeof t.refresh))}(r)){if(a>0&&e>i[0]){for(u=0;u<a-1&&!(i[u]<e&&i[u+1]>e);u++);s=n[i[u]]}if(i.splice(u+1,0,e),n[e]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((i=e[n]).zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}var s,u,a=null,o=0;for(u=0;u<e.length;u++){var i,l=(i=e[u]).zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?((f=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):f=this.getLayer(l+(o>0?.01:0),this._needsManuallyCompositing),f.__builtin__||co("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.__drawIndex=f.incremental?-1:u,r(u),a=f),1&i.__dirty&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,D(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?xe(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];a!==e&&a!==e+.01||xe(this._layers[a],n[e],!0)}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(fe(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(null!=e&&(i.width=e),null!=r&&(i.height=r),e=Ys(a,0,i),r=Ys(a,1,i),n.style.display="",this._width!==e||r!==this._height){for(var o in n.style.width=e+"px",n.style.height=r+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(null==e||null==r)return;this._width=e,this._height=r,this.getLayer(li).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[li].dom;var r=new sv("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 i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++)ei(n,s[u],o,u===l-1);return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const m2=y2;var Ft=Y(6756),ZS=Y(2245),KS=Y(5381),S2=Y(6170);const C2=["chart"],b2=()=>({renderer:"canvas",width:"auto",height:"auto"});function x2(t,e){if(1&t&&(O.j41(0,"cue-flexcontainer",3),O.nrm(1,"cue-typography",5),O.k0s()),2&t){const r=O.XpG();O.R7$(),O.Y8G("innerHTML",r.currentHoveredValue()||r.formattedSum(),O.npT)}}function T2(t,e){if(1&t&&(O.j41(0,"cue-flexcontainer",4)(1,"cue-typography",6),O.EFF(2),O.k0s()()),2&t){const r=O.XpG();O.R7$(2),O.JRh(r.currentHoveredValue())}}sn([function qR(t){t.registerComponentModel(VR),t.registerComponentView(WR)},function ME(t){sn(iE),t.registerComponentModel(oE),t.registerComponentView(DE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)},function VE(t){sn(IS),sn(GE)},function GR(t){t.registerChartView(kR),t.registerSeriesModel(zR),function fA(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}D([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=N({},i),o.dispatchAction(N(i,{type:n[1],seriesIndex:r(a,i)}))})})}("pie",t.registerAction),t.registerLayout(Re(DR,"pie")),t.registerProcessor(function MR(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}("pie")),t.registerProcessor(function HR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(_e(o)&&!isNaN(o)&&o<0)})}}}("pie"))},function _2(t){t.registerPainter("canvas",m2)},z_,function h2(t){t.registerComponentModel(XE),t.registerComponentView(l2),t.registerPreprocessor(function(e){var r=e.graphic;G(r)?e.graphic=r[0]&&r[0].elements?[e.graphic[0]]:[{elements:r}]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}]);let $S=(()=>{class t{data=me.hFB.required();variant=(0,me.hFB)("primary");doughnut=(0,me.hFB)(!1);hoverType=(0,me.hFB)("name");labelType=(0,me.hFB)("name");clickable=(0,me.hFB)(!0);labelThresholdPct=(0,me.hFB)(3);groupSmallFractions=(0,me.hFB)(void 0);clickedCategory=(0,me.CGW)();clickedCanvas=(0,me.CGW)();radius=(0,pe.EW)(()=>this.doughnut()?["40%","70%"]:"70%");startColor=(0,pe.EW)(()=>(0,Ft.r)(this.variant()));endColor=(0,pe.EW)(()=>(0,Ft.U6)(this.variant()));currentParent=(0,oe.vPA)(void 0);saturated=(0,pe.EW)(()=>{const r=this.groupSmallFractions();return r?.enabled?(0,Ft.g0)(this.data(),!0,r.threshold,r.groupName):(0,Ft.g0)(this.data(),!1)});chartData=(0,pe.EW)(()=>(0,Ft.Mc)(this.saturated(),this.currentParent()));borderColor=(0,pe.EW)(()=>"tertiary"===this.variant()?"#cccccc":this.borderBackgroundColor());textColor=(0,oe.vPA)("#333");borderBackgroundColor=(0,oe.vPA)("#fff");sum=(0,pe.EW)(()=>this.chartData().reduce((r,n)=>r+n.value,0));formattedSum=(0,pe.EW)(()=>(0,Ft.In)(this.sum()));chartInstance=null;currentHoveredValue=(0,oe.vPA)(null);chartRef;ngAfterViewInit(){this.updateColors()}updateColors(){const r=(0,Ft.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.updateHoveredValue(r.data),this.chartInstance?.setOption(this.chartOptions()))}),this.chartInstance.on("mouseout",()=>{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,oe.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,Ft.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,Ft.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,pe.EW)(()=>{const r=this.chartData();return{fontStyle:Ft.u9,series:[{name:"Distribution",type:"pie",radius:this.radius(),cursor:this.clickable()?"pointer":"default",data:r.map((n,i)=>({...n,itemStyle:{color:(0,Ft.Kz)(this.startColor(),this.endColor(),i,r.length),borderColor:this.borderColor(),borderWidth:"tertiary"===this.variant()?1:2,borderType:"solid"}})),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:this.textColor(),distanceToLabelLine:-20,position:"outside",show:"none"!==this.labelType(),formatter:n=>{const{data:i}=n,a=i.value/this.sum()*100;if(a<this.labelThresholdPct())return"";switch(this.labelType()){case"value":return i.value;case"valueShort":return(0,Ft.In)(i.value);case"pct":return`${a.toFixed(1)}%`;default:return i.name}}}}]}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O.VBU({type:t,selectors:[["cue-pie-chart"]],viewQuery:function(n,i){if(1&n&&O.GBs(C2,5),2&n){let a;O.mGM(a=O.lsd())&&(i.chartRef=a.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:[O.Jv_([gv({echarts:Bu})])],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,i){1&n&&(O.j41(0,"div",1),O.bIt("darkModeChange",function(){return i.updateColors()})("click",function(){return i.handleCanvasClick()}),O.j41(1,"div",2,0),O.bIt("chartInit",function(o){return i.onChartInit(o)}),O.k0s(),O.nVh(3,x2,2,1,"cue-flexcontainer",3),O.nVh(4,T2,3,1,"cue-flexcontainer",4),O.k0s()),2&n&&(O.R7$(),O.Y8G("options",i.chartOptions())("initOpts",O.lJ4(4,b2)),O.R7$(2),O.vxM(i.doughnut()?3:-1),O.R7$(),O.vxM(i.doughnut()?-1:4))},dependencies:[hC,cC,ZS.Typography,KS.n,S2.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})();var QS=Y(7573);const JS=[{"@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"}}],R2=(t,e,r="size")=>{const n=Array.isArray(t)?t.reduce((o,s)=>({...o,[s.id]:s.value}),{}):Object.entries(t).reduce((o,[s,u])=>{const l="number"==typeof u?u:u[r];return{...o,[s]:l}},{});if(e&&e.length>0)return I2(n,e);const i=Object.entries(n).map(([o,s])=>({id:o,value:s}));if(!(t=>{const e=(()=>{const t=new Set,e=r=>{for(const n of r)t.add(n["@id"]),n.children&&e(n.children)};return e(JS),t})(),r=Array.isArray(t)?t.map(n=>n.id):Object.keys(t);for(const n of r)if(!e.has(n))return!1;return!0})(n))return i.map(o=>({id:o.id,name:String(o.id),value:o.value}));const a=o=>{const s=n[o["@id"]]||0,u=o.children?o.children.map(f=>a(f)).filter(f=>void 0!==f):void 0;let l=s;if(u&&u.length>0&&(l+=u.reduce((f,c)=>f+(c.value||0),0)),l>0)return{id:o["@id"],name:o.label["@value"],value:l,children:u&&u.length>0?u:void 0}};return JS.map(o=>a(o)).filter(o=>void 0!==o)},I2=(t,e)=>{const r=new Map,n=[];e.forEach(a=>{r.set(a.iri,{id:a.iri,name:a.label,value:t[a.iri]||0,children:[]})}),e.forEach(a=>{const o=r.get(a.iri);a.parent&&r.has(a.parent)?r.get(a.parent).children.push(o):n.push(o)});const i=a=>{let o=0;return a.children&&a.children.length>0&&(a.children=a.children.map(s=>i(s)).filter(s=>void 0!==s),o=a.children.reduce((s,u)=>s+(u.value||0),0)),(!a.children||0===a.children.length)&&delete a.children,a.value=(a.value||0)+o,(a.value||0)>0?a:void 0};return n.map(a=>i(a)).filter(a=>void 0!==a)};class E2{docListFilterRequest=(0,Ve.A)(function*(){console.warn("docListFilterRequest block request not implemented")});alternativeRepresentationsRequest=()=>{throw new Error("No alternative representation request handler defined")};buildAgentPlan=(0,Ve.A)(function*(){console.warn("buildAgentPlan not implemented")});downloadURLRequest=(e,r=`${QS.E.qcy}InformationObject`)=>{throw console.log(e,r),new Error("No download URL request handler defined")};requestDocumentsByFilter=(0,Ve.A)(function*(){return console.warn("requestDocumentsByFilter not implemented"),[]});documentDuplicatesRequest=(0,Ve.A)(function*(){return console.warn("documentDuplicatesRequest not implemented"),{}});executeAgentPlan=(0,Ve.A)(function*(){return console.warn("executeAgentPlan not implemented"),"xx"});filteredDocumentListRequest;openDocumentInFileManager=()=>{console.warn("openDocumentInFileManager not implemented")};openDocumentInViewer;openEntityInViewer;queryHandler=(0,Ve.A)(function*(){throw new Error("No query handler defined")});relatedDocumentsRequest=(0,Ve.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,Ve.A)(function*(){console.warn("subsequentBlockRequest not implemented")});requestEntityData=()=>{console.warn("requestEntityData not implemented")};requestEntityRelationships=(0,Ve.A)(function*(){console.warn("requestEntityRelationships not implemented")});openEntity=()=>{console.warn("openEntity not implemented")};requestDocumentData=()=>{console.warn("requestDocumentData not implemented")};requestDocumentURL;removeAgentPlanFromHistory=(0,Ve.A)(function*(){console.warn("removeAgentPlanFromHistory not implemented")})}class k2{canEditContentCategory=!1;canEditEntityCategories=!1}let O2=(()=>{class t{handlers=(0,oe.vPA)(new E2);projectId=(0,oe.vPA)("");portalBaseURL=(0,oe.vPA)("");resourceBaseURL=(0,oe.vPA)("");graphIsSaturated=(0,oe.vPA)(!1);privileges=(0,oe.vPA)(new k2);availableContentCategories=(0,oe.vPA)(void 0);availableEntityCategories=(0,oe.vPA)(void 0);availableEntityRelationships=(0,oe.vPA)(void 0);entityInfoMap=(0,oe.vPA)({});documentInfoMap=(0,oe.vPA)({});static \u0275fac=function(n){return new(n||t)};static \u0275prov=oe.jDH({token:t,factory:t.\u0275fac})}return t})(),B2=(()=>{class t{ctx=(0,oe.WQX)(O2);data=me.hFB.required();config=me.hFB.required();handlers=(0,pe.EW)(()=>this.config().handlers);navigated=(0,me.CGW)();selectedContentCategories=(0,oe.vPA)([]);onReset=(0,oe.QZP)(()=>{this.handleCanvasClick()});fullTree=(0,pe.EW)(()=>R2(this.data().documents,this.ctx.availableContentCategories(),"count"));chartData=(0,pe.EW)(()=>{const r=this.selectedContentCategories();if(!r.length)return this.fullTree();const n=r[0],i=o=>{for(const s of o){if(s.id===n)return s;if(s.children){const u=i(s.children);if(u)return u}}};return i(this.fullTree())?.children??this.fullTree()});groupSmallFractions=(0,pe.EW)(()=>({enabled:!0,threshold:.05,groupName:"Rest"}));handleContentCategoryClick(r){var n=this;return(0,Ve.A)(function*(){const i=o=>{const s=[];return s.push(o.id),Array.isArray(o.children)&&o.children.forEach(u=>{s.push(...i(u))}),s};if(r.children&&r.children.length>0)return n.selectedContentCategories.set([r.id]),void n.navigated.emit({filterBy:"contentCat",values:i(r),label:r.name??r.id});const a=i(r);n.selectedContentCategories.set(a),n.navigated.emit({filterBy:"contentCat",values:a,label:r.name??r.id}),n.requestDocumentList(r)})()}requestDocumentList(r){var n=this;return(0,Ve.A)(function*(){const i=n.handlers()?.subsequentBlockRequest;if((t=>t===`${QS.E["qcy-e"]}ContractualDocument`||"https://dev.qaecy.com/c/tend/enum#RentalContract"===t)(r.id)&&void 0!==i)return void i({id:"content-category",data:{categoryIRI:r.id},config:n.config(),focusOnAdd:!1},r.name??r.id,!0);const o=n.handlers()?.docListFilterRequest;if(void 0===o)return;const s=yield o("contentCat",[r.id]);s&&void 0!==i&&i({id:"document-list",data:s,config:n.config(),focusOnAdd:!0},r.name??r.id,!0)})()}handleCanvasClick(){this.selectedContentCategories.set([]),this.navigated.emit(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O.VBU({type:t,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(n,i){1&n&&(O.j41(0,"cue-pie-chart",0),O.bIt("clickedCanvas",function(){return i.handleCanvasClick()})("clickedCategory",function(o){return i.handleContentCategoryClick(o)}),O.k0s()),2&n&&O.Y8G("data",i.chartData())("doughnut",!1)("hoverType","nameValue")("groupSmallFractions",i.groupSmallFractions())},dependencies:[$S],encapsulation:2,changeDetection:0})}return t})();var uv=Y(4820);const oo="unknown";let F2=(()=>{class t{data=me.hFB.required();config=me.hFB.required();handlers=(0,pe.EW)(()=>this.config().handlers);navigated=(0,me.CGW)();documentInfoReady=(0,me.CGW)();documentInfo=(0,pe.EW)(()=>{const r=this.data().documents;return Object.entries(r).map(([n,i])=>{const a=n.toLowerCase();return{id:n,name:n,value:i.count,info:cv.V[a]}})});categorySuffixMap=(0,pe.EW)(()=>{const r={};return this.documentInfo().forEach(n=>{const i=n.info?.type;void 0===i||i===uv.p.UNKNOWN?(Object.keys(r).includes(oo)||(r[oo]=[]),r[oo].push(n.name)):(Object.keys(r).includes(i)||(r[i]=[]),r[i].push(n.name))}),r});groupSmallFractions=(0,pe.EW)(()=>({enabled:!0,threshold:.05,groupName:"other"}));onDocumentInfo=(0,oe.QZP)(()=>{this.documentInfoReady.emit(this.documentInfo())});byCategory=(0,pe.EW)(()=>{const r={};let n=0;return this.documentInfo().forEach(i=>{const a=i.info?.type;void 0===a||a===uv.p.UNKNOWN?n+=i.value??0:(Object.keys(r).includes(a)||(r[a]=0),r[a]+=i.value??0)}),n>0&&(r[oo]=n),Object.keys(r).map(i=>({name:i,value:r[i],id:i}))});docChartData=(0,pe.EW)(()=>{const r=this.selectedMimeCategories();if(!r.length)return this.byCategory();const n=[];if(r.includes(oo)){const i=this.documentInfo().filter(a=>void 0===a.info||a.info.type===uv.p.UNKNOWN);n.push(...i)}return this.documentInfo().forEach(i=>{r.includes(i.info?.type??"")&&n.push(i)}),n});selectedMimeCategories=(0,oe.vPA)([]);selectedSuffixes=(0,oe.vPA)([]);handleDataClick(r){var n=this;return(0,Ve.A)(function*(){const i=r.name,a=n.selectedMimeCategories();if(!i?.startsWith(".")&&!a.length){n.selectedMimeCategories.set([i??""]);const d=n.categorySuffixMap()[i??""];return void n.navigated.emit({filterBy:"suffix",values:d,label:i??""})}const s=d=>{const y=[];return y.push(d.name??""),Array.isArray(d.children)&&d.children.forEach(p=>{y.push(...s(p))}),y},u=s(r),l=n.handlers()?.docListFilterRequest;if(void 0===l)return;let f;const c=u.some(d=>d.startsWith("."));if(console.log("[DocumentsBySuffix] handleDataClick",c,u),c)f=yield l("suffix",u),n.navigated.emit({filterBy:"suffix",values:u,label:i??""});else{const d=n.categorySuffixMap()[u[0]];f=yield l("suffix",d),n.navigated.emit({filterBy:"suffix",values:d,label:u[0]})}if(!f)return;const v=n.handlers()?.subsequentBlockRequest;void 0!==v?v({id:"document-list",data:f,config:n.config(),focusOnAdd:!0},i,!0):console.error("subsequentBlockRequest is undefined!")})()}handleCanvasClick(){this.selectedMimeCategories.update(()=>[]),this.selectedSuffixes.update(()=>[]),this.navigated.emit(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O.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(n,i){1&n&&(O.j41(0,"cue-pie-chart",0),O.bIt("clickedCategory",function(o){return i.handleDataClick(o)})("clickedCanvas",function(){return i.handleCanvasClick()}),O.k0s()),2&n&&O.Y8G("data",i.docChartData())("doughnut",!0)("hoverType","nameValue")("groupSmallFractions",i.groupSmallFractions())("labelThresholdPct",1)},dependencies:[$S],encapsulation:2,changeDetection:0})}return t})();var eC=Y(1493),H2=Y(9352);const G2=t=>({percent:t}),V2=t=>({count:t});function W2(t,e){if(1&t){const r=O.RV6();O.j41(0,"cue-block-documents-by-suffix",11),O.bIt("navigated",function(i){oe.eBV(r);const a=O.XpG();return oe.Njj(a.handleNavigated(i))}),O.k0s()}if(2&t){O.XpG();const r=O.r8f(2),n=O.r8f(4);O.Y8G("data",r)("config",n)}}function q2(t,e){if(1&t){const r=O.RV6();O.j41(0,"cue-block-documents-by-content-category",11),O.bIt("navigated",function(i){oe.eBV(r);const a=O.XpG();return oe.Njj(a.handleNavigated(i))}),O.k0s()}if(2&t){O.XpG();const r=O.r8f(3),n=O.r8f(4);O.Y8G("data",r)("config",n)}}function U2(t,e){if(1&t&&(O.nrm(0,"cue-typography",7),O.nI1(1,"transloco")),2&t){const r=O.XpG();O.Y8G("innerHTML",O.i5U(1,1,"components.contentBlocks.projectDocuments.pctOpenFormats",O.eq3(4,G2,r.openFormatPct())),O.npT)}}function Y2(t,e){if(1&t){const r=O.RV6();O.j41(0,"cue-typography",12),O.nI1(1,"transloco"),O.bIt("click",function(){oe.eBV(r);const i=O.XpG();return oe.Njj(i.getDuplicates())}),O.k0s()}2&t&&O.Y8G("innerHTML",O.i5U(1,1,1===e?"components.contentBlocks.projectDocuments.duplicateFilesSingular":"components.contentBlocks.projectDocuments.duplicateFilesPlural",O.eq3(4,V2,e)),O.npT)}function X2(t,e){if(1&t&&(O.j41(0,"cue-typography",10),O.EFF(1),O.k0s()),2&t){const r=O.XpG();O.R7$(),O.SpI("\u2696\ufe0f ",r.humanSize()," ")}}function j2(t,e){if(1&t&&(O.j41(0,"cue-typography",10),O.EFF(1),O.k0s()),2&t){const r=O.XpG();O.R7$(),O.E5c("",r.filterKey(),": ",r.humanSizeFiltered()," (",r.countFiltered(),")")}}let Z2=(()=>{class t{data=(0,me.hFB)(void 0);_data=(0,oe.vPA)(void 0);constructor(){let r=null;(0,oe.QZP)(()=>{const n=this.data();null!==r&&clearTimeout(r),(0,pe.O8)(()=>this._data.set(n)),r=setTimeout(()=>{r=null,(0,pe.O8)(()=>this._data.set(this.data()))},100)})}config=me.hFB.required();handlers=(0,pe.EW)(()=>this.config().handlers);filterKey=(0,oe.vPA)("");bySuffix=(0,pe.EW)(()=>{const r=this._data();if(r?.documentsBySuffix&&0!==Object.keys(r.documentsBySuffix).length)return{documents:r.documentsBySuffix}});byContentCategory=(0,pe.EW)(()=>{const r=this._data();if(r?.documentsByContentCategory&&0!==Object.keys(r.documentsByContentCategory).length)return{documents:r.documentsByContentCategory}});duplicateCount=(0,pe.EW)(()=>this._data()?.duplicateCount??0);size=(0,pe.EW)(()=>{const r=this._data();if(!r)return 0;const n=Object.values(r.documentsBySuffix||{}).reduce((a,o)=>a+(o?.size||0),0),i=Object.values(r.documentsByContentCategory||{}).reduce((a,o)=>a+(o?.size||0),0);return Math.max(n,i)});documentCount=(0,pe.EW)(()=>{const r=this._data();if(!r)return 0;const n=Object.values(r.documentsBySuffix||{}).reduce((a,o)=>a+(o?.count||0),0),i=Object.values(r.documentsByContentCategory||{}).reduce((a,o)=>a+(o?.count||0),0);return Math.max(n,i)});sizeFiltered=(0,oe.vPA)(0);countFiltered=(0,oe.vPA)(0);humanSize=(0,pe.EW)(()=>(0,eC.b)(this.size()));humanSizeFiltered=(0,pe.EW)(()=>(0,eC.b)(this.sizeFiltered()));openFormatPct=(0,pe.EW)(()=>{const r=this._data();if(!r?.documentsBySuffix)return 0;let n=0,i=0;for(const[o,s]of Object.entries(r.documentsBySuffix)){if(!s)continue;const u=Number(s.count||0);n+=u;const l=o.toLowerCase().trim(),f=l.startsWith(".")?l:`.${l}`;cv.V[f]?.open&&(i+=u)}return n>0?Math.round(i/n*100):null});configWithFilterResolver=(0,pe.EW)(()=>{var r=this;const n=this.config();return{...n,handlers:{...n.handlers,docListFilterRequest:(i=(0,Ve.A)(function*(a,o){if(console.log("[ProjectDocuments] docListFilterRequest",a,o),!o||0===o.length)return;const s="contentCat"===a?(t=>{const e=t.split("#").pop()??t,r={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===r[e]&&console.log(`No pretty label for category: ${e}`),r[e]??e})(o[0]):o[0];if(r.filterKey.set(s),"suffix"===a){const c=r._data()?.documentsBySuffix;if(c){const v=o.reduce((d,y)=>d+(c[y.toLowerCase()]?.size||0),0),h=o.reduce((d,y)=>d+(c[y.toLowerCase()]?.count||0),0);r.sizeFiltered.set(v),r.countFiltered.set(h)}}else if("contentCat"===a){const c=r._data()?.documentsByContentCategory;if(c){const v=o.reduce((d,y)=>d+(c[y]?.size||0),0),h=o.reduce((d,y)=>d+(c[y]?.count||0),0);r.sizeFiltered.set(v),r.countFiltered.set(h)}}const u=n.handlers?.requestDocumentsByFilter;if(!u)return void console.warn("No requestDocumentsByFilter handler defined");const f=yield u([{type:"suffix"===a?"suffix":"content",included:o,excluded:[]}]);return{ids:f.map(c=>({id:c})),totalCount:f.length}}),function(o,s){return i.apply(this,arguments)})}};var i});handleNavigated(r){if(!r)return this.sizeFiltered.set(0),this.countFiltered.set(0),void this.filterKey.set("");this.filterKey.set(r.label);const n=this._data();if(!n)return;let i=0,a=0;if("suffix"===r.filterBy){const o=n.documentsBySuffix;r.values.forEach(s=>{const u=s.toLowerCase();i+=o[u]?.size||0,a+=o[u]?.count||0})}else if("contentCat"===r.filterBy){const o=n.documentsByContentCategory;r.values.forEach(s=>{i+=o[s]?.size||0,a+=o[s]?.count||0})}this.sizeFiltered.set(i),this.countFiltered.set(a)}handleCanvasClick(){this.sizeFiltered.set(0),this.countFiltered.set(0)}getDuplicates(){var r=this;return(0,Ve.A)(function*(){const n=r.handlers()?.subsequentBlockRequest;if(void 0===n)return void console.warn("No handler for subsequent block request");const i=r.handlers()?.documentDuplicatesRequest;if(!i)return void console.warn("No documentDuplicatesRequest handler defined");const a=yield i();n({id:"document-duplicates",config:r.config(),data:a,focusOnAdd:!0},"Duplicates",!0)})()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O.VBU({type:t,selectors:[["cue-block-project-documents"]],inputs:{data:[1,"data"],config:[1,"config"]},decls:19,vars:13,consts:[["direction","column"],[1,"container",3,"click"],["id","chart-1",1,"chart"],[3,"data","config"],["id","chart-2",1,"chart"],["direction","column","align","center",1,"stats"],[1,"stat-line"],["size","l",3,"innerHTML"],["size","l",1,"clickable",3,"innerHTML"],["direction","column","align","center",1,"sizes"],["size","l"],[3,"navigated","data","config"],["size","l",1,"clickable",3,"click","innerHTML"]],template:function(n,i){if(1&n&&(O.j41(0,"cue-flexcontainer",0)(1,"div",1),O.bIt("click",function(){return i.handleCanvasClick()}),O.SS7(2)(3)(4),O.j41(5,"div",2),O.nVh(6,W2,1,2,"cue-block-documents-by-suffix",3),O.k0s(),O.j41(7,"div",4),O.nVh(8,q2,1,2,"cue-block-documents-by-content-category",3),O.k0s(),O.j41(9,"cue-flexcontainer",5)(10,"div",6),O.nVh(11,U2,2,6,"cue-typography",7),O.k0s(),O.j41(12,"div",6),O.nVh(13,Y2,2,6,"cue-typography",8),O.k0s()(),O.j41(14,"cue-flexcontainer",9)(15,"div",6),O.nVh(16,X2,2,1,"cue-typography",10),O.k0s(),O.j41(17,"div",6),O.nVh(18,j2,2,3,"cue-typography",10),O.k0s()()()()),2&n){let a;O.R7$(2);const o=O.bH3(i.bySuffix());O.R7$();const s=O.bH3(i.byContentCategory());O.R7$(),O.bH3(i.configWithFilterResolver()),O.R7$(),O.xc7("opacity",o?1:0),O.R7$(),O.vxM(o?6:-1),O.R7$(),O.xc7("opacity",s?1:0),O.R7$(),O.vxM(s?8:-1),O.R7$(3),O.vxM(null!==i.openFormatPct()?11:-1),O.R7$(2),O.vxM((a=i.duplicateCount())?13:-1,a),O.R7$(3),O.vxM(i.size()>0?16:-1),O.R7$(2),O.vxM(i.sizeFiltered()>0?18:-1)}},dependencies:[ZS.Typography,KS.n,B2,F2,H2.Kj],styles:[".container[_ngcontent-%COMP%]{height:700px;width:100%;position:relative;overflow:hidden}.chart[_ngcontent-%COMP%]{position:absolute;width:470px;height:350px;transition:opacity .5s ease-in-out}#chart-1[_ngcontent-%COMP%]{top:20px;left:0}#chart-2[_ngcontent-%COMP%]{bottom:50px;right:0}.stats[_ngcontent-%COMP%]{position:absolute;right:230px;top:180px;transform:translate(50%);min-height:80px;justify-content:center}.sizes[_ngcontent-%COMP%]{position:absolute;left:230px;bottom:180px;transform:translate(-50%);min-height:80px;justify-content:center}.stat-line[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;justify-content:center}.clickable[_ngcontent-%COMP%]:hover{cursor:pointer;transform:scale(1.05)}"],changeDetection:0})}return t})()},6114(uo,Cr,Y){Y.d(Cr,{N:()=>P,V:()=>zr});var R=Y(4820),P=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}(P||{});const zr={[P.AAC]:{type:R.p.AUDIO,open:!0,suffix:".aac"},[P.ABW]:{type:R.p.TEXT,open:!0,suffix:".abw"},[P.ARC]:{type:R.p.ARCHIVE,open:!1,suffix:".arc"},[P.AVIF]:{type:R.p.IMAGE,open:!0,suffix:".avif"},[P.AVI]:{type:R.p.VIDEO,open:!0,suffix:".avi"},[P.APNG]:{type:R.p.IMAGE,open:!0,suffix:".apng"},[P.BAK]:{type:R.p.BACKUP,open:!1,suffix:".bak"},[P.BIN]:{type:R.p.BINARY,open:!1,suffix:".bin"},[P.BMC]:{type:R.p.BIM,open:!1,suffix:".bmc"},[P.BMP]:{type:R.p.IMAGE,open:!0,suffix:".bmp"},[P.BZ]:{type:R.p.ARCHIVE,open:!0,suffix:".bz"},[P.BZ2]:{type:R.p.ARCHIVE,open:!0,suffix:".bz2"},[P.C3D]:{type:R.p.THREE_D,open:!0,suffix:".c3d"},[P.CPG]:{type:R.p.GEOSPATIAL,open:!0,suffix:".cpg"},[P.CSS]:{type:R.p.MARKUP,open:!0,suffix:".css"},[P.CSV]:{type:R.p.DATA,open:!0,suffix:".csv"},[P.DAT]:{type:R.p.DATA,open:!1,suffix:".dat"},[P.DBF]:{type:R.p.DATA,open:!0,suffix:".dbf"},[P.DOC]:{type:R.p.TEXT,open:!1,suffix:".doc"},[P.DOCX]:{type:R.p.TEXT,open:!0,suffix:".docx"},[P.E57]:{type:R.p.THREE_D,open:!0,suffix:".e57"},[P.EPUB]:{type:R.p.TEXT,open:!0,suffix:".epub"},[P.EXE]:{type:R.p.INSTALLER,open:!1,suffix:".exe"},[P.FFS]:{type:R.p.AUTOMATION,open:!1,suffix:".ffs"},[P.FME]:{type:R.p.AUTOMATION,open:!1,suffix:".fme"},[P.FMW]:{type:R.p.AUTOMATION,open:!1,suffix:".fmw"},[P.FRAG]:{type:R.p.BIM,open:!0,suffix:".fragments"},[P.GH]:{type:R.p.THREE_D,open:!1,suffix:".gh"},[P.GZ]:{type:R.p.ARCHIVE,open:!0,suffix:".gz"},[P.GIF]:{type:R.p.IMAGE,open:!0,suffix:".gif"},[P.HTML]:{type:R.p.MARKUP,open:!0,suffix:".html"},[P.HTM]:{type:R.p.MARKUP,open:!0,suffix:".htm"},[P.ICO]:{type:R.p.IMAGE,open:!1,suffix:".ico"},[P.ICS]:{type:R.p.DATA,open:!0,suffix:".ics"},[P.JAR]:{type:R.p.ARCHIVE,open:!0,suffix:".jar"},[P.JPG]:{type:R.p.IMAGE,open:!0,suffix:".jpg"},[P.JPEG]:{type:R.p.IMAGE,open:!0,suffix:".jpeg"},[P.JSON]:{type:R.p.DATA,open:!0,suffix:".json"},[P.JSONLD]:{type:R.p.DATA,open:!0,suffix:".jsonld"},[P.JS]:{type:R.p.SCRIPT,open:!0,suffix:".js"},[P.MSI]:{type:R.p.INSTALLER,open:!1,suffix:".msi"},[P.MOV]:{type:R.p.VIDEO,open:!0,suffix:".mov"},[P.MP3]:{type:R.p.AUDIO,open:!0,suffix:".mp3"},[P.MP4]:{type:R.p.VIDEO,open:!0,suffix:".mp4"},[P.MPEG]:{type:R.p.VIDEO,open:!0,suffix:".mpeg"},[P.MTL]:{type:R.p.THREE_D,open:!0,suffix:".mtl"},[P.ODP]:{type:R.p.PRESENTATION,open:!0,suffix:".odp"},[P.ODS]:{type:R.p.SPREADSHEET,open:!0,suffix:".ods"},[P.ODT]:{type:R.p.TEXT,open:!0,suffix:".odt"},[P.OGA]:{type:R.p.AUDIO,open:!0,suffix:".oga"},[P.OGG]:{type:R.p.AUDIO,open:!0,suffix:".ogg"},[P.OGV]:{type:R.p.VIDEO,open:!0,suffix:".ogv"},[P.OGX]:{type:R.p.VIDEO,open:!0,suffix:".ogx"},[P.OTF]:{type:R.p.FONT,open:!0,suffix:".otf"},[P.PNG]:{type:R.p.IMAGE,open:!0,suffix:".png"},[P.PDF]:{type:R.p.TEXT,open:!0,suffix:".pdf"},[P.PHP]:{type:R.p.SCRIPT,open:!0,suffix:".php"},[P.PKG]:{type:R.p.INSTALLER,open:!1,suffix:".pkg"},[P.PPT]:{type:R.p.PRESENTATION,open:!1,suffix:".ppt"},[P.PPTX]:{type:R.p.PRESENTATION,open:!0,suffix:".pptx"},[P.PS]:{type:R.p.IMAGE,open:!1,suffix:".ps"},[P.RAR]:{type:R.p.ARCHIVE,open:!1,suffix:".rar"},[P.RCP]:{type:R.p.THREE_D,open:!1,suffix:".rcp"},[P.RTF]:{type:R.p.TEXT,open:!0,suffix:".rtf"},[P.SBN]:{type:R.p.GEOSPATIAL,open:!1,suffix:".sbn"},[P.SBX]:{type:R.p.GEOSPATIAL,open:!1,suffix:".sbx"},[P.SHX]:{type:R.p.GEOSPATIAL,open:!0,suffix:".shx"},[P.SH]:{type:R.p.SCRIPT,open:!0,suffix:".sh"},[P.SLK]:{type:R.p.DATA,open:!0,suffix:".slk"},[P.SVG]:{type:R.p.IMAGE,open:!0,suffix:".svg"},[P.TAR]:{type:R.p.ARCHIVE,open:!0,suffix:".tar"},[P.TIFF]:{type:R.p.IMAGE,open:!0,suffix:".tiff"},[P.TIF]:{type:R.p.IMAGE,open:!0,suffix:".tif"},[P.TTF]:{type:R.p.FONT,open:!0,suffix:".ttf"},[P.TXT]:{type:R.p.TEXT,open:!0,suffix:".txt"},[P.VGL]:{type:R.p.THREE_D,open:!1,suffix:".vgl"},[P.VWX]:{type:R.p.CAD,open:!1,suffix:".vwx"},[P.WAV]:{type:R.p.AUDIO,open:!0,suffix:".wav"},[P.WEBM]:{type:R.p.VIDEO,open:!0,suffix:".webm"},[P.WEBP]:{type:R.p.IMAGE,open:!0,suffix:".webp"},[P.WMV]:{type:R.p.VIDEO,open:!0,suffix:".wmv"},[P.WOFF]:{type:R.p.FONT,open:!0,suffix:".woff"},[P.WOFF2]:{type:R.p.FONT,open:!0,suffix:".woff2"},[P.XLS]:{type:R.p.SPREADSHEET,open:!1,suffix:".xls"},[P.XLSX]:{type:R.p.SPREADSHEET,open:!0,suffix:".xlsx"},[P.XHTML]:{type:R.p.MARKUP,open:!0,suffix:".xhtml"},[P.XML]:{type:R.p.DATA,open:!0,suffix:".xml"},[P.XYZ]:{type:R.p.THREE_D,open:!0,suffix:".xyz"},[P.ZIP]:{type:R.p.ARCHIVE,open:!0,suffix:".zip"},[P.SEVEN_Z]:{type:R.p.ARCHIVE,open:!0,suffix:".7z"},[P.EML]:{type:R.p.EMAIL,open:!0,suffix:".eml"},[P.EMLX]:{type:R.p.EMAIL,open:!0,suffix:".emlx"},[P.MBX]:{type:R.p.EMAIL,open:!0,suffix:".mbx"},[P.MD]:{type:R.p.TEXT,open:!0,suffix:".md"},[P.MSG]:{type:R.p.EMAIL,open:!1,suffix:".msg"},[P.RST]:{type:R.p.TEXT,open:!0,suffix:".rst"},[P.HEIC]:{type:R.p.IMAGE,open:!1,suffix:".heic"},[P.MPP]:{type:R.p.PLANNING,open:!1,suffix:".mpp"},[P.TSV]:{type:R.p.DATA,open:!0,suffix:".tsv"},[P.B3DM]:{type:R.p.THREE_D,open:!0,suffix:".b3dm"},[P.I3DM]:{type:R.p.THREE_D,open:!0,suffix:".i3dm"},[P.PNTS]:{type:R.p.THREE_D,open:!1,suffix:".pnts"},[P.CMPT]:{type:R.p.THREE_D,open:!1,suffix:".cmpt"},[P.GLTF]:{type:R.p.THREE_D,open:!0,suffix:".gltf"},[P.GLB]:{type:R.p.THREE_D,open:!0,suffix:".glb"},[P.IFC]:{type:R.p.BIM,open:!0,suffix:".ifc"},[P.IFCZIP]:{type:R.p.BIM,open:!0,suffix:".ifczip"},[P.IFXML]:{type:R.p.BIM,open:!0,suffix:".ifcxml"},[P.THREEDM]:{type:R.p.CAD,open:!1,suffix:".3dm"},[P.THREEDS]:{type:R.p.THREE_D,open:!1,suffix:".3ds"},[P.GHP]:{type:R.p.CAD,open:!1,suffix:".ghp"},[P.RVT]:{type:R.p.BIM,open:!1,suffix:".rvt"},[P.RFA]:{type:R.p.BIM,open:!1,suffix:".rfa"},[P.RFT]:{type:R.p.BIM,open:!1,suffix:".rft"},[P.RTE]:{type:R.p.BIM,open:!1,suffix:".rte"},[P.PLA]:{type:R.p.BIM,open:!1,suffix:".pla"},[P.PLN]:{type:R.p.BIM,open:!1,suffix:".pln"},[P.GSM]:{type:R.p.BIM,open:!1,suffix:".gsm"},[P.SMC]:{type:R.p.BIM,open:!1,suffix:".smc"},[P.STL]:{type:R.p.THREE_D,open:!0,suffix:".stl"},[P.BCF]:{type:R.p.BIM,open:!0,suffix:".bcf"},[P.DWG]:{type:R.p.CAD,open:!1,suffix:".dwg"},[P.DWL]:{type:R.p.CAD,open:!1,suffix:".dwl"},[P.DXF]:{type:R.p.CAD,open:!0,suffix:".dxf"},[P.DGN]:{type:R.p.CAD,open:!1,suffix:".dgn"},[P.NWD]:{type:R.p.BIM,open:!1,suffix:".nwd"},[P.OBJ]:{type:R.p.THREE_D,open:!0,suffix:".obj"},[P.C4D]:{type:R.p.THREE_D,open:!1,suffix:".c4d"},[P.TEKLASTRUCTURES]:{type:R.p.BIM,open:!1,suffix:".teklastructures"},[P.PTS]:{type:R.p.THREE_D,open:!1,suffix:".pts"},[P.LAS]:{type:R.p.THREE_D,open:!0,suffix:".las"},[P.LAZ]:{type:R.p.THREE_D,open:!0,suffix:".laz"},[P.USDZ]:{type:R.p.THREE_D,open:!0,suffix:".usdz"},[P.USDA]:{type:R.p.THREE_D,open:!0,suffix:".usda"},[P.USDC]:{type:R.p.THREE_D,open:!0,suffix:".usdc"},[P.USD]:{type:R.p.THREE_D,open:!0,suffix:".usd"},[P.PSD]:{type:R.p.IMAGE,open:!1,suffix:".psd"},[P.PSP]:{type:R.p.IMAGE,open:!1,suffix:".psp"},[P.AI]:{type:R.p.IMAGE,open:!1,suffix:".ai"},[P.SKP]:{type:R.p.THREE_D,open:!1,suffix:".skp"},[P.FBX]:{type:R.p.THREE_D,open:!0,suffix:".fbx"},[P.KML]:{type:R.p.GEOSPATIAL,open:!0,suffix:".kml"},[P.SHP]:{type:R.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(uo,Cr,Y){Y.d(Cr,{p:()=>R});var R=function(P){return P.AUTOMATION="automation",P.ARCHIVE="archive",P.AUDIO="audio",P.BACKUP="backup",P.BINARY="binary",P.BIM="bim",P.CAD="cad",P.DATA="data",P.EMAIL="email",P.FONT="font",P.GEOSPATIAL="geospatial",P.IMAGE="image",P.INSTALLER="installer",P.MARKUP="markup",P.MULTIMEDIA="multimedia",P.PLANNING="planning",P.PRESENTATION="presentation",P.SCRIPT="script",P.SPREADSHEET="spreadsheet",P.TEXT="text",P.THREE_D="3d",P.UNKNOWN="unknown",P.VIDEO="video",P}(R||{})},1493(uo,Cr,Y){function R(P,zr=!1,I=1){const dn=zr?1e3:1024;if(Math.abs(P)<dn)return P+" B";const fi=zr?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let pn=-1;const ci=10**I;do{P/=dn,++pn}while(Math.round(Math.abs(P)*ci)/ci>=dn&&pn<fi.length-1);return P.toFixed(I)+" "+fi[pn]}Y.d(Cr,{b:()=>R})},7573(uo,Cr,Y){Y.d(Cr,{E:()=>R});const R={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#"}}}]);
|