@qaecy/cue-ui 0.0.15 → 0.0.17
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/236.js +1 -0
- package/269.js +1 -1
- package/284.js +1 -0
- package/371.js +1 -0
- package/418.js +1 -1
- package/{160.js → 419.js} +1 -1
- package/443.js +1 -0
- package/560.js +1 -1
- package/570.js +1 -0
- package/598.js +1 -1
- package/60.js +1 -0
- package/710.js +1 -1
- package/741.js +1 -1
- package/774.js +1 -0
- package/83.js +1 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -0
- package/141.js +0 -1
- package/21.js +0 -1
- package/266.js +0 -1
- package/28.js +0 -1
- package/280.js +0 -1
- package/378.js +0 -1
- package/63.js +0 -1
- package/734.js +0 -1
- package/754.js +0 -1
- package/769.js +0 -1
- package/927.js +0 -1
- package/941.js +0 -1
package/774.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[774],{8774(hv,Ga,Z){Z.d(Ga,{BlockProjectDocuments:()=>ik});var I={};Z.r(I),Z.d(I,{EPSILON:()=>NC,HashMap:()=>Dv,RADIAN_TO_DEGREE:()=>Av,assert:()=>er,bind:()=>ve,clone:()=>le,concatArray:()=>Mv,createCanvas:()=>RC,createHashMap:()=>ie,createObject:()=>Ya,curry:()=>Re,defaults:()=>we,disableUserSelect:()=>Vu,each:()=>D,eqNaN:()=>qa,extend:()=>N,filter:()=>Pe,find:()=>IC,guid:()=>zu,hasOwn:()=>J,indexOf:()=>fe,inherits:()=>Hu,isArray:()=>G,isArrayLike:()=>Ke,isBuiltInObject:()=>Gu,isDom:()=>oa,isFunction:()=>ee,isGradientObject:()=>Wa,isImagePatternObject:()=>xv,isNumber:()=>_e,isObject:()=>K,isPrimitive:()=>sa,isRegExp:()=>kC,isString:()=>X,isStringSafe:()=>oo,isTypedArray:()=>rt,keys:()=>ge,logError:()=>io,map:()=>$,merge:()=>xe,mergeAll:()=>PC,mixin:()=>Ft,noop:()=>nt,normalizeCssArray:()=>uo,reduce:()=>zt,retrieve:()=>Ua,retrieve2:()=>Q,retrieve3:()=>zr,setAsPrimitive:()=>lo,slice:()=>so,trim:()=>Ht});var P={};Z.r(P),Z.d(P,{add:()=>Wu,applyTransform:()=>mt,clone:()=>Lv,copy:()=>FC,create:()=>cn,dist:()=>ho,distSquare:()=>hn,distance:()=>co,distanceSquare:()=>Iv,div:()=>qC,dot:()=>UC,len:()=>qu,lenSquare:()=>Uu,length:()=>GC,lengthSquare:()=>VC,lerp:()=>vo,max:()=>Gr,min:()=>Hr,mul:()=>WC,negate:()=>YC,normalize:()=>Rv,scale:()=>fo,scaleAndAdd:()=>HC,set:()=>zC,sub:()=>Pv});var Va={};Z.r(Va),Z.d(Va,{clone:()=>fb,copy:()=>go,create:()=>Gt,identity:()=>Xa,invert:()=>dn,mul:()=>vn,rotate:()=>mo,scale:()=>Fv,translate:()=>yo});var E={};Z.r(E),Z.d(E,{fastLerp:()=>vd,fastMapToColor:()=>Nb,lerp:()=>dd,lift:()=>fl,liftColor:()=>cl,lum:()=>ei,mapToColor:()=>Fb,modifyAlpha:()=>zb,modifyHSL:()=>Ao,parse:()=>Ct,parseCssFloat:()=>qr,parseCssInt:()=>Do,random:()=>Hb,stringify:()=>Yr,toHex:()=>Bb});var Mu={};Z.r(Mu),Z.d(Mu,{dispose:()=>Cx,disposeAll:()=>bx,getElementSSRData:()=>Tx,getInstance:()=>xx,init:()=>Bl,registerPainter:()=>Fd,registerSSRDataGetter:()=>zd,version:()=>Dx});var Au={};Z.r(Au),Z.d(Au,{Arc:()=>As,BezierCurve:()=>bc,BoundingRect:()=>ne,Circle:()=>Ds,CompoundPath:()=>nm,Ellipse:()=>mc,Group:()=>bt,Image:()=>Qr,IncrementalDisplayable:()=>um,Line:()=>Ia,LinearGradient:()=>im,OrientedBoundingRect:()=>sm,Path:()=>Te,Point:()=>te,Polygon:()=>Cc,Polyline:()=>Ii,RadialGradient:()=>om,Rect:()=>Xe,Ring:()=>Sc,Sector:()=>Ri,Text:()=>Ne,WH:()=>fm,XY:()=>lm,applyTransform:()=>Lc,calcZ2Range:()=>GM,clipPointsByRect:()=>ym,clipRectByRect:()=>mm,createIcon:()=>Es,ensureCopyRect:()=>ki,ensureCopyTransform:()=>kc,expandOrShrinkRect:()=>Rc,extendPath:()=>hm,extendShape:()=>cm,getShapeClass:()=>wc,getTransform:()=>pm,groupTransition:()=>FM,initProps:()=>Jr,isBoundingRectAxisAligned:()=>Ec,isElementRemoved:()=>Ca,lineLineIntersect:()=>_m,linePolygonIntersect:()=>zM,makeImage:()=>Dc,makePath:()=>Is,mergePath:()=>dm,registerShape:()=>Ot,removeElement:()=>ag,removeElementWithFadeOut:()=>og,resizePath:()=>Mc,retrieveZInfo:()=>bm,setTooltipConfig:()=>Ei,subPixelOptimize:()=>OM,subPixelOptimizeLine:()=>Ac,subPixelOptimizeRect:()=>kM,transformDirection:()=>BM,traverseElements:()=>Cm,traverseUpdateZ:()=>xm,updateProps:()=>Xt});var Lu={};Z.r(Lu),Z.d(Lu,{createDimensions:()=>NL,createList:()=>FP,createScale:()=>HP,createSymbol:()=>Fs,createTextStyle:()=>VP,dataStack:()=>zP,enableHoverEmphasis:()=>rs,getECData:()=>de,getLayoutRect:()=>Lr,mixinAxisModelCommonMethods:()=>GP});var Pu={};Z.r(Pu),Z.d(Pu,{MAX_SAFE_INTEGER:()=>Ex,asc:()=>Px,getPercentWithPrecision:()=>Rx,getPixelPrecision:()=>Wd,getPrecision:()=>or,getPrecisionSafe:()=>Vd,isNumeric:()=>Yd,isRadianAroundZero:()=>oi,linearMap:()=>Vo,nice:()=>Hl,numericToNumber:()=>br,parseDate:()=>Cr,parsePercent:()=>Se,quantile:()=>Ox,quantity:()=>Ud,quantityExponent:()=>zl,reformIntervals:()=>Bx,remRadian:()=>Fl,round:()=>ir});var Ru={};Z.r(Ru),Z.d(Ru,{format:()=>yi,parse:()=>Cr,roundTime:()=>fs});var Iu={};Z.r(Iu),Z.d(Iu,{Arc:()=>As,BezierCurve:()=>bc,BoundingRect:()=>ne,Circle:()=>Ds,CompoundPath:()=>nm,Ellipse:()=>mc,Group:()=>bt,Image:()=>Qr,IncrementalDisplayable:()=>um,Line:()=>Ia,LinearGradient:()=>im,Polygon:()=>Cc,Polyline:()=>Ii,RadialGradient:()=>om,Rect:()=>Xe,Ring:()=>Sc,Sector:()=>Ri,Text:()=>Ne,clipPointsByRect:()=>ym,clipRectByRect:()=>mm,createIcon:()=>Es,extendPath:()=>hm,extendShape:()=>cm,getShapeClass:()=>wc,getTransform:()=>pm,initProps:()=>Jr,makeImage:()=>Dc,makePath:()=>Is,mergePath:()=>dm,registerShape:()=>Ot,resizePath:()=>Mc,updateProps:()=>Xt});var Eu={};Z.r(Eu),Z.d(Eu,{addCommas:()=>Gf,capitalFirst:()=>iw,encodeHTML:()=>at,formatTime:()=>aw,formatTpl:()=>Uf,getTextRect:()=>jP,getTooltipMarker:()=>Mg,normalizeCssArray:()=>mi,toCamelCase:()=>Vf,truncateText:()=>h1});var ku={};Z.r(ku),Z.d(ku,{bind:()=>ve,clone:()=>le,curry:()=>Re,defaults:()=>we,each:()=>D,extend:()=>N,filter:()=>Pe,indexOf:()=>fe,inherits:()=>Hu,isArray:()=>G,isFunction:()=>ee,isObject:()=>K,isString:()=>X,map:()=>$,merge:()=>xe,reduce:()=>zt});var Ou={};Z.r(Ou),Z.d(Ou,{Axis:()=>lR,ChartView:()=>Ir,ComponentModel:()=>De,ComponentView:()=>kt,List:()=>ph,Model:()=>Fe,PRIORITY:()=>v0,SeriesModel:()=>tn,color:()=>E,connect:()=>vL,dataTool:()=>CL,dependencies:()=>ZA,disConnect:()=>dL,disconnect:()=>A0,dispose:()=>pL,env:()=>ue,extendChartView:()=>vR,extendComponentModel:()=>fR,extendComponentView:()=>cR,extendSeriesModel:()=>hR,format:()=>Eu,getCoordinateSystemDimensions:()=>yL,getInstanceByDom:()=>ih,getInstanceById:()=>gL,getMap:()=>SL,graphic:()=>Iu,helper:()=>Lu,init:()=>hL,innerDrawElementOnCanvas:()=>Vc,matrix:()=>Va,number:()=>Pu,parseGeoJSON:()=>__,parseGeoJson:()=>__,registerAction:()=>Qn,registerCoordinateSystem:()=>R0,registerCustomSeries:()=>mL,registerLayout:()=>I0,registerLoading:()=>fh,registerLocale:()=>Rf,registerMap:()=>k0,registerPostInit:()=>L0,registerPostUpdate:()=>P0,registerPreprocessor:()=>sh,registerProcessor:()=>uh,registerTheme:()=>oh,registerTransform:()=>O0,registerUpdateLifecycle:()=>Qs,registerVisual:()=>rn,setCanvasCreator:()=>_L,setPlatformAPI:()=>_v,throttle:()=>Bc,time:()=>Ru,use:()=>nn,util:()=>ku,vector:()=>P,version:()=>jA,zrUtil:()=>I,zrender:()=>Mu});var Ve=Z(467),me=Z(7705),oe=Z(5802),pe=Z(2271),vv=Z(6114),O=Z(5547),se=Z(9079),dv=Z(2771),iC=Z(8359),oC=Z(1413),pv=Z(3236),sC=Z(4226),uC=Z(9974),gv=Z(4360),lC=Z(8750),cC=Z(1584);var vC=Z(5558);const yv=new oe.nKC("NGX_ECHARTS_CONFIG");class dC{constructor(){this.subject=new dv.m(1),this.subscriptions=new iC.yU}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){const a=n[e].currentValue;null!=a&&r(a)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&r(n[e].currentValue)}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&!n[e].isFirstChange()&&r(n[e].currentValue)}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){const a=n[e].currentValue;null!=a&&r(a)}}))}}let pC=(()=>{class t{constructor(){this.el=(0,oe.WQX)(O.aKT),this.ngZone=(0,oe.WQX)(oe.SKi),this.config=(0,oe.WQX)(yv),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 dv.m(1),this.resize$=new oC.B,this.changeFilter=new dC,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 hC(t,e=pv.E,r){const n=(0,cC.O)(t,e);return function fC(t,e){return(0,uC.N)((r,n)=>{const{leading:a=!0,trailing:i=!1}=e??{};let o=!1,s=null,u=null,l=!1;const f=()=>{u?.unsubscribe(),u=null,i&&(h(),l&&n.complete())},c=()=>{u=null,l&&n.complete()},v=d=>u=(0,lC.Tg)(t(d)).subscribe((0,gv._)(n,f,c)),h=()=>{if(o){o=!1;const d=s;s=null,n.next(d),!l&&v(d)}};r.subscribe((0,gv._)(n,d=>{o=!0,s=d,(!u||u.closed)&&(a?h():v(d))},()=>{l=!0,(!(i&&o&&u)||u.closed)&&n.complete()}))})}(()=>n,r)}(100,pv.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize()&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(r=>{for(const n of r)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType(),this.loadingOpts()):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>r?n.showLoading(this.loadingType(),this.loadingOpts()):n.hideLoading())}setOption(r,n){if(this.chart)try{this.chart.setOption(r,n)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){var r=this;return(0,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:a})=>a(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,vC.n)(n=>new sC.c(a=>(n.on(r,i=>this.ngZone.run(()=>a.next(i))),()=>{this.chart&&(this.chart.isDisposed()||n.off(r))}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=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 mv(t){return{provide:yv,useValue:t}}let gC=(()=>{class t{static forRoot(r){return{ngModule:t,providers:[mv(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 j=Z(5215),yC=function(){return function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Nr=new(function(){return function t(){this.browser=new yC,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?(Nr.wxa=!0,Nr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Nr.worker=!0:!Nr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Nr.node=!0,Nr.svgSupported=!0):function _C(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);if(n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u"){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,Nr);const ue=Nr;var Fr="12px sans-serif",wC=function TC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-20)/100;e[n]=a}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Dt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Dt.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Fr),t.measureText(r);r=r||"";var i=/((?:\d+)?\.?\d*)px/.exec(n=n||Fr),o=i&&+i[1]||12,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=wC[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 _v(t){for(var e in Dt)t[e]&&(Dt[e]=t[e])}var Sv=zt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Cv=zt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ia=Object.prototype.toString,no=Array.prototype,DC=no.forEach,MC=no.filter,Nu=no.slice,AC=no.map,bv=function(){}.constructor,ao=bv?bv.prototype:null,Fu="__proto__",LC=2311;function zu(){return LC++}function io(){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=ia.call(t);if("[object Array]"===r){if(!sa(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=le(t[n])}}else if(Cv[r]){if(!sa(t)){var i=t.constructor;if(i.from)e=i.from(t);else for(e=new i(t.length),n=0,a=t.length;n<a;n++)e[n]=t[n]}}else if(!Sv[r]&&!sa(t)&&!oa(t))for(var o in e={},t)t.hasOwnProperty(o)&&o!==Fu&&(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!==Fu){var a=t[n],i=e[n];!K(i)||!K(a)||G(i)||G(a)||oa(i)||oa(a)||Gu(i)||Gu(a)||sa(i)||sa(a)?(r||!(n in t))&&(t[n]=le(e[n])):xe(a,i,r)}return t}function PC(t,e){for(var r=t[0],n=1,a=t.length;n<a;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!==Fu&&(t[r]=e[r]);return t}function we(t,e,r){for(var n=ge(e),a=0,i=n.length;a<i;a++){var o=n[a];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var RC=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 Hu(t,e){var r=t.prototype;function n(){}for(var a in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function Ft(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];"constructor"!==i&&(r?null!=e[i]:null==t[i])&&(t[i]=e[i])}else 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===DC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function $(t,e,r){if(!t)return[];if(!e)return so(t);if(t.map&&t.map===AC)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function zt(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function Pe(t,e,r){if(!t)return[];if(!e)return so(t);if(t.filter&&t.filter===MC)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function IC(t,e,r){if(t&&e)for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}function 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=ao&&ee(ao.bind)?ao.call.bind(ao.bind):function EC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Nu.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(Nu.call(arguments)))}}function G(t){return Array.isArray?Array.isArray(t):"[object Array]"===ia.call(t)}function ee(t){return"function"==typeof t}function X(t){return"string"==typeof t}function oo(t){return"[object String]"===ia.call(t)}function _e(t){return"number"==typeof t}function K(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Gu(t){return!!Sv[ia.call(t)]}function rt(t){return!!Cv[ia.call(t)]}function oa(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Wa(t){return null!=t.colorStops}function xv(t){return null!=t.image}function kC(t){return"[object RegExp]"===ia.call(t)}function qa(t){return t!=t}function Ua(){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 zr(t,e,r){return t??e??r}function so(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Nu.apply(t,e)}function uo(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 er(t,e){if(!t)throw new Error(e)}function Ht(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tv="__ec_primitive__";function lo(t){t[Tv]=!0}function sa(t){return t[Tv]}var OC=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}(),wv="function"==typeof Map,Dv=function(){function t(e){var r=G(e);this.data=function BC(){return wv?new Map:new OC}();var n=this;function a(i,o){r?n.set(i,o):n.set(o,i)}e instanceof t?e.each(a):e&&D(e,a)}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return wv?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ie(t){return new Dv(t)}function Mv(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];var a=t.length;for(n=0;n<e.length;n++)r[n+a]=e[n];return r}function Ya(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 Vu(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 Av=180/Math.PI,NC=Number.EPSILON||Math.pow(2,-52);function cn(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function FC(t,e){return t[0]=e[0],t[1]=e[1],t}function Lv(t){return[t[0],t[1]]}function zC(t,e,r){return t[0]=e,t[1]=r,t}function Wu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function HC(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Pv(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function qu(t){return Math.sqrt(Uu(t))}var GC=qu;function Uu(t){return t[0]*t[0]+t[1]*t[1]}var VC=Uu;function WC(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function qC(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function UC(t,e){return t[0]*e[0]+t[1]*e[1]}function fo(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Rv(t,e){var r=qu(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function co(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ho=co;function Iv(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var hn=Iv;function YC(t,e){return t[0]=-e[0],t[1]=-e[1],t}function vo(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],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function Hr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Gr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ua=function(){return function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}}(),XC=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 ua(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new ua(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new ua(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new ua(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ua(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ua(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const jC=XC;var ZC=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof r&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;null!=r&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var u={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,f=i[e][l];return f&&f.callAtLast?i[e].splice(l,0,u):i[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,u=0;u<s;u++){var l=a[u];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],u=a.length,l=0;l<u;l++){var f=a[l];if(!i||!i.filter||null==f.query||i.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const tr=ZC;var KC=Math.log(2);function Yu(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(1===e){var u=Math.round(Math.log((1<<s)-1&~a)/KC);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*t[r][v]*Yu(t,e-1,f,l,a|d,i),h++)}return i[o]=c,c}function Ev(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=Yu(r,8,0,0,0,n);if(0!==a){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Yu(r,7,0===o?1:0,1<<o,1<<s,n)/a*e[o];return function(u,l,f){var c=l*i[6]+f*i[7]+1;u[0]=(l*i[0]+f*i[1]+i[2])/c,u[1]=(l*i[3]+f*i[4]+i[5])/c}}}var po="___zrEVENTSAVED",Xu=[];function ju(t,e,r,n,a){if(e.getBoundingClientRect&&ue.domSupported&&!kv(e)){var i=e[po]||(e[po]={}),o=function JC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),u=i%2,l=(i>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",a[l]+":0",n[1-u]+":auto",a[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}(e,i),s=function eb(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,v=f.left,h=f.top;o.push(v,h),u=u&&i&&v===i[c]&&h===i[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&a?a:(e.srcCoords=o,e[n]=r?Ev(s,o):Ev(o,s))}(o,i,a);if(s)return s(t,r,n),!0}return!1}function kv(t){return"CANVAS"===t.nodeName.toUpperCase()}var tb=/([&<>"'])/g,rb={"&":"&","<":"<",">":">",'"':""","'":"'"};function at(t){return null==t?"":(t+"").replace(tb,function(e,r){return rb[r]})}var nb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zu=[],ab=ue.browser.firefox&&+ue.browser.version.split(".")[0]<39;function Ku(t,e,r,n){return r=r||{},n?Ov(t,e,r):ab&&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):Ov(t,e,r),r}function Ov(t,e,r){if(ue.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(kv(t)){var i=t.getBoundingClientRect();return r.zrX=n-i.left,void(r.zrY=a-i.top)}if(ju(Zu,t,n,a))return r.zrX=Zu[0],void(r.zrY=Zu[1])}r.zrX=r.zrY=0}function $u(t){return t||window.event}function Mt(t,e,r){if(null!=(e=$u(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&&Ku(t,o,e,r)}else{Ku(t,e,e,r);var i=function ib(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*Math.abs(0!==n?n:r)*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&nb.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function sb(t,e,r,n){t.removeEventListener(e,r,n)}var Bv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},ub=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var u=a[o],l=Ku(n,u,{});i.points.push([l.zrX,l.zrY]),i.touches.push(u)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Qu)if(Qu.hasOwnProperty(r)){var n=Qu[r](this._track,e);if(n)return n}},t}();function Nv(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var Qu={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Nv(n)/Nv(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function lb(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 Gt(){return[1,0,0,1,0,0]}function Xa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function go(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 vn(t,e,r){var a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=e[0]*r[0]+e[2]*r[1],t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t}function yo(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 mo(t,e,r,n){void 0===n&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=a*c+s*f,t[1]=-a*f+s*c,t[2]=i*c+u*f,t[3]=-i*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function Fv(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function dn(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],u=r*o-i*n;return u?(t[0]=o*(u=1/u),t[1]=-i*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*a)*u,t[5]=(i*a-r*s)*u,t):null}function fb(t){var e=[1,0,0,1,0,0];return go(e,t),e}var cb=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}();const te=cb;var pn=Math.min,la=Math.max,Ju=Math.abs,zv=["x","y"],hb=["width","height"],gn=new te,yn=new te,mn=new te,_n=new te,_t=Gv(),ja=_t.minTv,el=_t.maxTv,Za=[0,0],tl=function(){function t(e,r,n,a){t.set(this,e,r,n,a)}return t.set=function(e,r,n,a,i){return a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),e.x=r,e.y=n,e.width=a,e.height=i,e},t.prototype.union=function(e){var r=pn(e.x,this.x),n=pn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?la(e.x+e.width,this.x+this.width)-r:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?la(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,a=e.height/r.height,i=[1,0,0,1,0,0];return yo(i,i,[-r.x,-r.y]),Fv(i,i,[n,a]),yo(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,a){n&&te.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(vb,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(db,r.x,r.y,r.width,r.height));var s=!!n;_t.reset(a,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||i)&&(Za[0]=1/0,Za[1]=0,Hv(l,f,h,d,0,s,i,o),Hv(c,v,y,p,1,s,i,o),s&&te.copy(n,g?_t.useDir?_t.dirMinTv:ja:el)),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 a=n[0],i=n[3],s=n[5];return e.x=r.x*a+n[4],e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}gn.x=mn.x=r.x,gn.y=_n.y=r.y,yn.x=_n.x=r.x+r.width,yn.y=mn.y=r.y+r.height,gn.transform(n),_n.transform(n),yn.transform(n),mn.transform(n),e.x=pn(gn.x,yn.x,mn.x,_n.x),e.y=pn(gn.y,yn.y,mn.y,_n.y);var u=la(gn.x,yn.x,mn.x,_n.x),l=la(gn.y,yn.y,mn.y,_n.y);e.width=u-e.x,e.height=l-e.y}else e!==r&&t.copy(e,r)},t}(),vb=new tl(0,0,0,0),db=new tl(0,0,0,0);function Hv(t,e,r,n,a,i,o,s){var u=Ju(e-r),l=Ju(n-t),f=pn(u,l),c=zv[a],v=zv[1-a],h=hb[a];e<r||n<t?u<l?(i&&(el[c]=-u),s&&(o[c]=e,o[h]=0)):(i&&(el[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=la(t,r),o[h]=pn(e,n)-o[c]),i&&(f<Za[0]||_t.useDir)&&(Za[0]=pn(f,Za[0]),(u<l||!_t.bidirectional)&&(ja[c]=u,ja[v]=0,_t.useDir&&_t.calcDirMTV()),(u>=l||!_t.bidirectional)&&(ja[c]=-l,ja[v]=0,_t.useDir&&_t.calcDirMTV())))}function Gv(){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(i,o){n.touchThreshold=0,i&&null!=i.touchThreshold&&(n.touchThreshold=la(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&null!=i.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,u=Math.sin(t),l=Math.cos(t),f=u*i.y+l*i.x;a(f)?a(i.x)&&a(i.y)&&o.set(0,0):(r.x=s*l/f,r.y=s*u/f,a(r.x)&&a(r.y)?o.set(0,0):(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r))}};function a(i){return Ju(i)<1e-10}return n}const ne=tl;function gb(){Bv(this.event)}var yb=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.handler=null,r}return(0,j.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(tr),Ka=function(){return function t(e,r){this.x=e,this.y=r}}(),mb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rl=new ne(0,0,0,0),Wv=function(t){function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new Ka(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new yb,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new jC(s),s}return(0,j.C6)(e,t),e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(mb,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=Uv(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var u=this._hovered=i?new Ka(n,a):this.findHover(n,a),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;"only_globalout"!==n&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==n&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ka(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){var i=(r=r||{}).target;if(!i||!i.silent){for(var o="on"+n,s=function pb(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:gb}}(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){"function"==typeof u[o]&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Ka(r,n);if(qv(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ne(r-l,n-l,u,u),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(rl.copy(v.getBoundingRect()),v.transform&&rl.applyTransform(v.transform),rl.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(qv(s,o,r+p*Math.cos(g),n+p*Math.sin(g),a),o.target)return o}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new ub);var a=this._gestureMgr;"start"===n&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===n&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Ka;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(tr);function _b(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!a||"silent"}return!1}function qv(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=_b(o,r,n))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function Uv(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){Wv.prototype[t]=function(e){var i,o,r=e.zrX,n=e.zrY,a=Uv(this,r,n);if(("mouseup"!==t||!a)&&(o=(i=this.findHover(r,n)).target),"mousedown"===t)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===t)this._upEl=o;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ho(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});const Sb=Wv;function Xv(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;!function bb(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function jv(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var u,i=t[n],o=e,s=n;o<s;)a(i,t[u=o+s>>>1])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=i}}function nl(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])>0){for(s=n-a;u<s&&i(t,e[r+a+u])>0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}else{for(s=a+1;u<s&&i(t,e[r+a-u])<=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}for(o++;o<u;){var f=o+(u-o>>>1);i(t,e[r+f])>0?o=f+1:u=f}return u}function al(t,e,r,n,a,i){var o=0,s=0,u=1;if(i(t,e[r+a])<0){for(s=a+1;u<s&&i(t,e[r+a-u])<0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}else{for(s=n-a;u<s&&i(t,e[r+a+u])>=0;)o=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}for(o++;o<u;){var f=o+(u-o>>>1);i(t,e[r+f])<0?u=f:o=f+1}return u}function _o(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<32)return void jv(t,r,n,r+(i=Xv(t,r,n,e)),e);var o=function xb(t,e){var n,a,r=7,i=0,o=[];function f(h){var d=n[h],y=a[h],p=n[h+1],g=a[h+1];a[h]=y+g,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=al(t[p],t,d,y,0,e);d+=m,0!==(y-=m)&&0!==(g=nl(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=nl(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-nl(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=[],a=[],{mergeRuns:function u(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}},forceMergeRuns:function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}},pushRun:function s(h,d){n[i]=h,a[i]=d,i+=1}}}(t,e),s=function Cb(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((i=Xv(t,r,n,e))<s){var u=a;u>s&&(u=s),jv(t,r,r+u,r+i,e),i=u}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(0!==a);o.forceMergeRuns()}}var Zv=!1;function il(){Zv||(Zv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Kv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tb=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kv}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,_o(n,Kv)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=a,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(il(),d.z=0),isNaN(d.z2)&&(il(),d.z2=0),isNaN(d.zlevel)&&(il(),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 a=fe(this._roots,e);a>=0&&this._roots.splice(a,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const wb=Tb;var $v;$v=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 ol=$v;var So={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-So.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*So.bounceIn(2*t):.5*So.bounceOut(2*t-1)+.5}};const Qv=So;var Co=Math.pow,Vr=Math.sqrt,ed=Vr(3),xo=1/3,rr=cn(),At=cn(),ca=cn();function Wr(t){return t>-1e-8&&t<1e-8}function td(t){return t>1e-8||t<-1e-8}function Ye(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function rd(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function nd(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-2*e+t),u=3*(e-t),l=t-a,f=s*s-3*o*u,c=s*u-9*o*l,v=u*u-3*s*l,h=0;if(Wr(f)&&Wr(c))Wr(s)?i[0]=0:(d=-u/s)>=0&&d<=1&&(i[h++]=d);else{var y=c*c-4*f*v;if(Wr(y)){var p=c/f,g=-p/2;(d=-s/o+p)>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g)}else if(y>0){var m=Vr(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);(d=(-s-((_=_<0?-Co(-_,xo):Co(_,xo))+(S=S<0?-Co(-S,xo):Co(S,xo))))/(3*o))>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Vr(f*f*f)),C=Math.acos(b)/3,x=Vr(f),T=Math.cos(C),d=(-s-2*x*T)/(3*o),w=(g=(-s+x*(T+ed*Math.sin(C)))/(3*o),(-s+x*(T-ed*Math.sin(C)))/(3*o));d>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g),w>=0&&w<=1&&(i[h++]=w)}}return h}function ad(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Wr(o))td(i)&&(l=-s/i)>=0&&l<=1&&(a[u++]=l);else{var f=i*i-4*o*s;if(Wr(f))a[0]=-i/(2*o);else if(f>0){var l,c=Vr(f),v=(-i-c)/(2*o);(l=(-i+c)/(2*o))>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}function To(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,u=(n-r)*a+r,l=(s-o)*a+o,f=(u-s)*a+s,c=(f-l)*a+l;i[0]=t,i[1]=o,i[2]=l,i[3]=c,i[4]=c,i[5]=f,i[6]=u,i[7]=n}function id(t,e,r,n,a,i,o,s,u,l,f){var c,d,y,p,g,v=.005,h=1/0;rr[0]=u,rr[1]=l;for(var m=0;m<1;m+=.05)At[0]=Ye(t,r,a,o,m),At[1]=Ye(e,n,i,s,m),(p=hn(rr,At))<h&&(c=m,h=p);h=1/0;for(var _=0;_<32&&!(v<1e-4);_++)y=c+v,At[0]=Ye(t,r,a,o,d=c-v),At[1]=Ye(e,n,i,s,d),p=hn(At,rr),d>=0&&p<h?(c=d,h=p):(ca[0]=Ye(t,r,a,o,y),ca[1]=Ye(e,n,i,s,y),g=hn(ca,rr),y<=1&&g<h?(c=y,h=g):v*=.5);return f&&(f[0]=Ye(t,r,a,o,c),f[1]=Ye(e,n,i,s,c)),Vr(h)}function Db(t,e,r,n,a,i,o,s,u){for(var l=t,f=e,c=0,v=1/u,h=1;h<=u;h++){var d=h*v,y=Ye(t,r,a,o,d),p=Ye(e,n,i,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 a=1-n;return a*(a*t+2*n*e)+n*n*r}function od(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function sd(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function wo(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function ud(t,e,r,n,a,i,o,s,u){var l,f=.005,c=1/0;rr[0]=o,rr[1]=s;for(var v=0;v<1;v+=.05)At[0]=$e(t,r,a,v),At[1]=$e(e,n,i,v),(h=hn(rr,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,a,y),At[1]=$e(e,n,i,y);var h=hn(At,rr);if(y>=0&&h<c)l=y,c=h;else{ca[0]=$e(t,r,a,p),ca[1]=$e(e,n,i,p);var g=hn(ca,rr);p<=1&&g<c?(l=p,c=g):f*=.5}}return u&&(u[0]=$e(t,r,a,l),u[1]=$e(e,n,i,l)),Vr(c)}function Ab(t,e,r,n,a,i,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=$e(t,r,a,v),d=$e(e,n,i,v),y=h-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=h,u=d}return l}var Lb=/cubic-bezier\(([0-9,\.e ]+)\)/;function ld(t){var e=t&&Lb.exec(t);if(e){var r=e[1].split(","),n=+Ht(r[0]),a=+Ht(r[1]),i=+Ht(r[2]),o=+Ht(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:nd(0,n,i,1,u,s)&&Ye(0,a,o,1,s[0])}}}var Pb=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,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-a%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=r},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ee(e)?e:Qv[e]||ld(e)},t}();const Rb=Pb;var fd=function(){return function t(e){this.value=e}}(),Ib=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new fd(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}(),Eb=function(){function t(e){this._list=new Ib,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(null==a[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete a[u.key],i=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new fd(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(null!=r)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const ha=Eb;var cd={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 Vt(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ja(t){return t<0?0:t>1?1:t}function Do(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Vt(parseFloat(e)/100*255):Vt(parseInt(e,10))}function qr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Ja(parseFloat(e)/100):Ja(parseFloat(e))}function sl(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 Ur(t,e,r){return t+(e-t)*r}function Lt(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function ul(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var hd=new ha(20),Mo=null;function va(t,e){Mo&&ul(Mo,e),Mo=hd.put(t,Mo||e.slice())}function Ct(t,e){if(t){e=e||[];var r=hd.get(t);if(r)return ul(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in cd)return ul(e,cd[n]),va(t,e),e;var i,a=n.length;if("#"===n.charAt(0))return 4===a||5===a?(i=parseInt(n.slice(1,4),16))>=0&&i<=4095?(Lt(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(n.slice(4),16)/15:1),va(t,e),e):void Lt(e,0,0,0,1):7===a||9===a?(i=parseInt(n.slice(1,7),16))>=0&&i<=16777215?(Lt(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(n.slice(7),16)/255:1),va(t,e),e):void Lt(e,0,0,0,1):void 0;var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===a){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(4!==l.length)return 3===l.length?Lt(e,+l[0],+l[1],+l[2],1):Lt(e,0,0,0,1);f=qr(l.pop());case"rgb":return l.length>=3?(Lt(e,Do(l[0]),Do(l[1]),Do(l[2]),3===l.length?f:qr(l[3])),va(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]=qr(l[3]),ll(l,e),va(t,e),e);case"hsl":return 3!==l.length?void Lt(e,0,0,0,1):(ll(l,e),va(t,e),e);default:return}}Lt(e,0,0,0,1)}}function ll(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=qr(t[1]),a=qr(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=2*a-i;return Lt(e=e||[],Vt(255*sl(o,i,r+1/3)),Vt(255*sl(o,i,r)),Vt(255*sl(o,i,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function fl(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 Yr(r,4===r.length?"rgba":"rgb")}}function Bb(t){var e=Ct(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function vd(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],u=n-a;return r[0]=Vt(Ur(o[0],s[0],u)),r[1]=Vt(Ur(o[1],s[1],u)),r[2]=Vt(Ur(o[2],s[2],u)),r[3]=Ja(Ur(o[3],s[3],u)),r}}var Nb=vd;function dd(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=Ct(e[a]),s=Ct(e[i]),u=n-a,l=Yr([Vt(Ur(o[0],s[0],u)),Vt(Ur(o[1],s[1],u)),Vt(Ur(o[2],s[2],u)),Ja(Ur(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}var Fb=dd;function Ao(t,e,r,n){var a=Ct(t);if(t)return a=function Ob(t){if(t){var u,l,e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2;if(0===o)u=0,l=0;else{l=s<.5?o/(i+a):o/(2-i-a);var f=((i-e)/6+o/2)/o,c=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?u=v-c:r===i?u=1/3+f-v:n===i&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[360*u,l,s];return null!=t[3]&&h.push(t[3]),h}}(a),null!=e&&(a[0]=function kb(t){return(t=Math.round(t))<0?0:t>360?360:t}(ee(e)?e(a[0]):e)),null!=r&&(a[1]=qr(ee(r)?r(a[1]):r)),null!=n&&(a[2]=qr(ee(n)?n(a[2]):n)),Yr(ll(a),"rgba")}function zb(t,e){var r=Ct(t);if(r&&null!=e)return r[3]=Ja(e),Yr(r,"rgba")}function Yr(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 ei(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 Hb(){return Yr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var pd=new ha(100);function cl(t){if(X(t)){var e=pd.get(t);return e||(e=fl(t,-.1),pd.put(t,e)),e}if(Wa(t)){var r=N({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:fl(n.color,-.1)}}),r}return t}Math,ue.hasGlobalWindow&&ee(window.btoa);var vl=Array.prototype.slice;function Sr(t,e,r){return(e-t)*r+t}function dl(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Sr(e[i],r[i],n);return t}function Po(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function _d(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function Xb(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function jb(t,e,r){var n=t,a=e;if(n.push&&a.push){var i=n.length,o=a.length;if(i!==o)if(i>o)n.length=o;else for(var u=i;u<o;u++)n.push(1===r?a[u]:vl.call(a[u]));var l=n[0]&&n[0].length;for(u=0;u<n.length;u++)if(1===r)isNaN(n[u])&&(n[u]=a[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=a[u][f])}}function ri(t){if(Ke(t)){var e=t.length;if(Ke(t[0])){for(var r=[],n=0;n<e;n++)r.push(vl.call(t[n]));return r}return vl.call(t)}return t}function Ro(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 bd(t){return 4===t||5===t}function ko(t){return 1===t||2===t}var ai=[0,0,0,0],Kb=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=6,u=r;if(Ke(r)){var l=function Zb(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)&&!qa(r))s=0;else if(X(r))if(isNaN(+r)){var f=Ct(r);f&&(u=f,s=3)}else s=0;else if(Wa(r)){var c=N({},u);c.colorStops=$(r.colorStops,function(h){return{offset:h.offset,color:Ct(h.color)}}),function qb(t){return"linear"===t.type}(r)?s=4:function Ub(t){return"radial"===t.type}(r)&&(s=5),u=c}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ee(n)?n:Qv[n]||ld(n)),a.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 a=this.valType,i=n.length,o=n[i-1],s=this.discrete,u=ko(a),l=bd(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==i-1?jb(v,h,a):l&&Xb(v.colorStops,h.colorStops))}if(!s&&5!==a&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;var d=n[0].value;for(f=0;f<i;f++)0===a?n[f].additiveValue=n[f].value-d:3===a?n[f].additiveValue=Po([],n[f].value,d,-1):ko(a)&&(n[f].additiveValue=1===a?Po([],n[f].value,d,-1):_d([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,h,d,n=null!=this._additiveTrack,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=3===i,c=this._lastFr,v=Math.min;if(1===s)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){for(f=v(c+1,s-1);f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,g=0===p?1:v((r-h.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:l?ai:e[u];if((ko(i)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)e[u]=g<1?h.rawValue:d.rawValue;else if(ko(i))1===i?dl(m,h[a],d[a],g):function Yb(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Sr(e[o][s],r[o][s],n)}}(m,h[a],d[a],g);else if(bd(i)){var _=h[a],S=d[a],b=4===i;e[u]={type:b?"linear":"radial",x:Sr(_.x,S.x,g),y:Sr(_.y,S.y,g),colorStops:$(_.colorStops,function(x,T){var w=S.colorStops[T];return{offset:Sr(x.offset,w.offset,g),color:Ro(dl([],x.color,w.color,g))}}),global:S.global},b?(e[u].x2=Sr(_.x2,S.x2,g),e[u].y2=Sr(_.y2,S.y2,g)):e[u].r=Sr(_.r,S.r,g)}else if(l)dl(m,h[a],d[a],g),n||(e[u]=Ro(m));else{var C=Sr(h[a],d[a],g);n?this._additiveValue=C:e[u]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;0===r?e[n]=e[n]+a:3===r?(Ct(e[n],ai),Po(ai,ai,a,1),e[n]=Ro(ai)):1===r?Po(e[n],e[n],a,1):2===r&&_d(e[n],e[n],a,1)},t}(),$b=function(){function t(e,r,n,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a?io("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ge(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],u=i[s];if(!u){u=i[s]=new Kb(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=Ro(l))}else l=this._target[s];if(null==l)continue;e>0&&u.addKeyframe(0,ri(l),a),this._trackKeys.push(s)}u.addKeyframe(e,ri(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(a,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Rb({life:a,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,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(o&&!o.isFinished()){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[i]=ri(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ge(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const yl=$b;function da(){return(new Date).getTime()}var Qb=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,j.C6)(e,t),e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=da()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next;i.step(n,a)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0,ol(function n(){r._running&&(ol(n),!r._paused&&r.update())})},e.prototype.start=function(){this._running||(this._time=da(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=da(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=da()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new yl(r,n.loop);return this.addAnimator(a),a},e}(tr);const Jb=Qb;var t,r,ml=ue.domSupported,_l=(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(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a})}),xd_mouse=["mousemove","mouseup"],xd_pointer=["pointermove","pointerup"],Td=!1;function Sl(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Cl(t){t&&(t.zrByTouch=!0)}function wd(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 nx=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}}(),Wt={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){wd(this,(t=Mt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Td=!0,t=Mt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Td||(t=Mt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Cl(t=Mt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Wt.mousemove.call(this,t),Wt.mousedown.call(this,t)},touchmove:function(t){Cl(t=Mt(this.dom,t)),this.handler.processGesture(t,"change"),Wt.mousemove.call(this,t)},touchend:function(t){Cl(t=Mt(this.dom,t)),this.handler.processGesture(t,"end"),Wt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Wt.click.call(this,t)},pointerdown:function(t){Wt.mousedown.call(this,t)},pointermove:function(t){Sl(t)||Wt.mousemove.call(this,t)},pointerup:function(t){Wt.mouseup.call(this,t)},pointerout:function(t){Sl(t)||Wt.mouseout.call(this,t)}};D(["click","dblclick","contextmenu"],function(t){Wt[t]=function(e){e=Mt(this.dom,e),this.trigger(t,e)}});var bl={pointermove:function(t){Sl(t)||bl.mousemove.call(this,t)},pointerup:function(t){bl.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 Oo(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,function ob(t,e,r,n){t.addEventListener(e,r,n)}(t.domTarget,e,r,n)}function xl(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&sb(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Dd=function(){return function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}}(),ox=function(t){function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Dd(r,Wt),ml&&(a._globalHandlerScope=new Dd(document,bl)),function ax(t,e){var r=e.domHandlers;ue.pointerEventsSupported?D(_l.pointer,function(n){Oo(e,n,function(a){r[n].call(t,a)})}):(ue.touchEventsSupported&&D(_l.touch,function(n){Oo(e,n,function(a){r[n].call(t,a),function tx(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(_l.mouse,function(n){Oo(e,n,function(a){a=$u(a),e.touching||r[n].call(t,a)})}))}(a,a._localHandlerScope),a}return(0,j.C6)(e,t),e.prototype.dispose=function(){xl(this._localHandlerScope),ml&&xl(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,ml&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?function ix(t,e){function r(n){Oo(e,n,function a(i){i=$u(i),wd(t,i.target)||(i=function rx(t,e){return Mt(t.dom,new nx(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}ue.pointerEventsSupported?D(xd_pointer,r):ue.touchEventsSupported||D(xd_mouse,r)}(this,n):xl(n)}},e}(tr);const sx=ox;var Md=1;ue.hasGlobalWindow&&(Md=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bo=Md,wl="#333",Dl="#ccc",Ad=Xa;function Sn(t){return t>5e-5||t<-5e-5}var Cn=[],pa=[],Ml=[1,0,0,1,0,0],Al=Math.abs,lx=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 Sn(this.rotation)||Sn(this.x)||Sn(this.y)||Sn(this.scaleX-1)||Sn(this.scaleY-1)||Sn(this.skewX)||Sn(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):Ad(n),e&&(r?vn(n,e,n):go(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ad(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(Cn);var n=Cn[0]<0?-1:1,a=Cn[1]<0?-1:1,i=((Cn[0]-n)*r+n)/Cn[0]||0,o=((Cn[1]-a)*r+a)/Cn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],dn(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],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],vn(pa,e.invTransform,r),r=pa);var n=this.originX,a=this.originY;(n||a)&&(Ml[4]=n,Ml[5]=a,vn(pa,r,Ml),pa[4]-=n,pa[5]-=a,r=pa),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&mt(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&mt(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Al(e[0]-1)>1e-10&&Al(e[3]-1)>1e-10?Math.sqrt(Al(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ll(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||u){var d=n+s,y=a+u;r[4]=-d*i-v*y*o,r[5]=-y*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,l&&mo(r,r,l),r[4]+=n+f,r[5]+=a+c,r},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t;var e}(),nr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ll(t,e){for(var r=0;r<nr.length;r++){var n=nr[r];t[n]=e[n]}}const No=lx;var Fo;function qt(t){Fo||(Fo=new ha(100));var e=Fo.get(t=t||Fr);return e||(e={font:t,strWidthCache:new ha(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Dt.measureText("\u56fd",t).width,asciiCharWidth:Dt.measureText("a",t).width},Fo.put(t,e)),e}var Pl=0;function Rd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function cx(t){if(!(Pl>=5)){t=t||Fr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Dt.measureText(String.fromCharCode(n),t).width;var a=+new Date-r;return a>16?Pl=5:a>2&&Pl++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Ut(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 Id(t,e,r,n){var a=Ut(qt(e),t),i=zo(e),o=ga(0,a,r),s=bn(0,i,n);return new ne(o,s,a,i)}function Ed(t,e,r,n){var a=((t||"")+"").split("\n");if(1===a.length)return Id(a[0],e,r,n);for(var o=new ne(0,0,0,0),s=0;s<a.length;s++){var u=Id(a[s],e,r,n);0===s?o.copy(u):o.union(u)}return o}function ga(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function bn(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function zo(t){return qt(t).stWideCharWidth}function Xr(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function kd(t,e,r){var n=e.position||"inside",a=null!=e.distance?e.distance:5,i=r.height,o=r.width,s=i/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=Xr(n[0],r.width),l+=Xr(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=a,l+=s,f="right",c="middle";break;case"right":u+=a+o,l+=s,c="middle";break;case"top":u+=o/2,l-=a,f="center",c="bottom";break;case"bottom":u+=o/2,l+=i+a,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=a,l+=s,c="middle";break;case"insideRight":u+=o-a,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=a,f="center";break;case"insideBottom":u+=o/2,l+=i-a,f="center",c="bottom";break;case"insideTopLeft":u+=a,l+=a;break;case"insideTopRight":u+=o-a,l+=a,f="right";break;case"insideBottomLeft":u+=a,l+=i-a,c="bottom";break;case"insideBottomRight":u+=o-a,l+=i-a,f="right",c="bottom"}return(t=t||{}).x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var Rl="__zr_normal__",Il=nr.concat(["ignore"]),hx=zt(nr,function(t,e){return t[e]=!0,t},{ignore:!1}),ya={},vx=new ne(0,0,0,0),Ho=[],El=function(){function t(e){this.id=zu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,u=!1;i.parent=a?this:null;var l=!1;i.copyTransform(r);var f=null!=n.position,c=n.autoOverflowArea,v=void 0;if((c||f)&&((v=vx).copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ya,n,v):kd(ya,n,v),i.x=ya.x,i.y=ya.y,o=ya.align,s=ya.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=Xr(h[0],v.width),y=Xr(h[1],v.height)),l=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+y+(a?0:v.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=g.overflowRect=g.overflowRect||new ne(0,0,0,0);i.getLocalTransform(Ho),dn(Ho,Ho),ne.copy(m,v),m.applyTransform(Ho)}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()?Dl:wl},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 a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Yr(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 a=ge(e),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Rl)){var o=a.targetName;a.saveTo(o?r[o]:r)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Il)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];null!=e[i]&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Rl,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Rl;if(this.hasState()||!i){var s=this.currentStates,u=this.stateTransition;if(!(fe(s,e)>=0)||!r&&1!==s.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i)return void io("State "+e+" not exists.");i||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||a);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),i?(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 a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var u=0;u<o;u++)if(e[u]!==i[u]){s=!1;break}if(s)return;for(u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&a.push(f)}var c=a[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),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 a=this.currentStates.slice(),i=fe(a,e),o=fe(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n,r={},a=0;a<e.length;a++){var i=e[a];N(r,i),i.textConfig&&N(n=n||{},i.textConfig)}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=N({},a?this.textConfig:n.textConfig),N(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Il.length;f++){var c=Il[f],v=i&&hx[c];r&&null!=r[c]?v?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&null!=n[c]&&(v?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!i)for(f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)},t.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new No,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 i=new yl(e?this[e]:this,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=fe(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];e&&e!==s.scope?i.push(s):s.stop(r)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){kl(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){kl(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=kl(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function a(i,o,s,u){function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(v){f[u]=v}})}Object.defineProperty(e,i,{get:function(){return this[o]||l(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();function kl(t,e,r,n,a){var i=[];Od(t,"",t,e,r=r||{},n,i,a);var o=i.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,--o<=0&&(s?u&&u():l&&l())},c=function(){--o<=0&&(s?u&&u():l&&l())};o||u&&u(),i.length>0&&r.during&&i[0].during(function(d,y){r.during(y)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function Ol(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function px(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),Ol(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(function dx(t){return Ke(t[0])}(a))for(var s=a[0].length,u=0;u<o;u++)i[u]?Ol(i[u],a[u],s):i[u]=Array.prototype.slice.call(a[u]);else Ol(i,a,o);i.length=a.length}else t[r]=e[r]}function Od(t,e,r,n,a,i,o,s){for(var u=ge(n),l=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!K(i),d=t.animators,y=[],p=0;p<u.length;p++){var m=n[g=u[p]];if(null!=m&&null!=r[g]&&(h||i[g]))if(!K(m)||Ke(m)||Wa(m))y.push(g);else{if(e){s||(r[g]=m,t.updateDuringAnimation(e));continue}Od(t,g,r[g],m,a,i&&i[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(a.force||(y=Pe(y,function(L){return!function gx(t,e){return t===e||Ke(t)&&Ke(e)&&function yx(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||a.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]]=ri(r[g]),px(r,n,g)}(b=new yl(r,!1,!1,c?Pe(d,function(R){return R.targetName===e}):null)).targetName=e,a.scope&&(b.scope=a.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)}}Ft(El,tr),Ft(El,No);const Bd=El;var Nd=function(t){function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return(0,j.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=fe(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=fe(a,r);return i<0||(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh()),this},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++)r.call(n,a[i],i);return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(r)},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(r)},e.prototype.getBoundingRect=function(r){for(var n=new ne(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var u=a[s];if(!u.ignore&&!u.invisible){var l=u.getBoundingRect(),f=u.getLocalTransform(i);f?(ne.applyTransform(n,l,f),(o=o||n.clone()).union(n)):(o=o||l.clone()).union(l)}}return o||n},e}(Bd);Nd.prototype.type="group";const bt=Nd;var Nl,Go={},xn={},Sx=function(){function t(e,r,n){var a=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 i=new wb,o=n.renderer||"canvas";Go[o]||(o=ge(Go)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Go[o](r,i,n,e),u=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var h,l=ue.node||ue.worker||u?null:new sx(s.getViewportRoot(),s.root),f=n.useCoarsePointer;(null==f||"auto"===f?ue.touchEventsSupported:!!f)&&(h=Q(n.pointerSize,44)),this.handler=new Sb(i,s,l,s.root,h),this.animation=new Jb({stage:{update:u?null:function(){return a._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 _x(t){if(!t)return!1;if("string"==typeof t)return ei(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=ei(e[a].color,1);return(r/=n)<.4}return!1}(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(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=da();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=da();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-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 mx(t){delete xn[t]}(this.id))},t}();function Bl(t,e){var r=new Sx(zu(),t,e);return xn[r.id]=r,r}function Cx(t){t.dispose()}function bx(){for(var t in xn)xn.hasOwnProperty(t)&&xn[t].dispose();xn={}}function xx(t){return xn[t]}function Fd(t,e){Go[t]=e}function Tx(t){if("function"==typeof Nl)return Nl(t)}function zd(t){Nl=t}var Dx="6.0.0",ii=Math.min,Yt=Math.max,ar=Math.abs;function Vo(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],u=i-a,l=s-o;if(0===u)return 0===l?o:(o+s)/2;if(n)if(u>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/u*l+o}var Se=function Ax(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 Lx(t,e,r){return X(t)?function Mx(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 ir(t,e,r){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),r?t:+t}function Px(t){return t.sort(function(e,r){return e-r}),t}function or(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 Vd(t)}function Vd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf(".");return Math.max(0,(i<0?0:a-1-i)-n)}function Wd(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(ar(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rx(t,e,r){return t[e]&&qd(t,r)[e]||0}function qd(t,e){var r=zt(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(0===r)return[];for(var n=Math.pow(10,e),a=$(t,function(h){return(isNaN(h)?0:h)/r*n*100}),i=100*n,o=$(a,function(h){return Math.floor(h)}),s=zt(o,function(h,d){return h+d},0),u=$(a,function(h,d){return h-o[d]});s<i;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,v=u.length;c<v;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return $(o,function(h){return h/n})}function Ix(t,e){var r=Math.max(or(t),or(e)),n=t+e;return r>20?n:ir(n,r)}var Ex=9007199254740991;function Fl(t){var e=2*Math.PI;return(t%e+e)%e}function oi(t){return t>-1e-4&&t<1e-4}var kx=/^(?:(\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 Cr(t){if(t instanceof Date)return t;if(X(t)){var e=kx.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 Ud(t){return Math.pow(10,zl(t))}function zl(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 Hl(t,e){var r=zl(t),n=Math.pow(10,r),a=t/n;return t=(e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Ox(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function Bx(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function br(t){var e=parseFloat(t);return e==t&&(0!==e||!X(t)||t.indexOf("x")<=0)?e:NaN}function Yd(t){return!isNaN(br(t))}function Xd(){return Math.round(9*Math.random())}function jd(t,e){return 0===e?t:jd(e,t%e)}function Zd(t,e){return null==t?e:null==e?t:t*e/jd(t,e)}function Kd(t,e,r){return(e-t)*r+t}var $d="series\0";function Ge(t){return t instanceof Array?t:null==t?[]:[t]}function Gl(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var Jd=["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 si(t){return!K(t)||G(t)||t instanceof Date?t:t.value}function Gx(t){return K(t)&&!(t instanceof Array)}function ep(t,e,r){var n="normalMerge"===r,a="replaceMerge"===r,i="replaceAll"===r;t=t||[],e=(e||[]).slice();var o=ie();D(e,function(u,l){K(u)||(e[l]=null)});var s=function Vx(t,e,r){var n=[];if("replaceAll"===r)return n;for(var a=0;a<t.length;a++){var i=t[a];i&&null!=i.id&&e.set(i.id,a),n.push({existing:"replaceMerge"===r||li(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}(t,o,r);return(n||a)&&function Wx(t,e,r,n){D(n,function(a,i){if(a&&null!=a.id){var o=ui(a.id),s=r.get(o);if(null!=s){var u=t[s];er(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=e[s],n[i]=null}}})}(s,t,o,e),n&&function qx(t,e){D(e,function(r,n){if(r&&null!=r.name)for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(null==i.id||null==r.id)&&!li(r)&&!li(i)&&tp("name",i,r))return t[a].newOption=r,void(e[n]=null)}})}(s,e),n||a?function Ux(t,e,r){D(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||li(a.existing)||a.existing&&null!=n.id&&!tp("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}(s,e,a):i&&function Yx(t,e){D(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function Xx(t){var e=ie();D(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),D(t,function(r){var n=r.newOption;er(!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 a=r.existing,i=r.newOption,o=r.keyInfo;if(K(i)){if(o.name=null!=i.name?ui(i.name):a?a.name:$d+n,a)o.id=ui(a.id);else if(null!=i.id)o.id=ui(i.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,r)}})}(s),s}function tp(t,e,r){var n=it(e[t],null),a=it(r[t],null);return null!=n&&null!=a&&n===a}function ui(t){return it(t,"")}function it(t,e){return null==t?e:X(t)?t:_e(t)||oo(t)?t+"":e}function Vl(t){var e=t.name;return!(!e||!e.indexOf($d))}function li(t){return t&&null!=t.id&&0===ui(t.id).indexOf("\0_ec_\0")}function fi(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_"+Kx++;return function(e){return e[t]||(e[t]={})}}var Kx=Xd();function Wl(t,e,r){var n=ql(e,r),i=n.queryOptionMap,s=n.others,u=r?r.defaultMainType:null;return!n.mainTypeSpecified&&u&&i.set(u,{}),i.each(function(l,f){var c=ci(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 ql(t,e){var r;if(X(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=ie(),i={},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,(a.get(f)||a.set(f,{}))[c]=s)}else i[u]=s}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var jr={useDefault:!0,enableAll:!1,enableNone:!1};function ci(t,e,r,n){n=n||jr;var a=r.index,i=r.id,o=r.name,s={models:null,specified:null!=a||null!=i||null!=o};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if("none"===a||!1===a){if(n.enableNone)return s.models=[],s;a=-1}return"all"===a&&(a=n.enableAll?i=o=null:-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function rp(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}!function(){function t(){}t.prototype.reset=function(e,r,n,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Tn="___EC__COMPONENT__CONTAINER___",np="___EC__EXTENDED_CLASS___";function sr(t){var e={main:"",sub:""};if(t){var r=t.split(".");e.main=r[0]||"",e.sub=r[1]||""}return e}function Ul(t,e){t.$constructor=t,t.extend=function(r){var a,n=this;return function n1(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}(n)?a=function(i){function o(){return i.apply(this,arguments)||this}return(0,j.C6)(o,i),o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Hu(a,this)),N(a.prototype,r),a[np]=!0,a.extend=this.extend,a.superCall=o1,a.superApply=s1,a.superClass=n,a}}function ap(t,e){t.extend=e.extend}var a1=Math.round(10*Math.random());function o1(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 s1(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Wo(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){(function t1(t){er(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(a),n.prototype.type=a;var i=sr(a);if(i.sub){if(i.sub!==Tn){var o=function r(n){var a=e[n.main];return(!a||!a[Tn])&&((a=e[n.main]={})[Tn]=!0),a}(i);o[i.sub]=n}}else e[i.main]=n}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[Tn]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=sr(n),i=[],o=e[a.main];return o&&o[Tn]?D(o,function(s,u){u!==Tn&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=sr(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return D(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=sr(n),i=e[a.main];return i&&i[Tn]}}function hi(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(a&&fe(a,u)>=0||i&&fe(i,u)<0)){var l=n.getShallow(u,e);null!=l&&(o[t[s][0]]=l)}}return o}}var l1=hi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),f1=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return l1(this,e,r)},t}(),Yl=new ha(50);function c1(t){if("string"==typeof t){var e=Yl.get(t);return e&&e.image}return t}function ip(t,e,r,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var i=Yl.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?!qo(e=i.image)&&i.pending.push(o):((e=Dt.loadImage(t,op,op)).__zrImageSrc=t,Yl.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function op(){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 qo(t){return t&&t.width&&t.height}var Xl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function h1(t,e,r,n,a){var i={};return sp(i,t,e,r,n,a),i.text}function sp(t,e,r,n,a,i){if(!r)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");i=up(r,n,a,i);for(var s=!1,u={},l=0,f=o.length;l<f;l++)lp(u,o[l],i),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function up(t,e,r,n){var a=N({},n=n||{});r=Q(r,"..."),a.maxIterations=Q(n.maxIterations,2);var i=a.minChar=Q(n.minChar,0),o=a.fontMeasureInfo=qt(e),s=o.asciiCharWidth;a.placeholder=Q(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<i&&u>=s;l++)u-=s;var f=Ut(o,r);return f>u&&(r="",f=0),u=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=u,a.containerWidth=t,a}function lp(t,e,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n)return t.textLine="",void(t.isTruncated=!1);var o=Ut(i,e);if(o<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var u=0===s?v1(e,a,i):o>0?Math.floor(e.length*a/o):0;o=Ut(i,e=e.substr(0,u))}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function v1(t,e,r){for(var n=0,a=0,i=t.length;a<i&&n<e;a++)n+=Rd(r,t.charCodeAt(a));return a}var p1=function(){return function t(){}}(),fp=function(){return function t(e){this.tokens=[],e&&(this.tokens=e)}}(),g1=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 jl(t,e,r,n,a){var f,c,i=""===e,o=a&&r.rich[a]||{},s=t.lines,u=o.font||r.font,l=!1;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(null!=o.width&&"auto"!==o.width){var d=Xr(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=cp(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=qt(u),g=0;g<f.length;g++){var m=f[g],_=new p1;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,_.width="number"==typeof o.width?o.width:c?c[g]:Ut(p,m),g||l)s.push(new fp([_]));else{var S=(s[s.length-1]||(s[0]=new fp)).tokens,b=S.length;1===b&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}}}var _1=zt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function S1(t){return!function m1(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!_1[t]}function cp(t,e,r,n,a){for(var i=[],o=[],s="",u="",l=0,f=0,c=qt(e),v=0;v<t.length;v++){var h=t.charAt(v);if("\n"!==h){var d=Rd(c,h.charCodeAt(0)),y=!n&&!S1(h);(i.length?f+d>r:a+f+d>r)?f?(s||u)&&(y?(s||(s=u,u="",f=l=0),i.push(s),o.push(f-l),u+=h,s="",f=l+=d):(u&&(s+=u,u="",l=0),i.push(s),o.push(f),s=h,f=d)):y?(i.push(u),o.push(l),u=h,l=d):(i.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),i.push(s),o.push(f),s="",u="",l=0,f=0}return u&&(s+=u),s&&(i.push(s),o.push(f)),1===i.length&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function hp(t,e,r,n,a,i){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ne.set(vp,ga(r,o,a),bn(n,s,i),o,s),ne.intersect(e,vp,null,dp);var u=dp.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=ga(u.x,u.width,a,!0),t.baseY=bn(u.y,u.height,i,!0)}}var vp=new ne(0,0,0,0),dp={outIntersectRect:{},clamp:!0};function Zl(t){return null!=t?t+="":t=""}function Kl(t,e,r,n){var a=new ne(ga(t.x||0,e,t.textAlign),bn(t.y||0,r,t.textBaseline),e,r),i=n??(pp(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function pp(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var $l="__zr_style_"+Math.round(10*Math.random()),wn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Uo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wn[$l]=!0;var gp=["z","z2","invisible"],b1=["invisible"],x1=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype._init=function(r){for(var n=ge(r),a=0;a<n.length;a++){var i=n[a];"style"===i?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function T1(t,e,r){return Ql.copy(t.getBoundingRect()),t.transform&&Ql.applyTransform(t.transform),Jl.width=e,Jl.height=r,!Ql.intersect(Jl)}(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n);return this.getBoundingRect().contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,u=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,a,n):r.copy(a),(o||s||u)&&(r.width+=2*o+Math.abs(s),r.height+=2*o+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+2*l),r.height=Math.ceil(r.height+1+2*l))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new 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 Ya(wn,r)},e.prototype.useStyle=function(r){r[$l]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[$l]},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,gp)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l,u=!(n&&i);if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(l,n.style)):u&&(l=a.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?b1:gp;for(v=0;v<y.length;v++){var h=y[v];n&&null!=n[h]?this[h]=n[h]:u&&null!=a[h]&&(this[h]=a[h])}},e.prototype._mergeStates=function(r){for(var a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.style&&this._mergeStyle(a=a||{},o.style)}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return N(r,n),r},e.prototype.getAnimationStyleProps=function(){return Uo},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}(Bd),Ql=new ne(0,0,0,0),Jl=new ne(0,0,0,0);const Dn=x1;var vt=Math.min,dt=Math.max,ef=Math.sin,tf=Math.cos,Mn=2*Math.PI,Yo=cn(),Xo=cn(),jo=cn();function yp(t,e,r,n,a,i){a[0]=vt(t,r),a[1]=vt(e,n),i[0]=dt(t,r),i[1]=dt(e,n)}var mp=[],_p=[];function w1(t,e,r,n,a,i,o,s,u,l){var f=ad,c=Ye,v=f(t,r,a,o,mp);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,a,o,mp[h]);u[0]=vt(d,u[0]),l[0]=dt(d,l[0])}for(v=f(e,n,i,s,_p),h=0;h<v;h++){var y=c(e,n,i,s,_p[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 D1(t,e,r,n,a,i,o,s){var u=sd,l=$e,f=dt(vt(u(t,r,a),1),0),c=dt(vt(u(e,n,i),1),0),v=l(t,r,a,f),h=l(e,n,i,c);o[0]=vt(t,a,v),o[1]=vt(e,i,h),s[0]=dt(t,a,v),s[1]=dt(e,i,h)}function M1(t,e,r,n,a,i,o,s,u){var l=Hr,f=Gr,c=Math.abs(a-i);if(c%Mn<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-n,u[0]=t+r,void(u[1]=e+n);if(Yo[0]=tf(a)*r+t,Yo[1]=ef(a)*n+e,Xo[0]=tf(i)*r+t,Xo[1]=ef(i)*n+e,l(s,Yo,Xo),f(u,Yo,Xo),(a%=Mn)<0&&(a+=Mn),(i%=Mn)<0&&(i+=Mn),a>i&&!o?i+=Mn:a<i&&o&&(a+=Mn),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(jo[0]=tf(h)*r+t,jo[1]=ef(h)*n+e,l(s,jo,s),f(u,jo,u))}var ye={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},An=[],Ln=[],ur=[],Zr=[],lr=[],fr=[],rf=Math.min,nf=Math.max,Pn=Math.cos,Rn=Math.sin,xr=Math.abs,af=Math.PI,Kr=2*af,of=typeof Float32Array<"u",vi=[];function sf(t){return Math.round(t/af*1e8)/1e8%2*af}function Sp(t,e){var r=sf(t[0]);r<0&&(r+=Kr);var a=t[1];a+=r-t[0],!e&&a-r>=Kr?a=r+Kr:e&&r-a>=Kr?a=r-Kr:!e&&r>a?a=r+(Kr-sf(r-a)):e&&r<a&&(a=r-(Kr-sf(a-r))),t[0]=r,t[1]=a}var A1=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=xr(n/Bo/e)||0,this._uy=xr(n/Bo/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=xr(e-this._xi),a=xr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ye.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(ye.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(ye.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){return this._drawPendingPt(),vi[0]=a,vi[1]=i,Sp(vi,o),this.addData(ye.A,e,r,n,n,a=vi[0],(i=vi[1])-a,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=Pn(i)*n+e,this._yi=Rn(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(ye.R,e,r,n,a),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)&&of&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();var o=this.data;if(of&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(i=0;i<r;i++){var u=e[i].data;for(s=0;s<u.length;s++)this.data[a++]=u[s]}this._len=a}},t.prototype.addData=function(e,r,n,a,i,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,of&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){ur[0]=ur[1]=lr[0]=lr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=fr[0]=fr[1]=-Number.MAX_VALUE;var o,e=this.data,r=0,n=0,a=0,i=0;for(o=0;o<this._len;){var s=e[o++],u=1===o;switch(u&&(a=r=e[o],i=n=e[o+1]),s){case ye.M:r=a=e[o++],n=i=e[o++],lr[0]=a,lr[1]=i,fr[0]=a,fr[1]=i;break;case ye.L:yp(r,n,e[o],e[o+1],lr,fr),r=e[o++],n=e[o++];break;case ye.C:w1(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],lr,fr),r=e[o++],n=e[o++];break;case ye.Q:D1(r,n,e[o++],e[o++],e[o],e[o+1],lr,fr),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&&(a=Pn(h)*c+l,i=Rn(h)*v+f),M1(l,f,c,v,h,d,y,lr,fr),r=Pn(d)*c+l,n=Rn(d)*v+f;break;case ye.R:yp(a=r=e[o++],i=n=e[o++],a+e[o++],i+e[o++],lr,fr);break;case ye.Z:r=a,n=i}Hr(ur,ur,lr),Gr(Zr,Zr,fr)}return 0===o&&(ur[0]=ur[1]=Zr[0]=Zr[1]=0),new ne(ur[0],ur[1],Zr[0]-ur[0],Zr[1]-ur[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=1===v;d&&(s=i=e[v],u=o=e[v+1]);var y=-1;switch(h){case ye.M:i=s=e[v++],o=u=e[v++];break;case ye.L:var p=e[v++],_=(g=e[v++])-o;(xr(m=p-i)>n||xr(_)>a||v===r-1)&&(y=Math.sqrt(m*m+_*_),i=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=Db(i,o,S,b,p,g,C,x,10),i=C,o=x;break;case ye.Q:y=Ab(i,o,S=e[v++],b=e[v++],p=e[v++],g=e[v++],10),i=p,o=g;break;case ye.A:var T=e[v++],w=e[v++],A=e[v++],L=e[v++],R=e[v++],M=e[v++],k=M+R;v+=1,d&&(s=Pn(R)*A+T,u=Rn(R)*L+w),y=nf(A,L)*rf(Kr,Math.abs(M)),i=Pn(k)*A+T,o=Rn(k)*L+w;break;case ye.R:s=i=e[v++],u=o=e[v++],y=2*e[v++]+2*e[v++];break;case ye.Z:var m=s-i;_=u-o,y=Math.sqrt(m*m+_*_),i=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,a=this._ux,i=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=xr(c-l),A=xr(v-f);if(w>a||A>i){if(h){if(p+(L=d[g++])>m){e.lineTo(l*(1-(R=(m-p)/L))+c*R,f*(1-R)+v*R);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++],Y=n[C++],U=n[C++],V=n[C++];if(h){if(p+(L=d[g++])>m){To(l,k,F,U,R=(m-p)/L,An),To(f,B,Y,V,R,Ln),e.bezierCurveTo(An[1],Ln[1],An[2],Ln[2],An[3],Ln[3]);break e}p+=L}e.bezierCurveTo(k,B,F,Y,U,V),l=U,f=V;break;case ye.Q:if(k=n[C++],B=n[C++],F=n[C++],Y=n[C++],h){if(p+(L=d[g++])>m){wo(l,k,F,R=(m-p)/L,An),wo(f,B,Y,R,Ln),e.quadraticCurveTo(An[1],Ln[1],An[2],Ln[2]);break e}p+=L}e.quadraticCurveTo(k,B,F,Y),l=F,f=Y;break;case ye.A:var q=n[C++],W=n[C++],H=n[C++],ae=n[C++],Le=n[C++],ct=n[C++],wt=n[C++],ht=!n[C++],tt=H>ae?H:ae,Ze=xr(H-ae)>.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,ae,wt,Le,Be,ht):e.arc(q,W,tt,Le,Be,ht),re)break e;T&&(s=Pn(Le)*H+q,u=Rn(Le)*ae+W),l=Pn(Be)*H+q,f=Rn(Be)*ae+W;break;case ye.R:s=l=n[C],u=f=n[C+1],c=n[C++],v=n[C++];var he=n[C++],_r=n[C++];if(h){if(p+(L=d[g++])>m){var Ue=m-p;e.moveTo(c,v),e.lineTo(c+rf(Ue,he),v),(Ue-=he)>0&&e.lineTo(c+he,v+rf(Ue,_r)),(Ue-=_r)>0&&e.lineTo(c+nf(he-Ue,0),v+_r),(Ue-=he)>0&&e.lineTo(c,v+nf(_r-Ue,0));break e}p+=L}e.rect(c,v,he,_r);break;case ye.Z:if(h){var L;if(p+(L=d[g++])>m){var R;e.lineTo(l*(1-(R=(m-p)/L))+s*R,f*(1-R)+u*R);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 In=A1;function ma(t,e,r,n,a,i,o){if(0===a)return!1;var u,s=a;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t===r)return Math.abs(i-t)<=s/2;var f=(u=(e-n)/(t-r))*i-o+(t*n-r*e)/(t-r);return f*f/(u*u+1)<=s/2*s/2}function L1(t,e,r,n,a,i,o,s,u,l,f){if(0===u)return!1;var c=u;return!(f>e+c&&f>n+c&&f>i+c&&f>s+c||f<e-c&&f<n-c&&f<i-c&&f<s-c||l>t+c&&l>r+c&&l>a+c&&l>o+c||l<t-c&&l<r-c&&l<a-c&&l<o-c)&&id(t,e,r,n,a,i,o,s,l,f,null)<=c/2}function P1(t,e,r,n,a,i,o,s,u){if(0===o)return!1;var l=o;return!(u>e+l&&u>n+l&&u>i+l||u<e-l&&u<n-l&&u<i-l||s>t+l&&s>r+l&&s>a+l||s<t-l&&s<r-l&&s<a-l)&&ud(t,e,r,n,a,i,s,u,null)<=l/2}var Cp=2*Math.PI;function Tr(t){return(t%=Cp)<0&&(t+=Cp),t}var di=2*Math.PI;function R1(t,e,r,n,a,i,o,s,u){if(0===o)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-a)%di<1e-4)return!0;if(i){var c=n;n=Tr(a),a=Tr(c)}else n=Tr(n),a=Tr(a);n>a&&(a+=di);var v=Math.atan2(u,s);return v<0&&(v+=di),v>=n&&v<=a||v+di>=n&&v+di<=a}function wr(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===a?1/0:u>a?s:0}var $r=In.CMD,En=2*Math.PI,ot=[-1,-1,-1],Pt=[-1,-1];function k1(){var t=Pt[0];Pt[0]=Pt[1],Pt[1]=t}function O1(t,e,r,n,a,i,o,s,u,l){if(l>e&&l>n&&l>i&&l>s||l<e&&l<n&&l<i&&l<s)return 0;var f=nd(e,n,i,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,a,o,p)<u||(v<0&&(v=ad(e,n,i,s,Pt),Pt[1]<Pt[0]&&v>1&&k1(),h=Ye(e,n,i,s,Pt[0]),v>1&&(d=Ye(e,n,i,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 B1(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var u=function Mb(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Wr(i))td(o)&&(l=-s/o)>=0&&l<=1&&(a[u++]=l);else{var f=o*o-4*i*s;if(Wr(f))(l=-o/(2*i))>=0&&l<=1&&(a[u++]=l);else if(f>0){var l,c=Vr(f),v=(-o-c)/(2*i);(l=(-o+c)/(2*i))>=0&&l<=1&&(a[u++]=l),v>=0&&v<=1&&(a[u++]=v)}}return u}(e,n,i,s,ot);if(0===u)return 0;var l=sd(e,n,i);if(l>=0&&l<=1){for(var f=0,c=$e(e,n,i,l),v=0;v<u;v++){var h=0===ot[v]||1===ot[v]?.5:1;$e(t,r,a,ot[v])<o||(f+=ot[v]<l?c<e?h:-h:i<c?h:-h)}return f}return h=0===ot[0]||1===ot[0]?.5:1,$e(t,r,a,ot[0])<o?0:i<e?h:-h}function N1(t,e,r,n,a,i,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-a);if(l<1e-4)return 0;if(l>=En-1e-4){n=0,a=En;var f=i?1:-1;return o>=ot[0]+t&&o<=ot[1]+t?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=En,a+=En);for(var v=0,h=0;h<2;h++){var d=ot[h];if(d+t>o){var y=Math.atan2(s,d);f=i?1:-1,y<0&&(y=En+y),(y>=n&&y<=a||y+En>=n&&y+En<=a)&&(y>Math.PI/2&&y<1.5*Math.PI&&(f=-f),v+=f)}}return v}function bp(t,e,r,n,a){for(var v,h,i=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,d=0;d<o;){var y=i[d++],p=1===d;switch(y===$r.M&&d>1&&(r||(s+=wr(u,l,f,c,n,a))),p&&(f=u=i[d],c=l=i[d+1]),y){case $r.M:u=f=i[d++],l=c=i[d++];break;case $r.L:if(r){if(ma(u,l,i[d],i[d+1],e,n,a))return!0}else s+=wr(u,l,i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case $r.C:if(r){if(L1(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=O1(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case $r.Q:if(r){if(P1(u,l,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=B1(u,l,i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case $r.A:var g=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],C=i[d++];d+=1;var x=!!(1-i[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*S+m,p?(f=v,c=h):s+=wr(u,l,v,h,n,a);var T=(n-g)*S/_+g;if(r){if(R1(g,m,S,b,b+C,x,e,T,a))return!0}else s+=N1(g,m,S,b,b+C,x,T,a);u=Math.cos(b+C)*_+g,l=Math.sin(b+C)*S+m;break;case $r.R:if(f=u=i[d++],c=l=i[d++],v=f+i[d++],h=c+i[d++],r){if(ma(f,c,v,c,e,n,a)||ma(v,c,v,h,e,n,a)||ma(v,h,f,h,e,n,a)||ma(f,h,f,c,e,n,a))return!0}else s+=wr(v,c,v,h,n,a),s+=wr(f,h,f,c,n,a);break;case $r.Z:if(r){if(ma(u,l,f,c,e,n,a))return!0}else s+=wr(u,l,f,c,n,a);u=f,l=c}}return!r&&!function E1(t,e){return Math.abs(t-e)<1e-4}(l,c)&&(s+=wr(u,l,f,c,n,a)||0),0!==s}var xp=we({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wn),H1={style:we({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Uo.style)},uf=nr.concat(["invisible","culling","z","z2","zlevel","parent"]),G1=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(u){r.buildPath(u,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<uf.length;++s)a[uf[s]]=this[uf[s]];a.__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 a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];"style"===o?this.style?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(X(r)){var n=ei(r,0);return n>.5?wl:n>.2?"#eee":Dl}if(r)return Dl}return wl},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr;if(!(!a||!a.isDarkMode())==ei(r,0)<.4)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new In(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(null==n||"none"===n||!(r.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;this.hasFill()||(l=Math.max(l,this.strokeContainThreshold??4)),u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(i.contain(r=a[0],n=a[1])){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),function z1(t,e,r,n){return bp(t,e,!0,r,n)}(s,u/l,r,n)))return!0}if(this.hasFill())return function F1(t,e,r){return bp(t,0,!1,e,r)}(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){"shape"===r?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),"string"==typeof r?a[r]=n:N(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(r){return Ya(xp,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,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l,u=!(n&&i);if(n&&n.shape?o?i?l=n.shape:(l=N({},a.shape),N(l,n.shape)):(l=N({},i?this.shape:a.shape),N(l,n.shape)):u&&(l=a.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 a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.shape&&this._mergeStyle(a=a||{},o.shape)}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return H1},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){function o(s){var u=i.call(this,s)||this;return r.init&&r.init.call(u,s),u}return(0,j.C6)(o,i),o.prototype.getDefaultStyle=function(){return le(r.style)},o.prototype.getDefaultShape=function(){return le(r.shape)},o}(e);for(var a in r)"function"==typeof r[a]&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=7}(),e}(Dn);const Te=G1;var V1=we({strokeFirst:!0,font:Fr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},xp),Tp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.hasStroke=function(){return pp(this.style)},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.createStyle=function(r){return Ya(V1,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function C1(t){var e=Zl(t.text),r=t.font;return Kl(t,Ut(qt(r),e),zo(r),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Dn);Tp.prototype.type="tspan";const lf=Tp;var W1=we({x:0,y:0},wn),q1={style:we({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Uo.style)},wp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.createStyle=function(r){return Ya(W1,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(null!=a)return a;var i=function U1(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(n.image)?n.image:this.__image;if(!i)return 0;var o="width"===r?"height":"width",s=n[o];return null==s?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return q1},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}(Dn);wp.prototype.type="image";const Qr=wp;var _a=Math.round;function Dp(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(_a(2*n)===_a(2*a)&&(t.x1=t.x2=kn(n,s,!0)),_a(2*i)===_a(2*o)&&(t.y1=t.y2=kn(i,s,!0))),t}}function Mp(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=kn(n,s,!0),t.y=kn(a,s,!0),t.width=Math.max(kn(n+i,s,!1)-t.x,0===i?0:1),t.height=Math.max(kn(a+o,s,!1)-t.y,0===o?0:1)),t}}function kn(t,e,r){if(!e)return t;var n=_a(2*t);return(n+_a(e))%2==0?n/2:(n+(r?1:-1))/2}var X1=function(){return function t(){this.x=0,this.y=0,this.width=0,this.height=0}}(),j1={},Ap=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new X1},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Mp(j1,n,this.style);a=u.x,i=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?function Y1(t,e){var s,u,l,f,c,r=e.x,n=e.y,a=e.width,i=e.height,o=e.r;a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),"number"==typeof o?s=u=l=f=o:o instanceof Array?1===o.length?s=u=l=f=o[0]:2===o.length?(s=l=o[0],u=f=o[1]):3===o.length?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0,s+u>a&&(s*=a/(c=s+u),u*=a/c),l+f>a&&(l*=a/(c=l+f),f*=a/c),u+l>i&&(u*=i/(c=u+l),l*=i/c),s+f>i&&(s*=i/(c=s+f),f*=i/c),t.moveTo(r+s,n),t.lineTo(r+a-u,n),0!==u&&t.arc(r+a-u,n+u,u,-Math.PI/2,0),t.lineTo(r+a,n+i-l),0!==l&&t.arc(r+a-l,n+i-l,l,0,Math.PI/2),t.lineTo(r+f,n+i),0!==f&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),0!==s&&t.arc(r+s,n+s,s,Math.PI,1.5*Math.PI)}(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Te);Ap.prototype.type="rect";const Xe=Ap;var Lp={fill:"#000"},cr={},Z1={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},Uo.style)},Rp=function(t){function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Lp,n.attr(r),n}return(0,j.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 eT(t){kp(t),D(t.rich,kp)}(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,a=[],i=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(a);l?(r.copy(u),r.applyTransform(l),(i=i||r.clone()).union(r)):(i=i||u.clone()).union(u)}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Lp},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return N(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=ge(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},N(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return Z1},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||Fr,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||i.align||"left",l=r.verticalAlign||i.verticalAlign||"top";hp(cr,i.overflowRect,o,s,u,l),o=cr.baseX,s=cr.baseY;var c=function d1(t,e,r,n){var a=Zl(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f="truncate"===i,c=zo(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"!==i&&"breakAll"!==i?a?a.split("\n"):[]:a?cp(a,e.font,y,"breakAll"===i,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(a&&f&&null!=y)for(var S=up(y,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},C=0;C<g.length;C++)lp(b,g[C],S),g[C]=b.textLine,d=d||b.isTruncated;var x=p,T=0,w=qt(l);for(C=0;C<g.length;C++)T=Math.max(Ut(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}}(Fp(r),r,cr.outerWidth,cr.outerHeight),v=ff(r),h=!!r.backgroundColor,d=c.outerHeight,y=c.outerWidth,p=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=bn(s,c.contentHeight,l);if(v||a){var S=ga(o,y,u),b=bn(s,d,l);v&&this._renderBackground(r,r,S,b,y,d)}_+=g/2,a&&(m=Np(o,u,a),"top"===l?_+=a[0]:"bottom"===l&&(_-=a[2]));for(var C=0,x=!1,T=!1,w=(Bp("fill"in r?r.fill:(T=!0,i.fill))),A=(Op("stroke"in r?r.stroke:h||i.autoStroke&&!T?null:(C=2,x=!0,i.stroke))),L=r.textShadowBlur>0,R=0;R<p.length;R++){var M=this._getOrCreateChild(lf),k=M.createStyle();M.useStyle(k),k.text=p[R],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,Ep(k,r),_+=g,M.setBoundingRect(Kl(k,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;hp(cr,n.overflowRect,o,s,a,i),o=cr.baseX,s=cr.baseY;var l=function y1(t,e,r,n,a){var i=new g1,o=Zl(t);if(!o)return i;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;null==f&&null!=r&&(f=r-u);var c=e.height;null==c&&null!=n&&(c=n-l);for(var y,v=e.overflow,h="break"!==v&&"breakAll"!==v||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===v},d=Xl.lastIndex=0;null!=(y=Xl.exec(o));){var p=y.index;p>d&&jl(i,o.substring(d,p),e,h),jl(i,y[2],e,h,y[1]),d=Xl.lastIndex}d<o.length&&jl(i,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<i.lines.length;T++){for(var w=i.lines[T],A=0,L=0,R=0;R<w.tokens.length;R++){var k=(M=w.tokens[R]).styleName&&e.rich[M.styleName]||{},B=M.textPadding=k.padding,F=B?B[1]+B[3]:0,Y=M.font=k.font||e.font;M.contentHeight=zo(Y);var U=Q(k.height,M.contentHeight);if(M.innerHeight=U,B&&(U+=B[0]+B[2]),M.height=U,M.lineHeight=zr(k.lineHeight,e.lineHeight,U),M.align=k&&k.align||a,M.verticalAlign=k&&k.verticalAlign||"middle",b&&null!=c&&m+M.lineHeight>c){var V=i.lines.length;R>0?(w.tokens=w.tokens.slice(0,R),x(w,L,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.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=Ut(qt(Y),M.text);else{if(W){var H=k.backgroundColor,ae=H&&H.image;ae&&qo(ae=c1(ae))&&(M.width=Math.max(M.width,ae.width*U/ae.height))}var Le=S&&null!=f?f-L:null;null!=Le&&Le<M.width?!W||Le<F?(M.text="",M.width=M.contentWidth=0):(sp(C,M.text,Le-F,Y,e.ellipsis,{minChar:e.truncateMinChar}),M.text=C.text,i.isTruncated=i.isTruncated||C.isTruncated,M.width=M.contentWidth=Ut(qt(Y),M.text)):M.contentWidth=Ut(qt(Y),M.text)}M.width+=F,L+=M.width,k&&(A=Math.max(A,M.lineHeight))}x(w,L,A)}for(i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=u,i.outerHeight+=l,T=0;T<g.length;T++){var M;(M=g[T]).width=parseInt(M.percentWidth,10)/100*i.width}return i}(Fp(r),r,cr.outerWidth,cr.outerHeight,a),f=l.width,c=l.outerWidth,v=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=ga(o,c,a),y=bn(s,v,i),p=d,g=y;h&&(p+=h[3],g+=h[0]);var m=p+f;ff(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,R=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,R,"right",_),w-=k.width,R-=k.width,M--;for(L+=(f-(L-p)-(m-R)-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,a,i,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=i+a/2;"top"===f?c=i+r.height/2:"bottom"===f&&(c=i+a-r.height/2),!r.isLineHolder&&ff(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=Np(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(lf),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=!1,b=Bp("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,g.fill)),C=Op("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||Fr,p.opacity=zr(l.opacity,n.opacity,1),Ep(p,l),C&&(p.lineWidth=zr(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(Kl(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,a,i,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=a,g.y=i,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(Qr)).onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=a,_.y=i,_.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=zr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return function J1(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(r)&&(n=[r.fontStyle,r.fontWeight,Q1(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ht(n)||r.textFont||r.font},e}(Dn),K1={left:!0,right:1,center:1},$1={top:1,bottom:1,middle:1},Ip=["fontStyle","fontWeight","fontSize","fontFamily"];function Q1(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Ep(t,e){for(var r=0;r<Ip.length;r++){var n=Ip[r],a=e[n];null!=a&&(t[n]=a)}}function kp(t){if(t){t.font=Rp.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||K1[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||$1[r]?r:"top",t.padding&&(t.padding=uo(t.padding))}}function Op(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Bp(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Np(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function Fp(t){var e=t.text;return null!=e&&(e+=""),e}function ff(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Ne=Rp;var de=Ce(),zp=1,Hp={},Gp=Ce(),cf=Ce(),hr=["emphasis","blur","select"],$o=["normal","emphasis","blur","select"],On="highlight",Qo="downplay",Jo="select",vf="unselect",es="toggleSelect",df="selectchanged";function Sa(t){return null!=t&&"none"!==t}function ts(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Vp(t){ts(t,"emphasis",2)}function Wp(t){2===t.hoverState&&ts(t,"normal",0)}function pf(t){ts(t,"blur",1)}function qp(t){1===t.hoverState&&ts(t,"normal",0)}function iT(t){t.selected=!0}function oT(t){t.selected=!1}function Up(t,e,r){e(t,r)}function Dr(t,e,r){Up(t,e,r),t.isGroup&&t.traverse(function(n){Up(n,e,r)})}function gf(t,e){var r=this.states[t];if(this.style){if("emphasis"===t)return function uT(t,e,r,n){var a=r&&fe(r,"select")>=0,i=!1;if(t instanceof Te){var o=Gp(t),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(Sa(s)||Sa(u)){var l=(n=n||{}).style||{};"inherit"===l.fill?(i=!0,n=N({},n),(l=N({},l)).fill=s):!Sa(l.fill)&&Sa(s)?(i=!0,n=N({},n),(l=N({},l)).fill=cl(s)):!Sa(l.stroke)&&Sa(u)&&(i||(n=N({},n),l=N({},l)),l.stroke=cl(u)),n.style=l}}return n&&null==n.z2&&(i||(n=N({},n)),n.z2=t.z2+(t.z2EmphasisLift??10)),n}(this,0,e,r);if("blur"===t)return function fT(t,e,r){var n=fe(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:function sT(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o];i[s]=a[s]??(n&&n[s])}for(o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&"style"===l.targetName&&l.saveTo(i,e)}return i}(t,["opacity"],e,{opacity:1}),o=(r=r||{}).style||{};return null==o.opacity&&(r=N({},r),o=N({opacity:n?a:.1*i.opacity},o),r.style=o),r}(this,t,r);if("select"===t)return function lT(t,e,r){return r&&null==r.z2&&((r=N({},r)).z2=t.z2+(t.z2SelectLift??9)),r}(this,0,r)}return r}function cT(t){t.stateProxy=gf;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=gf),r&&(r.stateProxy=gf)}function Yp(t,e){!$p(t,e)&&!t.__highByOuter&&Dr(t,Vp)}function Xp(t,e){!$p(t,e)&&!t.__highByOuter&&Dr(t,Wp)}function yf(t,e){t.__highByOuter|=1<<(e||0),Dr(t,Vp)}function mf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Dr(t,Wp)}function jp(t){Dr(t,qp)}function Zp(t){Dr(t,iT)}function Kp(t){Dr(t,oT)}function $p(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Qp(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=cf(i),s="series"===a,u=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){qp(l)}),s&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function _f(t,e,r,n){var a=n.getModel();function i(l,f){for(var c=0;c<f.length;c++){var v=l.getItemGraphicEl(f[c]);v&&jp(v)}}if(r=r||"coordinateSystem",null!=t&&e&&"none"!==e){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===r&&!f||"coordinateSystem"===r&&!(c&&s?c===s:f)||"series"===e&&f)){if(n.getViewOfSeriesModel(l).group.traverse(function(p){p.__highByOuter&&f&&"self"===e||pf(p)}),Ke(e))i(l.getData(),e);else if(K(e))for(var d=ge(e),y=0;y<d.length;y++)i(l.getData(d[y]),e[d[y]]);u.push(l),cf(l).isBlured=!0}}),a.eachComponent(function(l,f){if("series"!==l){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,a)}})}}function Sf(t,e,r){if(null!=t&&null!=e){var n=r.getModel().getComponent(t,e);if(n){cf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){pf(i)})}}}function Cf(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==r)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var u,s=o.findHighDownDispatchers(r),l=0;l<s.length;l++)if("self"===de(s[l]).focus){u=!0;break}return{focusSelf:u,dispatchers:s}}function Jp(t){D(t.getAllData(),function(r){var a=r.type;r.data.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Zp(i):Kp(i)})})}function yT(t){var e=[];return t.eachSeries(function(r){D(r.getAllData(),function(a){var o=a.type,s=r.getSelectedDataIndices();if(s.length>0){var u={dataIndex:s,seriesIndex:r.seriesIndex};null!=o&&(u.dataType=o),e.push(u)}})}),e}function rs(t,e,r){tg(t,!0),Dr(t,cT),function ST(t,e,r){var n=de(t);null!=e?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}(t,e,r)}var eg=["emphasis","blur","select"],CT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tg(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 bf(t){return!(!t||!t.__highDownDispatcher)}function xf(t){var e=t.type;return e===Jo||e===vf||e===es}function rg(t){var e=t.type;return e===On||e===Qo}var ng=Ce();function Tf(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,f=void 0,c=void 0;return n?(l=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")),i&&(null!=i.duration&&(l=i.duration),null!=i.easing&&(f=i.easing),null!=i.delay&&(c=i.delay)),ee(c)&&(c=c(r,a)),ee(l)&&(l=l(r)),{duration:l||0,delay:c,easing:f}}return null}function wf(t,e,r,n,a,i,o){var u,s=!1;ee(a)?(o=i,i=a,a=null):K(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l="leave"===t;l||e.stopAnimation("leave");var f=Tf(t,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Xt(t,e,r,n,a,i){wf("update",t,e,r,n,a,i)}function Jr(t,e,r,n,a,i){wf("enter",t,e,r,n,a,i)}function Ca(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 ag(t,e,r,n,a,i){Ca(t)||wf("leave",t,e,r,n,a,i)}function ig(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),ag(t,{style:{opacity:0}},e,r,n)}function og(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||ig(a,e,r,n)}):ig(t,e,r,n)}var ns={};function sg(t,e){for(var r=0;r<hr.length;r++){var n=hr[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Df(t,e,r){var s,n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),null!=r?{interpolatedValue:r}:null)),null==s&&(s=ee(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var u={normal:s},l=0;l<hr.length;l++){var f=hr[l],c=e[f];u[f]=Q(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return u}function ug(t,e,r,n){r=r||ns;for(var a=t instanceof Ne,i=!1,o=0;o<$o.length;o++)if((s=e[$o[o]])&&s.getShallow("show")){i=!0;break}var u=a?t:t.getTextContent();if(i){a||(u||(u=new Ne,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Df(r,e),f=e.normal,c=!!f.getShallow("show"),v=Mr(f,n&&n.normal,r,!1,!a);for(v.text=l.normal,a||t.setTextConfig(lg(f,r,!1)),o=0;o<hr.length;o++){var s,h=hr[o];if(s=e[h]){var d=u.ensureState(h),y=!!Q(s.getShallow("show"),c);y!==c&&(d.ignore=!y),d.style=Mr(s,n&&n[h],r,!0,!a),d.style.text=l[h],a||(t.ensureState(h).textConfig=lg(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&&(as(u).setLabelText=function(g){var m=Df(r,e,g);sg(u,m)})}else u&&(u.ignore=!0);t.dirty()}function Mr(t,e,r,n,a){var i={};return function MT(t,e,r,n,a){r=r||ns;var u,i=e.ecModel,o=i&&i.option.textStyle,s=function AT(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||ns).rich;if(r){e=e||{};for(var n=ge(r),a=0;a<n.length;a++)e[n[a]]=1}t=t.parentModel}return e}(e);if(s){u={};var l="richInheritPlainLabel",f=Q(e.get(l),i?i.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);vg(u[c]={},v,o,e,f,r,n,a,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var y=t,p=e.get("minMargin");if(null!=p)p=_e(p)?p/2:0,y.margin=[p,p,p,p],y.__marginType=ba.minMargin;else{var g=e.get("textMargin");null!=g&&(y.margin=uo(g),y.__marginType=ba.textMargin)}vg(t,e,o,null,null,r,n,a,!0,!1)}(i,t,r,n,a),e&&N(i,e),i}function lg(t,e,r){e=e||{};var a,n={},i=t.getShallow("rotate"),o=Q(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return"outside"===(a=t.getShallow("position")||(r?null:"inside"))&&(a=e.defaultOutsidePosition||"top"),null!=a&&(n.position=a),null!=s&&(n.offset=s),null!=i&&(i*=Math.PI/180,n.rotation=i),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(n.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(n.layoutRect=e.layoutRect),n}var fg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],cg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],hg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vg(t,e,r,n,a,i,o,s,u,l){r=!o&&r||ns;var f=i&&i.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=i&&i.defaultOpacity),null!=h&&(t.opacity=h),!o&&!s&&null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<fg.length;g++){var m=fg[g];null!=(_=!1!==a&&n?zr(e.getShallow(m),n.getShallow(m),r[m]):Q(e.getShallow(m),r[m]))&&(t[m]=_)}for(g=0;g<cg.length;g++)null!=(_=e.getShallow(m=cg[g]))&&(t[m]=_);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!u||!i.disableBox){for(g=0;g<hg.length;g++){var _;null!=(_=e.getShallow(m=hg[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 as=Ce();var ba={minMargin:1,textMargin:2},RT=["textStyle","color"],Mf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Af=new Ne,IT=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(RT):null)},t.prototype.getFont=function(){return function LT(t,e){var r=e&&e.getModel("textStyle");return Ht([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<Mf.length;n++)r[Mf[n]]=this.getShallow(Mf[n]);return Af.useStyle(r),Af.update(),Af.getBoundingRect()},t}();const ET=IT;var dg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],kT=hi(dg),OT=function(){function t(){}return t.prototype.getLineStyle=function(e){return kT(this,e)},t}(),pg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],BT=hi(pg),NT=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return BT(this,e,r)},t}(),Bn=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i]},t.prototype.mergeOption=function(e,r){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,a=null==n?n:n[e];if(null==a&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=null!=e,a=n?this.parsePath(e):null;return new t(n?this._doGet(a):this.option,r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(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 a=0;a<e.length&&(!e[a]||null!=(n=n&&"object"==typeof n?n[e[a]]:null));a++);return null==n&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Ul(Bn),function i1(t){var e=["__\0is_clz",a1++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!(!r||!r[e])}}(Bn),Ft(Bn,OT),Ft(Bn,NT),Ft(Bn,f1),Ft(Bn,ET);const Fe=Bn;var FT=Math.round(10*Math.random());function is(t){return[t||"",FT++].join("_")}var xa="EN",ss={},Pf={},gg=ue.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||xa).toUpperCase().indexOf("ZH")>-1?"ZH":xa;function Rf(t,e){t=t.toUpperCase(),Pf[t]=new Fe(e),ss[t]=e}Rf("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:". "}}}}),Rf("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 pi=36e5,Rt=24*pi,yg=365*Rt,XT={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})/},us={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ls="{yyyy}-{MM}-{dd}",mg={year:"{yyyy}",month:"{yyyy}-{MM}",day:ls,hour:ls+" "+us.hour,minute:ls+" "+us.minute,second:ls+" "+us.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},xt=["year","month","day","hour","minute","second","millisecond"],ZT=["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 gi(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 QT(t){return t===gi(t)}function yi(t,e,r,n){var a=Cr(t),i=a[_g(r)](),o=a[Of(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[Bf(r)](),l=a["get"+(r?"UTC":"")+"Day"](),f=a[Nf(r)](),c=(f-1)%12+1,v=a[Ff(r)](),h=a[zf(r)](),d=a[Hf(r)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=n instanceof Fe?n:function UT(t){return Pf[t]}(n||gg)||function YT(){return Pf[xa]}(),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,i+"").replace(/{yy}/g,st(i%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 Ta(t,e){var r=Cr(t),n=r[Of(e)]()+1,a=r[Bf(e)](),i=r[Nf(e)](),o=r[Ff(e)](),s=r[zf(e)](),l=0===r[Hf(e)](),f=l&&0===s,c=f&&0===o,v=c&&0===i,h=v&&1===a;return h&&1===n?"year":h?"month":v?"day":c?"hour":f?"minute":l?"second":"millisecond"}function fs(t,e,r){switch(e){case"year":t[Sg(r)](0);case"month":t[Cg(r)](1);case"day":t[bg(r)](0);case"hour":t[xg(r)](0);case"minute":t[Tg(r)](0);case"second":t[wg(r)](0)}return t}function _g(t){return t?"getUTCFullYear":"getFullYear"}function Of(t){return t?"getUTCMonth":"getMonth"}function Bf(t){return t?"getUTCDate":"getDate"}function Nf(t){return t?"getUTCHours":"getHours"}function Ff(t){return t?"getUTCMinutes":"getMinutes"}function zf(t){return t?"getUTCSeconds":"getSeconds"}function Hf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function tw(t){return t?"setUTCFullYear":"setFullYear"}function Sg(t){return t?"setUTCMonth":"setMonth"}function Cg(t){return t?"setUTCDate":"setDate"}function bg(t){return t?"setUTCHours":"setHours"}function xg(t){return t?"setUTCMinutes":"setMinutes"}function Tg(t){return t?"setUTCSeconds":"setSeconds"}function wg(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Gf(t){if(!Yd(t))return X(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Vf(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 mi=uo;function Wf(t,e,r){function a(f){return f&&Ht(f)?f:"-"}function i(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=t instanceof Date;if(o||s){var u=o?Cr(t):t;if(!isNaN(+u))return yi(u,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",r);if(s)return"-"}if("ordinal"===e)return oo(t)?a(t):_e(t)&&i(t)?t+"":"-";var l=br(t);return i(l)?Gf(l):oo(t)?a(t):"boolean"==typeof t?t+"":"-"}var Dg=["a","b","c","d","e","f","g"],qf=function(t,e){return"{"+t+(e??"")+"}"};function Uf(t,e,r){G(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Dg[i];t=t.replace(qf(o),qf(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=e[s][a[u]];t=t.replace(qf(Dg[u],s),r?at(l):l)}return t}function Mg(t,e){var r=X(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";return n?"html"===i?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+at(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+at(n)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function aw(t,e,r){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Cr(e),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),u=n[a+"Hours"](),l=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return t.replace("MM",st(o,2)).replace("M",o).replace("yyyy",i).replace("yy",st(i%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 iw(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function _i(t,e){return e=e||"transparent",X(t)?t:K(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ag(t,e){if("_blank"===e||"blank"===e){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var cs={},Yf={},sw=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){function n(a,i){var o=[];return D(a,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}this._nonSeriesBoxMasterList=n(cs),this._normalMasterList=n(Yf)},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?Yf[e]=r:cs[e]=r},t.get=function(e){return Yf[e]||cs[e]},t}(),Lg=ie();const hs=sw;var vs=D,Pg=["left","right","top","bottom","width","height"],Nn=[["width","left","right"],["height","top","bottom"]];function jf(t,e,r,n,a){var i=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild(function(u,l){var h,d,f=u.getBoundingRect(),c=e.childAt(l+1),v=c&&c.getBoundingRect();if("horizontal"===t){var y=f.width+(v?-v.x+f.x:0);(h=i+y)>n||u.newline?(i=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)>a||u.newline?(i+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),"horizontal"===t?i=h+r:o=d+r)})}var Si=jf;function Lr(t,e,r){r=mi(r||0);var n=e.width,a=e.height,i=Se(t.left,n),o=Se(t.top,a),s=Se(t.right,n),u=Se(t.bottom,a),l=Se(t.width,n),f=Se(t.height,a),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-v-i),isNaN(f)&&(f=a-u-c-o),null!=h&&(isNaN(l)&&isNaN(f)&&(h>n/a?l=.8*n:f=.8*a),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(i)&&(i=n-s-l-v),isNaN(o)&&(o=a-u-f-c),t.left||t.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-v}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c}i=i||0,o=o||0,isNaN(l)&&(l=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(u||0));var d=new ne((e.x||0)+i+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}Re(jf,"vertical"),Re(jf,"horizontal");var Ci={rect:1,point:2};function Zf(t,e,r){var n,a,i,s,o=t.boxCoordinateSystem;if(o){var u=function fw(t){var e=t.getShallow("coord",!0),r=1;if(null==e){var n=Lg.get(t.type);n&&n.getCoord2&&(r=2,e=n.getCoord2(t))}return{coord:e,from:r}}(t),l=u.coord,f=u.from;if(o.dataToLayout){i=Ci.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Ci.point,s=f,a=o.dataToPoint(l))}return null==i&&(i=Ci.rect),i===Ci.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function pw(t,e,r,n,a,i){var l,o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if((i=i||t).x=t.x,i.y=t.y,!o&&!s)return!1;if("raw"===u)l="group"===t.type?new 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=Lr(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?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===t&&t.markRedraw(),!0}function ds(t){var e=t.layoutMode||t.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function wa(t,e,r){var n=r&&r.ignoreSize;!G(n)&&(n=[n,n]);var a=o(Nn[0],0),i=o(Nn[1],1);function o(l,f){var c={},v=0,h={},d=0;if(vs(l,function(m){h[m]=t[m]}),vs(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){vs(l,function(v){f[v]=c[v]})}u(Nn[0],t,a),u(Nn[1],t,i)}function Kf(t){return Rg({},t)}function Rg(t,e){return e&&t&&vs(Pg,function(r){J(e,r)&&(t[r]=e[r])}),t}var gw=Ce(),Da=function(t){function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=is("ec_cpt_model"),i}return(0,j.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=ds(this),i=a?Kf(r):{};xe(r,n.getTheme().get(this.mainType)),xe(r,this.getDefaultOption()),a&&wa(r,i,a)},e.prototype.mergeOption=function(r,n){xe(this.option,r,!0);var a=ds(this);a&&wa(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!function r1(t){return!(!t||!t[np])}(r))return r.defaultOption;var n=gw(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=xe(s,a[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Id";return ci(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return function hw(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);ap(Da,Fe),Wo(Da),function zT(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=sr(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=sr(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}(Da),function HT(t,e){function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}t.topologicalTravel=function(i,o,s,u){if(i.length){var l=function r(i){var o={},s=[];return D(i,function(u){var l=n(o,u),c=function a(i,o){var s=[];return D(i,function(u){fe(o,u)>=0&&s.push(u)}),s}(l.originalDeps=e(u),i);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(i,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)}}}(Da,function yw(t){var e=[];return D(Da.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return sr(r).main}),"dataset"!==t&&fe(e,"dataset")<=0&&e.unshift("dataset"),e});const De=Da;var Fn={color:{},darkColor:{},size:{}},Ie=Fn.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 zn 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(zn)){var Ig=Ie[zn];"theme"===zn?Fn.darkColor.theme=Ie.theme.slice():"highlight"===zn?Fn.darkColor.highlight="rgba(255,231,130,0.4)":Fn.darkColor[zn]=0===zn.indexOf("accent")?Ao(Ig,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):Ao(Ig,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}Fn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const ce=Fn;var Eg="";typeof navigator<"u"&&(Eg=navigator.platform||"");var Ma="rgba(0, 0, 0, 0.2)",kg=ce.color.theme[0],mw=Ao(kg,null,null,.9);const _w={darkMode:"auto",colorBy:"series",color:ce.color.theme,gradientColor:[mw,kg],aria:{decal:{decals:[{color:Ma,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ma,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ma,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ma,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ma,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ma,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Eg.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 Og=ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",Qe="arrayRows",It="objectRows",jt="keyedColumns",Pr="typedArray",Bg="unknown",vr="column",Hn="row",Ng=Ce();function Cw(t,e,r){var n={},a=$f(e);if(!a||!t)return n;var f,c,i=[],o=[],u=Ng(e.ecModel).datasetMap,l=a.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(i,0,m);else{var _;h(n[g],_=v.categoryWayDim,m),h(o,_,m),v.categoryWayDim+=m}}),i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function bw(t,e,r){var n={};if(!$f(t))return n;var s,i=e.sourceFormat,o=e.dimensionsDefine;(i===It||i===jt)&&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=zg(e.data,i,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 $f(t){if(!t.get("data",!0))return ci(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},jr).models[0]}function Fg(t,e){return zg(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function zg(t,e,r,n,a,i){var o,u,l;if(rt(t))return 3;if(n){var f=n[i];K(f)?(u=f.name,l=f.type):X(f)&&(u=f)}if(null!=l)return"ordinal"===l?1:3;if(e===Qe){var c=t;if(r===Hn){for(var v=c[i],h=0;h<(v||[]).length&&h<5;h++)if(null!=(o=S(v[a+h])))return o}else for(h=0;h<c.length&&h<5;h++){var d=c[a+h];if(d&&null!=(o=S(d[i])))return o}}else if(e===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===jt){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,_=si(p=m[h]);if(!G(_))return 3;if(null!=(o=S(_[i])))return o}}function S(b){var C=X(b);return null!=b&&Number.isFinite(Number(b))&&""!==b?C?2:3:C&&"-"!==b?1:void 0}return 3}var Qf=ie(),Hg=Ce(),Jf=(Ce(),function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=Ge(this.get("color",!0)),i=this.get("colorLayer",!0);return function Gg(t,e,r,n,a,i,o){var s=e(i=i||t),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var f=null!=o&&n?function Aw(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}(n,o):r;if((f=f||r)&&f.length){var c=f[u];return a&&(l[a]=c),s.paletteIdx=(u+1)%f.length,c}}(this,Hg,a,i,e,r,n)},t.prototype.clearColorPalette=function(){!function Lw(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Hg)},t}());var ps,bi,Vg,Wg="\0_ec_inner",Ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Fe(i),this._locale=new Fe(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=jg(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,jg(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||"recreate"===r){var o=i.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(o,n)):Vg(this,o),a=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||"recreate"===r||"media"===r){var u=i.getMediaOption(this);u.length&&D(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=ie(),l=n&&n.replaceMergeMainTypeMap;(function Sw(t){Ng(t).datasetMap=ie()})(this),D(r,function(c,v){null!=c&&(De.hasClass(v)?v&&(s.push(v),u.set(v,!0)):a[v]=null==a[v]?le(c):xe(a[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 ww(t,e,r){var n=Qf.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}(this,c,Ge(r[c])),h=i.get(c),y=ep(h,v,h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll");(function jx(t,e,r){D(t,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=function Zx(t,e,r,n){return e.type?e.type:r?r.subType:n.determineSubType(t,e)}(e,a,n.existing,r))})})(y,c,De),a[c]=null,i.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),a[c]=p,i.set(c,g),o.set(c,m),"series"===c&&ps(this)},this),this._seriesIndices||ps(this)},e.prototype.getOption=function(){var r=le(this.option);return D(r,function(n,a){if(De.hasClass(a)){for(var i=Ge(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!li(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Wg],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 a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(null==n)for(var o=0;o<a.length;o++)if(a[o])return a[o]}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var u,a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);return s&&s.length?(null!=a?(u=[],D(Ge(a),function(l){s[l]&&u.push(s[l])})):u=null!=i?Yg("id",i,s):null!=o?Yg("name",o,s):Pe(s,function(l){return!!l}),Xg(u,r)):[]},e.prototype.findComponents=function(r){var a=r.mainType,i=function s(l){var f=a+"Index",c=a+"Id",v=a+"Name";return!l||null==l[f]&&null==l[c]&&null==l[v]?null:{mainType:a,index:l[f],id:l[c],name:l[v]}}(r.query);return function u(l){return r.filter?Pe(l,r.filter):l}(Xg(i?this.queryComponents(i):Pe(this._componentsMap.get(a),function(l){return!!l}),r))},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ee(r)){var o=n,s=r;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=X(r)?i.get(r):K(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=it(r,null);return Pe(this._componentsMap.get("series"),function(a){return!!a&&null!=n&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return 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){bi(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){bi(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return bi(this),null==this._seriesIndicesMap.get(r.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){bi(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ie(a)},e.prototype.restoreData=function(r){ps(this);var n=this._componentsMap,a=[];n.each(function(i,o){De.hasClass(o)&&a.push(o)}),De.topologicalTravel(a,De.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&("series"!==i||!function Ow(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return null!=r&&t.componentIndex!==r||null!=n&&t.id!==n||null!=a&&t.name!==a}}(o,r))&&o.restoreData()})})},e.internalField=(ps=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ie(n)},bi=function(r){},void(Vg=function(r,n){r.option={},r.option[Wg]=1,r._componentsMap=ie({series:[]}),r._componentsCount=ie();var a=n.aria;K(a)&&null==a.enabled&&(a.enabled=!0),function Bw(t,e){var r=t.color&&!t.colorLayer;D(e,function(n,a){"colorLayer"===a&&r||"color"===a&&t.color||De.hasClass(a)||("object"==typeof n?t[a]=t[a]?xe(t[a],n,!1):le(n):null==t[a]&&(t[a]=n))})}(n,r._theme.option),xe(n,_w,!1),r._mergeOption(n,null)})),e}(Fe);function Yg(t,e,r){if(G(e)){var n=ie();return D(e,function(i){null!=i&&null!=it(i,null)&&n.set(i,!0)}),Pe(r,function(i){return i&&n.get(i[t])})}var a=it(e,null);return Pe(r,function(i){return i&&null!=a&&i[t]===a})}function Xg(t,e){return e.hasOwnProperty("subType")?Pe(t,function(r){return r&&r.subType===e.subType}):t}function jg(t){var e=ie();return t&&D(Ge(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ft(Ug,Jf);const Zg=Ug;var Nw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fw=function(){return function t(e){D(Nw,function(r){this[r]=ve(e[r],e)},this)}}();const Kg=Fw;var zw=/^(min|max)?(.+)$/,Hw=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)&&lo(o.data)}),D(Ge(e.dataset),function(o){o&&o.source&&rt(o.source)&&lo(o.source)})),e=le(e);var a=this._optionBackup,i=function Gw(t,e,r){var a,i,n=[],o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);function v(h){D(e,function(d){d(h,r)})}return o?(i=o).timeline||(i.timeline=s):((c||f)&&(t.options=t.media=null),i=t),f&&G(l)&&D(l,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),D(u,function(h){return v(h)}),D(n,function(h){return v(h.option)}),{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=le(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)Vw(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!function qw(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=$(o,function(f){return le(-1===f?i.option:a[f].option)})),this._currentMediaIndices=o,s},t}();function Vw(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return D(t,function(i,o){var s=o.match(zw);if(s&&s[1]&&s[2]){var u=s[1],l=s[2].toLowerCase();(function Ww(t,e,r){return"min"===r?t>=e:"max"===r?t<=e:t===e})(n[l],i,u)||(a=!1)}}),a}const Uw=Hw;var Zt=D,xi=K,$g=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ec(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=$g.length;r<n;r++){var a=$g[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?xe(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?xe(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Je(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,we(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Ti(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=xi(t)&&t[e],n=xi(r)&&r.textStyle;if(n)for(var a=0,i=Jd.length;a<i;a++){var o=Jd[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Et(t){t&&(Ti(t),ke(t,"label"),t.emphasis&&ke(t.emphasis,"label"))}function Rr(t){return G(t)?t:t?[t]:[]}function Qg(t){return(G(t)?t[0]:t)||{}}function Jg(t){t&&D(Kw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Kw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$w=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function wi(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<tc.length;r++){var n=tc[r][1];null!=e[n]&&(e[tc[r][0]]=e[n])}}function ey(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ty(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ry(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&ry(t[r].children,e)}function ny(t,e){(function Xw(t,e){Zt(Rr(t.series),function(n){xi(n)&&function Yw(t){if(xi(t)){ec(t),Ti(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&&(ec(e),Et(e));var r=t.markLine;r&&(ec(r),Et(r));var n=t.markArea;n&&Et(n);var a=t.data;if("graph"===t.type){a=a||t.nodes;var i=t.links||t.edges;if(i&&!rt(i))for(var o=0;o<i.length;o++)Et(i[o]);D(t.categories,function(l){Ti(l)})}if(a&&!rt(a))for(o=0;o<a.length;o++)Et(a[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){Ti(l)})):"tree"===t.type&&Ti(t.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zt(r,function(n){Zt(Rr(t[n]),function(a){a&&(ke(a,"axisLabel"),ke(a.axisPointer,"label"))})}),Zt(Rr(t.parallel),function(n){var a=n&&n.parallelAxisDefault;ke(a,"axisLabel"),ke(a&&a.axisPointer,"label")}),Zt(Rr(t.calendar),function(n){Je(n,"itemStyle"),ke(n,"dayLabel"),ke(n,"monthLabel"),ke(n,"yearLabel")}),Zt(Rr(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)}),Zt(Rr(t.geo),function(n){xi(n)&&(Et(n),Zt(Rr(n.regions),function(a){Et(a)}))}),Zt(Rr(t.timeline),function(n){Et(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var a=n.data;G(a)&&D(a,function(i){K(i)&&(Je(i,"label"),Je(i,"itemStyle"))})}),Zt(Rr(t.toolbox),function(n){Je(n,"iconStyle"),Zt(n.feature,function(a){Je(a,"iconStyle")})}),ke(Qg(t.axisPointer),"label"),ke(Qg(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),ey(r.label),(a=r.data)&&!rt(a))for(var i=0;i<a.length;i++)ey(a[i]);null!=r.hoverOffset&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if("gauge"===n){var o=function jw(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&null!=(n=n&&n[r[a]]);a++);return n}(r,"pointer.color");null!=o&&function Zw(t,e,r,n){for(var o,a=e.split(","),i=t,s=0;s<a.length-1;s++)null==i[o=a[s]]&&(i[o]={}),i=i[o];(n||null==i[a[s]])&&(i[a[s]]=r)}(r,"itemStyle.color",o)}else if("bar"===n){var a;if(wi(r),wi(r.backgroundStyle),wi(r.emphasis),(a=r.data)&&!rt(a))for(i=0;i<a.length;i++)"object"==typeof a[i]&&(wi(a[i]),wi(a[i]&&a[i].emphasis))}else if("sunburst"===n){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ty(r),ry(r.data,ty)}else"graph"===n||"sankey"===n?function Qw(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)),Jg(r)}}),t.dataRange&&(t.visualMap=t.dataRange),D($w,function(r){var n=t[r];n&&(G(n)||(n=[n]),D(n,function(a){Jg(a)}))})}var gs=function(){return function t(e){this.data=e.data||(e.sourceFormat===jt?{}:[]),this.sourceFormat=e.sourceFormat||Bg,this.seriesLayoutBy=e.seriesLayoutBy||vr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];null==a.type&&1===Fg(this,n)&&(a.type="ordinal")}}}();function rc(t){return t instanceof gs}function nc(t,e,r){r=r||ay(t);var n=e.seriesLayoutBy,a=function rD(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:iy(a),startIndex:o,dimensionsDetectedCount:i};if(e===Qe){var s=t;"auto"===n||null==n?oy(function(l){null!=l&&"-"!==l&&(X(l)?null==o&&(o=1):o=0)},r,s,10):o=_e(n)?n:n?1:0,!a&&1===o&&(a=[],oy(function(l,f){a[f]=null!=l?l+"":""},r,s,1/0)),i=a?a.length:r===Hn?s.length:s[0]?s[0].length:null}else if(e===It)a||(a=function nD(t){for(var r,e=0;e<t.length&&!(r=t[e++]););if(r)return ge(r)}(t));else if(e===jt)a||(a=[],D(t,function(l,f){a.push(f)}));else if(e===Tt){var u=si(t[0]);i=G(u)&&u.length||1}return{startIndex:o,dimensionsDefine:iy(a),dimensionsDetectedCount:i}}(t,r,n,e.sourceHeader,e.dimensions);return new gs({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:le(e)})}function ac(t){return new gs({data:t,sourceFormat:rt(t)?Pr:Tt})}function tD(t){return new gs({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:le(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ay(t){var e=Bg;if(rt(t))e=Pr;else if(G(t)){0===t.length&&(e=Qe);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(null!=a){if(G(a)||rt(a)){e=Qe;break}if(K(a)){e=It;break}}}}else if(K(t))for(var i in t)if(J(t,i)&&Ke(t[i])){e=jt;break}return e}function iy(t){if(t){var e=ie();return $(t,function(r,n){var a={name:(r=K(r)?r:{name:r}).name,displayName:r.displayName,type:r.type};if(null==a.name)return a;a.name+="",null==a.displayName&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function oy(t,e,r,n){if(e===Hn)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else{var i=r[0]||[];for(a=0;a<i.length&&a<n;a++)t(i[a],a)}}function sy(t){var e=t.sourceFormat;return e===It||e===jt}var uy={},iD=typeof console<"u"&&console.warn&&console.log;function ly(t,e){!function ic(t,e,r){if(iD){if(r){if(uy[e])return;uy[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function ut(t){throw new Error(t)}var Gn,Vn,Wn,qn,cy,hy,vy=function(){function t(e,r){var n=rc(e)?e:ac(e);this._source=n;var a=this._data=n.data;n.sourceFormat===Pr&&(this._offset=0,this._dimSize=r,this._data=a),hy(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var e;hy=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,v=u.dimensionsDefine;if(N(o,cy[sc(l,f)]),l===Pr)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=py(l,f);o.getItem=ve(d,null,s,c,v);var y=yy(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}},a=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[Qe+"_"+vr]={pure:!0,appendData:i},e[Qe+"_"+Hn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[It]={pure:!0,appendData:i},e[jt]={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:i},e[Pr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},cy=e}(),t;var e}(),ys=function(t){G(t)||ly("series.data or dataset.source must be an array.")},dy=((Gn={})[Qe+"_"+vr]=ys,Gn[Qe+"_"+Hn]=ys,Gn[It]=ys,Gn[jt]=function(t,e){for(var r=0;r<e.length;r++)null==e[r].name&&ly("dimension name must not be null/undefined.")},Gn[Tt]=ys,function(t,e,r,n){return t[n]}),uD=((Vn={})[Qe+"_"+vr]=function(t,e,r,n){return t[n+e]},Vn[Qe+"_"+Hn]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},Vn[It]=dy,Vn[jt]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=null!=s?t[s]:null;i[o]=u?u[n]:null}return i},Vn[Tt]=dy,Vn);function py(t,e){return uD[sc(t,e)]}var gy=function(t,e,r){return t.length},lD=((Wn={})[Qe+"_"+vr]=function(t,e,r){return Math.max(0,t.length-e)},Wn[Qe+"_"+Hn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Wn[It]=gy,Wn[jt]=function(t,e,r){var n=r[0].name,a=null!=n?t[n]:null;return a?a.length:0},Wn[Tt]=gy,Wn);function yy(t,e){return lD[sc(t,e)]}var oc=function(t,e,r){return t[e]},fD=((qn={})[Qe]=oc,qn[It]=function(t,e,r){return t[r]},qn[jt]=oc,qn[Tt]=function(t,e,r){var n=si(t);return n instanceof Array?n[e]:n},qn[Pr]=oc,qn);function my(t){return fD[t]}function sc(t,e){return t===Qe?t+"_"+e:t}function ms(t,e,r){if(t){var n=t.getRawDataItem(e);if(null!=n){var a=t.getStore(),i=a.getSource().sourceFormat;if(null!=r){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return my(i)(n,o,s)}var u=n;return i===Tt&&(u=si(n)),u}}}var cD=/\{@(.+?)\}/g,hD=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,v="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:l,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);return o&&(u.value=o.interpolatedValue),null!=a&&G(u.value)&&(u.value=u.value[a]),i||(i=s.getItemModel(e).get("normal"===r?["label","formatter"]:[r,"label","formatter"])),ee(i)?(u.status=r,u.dimensionIndex=a,i(u)):X(i)?Uf(i,u).replace(cD,function(c,v){var h=v.length,d=v;"["===d.charAt(0)&&"]"===d.charAt(h-1)&&(d=+d.slice(1,h-1));var y=ms(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 ms(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function _y(t){var e,r;return K(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Di(t){return new vD(t)}var vD=function(){function t(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var i,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(i=this._plan(this.context));var c,o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==u||s!==l)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var v=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var 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,a,i){Sy.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Sy.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 a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Sy=function(){var t,e,r,n,a,i={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var u=e%a*r+Math.ceil(e/a),l=e>=t?null:u<n?u:e;return e++,l}}();function _s(t,e){var r=e&&e.type;return"ordinal"===r?t:("time"===r&&!_e(t)&&null!=t&&"-"!==t&&(t=+Cr(t)),null==t||""===t?NaN:Number(t))}ie({number:function(t){return parseFloat(t)},time:function(t){return+Cr(t)},trim:function(t){return X(t)?Ht(t):t}});var yD=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:br(e),a=_e(r)?r:br(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=X(e),u=X(r);s&&(n=u?e:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),_D=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 _s(e,r)},t}();function CD(t){return uc(t.sourceFormat)||ut(""),t.data}function bD(t){var e=t.sourceFormat,r=t.data;if(uc(e)||ut(""),e===Qe){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}if(e===It){for(a=[],i=0,o=r.length;i<o;i++)a.push(N({},r[i]));return a}}function xD(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 TD(t){return le(t)}var by=ie();function MD(t,e,r,n){e.length||ut(""),K(t)||ut("");var o=by.get(t.type);o||ut("");var s=$(e,function(f){return function SD(t,e){var r=new _D,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex;t.seriesLayoutBy!==vr&&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=py(a,vr);e.__isBuiltIn&&(r.getRawDataItem=function(y){return c(n,i,s,y)},r.getRawData=ve(CD,null,t)),r.cloneRawData=ve(bD,null,t);var v=yy(a,vr);r.count=ve(v,null,n,i,s);var h=my(a);r.retrieveValue=function(y,p){var g=c(n,i,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(xD,null,s,u),r.cloneAllDimensionInfo=ve(TD,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(""),uc(ay(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:vr,sourceHeader:p,dimensions:y.metaRawOption.dimensions}}else d={seriesLayoutBy:vr,sourceHeader:0,dimensions:f.dimensions};return nc(f.data,d,null)})}function uc(t){return t===Qe||t===It}var lc,Ss="undefined",AD=typeof Uint32Array===Ss?Array:Uint32Array,LD=typeof Uint16Array===Ss?Array:Uint16Array,xy=typeof Int32Array===Ss?Array:Int32Array,Ty=typeof Float64Array===Ss?Array:Float64Array,wy={float:Ty,int:xy,ordinal:Array,number:Array,time:Ty};function Aa(t){return t>65535?AD:LD}function La(){return[1/0,-1/0]}function PD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Dy(t,e,r,n,a){var i=wy[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new i(n)}var RD=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ie()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=lc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],sy(a),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,a=this._dimensions,i=n.get(e);if(null!=i){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new wy[r||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var u=i[e],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<i;l++)Dy(n,l,a[l].type,u,!0);for(var c=[],v=s;v<u;v++)for(var h=v-s,d=0;d<i;d++){var y=lc.arrayRows.call(this,e[h]||c,a[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 a=this._provider,i=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]=La()),Dy(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,u);else for(var v=[],h=e;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var y=i[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)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(null==r){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;i=0;for(var o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var n=0;if(this._chunks[e])for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return 0===a?0:a%2==1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(null!=n&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else{if(!(r[o]>e))return o;i=o-1}}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var a=this._count;if((n=r.constructor)===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n;for(e=new(n=Aa(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=new(Aa(n._rawCount))(a),s=[],u=e.length,l=0,f=e[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(0===u)h=r(v);else if(1===u)h=r(c[f][d],v);else{for(var p=0;p<u;p++)s[p]=c[e[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=ge(e),i=a.length;if(!i)return this;var o=r.count(),u=new(Aa(r._rawCount))(o),l=0,f=a[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var y=0;if(1===i){for(var p=h[a[0]],g=0;g<n;g++)((m=p[g])>=c&&m<=v||isNaN(m))&&(u[l++]=y),y++;d=!0}else if(2===i){p=h[a[0]];var _=h[a[1]],S=e[a[1]][0],b=e[a[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===i)for(g=0;g<o;g++){var x=r.getRawIndex(g);((m=h[a[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<i;w++){var m,A=a[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 a=e._chunks,i=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=La();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)u[h]=a[r[h]][v];u[o]=c;var d=n&&n.apply(null,u);if(null!=d)for("object"!=typeof d&&(i[0]=d,d=i),f=0;f<d.length;f++){var y=r[f],p=d[f],g=l[y],m=a[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),i=n._chunks[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),h=new(Aa(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=i[S=this.getRawIndex(_)];isNaN(b)||(m+=b)}m/=p-y;var C=d,x=Math.min(d+u,o),T=d-1,w=i[l];f=-1,v=C;var A=-1,L=0;for(_=C;_<x;_++){var S;b=i[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),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),u=new(Aa(this._rawCount))(2*Math.ceil(s/i)),l=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],y=i;f+i>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,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=i._rawExtent[e]=[1/0,-1/0],v=new(Aa(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+a(s,g)||0,f-1));l[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[e[u]][s];l[u]=i,r.apply(null,l)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=[1/0,-1/0];if(!r)return n;var o,a=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<a;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=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&zt(e,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?PD(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=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 a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return _s(r[i],this._dimensions[i])}lc={arrayRows:e,objectRows:function(r,n,a,i){return _s(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(null==r.value?r:r.value);return _s(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}();const fc=RD;var ED=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var a,i,e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length;if(Cs(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),s=(l=f.getSource()).data,u=l.sourceFormat,i=[f._getVersionSign()]}else u=rt(s=o.get("data",!0))?Pr:Tt,i=[];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);a=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y?[nc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:y},u)]:[]}else{var g=e;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else a=[nc(g.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&My("");var o,s=[],u=[];return D(e,function(l){l.prepareSource();var f=l.getSource(a||0);null!=a&&!f&&My(""),s.push(f),u.push(l._getVersionSign())}),n?o=function DD(t,e){var n=Ge(t),a=n.length;a||ut("");for(var o=0,s=a;o<s;o++)e=MD(n[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(n,s):null!=a&&(o=[tD(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){var r=this._sourceList[e=e||0];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Cs(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new fc).initData(new vy(r,e.length),e),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Cs(e)){var r=$f(e);return r?[r.getSourceManager()]:[]}return $(function xw(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?ci(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},jr).models:[]}(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r,n,a,e=this._sourceHost;if(Cs(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function Cs(t){return"series"===t.mainType}function My(t){throw new Error(t)}function Ay(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+at(e+"")+"px"}function Ly(t,e){var r=t.color||ce.color.tertiary,n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||ce.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+at(n+"")+"px;color:"+at(r)+";font-weight:"+at(a+""),valueStyle:"font-size:"+at(o+"")+"px;color:"+at(i)+";font-weight:"+at(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var OD=[0,10,20,30],BD=["","\n","\n\n","\n\n\n"];function Mi(t,e){return e.type=t,e}function cc(t){return"section"===t.type}function Py(t){return cc(t)?ND:FD}function Ry(t){if(cc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return D(t.blocks,function(a){var i=Ry(a);i>=e&&(e=i+ +(n&&(!i||cc(a)&&!a.noHeader)))}),e}return 0}function ND(t,e,r,n){var a=e.noHeader,i=function zD(t){return{html:OD[t],richText:BD[t]}}(Ry(e)),o=[],s=e.blocks||[];er(!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 yD(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=Py(y)(g?N(N({},t),{valueFormatter:g}):t,y,p>0?i.html:0,n);null!=m&&o.push(m)});var c="richText"===t.renderMode?o.join(i.richText):hc(n,o.join(""),a?r:i.html);if(a)return c;var v=Wf(e.header,"ordinal",t.useUTC),h=Ly(n,t.renderMode).nameStyle,d=Ay(n);return"richText"===t.renderMode?Ey(t,v,h)+i.richText+c:hc(n,'<div style="'+h+";"+d+';">'+at(v)+"</div>"+c,r)}function FD(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return $(S=G(S)?S:[S],function(b,C){return Wf(b,G(h)?h[C]:h,l)})};if(!i||!o){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ce.color.secondary,a),v=i?"":Wf(u,"ordinal",l),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),y=!s||!i,p=!s&&i,g=Ly(n,a),m=g.nameStyle,_=g.valueStyle;return"richText"===a?(s?"":c)+(i?"":Ey(t,v,m))+(o?"":function VD(t,e,r,n,a){var i=[a];return r&&i.push({padding:[0,0,0,n?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,i)}(t,d,y,p,_)):hc(n,(s?"":c)+(i?"":function HD(t,e,r){return'<span style="'+r+";"+(e?"margin-left:2px":"")+'">'+at(t)+"</span>"}(v,!s,m))+(o?"":function GD(t,e,r,n){return'<span style="'+(e?"float:right;margin-left:"+(r?"10px":"20px"):"")+";"+n+'">'+$(t=G(t)?t:[t],function(o){return at(o)}).join(" ")+"</span>"}(d,y,p,_)),r)}}function Iy(t,e,r,n,a,i){if(t)return Py(t)({useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,i)}function hc(t,e,r){return'<div style="margin: '+r+"px 0 0;"+Ay(t)+';">'+e+'<div style="clear:both"></div></div>'}function Ey(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function ky(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var vc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Xd()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a="richText"===n?this._generateStyleName():null,i=Mg({color:r,type:e,renderMode:n,markerId:a});return X(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};G(r)?D(r,function(i){return N(n,i)}):N(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();var en=Ce();function bs(t,e){return t.getName(e)||t.getId(e)}var xs=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return(0,j.C6)(e,t),e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Di({count:jD,reset:ZD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a),(en(this).sourceManager=new ED(this)).prepareSource();var o=this.getInitialData(r,a);By(o,this),this.dataTask.context.data=o,en(this).dataBeforeProcessed=o,Oy(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=ds(this),i=a?Kf(r):{},o=this.subType;De.hasClass(o)&&(o+="Series"),xe(r,n.getTheme().get(this.subType)),xe(r,this.getDefaultOption()),Gl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&wa(r,i,a)},e.prototype.mergeOption=function(r,n){r=xe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=ds(this);a&&wa(this.option,r,a);var i=en(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);By(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,en(this).dataBeforeProcessed=o,Oy(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!rt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Gl(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){this.getRawData().appendData(r.data)},e.prototype.getData=function(r){var n=dc(this);if(n){var a=n.context.data;return null!=r&&a.getLinkedData?a.getLinkedData(r):a}return en(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=dc(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}en(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ie(r)},e.prototype.getSourceManager=function(){return en(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return en(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(a);null==i&&(i=1/0);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<=i&&((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,a){return function qD(t){var f,c,v,h,e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),u=G(s),l=function WD(t,e){return _i(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(e,r);if(o>1||u&&!o){var d=function UD(t,e,r,n,a){var i=e.getData(),o=zt(t,function(c,v,h){var d=i.getDimensionInfo(h);return c||d&&!1!==d.tooltip&&null!=d.displayName},!1),s=[],u=[],l=[];function f(c,v){var h=i.getDimensionInfo(v);!h||!1===h.otherDims.tooltip||(o?l.push(Mi("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return n.length?D(n,function(c){f(ms(i,r,c),c)}):D(t,f),{inlineValues:s,inlineValueTypes:u,blocks:l}}(s,e,r,i,l);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var y=a.getDimensionInfo(i[0]);h=f=ms(a,r,i[0]),c=y.type}else h=f=u?s[0]:s;var p=Vl(e),g=p&&e.name||"",m=a.getName(r),_=n?g:m;return Mi("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Mi("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ht(_),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,a){var i=this.ecModel,o=Jf.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if("series"===i||"all"===a)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<r.length;s++){var l=bs(o,r[s]);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ge(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return("all"===a||a[bs(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(s&&u)if("series"===s)o.selectedMap="all";else if("multiple"===s){K(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f];l[v=bs(r,c)]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if("single"===s||!0===s){var h=n[u-1],v=bs(r,h);o.selectedMap=((a={})[v]=!0,a),this._selectedDataIndicesMap=((i={})[v]=r.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return 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 Oy(t){var e=t.name;Vl(t)||(t.name=function XD(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}(t)||e)}function jD(t){return t.model.getRawData().count()}function ZD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),KD}function KD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function By(t,e){D(Mv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Re($D,e))})}function $D(t,e){var r=dc(t);return r&&r.setOutputEnd((e||this).count()),e}function dc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}Ft(xs,hD),Ft(xs,Jf),ap(xs,De);const tn=xs;var pc=function(){function t(){this.group=new bt,this.uid=is("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Ul(pc),Wo(pc);const kt=pc;var Pa=In.CMD,JD=[[],[],[]],Ny=Math.sqrt,eM=Math.atan2,gc=Math.sqrt,Ts=Math.sin,ws=Math.cos,Ai=Math.PI;function Fy(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function yc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Fy(t)*Fy(e))}function zy(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(yc(t,e))}function Hy(t,e,r,n,a,i,o,s,u,l,f){var c=u*(Ai/180),v=ws(c)*(t-r)/2+Ts(c)*(e-n)/2,h=-1*Ts(c)*(t-r)/2+ws(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=gc(d),s*=gc(d));var y=(a===i?-1:1)*gc((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+ws(c)*p-Ts(c)*g,_=(e+n)/2+Ts(c)*p+ws(c)*g,S=zy([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=zy(b,C);if(yc(b,C)<=-1&&(x=Ai),yc(b,C)>=1&&(x=0),x<0){var T=Math.round(x/Ai*1e6)/1e6;x=2*Ai+T%2*Ai}f.addData(l,m,_,o,s,S,x,c,i)}var aM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,iM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Gy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.applyTransform=function(r){},e}(Te);function Vy(t){return null!=t.setData}function Wy(t,e){var r=function oM(t){var e=new In;if(!t)return e;var o,r=0,n=0,a=r,i=n,s=In.CMD,u=t.match(aM);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(iM)||[],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),a=r,i=n,c="l";break;case"M":r=h[p++],n=h[p++],e.addData(v=s.M,r,n),a=r,i=n,c="L";break;case"h":r+=h[p++],e.addData(v=s.L,r,n);break;case"H":r=h[p++],e.addData(v=s.L,r,n);break;case"v":n+=h[p++],e.addData(v=s.L,r,n);break;case"V":n=h[p++],e.addData(v=s.L,r,n);break;case"C":e.addData(v=s.C,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":e.addData(v=s.C,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":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++],Hy(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++],Hy(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=a,n=i),o=v}return e.toStatic(),e}(t),n=N({},e);return n.buildPath=function(a){var o,i=Vy(a);i&&a.canSave()?(a.appendPath(r),(o=a.getContext())&&a.rebuildPath(o,1)):(o=i?a.getContext():a)&&r.rebuildPath(o,1)},n.applyTransform=function(a){(function tM(t,e){if(e){var a,i,o,s,u,l,r=t.data,n=t.len(),f=Pa.M,c=Pa.C,v=Pa.L,h=Pa.R,d=Pa.A,y=Pa.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:case v:i=1;break;case c:i=3;break;case y:i=2;break;case d:var p=e[4],g=e[5],m=Ny(e[0]*e[0]+e[1]*e[1]),_=Ny(e[2]*e[2]+e[3]*e[3]),S=eM(-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<i;u++){var b=JD[u];b[0]=r[o++],b[1]=r[o++],mt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}})(r,a),this.dirtyShape()},n}var fM=function(){return function t(){this.cx=0,this.cy=0,this.r=0}}(),qy=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new fM},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);qy.prototype.type="circle";const Ds=qy;var cM=function(){return function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),Uy=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new cM},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*a,f=u*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-l,o-u,i,o-u),r.bezierCurveTo(i+l,o-u,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+l,o+u,i,o+u),r.bezierCurveTo(i-l,o+u,i-s,o+f,i-s,o),r.closePath()},e}(Te);Uy.prototype.type="ellipse";const mc=Uy;var Yy=Math.PI,_c=2*Yy,Un=Math.sin,Ra=Math.cos,hM=Math.acos,et=Math.atan2,Xy=Math.abs,Li=Math.sqrt,Pi=Math.max,dr=Math.min,Kt=1e-4;function Ms(t,e,r,n,a,i,o){var s=t-r,u=e-n,l=(o?i:-i)/Li(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=a-i,C=v*y-d*h,x=(_<0?-1:1)*Li(Pi(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,R=T-p,M=w-g,k=A-p,B=L-g;return R*R+M*M>k*k+B*B&&(T=A,w=L),{cx:T,cy:w,x0:-f,y0:-c,x1:T*(a/b-1),y1:w*(a/b-1)}}var gM=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}}(),jy=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new gM},e.prototype.buildPath=function(r,n){!function pM(t,e){var r,n=Pi(e.r,0),a=Pi(e.r0||0,0),i=n>0;if(i||a>0){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=e.startAngle,l=e.endAngle;if(!isNaN(u)&&!isNaN(l)){var f=e.cx,c=e.cy,v=!!e.clockwise,h=Xy(l-u),d=h>_c&&h%_c;if(d>Kt&&(h=d),n>Kt)if(h>_c-Kt)t.moveTo(f+n*Ra(u),c+n*Un(u)),t.arc(f,c,n,u,l,!v),a>Kt&&(t.moveTo(f+a*Ra(l),c+a*Un(l)),t.arc(f,c,a,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,R=void 0,M=void 0,k=void 0,B=n*Ra(u),F=n*Un(u),Y=a*Ra(l),U=a*Un(l),V=h>Kt;if(V){var q=e.cornerRadius;q&&(r=function dM(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=Xy(n-a)/2;if(_=dr(W,g),S=dr(W,m),b=dr(W,y),C=dr(W,p),w=x=Pi(_,S),A=T=Pi(b,C),(x>Kt||T>Kt)&&(L=n*Ra(l),R=n*Un(l),M=a*Ra(u),k=a*Un(u),h<Yy)){var H=function vM(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,f=o-a,c=s-i,v=c*u-f*l;if(!(v*v<Kt))return[t+(v=(f*(e-i)-c*(t-a))/v)*u,e+v*l]}(B,F,M,k,L,R,Y,U);if(H){var ae=B-H[0],Le=F-H[1],ct=L-H[0],wt=R-H[1],ht=1/Un(hM((ae*ct+Le*wt)/(Li(ae*ae+Le*Le)*Li(ct*ct+wt*wt)))/2),tt=Li(H[0]*H[0]+H[1]*H[1]);w=dr(x,(n-tt)/(ht+1)),A=dr(T,(a-tt)/(ht-1))}}}if(V)if(w>Kt){var Ze=dr(g,w),Be=dr(m,w),re=Ms(M,k,B,F,n,Ze,v),he=Ms(L,R,Y,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);a>Kt&&V?A>Kt?(Ze=dr(y,A),re=Ms(Y,U,L,R,a,-(Be=dr(p,A)),v),he=Ms(B,F,M,k,a,-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,a,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+Y,c+U),t.arc(f,c,a,l,u,v)):t.lineTo(f+Y,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);jy.prototype.type="sector";const Ri=jy;var yM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Zy=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new yM},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=2*Math.PI;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(Te);Zy.prototype.type="ring";const Sc=Zy;function Ky(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=function mM(t,e,r,n){var u,l,f,c,a=[],i=[],o=[],s=[];if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)Hr(f,f,t[v]),Gr(c,c,t[v]);Hr(f,f,n[0]),Gr(c,c,n[1])}for(v=0,h=t.length;v<h;v++){var d=t[v];if(r)u=t[v?v-1:h-1],l=t[(v+1)%h];else{if(0===v||v===h-1){a.push(Lv(t[v]));continue}u=t[v-1],l=t[v+1]}Pv(i,l,u),fo(i,i,e);var y=co(d,u),p=co(d,l),g=y+p;0!==g&&(y/=g,p/=g),fo(o,i,-y),fo(s,i,p);var m=Wu([],d,o),_=Wu([],d,s);n&&(Gr(m,m,f),Hr(m,m,c),Gr(_,_,f),Hr(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[2*s],l=i[2*s+1],f=a[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]),s=1;for(var c=a.length;s<c;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var _M=function(){return function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),$y=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultShape=function(){return new _M},e.prototype.buildPath=function(r,n){Ky(r,n,!0)},e}(Te);$y.prototype.type="polygon";const Cc=$y;var SM=function(){return function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Qy=function(t){function e(r){return t.call(this,r)||this}return(0,j.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){Ky(r,n,!1)},e}(Te);Qy.prototype.type="polyline";const Ii=Qy;var CM={},bM=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),Jy=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new bM},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Dp(CM,n,this.style);a=u.x1,i=u.y1,o=u.x2,s=u.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;0!==l&&(r.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Te);Jy.prototype.type="line";const Ia=Jy;var gt=[],xM=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 em(t,e,r){return null!=t.cpx2||null!=t.cpy2?[(r?rd:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?rd:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?od:$e)(t.x1,t.cpx1,t.x2,e),(r?od:$e)(t.y1,t.cpy1,t.y2,e)]}var tm=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xM},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;0!==v&&(r.moveTo(a,i),null==f||null==c?(v<1&&(wo(a,u,o,v,gt),u=gt[1],o=gt[2],wo(i,l,s,v,gt),l=gt[1],s=gt[2]),r.quadraticCurveTo(u,l,o,s)):(v<1&&(To(a,u,f,o,v,gt),u=gt[1],f=gt[2],o=gt[3],To(i,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 em(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=em(this.shape,r,!0);return Rv(n,n)},e}(Te);tm.prototype.type="bezier-curve";const bc=tm;var TM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),rm=function(t){function e(r){return t.call(this,r)||this}return(0,j.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TM},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,u,!l)},e}(Te);rm.prototype.type="arc";const As=rm;var wM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="compound",r}return(0,j.C6)(e,t),e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Te.prototype.getBoundingRect.call(this)},e}(Te);const nm=wM;var DM=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const am=DM;var MM=function(t){function e(r,n,a,i,o,s){var u=t.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=a??1,u.y2=i??0,u.type="linear",u.global=s||!1,u}return(0,j.C6)(e,t),e}(am);const im=MM;var AM=function(t){function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return(0,j.C6)(e,t),e}(am);const om=AM;var xc=Math.min,LM=Math.max,Ls=Math.abs,Yn=[0,0],Xn=[0,0],We=Gv(),Ps=We.minTv,Rs=We.maxTv,PM=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,a=this._axes,i=e.x,o=e.y,s=i+e.width,u=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,u),n[3].set(i,u),r)for(var l=0;l<4;l++)n[l].transform(r);for(te.sub(a[0],n[1],n[0]),te.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize(),l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var a=!0,i=!r;return r&&te.set(r,0,0),We.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!We.negativeSize&&te.copy(r,a?We.useDir?We.dirMinTv:Ps:Rs),a},t.prototype._intersectCheckOneSide=function(e,r,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Yn),e._getProjMinMaxOnAxis(o,r._corners,Xn),We.negativeSize||Yn[1]<Xn[0]||Yn[0]>Xn[1]){if(i=!1,We.negativeSize||n)return i;var u=Ls(Xn[0]-Yn[1]),l=Ls(Yn[0]-Xn[1]);xc(u,l)>Rs.len()&&te.scale(Rs,s,u<l?-u*a:l*a)}else n||(u=Ls(Xn[0]-Yn[1]),l=Ls(Yn[0]-Xn[1]),(We.useDir||xc(u,l)<Ps.len())&&((u<l||!We.bidirectional)&&(te.scale(Ps,s,u*a),We.useDir&&We.calcDirMTV()),(u>=l||!We.bidirectional)&&(te.scale(Ps,s,-l*a),We.useDir&&We.calcDirMTV())))}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(a)+i[e];s=xc(f,s),u=LM(f,u)}n[0]=s+We.touchThreshold,n[1]=u-We.touchThreshold,We.negativeSize=n[1]<n[0]},t}();const sm=PM;var RM=[],IM=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,j.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 a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++)(n=this._displayables[r]).parent=this,n.update(),n.parent=null;for(r=0;r<this._temporaryDisplayables.length;r++){var n;(n=this._temporaryDisplayables[r]).parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(RM)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n);if(this.getBoundingRect().contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,n))return!0;return!1},e}(Dn);const um=IM;var Tc={},lm=["x","y"],fm=["width","height"];function cm(t){return Te.extend(t)}function hm(t,e){return function uM(t,e){var r=Wy(t,e);return function(a){function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return(0,j.C6)(i,a),i}(Gy)}(t,e)}function Ot(t,e){Tc[t]=e}function wc(t){if(Tc.hasOwnProperty(t))return Tc[t]}function Is(t,e,r,n){var a=function sM(t,e){return new Gy(Wy(t,e))}(t,e);return r&&("center"===n&&(r=vm(r,a.getBoundingRect())),Mc(a,r)),a}function Dc(t,e,r){var n=new Qr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){"center"===r&&n.setStyle(vm(e,{width:a.width,height:a.height}))}});return n}function vm(t,e){var a,r=e.width/e.height,n=t.height*r;return a=n<=t.width?t.height:(n=t.width)/r,{x:t.x+t.width/2-n/2,y:t.y+t.height/2-a/2,width:n,height:a}}var dm=function lM(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push(t[a].getUpdatedPathProxy(!0));var o=new Te(e);return o.createPathProxy(),o.buildPath=function(s){if(Vy(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o};function Mc(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Ac(t,e){return Dp(t,t,{lineWidth:e}),t}function kM(t,e){return Mp(t,t,e),t}var OM=kn;function pm(t,e){for(var r=Xa([]);t&&t!==e;)vn(r,t.getLocalTransform(),r),t=t.parent;return r}function Lc(t,e,r){return e&&!Ke(e)&&(e=No.getLocalTransform(e)),r&&(e=dn([],e)),mt([],t,e)}function BM(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:ar(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:ar(2*e[4]/e[2]),i=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return i=Lc(i,e,r),ar(i[0])>ar(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function gm(t){return!t.isGroup}function FM(t,e,r){if(t&&e){var i=function n(o){var s={};return o.traverse(function(u){gm(u)&&u.anid&&(s[u.anid]=u)}),s}(t);e.traverse(function(o){if(gm(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),Xt(o,u,r,de(o).dataIndex)}}})}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function NM(t){return null!=t.shape}(o)&&(s.shape=le(o.shape)),s}}function ym(t,e){return $(t,function(r){var n=r[0];n=Yt(n,e.x),n=ii(n,e.x+e.width);var a=r[1];return a=Yt(a,e.y),[n,a=ii(a,e.y+e.height)]})}function mm(t,e){var r=Yt(t.x,e.x),n=ii(t.x+t.width,e.x+e.width),a=Yt(t.y,e.y),i=ii(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Es(t,e,r){var n=N({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),we(a,r),new Qr(n)):Is(t.replace("path://",""),n,r,"center")}function zM(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(_m(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function _m(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,f=o-a,c=s-i,v=Pc(f,c,u,l);if(function HM(t){return t<=1e-6&&t>=-1e-6}(v))return!1;var h=t-a,d=e-i,y=Pc(h,d,u,l)/v;if(y<0||y>1)return!1;var p=Pc(h,d,f,c)/v;return!(p<0||p>1)}function Pc(t,e,r,n){return t*n-r*e}function Rc(t,e,r,n,a){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]=Yt(0,Me[0]),Me[1]=Yt(0,Me[1]),Me[2]=Yt(0,Me[2]),Me[3]=Yt(0,Me[3])),r&&(Me[0]=-Me[0],Me[1]=-Me[1],Me[2]=-Me[2],Me[3]=-Me[3]),Sm(t,Me,"x","width",3,1,a&&a[0]||0),Sm(t,Me,"y","height",0,2,a&&a[1]||0)),t}var Me=[0,0,0,0];function Sm(t,e,r,n,a,i,o){var s=e[i]+e[a],u=t[n];t[n]+=s,o=Yt(0,ii(o,u)),t[n]<o?(t[n]=o,t[r]+=e[a]>=0?-e[a]:e[i]>=0?u+e[i]:ar(s)>1e-8?(u-o)*e[a]/s:0):t[r]-=e[a]}function Ei(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=X(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=t.formatterParamsExtra;u&&D(ge(u),function(f){J(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=de(t.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:we({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Ic(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Cm(t,e){if(t)if(G(t))for(var r=0;r<t.length;r++)Ic(t[r],e);else Ic(t,e)}function Ec(t){return!t||ar(t[1])<ks&&ar(t[2])<ks||ar(t[0])<ks&&ar(t[3])<ks}var ks=1e-5;function ki(t,e){return t?ne.copy(t,e):e.clone()}function kc(t,e){return e?go(t||[1,0,0,1,0,0],e):void 0}function bm(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function GM(t){var e=-1/0,r=1/0;function n(i){if(i&&!i.isGroup){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return Ic(t,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())}),r>e&&(r=e=0),{min:r,max:e}}function xm(t,e,r){Tm(t,e,r,-1/0)}function Tm(t,e,r,n){if(t.ignoreModelZ)return n;var a=t.getTextContent(),i=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=Yt(Tm(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=Yt(t.z2||0,n);if(a&&(a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var l=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+(l&&l.showAbove?1:-1))}return n}Ot("circle",Ds),Ot("ellipse",mc),Ot("sector",Ri),Ot("ring",Sc),Ot("polygon",Cc),Ot("polyline",Ii),Ot("rect",Xe),Ot("line",Ia),Ot("bezierCurve",bc),Ot("arc",As);var wm=Ce(),VM=function QD(){var t=Ce();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return(a!==o||i!==s)&&"reset"}}(),Oc=function(){function t(){this.group=new bt,this.uid=is("viewChart"),this.renderTask=Di({plan:WM,reset:qM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Mm(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Mm(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){Cm(this.group,e)},t.markUpdateMethod=function(e,r){wm(e).updateMethod=r},t.protoInitialize=void(t.prototype.type="chart"),t}();function Dm(t,e,r){t&&bf(t)&&("emphasis"===e?yf:mf)(t,r)}function Mm(t,e,r){var n=fi(t,e),a=e&&null!=e.highlightKey?function xT(t){var e=Hp[t];return null==e&&zp<=32&&(e=Hp[t]=zp++),e}(e.highlightKey):null;null!=n?D(Ge(n),function(i){Dm(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){Dm(i,r,a)})}function WM(t){return VM(t.model)}function qM(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&wm(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==u&&o[u](e,r,n,a),UM[u]}Ul(Oc),Wo(Oc);var UM={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 Ir=Oc;var Os="\0__throttleOriginMethod",Am="\0__throttleRate",Lm="\0__throttleType";function Bc(t,e,r){var n,s,u,l,f,a=0,i=0,o=null;function c(){i=(new Date).getTime(),o=null,t.apply(u,l||[])}e=e||0;var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=(new Date).getTime(),u=this,l=h;var y=f||e,p=f||r;f=null,s=n-(p?a:i)-y,clearTimeout(o),p?o=setTimeout(c,y):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Pm(t,e,r,n){var a=t[e];if(a){var i=a[Os]||a;if(a[Am]!==r||a[Lm]!==n){if(null==r||!n)return t[e]=i;(a=t[e]=Bc(i,r,"debounce"===n))[Os]=i,a[Lm]=n,a[Am]=r}return a}}function Nc(t,e){var r=t[e];r&&r[Os]&&(r.clear&&r.clear(),t[e]=r[Os])}var Rm=Ce(),Im={itemStyle:hi(pg,!0),lineStyle:hi(dg,!0)},YM={lineStyle:"stroke",itemStyle:"fill"};function Em(t,e){return t.visualStyleMapper||Im[e]||(console.warn("Unknown style type '"+e+"'."),Im.itemStyle)}function km(t,e){return t.visualDrawType||YM[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var XM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),o=Em(t,n)(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=km(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)}}}},Oi=new Fe,jM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=Em(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Oi.option=u[n];var l=a(Oi);N(o.ensureUniqueItemVisual(s,"style"),l),Oi.option.decal&&(o.setItemVisual(s,"decal",Oi.option.decal),Oi.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ZM={performRawSeries:!0,overallReset:function(t){var e=ie();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||e.set(a,i={}),Rm(r).scope=i}}),t.eachSeries(function(r){if(!r.isColorBySeries()&&!t.isSeriesFiltered(r)){var n=r.getRawData(),a={},i=r.getData(),o=Rm(r).scope,u=km(r,r.visualStyleAccessPath||"itemStyle");i.each(function(l){var f=i.getRawIndex(l);a[f]=l}),n.each(function(l){var f=a[l];if(i.getItemVisual(f,"colorFromPalette")){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(l)||l+"",d=n.count();v[u]=r.getColorFromPalette(h,o,d)}})}})}},Bs=Math.PI,$M=function(){function t(e,r,n,a){this._stageTaskMap=ie(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,s=a&&a.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),u="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ie();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{});er(!(a.reset&&a.overallReset),""),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}D(e,function(u,l){if(!a.visualType||a.visualType===u.visualType){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,a.block);d.each(function(p){p.perform(y)}),v.perform(y)&&(i=!0)}else c&&c.each(function(p,g){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){"remain"!==r&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ie(),u=e.seriesType,l=e.getTargetSeries;function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Di({plan:rA,reset:nA,count:iA}));h.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,a).each(f)},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||Di({reset:QM});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=ie(),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,Di({reset:JM,onDirty:tA})));g.context={model:y,overallProgress:c},g.agent=o,g.__block=c,i._pipe(y,g)}er(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):f?f(n,a).each(d):(c=!1,D(n.getSeries(),d)),v&&o.dirty()},t.prototype._pipe=function(e,r){var a=this._pipelineMap.get(e.uid);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:oA(e)}),e.uid=is("stageHandler"),r&&(e.visualType=r),e},t}();function QM(t){t.overallReset(t.ecModel,t.api,t.payload)}function JM(t){return t.overallProgress&&eA}function eA(){this.agent.dirty(),this.getDownstream().dirty()}function tA(){this.agent&&this.agent.dirty()}function rA(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function nA(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 Om(n)}):aA}var aA=Om(0);function Om(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function iA(t){return t.data.count()}function oA(t){Ns=null;try{t(Bi,Bm)}catch{}return Ns}var Ns,Bi={},Bm={};function Nm(t,e){for(var r in e.prototype)t[r]=nt}Nm(Bi,Zg),Nm(Bm,Kg),Bi.eachSeriesByType=Bi.eachRawSeriesByType=function(t){Ns=t},Bi.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ns=t.subType)};const Fm=$M;var z=ce.darkColor,Ni=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:{}}},zm={label:{color:z.secondary},itemStyle:{borderColor:z.borderTint},dividerLineStyle:{color:z.border}},Hm={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:zm,y:zm,backgroundColor:{borderColor:z.axisLine},body:{itemStyle:{borderColor:z.borderTint}}},timeAxis:Ni(),logAxis:Ni(),valueAxis:Ni(),categoryAxis:Ni(),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=Ni();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}}}};Hm.categoryAxis.splitLine.show=!1;const uA=Hm;var lA=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(X(e)){var i=sr(e);r.mainType=i.main||null,r.subType=i.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||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,i,"name")&&f(l,i,"dataIndex")&&f(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(c,v,h,d){return null==c[h]||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Fc=["symbol","symbolSize","symbolRotate","symbolOffset"],Gm=Fc.concat(["symbolKeepAspect"]),fA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},a={},i=!1,o=0;o<Fc.length;o++){var s=Fc[o],u=t.get(s);ee(u)?(i=!0,a[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(a);return{dataEach:i?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,a[p](h,d))}}:null}}}}},cA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function n(a,i){for(var o=a.getItemModel(i),s=0;s<Gm.length;s++){var u=Gm[s],l=o.getShallow(u,!0);null!=l&&a.setItemVisual(i,u,l)}}:null}}};function Ea(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),v=fi(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:G(v)?c.getName(v[0]):c.getName(v),selected:X(u)?u:N({},u)})}})}function Fi(t,e,r){for(var n;t&&(!e(t)||(n=t,!r));)t=t.__hostTarget||t.parent;return n}var gA=Math.round(9*Math.random()),yA="function"==typeof Object.defineProperty,mA=function(){function t(){this._id="__ec_inner_"+gA++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return yA?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 _A=mA;var CA=Te.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),bA=Te.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),xA=Te.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),v=Math.cos(l),h=.6*o,d=.7*o;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(r+f-c*h,u+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,u+s+v*h,r-f,u+s),t.closePath()}}),TA=Te.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.x,i=e.y,o=e.width/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),DA={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},zc={};D({line:Ia,rect:Xe,roundRect:Xe,square:Xe,circle:Ds,diamond:bA,pin:xA,arrow:TA,triangle:CA},function(t,e){zc[e]=new t});var MA=Te.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=kd(t,e,r),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===e.position&&(n.y=r.y+.4*r.height),n},buildPath:function(t,e,r){var n=e.symbolType;if("none"!==n){var a=zc[n];a||(a=zc[n="rect"]),DA[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function AA(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 Fs(t,e,r,n,a,i,o){var u,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?Dc(t.slice(8),new ne(e,r,n,a),o?"center":"cover"):0===t.indexOf("path://")?Is(t.slice(7),{},new ne(e,r,n,a),o?"center":"cover"):new MA({shape:{symbolType:t,x:e,y:r,width:n,height:a}})).__isEmptyBrush=s,u.setColor=AA,i&&u.setColor(i),u}function jn(t){return isFinite(t)}function Hc(t,e,r){for(var n="radial"===e.type?function RA(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(o=o*n+r.x,s=s*a+r.y,u*=i),o=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 PA(t,e,r){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,i=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=jn(n)?n:0,a=jn(a)?a:1,i=jn(i)?i:0,o=jn(o)?o:0,t.createLinearGradient(n,i,a,o)}(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function zs(t){return parseInt(t,10)}function Hs(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||zs(s[n])||zs(t.style[n]))-(zs(s[i])||0)-(zs(s[o])||0)|0}function Vm(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&function EA(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 a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=$(r,function(i){return i/a}),n/=a)}return[r,n]}var kA=new In(!0);function Gs(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Wm(t){return"string"==typeof t&&"none"!==t}function Vs(t){var e=t.fill;return null!=e&&"none"!==e}function qm(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 Um(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 Gc(t,e,r){var n=ip(e.image,e.__image,r);if(qo(n)){var a=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Av),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}var Ym=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jm(t,e,r,n,a){var i=!1;if(!n&&e===(r=r||{}))return!1;if(n||e.opacity!==r.opacity){yt(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?wn.opacity:o}(n||e.blend!==r.blend)&&(i||(yt(t,a),i=!0),t.globalCompositeOperation=e.blend||wn.blend);for(var s=0;s<Ym.length;s++){var u=Ym[s];(n||e[u]!==r[u])&&(i||(yt(t,a),i=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(yt(t,a),i=!0),t.shadowColor=e.shadowColor||wn.shadowColor),i}function Zm(t,e,r,n,a){var i=zi(e,a.inHover),o=n?null:r&&zi(r,a.inHover)||{};if(i===o)return!1;var s=jm(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(yt(t,a),s=!0),Wm(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(yt(t,a),s=!0),Wm(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(yt(t,a),s=!0),t.globalAlpha=null==i.opacity?1:i.opacity),e.hasStroke()){var l=i.lineWidth/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(yt(t,a),s=!0),t.lineWidth=l)}for(var f=0;f<Xm.length;f++){var c=Xm[f],v=c[0];(n||i[v]!==o[v])&&(s||(yt(t,a),s=!0),t[v]=i[v]||c[1])}return s}function Km(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 zi(t,e){return e&&t.__hoverStyle||t.style}function Vc(t,e){Zn(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zn(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||function IA(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}(i,o))&&(o&&o.length&&(yt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(yt(t,r),t.save(),function zA(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),Km(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}(i,t,r),s=!0),r.prevElClipPaths=i),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 GA(t){var e=Vs(t),r=Gs(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 HA(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)}(a,l.transform)?(yt(t,r),Km(t,e)):f||yt(t,r);var c=zi(e,r.inHover);e instanceof Te?(1!==r.lastDrawType&&(u=!0,r.lastDrawType=1),Zm(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),function OA(t,e,r,n){var a,i=Gs(r),o=Vs(r),s=r.strokePercent,u=s<1,l=!e.path;(!e.silent||u)&&l&&e.createPathProxy();var f=e.path||kA,c=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,y=i&&!!h.colorStops,p=o&&!!v.image,g=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0;(d||y)&&(C=e.getBoundingRect()),d&&(m=c?Hc(t,v,C):e.__canvasFillGradient,e.__canvasFillGradient=m),y&&(_=c?Hc(t,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(S=c||!e.__canvasFillPattern?Gc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),g&&(b=c||!e.__canvasStrokePattern?Gc(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:i=!1)}var T,w,x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(T=(a=Vm(e))[0],w=a[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?(i&&Um(t,r),o&&qm(t,r)):(o&&qm(t,r),i&&Um(t,r))),T&&t.setLineDash([])}(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof lf?(3!==r.lastDrawType&&(u=!0,r.lastDrawType=3),Zm(t,e,l,u,r),function NA(t,e,r){var n,a=r.text;if(null!=a&&(a+=""),a){t.font=r.font||Fr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=(n=Vm(e))[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(Gs(r)&&t.strokeText(a,r.x,r.y),Vs(r)&&t.fillText(a,r.x,r.y)):(Vs(r)&&t.fillText(a,r.x,r.y),Gs(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}(t,e,c)):e instanceof Qr?(2!==r.lastDrawType&&(u=!0,r.lastDrawType=2),function FA(t,e,r,n,a){jm(t,zi(e,a.inHover),r&&zi(r,a.inHover),n,a)}(t,e,l,u,r),function BA(t,e,r){var n=e.__image=ip(r.image,e.__image,e,e.onload);if(n&&qo(n)){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(null==o&&null!=s?o=s*u:null==s&&null!=o?s=o/u:null==o&&null==s&&(o=n.width,s=n.height),r.sWidth&&r.sHeight)t.drawImage(n,l=r.sx||0,f=r.sy||0,r.sWidth,r.sHeight,a,i,o,s);else if(r.sx&&r.sy){var l,f;t.drawImage(n,l=r.sx,f=r.sy,o-l,s-f,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}(t,e,c)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(u=!0,r.lastDrawType=4),function VA(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var o,s,i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),s=n.length;o<s;o++)(u=n[o]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Zn(t,u,i,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u;for(var l=0,f=a.length;l<f;l++){var u;(u=a[l]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Zn(t,u,i,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.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 Wc=new _A,t0=new ha(100),r0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qc(t,e){if("none"===t)return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a="svg"===n.painter.type;t.dirty&&Wc.delete(t);var i=Wc.get(t);if(i)return i;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<r0.length;++v){var h=o[r0[v]];if(null!=h&&!G(h)&&!X(h)&&!_e(h)&&"boolean"!=typeof h){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var y=t0.get(d);y&&(a?l.svgElement=y:l.image=y)}var T,p=a0(o.dashArrayX),g=function WA(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=n0(o.symbol),_=function qA(t){return $(t,function(e){return i0(e)})}(p),S=i0(g),b=!a&&Dt.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function w(){for(var L=1,R=0,M=_.length;R<M;++R)L=Zd(L,_[R]);var k=1;for(R=0,M=m.length;R<M;++R)k=Zd(k,m[R].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,R=0;R<g.length;++R)L+=g[R];if(!(L<=0))for(var M=-S,k=0,B=0,F=0;M<x.height;){if(k%2==0){for(var Y=B/2%m.length,U=0,V=0,q=0;U<2*x.width;){var W=0;for(R=0;R<p[F].length;++R)W+=p[F][R];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[Y][q/2%m[Y].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,_r){var Ue=a?1:r,fn=Fs(_r,Ze*Ue,Be*Ue,re*Ue,he*Ue,o.color,o.symbolKeepAspect);if(a){var Br=n.painter.renderOneToVNode(fn);Br&&C.children.push(Br)}else Vc(T,fn)}}(),c&&t0.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=a?1:1/r,Wc.set(t,s),t.dirty=!1,s}function n0(t){if(!t||0===t.length)return[["rect"]];if(X(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!X(t[r])){e=!1;break}if(e)return n0([t]);var n=[];for(r=0;r<t.length;++r)X(t[r])?n.push([t[r]]):n.push(t[r]);return n}function a0(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 a0([t]);var a=[];for(n=0;n<t.length;++n)if(_e(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else e=$(t[n],function(s){return Math.ceil(s)}),a.push(e.length%2==1?e.concat(e):e);return a}function i0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2==1?2*e:e}const $t=new tr;var o0={};function s0(t){return o0[t]}var u0={};function l0(t,e){u0[t]=e}var jA="6.0.0",ZA={zrender:"6.0.0"},v0={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",qs="__mainProcessVersion",qe="__pendingUpdate",Yc="__needsUpdateStatus",d0=/^[a-zA-Z0-9_]+$/,Xc="__connectUpdateStatus";function g0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(!this.isDisposed())return m0(this,t,e)}}function y0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return m0(this,t,e)}}function m0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),tr.prototype[e].apply(t,r)}var _0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e}(tr),S0=_0.prototype;S0.on=y0("on"),S0.off=y0("off");var Kn,jc,Us,Er,Ys,Zc,Kc,ka,Oa,C0,b0,$c,x0,Xs,T0,w0,Bt,D0,Ba,js=function(t){function e(r,n,a){var i=t.call(this,new lA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r,i[qs]=1,a.ssr&&zd(function(h){var d=de(h),y=d.dataIndex;if(null!=y){var p=ie();return p.set("series_index",d.seriesIndex),p.set("data_index",y),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var f=i._zr=Bl(r,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Q(a.useDirtyRect,!1),useCoarsePointer:Q(a.useCoarsePointer,"auto"),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Bc(ve(f.flush,f),17),i._updateTheme(n),i._locale=function qT(t){if(X(t)){var e=ss[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?le(e):xe(le(e),le(ss[xa]),!1)}return xe(le(t),le(ss[xa]),!1)}(a.locale||gg),i._coordSysMgr=new hs;var c=i._api=T0(i);function v(h,d){return h.__prio-d.__prio}return _o(Ks,v),_o(th,v),i._scheduler=new Fm(i,c,th,Ks),i._messageCenter=new _0,i._initEvents(),i.resize=ve(i.resize,i),f.animation.on("frame",i._onframe,i),C0(f,i),b0(f,i),lo(i),i}return(0,j.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){D0(this);var r=this._scheduler;if(this[qe]){var n=this[qe].silent;this[ze]=!0,Ba(this);try{Kn(this),Er.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,ka.call(this,n),Oa.call(this,n)}else if(r.unfinished){var a=1,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Zc(this,i),r.performVisualTasks(i),Xs(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[ze]){if(this._disposed)return;var i,o,s;if(K(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ze]=!0,Ba(this),!this._model||n){var u=new Uw(this._api),l=this._theme,f=this._model=new Zg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},rh);var c={seriesTransition:s,optionChanged:!0};if(a)this[qe]={silent:i,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{Kn(this),Er.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,ka.call(this,i),Oa.call(this,i)}}},e.prototype.setTheme=function(r,n){if(!this[ze]){if(this._disposed)return;var a=this._model;if(a){var i=n&&n.silent,o=null;this[qe]&&(null==i&&(i=this[qe].silent),o=this[qe].updateParams,this[qe]=null),this[ze]=!0,Ba(this);try{this._updateTheme(r),a.setTheme(this._theme),Kn(this),Er.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ze]=!1,s}this[ze]=!1,ka.call(this,i),Oa.call(this,i)}}},e.prototype._updateTheme=function(r){X(r)&&(r=M0[r]),r&&((r=le(r))&&ny(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(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(!this._disposed){var a=this._model,i=[],o=this;D((r=r||{}).excludeComponents,function(u){a.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(u){u.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(r){if(!this._disposed){var n="svg"===r.type,a=this.group,i=Math.min,o=Math.max,s=1/0;if($s[a]){var u=s,l=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D($n,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(le(r)),C=_.getDom().getBoundingClientRect();u=i(C.left,u),l=i(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=Bl(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 Qr({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,a){return Ys(this,"convertToPixel",r,n,a)},e.prototype.convertToLayout=function(r,n,a){return Ys(this,"convertToLayout",r,n,a)},e.prototype.convertFromPixel=function(r,n,a){return Ys(this,"convertFromPixel",r,n,a)},e.prototype.containPixel=function(r,n){var i;if(!this._disposed)return D(Wl(this._model,r),function(s,u){u.indexOf("Models")>=0&&D(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if("seriesModels"===u){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var i=Wl(this._model,r,{defaultMainType:"series"}),s=i.seriesModel.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=u?function hA(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 vA(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(lL,function(a){var i=function(o){var l,s=r.getModel(),u=o.target;if("globalout"===a?l={}:u&&Fi(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=a,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(a,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;D(eh,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),function pA(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Ea("map","selectchanged",e,a,n),Ea("pie","selectchanged",e,a,n)):"select"===n.fromAction?(Ea("map","selected",e,a,n),Ea("pie","selected",e,a,n)):"unselect"===n.fromAction&&(Ea("map","unselected",e,a,n),Ea("pie","unselected",e,a,n))})}(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&rp(this.getDom(),ah,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete $n[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 a=n.resetOption("media"),i=r&&r.silent;this[qe]&&(null==i&&(i=this[qe].silent),a=!0,this[qe]=null),this[ze]=!0,Ba(this);try{a&&Kn(this),Er.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[ze]=!1,o}this[ze]=!1,ka.call(this,i),Oa.call(this,i)}}},e.prototype.showLoading=function(r,n){if(!this._disposed&&(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),nh[r])){var a=nh[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(r){var n=N({},r);return n.type=Jc[r.type],n},e.prototype.dispatchAction=function(r,n){if(!this._disposed&&(K(n)||(n={silent:!!n}),Zs[r.type]&&this._model)){if(this[ze])return void this._pendingActions.push(r);var a=n.silent;Kc.call(this,r,a);var i=n.flush;i?this._zr.flush():!1!==i&&ue.browser.weChat&&this._throttledZrFlush(),ka.call(this,a),Oa.call(this,a)}},e.prototype.updateLabelLayout=function(){$t.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(!this._disposed){var n=r.seriesIndex;this.getModel().getSeriesByIndex(n).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var 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=bm(c);v.eachRendered(function(d){return xm(d,h.z,h.zlevel),!0})}}function l(c,v){v.eachRendered(function(h){if(!Ca(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(Ca(g))return;if(g instanceof Te&&function TT(t){var e=Gp(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&&i(g)}})}Kn=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),jc(c,!0),jc(c,!1),v.plan()},jc=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=sr(C.type);(w=new(v?kt.getClass(A.main,A.sub):Ir.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)}},Us=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=ie(),D(Ge(_),function(C){var x=it(C,null);null!=x&&S.set(x,!0)})),p&&p.eachComponent(m,function(C){if(!S||null==S.get(C.id))if(rg(h))if(C instanceof tn)h.type===On&&!h.notBlur&&!C.get(["emphasis","disabled"])&&function vT(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=fi(a,e);i=(G(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=de(o);_f(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=f&&_f(n,f,c,r)}}}(C,h,c._api);else{var T=Cf(C.mainType,C.componentIndex,h.name,c._api),A=T.dispatchers;h.type===On&&T.focusSelf&&!h.notBlur&&Sf(C.mainType,C.componentIndex,c._api),A&&D(A,function(L){h.type===On?yf(L):mf(L)})}else xf(h)&&C instanceof tn&&(function gT(t,e){if(xf(e)){var n=e.dataType,i=fi(t.getData(n),e);G(i)||(i=[i]),t[e.type===es?"toggleSelect":e.type===Jo?"select":"unselect"](i,n)}}(C,h),Jp(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)}},Er={prepareAndUpdate:function(c){Kn(this),Er.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),Zc(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(_),$c(this,h,d,c,v),$t.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=ie();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}),Xs(this,h,d,c,{},p),$t.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),Ir.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),$c(this,v,this._api,c,{}),$t.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()}),Ir.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)}),$t.trigger("afterupdate",h,this._api))},updateLayout:function(c){Er.update.call(this,c)}},Ys=function r(c,v,h,d,y){if(!c._disposed)for(var m,p=c._model,g=c._coordSysMgr.getCoordinateSystems(),_=Wl(p,h),S=0;S<g.length;S++){var b=g[S];if(b[v]&&null!=(m=b[v](p,_,d,y)))return m}},Zc=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(y){d.updateStreamModes(y,h[y.__viewId])})},Kc=function(c,v){var h=this,d=this.getModel(),p=c.escapeConnect,g=Zs[c.type],m=(g.update||"update").split(":"),_=m.pop(),S=null!=m[0]&&sr(m[0]);this[ze]=!0,Ba(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=xf(c),R=rg(c);if(R&&Qp(this._api),D(b,function(F){var Y=g.action(F,d,h._api);if(g.refineEvent?w.push(Y):T=Y,(T=T||N({},F)).type=A,x.push(T),R){var U=ql(c),W=U.mainTypeSpecified?U.queryOptionMap.keys()[0]:"series";Us(h,_,F,W),Bt(h)}else L?(Us(h,_,F,"series"),Bt(h)):S&&Us(h,_,F,S.main,S.sub)}),"none"!==_&&!R&&!L&&!S)try{this[qe]?(Kn(this),Er.update.call(this,c),this[qe]=null):Er[_].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;er(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)}},ka=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();Kc.call(this,h,c)}},Oa=function(c){!c&&this.trigger("updated")},C0=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")})},b0=function(c,v){c.on("mouseover",function(h){var y=Fi(h.target,bf);y&&(function dT(t,e,r){var n=de(t),a=Cf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers;i?(a.focusSelf&&Sf(n.componentMainType,n.componentIndex,r),D(i,function(s){return Yp(s,e)})):(_f(n.seriesIndex,n.focus,n.blurScope,r),"self"===n.focus&&Sf(n.componentMainType,n.componentIndex,r),Yp(t,e))}(y,h,v._api),Bt(v))}).on("mouseout",function(h){var y=Fi(h.target,bf);y&&(function pT(t,e,r){Qp(r);var n=de(t),a=Cf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return Xp(i,e)}):Xp(t,e)}(y,h,v._api),Bt(v))}).on("click",function(h){var y=Fi(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})}})},$c=function(c,v,h,d,y){(function a(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);_o(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),x0(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive=!1}),Xs(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},x0=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)})},Xs=function(c,v,h,d,y,p){var g=c._scheduler;y=N(y||{},{updatedSeries:v.getSeries()}),$t.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),Jp(_)}),g.unfinished=m||g.unfinished,$t.trigger("series:layoutlabels",v,h,y),$t.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),$t.trigger("series:afterupdate",v,h,y)},Bt=function(c){c[Yc]=!0,c.getZr().wakeUp()},Ba=function(c){c[qs]=(c[qs]+1)%1e3},D0=function(c){c[Yc]&&(c.getZr().storage.traverse(function(v){Ca(v)||i(v)}),c[Yc]=!1)},T0=function(c){return new(function(v){function h(){return null!==v&&v.apply(this,arguments)||this}return(0,j.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){yf(d,y),Bt(c)},h.prototype.leaveEmphasis=function(d,y){mf(d,y),Bt(c)},h.prototype.enterBlur=function(d){(function hT(t){Dr(t,pf)})(d),Bt(c)},h.prototype.leaveBlur=function(d){jp(d),Bt(c)},h.prototype.enterSelect=function(d){Zp(d),Bt(c)},h.prototype.leaveSelect=function(d){Kp(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[qs]},h}(Kg))(c)},w0=function(c){function v(h,d){for(var y=0;y<h.length;y++)h[y][Xc]=d}D(Jc,function(h,d){c._messageCenter.on(d,function(y){if($s[c.group]&&0!==c[Xc]){if(y&&y.escapeConnect)return;var p=c.makeActionFromEvent(y),g=[];D($n,function(m){m!==c&&m.group===c.group&&g.push(m)}),v(g,0),D(g,function(m){1!==m[Xc]&&m.dispatchAction(p)}),v(g,2)}})})}}(),e}(tr),Qc=js.prototype;Qc.on=g0("on"),Qc.off=g0("off"),Qc.one=function(t,e,r){var n=this;this.on.call(this,t,function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)},r)};var lL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Zs={},Jc={},eh={},th=[],rh=[],Ks=[],M0={},nh={},$n={},$s={},fL=+new Date-0,cL=+new Date-0,ah="_echarts_instance_";function hL(t,e,r){var n=!(r&&r.ssr);if(n){var a=ih(t);if(a)return a}var i=new js(t,e,r);return i.id="ec_"+fL++,$n[i.id]=i,n&&rp(t,ah,i.id),w0(i),$t.trigger("afterinit",i),i}function vL(t){if(G(t)){var e=t;t=null,D(e,function(r){null!=r.group&&(t=r.group)}),t=t||"g_"+cL++,D(e,function(r){r.group=t})}return $s[t]=!0,t}function A0(t){$s[t]=!1}var dL=A0;function pL(t){X(t)?t=$n[t]:t instanceof js||(t=ih(t)),t instanceof js&&!t.isDisposed()&&t.dispose()}function ih(t){return $n[function $x(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,ah)]}function gL(t){return $n[t]}function oh(t,e){M0[t]=e}function sh(t){fe(rh,t)<0&&rh.push(t)}function uh(t,e){lh(th,t,e,2e3)}function L0(t){Qs("afterinit",t)}function P0(t){Qs("afterupdate",t)}function Qs(t,e){$t.on(t,e)}function Qn(t,e,r){var n,a,i,o,s;function u(f){return f.toLowerCase()}ee(e)&&(r=e,e=""),K(t)?(n=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(n=t,a=e),a=u(a||n);var l=i?u(n):a;Zs[n]||(er(d0.test(n)&&d0.test(a)),i&&er(a!==n),Zs[n]={actionType:n,refinedEventType:a,nonRefinedEventType:l,update:o,action:r,refineEvent:i},eh[a]=1,i&&s&&(eh[l]=1),Jc[l]=n)}function R0(t,e){hs.register(t,e)}function yL(t){var e=hs.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function mL(t,e){l0(t,e)}function I0(t,e){lh(Ks,t,e,1e3,"layout")}function rn(t,e){lh(Ks,t,e,3e3,"visual")}var E0=[];function lh(t,e,r,n,a){if((ee(e)||K(e))&&(r=e,e=n),!(fe(E0,r)>=0)){E0.push(r);var i=Fm.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function fh(t,e){nh[t]=e}function _L(t){_v({createCanvas:t})}function k0(t,e,r){var n=s0("registerMap");n&&n(t,e,r)}function SL(t){var e=s0("getMap");return e&&e(t)}var O0=function wD(t){var e=(t=le(t)).type;e||ut("");var n=e.split(":");2!==n.length&&ut("");var a=!1;"echarts"===n[0]&&(e=n[1],a=!0),t.__isBuiltIn=a,by.set(e,t)};function ch(t,e,r,n){return{eventContent:{selected:yT(r),isFromClick:e.isFromClick||!1}}}rn(2e3,XM),rn(4500,jM),rn(4500,ZM),rn(2e3,fA),rn(4500,cA),rn(7e3,function UA(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=qc(s,e))});var a=n.getVisual("decal");a&&(n.getVisual("style").decal=qc(a,e))}})}),sh(ny),uh(900,function Jw(t){var e=ie();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;a.push(o)}}),e.each(function(r){0!==r.length&&("seriesDesc"===(r[0].seriesModel.get("stackOrder")||"seriesAsc")&&r.reverse(),D(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),function eD(t){D(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,f,c){var h,d,v=o.get(e.stackedDimension,c);if(isNaN(v))return a;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var 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=Ix(v,m),y=m;break}}}return n[0]=v,n[1]=y,n})})}(r))})}),fh("default",function KM(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,a=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}),i=new Xe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(i),e.showSpinner&&((o=new As({shape:{startAngle:-Bs/2,endAngle:-Bs/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*Bs/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*Bs/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*u-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),i.setShape({x:l-u,y:f-u,width:2*u,height:2*u}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}),Qn({type:On,event:On,update:On},nt),Qn({type:Qo,event:Qo,update:Qo},nt),Qn({type:Jo,event:df,update:Jo,action:nt,refineEvent:ch,publishNonRefinedEvent:!0}),Qn({type:vf,event:df,update:vf,action:nt,refineEvent:ch,publishNonRefinedEvent:!0}),Qn({type:es,event:df,update:es,action:nt,refineEvent:ch,publishNonRefinedEvent:!0}),oh("default",{}),oh("dark",uA);var CL={},B0=[],bL={registerPreprocessor:sh,registerProcessor:uh,registerPostInit:L0,registerPostUpdate:P0,registerUpdateLifecycle:Qs,registerAction:Qn,registerCoordinateSystem:R0,registerLayout:I0,registerVisual:rn,registerTransform:O0,registerLoading:fh,registerMap:k0,registerImpl:function XA(t,e){o0[t]=e},PRIORITY:v0,ComponentModel:De,ComponentView:kt,SeriesModel:tn,ChartView:Ir,registerComponentModel:function(t){De.registerClass(t)},registerComponentView:function(t){kt.registerClass(t)},registerSeriesModel:function(t){tn.registerClass(t)},registerChartView:function(t){Ir.registerClass(t)},registerCustomSeries:function(t,e){l0(t,e)},registerSubTypeDefaulter:function(t,e){De.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Fd(t,e)}};function nn(t){G(t)?D(t,function(e){nn(e)}):fe(B0,t)>=0||(B0.push(t),ee(t)&&(t={install:t}),t.install(bL))}function Hi(t){return null==t?0:t.length||1}function N0(t){return t}var xL=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||N0,this._newKeyGetter=a||N0,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],u=n[s],l=Hi(u);if(l>1){var f=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(f,o)}else 1===l?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var r=this._new,n={},a={},i=[],o=[];this._initIndexMap(this._old,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],l=n[u],f=a[u],c=Hi(l),v=Hi(f);if(c>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,l),a[u]=null;else if(1===c&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),a[u]=null;else if(1===c&&1===v)this._update&&this._update(f,l),a[u]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),a[u]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=Hi(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else 1===o&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),r){var u=r[s],l=Hi(u);0===l?(r[s]=o,i&&n.push(s)):1===l?r[s]=[u,o]:u.push(o)}}},t}();const TL=xL;var wL=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 hh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Js=function(){return function t(e){this.otherDims={},null!=e&&N(this,e)}}();var PL=Ce(),RL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},F0=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=G0(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=sy(this.source),n=!V0(e),a="",i=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=r?v.name:null,l=v.type)}i.push({property:u,type:l,ordinalMeta:f}),r&&null!=u&&(!c||!c.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=RL[l]||"f",f&&(a+=f.uid),a+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,a].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function z0(t){return t instanceof F0}function H0(t){for(var e=ie(),r=0;r<(t||[]).length;r++){var n=t[r],a=K(n)?n.name:n;null!=a&&null==e.get(a)&&e.set(a,r)}return e}function G0(t){var e=PL(t);return e.dimNameMap||(e.dimNameMap=H0(t.dimensionsDefine))}function V0(t){return t>30}var q0,eu,Vi,Wi,vh,qi,dh,Gi=K,an=$,IL=typeof Int32Array>"u"?Array:Int32Array,kL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OL=["_approximateExtent"],BL=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;z0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],v=X(c)?new Js({name:c}):c instanceof Js?c:new Js(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,null!=l[h]&&(u=!0),v.createInvertedIndices&&(s[h]=[]);var y=f;_e(v.storeDimIndex)&&(y=v.storeDimIndex),0===d.itemName&&(this._nameDimIdx=y),0===d.itemId&&(this._idDimIdx=y),a&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ie();D(o,function(g){p.set(i[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 a=this._schema.getSourceDimension(r);return a?a.name:void 0},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(null!=r)return r;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(_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 a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i,a=this;if(e instanceof fc&&(i=e),!i){var o=this.dimensions,s=rc(e)||Ke(e)?new vy(e,o.length):e;i=new fc;var u=an(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function DL(t,e){var r={},n=r.encode={},a=ie(),i=[],o=[],s={};D(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var y=h.coordDimIndex;hh(n,d)[y]=v,h.isExtraCoord||(a.set(d,1),function AL(t){return!("ordinal"===t||"time"===t)}(h.type)&&(i[0]=v),hh(s,d)[y]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Og.each(function(p,g){var m=hh(n,g),_=h.otherDims[g];null!=_&&!1!==_&&(m[_]=h.name)})});var u=[],l={};a.each(function(v,h){var d=n[h];l[h]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=$(u,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new wL(s,e),r}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++)this._nameList[s]=r[s-a],o&&dh(this,s)},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Pr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var a=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(a.getSource().sourceFormat===Tt&&!a.pure)for(var l=[],f=e;f<r;f++){var c=a.getItem(f,l);if(!this.hasItemOption&&Gx(c)&&(this.hasItemOption=!0),c){var v=c.name;null==i[f]&&null!=v&&(i[f]=it(v,null));var h=c.id;null==o[f]&&null!=h&&(o[f]=it(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<r;f++)dh(this,f);q0(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){Gi(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=Vi(this,this._nameDimIdx,r)),null==n&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return eu(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var a=this._dimInfos[e];if(a)return this._store.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var a=this._dimInfos[e];if(a)return this._store.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return G(e)?a.getValues(an(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],a=n&&n[r];return null==a||isNaN(a)?-1:a},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var a=n||this,i=an(Wi(e),this._getStoreDimIndex,this);this._store.each(i,a?ve(r,a):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var a=n||this,i=an(Wi(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ve(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=ge(e),i=[];return D(a,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],i.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n=n||this),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=an(Wi(e),this._getStoreDimIndex,this),s=qi(this);return s._store=this._store.map(o,i?ve(r,i):r),s},t.prototype.modify=function(e,r,n,a){var o=n||a||this,s=an(Wi(e),this._getStoreDimIndex,this);this._store.modify(s,o?ve(r,o):r)},t.prototype.downSample=function(e,r,n,a){var i=qi(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=qi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=qi(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 TL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return eu(e,n)},function(n){return eu(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||{},Gi(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,a=n[e];a||(a=n[e]={});var i=a[r];return null==i&&(G(i=this.getVisual(r))?i=i.slice():Gi(i)&&(i=N({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Gi(r)?N(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Gi(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 a=de(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart","group"===n.type&&n.traverse(function(i){var o=de(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){D(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:an(this.dimensions,this._getDimInfo,this),this.hostModel)),vh(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 a=n.apply(this,arguments);return r.apply(this,[a].concat(so(arguments)))})},t.internalField=(q0=function(e){var r=e._invertedIndicesMap;D(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new IL(o.categories.length);for(var u=0;u<n.length;u++)n[u]=-1;for(u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},Vi=function(e,r,n){return it(e._getCategory(r,n),null)},eu=function(e,r){var n=e._idList[r];return null==n&&null!=e._idDimIdx&&(n=Vi(e,e._idDimIdx,r)),null==n&&(n="e\0\0"+r),n},Wi=function(e){return G(e)||(e=null!=e?[e]:[]),e},qi=function(e){var r=new t(e._schema?e._schema:an(e.dimensions,e._getDimInfo,e),e.hostModel);return vh(r,e),r},vh=function(e,r){D(kL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,D(OL,function(n){e[n]=le(r[n])}),e._calculationInfo=N({},r._calculationInfo)},void(dh=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=a[r];if(null==s&&null!=i&&(n[r]=s=Vi(e,i,r)),null==u&&null!=o&&(a[r]=u=Vi(e,o,r)),null==u&&null!=s){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),a[r]=u}})),t}();const ph=BL;function NL(t,e){return gh(t,e).dimensions}function gh(t,e){rc(t)||(t=ac(t));var r=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=ie(),i=[],o=function zL(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return D(e,function(i){var o;K(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&V0(o),u=n===t.dimensionsDefine,l=u?G0(t):H0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ie(f),v=new xy(o),h=0;h<v.length;h++)v[h]=-1;function d(w){var A=v[w];if(A<0){var L=n[w],R=K(L)?L:{name:L},M=new Js,k=R.name;return null!=k&&null!=l.get(k)&&(M.name=M.displayName=k),null!=R.type&&(M.type=R.type),null!=R.displayName&&(M.displayName=R.displayName),v[w]=i.length,M.storeDimIndex=w,i.push(M),M}return i[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&&!X(L[0])&&L[0]<0)c.set(A,!1);else{var R=c.set(A,[]);D(L,function(M,k){var B=X(M)?l.get(M):M;null!=B&&B<o&&(R[k]=B,p(d(B),A,k))})}});var y=0;function p(w,A,L){null!=Og.get(A)?w.otherDims[A]=L:(w.coordDim=A,w.coordDimIndex=L,a.set(A,!0))}D(r,function(w){var A,L,R,M;if(X(w))A=w,M={};else{A=(M=w).name;var k=M.ordinalMeta;M.ordinalMeta=null,(M=N({},M)).ordinalMeta=k,L=M.dimsDef,R=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(Y,U){var V=d(Y);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}R&&we(V.otherDims,R)})}});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(i,function(w){b(w)}),i.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=HL(S,a,_),x.coordDimIndex=0,(!g||m<=0)&&(x.isExtraCoord=!0),m--),b(x),null==x.type&&(1===Fg(t,C)||x.isExtraCoord&&(null!=x.otherDims.itemName||null!=x.otherDims.seriesName))&&(x.type="ordinal")}return function FL(t){for(var e=ie(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}(i),new F0({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function HL(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 GL=function(){return function t(e){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=e}}(),WL={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",jr).models[0],i=t.getReferringComponents("yAxis",jr).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Na(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Na(i)&&(n.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",jr).models[0];e.coordSysDims=["single"],r.set("single",a),Na(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",jr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Na(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Na(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,u){var l=a.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Na(l)&&(n.set(f,l),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var a=t.getReferringComponents("matrix",jr).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Na(t){return"category"===t.get("type")}function U0(t,e,r){var i,o,s,n=(r=r||{}).byIndex,a=r.stackedCoordDimension;!function qL(t){return!z0(t.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var l,f,c,v,u=!(!t||!t.get("stack"));if(D(i,function(m,_){X(m)&&(i[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&"ordinal"!==m.type&&"time"!==m.type&&(!a||a===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(i,function(m){m.coordDim===h&&y++});var p={name:c,coordDim:h,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:v,coordDim:v,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function Y0(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ui(t){return or(t)+2}function j0(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function yh(t,e){return t>=e[0]&&t<=e[1]}var tP=function(){function t(){this.normalize=Z0,this.scale=K0}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=ve(e.normalize,e),this.scale=ve(e.scale,e)):(this.normalize=Z0,this.scale=K0)},t}();function Z0(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function K0(t,e){return t*(e[1]-e[0])+e[0]}function $0(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 Q0=function(){function t(e){this._calculator=new tP,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}();Wo(Q0);const Jn=Q0;var rP=0,nP=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&$(n,aP);return new t({categories:a,needCollect:!a,deduplication:!1!==r.dedplication})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!X(e)&&!n)return e;if(n&&!this._deduplication)return this.categories[r=this.categories.length]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return null==(r=a.get(e))&&(n?(this.categories[r=this.categories.length]=e,a.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},t}();function aP(t){return K(t)&&null!=t.value?t.value:t+""}const J0=nP;var e_=function(t){function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new J0({})),G(a)&&(a=new J0({categories:$(a,function(i){return K(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return(0,j.C6)(e,t),e.prototype.parse=function(r){return null==r?NaN:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return yh(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,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(null!=r){for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];a[o]=l,i[l]=o}for(var f=0;o<s;++o){for(;null!=i[f];)f++;a.push(f),i[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return null==a?"":a+""}},e.prototype.count=function(){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}(Jn);Jn.registerClass(e_);const iP=e_;var on=ir,t_=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,j.C6)(e,t),e.prototype.parse=function(r){return null==r||""===r?NaN:Number(r)},e.prototype.contain=function(r){return yh(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=Ui(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=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;a[0]<i[0]&&u.push(r.expandToNicedExtent?{value:on(i[0]-n,o)}:{value:a[0]});for(var f=function(d,y){return Math.round((y-d)/n)},c=i[0];c<=i[1];){if(u.push({value:c}),c=on(c+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(c,f);v>=0&&(c=on(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:i[1];return a[1]>h&&u.push(r.expandToNicedExtent?{value:on(h+n,o)}:{value:a[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}),a=[],i=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=Ui(v);l<r-1;){var d=on(u.value+(l+1)*v,h);d>i[0]&&d<i[1]&&f.push(d),l++}var y=pt();y&&y.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,i),a.push(f)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(null==r)return"";var a=n&&n.precision;return null==a?a=or(r.value)||0:"auto"===a&&(a=this._intervalPrecision),Gf(on(r.value,a,!0))},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=function JL(t,e,r,n,a){var i={},o=i.interval=Hl(e/r,!0);null!=n&&o<n&&(o=i.interval=n),null!=a&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=Ui(o);return function eP(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),j0(t,0,e),j0(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[ir(Math.ceil(t[0]/o)*o,s),ir(Math.floor(t[1]/o)*o,s)],t),i}(i,o,r,n,a);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 a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/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]=on(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=on(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}(Jn);Jn.registerClass(t_);const tu=t_;function Sh(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Ch(t){return t.dim+t.index}function n_(t){var e=function fP(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 a=e[n];if(a){a.sort(function(u,l){return u-l});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=null===i?s:Math.min(i,s))}r[n]=i}}return r}(t),r=[];return D(t,function(n){var s,i=n.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var l=e[i.dim+"_"+i.index],f=Math.abs(o[1]-o[0]),c=i.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 o_(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:Ch(i),stackId:Sh(n)})}),function a_(t){var e={};D(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;e[i]=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,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(null==s){var u=ge(i).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(i,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(i,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(i,function(g,m){r[a][m]=r[a][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}(r)}var s_=function(t){function e(r){var n=t.call(this,r)||this;return n.type="time",n}return(0,j.C6)(e,t),e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return yi(r.value,mg[function JT(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(gi(this._minLevelUnit))]||mg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC");return function ew(t,e,r,n,a){var i=null;if(X(r))i=r;else if(ee(r)){var o={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];i=l[Math.min(u.level,l.length-1)]||""}else{var f=Ta(t.value,a);i=r[f][f][0]}}return yi(new Date(t.value),i,a,n)}(r,n,a,this.getSetting("locale"),i)},e.prototype.getTicks=function(r){r=r||{};var a=this._extent,i=null,o=[];if(!this._interval)return o;var s=this.getSetting("useUTC");var u=Ta(a[1],s);o.push({value:a[0],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}});var l=function SP(t,e,r,n,a,i){var s=ZT,u=0;function l(M,k,B,F,Y,U,V){for(var q=function _P(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}(Y,M),W=k,H=new Date(W);W<B&&W<=n[1]&&(V.push({value:W}),!(u++>1e4));)if(H[Y](H[F]()+M),W=H.getTime(),i){var ae=i.calcNiceTickMultiple(W,q);ae>0&&(H[Y](H[F]()+ae*M),W=H.getTime())}V.push({value:W,notAdd:!0})}function f(M,k,B){var F=[],Y=!k.length;if(!u_(gi(M),n[0],n[1],r)){Y&&(k=[{value:mP(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,ae=void 0;switch(M){case"year":W=Math.max(1,Math.round(e/Rt/365)),H=_g(r),ae=tw(r);break;case"half-year":case"quarter":case"month":W=pP(e),H=Of(r),ae=Sg(r);break;case"week":case"half-week":case"day":W=dP(e),H=Bf(r),ae=Cg(r);break;case"half-day":case"quarter-day":case"hour":W=gP(e),H=Nf(r),ae=bg(r);break;case"minute":W=l_(e,!0),H=Ff(r),ae=xg(r);break;case"second":W=l_(e,!1),H=zf(r),ae=Tg(r);break;case"millisecond":W=yP(e),H=Hf(r),ae=wg(r)}q>=n[0]&&V<=n[1]&&l(W,V,q,H,ae,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=gi(s[y]);if(QT(s[y])&&(f(s[y],c[c.length-1]||[],v),p!==(s[y+1]?gi(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=a/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=Ta(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 R=[];for(y=0;y<x.length;++y)(0===y||x[y].value!==x[y-1].value)&&R.push(x[y]);return R}(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var f=Ta(a[1],s);o.push({value:a[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 a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.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,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,null!=n&&this._approxInterval<n&&(this._approxInterval=n),null!=a&&this._approxInterval>a&&(this._approxInterval=a);var o=ru.length,s=Math.min(function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r}(ru,this._approxInterval,0,o),o-1);this._interval=ru[s][1],this._intervalPrecision=Ui(this._interval),this._minLevelUnit=ru[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return _e(r)?r:+Cr(r)},e.prototype.contain=function(r){return yh(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}(tu),ru=[["second",1e3],["minute",6e4],["hour",pi],["quarter-day",6*pi],["half-day",12*pi],["day",1.2*Rt],["half-week",3.5*Rt],["week",7*Rt],["month",31*Rt],["quarter",95*Rt],["half-year",yg/2],["year",yg]];function u_(t,e,r,n){return fs(new Date(e),t,n).getTime()===fs(new Date(r),t,n).getTime()}function dP(t,e){return(t/=Rt)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pP(t){return(t/=30*Rt)>6?6:t>3?3:t>2?2:1}function gP(t){return(t/=pi)>12?12:t>6?6:t>3.5?4:t>2?2:1}function l_(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 yP(t){return Hl(t,!0)}function mP(t,e,r){var n=Math.max(0,fe(xt,e)-1);return fs(new Date(t),xt[n],r).getTime()}Jn.registerClass(s_);const CP=s_;var bh=ir,bP=Math.floor,xP=Math.ceil,nu=Math.pow,au=Math.log,f_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new tu,r}return(0,j.C6)(e,t),e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),u=null;return $(i,function(l){var h,f=l.value,c=null,v=nu(o,f);if(f===n[0]&&this._fixMin?c=a[0]:f===n[1]&&this._fixMax&&(c=a[1]),u){var d=u.getTicksLogTransformBreak(l,o,s,iu);h=d.vBreak,null==c&&(c=d.brkRoundingCriterion)}return null!=c&&(v=iu(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 a=$0(this.base,[r,n]);t.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=nu(r,n[0]),n[1]=nu(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=iu(n[0],a[0])),this._fixMax&&(n[1]=iu(n[1],a[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=$0(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(isFinite(a)&&!(a<=0)){var i=Ud(a);for(r/a*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[bh(xP(n[0]/i)*i),bh(bP(n[1]/i)*i)];this._interval=i,this._intervalPrecision=Ui(i),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=au(r)/au(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=au(r)/au(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),nu(this.base,r)},e.prototype.setBreaksFromOption=function(r){var n=null;if(n){var a=n.logarithmicParseBreaksFromOption(r,this.base,ve(this.parse,this)),o=a.parsedLogged;this._originalScale._innerSetBreak(a.parsedOriginal),this._innerSetBreak(o)}},e.type="log",e}(tu);function iu(t,e){return bh(t,or(e))}Jn.registerClass(f_);const TP=f_;var wP=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 a=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);null==i&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;ee(o)?this._modelMinNum=ou(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=ou(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ee(s)?this._modelMaxNum=ou(e,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=ou(e,s)),a)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]:[Xr(l[0],1),Xr(l[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=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?a?0:NaN:r-i[0]*o),null==u&&(u=e?a?a-1:NaN:n+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN);var c=qa(s)||qa(u)||e&&!a;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[MP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){this[DP[e]]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),DP={min:"_determinedMin",max:"_determinedMax"},MP={min:"_dataMin",max:"_dataMax"};function ou(t,e){return null==e?null:qa(e)?NaN:t.parse(e)}function IP(t,e){var r=e,n=function PP(t,e){var r=t.type,n=function AP(t,e,r){var n=t.rawExtentInfo;return n||(n=new wP(t,e,r),t.rawExtentInfo=n,n)}(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&"time"===r){var s=function r_(t,e){var r=[];return e.eachSeriesByType(t,function(n){(function i_(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=n_(s),f=function RP(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=function cP(t,e,r){if(t&&e){var n=t[Ch(e)];return null!=n&&null!=r?n[Sh(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)/i)-f;return{min:t-=v*(s/l),max:e+=v*(u/l)}}(a,i,e,l);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}(t,r),a=n.extent,i=r.get("splitNumber");t instanceof TP&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),u="interval"===o||"time"===o;t.setBreaksFromOption(function OP(t){t.get("breaks",!0)}(r)),t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,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 Yi(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var r=function KT(t){return X(t)||ee(t)?t:function $T(t){t=t||{};var e={},r=!0;return D(xt,function(n){r&&(r=null==t[n])}),D(xt,function(n,a){var i=t[n];e[n]={};for(var o=null,s=a;s>=0;s--){var u=xt[s],l=K(i)&&!G(i)?i[u]:i,f=void 0;G(l)?o=(f=l.slice())[0]||"":X(l)?f=[o=l]:(null==o?o=us[n]:XT[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}(t)}(e);return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}if(X(e))return function(a){var i=t.scale.getLabel(a);return e.replace("{value}",i??"")};if(ee(e)){if("category"===t.type)return function(a,i){return e(su(t,a),a.value-t.scale.getExtent()[0],null)};var n=null;return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(su(t,a),i,o)}}return function(a){return t.scale.getLabel(a)}}function su(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Th(t){return t.get("interval")??"auto"}function c_(t){return"category"===t.type&&0===Th(t.getLabelModel())}function uu(t){return"middle"===t||"center"===t}var NP=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function FP(t){return function jL(t,e,r){r=r||{};var a,n=e.getSourceManager(),i=!1;t?(i=!0,a=ac(t)):i=(a=n.getSource()).sourceFormat===Tt;var o=function VL(t){var e=t.get("coordinateSystem"),r=new GL(e),n=WL[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}(e),s=function YL(t,e){var a,r=t.get("coordinateSystem"),n=hs.get(r);return e&&e.coordSysDims&&(a=$(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var u=s.get("type");o.type=function ML(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(u)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}(e,o),u=r.useEncodeDefaulter,l=ee(u)?u:u?Re(Cw,s,e):null,c=gh(a,{coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i}),v=function XL(t,e,r){var n,a;return r&&D(t,function(i,o){var u=r.categoryAxisMap.get(i.coordDim);u&&(null==n&&(n=o),i.ordinalMeta=u.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(a=!0)}),!a&&null!=n&&(t[n].otherDims.itemName=0),n}(c.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=U0(e,{schema:c,store:h}),y=new ph(c,e);y.setCalculationInfo(d);var p=null!=v&&function ZL(t){if(t.sourceFormat===Tt){var e=function KL(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!G(si(e))}}(a)?function(g,m,_,S){return S===v?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(i?a:h,null,p),y}(null,t)}var zP={isDimensionStacked:Y0,enableDataStack:U0,getStackedDimension:function UL(t,e){return Y0(t,e)?t.getCalculationInfo("stackResultDimension"):e}};function HP(t,e){var r=e;e instanceof Fe||(r=new Fe(e));var n=function EP(t,e){if(e=e||t.get("type"))switch(e){case"category":return new iP({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new CP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Jn.getClass(e)||tu)}}(r);return n.setExtent(t[0],t[1]),IP(n,r),n}function GP(t){Ft(t,NP)}function VP(t,e){return Mr(t,null,null,"normal"!==(e=e||{}).state)}function h_(t,e){return Math.abs(t-e)<1e-8}function v_(t,e,r){var n=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];n+=wr(a[0],a[1],o[0],o[1],e,r),a=o}var s=t[0];return(!h_(a[0],s[0])||!h_(a[1],s[1]))&&(n+=wr(a[0],a[1],s[0],s[1],e,r)),0!==n}var qP=[];function wh(t,e){for(var r=0;r<t.length;r++)mt(t[r],t[r],e)}function d_(t,e,r,n){for(var a=0;a<t.length;a++){var i=t[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Hr(e,e,i),Gr(r,r,i))}}var p_=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}(),g_=function(){return function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}}(),y_=function(){return function t(e){this.type="linestring",this.points=e}}(),YP=function(t){function e(r,n,a){var i=t.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return(0,j.C6)(e,t),e.prototype.calcCenter=function(){for(var n,r=this.geometries,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,u=s&&s.length;u>a&&(n=o,a=u)}if(n)return function UP(t){for(var e=0,r=0,n=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var u=t[s][0],l=t[s][1],f=i*l-u*o;e+=f,r+=(i+u)*f,n+=(o+l)*f,i=u,o=l}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0];return D(this.geometries,function(s){"polygon"===s.type?d_(s.exterior,a,i,r):D(s.points,function(u){d_(u,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new ne(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if("polygon"===s.type){var l=s.interiors;if(v_(s.exterior,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(v_(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var u=new ne(r,n,a,i),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var v=f[c];"polygon"===v.type?(wh(v.exterior,l),D(v.interiors,function(h){wh(h,l)})):D(v.points,function(h){wh(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}(p_);function Dh(t,e,r){for(var n=0;n<t.length;n++)t[n]=m_(t[n],e[n],r)}function m_(t,e,r){for(var n=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),a=s+=a,i=u+=i,n.push([s/r,u/r])}return n}function __(t,e){return t=function XP(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;return null==r&&(r=1024),D(e.features,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=m_(s,o,r);break;case"Polygon":case"MultiLineString":Dh(s,o,r);break;case"MultiPolygon":D(s,function(u,l){return Dh(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,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new g_(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(u){u[0]&&i.push(new g_(u[0],u.slice(1)))});break;case"LineString":i.push(new y_([a.coordinates]));break;case"MultiLineString":i.push(new y_(a.coordinates))}var s=new YP(n[e||"name"],i,n.cp);return s.properties=n,s})}function jP(t,e,r,n,a,i,o,s){return new Ne({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}!function(t){function e(r,n){var a=t.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}(0,j.C6)(e,t),e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Xa(qP),o=r;o&&!o.isGeoSVGGraphicRoot;)vn(i,o.getLocalTransform(),i),o=o.parent;return dn(i,i),mt(a,a,i),a}}(p_);var ZP=Ce(),Xi=Ce();function lu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function S_(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 C_(t,e,r){var s,u,n=rR(t),a=Th(e),i=1===r.kind;if(!i){var o=x_(n,a);if(o)return o}ee(a)?s=D_(t,a):(u="auto"===a?function nR(t,e){if(1===e.kind){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Xi(t).autoInterval=r,!0}),r}return Xi(t).autoInterval??(Xi(t).autoInterval=t.calculateCategoryInterval(e))}(t,r):a,s=w_(t,u));var l={labels:s,labelCategoryInterval:u};return i?r.out.noPxChangeTryDetermine.push(function(){return Mh(n,a,l),!0}):Mh(n,a,l),l}var tR=b_("axisTick"),rR=b_("axisLabel");function b_(t){return function(r){return Xi(r)[t]||(Xi(r)[t]={list:[]})}}function x_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Mh(t,e,r){return t.list.push({key:e,value:r}),r}function iR(t,e,r){return null==T_(t,e,r)}function T_(t,e,r){var n=ZP(t.model),a=t.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(null!=i&&null!=o&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function w_(t,e,r){var n=Yi(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),l=i[0],f=a.count();0!==l&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var c=c_(t),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&l!==i[0]&&y(i[0]);for(var d=l;d<=i[1];d+=u)y(d);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p,time:void 0,break:void 0})}return h&&d-u!==i[1]&&y(i[1]),s}function D_(t,e,r){var n=t.scale,a=Yi(t),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;e(o.value,s)&&i.push(r?u:{formattedLabel:a(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),i}var M_=[0,1],sR=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Wd(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,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&"ordinal"===a.type&&A_(n=n.slice(),a.count()),Vo(e,M_,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&A_(n=n.slice(),a.count());var i=Vo(e,n,M_,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){var r=(e=e||{}).tickModel||this.getTickModel(),i=$(function $P(t,e,r){var n=t.getTickModel().get("customValues");if(n){var a=t.scale.getExtent();return{ticks:Pe(S_(t,n),function(o){return o>=a[0]&&o<=a[1]})}}return"category"===t.type?function JP(t,e){var i,o,r=tR(t),n=Th(e),a=x_(r,n);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),ee(n))i=D_(t,n,!0);else if("auto"===n){var s=C_(t,t.getLabelModel(),lu(2));o=s.labelCategoryInterval,i=$(s.labels,function(u){return u.tickValue})}else i=w_(t,o=n,!0);return Mh(r,n,{ticks:i,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 uR(t,e,r,n){var a=e.length;if(t.onBand&&!r&&a){var o,i=t.getExtent();if(1===a)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=(e[a-1].coord-e[0].coord)/(e[a-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[a-1].coord+l*(1+f[1]-e[a-1].tickValue),tickValue:f[1]+1,onBand:!0})}var c=i[0]>i[1];v(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&v(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&v(o.coord,i[1])&&e.push({coord:i[1],onBand:!0})}function v(h,d){return h=ir(h),d=ir(d),c?h>d:h<d}}(this,i,r.get("alignWithLabel"),e.clamp),i},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(i){return $(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},t.prototype.getViewLabels=function(e){return function KP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=Yi(t),a=t.scale.getExtent();return{labels:$(Pe(S_(t,r),function(s){return s>=a[0]&&s<=a[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 QP(t,e){var r=t.getLabelModel(),n=C_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}(t,e):function eR(t){var e=t.scale.getTicks(),r=Yi(t);return{labels:$(e,function(n,a){return{formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}(t)}(this,e=e||lu(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 a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(e){return function aR(t,e){var r=e.kind,n=function oR(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),a=Yi(t),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1;u>40&&(l=Math.max(1,Math.floor(u/40)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),y=0,p=0;c<=s[1];c+=l){var m,_=Ed(a({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(iR,null,t,C,u)),C):T_(t,C,u)??C}(this,e=e||lu(2))},t}();function A_(t,e){var a=(t[1]-t[0])/e/2;t[0]+=a,t[1]-=a}const lR=sR;function fR(t){var e=De.extend(t);return De.registerClass(e),e}function cR(t){var e=kt.extend(t);return kt.registerClass(e),e}function hR(t){var e=tn.extend(t);return tn.registerClass(e),e}function vR(t){var e=Ir.extend(t);return Ir.registerClass(e),e}var ji=2*Math.PI,ea=In.CMD,dR=["top","right","bottom","left"];function pR(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0)}}function gR(t,e,r,n,a,i,o,s,u){o-=t,s-=e;var l=Math.sqrt(o*o+s*s),f=(o/=l)*r+t,c=(s/=l)*r+e;if(Math.abs(n-a)%ji<1e-4)return u[0]=f,u[1]=c,l-r;if(i){var v=n;n=Tr(a),a=Tr(v)}else n=Tr(n),a=Tr(a);n>a&&(a+=ji);var h=Math.atan2(s,o);if(h<0&&(h+=ji),h>=n&&h<=a||h+ji>=n&&h+ji<=a)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(a)+t,g=r*Math.sin(a)+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 fu(t,e,r,n,a,i,o,s){var u=a-t,l=i-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c),d=(u*(f/=v)+l*(c/=v))/v;s&&(d=Math.min(Math.max(d,0),1));var y=o[0]=t+(d*=v)*f,p=o[1]=e+d*c;return Math.sqrt((y-a)*(y-a)+(p-i)*(p-i))}function L_(t,e,r,n,a,i,o){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n);var s=t+r,u=e+n,l=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(i,e),u);return Math.sqrt((l-a)*(l-a)+(f-i)*(f-i))}var Qt=[];function yR(t,e,r){var n=L_(e.x,e.y,e.width,e.height,t.x,t.y,Qt);return r.set(Qt[0],Qt[1]),n}function mR(t,e,r){for(var s,u,n=0,a=0,i=0,o=0,l=1/0,f=e.data,c=t.x,v=t.y,h=0;h<f.length;){var d=f[h++];1===h&&(i=n=f[h],o=a=f[h+1]);var y=l;switch(d){case ea.M:n=i=f[h++],a=o=f[h++];break;case ea.L:y=fu(n,a,f[h],f[h+1],c,v,Qt,!0),n=f[h++],a=f[h++];break;case ea.C:y=id(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,Qt),n=f[h++],a=f[h++];break;case ea.Q:y=ud(n,a,f[h++],f[h++],f[h],f[h+1],c,v,Qt),n=f[h++],a=f[h++];break;case ea.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&&(i=s,o=u),y=gR(p,g,_,S,S+b,C,(c-p)*_/m+p,v,Qt),n=Math.cos(S+b)*m+p,a=Math.sin(S+b)*_+g;break;case ea.R:y=L_(i=n=f[h++],o=a=f[h++],f[h++],f[h++],c,v,Qt);break;case ea.Z:y=fu(n,a,i,o,c,v,Qt,!0),n=i,a=o}y<l&&(l=y,r.set(Qt[0],Qt[1]))}return l}var Jt=new te,be=new te,Ee=new te,pr=new te,gr=new te;function P_(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||dR,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=a.anchor,f=t.getComputedTransform(),c=f&&dn([],f),v=e.get("length2")||0;l&&Ee.copy(l);for(var h=0;h<o.length;h++){pR(o[h],0,s,Jt,pr),te.scaleAndAdd(be,Jt,pr,v),be.transform(c);var y=t.getBoundingRect(),p=l?l.distance(be):t instanceof Te?mR(be,t.path,Ee):yR(be,y,Ee);p<u&&(u=p,be.transform(f),Ee.transform(f),Ee.toArray(i[0]),be.toArray(i[1]),Jt.toArray(i[2]))}R_(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var cu=[],lt=new te;function R_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Jt.fromArray(t[0]),be.fromArray(t[1]),Ee.fromArray(t[2]),te.sub(pr,Jt,be),te.sub(gr,Ee,be);var r=pr.len(),n=gr.len();if(!(r<.001||n<.001)){pr.scale(1/r),gr.scale(1/n);var a=pr.dot(gr);if(Math.cos(e)<a){var o=fu(be.x,be.y,Ee.x,Ee.y,Jt.x,Jt.y,cu,!1);lt.fromArray(cu),lt.scaleAndAdd(gr,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 _R(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Jt.fromArray(t[0]),be.fromArray(t[1]),Ee.fromArray(t[2]),te.sub(pr,be,Jt),te.sub(gr,Ee,be);var n=pr.len(),a=gr.len();if(!(n<.001||a<.001)&&(pr.scale(1/n),gr.scale(1/a),pr.dot(e)<Math.cos(r))){var s=fu(be.x,be.y,Ee.x,Ee.y,Jt.x,Jt.y,cu,!1);lt.fromArray(cu);var u=Math.PI/2,f=u+Math.acos(gr.dot(e))-r;if(f>=u)te.copy(lt,Ee);else{lt.scaleAndAdd(gr,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 Ah(t,e,r,n){var a="normal"===r,i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function SR(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=ho(n[0],n[1]),i=ho(n[1],n[2]);if(!a||!i)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var o=Math.min(a,i)*r,s=vo([],n[1],n[0],o/a),u=vo([],n[1],n[2],o/i),l=vo([],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 I_(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(a){for(var i=e.normal,o=i.get("show"),s=a.ignore,u=0;u<$o.length;u++){var l=$o[u],f=e[l],c="normal"===l;if(f){var v=f.get("show");if((c?s:Q(a.states[l]&&a.states[l].ignore,s))||!Q(v,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0),n&&Ah(n,!0,l,f);continue}n||(n=new Ii,t.setTextGuideLine(n),!c&&(s||!o)&&Ah(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Ah(n,!1,l,f)}}if(n){we(n.style,r),n.style.fill=null;var y=i.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=SR}}else n&&t.removeTextGuideLine()}function E_(t,e){for(var r={normal:t.getModel(e=e||"labelLine")},n=0;n<hr.length;n++){var a=hr[n];r[a]=t.getModel([a,e])}return r}var k_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function vu(t,e,r){r=r||3,e?t.dirty|=r:t.dirty&=~r}function B_(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function yr(t){if(t)return B_(t)&&N_(t,t.label,t),t}function N_(t,e,r){var n=e.getComputedTransform();t.transform=kc(t.transform,n);var a=t.localRect=ki(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=i.__marginType;null==f&&l&&(o=l,f=ba.textMargin);for(var c=0;c<4;c++)Lh[c]=f===ba.minMargin&&u&&null!=u[c]?u[c]:s&&null!=s[c]?s[c]:o?o[c]:0;f===ba.textMargin&&Rc(a,Lh,!1,!1);var v=t.rect=ki(t.rect,a);return n&&v.applyTransform(n),f===ba.minMargin&&Rc(v,Lh,!1,!1),t.axisAligned=Ec(n),(t.label=t.label||{}).ignore=e.ignore,vu(t,!1),vu(t,!0,2),t}var Lh=[0,0,0,0];function Ph(t,e){for(var r=0;r<k_.length;r++){var n=k_[r];null==t[n]&&(t[n]=e[n])}return yr(t)}function F_(t){var e=t.obb;return(!e||B_(t,2))&&(t.obb=e=e||new sm,e.fromBoundingRect(t.localRect,t.transform),vu(t,!1,2)),e}function Rh(t,e,r,n,a){var i=t.length,o=lm[e],s=fm[e];if(i<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<i;v++){var h=t[v],d=h.rect;(l=d[o]-u)<0&&(d[o]-=l,h.label[o]-=l,f=!0),c+=Math.max(-l,0),u=d[o]+d[s]}c>0&&a&&C(-c/i,0,i);var m,_,p=t[0],g=t[i-1];function S(){m=p.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function b(w,A,L){if(w<0){var R=Math.min(A,-w);if(R>0){C(R*L,0,i);var M=R+w;M<0&&x(-M*L,1)}else x(-w*L,1)}}function C(w,A,L){0!==w&&(f=!0);for(var R=A;R<L;R++){var M=t[R];M.rect[o]+=w,M.label[o]+=w}}function x(w,A){for(var L=[],R=0,M=1;M<i;M++){var k=t[M-1].rect,B=Math.max(t[M].rect[o]-k[o]-k[s],0);L.push(B),R+=B}if(R){var F=Math.min(Math.abs(w)/R,A);if(w>0)for(M=0;M<i-1;M++)C(L[M]*F,0,M+1);else for(M=i-1;M>0;M--)C(-L[M-1]*F,M,i)}}function T(w){var A=w<0?-1:1;w=Math.abs(w);for(var L=Math.ceil(w/(i-1)),R=0;R<i-1;R++)if(A>0?C(L,0,R+1):C(-L,i-R-1,i),(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 z_(t){var e=[];function r(l){if(!l.ignore){var f=l.ensureState("emphasis");null==f.ignore&&(f.ignore=!1)}l.ignore=!0}t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});for(var n=0;n<t.length;n++){var a=yr(t[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,u=0;u<e.length;u++)if(Ih(a,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(a)}}}function Ih(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)||F_(t).intersect(F_(e),r,n))}function wR(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function DR(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:wR(n&&n.shape.points)}}var H_=["align","verticalAlign","width","height","fontSize"],ft=new No,Eh=Ce(),MR=Ce();function du(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];null!=e[a]&&(t[a]=e[a])}}var pu=["x","y","rotation"],AR=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,u=a.__hostTarget.textConfig||{},l=a.getComputedTransform(),f=a.getBoundingRect().plain();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=Tr(ft.rotation);var v,c=a.__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:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x: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:a.cursor,attachedPos:u.position,attachedRot:u.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(ee(a)||ge(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=de(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(_,S){return function(){P_(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;f=ee(o.layoutOptionOrCb)?o.layoutOptionOrCb(DR(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)}Eh(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<H_.length;y++){var p=H_[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",a(u,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=[];D(this._labelList,function(u){u.defaultAttr.ignore||a.push(Ph({},u))});var i=Pe(a,function(u){return"shiftX"===u.layoutOption.moveOverlap}),o=Pe(a,function(u){return"shiftY"===u.layoutOption.moveOverlap});Rh(i,0,0,r),Rh(o,1,0,n);var s=Pe(a,function(u){return u.layoutOption.hideOverlap});(function TR(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}})(s),z_(s)},t.prototype.processLabelsOverall=function(){var e=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,u=o.getTextContent();!s&&u&&(s=Eh(u).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=de(e),i=a.dataIndex;if(n&&null!=i){var o=r.getData(a.dataType),s=o.getItemModel(i),u={},l=o.getItemVisual(i,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var c=s.getModel("labelLine");I_(e,E_(s),u),P_(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Ca(e))){var o=(i=Eh(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(i.oldLayoutSelect),fe(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Xt(n,l,r,u)}else if(n.attr(l),!as(n).valueAnimation){var c=Q(n.style.opacity,1);n.style.opacity=0,Jr(n,{style:{opacity:c}},r,u)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};du(h,l,pu),du(h,n.states.select,pu)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};du(d,l,pu),du(d,n.states.emphasis,pu)}!function PT(t,e,r,n,a){var i=as(t);if(i.valueAnimation&&i.prevValue!==i.value){var o=i.defaultInterpolatedText,s=Q(i.interpolatedValue,i.prevValue),u=i.value;t.percent=0,(null==i.prevValue?Jr:Xt)(t,{percent:1},n,e,null,function l(f){var c=function Jx(t,e,r,n,a){var i=null==e||"auto"===e;if(null==n)return n;if(_e(n))return ir(o=Kd(r||0,n,a),i?Math.max(or(r||0),or(n)):e);if(X(n))return a<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&"ordinal"===v.type)s[c]=(a<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,d=l[c],o=Kd(h,d,a);s[c]=ir(o,i?Math.max(or(h),or(d)):e)}}return s}(r,i.precision,s,u,f);i.interpolatedValue=1===f?null:c;var v=Df({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);sg(t,v)})}}(n,u,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=MR(a),y={points:a.shape.points};(o=i.oldLayout)?(a.attr({shape:o}),Xt(a,{shape:y},r)):(a.setShape(y),a.style.strokePercent=0,Jr(a,{style:{strokePercent:1}},r)),i.oldLayout=y}},t}();const LR=AR;var kh=Ce();function G_(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=kh(r).labelManager;a||(a=kh(r).labelManager=new LR),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=kh(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}nn(G_);var V_=2*Math.PI,gu=Math.PI/180;function PR(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),o=function dw(t,e){var r=function vw(t,e){var a,i,r=Zf(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams();if(r.type===Ci.point)i=r.refPoint,a=Lr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=G(o)?o:[o,o];a=Lr(n,r.refContainer),i=2===r.boxCoordFrom?r.refPoint:[Se(s[0],a.width)+a.x,Se(s[1],a.height)+a.y]}return{viewRect:a,center:i}}(t,e),n=r.viewRect,a=r.center,i=t.get("radius");G(i)||(i=[0,i]);var o=Se(n.width,e.getWidth()),s=Se(n.height,e.getHeight()),u=Math.min(o,s),l=Se(i[0],u/2),f=Se(i[1],u/2);return{cx:a[0],cy:a[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")*gu,h=n.get("endAngle"),d=n.get("padAngle")*gu;h="auto"===h?v-V_:-h*gu;var p=n.get("minAngle")*gu+d,g=0;a.each(i,function(Y){!isNaN(Y)&&g++});var m=a.getSum(i),_=Math.PI/(m||g)*2,S=n.get("clockwise"),b=n.get("roseType"),C=n.get("stillShowZeroSum"),x=a.getDataExtent(i);x[0]=0;var T=S?1:-1,w=[v,h],A=T*d/2;Sp(w,!S),v=w[0],h=w[1];var L=W_(n);L.startAngle=v,L.endAngle=h,L.clockwise=S,L.cx=s,L.cy=u,L.r=l,L.r0=f;var R=Math.abs(h-v),M=R,k=0,B=v;if(a.setLayout({viewRect:c,r:l}),a.each(i,function(Y,U){var V;if(isNaN(Y))a.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?_:Y*_:R/g)<p?(V=p,M-=p):k+=Y;var q=B+T*V,W=0,H=0;d>V?H=W=B+T*V/2:(W=B+A,H=q-A),a.setItemLayout(U,{angle:V,startAngle:W,endAngle:H,clockwise:S,cx:s,cy:u,r0:f,r:b?Vo(Y,x,[f,l]):l}),B=q}}),M<V_&&g)if(M<=.001){var F=R/g;a.each(i,function(Y,U){if(!isNaN(Y)){var V=a.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,a.each(i,function(Y,U){if(!isNaN(Y)){var V=a.getItemLayout(U),q=V.angle===p?p:Y*_,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 W_=Ce(),IR=Math.PI/180;function q_(t,e,r,n,a,i,o,s,u,l){if(!(t.length<2)){for(var v=t.length,h=0;h<v;h++)"outer"===t[h].position&&"labelLine"===t[h].labelAlignTo&&(t[h].linePoints[1][0]+=t[h].label.x-l,t[h].label.x=l);Rh(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*a,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)*a;U_(_,_.targetTextWidth-(T-_.label.x)*a,!0),_.label.x=T}}}function U_(t,e,r){if(null==t.labelStyleWidth){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,u=s?s[1]+s[3]:0,l=a.overflow,f=i.width+(o?0:u);if(e<f||r){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-u;n.setStyle("width",e<f?v:r?v>t.unconstrainedWidth?null:v:null)}Y_(i,n)}}}function Y_(t,e){X_.rect=t,N_(X_,e,kR)}var kR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},X_={};function Oh(t){return"center"===t.position}function yu(t,e,r){var n=t.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;G(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(i){return Xr(i,a)})}}var BR=function(t){function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new Ne;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return(0,j.C6)(e,t),e.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),c=N(yu(u.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Jr(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,Jr(o,{shape:{r:f.r}},s,n)):null!=a?(o.setShape({startAngle:a,endAngle:a}),Jr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Xt(o,{shape:{endAngle:f.endAngle}},s,n))}else(function wT(t){ng(t).oldStyle=t.style})(o),Xt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),function bT(t,e,r,n){r=r||"itemStyle";for(var a=0;a<eg.length;a++){var i=eg[a],o=e.getModel([i,r]);t.ensureState(i).style=n?n(o):o[CT[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)},yu(l.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:y,y:p,shape:yu(u.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:yu(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 _T(t,e,r,n){n?function mT(t){tg(t,!1)}(t):rs(t,e,r)}(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),u=n.getItemVisual(a,"style"),l=u&&u.fill,f=u&&u.opacity;ug(i,function DT(t,e){for(var r={normal:t.getModel(e=e||"label")},n=0;n<hr.length;n++){var a=hr[n];r[a]=t.getModel([a,e])}return r}(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if("outside"!==v&&"outer"!==v)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ii,this.setTextGuideLine(h)),I_(this,E_(o),{stroke:l,opacity:zr(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ri),NR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return(0,j.C6)(e,t),e.prototype.render=function(r,n,a,i){var l,o=r.getData(),s=this._data,u=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===o.count()&&r.get("showEmptyCircle")){var v=W_(r),h=new Ri({shape:le(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(d){var y=new BR(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){og(s.getItemGraphicEl(d),r,d)}).execute(),function OR(t){var n,a,e=t.getData(),r=[],i=!1,o=(t.get("minShowLabelAngle")||0)*IR,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),R=L.getModel("label"),M=R.get("position")||L.get(["emphasis","label","position"]),k=R.get("distanceToLabelLine"),B=R.get("alignTo"),F=Se(R.get("edgeDistance"),l),Y=R.get("bleedMargin");null==Y&&(Y=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),ae=Math.sin(W);n=T.cx,a=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*ae:T.r*ae)+a;if(Le=Ze+3*H,ct=Be+3*ae,!tt){var re=Ze+H*(V+u-T.r),he=Be+ae*(V+u-T.r),_r=re+(H<0?-1:1)*q;Le="edge"===B?H<0?f+F:f+l-F:_r+(H<0?-k:k),ct=he,wt=[[Ze,Be],[re,he],[_r,he]]}ht=tt?"center":"edge"===B?H>0?"right":"left":H>0?"left":"right"}var fn=Math.PI,Br=0,ro=R.get("rotate");if(_e(ro))Br=ro*(fn/180);else if("center"===M)Br=0;else if("radial"===ro||!0===ro)Br=H<0?-W+fn:-W;else if("tangential"===ro&&"outside"!==M&&"outer"!==M){var Ha=Math.atan2(H,ae);Ha<0&&(Ha=2*fn+Ha),ae>0&&(Ha=fn+Ha),Br=Ha-fn}if(i=!!Br,w.x=Le,w.y=ct,w.rotation=Br,w.setStyle({verticalAlign:"middle"}),tt){w.setStyle({align:ht});var cv=w.states.select;cv&&(cv.x+=w.x,cv.y+=w.y)}else{var fv=new ne(0,0,0,0);Y_(fv,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,ae),linePoints:wt,textAlign:ht,labelDistance:k,labelAlignTo:B,edgeDistance:F,bleedMargin:Y,rect:fv,unconstrainedWidth:fv.width,labelStyleWidth:w.style.width})}x.setTextConfig({inside:tt})}}),!i&&t.get("avoidLabelOverlap")&&function ER(t,e,r,n,a,i,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Oh(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(!Oh(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+a-d.edgeDistance-y[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?h.x<e?f-o-d.bleedMargin:o+a-c-d.bleedMargin:h.x<e?h.x-o-d.bleedMargin:o+a-h.x-d.bleedMargin,U_(d,p,!1)}for(q_(l,e,r,n,1,0,i,0,s,c),q_(u,e,r,n,-1,0,i,0,s,f),v=0;v<t.length;v++){var d;if(!Oh(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+a-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,a,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):(R_(b,p.minTurnAngle),_R(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 i=n.getData().getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,u=Math.sqrt(o*o+s*s);return u<=i.r&&u>=i.r0}},e.type="pie",e}(Ir);const FR=NR;var HR=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 GR=HR;var VR=Ce(),j_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new GR(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 zR(t,e,r){e=G(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=gh(n,e).dimensions,i=new ph(a,t);return i.initData(n,r),i}(this,{coordDimensions:["value"],encodeDefaulter:Re(bw,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=VR(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),i=a.seats=qd(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Gl(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(tn);!function lw(t){Lg.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}({fullType:j_.type,getCoord2:function(t){return t.getShallow("center")}});const WR=j_;var YR=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,j.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),XR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.render=function(r,n,a){if(this.group.removeAll(),r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=Q(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ne({style:Mr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ne({style:Mr(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(){Ag(d,"_"+r.get("target"))}),y&&h.on("click",function(){Ag(y,"_"+r.get("subtarget"))}),de(f).eventData=de(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(h);var g=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var S=Lr(m,Zf(r,a).refContainer,r.get("padding"));u||("middle"===(u=r.get("left")||r.get("right"))&&(u="center"),"right"===u?S.x+=S.width:"center"===u&&(S.x+=S.width/2)),l||("center"===(l=r.get("top")||r.get("bottom"))&&(l="middle"),"bottom"===l?S.y+=S.height:"middle"===l&&(S.y+=S.height/2),l=l||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:u,verticalAlign:l};f.setStyle(b),h.setStyle(b),g=i.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});i.add(T)}},e.type="title",e}(kt);function Bh(t,e){return"all"===t||G(t)&&fe(t,e)>=0||t===e}function Nh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zi(t)]}function Fh(t){return!!t.get(["handle","show"])}function Zi(t){return t.type+"||"+t.id}var Z_={},rI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.render=function(r,n,a,i){this.axisPointerClass&&function eI(t){var e=Nh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");null!=o&&(o=n.parse(o));var s=Fh(r);null==i&&(a.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]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function tI(t){var e=Nh(t);return e&&e.axisPointerModel}(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Z_[r]=n},e.getAxisPointerClass=function(r){return r&&Z_[r]},e.type="axis",e}(kt);const nI=rI;var ta=Ce(),K_=le,zh=ve,aI=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,a||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(u&&u.hide());s&&s.show(),u&&u.show();var l={};this.makeElOption(l,i,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(s){var v=Re($_,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);eS(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i="category"===a.type,o=r.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var u=Nh(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return!0===n},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=ta(e).pointerEl=new Au[i.type](K_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=ta(e).labelEl=new Ne(K_(r.label));e.add(i),J_(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=ta(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=ta(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),J_(i,a))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||"hide"===o)return a&&n.remove(a),void(this._handle=null);this._handle||(s=!0,a=this._handle=Es(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Bv(l.event)},onmousedown:zh(this._onHandleDragMove,this,0,0),drift:zh(this._onHandleDragMove,this),ondragend:zh(this._onHandleDragEnd,this)}),n.add(a)),eS(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");G(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,Pm(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){$_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Hh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Hh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Hh(a)),ta(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Nc(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 $_(t,e,r,n){Q_(ta(r).lastProp,n)||(ta(r).lastProp=n,e?Xt(r,n,t):(r.stopAnimation(),r.attr(n)))}function Q_(t,e){if(K(t)&&K(e)){var r=!0;return D(e,function(n,a){r=r&&Q_(t[a],n)}),!!r}return t===e}function J_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Hh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function eS(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){"group"!==i.type&&(null!=n&&(i.z=n),null!=a&&(i.zlevel=a),i.silent=r)})}const iI=aI;var un=Math.PI,vI=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],dI=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ki=Ce(),aS=Ce(),pI=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},t}(),$i=[1,0,0,1,0,0],mu=new ne(0,0,0,0),yI=function(t,e,r,n,a,i){if(uu(t.nameLocation)){var o=i.stOccupiedRect;o&&iS(function bR(t,e,r){return t.transform=kc(t.transform,r),t.localRect=ki(t.localRect,e),t.rect=ki(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Ec(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},o,i.transGroup.transform),n,a)}else!function mI(t,e,r,n){for(var a=te.dot(n,e)>=0,i=0,o=t.length;i<o;i++){var s=t[a?i:o-1-i];s.label.ignore||iS(s,r,n)}}(i.labelInfoList,i.dirVec,n,a)};function iS(t,e,r){var n=new te;Ih(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&function xR(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,r)}}(e,n)}var ra=function(){function t(e,r,n,a){this.group=new bt,this._axisModel=e,this._api=r,this._local={},this._shared=a||new pI(yI),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=Q(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(null==i||"auto"===i)&&(i=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:a,nameLocation:zr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Uh(a)&&i,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(_I,function(a){e[a]&&SI[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i,o,a=Fl(r-e);return oi(a)?(o=n>0?"top":"bottom",i="center"):oi(a-un)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a<un?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),_I=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],SI={axisLine:function(t,e,r,n,a,i,o){var u=n.get(["axisLine","show"]);if("auto"===u&&(u=!0,null!=t.raw.axisLineAutoShow&&(u=!!t.raw.axisLineAutoShow)),u){var l=n.axis.getExtent(),f=i.transform,c=[l[0],0],v=[l[1],0],h=c[0]>v[0];f&&(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,a,i,y);else{var p=new Ia(N({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},y));Ac(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(null!=g){var m=n.get(["axisLine","symbolSize"]);X(g)&&(g=[g,g]),(X(m)||_e(m))&&(m=[m,m]);var _=function LA(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=Fs(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}),a.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,a,i,o,s){uS(e,a,s)&&oS(t,e,r,n,a,i,o,1)},axisTickLabelDetermine:function(t,e,r,n,a,i,o,s){uS(e,a,s)&&oS(t,e,r,n,a,i,o,2);var f=function TI(t,e,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),u=t.tickDirection*i.get("length"),f=sS(a.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,a,i,n);(function xI(t,e,r){t.showMinorTicks||D(e,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=aS(i),s=Ki(n.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.tickValue)return void Qi(i)}})})(t,e.labelLayoutList,f),function wI(t,e,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(t.showMinorTicks&&!i.scale.isBlank()){var s=i.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=a*o.get("length"),f=we(u.getLineStyle(),we(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=sS(s[c],r.transform,l,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}(t,a,i,n,t.tickDirection)},axisName:function(t,e,r,n,a,i,o,s){var u=r.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(Uh(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(mo(_,_,t.rotation));var b,C,S=n.get("nameRotate");null!=S&&(S=S*un/180),uu(c)?b=ra.innerTextLayout(t.rotation,S??t.rotation,v):(b=function CI(t,e,r,n){var i,o,a=Fl(r-t),s=n[0]>n[1],u="start"===e&&!s||"start"!==e&&s;return oi(a-un/2)?(o=u?"bottom":"top",i="center"):oi(a-1.5*un)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*un&&a>un/2?u?"left":"right":u?"right":"left"),{rotation:a,textAlign:i,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=Ua(t.raw.nameTruncateMaxWidth,T.maxWidth,C),L=s.nameMarginLevel||0,R=new Ne({x:g.x,y:g.y,rotation:b.rotation,silent:ra.isLabelSilent(n),style:Mr(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(Ei({el:R,componentModel:n,itemName:f}),R.__fullText=f,R.anid="name",n.get("triggerEvent")){var M=ra.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(R).eventData=M}i.add(R),R.updateTransform(),e.nameEl=R;var k=u.nameLayout=yr({label:R,priority:R.z2,defaultAttr:{ignore:R.ignore},marginDefault:uu(c)?vI[L]:dI[L]});if(u.nameLocation=c,a.add(R),R.decomposeTransform(),t.shouldNameMoveOverlap&&k){var B=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,k,m,B)}}}};function oS(t,e,r,n,a,i,o,s){lS(e)||function DI(t,e,r,n,a,i){var o=a.axis,s=Ua(t.raw.axisLabelShow,a.get(["axisLabel","show"])),u=new bt;r.add(u);var l=lu(n);if(s&&!o.scale.isBlank()){var f=a.getModel("axisLabel"),c=o.getViewLabels(l),v=(Ua(t.raw.labelRotate,f.get("rotate"))||0)*un/180,h=ra.innerTextLayout(t.rotation,v,t.labelDirection),d=a.getCategories&&a.getCategories(!0),y=[],p=a.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,a.ecModel))}var R=A.getTextColor()||a.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,Y=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:ra.isLabelSilent(a),z2:V,style:Mr(A,{text:T,align:0===b?k:b===c.length-1?B:M,verticalAlign:0===b?Y:b===c.length-1?U:F,fill:ee(R)?R("category"===o.type?w:"value"===o.type?x+"":x,b):R})});q.anid="label_"+x;var W=Ki(q);if(W.break=S.break,W.tickValue=x,W.layoutRotation=h.rotation,Ei({el:q,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:w,tickIndex:b}}),p){var H=ra.makeAxisEventDataBase(a);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 LI(t,e,r,n){r.on("click",function(a){var i={type:"expandAxisBreak",breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}(a,i,q,S.break)}y.push(q),u.add(q)}),qh(e,$(y,function(S){return{label:S,priority:Ki(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}}),u,l)}else qh(e,[],u,l)}(t,e,a,s,n,o);var u=e.labelLayoutList;(function MI(t,e,r,n){var a=e.get(["axisLabel","margin"]);D(r,function(i,o){var s=yr(i);if(s){var u=s.label,l=Ki(u);s.suggestIgnore=u.ignore,u.ignore=!1,Ll(kr,AI),kr.x=e.axis.dataToCoord(l.tickValue),kr.y=t.labelOffset+t.labelDirection*a,kr.rotation=l.layoutRotation,n.add(kr),kr.updateTransform(),n.remove(kr),kr.decomposeTransform(),Ll(u,kr),u.markRedraw(),vu(s,!0),yr(s)}})})(t,n,u,i),function PI(t,e,r){var n=null;if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&Ki(o.label).break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===i||"auto"===i)&&D(a,function(o){null.adjustBreakLabelPair(t.axis.inverse,e,[yr(r[o[0]]),yr(r[o[1]])])})}}(n,t.rotation,u);var l=t.optionHideOverlap;(function bI(t,e,r){if(!c_(t.axis)){var a=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function n(s,u,l){var f=yr(e[u]),c=yr(e[l]);if(f&&c){if(!1===s||f.suggestIgnore)return void Qi(f.label);if(c.suggestIgnore)return void Qi(c.label);if(!r){var h=[0,0,0,0];f=Ph({marginForce:h},f),c=Ph({marginForce:h},c)}Ih(f,c,null,{touchThreshold:.1})&&Qi(s?c.label:f.label)}}})(n,u,l),l&&z_(Pe(u,function(f){return f&&!f.label.ignore})),function gI(t,e,r,n){var s,a=r.axis,i=e.ensureRecord(r),o=[],u=Uh(t.axisName)&&uu(t.nameLocation);D(n,function(d){var y=yr(d);if(y&&!y.label.ignore){o.push(y);var p=i.transGroup;u&&(p.transform?dn($i,p.transform):Xa($i),y.transform&&vn($i,$i,y.transform),ne.copy(mu,y.localRect),mu.applyTransform($i),s?s.union(mu):ne.copy(s=new ne(0,0,0,0),mu))}});var l=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.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=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}(t,r,n,u)}function Qi(t){t&&(t.ignore=!0)}function sS(t,e,r,n,a){for(var i=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(mt(o,o,e),mt(s,s,e));var f=new Ia({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ac(f.shape,f.style.lineWidth),f.anid=a+"_"+t[u].tickValue,i.push(f);var c=aS(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return i}function uS(t,e,r){if(lS(t)){var a=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(t.labelGroup),qh(t,null,null,null))}return!0}function lS(t){return!!t.labelLayoutList}function qh(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}var kr=new Xe,AI=new Xe;function Uh(t){return!!t}const RI=ra;function fS(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:su(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)}),X(o)?i=o.replace("{value}",i):ee(o)&&(i=o(s))}return i}function cS(t,e,r){var n=[1,0,0,1,0,0];return mo(n,n,r.rotation),yo(n,n,r.position),Lc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function NI(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}}function _u(t,e,r){r=r||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,u=n.dim,l=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v="x"===u?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=["y"===u?v[f[s]]:l[0],"x"===u?v[f[s]]:l[3]],a.rotation=Math.PI/2*("x"===u?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ua(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===s?-y:y,a.z2=1,a}var VI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,j.C6)(e,t),e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,u=s.grid,l=i.get("type"),f=hS(u,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&"none"!==l){var v=function II(t){var n,e=t.get("type"),r=t.getModel(e+"Style");return"line"===e?(n=r.getLineStyle()).fill=null:"shadow"===e&&((n=r.getAreaStyle()).stroke=null),n}(i),h=WI[l](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}!function OI(t,e,r,n,a,i){var o=RI.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),function EI(t,e,r,n,a){var o=fS(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=mi(s.get("padding")||0),l=s.getFont(),f=Ed(o,l),c=a.position,v=f.width+u[1]+u[3],h=f.height+u[0]+u[2],d=a.align;"right"===d&&(c[0]-=v),"center"===d&&(c[0]-=v/2);var y=a.verticalAlign;"bottom"===y&&(c[1]-=h),"middle"===y&&(c[1]-=h/2),function kI(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,v,h,n);var p=s.get("backgroundColor");(!p||"auto"===p)&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Mr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}(e,n,a,i,{position:cS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(n,r,_u(u.getRect(),a),a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=_u(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=cS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),l=hS(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}(iI);function hS(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var WI={line:function(t,e,r){var n=function BI(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]],vS(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth());return{type:"Rect",shape:NI([e-n/2,r[0]],[n,r[1]-r[0]],vS(t))}}};function vS(t){return"x"===t.dim?0:1}const qI=VI;var UI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.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 YI=UI;var Or=Ce(),XI=D;function dS(t,e,r){if(!ue.node){var n=e.getZr();Or(n).records||(Or(n).records={}),function jI(t,e){function r(n,a){t.on(n,function(i){var o=function $I(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}(e);XI(Or(t).records,function(s){s&&a(s,i,o.dispatchAction)}),function ZI(t,e){var a,r=t.showTip.length,n=t.hideTip.length;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}(o.pendings,e)})}Or(t).initialized||(Or(t).initialized=!0,r("click",Re(pS,"click")),r("mousemove",Re(pS,"mousemove")),r("globalout",KI))}(n,e),(Or(n).records[t]||(Or(n).records[t]={})).handler=r}}function KI(t,e,r){t.handler("leave",null,r)}function pS(t,e,r,n){e.handler(t,r,n)}function Yh(t,e){if(!ue.node){var r=e.getZr();(Or(r).records||{})[t]&&(Or(r).records[t]=null)}}var QI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";dS("axisPointer",a,function(s,u,l){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){Yh("axisPointer",n)},e.prototype.dispose=function(r,n){Yh("axisPointer",n)},e.type="axisPointer",e}(kt);const JI=QI;function gS(t,e){var a,r=[],n=t.seriesIndex;if(null==n||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=fi(i,t);if(null==o||o<0||G(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),c=u.getOtherAxis(l).dim,h="x"===c||"radius"===c?1:0,d=i.mapDimension(l.dim),y=[];y[h]=i.get(d,o),y[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(y)||[]}else r=u.dataToPoint(i.getValues($(u.dimensions,function(g){return i.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 yS=Ce();function eE(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||ve(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Su(a)&&(a=gS({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=Su(a),l=i.axesInfo,f=s.axesInfo,c="leave"===n||Su(a),v={},h={},d={list:[],map:{}},y={showPointer:Re(rE,h),showTooltip:Re(nE,d)};D(s.coordSysMap,function(g,m){var _=u||g.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var C=S.axis,x=function sE(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(a)),null!=T&&mS(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,_S(S),_S(g)))),p[g.key]=x}})}),D(p,function(g,m){mS(f[m],g,y,!0,v)}),function aE(t,e,r){var n=r.axesInfo=[];D(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}(h,f,v),function iE(t,e,r,n){if(!Su(e)&&t.list.length){var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(d,a,t,o),function oE(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=yS(n)[a]||{},o=yS(n)[a]={};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(i,function(l,f){!o[f]&&u.push(l)}),D(o,function(l,f){!i[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 mS(t,e,r,n,a){var i=t.axis;if(!i.scale.isBlank()&&i.containData(e)){if(!t.involveSeries)return void r.showPointer(t,e);var o=function tE(t,e){var r=e.axis,n=r.dim,a=t,i=[],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,a=c,i.length=0),D(v,function(p){i.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&null==a.seriesIndex&&N(a,s[0]),!n&&t.snap&&i.containData(u)&&null!=u&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function rE(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function nE(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var u=e.coordSys.model,l=Zi(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function _S(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 Su(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function uE(t){nI.registerAxisPointerClass("CartesianAxisPointer",qI),t.registerComponentModel(YI),t.registerComponentView(JI),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 ZR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function KR(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var u=Zi(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",a),S=_.get("show");if(S&&("auto"!==S||p||Fh(_))){null==g&&(g=_.get("triggerTooltip")),_=p?function $R(t,e,r,n,a,i){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&&!!i,"cross"===o.get("type")&&(u.type="line");var l=u.label||(u.label={});if(null==l.show&&(l.show=!1),"cross"===a){var f=o.get(["label","show"]);if(l.show=f??!0,!i){var c=u.lineStyle=o.get("crossStyle");c&&we(l,c.textStyle)}}return t.model.getModel("axisPointer",new Fe(u,r,n))}(m,c,a,e,p,g):_;var b=_.get("snap"),C=_.get("triggerEmphasis"),x=Zi(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:Fh(_),seriesModels:[],linkGroup:null};l[x]=w,t.seriesInvolved=t.seriesInvolved||T;var A=function JR(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Bh(i[n+"AxisId"],r.id)||Bh(i[n+"AxisIndex"],r.componentIndex)||Bh(i[n+"AxisName"],r.name))return a}}(i,m);if(null!=A){var L=o[A]||(o[A]={axesInfo:{}});L.axesInfo[x]=w,L.mapper=i[A].mapper,w.linkGroup=L}}}})}(r,t,e),r.seriesInvolved&&function QR(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||"none"===a||!1===a||"item"===a||!1===i||!1===r.get(["axisPointer","show"],!0)||D(t.coordSysAxesInfo[Zi(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"},eE)}var lE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.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 fE=lE;function SS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function CS(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 bS=CS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function xS(t,e){if(!t)return e;e=Vf(e,!0);var r=t.indexOf(e);return(t=-1===r?e:"-"+t.slice(0,r)+"-"+e).toLowerCase()}var vE=xS(CS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Xh=xS(bS,"transform"),dE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ue.transform3dSupported?"will-change:transform;":"");function TS(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ue.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ue.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Xh+":"+o+";":[["top",0],["left",0],[bS,o]]}function wS(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&function $C(t,e,r,n,a){ju(Xu,e,n,a,!0)&&ju(t,r,Xu[0],Xu[1])}(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var SE=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 a=this._zr=e.getZr(),i=r.appendTo,o=i&&(X(i)?document.querySelector(i):oa(i)?i:ee(i)&&i(e.getDom()));wS(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler;Mt(a.painter.getViewportRoot(),u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=function hE(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}(r,"position"),a=r.style;"absolute"!==a.position&&"absolute"!==n&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=dE+function _E(t,e,r,n){var a=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=ky(t,"html");return a.push("box-shadow:"+l+"px "+f+"px "+s+"px "+u),e&&i>0&&a.push(function yE(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(i="opacity"+(a=" "+t/2+"s "+n)+",visibility"+a),e||(a=" "+t+"s "+n,i+=(i.length?",":"")+(ue.transformSupported?""+Xh+a:",left"+a+",top"+a)),vE+":"+i}(i,r,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var y="border-"+d,p=Vf(y),g=t.get(p);null!=g&&a.push(y+":"+g+("color"===d?"":"px"))}),a.push(function mE(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=Q(t.get("lineHeight"),Math.round(3*r/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+i),D(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}(c)),null!=v&&a.push("padding:"+mi(v).join("px ")+"px"),a.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+TS(i[0],i[1],!0)+"border-color:"+_i(r)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(null!=e){var s="";if(X(i)&&"item"===n.get("trigger")&&!SS(n)&&(s=function gE(t,e,r){if(!X(r)||"inside"===r)return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=_i(e);var l,i=function pE(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(r),o=Math.max(1.5*Math.round(a),6),s="",u=Xh+":";fe(["left","right"],i)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l="left"===i?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l="top"===i?225:45)+"deg)");var f=l*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2))/100+"px")+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}(n,a,i)),X(e))o.innerHTML=e+s;else if(e){o.innerHTML="",G(e)||(e=[e]);for(var u=0;u<e.length;u++)oa(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(wS(n,this._zr,this._container,e,r),null!=n[0]&&null!=n[1]){var a=this.el.style;D(TS(n[0],n[1]),function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",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 QC(t,e){function r(n){var a=n[po];a&&(a.clearMarkers&&a.clearMarkers(),delete n[po])}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 CE=SE;var bE=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),MS(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;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:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ky(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=DS(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;MS(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=ln(i.borderWidth||0),s=DS(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(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 ln(t){return Math.max(0,t)}function DS(t){var e=ln(t.shadowBlur||0),r=ln(t.shadowOffsetX||0),n=ln(t.shadowOffsetY||0);return{left:ln(e-r),right:ln(e+r),top:ln(e-n),bottom:ln(e+n)}}function MS(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const xE=bE;var TE=new Xe({shape:{x:-1,y:-1,width:2,height:2}}),wE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.init=function(r,n){if(!ue.node&&n.getDom()){var a=r.getComponent("tooltip"),i=this._renderMode=function Qx(t){return"auto"===t?ue.domSupported?"html":"richText":t||"html"}(a.get("renderMode"));this._tooltipContent="richText"===i?new xE(n):new CE(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!ue.node&&a.getDom()){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&r.get("transitionDuration")?Pm(this,"_updatePosition",50,"fixRate"):Nc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");dS("itemTooltip",this._api,ve(function(a,i,o){"none"!==n&&(n.indexOf(a)>=0?this._tryShow(i,o):"leave"===a&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(i.from!==this.uid&&!ue.node&&a.getDom()){var o=AS(i,a);this._ticket="";var s=i.dataByCoordSys,u=function LE(t,e,r){var n=ql(t).queryOptionMap,a=n.keys()[0];if(a&&"series"!==a){var u,o=ci(e,a,n.get(a),{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:a,componentIndex:o.componentIndex,el:u}}}(i,n,a);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var f=TE;f.x=i.x,f.y=i.y,f.update(),de(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=gS(i,n),v=c.point[0],h=c.point[1];null!=v&&null!=h&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(AS(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=u){var l=n.getSeriesByIndex(o);if(l&&"axis"===Ji([l.getData().getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(r,n){var a=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var u,l;if("legend"===de(a).ssrType)return;this._lastDataByCoordSys=null,Fi(a,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 a=r.get("showDelay");n=ve(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ji([n.tooltipOption],i),u=this._renderMode,l=[],f=Mi("section",{blocks:[],noHeader:!0}),c=[],v=new vc;D(r,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(S&&null!=b){var C=fS(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),x=Mi("section",{header:C,noHeader:!Ht(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(T){var w=a.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=su(S.axis,{value:b}),L.axisValueLabel=C,L.marker=v.makeTooltipMarker("item",_i(L.color),u);var R=_y(w.formatTooltip(A,!0,null)),M=R.frag;if(M){var k=Ji([w],i).get("valueFormatter");x.blocks.push(k?N({valueFormatter:k},M):M)}R.text&&c.push(R.text),l.push(L)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),y=Iy(f,v,u,d,a.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,a){var i=this._ecModel,o=de(n),s=o.seriesIndex,u=i.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,v=l.getData(c),h=this._renderMode,d=r.positionDefault,y=Ji([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 vc;g.marker=m.makeTooltipMarker("item",_i(g.color),h);var _=_y(l.formatTooltip(f,!1,c)),S=y.get("order"),b=y.get("valueFormatter"),C=_.frag,x=C?Iy(b?N({valueFormatter:b},C):C,m,h,S,i.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)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i="html"===this._renderMode,o=de(n),u=o.tooltipConfig.option||{},l=u.encodeHTMLContent;X(u)&&(u={content:u,formatter:u},l=!0),l&&i&&u.content&&((u=le(u)).content=at(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=Ji(c,this._tooltipModel,h?{position:h}:null),y=d.get("content"),p=Math.random()+"",g=new vc;this._showOrMove(d,function(){var m=le(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,p,r.offsetX,r.offsetY,r.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,u,l,f){if(this._ticket="",r.get("showContent")&&r.get("show")){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");u=u||r.get("position");var h=n,y=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)).color;if(v)if(X(v)){var p=r.ecModel.get("useUTC"),g=G(a)?a[0]:a;h=v,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(h=yi(g.axisValue,h,p)),h=Uf(h,a,!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,a,l))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,r,y,u),c.show(r,y),this._updatePosition(r,u,o,s,c,a,l)}},e.prototype._getNearestPoint=function(r,n,a,i,o){return"axis"===a||G(n)?{color:i||o}:G(n)?void 0:{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),ee(n)&&(n=n([a,i],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),G(n))a=Se(n[0],l),i=Se(n[1],f);else if(K(n)){var y=n;y.width=c[0],y.height=c[1];var p=Lr(y,{width:l,height:f});a=p.x,i=p.y,v=null,h=null}else if(X(n)&&u){var g=function AE(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-a/2,u=e.y+f/2-i/2;break;case"top":s=e.x+l/2-a/2,u=e.y-i-o;break;case"bottom":s=e.x+l/2-a/2,u=e.y+f+o;break;case"left":s=e.x-a-o,u=e.y+f/2-i/2;break;case"right":s=e.x+l+o,u=e.y+f/2-i/2}return[s,u]}(n,d,c,r.get("borderWidth"));a=g[0],i=g[1]}else g=function DE(t,e,r,n,a,i,o){var s=r.getSize(),u=s[0],l=s[1];return null!=i&&(t+u+i+2>n?t-=u+i:t+=i),null!=o&&(e+l+o>a?e-=l+o:e+=o),[t,e]}(a,i,o,l,f,v?null:20,h?null:20),a=g[0],i=g[1];v&&(a-=LS(v)?c[0]/2:"right"===v?c[0]:0),h&&(i-=LS(h)?c[1]/2:"bottom"===h?c[1]:0),SS(r)&&(g=function ME(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(a,i,o,l,f),a=g[0],i=g[1]),o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,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}),i&&D(v.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ue.node||!n.getDom()||(Nc(this,"_updatePosition"),this._tooltipContent.dispose(),Yh("itemTooltip",n))},e.type="tooltip",e}(kt);function Ji(t,e,r){var a,n=e.ecModel;r?(a=new Fe(r,n,n),a=new Fe(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Fe&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(a=new Fe(o,a,n)))}return a}function AS(t,e){return t.dispatchAction||ve(e.dispatchAction,e)}function LS(t){return"center"===t||"middle"===t}const PE=wE;var EE=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,j.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;!0===n&&(n=r.selector=["all","inverse"]),G(n)&&D(n,function(i,o){X(i)&&(i={type:i}),n[o]=xe(i,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&"single"===this.get("selectedMode")){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(u){var f;if(a.push(u.name),u.legendVisualProvider){var v=u.legendVisualProvider.getAllNames();r.isSeriesFiltered(u)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Vl(u)&&n.push(u.name)}),this._availableNames=a;var i=this.get("data")||n,o=ie(),s=$(i,function(u){return(X(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(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this.option.selected;D(this._data,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&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 jh=EE;var Fa=Re,Zh=D,Cu=bt,OE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return(0,j.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Cu),this.group.add(this._selectorGroup=new Cu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||"auto"===o)&&(o="right"===r.get("left")&&"vertical"===s?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||"auto"===l)&&(l="horizontal"===s?"end":"start"),this.renderInner(o,r,n,a,u,s,l);var f=Zf(r,a).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Lr(c,f,v),d=this.layoutInner(r,o,h,i,u,l),y=Lr(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 kE(t,e){var r=mi(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,a,i,o,s,u){var l=this.getContentGroup(),f=ie(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Zh(n.getData(),function(d,y){var p=this,g=d.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var m=new Cu;return m.newline=!0,void l.add(m)}var _=a.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,i);T.on("click",Fa(PS,g,null,i,h)).on("mouseover",Fa(Kh,_.name,null,i,h)).on("mouseout",Fa($h,_.name,null,i,h)),a.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 a.eachRawSeries(function(w){var A=this;if(!f.get(g)&&w.legendVisualProvider){var L=w.legendVisualProvider;if(!L.containName(g))return;var R=L.indexOfName(g),M=L.getItemVisual(R,"style"),k=L.getItemVisual(R,"legendIcon"),B=Ct(M.fill);B&&0===B[3]&&(B[3]=.2,M=N(N({},M),{fill:Yr(B,"rgba")}));var F=this._createItem(w,g,y,d,n,r,{},M,k,c,i);F.on("click",Fa(PS,null,g,i,h)).on("mouseover",Fa(Kh,null,g,i,h)).on("mouseout",Fa($h,null,g,i,h)),a.ssr&&F.eachChild(function(Y){var U=de(Y);U.seriesIndex=w.seriesIndex,U.dataIndex=y,U.ssrType="legend"}),v&&F.eachChild(function(Y){A.packEventData(Y,n,w,y,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,u)},e.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};de(r).eventData=s},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();Zh(r,function(l){var f=l.type,c=new Ne({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c),ug(c,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),rs(c)})},e.prototype._createItem=function(r,n,a,i,o,s,u,l,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),p=o.isSelected(n),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon"),S=function BE(t,e,r,n,a,i,o){function s(p,g){"auto"===p.lineWidth&&(p.lineWidth=g.lineWidth>0?2:0),Zh(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?qc(c,o):n.decal,"inherit"===l.fill&&(l.fill=n[a]),"inherit"===l.stroke&&(l.stroke=n[f]),"inherit"===l.opacity&&(l.opacity=("fill"===a?n:r).opacity),s(l,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),"auto"===l.fill&&(l.fill=n.fill),"auto"===l.stroke&&(l.stroke=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth");l.lineWidth="auto"===d?n.lineWidth>0&&l[f]?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}(f=_||f||"roundRect",i,u,l,h,p,v),b=new Cu,C=i.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 NE(t){var e=t.icon||"roundRect",r=Fs(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;X(A)&&A?L=A.replace("{name}",n??""):ee(A)&&(L=A(n));var R=p?C.getTextColor():i.get("inactiveColor");b.add(new Ne({style:Mr(C,{text:L,x:T,y:y/2,fill:R,align:w,verticalAlign:"middle"},{inheritColor:R})}));var M=new Xe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Ei({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),rs(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(r,n,a,i,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Si(r.get("orient"),u,r.get("itemGap"),a.width,a.height);var f=u.getBoundingRect(),c=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Si("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 PS(t,e,r,n){$h(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Kh(t,e,r,n)}function RS(t){for(var r,e=t.getZr().storage.getDisplayList(),n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Kh(t,e,r,n){RS(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function $h(t,e,r,n){RS(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const IS=OE;function FE(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 eo(t,e,r){var n="allSelect"===t||"inverseSelect"===t,a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),ES(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(a,function(u,l){s[u?"select":"unSelect"](l)}),ES(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function ES(t,e){var r=e||{};return D(t.getData(),function(n){var a=n.get("name");if("\n"!==a&&""!==a){var i=t.isSelected(a);r[a]=J(r,a)?r[a]&&i:i}}),r}function kS(t){t.registerComponentModel(jh),t.registerComponentView(IS),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,FE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function zE(t){t.registerAction("legendToggleSelect","legendselectchanged",Re(eo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Re(eo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Re(eo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Re(eo,"select")),t.registerAction("legendUnSelect","legendunselected",Re(eo,"unSelect"))}(t)}var HE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=Kf(r);t.prototype.init.call(this,r,n,a),OS(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),OS(this,this.option,r)},e.type="legend.scroll",e.defaultOption=function GT(t,e){return xe(xe({},t,!0),e,!0)}(jh.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}(jh);function OS(t,e,r){var a=[1,1];a[t.getOrient().index]=0,wa(e,r,{type:"box",ignoreSize:!!a})}const GE=HE;var BS=bt,Qh=["width","height"],Jh=["x","y"],VE=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,j.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new BS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BS)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=G(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(y,p){var g=y+"DataIndex",m=Es(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ve(l._pageGo,l,g,n,i)},{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,a,i,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=Qh[l],c=Jh[l],v=Qh[1-l],h=Jh[1-l];o&&Si("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),y=u.getBoundingRect(),p=[-y.x,-y.y],g=le(a);o&&(g[f]=a[f]-y[f]-d);var m=this._layoutContentAndController(r,i,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,a,i,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Si(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Si("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),y=this._showController=h[o]>a[o],p=[-h.x,-h.y];n||(p[i]=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[i]+=a[o]-d[o]:g[i]+=d[o]+_),m[1-i]+=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?a[o]:h[o],b[s]=Math.max(h[s],d[s]),b[u]=Math.min(0,d[u]+m[1-i]),c.__rectSize=a[o],y){var C={x:0,y:0};C[o]=Math.max(a[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&&Xt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),b},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];null!=i&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=null!=n[f+"DataIndex"],h=a.childOfName(f);h&&(h.setStyle("fill",r.get(v?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=null!=s?s+1:0,l=n.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",null==u?"":u+"").replace("{total}",null==l?"":l+""):o({current:u,total:l}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=Qh[o],u=Jh[o],l=this._findTargetItemIndex(n),f=a.children(),c=f[l],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var 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+i||_&&!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+i}},e.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(o,s){var u=o.__legendDataIndex;null==i&&null!=u&&(i=s),u===r&&(n=s)}),n??i):0;var n,i},e.type="legend.scroll",e}(IS);const WE=VE;function UE(t){nn(kS),t.registerComponentModel(GE),t.registerComponentView(WE),function qE(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;null!=n&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}(t)}function NS(t,e){var r;return D(e,function(n){null!=t[n]&&"auto"!==t[n]&&(r=!0)}),r}var FS=["transition","enterFrom","leaveTo"],ZE=FS.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function bu(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),t&&e)for(var n=r?FS:ZE,a=0;a<n.length;a++){var i=n[a];null==t[i]&&null!=e[i]&&(t[i]=e[i])}}var $E=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return(0,j.C6)(e,t),e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var u=ep(o,s,"normalMerge"),l=this._elOptionsToUpdate=[];D(u,function(f,c){var v=f.newOption;v&&(l.push(v),function XE(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 jE(t,e,r){var n=N({},r),a=t[e],i=r.$action||"merge";"merge"===i?a?(xe(a,n,!0),wa(a,n,{ignoreSize:!0}),Rg(r,a),bu(r,a),bu(r,a,"shape"),bu(r,a,"style"),bu(r,a,"extra"),r.clipPath=a.clipPath):t[e]=n:"replace"===i?t[e]=n:"remove"===i&&a&&(t[e]=null)}(o,c,v),function KE(t,e){if(t&&(t.hv=e.hv=[NS(e,["left","right"]),NS(e,["top","bottom"])],"group"===t.type)){var r=t,n=e;null==r.width&&(r.width=n.width=0),null==r.height&&(r.height=n.height=0)}}(o[c],v))},this),a.elements=Pe(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(De);function zS(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 GS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},VS=ge(GS),xu=(zt(nr,function(t,e){return t[e]=1,t},{}),nr.join(", "),["","style","shape","extra"]),za=Ce();function tv(t,e,r,n,a){var i=t+"Animation",o=Tf(t,n,a)||{},s=za(e).userDuring;return o.duration>0&&(o.during=s?ve(o2,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),N(o,r[i]),o}function rv(t,e,r,n){var a=(n=n||{}).dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),u=za(t),l=e.style;u.userDuring=e.during;var f={},c={};if(function u2(t,e,r){for(var n=0;n<VS.length;n++){var a=VS[n],i=GS[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(n=0;n<nr.length;n++){var s=nr[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++)nv("shape",h[d],v[d]);else nv("shape",e,c),nv("extra",e,c);if(!i&&s&&(function s2(t,e,r){for(var n=e.transition,a=na(n)?nr:Ge(n||[]),i=0;i<a.length;i++){var o=a[i];"style"!==o&&"shape"!==o&&"extra"!==o&&(r[o]=t[o])}}(t,e,f),qS("shape",t,e,f),qS("extra",t,e,f),function l2(t,e,r,n){if(r){var i,a=t.style;if(a){var o=r.transition,s=e.transition;if(o&&!na(o)){var u=Ge(o);!i&&(i=n.style={});for(var l=0;l<u.length;l++)i[f=u[l]]=a[f]}else if(t.getAnimationStyleProps&&(na(s)||na(o)||fe(s,"style")>=0)){var v=t.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});var d=ge(r);for(l=0;l<d.length;l++){var f;h[f=d[l]]&&(i[f]=a[f])}}}}}}(t,e,l,f)),c.style=l,function r2(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}(t,c,o),function a2(t,e){J(e,"silent")&&(t.silent=e.silent),J(e,"ignore")&&(t.ignore=e.ignore),t instanceof Dn&&J(e,"invisible")&&(t.invisible=e.invisible),t instanceof Te&&J(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(i){var p={};D(xu,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(p[m]=p[m]||{}),N(m?p[m]:p,_.enterFrom))});var g=tv("enter",t,e,r,a);g.duration>0&&t.animateFrom(p,g)}else!function n2(t,e,r,n,a){if(a){var i=tv("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}(t,e,a||0,r,f);WS(t,e),l?t.dirty():t.markRedraw()}function WS(t,e){for(var r=za(t).leaveToProps,n=0;n<xu.length;n++){var a=xu[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=za(t).leaveToProps={}),a&&(r[a]=r[a]||{}),N(a?r[a]:r,i.leaveTo))}}function na(t){return"all"===t}var mr={},i2={setTransform:function(t,e){return mr.el[t]=e,this},getTransform:function(t){return mr.el[t]},setShape:function(t,e){var r=mr.el;return(r.shape||(r.shape={}))[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=mr.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=mr.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=mr.el.style;if(e)return e[t]},setExtra:function(t,e){return(mr.el.extra||(mr.el.extra={}))[t]=e,this},getExtra:function(t){var e=mr.el.extra;if(e)return e[t]}};function o2(){var t=this,e=t.el;if(e){var r=za(e).userDuring,n=t.userDuring;if(r!==n)return void(t.el=t.userDuring=null);mr.el=e,n(i2)}}function qS(t,e,r,n){var a=r[t];if(a){var o,i=e[t];if(i){var s=r.transition,u=a.transition;if(u)if(!o&&(o=n[t]={}),na(u))N(o,i);else for(var l=Ge(u),f=0;f<l.length;f++)o[c=l[f]]=v=i[c];else if(na(s)||fe(s,t)>=0){!o&&(o=n[t]={});var h=ge(i);for(f=0;f<h.length;f++){var c,v;f2(a[c=h[f]],v=i[c])&&(o[c]=v)}}}}}function nv(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=ge(n),o=0;o<i.length;o++){var s=i[o];a[s]=ri(n[s])}}function f2(t,e){return Ke(t)?t!==e:null!=t&&isFinite(t)}var US=Ce(),c2=["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,a=e.duration;if(r&&null==a){var i=Tf("enter",r,0);a=i&&i.duration}if(n&&a){var o=US(t);D(xu,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(c2,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(a*f.percent,v,h,f.easing)}}}),u&&u.delay(e.delay||0).duration(a).start(e.easing))})}}}var YS={path:null,compoundPath:null,group:bt,image:Qr,text:Ne},Nt=Ce(),v2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,j.C6)(e,t),e.prototype.init=function(){this._elMap=ie()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(u){var l=it(u.id,null),f=null!=l?a.get(l):null,c=it(u.parentId,null),v=null!=c?a.get(c):i,h=u.type,d=u.style;"text"===h&&d&&u.hv&&u.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var y=u.textContent,p=u.textConfig;if(d&&function JE(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 e2(t,e,r){var a,i,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),i={type:"text",style:o,silent:!0},a={};var s=J(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),J(n,"textPosition")&&(a.position=n.textPosition),J(n,"textOffset")&&(a.offset=n.textOffset),J(n,"textRotation")&&(a.rotation=n.textRotation),J(n,"textDistance")&&(a.distance=n.textDistance)}return zS(o,t),D(o.rich,function(u){zS(u,u)}),{textConfig:a,textContent:i}}(d,h,!0);!p&&g.textConfig&&(p=u.textConfig=g.textConfig),!y&&g.textContent&&(y=g.textContent)}var m=function d2(t){return t=N({},t),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Pg),function(e){delete t[e]}),t}(u),_=u.$action||"merge",S="merge"===_,b="replace"===_;if(S){var x=f;(C=!f)?x=XS(l,v,u.type,a):(x&&(Nt(x).isNew=!1),function h2(t){t.stopAnimation("keyframe"),t.attr(US(t))}(x)),x&&(rv(x,m,r,{isInit:C}),jS(x,u,o,s))}else if(b){Tu(f,u,a,r);var T=XS(l,v,u.type,a);T&&(rv(T,m,r,{isInit:!0}),jS(T,u,o,s))}else"remove"===_&&(WS(f,u),Tu(f,u,a,r));var w=a.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 R=L.type,M=void 0,C=!1;if(S){var k=w.getClipPath();M=(C=!k||Nt(k).type!==R)?iv(R):k}else b&&(C=!0,M=iv(R));w.setClipPath(M),rv(M,L,r,{isInit:C}),av(M,L.keyframeAnimation,r)}var B=Nt(w);w.setTextConfig(p),B.option=u,function p2(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),Ei({el:w,componentModel:r,itemName:w.name,itemTooltipOption:u.tooltip}),av(w,u.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),u=n.getHeight(),l=["x","y"],f=0;f<a.length;f++)if((h=null!=(v=it((c=a[f]).id,null))?o.get(v):null)&&h.isGroup){var y=(d=h.parent)===i,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=a.length-1;f>=0;f--){var c,v,h;if(h=null!=(v=it((c=a[f]).id,null))?o.get(v):null){g=Nt(d=h.parent);var d,_={},S=pw(h,c,d===i?{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&&(na(b)||fe(b,T)>=0)?C[T]=w:h[T]=w}Xt(h,C,r,0)}else h.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){Tu(a,Nt(a).option,n,r._lastGraphicModel)}),this._elMap=ie()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(kt);function iv(t){var r=new(J(YS,t)?YS[t]:wc(t))({});return Nt(r).type=t,r}function XS(t,e,r,n){var a=iv(r);return e.add(a),n.set(t,a),Nt(a).id=t,Nt(a).isNew=!0,a}function Tu(t,e,r,n){t&&t.parent&&("group"===t.type&&t.traverse(function(i){Tu(i,e,r,n)}),function t2(t,e,r,n){if(t){var a=t.parent,i=za(t).leaveToProps;if(i){var o=tv("update",t,e,r,0);o.done=function(){a&&a.remove(t),n&&n()},t.animateTo(i,o)}else a&&a.remove(t),n&&n()}}(t,e,n),r.removeKey(Nt(t).id))}function jS(t,e,r,n){t.isGroup||D([["cursor",Dn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];J(e,i)?t[i]=Q(e[i],a[1]):null==t[i]&&(t[i]=a[1])}),D(ge(e),function(a){if(0===a.indexOf("on")){var i=e[a];t[a]=ee(i)?i:null}}),J(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function ZS(t,e,r){var n=Dt.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}var y2=function(t){function e(r,n,a){var o,i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,a=a||Bo,"string"==typeof r?o=ZS(r,n,a):K(r)&&(r=(o=r).id),i.id=r,i.dom=o;var s=o.style;return s&&(Vu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return(0,j.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=ZS("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var 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(a,i,!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(a,i,!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 a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,1!==a&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,u=i.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,u/c));var h=this.domBack;function d(y,p,g,m){if(o.clearRect(y,p,g,m),n&&"transparent"!==n){var _=void 0;Wa(n)?(_=(n.global||n.__width===g&&n.__height===m)&&n.__canvasGradient||Hc(o,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=_,n.__width=g,n.__height=m):xv(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Gc(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())}!a||l?d(0,0,s,u):a.length&&D(a,function(y){d(y.x*c,y.y*c,y.width*c,y.height*c)})},e}(tr);const ov=y2;var aa=314159,C2=function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||Bo,this._singleCanvas=i,this.root=e,e.style&&(Vu(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(i){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 ov(f,this,this.dpr);h.__builtin__=!0,h.initContext(),u[aa]=h,h.zlevel=aa,s.push(aa),this._domRoot=e}else{this._width=Hs(e,0,n),this._height=Hs(e,1,n);var l=this._domRoot=function S2(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,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var s=this._layers[a[i]];!s.__builtin__&&s.refresh&&s.refresh(0===i?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 i,a={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)),i||(i=n.ctx).save(),Zn(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(e,r){Vc(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;ol(function(){u._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(aa).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],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)&&i.push(l)}for(var f=!0,c=!1,v=function(y){var p=i[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:a._width,viewHeight:a._height};for(T=_;T<p.__endIndex;T++){var B=e[T];if(B.__inHover&&(c=!0),a._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 R=m[L];g.save(),g.beginPath(),g.rect(R.x*A,R.y*A,R.width*A,R.height*A),g.clip(),w(R),g.restore()}else g.save(),w(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<i.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,a,i,o){var s=r.ctx;if(n){var u=e.getPaintRect();(!a||u&&u.intersect(a))&&(Zn(s,e,i,o),e.setPrevPaintRect(u))}else Zn(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=aa);var n=this._layers[e];return n||((n=new ov("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,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,u=-1;if(!n[e]&&function _2(t){return!(!t||!t.__builtin__&&("function"!=typeof t.resize||"function"!=typeof t.refresh))}(r)){if(i>0&&e>a[0]){for(u=0;u<i-1&&!(a[u]<e&&a[u+1]>e);u++);s=n[a[u]]}if(a.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,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){function r(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((a=e[n]).zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}var s,u,i=null,o=0;for(u=0;u<e.length;u++){var a,l=(a=e[u]).zlevel,f=void 0;s!==l&&(s=l,o=0),a.incremental?((f=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):f=this.getLayer(l+(o>0?.01:0),this._needsManuallyCompositing),f.__builtin__||io("ZLevel "+l+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.__drawIndex=f.incremental?-1:u,r(u),i=f),1&a.__dirty&&!a.__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 a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];i!==e&&i!==e+.01||xe(this._layers[i],n[e],!0)}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.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 a=this._opts,i=this.root;if(null!=e&&(a.width=e),null!=r&&(a.height=r),e=Hs(i,0,a),r=Hs(i,1,a),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(aa).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[aa].dom;var r=new ov("image",this,(e=e||{}).pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++)Zn(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 b2=C2;const $S={fontFamily:"Poppins, sans-serif",fontWeight:"normal",color:"#333"};function Du(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}function A2(t,e,r,n){if(1===n)return t;const a=QS(t),i=QS(e),o=r/(n-1);return`rgb(${Math.round(a.r+(i.r-a.r)*o)}, ${Math.round(a.g+(i.g-a.g)*o)}, ${Math.round(a.b+(i.b-a.b)*o)})`}function sv(t,e,r=.05,n="Other"){const a=t.reduce((s,u)=>s+uv(u),0),i=[],o=[];if(t.forEach(s=>{let u,l;u=void 0===s.value&&Array.isArray(s.children)&&s.children.length>0?s.children.reduce((c,v)=>c+uv(v),0):void 0!==s.value?s.value:0,Array.isArray(s.children)&&s.children.length>0&&(l=sv(s.children,e,r,n));const f={...s,value:u,children:l};e&&a>0&&u/a<r?o.push(f):i.push(f)}),e&&o.length>0){const s=o.reduce((u,l)=>u+l.value,0);i.push({id:"__grouped_small__",name:n,value:s,children:o,isGroup:!0})}return i}function QS(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:{r:0,g:0,b:0}}function uv(t){return"number"==typeof t.value?t.value:Array.isArray(t.children)&&t.children.length>0?t.children.reduce((e,r)=>e+uv(r),0):0}var JS=Z(2245),eC=Z(5381),P2=Z(6170);const R2=["chart"],I2=()=>({renderer:"canvas",width:"auto",height:"auto"});function E2(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 k2(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())}}nn([function jR(t){t.registerComponentModel(YR),t.registerComponentView(XR)},function RE(t){nn(uE),t.registerComponentModel(fE),t.registerComponentView(PE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)},function YE(t){nn(kS),nn(UE)},function UR(t){t.registerChartView(FR),t.registerSeriesModel(WR),function dA(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}D([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=N({},a),o.dispatchAction(N(a,{type:n[1],seriesIndex:r(i,a)}))})})}("pie",t.registerAction),t.registerLayout(Re(PR,"pie")),t.registerProcessor(function RR(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(n&&n.length){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}("pie")),t.registerProcessor(function qR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(_e(o)&&!isNaN(o)&&o<0)})}}}("pie"))},function x2(t){t.registerPainter("canvas",b2)},G_,function g2(t){t.registerComponentModel($E),t.registerComponentView(v2),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 tC=(()=>{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)(()=>function T2(t){switch(t){case"primary":default:return"#2859e1";case"accent":return"#e2f552";case"tertiary":return"#ffffff"}}(this.variant()));endColor=(0,pe.EW)(()=>function w2(t){switch(t){case"primary":default:return"#1744c2";case"accent":return"#b8cc3f";case"tertiary":return"#eeeeee"}}(this.variant()));currentParent=(0,oe.vPA)(void 0);saturated=(0,pe.EW)(()=>{const r=this.groupSmallFractions();return r?.enabled?sv(this.data(),!0,r.threshold,r.groupName):sv(this.data(),!1)});chartData=(0,pe.EW)(()=>((t,e)=>void 0===e?t:e.children??[])(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)(()=>Du(this.sum()));chartInstance=null;currentHoveredValue=(0,oe.vPA)(null);chartRef;ngAfterViewInit(){this.updateColors()}updateColors(){const r=function D2(t){const[e,r,n]=function M2(t,e){if(void 0===t)return[];const n=window.getComputedStyle(t.nativeElement);return e.map(a=>n.getPropertyValue(a).trim()||"")}(t,["--cue-chart-text-color","--cue-chart-border-background-color","--chart-graph-edge-color"]);return{text:e,borderBackground:r,edgeColor:n}}(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(Du(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>":": "}${Du(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:$S,series:[{name:"Distribution",type:"pie",radius:this.radius(),cursor:this.clickable()?"pointer":"default",data:r.map((n,a)=>({...n,itemStyle:{color:A2(this.startColor(),this.endColor(),a,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:a}=n,i=a.value/this.sum()*100;if(i<this.labelThresholdPct())return"";switch(this.labelType()){case"value":return a.value;case"valueShort":return Du(a.value);case"pct":return`${i.toFixed(1)}%`;default:return a.name}}}}]}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O.VBU({type:t,selectors:[["cue-pie-chart"]],viewQuery:function(n,a){if(1&n&&O.GBs(R2,5),2&n){let i;O.mGM(i=O.lsd())&&(a.chartRef=i.first)}},inputs:{data:[1,"data"],variant:[1,"variant"],doughnut:[1,"doughnut"],hoverType:[1,"hoverType"],labelType:[1,"labelType"],clickable:[1,"clickable"],labelThresholdPct:[1,"labelThresholdPct"],groupSmallFractions:[1,"groupSmallFractions"]},outputs:{clickedCategory:"clickedCategory",clickedCanvas:"clickedCanvas"},features:[O.Jv_([mv({echarts:Ou})])],decls:5,vars:5,consts:[["chart",""],["cueDarkMode","",1,"chart-container",3,"darkModeChange","click"],["echarts","",1,"chart",3,"chartInit","options","initOpts"],["justify","center",1,"center-text"],["justify","center",1,"bottom-text"],["size","l","weight","semibold","align","center",3,"innerHTML"],["size","l","weight","semibold"]],template:function(n,a){1&n&&(O.j41(0,"div",1),O.bIt("darkModeChange",function(){return a.updateColors()})("click",function(){return a.handleCanvasClick()}),O.j41(1,"div",2,0),O.bIt("chartInit",function(o){return a.onChartInit(o)}),O.k0s(),O.nVh(3,E2,2,1,"cue-flexcontainer",3),O.nVh(4,k2,3,1,"cue-flexcontainer",4),O.k0s()),2&n&&(O.R7$(),O.Y8G("options",a.chartOptions())("initOpts",O.lJ4(4,I2)),O.R7$(2),O.vxM(a.doughnut()?3:-1),O.R7$(),O.vxM(a.doughnut()?-1:4))},dependencies:[gC,pC,JS.o,eC.n,P2.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 rC=Z(7573);const nC=[{"@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"}}],G2=(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 V2(n,e);const a=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(nC),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 a.map(o=>({id:o.id,name:String(o.id),value:o.value}));const i=o=>{const s=n[o["@id"]]||0,u=o.children?o.children.map(f=>i(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 nC.map(o=>i(o)).filter(o=>void 0!==o)},V2=(t,e)=>{const r=new Map,n=[];e.forEach(i=>{r.set(i.iri,{id:i.iri,name:i.label,value:t[i.iri]||0,children:[]})}),e.forEach(i=>{const o=r.get(i.iri);i.parent&&r.has(i.parent)?r.get(i.parent).children.push(o):n.push(o)});const a=i=>{let o=0;return i.children&&i.children.length>0&&(i.children=i.children.map(s=>a(s)).filter(s=>void 0!==s),o=i.children.reduce((s,u)=>s+(u.value||0),0)),(!i.children||0===i.children.length)&&delete i.children,i.value=(i.value||0)+o,(i.value||0)>0?i:void 0};return n.map(i=>a(i)).filter(i=>void 0!==i)};class W2{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=`${rC.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 q2{canEditContentCategory=!1;canEditEntityCategories=!1}let U2=(()=>{class t{handlers=(0,oe.vPA)(new W2);projectId=(0,oe.vPA)("");portalBaseURL=(0,oe.vPA)("");resourceBaseURL=(0,oe.vPA)("");graphIsSaturated=(0,oe.vPA)(!1);privileges=(0,oe.vPA)(new q2);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})(),Y2=(()=>{class t{ctx=(0,oe.WQX)(U2);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)(()=>G2(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],a=o=>{for(const s of o){if(s.id===n)return s;if(s.children){const u=a(s.children);if(u)return u}}};return a(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 a=o=>{const s=[];return s.push(o.id),Array.isArray(o.children)&&o.children.forEach(u=>{s.push(...a(u))}),s};if(r.children&&r.children.length>0)return n.selectedContentCategories.set([r.id]),void n.navigated.emit({filterBy:"contentCat",values:a(r),label:r.name??r.id});const i=a(r);n.selectedContentCategories.set(i),n.navigated.emit({filterBy:"contentCat",values:i,label:r.name??r.id}),n.requestDocumentList(r)})()}requestDocumentList(r){var n=this;return(0,Ve.A)(function*(){const a=n.handlers()?.subsequentBlockRequest;if((t=>t===`${rC.E["qcy-e"]}ContractualDocument`||"https://dev.qaecy.com/c/tend/enum#RentalContract"===t)(r.id)&&void 0!==a)return void a({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!==a&&a({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,a){1&n&&(O.j41(0,"cue-pie-chart",0),O.bIt("clickedCanvas",function(){return a.handleCanvasClick()})("clickedCategory",function(o){return a.handleContentCategoryClick(o)}),O.k0s()),2&n&&O.Y8G("data",a.chartData())("doughnut",!1)("hoverType","nameValue")("groupSmallFractions",a.groupSmallFractions())},dependencies:[tC],encapsulation:2,changeDetection:0})}return t})();var lv=Z(4820);const to="unknown";let j2=(()=>{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,a])=>{const i=n.toLowerCase();return{id:n,name:n,value:a.count,info:vv.V[i]}})});categorySuffixMap=(0,pe.EW)(()=>{const r={};return this.documentInfo().forEach(n=>{const a=n.info?.type;void 0===a||a===lv.p.UNKNOWN?(Object.keys(r).includes(to)||(r[to]=[]),r[to].push(n.name)):(Object.keys(r).includes(a)||(r[a]=[]),r[a].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(a=>{const i=a.info?.type;void 0===i||i===lv.p.UNKNOWN?n+=a.value??0:(Object.keys(r).includes(i)||(r[i]=0),r[i]+=a.value??0)}),n>0&&(r[to]=n),Object.keys(r).map(a=>({name:a,value:r[a],id:a}))});docChartData=(0,pe.EW)(()=>{const r=this.selectedMimeCategories();if(!r.length)return this.byCategory();const n=[];if(r.includes(to)){const a=this.documentInfo().filter(i=>void 0===i.info||i.info.type===lv.p.UNKNOWN);n.push(...a)}return this.documentInfo().forEach(a=>{r.includes(a.info?.type??"")&&n.push(a)}),n});selectedMimeCategories=(0,oe.vPA)([]);selectedSuffixes=(0,oe.vPA)([]);handleDataClick(r){var n=this;return(0,Ve.A)(function*(){const a=r.name,i=n.selectedMimeCategories();if(!a?.startsWith(".")&&!i.length){n.selectedMimeCategories.set([a??""]);const d=n.categorySuffixMap()[a??""];return void n.navigated.emit({filterBy:"suffix",values:d,label:a??""})}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:a??""});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},a,!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,a){1&n&&(O.j41(0,"cue-pie-chart",0),O.bIt("clickedCategory",function(o){return a.handleDataClick(o)})("clickedCanvas",function(){return a.handleCanvasClick()}),O.k0s()),2&n&&O.Y8G("data",a.docChartData())("doughnut",!0)("hoverType","nameValue")("groupSmallFractions",a.groupSmallFractions())("labelThresholdPct",1)},dependencies:[tC],encapsulation:2,changeDetection:0})}return t})();var aC=Z(1493),K2=Z(4015);const $2=t=>({percent:t}),Q2=t=>({count:t});function J2(t,e){if(1&t){const r=O.RV6();O.j41(0,"cue-block-documents-by-suffix",11),O.bIt("navigated",function(a){oe.eBV(r);const i=O.XpG();return oe.Njj(i.handleNavigated(a))}),O.k0s()}if(2&t){O.XpG();const r=O.r8f(2),n=O.r8f(4);O.Y8G("data",r)("config",n)}}function ek(t,e){if(1&t){const r=O.RV6();O.j41(0,"cue-block-documents-by-content-category",11),O.bIt("navigated",function(a){oe.eBV(r);const i=O.XpG();return oe.Njj(i.handleNavigated(a))}),O.k0s()}if(2&t){O.XpG();const r=O.r8f(3),n=O.r8f(4);O.Y8G("data",r)("config",n)}}function tk(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,$2,r.openFormatPct())),O.npT)}}function rk(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 a=O.XpG();return oe.Njj(a.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,Q2,e)),O.npT)}function nk(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 ak(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 ik=(()=>{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((i,o)=>i+(o?.size||0),0),a=Object.values(r.documentsByContentCategory||{}).reduce((i,o)=>i+(o?.size||0),0);return Math.max(n,a)});documentCount=(0,pe.EW)(()=>{const r=this._data();if(!r)return 0;const n=Object.values(r.documentsBySuffix||{}).reduce((i,o)=>i+(o?.count||0),0),a=Object.values(r.documentsByContentCategory||{}).reduce((i,o)=>i+(o?.count||0),0);return Math.max(n,a)});sizeFiltered=(0,oe.vPA)(0);countFiltered=(0,oe.vPA)(0);humanSize=(0,pe.EW)(()=>(0,aC.b)(this.size()));humanSizeFiltered=(0,pe.EW)(()=>(0,aC.b)(this.sizeFiltered()));openFormatPct=(0,pe.EW)(()=>{const r=this._data();if(!r?.documentsBySuffix)return 0;let n=0,a=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}`;vv.V[f]?.open&&(a+=u)}return n>0?Math.round(a/n*100):null});configWithFilterResolver=(0,pe.EW)(()=>{var r=this;const n=this.config();return{...n,handlers:{...n.handlers,docListFilterRequest:(a=(0,Ve.A)(function*(i,o){if(console.log("[ProjectDocuments] docListFilterRequest",i,o),!o||0===o.length)return;const s="contentCat"===i?(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"===i){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"===i){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"===i?"suffix":"content",included:o,excluded:[]}]);return{ids:f.map(c=>({id:c})),totalCount:f.length}}),function(o,s){return a.apply(this,arguments)})}};var a});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 a=0,i=0;if("suffix"===r.filterBy){const o=n.documentsBySuffix;r.values.forEach(s=>{const u=s.toLowerCase();a+=o[u]?.size||0,i+=o[u]?.count||0})}else if("contentCat"===r.filterBy){const o=n.documentsByContentCategory;r.values.forEach(s=>{a+=o[s]?.size||0,i+=o[s]?.count||0})}this.sizeFiltered.set(a),this.countFiltered.set(i)}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 a=r.handlers()?.documentDuplicatesRequest;if(!a)return void console.warn("No documentDuplicatesRequest handler defined");const i=yield a();n({id:"document-duplicates",config:r.config(),data:i,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,a){if(1&n&&(O.j41(0,"cue-flexcontainer",0)(1,"div",1),O.bIt("click",function(){return a.handleCanvasClick()}),O.SS7(2)(3)(4),O.j41(5,"div",2),O.nVh(6,J2,1,2,"cue-block-documents-by-suffix",3),O.k0s(),O.j41(7,"div",4),O.nVh(8,ek,1,2,"cue-block-documents-by-content-category",3),O.k0s(),O.j41(9,"cue-flexcontainer",5)(10,"div",6),O.nVh(11,tk,2,6,"cue-typography",7),O.k0s(),O.j41(12,"div",6),O.nVh(13,rk,2,6,"cue-typography",8),O.k0s()(),O.j41(14,"cue-flexcontainer",9)(15,"div",6),O.nVh(16,nk,2,1,"cue-typography",10),O.k0s(),O.j41(17,"div",6),O.nVh(18,ak,2,3,"cue-typography",10),O.k0s()()()()),2&n){let i;O.R7$(2);const o=O.bH3(a.bySuffix());O.R7$();const s=O.bH3(a.byContentCategory());O.R7$(),O.bH3(a.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!==a.openFormatPct()?11:-1),O.R7$(2),O.vxM((i=a.duplicateCount())?13:-1,i),O.R7$(3),O.vxM(a.size()>0?16:-1),O.R7$(2),O.vxM(a.sizeFiltered()>0?18:-1)}},dependencies:[JS.o,eC.n,Y2,j2,K2.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(hv,Ga,Z){Z.d(Ga,{N:()=>P,V:()=>Va});var I=Z(4820),P=function(E){return E.AAC=".aac",E.ABW=".abw",E.ARC=".arc",E.AVIF=".avif",E.AVI=".avi",E.APNG=".apng",E.BAK=".bak",E.BIN=".bin",E.BMC=".bmc",E.BMP=".bmp",E.BZ=".bz",E.BZ2=".bz2",E.C3D=".c3d",E.CPG=".cpg",E.CSS=".css",E.CSV=".csv",E.DAT=".dat",E.DOC=".doc",E.DOCX=".docx",E.E57=".e57",E.EPUB=".epub",E.EXE=".exe",E.FFS=".ffs",E.FME=".fme",E.FMW=".fmw",E.FRAG=".fragments",E.GH=".gh",E.GZ=".gz",E.GIF=".gif",E.HTML=".html",E.HTM=".htm",E.ICO=".ico",E.ICS=".ics",E.JAR=".jar",E.JPG=".jpg",E.JPEG=".jpeg",E.JSON=".json",E.JSONLD=".jsonld",E.JS=".js",E.MOV=".mov",E.MP3=".mp3",E.MP4=".mp4",E.MPEG=".mpeg",E.MSI=".msi",E.MTL=".mtl",E.ODP=".odp",E.ODS=".ods",E.ODT=".odt",E.OGA=".oga",E.OGG=".ogg",E.OGV=".ogv",E.OGX=".ogx",E.OTF=".otf",E.PNG=".png",E.PDF=".pdf",E.PHP=".php",E.PKG=".pkg",E.PPT=".ppt",E.PPTX=".pptx",E.PS=".ps",E.RAR=".rar",E.RCP=".rcp",E.RTF=".rtf",E.SH=".sh",E.SLK=".slk",E.SVG=".svg",E.TAR=".tar",E.TIFF=".tiff",E.TIF=".tif",E.TTF=".ttf",E.TXT=".txt",E.VGL=".vgl",E.VWX=".vwx",E.WAV=".wav",E.WEBM=".webm",E.WEBP=".webp",E.WMV=".wmv",E.WOFF=".woff",E.WOFF2=".woff2",E.XLS=".xls",E.XLSX=".xlsx",E.XHTML=".xhtml",E.XML=".xml",E.XYZ=".xyz",E.ZIP=".zip",E.SEVEN_Z=".7z",E.DBF=".dbf",E.EML=".eml",E.EMLX=".emlx",E.MBX=".mbx",E.MD=".md",E.MSG=".msg",E.RST=".rst",E.HEIC=".heic",E.MPP=".mpp",E.TSV=".tsv",E.B3DM=".b3dm",E.I3DM=".i3dm",E.PNTS=".pnts",E.CMPT=".cmpt",E.GLTF=".gltf",E.GLB=".glb",E.IFC=".ifc",E.IFCZIP=".ifczip",E.IFXML=".ifcxml",E.THREEDM=".3dm",E.THREEDS=".3ds",E.GHP=".ghp",E.RVT=".rvt",E.RFA=".rfa",E.RFT=".rft",E.RTE=".rte",E.PLA=".pla",E.PLN=".pln",E.GSM=".gsm",E.SMC=".smc",E.BCF=".bcf",E.DWG=".dwg",E.DWL=".dwl",E.DXF=".dxf",E.DGN=".dgn",E.NWD=".nwd",E.OBJ=".obj",E.C4D=".c4d",E.TEKLASTRUCTURES=".teklastructures",E.PTS=".pts",E.LAS=".las",E.LAZ=".laz",E.USDZ=".usdz",E.USDA=".usda",E.USDC=".usdc",E.USD=".usd",E.PSD=".psd",E.PSP=".psp",E.AI=".ai",E.SBN=".sbn",E.SBX=".sbx",E.SHX=".shx",E.SKP=".skp",E.STL=".stl",E.FBX=".fbx",E.KML=".kml",E.SHP=".shp",E}(P||{});const Va={[P.AAC]:{type:I.p.AUDIO,open:!0,suffix:".aac"},[P.ABW]:{type:I.p.TEXT,open:!0,suffix:".abw"},[P.ARC]:{type:I.p.ARCHIVE,open:!1,suffix:".arc"},[P.AVIF]:{type:I.p.IMAGE,open:!0,suffix:".avif"},[P.AVI]:{type:I.p.VIDEO,open:!0,suffix:".avi"},[P.APNG]:{type:I.p.IMAGE,open:!0,suffix:".apng"},[P.BAK]:{type:I.p.BACKUP,open:!1,suffix:".bak"},[P.BIN]:{type:I.p.BINARY,open:!1,suffix:".bin"},[P.BMC]:{type:I.p.BIM,open:!1,suffix:".bmc"},[P.BMP]:{type:I.p.IMAGE,open:!0,suffix:".bmp"},[P.BZ]:{type:I.p.ARCHIVE,open:!0,suffix:".bz"},[P.BZ2]:{type:I.p.ARCHIVE,open:!0,suffix:".bz2"},[P.C3D]:{type:I.p.THREE_D,open:!0,suffix:".c3d"},[P.CPG]:{type:I.p.GEOSPATIAL,open:!0,suffix:".cpg"},[P.CSS]:{type:I.p.MARKUP,open:!0,suffix:".css"},[P.CSV]:{type:I.p.DATA,open:!0,suffix:".csv"},[P.DAT]:{type:I.p.DATA,open:!1,suffix:".dat"},[P.DBF]:{type:I.p.DATA,open:!0,suffix:".dbf"},[P.DOC]:{type:I.p.TEXT,open:!1,suffix:".doc"},[P.DOCX]:{type:I.p.TEXT,open:!0,suffix:".docx"},[P.E57]:{type:I.p.THREE_D,open:!0,suffix:".e57"},[P.EPUB]:{type:I.p.TEXT,open:!0,suffix:".epub"},[P.EXE]:{type:I.p.INSTALLER,open:!1,suffix:".exe"},[P.FFS]:{type:I.p.AUTOMATION,open:!1,suffix:".ffs"},[P.FME]:{type:I.p.AUTOMATION,open:!1,suffix:".fme"},[P.FMW]:{type:I.p.AUTOMATION,open:!1,suffix:".fmw"},[P.FRAG]:{type:I.p.BIM,open:!0,suffix:".fragments"},[P.GH]:{type:I.p.THREE_D,open:!1,suffix:".gh"},[P.GZ]:{type:I.p.ARCHIVE,open:!0,suffix:".gz"},[P.GIF]:{type:I.p.IMAGE,open:!0,suffix:".gif"},[P.HTML]:{type:I.p.MARKUP,open:!0,suffix:".html"},[P.HTM]:{type:I.p.MARKUP,open:!0,suffix:".htm"},[P.ICO]:{type:I.p.IMAGE,open:!1,suffix:".ico"},[P.ICS]:{type:I.p.DATA,open:!0,suffix:".ics"},[P.JAR]:{type:I.p.ARCHIVE,open:!0,suffix:".jar"},[P.JPG]:{type:I.p.IMAGE,open:!0,suffix:".jpg"},[P.JPEG]:{type:I.p.IMAGE,open:!0,suffix:".jpeg"},[P.JSON]:{type:I.p.DATA,open:!0,suffix:".json"},[P.JSONLD]:{type:I.p.DATA,open:!0,suffix:".jsonld"},[P.JS]:{type:I.p.SCRIPT,open:!0,suffix:".js"},[P.MSI]:{type:I.p.INSTALLER,open:!1,suffix:".msi"},[P.MOV]:{type:I.p.VIDEO,open:!0,suffix:".mov"},[P.MP3]:{type:I.p.AUDIO,open:!0,suffix:".mp3"},[P.MP4]:{type:I.p.VIDEO,open:!0,suffix:".mp4"},[P.MPEG]:{type:I.p.VIDEO,open:!0,suffix:".mpeg"},[P.MTL]:{type:I.p.THREE_D,open:!0,suffix:".mtl"},[P.ODP]:{type:I.p.PRESENTATION,open:!0,suffix:".odp"},[P.ODS]:{type:I.p.SPREADSHEET,open:!0,suffix:".ods"},[P.ODT]:{type:I.p.TEXT,open:!0,suffix:".odt"},[P.OGA]:{type:I.p.AUDIO,open:!0,suffix:".oga"},[P.OGG]:{type:I.p.AUDIO,open:!0,suffix:".ogg"},[P.OGV]:{type:I.p.VIDEO,open:!0,suffix:".ogv"},[P.OGX]:{type:I.p.VIDEO,open:!0,suffix:".ogx"},[P.OTF]:{type:I.p.FONT,open:!0,suffix:".otf"},[P.PNG]:{type:I.p.IMAGE,open:!0,suffix:".png"},[P.PDF]:{type:I.p.TEXT,open:!0,suffix:".pdf"},[P.PHP]:{type:I.p.SCRIPT,open:!0,suffix:".php"},[P.PKG]:{type:I.p.INSTALLER,open:!1,suffix:".pkg"},[P.PPT]:{type:I.p.PRESENTATION,open:!1,suffix:".ppt"},[P.PPTX]:{type:I.p.PRESENTATION,open:!0,suffix:".pptx"},[P.PS]:{type:I.p.IMAGE,open:!1,suffix:".ps"},[P.RAR]:{type:I.p.ARCHIVE,open:!1,suffix:".rar"},[P.RCP]:{type:I.p.THREE_D,open:!1,suffix:".rcp"},[P.RTF]:{type:I.p.TEXT,open:!0,suffix:".rtf"},[P.SBN]:{type:I.p.GEOSPATIAL,open:!1,suffix:".sbn"},[P.SBX]:{type:I.p.GEOSPATIAL,open:!1,suffix:".sbx"},[P.SHX]:{type:I.p.GEOSPATIAL,open:!0,suffix:".shx"},[P.SH]:{type:I.p.SCRIPT,open:!0,suffix:".sh"},[P.SLK]:{type:I.p.DATA,open:!0,suffix:".slk"},[P.SVG]:{type:I.p.IMAGE,open:!0,suffix:".svg"},[P.TAR]:{type:I.p.ARCHIVE,open:!0,suffix:".tar"},[P.TIFF]:{type:I.p.IMAGE,open:!0,suffix:".tiff"},[P.TIF]:{type:I.p.IMAGE,open:!0,suffix:".tif"},[P.TTF]:{type:I.p.FONT,open:!0,suffix:".ttf"},[P.TXT]:{type:I.p.TEXT,open:!0,suffix:".txt"},[P.VGL]:{type:I.p.THREE_D,open:!1,suffix:".vgl"},[P.VWX]:{type:I.p.CAD,open:!1,suffix:".vwx"},[P.WAV]:{type:I.p.AUDIO,open:!0,suffix:".wav"},[P.WEBM]:{type:I.p.VIDEO,open:!0,suffix:".webm"},[P.WEBP]:{type:I.p.IMAGE,open:!0,suffix:".webp"},[P.WMV]:{type:I.p.VIDEO,open:!0,suffix:".wmv"},[P.WOFF]:{type:I.p.FONT,open:!0,suffix:".woff"},[P.WOFF2]:{type:I.p.FONT,open:!0,suffix:".woff2"},[P.XLS]:{type:I.p.SPREADSHEET,open:!1,suffix:".xls"},[P.XLSX]:{type:I.p.SPREADSHEET,open:!0,suffix:".xlsx"},[P.XHTML]:{type:I.p.MARKUP,open:!0,suffix:".xhtml"},[P.XML]:{type:I.p.DATA,open:!0,suffix:".xml"},[P.XYZ]:{type:I.p.THREE_D,open:!0,suffix:".xyz"},[P.ZIP]:{type:I.p.ARCHIVE,open:!0,suffix:".zip"},[P.SEVEN_Z]:{type:I.p.ARCHIVE,open:!0,suffix:".7z"},[P.EML]:{type:I.p.EMAIL,open:!0,suffix:".eml"},[P.EMLX]:{type:I.p.EMAIL,open:!0,suffix:".emlx"},[P.MBX]:{type:I.p.EMAIL,open:!0,suffix:".mbx"},[P.MD]:{type:I.p.TEXT,open:!0,suffix:".md"},[P.MSG]:{type:I.p.EMAIL,open:!1,suffix:".msg"},[P.RST]:{type:I.p.TEXT,open:!0,suffix:".rst"},[P.HEIC]:{type:I.p.IMAGE,open:!1,suffix:".heic"},[P.MPP]:{type:I.p.PLANNING,open:!1,suffix:".mpp"},[P.TSV]:{type:I.p.DATA,open:!0,suffix:".tsv"},[P.B3DM]:{type:I.p.THREE_D,open:!0,suffix:".b3dm"},[P.I3DM]:{type:I.p.THREE_D,open:!0,suffix:".i3dm"},[P.PNTS]:{type:I.p.THREE_D,open:!1,suffix:".pnts"},[P.CMPT]:{type:I.p.THREE_D,open:!1,suffix:".cmpt"},[P.GLTF]:{type:I.p.THREE_D,open:!0,suffix:".gltf"},[P.GLB]:{type:I.p.THREE_D,open:!0,suffix:".glb"},[P.IFC]:{type:I.p.BIM,open:!0,suffix:".ifc"},[P.IFCZIP]:{type:I.p.BIM,open:!0,suffix:".ifczip"},[P.IFXML]:{type:I.p.BIM,open:!0,suffix:".ifcxml"},[P.THREEDM]:{type:I.p.CAD,open:!1,suffix:".3dm"},[P.THREEDS]:{type:I.p.THREE_D,open:!1,suffix:".3ds"},[P.GHP]:{type:I.p.CAD,open:!1,suffix:".ghp"},[P.RVT]:{type:I.p.BIM,open:!1,suffix:".rvt"},[P.RFA]:{type:I.p.BIM,open:!1,suffix:".rfa"},[P.RFT]:{type:I.p.BIM,open:!1,suffix:".rft"},[P.RTE]:{type:I.p.BIM,open:!1,suffix:".rte"},[P.PLA]:{type:I.p.BIM,open:!1,suffix:".pla"},[P.PLN]:{type:I.p.BIM,open:!1,suffix:".pln"},[P.GSM]:{type:I.p.BIM,open:!1,suffix:".gsm"},[P.SMC]:{type:I.p.BIM,open:!1,suffix:".smc"},[P.STL]:{type:I.p.THREE_D,open:!0,suffix:".stl"},[P.BCF]:{type:I.p.BIM,open:!0,suffix:".bcf"},[P.DWG]:{type:I.p.CAD,open:!1,suffix:".dwg"},[P.DWL]:{type:I.p.CAD,open:!1,suffix:".dwl"},[P.DXF]:{type:I.p.CAD,open:!0,suffix:".dxf"},[P.DGN]:{type:I.p.CAD,open:!1,suffix:".dgn"},[P.NWD]:{type:I.p.BIM,open:!1,suffix:".nwd"},[P.OBJ]:{type:I.p.THREE_D,open:!0,suffix:".obj"},[P.C4D]:{type:I.p.THREE_D,open:!1,suffix:".c4d"},[P.TEKLASTRUCTURES]:{type:I.p.BIM,open:!1,suffix:".teklastructures"},[P.PTS]:{type:I.p.THREE_D,open:!1,suffix:".pts"},[P.LAS]:{type:I.p.THREE_D,open:!0,suffix:".las"},[P.LAZ]:{type:I.p.THREE_D,open:!0,suffix:".laz"},[P.USDZ]:{type:I.p.THREE_D,open:!0,suffix:".usdz"},[P.USDA]:{type:I.p.THREE_D,open:!0,suffix:".usda"},[P.USDC]:{type:I.p.THREE_D,open:!0,suffix:".usdc"},[P.USD]:{type:I.p.THREE_D,open:!0,suffix:".usd"},[P.PSD]:{type:I.p.IMAGE,open:!1,suffix:".psd"},[P.PSP]:{type:I.p.IMAGE,open:!1,suffix:".psp"},[P.AI]:{type:I.p.IMAGE,open:!1,suffix:".ai"},[P.SKP]:{type:I.p.THREE_D,open:!1,suffix:".skp"},[P.FBX]:{type:I.p.THREE_D,open:!0,suffix:".fbx"},[P.KML]:{type:I.p.GEOSPATIAL,open:!0,suffix:".kml"},[P.SHP]:{type:I.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(hv,Ga,Z){Z.d(Ga,{p:()=>I});var I=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}(I||{})}}]);
|