a&&(p=a-c);for(var v=0;vf&&(f=w,u=c+v)}var H=this.getRawIndex(h),V=this.getRawIndex(u);hc-f&&(l=c-f,a.length=l);for(var p=0;ph[1]&&(h[1]=m),d[u++]=w}return r._count=u,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(t,i){if(this._count)for(var C=t.length,n=this._chunks,r=0,o=this.count();rl&&(l=h)}return o=[a,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var i=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(i);for(var C=[],n=this._chunks,r=0;r=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(i,C,n,r){return u5(i[r],this._dimensions[r])}yt={arrayRows:t,objectRows:function(i,C,n,r){return u5(i[C],this._dimensions[r])},keyedColumns:t,original:function(i,C,n,r){var o=i&&(i.value==null?i:i.value);return u5(o instanceof Array?o[r]:o,this._dimensions[r])},typedArray:function(i,C,n,r){return i[r]}}}(),e}(),VS=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,i){this._sourceList=t,this._upstreamSignList=i,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,i=this._getUpstreamSourceManagers(),C=!!i.length,n,r;if(s4(t)){var o=t,a=void 0,l=void 0,s=void 0;if(C){var c=i[0];c.prepareSource(),s=c.getSource(),a=s.data,l=s.sourceFormat,r=[c._getVersionSign()]}else a=o.get("data",!0),l=U1(a)?l9:V2,r=[];var h=this._getSourceMetaRawOption()||{},d=s&&s.metaRawOption||{},u=q(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=q(h.sourceHeader,d.sourceHeader),p=q(h.dimensions,d.dimensions),v=u!==d.seriesLayoutBy||!!f!=!!d.sourceHeader||p;n=v?[Vt(a,{seriesLayoutBy:u,sourceHeader:f,dimensions:p},l)]:[]}else{var m=t;if(C){var w=this._applyTransform(i);n=w.sourceList,r=w.upstreamSignList}else{var H=m.get("source",!0);n=[Vt(H,this._getSourceMetaRawOption(),null)],r=[]}}process.env.NODE_ENV!=="production"&&t1(n&&r),this._setLocalSource(n,r)},e.prototype._applyTransform=function(t){var i=this._sourceHost,C=i.get("transform",!0),n=i.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&t1(n!=null||C!=null),n!=null){var r="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(r="When using `fromTransformResult`, there should be only one upstream dataset"),xo(r))}var o,a=[],l=[];return b(t,function(s){s.prepareSource();var c=s.getSource(n||0),h="";n!=null&&!c&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+n),xo(h)),a.push(c),l.push(s._getVersionSign())}),C?o=pS(C,a,{datasetIndex:i.componentIndex}):n!=null&&(o=[Jb(a[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),i=0;i1||i>0&&!e.noHeader;return b(e.blocks,function(n){var r=So(n);r>=t&&(t=r+ +(C&&(!r||_t(n)&&!n.noHeader)))}),t}return 0}function yS(e,t,i,C){var n=t.noHeader,r=_S(So(t)),o=[],a=t.blocks||[];t1(!a||R(a)),a=a||[];var l=e.orderMode;if(t.sortBlocks&&l){a=a.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(G9(s,l)){var c=new lS(s[l],null);a.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&a.reverse()}b(a,function(p,v){var m=t.valueFormatter,w=bo(p)(m?P(P({},e),{valueFormatter:m}):e,p,v>0?r.html:0,C);w!=null&&o.push(w)});var h=e.renderMode==="richText"?o.join(r.richText):It(C,o.join(""),n?i:r.html);if(n)return h;var d=lt(t.header,"ordinal",e.useUTC),u=Io(C,e.renderMode).nameStyle,f=_o(C);return e.renderMode==="richText"?No(e,d,u)+r.richText+h:It(C,''+Y1(d)+"
"+h,i)}function xS(e,t,i,C){var n=e.renderMode,r=t.noName,o=t.noValue,a=!t.markerType,l=t.name,s=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(V){return V=R(V)?V:[V],$(V,function(Z,L){return lt(Z,R(u)?u[L]:u,s)})};if(!(r&&o)){var h=a?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),d=r?"":lt(l,"ordinal",s),u=t.valueType,f=o?[]:c(t.value,t.dataIndex),p=!a||!r,v=!a&&r,m=Io(C,n),w=m.nameStyle,H=m.valueStyle;return n==="richText"?(a?"":h)+(r?"":No(e,d,w))+(o?"":SS(e,f,p,v,H)):It(C,(a?"":h)+(r?"":IS(d,!a,w))+(o?"":bS(f,p,v,H)),i)}}function Bo(e,t,i,C,n,r){if(e){var o=bo(e),a={useUTC:n,renderMode:i,orderMode:C,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(a,e,0,r)}}function _S(e){return{html:MS[e],richText:ZS[e]}}function It(e,t,i){var C='',n="margin: "+i+"px 0 0",r=_o(e);return''+t+C+"
"}function IS(e,t,i){var C=t?"margin-left:2px":"";return''+Y1(e)+""}function bS(e,t,i,C){var n=i?"10px":"20px",r=t?"float:right;margin-left:"+n:"";return e=R(e)?e:[e],''+$(e,function(o){return Y1(o)}).join(" ")+""}function No(e,t,i){return e.markupStyleCreator.wrapRichTextStyle(t,i)}function SS(e,t,i,C,n){var r=[n],o=C?10:20;return i&&r.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(R(t)?t.join(" "):t,r)}function BS(e,t){var i=e.getData().getItemVisual(t,"style"),C=i[e.visualDrawType];return u0(C)}function ko(e,t){var i=e.get("padding");return i??(t==="richText"?[8,10]:10)}var bt=function(){function e(){this.richTextStyles={},this._nextStyleNameId=zC()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,i,C){var n=C==="richText"?this._generateStyleName():null,r=vb({color:i,type:t,renderMode:C,markerId:n});return U(r)?r:(process.env.NODE_ENV!=="production"&&t1(n),this.richTextStyles[n]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(t,i){var C={};R(i)?b(i,function(r){return P(C,r)}):P(C,i);var n=this._generateStyleName();return this.richTextStyles[n]=C,"{"+n+"|"+t+"}"},e}();function NS(e){var t=e.series,i=e.dataIndex,C=e.multipleSeries,n=t.getData(),r=n.mapDimensionsAll("defaultedTooltip"),o=r.length,a=t.getRawValue(i),l=R(a),s=BS(t,i),c,h,d,u;if(o>1||l&&!o){var f=kS(a,t,i,r,s);c=f.inlineValues,h=f.inlineValueTypes,d=f.blocks,u=f.inlineValues[0]}else if(o){var p=n.getDimensionInfo(r[0]);u=c=e3(n,i,r[0]),h=p.type}else u=c=l?a[0]:a;var v=h7(t),m=v&&t.name||"",w=n.getName(i),H=C?m:w;return c4("section",{header:m,noHeader:C||!v,sortParam:u,blocks:[c4("nameValue",{markerType:"item",markerColor:s,name:H,noName:!E2(H),value:c,valueType:h,dataIndex:i})].concat(d||[])})}function kS(e,t,i,C,n){var r=t.getData(),o=p9(e,function(h,d,u){var f=r.getDimensionInfo(u);return h=h||f&&f.tooltip!==!1&&f.displayName!=null},!1),a=[],l=[],s=[];C.length?b(C,function(h){c(e3(r,i,h),h)}):b(e,c);function c(h,d){var u=r.getDimensionInfo(d);!u||u.otherDims.tooltip===!1||(o?s.push(c4("nameValue",{markerType:"subItem",markerColor:n,name:u.displayName,value:h,valueType:u.type})):(a.push(h),l.push(u.type)))}return{inlineValues:a,inlineValueTypes:l,blocks:s}}var b9=x1();function f5(e,t){return e.getName(t)||e.getId(t)}var TS="__universalTransitionEnabled",N2=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i._selectedDataIndicesMap={},i}return t.prototype.init=function(i,C,n){this.seriesIndex=this.componentIndex,this.dataTask=l4({count:DS,reset:PS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(i,n);var r=b9(this).sourceManager=new VS(this);r.prepareSource();var o=this.getInitialData(i,n);Ao(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&t1(o,"getInitialData returned invalid data."),b9(this).dataBeforeProcessed=o,To(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(i,C){var n=C4(this),r=n?l5(i):{},o=this.subType;u1.hasClass(o)&&(o+="Series"),p1(i,C.getTheme().get(this.subType)),p1(i,this.getDefaultOption()),c7(i,"label",["show"]),this.fillDataTextStyle(i.data),n&&Q0(i,r,n)},t.prototype.mergeOption=function(i,C){i=p1(this.option,i,!0),this.fillDataTextStyle(i.data);var n=C4(this);n&&Q0(this.option,i,n);var r=b9(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(i,C);Ao(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,b9(this).dataBeforeProcessed=o,To(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(i){if(i&&!U1(i))for(var C=["show"],n=0;nthis.getShallow("animationThreshold")&&(C=!1),!!C},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(i,C,n){var r=this.ecModel,o=dt.prototype.getColorFromPalette.call(this,i,C,n);return o||(o=r.getColorFromPalette(i,C,n)),o},t.prototype.coordDimToDataDim=function(i){return this.getRawData().mapDimensionsAll(i)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(i,C){this._innerSelect(this.getData(C),i)},t.prototype.unselect=function(i,C){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,o=this.getData(C);if(r==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(o)}return n},t.prototype.isSelected=function(i,C){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(C);return(n==="all"||n[f5(r,i)])&&!r.getItemModel(i).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[TS])return!0;var i=this.option.universalTransition;return i?i===!0?!0:i&&i.enabled:!1},t.prototype._innerSelect=function(i,C){var n,r,o=this.option,a=o.selectedMode,l=C.length;if(!(!a||!l)){if(a==="series")o.selectedMap="all";else if(a==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var s=o.selectedMap,c=0;c0&&this._innerSelect(i,C)}},t.registerClass=function(i){return u1.registerClass(i)},t.protoInitialize=function(){var i=t.prototype;i.type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",i.visualDrawType="fill"}(),t}(u1);P2(N2,oS),P2(N2,dt),tn(N2,u1);function To(e){var t=e.name;h7(e)||(e.name=AS(e)||t)}function AS(e){var t=e.getRawData(),i=t.mapDimensionsAll("seriesName"),C=[];return b(i,function(n){var r=t.getDimensionInfo(n);r.displayName&&C.push(r.displayName)}),C.join(" ")}function DS(e){return e.model.getRawData().count()}function PS(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ES}function ES(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ao(e,t){b(KZ(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(i){e.wrapMethod(i,y1(OS,t))})}function OS(e,t){var i=St(e);return i&&i.setOutputEnd((t||this).count()),t}function St(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var C=i.currentTask;if(C){var n=C.agentStubMap;n&&(C=n.get(e.uid))}return C}}var K2=function(){function e(){this.group=new A1,this.uid=j6("viewComponent")}return e.prototype.init=function(t,i){},e.prototype.render=function(t,i,C,n){},e.prototype.dispose=function(t,i){},e.prototype.updateView=function(t,i,C,n){},e.prototype.updateLayout=function(t,i,C,n){},e.prototype.updateVisual=function(t,i,C,n){},e.prototype.toggleBlurSeries=function(t,i,C){},e.prototype.eachRendered=function(t){var i=this.group;i&&i.traverse(t)},e}();f7(K2),v6(K2);function Bt(){var e=x1();return function(t){var i=e(t),C=t.pipelineContext,n=!!i.large,r=!!i.progressiveRender,o=i.large=!!(C&&C.large),a=i.progressiveRender=!!(C&&C.progressiveRender);return(n!==o||r!==a)&&"reset"}}var Do=x1(),FS=Bt(),Z2=function(){function e(){this.group=new A1,this.uid=j6("viewChart"),this.renderTask=l4({plan:RS,reset:zS}),this.renderTask.context={view:this}}return e.prototype.init=function(t,i){},e.prototype.render=function(t,i,C,n){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,i,C,n){var r=t.getData(n&&n.dataType);if(!r){process.env.NODE_ENV!=="production"&&O1("Unknown dataType "+n.dataType);return}Eo(r,n,"emphasis")},e.prototype.downplay=function(t,i,C,n){var r=t.getData(n&&n.dataType);if(!r){process.env.NODE_ENV!=="production"&&O1("Unknown dataType "+n.dataType);return}Eo(r,n,"normal")},e.prototype.remove=function(t,i){this.group.removeAll()},e.prototype.dispose=function(t,i){},e.prototype.updateView=function(t,i,C,n){this.render(t,i,C,n)},e.prototype.updateLayout=function(t,i,C,n){this.render(t,i,C,n)},e.prototype.updateVisual=function(t,i,C,n){this.render(t,i,C,n)},e.prototype.eachRendered=function(t){Y6(this.group,t)},e.markUpdateMethod=function(t,i){Do(t).updateMethod=i},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Po(e,t,i){e&&U0(e)&&(t==="emphasis"?B6:N6)(e,i)}function Eo(e,t,i){var C=K9(e,t),n=t&&t.highlightKey!=null?iI(t.highlightKey):null;C!=null?b(X1(C),function(r){Po(e.getItemGraphicEl(r),i,n)}):e.eachItemGraphicEl(function(r){Po(r,i,n)})}f7(Z2,["dispose"]),v6(Z2);function RS(e){return FS(e.model)}function zS(e){var t=e.model,i=e.ecModel,C=e.api,n=e.payload,r=t.pipelineContext.progressiveRender,o=e.view,a=n&&Do(n).updateMethod,l=r?"incrementalPrepareRender":a&&o[a]?a:"render";return l!=="render"&&o[l](t,i,C,n),$S[l]}var $S={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},g5="\0__throttleOriginMethod",Oo="\0__throttleRate",Fo="\0__throttleType";function Nt(e,t,i){var C,n=0,r=0,o=null,a,l,s,c;t=t||0;function h(){r=new Date().getTime(),o=null,e.apply(l,s||[])}var d=function(){for(var u=[],f=0;f=0?h():o=setTimeout(h,-a),n=C};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(u){c=u},d}function Ro(e,t,i,C){var n=e[t];if(n){var r=n[g5]||n,o=n[Fo],a=n[Oo];if(a!==i||o!==C){if(i==null||!C)return e[t]=r;n=e[t]=Nt(r,i,C==="debounce"),n[g5]=r,n[Fo]=C,n[Oo]=i}return n}}function kt(e,t){var i=e[t];i&&i[g5]&&(i.clear&&i.clear(),e[t]=i[g5])}var zo=x1(),$o={itemStyle:D3(Vr,!0),lineStyle:D3(Hr,!0)},GS={lineStyle:"stroke",itemStyle:"fill"};function Go(e,t){var i=e.visualStyleMapper||$o[t];return i||(console.warn("Unknown style type '"+t+"'."),$o.itemStyle)}function Uo(e,t){var i=e.visualDrawType||GS[t];return i||(console.warn("Unknown style type '"+t+"'."),"fill")}var US={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData(),C=e.visualStyleAccessPath||"itemStyle",n=e.getModel(C),r=Go(e,C),o=r(n),a=n.getShallow("decal");a&&(i.setVisual("decal",a),a.dirty=!0);var l=Uo(e,C),s=o[l],c=j(s)?s:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,i.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?d:o.stroke}if(i.setVisual("style",o),i.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return i.setVisual("colorFromPalette",!1),{dataEach:function(u,f){var p=e.getDataParams(f),v=P({},o);v[l]=c(p),u.setItemVisual(f,"style",v)}}}},h4=new V1,WS={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var i=e.getData(),C=e.visualStyleAccessPath||"itemStyle",n=Go(e,C),r=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(o,a){var l=o.getRawDataItem(a);if(l&&l[C]){h4.option=l[C];var s=n(h4),c=o.ensureUniqueItemVisual(a,"style");P(c,s),h4.option.decal&&(o.setItemVisual(a,"decal",h4.option.decal),h4.option.decal.dirty=!0),r in s&&o.setItemVisual(a,"colorFromPalette",!1)}}:null}}}},YS={performRawSeries:!0,overallReset:function(e){var t=e1();e.eachSeries(function(i){var C=i.getColorBy();if(!i.isColorBySeries()){var n=i.type+"-"+C,r=t.get(n);r||(r={},t.set(n,r)),zo(i).scope=r}}),e.eachSeries(function(i){if(!(i.isColorBySeries()||e.isSeriesFiltered(i))){var C=i.getRawData(),n={},r=i.getData(),o=zo(i).scope,a=i.visualStyleAccessPath||"itemStyle",l=Uo(i,a);r.each(function(s){var c=r.getRawIndex(s);n[c]=s}),C.each(function(s){var c=n[s],h=r.getItemVisual(c,"colorFromPalette");if(h){var d=r.ensureUniqueItemVisual(c,"style"),u=C.getName(s)||s+"",f=C.count();d[l]=i.getColorFromPalette(u,o,f)}})}})}},p5=Math.PI;function XS(e,t){t=t||{},s1(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new A1,C=new S1({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(C);var n=new j1({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),r=new S1({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});i.add(r);var o;return t.showSpinner&&(o=new E6({shape:{startAngle:-p5/2,endAngle:-p5/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:p5*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:p5*3/2}).delay(300).start("circularInOut"),i.add(o)),i.resize=function(){var a=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,s=(e.getWidth()-l*2-(t.showSpinner&&a?10:0)-a)/2-(t.showSpinner&&a?0:5+a/2)+(t.showSpinner?0:a/2)+(a?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:s,cy:c}),r.setShape({x:s-l,y:c-l,width:l*2,height:l*2}),C.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i}var Wo=function(){function e(t,i,C,n){this._stageTaskMap=e1(),this.ecInstance=t,this.api=i,C=this._dataProcessorHandlers=C.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=C.concat(n)}return e.prototype.restoreData=function(t,i){t.restoreData(i),this._stageTaskMap.each(function(C){var n=C.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,i){if(t.__pipeline){var C=this._pipelineMap.get(t.__pipeline.id),n=C.context,r=!i&&C.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>C.blockIndex,o=r?C.step:null,a=n&&n.modDataCount,l=a!=null?Math.ceil(a/o):null;return{step:o,modBy:l,modDataCount:a}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,i){var C=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=C.progressiveEnabled&&i.incrementalPrepareRender&&r>=C.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?r:null;t.pipelineContext=C.context={progressiveRender:o,modDataCount:l,large:a}},e.prototype.restorePipelines=function(t){var i=this,C=i._pipelineMap=e1();t.eachSeries(function(n){var r=n.getProgressive(),o=n.uid;C.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:r&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),i._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,i=this.api.getModel(),C=this.api;b(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),t1(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,r,i,C),n.overallReset&&this._createOverallStageTask(n,r,i,C)},this)},e.prototype.prepareView=function(t,i,C,n){var r=t.renderTask,o=r.context;o.model=i,o.ecModel=C,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(i,r)},e.prototype.performDataProcessorTasks=function(t,i){this._performStageTasks(this._dataProcessorHandlers,t,i,{block:!0})},e.prototype.performVisualTasks=function(t,i,C){this._performStageTasks(this._visualHandlers,t,i,C)},e.prototype._performStageTasks=function(t,i,C,n){n=n||{};var r=!1,o=this;b(t,function(l,s){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,d=c.overallTask;if(d){var u,f=d.agentStubMap;f.each(function(v){a(n,v)&&(v.dirty(),u=!0)}),u&&d.dirty(),o.updatePayload(d,C);var p=o.getPerformArgs(d,n.block);f.each(function(v){v.perform(p)}),d.perform(p)&&(r=!0)}else h&&h.each(function(v,m){a(n,v)&&v.dirty();var w=o.getPerformArgs(v,n.block);w.skip=!l.performRawSeries&&i.isSeriesFiltered(v.context.model),o.updatePayload(v,C),v.perform(w)&&(r=!0)})}});function a(l,s){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(s.__pipeline.id))}this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(t){var i;t.eachSeries(function(C){i=C.dataTask.perform()||i}),this.unfinished=i||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var i=t.tail;do{if(i.__block){t.blockIndex=i.__idxInPipeline;break}i=i.getUpstream()}while(i)})},e.prototype.updatePayload=function(t,i){i!=="remain"&&(t.context.payload=i)},e.prototype._createSeriesStageTask=function(t,i,C,n){var r=this,o=i.seriesTaskMap,a=i.seriesTaskMap=e1(),l=t.seriesType,s=t.getTargetSeries;t.createOnAllSeries?C.eachRawSeries(c):l?C.eachRawSeriesByType(l,c):s&&s(C,n).each(c);function c(h){var d=h.uid,u=a.set(d,o&&o.get(d)||l4({plan:JS,reset:tB,count:iB}));u.context={model:h,ecModel:C,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(h,u)}},e.prototype._createOverallStageTask=function(t,i,C,n){var r=this,o=i.overallTask=i.overallTask||l4({reset:qS});o.context={ecModel:C,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=e1(),s=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,u="";process.env.NODE_ENV!=="production"&&(u='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),t1(!t.createOnAllSeries,u),s?C.eachRawSeriesByType(s,f):c?c(C,n).each(f):(h=!1,b(C.getSeries(),f));function f(p){var v=p.uid,m=l.set(v,a&&a.get(v)||(d=!0,l4({reset:jS,onDirty:QS})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,r._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,i){var C=t.uid,n=this._pipelineMap.get(C);!n.head&&(n.head=i),n.tail&&n.tail.pipe(i),n.tail=i,i.__idxInPipeline=n.count++,i.__pipeline=n},e.wrapStageHandler=function(t,i){return j(t)&&(t={overallReset:t,seriesType:CB(t)}),t.uid=j6("stageHandler"),i&&(t.visualType=i),t},e}();function qS(e){e.overallReset(e.ecModel,e.api,e.payload)}function jS(e){return e.overallProgress&&KS}function KS(){this.agent.dirty(),this.getDownstream().dirty()}function QS(){this.agent&&this.agent.dirty()}function JS(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function tB(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=X1(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$(t,function(i,C){return Yo(C)}):eB}var eB=Yo(0);function Yo(e){return function(t,i){var C=i.data,n=i.resetDefines[e];if(n&&n.dataEach)for(var r=t.start;r0&&u===s.length-d.length){var f=s.slice(0,u);f!=="data"&&(i.mainType=f,i[d.toLowerCase()]=l,c=!0)}}a.hasOwnProperty(s)&&(C[s]=l,c=!0),c||(n[s]=l)})}return{cptQuery:i,dataQuery:C,otherQuery:n}},e.prototype.filter=function(t,i){var C=this.eventInfo;if(!C)return!0;var n=C.targetEl,r=C.packedEvent,o=C.model,a=C.view;if(!o||!a)return!0;var l=i.cptQuery,s=i.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(s,r,"name")&&c(s,r,"dataIndex")&&c(s,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,i.otherQuery,n,r));function c(h,d,u,f){return h[u]==null||d[f||u]===h[u]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Tt=["symbol","symbolSize","symbolRotate","symbolOffset"],ta=Tt.concat(["symbolKeepAspect"]),oB={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData();if(e.legendIcon&&i.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var C={},n={},r=!1,o=0;o=0&&p0(l)?l:.5;var s=e.createRadialGradient(o,a,0,o,a,l);return s}function ia(e,t,i){for(var C=t.type==="radial"?yB(e,t,i):ZB(e,t,i),n=t.colorStops,r=0;r0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:f1(e)?[e]:R(e)?e:null}function Dt(e){var t=e.style,i=t.lineDash&&t.lineWidth>0&&_B(t.lineDash,t.lineWidth),C=t.lineDashOffset;if(i){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(i=$(i,function(r){return r/n}),C/=n)}return[i,C]}var IB=new Z9(!0);function H5(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function na(e){return typeof e=="string"&&e!=="none"}function V5(e){var t=e.fill;return t!=null&&t!=="none"}function ra(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var i=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=i}else e.fill()}function oa(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var i=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=i}else e.stroke()}function aa(e,t,i){var C=p7(t.image,t.__image,i);if(m6(C)){var n=e.createPattern(C,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var r=new DOMMatrix;r.translateSelf(t.x||0,t.y||0),r.rotateSelf(0,0,(t.rotation||0)*O4),r.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(r)}return n}}function bB(e,t,i,C){var n,r=H5(i),o=V5(i),a=i.strokePercent,l=a<1,s=!t.path;(!t.silent||l)&&s&&t.createPathProxy();var c=t.path||IB,h=t.__dirty;if(!C){var d=i.fill,u=i.stroke,f=o&&!!d.colorStops,p=r&&!!u.colorStops,v=o&&!!d.image,m=r&&!!u.image,w=void 0,H=void 0,V=void 0,Z=void 0,L=void 0;(f||p)&&(L=t.getBoundingRect()),f&&(w=h?ia(e,d,L):t.__canvasFillGradient,t.__canvasFillGradient=w),p&&(H=h?ia(e,u,L):t.__canvasStrokeGradient,t.__canvasStrokeGradient=H),v&&(V=h||!t.__canvasFillPattern?aa(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=V),m&&(Z=h||!t.__canvasStrokePattern?aa(e,u,t):t.__canvasStrokePattern,t.__canvasStrokePattern=V),f?e.fillStyle=w:v&&(V?e.fillStyle=V:o=!1),p?e.strokeStyle=H:m&&(Z?e.strokeStyle=Z:r=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var y,I;e.setLineDash&&i.lineDash&&(n=Dt(t),y=n[0],I=n[1]);var x=!0;(s||h&T0)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),x=!1),c.reset(),t.buildPath(c,t.shape,C),c.toStatic(),t.pathUpdated()),x&&c.rebuildPath(e,l?a:1),y&&(e.setLineDash(y),e.lineDashOffset=I),C||(i.strokeFirst?(r&&oa(e,i),o&&ra(e,i)):(o&&ra(e,i),r&&oa(e,i))),y&&e.setLineDash([])}function SB(e,t,i){var C=t.__image=p7(i.image,t.__image,t,t.onload);if(!(!C||!m6(C))){var n=i.x||0,r=i.y||0,o=t.getWidth(),a=t.getHeight(),l=C.width/C.height;if(o==null&&a!=null?o=a*l:a==null&&o!=null?a=o/l:o==null&&a==null&&(o=C.width,a=C.height),i.sWidth&&i.sHeight){var s=i.sx||0,c=i.sy||0;e.drawImage(C,s,c,i.sWidth,i.sHeight,n,r,o,a)}else if(i.sx&&i.sy){var s=i.sx,c=i.sy,h=o-s,d=a-c;e.drawImage(C,s,c,h,d,n,r,o,a)}else e.drawImage(C,n,r,o,a)}}function BB(e,t,i){var C,n=i.text;if(n!=null&&(n+=""),n){e.font=i.font||g9,e.textAlign=i.textAlign,e.textBaseline=i.textBaseline;var r=void 0,o=void 0;e.setLineDash&&i.lineDash&&(C=Dt(t),r=C[0],o=C[1]),r&&(e.setLineDash(r),e.lineDashOffset=o),i.strokeFirst?(H5(i)&&e.strokeText(n,i.x,i.y),V5(i)&&e.fillText(n,i.x,i.y)):(V5(i)&&e.fillText(n,i.x,i.y),H5(i)&&e.strokeText(n,i.x,i.y)),r&&e.setLineDash([])}}var la=["shadowBlur","shadowOffsetX","shadowOffsetY"],sa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ca(e,t,i,C,n){var r=!1;if(!C&&(i=i||{},t===i))return!1;if(C||t.opacity!==i.opacity){n2(e,n),r=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?J9.opacity:o}(C||t.blend!==i.blend)&&(r||(n2(e,n),r=!0),e.globalCompositeOperation=t.blend||J9.blend);for(var a=0;ao.maxTileWidth&&A("maxTileWidth"),k>o.maxTileHeight&&A("maxTileHeight")}return{width:Math.max(1,Math.min(_,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,Z.width,Z.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,Z.width,Z.height)));for(var _=0,B=0;B0&&i.unfinished);i.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(i,C,n){if(this[$1]){process.env.NODE_ENV!=="production"&&O1("`setOption` should not be called during main process.");return}if(this._disposed){c2(this.id);return}var r,o,a;if(Y(C)&&(n=C.lazyUpdate,r=C.silent,o=C.replaceMerge,a=C.transition,C=C.notMerge),this[$1]=!0,!this._model||C){var l=new Ob(this._api),s=this._theme,c=this._model=new gt;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,l)}this._model.setOption(i,{replaceMerge:o},jt);var h={seriesTransition:a,optionChanged:!0};if(n)this[r2]={silent:r,updateParams:h},this[$1]=!1,this.getZr().wakeUp();else{try{o3(this),S9.update.call(this,null,h)}catch(d){throw this[r2]=null,this[$1]=!1,d}this._ssr||this._zr.flush(),this[r2]=null,this[$1]=!1,g4.call(this,r),p4.call(this,r)}},t.prototype.setTheme=function(){z2("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||K.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(i){return process.env.NODE_ENV!=="production"&&b1("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(i)},t.prototype.renderToCanvas=function(i){i=i||{};var C=this._zr.painter;if(process.env.NODE_ENV!=="production"&&C.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return C.getRenderedCanvas({backgroundColor:i.backgroundColor||this._model.get("backgroundColor"),pixelRatio:i.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(i){i=i||{};var C=this._zr.painter;if(process.env.NODE_ENV!=="production"&&C.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return C.renderToString({useViewBox:i.useViewBox})},t.prototype.getSvgDataURL=function(){if(K.svgSupported){var i=this._zr,C=i.storage.getDisplayList();return b(C,function(n){n.stopAnimation(null,!0)}),i.painter.toDataURL()}},t.prototype.getDataURL=function(i){if(this._disposed){c2(this.id);return}i=i||{};var C=i.excludeComponents,n=this._model,r=[],o=this;b(C,function(l){n.eachComponent({mainType:l},function(s){var c=o._componentsMap[s.__viewId];c.group.ignore||(r.push(c),c.group.ignore=!0)})});var a=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(i).toDataURL("image/"+(i&&i.type||"png"));return b(r,function(l){l.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(i){if(this._disposed){c2(this.id);return}var C=i.type==="svg",n=this.group,r=Math.min,o=Math.max,a=1/0;if(Fa[n]){var l=a,s=a,c=-a,h=-a,d=[],u=i&&i.pixelRatio||this.getDevicePixelRatio();b(m4,function(H,V){if(H.group===n){var Z=C?H.getZr().painter.getSvgDom().innerHTML:H.renderToCanvas(n1(i)),L=H.getDom().getBoundingClientRect();l=r(L.left,l),s=r(L.top,s),c=o(L.right,c),h=o(L.bottom,h),d.push({dom:Z,left:L.left,top:L.top})}}),l*=u,s*=u,c*=u,h*=u;var f=c-l,p=h-s,v=p3.createCanvas(),m=DC(v,{renderer:C?"svg":"canvas"});if(m.resize({width:f,height:p}),C){var w="";return b(d,function(H){var V=H.left-l,Z=H.top-s;w+=''+H.dom+""}),m.painter.getSvgRoot().innerHTML=w,i.connectedBackgroundColor&&m.painter.setBackgroundColor(i.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return i.connectedBackgroundColor&&m.add(new S1({shape:{x:0,y:0,width:f,height:p},style:{fill:i.connectedBackgroundColor}})),b(d,function(H){var V=new X2({style:{x:H.left*u-l,y:H.top*u-s,image:H.dom}});m.add(V)}),m.refreshImmediately(),v.toDataURL("image/"+(i&&i.type||"png"))}else return this.getDataURL(i)},t.prototype.convertToPixel=function(i,C){return Gt(this,"convertToPixel",i,C)},t.prototype.convertFromPixel=function(i,C){return Gt(this,"convertFromPixel",i,C)},t.prototype.containPixel=function(i,C){if(this._disposed){c2(this.id);return}var n=this._model,r,o=u7(n,i);return b(o,function(a,l){l.indexOf("Models")>=0&&b(a,function(s){var c=s.coordinateSystem;if(c&&c.containPoint)r=r||!!c.containPoint(C);else if(l==="seriesModels"){var h=this._chartsMap[s.__viewId];h&&h.containPoint?r=r||h.containPoint(C,s):process.env.NODE_ENV!=="production"&&E1(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&E1(l+": containPoint is not supported")},this)},this),!!r},t.prototype.getVisual=function(i,C){var n=this._model,r=u7(n,i,{defaultMainType:"series"}),o=r.seriesModel;process.env.NODE_ENV!=="production"&&(o||E1("There is no specified series model"));var a=o.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return l!=null?lB(a,l,C):sB(a,C)},t.prototype.getViewOfComponentModel=function(i){return this._componentsMap[i.__viewId]},t.prototype.getViewOfSeriesModel=function(i){return this._chartsMap[i.__viewId]},t.prototype._initEvents=function(){var i=this;b(CN,function(C){var n=function(r){var o=i.getModel(),a=r.target,l,s=C==="globalout";if(s?l={}:a&&d4(a,function(f){var p=l1(f);if(p&&p.dataIndex!=null){var v=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=v&&v.getDataParams(p.dataIndex,p.dataType,a)||{},!0}else if(p.eventData)return l=P({},p.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var d=c&&h!=null&&o.getComponent(c,h),u=d&&i[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!s&&!(d&&u)&&E1("model or view can not be found by params"),l.event=r,l.type=C,i._$eventProcessor.eventInfo={targetEl:a,packedEvent:l,model:d,view:u},i.trigger(C,l)}};n.zrEventfulCallAtLast=!0,i._zr.on(C,n,i)}),b(v4,function(C,n){i._messageCenter.on(n,function(r){this.trigger(n,r)},i)}),b(["selectchanged"],function(C){i._messageCenter.on(C,function(n){this.trigger(C,n)},i)}),hB(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){c2(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){c2(this.id);return}this._disposed=!0;var i=this.getDom();i&&QC(this.getDom(),Qt,"");var C=this,n=C._api,r=C._model;b(C._componentsViews,function(o){o.dispose(r,n)}),b(C._chartsViews,function(o){o.dispose(r,n)}),C._zr.dispose(),C._dom=C._model=C._chartsMap=C._componentsMap=C._chartsViews=C._componentsViews=C._scheduler=C._api=C._zr=C._throttledZrFlush=C._theme=C._coordSysMgr=C._messageCenter=null,delete m4[C.id]},t.prototype.resize=function(i){if(this[$1]){process.env.NODE_ENV!=="production"&&O1("`resize` should not be called during main process.");return}if(this._disposed){c2(this.id);return}this._zr.resize(i);var C=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!C){var n=C.resetOption("media"),r=i&&i.silent;this[r2]&&(r==null&&(r=this[r2].silent),n=!0,this[r2]=null),this[$1]=!0;try{n&&o3(this),S9.update.call(this,{type:"resize",animation:P({duration:0},i&&i.animation)})}catch(o){throw this[$1]=!1,o}this[$1]=!1,g4.call(this,r),p4.call(this,r)}},t.prototype.showLoading=function(i,C){if(this._disposed){c2(this.id);return}if(Y(i)&&(C=i,i=""),i=i||"default",this.hideLoading(),!Kt[i]){process.env.NODE_ENV!=="production"&&E1("Loading effects "+i+" not exists.");return}var n=Kt[i](this._api,C),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){c2(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(i){var C=P({},i);return C.type=v4[i.type],C},t.prototype.dispatchAction=function(i,C){if(this._disposed){c2(this.id);return}if(Y(C)||(C={silent:!!C}),!!x5[i.type]&&this._model){if(this[$1]){this._pendingActions.push(i);return}var n=C.silent;Wt.call(this,i,n);var r=C.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),g4.call(this,n),p4.call(this,n)}},t.prototype.updateLabelLayout=function(){k2.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(i){if(this._disposed){c2(this.id);return}var C=i.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(C);process.env.NODE_ENV!=="production"&&t1(i.data&&r),r.appendData(i),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){o3=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),$t(h,!0),$t(h,!1),d.plan()},$t=function(h,d){for(var u=h._model,f=h._scheduler,p=d?h._componentsViews:h._chartsViews,v=d?h._componentsMap:h._chartsMap,m=h._zr,w=h._api,H=0;Hd.get("hoverLayerThreshold")&&!K.node&&!K.worker&&d.eachSeries(function(v){if(!v.preventUsingHoverLayer){var m=h._chartsMap[v.__viewId];m.__alive&&m.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function o(h,d){var u=h.get("blendMode")||null;d.eachRendered(function(f){f.isGroup||(f.style.blend=u)})}function a(h,d){if(!h.preventAutoZ){var u=h.get("z")||0,f=h.get("zlevel")||0;d.eachRendered(function(p){return l(p,u,f,-1/0),!0})}}function l(h,d,u,f){var p=h.getTextContent(),v=h.getTextGuideLine(),m=h.isGroup;if(m)for(var w=h.childrenRef(),H=0;H0?{duration:p,delay:u.get("delay"),easing:u.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(X3(m))return;if(m instanceof h1&&CI(m),m.__dirty){var w=m.prevStates;w&&m.useStates(w)}if(f){m.stateTransition=v;var H=m.getTextContent(),V=m.getTextGuideLine();H&&(H.stateTransition=v),V&&(V.stateTransition=v)}m.__dirty&&n(m)}})}Aa=function(h){return new(function(d){F(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},u.prototype.getComponentByElement=function(f){for(;f;){var p=f.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);f=f.parent}},u.prototype.enterEmphasis=function(f,p){B6(f,p),y2(h)},u.prototype.leaveEmphasis=function(f,p){N6(f,p),y2(h)},u.prototype.enterBlur=function(f){Y_(f),y2(h)},u.prototype.leaveBlur=function(f){Pn(f),y2(h)},u.prototype.enterSelect=function(f){En(f),y2(h)},u.prototype.leaveSelect=function(f){On(f),y2(h)},u.prototype.getModel=function(){return h.getModel()},u.prototype.getViewOfComponentModel=function(f){return h.getViewOfComponentModel(f)},u.prototype.getViewOfSeriesModel=function(f){return h.getViewOfSeriesModel(f)},u}(Kr))(h)},Da=function(h){function d(u,f){for(var p=0;p=0)){Ga.push(i);var r=Wo.wrapStageHandler(i,n);r.__prio=t,r.__raw=i,e.push(r)}}function Ua(e,t){Kt[e]=t}function hN(e,t,i){var C=zB("registerMap");C&&C(e,t,i)}var uN=gS;v0(Ft,US),v0(M5,WS),v0(M5,YS),v0(Ft,oB),v0(M5,aB),v0(Za,FB),za(no),$a(UB,Kb),Ua("default",XS),a3({type:l0,event:l0,update:l0},W1),a3({type:I6,event:I6,update:I6},W1),a3({type:R3,event:R3,update:R3},W1),a3({type:b6,event:b6,update:b6},W1),a3({type:z3,event:z3,update:z3},W1),Ra("light",nB),Ra("dark",Jo);function w4(e){return e==null?0:e.length||1}function Wa(e){return e}var dN=function(){function e(t,i,C,n,r,o){this._old=t,this._new=i,this._oldKeyGetter=C||Wa,this._newKeyGetter=n||Wa,this.context=r,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,i=this._new,C={},n=new Array(t.length),r=new Array(i.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(i,C,r,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(C[a]=l[0]),this._update&&this._update(c,o)}else s===1?(C[a]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,C)},e.prototype._executeMultiple=function(){var t=this._old,i=this._new,C={},n={},r=[],o=[];this._initIndexMap(t,C,r,"_oldKeyGetter"),this._initIndexMap(i,n,o,"_newKeyGetter");for(var a=0;a1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,s),n[l]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,s),n[l]=null;else if(h===1&&d===1)this._update&&this._update(c,s),n[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,s),n[l]=null;else if(h>1)for(var u=0;u1)for(var a=0;a30}var H4=Y,B9=$,HN=typeof Int32Array>"u"?Array:Int32Array,VN="e\0\0",Qa=-1,LN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],MN=["_approximateExtent"],Ja,b5,V4,l3,ie,L4,Ce,tl=function(){function e(t,i){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 C,n=!1;Xa(t)?(C=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,C=t),C=C||["x","y"];for(var r={},o=[],a={},l=!1,s={},c=0;c=0),n&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=i,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=e1();b(o,function(v){p.set(r[v].storeDimIndex,v)})}}return e.prototype.getDimension=function(t){var i=this._recognizeDimIndex(t);if(i==null)return t;if(i=t,!this._dimOmitted)return this.dimensions[i];var C=this._dimIdxToName.get(i);if(C!=null)return C;var n=this._schema.getSourceDimension(i);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var i=this._recognizeDimIndex(t);if(i!=null)return i;if(t==null)return-1;var C=this._getDimInfo(t);return C?C.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(f1(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var i=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&i==null)throw new Error("Unknown dimension "+t);return i},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var i=this._dimInfos;this._getDimInfo=t?function(C){return i.hasOwnProperty(C)?i[C]:void 0}:function(C){return i[C]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,i){var C=this._dimSummary;if(i==null)return C.encodeFirstDimNotExtra[t];var n=C.encode[t];return n?n[i]:null},e.prototype.mapDimensionsAll=function(t){var i=this._dimSummary,C=i.encode[t];return(C||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,i,C){var n=this,r;if(t instanceof xt&&(r=t),!r){var o=this.dimensions,a=Ht(t)||J1(t)?new uo(t,o.length):t;r=new xt;var l=B9(o,function(s){return{type:n._dimInfos[s].type,property:s}});r.initData(a,l,C)}this._store=r,this._nameList=(i||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=gN(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var i=this._store.appendData(t);this._doInit(i[0],i[1])},e.prototype.appendValues=function(t,i){var C=this._store.appendValues(t,i&&i.length),n=C.start,r=C.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),i)for(var a=n;a=i)){var C=this._store,n=C.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=n.getSource().sourceFormat,l=a===V2;if(l&&!n.pure)for(var s=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,i){var C=this._itemVisuals,n=C[t];n||(n=C[t]={});var r=n[i];return r==null&&(r=this.getVisual(i),R(r)?r=r.slice():H4(r)&&(r=P({},r)),n[i]=r),r},e.prototype.setItemVisual=function(t,i,C){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,H4(i)?P(n,i):n[i]=C},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,i){H4(t)?P(this._layout,t):this._layout[t]=i},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,i,C){this._itemLayouts[t]=C?P(this._itemLayouts[t]||{},i):i},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,i){var C=this.hostModel&&this.hostModel.seriesIndex;P_(C,this.dataType,t,i),this._graphicEls[t]=i},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,i){b(this._graphicEls,function(C,n){C&&t&&t.call(i,C,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:B9(this.dimensions,this._getDimInfo,this),this.hostModel)),ie(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,i){var C=this[t];j(C)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=C.apply(this,arguments);return i.apply(this,[n].concat(s8(arguments)))})},e.internalField=function(){Ja=function(t){var i=t._invertedIndicesMap;b(i,function(C,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){C=i[n]=new HN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),n[i]=l}}}(),e}();function el(e,t){Ht(e)||(e=ro(e)),t=t||{};var i=t.coordDimensions||[],C=t.dimensionsDefine||e.dimensionsDefine||[],n=e1(),r=[],o=yN(e,i,C,t.dimensionsCount),a=t.canOmitUnusedDimensions&&Ka(o),l=C===e.dimensionsDefine,s=l?ja(e):qa(C),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var h=e1(c),d=new Lo(o),u=0;u0&&(C.name=n+(r-1)),r++,t.set(n,r)}}function yN(e,t,i,C){var n=Math.max(e.dimensionsDetectedCount||1,t.length,i.length,C||0);return b(t,function(r){var o;Y(r)&&(o=r.dimsDef)&&(n=Math.max(n,o.length))}),n}function xN(e,t,i){if(i||t.hasKey(e)){for(var C=0;t.hasKey(e+C);)C++;e+=C}return t.set(e,!0),e}var _N=function(){function e(t){this.coordSysDims=[],this.axisMap=e1(),this.categoryAxisMap=e1(),this.coordSysName=t}return e}();function IN(e){var t=e.get("coordinateSystem"),i=new _N(t),C=bN[t];if(C)return C(e,i,i.axisMap,i.categoryAxisMap),i}var bN={cartesian2d:function(e,t,i,C){var n=e.getReferringComponents("xAxis",I2).models[0],r=e.getReferringComponents("yAxis",I2).models[0];if(process.env.NODE_ENV!=="production"){if(!n)throw new Error('xAxis "'+z9(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!r)throw new Error('yAxis "'+z9(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],i.set("x",n),i.set("y",r),s3(n)&&(C.set("x",n),t.firstCategoryDimIndex=0),s3(r)&&(C.set("y",r),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,i,C){var n=e.getReferringComponents("singleAxis",I2).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],i.set("single",n),s3(n)&&(C.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,i,C){var n=e.getReferringComponents("polar",I2).models[0],r=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!r)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),s3(r)&&(C.set("radius",r),t.firstCategoryDimIndex=0),s3(o)&&(C.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,i,C){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,C){var n=e.ecModel,r=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=r.dimensions.slice();b(r.parallelAxisIndex,function(a,l){var s=n.getComponent("parallelAxis",a),c=o[l];i.set(c,s),s3(s)&&(C.set(c,s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function s3(e){return e.get("type")==="category"}function SN(e,t,i){i=i||{};var C=i.byIndex,n=i.stackedCoordDimension,r,o,a;BN(t)?r=t:(o=t.schema,r=o.dimensions,a=t.store);var l=!!(e&&e.get("stack")),s,c,h,d;if(b(r,function(w,H){U(w)&&(r[H]=w={name:w}),l&&!w.isExtraCoord&&(!C&&!s&&w.ordinalMeta&&(s=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!n||n===w.coordDim)&&(c=w))}),c&&!C&&!s&&(C=!0),c){h="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,s&&(s.createInvertedIndices=!0);var u=c.coordDim,f=c.type,p=0;b(r,function(w){w.coordDim===u&&p++});var v={name:h,coordDim:u,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(a&&(v.storeDimIndex=a.ensureCalculationDimension(d,f),m.storeDimIndex=a.ensureCalculationDimension(h,f)),o.appendCalculationDimension(v),o.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:s&&s.name,isStackedByIndex:C,stackedOverDimension:d,stackResultDimension:h}}function BN(e){return!Xa(e.schema)}function c3(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function NN(e,t){return c3(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kN(e,t){var i=e.get("coordinateSystem"),C=vt.get(i),n;return t&&t.coordSysDims&&(n=$(t.coordSysDims,function(r){var o={name:r},a=t.axisMap.get(r);if(a){var l=a.get("type");o.type=pN(l)}return o})),n||(n=C&&(C.getDimensionsInfo?C.getDimensionsInfo():C.dimensions.slice())||["x","y"]),n}function TN(e,t,i){var C,n;return i&&b(e,function(r,o){var a=r.coordDim,l=i.categoryAxisMap.get(a);l&&(C==null&&(C=o),r.ordinalMeta=l.getOrdinalMeta(),t&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(n=!0)}),!n&&C!=null&&(e[C].otherDims.itemName=0),C}function ne(e,t,i){i=i||{};var C=t.getSourceManager(),n,r=!1;n=C.getSource(),r=n.sourceFormat===V2;var o=IN(t),a=kN(t,o),l=i.useEncodeDefaulter,s=j(l)?l:l?y1(Zb,a,t):null,c={coordDimensions:a,generateCoord:i.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:s,canOmitUnusedDimensions:!r},h=el(n,c),d=TN(h.dimensions,i.createInvertedIndices,o),u=r?null:C.getSharedDataStore(h),f=SN(t,{schema:h,store:u}),p=new tl(h,t);p.setCalculationInfo(f);var v=d!=null&&AN(n)?function(m,w,H,V){return V===d?H:this.defaultDimValueGetter(m,w,H,V)}:null;return p.hasItemOption=!1,p.initData(r?n:u,null,v),p}function AN(e){if(e.sourceFormat===V2){var t=DN(e.data||[]);return!R(k3(t))}}function DN(e){for(var t=0;ti[1]&&(i[1]=t[1])},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,i){var C=this._extent;isNaN(t)||(C[0]=t),isNaN(i)||(C[1]=i)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();v6(Q2);var PN=0,re=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++PN}return e.createByAxisModel=function(t){var i=t.option,C=i.data,n=C&&$(C,EN);return new e({categories:n,needCollect:!n,deduplication:i.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var i,C=this._needCollect;if(!U(t)&&!C)return t;if(C&&!this._deduplication)return i=this.categories.length,this.categories[i]=t,i;var n=this._getOrCreateMap();return i=n.get(t),i==null&&(C?(i=this.categories.length,this.categories[i]=t,n.set(t,i)):i=NaN),i},e.prototype._getOrCreateMap=function(){return this._map||(this._map=e1(this.categories))},e}();function EN(e){return Y(e)&&e.value!=null?e.value:e+""}function ON(e){var t=Math.pow(10,d6(Math.abs(e))),i=Math.abs(e/t);return i===0||i===1||i===2||i===3||i===5}function oe(e){return e.type==="interval"||e.type==="log"}function FN(e,t,i,C){var n={},r=e[1]-e[0],o=n.interval=FC(r/t);i!=null&&oC&&(o=n.interval=C);var a=n.intervalPrecision=il(o),l=n.niceTickExtent=[I1(Math.ceil(e[0]/o)*o,a),I1(Math.floor(e[1]/o)*o,a)];return RN(l,e),n}function ae(e){var t=Math.pow(10,d6(e)),i=e/t;return i?i===2?i=3:i===3?i=5:i*=2:i=1,I1(i*t)}function il(e){return n9(e)+2}function Cl(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function RN(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Cl(e,0,t),Cl(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function S5(e,t){return e>=t[0]&&e<=t[1]}function B5(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function N5(e,t){return e*(t[1]-t[0])+t[0]}var le=function(e){F(t,e);function t(i){var C=e.call(this,i)||this;C.type="ordinal";var n=C.getSetting("ordinalMeta");return n||(n=new re({})),R(n)&&(n=new re({categories:$(n,function(r){return Y(r)?r.value:r})})),C._ordinalMeta=n,C._extent=C.getSetting("extent")||[0,n.categories.length-1],C}return t.prototype.parse=function(i){return i==null?NaN:U(i)?this._ordinalMeta.getOrdinal(i):Math.round(i)},t.prototype.contain=function(i){return i=this.parse(i),S5(i,this._extent)&&this._ordinalMeta.categories[i]!=null},t.prototype.normalize=function(i){return i=this._getTickNumber(this.parse(i)),B5(i,this._extent)},t.prototype.scale=function(i){return i=Math.round(N5(i,this._extent)),this.getRawOrdinalNumber(i)},t.prototype.getTicks=function(){for(var i=[],C=this._extent,n=C[0];n<=C[1];)i.push({value:n}),n++;return i},t.prototype.getMinorTicks=function(i){},t.prototype.setSortInfo=function(i){if(i==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var C=i.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],o=0,a=this._ordinalMeta.categories.length,l=Math.min(a,C.length);o=0&&i=0&&i=i},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Q2);Q2.registerClass(le);var m0=I1,h3=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type="interval",i._interval=0,i._intervalPrecision=2,i}return t.prototype.parse=function(i){return i},t.prototype.contain=function(i){return S5(i,this._extent)},t.prototype.normalize=function(i){return B5(i,this._extent)},t.prototype.scale=function(i){return N5(i,this._extent)},t.prototype.setExtent=function(i,C){var n=this._extent;isNaN(i)||(n[0]=parseFloat(i)),isNaN(C)||(n[1]=parseFloat(C))},t.prototype.unionExtent=function(i){var C=this._extent;i[0]C[1]&&(C[1]=i[1]),this.setExtent(C[0],C[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(i){this._interval=i,this._niceExtent=this._extent.slice(),this._intervalPrecision=il(i)},t.prototype.getTicks=function(i){var C=this._interval,n=this._extent,r=this._niceExtent,o=this._intervalPrecision,a=[];if(!C)return a;var l=1e4;n[0]l)return[];var c=a.length?a[a.length-1].value:r[1];return n[1]>c&&(i?a.push({value:m0(c+C,o)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(i){for(var C=this.getTicks(!0),n=[],r=this.getExtent(),o=1;or[0]&&u0&&(r=r===null?a:Math.min(r,a))}i[C]=r}}return i}function al(e){var t=GN(e),i=[];return b(e,function(C){var n=C.coordinateSystem,r=n.getBaseAxis(),o=r.getExtent(),a;if(r.type==="category")a=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,s=t[l],c=Math.abs(o[1]-o[0]),h=r.scale.getExtent(),d=Math.abs(h[1]-h[0]);a=s?c/d*s:c}else{var u=C.getData();a=Math.abs(o[1]-o[0])/u.count()}var f=w1(C.get("barWidth"),a),p=w1(C.get("barMaxWidth"),a),v=w1(C.get("barMinWidth")||(sl(C)?.5:1),a),m=C.get("barGap"),w=C.get("barCategoryGap");i.push({bandWidth:a,barWidth:f,barMaxWidth:p,barMinWidth:v,barGap:m,barCategoryGap:w,axisKey:se(r),stackId:rl(C)})}),UN(i)}function UN(e){var t={};b(e,function(C,n){var r=C.axisKey,o=C.bandWidth,a=t[r]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=a.stacks;t[r]=a;var s=C.stackId;l[s]||a.autoWidthCount++,l[s]=l[s]||{width:0,maxWidth:0};var c=C.barWidth;c&&!l[s].width&&(l[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var h=C.barMaxWidth;h&&(l[s].maxWidth=h);var d=C.barMinWidth;d&&(l[s].minWidth=d);var u=C.barGap;u!=null&&(a.gap=u);var f=C.barCategoryGap;f!=null&&(a.categoryGap=f)});var i={};return b(t,function(C,n){i[n]={};var r=C.stacks,o=C.bandWidth,a=C.categoryGap;if(a==null){var l=o1(r).length;a=Math.max(35-l*4,15)+"%"}var s=w1(a,o),c=w1(C.gap,1),h=C.remainedWidth,d=C.autoWidthCount,u=(h-s)/(d+(d-1)*c);u=Math.max(u,0),b(r,function(m){var w=m.maxWidth,H=m.minWidth;if(m.width){var V=m.width;w&&(V=Math.min(V,w)),H&&(V=Math.max(V,H)),m.width=V,h-=V+c*V,d--}else{var V=u;w&&wV&&(V=H),V!==u&&(m.width=V,h-=V+c*V,d--)}}),u=(h-s)/(d+(d-1)*c),u=Math.max(u,0);var f=0,p;b(r,function(m,w){m.width||(m.width=u),p=m,f+=m.width*(1+c)}),p&&(f-=p.width*c);var v=-f/2;b(r,function(m,w){i[n][w]=i[n][w]||{bandWidth:o,offset:v,width:m.width},v+=m.width*(1+c)})}),i}function WN(e,t,i){if(e&&t){var C=e[se(t)];return C}}function YN(e,t){var i=ol(e,t),C=al(i);b(i,function(n){var r=n.getData(),o=n.coordinateSystem,a=o.getBaseAxis(),l=rl(n),s=C[se(a)][l],c=s.offset,h=s.width;r.setLayout({bandWidth:s.bandWidth,offset:c,size:h})})}function XN(e){return{seriesType:e,plan:Bt(),reset:function(t){if(ll(t)){var i=t.getData(),C=t.coordinateSystem,n=C.getBaseAxis(),r=C.getOtherAxis(n),o=i.getDimensionIndex(i.mapDimension(r.dim)),a=i.getDimensionIndex(i.mapDimension(n.dim)),l=t.get("showBackground",!0),s=i.mapDimension(r.dim),c=i.getCalculationInfo("stackResultDimension"),h=c3(i,s)&&!!i.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),u=qN(n,r),f=sl(t),p=t.get("barMinHeight")||0,v=c&&i.getDimensionIndex(c),m=i.getLayout("size"),w=i.getLayout("offset");return{progress:function(H,V){for(var Z=H.count,L=f&&h9(Z*3),M=f&&l&&h9(Z*3),y=f&&h9(Z),I=C.master.getRect(),x=d?I.width:I.height,_,B=V.getStore(),S=0;(_=H.next())!=null;){var N=B.get(h?v:o,_),k=B.get(a,_),A=u,O=void 0;h&&(O=+N-B.get(o,_));var D=void 0,T=void 0,E=void 0,z=void 0;if(d){var G=C.dataToPoint([N,k]);if(h){var J=C.dataToPoint([O,k]);A=J[0]}D=A,T=G[1]+w,E=G[0]-A,z=m,Math.abs(E)0?i:1:i))}var jN=function(e,t,i,C){for(;i>>1;e[n][1]n&&(this._approxInterval=n);var a=k5.length,l=Math.min(jN(k5,this._approxInterval,0,a),a-1);this._interval=k5[l][1],this._minLevelUnit=k5[Math.max(l-1,0)][0]},t.prototype.parse=function(i){return f1(i)?i:+r9(i)},t.prototype.contain=function(i){return S5(this.parse(i),this._extent)},t.prototype.normalize=function(i){return B5(this.parse(i),this._extent)},t.prototype.scale=function(i){return N5(i,this._extent)},t.type="time",t}(h3),k5=[["second",nt],["minute",rt],["hour",Q3],["quarter-day",Q3*6],["half-day",Q3*12],["day",H2*1.2],["half-week",H2*3.5],["week",H2*7],["month",H2*31],["quarter",H2*95],["half-year",yr/2],["year",yr]];function KN(e,t,i,C){var n=r9(t),r=r9(i),o=function(f){return br(n,f,C)===br(r,f,C)},a=function(){return o("year")},l=function(){return a()&&o("month")},s=function(){return l()&&o("day")},c=function(){return s()&&o("hour")},h=function(){return c()&&o("minute")},d=function(){return h()&&o("second")},u=function(){return d()&&o("millisecond")};switch(e){case"year":return a();case"month":return l();case"day":return s();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return u()}}function QN(e,t){return e/=H2,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function JN(e){var t=30*H2;return e/=t,e>6?6:e>3?3:e>2?2:1}function tk(e){return e/=Q3,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function hl(e,t){return e/=t?rt:nt,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ek(e){return FC(e)}function ik(e,t,i){var C=new Date(e);switch(j0(t)){case"year":case"month":C[Sr(i)](0);case"day":C[Br(i)](1);case"hour":C[Nr(i)](0);case"minute":C[kr(i)](0);case"second":C[Tr(i)](0),C[Ar(i)](0)}return C.getTime()}function Ck(e,t,i,C){var n=1e4,r=_r,o=0;function a(x,_,B,S,N,k,A){for(var O=new Date(_),D=_,T=O[S]();D1&&k===0&&B.unshift({value:B[0].value-D})}}for(var k=0;k=C[0]&&w<=C[1]&&h++)}var H=(C[1]-C[0])/t;if(h>H*1.5&&d>H/1.5||(s.push(v),h>H||e===r[u]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=n&&E1("Exceed safe limit.");for(var V=N1($(s,function(x){return N1(x,function(_){return _.value>=C[0]&&_.value<=C[1]&&!_.notAdd})}),function(x){return x.length>0}),Z=[],L=V.length-1,u=0;u0;)r*=10;var a=[I1(ok(C[0]/r)*r),I1(rk(C[1]/r)*r)];this._interval=r,this._niceExtent=a}},t.prototype.calcNiceExtent=function(i){M4.calcNiceExtent.call(this,i),this._fixMin=i.fixMin,this._fixMax=i.fixMax},t.prototype.parse=function(i){return i},t.prototype.contain=function(i){return i=T2(i)/T2(this.base),S5(i,this._extent)},t.prototype.normalize=function(i){return i=T2(i)/T2(this.base),B5(i,this._extent)},t.prototype.scale=function(i){return i=N5(i,this._extent),T5(this.base,i)},t.type="log",t}(Q2),dl=ce.prototype;dl.getMinorTicks=M4.getMinorTicks,dl.getLabel=M4.getLabel;function A5(e,t){return nk(e,n9(t))}Q2.registerClass(ce);var ak=function(){function e(t,i,C){this._prepareParams(t,i,C)}return e.prototype._prepareParams=function(t,i,C){C[1]0&&l>0&&!s&&(a=0),a<0&&l<0&&!c&&(l=0));var d=this._determinedMin,u=this._determinedMax;return d!=null&&(a=d,s=!0),u!=null&&(l=u,c=!0),{min:a,max:l,minFixed:s,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(t,i){process.env.NODE_ENV!=="production"&&t1(!this.frozen),this[sk[t]]=i},e.prototype.setDeterminedMinMax=function(t,i){var C=lk[t];process.env.NODE_ENV!=="production"&&t1(!this.frozen&&this[C]==null),this[C]=i},e.prototype.freeze=function(){this.frozen=!0},e}(),lk={min:"_determinedMin",max:"_determinedMax"},sk={min:"_dataMin",max:"_dataMax"};function ck(e,t,i){var C=e.rawExtentInfo;return C||(C=new ak(e,t,i),e.rawExtentInfo=C,C)}function D5(e,t){return t==null?null:v3(t)?NaN:e.parse(t)}function fl(e,t){var i=e.type,C=ck(e,t,e.getExtent()).calculate();e.setBlank(C.isBlank);var n=C.min,r=C.max,o=t.ecModel;if(o&&i==="time"){var a=ol("bar",o),l=!1;if(b(a,function(h){l=l||h.getBaseAxis()===t.axis}),l){var s=al(a),c=hk(n,r,t,s);n=c.min,r=c.max}}return{extent:[n,r],fixMin:C.minFixed,fixMax:C.maxFixed}}function hk(e,t,i,C){var n=i.axis.getExtent(),r=Math.abs(n[1]-n[0]),o=WN(C,i.axis);if(o===void 0)return{min:e,max:t};var a=1/0;b(o,function(u){a=Math.min(u.offset,a)});var l=-1/0;b(o,function(u){l=Math.max(u.offset+u.width,l)}),a=Math.abs(a),l=Math.abs(l);var s=a+l,c=t-e,h=1-(a+l)/r,d=c/h-c;return t+=d*(l/s),e-=d*(a/s),{min:e,max:t}}function gl(e,t){var i=t,C=fl(e,i),n=C.extent,r=i.get("splitNumber");e instanceof ce&&(e.base=i.get("logBase"));var o=e.type,a=i.get("interval"),l=o==="interval"||o==="time";e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:r,fixMin:C.fixMin,fixMax:C.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),a!=null&&e.setInterval&&e.setInterval(a)}function uk(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new le({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new cl({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Q2.getClass(t)||h3)}}function dk(e){var t=e.scale.getExtent(),i=t[0],C=t[1];return!(i>0&&C>0||i<0&&C<0)}function u3(e){var t=e.getLabelModel().get("formatter"),i=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(C){return function(n,r){return e.scale.getFormattedLabel(n,r,C)}}(t):U(t)?function(C){return function(n){var r=e.scale.getLabel(n),o=C.replace("{value}",r??"");return o}}(t):j(t)?function(C){return function(n,r){return i!=null&&(r=n.value-i),C(he(e,n),r,n.level!=null?{level:n.level}:null)}}(t):function(C){return e.scale.getLabel(C)}}function he(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function fk(e){var t=e.model,i=e.scale;if(!(!t.get(["axisLabel","show"])||i.isBlank())){var C,n,r=i.getExtent();i instanceof le?n=i.count():(C=i.getTicks(),n=C.length);var o=e.getLabelModel(),a=u3(e),l,s=1;n>40&&(s=Math.ceil(n/40));for(var c=0;c=0||(vl.push(e),j(e)&&(e={install:e}),e.install(mk))}var Z4=x1();function ml(e,t){var i=$(t,function(C){return e.scale.parse(C)});return e.type==="time"&&i.length>0&&(i.sort(),i.unshift(i[0]),i.push(i[i.length-1])),i}function wk(e){var t=e.getLabelModel().get("customValues");if(t){var i=u3(e),C=e.scale.getExtent(),n=ml(e,t),r=N1(n,function(o){return o>=C[0]&&o<=C[1]});return{labels:$(r,function(o){var a={value:o};return{formattedLabel:i(a),rawLabel:e.scale.getLabel(a),tickValue:o}})}}return e.type==="category"?Vk(e):Mk(e)}function Hk(e,t){var i=e.getTickModel().get("customValues");if(i){var C=e.scale.getExtent(),n=ml(e,i);return{ticks:N1(n,function(r){return r>=C[0]&&r<=C[1]})}}return e.type==="category"?Lk(e,t):{ticks:$(e.scale.getTicks(),function(r){return r.value})}}function Vk(e){var t=e.getLabelModel(),i=wl(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function wl(e,t){var i=Hl(e,"labels"),C=ue(t),n=Vl(i,C);if(n)return n;var r,o;return j(C)?r=Zl(e,C):(o=C==="auto"?Zk(e):C,r=Ml(e,o)),Ll(i,C,{labels:r,labelCategoryInterval:o})}function Lk(e,t){var i=Hl(e,"ticks"),C=ue(t),n=Vl(i,C);if(n)return n;var r,o;if((!t.get("show")||e.scale.isBlank())&&(r=[]),j(C))r=Zl(e,C,!0);else if(C==="auto"){var a=wl(e,e.getLabelModel());o=a.labelCategoryInterval,r=$(a.labels,function(l){return l.tickValue})}else o=C,r=Ml(e,o,!0);return Ll(i,C,{ticks:r,tickCategoryInterval:o})}function Mk(e){var t=e.scale.getTicks(),i=u3(e);return{labels:$(t,function(C,n){return{level:C.level,formattedLabel:i(C,n),rawLabel:e.scale.getLabel(C),tickValue:C.value}})}}function Hl(e,t){return Z4(e)[t]||(Z4(e)[t]=[])}function Vl(e,t){for(var i=0;i40&&(a=Math.max(1,Math.floor(o/40)));for(var l=r[0],s=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(s*Math.cos(C)),h=Math.abs(s*Math.sin(C)),d=0,u=0;l<=r[1];l+=a){var f=0,p=0,v=i7(i({value:l}),t.font,"center","top");f=v.width*1.3,p=v.height*1.3,d=Math.max(d,f,7),u=Math.max(u,p,7)}var m=d/c,w=u/h;isNaN(m)&&(m=1/0),isNaN(w)&&(w=1/0);var H=Math.max(0,Math.floor(Math.min(m,w))),V=Z4(e.model),Z=e.getExtent(),L=V.lastAutoInterval,M=V.lastTickCount;return L!=null&&M!=null&&Math.abs(L-H)<=1&&Math.abs(M-o)<=1&&L>H&&V.axisExtent0===Z[0]&&V.axisExtent1===Z[1]?H=L:(V.lastTickCount=o,V.lastAutoInterval=H,V.axisExtent0=Z[0],V.axisExtent1=Z[1]),H}function xk(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ml(e,t,i){var C=u3(e),n=e.scale,r=n.getExtent(),o=e.getLabelModel(),a=[],l=Math.max((t||0)+1,1),s=r[0],c=n.count();s!==0&&l>1&&c/l>2&&(s=Math.round(Math.ceil(s/l)*l));var h=pl(e),d=o.get("showMinLabel")||h,u=o.get("showMaxLabel")||h;d&&s!==r[0]&&p(r[0]);for(var f=s;f<=r[1];f+=l)p(f);u&&f-l!==r[1]&&p(r[1]);function p(v){var m={value:v};a.push(i?v:{formattedLabel:C(m),rawLabel:n.getLabel(m),tickValue:v})}return a}function Zl(e,t,i){var C=e.scale,n=u3(e),r=[];return b(C.getTicks(),function(o){var a=C.getLabel(o),l=o.value;t(o.value,a)&&r.push(i?l:{formattedLabel:n(o),rawLabel:a,tickValue:l})}),r}var yl=[0,1],_k=function(){function e(t,i,C){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=i,this._extent=C||[0,0]}return e.prototype.contain=function(t){var i=this._extent,C=Math.min(i[0],i[1]),n=Math.max(i[0],i[1]);return t>=C&&t<=n},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return mx(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,i){var C=this._extent;C[0]=t,C[1]=i},e.prototype.dataToCoord=function(t,i){var C=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(C=C.slice(),xl(C,n.count())),l7(t,yl,C,i)},e.prototype.coordToData=function(t,i){var C=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(C=C.slice(),xl(C,n.count()));var r=l7(t,C,yl,i);return this.scale.scale(r)},e.prototype.pointToData=function(t,i){},e.prototype.getTicksCoords=function(t){t=t||{};var i=t.tickModel||this.getTickModel(),C=Hk(this,i),n=C.ticks,r=$(n,function(a){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(a):a),tickValue:a}},this),o=i.get("alignWithLabel");return Ik(this,r,o,t.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),i=t.get("splitNumber");i>0&&i<100||(i=5);var C=this.scale.getMinorTicks(i),n=$(C,function(r){return $(r,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(){return wk(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,i=this.scale.getExtent(),C=i[1]-i[0]+(this.onBand?1:0);C===0&&(C=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/C},e.prototype.calculateCategoryInterval=function(){return yk(this)},e}();function xl(e,t){var i=e[1]-e[0],C=t,n=i/C/2;e[0]+=n,e[1]-=n}function Ik(e,t,i,C){var n=t.length;if(!e.onBand||i||!n)return;var r=e.getExtent(),o,a;if(n===1)t[0].coord=r[0],o=t[1]={coord:r[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,s=(t[n-1].coord-t[0].coord)/l;b(t,function(u){u.coord-=s/2});var c=e.scale.getExtent();a=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+s*a,tickValue:c[1]+1},t.push(o)}var h=r[0]>r[1];d(t[0].coord,r[0])&&(C?t[0].coord=r[0]:t.shift()),C&&d(r[0],t[0].coord)&&t.unshift({coord:r[0]}),d(r[1],o.coord)&&(C?o.coord=r[1]:t.pop()),C&&d(o.coord,r[1])&&t.push({coord:r[1]});function d(u,f){return u=I1(u),f=I1(f),h?u>f:u0){t=t/180*Math.PI,k9.fromArray(e[0]),L1.fromArray(e[1]),P1.fromArray(e[2]),Q.sub(T9,k9,L1),Q.sub(J2,P1,L1);var i=T9.len(),C=J2.len();if(!(i<.001||C<.001)){T9.scale(1/i),J2.scale(1/C);var n=T9.dot(J2),r=Math.cos(t);if(r1&&Q.copy(Q1,P1),Q1.toArray(e[1])}}}}function Sk(e,t,i){if(i<=180&&i>0){i=i/180*Math.PI,k9.fromArray(e[0]),L1.fromArray(e[1]),P1.fromArray(e[2]),Q.sub(T9,L1,k9),Q.sub(J2,P1,L1);var C=T9.len(),n=J2.len();if(!(C<.001||n<.001)){T9.scale(1/C),J2.scale(1/n);var r=T9.dot(t),o=Math.cos(i);if(r=l)Q.copy(Q1,P1);else{Q1.scaleAndAdd(J2,a/Math.tan(Math.PI/2-c));var h=P1.x!==L1.x?(Q1.x-L1.x)/(P1.x-L1.x):(Q1.y-L1.y)/(P1.y-L1.y);if(isNaN(h))return;h<0?Q.copy(Q1,L1):h>1&&Q.copy(Q1,P1)}Q1.toArray(e[1])}}}}function de(e,t,i,C){var n=i==="normal",r=n?e:e.ensureState(i);r.ignore=t;var o=C.get("smooth");o&&o===!0&&(o=.3),r.shape=r.shape||{},o>0&&(r.shape.smooth=o);var a=C.getModel("lineStyle").getLineStyle();n?e.useStyle(a):r.style=a}function Bk(e,t){var i=t.smooth,C=t.points;if(C)if(e.moveTo(C[0][0],C[0][1]),i>0&&C.length>=3){var n=d8(C[0],C[1]),r=d8(C[1],C[2]);if(!n||!r){e.lineTo(C[1][0],C[1][1]),e.lineTo(C[2][0],C[2][1]);return}var o=Math.min(n,r)*i,a=f8([],C[1],C[0],o/n),l=f8([],C[1],C[2],o/r),s=f8([],a,l,.5);e.bezierCurveTo(a[0],a[1],a[0],a[1],s[0],s[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],C[2][0],C[2][1])}else for(var c=1;c0){H(I*y,0,o);var x=I+L;x<0&&V(-x*y,1)}else V(-L*y,1)}}function H(L,M,y){L!==0&&(s=!0);for(var I=M;I0)for(var x=0;x0;x--){var N=y[x-1]*S;H(-N,x,o)}}}function Z(L){var M=L<0?-1:1;L=Math.abs(L);for(var y=Math.ceil(L/(o-1)),I=0;I0?H(y,0,I+1):H(-y,o-I-1,o),L-=y,L<=0)return}return s}function Dk(e,t,i,C){return Ak(e,"y","height",t,i)}function Pk(e){var t=[];e.sort(function(p,v){return v.priority-p.priority});var i=new m1(0,0,0,0);function C(p){if(!p.ignore){var v=p.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}p.ignore=!0}for(var n=0;n-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),C},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(N2);function fe(e,t){var i=e.mapDimensionsAll("defaultedLabel"),C=i.length;if(C===1){var n=e3(e,t,i[0]);return n!=null?n+"":null}else if(C){for(var r=[],o=0;o=0&&C.push(t[r])}return C.join(" ")}var ge=function(e){F(t,e);function t(i,C,n,r){var o=e.call(this)||this;return o.updateData(i,C,n,r),o}return t.prototype._createSymbol=function(i,C,n,r,o){this.removeAll();var a=r3(i,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=Ok,this._symbolType=i,this.add(a)},t.prototype.stopSymbolAnimation=function(i){this.childAt(0).stopAnimation(null,i)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){B6(this.childAt(0))},t.prototype.downplay=function(){N6(this.childAt(0))},t.prototype.setZ=function(i,C){var n=this.childAt(0);n.zlevel=i,n.z=C},t.prototype.setDraggable=function(i,C){var n=this.childAt(0);n.draggable=i,n.cursor=!C&&i?"move":n.cursor},t.prototype.updateData=function(i,C,n,r){this.silent=!1;var o=i.getItemVisual(C,"symbol")||"circle",a=i.hostModel,l=t.getSymbolSize(i,C),s=o!==this._symbolType,c=r&&r.disableAnimation;if(s){var h=i.getItemVisual(C,"symbolKeepAspect");this._createSymbol(o,i,C,l,h)}else{var d=this.childAt(0);d.silent=!1;var u={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(u):K1(d,u,a,C),X7(d)}if(this._updateCommon(i,C,l,n,r),s){var d=this.childAt(0);if(!c){var u={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,w2(d,u,a,C)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(i,C,n,r,o){var a=this.childAt(0),l=i.hostModel,s,c,h,d,u,f,p,v,m;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,h=r.selectItemStyle,d=r.focus,u=r.blurScope,p=r.labelStatesModels,v=r.hoverScale,m=r.cursorStyle,f=r.emphasisDisabled),!r||i.hasItemOption){var w=r&&r.itemModel?r.itemModel:i.getItemModel(C),H=w.getModel("emphasis");s=H.getModel("itemStyle").getItemStyle(),h=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=H.get("focus"),u=H.get("blurScope"),f=H.get("disabled"),p=K3(w),v=H.getShallow("scale"),m=w.getShallow("cursor")}var V=i.getItemVisual(C,"symbolRotate");a.attr("rotation",(V||0)*Math.PI/180||0);var Z=ea(i.getItemVisual(C,"symbolOffset"),n);Z&&(a.x=Z[0],a.y=Z[1]),m&&a.attr("cursor",m);var L=i.getItemVisual(C,"style"),M=L.fill;if(a instanceof X2){var y=a.style;a.useStyle(P({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},L))}else a.__isEmptyBrush?a.useStyle(P({},L)):a.useStyle(L),a.style.decal=null,a.setColor(M,o&&o.symbolInnerColor),a.style.strokeNoScale=!0;var I=i.getItemVisual(C,"liftZ"),x=this._z2;I!=null?x==null&&(this._z2=a.z2,a.z2+=I):x!=null&&(a.z2=x,this._z2=null);var _=o&&o.useNameLabel;j3(a,p,{labelFetcher:l,labelDataIndex:C,defaultText:B,inheritColor:M,defaultOpacity:L.opacity});function B(k){return _?i.getName(k):fe(i,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var S=a.ensureState("emphasis");S.style=s,a.ensureState("select").style=h,a.ensureState("blur").style=c;var N=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;S.scaleX=this._sizeX*N,S.scaleY=this._sizeY*N,this.setSymbolScale(1),$3(this,d,u,f)},t.prototype.setSymbolScale=function(i){this.scaleX=this.scaleY=i},t.prototype.fadeOut=function(i,C,n){var r=this.childAt(0),o=l1(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var l=r.getTextContent();l&&z6(l,{style:{opacity:0}},C,{dataIndex:o,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();z6(r,{style:{opacity:0},scaleX:0,scaleY:0},C,{dataIndex:o,cb:i,removeOpt:a})},t.getSymbolSize=function(i,C){return MB(i.getItemVisual(C,"symbolSize"))},t}(A1);function Ok(e,t){this.parent.drift(e,t)}function pe(e,t,i,C){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(C.isIgnore&&C.isIgnore(i))&&!(C.clipShape&&!C.clipShape.contain(t[0],t[1]))&&e.getItemVisual(i,"symbol")!=="none"}function bl(e){return e!=null&&!Y(e)&&(e={isIgnore:e}),e||{}}function Sl(e){var t=e.hostModel,i=t.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:K3(t),cursorStyle:t.get("cursor")}}var Fk=function(){function e(t){this.group=new A1,this._SymbolCtor=t||ge}return e.prototype.updateData=function(t,i){this._progressiveEls=null,i=bl(i);var C=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=i.disableAnimation,l=Sl(t),s={disableAnimation:a},c=i.getSymbolPoint||function(h){return t.getItemLayout(h)};r||C.removeAll(),t.diff(r).add(function(h){var d=c(h);if(pe(t,d,h,i)){var u=new o(t,h,l,s);u.setPosition(d),t.setItemGraphicEl(h,u),C.add(u)}}).update(function(h,d){var u=r.getItemGraphicEl(d),f=c(h);if(!pe(t,f,h,i)){C.remove(u);return}var p=t.getItemVisual(h,"symbol")||"circle",v=u&&u.getSymbolType&&u.getSymbolType();if(!u||v&&v!==p)C.remove(u),u=new o(t,h,l,s),u.setPosition(f);else{u.updateData(t,h,l,s);var m={x:f[0],y:f[1]};a?u.attr(m):K1(u,m,n)}C.add(u),t.setItemGraphicEl(h,u)}).remove(function(h){var d=r.getItemGraphicEl(h);d&&d.fadeOut(function(){C.remove(d)},n)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,i=this._data;i&&i.eachItemGraphicEl(function(C,n){var r=t._getSymbolPoint(n);C.setPosition(r),C.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sl(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,i,C){this._progressiveEls=[],C=bl(C);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=t.start;r0?i=C[0]:C[1]<0&&(i=C[1]),i}function Nl(e,t,i,C){var n=NaN;e.stacked&&(n=i.get(i.getCalculationInfo("stackedOverDimension"),C)),isNaN(n)&&(n=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=i.get(e.baseDim,C),o[1-r]=n,t.dataToPoint(o)}function zk(e,t){var i=[];return t.diff(e).add(function(C){i.push({cmd:"+",idx:C})}).update(function(C,n){i.push({cmd:"=",idx:n,idx1:C})}).remove(function(C){i.push({cmd:"-",idx:C})}).execute(),i}function $k(e,t,i,C,n,r,o,a){for(var l=zk(e,t),s=[],c=[],h=[],d=[],u=[],f=[],p=[],v=Bl(n,t,o),m=e.getLayout("points")||[],w=t.getLayout("points")||[],H=0;H=n||p<0)break;if(w0(m,w)){if(l){p+=r;continue}break}if(p===i)e[r>0?"moveTo":"lineTo"](m,w),h=m,d=w;else{var H=m-s,V=w-c;if(H*H+V*V<.5){p+=r;continue}if(o>0){for(var Z=p+r,L=t[Z*2],M=t[Z*2+1];L===m&&M===w&&v=C||w0(L,M))u=m,f=w;else{x=L-s,_=M-c;var N=m-s,k=L-m,A=w-c,O=M-w,D=void 0,T=void 0;if(a==="x"){D=Math.abs(N),T=Math.abs(k);var E=x>0?1:-1;u=m-E*D*o,f=w,B=m+E*T*o,S=w}else if(a==="y"){D=Math.abs(A),T=Math.abs(O);var z=_>0?1:-1;u=m,f=w-z*D*o,B=m,S=w+z*T*o}else D=Math.sqrt(N*N+A*A),T=Math.sqrt(k*k+O*O),I=T/(T+D),u=m-x*o*(1-I),f=w-_*o*(1-I),B=m+x*o*I,S=w+_*o*I,B=A9(B,D9(L,m)),S=A9(S,D9(M,w)),B=D9(B,A9(L,m)),S=D9(S,A9(M,w)),x=B-m,_=S-w,u=m-x*D/T,f=w-_*D/T,u=A9(u,D9(s,m)),f=A9(f,D9(c,w)),u=D9(u,A9(s,m)),f=D9(f,A9(c,w)),x=m-u,_=w-f,B=m+x*T/D,S=w+_*T/D}e.bezierCurveTo(h,d,u,f,m,w),h=B,d=S}else e.lineTo(m,w)}s=m,c=w,p+=r}return v}var kl=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Gk=function(e){F(t,e);function t(i){var C=e.call(this,i)||this;return C.type="ec-polyline",C}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kl},t.prototype.buildPath=function(i,C){var n=C.points,r=0,o=n.length/2;if(C.connectNulls){for(;o>0&&w0(n[o*2-2],n[o*2-1]);o--);for(;r=0){var V=s?(f-l)*H+l:(u-a)*H+a;return s?[i,V]:[V,i]}a=u,l=f;break;case o.C:u=r[h++],f=r[h++],p=r[h++],v=r[h++],m=r[h++],w=r[h++];var Z=s?W4(a,u,p,m,i,c):W4(l,f,v,w,i,c);if(Z>0)for(var L=0;L=0){var V=s?T1(l,f,v,w,M):T1(a,u,p,m,M);return s?[i,V]:[V,i]}}a=m,l=w;break}}},t}(h1),Uk=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(kl),Wk=function(e){F(t,e);function t(i){var C=e.call(this,i)||this;return C.type="ec-polygon",C}return t.prototype.getDefaultShape=function(){return new Uk},t.prototype.buildPath=function(i,C){var n=C.points,r=C.stackedOnPoints,o=0,a=n.length/2,l=C.smoothMonotone;if(C.connectNulls){for(;a>0&&w0(n[a*2-2],n[a*2-1]);a--);for(;ot){r?i.push(o(r,l,t)):n&&i.push(o(n,l,0),o(n,l,t));break}else n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}return i}function jk(e,t,i){var C=e.getVisual("visualMeta");if(!(!C||!C.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var n,r,o=C.length-1;o>=0;o--){var a=e.getDimensionInfo(C[o].dimension);if(n=a&&a.coordDim,n==="x"||n==="y"){r=C[o];break}}if(!r){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(n),s=$(r.stops,function(H){return{coord:l.toGlobalCoord(l.dataToCoord(H.value)),color:H.color}}),c=s.length,h=r.outerColors.slice();c&&s[0].coord>s[c-1].coord&&(s.reverse(),h.reverse());var d=qk(s,n==="x"?i.getWidth():i.getHeight()),u=d.length;if(!u&&c)return s[0].coord<0?h[1]?h[1]:s[c-1].color:h[0]?h[0]:s[0].color;var f=10,p=d[0].coord-f,v=d[u-1].coord+f,m=v-p;if(m<.001)return"transparent";b(d,function(H){H.offset=(H.coord-p)/m}),d.push({offset:u?d[u-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:u?d[0].offset:.5,color:h[0]||"transparent"});var w=new rr(0,0,0,0,d,!0);return w[n]=p,w[n+"2"]=v,w}}function Kk(e,t,i){var C=e.get("showAllSymbol"),n=C==="auto";if(!(C&&!n)){var r=i.getAxesByScale("ordinal")[0];if(r&&!(n&&Qk(r,t))){var o=t.mapDimension(r.dim),a={};return b(r.getViewLabels(),function(l){var s=r.scale.getRawOrdinalNumber(l.tickValue);a[s]=1}),function(l){return!a.hasOwnProperty(t.get(o,l))}}}}function Qk(e,t){var i=e.getExtent(),C=Math.abs(i[1]-i[0])/e.scale.count();isNaN(C)&&(C=0);for(var n=t.count(),r=Math.max(1,Math.round(n/5)),o=0;oC)return!1;return!0}function Jk(e,t){return isNaN(e)||isNaN(t)}function tT(e){for(var t=e.length/2;t>0&&Jk(e[t*2-2],e[t*2-1]);t--);return t-1}function Fl(e,t){return[e[t*2],e[t*2+1]]}function eT(e,t,i){for(var C=e.length/2,n=i==="x"?0:1,r,o,a=0,l=-1,s=0;s=t||r>=t&&o<=t){l=s;break}a=s,r=o}return{range:[a,l],t:(t-r)/(o-r)}}function Rl(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&i.get(["emphasis","lineStyle","width"])==="bolder"){var T=f.getState("emphasis").style;T.lineWidth=+f.style.lineWidth+1}l1(f).seriesIndex=i.seriesIndex,$3(f,A,O,D);var E=Ol(i.get("smooth")),z=i.get("smoothMonotone");if(f.setShape({smooth:E,smoothMonotone:z,connectNulls:M}),p){var G=a.getCalculationInfo("stackedOnSeries"),J=0;p.useStyle(s1(s.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),G&&(J=Ol(G.get("smooth"))),p.setShape({smooth:E,stackedOnSmooth:J,smoothMonotone:z,connectNulls:M}),k6(p,i,"areaStyle"),l1(p).seriesIndex=i.seriesIndex,$3(p,A,O,D)}var C1=this._changePolyState;a.eachItemGraphicEl(function(d1){d1&&(d1.onHoverStateChange=C1)}),this._polyline.onHoverStateChange=C1,this._data=a,this._coordSys=r,this._stackedOnPoints=Z,this._points=c,this._step=x,this._valueOrigin=H,i.get("triggerLineEvent")&&(this.packEventData(i,f),p&&this.packEventData(i,p))},t.prototype.packEventData=function(i,C){l1(C).eventData={componentType:"series",componentSubType:"line",componentIndex:i.componentIndex,seriesIndex:i.seriesIndex,seriesName:i.name,seriesType:"line"}},t.prototype.highlight=function(i,C,n,r){var o=i.getData(),a=K9(o,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&a!=null&&a>=0){var l=o.getLayout("points"),s=o.getItemGraphicEl(a);if(!s){var c=l[a*2],h=l[a*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var d=i.get("zlevel")||0,u=i.get("z")||0;s=new ge(o,a),s.x=c,s.y=h,s.setZ(d,u);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=d,f.z=u,f.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Z2.prototype.highlight.call(this,i,C,n,r)},t.prototype.downplay=function(i,C,n,r){var o=i.getData(),a=K9(o,r);if(this._changePolyState("normal"),a!=null&&a>=0){var l=o.getItemGraphicEl(a);l&&(l.__temp?(o.setItemGraphicEl(a,null),this.group.remove(l)):l.downplay())}else Z2.prototype.downplay.call(this,i,C,n,r)},t.prototype._changePolyState=function(i){var C=this._polygon;Tn(this._polyline,i),C&&Tn(C,i)},t.prototype._newPolyline=function(i){var C=this._polyline;return C&&this._lineGroup.remove(C),C=new Gk({shape:{points:i},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(C),this._polyline=C,C},t.prototype._newPolygon=function(i,C){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Wk({shape:{points:i,stackedOnPoints:C},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(i,C,n){var r,o,a=C.getBaseAxis(),l=a.inverse;C.type==="cartesian2d"?(r=a.isHorizontal(),o=!1):C.type==="polar"&&(r=a.dim==="angle",o=!0);var s=i.hostModel,c=s.get("animationDuration");j(c)&&(c=c(null));var h=s.get("animationDelay")||0,d=j(h)?h(null):h;i.eachItemGraphicEl(function(u,f){var p=u;if(p){var v=[u.x,u.y],m=void 0,w=void 0,H=void 0;if(n)if(o){var V=n,Z=C.pointToCoord(v);r?(m=V.startAngle,w=V.endAngle,H=-Z[1]/180*Math.PI):(m=V.r0,w=V.r,H=Z[0])}else{var L=n;r?(m=L.x,w=L.x+L.width,H=u.x):(m=L.y+L.height,w=L.y,H=u.y)}var M=w===m?0:(H-m)/(w-m);l&&(M=1-M);var y=j(h)?h(f):c*M+d,I=p.getSymbolPath(),x=I.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(i,C,n){var r=i.getModel("endLabel");if(Rl(i)){var o=i.getData(),a=this._polyline,l=o.getLayout("points");if(!l){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new j1({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=tT(l);c>=0&&(j3(a,K3(i,"endLabel"),{inheritColor:n,labelFetcher:i,labelDataIndex:c,defaultText:function(h,d,u){return u!=null?Il(o,u):fe(o,h)},enableTextSetter:!0},iT(r,C)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(i,C,n,r,o,a,l){var s=this._endLabel,c=this._polyline;if(s){i<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var h=n.getLayout("points"),d=n.hostModel,u=d.get("connectNulls"),f=a.get("precision"),p=a.get("distance")||0,v=l.getBaseAxis(),m=v.isHorizontal(),w=v.inverse,H=C.shape,V=w?m?H.x:H.y+H.height:m?H.x+H.width:H.y,Z=(m?p:0)*(w?-1:1),L=(m?0:-p)*(w?-1:1),M=m?"x":"y",y=eT(h,V,M),I=y.range,x=I[1]-I[0],_=void 0;if(x>=1){if(x>1&&!u){var B=Fl(h,I[0]);s.attr({x:B[0]+Z,y:B[1]+L}),o&&(_=d.getRawValue(I[0]))}else{var B=c.getPointOn(V,M);B&&s.attr({x:B[0]+Z,y:B[1]+L});var S=d.getRawValue(I[0]),N=d.getRawValue(I[1]);o&&(_=Rx(n,f,S,N,y.t))}r.lastFrameIndex=I[0]}else{var k=i===1||r.lastFrameIndex>0?I[0]:0,B=Fl(h,k);o&&(_=d.getRawValue(k)),s.attr({x:B[0]+Z,y:B[1]+L})}if(o){var A=q6(s);typeof A.setLabelText=="function"&&A.setLabelText(_)}}},t.prototype._doUpdateAnimation=function(i,C,n,r,o,a,l){var s=this._polyline,c=this._polygon,h=i.hostModel,d=$k(this._data,i,this._stackedOnPoints,C,this._coordSys,n,this._valueOrigin),u=d.current,f=d.stackedOnCurrent,p=d.next,v=d.stackedOnNext;if(o&&(f=P9(d.stackedOnCurrent,d.current,n,o,l),u=P9(d.current,null,n,o,l),v=P9(d.stackedOnNext,d.next,n,o,l),p=P9(d.next,null,n,o,l)),El(u,p)>3e3||c&&El(f,v)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:v}));return}s.shape.__points=d.current,s.shape.points=u;var m={shape:{points:p}};d.current!==u&&(m.shape.__points=d.next),s.stopAnimation(),K1(s,m,h),c&&(c.setShape({points:u,stackedOnPoints:f}),c.stopAnimation(),K1(c,{shape:{stackedOnPoints:v}},h),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var w=[],H=d.status,V=0;Vt&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i10&&o.type==="cartesian2d"&&r){var l=o.getBaseAxis(),s=o.getOtherAxis(l),c=l.getExtent(),h=C.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),u=Math.round(a/d);if(isFinite(u)&&u>1){r==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(s.dim),1/u)):r==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(s.dim),1/u));var f=void 0;U(r)?f=rT[r]:j(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(s.dim),1/u,f,oT))}}}}}function aT(e){e.registerChartView(CT),e.registerSeriesModel(Ek),e.registerLayout(nT("line")),e.registerVisual({seriesType:"line",reset:function(t){var i=t.getData(),C=t.getModel("lineStyle").getLineStyle();C&&!C.stroke&&(C.stroke=i.getVisual("style").fill),i.setVisual("legendLineStyle",C)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,zl("line"))}var He=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i}return t.prototype.getInitialData=function(i,C){return ne(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(i,C,n){var r=this.coordinateSystem;if(r&&r.clampData){var o=r.clampData(i),a=r.dataToPoint(o);if(n)b(r.getAxes(),function(d,u){if(d.type==="category"&&C!=null){var f=d.getTicksCoords(),p=d.getTickModel().get("alignWithLabel"),v=o[u],m=C[u]==="x1"||C[u]==="y1";if(m&&!p&&(v+=1),f.length<2)return;if(f.length===2){a[u]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var w=void 0,H=void 0,V=1,Z=0;Zv){H=(L+w)/2;break}Z===1&&(V=M-f[0].tickValue)}H==null&&(w?w&&(H=f[f.length-1].coord):H=f[0].coord),a[u]=d.toGlobalCoord(H)}});else{var l=this.getData(),s=l.getLayout("offset"),c=l.getLayout("size"),h=r.getBaseAxis().isHorizontal()?0:1;a[h]+=s+c/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(N2);N2.registerClass(He);var lT=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i}return t.prototype.getInitialData=function(){return ne(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var i=this.get("progressiveThreshold"),C=this.get("largeThreshold");return C>i&&(i=C),i},t.prototype.brushSelector=function(i,C,n){return n.rect(C.getItemLayout(i))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Lr(He.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(He),sT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),$l=function(e){F(t,e);function t(i){var C=e.call(this,i)||this;return C.type="sausage",C}return t.prototype.getDefaultShape=function(){return new sT},t.prototype.buildPath=function(i,C){var n=C.cx,r=C.cy,o=Math.max(C.r0||0,0),a=Math.max(C.r,0),l=(a-o)*.5,s=o+l,c=C.startAngle,h=C.endAngle,d=C.clockwise,u=Math.PI*2,f=d?h-cMath.PI/2&&ca)return!0;a=h}return!1},t.prototype._isOrderDifferentInView=function(i,C){for(var n=C.scale,r=n.getExtent(),o=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o<=a;++o)if(i.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(i,C,n,r){if(this._isOrderChangedWithinSameData(i,C,n)){var o=this._dataSort(i,n,C);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(i,C,n){var r=C.baseAxis,o=this._dataSort(i,r,function(a){return i.get(i.mapDimension(C.otherAxis.dim),a)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:o})},t.prototype.remove=function(i,C){this._clear(this._model),this._removeOnRenderedListener(C)},t.prototype.dispose=function(i,C){this._removeOnRenderedListener(C)},t.prototype._removeOnRenderedListener=function(i){this._onRendered&&(i.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(i){var C=this.group,n=this._data;i&&i.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(r){$6(r,i,l1(r).dataIndex)})):C.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Z2),Gl={cartesian2d:function(e,t){var i=t.width<0?-1:1,C=t.height<0?-1:1;i<0&&(t.x+=t.width,t.width=-t.width),C<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,r=e.y+e.height,o=Ve(t.x,e.x),a=Le(t.x+t.width,n),l=Ve(t.y,e.y),s=Le(t.y+t.height,r),c=an?a:o,t.y=h&&l>r?s:l,t.width=c?0:a-o,t.height=h?0:s-l,i<0&&(t.x+=t.width,t.width=-t.width),C<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var i=t.r0<=t.r?1:-1;if(i<0){var C=t.r;t.r=t.r0,t.r0=C}var n=Le(t.r,e.r),r=Ve(t.r0,e.r0);t.r=n,t.r0=r;var o=n-r<0;if(i<0){var C=t.r;t.r=t.r0,t.r0=C}return o}},Ul={cartesian2d:function(e,t,i,C,n,r,o,a,l){var s=new S1({shape:P({},C),z2:1});if(s.__dataIndex=i,s.name="item",r){var c=s.shape,h=n?"height":"width";c[h]=0}return s},polar:function(e,t,i,C,n,r,o,a,l){var s=!n&&l?$l:x9,c=new s({shape:C,z2:1});c.name="item";var h=ql(n);if(c.calculateTextPosition=cT(h,{isRoundCap:s===$l}),r){var d=c.shape,u=n?"r":"endAngle",f={};d[u]=n?C.r0:C.startAngle,f[u]=C[u],(a?K1:w2)(c,{shape:f},r)}return c}};function fT(e,t){var i=e.get("realtimeSort",!0),C=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&i&&(C.type!=="category"&&E1("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&E1("`realtimeSort` will not work because this bar series is not on cartesian2d.")),i&&C.type==="category"&&t.type==="cartesian2d")return{baseAxis:C,otherAxis:t.getOtherAxis(C)}}function Wl(e,t,i,C,n,r,o,a){var l,s;r?(s={x:C.x,width:C.width},l={y:C.y,height:C.height}):(s={y:C.y,height:C.height},l={x:C.x,width:C.width}),a||(o?K1:w2)(i,{shape:l},t,n,null);var c=t?e.baseAxis.model:null;(o?K1:w2)(i,{shape:s},c,n)}function Yl(e,t){for(var i=0;i0?1:-1,o=C.height>0?1:-1;return{x:C.x+r*n/2,y:C.y+o*n/2,width:C.width-r*n,height:C.height-o*n}},polar:function(e,t,i){var C=e.getItemLayout(t);return{cx:C.cx,cy:C.cy,r0:C.r0,r:C.r,startAngle:C.startAngle,endAngle:C.endAngle,clockwise:C.clockwise}}};function vT(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function ql(e){return function(t){var i=t?"Arc":"Angle";return function(C){switch(C){case"start":case"insideStart":case"end":case"insideEnd":return C+i;default:return C}}}(e)}function jl(e,t,i,C,n,r,o,a){var l=t.getItemVisual(i,"style");if(a){if(!r.get("roundCap")){var c=e.shape,h=y4(C.getModel("itemStyle"),c,!0);P(c,h),e.setShape(c)}}else{var s=C.get(["itemStyle","borderRadius"])||0;e.setShape("r",s)}e.useStyle(l);var d=C.getShallow("cursor");d&&e.attr("cursor",d);var u=a?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=K3(C);j3(e,f,{labelFetcher:r,labelDataIndex:i,defaultText:fe(r.getData(),i),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var p=e.getTextContent();if(a&&p){var v=C.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,hT(e,v==="outside"?u:v,ql(o),C.get(["label","rotate"]))}QI(p,f,r.getRawValue(i),function(w){return Il(t,w)});var m=C.getModel(["emphasis"]);$3(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),k6(e,C),vT(n)&&(e.style.fill="none",e.style.stroke="none",b(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function mT(e,t){var i=e.get(["itemStyle","borderColor"]);if(!i||i==="none")return 0;var C=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(C,n,r)}var wT=function(){function e(){}return e}(),Kl=function(e){F(t,e);function t(i){var C=e.call(this,i)||this;return C.type="largeBar",C}return t.prototype.getDefaultShape=function(){return new wT},t.prototype.buildPath=function(i,C){for(var n=C.points,r=this.baseDimIdx,o=1-this.baseDimIdx,a=[],l=[],s=this.barWidth,c=0;c=0?i:null},30,!1);function HT(e,t,i){for(var C=e.baseDimIdx,n=1-C,r=e.shape.points,o=e.largeDataIndices,a=[],l=[],s=e.barWidth,c=0,h=r.length/3;c=a[0]&&t<=a[0]+l[0]&&i>=a[1]&&i<=a[1]+l[1])return o[c]}return-1}function ts(e,t,i){if(me(i,"cartesian2d")){var C=t,n=i.getArea();return{x:e?C.x:n.x,y:e?n.y:C.y,width:e?C.width:n.width,height:e?n.height:C.height}}else{var n=i.getArea(),r=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:r.r0,r:e?n.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:Math.PI*2}}}function VT(e,t,i){var C=e.type==="polar"?x9:S1;return new C({shape:ts(t,i,e),silent:!0,z2:0})}function LT(e){e.registerChartView(dT),e.registerSeriesModel(lT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,y1(YN,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,XN("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,zl("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,i){var C=t.componentType||"series";i.eachComponent({mainType:C,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var es=Math.PI*2,R5=Math.PI/180;function is(e,t){return i4(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Cs(e,t){var i=is(e,t),C=e.get("center"),n=e.get("radius");R(n)||(n=[0,n]);var r=w1(i.width,t.getWidth()),o=w1(i.height,t.getHeight()),a=Math.min(r,o),l=w1(n[0],a/2),s=w1(n[1],a/2),c,h,d=e.coordinateSystem;if(d){var u=d.dataToPoint(C);c=u[0]||0,h=u[1]||0}else R(C)||(C=[C,C]),c=w1(C[0],r)+i.x,h=w1(C[1],o)+i.y;return{cx:c,cy:h,r0:l,r:s}}function MT(e,t,i){t.eachSeriesByType(e,function(C){var n=C.getData(),r=n.mapDimension("value"),o=is(C,i),a=Cs(C,i),l=a.cx,s=a.cy,c=a.r,h=a.r0,d=-C.get("startAngle")*R5,u=C.get("endAngle"),f=C.get("padAngle")*R5;u=u==="auto"?d-es:-u*R5;var p=C.get("minAngle")*R5,v=p+f,m=0;n.each(r,function(O){!isNaN(O)&&m++});var w=n.getSum(r),H=Math.PI/(w||m)*2,V=C.get("clockwise"),Z=C.get("roseType"),L=C.get("stillShowZeroSum"),M=n.getDataExtent(r);M[0]=0;var y=V?1:-1,I=[d,u],x=y*f/2;hn(I,!V),d=I[0],u=I[1];var _=ns(C);_.startAngle=d,_.endAngle=u,_.clockwise=V;var B=Math.abs(u-d),S=B,N=0,k=d;if(n.setLayout({viewRect:o,r:c}),n.each(r,function(O,D){var T;if(isNaN(O)){n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:V,cx:l,cy:s,r0:h,r:Z?NaN:c});return}Z!=="area"?T=w===0&&L?H:O*H:T=B/m,TT?(z=k+y*T/2,G=z):(z=k+x,G=E-x),n.setItemLayout(D,{angle:T,startAngle:z,endAngle:G,clockwise:V,cx:l,cy:s,r0:h,r:Z?l7(O,M,[h,c]):c}),k=E}),Si?m:v,Z=Math.abs(H.label.y-i);if(Z>=V.maxY){var L=H.label.x-t-H.len2*n,M=C+H.len,y=Math.abs(L)e.unconstrainedWidth?null:u:null;C.setStyle("width",f)}var p=C.getBoundingRect();r.width=p.width;var v=(C.style.margin||0)+2.1;r.height=p.height+v,r.y-=(r.height-h)/2}}}function Me(e){return e.position==="center"}function _T(e){var t=e.getData(),i=[],C,n,r=!1,o=(e.get("minShowLabelAngle")||0)*yT,a=t.getLayout("viewRect"),l=t.getLayout("r"),s=a.width,c=a.x,h=a.y,d=a.height;function u(L){L.ignore=!0}function f(L){if(!L.ignore)return!0;for(var M in L.states)if(L.states[M].ignore===!1)return!0;return!1}t.each(function(L){var M=t.getItemGraphicEl(L),y=M.shape,I=M.getTextContent(),x=M.getTextGuideLine(),_=t.getItemModel(L),B=_.getModel("label"),S=B.get("position")||_.get(["emphasis","label","position"]),N=B.get("distanceToLabelLine"),k=B.get("alignTo"),A=w1(B.get("edgeDistance"),s),O=B.get("bleedMargin"),D=_.getModel("labelLine"),T=D.get("length");T=w1(T,s);var E=D.get("length2");if(E=w1(E,s),Math.abs(y.endAngle-y.startAngle)0?"right":"left":G>0?"left":"right"}var A2=Math.PI,l2=0,d9=B.get("rotate");if(f1(d9))l2=d9*(A2/180);else if(S==="center")l2=0;else if(d9==="radial"||d9===!0){var g3=G<0?-z+A2:-z;l2=g3}else if(d9==="tangential"&&S!=="outside"&&S!=="outer"){var D2=Math.atan2(G,J);D2<0&&(D2=A2*2+D2);var W5=J>0;W5&&(D2=A2+D2),l2=D2-A2}if(r=!!l2,I.x=C1,I.y=d1,I.rotation=l2,I.setStyle({verticalAlign:"middle"}),k1){I.setStyle({align:o2});var ri=I.states.select;ri&&(ri.x+=I.x,ri.y+=I.y)}else{var R9=I.getBoundingRect().clone();R9.applyTransform(I.getComputedTransform());var jc=(I.style.margin||0)+2.1;R9.y-=jc/2,R9.height+=jc,i.push({label:I,labelLine:x,position:S,len:T,len2:E,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new Q(G,J),linePoints:G1,textAlign:o2,labelDistance:N,labelAlignTo:k,edgeDistance:A,bleedMargin:O,rect:R9,unconstrainedWidth:R9.width,labelStyleWidth:I.style.width})}M.setTextConfig({inside:k1})}}),!r&&e.get("avoidLabelOverlap")&&xT(i,C,n,l,s,d,c,h);for(var p=0;p0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=r.r0}},t.type="pie",t}(Z2);function ST(e,t,i){t=R(t)&&{coordDimensions:t}||P({encodeDefine:e.getEncode()},t);var C=e.getSource(),n=el(C,t).dimensions,r=new tl(n,e);return r.initData(C,i),r}var BT=function(){function e(t,i){this._getDataWithEncodedVisual=t,this._getRawData=i}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var i=this._getRawData();return i.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var i=this._getDataWithEncodedVisual();return i.indexOfName(t)},e.prototype.getItemVisual=function(t,i){var C=this._getDataWithEncodedVisual();return C.getItemVisual(t,i)},e}(),NT=x1(),kT=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(i){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new BT(v1(this.getData,this),v1(this.getRawData,this)),this._defaultLabelLine(i)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ST(this,{coordDimensions:["value"],encodeDefaulter:y1(yb,this)})},t.prototype.getDataParams=function(i){var C=this.getData(),n=NT(C),r=n.seats;if(!r){var o=[];C.each(C.mapDimension("value"),function(l){o.push(l)}),r=n.seats=Hx(o,C.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,i);return a.percent=r[i]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(i){c7(i,"labelLine",["show"]);var C=i.labelLine,n=i.emphasis.labelLine;C.show=C.show&&i.label.show,n.show=n.show&&i.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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"},t}(N2);function TT(e){return{seriesType:e,reset:function(t,i){var C=t.getData();C.filterSelf(function(n){var r=C.mapDimension("value"),o=C.get(r,n);return!(f1(o)&&!isNaN(o)&&o<0)})}}}function AT(e){e.registerChartView(bT),e.registerSeriesModel(kT),cB("pie",e.registerAction),e.registerLayout(y1(MT,"pie")),e.registerProcessor(ZT("pie")),e.registerProcessor(TT("pie"))}var DT=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(u1),Ze=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",I2).models[0]},t.type="cartesian2dAxis",t}(u1);P2(Ze,vk);var as={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},PT=p1({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},as),ye=p1({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},as),ET=p1({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ye),OT=s1({logBase:10},ye);const FT={category:PT,value:ye,time:ET,log:OT};var RT={value:1,category:1,time:1,log:1};function ls(e,t,i,C){b(RT,function(n,r){var o=p1(p1({},FT[r],!0),C,!0),a=function(l){F(s,l);function s(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+r,c}return s.prototype.mergeDefaultAndTheme=function(c,h){var d=C4(this),u=d?l5(c):{},f=h.getTheme();p1(c,f.get(r+"Axis")),p1(c,this.getDefaultOption()),c.type=ss(c),d&&Q0(c,u,d)},s.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=re.createByAxisModel(this))},s.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},s.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},s.type=t+"Axis."+r,s.defaultOption=o,s}(i);e.registerComponentModel(a)}),e.registerSubTypeDefaulter(t+"Axis",ss)}function ss(e){return e.type||(e.data?"category":"value")}var zT=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),N1(this.getAxes(),function(i){return i.scale.type===t})},e.prototype.addAxis=function(t){var i=t.dim;this._axes[i]=t,this._dimList.push(i)},e}(),xe=["x","y"];function cs(e){return e.type==="interval"||e.type==="time"}var $T=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type="cartesian2d",i.dimensions=xe,i}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var i=this.getAxis("x").scale,C=this.getAxis("y").scale;if(!(!cs(i)||!cs(C))){var n=i.getExtent(),r=C.getExtent(),o=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),l=n[1]-n[0],s=r[1]-r[0];if(!(!l||!s)){var c=(a[0]-o[0])/l,h=(a[1]-o[1])/s,d=o[0]-n[0]*c,u=o[1]-r[0]*h,f=this._transform=[c,0,0,h,d,u];this._invTransform=y8([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(i){var C=this.getAxis("x"),n=this.getAxis("y");return C.contain(C.toLocalCoord(i[0]))&&n.contain(n.toLocalCoord(i[1]))},t.prototype.containData=function(i){return this.getAxis("x").containData(i[0])&&this.getAxis("y").containData(i[1])},t.prototype.containZone=function(i,C){var n=this.dataToPoint(i),r=this.dataToPoint(C),o=this.getArea(),a=new m1(n[0],n[1],r[0]-n[0],r[1]-n[1]);return o.intersect(a)},t.prototype.dataToPoint=function(i,C,n){n=n||[];var r=i[0],o=i[1];if(this._transform&&r!=null&&isFinite(r)&&o!=null&&isFinite(o))return h2(n,i,this._transform);var a=this.getAxis("x"),l=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,C)),n[1]=l.toGlobalCoord(l.dataToCoord(o,C)),n},t.prototype.clampData=function(i,C){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,o=n.getExtent(),a=r.getExtent(),l=n.parse(i[0]),s=r.parse(i[1]);return C=C||[],C[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),C[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),C},t.prototype.pointToData=function(i,C){var n=[];if(this._invTransform)return h2(n,i,this._invTransform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(i[0]),C),n[1]=o.coordToData(o.toLocalCoord(i[1]),C),n},t.prototype.getOtherAxis=function(i){return this.getAxis(i.dim==="x"?"y":"x")},t.prototype.getArea=function(i){i=i||0;var C=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(C[0],C[1])-i,o=Math.min(n[0],n[1])-i,a=Math.max(C[0],C[1])-r+i,l=Math.max(n[0],n[1])-o+i;return new m1(r,o,a,l)},t}(zT),GT=function(e){F(t,e);function t(i,C,n,r,o){var a=e.call(this,i,C,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return t.prototype.isHorizontal=function(){var i=this.position;return i==="top"||i==="bottom"},t.prototype.getGlobalExtent=function(i){var C=this.getExtent();return C[0]=this.toGlobalCoord(C[0]),C[1]=this.toGlobalCoord(C[1]),i&&C[0]>C[1]&&C.reverse(),C},t.prototype.pointToData=function(i,C){return this.coordToData(this.toLocalCoord(i[this.dim==="x"?0:1]),C)},t.prototype.setCategorySortInfo=function(i){if(this.type!=="category")return!1;this.model.option.categorySortInfo=i,this.scale.setSortInfo(i)},t}(_k);function _e(e,t,i){i=i||{};var C=e.coordinateSystem,n=t.axis,r={},o=n.getAxesOnZeroOf()[0],a=n.position,l=o?"onZero":a,s=n.dim,c=C.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},u=t.get("offset")||0,f=s==="x"?[h[2]-u,h[3]+u]:[h[0]-u,h[1]+u];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));f[d.onZero]=Math.max(Math.min(p,f[1]),f[0])}r.position=[s==="y"?f[d[l]]:h[0],s==="x"?f[d[l]]:h[3]],r.rotation=Math.PI/2*(s==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[a],r.labelOffset=o?f[d[a]]-f[d.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),z9(i.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var m=t.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-m:m,r.z2=1,r}function hs(e){return e.get("coordinateSystem")==="cartesian2d"}function us(e){var t={xAxisModel:null,yAxisModel:null};return b(t,function(i,C){var n=C.replace(/Model$/,""),r=e.getReferringComponents(n,I2).models[0];if(process.env.NODE_ENV!=="production"&&!r)throw new Error(n+' "'+$9(e.get(n+"Index"),e.get(n+"Id"),0)+'" not found');t[C]=r}),t}var Ie=Math.log;function UT(e,t,i){var C=h3.prototype,n=C.getTicks.call(i),r=C.getTicks.call(i,!0),o=n.length-1,a=C.getInterval.call(i),l=fl(e,t),s=l.extent,c=l.fixMin,h=l.fixMax;if(e.type==="log"){var d=Ie(e.base);s=[Ie(s[0])/d,Ie(s[1])/d]}e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var u=C.getExtent.call(e);c&&(s[0]=u[0]),h&&(s[1]=u[1]);var f=C.getInterval.call(e),p=s[0],v=s[1];if(c&&h)f=(v-p)/o;else if(c)for(v=s[0]+f*o;vs[0]&&isFinite(p)&&isFinite(s[0]);)f=ae(f),p=s[1]-f*o;else{var m=e.getTicks().length-1;m>o&&(f=ae(f));var w=f*o;v=Math.ceil(s[1]/f)*f,p=I1(v-w),p<0&&s[0]>=0?(p=0,v=I1(w)):v>0&&s[1]<=0&&(v=0,p=-I1(w))}var H=(n[0].value-r[0].value)/a,V=(n[o].value-r[o].value)/a;if(C.setExtent.call(e,p+f*H,v+f*V),C.setInterval.call(e,f),(H||V)&&C.setNiceExtent.call(e,p+f,v-f),process.env.NODE_ENV!=="production"){var Z=C.getTicks.call(e);Z[1]&&(!ON(f)||s7(Z[1].value)>s7(f))&&E1("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var WT=function(){function e(t,i,C){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xe,this._initCartesian(t,i,C),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,i){var C=this._axesMap;this._updateScale(t,this.model);function n(o){var a,l=o1(o),s=l.length;if(s){for(var c=[],h=s-1;h>=0;h--){var d=+l[h],u=o[d],f=u.model,p=u.scale;oe(p)&&f.get("alignTicks")&&f.get("interval")==null?c.push(u):(gl(p,f),oe(p)&&(a=u))}c.length&&(a||(a=c.pop(),gl(a.scale,a.model)),b(c,function(v){UT(v.scale,v.model,a.scale)}))}}n(C.x),n(C.y);var r={};b(C.x,function(o){ds(C,"y",o,r)}),b(C.y,function(o){ds(C,"x",o,r)}),this.resize(this.model,i)},e.prototype.resize=function(t,i,C){var n=t.getBoxLayoutParams(),r=!C&&t.get("containLabel"),o=i4(n,{width:i.getWidth(),height:i.getHeight()});this._rect=o;var a=this._axesList;l(),r&&(b(a,function(s){if(!s.model.get(["axisLabel","inside"])){var c=fk(s);if(c){var h=s.isHorizontal()?"height":"width",d=s.model.get(["axisLabel","margin"]);o[h]-=c[h]+d,s.position==="top"?o.y+=c.height+d:s.position==="left"&&(o.x+=c.width+d)}}}),l()),b(this._coordsList,function(s){s.calcAffineTransform()});function l(){b(a,function(s){var c=s.isHorizontal(),h=c?[0,o.width]:[0,o.height],d=s.inverse?1:0;s.setExtent(h[d],h[1-d]),YT(s,c?o.x:o.y)})}},e.prototype.getAxis=function(t,i){var C=this._axesMap[t];if(C!=null)return C[i||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,i){if(t!=null&&i!=null){var C="x"+t+"y"+i;return this._coordsMap[C]}Y(t)&&(i=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n0?"top":"bottom",r="center"):u6(n-E9)?(o=C>0?"bottom":"top",r="center"):(o="middle",n>0&&n0?"right":"left":r=C>0?"left":"right"),{rotation:n,textAlign:r,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var i={componentType:t.mainType,componentIndex:t.componentIndex};return i[t.mainType+"Index"]=t.componentIndex,i},e.isLabelSilent=function(t){var i=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||i&&i.show)},e}(),gs={axisLine:function(e,t,i,C){var n=t.get(["axisLine","show"]);if(n==="auto"&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),!!n){var r=t.axis.getExtent(),o=C.transform,a=[r[0],0],l=[r[1],0],s=a[0]>l[0];o&&(h2(a,a,o),h2(l,l,o));var c=P({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new _9({shape:{x1:a[0],y1:a[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});q3(h.shape,h.style.lineWidth),h.anid="line",i.add(h);var d=t.get(["axisLine","symbol"]);if(d!=null){var u=t.get(["axisLine","symbolSize"]);U(d)&&(d=[d,d]),(U(u)||f1(u))&&(u=[u,u]);var f=ea(t.get(["axisLine","symbolOffset"])||0,u),p=u[0],v=u[1];b([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((a[0]-l[0])*(a[0]-l[0])+(a[1]-l[1])*(a[1]-l[1]))}],function(m,w){if(d[w]!=="none"&&d[w]!=null){var H=r3(d[w],-p/2,-v/2,p,v,c.stroke,!0),V=m.r+m.offset,Z=s?l:a;H.attr({rotation:m.rotate,x:Z[0]+V*Math.cos(e.rotation),y:Z[1]-V*Math.sin(e.rotation),silent:!0,z2:11}),i.add(H)}})}}},axisTickLabel:function(e,t,i,C){var n=jT(i,C,t,e),r=QT(i,C,t,e);if(qT(t,r,n),KT(i,C,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Tk($(r,function(a){return{label:a,priority:a.z2,defaultAttr:{ignore:a.ignore}}}));Pk(o)}},axisName:function(e,t,i,C){var n=z9(e.axisName,t.get("name"));if(n){var r=t.get("nameLocation"),o=e.nameDirection,a=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,s=t.axis.getExtent(),c=s[0]>s[1]?-1:1,h=[r==="start"?s[0]-c*l:r==="end"?s[1]+c*l:(s[0]+s[1])/2,vs(r)?e.labelOffset+o*l:0],d,u=t.get("nameRotate");u!=null&&(u=u*E9/180);var f;vs(r)?d=O9.innerTextLayout(e.rotation,u??e.rotation,o):(d=XT(e.rotation,r,u||0,s),f=e.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(d.rotation)),!isFinite(f)&&(f=null)));var p=a.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,w=z9(e.nameTruncateMaxWidth,v.maxWidth,f),H=new j1({x:h[0],y:h[1],rotation:d.rotation,silent:O9.isLabelSilent(t),style:X0(a,{text:n,font:p,overflow:"truncate",width:w,ellipsis:m,fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:a.get("align")||d.textAlign,verticalAlign:a.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(W6({el:H,componentModel:t,itemName:n}),H.__fullText=n,H.anid="name",t.get("triggerEvent")){var V=O9.makeAxisEventDataBase(t);V.targetType="axisName",V.name=n,l1(H).eventData=V}C.add(H),H.updateTransform(),i.add(H),H.decomposeTransform()}}};function XT(e,t,i,C){var n=OC(i-e),r,o,a=C[0]>C[1],l=t==="start"&&!a||t!=="start"&&a;return u6(n-E9/2)?(o=l?"bottom":"top",r="center"):u6(n-E9*1.5)?(o=l?"top":"bottom",r="center"):(o="middle",nE9/2?r=l?"left":"right":r=l?"right":"left"),{rotation:n,textAlign:r,textVerticalAlign:o}}function qT(e,t,i){if(!pl(e.axis)){var C=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],i=i||[];var r=t[0],o=t[1],a=t[t.length-1],l=t[t.length-2],s=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];C===!1?(x2(r),x2(s)):ps(r,o)&&(C?(x2(o),x2(c)):(x2(r),x2(s))),n===!1?(x2(a),x2(h)):ps(l,a)&&(n?(x2(l),x2(d)):(x2(a),x2(h)))}}function x2(e){e&&(e.ignore=!0)}function ps(e,t){var i=e&&e.getBoundingRect().clone(),C=t&&t.getBoundingRect().clone();if(!(!i||!C)){var n=L8([]);return Z8(n,n,-e.rotation),i.applyTransform(k0([],n,e.getLocalTransform())),C.applyTransform(k0([],n,t.getLocalTransform())),i.intersect(C)}}function vs(e){return e==="middle"||e==="center"}function ms(e,t,i,C,n){for(var r=[],o=[],a=[],l=0;l=0||e===t}function nA(e){var t=Be(e);if(t){var i=t.axisPointerModel,C=t.axis.scale,n=i.option,r=i.get("status"),o=i.get("value");o!=null&&(o=C.parse(o));var a=Ne(i);r==null&&(n.status=a?"show":"hide");var l=C.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),oa)return!0;if(o){var l=Be(t).seriesDataCount,s=n.getExtent();return Math.abs(s[0]-s[1])/l>a}return!1}return C===!0},e.prototype.makeElOption=function(t,i,C,n,r){},e.prototype.createPointerEl=function(t,i,C,n){var r=i.pointer;if(r){var o=H0(t).pointerEl=new YI[r.type](Ms(i.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,i,C,n){if(i.label){var r=H0(t).labelEl=new j1(Ms(i.label));t.add(r),xs(r,n)}},e.prototype.updatePointerEl=function(t,i,C){var n=H0(t).pointerEl;n&&i.pointer&&(n.setStyle(i.pointer.style),C(n,{shape:i.pointer.shape}))},e.prototype.updateLabelEl=function(t,i,C,n){var r=H0(t).labelEl;r&&(r.setStyle(i.label.style),C(r,{x:i.label.x,y:i.label.y}),xs(r,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var i=this._axisPointerModel,C=this._api.getZr(),n=this._handle,r=i.getModel("handle"),o=i.get("status");if(!r.get("show")||!o||o==="hide"){n&&C.remove(n),this._handle=null;return}var a;this._handle||(a=!0,n=this._handle=Q7(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(s){zi(s.event)},onmousedown:Ae(this._onHandleDragMove,this,0,0),drift:Ae(this._onHandleDragMove,this),ondragend:Ae(this._onHandleDragEnd,this)}),C.add(n)),_s(n,i,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");R(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Ro(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},e.prototype._moveHandleToValue=function(t,i){Zs(this._axisPointerModel,!i&&this._moveAnimation,this._handle,De(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,i){var C=this._handle;if(C){this._dragging=!0;var n=this.updateHandleTransform(De(C),[t,i],this._axisModel,this._axisPointerModel);this._payloadInfo=n,C.stopAnimation(),C.attr(De(n)),H0(C).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var i=this._payloadInfo,C=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:i.cursorPoint[0],y:i.cursorPoint[1],tooltipOption:i.tooltipOption,axesInfo:[{axisDim:C.axis.dim,axisIndex:C.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var i=t.getZr(),C=this._group,n=this._handle;i&&C&&(this._lastGraphicKey=null,C&&i.remove(C),n&&i.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),kt(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,i,C){return C=C||0,{x:t[C],y:t[1-C],width:i[C],height:i[1-C]}},e}();function Zs(e,t,i,C){ys(H0(i).lastProp,C)||(H0(i).lastProp=C,t?K1(i,C,e):(i.stopAnimation(),i.attr(C)))}function ys(e,t){if(Y(e)&&Y(t)){var i=!0;return b(t,function(C,n){i=i&&ys(e[n],C)}),!!i}else return e===t}function xs(e,t){e[t.get(["label","show"])?"show":"hide"]()}function De(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function _s(e,t,i){var C=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(r){r.type!=="group"&&(C!=null&&(r.z=C),n!=null&&(r.zlevel=n),r.silent=i)})}function gA(e){var t=e.get("type"),i=e.getModel(t+"Style"),C;return t==="line"?(C=i.getLineStyle(),C.fill=null):t==="shadow"&&(C=i.getAreaStyle(),C.stroke=null),C}function pA(e,t,i,C,n){var r=i.get("value"),o=Is(r,t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),a=i.getModel("label"),l=r5(a.get("padding")||0),s=a.getFont(),c=i7(o,s),h=n.position,d=c.width+l[1]+l[3],u=c.height+l[0]+l[2],f=n.align;f==="right"&&(h[0]-=d),f==="center"&&(h[0]-=d/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=u),p==="middle"&&(h[1]-=u/2),vA(h,d,u,C);var v=a.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:X0(a,{text:o,font:s,fill:a.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function vA(e,t,i,C){var n=C.getWidth(),r=C.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+i,r)-i,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Is(e,t,i,C,n){e=t.scale.parse(e);var r=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var a={value:he(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};b(C,function(l){var s=i.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=s&&s.getDataParams(c);h&&a.seriesData.push(h)}),U(o)?r=o.replace("{value}",r):j(o)&&(r=o(a))}return r}function bs(e,t,i){var C=N0();return Z8(C,C,i.rotation),M8(C,C,i.position),K7([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],C)}function mA(e,t,i,C,n,r){var o=O9.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=n.get(["label","margin"]),pA(t,C,n,r,{position:bs(C.axis,e,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wA(e,t,i){return i=i||0,{x1:e[i],y1:e[1-i],x2:t[i],y2:t[1-i]}}function HA(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}var VA=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(i,C,n,r,o){var a=n.axis,l=a.grid,s=r.get("type"),c=Ss(l,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(C,!0));if(s&&s!=="none"){var d=gA(r),u=LA[s](a,h,c);u.style=d,i.graphicKey=u.type,i.pointer=u}var f=_e(l.model,n);mA(C,i,f,n,r,o)},t.prototype.getHandleTransform=function(i,C,n){var r=_e(C.axis.grid.model,C,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=bs(C.axis,i,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(i,C,n,r){var o=n.axis,a=o.grid,l=o.getGlobalExtent(!0),s=Ss(a,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[i.x,i.y];h[c]+=C[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var d=(s[1]+s[0])/2,u=[d,d];u[c]=h[c];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:i.rotation,cursorPoint:u,tooltipOption:f[c]}},t}(fA);function Ss(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var LA={line:function(e,t,i){var C=wA([t,i[0]],[t,i[1]],Bs(e));return{type:"Line",subPixelOptimize:!0,shape:C}},shadow:function(e,t,i){var C=Math.max(1,e.getBandWidth()),n=i[1]-i[0];return{type:"Rect",shape:HA([t-C/2,i[0]],[C,n],Bs(e))}}};function Bs(e){return e.dim==="x"?0:1}var MA=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(u1),u9=x1(),ZA=b;function Ns(e,t,i){if(!K.node){var C=t.getZr();u9(C).records||(u9(C).records={}),yA(C,t);var n=u9(C).records[e]||(u9(C).records[e]={});n.handler=i}}function yA(e,t){if(u9(e).initialized)return;u9(e).initialized=!0,i("click",y1(ks,"click")),i("mousemove",y1(ks,"mousemove")),i("globalout",_A);function i(C,n){e.on(C,function(r){var o=IA(t);ZA(u9(e).records,function(a){a&&n(a,r,o.dispatchAction)}),xA(o.pendings,t)})}}function xA(e,t){var i=e.showTip.length,C=e.hideTip.length,n;i?n=e.showTip[i-1]:C&&(n=e.hideTip[C-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function _A(e,t,i){e.handler("leave",null,i)}function ks(e,t,i,C){t.handler(e,i,C)}function IA(e){var t={showTip:[],hideTip:[]},i=function(C){var n=t[C.type];n?n.push(C):(C.dispatchAction=i,e.dispatchAction(C))};return{dispatchAction:i,pendings:t}}function Pe(e,t){if(!K.node){var i=t.getZr(),C=(u9(i).records||{})[e];C&&(u9(i).records[e]=null)}}var bA=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i}return t.prototype.render=function(i,C,n){var r=C.getComponent("tooltip"),o=i.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Ns("axisPointer",n,function(a,l,s){o!=="none"&&(a==="leave"||o.indexOf(a)>=0)&&s({type:"updateAxisPointer",currTrigger:a,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(i,C){Pe("axisPointer",C)},t.prototype.dispose=function(i,C){Pe("axisPointer",C)},t.type="axisPointer",t}(K2);function Ts(e,t){var i=[],C=e.seriesIndex,n;if(C==null||!(n=t.getSeriesByIndex(C)))return{point:[]};var r=n.getData(),o=K9(r,e);if(o==null||o<0||R(o))return{point:[]};var a=r.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var s=l.getBaseAxis(),c=l.getOtherAxis(s),h=c.dim,d=s.dim,u=h==="x"||h==="radius"?1:0,f=r.mapDimension(d),p=[];p[u]=r.get(f,o),p[1-u]=r.get(r.getCalculationInfo("stackResultDimension"),o),i=l.dataToPoint(p)||[]}else i=l.dataToPoint(r.getValues($(l.dimensions,function(m){return r.mapDimension(m)}),o))||[];else if(a){var v=a.getBoundingRect().clone();v.applyTransform(a.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:a}}var As=x1();function SA(e,t,i){var C=e.currTrigger,n=[e.x,e.y],r=e,o=e.dispatchAction||v1(i.dispatchAction,i),a=t.getComponent("axisPointer").coordSysAxesInfo;if(a){z5(n)&&(n=Ts({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},t).point);var l=z5(n),s=r.axesInfo,c=a.axesInfo,h=C==="leave"||z5(n),d={},u={},f={list:[],map:{}},p={showPointer:y1(NA,u),showTooltip:y1(kA,f)};b(a.coordSysMap,function(m,w){var H=l||m.containPoint(n);b(a.coordSysAxesInfo[w],function(V,Z){var L=V.axis,M=PA(s,V);if(!h&&H&&(!s||M)){var y=M&&M.value;y==null&&!l&&(y=L.pointToData(n)),y!=null&&Ds(V,y,p,!1,d)}})});var v={};return b(c,function(m,w){var H=m.linkGroup;H&&!u[w]&&b(H.axesInfo,function(V,Z){var L=u[Z];if(V!==m&&L){var M=L.value;H.mapper&&(M=m.axis.scale.parse(H.mapper(M,Ps(V),Ps(m)))),v[m.key]=M}})}),b(v,function(m,w){Ds(c[w],m,p,!0,d)}),TA(u,c,d),AA(f,n,e,o),DA(c,o,i),d}}function Ds(e,t,i,C,n){var r=e.axis;if(!(r.scale.isBlank()||!r.containData(t))){if(!e.involveSeries){i.showPointer(e,t);return}var o=BA(t,e),a=o.payloadBatch,l=o.snapToValue;a[0]&&n.seriesIndex==null&&P(n,a[0]),!C&&e.snap&&r.containData(l)&&l!=null&&(t=l),i.showPointer(e,t,a),i.showTooltip(e,o,l)}}function BA(e,t){var i=t.axis,C=i.dim,n=e,r=[],o=Number.MAX_VALUE,a=-1;return b(t.seriesModels,function(l,s){var c=l.getData().mapDimensionsAll(C),h,d;if(l.getAxisTooltipData){var u=l.getAxisTooltipData(c,e,i);d=u.dataIndices,h=u.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,i.type==="category"?.5:null),!d.length)return;h=l.getData().get(c[0],d[0])}if(!(h==null||!isFinite(h))){var f=e-h,p=Math.abs(f);p<=o&&((p=0&&a<0)&&(o=p,a=f,n=h,r.length=0),b(d,function(v){r.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:r,snapToValue:n}}function NA(e,t,i,C){e[t.key]={value:i,payloadBatch:C}}function kA(e,t,i,C){var n=i.payloadBatch,r=t.axis,o=r.model,a=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,s=x4(l),c=e.map[s];c||(c=e.map[s]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:C,valueLabelOpt:{precision:a.get(["label","precision"]),formatter:a.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function TA(e,t,i){var C=i.axesInfo=[];b(t,function(n,r){var o=n.axisPointerModel.option,a=e[r];a?(!n.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&C.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function AA(e,t,i,C){if(z5(t)||!e.list.length){C({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};C({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function DA(e,t,i){var C=i.getZr(),n="axisPointerLastHighlights",r=As(C)[n]||{},o=As(C)[n]={};b(e,function(s,c){var h=s.axisPointerModel.option;h.status==="show"&&s.triggerEmphasis&&b(h.seriesDataIndices,function(d){var u=d.seriesIndex+" | "+d.dataIndex;o[u]=d})});var a=[],l=[];b(r,function(s,c){!o[c]&&l.push(s)}),b(o,function(s,c){!r[c]&&a.push(s)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),a.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}function PA(e,t){for(var i=0;i<(e||[]).length;i++){var C=e[i];if(t.axis.dim===C.axisDim&&t.axis.model.componentIndex===C.axisIndex)return C}}function Ps(e){var t=e.axis.model,i={},C=i.axisDim=e.axis.dim;return i.axisIndex=i[C+"AxisIndex"]=t.componentIndex,i.axisName=i[C+"AxisName"]=t.name,i.axisId=i[C+"AxisId"]=t.id,i}function z5(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Es(e){ws.registerAxisPointerClass("CartesianAxisPointer",VA),e.registerComponentModel(MA),e.registerComponentView(bA),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var i=t.axisPointer.link;i&&!R(i)&&(t.axisPointer.link=[i])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,i){t.getComponent("axisPointer").coordSysAxesInfo=JT(t,i)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},SA)}function EA(e){N9(dA),N9(Es)}function OA(e,t){var i=r5(t.get("padding")),C=t.getItemStyle(["color","opacity"]);return C.fill=t.get("backgroundColor"),e=new S1({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:C,silent:!0,z2:-1}),e}var FA=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(u1);function Os(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Fs(e){if(K.domSupported){for(var t=document.documentElement.style,i=0,C=e.length;i-1?(a+="top:50%",l+="translateY(-50%) rotate("+(s=r==="left"?-225:-45)+"deg)"):(a+="left:50%",l+="translateX(-50%) rotate("+(s=r==="top"?225:45)+"deg)");var c=s*Math.PI/180,h=o+n,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),u=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-h)/2)*100)/100;a+=";"+r+":-"+u+"px";var f=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",a+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+C+";"];return''}function YA(e,t){var i="cubic-bezier(0.23,1,0.32,1)",C=" "+e/2+"s "+i,n="opacity"+C+",visibility"+C;return t||(C=" "+e+"s "+i,n+=K.transformSupported?","+Ee+C:",left"+C+",top"+C),$A+":"+n}function $s(e,t,i){var C=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!K.transformSupported)return i?"top:"+n+";left:"+C+";":[["top",n],["left",C]];var r=K.transform3dSupported,o="translate"+(r?"3d":"")+"("+C+","+n+(r?",0":"")+")";return i?"top:0;left:0;"+Ee+":"+o+";":[["top",0],["left",0],[Rs,o]]}function XA(e){var t=[],i=e.get("fontSize"),C=e.getTextColor();C&&t.push("color:"+C),t.push("font:"+e.getFont());var n=q(e.get("lineHeight"),Math.round(i*3/2));i&&t.push("line-height:"+n+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+l+"px "+o+"px "+r),b(["decoration","align"],function(s){var c=e.get(s);c&&t.push("text-"+s+":"+c)}),t.join(";")}function qA(e,t,i){var C=[],n=e.get("transitionDuration"),r=e.get("backgroundColor"),o=e.get("shadowBlur"),a=e.get("shadowColor"),l=e.get("shadowOffsetX"),s=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=ko(e,"html"),d=l+"px "+s+"px "+o+"px "+a;return C.push("box-shadow:"+d),t&&n&&C.push(YA(n,i)),r&&C.push("background-color:"+r),b(["width","color","radius"],function(u){var f="border-"+u,p=Pr(f),v=e.get(p);v!=null&&C.push(f+":"+v+(u==="color"?"":"px"))}),C.push(XA(c)),h!=null&&C.push("padding:"+r5(h).join("px ")+"px"),C.join(";")+";"}function Gs(e,t,i,C,n){var r=t&&t.painter;if(i){var o=r&&r.getViewportRoot();o&&oy(e,o,i,C,n)}else{e[0]=C,e[1]=n;var a=r&&r.getViewportRootOffset();a&&(e[0]+=a.offsetLeft,e[1]+=a.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var jA=function(){function e(t,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,K.wxa)return null;var C=document.createElement("div");C.domBelongToZr=!0,this.el=C;var n=this._zr=t.getZr(),r=i.appendTo,o=r&&(U(r)?document.querySelector(r):x0(r)?r:j(r)&&r(t.getDom()));Gs(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(C),this._api=t,this._container=o;var a=this;C.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},C.onmousemove=function(l){if(l=l||window.event,!a._enterable){var s=n.handler,c=n.painter.getViewportRoot();u2(c,l,!0),s.dispatch("mousemove",l)}},C.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var i=this._api.getDom(),C=zA(i,"position"),n=i.style;n.position!=="absolute"&&C!=="absolute"&&(n.position="relative")}var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},e.prototype.show=function(t,i){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var C=this.el,n=C.style,r=this._styleCoord;C.innerHTML?n.cssText=GA+qA(t,!this._firstShow,this._longHide)+$s(r[0],r[1],!0)+("border-color:"+u0(i)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,i,C,n,r){var o=this.el;if(t==null){o.innerHTML="";return}var a="";if(U(r)&&C.get("trigger")==="item"&&!Os(C)&&(a=WA(C,n,r)),U(t))o.innerHTML=t+a;else if(t){o.innerHTML="",R(t)||(t=[t]);for(var l=0;l=0?this._tryShow(r,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var i=this._tooltipModel,C=this._ecModel,n=this._api,r=i.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(i,C,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(i,C,n,r){if(!(r.from===this.uid||K.node||!n.getDom())){var o=Ys(r,n);this._ticket="";var a=r.dataByCoordSys,l=CD(r,C,n);if(l){var s=l.el.getBoundingRect().clone();s.applyTransform(l.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:l.el,position:r.position,positionDefault:"bottom"},o)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=QA;c.x=r.x,c.y=r.y,c.update(),l1(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},o);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(i,C,n,r))return;var h=Ts(r,C),d=h.point[0],u=h.point[1];d!=null&&u!=null&&this._tryShow({offsetX:d,offsetY:u,target:h.el,position:r.position,positionDefault:"bottom"},o)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},o))}},t.prototype.manuallyHideTip=function(i,C,n,r){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Ys(r,n))},t.prototype._manuallyAxisShowTip=function(i,C,n,r){var o=r.seriesIndex,a=r.dataIndex,l=C.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||a==null||l==null)){var s=C.getSeriesByIndex(o);if(s){var c=s.getData(),h=_4([c.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:r.position}),!0}}},t.prototype._tryShow=function(i,C){var n=i.target,r=this._tooltipModel;if(r){this._lastX=i.offsetX,this._lastY=i.offsetY;var o=i.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,i);else if(n){var a=l1(n);if(a.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,s;d4(n,function(c){if(l1(c).dataIndex!=null)return l=c,!0;if(l1(c).tooltipConfig!=null)return s=c,!0},!0),l?this._showSeriesItemTooltip(i,l,C):s?this._showComponentItemTooltip(i,s,C):this._hide(C)}else this._lastDataByCoordSys=null,this._hide(C)}},t.prototype._showOrMove=function(i,C){var n=i.get("showDelay");C=v1(C,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(C,n):C()},t.prototype._showAxisTooltip=function(i,C){var n=this._ecModel,r=this._tooltipModel,o=[C.offsetX,C.offsetY],a=_4([C.tooltipOption],r),l=this._renderMode,s=[],c=c4("section",{blocks:[],noHeader:!0}),h=[],d=new bt;b(i,function(w){b(w.dataByAxis,function(H){var V=n.getComponent(H.axisDim+"Axis",H.axisIndex),Z=H.value;if(!(!V||Z==null)){var L=Is(Z,V.axis,n,H.seriesDataIndices,H.valueLabelOpt),M=c4("section",{header:L,noHeader:!E2(L),sortBlocks:!0,blocks:[]});c.blocks.push(M),b(H.seriesDataIndices,function(y){var I=n.getSeriesByIndex(y.seriesIndex),x=y.dataIndexInside,_=I.getDataParams(x);if(!(_.dataIndex<0)){_.axisDim=H.axisDim,_.axisIndex=H.axisIndex,_.axisType=H.axisType,_.axisId=H.axisId,_.axisValue=he(V.axis,{value:Z}),_.axisValueLabel=L,_.marker=d.makeTooltipMarker("item",u0(_.color),l);var B=wo(I.formatTooltip(x,!0,null)),S=B.frag;if(S){var N=_4([I],r).get("valueFormatter");M.blocks.push(N?P({valueFormatter:N},S):S)}B.text&&h.push(B.text),s.push(_)}})}})}),c.blocks.reverse(),h.reverse();var u=C.position,f=a.get("order"),p=Bo(c,d,l,f,n.get("useUTC"),a.get("textStyle"));p&&h.unshift(p);var v=l==="richText"?`
`:"
",m=h.join(v);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(i,s)?this._updatePosition(a,u,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+"",o[0],o[1],u,null,d)})},t.prototype._showSeriesItemTooltip=function(i,C,n){var r=this._ecModel,o=l1(C),a=o.seriesIndex,l=r.getSeriesByIndex(a),s=o.dataModel||l,c=o.dataIndex,h=o.dataType,d=s.getData(h),u=this._renderMode,f=i.positionDefault,p=_4([d.getItemModel(c),s,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=p.get("trigger");if(!(v!=null&&v!=="item")){var m=s.getDataParams(c,h),w=new bt;m.marker=w.makeTooltipMarker("item",u0(m.color),u);var H=wo(s.formatTooltip(c,!1,h)),V=p.get("order"),Z=p.get("valueFormatter"),L=H.frag,M=L?Bo(Z?P({valueFormatter:Z},L):L,w,u,V,r.get("useUTC"),p.get("textStyle")):H.text,y="item_"+s.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,M,m,y,i.offsetX,i.offsetY,i.position,i.target,w)}),n({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(i,C,n){var r=this._renderMode==="html",o=l1(C),a=o.tooltipConfig,l=a.option||{},s=l.encodeHTMLContent;if(U(l)){var c=l;l={content:c,formatter:c},s=!0}s&&r&&l.content&&(l=n1(l),l.content=Y1(l.content));var h=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&h.push(d),h.push({formatter:l.content});var u=i.positionDefault,f=_4(h,this._tooltipModel,u?{position:u}:null),p=f.get("content"),v=Math.random()+"",m=new bt;this._showOrMove(f,function(){var w=n1(f.get("formatterParams")||{});this._showTooltipContent(f,p,w,v,i.offsetX,i.offsetY,i.position,C,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(i,C,n,r,o,a,l,s,c){if(this._ticket="",!(!i.get("showContent")||!i.get("show"))){var h=this._tooltipContent;h.setEnterable(i.get("enterable"));var d=i.get("formatter");l=l||i.get("position");var u=C,f=this._getNearestPoint([o,a],n,i.get("trigger"),i.get("borderColor")),p=f.color;if(d)if(U(d)){var v=i.ecModel.get("useUTC"),m=R(n)?n[0]:n,w=m&&m.axisType&&m.axisType.indexOf("time")>=0;u=d,w&&(u=t5(m.axisValue,u,v)),u=Or(u,n,!0)}else if(j(d)){var H=v1(function(V,Z){V===this._ticket&&(h.setContent(Z,c,i,p,l),this._updatePosition(i,l,o,a,h,n,s))},this);this._ticket=r,u=d(n,r,H)}else u=d;h.setContent(u,c,i,p,l),h.show(i,p),this._updatePosition(i,l,o,a,h,n,s)}},t.prototype._getNearestPoint=function(i,C,n,r){if(n==="axis"||R(C))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!R(C))return{color:r||C.color||C.borderColor}},t.prototype._updatePosition=function(i,C,n,r,o,a,l){var s=this._api.getWidth(),c=this._api.getHeight();C=C||i.get("position");var h=o.getSize(),d=i.get("align"),u=i.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),j(C)&&(C=C([n,r],a,o.el,f,{viewSize:[s,c],contentSize:h.slice()})),R(C))n=w1(C[0],s),r=w1(C[1],c);else if(Y(C)){var p=C;p.width=h[0],p.height=h[1];var v=i4(p,{width:s,height:c});n=v.x,r=v.y,d=null,u=null}else if(U(C)&&l){var m=iD(C,f,h,i.get("borderWidth"));n=m[0],r=m[1]}else{var m=tD(n,r,o,s,c,d?null:20,u?null:20);n=m[0],r=m[1]}if(d&&(n-=Xs(d)?h[0]/2:d==="right"?h[0]:0),u&&(r-=Xs(u)?h[1]/2:u==="bottom"?h[1]:0),Os(i)){var m=eD(n,r,o,s,c);n=m[0],r=m[1]}o.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(i,C){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===i.length;return o&&b(n,function(a,l){var s=a.dataByAxis||[],c=i[l]||{},h=c.dataByAxis||[];o=o&&s.length===h.length,o&&b(s,function(d,u){var f=h[u]||{},p=d.seriesDataIndices||[],v=f.seriesDataIndices||[];o=o&&d.value===f.value&&d.axisType===f.axisType&&d.axisId===f.axisId&&p.length===v.length,o&&b(p,function(m,w){var H=v[w];o=o&&m.seriesIndex===H.seriesIndex&&m.dataIndex===H.dataIndex}),r&&b(d.seriesDataIndices,function(m){var w=m.seriesIndex,H=C[w],V=r[w];H&&V&&V.data!==H.data&&(o=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=C,!!o},t.prototype._hide=function(i){this._lastDataByCoordSys=null,i({type:"hideTip",from:this.uid})},t.prototype.dispose=function(i,C){K.node||!C.getDom()||(kt(this,"_updatePosition"),this._tooltipContent.dispose(),Pe("itemTooltip",C))},t.type="tooltip",t}(K2);function _4(e,t,i){var C=t.ecModel,n;i?(n=new V1(i,C,C),n=new V1(t.option,n,C)):n=t;for(var r=e.length-1;r>=0;r--){var o=e[r];o&&(o instanceof V1&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new V1(o,n,C)))}return n}function Ys(e,t){return e.dispatchAction||v1(t.dispatchAction,t)}function tD(e,t,i,C,n,r,o){var a=i.getSize(),l=a[0],s=a[1];return r!=null&&(e+l+r+2>C?e-=l+r:e+=r),o!=null&&(t+s+o>n?t-=s+o:t+=o),[e,t]}function eD(e,t,i,C,n){var r=i.getSize(),o=r[0],a=r[1];return e=Math.min(e+o,C)-o,t=Math.min(t+a,n)-a,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function iD(e,t,i,C){var n=i[0],r=i[1],o=Math.ceil(Math.SQRT2*C)+8,a=0,l=0,s=t.width,c=t.height;switch(e){case"inside":a=t.x+s/2-n/2,l=t.y+c/2-r/2;break;case"top":a=t.x+s/2-n/2,l=t.y-r-o;break;case"bottom":a=t.x+s/2-n/2,l=t.y+c+o;break;case"left":a=t.x-n-o,l=t.y+c/2-r/2;break;case"right":a=t.x+s+o,l=t.y+c/2-r/2}return[a,l]}function Xs(e){return e==="center"||e==="middle"}function CD(e,t,i){var C=d7(e).queryOptionMap,n=C.keys()[0];if(!(!n||n==="series")){var r=A3(t,n,C.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=r.models[0];if(o){var a=i.getViewOfComponentModel(o),l;if(a.group.traverse(function(s){var c=l1(s).tooltipConfig;if(c&&c.name===e.name)return l=s,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function nD(e){N9(Es),e.registerComponentModel(FA),e.registerComponentView(JA),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},W1),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},W1)}var rD=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Oe=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i.layoutMode={type:"box",ignoreSize:!0},i}return t.prototype.init=function(i,C,n){this.mergeDefaultAndTheme(i,n),i.selected=i.selected||{},this._updateSelector(i)},t.prototype.mergeOption=function(i,C){e.prototype.mergeOption.call(this,i,C),this._updateSelector(i)},t.prototype._updateSelector=function(i){var C=i.selector,n=this.ecModel;C===!0&&(C=i.selector=["all","inverse"]),R(C)&&b(C,function(r,o){U(r)&&(r={type:r}),C[o]=p1(r,rD(n,r.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var C=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(u1),d3=y1,Fe=b,$5=A1,qs=function(e){F(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return t.prototype.init=function(){this.group.add(this._contentGroup=new $5),this.group.add(this._selectorGroup=new $5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(i,C,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!i.get("show",!0)){var o=i.get("align"),a=i.get("orient");(!o||o==="auto")&&(o=i.get("left")==="right"&&a==="vertical"?"right":"left");var l=i.get("selector",!0),s=i.get("selectorPosition",!0);l&&(!s||s==="auto")&&(s=a==="horizontal"?"end":"start"),this.renderInner(o,i,C,n,l,a,s);var c=i.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},d=i.get("padding"),u=i4(c,h,d),f=this.layoutInner(i,o,u,r,l,s),p=i4(s1({width:f.width,height:f.height},c),h,d);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=OA(f,i))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(i,C,n,r,o,a,l){var s=this.getContentGroup(),c=e1(),h=C.get("selectedMode"),d=[];n.eachRawSeries(function(u){!u.get("legendHoverLink")&&d.push(u.id)}),Fe(C.getData(),function(u,f){var p=u.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var v=new $5;v.newline=!0,s.add(v);return}var m=n.getSeriesByName(p)[0];if(!c.get(p)){if(m){var w=m.getData(),H=w.getVisual("legendLineStyle")||{},V=w.getVisual("legendIcon"),Z=w.getVisual("style"),L=this._createItem(m,p,f,u,C,i,H,Z,V,h,r);L.on("click",d3(js,p,null,r,d)).on("mouseover",d3(Re,m.name,null,r,d)).on("mouseout",d3(ze,m.name,null,r,d)),n.ssr&&L.eachChild(function(M){var y=l1(M);y.seriesIndex=m.seriesIndex,y.dataIndex=f,y.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(M){if(!c.get(p)&&M.legendVisualProvider){var y=M.legendVisualProvider;if(!y.containName(p))return;var I=y.indexOfName(p),x=y.getItemVisual(I,"style"),_=y.getItemVisual(I,"legendIcon"),B=R2(x.fill);B&&B[3]===0&&(B[3]=.2,x=P(P({},x),{fill:K4(B,"rgba")}));var S=this._createItem(M,p,f,u,C,i,{},x,_,h,r);S.on("click",d3(js,null,p,r,d)).on("mouseover",d3(Re,null,p,r,d)).on("mouseout",d3(ze,null,p,r,d)),n.ssr&&S.eachChild(function(N){var k=l1(N);k.seriesIndex=M.seriesIndex,k.dataIndex=f,k.ssrType="legend"}),c.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,C,r,a,l)},t.prototype._createSelector=function(i,C,n,r,o){var a=this.getSelectorGroup();Fe(i,function(s){var c=s.type,h=new j1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:C.id})}});a.add(h);var d=C.getModel("selectorLabel"),u=C.getModel(["emphasis","selectorLabel"]);j3(h,{normal:d,emphasis:u},{defaultText:s.title}),E7(h)})},t.prototype._createItem=function(i,C,n,r,o,a,l,s,c,h,d){var u=i.visualDrawType,f=o.get("itemWidth"),p=o.get("itemHeight"),v=o.isSelected(C),m=r.get("symbolRotate"),w=r.get("symbolKeepAspect"),H=r.get("icon");c=H||c||"roundRect";var V=oD(c,r,l,s,u,v,d),Z=new $5,L=r.getModel("textStyle");if(j(i.getLegendIcon)&&(!H||H==="inherit"))Z.add(i.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:m,itemStyle:V.itemStyle,lineStyle:V.lineStyle,symbolKeepAspect:w}));else{var M=H==="inherit"&&i.getData().getVisual("symbol")?m==="inherit"?i.getData().getVisual("symbolRotate"):m:0;Z.add(aD({itemWidth:f,itemHeight:p,icon:c,iconRotate:M,itemStyle:V.itemStyle,symbolKeepAspect:w}))}var y=a==="left"?f+5:-5,I=a,x=o.get("formatter"),_=C;U(x)&&x?_=x.replace("{name}",C??""):j(x)&&(_=x(C));var B=v?L.getTextColor():r.get("inactiveColor");Z.add(new j1({style:X0(L,{text:_,x:y,y:p/2,fill:B,align:I,verticalAlign:"middle"},{inheritColor:B})}));var S=new S1({shape:Z.getBoundingRect(),style:{fill:"transparent"}}),N=r.getModel("tooltip");return N.get("show")&&W6({el:S,componentModel:o,itemName:C,itemTooltipOption:N.option}),Z.add(S),Z.eachChild(function(k){k.silent=!0}),S.silent=!h,this.getContentGroup().add(Z),E7(Z),Z.__legendDataIndex=n,Z},t.prototype.layoutInner=function(i,C,n,r,o,a){var l=this.getContentGroup(),s=this.getSelectorGroup();e4(i.get("orient"),l,i.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(s.markRedraw(),l.markRedraw(),o){e4("horizontal",s,i.get("selectorItemGap",!0));var d=s.getBoundingRect(),u=[-d.x,-d.y],f=i.get("selectorButtonGap",!0),p=i.getOrient().index,v=p===0?"width":"height",m=p===0?"height":"width",w=p===0?"y":"x";a==="end"?u[p]+=c[v]+f:h[p]+=d[v]+f,u[1-p]+=c[m]/2-d[m]/2,s.x=u[0],s.y=u[1],l.x=h[0],l.y=h[1];var H={x:0,y:0};return H[v]=c[v]+f+d[v],H[m]=Math.max(c[m],d[m]),H[w]=Math.min(0,d[w]+u[1-p]),H}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(K2);function oD(e,t,i,C,n,r,o){function a(v,m){v.lineWidth==="auto"&&(v.lineWidth=m.lineWidth>0?2:0),Fe(v,function(w,H){v[H]==="inherit"&&(v[H]=m[H])})}var l=t.getModel("itemStyle"),s=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");s.decal=!h||h==="inherit"?C.decal:Ot(h,o),s.fill==="inherit"&&(s.fill=C[n]),s.stroke==="inherit"&&(s.stroke=C[c]),s.opacity==="inherit"&&(s.opacity=(n==="fill"?C:i).opacity),a(s,C);var d=t.getModel("lineStyle"),u=d.getLineStyle();if(a(u,i),s.fill==="auto"&&(s.fill=C.fill),s.stroke==="auto"&&(s.stroke=C.fill),u.stroke==="auto"&&(u.stroke=C.fill),!r){var f=t.get("inactiveBorderWidth"),p=s[c];s.lineWidth=f==="auto"?C.lineWidth>0&&p?2:0:s.lineWidth,s.fill=t.get("inactiveColor"),s.stroke=t.get("inactiveBorderColor"),u.stroke=d.get("inactiveColor"),u.lineWidth=d.get("inactiveWidth")}return{itemStyle:s,lineStyle:u}}function aD(e){var t=e.icon||"roundRect",i=r3(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return i.setStyle(e.itemStyle),i.rotation=(e.iconRotate||0)*Math.PI/180,i.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function js(e,t,i,C){ze(e,t,i,C),i.dispatchAction({type:"legendToggleSelect",name:e??t}),Re(e,t,i,C)}function Ks(e){for(var t=e.getZr().storage.getDisplayList(),i,C=0,n=t.length;Cn[o],v=[-u.x,-u.y];C||(v[r]=c[s]);var m=[0,0],w=[-f.x,-f.y],H=q(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(p){var V=i.get("pageButtonPosition",!0);V==="end"?w[r]+=n[o]-f[o]:m[r]+=f[o]+H}w[1-r]+=u[a]/2-f[a]/2,c.setPosition(v),h.setPosition(m),d.setPosition(w);var Z={x:0,y:0};if(Z[o]=p?n[o]:u[o],Z[a]=Math.max(u[a],f[a]),Z[l]=Math.min(0,f[l]+w[1-r]),h.__rectSize=n[o],p){var L={x:0,y:0};L[o]=Math.max(n[o]-f[o]-H,0),L[a]=Z[a],h.setClipPath(new S1({shape:L})),h.__rectSize=L[o]}else d.eachChild(function(y){y.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(i);return M.pageIndex!=null&&K1(c,{x:M.contentPosition[0],y:M.contentPosition[1]},p?i:null),this._updatePageInfoView(i,M),Z},t.prototype._pageGo=function(i,C,n){var r=this._getPageInfo(C)[i];r!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:C.id})},t.prototype._updatePageInfoView=function(i,C){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",d=C[h]!=null,u=n.childOfName(c);u&&(u.setStyle("fill",d?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),u.cursor=d?"pointer":"default")});var r=n.childOfName("pageText"),o=i.get("pageFormatter"),a=C.pageIndex,l=a!=null?a+1:0,s=C.pageCount;r&&o&&r.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",s==null?"":s+""):o({current:l,total:s}))},t.prototype._getPageInfo=function(i){var C=i.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=i.getOrient().index,a=$e[o],l=Ge[o],s=this._findTargetItemIndex(C),c=n.children(),h=c[s],d=c.length,u=d?1:0,f={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var p=V(h);f.contentPosition[o]=-p.s;for(var v=s+1,m=p,w=p,H=null;v<=d;++v)H=V(c[v]),(!H&&w.e>m.s+r||H&&!Z(H,m.s))&&(w.i>m.i?m=w:m=H,m&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=m.i),++f.pageCount)),w=H;for(var v=s-1,m=p,w=p,H=null;v>=-1;--v)H=V(c[v]),(!H||!Z(w,H.s))&&m.i=M&&L.s<=M+r}},t.prototype._findTargetItemIndex=function(i){if(!this._showController)return 0;var C,n=this.getContentGroup(),r;return n.eachChild(function(o,a){var l=o.__legendDataIndex;r==null&&l!=null&&(r=a),l===i&&(C=a)}),C??r},t.type="legend.scroll",t}(qs);function uD(e){e.registerAction("legendScroll","legendscroll",function(t,i){var C=t.scrollDataIndex;C!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(C)})})}function dD(e){N9(Js),e.registerComponentModel(cD),e.registerComponentView(hD),uD(e)}function fD(e){N9(Js),N9(dD)}var Ue=Math.sin,We=Math.cos,ic=Math.PI,V0=Math.PI*2,gD=180/ic,Cc=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,i){this._add("M",t,i)},e.prototype.lineTo=function(t,i){this._add("L",t,i)},e.prototype.bezierCurveTo=function(t,i,C,n,r,o){this._add("C",t,i,C,n,r,o)},e.prototype.quadraticCurveTo=function(t,i,C,n){this._add("Q",t,i,C,n)},e.prototype.arc=function(t,i,C,n,r,o){this.ellipse(t,i,C,C,0,n,r,o)},e.prototype.ellipse=function(t,i,C,n,r,o,a,l){var s=a-o,c=!l,h=Math.abs(s),d=H9(h-V0)||(c?s>=V0:-s>=V0),u=s>0?s%V0:s%V0+V0,f=!1;d?f=!0:H9(h)?f=!1:f=u>=ic==!!c;var p=t+C*We(o),v=i+n*Ue(o);this._start&&this._add("M",p,v);var m=Math.round(r*gD);if(d){var w=1/this._p,H=(c?1:-1)*(V0-w);this._add("A",C,n,m,1,+c,t+C*We(o+H),i+n*Ue(o+H)),w>.01&&this._add("A",C,n,m,0,+c,p,v)}else{var V=t+C*We(a),Z=i+n*Ue(a);this._add("A",C,n,m,+f,+c,V,Z)}},e.prototype.rect=function(t,i,C,n){this._add("M",t,i),this._add("l",C,0),this._add("l",0,n),this._add("l",-C,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,i,C,n,r,o,a,l,s){for(var c=[],h=this._p,d=1;d"}function ZD(e){return""+e+">"}function qe(e,t){t=t||{};var i=t.newline?`
`:"";function C(n){var r=n.children,o=n.tag,a=n.attrs,l=n.text;return MD(o,a)+(o!=="style"?Y1(l):l||"")+(r?""+i+$(r,function(s){return C(s)}).join(i)+i:"")+ZD(o)}return C(e)}function yD(e,t,i){i=i||{};var C=i.newline?`
`:"",n=" {"+C,r=C+"}",o=$(o1(e),function(l){return l+n+$(o1(e[l]),function(s){return s+":"+e[l][s]+";"}).join(C)+r}).join(C),a=$(o1(t),function(l){return"@keyframes "+l+n+$(o1(t[l]),function(s){return s+n+$(o1(t[l][s]),function(c){var h=t[l][s][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(C)+r}).join(C)+r}).join(C);return!o&&!a?"":[""].join(C)}function je(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lc(e,t,i,C){return B1("svg","root",{width:e,height:t,xmlns:nc,"xmlns:xlink":rc,version:"1.1",baseProfile:"full",viewBox:C?"0 0 "+e+" "+t:!1},i)}var xD=0;function sc(){return xD++}var cc={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},L0="transform-origin";function _D(e,t,i){var C=P({},e.shape);P(C,t),e.buildPath(i,C);var n=new Cc;return n.reset(vC(e)),i.rebuildPath(n,1),n.generateStr(),n.getStr()}function ID(e,t){var i=t.originX,C=t.originY;(i||C)&&(e[L0]=i+"px "+C+"px")}var bD={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hc(e,t){var i=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[i]=e,i}function SD(e,t,i){var C=e.shape.paths,n={},r,o;if(b(C,function(l){var s=je(i.zrId);s.animation=!0,G5(l,{},s,!0);var c=s.cssAnims,h=s.cssNodes,d=o1(c),u=d.length;if(u){o=d[u-1];var f=c[o];for(var p in f){var v=f[p];n[p]=n[p]||{d:""},n[p].d+=v.d||""}for(var m in h){var w=h[m].animation;w.indexOf(o)>=0&&(r=w)}}}),!!r){t.d=!1;var a=hc(n,i);return r.replace(o,a)}}function uc(e){return U(e)?cc[e]?"cubic-bezier("+cc[e]+")":B8(e)?e:"":""}function G5(e,t,i,C){var n=e.animators,r=n.length,o=[];if(e instanceof Cr){var a=SD(e,t,i);if(a)o.push(a);else if(!r)return}else if(!r)return;for(var l={},s=0;s0}).length){var o2=hc(M,i);return o2+" "+w[0]+" both"}}for(var v in l){var a=p(l[v]);a&&o.push(a)}if(o.length){var m=i.zrId+"-cls-"+sc();i.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function BD(e,t,i){if(!e.ignore)if(e.isSilent()){var C={"pointer-events":"none"};dc(C,t,i)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},r=n.fill;if(!r){var o=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&a||o;l&&(r=D8(l))}var s=n.lineWidth;if(s){var c=!n.strokeNoScale&&e.transform?e.transform[0]:1;s=s/c}var C={cursor:"pointer"};r&&(C.fill=r),n.stroke&&(C.stroke=n.stroke),s&&(C["stroke-width"]=s),dc(C,t,i)}}function dc(e,t,i,C){var n=JSON.stringify(e),r=i.cssStyleCache[n];r||(r=i.zrId+"-cls-"+sc(),i.cssStyleCache[n]=r,i.cssNodes["."+r+":hover"]=e),t.class=t.class?t.class+" "+r:r}var b4=Math.round;function fc(e){return e&&U(e.src)}function gc(e){return e&&j(e.toDataURL)}function Ke(e,t,i,C){HD(function(n,r){var o=n==="fill"||n==="stroke";o&&pC(r)?Vc(t,e,n,C):o&&E8(r)?Lc(i,e,n,C):e[n]=r,o&&C.ssr&&r==="none"&&(e["pointer-events"]="visible")},t,i,!1),ED(i,e,C)}function Qe(e,t){var i=gx(t);i&&(i.each(function(C,n){C!=null&&(e[(oc+n).toLowerCase()]=C+"")}),t.isSilent()&&(e[oc+"silent"]="true"))}function pc(e){return H9(e[0]-1)&&H9(e[1])&&H9(e[2])&&H9(e[3]-1)}function ND(e){return H9(e[4])&&H9(e[5])}function Je(e,t,i){if(t&&!(ND(t)&&pc(t))){var C=1e4;e.transform=pc(t)?"translate("+b4(t[4]*C)/C+" "+b4(t[5]*C)/C+")":Ey(t)}}function vc(e,t,i){for(var C=e.points,n=[],r=0;r"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";t1(d,v),t1(u,v)}else if(d==null||u==null){var m=function(x,_){if(x){var B=x.elm,S=d||_.width,N=u||_.height;x.tag==="pattern"&&(s?(N=1,S/=r.width):c&&(S=1,N/=r.height)),x.attrs.width=S,x.attrs.height=N,B&&(B.setAttribute("width",S),B.setAttribute("height",N))}},w=p7(f,null,e,function(x){l||m(L,x),m(h,x)});w&&w.width&&w.height&&(d=d||w.width,u=u||w.height)}h=B1("image","img",{href:f,width:d,height:u}),o.width=d,o.height=u}else n.svgElement&&(h=n1(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var H,V;l?H=V=1:s?(V=1,H=o.width/r.width):c?(H=1,V=o.height/r.height):o.patternUnits="userSpaceOnUse",H!=null&&!isNaN(H)&&(o.width=H),V!=null&&!isNaN(V)&&(o.height=V);var Z=mC(n);Z&&(o.patternTransform=Z);var L=B1("pattern","",o,[h]),M=qe(L),y=C.patternCache,I=y[M];I||(I=C.zrId+"-p"+C.patternIdx++,y[M]=I,o.id=I,L=C.defs[I]=B1("pattern",I,o,[h])),t[i]=e6(I)}}function OD(e,t,i){var C=i.clipPathCache,n=i.defs,r=C[e.id];if(!r){r=i.zrId+"-c"+i.clipPathIdx++;var o={id:r};C[e.id]=r,n[r]=B1("clipPath",r,o,[wc(e,i)])}t["clip-path"]=e6(r)}function Mc(e){return document.createTextNode(e)}function M0(e,t,i){e.insertBefore(t,i)}function Zc(e,t){e.removeChild(t)}function yc(e,t){e.appendChild(t)}function xc(e){return e.parentNode}function _c(e){return e.nextSibling}function ti(e,t){e.textContent=t}var Ic=58,FD=120,RD=B1("","");function ei(e){return e===void 0}function t9(e){return e!==void 0}function zD(e,t,i){for(var C={},n=t;n<=i;++n){var r=e[n].key;r!==void 0&&(process.env.NODE_ENV!=="production"&&C[r]!=null&&console.error("Duplicate key "+r),C[r]=n)}return C}function S4(e,t){var i=e.key===t.key,C=e.tag===t.tag;return C&&i}function B4(e){var t,i=e.children,C=e.tag;if(t9(C)){var n=e.elm=ac(C);if(ii(RD,e),R(i))for(t=0;tr?(f=i[l+1]==null?null:i[l+1].elm,bc(e,f,i,n,l)):U5(e,t,C,r))}function f3(e,t){var i=t.elm=e.elm,C=e.children,n=t.children;e!==t&&(ii(e,t),ei(t.text)?t9(C)&&t9(n)?C!==n&&$D(i,C,n):t9(n)?(t9(e.text)&&ti(i,""),bc(i,null,n,0,n.length-1)):t9(C)?U5(i,C,0,C.length-1):t9(e.text)&&ti(i,""):e.text!==t.text&&(t9(C)&&U5(i,C,0,C.length-1),ti(i,t.text)))}function GD(e,t){if(S4(e,t))f3(e,t);else{var i=e.elm,C=xc(i);B4(t),C!==null&&(M0(C,t.elm,_c(i)),U5(C,[e],0,0))}return t}var UD=0,WD=function(){function e(t,i,C){if(this.type="svg",this.refreshHover=Sc("refreshHover"),this.configLayer=Sc("configLayer"),this.storage=i,this._opts=C=P({},C),this.root=t,this._id="zr"+UD++,this._oldVNode=lc(C.width,C.height),t&&!C.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=ac("svg");ii(null,this._oldVNode),n.appendChild(r),t.appendChild(n)}this.resize(C.width,C.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",GD(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Hc(t,je(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var i=this.storage.getDisplayList(!0),C=this._width,n=this._height,r=je(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=YD(C,n,this._backgroundColor,r);a&&o.push(a);var l=t.compress?null:this._mainVNode=B1("g","main",{},[]);this._paintList(i,r,l?l.children:o),l&&o.push(l);var s=$(o1(r.defs),function(d){return r.defs[d]});if(s.length&&o.push(B1("defs","defs",{},s)),t.animation){var c=yD(r.cssNodes,r.cssAnims,{newline:!0});if(c){var h=B1("style","stl",{},[],c);o.push(h)}}return lc(C,n,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},qe(this.renderToVNode({animation:q(t.cssAnimation,!0),emphasis:q(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:q(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,i,C){for(var n=t.length,r=[],o=0,a,l,s=0,c=0;c=0&&!(d&&l&&d[p]===l[p]);p--);for(var v=f-1;v>p;v--)o--,a=r[o-1];for(var m=p+1;m"u")return["#2fb54e","#ea4233","#3892f3","#f68512","#2dceae","#d8c537","#9a4ee5","#e54eb4","#4e6ee5","#e57a4e","#c47de8","#a3d837"];const e=getComputedStyle(document.documentElement);return Array.from({length:12},(t,i)=>e.getPropertyValue(`--chart-color-${i+1}`).trim()||"#000000")}function Ci(e,t){return typeof document>"u"?t:getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t}function jD(){return Ci("--text-2","#cccccc")}function KD(){return Ci("--line-divider-light","#434343")}function QD(e,t){const i={bottom:0,icon:"circle",itemWidth:8,itemHeight:8,textStyle:{color:t.legendColor,fontFamily:t.fontFamily,fontSize:12}};if(e.type==="pie"||e.type==="donut"){const h=e.datasets[0];return{color:t.palette,legend:i,tooltip:{trigger:"item"},series:[{type:"pie",radius:e.type==="donut"?["40%","70%"]:"70%",label:{show:!1},data:((h==null?void 0:h.data)??[]).map((d,u)=>({value:d,name:e.labels[u]??String(u)}))}]}}const C=e.type==="bar-horizontal",n={color:t.legendColor},r={lineStyle:{color:t.axisLineColor}},o={lineStyle:{color:t.axisLineColor}},a={lineStyle:{color:t.axisLineColor}},l={type:"category",data:e.labels,axisLine:r,axisTick:o,axisLabel:n},s={type:"value",axisLine:r,axisTick:o,axisLabel:n,splitLine:a},c=e.datasets.map(h=>{const d=e.type==="line"?"line":e.type==="bar"||e.type==="bar-horizontal"?"bar":h.type??"bar";return{name:h.label,type:d,data:h.data,...h.color?{itemStyle:{color:h.color}}:{}}});return{color:t.palette,legend:i,tooltip:{trigger:"axis"},grid:{containLabel:!0},xAxis:C?s:l,yAxis:C?l:s,series:c}}const JD=["aria-label"],tP=r1(g.defineComponent({__name:"Chart",props:{type:{},datasets:{default:()=>[]},labels:{default:()=>[]},height:{default:200},width:{default:320}},setup(e){N9([AT,LT,aT,fD,nD,EA,XD]);const t=e,i=g.ref(null);let C=null,n=null;function r(){return{palette:qD(),legendColor:jD(),fontFamily:Ci("--font-family-base","Roboto, sans-serif"),axisLineColor:KD()}}function o(){C&&C.setOption(QD({type:t.type,datasets:t.datasets,labels:t.labels},r()),!0)}return g.onMounted(()=>{i.value&&(C=rN(i.value,null,{renderer:"svg",width:t.width,height:t.height}),o(),n=new MutationObserver(()=>o()),n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))}),g.watch(()=>[t.type,t.datasets,t.labels],o,{deep:!0}),g.watch(()=>[t.width,t.height],()=>{C==null||C.resize({width:t.width,height:t.height})}),g.onUnmounted(()=>{C==null||C.dispose(),C=null,n==null||n.disconnect()}),(a,l)=>(g.openBlock(),g.createElementBlock("div",{class:"tvu-chart",role:"img","aria-label":a.$attrs["aria-label"]??`${e.type} chart`},[g.createElementVNode("div",{ref_key:"chartRef",ref:i,class:"tvu-chart__view",style:g.normalizeStyle({width:`${e.width}px`,height:`${e.height}px`})},null,4)],8,JD))}}),[["__scopeId","data-v-ab545246"]]),Bc=g.defineComponent({__name:"Chart",props:{type:{},datasets:{default:()=>[]},labels:{default:()=>[]},height:{default:200},width:{default:320}},setup(e){const t=e,i=g.computed(()=>({"data-figma-component":"Chart","data-figma-type":t.type}));return(C,n)=>(g.openBlock(),g.createBlock(tP,g.mergeProps(i.value,{type:e.type,datasets:e.datasets,labels:e.labels,height:e.height,width:e.width}),null,16,["type","datasets","labels","height","width"]))}}),eP={class:"progress__track","data-figma-node-id":"4915:7195"},iP={key:0,class:"progress__label"},CP=r1(g.defineComponent({__name:"Progress",props:{value:{default:0},status:{default:"default"},size:{default:"m"},theme:{default:"dark"},showLabel:{type:Boolean,default:!0}},setup(e){const t=e,i=g.computed(()=>Math.min(100,Math.max(0,t.value))),C=g.computed(()=>t.size==="s"||t.size==="S"?"S":"M"),n=g.computed(()=>{switch(t.status){case"error":return"var(--red)";case"warning":return"var(--orange)";case"success":case"default":default:return"var(--brand)"}}),r=g.computed(()=>C.value==="S"?"var(--progress-track-h-s)":"var(--progress-track-h-m)"),o=g.computed(()=>({"--progress-fill-color":n.value,"--progress-track-height":r.value}));return(a,l)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["progress",[`progress--${C.value}`]]),style:g.normalizeStyle(o.value)},[g.createElementVNode("div",eP,[g.createElementVNode("div",{class:"progress__fill","data-figma-node-id":"4915:7196",style:g.normalizeStyle({width:`${i.value}%`})},null,4)]),e.showLabel?(g.openBlock(),g.createElementBlock("span",iP,g.toDisplayString(i.value)+"%",1)):g.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-b993e7e3"]]),Nc=g.defineComponent({__name:"Progress",props:{size:{default:"M"},status:{default:"default"},theme:{default:"dark"},value:{default:60},showLabel:{type:Boolean,default:!0}},setup(e){const t=e,i=g.computed(()=>({"data-figma-component":"Progress","data-figma-size":t.size,"data-figma-status":t.status,"data-figma-theme":t.theme}));return(C,n)=>(g.openBlock(),g.createBlock(CP,g.mergeProps(i.value,{value:e.value,status:e.status,theme:e.theme,size:e.size,"show-label":e.showLabel}),null,16,["value","status","theme","size","show-label"]))}}),nP=["disabled","aria-pressed","aria-label","onMouseenter","onFocus","onClick"],rP=r1(g.defineComponent({__name:"Rating",props:{modelValue:{default:1},value:{default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","update:value"],setup(e,{emit:t}){const i=e,C=t,n=g.ref(0),r=[1,2,3,4,5];function o(d){return Math.min(5,Math.max(1,d))}const a=g.computed(()=>{const d=i.value??i.modelValue;return o(Number(d??1))}),l=g.computed(()=>n.value||a.value);function s(d){!i.readonly&&!i.disabled&&(n.value=d)}function c(){n.value=0}function h(d){if(i.readonly||i.disabled)return;const u=o(d);C("update:modelValue",u),C("update:value",String(u))}return(d,u)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["rating",{"rating--disabled":e.disabled,"rating--readonly":e.readonly}])},[(g.openBlock(),g.createElementBlock(g.Fragment,null,g.renderList(r,f=>g.createElementVNode("button",{key:f,type:"button",class:g.normalizeClass(["rating__star rating-star",{"rating__star--on":f<=l.value,"rating-star--on":f<=l.value,"rating-star--off":f>l.value}]),disabled:e.disabled,"aria-pressed":f<=a.value,"aria-label":`rating ${f}`,onMouseenter:p=>s(f),onMouseleave:c,onFocus:p=>s(f),onBlur:c,onClick:p=>h(f)},[g.createVNode(a1,{name:f<=l.value?"mark/star-on":"mark/star",size:24,class:"rating__icon","aria-hidden":"true"},null,8,["name"])],42,nP)),64))],2))}}),[["__scopeId","data-v-f79cd95e"]]),kc=g.defineComponent({__name:"Rating",props:{value:{default:"1"},readonly:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>({"data-figma-component":"Rating","data-figma-value":i.value}));return(r,o)=>(g.openBlock(),g.createBlock(rP,g.mergeProps(n.value,{value:e.value,readonly:e.readonly,"onUpdate:value":o[0]||(o[0]=a=>C("update:value",a))}),null,16,["value","readonly"]))}}),Tc=g.defineComponent({__name:"SelectBoxLine",props:{modelValue:{default:""},placeholder:{default:""},options:{default:()=>[]},darkTheme:{default:"on"},status:{default:"Placeholder"},enable:{default:"on"},ux:{default:"default"},size:{default:"M"},feature:{default:"default"},multiple:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t;return(C,n)=>(g.openBlock(),g.createBlock(i8,{"model-value":e.modelValue,placeholder:e.placeholder,options:e.options,variant:"line","dark-theme":e.darkTheme,status:e.status,enable:e.enable,ux:e.ux,size:e.size,feature:e.feature,multiple:e.multiple,editable:e.editable,"onUpdate:modelValue":n[0]||(n[0]=r=>i("update:modelValue",r))},null,8,["model-value","placeholder","options","dark-theme","status","enable","ux","size","feature","multiple","editable"]))}}),oP=["min","max","step","value","disabled","aria-label"],aP={key:0,class:"slider__value"},lP=r1(g.defineComponent({__name:"Slider",props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},size:{default:"m"},theme:{default:"dark"},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>i.size==="s"?"s":"m"),r=g.computed(()=>Math.min(i.max,Math.max(i.min,i.modelValue??i.min))),o=g.computed(()=>{const s=i.max-i.min;return s===0?0:(r.value-i.min)/s*100}),a=g.computed(()=>({background:`linear-gradient(to right, var(--slider-fill-color) 0%, var(--slider-fill-color) ${o.value}%, var(--slider-track-bg) ${o.value}%, var(--slider-track-bg) 100%)`}));function l(s){const c=s.target;C("update:modelValue",Number(c.value))}return(s,c)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["slider",[`slider--${e.theme}`,`slider--${n.value}`,{"slider--disabled":e.disabled,"slider--value-hidden":!e.showValue}]])},[g.createElementVNode("input",{class:g.normalizeClass(["slider__input",`slider__input--${n.value}`]),type:"range",min:e.min,max:e.max,step:e.step,value:r.value,disabled:e.disabled,style:g.normalizeStyle(a.value),"aria-label":s.$attrs["aria-label"]??"slider",onInput:l},null,46,oP),e.showValue?(g.openBlock(),g.createElementBlock("span",aP,g.toDisplayString(r.value),1)):g.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-c7a9b4ab"]]),Ac=g.defineComponent({__name:"Slider",props:{size:{default:"M"},theme:{default:"dark"},modelValue:{default:60},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>({"data-figma-component":"Slider","data-figma-size":i.size,"data-figma-theme":i.theme}));return(r,o)=>(g.openBlock(),g.createBlock(lP,g.mergeProps(n.value,{"model-value":e.modelValue,min:e.min,max:e.max,step:e.step,disabled:e.disabled,"show-value":e.showValue,theme:e.theme,size:e.size==="S"?"s":"m","onUpdate:modelValue":o[0]||(o[0]=a=>C("update:modelValue",a))}),null,16,["model-value","min","max","step","disabled","show-value","theme","size"]))}}),sP=r1(g.defineComponent({__name:"Steps",props:{active:{default:void 0},current:{default:0},direction:{default:"horizontal"},stepStyle:{default:"number"}},setup(e){const t=e;return g.provide("stepCurrent",g.computed(()=>t.active??t.current)),g.provide("stepDirection",g.computed(()=>t.direction)),g.provide("stepStyle",g.computed(()=>t.stepStyle)),(i,C)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["steps",`steps--${e.direction}`])},[g.renderSlot(i.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-5c6db75c"]]),Dc=g.defineComponent({__name:"Steps",props:{active:{default:void 0},current:{default:0},direction:{default:"horizontal"},type:{default:"number"}},setup(e){const t=g.useAttrs(),i=e,C=g.computed(()=>({"data-figma-component":"Step/Item","data-figma-capability":"Steps","data-figma-direction":i.direction}));return(n,r)=>(g.openBlock(),g.createBlock(sP,g.mergeProps({...g.unref(t),...C.value},{active:e.active,current:e.current,direction:e.direction,"step-style":e.type}),{default:g.withCtx(()=>[g.renderSlot(n.$slots,"default")]),_:3},16,["active","current","direction","step-style"]))}}),cP={key:1,class:"step-num"},hP={key:1,class:"step-vertical"},uP={class:"step-vertical__column"},dP={class:"step-marker step-marker--number","data-figma-node-id":"4943:7269"},fP={key:1,class:"step-num"},gP={class:"step-vertical__content"},pP={class:"step-title"},vP={key:0,class:"step-desc"},mP={class:"step-title"},wP={key:0,class:"step-desc"},HP=r1(g.defineComponent({__name:"StepItem",props:{title:{default:"Step Title"},description:{default:""},direction:{default:void 0},iconName:{default:void 0},index:{default:0},showLeadingConnector:{type:Boolean,default:!0},showTrailingConnector:{type:Boolean,default:!0},state:{default:void 0},stepStyle:{default:void 0},style:{default:void 0}},setup(e){const t=e,i=g.inject("stepCurrent",null),C=g.inject("stepDirection",null),n=g.inject("stepStyle",null),r=g.computed(()=>t.direction??(C==null?void 0:C.value)??"horizontal"),o=g.computed(()=>{if(t.state)return t.state;const u=(i==null?void 0:i.value)??0;return t.indexr.value==="vertical"?"number":t.stepStyle?t.stepStyle:typeof t.style=="string"?t.style:(n==null?void 0:n.value)??"number"),l=g.computed(()=>String(t.index+1)),s={completed:"feature/recently-used",active:"feature/demo",pending:"feature/ai-frame-interpolation"},c=g.computed(()=>t.iconName??s[o.value]),h=g.computed(()=>[r.value==="vertical"?"step-line--vertical":"step-line--horizontal",o.value==="completed"&&a.value==="number"?"step-line--completed":""]),d=g.computed(()=>[r.value==="vertical"?"step-line--vertical":"step-line--horizontal"]);return(u,f)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["step-item",[`step-item--${r.value}`,`step-item--${o.value}`,`step-item--${a.value}`]])},[r.value==="horizontal"?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["step-track step-track--horizontal",`step-track--${a.value}`])},[e.showLeadingConnector?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["step-line",h.value]),"data-figma-node-id":"4943:7246"},null,2)):g.createCommentVNode("",!0),g.createElementVNode("div",{class:g.normalizeClass(["step-marker",`step-marker--${a.value}`])},[a.value==="number"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},[o.value==="completed"?(g.openBlock(),g.createBlock(a1,{key:0,name:"action/selected",class:"step-check"})):(g.openBlock(),g.createElementBlock("span",cP,g.toDisplayString(l.value),1))],64)):(g.openBlock(),g.createBlock(a1,{key:1,name:c.value,class:"step-feature-icon","aria-hidden":"true"},null,8,["name"]))],2),e.showTrailingConnector?(g.openBlock(),g.createElementBlock("div",{key:1,class:g.normalizeClass(["step-line",d.value])},null,2)):g.createCommentVNode("",!0)],2)):(g.openBlock(),g.createElementBlock("div",hP,[g.createElementVNode("div",uP,[g.createElementVNode("div",dP,[o.value==="completed"?(g.openBlock(),g.createBlock(a1,{key:0,name:"action/selected",class:"step-check"})):(g.openBlock(),g.createElementBlock("span",fP,g.toDisplayString(l.value),1))]),e.showTrailingConnector?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["step-line",d.value])},null,2)):g.createCommentVNode("",!0)]),g.createElementVNode("div",gP,[g.createElementVNode("p",pP,g.toDisplayString(e.title),1),e.description?(g.openBlock(),g.createElementBlock("p",vP,g.toDisplayString(e.description),1)):g.createCommentVNode("",!0)])])),r.value==="horizontal"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},[g.createElementVNode("p",mP,g.toDisplayString(e.title),1),e.description?(g.openBlock(),g.createElementBlock("p",wP,g.toDisplayString(e.description),1)):g.createCommentVNode("",!0)],64)):g.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-0b474348"]]),Pc=g.defineComponent({__name:"StepItem",props:{description:{default:""},direction:{default:void 0},iconName:{default:void 0},index:{default:0},showLeadingConnector:{type:Boolean,default:!0},showTrailingConnector:{type:Boolean,default:!0},state:{default:void 0},type:{default:void 0},title:{default:"Step Title"}},setup(e){const t=e,i=g.computed(()=>t.type),C=g.computed(()=>({"data-figma-component":"Step/Item","data-figma-direction":t.direction,"data-figma-state":t.state,"data-figma-style":t.direction==="vertical"?"number":i.value}));return(n,r)=>(g.openBlock(),g.createBlock(HP,g.mergeProps(C.value,{title:e.title,description:e.description,direction:e.direction,"icon-name":e.iconName,index:e.index,"show-leading-connector":e.showLeadingConnector,"show-trailing-connector":e.showTrailingConnector,state:e.state,"step-style":i.value}),null,16,["title","description","direction","icon-name","index","show-leading-connector","show-trailing-connector","state","step-style"]))}}),VP={class:"tbl-head"},LP={class:"tbl-cell__content"},MP={class:"tbl-body"},ZP={class:"tbl-cell__content"},yP=r1(g.defineComponent({__name:"Table",props:{columns:{default:()=>[]},data:{default:()=>[]},striped:{type:Boolean,default:!1}},setup(e){return(t,i)=>(g.openBlock(),g.createElementBlock("table",{class:g.normalizeClass(["tbl",{"tbl--striped":e.striped}])},[g.createElementVNode("thead",VP,[g.createElementVNode("tr",null,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.columns,C=>(g.openBlock(),g.createElementBlock("th",{scope:"col",key:C.key,class:g.normalizeClass(["tbl-cell",`tbl-cell--${C.align??"left"}`]),"data-figma-node-id":"4265:16134",style:g.normalizeStyle(C.width?{width:typeof C.width=="number"?`${C.width}px`:C.width}:void 0)},[g.createElementVNode("span",LP,[C.showLeftIcon?(g.openBlock(),g.createBlock(a1,{key:0,name:C.leftIconName??"arrow/dropdown",class:"tbl-cell__icon"},null,8,["name"])):g.createCommentVNode("",!0),g.createElementVNode("span",null,g.toDisplayString(C.title),1),C.showRightIcon?(g.openBlock(),g.createBlock(a1,{key:1,name:C.rightIconName??"arrow/sorting",class:"tbl-cell__icon"},null,8,["name"])):g.createCommentVNode("",!0)])],6))),128))])]),g.createElementVNode("tbody",MP,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.data,(C,n)=>(g.openBlock(),g.createElementBlock("tr",{key:n,class:"tbl-row"},[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.columns,r=>(g.openBlock(),g.createElementBlock("td",{key:r.key,class:g.normalizeClass(["tbl-cell",`tbl-cell--${r.align??"left"}`])},[g.createElementVNode("span",ZP,[r.showLeftIcon?(g.openBlock(),g.createBlock(a1,{key:0,name:r.leftIconName??"arrow/dropdown",class:"tbl-cell__icon"},null,8,["name"])):g.createCommentVNode("",!0),g.createElementVNode("span",null,g.toDisplayString(C[r.key]),1),r.showRightIcon?(g.openBlock(),g.createBlock(a1,{key:1,name:r.rightIconName??"edit/copy",class:"tbl-cell__icon"},null,8,["name"])):g.createCommentVNode("",!0)])],2))),128))]))),128))])],2))}}),[["__scopeId","data-v-848bd58d"]]),Ec=g.defineComponent({__name:"Table",props:{align:{default:"Center"},type:{default:"Header"},columns:{default:()=>[]},data:{default:()=>[]},striped:{type:Boolean,default:!1}},setup(e){const t=e,i=g.computed(()=>t.columns.map(n=>({...n,align:n.align??t.align.toLowerCase()}))),C=g.computed(()=>({"data-figma-component":"Table","data-figma-align":t.align,"data-figma-type":t.type}));return(n,r)=>(g.openBlock(),g.createBlock(yP,g.mergeProps(C.value,{columns:i.value,data:e.data,striped:e.striped||e.type==="Tbody"}),null,16,["columns","data","striped"]))}}),xP=r1(g.defineComponent({__name:"Tab",props:{modelValue:{},type:{default:"line"},activeColor:{default:"white"}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t;function n(r){C("update:modelValue",r)}return g.provide("tabType",g.computed(()=>i.type)),g.provide("tabActiveColor",g.computed(()=>i.activeColor)),g.provide("tabActiveValue",g.computed(()=>i.modelValue)),g.provide("tabSelectTab",n),(r,o)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["tab",[`tab--${e.type}`]])},[g.renderSlot(r.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-046befe6"]]),Oc=g.defineComponent({__name:"Tab",props:{modelValue:{default:"overview"},fill:{default:"Line"},color:{default:"White"}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>i.fill.toLowerCase()),r=g.computed(()=>i.color.toLowerCase()),o=g.computed(()=>({"data-figma-component":"Tab","data-figma-type":i.fill,"data-figma-property2":i.color}));return(a,l)=>(g.openBlock(),g.createBlock(xP,g.mergeProps(o.value,{"model-value":e.modelValue,type:n.value,"active-color":r.value,"onUpdate:modelValue":l[0]||(l[0]=s=>C("update:modelValue",s))}),{default:g.withCtx(()=>[g.renderSlot(a.$slots,"default")]),_:3},16,["model-value","type","active-color"]))}}),_P=["aria-selected","aria-disabled","tabindex"],Fc=r1(g.defineComponent({__name:"TabItem",props:{value:{},disabled:{type:Boolean,default:!1},type:{},state:{},activeColor:{}},setup(e){const t=e,i=g.inject("tabType"),C=g.inject("tabActiveColor"),n=g.inject("tabActiveValue"),r=g.inject("tabSelectTab",()=>{}),o=g.computed(()=>t.state?t.state==="active":(n==null?void 0:n.value)===t.value),a=g.computed(()=>t.type??(i==null?void 0:i.value)??"line"),l=g.computed(()=>t.activeColor??(C==null?void 0:C.value)??"white");function s(){t.disabled||r(t.value)}function c(h){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s())}return(h,d)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["tab-item",[`tab-item--${a.value}`,o.value?"tab-item--active":"tab-item--normal",o.value&&`tab-item--active-${l.value}`,e.disabled&&"tab-item--disabled"]]),role:"tab","aria-selected":o.value,"aria-disabled":e.disabled||void 0,tabindex:o.value&&!e.disabled?0:-1,onClick:s,onKeydown:c},[g.renderSlot(h.$slots,"default",{},void 0,!0)],42,_P))}}),[["__scopeId","data-v-9dbec4c7"]]),Rc=g.defineComponent({__name:"TabItem",props:{disabled:{type:Boolean,default:!1},state:{default:"Normal"},color:{default:"White"},fill:{default:"Line"},value:{default:"overview"}},setup(e){const t=e,i=g.computed(()=>t.fill.toLowerCase()),C=g.computed(()=>t.state.toLowerCase()),n=g.computed(()=>t.color.toLowerCase()),r=g.computed(()=>({"data-figma-component":"TabItem","data-figma-property1":t.state,"data-figma-property2":t.color,"data-figma-type":t.fill}));return(o,a)=>(g.openBlock(),g.createBlock(Fc,g.mergeProps(r.value,{value:e.value,disabled:e.disabled,type:i.value,state:C.value,"active-color":n.value}),{default:g.withCtx(()=>[g.renderSlot(o.$slots,"default")]),_:3},16,["value","disabled","type","state","active-color"]))}}),IP={class:"tab-list__items"},bP=r1(g.defineComponent({__name:"TabList",props:{modelValue:{},items:{},type:{default:"line"},activeColor:{default:"white"}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>i.type),r=g.computed(()=>i.activeColor),o=g.computed(()=>i.modelValue);return g.provide("tabType",n),g.provide("tabActiveColor",r),g.provide("tabActiveValue",o),g.provide("tabSelectTab",a=>C("update:modelValue",a)),(a,l)=>(g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["tab-list",[`tab-list--${e.type}`]])},[g.createElementVNode("div",IP,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.items,s=>(g.openBlock(),g.createBlock(Fc,{key:s.value,value:s.value,disabled:s.disabled},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(s.label),1)]),_:2},1032,["value","disabled"]))),128))])],2))}}),[["__scopeId","data-v-8e69ff7e"]]),zc=g.defineComponent({__name:"TabList",props:{items:{default:()=>[{label:"Overview",value:"overview"},{label:"Sources",value:"sources"},{label:"Monitor",value:"monitor"}]},modelValue:{default:"overview"},fill:{default:"Line"}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,C=t,n=g.computed(()=>i.fill.toLowerCase()),r=g.computed(()=>({"data-figma-component":"TabList","data-figma-type":i.fill}));return(o,a)=>(g.openBlock(),g.createBlock(bP,g.mergeProps(r.value,{items:e.items,"model-value":e.modelValue,type:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>C("update:modelValue",l))}),{default:g.withCtx(()=>[g.renderSlot(o.$slots,"default")]),_:3},16,["items","model-value","type"]))}}),SP={class:"topbar-brand"},BP={key:0,class:"topbar-title"},NP={key:0,class:"topbar-search"},kP={key:1,class:"topbar-menu"},TP={class:"topbar-right"},AP=r1(g.defineComponent({__name:"TopBar",props:{title:{},tag:{default:"After Login"},showMenu:{type:Boolean,default:!1},showSearchBox:{type:Boolean,default:!1}},setup(e){const t=e,i=g.computed(()=>t.tag==="Before Login"?"before-login":"after-login");return(C,n)=>(g.openBlock(),g.createElementBlock("header",{class:g.normalizeClass(["topbar",`topbar--${i.value}`])},[g.createElementVNode("div",SP,[g.renderSlot(C.$slots,"logo",{},void 0,!0),e.title?(g.openBlock(),g.createElementBlock("span",BP,g.toDisplayString(e.title),1)):g.createCommentVNode("",!0),g.renderSlot(C.$slots,"left",{},void 0,!0)]),e.showSearchBox?(g.openBlock(),g.createElementBlock("div",NP,[g.renderSlot(C.$slots,"search",{},void 0,!0)])):g.createCommentVNode("",!0),e.showMenu?(g.openBlock(),g.createElementBlock("div",kP,[g.renderSlot(C.$slots,"menu",{},void 0,!0)])):g.createCommentVNode("",!0),g.createElementVNode("div",TP,[g.renderSlot(C.$slots,"right-content",{},void 0,!0)])],2))}}),[["__scopeId","data-v-77e3cace"]]),$c=g.defineComponent({__name:"TopBar",props:{tag:{default:"After Login"},title:{default:"Product Name"},showMenu:{type:Boolean,default:!1},showSearchBox:{type:Boolean,default:!1}},setup(e){const t=e,i=g.computed(()=>({"data-figma-component":"TopBar","data-figma-tag":t.tag}));return(C,n)=>(g.openBlock(),g.createBlock(AP,g.mergeProps(i.value,{tag:e.tag,title:e.title,"show-menu":e.showMenu,"show-search-box":e.showSearchBox}),{logo:g.withCtx(()=>[g.renderSlot(C.$slots,"logo")]),left:g.withCtx(()=>[g.renderSlot(C.$slots,"left")]),search:g.withCtx(()=>[g.renderSlot(C.$slots,"search")]),menu:g.withCtx(()=>[g.renderSlot(C.$slots,"menu")]),"right-content":g.withCtx(()=>[g.renderSlot(C.$slots,"right-content")]),_:3},16,["tag","title","show-menu","show-search-box"]))}}),DP=["aria-describedby"],PP=["aria-describedby"],EP=["id"],OP={class:"tooltip-content"},FP=r1(g.defineComponent({__name:"Tooltip",props:{content:{},placement:{default:"bottom"},theme:{default:"light"},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},setup(e){const t=e,i=g.useSlots(),C=g.ref(!1),n=g.ref(!1),r=g.useId(),o=g.computed(()=>t.open||!t.disabled&&(C.value||n.value)),a=g.computed(()=>!!i.default);return(l,s)=>(g.openBlock(),g.createElementBlock("div",{class:"tooltip-wrap",onMouseenter:s[0]||(s[0]=c=>C.value=!0),onMouseleave:s[1]||(s[1]=c=>C.value=!1),onFocusin:s[2]||(s[2]=c=>n.value=!0),onFocusout:s[3]||(s[3]=c=>n.value=!1)},[a.value?(g.openBlock(),g.createElementBlock("span",{key:0,class:"tooltip-trigger","aria-describedby":g.unref(r)},[g.renderSlot(l.$slots,"default",{},void 0,!0)],8,DP)):(g.openBlock(),g.createElementBlock("span",{key:1,class:"tooltip-anchor",tabindex:"0","aria-describedby":g.unref(r)},null,8,PP)),g.withDirectives(g.createElementVNode("div",{id:g.unref(r),class:g.normalizeClass(["tooltip-box",[`tooltip-box--${e.placement}`,`tooltip-box--${e.theme}`]]),role:"tooltip"},[g.createElementVNode("span",OP,[g.renderSlot(l.$slots,"content",{},()=>[g.createTextVNode(g.toDisplayString(e.content),1)],!0)]),g.createElementVNode("span",{class:g.normalizeClass(["tooltip-arrow",[`tooltip-arrow--${e.placement}`,`tooltip-arrow--${e.theme}`]])},null,2)],10,EP),[[g.vShow,o.value]])],32))}}),[["__scopeId","data-v-51de9114"]]),Gc=g.defineComponent({__name:"Tooltip",props:{darkTheme:{default:"off"},pointing:{default:"Center down"},content:{default:"Description"},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},setup(e){const t=e,i=g.computed(()=>({"Center down":"bottom","Center up":"top","left down":"bottom-start","left up":"top-start","right down":"bottom-end","right up":"top-end"})[t.pointing]),C=g.computed(()=>({"data-figma-component":"Tooltip","data-figma-dark-theme":t.darkTheme,"data-figma-pointing":t.pointing})),n=t8("content");return(r,o)=>(g.openBlock(),g.createBlock(FP,g.mergeProps(C.value,{content:e.content,disabled:e.disabled,open:e.open,placement:i.value,theme:e.darkTheme==="on"?"dark":"light"}),g.createSlots({default:g.withCtx(()=>[g.renderSlot(r.$slots,"default")]),_:2},[g.unref(n)?{name:"content",fn:g.withCtx(()=>[g.renderSlot(r.$slots,"content")]),key:"0"}:void 0]),1040,["content","disabled","open","placement","theme"]))}}),RP={key:0,class:"pill__dot","aria-hidden":"true"},zP={class:"pill__label"},$P={key:1,class:"pill__count"},Uc=r1(g.defineComponent({__name:"Pill",props:{dotColor:{default:"grey"},bgColor:{default:"grey"},showDot:{type:Boolean,default:!0},bgCss:{},dotCss:{},borderCss:{},textCss:{}},setup(e){const t=e,i=g.computed(()=>({brand:"var(--brand)",red:"var(--red)",blue:"var(--blue)",orange:"var(--orange)",grey:"var(--text-tips)"})[t.dotColor]),C=g.computed(()=>({brand:"var(--msg-bg-brand)",red:"var(--msg-bg-red)",blue:"var(--msg-bg-blue)",grey:"var(--msg-bg-grey)"})[t.bgColor]),n=g.computed(()=>({"--pill-bg":t.bgCss??C.value,"--pill-dot":t.dotCss??i.value,"--pill-border":t.borderCss??"transparent","--pill-text":t.textCss??"var(--text-body)"}));return(r,o)=>(g.openBlock(),g.createElementBlock("span",{class:"pill",style:g.normalizeStyle(n.value)},[e.showDot?(g.openBlock(),g.createElementBlock("span",RP)):g.createCommentVNode("",!0),g.createElementVNode("span",zP,[g.renderSlot(r.$slots,"default",{},void 0,!0)]),r.$slots.count?(g.openBlock(),g.createElementBlock("span",$P,[g.renderSlot(r.$slots,"count",{},void 0,!0)])):g.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-8aeddc5d"]]),Wc=g.defineComponent({__name:"PillStatus",props:{status:{default:"On-air"},active:{type:Boolean,default:!0},count:{default:void 0}},setup(e){const t=e,i={"On-air":"var(--red)",Preview:"var(--brand)",Analyzing:"var(--blue)",Inactive:"var(--color-grey-7)"},C={"On-air":"var(--red)",Preview:"var(--brand)",Analyzing:"var(--blue)",Inactive:"var(--line-deep)"},n=g.computed(()=>{if(t.active){const a=i[t.status];return{bgCss:`color-mix(in srgb, ${C[t.status]} 18%, transparent)`,borderCss:a,dotCss:a,textCss:a}}return{bgCss:"var(--bg-layer3)",borderCss:"var(--line-deep)",dotCss:"var(--color-grey-7)",textCss:"var(--text-tips)"}}),r=g.computed(()=>({"data-figma-component":"Pill Status","data-figma-status":t.status,"data-figma-active":String(t.active)})),o=g.computed(()=>t.count!==void 0&&t.count!==null&&t.count!=="");return(a,l)=>(g.openBlock(),g.createBlock(Uc,g.mergeProps(r.value,{"bg-css":n.value.bgCss,"border-css":n.value.borderCss,"dot-css":n.value.dotCss,"text-css":n.value.textCss}),g.createSlots({default:g.withCtx(()=>[g.renderSlot(a.$slots,"default",{},()=>[g.createTextVNode(g.toDisplayString(e.status),1)])]),_:2},[o.value?{name:"count",fn:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(e.count),1)]),key:"0"}:void 0]),1040,["bg-css","border-css","dot-css","text-css"]))}}),Yc=g.defineComponent({__name:"PillCounter",props:{kind:{default:"neutral"}},setup(e){const t=e,i=g.computed(()=>{switch(t.kind){case"success":return{bgColor:"brand",dotColor:"brand"};case"warning":return{bgColor:"red",dotColor:"red"};case"info":return{bgColor:"blue",dotColor:"blue"};case"neutral":default:return{bgColor:"grey",dotColor:"grey"}}}),C=g.computed(()=>({"data-figma-component":"Pill/Counter","data-figma-kind":t.kind}));return(n,r)=>(g.openBlock(),g.createBlock(Uc,g.mergeProps(C.value,{"bg-color":i.value.bgColor,"dot-color":i.value.dotColor}),{default:g.withCtx(()=>[g.renderSlot(n.$slots,"default")]),_:3},16,["bg-color","dot-color"]))}}),GP=["aria-labelledby"],UP={class:"popup-box__header"},WP={key:1,class:"popup-box__title","aria-hidden":"true"},YP=["aria-label"],XP={class:"popup-box__body"},qP={key:0,class:"popup-box__footer"},Xc=r1(g.defineComponent({__name:"PopupBox",props:{visible:{type:Boolean,default:!1},title:{},theme:{default:"dark"},width:{default:680},closable:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"}},emits:["close","cancel","confirm","update:visible"],setup(e,{emit:t}){const i=f9(),C=e,n=t,r=`popup-box-title-${Math.random().toString(36).slice(2)}`,o=g.ref(null),a=g.ref(null);let l="",s=!1;const c=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),h=g.computed(()=>typeof C.width=="number"?`${C.width}px`:C.width);function d(){return o.value?Array.from(o.value.querySelectorAll(c)).filter(M=>!M.hasAttribute("disabled")&&M.tabIndex!==-1):[]}function u(){n("update:visible",!1)}function f(){n("close"),u()}function p(){n("cancel"),u()}function v(){n("confirm"),u()}function m(){C.closeOnBackdrop&&C.closable&&f()}function w(M){var B;if(M.key==="Escape"&&C.closeOnEscape&&C.closable){M.preventDefault(),f();return}if(M.key!=="Tab")return;const y=d();if(y.length===0){M.preventDefault(),(B=o.value)==null||B.focus();return}const I=y[0],x=y[y.length-1],_=document.activeElement;if(M.shiftKey&&_===I){M.preventDefault(),x.focus();return}!M.shiftKey&&_===x&&(M.preventDefault(),I.focus())}function H(){s||typeof document>"u"||(l=document.body.style.overflow,document.body.style.overflow="hidden",s=!0)}function V(){!s||typeof document>"u"||(document.body.style.overflow=l,s=!1)}function Z(){typeof window>"u"||typeof document>"u"||(a.value=document.activeElement instanceof HTMLElement?document.activeElement:null,H(),window.addEventListener("keydown",w),g.nextTick(()=>{window.requestAnimationFrame(()=>{var y;(y=d()[0]??o.value)==null||y.focus()})}))}function L(M=!0){var y;typeof window<"u"&&window.removeEventListener("keydown",w),V(),M&&((y=a.value)==null||y.focus()),a.value=null}return g.watch(()=>C.visible,(M,y)=>{if(M&&y!==!0){Z();return}!M&&y===!0&&L()},{immediate:!0}),g.onBeforeUnmount(()=>L()),(M,y)=>e.visible?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["popup-overlay",`popup-overlay--${e.theme}`]),onClick:g.withModifiers(m,["self"])},[g.createElementVNode("div",{ref_key:"dialogEl",ref:o,class:g.normalizeClass(["popup-box",`popup-box--${e.theme}`]),style:g.normalizeStyle({width:h.value}),role:"dialog","aria-modal":"true","aria-labelledby":e.title?r:void 0,tabindex:"-1"},[g.createElementVNode("header",UP,[e.title?(g.openBlock(),g.createElementBlock("h2",{key:0,id:r,class:"popup-box__title"},g.toDisplayString(e.title),1)):(g.openBlock(),g.createElementBlock("span",WP)),e.closable?(g.openBlock(),g.createElementBlock("button",{key:2,class:"popup-box__close",type:"button","aria-label":g.unref(i).close,"data-figma-node-id":"1869:68902",onClick:f},[g.createVNode(a1,{name:"action/close",size:12})],8,YP)):g.createCommentVNode("",!0)]),g.createElementVNode("div",XP,[g.renderSlot(M.$slots,"default",{},void 0,!0)]),e.showFooter?(g.openBlock(),g.createElementBlock("footer",qP,[g.renderSlot(M.$slots,"footer",{},()=>[e.hideCancel?g.createCommentVNode("",!0):(g.openBlock(),g.createBlock(e9,{key:0,"canonical-style":"ghost","canonical-color":"gray 1","canonical-size":"M","canonical-theme":e.theme,onClick:p},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(e.cancelText),1)]),_:1},8,["canonical-theme"])),g.createVNode(e9,{"canonical-style":"filling","canonical-color":"green","canonical-size":"M","canonical-theme":e.theme,onClick:v},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(e.confirmText),1)]),_:1},8,["canonical-theme"])],!0)])):g.createCommentVNode("",!0)],14,GP)],2)):g.createCommentVNode("",!0)}}),[["__scopeId","data-v-3d48ed2c"]]),jP=g.defineComponent({__name:"PopupBox",props:{theme:{default:"dark"},visible:{type:Boolean,default:!1},title:{},width:{default:680},closable:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},cancelText:{},confirmText:{}},emits:["close","cancel","confirm","update:visible"],setup(e){const t=e,i=t8("footer"),C=g.computed(()=>({"data-figma-component":"Popup Box","data-figma-theme":t.theme}));return(n,r)=>(g.openBlock(),g.createBlock(g.Teleport,{to:"body"},[g.createVNode(Xc,g.mergeProps(C.value,{theme:e.theme,visible:e.visible,title:e.title,width:e.width,closable:e.closable,"close-on-backdrop":e.closeOnBackdrop,"close-on-escape":e.closeOnEscape,"show-footer":e.showFooter,"cancel-text":e.cancelText,"confirm-text":e.confirmText,onClose:r[0]||(r[0]=o=>{n.$emit("close"),n.$emit("update:visible",!1)}),onCancel:r[1]||(r[1]=o=>{n.$emit("cancel"),n.$emit("update:visible",!1)}),onConfirm:r[2]||(r[2]=o=>{n.$emit("confirm"),n.$emit("update:visible",!1)}),"onUpdate:visible":r[3]||(r[3]=o=>n.$emit("update:visible",o))}),g.createSlots({default:g.withCtx(()=>[g.renderSlot(n.$slots,"default")]),_:2},[g.unref(i)?{name:"footer",fn:g.withCtx(()=>[g.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["theme","visible","title","width","closable","close-on-backdrop","close-on-escape","show-footer","cancel-text","confirm-text"])]))}});function KP(e){if(e!=null)return typeof e=="string"||typeof e=="object"&&"type"in e?e:g.h(e)}function ni(e={}){if(typeof document>"u")return{close:()=>{}};const t=document.createElement("div");document.body.appendChild(t);let i=null,C=!1;function n(){var o;i&&(i.unmount(),i=null),(o=t.parentNode)==null||o.removeChild(t)}function r(o){var a,l,s;C||(C=!0,o==="close"&&((a=e.onClose)==null||a.call(e)),o==="cancel"&&((l=e.onCancel)==null||l.call(e)),o==="confirm"&&((s=e.onConfirm)==null||s.call(e)),n())}return i=g.createApp({render:()=>g.h(Xc,{visible:!0,title:e.title,theme:e.theme??"dark",width:e.width,closable:e.closable??!0,closeOnBackdrop:e.closeOnBackdrop??!1,closeOnEscape:e.closeOnEscape??!0,showFooter:e.showFooter??!0,hideCancel:e.hideCancel??!1,cancelText:e.cancelText,confirmText:e.confirmText,onClose:()=>r("close"),onCancel:()=>r("cancel"),onConfirm:()=>r("confirm")},{default:()=>KP(e.content)})}),i.mount(t),{close:()=>r("close")}}function QP(e={}){return new Promise(t=>{ni({...e,showFooter:e.showFooter??!0,onConfirm:()=>{var i;(i=e.onConfirm)==null||i.call(e),t("confirm")},onClose:()=>{var i;(i=e.onClose)==null||i.call(e),t("close")},hideCancel:!0})})}function JP(e={}){return new Promise(t=>{ni({...e,showFooter:e.showFooter??!0,onConfirm:()=>{var i;(i=e.onConfirm)==null||i.call(e),t("confirm")},onCancel:()=>{var i;(i=e.onCancel)==null||i.call(e),t("cancel")},onClose:()=>{var i;(i=e.onClose)==null||i.call(e),t("close")}})})}const qc=Object.assign(jP,{open:ni,alert:QP,confirm:JP}),tE={install(e){e.component("InputBoxLine",wi),e.component("InputBoxFilled",k4),e.component("Button",gi),e.component("Badge",Hi),e.component("Breadcrumb",Vi),e.component("BreadcrumbItem",Li),e.component("CheckBox",T4),e.component("FormItem",Mi),e.component("InputNumber",Zi),e.component("Icon",a1),e.component("Logo",fi),e.component("Notification",yi),e.component("PopupBox",qc),e.component("Message",xi),e.component("Pagination",_i),e.component("Chart",Bc),e.component("Progress",Nc),e.component("Radio",N4),e.component("Rating",kc),e.component("Slider",Ac),e.component("Switch",Q5),e.component("Table",Ec),e.component("TopBar",$c),e.component("SelectBoxLine",Tc),e.component("SelectBoxFilled",C8),e.component("DropDownListSelect",e8),e.component("StepItem",Pc),e.component("Steps",Dc),e.component("Tab",Oc),e.component("TabItem",Rc),e.component("TabList",zc),e.component("Tooltip",Gc),e.component("PillStatus",Wc),e.component("PillCounter",Yc)}},eE=Object.freeze(Object.defineProperty({__proto__:null,arrowIcons:{"arrow/double-down":``,"arrow/double-up":``,"arrow/down":``,"arrow/dropdown":``,"arrow/left-1":``,"arrow/left-2":``,"arrow/next":``,"arrow/previous":``,"arrow/right-1":``,"arrow/right-2":``,"arrow/sorting":``,"arrow/switch":``,"arrow/to-first-page":``,"arrow/to-last-page":``,"arrow/up":``,"arrow/updown":``}},Symbol.toStringTag,{value:"Module"})),iE=Object.freeze(Object.defineProperty({__proto__:null,audioIcons:{"audio/audio-file":``,"audio/audio-link-control":``,"audio/audio-mixer":``,"audio/audio-preset":``,"audio/audio":``,"audio/auto-agc":``,"audio/headphone-off":``,"audio/headphone-on":``,"audio/manual-agc":``,"audio/off":``,"audio/on":``,"audio/pip-speaker-off-1":``,"audio/pip-speaker-off-2":``,"audio/recognize":``,"audio/speaker-off":``,"audio/speaker-on":``,"audio/stereo":``}},Symbol.toStringTag,{value:"Module"})),CE=Object.freeze(Object.defineProperty({__proto__:null,cutIcons:{"cut/dissolve":``,"cut/hard-cut":``,"cut/iris-in":``,"cut/iris-out":``,"cut/l-band-1":``,"cut/l-band-2":``,"cut/l-band-3":``,"cut/l-band-4":``,"cut/singular-cut":``,"cut/stinger":``}},Symbol.toStringTag,{value:"Module"})),nE=Object.freeze(Object.defineProperty({__proto__:null,editIcons:{"edit/accreditation-edit":``,"edit/add-1":``,"edit/add-2":``,"edit/add-3":``,"edit/add-list":``,"edit/align-left":``,"edit/align-middle":``,"edit/align-right":``,"edit/bold":``,"edit/calculate":``,"edit/clear-1":``,"edit/clear-2":``,"edit/clear-3":``,"edit/clip":``,"edit/close":``,"edit/copy-link":``,"edit/copy":``,"edit/delete":``,"edit/description":``,"edit/disabled":``,"edit/edit":``,"edit/edited":``,"edit/insert":``,"edit/italic":``,"edit/merge-words":``,"edit/minus-2":``,"edit/minus":``,"edit/multi-select":``,"edit/redo":``,"edit/rename":``,"edit/save":``,"edit/selected":``,"edit/split-words":``,"edit/text":``,"edit/underline":``,"edit/undo":``}},Symbol.toStringTag,{value:"Module"})),rE=Object.freeze(Object.defineProperty({__proto__:null,featureIcons:{"feature/ai-frame-interpolation":``,"feature/ai-setting":``,"feature/auto-failover":``,"feature/auto-response":``,"feature/demo":``,"feature/glacier":``,"feature/insync":``,"feature/ptz-control":``,"feature/ptz-home":``,"feature/recently-used":``,"feature/restore":``}},Symbol.toStringTag,{value:"Module"})),oE=Object.freeze(Object.defineProperty({__proto__:null,fileIcons:{"file/add-folder-1":``,"file/add-folder-2":``,"file/add-metadata":``,"file/component":``,"file/default-folder":``,"file/doc":``,"file/dowload-task":``,"file/download-from-cloud":``,"file/download-waiting":``,"file/download":``,"file/drag":``,"file/edl":``,"file/excel":``,"file/export-edl":``,"file/export":``,"file/file":``,"file/folder-2":``,"file/folder":``,"file/import-edl":``,"file/import":``,"file/json":``,"file/lock":``,"file/log":``,"file/metadata":``,"file/mirror-management":``,"file/mirror":``,"file/move-folder":``,"file/other":``,"file/pdf":``,"file/ppt":``,"file/print":``,"file/script":``,"file/sub-component":``,"file/switch-mirror":``,"file/sync":``,"file/synced":``,"file/unlock":``,"file/upload-to-cloud":``,"file/upload":``,"file/zip":``}},Symbol.toStringTag,{value:"Module"})),aE=Object.freeze(Object.defineProperty({__proto__:null,filterIcons:{"filter/filter-add":``,"filter/filter-offline":``,"filter/filter-online":``,"filter/filter":``,"filter/move-to-bottom":``,"filter/move-top":``,"filter/restore-filter":``,"filter/sort-ascending":``,"filter/sort-descending":``,"filter/sorting-a-z":``,"filter/sorting-dynamic":``,"filter/sorting-time-ascending":``,"filter/sorting-time-descending":``,"filter/sorting-z-a":``,"filter/untop":``}},Symbol.toStringTag,{value:"Module"})),lE=Object.freeze(Object.defineProperty({__proto__:null,indicatorIcons:{"indicator/24h-mode":``,"indicator/active":``,"indicator/anywhere":``,"indicator/cannot-live":``,"indicator/cc":``,"indicator/connect":``,"indicator/dash":``,"indicator/duplicate":``,"indicator/external":``,"indicator/facebook":``,"indicator/file":``,"indicator/free":``,"indicator/glink":``,"indicator/grid-mediahub":``,"indicator/grid-pack":``,"indicator/grid-sdi":``,"indicator/hds":``,"indicator/hls":``,"indicator/issp":``,"indicator/kick":``,"indicator/live-1":``,"indicator/live-2":``,"indicator/microsoft":``,"indicator/mpeg":``,"indicator/mxl":``,"indicator/ndi":``,"indicator/no-scte":``,"indicator/offline-r":``,"indicator/offline":``,"indicator/pack":``,"indicator/rec":``,"indicator/rtmp-pull":``,"indicator/rtmp-push":``,"indicator/rtp-fec":``,"indicator/rtsp-pull":``,"indicator/rtsp-push":``,"indicator/rtsp":``,"indicator/scte":``,"indicator/sdi":``,"indicator/secondary-record-off":``,"indicator/secondary-record-on":``,"indicator/smpte":``,"indicator/srt-caller":``,"indicator/srt-listener":``,"indicator/ssrt":``,"indicator/tiktok":``,"indicator/twitch":``,"indicator/udp":``,"indicator/unknown":``,"indicator/x":``,"indicator/youtube":``,"indicator/zixi":``,"indicator/zoom":``}},Symbol.toStringTag,{value:"Module"})),sE=Object.freeze(Object.defineProperty({__proto__:null,inputIcons:{"input/anywhere":``,"input/backup-source":``,"input/custom-source":``,"input/ext":``,"input/facebook":``,"input/grid-pack":``,"input/grid-sdi":``,"input/grid":``,"input/hdmi":``,"input/hls-pull":``,"input/html":``,"input/issp":``,"input/kick":``,"input/midi-device":``,"input/multi-sources":``,"input/mxl":``,"input/ndi":``,"input/other-source":``,"input/primary-source":``,"input/receiver":``,"input/rps-one":``,"input/rtmp-pull":``,"input/rtmp-push":``,"input/rtmp":``,"input/rtp-3":``,"input/rtsp-pull":``,"input/rtsp-push":``,"input/sdi":``,"input/srt-caller":``,"input/srt-listener":``,"input/srt":``,"input/tiktok":``,"input/tvu-pack":``,"input/twitch":``,"input/udp":``,"input/x":``,"input/youtube":``,"input/zixi-1":``,"input/zixi-2":``,"input/zoom":``}},Symbol.toStringTag,{value:"Module"})),cE=Object.freeze(Object.defineProperty({__proto__:null,loadIcons:{"load/loading-1":``,"load/loading-2":``,"load/refresh":``,"load/wait":``}},Symbol.toStringTag,{value:"Module"})),hE=Object.freeze(Object.defineProperty({__proto__:null,locationIcons:{"location/1":``,"location/2":``,"location/3":``,"location/track-collection":``,"location/tracking":``}},Symbol.toStringTag,{value:"Module"})),uE=Object.freeze(Object.defineProperty({__proto__:null,logoIcons:{"logo/ts":``,"logo/tvu":``}},Symbol.toStringTag,{value:"Module"})),dE=Object.freeze(Object.defineProperty({__proto__:null,markIcons:{"mark/athlete-number":``,"mark/bookmark-on":``,"mark/bookmark":``,"mark/brand":``,"mark/favorite-on":``,"mark/favorite":``,"mark/flag-on":``,"mark/flag":``,"mark/pin-on":``,"mark/pin":``,"mark/safe-on":``,"mark/safe":``,"mark/star-on":``,"mark/star":``,"mark/tag-on":``,"mark/tag":``,"mark/thumb-down-on":``,"mark/thumb-down":``,"mark/thumb-up-on":``,"mark/thumb-up":``,"mark/ur-intput":``,"mark/ur-output":``,"mark/wait-for-delete":``}},Symbol.toStringTag,{value:"Module"})),fE=Object.freeze(Object.defineProperty({__proto__:null,meetingIcons:{"meeting/1vn-voip-1":``,"meeting/1vn-voip-2":``,"meeting/ai-helper":``,"meeting/calling-1":``,"meeting/calling-2":``,"meeting/chat-1":``,"meeting/chat-2":``,"meeting/comm-status":``,"meeting/connecting-1":``,"meeting/connecting-2":``,"meeting/echo-off":``,"meeting/echo-on":``,"meeting/intercom-in":``,"meeting/intercom-out":``,"meeting/intercom-two-way":``,"meeting/lazy-audio-left":``,"meeting/lazy-audio-off":``,"meeting/lazy-audio-right":``,"meeting/lazy-audio":``,"meeting/mic-1":``,"meeting/mic-2":``,"meeting/mic-bluetooth":``,"meeting/mic-external-closed":``,"meeting/mic-external":``,"meeting/mic-off-1":``,"meeting/mic-off":``,"meeting/off-1":``,"meeting/off-2":``,"meeting/phone-1":``,"meeting/phone-2":``,"meeting/pip-mic-off-1":``,"meeting/pip-mic-off-2":``,"meeting/private-chat-normal":``,"meeting/private-chat-off":``,"meeting/private-chat-on":``,"meeting/raise-hand-1":``,"meeting/raise-hand-2":``,"meeting/role-1":``,"meeting/role-2":``}},Symbol.toStringTag,{value:"Module"})),gE=Object.freeze(Object.defineProperty({__proto__:null,menuIcons:{"menu/center":``,"menu/chart":``,"menu/dashboard":``,"menu/home":``,"menu/menu-1":``,"menu/monitor":``,"menu/more":``,"menu/observe":``,"menu/timeline":``,"menu/waffle":``}},Symbol.toStringTag,{value:"Module"})),pE=Object.freeze(Object.defineProperty({__proto__:null,messageIcons:{"message/error-1":``,"message/error-2":``,"message/error-3":``,"message/error-4":``,"message/help-1":``,"message/help-2":``,"message/info-1":``,"message/info-2":``,"message/notification-1":``,"message/notification-2":``,"message/success-1":``,"message/success-2":``,"message/update-1":``,"message/update-2":``,"message/warning-1":``,"message/warning-2":``}},Symbol.toStringTag,{value:"Module"})),vE=Object.freeze(Object.defineProperty({__proto__:null,networkIcons:{"network/bluetooth-closed":``,"network/bluetooth":``,"network/download-speed-test":``,"network/ethernet":``,"network/net":``,"network/public-ip":``,"network/satellite":``,"network/signal":``,"network/starlink":``,"network/wifi-1":``,"network/wifi-2":``,"network/wifi-3":``,"network/wifi-4":``,"network/wifi-5":``,"network/wifi-fan-1":``,"network/wifi-fan-2":``,"network/wifi-fan-3":``}},Symbol.toStringTag,{value:"Module"})),mE=Object.freeze(Object.defineProperty({__proto__:null,othersIcons:{"others/add-workspace":``,"others/ai":``,"others/android":``,"others/apple":``,"others/box":``,"others/cloud-resource":``,"others/electric-1":``,"others/electric-2":``,"others/electric-3":``,"others/electric-empty":``,"others/global-control":``,"others/google-play":``,"others/group":``,"others/keyboard":``,"others/mouse-cursor":``,"others/resource":``,"others/slave-device":``,"others/story":``,"others/translate":``,"others/usb":``,"others/workspace":``}},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,outputIcons:{"output/aux-output":``,"output/facebook-1":``,"output/facebook-2":``,"output/grid-1":``,"output/grid-2":``,"output/hls-pull-1":``,"output/hls-pull-2":``,"output/hls-push-1":``,"output/hls-push-2":``,"output/hls-to-aws-1":``,"output/hls-to-aws-2":``,"output/id3":``,"output/instagram-1":``,"output/instagram-2":``,"output/irltoolkit-1":``,"output/irltoolkit-2":``,"output/issp-1":``,"output/issp-2":``,"output/kick-1":``,"output/kick-2":``,"output/kuaishou-1":``,"output/kuaishou-2":``,"output/linkedin-1":``,"output/linkedin-2":``,"output/mxl-1":``,"output/mxl-2":``,"output/ndi-1":``,"output/ndi-2":``,"output/obs-1":``,"output/obs-2":``,"output/other-output-1":``,"output/other-output-2":``,"output/periscope-1":``,"output/periscope-2":``,"output/pro-mpeg-1":``,"output/pro-mpeg-2":``,"output/rss":``,"output/rtil-1":``,"output/rtil-2":``,"output/rtmp-1":``,"output/rtmp-2":``,"output/rtmp-pull-1":``,"output/rtmp-pull-2":``,"output/rtmp-push-1":``,"output/rtmp-push-2":``,"output/rtp-1":``,"output/rtp-2":``,"output/rtsp-pull-1":``,"output/rtsp-pull-2":``,"output/rtsp-push-1":``,"output/rtsp-push-2":``,"output/sdi-1":``,"output/sdi-2":``,"output/srt-1":``,"output/srt-2":``,"output/srt-caller-1":``,"output/srt-caller-2":``,"output/srt-listener-1":``,"output/srt-listener-2":``,"output/tiktok-1":``,"output/tiktok-2":``,"output/tvu-pack-1":``,"output/tvu-pack-2":``,"output/twitch-1":``,"output/twitch-2":``,"output/udp-1":``,"output/udp-2":``,"output/vimeo-1":``,"output/vimeo-2":``,"output/x-1":``,"output/x-2":``,"output/yizhibo-1":``,"output/yizhibo-2":``,"output/youtube-1":``,"output/youtube-2":``,"output/youtube-link-1":``,"output/youtube-link-2":``,"output/zixi-1":``,"output/zixi-2":``}},Symbol.toStringTag,{value:"Module"})),HE=Object.freeze(Object.defineProperty({__proto__:null,payIcons:{"pay/bill":``,"pay/card":``,"pay/cart":``,"pay/logistics":``,"pay/paypal":``,"pay/token":``,"pay/transfer-token":``,"pay/wechat":``,"pay/zhifubao":``}},Symbol.toStringTag,{value:"Module"})),VE=Object.freeze(Object.defineProperty({__proto__:null,pictureIcons:{"picture/appearance":``,"picture/background":``,"picture/camera":``,"picture/color-correction":``,"picture/color-match":``,"picture/effect":``,"picture/ext-overlay":``,"picture/file-pic":``,"picture/flip-cam":``,"picture/grid-thumbnail":``,"picture/lband":``,"picture/light":``,"picture/overlay-cut":``,"picture/overlay":``,"picture/picture-add":``,"picture/picture-broken":``,"picture/picture-cut":``,"picture/picture-focus":``,"picture/picture-link":``,"picture/picture":``,"picture/proportion-lock":``,"picture/proportion-unlock":``,"picture/thumbnail":``,"picture/white-balance":``}},Symbol.toStringTag,{value:"Module"})),LE=Object.freeze(Object.defineProperty({__proto__:null,previewIcons:{"preview/1":``,"preview/16":``,"preview/25":``,"preview/4":``,"preview/6":``,"preview/9":``,"preview/broaden":``,"preview/form":``,"preview/grid-view":``,"preview/hide":``,"preview/l-r-layout":``,"preview/large-size":``,"preview/layout":``,"preview/list":``,"preview/main-window":``,"preview/medium-size":``,"preview/multiviewer":``,"preview/narrow":``,"preview/pip":``,"preview/popup-mode":``,"preview/rotate-90":``,"preview/screen-1":``,"preview/screen-4":``,"preview/show":``,"preview/sidebar":``,"preview/small-size":``,"preview/swap-positions":``,"preview/windows":``,"preview/xy":``,"preview/zoom-big":``,"preview/zoom-small":``}},Symbol.toStringTag,{value:"Module"})),ME=Object.freeze(Object.defineProperty({__proto__:null,searchIcons:{"search/auto-search":``,"search/search":``,"search/zoom-in":``,"search/zoom-out":``}},Symbol.toStringTag,{value:"Module"})),ZE=Object.freeze(Object.defineProperty({__proto__:null,settingIcons:{"setting/adv-setting":``,"setting/chinese":``,"setting/custom":``,"setting/english":``,"setting/offline-setting":``,"setting/quite":``,"setting/scte-setting":``,"setting/setting-1":``,"setting/setting-2":``,"setting/skin":``,"setting/standby":``,"setting/switch":``}},Symbol.toStringTag,{value:"Module"})),yE=Object.freeze(Object.defineProperty({__proto__:null,shareIcons:{"share/email":``,"share/link":``,"share/open-link":``,"share/p2p":``,"share/qr":``,"share/scan":``,"share/send":``,"share/share-screen":``,"share/share-to-platforms":``,"share/share":``,"share/unlink":``}},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,timeIcons:{"time/add-time":``,"time/buffer":``,"time/calendar-event":``,"time/calendar":``,"time/clock":``,"time/coming-up":``,"time/ntp":``,"time/timelock-client-occupied":``,"time/timelock-client":``,"time/timelocker-server-occupied":``,"time/timelocker-server":``,"time/timer":``,"time/warning":``}},Symbol.toStringTag,{value:"Module"})),_E=Object.freeze(Object.defineProperty({__proto__:null,userIcons:{"user/add-user":``,"user/admin":``,"user/apple-dark":``,"user/auth0-dark":``,"user/auth0-light":``,"user/broadcaster":``,"user/change-owner":``,"user/company":``,"user/facebook":``,"user/facial-recognition":``,"user/from-sharing":``,"user/google":``,"user/id":``,"user/key":``,"user/microsoft":``,"user/my-sharing":``,"user/production-crew":``,"user/profile-photo":``,"user/remove-user":``,"user/seat-rule":``,"user/talkback-coord":``,"user/tiktok":``,"user/twitch":``,"user/ungroup":``,"user/unkown":``,"user/user-group":``,"user/user":``,"user/wechat":``,"user/youtube":``}},Symbol.toStringTag,{value:"Module"})),IE=Object.freeze(Object.defineProperty({__proto__:null,videoIcons:{"video/ab-point":``,"video/add-to-pr":``,"video/add-video-file":``,"video/auto-pan":``,"video/camera-off":``,"video/camera-stop":``,"video/camera":``,"video/circle-list":``,"video/circle-single":``,"video/clip-player":``,"video/disc":``,"video/eject":``,"video/encoder":``,"video/fast-backward":``,"video/fast-forward":``,"video/file-1":``,"video/forward-10-sec":``,"video/go-to":``,"video/half":``,"video/horizontal":``,"video/live-caption":``,"video/live":``,"video/manual-pan":``,"video/media":``,"video/next-frame":``,"video/next":``,"video/pause":``,"video/pbp":``,"video/play-clip":``,"video/play-list":``,"video/play-selected":``,"video/play":``,"video/playlist":``,"video/point-in":``,"video/point-out":``,"video/previous-frame":``,"video/previous":``,"video/program":``,"video/random":``,"video/record-setting":``,"video/record-stop":``,"video/recording":``,"video/relive":``,"video/resolution":``,"video/rewind-10-sec":``,"video/rotation-90":``,"video/rotation-0":``,"video/rotation-90-2":``,"video/rvf-start":``,"video/rvf-stop":``,"video/score":``,"video/scte":``,"video/source-unavailable":``,"video/tag":``,"video/to-point-in":``,"video/to-point-out":``,"video/vertical":``}},Symbol.toStringTag,{value:"Module"}));W.Badge=Hi,W.Breadcrumb=Vi,W.BreadcrumbItem=Li,W.Button=gi,W.Chart=Bc,W.CheckBox=T4,W.DropDownListSelect=e8,W.FormItem=Mi,W.Icon=a1,W.IconAdd=oi,W.IconArrowDropdown=li,W.IconMinus=ai,W.IconSelected=si,W.InputBoxFilled=k4,W.InputBoxLine=wi,W.InputNumber=Zi,W.Logo=fi,W.LogoTS=X5,W.LogoTVU=Y5,W.Message=xi,W.Notification=yi,W.Pagination=_i,W.PillCounter=Yc,W.PillStatus=Wc,W.PopupBox=qc,W.Progress=Nc,W.Radio=N4,W.Rating=kc,W.SelectBoxFilled=C8,W.SelectBoxLine=Tc,W.Slider=Ac,W.StepItem=Pc,W.Steps=Dc,W.Switch=Q5,W.TVU_LOCALE_KEY=J5,W.Tab=Oc,W.TabItem=Rc,W.TabList=zc,W.Table=Ec,W.Tooltip=Gc,W.TopBar=$c,W.default=tE,W.defaultLocale=vi,W.iconCategoryRegistry=j5,W.iconManifest=q5,W.iconNameAliases=ci,W.iconRegistry=hi,W.listIconsByCategory=MM,W.provideTvuLocale=RM,W.resolveIcon=K5,W.useLocale=f9,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});