g-ui-web 1.4.13 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/g-ui-web.cjs +2 -2
- package/lib/g-ui-web.iife.js +2 -2
- package/lib/g-ui-web.iife.js.gz +0 -0
- package/lib/g-ui-web.js +112 -112
- package/lib/g-ui-web.js.gz +0 -0
- package/lib/g-ui-web.umd.cjs +2 -2
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
package/lib/g-ui-web.cjs
CHANGED
|
@@ -113,8 +113,8 @@ yyyy`);var r=Li(t),o=n?"getUTC":"get",i=r[o+"FullYear"](),l=r[o+"Month"]()+1,s=r
|
|
|
113
113
|
|
|
114
114
|
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(s,h,l[0],l[1],this._tooltipContent,c):this._showTooltipContent(s,y,c,Math.random()+"",l[0],l[1],h,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var i=this._ecModel,l=Zt(r),s=l.seriesIndex,u=i.getSeriesByIndex(s),c=l.dataModel||u,d=l.dataIndex,f=l.dataType,p=c.getData(f),h=this._renderMode,v=n.positionDefault,m=Xg([p.getItemModel(d),c,u&&(u.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=c.getDataParams(d,f),C=new LT;y.marker=C.makeTooltipMarker("item",Ap(y.color),h);var b=x4(c.formatTooltip(d,!1,f)),w=m.get("order"),S=m.get("valueFormatter"),x=b.frag,k=x?D4(S?Qe({valueFormatter:S},x):x,C,h,w,i.get("useUTC"),m.get("textStyle")):b.text,_="item_"+c.name+"_"+d;this._showOrMove(m,function(){this._showTooltipContent(m,k,y,_,n.offsetX,n.offsetY,n.position,n.target,C)}),o({type:"showTip",dataIndexInside:d,dataIndex:p.getRawIndex(d),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var i=this._renderMode==="html",l=Zt(r),s=l.tooltipConfig,u=s.option||{},c=u.encodeHTMLContent;if(St(u)){var d=u;u={content:d,formatter:d},c=!0}c&&i&&u.content&&(u=Gt(u),u.content=fo(u.content));var f=[u],p=this._ecModel.getComponent(l.componentMainType,l.componentIndex);p&&f.push(p),f.push({formatter:u.content});var h=n.positionDefault,v=Xg(f,this._tooltipModel,h?{position:h}:null),m=v.get("content"),g=Math.random()+"",y=new LT;this._showOrMove(v,function(){var C=Gt(v.get("formatterParams")||{});this._showTooltipContent(v,m,C,g,n.offsetX,n.offsetY,n.position,r,y)}),o({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,o,i,l,s,u,c,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var p=n.get("formatter");u=u||n.get("position");var h=r,v=this._getNearestPoint([l,s],o,n.get("trigger"),n.get("borderColor")),m=v.color;if(p)if(St(p)){var g=n.ecModel.get("useUTC"),y=nt(o)?o[0]:o,C=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=p,C&&(h=Kb(y.axisValue,h,g)),h=SR(h,o,!0)}else if(Vt(p)){var b=_t(function(w,S){w===this._ticket&&(f.setContent(S,d,n,m,u),this._updatePosition(n,u,l,s,f,o,c))},this);this._ticket=i,h=p(o,i,b)}else h=p;f.setContent(h,d,n,m,u),f.show(n,m),this._updatePosition(n,u,l,s,f,o,c)}},t.prototype._getNearestPoint=function(n,r,o,i){if(o==="axis"||nt(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!nt(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,i,l,s,u){var c=this._api.getWidth(),d=this._api.getHeight();r=r||n.get("position");var f=l.getSize(),p=n.get("align"),h=n.get("verticalAlign"),v=u&&u.getBoundingRect().clone();if(u&&v.applyTransform(u.transform),Vt(r)&&(r=r([o,i],s,l.el,v,{viewSize:[c,d],contentSize:f.slice()})),nt(r))o=Ct(r[0],c),i=Ct(r[1],d);else if(Wt(r)){var m=r;m.width=f[0],m.height=f[1];var g=va(m,{width:c,height:d});o=g.x,i=g.y,p=null,h=null}else if(St(r)&&u){var y=ZXe(r,v,f,n.get("borderWidth"));o=y[0],i=y[1]}else{var y=XXe(o,i,l,c,d,p?null:20,h?null:20);o=y[0],i=y[1]}if(p&&(o-=P8(p)?f[0]/2:p==="right"?f[0]:0),h&&(i-=P8(h)?f[1]/2:h==="bottom"?f[1]:0),ine(n)){var y=qXe(o,i,l,c,d);o=y[0],i=y[1]}l.moveTo(o,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var o=this._lastDataByCoordSys,i=this._cbParamsList,l=!!o&&o.length===n.length;return l&&q(o,function(s,u){var c=s.dataByAxis||[],d=n[u]||{},f=d.dataByAxis||[];l=l&&c.length===f.length,l&&q(c,function(p,h){var v=f[h]||{},m=p.seriesDataIndices||[],g=v.seriesDataIndices||[];l=l&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&m.length===g.length,l&&q(m,function(y,C){var b=g[C];l=l&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),i&&q(p.seriesDataIndices,function(y){var C=y.seriesIndex,b=r[C],w=i[C];b&&w&&w.data!==b.data&&(l=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!l},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){wn.node||!r.getDom()||(J0(this,"_updatePosition"),this._tooltipContent.dispose(),WN("itemTooltip",r))},t.type="tooltip",t}(wr);function Xg(e,t,n){var r=t.ecModel,o;n?(o=new Gn(n,r,r),o=new Gn(t.option,o,r)):o=t;for(var i=e.length-1;i>=0;i--){var l=e[i];l&&(l instanceof Gn&&(l=l.get("tooltip",!0)),St(l)&&(l={formatter:l}),l&&(o=new Gn(l,o,r)))}return o}function L8(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function XXe(e,t,n,r,o,i,l){var s=n.getSize(),u=s[0],c=s[1];return i!=null&&(e+u+i+2>r?e-=u+i:e+=i),l!=null&&(t+c+l>o?t-=c+l:t+=l),[e,t]}function qXe(e,t,n,r,o){var i=n.getSize(),l=i[0],s=i[1];return e=Math.min(e+l,r)-l,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ZXe(e,t,n,r){var o=n[0],i=n[1],l=Math.ceil(Math.SQRT2*r)+8,s=0,u=0,c=t.width,d=t.height;switch(e){case"inside":s=t.x+c/2-o/2,u=t.y+d/2-i/2;break;case"top":s=t.x+c/2-o/2,u=t.y-i-l;break;case"bottom":s=t.x+c/2-o/2,u=t.y+d+l;break;case"left":s=t.x-o-l,u=t.y+d/2-i/2;break;case"right":s=t.x+c+l,u=t.y+d/2-i/2}return[s,u]}function P8(e){return e==="center"||e==="middle"}function QXe(e,t,n){var r=QI(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var i=Hb(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),l=i.models[0];if(l){var s=n.getViewOfComponentModel(l),u;if(s.group.traverse(function(c){var d=Zt(c).tooltipConfig;if(d&&d.name===e.name)return u=c,!0}),u)return{componentMainType:o,componentIndex:l.componentIndex,el:u}}}}function JXe(e){vn(oC),e.registerComponentModel(RXe),e.registerComponentView(KXe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qr)}var eqe=["rect","polygon","keep","clear"];function tqe(e,t){var n=ur(e?e.brush:[]);if(n.length){var r=[];q(n,function(u){var c=u.hasOwnProperty("toolbox")?u.toolbox:[];c instanceof Array&&(r=r.concat(c))});var o=e&&e.toolbox;nt(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var i=o.feature||(o.feature={}),l=i.brush||(i.brush={}),s=l.type||(l.type=[]);s.push.apply(s,r),nqe(s),t&&!s.length&&s.push.apply(s,eqe)}}function nqe(e){var t={};q(e,function(n){t[n]=1}),e.length=0,q(t,function(n,r){e.push(r)})}var V8=q;function F8(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function XN(e,t,n){var r={};return V8(t,function(i){var l=r[i]=o();V8(e[i],function(s,u){if(Na.isValidType(u)){var c={type:u,visual:s};n&&n(c,i),l[u]=new Na(c),u==="opacity"&&(c=Gt(c),c.type="colorAlpha",l.__hidden.__alphaForOpacity=new Na(c))}})}),r;function o(){var i=function(){};i.prototype.__hidden=i.prototype;var l=new i;return l}}function cne(e,t,n){var r;q(n,function(o){t.hasOwnProperty(o)&&F8(t[o])&&(r=!0)}),r&&q(n,function(o){t.hasOwnProperty(o)&&F8(t[o])?e[o]=Gt(t[o]):delete e[o]})}function rqe(e,t,n,r,o,i){var l={};q(e,function(f){var p=Na.prepareVisualTypes(t[f]);l[f]=p});var s;function u(f){return BR(n,s,f)}function c(f,p){AQ(n,s,f,p)}n.each(d);function d(f,p){s=f;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=r.call(o,f),m=t[v],g=l[v],y=0,C=g.length;y<C;y++){var b=g[y];m[b]&&m[b].applyVisual(f,u,c)}}}function aqe(e,t,n,r){var o={};return q(e,function(i){var l=Na.prepareVisualTypes(t[i]);o[i]=l}),{progress:function(l,s){var u;r!=null&&(u=s.getDimensionIndex(r));function c(S){return BR(s,f,S)}function d(S,x){AQ(s,f,S,x)}for(var f,p=s.getStore();(f=l.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=r!=null?p.get(u,f):f,m=n(v),g=t[m],y=o[m],C=0,b=y.length;C<b;C++){var w=y[C];g[w]&&g[w].applyVisual(v,c,d)}}}}}function oqe(e){var t=e.brushType,n={point:function(r){return z8[t].point(r,n,e)},rect:function(r){return z8[t].rect(r,n,e)}};return n}var z8={lineX:$8(0),lineY:$8(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&If(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var o=e.x,i=e.y,l=e.width,s=e.height,u=r[0];if(If(r,o,i)||If(r,o+l,i)||If(r,o,i+s)||If(r,o+l,i+s)||cn.create(e).contain(u[0],u[1])||xy(o,i,o+l,i,r)||xy(o,i,o,i+s,r)||xy(o+l,i,o+l,i+s,r)||xy(o,i+s,o+l,i+s,r))return!0}}};function $8(e){var t=["x","y"],n=["width","height"];return{point:function(r,o,i){if(r){var l=i.range,s=r[e];return qg(s,l)}},rect:function(r,o,i){if(r){var l=i.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),qg(s[0],l)||qg(s[1],l)||qg(l[0],s)||qg(l[1],s)}}}}function qg(e,t){return t[0]<=e&&e<=t[1]}var H8=["inBrush","outOfBrush"],QA="__ecBrushSelect",qN="__ecInBrushSelectEvent";function dne(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new KL(t.option,e);n.setInputRanges(t.areas,e)})}function iqe(e,t,n){var r=[],o,i;e.eachComponent({mainType:"brush"},function(l){n&&n.type==="takeGlobalCursor"&&l.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),dne(e),e.eachComponent({mainType:"brush"},function(l,s){var u={brushId:l.id,brushIndex:s,brushName:l.name,areas:Gt(l.areas),selected:[]};r.push(u);var c=l.option,d=c.brushLink,f=[],p=[],h=[],v=!1;s||(o=c.throttleType,i=c.throttleDelay);var m=rt(l.areas,function(S){var x=cqe[S.brushType],k=zt({boundingRect:x?x(S):void 0},S);return k.selectors=oqe(k),k}),g=XN(l.option,H8,function(S){S.mappingMethod="fixed"});nt(d)&&q(d,function(S){f[S]=1});function y(S){return d==="all"||!!f[S]}function C(S){return!!S.length}e.eachSeries(function(S,x){var k=h[x]=[];S.subType==="parallel"?b(S,x):w(S,x,k)});function b(S,x){var k=S.coordinateSystem;v=v||k.hasAxisBrushed(),y(x)&&k.eachActiveState(S.getData(),function(_,T){_==="active"&&(p[T]=1)})}function w(S,x,k){if(!(!S.brushSelector||uqe(l,x))&&(q(m,function(T){l.brushTargetManager.controlSeries(T,S,e)&&k.push(T),v=v||C(k)}),y(x)&&C(k))){var _=S.getData();_.each(function(T){W8(S,k,_,T)&&(p[T]=1)})}}e.eachSeries(function(S,x){var k={seriesId:S.id,seriesIndex:x,seriesName:S.name,dataIndex:[]};u.selected.push(k);var _=h[x],T=S.getData(),E=y(x)?function(A){return p[A]?(k.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return W8(S,_,T,A)?(k.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(x)?v:C(_))&&rqe(H8,g,T,E)})}),lqe(t,o,i,r,n)}function lqe(e,t,n,r,o){if(o){var i=e.getZr();if(!i[qN]){i[QA]||(i[QA]=sqe);var l=Xm(i,QA,n,t);l(e,r)}}}function sqe(e,t){if(!e.isDisposed()){var n=e.getZr();n[qN]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[qN]=!1}}function W8(e,t,n,r){for(var o=0,i=t.length;o<i;o++){var l=t[o];if(e.brushSelector(r,n,l.selectors,l))return!0}}function uqe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(nt(n)?pn(n,t)<0:t!==n)}var cqe={rect:function(e){return G8(e.range)},polygon:function(e){for(var t,n=e.range,r=0,o=n.length;r<o;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&G8(t)}};function G8(e){return new cn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var dqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new wL(r.getZr())).on("brush",_t(this._onBrush,this)).mount()},t.prototype.render=function(n,r,o,i){this.model=n,this._updateController(n,r,o,i)},t.prototype.updateTransform=function(n,r,o,i){dne(r),this._updateController(n,r,o,i)},t.prototype.updateVisual=function(n,r,o,i){this.updateTransform(n,r,o,i)},t.prototype.updateView=function(n,r,o,i){this._updateController(n,r,o,i)},t.prototype._updateController=function(n,r,o,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(o)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,o=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Gt(o),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Gt(o),$from:r})},t.type="brush",t}(wr),fqe="#ddd",pqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var o=this.option;!r&&cne(o,n,["inBrush","outOfBrush"]);var i=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:fqe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=rt(n,function(r){return U8(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=U8(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Cn);function U8(e,t){return on({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Gn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var hqe=["rect","polygon","lineX","lineY","keep","clear"],vqe=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,o){var i,l,s;r.eachComponent({mainType:"brush"},function(u){i=u.brushType,l=u.brushOption.brushMode||"single",s=s||!!u.areas.length}),this._brushType=i,this._brushMode=l,q(n.get("type",!0),function(u){n.setIconStatus(u,(u==="keep"?l==="multiple":u==="clear"?s:u===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,o){this.render(n,r,o)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),o={};return q(n.get("type",!0),function(i){r[i]&&(o[i]=r[i])}),o},t.prototype.onclick=function(n,r,o){var i=this._brushType,l=this._brushMode;o==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:o==="keep"?i:i===o?!1:o,brushMode:o==="keep"?l==="multiple"?"single":"multiple":l}})},t.getDefaultOption=function(n){var r={show:!0,type:hqe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(el);function mqe(e){e.registerComponentView(dqe),e.registerComponentModel(pqe),e.registerPreprocessor(tqe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,iqe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qr),av("brush",vqe)}var gqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Cn),yqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,o){if(this.group.removeAll(),!!n.get("show")){var i=this.group,l=n.getModel("textStyle"),s=n.getModel("subtextStyle"),u=n.get("textAlign"),c=en(n.get("textBaseline"),n.get("textVerticalAlign")),d=new Dn({style:gr(l,{text:n.get("text"),fill:l.getTextColor()},{disableBox:!0}),z2:10}),f=d.getBoundingRect(),p=n.get("subtext"),h=new Dn({style:gr(s,{text:p,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),m=n.get("sublink"),g=n.get("triggerEvent",!0);d.silent=!v&&!g,h.silent=!m&&!g,v&&d.on("click",function(){hx(v,"_"+n.get("target"))}),m&&h.on("click",function(){hx(m,"_"+n.get("subtarget"))}),Zt(d).eventData=Zt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(d),p&&i.add(h);var y=i.getBoundingRect(),C=n.getBoxLayoutParams();C.width=y.width,C.height=y.height;var b=va(C,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));u||(u=n.get("left")||n.get("right"),u==="middle"&&(u="center"),u==="right"?b.x+=b.width:u==="center"&&(b.x+=b.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?b.y+=b.height:c==="middle"&&(b.y+=b.height/2),c=c||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var w={align:u,verticalAlign:c};d.setStyle(w),h.setStyle(w),y=i.getBoundingRect();var S=b.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var k=new Mn({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(k)}},t.type="title",t}(wr);function bqe(e){e.registerComponentModel(gqe),e.registerComponentView(yqe)}var Y8=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],o=n.axisType,i=this._names=[],l;o==="category"?(l=[],q(r,function(c,d){var f=Ca(Lm(c),""),p;Wt(c)?(p=Gt(c),p.value=d):p=d,l.push(p),i.push(f)})):l=r;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",u=this._data=new go([{name:"value",type:s}],this);u.initData(l,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Cn),fne=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Bd(Y8.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(Y8);Qr(fne,yE.prototype);var Cqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(wr),wqe=function(e){Ne(t,e);function t(n,r,o,i){var l=e.call(this,n,r,o)||this;return l.type=i||"value",l}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(bl),JA=Math.PI,j8=Bn(),Sqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,o){if(this.model=n,this.api=o,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,o),l=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),u=this._axis=this._createAxis(i,n);n.formatTooltip=function(c){var d=u.scale.getLabel({value:c});return Ia("nameValue",{noName:!0,value:d})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](i,l,u,n)},this),this._renderAxisLabel(i,s,u,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var o=n.get(["label","position"]),i=n.get("orient"),l=kqe(n,r),s;o==null||o==="auto"?s=i==="horizontal"?l.y+l.height/2<r.getHeight()/2?"-":"+":l.x+l.width/2<r.getWidth()/2?"+":"-":St(o)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][o]:s=o;var u={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},c={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:JA/2},f=i==="vertical"?l.height:l.width,p=n.getModel("controlStyle"),h=p.get("show",!0),v=h?p.get("itemSize"):0,m=h?p.get("itemGap"):0,g=v+m,y=n.get(["label","rotate"])||0;y=y*JA/180;var C,b,w,S=p.get("position",!0),x=h&&p.get("showPlayBtn",!0),k=h&&p.get("showPrevBtn",!0),_=h&&p.get("showNextBtn",!0),T=0,E=f;S==="left"||S==="bottom"?(x&&(C=[0,0],T+=g),k&&(b=[T,0],T+=g),_&&(w=[E-v,0],E-=g)):(x&&(C=[E-v,0],E-=g),k&&(b=[0,0],T+=g),_&&(w=[E-v,0],E-=g));var A=[T,E];return n.get("inverse")&&A.reverse(),{viewRect:l,mainLength:f,orient:i,rotation:d[i],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||u[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||c[i],playPosition:C,prevBtnPosition:b,nextBtnPosition:w,axisExtent:A,controlSize:v,controlGap:m}},t.prototype._position=function(n,r){var o=this._mainGroup,i=this._labelGroup,l=n.viewRect;if(n.orient==="vertical"){var s=ii(),u=l.x,c=l.y+l.height;Jl(s,s,[-u,-c]),Md(s,s,-JA/2),Jl(s,s,[u,c]),l=l.clone(),l.applyTransform(s)}var d=C(l),f=C(o.getBoundingRect()),p=C(i.getBoundingRect()),h=[o.x,o.y],v=[i.x,i.y];v[0]=h[0]=d[0][0];var m=n.labelPosOpt;if(m==null||St(m)){var g=m==="+"?0:1;b(h,f,d,1,g),b(v,p,d,1,1-g)}else{var g=m>=0?0:1;b(h,f,d,1,g),v[1]=h[1]+m}o.setPosition(h),i.setPosition(v),o.rotation=i.rotation=n.rotation,y(o),y(i);function y(w){w.originX=d[0][0]-w.x,w.originY=d[1][0]-w.y}function C(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,S,x,k,_){w[k]+=x[k][_]-S[k][_]}},t.prototype._createAxis=function(n,r){var o=r.getData(),i=r.get("axisType"),l=xqe(r,i);l.getTicks=function(){return o.mapArray(["value"],function(c){return{value:c}})};var s=o.getDataExtent("value");l.setExtent(s[0],s[1]),l.calcNiceTicks();var u=new wqe("value",l,n.axisExtent,i);return u.model=r,u},t.prototype._createGroup=function(n){var r=this[n]=new Kt;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,o,i){var l=o.getExtent();if(i.get(["lineStyle","show"])){var s=new wa({shape:{x1:l[0],y1:0,x2:l[1],y2:0},style:Qe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var u=this._progressLine=new wa({shape:{x1:l[0],x2:this._currentPointer?this._currentPointer.x:l[0],y1:0,y2:0},style:zt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(u)}},t.prototype._renderAxisTick=function(n,r,o,i){var l=this,s=i.getData(),u=o.scale.getTicks();this._tickSymbols=[],q(u,function(c){var d=o.dataToCoord(c.value),f=s.getItemModel(c.value),p=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),m={x:d,y:0,onclick:_t(l._changeTimeline,l,c.value)},g=K8(f,p,r,m);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),ld(g);var y=Zt(g);f.get("tooltip")?(y.dataIndex=c.value,y.dataModel=i):y.dataIndex=y.dataModel=null,l._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,o,i){var l=this,s=o.getLabelModel();if(s.get("show")){var u=i.getData(),c=o.getViewLabels();this._tickLabels=[],q(c,function(d){var f=d.tickValue,p=u.getItemModel(f),h=p.getModel("label"),v=p.getModel(["emphasis","label"]),m=p.getModel(["progress","label"]),g=o.dataToCoord(d.tickValue),y=new Dn({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:_t(l._changeTimeline,l,f),silent:!1,style:gr(h,{text:d.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=gr(v),y.ensureState("progress").style=gr(m),r.add(y),ld(y),j8(y).dataIndex=f,l._tickLabels.push(y)})}},t.prototype._renderControl=function(n,r,o,i){var l=n.controlSize,s=n.rotation,u=i.getModel("controlStyle").getItemStyle(),c=i.getModel(["emphasis","controlStyle"]).getItemStyle(),d=i.getPlayState(),f=i.get("inverse",!0);p(n.nextBtnPosition,"next",_t(this._changeTimeline,this,f?"-":"+")),p(n.prevBtnPosition,"prev",_t(this._changeTimeline,this,f?"+":"-")),p(n.playPosition,d?"stop":"play",_t(this._handlePlayClick,this,!d),!0);function p(h,v,m,g){if(h){var y=es(en(i.get(["controlStyle",v+"BtnSize"]),l),l),C=[0,-y/2,y,y],b=Eqe(i,v+"Icon",C,{x:h[0],y:h[1],originX:l/2,originY:0,rotation:g?-s:0,rectHover:!0,style:u,onclick:m});b.ensureState("emphasis").style=c,r.add(b),ld(b)}}},t.prototype._renderCurrentPointer=function(n,r,o,i){var l=i.getData(),s=i.getCurrentIndex(),u=l.getItemModel(s).getModel("checkpointStyle"),c=this,d={onCreate:function(f){f.draggable=!0,f.drift=_t(c._handlePointerDrag,c),f.ondragend=_t(c._handlePointerDragend,c),X8(f,c._progressLine,s,o,i,!0)},onUpdate:function(f){X8(f,c._progressLine,s,o,i)}};this._currentPointer=K8(u,u,this._mainGroup,{},this._currentPointer,d)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var o=this._toAxisCoord(n)[0],i=this._axis,l=Mi(i.getExtent().slice());o>l[1]&&(o=l[1]),o<l[0]&&(o=l[0]),this._currentPointer.x=o,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=o,s.dirty());var u=this._findNearestTick(o),c=this.model;(r||u!==c.getCurrentIndex()&&c.get("realtime"))&&this._changeTimeline(u)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return Yl(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),o=1/0,i,l=this._axis;return r.each(["value"],function(s,u){var c=l.dataToCoord(s),d=Math.abs(c-n);d<o&&(o=d,i=u)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,o=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(o)for(var i=0;i<o.length;i++)o&&o[i]&&o[i].toggleState("progress",j8(o[i]).dataIndex<=n)},t.type="timeline.slider",t}(Cqe);function xqe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new _E({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new jR({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new tc}}function kqe(e,t){return va(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Eqe(e,t,n,r){var o=r.style,i=Hm(e.get(["controlStyle",t]),r||{},new cn(n[0],n[1],n[2],n[3]));return o&&i.setStyle(o),i}function K8(e,t,n,r,o,i){var l=t.get("color");if(o)o.setColor(l),n.add(o),i&&i.onUpdate(o);else{var s=e.get("symbol");o=ia(s,-1,-1,2,2,l),o.setStyle("strokeNoScale",!0),n.add(o),i&&i.onCreate(o)}var u=t.getItemStyle(["color"]);o.setStyle(u),r=on({rectHover:!0,z2:100},r,!0);var c=qm(e.get("symbolSize"));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var d=Gp(e.get("symbolOffset"),c);d&&(r.x=(r.x||0)+d[0],r.y=(r.y||0)+d[1]);var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function X8(e,t,n,r,o,i){if(!e.dragging){var l=o.getModel("checkpointStyle"),s=r.dataToCoord(o.getData().get("value",n));if(i||!l.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var u={duration:l.get("animationDuration",!0),easing:l.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},u),t&&t.animateTo({shape:{x2:s}},u)}}}function _qe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var o=n.getComponent("timeline");return o&&t.currentIndex!=null&&(o.setCurrentIndex(t.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),zt({currentIndex:o.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function Tqe(e){var t=e&&e.timeline;nt(t)||(t=t?[t]:[]),q(t,function(n){n&&Aqe(n)})}function Aqe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),q8(e),Pf(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});Pf(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!Pf(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}q(e.data||[],function(o){Wt(o)&&!nt(o)&&(!Pf(o,"value")&&Pf(o,"name")&&(o.value=o.name),q8(o))})}function q8(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),i={normal:1,emphasis:1};q(r,function(l,s){!i[s]&&!Pf(o,s)&&(o[s]=l)}),n.label&&!Pf(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Pf(e,t){return e.hasOwnProperty(t)}function Dqe(e){e.registerComponentModel(fne),e.registerComponentView(Sqe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),_qe(e),e.registerPreprocessor(Tqe)}function ZL(e,t){if(!e)return!1;for(var n=nt(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function Kw(e){kp(e,"label",["show"])}var Xw=Bn(),rc=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o),this._mergeOption(n,o,!1,!0)},t.prototype.isAnimationEnabled=function(){if(wn.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,o,i){var l=this.mainType;o||r.eachSeries(function(s){var u=s.get(this.mainType,!0),c=Xw(s)[l];if(!u||!u.data){Xw(s)[l]=null;return}c?c._mergeOption(u,r,!0):(i&&Kw(u),q(u.data,function(d){d instanceof Array?(Kw(d[0]),Kw(d[1])):Kw(d)}),c=this.createMarkerModelFromSeries(u,this,r),Qe(c,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),c.__hostSeries=s),Xw(s)[l]=c},this)},t.prototype.formatTooltip=function(n,r,o){var i=this.getData(),l=this.getRawValue(n),s=i.getName(n);return Ia("section",{header:this.name,blocks:[Ia("nameValue",{name:s,value:l,noName:!s,noValue:l==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,r){var o=yE.prototype.getDataParams.call(this,n,r),i=this.__hostSeries;return i&&(o.seriesId=i.id,o.seriesName=i.name,o.seriesType=i.subType),o},t.getMarkerModelFromSeries=function(n,r){return Xw(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Cn);Qr(rc,yE.prototype);var Mqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,o){return new t(n,r,o)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(rc);function ZN(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Nqe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function qw(e,t,n,r,o,i){var l=[],s=ec(t,r),u=s?t.getCalculationInfo("stackResultDimension"):r,c=QL(t,u,e),d=t.indicesOfNearest(u,c)[0];l[o]=t.get(n,d),l[i]=t.get(u,d);var f=t.get(r,d),p=zl(t.get(r,d));return p=Math.min(p,20),p>=0&&(l[i]=+l[i].toFixed(p)),[l,f]}var e2={min:nn(qw,"min"),max:nn(qw,"max"),average:nn(qw,"average"),median:nn(qw,"median")};function pb(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,o=r&&r.dimensions;if(!Nqe(t)&&!nt(t.coord)&&nt(o)){var i=pne(t,n,r,e);if(t=Gt(t),t.type&&e2[t.type]&&i.baseAxis&&i.valueAxis){var l=pn(o,i.baseAxis.dim),s=pn(o,i.valueAxis.dim),u=e2[t.type](n,i.baseDataDim,i.valueDataDim,l,s);t.coord=u[0],t.value=u[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!nt(o))t.coord=[];else for(var c=t.coord,d=0;d<2;d++)e2[c[d]]&&(c[d]=QL(n,n.mapDimension(o[d]),c[d]));return t}}function pne(e,t,n,r){var o={};return e.valueIndex!=null||e.valueDim!=null?(o.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(Bqe(r,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=r.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function Bqe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function hb(e,t){return e&&e.containData&&t.coord&&!ZN(t)?e.containData(t.coord):!0}function Oqe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!ZN(t)&&!ZN(n)?e.containZone(t.coord,n.coord):!0}function hne(e,t){return e?function(n,r,o,i){var l=i<2?n.coord&&n.coord[i]:n.value;return cd(l,t[i])}:function(n,r,o,i){return cd(n.value,t[i])}}function QL(e,t,n){if(n==="average"){var r=0,o=0;return e.each(t,function(i,l){isNaN(i)||(r+=i,o++)}),r/o}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var t2=Bn(),JL=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Ot()},t.prototype.render=function(n,r,o){var i=this,l=this.markerGroupMap;l.each(function(s){t2(s).keep=!1}),r.eachSeries(function(s){var u=rc.getMarkerModelFromSeries(s,i.type);u&&i.renderSeries(s,u,r,o)}),l.each(function(s){!t2(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){t2(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var o=this;q(n,function(i){var l=rc.getMarkerModelFromSeries(i,o.type);if(l){var s=l.getData();s.eachItemGraphicEl(function(u){u&&(r?oZ(u):oR(u))})}})},t.type="marker",t}(wr);function Z8(e,t,n){var r=t.coordinateSystem;e.each(function(o){var i=e.getItemModel(o),l,s=Ct(i.get("x"),n.getWidth()),u=Ct(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))l=[s,u];else if(t.getMarkerPosition)l=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(r){var c=e.get(r.dimensions[0],o),d=e.get(r.dimensions[1],o);l=r.dataToPoint([c,d])}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u),e.setItemLayout(o,l)})}var Iqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,o){r.eachSeries(function(i){var l=rc.getMarkerModelFromSeries(i,"markPoint");l&&(Z8(l.getData(),i,o),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,o,i){var l=n.coordinateSystem,s=n.id,u=n.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new Qb),f=Rqe(l,n,r);r.setData(f),Z8(r.getData(),n,i),f.each(function(p){var h=f.getItemModel(p),v=h.getShallow("symbol"),m=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),C=h.getShallow("symbolKeepAspect");if(Vt(v)||Vt(m)||Vt(g)||Vt(y)){var b=r.getRawValue(p),w=r.getDataParams(p);Vt(v)&&(v=v(b,w)),Vt(m)&&(m=m(b,w)),Vt(g)&&(g=g(b,w)),Vt(y)&&(y=y(b,w))}var S=h.getModel("itemStyle").getItemStyle(),x=Xb(u,"color");S.fill||(S.fill=x),f.setItemVisual(p,{symbol:v,symbolSize:m,symbolRotate:g,symbolOffset:y,symbolKeepAspect:C,style:S})}),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl(function(p){p.traverse(function(h){Zt(h).dataModel=r})}),this.markKeep(d),d.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(JL);function Rqe(e,t,n){var r;e?r=rt(e&&e.dimensions,function(s){var u=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Qe(Qe({},u),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var o=new go(r,n),i=rt(n.get("data"),nn(pb,t));e&&(i=Wn(i,nn(hb,e)));var l=hne(!!e,r);return o.initData(i,null,l),o}function Lqe(e){e.registerComponentModel(Mqe),e.registerComponentView(Iqe),e.registerPreprocessor(function(t){ZL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Pqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,o){return new t(n,r,o)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(rc),Zw=Bn(),Vqe=function(e,t,n,r){var o=e.getData(),i;if(nt(r))i=r;else{var l=r.type;if(l==="min"||l==="max"||l==="average"||l==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,u=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),u=Da(r.yAxis,r.xAxis);else{var c=pne(r,o,t,e);s=c.valueAxis;var d=GR(o,c.valueDataDim);u=QL(o,d,l)}var f=s.dim==="x"?0:1,p=1-f,h=Gt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var m=n.get("precision");m>=0&&Ln(u)&&(u=+u.toFixed(Math.min(m,20))),h.coord[f]=v.coord[f]=u,i=[h,v,{type:l,valueIndex:r.valueIndex,value:u}]}else i=[]}var g=[pb(e,i[0]),pb(e,i[1]),Qe({},i[2])];return g[2].type=g[2].type||null,on(g[2],g[0]),on(g[2],g[1]),g};function Hx(e){return!isNaN(e)&&!isFinite(e)}function Q8(e,t,n,r){var o=1-e,i=r.dimensions[e];return Hx(t[o])&&Hx(n[o])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function Fqe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(Q8(1,n,r,e)||Q8(0,n,r,e)))return!0}return hb(e,t[0])&&hb(e,t[1])}function n2(e,t,n,r,o){var i=r.coordinateSystem,l=e.getItemModel(t),s,u=Ct(l.get("x"),o.getWidth()),c=Ct(l.get("y"),o.getHeight());if(!isNaN(u)&&!isNaN(c))s=[u,c];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=i.dimensions,f=e.get(d[0],t),p=e.get(d[1],t);s=i.dataToPoint([f,p])}if(Up(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),d=i.dimensions;Hx(e.get(d[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):Hx(e.get(d[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}e.setItemLayout(t,s)}var zqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,o){r.eachSeries(function(i){var l=rc.getMarkerModelFromSeries(i,"markLine");if(l){var s=l.getData(),u=Zw(l).from,c=Zw(l).to;u.each(function(d){n2(u,d,!0,i,o),n2(c,d,!1,i,o)}),s.each(function(d){s.setItemLayout(d,[u.getItemLayout(d),c.getItemLayout(d)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,o,i){var l=n.coordinateSystem,s=n.id,u=n.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,new CL);this.group.add(d.group);var f=$qe(l,n,r),p=f.from,h=f.to,v=f.line;Zw(r).from=p,Zw(r).to=h,r.setData(v);var m=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),C=r.get("symbolOffset");nt(m)||(m=[m,m]),nt(g)||(g=[g,g]),nt(y)||(y=[y,y]),nt(C)||(C=[C,C]),f.from.each(function(w){b(p,w,!0),b(h,w,!1)}),v.each(function(w){var S=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[p.getItemLayout(w),h.getItemLayout(w)]),S.stroke==null&&(S.stroke=p.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:p.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(w,"symbolOffset"),fromSymbolRotate:p.getItemVisual(w,"symbolRotate"),fromSymbolSize:p.getItemVisual(w,"symbolSize"),fromSymbol:p.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:S})}),d.updateData(v),f.line.eachItemGraphicEl(function(w){Zt(w).dataModel=r,w.traverse(function(S){Zt(S).dataModel=r})});function b(w,S,x){var k=w.getItemModel(S);n2(w,S,x,n,i);var _=k.getModel("itemStyle").getItemStyle();_.fill==null&&(_.fill=Xb(u,"color")),w.setItemVisual(S,{symbolKeepAspect:k.get("symbolKeepAspect"),symbolOffset:en(k.get("symbolOffset",!0),C[x?0:1]),symbolRotate:en(k.get("symbolRotate",!0),y[x?0:1]),symbolSize:en(k.get("symbolSize"),g[x?0:1]),symbol:en(k.get("symbol",!0),m[x?0:1]),style:_})}this.markKeep(d),d.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(JL);function $qe(e,t,n){var r;e?r=rt(e&&e.dimensions,function(c){var d=t.getData().getDimensionInfo(t.getData().mapDimension(c))||{};return Qe(Qe({},d),{name:c,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var o=new go(r,n),i=new go(r,n),l=new go([],n),s=rt(n.get("data"),nn(Vqe,t,e,n));e&&(s=Wn(s,nn(Fqe,e)));var u=hne(!!e,r);return o.initData(rt(s,function(c){return c[0]}),null,u),i.initData(rt(s,function(c){return c[1]}),null,u),l.initData(rt(s,function(c){return c[2]})),l.hasItemOption=!0,{from:o,to:i,line:l}}function Hqe(e){e.registerComponentModel(Pqe),e.registerComponentView(zqe),e.registerPreprocessor(function(t){ZL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Wqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,o){return new t(n,r,o)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(rc),Qw=Bn(),Gqe=function(e,t,n,r){var o=r[0],i=r[1];if(!(!o||!i)){var l=pb(e,o),s=pb(e,i),u=l.coord,c=s.coord;u[0]=Da(u[0],-1/0),u[1]=Da(u[1],-1/0),c[0]=Da(c[0],1/0),c[1]=Da(c[1],1/0);var d=jk([{},l,s]);return d.coord=[l.coord,s.coord],d.x0=l.x,d.y0=l.y,d.x1=s.x,d.y1=s.y,d}};function Wx(e){return!isNaN(e)&&!isFinite(e)}function J8(e,t,n,r){var o=1-e;return Wx(t[o])&&Wx(n[o])}function Uqe(e,t){var n=t.coord[0],r=t.coord[1],o={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Up(e,"cartesian2d")?n&&r&&(J8(1,n,r)||J8(0,n,r))?!0:Oqe(e,o,i):hb(e,o)||hb(e,i)}function eH(e,t,n,r,o){var i=r.coordinateSystem,l=e.getItemModel(t),s,u=Ct(l.get(n[0]),o.getWidth()),c=Ct(l.get(n[1]),o.getHeight());if(!isNaN(u)&&!isNaN(c))s=[u,c];else{if(r.getMarkerPosition){var d=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),p=i.clampData(d),h=i.clampData(f),v=[];n[0]==="x0"?v[0]=p[0]>h[0]?f[0]:d[0]:v[0]=p[0]>h[0]?d[0]:f[0],n[1]==="y0"?v[1]=p[1]>h[1]?f[1]:d[1]:v[1]=p[1]>h[1]?d[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var m=e.get(n[0],t),g=e.get(n[1],t),y=[m,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Up(i,"cartesian2d")){var C=i.getAxis("x"),b=i.getAxis("y"),m=e.get(n[0],t),g=e.get(n[1],t);Wx(m)?s[0]=C.toGlobalCoord(C.getExtent()[n[0]==="x0"?0:1]):Wx(g)&&(s[1]=b.toGlobalCoord(b.getExtent()[n[1]==="y0"?0:1]))}isNaN(u)||(s[0]=u),isNaN(c)||(s[1]=c)}return s}var tH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Yqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,o){r.eachSeries(function(i){var l=rc.getMarkerModelFromSeries(i,"markArea");if(l){var s=l.getData();s.each(function(u){var c=rt(tH,function(f){return eH(s,u,f,i,o)});s.setItemLayout(u,c);var d=s.getItemGraphicEl(u);d.setShape("points",c)})}},this)},t.prototype.renderSeries=function(n,r,o,i){var l=n.coordinateSystem,s=n.id,u=n.getData(),c=this.markerGroupMap,d=c.get(s)||c.set(s,{group:new Kt});this.group.add(d.group),this.markKeep(d);var f=jqe(l,n,r);r.setData(f),f.each(function(p){var h=rt(tH,function(_){return eH(f,p,_,n,i)}),v=l.getAxis("x").scale,m=l.getAxis("y").scale,g=v.getExtent(),y=m.getExtent(),C=[v.parse(f.get("x0",p)),v.parse(f.get("x1",p))],b=[m.parse(f.get("y0",p)),m.parse(f.get("y1",p))];Mi(C),Mi(b);var w=!(g[0]>C[1]||g[1]<C[0]||y[0]>b[1]||y[1]<b[0]),S=!w;f.setItemLayout(p,{points:h,allClipped:S});var x=f.getItemModel(p).getModel("itemStyle").getItemStyle(),k=Xb(u,"color");x.fill||(x.fill=k,St(x.fill)&&(x.fill=W0(x.fill,.4))),x.stroke||(x.stroke=k),f.setItemVisual(p,"style",x)}),f.diff(Qw(d).data).add(function(p){var h=f.getItemLayout(p);if(!h.allClipped){var v=new wo({shape:{points:h.points}});f.setItemGraphicEl(p,v),d.group.add(v)}}).update(function(p,h){var v=Qw(d).data.getItemGraphicEl(h),m=f.getItemLayout(p);m.allClipped?v&&d.group.remove(v):(v?Fn(v,{shape:{points:m.points}},r,p):v=new wo({shape:{points:m.points}}),f.setItemGraphicEl(p,v),d.group.add(v))}).remove(function(p){var h=Qw(d).data.getItemGraphicEl(p);d.group.remove(h)}).execute(),f.eachItemGraphicEl(function(p,h){var v=f.getItemModel(h),m=f.getItemVisual(h,"style");p.useStyle(f.getItemVisual(h,"style")),Qa(p,Oa(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:St(m.fill)?W0(m.fill,1):"#000"}),Za(p,v),Fr(p,null,null,v.get(["emphasis","disabled"])),Zt(p).dataModel=r}),Qw(d).data=f,d.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(JL);function jqe(e,t,n){var r,o,i=["x0","y0","x1","y1"];if(e){var l=rt(e&&e.dimensions,function(c){var d=t.getData(),f=d.getDimensionInfo(d.mapDimension(c))||{};return Qe(Qe({},f),{name:c,ordinalMeta:null})});o=rt(i,function(c,d){return{name:c,type:l[d%2].type}}),r=new go(o,n)}else o=[{name:"value",type:"float"}],r=new go(o,n);var s=rt(n.get("data"),nn(Gqe,t,e,n));e&&(s=Wn(s,nn(Uqe,e)));var u=e?function(c,d,f,p){var h=c.coord[Math.floor(p/2)][p%2];return cd(h,o[p])}:function(c,d,f,p){return cd(c.value,o[p])};return r.initData(s,null,u),r.hasItemOption=!0,r}function Kqe(e){e.registerComponentModel(Wqe),e.registerComponentView(Yqe),e.registerPreprocessor(function(t){ZL(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Xqe=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"])}},QN=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,o=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),nt(r)&&q(r,function(i,l){St(i)&&(i={type:i}),r[l]=on(i,Xqe(o,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,o=0;o<n.length;o++){var i=n[o].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],o=[];n.eachRawSeries(function(u){var c=u.name;o.push(c);var d;if(u.legendVisualProvider){var f=u.legendVisualProvider,p=f.getAllNames();n.isSeriesFiltered(u)||(o=o.concat(p)),p.length?r=r.concat(p):d=!0}else d=!0;d&&ZI(u)&&r.push(u.name)}),this._availableNames=o;var i=this.get("data")||r,l=Ot(),s=rt(i,function(u){return(St(u)||Ln(u))&&(u={name:u}),l.get(u.name)?null:(l.set(u.name,!0),new Gn(u,this,this.ecModel))},this);this._data=Wn(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,o=this.get("selectedMode");if(o==="single"){var i=this._data;q(i,function(l){r[l.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;q(n,function(o){r[o.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;q(n,function(o){var i=o.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&pn(this._availableNames,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}(Cn),Nh=nn,JN=q,Jw=Kt,vne=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Jw),this.group.add(this._selectorGroup=new Jw),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,o){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var l=n.get("align"),s=n.get("orient");(!l||l==="auto")&&(l=n.get("left")==="right"&&s==="vertical"?"right":"left");var u=n.get("selector",!0),c=n.get("selectorPosition",!0);u&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(l,n,r,o,u,s,c);var d=n.getBoxLayoutParams(),f={width:o.getWidth(),height:o.getHeight()},p=n.get("padding"),h=va(d,f,p),v=this.layoutInner(n,l,h,i,u,c),m=va(zt({width:v.width,height:v.height},d),f,p);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rne(v,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,o,i,l,s,u){var c=this.getContentGroup(),d=Ot(),f=r.get("selectedMode"),p=[];o.eachRawSeries(function(h){!h.get("legendHoverLink")&&p.push(h.id)}),JN(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
115
115
|
`)){var g=new Jw;g.newline=!0,c.add(g);return}var y=o.getSeriesByName(m)[0];if(!d.get(m))if(y){var C=y.getData(),b=C.getVisual("legendLineStyle")||{},w=C.getVisual("legendIcon"),S=C.getVisual("style"),x=this._createItem(y,m,v,h,r,n,b,S,w,f,i);x.on("click",Nh(nH,m,null,i,p)).on("mouseover",Nh(eB,y.name,null,i,p)).on("mouseout",Nh(tB,y.name,null,i,p)),o.ssr&&x.eachChild(function(k){var _=Zt(k);_.seriesIndex=y.seriesIndex,_.dataIndex=v,_.ssrType="legend"}),d.set(m,!0)}else o.eachRawSeries(function(k){if(!d.get(m)&&k.legendVisualProvider){var _=k.legendVisualProvider;if(!_.containName(m))return;var T=_.indexOfName(m),E=_.getItemVisual(T,"style"),A=_.getItemVisual(T,"legendIcon"),D=Lo(E.fill);D&&D[3]===0&&(D[3]=.2,E=Qe(Qe({},E),{fill:Ul(D,"rgba")}));var B=this._createItem(k,m,v,h,r,n,{},E,A,f,i);B.on("click",Nh(nH,null,m,i,p)).on("mouseover",Nh(eB,null,m,i,p)).on("mouseout",Nh(tB,null,m,i,p)),o.ssr&&B.eachChild(function(N){var M=Zt(N);M.seriesIndex=k.seriesIndex,M.dataIndex=v,M.ssrType="legend"}),d.set(m,!0)}},this)},this),l&&this._createSelector(l,r,i,s,u)},t.prototype._createSelector=function(n,r,o,i,l){var s=this.getSelectorGroup();JN(n,function(c){var d=c.type,f=new Dn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var p=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Qa(f,{normal:p,emphasis:h},{defaultText:c.title}),ld(f)})},t.prototype._createItem=function(n,r,o,i,l,s,u,c,d,f,p){var h=n.visualDrawType,v=l.get("itemWidth"),m=l.get("itemHeight"),g=l.isSelected(r),y=i.get("symbolRotate"),C=i.get("symbolKeepAspect"),b=i.get("icon");d=b||d||"roundRect";var w=qqe(d,i,u,c,h,g,p),S=new Jw,x=i.getModel("textStyle");if(Vt(n.getLegendIcon)&&(!b||b==="inherit"))S.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:d,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:C}));else{var k=b==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;S.add(Zqe({itemWidth:v,itemHeight:m,icon:d,iconRotate:k,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:C}))}var _=s==="left"?v+5:-5,T=s,E=l.get("formatter"),A=r;St(E)&&E?A=E.replace("{name}",r??""):Vt(E)&&(A=E(r));var D=g?x.getTextColor():i.get("inactiveColor");S.add(new Dn({style:gr(x,{text:A,x:_,y:m/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var B=new Mn({shape:S.getBoundingRect(),style:{fill:"transparent"}}),N=i.getModel("tooltip");return N.get("show")&&$p({el:B,componentModel:l,itemName:r,itemTooltipOption:N.option}),S.add(B),S.eachChild(function(M){M.silent=!0}),B.silent=!f,this.getContentGroup().add(S),ld(S),S.__legendDataIndex=o,S},t.prototype.layoutInner=function(n,r,o,i,l,s){var u=this.getContentGroup(),c=this.getSelectorGroup();up(n.get("orient"),u,n.get("itemGap"),o.width,o.height);var d=u.getBoundingRect(),f=[-d.x,-d.y];if(c.markRedraw(),u.markRedraw(),l){up("horizontal",c,n.get("selectorItemGap",!0));var p=c.getBoundingRect(),h=[-p.x,-p.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",C=m===0?"y":"x";s==="end"?h[m]+=d[g]+v:f[m]+=p[g]+v,h[1-m]+=d[y]/2-p[y]/2,c.x=h[0],c.y=h[1],u.x=f[0],u.y=f[1];var b={x:0,y:0};return b[g]=d[g]+v+p[g],b[y]=Math.max(d[y],p[y]),b[C]=Math.min(0,p[C]+h[1-m]),b}else return u.x=f[0],u.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(wr);function qqe(e,t,n,r,o,i,l){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),JN(g,function(C,b){g[b]==="inherit"&&(g[b]=y[b])})}var u=t.getModel("itemStyle"),c=u.getItemStyle(),d=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=u.getShallow("decal");c.decal=!f||f==="inherit"?r.decal:fm(f,l),c.fill==="inherit"&&(c.fill=r[o]),c.stroke==="inherit"&&(c.stroke=r[d]),c.opacity==="inherit"&&(c.opacity=(o==="fill"?r:n).opacity),s(c,r);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var v=t.get("inactiveBorderWidth"),m=c[d];c.lineWidth=v==="auto"?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function Zqe(e){var t=e.icon||"roundRect",n=ia(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function nH(e,t,n,r){tB(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),eB(e,t,n,r)}function mne(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,o=t.length;r<o&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function eB(e,t,n,r){mne(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function tB(e,t,n,r){mne(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function Qqe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function Zg(e,t,n){var r=e==="allSelect"||e==="inverseSelect",o={},i=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),rH(s,o),i.push(s.componentIndex)});var l={};return n.eachComponent("legend",function(s){q(o,function(u,c){s[u?"select":"unSelect"](c)}),rH(s,l)}),r?{selected:l,legendIndex:i}:{name:t.name,selected:l}}function rH(e,t){var n=t||{};return q(e.getData(),function(r){var o=r.get("name");if(!(o===`
|
|
116
|
-
`||o==="")){var i=e.isSelected(o);Tt(n,o)?n[o]=n[o]&&i:n[o]=i}}),n}function Jqe(e){e.registerAction("legendToggleSelect","legendselectchanged",nn(Zg,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",nn(Zg,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",nn(Zg,"inverseSelect")),e.registerAction("legendSelect","legendselected",nn(Zg,"select")),e.registerAction("legendUnSelect","legendunselected",nn(Zg,"unSelect"))}function gne(e){e.registerComponentModel(QN),e.registerComponentView(vne),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Qqe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Jqe(e)}var eZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,o){var i=Um(n);e.prototype.init.call(this,n,r,o),aH(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),aH(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Bd(QN.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(QN);function aH(e,t,n){var r=e.getOrient(),o=[1,1];o[r.index]=0,Sd(t,n,{type:"box",ignoreSize:!!o})}var oH=Kt,r2=["width","height"],a2=["x","y"],tZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new oH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oH)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,o,i,l,s,u){var c=this;e.prototype.renderInner.call(this,n,r,o,i,l,s,u);var d=this._controllerGroup,f=r.get("pageIconSize",!0),p=nt(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");d.add(new Dn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",C=Hm(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:_t(c._pageGo,c,y,r,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});C.name=m,d.add(C)}},t.prototype.layoutInner=function(n,r,o,i,l,s){var u=this.getSelectorGroup(),c=n.getOrient().index,d=r2[c],f=a2[c],p=r2[1-c],h=a2[1-c];l&&up("horizontal",u,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=u.getBoundingRect(),g=[-m.x,-m.y],y=Gt(o);l&&(y[d]=o[d]-m[d]-v);var C=this._layoutContentAndController(n,i,y,c,d,p,h,f);if(l){if(s==="end")g[c]+=C[d]+v;else{var b=m[d]+v;g[c]-=b,C[f]-=b}C[d]+=m[d]+v,g[1-c]+=C[h]+C[p]/2-m[p]/2,C[p]=Math.max(C[p],m[p]),C[h]=Math.min(C[h],m[h]+g[1-c]),u.x=g[0],u.y=g[1],u.markRedraw()}return C},t.prototype._layoutContentAndController=function(n,r,o,i,l,s,u,c){var d=this.getContentGroup(),f=this._containerGroup,p=this._controllerGroup;up(n.get("orient"),d,n.get("itemGap"),i?o.width:null,i?null:o.height),up("horizontal",p,n.get("pageButtonItemGap",!0));var h=d.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=h[l]>o[l],g=[-h.x,-h.y];r||(g[i]=d[c]);var y=[0,0],C=[-v.x,-v.y],b=en(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var w=n.get("pageButtonPosition",!0);w==="end"?C[i]+=o[l]-v[l]:y[i]+=v[l]+b}C[1-i]+=h[s]/2-v[s]/2,d.setPosition(g),f.setPosition(y),p.setPosition(C);var S={x:0,y:0};if(S[l]=m?o[l]:h[l],S[s]=Math.max(h[s],v[s]),S[u]=Math.min(0,v[u]+C[1-i]),f.__rectSize=o[l],m){var x={x:0,y:0};x[l]=Math.max(o[l]-v[l]-b,0),x[s]=S[s],f.setClipPath(new Mn({shape:x})),f.__rectSize=x[l]}else p.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(n);return k.pageIndex!=null&&Fn(d,{x:k.contentPosition[0],y:k.contentPosition[1]},m?n:null),this._updatePageInfoView(n,k),S},t.prototype._pageGo=function(n,r,o){var i=this._getPageInfo(r)[n];i!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var o=this._controllerGroup;q(["pagePrev","pageNext"],function(d){var f=d+"DataIndex",p=r[f]!=null,h=o.childOfName(d);h&&(h.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var i=o.childOfName("pageText"),l=n.get("pageFormatter"),s=r.pageIndex,u=s!=null?s+1:0,c=r.pageCount;i&&l&&i.setStyle("text",St(l)?l.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):l({current:u,total:c}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),i=this._containerGroup.__rectSize,l=n.getOrient().index,s=r2[l],u=a2[l],c=this._findTargetItemIndex(r),d=o.children(),f=d[c],p=d.length,h=p?1:0,v={contentPosition:[o.x,o.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=w(f);v.contentPosition[l]=-m.s;for(var g=c+1,y=m,C=m,b=null;g<=p;++g)b=w(d[g]),(!b&&C.e>y.s+i||b&&!S(b,y.s))&&(C.i>y.i?y=C:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),C=b;for(var g=c-1,y=m,C=m,b=null;g>=-1;--g)b=w(d[g]),(!b||!S(C,b.s))&&y.i<C.i&&(C=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function w(x){if(x){var k=x.getBoundingRect(),_=k[u]+x[u];return{s:_,e:_+k[s],i:x.__legendDataIndex}}}function S(x,k){return x.e>=k&&x.s<=k+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,o=this.getContentGroup(),i;return o.eachChild(function(l,s){var u=l.__legendDataIndex;i==null&&u!=null&&(i=s),u===n&&(r=s)}),r??i},t.type="legend.scroll",t}(vne);function nZe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(o){o.setScrollDataIndex(r)})})}function rZe(e){vn(gne),e.registerComponentModel(eZe),e.registerComponentView(tZe),nZe(e)}function aZe(e){vn(gne),vn(rZe)}var oZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Bd(fb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(fb),eP=Bn();function iZe(e,t,n){eP(e).coordSysRecordMap.each(function(r){var o=r.dataZoomInfoMap.get(t.uid);o&&(o.getRange=n)})}function lZe(e,t){for(var n=eP(e).coordSysRecordMap,r=n.keys(),o=0;o<r.length;o++){var i=r[o],l=n.get(i),s=l.dataZoomInfoMap;if(s){var u=t.uid,c=s.get(u);c&&(s.removeKey(u),s.keys().length||yne(n,l))}}}function yne(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function sZe(e,t){var n={model:t,containsPoint:nn(cZe,t),dispatchAction:nn(uZe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new rC(e.getZr());return q(["pan","zoom","scrollMove"],function(o){r.on(o,function(i){var l=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var u=(s.getRange||{})[o],c=u&&u(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&c&&l.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),l.length&&n.dispatchAction(l)})}),n}function uZe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function cZe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function dZe(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(i){var l=i.model,s=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function fZe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=eP(n),o=r.coordSysRecordMap||(r.coordSysRecordMap=Ot());o.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var l=ene(i);q(l.infoList,function(s){var u=s.model.uid,c=o.get(u)||o.set(u,sZe(n,s.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=Ot());d.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),o.each(function(i){var l=i.controller,s,u=i.dataZoomInfoMap;if(u){var c=u.keys()[0];c!=null&&(s=u.get(c))}if(!s){yne(o,i);return}var d=dZe(u);l.enable(d.controlType,d.opt),l.setPointerChecker(i.containsPoint),Xm(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var pZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,o){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),iZe(o,n,{pan:_t(o2.pan,this),zoom:_t(o2.zoom,this),scrollMove:_t(o2.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lZe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(UL),o2={zoom:function(e,t,n,r){var o=this.range,i=o.slice(),l=e.axisModels[0];if(l){var s=i2[t](null,[r.originX,r.originY],l,n,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/r.scale,0);i[0]=(i[0]-u)*c+u,i[1]=(i[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(jp(0,i,[0,100],0,d.minSpan,d.maxSpan),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}},pan:iH(function(e,t,n,r,o,i){var l=i2[r]([i.oldX,i.oldY],[i.newX,i.newY],t,o,n);return l.signal*(e[1]-e[0])*l.pixel/l.pixelLength}),scrollMove:iH(function(e,t,n,r,o,i){var l=i2[r]([0,0],[i.scrollDelta,i.scrollDelta],t,o,n);return l.signal*(e[1]-e[0])*i.scrollDelta})};function iH(e){return function(t,n,r,o){var i=this.range,l=i.slice(),s=t.axisModels[0];if(s){var u=e(l,s,t,n,r,o);if(jp(u,l,[0,100],"all"),this.range=l,i[0]!==l[0]||i[1]!==l[1])return l}}}var i2={grid:function(e,t,n,r,o){var i=n.axis,l={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(l.pixel=t[0]-e[0],l.pixelLength=s.width,l.pixelStart=s.x,l.signal=i.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=s.height,l.pixelStart=s.y,l.signal=i.inverse?-1:1),l},polar:function(e,t,n,r,o){var i=n.axis,l={},s=o.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(l.pixel=t[0]-e[0],l.pixelLength=u[1]-u[0],l.pixelStart=u[0],l.signal=i.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=c[1]-c[0],l.pixelStart=c[0],l.signal=i.inverse?-1:1),l},singleAxis:function(e,t,n,r,o){var i=n.axis,l=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=l.width,s.pixelStart=l.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=l.height,s.pixelStart=l.y,s.signal=i.inverse?-1:1),s}};function bne(e){YL(e),e.registerComponentModel(oZe),e.registerComponentView(pZe),fZe(e)}var hZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bd(fb.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(fb),Qg=Mn,lH=7,vZe=1,l2=30,mZe=7,Jg="horizontal",sH="vertical",gZe=5,yZe=["line","bar","candlestick","scatter"],bZe={easing:"cubicOut",duration:100,delay:0},CZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=_t(this._onBrush,this),this._onBrushEnd=_t(this._onBrushEnd,this)},t.prototype.render=function(n,r,o,i){if(e.prototype.render.apply(this,arguments),Xm(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){J0(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Kt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,o=n.get("brushSelect"),i=o?mZe:0,l=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},u=this._orient===Jg?{right:s.width-l.x-l.width,top:s.height-l2-lH-i,width:l.width,height:l2}:{right:lH,top:l.y,width:l2,height:l.height},c=Um(n.option);q(["right","top","width","height"],function(f){c[f]==="ph"&&(c[f]=u[f])});var d=va(c,s);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===sH&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,o=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),l=i&&i.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Jg&&!l?{scaleY:u?1:-1,scaleX:1}:o===Jg&&l?{scaleY:u?1:-1,scaleX:-1}:o===sH&&!l?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([s]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,o=this._displayables.sliderGroup,i=n.get("brushSelect");o.add(new Qg({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var l=new Qg({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:_t(this._onClickPanel,this)}),s=this.api.getZr();i?(l.on("mousedown",this._onBrushStart,this),l.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(l)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,o=this._shadowSize||[],i=n.series,l=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),u=s&&l.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(u==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(l!==this._shadowData||u!==this._shadowDim||r[0]!==o[0]||r[1]!==o[1]){var f=l.getDataExtent(u),p=(f[1]-f[0])*.3;f=[f[0]-p,f[1]+p];var h=[0,r[1]],v=[0,r[0]],m=[[r[0],0],[0,0]],g=[],y=v[1]/(l.count()-1),C=0,b=Math.round(l.count()/r[0]),w;l.each([u],function(T,E){if(b>0&&E%b){C+=y;return}var A=T==null||isNaN(T)||T==="",D=A?0:Jn(T,f,h,!0);A&&!w&&E?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&w&&(m.push([C,0]),g.push([C,0])),m.push([C,D]),g.push([C,D]),C+=y,w=A}),c=this._shadowPolygonPts=m,d=this._shadowPolylinePts=g}this._shadowData=l,this._shadowDim=u,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(T){var E=S.getModel(T?"selectedDataBackground":"dataBackground"),A=new Kt,D=new wo({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),B=new xo({shape:{points:d},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(D),A.add(B),A}for(var k=0;k<3;k++){var _=x(k===1);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var o,i=this.ecModel;return n.eachTargetAxis(function(l,s){var u=n.getAxisProxy(l,s).getTargetSeriesModels();q(u,function(c){if(!o&&!(r!==!0&&pn(yZe,c.get("type"))<0)){var d=i.getComponent(ed(l),s).axis,f=wZe(l),p,h=c.coordinateSystem;f!=null&&h.getOtherAxis&&(p=h.getOtherAxis(d).inverse),f=c.getData().mapDimension(f),o={thisAxis:d,series:c,thisDim:l,otherDim:f,otherAxisInverse:p}}},this)},this),o}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,o=r.handles=[null,null],i=r.handleLabels=[null,null],l=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,c=this.api,d=u.get("borderRadius")||0,f=u.get("brushSelect"),p=r.filler=new Qg({silent:f,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});l.add(p),l.add(new Qg({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:d},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:vZe,fill:"rgba(0,0,0,0)"}})),q([0,1],function(b){var w=u.get("handleIcon");!gx[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var S=ia(w,-1,0,2,2,null,!0);S.attr({cursor:uH(this._orient),draggable:!0,drift:_t(this._onDragMove,this,b),ondragend:_t(this._onDragEnd,this),onmouseover:_t(this._showDataInfo,this,!0),onmouseout:_t(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),k=u.get("handleSize");this._handleHeight=Ct(k,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(u.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),ld(S);var _=u.get("handleColor");_!=null&&(S.style.fill=_),l.add(o[b]=S);var T=u.getModel("textStyle"),E=u.get("handleLabel")||{},A=E.show||!1;n.add(i[b]=new Dn({silent:!0,invisible:!A,style:gr(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=p;if(f){var v=Ct(u.get("moveHandleSize"),s[1]),m=r.moveHandle=new Mn({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=r.moveHandleIcon=ia(u.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Mn({invisible:!0,shape:{y:s[1]-C,height:v+C}}),h.on("mouseover",function(){c.enterEmphasis(m)}).on("mouseout",function(){c.leaveEmphasis(m)}),l.add(m),l.add(y),l.add(h)}h.attr({draggable:!0,cursor:uH(this._orient),drift:_t(this._onDragMove,this,"all"),ondragstart:_t(this._showDataInfo,this,!0),ondragend:_t(this._onDragEnd,this),onmouseover:_t(this._showDataInfo,this,!0),onmouseout:_t(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Jn(n[0],[0,100],r,!0),Jn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var o=this.dataZoomModel,i=this._handleEnds,l=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];jp(r,i,l,o.get("zoomLock")?"all":n,s.minSpan!=null?Jn(s.minSpan,u,l,!0):null,s.maxSpan!=null?Jn(s.maxSpan,u,l,!0):null);var c=this._range,d=this._range=Mi([Jn(i[0],l,u,!0),Jn(i[1],l,u,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},t.prototype._updateView=function(n){var r=this._displayables,o=this._handleEnds,i=Mi(o.slice()),l=this._size;q([0,1],function(h){var v=r.handles[h],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:o[h]+(h?-1:1),y:l[1]/2-m/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:l[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=r.dataShadowSegs,c=[0,i[0],i[1],l[0]],d=0;d<u.length;d++){var f=u[d],p=f.getClipPath();p||(p=new Mn,f.setClipPath(p)),p.setShape({x:c[d],y:0,width:c[d+1]-c[d],height:l[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,o=this._displayables,i=o.handleLabels,l=this._orient,s=["",""];if(r.get("showDetail")){var u=r.findRepresentativeAxisProxy();if(u){var c=u.getAxisModel().axis,d=this._range,f=n?u.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:u.getDataValueWindow();s=[this._formatLabel(f[0],c),this._formatLabel(f[1],c)]}}var p=Mi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=sd(o.handles[v].parent,this.group),g=cE(v===0?"right":"left",m),y=this._handleWidth/2+gZe,C=Yl([p[v]+(v===0?-y:y),this._size[1]/2],m);i[v].setStyle({x:C[0],y:C[1],verticalAlign:l===Jg?"middle":g,align:l===Jg?g:"center",text:s[v]})}},t.prototype._formatLabel=function(n,r){var o=this.dataZoomModel,i=o.get("labelFormatter"),l=o.get("labelPrecision");(l==null||l==="auto")&&(l=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(l,20));return Vt(i)?i(n,s):St(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},o=r.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),l=i.get("show")||!1,s=n||this._dragging?l:o,u=this._displayables,c=u.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),u.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](u.moveHandle,1)},t.prototype._onDragMove=function(n,r,o,i){this._dragging=!0,qu(i.event);var l=this._displayables.sliderGroup.getLocalTransform(),s=Yl([r,o],l,!0),u=this._updateInterval(n,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),u&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(o[0]<0||o[0]>r[0]||o[1]<0||o[1]>r[1])){var i=this._handleEnds,l=(i[0]+i[1])/2,s=this._updateInterval("all",o[0]-l);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,o=n.offsetY;this._brushStart=new sn(r,o),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var o=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(o.width)<5)){var l=this._getViewExtent(),s=[0,100];this._range=Mi([Jn(o.x,l,s,!0),Jn(o.x+o.width,l,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(qu(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var o=this._displayables,i=this.dataZoomModel,l=o.brushRect;l||(l=o.brushRect=new Qg({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(l)),l.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,c=u.transformCoordToLocal(n,r),d=u.transformCoordToLocal(s.x,s.y),f=this._size;c[0]=Math.max(Math.min(f[0],c[0]),0),l.setShape({x:d[0],y:0,width:c[0]-d[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?bZe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=ene(this.dataZoomModel).infoList;if(!n&&r.length){var o=r[0].model.coordinateSystem;n=o.getRect&&o.getRect()}if(!n){var i=this.api.getWidth(),l=this.api.getHeight();n={x:i*.2,y:l*.2,width:i*.6,height:l*.6}}return n},t.type="dataZoom.slider",t}(UL);function wZe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function uH(e){return e==="vertical"?"ns-resize":"ew-resize"}function Cne(e){e.registerComponentModel(hZe),e.registerComponentView(CZe),YL(e)}function SZe(e){vn(bne),vn(Cne)}var wne={get:function(e,t,n){var r=Gt((xZe[e]||{})[t]);return n&&nt(r)?r[r.length-1]:r}},xZe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},cH=Na.mapVisual,kZe=Na.eachVisual,EZe=nt,dH=q,_Ze=Mi,TZe=Jn,Gx=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o)},t.prototype.optionUpdated=function(n,r){var o=this.option;!r&&cne(o,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=_t(n,this),this.controllerVisuals=XN(this.option.controller,r,n),this.targetVisuals=XN(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(o,i){r.push(i)}):r=ur(n),r},t.prototype.eachTargetSeries=function(n,r){q(this.getTargetSeriesIndices(),function(o){var i=this.ecModel.getSeriesByIndex(o);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(o){o===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,o){var i=this.option,l=i.precision,s=this.dataBound,u=i.formatter,c;o=o||["<",">"],nt(n)&&(n=n.slice(),c=!0);var d=r?n:c?[f(n[0]),f(n[1])]:f(n);if(St(u))return u.replace("{value}",c?d[0]:d).replace("{value2}",c?d[1]:d);if(Vt(u))return c?u(n[0],n[1]):u(n);if(c)return n[0]===s[0]?o[0]+" "+d[1]:n[1]===s[1]?o[1]+" "+d[0]:d[0]+" - "+d[1];return d;function f(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(l,20))}},t.prototype.resetExtent=function(){var n=this.option,r=_Ze([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var o=n.dimensions,i=o.length-1;i>=0;i--){var l=o[i],s=n.getDimensionInfo(l);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,o={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),l=r.controller||(r.controller={});on(i,o),on(l,o);var s=this.isCategory();u.call(this,i),u.call(this,l),c.call(this,i,"inRange","outOfRange"),d.call(this,l);function u(f){EZe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function c(f,p,h){var v=f[p],m=f[h];v&&!m&&(m=f[h]={},dH(v,function(g,y){if(Na.isValidType(y)){var C=wne.get(y,"inactive",s);C!=null&&(m[y]=C,y==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function d(f){var p=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),m=this.getItemSymbol(),g=m||"roundRect";dH(this.stateList,function(y){var C=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=p&&Gt(p)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=h&&Gt(h)||(s?C[0]:[C[0],C[0]])),b.symbol=cH(b.symbol,function(x){return x==="none"?g:x});var w=b.symbolSize;if(w!=null){var S=-1/0;kZe(w,function(x){x>S&&(S=x)}),b.symbolSize=cH(w,function(x){return TZe(x,[0,S],[0,C[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Cn),fH=[20,140],AZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=fH[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=fH[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):nt(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Mi((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,o=this.getExtent();return(r[0]<=o[0]||r[0]<=n)&&(r[1]>=o[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(o){var i=[],l=o.getData();l.each(this.getDataDimensionIndex(l),function(s,u){n[0]<=s&&s<=n[1]&&i.push(u)},this),r.push({seriesId:o.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=pH(this,"outOfRange",this.getExtent()),o=pH(this,"inRange",this.option.range.slice()),i=[];function l(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,u=0,c=o.length,d=r.length;u<d&&(!o.length||r[u]<=o[0]);u++)r[u]<o[s]&&l(r[u],"outOfRange");for(var f=1;s<c;s++,f=0)f&&i.length&&l(o[s],"outOfRange"),l(o[s],"inRange");for(var f=1;u<d;u++)(!o.length||o[o.length-1]<r[u])&&(f&&(i.length&&l(i[i.length-1].value,"outOfRange"),f=0),l(r[u],"outOfRange"));var p=i.length;return{stops:i,outerColors:[p?i[0].color:"transparent",p?i[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Bd(Gx.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Gx);function pH(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,o=(n[1]-n[0])/r,i=n[0],l=[],s=0;s<=r&&i<n[1];s++)l.push(i),i+=o;return l.push(n[1]),l}var Sne=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,o,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,o,i)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,o=Wp(r.get("padding")||0),i=n.getBoundingRect();n.add(new Mn({z2:-1,silent:!0,shape:{x:i.x-o[3],y:i.y-o[0],width:i.width+o[3]+o[1],height:i.height+o[0]+o[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,o){o=o||{};var i=o.forceState,l=this.visualMapModel,s={};if(r==="color"){var u=l.get("contentColor");s.color=u}function c(h){return s[h]}function d(h,v){s[h]=v}var f=l.controllerVisuals[i||l.getValueState(n)],p=Na.prepareVisualTypes(f);return q(p,function(h){var v=f[h];o.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),Na.dependsOn(h,r)&&v&&v.applyVisual(n,c,d)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,o=this.api;mE(n,r.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},t.prototype.doRender=function(n,r,o,i){},t.type="visualMap",t}(wr),hH=[["left","right","width"],["top","bottom","height"]];function xne(e,t,n){var r=e.option,o=r.align;if(o!=null&&o!=="auto")return o;for(var i={width:t.getWidth(),height:t.getHeight()},l=r.orient==="horizontal"?1:0,s=hH[l],u=[0,null,10],c={},d=0;d<3;d++)c[hH[1-l][d]]=u[d],c[s[d]]=d===2?n[0]:r[s[d]];var f=[["x","width",3],["y","height",0]][l],p=va(c,i,r.padding);return s[(p.margin[f[2]]||0)+p[f[0]]+p[f[1]]*.5<i[f[1]]*.5?0:1]}function cS(e,t){return q(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Ms=Jn,DZe=q,vH=Math.min,s2=Math.max,MZe=12,NZe=6,BZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=_t(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=_t(this._hideIndicator,this)},t.prototype.doRender=function(n,r,o,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var o=n.get("text");this._renderEndsText(r,o,0),this._renderEndsText(r,o,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,o){if(r){var i=r[1-o];i=i!=null?i+"":"";var l=this.visualMapModel,s=l.get("textGap"),u=l.itemSize,c=this._shapes.mainGroup,d=this._applyTransform([u[0]/2,o===0?-s:u[1]+s],c),f=this._applyTransform(o===0?"bottom":"top",c),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Dn({style:gr(h,{x:d[0],y:d[1],verticalAlign:p==="horizontal"?"middle":f,align:p==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,o=this._shapes,i=r.itemSize,l=this._orient,s=this._useHandle,u=xne(r,this.api,i),c=o.mainGroup=this._createBarGroup(u),d=new Kt;c.add(d),d.add(o.outOfRange=mH()),d.add(o.inRange=mH(null,s?yH(this._orient):null,_t(this._dragHandle,this,"all",!1),_t(this._dragHandle,this,"all",!0))),d.setClipPath(new Mn({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),p=s2(f.width,f.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(r,c,0,i,p,l),this._createHandle(r,c,1,i,p,l)),this._createIndicator(r,c,i,p,l),n.add(c)},t.prototype._createHandle=function(n,r,o,i,l,s){var u=_t(this._dragHandle,this,o,!1),c=_t(this._dragHandle,this,o,!0),d=es(n.get("handleSize"),i[0]),f=ia(n.get("handleIcon"),-d/2,-d/2,d,d,null,!0),p=yH(this._orient);f.attr({cursor:p,draggable:!0,drift:u,ondragend:c,onmousemove:function(y){qu(y.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),jf(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new Dn({cursor:p,draggable:!0,drift:u,onmousemove:function(y){qu(y.event)},ondragend:c,style:gr(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var m=[d,0],g=this._shapes;g.handleThumbs[o]=f,g.handleLabelPoints[o]=m,g.handleLabels[o]=v},t.prototype._createIndicator=function(n,r,o,i,l){var s=es(n.get("indicatorSize"),o[0]),u=ia(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);u.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var c=n.getModel("indicatorStyle").getItemStyle();if(u instanceof Ra){var d=u.style;u.useStyle(Qe({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},c))}else u.useStyle(c);r.add(u);var f=this.visualMapModel.textStyleModel,p=new Dn({silent:!0,invisible:!0,style:gr(f,{x:0,y:0,text:""})});this.group.add(p);var h=[(l==="horizontal"?i/2:NZe)+o[0]/2,0],v=this._shapes;v.indicator=u,v.indicatorLabel=p,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,o,i){if(this._useHandle){if(this._dragging=!r,!r){var l=this._applyTransform([o,i],this._shapes.mainGroup,!0);this._updateInterval(n,l[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():gH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),o=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[Ms(r[0],o,i,!0),Ms(r[1],o,i,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var o=this.visualMapModel,i=this._handleEnds,l=[0,o.itemSize[1]];jp(r,i,l,n,0);var s=o.getExtent();this._dataInterval=[Ms(i[0],l,s,!0),Ms(i[1],l,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,o=r.getExtent(),i=this._shapes,l=[0,r.itemSize[1]],s=n?l:this._handleEnds,u=this._createBarVisual(this._dataInterval,o,s,"inRange"),c=this._createBarVisual(o,o,l,"outOfRange");i.inRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),i.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,u)},t.prototype._createBarVisual=function(n,r,o,i){var l={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,l),u=[this.getControllerVisual(n[0],"symbolSize",l),this.getControllerVisual(n[1],"symbolSize",l)],c=this._createBarPoints(o,u);return{barColor:new zm(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var o=100,i=[],l=(n[1]-n[0])/o;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<o;s++){var u=n[0]+l*s;if(u>n[1])break;i.push({color:this.getControllerVisual(u,"color",r),offset:s/o})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var o=this.visualMapModel.itemSize;return[[o[0]-r[0],n[0]],[o[0],n[0]],[o[0],n[1]],[o[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,o=this.visualMapModel.get("inverse");return new Kt(r==="horizontal"&&!o?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&o?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!o?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var o=this._shapes,i=this.visualMapModel,l=o.handleThumbs,s=o.handleLabels,u=i.itemSize,c=i.getExtent(),d=this._applyTransform("left",o.mainGroup);DZe([0,1],function(f){var p=l[f];p.setStyle("fill",r.handlesColor[f]),p.y=n[f];var h=Ms(n[f],[0,u[1]],c,!0),v=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=v/u[0],p.x=u[0]-v/2;var m=Yl(o.handleLabelPoints[f],sd(p,this.group));if(this._orient==="horizontal"){var g=d==="left"||d==="top"?(u[0]-v)/2:(u[0]-v)/-2;m[1]+=g}s[f].setStyle({x:m[0],y:m[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,o,i){var l=this.visualMapModel,s=l.getExtent(),u=l.itemSize,c=[0,u[1]],d=this._shapes,f=d.indicator;if(f){f.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",p),v=this.getControllerVisual(n,"symbolSize"),m=Ms(n,s,c,!0),g=u[0]-v/2,y={x:f.x,y:f.y};f.y=m,f.x=g;var C=Yl(d.indicatorLabelPoint,sd(f,this.group)),b=d.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",d.mainGroup),S=this._orient,x=S==="horizontal";b.setStyle({text:(o||"")+l.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var k={x:g,y:m,style:{fill:h}},_={style:{x:C[0],y:C[1]}};if(l.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(k,T),b.animateTo(_,T)}else f.attr(k),b.attr(_);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var A=0;A<E.length;A++)this.api.enterBlur(E[A])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var o=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=vH(s2(0,i[1]),o[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=o[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var o=this.visualMapModel,i=o.itemSize;if(o.option.hoverLink){var l=[0,i[1]],s=o.getExtent();n=vH(s2(l[0],n),l[1]);var u=OZe(o,s,l),c=[n-u,n+u],d=Ms(n,l,s,!0),f=[Ms(c[0],l,s,!0),Ms(c[1],l,s,!0)];c[0]<l[0]&&(f[0]=-1/0),c[1]>l[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",u):f[1]===1/0?this._showIndicator(d,f[0],"> ",u):this._showIndicator(d,d,"≈ ",u));var p=this._hoverLinkDataIndices,h=[];(r||gH(o))&&(h=this._hoverLinkDataIndices=o.findTargetDataIndices(f));var v=_Fe(p,h);this._dispatchHighDown("downplay",cS(v[0],o)),this._dispatchHighDown("highlight",cS(v[1],o))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Xf(n.target,function(u){var c=Zt(u);if(c.dataIndex!=null)return r=c,!0},!0),!!r){var o=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(o)){var l=o.getData(r.dataType),s=l.getStore().get(i.getDataDimensionIndex(l),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var o=0;o<r.length;o++)this.api.leaveBlur(r[o])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cS(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,o,i){var l=sd(r,i?null:this.group);return nt(n)?Yl(n,l,o):cE(n,l,o)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Sne);function mH(e,t,n,r){return new wo({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(o){qu(o.event)},ondragend:r})}function OZe(e,t,n){var r=MZe/2,o=e.get("hoverLinkDataSize");return o&&(r=Ms(o,t,n,!0)/2),r}function gH(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function yH(e){return e==="vertical"?"ns-resize":"ew-resize"}var IZe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},RZe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},LZe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var o=e.pipelineContext;!r.isTargetSeries(e)||o&&o.large||n.push(aqe(r.stateList,r.targetVisuals,_t(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(o){if(o.isTargetSeries(e)){var i=o.getVisualMeta(_t(PZe,null,e,o))||{stops:[],outerColors:[]},l=o.getDataDimensionIndex(n);l>=0&&(i.dimension=l,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function PZe(e,t,n,r){for(var o=t.targetVisuals[r],i=Na.prepareVisualTypes(o),l={color:Xb(e.getData(),"color")},s=0,u=i.length;s<u;s++){var c=i[s],d=o[c==="opacity"?"__alphaForOpacity":c];d&&d.applyVisual(n,f,p)}return l.color;function f(h){return l[h]}function p(h,v){l[h]=v}}var bH=q;function VZe(e){var t=e&&e.visualMap;nt(t)||(t=t?[t]:[]),bH(t,function(n){if(n){Bh(n,"splitList")&&!Bh(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&nt(r)&&bH(r,function(o){Wt(o)&&(Bh(o,"start")&&!Bh(o,"min")&&(o.min=o.start),Bh(o,"end")&&!Bh(o,"max")&&(o.max=o.end))})}})}function Bh(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var CH=!1;function kne(e){CH||(CH=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(IZe,RZe),q(LZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(VZe))}function Ene(e){e.registerComponentModel(AZe),e.registerComponentView(BZe),kne(e)}var FZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],zZe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(l,s){o==="categories"?(l.mappingMethod="category",l.categories=Gt(i)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=rt(this._pieceList,function(u){return u=Gt(u),s!=="inRange"&&(u.visual=null),u}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},o=Na.listVisualTypes(),i=this.isCategory();q(n.pieces,function(s){q(o,function(u){s.hasOwnProperty(u)&&(r[u]=1)})}),q(r,function(s,u){var c=!1;q(this.stateList,function(d){c=c||l(n,d,u)||l(n.target,d,u)},this),!c&&q(this.stateList,function(d){(n[d]||(n[d]={}))[u]=wne.get(u,d==="inRange"?"active":"inactive",i)})},this);function l(s,u,c){return s&&s[u]&&s[u].hasOwnProperty(c)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var o=this.option,i=this._pieceList,l=(r?o:n).selected||{};if(o.selected=l,q(i,function(u,c){var d=this.getSelectedMapKey(u);l.hasOwnProperty(d)||(l[d]=!0)},this),o.selectedMode==="single"){var s=!1;q(i,function(u,c){var d=this.getSelectedMapKey(u);l[d]&&(s?l[d]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Gt(n)},t.prototype.getValueState=function(n){var r=Na.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],o=this._pieceList;return this.eachTargetSeries(function(i){var l=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(u,c){var d=Na.findPieceIndex(u,o);d===n&&l.push(c)},this),r.push({seriesId:i.id,dataIndex:l})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var o=n.interval||[];r=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],o=["",""],i=this;function l(d,f){var p=i.getRepresentValue({interval:d});f||(f=i.getValueState(p));var h=n(p,f);d[0]===-1/0?o[0]=h:d[1]===1/0?o[1]=h:r.push({value:d[0],color:h},{value:d[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var u=s[0].interval[0];u!==-1/0&&s.unshift({interval:[-1/0,u]}),u=s[s.length-1].interval[1],u!==1/0&&s.push({interval:[u,1/0]})}var c=-1/0;return q(s,function(d){var f=d.interval;f&&(f[0]>c&&l([c,f[0]],"outOfRange"),l(f.slice()),c=f[1])},this),{stops:r,outerColors:o}},t.type="visualMap.piecewise",t.defaultOption=Bd(Gx.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Gx),zZe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var i=(r[1]-r[0])/o;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var l=0,s=r[0];l<o;s+=i,l++){var u=l===o-1?r[1]:s+i;e.push({interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),VM(e),q(e,function(c,d){c.index=d,c.text=this.formatValueText(c.interval)},this)},categories:function(e){var t=this.option;q(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),wH(t,e)},pieces:function(e){var t=this.option;q(t.pieces,function(n,r){Wt(n)||(n={value:n});var o={text:"",index:r};if(n.label!=null&&(o.text=n.label),n.hasOwnProperty("value")){var i=o.value=n.value;o.interval=[i,i],o.close=[1,1]}else{for(var l=o.interval=[],s=o.close=[0,0],u=[1,0,1],c=[-1/0,1/0],d=[],f=0;f<2;f++){for(var p=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&l[f]==null;h++)l[f]=n[p[h]],s[f]=u[h],d[f]=h===2;l[f]==null&&(l[f]=c[f])}d[0]&&l[1]===1/0&&(s[0]=0),d[1]&&l[0]===-1/0&&(s[1]=0),l[0]===l[1]&&s[0]&&s[1]&&(o.value=l[0])}o.visual=Na.retrieveVisuals(n),e.push(o)},this),wH(t,e),VM(e),q(e,function(n){var r=n.close,o=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,o)},this)}};function wH(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var $Ze=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,o=r.get("textGap"),i=r.textStyleModel,l=i.getFont(),s=i.getTextColor(),u=this._getItemAlign(),c=r.itemSize,d=this._getViewData(),f=d.endsText,p=Da(r.get("showLabel",!0),!f),h=!r.get("selectedMode");f&&this._renderEndsText(n,f[0],c,p,u),q(d.viewPieceList,function(v){var m=v.piece,g=new Kt;g.onclick=_t(this._onItemClick,this,m),this._enableHoverLink(g,v.indexInModelPieceList);var y=r.getRepresentValue(m);if(this._createItemSymbol(g,y,[0,0,c[0],c[1]],h),p){var C=this.visualMapModel.getValueState(y);g.add(new Dn({style:{x:u==="right"?-o:c[0]+o,y:c[1]/2,text:m.text,verticalAlign:"middle",align:u,font:l,fill:s,opacity:C==="outOfRange"?.5:1},silent:h}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],c,p,u),up(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var o=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(l){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:l,batch:cS(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return xne(n,this.api,n.itemSize);var o=r.align;return(!o||o==="auto")&&(o="left"),o},t.prototype._renderEndsText=function(n,r,o,i,l){if(r){var s=new Kt,u=this.visualMapModel.textStyleModel;s.add(new Dn({style:gr(u,{x:i?l==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:i?l:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=rt(n.getPieceList(),function(s,u){return{piece:s,indexInModelPieceList:u}}),o=n.get("text"),i=n.get("orient"),l=n.get("inverse");return(i==="horizontal"?l:!l)?r.reverse():o&&(o=o.slice().reverse()),{viewPieceList:r,endsText:o}},t.prototype._createItemSymbol=function(n,r,o,i){var l=ia(this.getControllerVisual(r,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(r,"color"));l.silent=i,n.add(l)},t.prototype._onItemClick=function(n){var r=this.visualMapModel,o=r.option,i=o.selectedMode;if(i){var l=Gt(o.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(l[s]=!0,q(l,function(u,c){l[c]=c===s})):l[s]=!l[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:l})}},t.type="visualMap.piecewise",t}(Sne);function _ne(e){e.registerComponentModel(FZe),e.registerComponentView($Ze),kne(e)}function HZe(e){vn(Ene),vn(_ne)}var WZe={label:{enabled:!0},decal:{show:!1}},SH=Bn(),GZe={};function UZe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Gt(WZe);on(r.label,e.getLocaleModel().get("aria"),!1),on(n.option,r,!1),o(),i();function o(){var c=n.getModel("decal"),d=c.get("show");if(d){var f=Ot();e.eachSeries(function(p){if(!p.isColorBySeries()){var h=f.get(p.type);h||(h={},f.set(p.type,h)),SH(p).scope=h}}),e.eachRawSeries(function(p){if(e.isSeriesFiltered(p))return;if(Vt(p.enableAriaDecal)){p.enableAriaDecal();return}var h=p.getData();if(p.isColorBySeries()){var C=eN(p.ecModel,p.name,GZe,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,C))}else{var v=p.getRawData(),m={},g=SH(p).scope;h.each(function(S){var x=h.getRawIndex(S);m[x]=S});var y=v.count();v.each(function(S){var x=m[S],k=v.getName(S)||S+"",_=eN(p.ecModel,k,g,y),T=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",w(T,_))})}function w(S,x){var k=S?Qe(Qe({},x),S):x;return k.dirty=!0,k}})}}function i(){var c=t.getZr().dom;if(c){var d=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=zt(f.option,d),!!f.get("enabled")){if(c.setAttribute("role","img"),f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var p=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,m=Math.min(p,v),g;if(!(p<1)){var y=s();if(y){var C=f.get(["general","withTitle"]);g=l(C,{title:y})}else g=f.get(["general","withoutTitle"]);var b=[],w=p>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=l(w,{seriesCount:p}),e.eachSeries(function(_,T){if(T<m){var E=void 0,A=_.get("name"),D=A?"withName":"withoutName";E=p>1?f.get(["series","multiple",D]):f.get(["series","single",D]),E=l(E,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:u(_.subType)});var B=_.getData();if(B.count()>h){var N=f.get(["data","partialData"]);E+=l(N,{displayCnt:h})}else E+=f.get(["data","allData"]);for(var M=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),P=f.get(["data","excludeDimensionId"]),R=[],L=0;L<B.count();L++)if(L<h){var z=B.getName(L),F=P?Wn(B.getValues(L),function($,W){return pn(P,W)===-1}):B.getValues(L),G=f.get(["data",z?"withName":"withoutName"]);R.push(l(G,{name:z,value:F.join(M)}))}E+=R.join(M)+O,b.push(E)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),k=S.get("end");g+=b.join(x)+k,c.setAttribute("aria-label",g)}}}}function l(c,d){if(!St(c))return c;var f=c;return q(d,function(p,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),p)}),f}function s(){var c=e.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function u(c){var d=e.getLocaleModel().get(["series","typeNames"]);return d[c]||d.chart}}function YZe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},q(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function jZe(e){e.registerPreprocessor(YZe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,UZe)}var xH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},KZe=function(){function e(t){var n=this._condVal=St(t)?new RegExp(t):ZX(t)?t:null;if(n==null){var r="";er(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return St(n)?this._condVal.test(t):Ln(n)?this._condVal.test(t+""):!1},e}(),XZe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),ZZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e}(),QZe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),JZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),o=t?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?o:r))return!1;return!0},e}();function tP(e,t){if(e===!0||e===!1){var n=new XZe;return n.value=e,n}var r="";return Tne(e)||er(r),e.and?kH("and",e,t):e.or?kH("or",e,t):e.not?eQe(e,t):tQe(e,t)}function kH(e,t,n){var r=t[e],o="";nt(r)||er(o),r.length||er(o);var i=e==="and"?new qZe:new ZZe;return i.children=rt(r,function(l){return tP(l,n)}),i.children.length||er(o),i}function eQe(e,t){var n=e.not,r="";Tne(n)||er(r);var o=new QZe;return o.child=tP(n,t),o.child||er(r),o}function tQe(e,t){for(var n="",r=t.prepareGetValue(e),o=[],i=kn(e),l=e.parser,s=l?oQ(l):null,u=0;u<i.length;u++){var c=i[u];if(!(c==="parser"||t.valueGetterAttrMap.get(c))){var d=Tt(xH,c)?xH[c]:c,f=e[c],p=s?s(f):f,h=T4e(d,p)||d==="reg"&&new KZe(p);h||er(n),o.push(h)}}o.length||er(n);var v=new JZe;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=o,v}function Tne(e){return Wt(e)&&!qa(e)}var nQe=function(){function e(t,n){this._cond=tP(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function rQe(e,t){return new nQe(e,t)}var aQe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=rQe(e.config,{valueGetterAttrMap:Ot({dimension:!0}),prepareGetValue:function(s){var u="",c=s.dimension;Tt(s,"dimension")||er(u);var d=t.getDimensionInfo(c);return d||er(u),{dimIdx:d.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),o=[],i=0,l=t.count();i<l;i++)n=t.getRawDataItem(i),r.evaluate()&&o.push(n);return{data:o}}},oQe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",o=ur(n);o.length||er(r);var i=[];q(o,function(d){var f=d.dimension,p=d.order,h=d.parser,v=d.incomparable;if(f==null&&er(r),p!=="asc"&&p!=="desc"&&er(r),v&&v!=="min"&&v!=="max"){var m="";er(m)}if(p!=="asc"&&p!=="desc"){var g="";er(g)}var y=t.getDimensionInfo(f);y||er(r);var C=h?oQ(h):null;h&&!C&&er(r),i.push({dimIdx:y.index,parser:C,comparator:new lQ(p,v)})});var l=t.sourceFormat;l!==So&&l!==yl&&er(r);for(var s=[],u=0,c=t.count();u<c;u++)s.push(t.getRawDataItem(u));return s.sort(function(d,f){for(var p=0;p<i.length;p++){var h=i[p],v=t.retrieveValueFromItem(d,h.dimIdx),m=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),m=h.parser(m));var g=h.comparator.evaluate(v,m);if(g!==0)return g}return 0}),{data:s}}};function iQe(e){e.registerTransform(aQe),e.registerTransform(oQe)}var lQe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,o){e.prototype.init.call(this,n,r,o),this._sourceManager=new dQ(this),T4(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),T4(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:js},t}(Cn),sQe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(wr);function uQe(e){e.registerComponentModel(lQe),e.registerComponentView(sQe)}var xs=ru.CMD;function vv(e,t){return Math.abs(e-t)<1e-5}function nB(e){var t=e.data,n=e.len(),r=[],o,i=0,l=0,s=0,u=0;function c(B,N){o&&o.length>2&&r.push(o),o=[B,N]}function d(B,N,M,O){vv(B,M)&&vv(N,O)||o.push(B,N,M,O,M,O)}function f(B,N,M,O,P,R){var L=Math.abs(N-B),z=Math.tan(L/4)*4/3,F=N<B?-1:1,G=Math.cos(B),$=Math.sin(B),W=Math.cos(N),j=Math.sin(N),J=G*P+M,Z=$*R+O,X=W*P+M,ae=j*R+O,ie=P*z*F,K=R*z*F;o.push(J-ie*$,Z+K*G,X+ie*j,ae-K*W,X,ae)}for(var p,h,v,m,g=0;g<n;){var y=t[g++],C=g===1;switch(C&&(i=t[g],l=t[g+1],s=i,u=l,(y===xs.L||y===xs.C||y===xs.Q)&&(o=[s,u])),y){case xs.M:i=s=t[g++],l=u=t[g++],c(s,u);break;case xs.L:p=t[g++],h=t[g++],d(i,l,p,h),i=p,l=h;break;case xs.C:o.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],l=t[g++]);break;case xs.Q:p=t[g++],h=t[g++],v=t[g++],m=t[g++],o.push(i+2/3*(p-i),l+2/3*(h-l),v+2/3*(p-v),m+2/3*(h-m),v,m),i=v,l=m;break;case xs.A:var b=t[g++],w=t[g++],S=t[g++],x=t[g++],k=t[g++],_=t[g++]+k;g+=1;var T=!t[g++];p=Math.cos(k)*S+b,h=Math.sin(k)*x+w,C?(s=p,u=h,c(s,u)):d(i,l,p,h),i=Math.cos(_)*S+b,l=Math.sin(_)*x+w;for(var E=(T?-1:1)*Math.PI/2,A=k;T?A>_:A<_;A+=E){var D=T?Math.max(A+E,_):Math.min(A+E,_);f(A,D,b,w,S,x)}break;case xs.R:s=i=t[g++],u=l=t[g++],p=s+t[g++],h=u+t[g++],c(p,u),d(p,u,p,h),d(p,h,s,h),d(s,h,s,u),d(s,u,p,u);break;case xs.Z:o&&d(i,l,s,u),i=s,l=u;break}}return o&&o.length>2&&r.push(o),r}function rB(e,t,n,r,o,i,l,s,u,c){if(vv(e,n)&&vv(t,r)&&vv(o,l)&&vv(i,s)){u.push(l,s);return}var d=2/c,f=d*d,p=l-e,h=s-t,v=Math.sqrt(p*p+h*h);p/=v,h/=v;var m=n-e,g=r-t,y=o-l,C=i-s,b=m*m+g*g,w=y*y+C*C;if(b<f&&w<f){u.push(l,s);return}var S=p*m+h*g,x=-p*y-h*C,k=b-S*S,_=w-x*x;if(k<f&&S>=0&&_<f&&x>=0){u.push(l,s);return}var T=[],E=[];Cd(e,n,o,l,.5,T),Cd(t,r,i,s,.5,E),rB(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],u,c),rB(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],u,c)}function cQe(e,t){var n=nB(e),r=[];t=t||1;for(var o=0;o<n.length;o++){var i=n[o],l=[],s=i[0],u=i[1];l.push(s,u);for(var c=2;c<i.length;){var d=i[c++],f=i[c++],p=i[c++],h=i[c++],v=i[c++],m=i[c++];rB(s,u,d,f,p,h,v,m,l,t),s=v,u=m}r.push(l)}return r}function Ane(e,t,n){var r=e[t],o=e[1-t],i=Math.abs(r/o),l=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/l);s===0&&(s=1,l=n);for(var u=[],c=0;c<l;c++)u.push(s);var d=l*s,f=n-d;if(f>0)for(var c=0;c<f;c++)u[c%l]+=1;return u}function EH(e,t,n){for(var r=e.r0,o=e.r,i=e.startAngle,l=e.endAngle,s=Math.abs(l-i),u=s*o,c=o-r,d=u>Math.abs(c),f=Ane([u,c],d?0:1,t),p=(d?s:c)/f.length,h=0;h<f.length;h++)for(var v=(d?c:s)/f[h],m=0;m<f[h];m++){var g={};d?(g.startAngle=i+p*h,g.endAngle=i+p*(h+1),g.r0=r+v*m,g.r=r+v*(m+1)):(g.startAngle=i+v*m,g.endAngle=i+v*(m+1),g.r0=r+p*h,g.r=r+p*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function dQe(e,t,n){for(var r=e.width,o=e.height,i=r>o,l=Ane([r,o],i?0:1,t),s=i?"width":"height",u=i?"height":"width",c=i?"x":"y",d=i?"y":"x",f=e[s]/l.length,p=0;p<l.length;p++)for(var h=e[u]/l[p],v=0;v<l[p];v++){var m={};m[c]=p*f,m[d]=v*h,m[s]=f,m[u]=h,m.x+=e.x,m.y+=e.y,n.push(m)}}function _H(e,t,n,r){return e*r-n*t}function fQe(e,t,n,r,o,i,l,s){var u=n-e,c=r-t,d=l-o,f=s-i,p=_H(d,f,u,c);if(Math.abs(p)<1e-6)return null;var h=e-o,v=t-i,m=_H(h,v,d,f)/p;return m<0||m>1?null:new sn(m*u+e,m*c+t)}function pQe(e,t,n){var r=new sn;sn.sub(r,n,t),r.normalize();var o=new sn;sn.sub(o,e,t);var i=o.dot(r);return i}function Oh(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function hQe(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var l=e[i],s=e[(i+1)%r],u=fQe(l[0],l[1],s[0],s[1],t.x,t.y,n.x,n.y);u&&o.push({projPt:pQe(u,t,n),pt:u,idx:i})}if(o.length<2)return[{points:e},{points:e}];o.sort(function(g,y){return g.projPt-y.projPt});var c=o[0],d=o[o.length-1];if(d.idx<c.idx){var f=c;c=d,d=f}for(var p=[c.pt.x,c.pt.y],h=[d.pt.x,d.pt.y],v=[p],m=[h],i=c.idx+1;i<=d.idx;i++)Oh(v,e[i].slice());Oh(v,h),Oh(v,p);for(var i=d.idx+1;i<=c.idx+r;i++)Oh(m,e[i%r].slice());return Oh(m,p),Oh(m,h),[{points:v},{points:m}]}function TH(e){var t=e.points,n=[],r=[];oE(t,n,r);var o=new cn(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=o.width,l=o.height,s=o.x,u=o.y,c=new sn,d=new sn;return i>l?(c.x=d.x=s+i/2,c.y=u,d.y=u+l):(c.y=d.y=u+l/2,c.x=s,d.x=s+i),hQe(t,c,d)}function Ux(e,t,n,r){if(n===1)r.push(t);else{var o=Math.floor(n/2),i=e(t);Ux(e,i[0],o,r),Ux(e,i[1],n-o,r)}return r}function vQe(e,t){for(var n=[],r=0;r<t;r++)n.push(lR(e));return n}function mQe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function gQe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function yQe(e,t){var n=[],r=e.shape,o;switch(e.type){case"rect":dQe(r,t,n),o=Mn;break;case"sector":EH(r,t,n),o=Co;break;case"circle":EH({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),o=Co;break;default:var i=e.getComputedTransform(),l=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=rt(cQe(e.getUpdatedPathProxy(),l),function(y){return gQe(y)}),u=s.length;if(u===0)Ux(TH,{points:s[0]},t,n);else if(u===t)for(var c=0;c<u;c++)n.push({points:s[c]});else{var d=0,f=rt(s,function(y){var C=[],b=[];oE(y,C,b);var w=(b[1]-C[1])*(b[0]-C[0]);return d+=w,{poly:y,area:w}});f.sort(function(y,C){return C.area-y.area});for(var p=t,c=0;c<u;c++){var h=f[c];if(p<=0)break;var v=c===u-1?p:Math.ceil(h.area/d*t);v<0||(Ux(TH,{points:h.poly},v,n),p-=v)}}o=wo;break}if(!o)return vQe(e,t);for(var m=[],c=0;c<n.length;c++){var g=new o;g.setShape(n[c]),mQe(e,g),m.push(g)}return m}function bQe(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var o=[],i=[],l=n<r?e:t,s=Math.min(n,r),u=Math.abs(r-n)/6,c=(s-2)/6,d=Math.ceil(u/c)+1,f=[l[0],l[1]],p=u,h=2;h<s;){var v=l[h-2],m=l[h-1],g=l[h++],y=l[h++],C=l[h++],b=l[h++],w=l[h++],S=l[h++];if(p<=0){f.push(g,y,C,b,w,S);continue}for(var x=Math.min(p,d-1)+1,k=1;k<=x;k++){var _=k/x;Cd(v,g,C,w,_,o),Cd(m,y,b,S,_,i),v=o[3],m=i[3],f.push(o[1],i[1],o[2],i[2],v,m),g=o[5],y=i[5],C=o[6],b=i[6]}p-=x-1}return l===e?[f,t]:[e,f]}function AH(e,t){for(var n=e.length,r=e[n-2],o=e[n-1],i=[],l=0;l<t.length;)i[l++]=r,i[l++]=o;return i}function CQe(e,t){for(var n,r,o,i=[],l=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],c=t[s],d=void 0,f=void 0;u?c?(n=bQe(u,c),d=n[0],f=n[1],r=d,o=f):(f=AH(o||u,u),d=u):(d=AH(r||c,c),f=c),i.push(d),l.push(f)}return[i,l]}function DH(e){for(var t=0,n=0,r=0,o=e.length,i=0,l=o-2;i<o;l=i,i+=2){var s=e[l],u=e[l+1],c=e[i],d=e[i+1],f=s*d-c*u;t+=f,n+=(s+c)*f,r+=(u+d)*f}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function wQe(e,t,n,r){for(var o=(e.length-2)/6,i=1/0,l=0,s=e.length,u=s-2,c=0;c<o;c++){for(var d=c*6,f=0,p=0;p<s;p+=2){var h=p===0?d:(d+p-2)%u+2,v=e[h]-n[0],m=e[h+1]-n[1],g=t[p]-r[0],y=t[p+1]-r[1],C=g-v,b=y-m;f+=C*C+b*b}f<i&&(i=f,l=c)}return l}function SQe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function xQe(e,t,n,r){for(var o=[],i,l=0;l<e.length;l++){var s=e[l],u=t[l],c=DH(s),d=DH(u);i==null&&(i=c[2]<0!=d[2]<0);var f=[],p=[],h=0,v=1/0,m=[],g=s.length;i&&(s=SQe(s));for(var y=wQe(s,u,c,d)*6,C=g-2,b=0;b<C;b+=2){var w=(y+b)%C+2;f[b+2]=s[w]-c[0],f[b+3]=s[w+1]-c[1]}f[0]=s[y]-c[0],f[1]=s[y+1]-c[1];for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var k=Math.sin(x),_=Math.cos(x),T=0,b=0;b<s.length;b+=2){var E=f[b],A=f[b+1],D=u[b]-d[0],B=u[b+1]-d[1],N=D*_-B*k,M=D*k+B*_;m[b]=N,m[b+1]=M;var O=N-E,P=M-A;T+=O*O+P*P}if(T<v){v=T,h=x;for(var R=0;R<m.length;R++)p[R]=m[R]}}o.push({from:f,to:p,fromCp:c,toCp:d,rotation:-h})}return o}function Yx(e){return e.__isCombineMorphing}var Dne="__mOriginal_";function jx(e,t,n){var r=Dne+t,o=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,l=n.after,s=n.before;e[t]=function(){var u=arguments,c;return s&&s.apply(this,u),i?c=i.apply(this,u):c=o.apply(this,u),l&&l.apply(this,u),c}}function o0(e,t){var n=Dne+t;e[n]&&(e[t]=e[n],e[n]=null)}function MH(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<r.length;){var i=r[o],l=r[o+1];r[o++]=t[0]*i+t[2]*l+t[4],r[o++]=t[1]*i+t[3]*l+t[5]}}function Mne(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),o=CQe(nB(n),nB(r)),i=o[0],l=o[1],s=e.getComputedTransform(),u=t.getComputedTransform();function c(){this.transform=null}s&&MH(i,s),u&&MH(l,u),jx(t,"updateTransform",{replace:c}),t.transform=null;var d=xQe(i,l,10,Math.PI),f=[];jx(t,"buildPath",{replace:function(p){for(var h=t.__morphT,v=1-h,m=[],g=0;g<d.length;g++){var y=d[g],C=y.from,b=y.to,w=y.rotation*h,S=y.fromCp,x=y.toCp,k=Math.sin(w),_=Math.cos(w);Uy(m,S,x,h);for(var T=0;T<C.length;T+=2){var E=C[T],A=C[T+1],D=b[T],B=b[T+1],N=E*v+D*h,M=A*v+B*h;f[T]=N*_-M*k+m[0],f[T+1]=N*k+M*_+m[1]}var O=f[0],P=f[1];p.moveTo(O,P);for(var T=2;T<C.length;){var D=f[T++],B=f[T++],R=f[T++],L=f[T++],z=f[T++],F=f[T++];O===D&&P===B&&R===z&&L===F?p.lineTo(z,F):p.bezierCurveTo(D,B,R,L,z,F),O=z,P=F}}}})}function nP(e,t,n){if(!e||!t)return t;var r=n.done,o=n.during;Mne(e,t),t.__morphT=0;function i(){o0(t,"buildPath"),o0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},zt({during:function(l){t.dirtyShape(),o&&o(l)},done:function(){i(),r&&r()}},n)),t}function kQe(e,t,n,r,o,i){var l=16;e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var s=0,u,c=(1<<l)/2;c>0;c/=2){var d=0,f=0;(e&c)>0&&(d=1),(t&c)>0&&(f=1),s+=c*c*(3*d^f),f===0&&(d===1&&(e=c-1-e,t=c-1-t),u=e,e=t,t=u)}return s}function Kx(e){var t=1/0,n=1/0,r=-1/0,o=-1/0,i=rt(e,function(s){var u=s.getBoundingRect(),c=s.getComputedTransform(),d=u.x+u.width/2+(c?c[4]:0),f=u.y+u.height/2+(c?c[5]:0);return t=Math.min(d,t),n=Math.min(f,n),r=Math.max(d,r),o=Math.max(f,o),[d,f]}),l=rt(i,function(s,u){return{cp:s,z:kQe(s[0],s[1],t,n,r,o),path:e[u]}});return l.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function Nne(e){return yQe(e.path,e.count)}function aB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EQe(e,t,n){var r=[];function o(S){for(var x=0;x<S.length;x++){var k=S[x];Yx(k)?o(k.childrenRef()):k instanceof Sn&&r.push(k)}}o(e);var i=r.length;if(!i)return aB();var l=n.dividePath||Nne,s=l({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),aB();r=Kx(r),s=Kx(s);for(var u=n.done,c=n.during,d=n.individualDelay,f=new zu,p=0;p<i;p++){var h=r[p],v=s[p];v.parent=t,v.copyTransform(f),d||Mne(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function m(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}jx(t,"addSelfToZr",{after:function(S){m(S)}}),jx(t,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,o0(t,"addSelfToZr"),o0(t,"removeSelfFromZr")}var y=s.length;if(d)for(var C=y,b=function(){C--,C===0&&(g(),u&&u())},p=0;p<y;p++){var w=d?zt({delay:(n.delay||0)+d(p,y,r[p],s[p]),done:b},n):n;nP(r[p],s[p],w)}else t.__morphT=0,t.animateTo({__morphT:1},zt({during:function(S){for(var x=0;x<y;x++){var k=s[x];k.__morphT=t.__morphT,k.dirtyShape()}c&&c(S)},done:function(){g();for(var S=0;S<e.length;S++)o0(e[S],"updateTransform");u&&u()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function _Qe(e,t,n){var r=t.length,o=[],i=n.dividePath||Nne;function l(h){for(var v=0;v<h.length;v++){var m=h[v];Yx(m)?l(m.childrenRef()):m instanceof Sn&&o.push(m)}}if(Yx(e)){l(e.childrenRef());var s=o.length;if(s<r)for(var u=0,c=s;c<r;c++)o.push(lR(o[u++%s]));o.length=r}else{o=i({path:e,count:r});for(var d=e.getComputedTransform(),c=0;c<o.length;c++)o[c].setLocalTransform(d);if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),aB()}o=Kx(o),t=Kx(t);for(var f=n.individualDelay,c=0;c<r;c++){var p=f?zt({delay:(n.delay||0)+f(c,r,o[c],t[c])},n):n;nP(o[c],t[c],p)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}function NH(e){return nt(e[0])}function BH(e,t){for(var n=[],r=e.length,o=0;o<r;o++)n.push({one:e[o],many:[]});for(var o=0;o<t.length;o++){var i=t[o].length,l=void 0;for(l=0;l<i;l++)n[l%r].many.push(t[o][l])}for(var s=0,o=r-1;o>=0;o--)if(!n[o].many.length){var u=n[s].many;if(u.length<=1)if(s)s=0;else return n;var i=u.length,c=Math.ceil(i/2);n[o].many=u.slice(c,i),n[s].many=u.slice(0,c),s++}return n}var TQe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var o=lR(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function u2(e,t,n,r,o,i){if(!e.length||!t.length)return;var l=$m("update",r,o);if(!(l&&l.duration>0))return;var s=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},l),c,d;NH(e)&&(c=e,d=t),NH(t)&&(c=t,d=e);function f(y,C,b,w,S){var x=y.many,k=y.one;if(x.length===1&&!S){var _=C?x[0]:k,T=C?k:x[0];if(Yx(_))f({many:[_],one:T},!0,b,w,!0);else{var E=s?zt({delay:s(b,w)},u):u;nP(_,T,E),i(_,T,_,T,E)}}else for(var A=zt({dividePath:TQe[n],individualDelay:s&&function(P,R,L,z){return s(P+b,w)}},u),D=C?EQe(x,k,A):_Qe(k,x,A),B=D.fromIndividuals,N=D.toIndividuals,M=B.length,O=0;O<M;O++){var E=s?zt({delay:s(O,M)},u):u;i(B[O],N[O],C?x[O]:y.one,C?y.one:x[O],E)}}for(var p=c?c===e:e.length>t.length,h=c?BH(d,c):BH(p?t:e,[p?e:t]),v=0,m=0;m<h.length;m++)v+=h[m].many.length;for(var g=0,m=0;m<h.length;m++)f(h[m],p,g,v),g+=h[m].many.length}function Tf(e){if(!e)return[];if(nt(e)){for(var t=[],n=0;n<e.length;n++)t.push(Tf(e[n]));return t}var r=[];return e.traverse(function(o){o instanceof Sn&&!o.disableMorphing&&!o.invisible&&!o.ignore&&r.push(o)}),r}var Bne=1e4,AQe=0,OH=1,IH=2,DQe=Bn();function MQe(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var o=e.getDimensionInfo(n[r]);if(o&&o.otherDims[t]===0)return n[r]}}function NQe(e,t,n){var r=e.getDimensionInfo(n),o=r&&r.ordinalMeta;if(r){var i=e.get(r.name,t);return o&&o.categories[i]||i+""}}function RH(e,t,n,r){var o=r?"itemChildGroupId":"itemGroupId",i=MQe(e,o);if(i){var l=NQe(e,t,i);return l}var s=e.getRawDataItem(t),u=r?"childGroupId":"groupId";if(s&&s[u])return s[u]+"";if(!r)return n||e.getId(t)}function LH(e){var t=[];return q(e,function(n){var r=n.data,o=n.dataGroupId;if(!(r.count()>Bne))for(var i=r.getIndices(),l=0;l<i.length;l++)t.push({data:r,groupId:RH(r,l,o,!1),childGroupId:RH(r,l,o,!0),divide:n.divide,dataIndex:l})}),t}function c2(e,t,n){e.traverse(function(r){r instanceof Sn&&kr(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function d2(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Ih(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function BQe(e,t,n){var r=$m("update",n,t);r&&e.traverse(function(o){if(o instanceof pl){var i=d3e(o);i&&o.animateFrom({style:i},r)}})}function OQe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var o=e[r],i=t[r];if(o.data.getId(o.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function One(e,t,n){var r=LH(e),o=LH(t);function i(b,w,S,x,k){(S||b)&&w.animateFrom({style:S&&S!==b?Qe(Qe({},S.style),b.style):b.style},k)}var l=!1,s=AQe,u=Ot(),c=Ot();r.forEach(function(b){b.groupId&&u.set(b.groupId,!0),b.childGroupId&&c.set(b.childGroupId,!0)});for(var d=0;d<o.length;d++){var f=o[d].groupId;if(c.get(f)){s=OH;break}var p=o[d].childGroupId;if(p&&u.get(p)){s=IH;break}}function h(b,w){return function(S){var x=S.data,k=S.dataIndex;return w?x.getId(k):b?s===OH?S.childGroupId:S.groupId:s===IH?S.childGroupId:S.groupId}}var v=OQe(r,o),m={};if(!v)for(var d=0;d<o.length;d++){var g=o[d],y=g.data.getItemGraphicEl(g.dataIndex);y&&(m[y.id]=!0)}function C(b,w){var S=r[w],x=o[b],k=x.data.hostModel,_=S.data.getItemGraphicEl(S.dataIndex),T=x.data.getItemGraphicEl(x.dataIndex);if(_===T){T&&BQe(T,x.dataIndex,k);return}_&&m[_.id]||T&&(Ih(T),_?(Ih(_),d2(_),l=!0,u2(Tf(_),Tf(T),x.divide,k,b,i)):c2(T,k,b))}new Ju(r,o,h(!0,v),h(!1,v),null,"multiple").update(C).updateManyToOne(function(b,w){var S=o[b],x=S.data,k=x.hostModel,_=x.getItemGraphicEl(S.dataIndex),T=Wn(rt(w,function(E){return r[E].data.getItemGraphicEl(r[E].dataIndex)}),function(E){return E&&E!==_&&!m[E.id]});_&&(Ih(_),T.length?(q(T,function(E){Ih(E),d2(E)}),l=!0,u2(Tf(T),Tf(_),S.divide,k,b,i)):c2(_,k,S.dataIndex))}).updateOneToMany(function(b,w){var S=r[w],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&m[x.id])){var k=Wn(rt(b,function(T){return o[T].data.getItemGraphicEl(o[T].dataIndex)}),function(T){return T&&T!==x}),_=o[b[0]].data.hostModel;k.length&&(q(k,function(T){return Ih(T)}),x?(Ih(x),d2(x),l=!0,u2(Tf(x),Tf(k),S.divide,_,b[0],i)):q(k,function(T){return c2(T,_,b[0])}))}}).updateManyToMany(function(b,w){new Ju(w,b,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return o[S].data.getId(o[S].dataIndex)}).update(function(S,x){C(b[S],w[x])}).execute()}).execute(),l&&q(t,function(b){var w=b.data,S=w.hostModel,x=S&&n.getViewOfSeriesModel(S),k=$m("update",S,0);x&&S.isAnimationEnabled()&&k&&k.duration>0&&x.group.traverse(function(_){_ instanceof Sn&&!_.animators.length&&_.animateFrom({style:{opacity:0}},k)})})}function PH(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function VH(e){return nt(e)?e.sort().join(","):e}function $c(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function IQe(e,t){var n=Ot(),r=Ot(),o=Ot();return q(e.oldSeries,function(i,l){var s=e.oldDataGroupIds[l],u=e.oldData[l],c=PH(i),d=VH(c);r.set(d,{dataGroupId:s,data:u}),nt(c)&&q(c,function(f){o.set(f,{key:d,dataGroupId:s,data:u})})}),q(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var l=i.get("dataGroupId"),s=i.getData(),u=PH(i),c=VH(u),d=r.get(c);if(d)n.set(c,{oldSeries:[{dataGroupId:d.dataGroupId,divide:$c(d.data),data:d.data}],newSeries:[{dataGroupId:l,divide:$c(s),data:s}]});else if(nt(u)){var f=[];q(u,function(v){var m=r.get(v);m.data&&f.push({dataGroupId:m.dataGroupId,divide:$c(m.data),data:m.data})}),f.length&&n.set(c,{oldSeries:f,newSeries:[{dataGroupId:l,data:s,divide:$c(s)}]})}else{var p=o.get(u);if(p){var h=n.get(p.key);h||(h={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:$c(p.data)}],newSeries:[]},n.set(p.key,h)),h.newSeries.push({dataGroupId:l,data:s,divide:$c(s)})}}}}),n}function FH(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function RQe(e,t,n,r){var o=[],i=[];q(ur(e.from),function(l){var s=FH(t.oldSeries,l);s>=0&&o.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:$c(t.oldData[s]),groupIdDim:l.dimension})}),q(ur(e.to),function(l){var s=FH(n.updatedSeries,l);if(s>=0){var u=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:$c(u),groupIdDim:l.dimension})}}),o.length>0&&i.length>0&&One(o,i,r)}function LQe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){q(ur(r.seriesTransition),function(o){q(ur(o.to),function(i){for(var l=r.updatedSeries,s=0;s<l.length;s++)(i.seriesIndex!=null&&i.seriesIndex===l[s].seriesIndex||i.seriesId!=null&&i.seriesId===l[s].id)&&(l[s][rS]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var o=DQe(n);if(o.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)q(ur(i),function(h){RQe(h,o,r,n)});else{var l=IQe(o,r);q(l.keys(),function(h){var v=l.get(h);One(v.oldSeries,v.newSeries,n)})}q(r.updatedSeries,function(h){h[rS]&&(h[rS]=!1)})}for(var s=t.getSeries(),u=o.oldSeries=[],c=o.oldDataGroupIds=[],d=o.oldData=[],f=0;f<s.length;f++){var p=s[f].getData();p.count()<Bne&&(u.push(s[f]),c.push(s[f].get("dataGroupId")),d.push(p))}})}vn([Y8e]);vn([$8e]);vn([fHe,THe,PHe,m7e,T7e,pWe,$We,kGe,YGe,QGe,l9e,tUe,_Ue,PUe,JUe,rYe,pYe,CYe,NYe,PYe,jYe,Mje]);vn(Xje);vn(wKe);vn(Nee);vn(IKe);vn(mte);vn(VKe);vn(jKe);vn(IXe);vn(JXe);vn(oC);vn(mqe);vn(bqe);vn(Dqe);vn(Lqe);vn(Hqe);vn(Kqe);vn(aZe);vn(SZe);vn(bne);vn(Cne);vn(HZe);vn(Ene);vn(_ne);vn(jZe);vn(iQe);vn(uQe);vn(LQe);vn(l8e);const PQe=Object.freeze(Object.defineProperty({__proto__:null,Axis:bl,ChartView:rr,ComponentModel:Cn,ComponentView:wr,List:go,Model:Gn,PRIORITY:zQ,SeriesModel:cr,color:MVe,connect:m$e,dataTool:x$e,dependencies:J5e,disConnect:g$e,disconnect:XQ,dispose:y$e,env:wn,extendChartView:K6e,extendComponentModel:U6e,extendComponentView:Y6e,extendSeriesModel:j6e,format:I6e,getCoordinateSystemDimensions:C$e,getInstanceByDom:VR,getInstanceById:b$e,getMap:S$e,graphic:O6e,helper:E6e,init:KQ,innerDrawElementOnCanvas:IR,matrix:sVe,number:N6e,parseGeoJSON:vN,parseGeoJson:vN,registerAction:us,registerCoordinateSystem:QQ,registerLayout:JQ,registerLoading:WR,registerLocale:mR,registerMap:eJ,registerPostInit:qQ,registerPostUpdate:ZQ,registerPreprocessor:zR,registerProcessor:$R,registerTheme:FR,registerTransform:tJ,registerUpdateLifecycle:SE,registerVisual:Od,setCanvasCreator:w$e,setPlatformAPI:YX,throttle:CE,time:B6e,use:vn,util:R6e,vector:KPe,version:Q5e,zrUtil:$Pe,zrender:dFe},Symbol.toStringTag,{value:"Module"}));function VQe(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function FQe(e){return typeof e=="function"?e():a.unref(e)}const zQe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function zH(e){var t;const n=FQe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $Qe=zQe?window:void 0;function HQe(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function WQe(e){const t=HQe();return a.computed(()=>(t.value,!!e()))}function GQe(e,t,n={}){const{window:r=$Qe,...o}=n;let i;const l=WQe(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},u=a.computed(()=>Array.isArray(e)?e.map(f=>zH(f)):[zH(e)]),c=a.watch(u,f=>{if(s(),l.value&&r){i=new ResizeObserver(t);for(const p of f)p&&i.observe(p,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return VQe(d),{isSupported:l,stop:d}}const Cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAZdElEQVR4nO2dTZAkx3Xff5nVXVXd073TGMxgd4jF7sBYQAYsUKDoMBlBQAQs2bSkCxjBMOQTV0EfFD6BBx90cDh4ssJy0HvxybSNiyMsSjJthRyKsC3LDDNkW6EPyBRkWgChhUhosdjBomf6q74ynw9ZWVXdM7M7u9jd7sXOP6Kns/K7Jv/53suXWdVKRDjBCQD0sjtwgtXBCRlOUOGEDCeocEKGE1Q4IcMJKpyQ4QQVTshwggonZDhBhdayO/DaN4fHzfpP0PwCil0Cfh74DgWggODoQhdfHgCQ5zDJLEkqpKkgaYtpnjNJMpJckyVCmgtZBkliSVMhySxZLiRZQZJo0tSS5oIpIE0U0yQD4PFzIZ/7611+83+M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ZQDTDICWl5djmeVlWlZC09Opv3Iz+MSUpfgyqbK6njXyi4uLYmVlJbjnnnv8azH/G0V2d0ePGETkqYFSAC4C2JXMZiBWmopIpJKmp1nnLC0t0czMTKS8ixcvYteuXYhkcRHT05HSeVp9caiSCwAEAMTevXu3ZMSOLcMVwMwFAPnFxUXas2fPmv0Qi4uL2LNnD7B2QWjI84hFAHuiqnWd6qgjj5CIQowAYzJsAMycR9qKptb7FxYWUK/Xr6VqTQBxo+f/a8GYDBuEIoQBPE/AXUCaEOtZBQKeB3BX4jF2igCjvfkDGJPhKqB8g+tC1giQxP8DO8fk/g0qG58AAAAASUVORK5CYII=",UQe=["id"],YQe=a.defineComponent({name:"GChart"}),jQe=a.defineComponent({...YQe,props:{options:{type:Object,default:{}},id:{type:String,default:()=>Math.random().toString(36).substring(2,8)},theme:{type:String,default:""},mapName:{type:String,default:""},mapJson:{type:Object,default:{}},isEmpty:{type:[Boolean,Function],default:!1},description:{type:String,default:"暂无数据"}},setup(e,{expose:t,emit:n}){let r=Kn.state;const o=a.shallowRef(),i=a.shallowRef(),l=PQe,s=n,u=Object.entries(a.useAttrs()),c=e,{options:d,mapName:f,mapJson:p}=a.toRefs(c),h=a.ref("");a.onBeforeMount(()=>{window.removeEventListener("resize",y)}),a.onUnmounted(()=>{m(),i.value=null}),a.onMounted(async()=>{await a.nextTick(),h.value=r.theme,v(h.value)});const v=S=>{if(!o.value||o.value.clientWidth===0||o.value.clientHeight===0){requestAnimationFrame(()=>v(S));return}i.value=l.init(o.value,S),f.value&&p.value&&l.registerMap(f.value,p.value),s("chart",i.value),C(d.value),b(),GQe(o.value,y)},m=()=>{var S;(S=i.value)==null||S.dispose()},g=()=>{var S;(S=i.value)==null||S.clear()},y=fD(async()=>{var S;await a.nextTick(),(S=i.value)==null||S.resize()},300,!0),C=fD(async S=>{await a.nextTick(),i.value&&(i.value.setOption(S),y())},300,!0),b=()=>{if(!i.value)return;const S="on";i.value.off("click"),u.forEach(([x,k])=>{if(x.startsWith(S)&&!x.startsWith("onChart")){const _=bve(x).substring(3);i.value.on(_,(...T)=>s(_,...T))}})},w=a.computed(()=>typeof c.isEmpty=="function"?c.isEmpty(c.options):c.isEmpty);return a.watch(d,async S=>{await a.nextTick(),S&&(g(),C(S))},{deep:!0}),a.watch(()=>r.theme,async S=>{await a.nextTick(),m(),v(S)},{deep:!0}),a.watch(()=>r["gui-theme"],async S=>{await a.nextTick(),m(),v(r.theme)},{deep:!0}),t({myChart:i}),(S,x)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"g-chart"},S.$attrs),[a.withDirectives(a.createElementVNode("div",{class:"g-chart-inbox",id:e.id,ref_key:"chartRef",ref:o},null,8,UQe),[[a.vShow,!w.value]]),w.value?a.renderSlot(S.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(a.unref(Lk),a.mergeProps(S.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0),a.renderSlot(S.$slots,"default",{},void 0,!0)],16))}}),ar=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},KQe=ar(jQe,[["__scopeId","data-v-72a1370d"]]),Dt=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),Ine=Dt(KQe),XQe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAACCAYAAABMtjVDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACzSURBVHgB7ZCxDcIwEEXvYBBIQRBb2B2eAjIJYRK8hekcpkCkwYug41KDo0+JdK9++vp6fB1GoU/K3rUNgaR8d8zLTDhR9ztUTvnRM/MJ9UWoC76NqK8Npu8O9UVeTfC7gvqVxjWs/ey+ta/xa3vdL7q/Qn39zqirbdba5on6+v2m3x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ffZjJp40c6HG2eyEIAkanJAdToTos+PmcFqEhKR6SJOP6zVro9WGYPvmFkHyrF+lwOMCzNESvNCVY/kXbs/MIsEmFxcXFInrY0OBGWVZQ12CGxdoChqaRlBCLmGFRIe2ho8ON6lu3u6Iuz9pUMDkIV1VTwl31qC1apcbGxiAmelgIgKKIWhzoejQ0LRPA+dCF2tq7WjAMTeDxK3E5mwssIW/o8bzsWIGhzL7Olhuh1yMpMQEMyzzSxLQeTyjcrauHzW7XIg7XsXB6xdnZGwvPao57i/r4p9nxrIQGBBRI1JYbGRGBsLAw6HS81jc8Xg9crg44nc5AH1GPS1Pw+eQZWVsKzncx+339i3cY9+t1/EqXWwz679Z79zaBZ+D2SidlUVpiNBW19gz2sX8tDn02J3yAT78VwFwA40NOSXAbMkpkittr3Hikrq+y/heoYPkNLz8/aQAAAABJRU5ErkJggg==",JQe={class:"funds-ranking-list"},eJe={class:"left"},tJe=["src"],nJe=["src"],rJe=["src"],aJe={key:3,class:"count"},oJe={key:1,class:"count"},iJe=["title"],lJe={class:"right"},sJe=["title"],uJe={class:"unit"},cJe={key:0,class:"radio"},dJe={key:0,class:"line-box"},fJe=a.defineComponent({name:"GRankingList"}),pJe=a.defineComponent({...fJe,props:{dbOptions:{type:Object,default:{}},type:{type:String,default:"primary"},icon:{type:Boolean,default:!1},description:{type:String,default:"暂无数据"},limit:{type:Number,default:10},icons:{type:Object,default:{}},sort:{type:String,default:"desc"},index:{type:Number,default:""}},setup(e,{expose:t}){const n=e,r=a.computed(()=>n.type?`radio-line-${n.type}`:""),o=a.ref(!1);let i=a.ref([]),l=a.ref([]);const s=a.ref(null);let u=n.dbOptions.columns,c=n.dbOptions.rankingField;a.ref({});const d=a.ref(""),f=g=>{if(n.sort=="desc")return g.sort((y,C)=>C[c]-y[c]);if(n.sort=="asc")return g.sort((y,C)=>y[c]-C[c])},p=async g=>{if(Ir(g)){o.value=!0;return}else o.value=!1;i.value=g,i.value=f(i.value);const y=i.value.reduce((w,S)=>w+parseFloat(S[u[1].field]),0),C=n.dbOptions.columns.find(w=>w.field===n.dbOptions.namingField),b=n.dbOptions.columns.find(w=>w.field===n.dbOptions.rankingField);for(let w=0;w<i.value.length;w++)l.value[w]={rank:w+1,company:i.value[w][C.field]||"",value:i.value[w][b.field]||"",unit:b.unit||"",width:i.value[w].width||(parseFloat(i.value[w][u[1].field])/y*100).toFixed(2)+"%",class:i.value[w].class};d.value=n.index},h=a.ref(null),v=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),h.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),h.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=n.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{v(n.dbOptions.data)}),a.onUnmounted(()=>{h.value&&(h.value(),h.value=null)}),t({props:n,rankingListRef:s});const m=qn(n.dbOptions);return(g,y)=>{const C=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-list",ref_key:"rankingListRef",ref:s,onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[a.createElementVNode("ul",JQe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l).slice(0,n.limit),(b,w)=>{var S,x,k;return a.openBlock(),a.createElementBlock(a.Fragment,{key:`list${w}`},[a.createElementVNode("div",{class:a.normalizeClass(["funds-ranking-item",b.class])},[a.createElementVNode("div",eJe,[e.icon?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[b.rank==1?(a.openBlock(),a.createElementBlock("img",{key:0,src:(S=n==null?void 0:n.icons)!=null&&S.length?n==null?void 0:n.icons[0]:a.unref(qQe),class:"funds-icon",alt:""},null,8,tJe)):b.rank==2?(a.openBlock(),a.createElementBlock("img",{key:1,src:(x=n==null?void 0:n.icons)!=null&&x.length?n==null?void 0:n.icons[1]:a.unref(ZQe),class:"funds-icon",alt:""},null,8,nJe)):b.rank==3?(a.openBlock(),a.createElementBlock("img",{key:2,src:(k=n==null?void 0:n.icons)!=null&&k.length?n==null?void 0:n.icons[2]:a.unref(QQe),class:"funds-icon",alt:""},null,8,rJe)):(a.openBlock(),a.createElementBlock("span",aJe,a.toDisplayString(b.rank),1))],64)):(a.openBlock(),a.createElementBlock("span",oJe,a.toDisplayString(b.rank),1)),a.renderSlot(g.$slots,"label",{item:b},()=>[a.createElementVNode("span",{class:"label",title:b.company},a.toDisplayString(b.company),9,iJe)],!0)]),a.createElementVNode("div",lJe,[a.createElementVNode("span",{class:"value",title:b.value+b.unit},[a.renderSlot(g.$slots,"value",{item:b},()=>[a.createTextVNode(a.toDisplayString(b.value),1)],!0),a.createElementVNode("span",uJe,a.toDisplayString(b.unit),1)],8,sJe),e.type?(a.openBlock(),a.createElementBlock("div",cJe,[a.createElementVNode("i",{class:a.normalizeClass(["radio-line",r.value]),style:a.normalizeStyle({width:b.width})},null,6)])):a.createCommentVNode("",!0)])],2),w===d.value?(a.openBlock(),a.createElementBlock("div",dJe,y[1]||(y[1]=[a.createElementVNode("img",{src:XQe},null,-1)]))):a.createCommentVNode("",!0)],64)}),128))])],544),[[a.vShow,!o.value]]),o.value?a.renderSlot(g.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(C,a.mergeProps(g.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),hJe=ar(pJe,[["__scopeId","data-v-3bf2e932"]]),Rne=Dt(hJe),vJe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAiCAYAAAC0nUK+AAAAAXNSR0IArs4c6QAABO5JREFUSEvtlm1sU1UYx3/n3rZrmaOwsaEskzGHIwQ3cMAHRqKIQRIngxgIMRGFKB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uh1yMpMQEMyzzSxLQeTyjcrauHzW7XIg7XsXB6xdnZGwvPao57i/r4p9nxrIQGBBRI1JYbGRGBsLAw6HS81jc8Xg9crg44nc5AH1GPS1Pw+eQZWVsKzncx+339i3cY9+t1/EqXWwz679Z79zaBZ+D2SidlUVpiNBW19gz2sX8tDn02J3yAT78VwFwA40NOSXAbMkpkittr3Hikrq+y/heoYPkNLz8/aQAAAABJRU5ErkJggg==",yJe={class:"headerIcon"},bJe=["src"],CJe=["src"],wJe=["src"],SJe={key:3},xJe=a.defineComponent({name:"GRankingTable"}),kJe=a.defineComponent({...xJe,props:{border:{type:Boolean,default:!1},dbOptions:{type:Object,default:{}},icon:{type:Boolean,default:!1},limit:{type:Number,default:10},description:{type:String,default:"暂无数据"},icons:{type:Object,default:{}},sort:{type:String,default:"desc"}},setup(e,{expose:t}){const n=e,r=a.ref(!1);let o=a.ref([]);const i=a.ref(null);let l=n.dbOptions.columns,s=n.dbOptions.rankingField;const u=v=>{if(n.sort=="desc")return v.sort((m,g)=>g[s]-m[s]);if(n.sort=="asc")return v.sort((m,g)=>m[s]-g[s])};a.ref({});const c=n.dbOptions.columns.find(v=>v.field===n.dbOptions.namingField);l[0]=c;const d=async v=>{if(Ir(v)){r.value=!0;return}else r.value=!1;o.value=JSON.parse(JSON.stringify(v)),u(o.value)},f=a.ref(null),p=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await d(g),f.value=v.onDataUpdate(()=>{const y=v.mergeData();d(y)})}else if(Vn(v))await d(v.sourceData),f.value=v.onDataUpdate(()=>{d(v.sourceData)});else{const g=(m=n.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);d(y);return}};a.onMounted(()=>{p(n.dbOptions.data)}),a.onUnmounted(()=>{f.value&&(f.value(),f.value=null)}),t({props:n,rankingTableRef:i});const h=qn(n.dbOptions);return(v,m)=>{const g=a.resolveComponent("el-table-column"),y=a.resolveComponent("el-table"),C=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-table",ref_key:"rankingTableRef",ref:i,onContextmenu:m[0]||(m[0]=(...b)=>a.unref(h)&&a.unref(h)(...b))},[a.createVNode(y,a.mergeProps({data:a.unref(o).slice(0,n.limit),border:n.border,stripe:"",style:{width:"100%"}},v.$attrs,{"header-cell-style":{background:"var(--el-fill-color-lighter)",color:"var(--el-text-color-primary)",fontWeight:600}}),{default:a.withCtx(()=>[a.createVNode(g,{type:"index",width:"70",label:"排名","header-align":"center",align:"center"},a.createSlots({_:2},[e.icon?{name:"default",fn:a.withCtx(({$index:b})=>{var w,S,x;return[a.createElementVNode("div",yJe,[b+1==1?(a.openBlock(),a.createElementBlock("img",{key:0,src:(w=n==null?void 0:n.icons)!=null&&w.length?n==null?void 0:n.icons[0]:a.unref(vJe),style:{width:"33%",height:"33%"},alt:""},null,8,bJe)):b+1==2?(a.openBlock(),a.createElementBlock("img",{key:1,src:(S=n==null?void 0:n.icons)!=null&&S.length?n==null?void 0:n.icons[1]:a.unref(mJe),style:{width:"33%",height:"33%"},alt:""},null,8,CJe)):b+1==3?(a.openBlock(),a.createElementBlock("img",{key:2,src:(x=n==null?void 0:n.icons)!=null&&x.length?n==null?void 0:n.icons[2]:a.unref(gJe),style:{width:"33%",height:"33%"},alt:""},null,8,wJe)):(a.openBlock(),a.createElementBlock("span",SJe,a.toDisplayString(b+1),1))])]}),key:"0"}:void 0]),1024),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l),(b,w)=>(a.openBlock(),a.createBlock(g,{prop:b.field,label:b.title,width:b.width,key:w,"header-align":"center",align:"center"},{header:a.withCtx(({column:S})=>[a.renderSlot(v.$slots,`header-${b.field}`,{column:S},()=>[a.createTextVNode(a.toDisplayString(S.label),1)],!0)]),default:a.withCtx(({row:S})=>[a.renderSlot(v.$slots,`default-${b.field}`,{row:S},()=>[a.createTextVNode(a.toDisplayString(S[b.field]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},16,["data","border"])],544),[[a.vShow,!r.value]]),r.value?a.renderSlot(v.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(C,a.mergeProps(v.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),EJe=ar(kJe,[["__scopeId","data-v-7e22a191"]]),Lne=Dt(EJe),_Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJcSURBVHgB7ZdPbhMxFMa/Z+cPUiGEG8wVUC8QdrBrT9Ag0ewgzAkSTpA23aAWqeEGZQU7wo5Npdygc4QhAqmB2sZOUqmgqT32uEJI+W0mGT+/fPOe35sXYMOGfwvhDmgd7fehMNTu2wo04WKR5ukkRwA1ROb+6EUHig6uvxNUV/BGW3/cRQAMkWGcnf59T6dpZyk8xB8i8mC839WXpGiNOA0QAEck2qNuAlYz0WsXrRMoaT7b/rb4eP4VHkSLoORNE6HEYTbQD9KGB1EELqOni6GMqWSN1/AgikBRa4xKGxMG95YPVI7KAk1hkMKOz546r5+Wta0sUB9+7+rUezpl204lga2jXpnCKP7hgn5ZRHCbMYWhiJs3hldV3nTRfLpNi0/nU5tRcARLthU7hL6r7QQJ9GgrTleuthMkUDvtIhaEPdtyWIpJBo1Oxb6U1VeQQCauJvqSIQJ6XnxjW680sK6aNCUrT6pvBlTHllwrOlzZy1wImv5IT2a4K4E3eTjuXShXVZOazV+ePIYH0QdWG0qxme+eaAIVlLth09UHeBIlxaYvSt64cJjl81fHj+BJnHGL1zsuG12tZwggToqJ7blMfgl7O7mNygJNekmpjtVIqcPL9G2GACoL1Gfvs8MkY3JriEAq/XFvjXtm1E9sNj8Fe3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num"},NJe={class:"title"},BJe={key:0},OJe={key:1},IJe=["onClick"],RJe={class:"num"},LJe={class:"title"},PJe={key:0},VJe={key:1},FJe=["onClick"],zJe={class:"num"},$Je={class:"title"},HJe={key:0},WJe={key:1},GJe={class:"rank-cup-num"},UJe={key:0,src:_Je,class:"icon-margin",alt:""},YJe={key:1,src:TJe,class:"icon-margin",alt:""},jJe={key:2,class:"icon-margin"},KJe=a.defineComponent({name:"GRankingCup"}),XJe=a.defineComponent({...KJe,props:{dbOptions:{type:Object,default:{}},title:{type:String,default:""},icons:{type:Array,default:[]},rankingColors:{type:Array,default:[]},description:{type:String,default:"暂无数据"},limit:{type:Number,default:10},sort:{type:String,default:"desc"},bracket:{type:Boolean,default:!0}},emits:["itemClick"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref({}),l=a.ref(!1);a.ref([]);let s=a.ref([]),u=a.ref([]),c=a.ref([]),d=o.dbOptions.rankingField,f=o.dbOptions.rankingChgField,p=o.dbOptions.namingField;const h=a.ref(0);a.ref({});let v=a.ref(!1);i.value=o.dbOptions.columns&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(E=>E.field===o.dbOptions.rankingField);const m=E=>{if(o.sort=="desc")return E.sort((A,D)=>D[d]-A[d]);if(o.sort=="asc")return E.sort((A,D)=>A[d]-D[d])},g=async E=>{if(Ir(E)){l.value=!0;return}else l.value=!1;v.value=!1;let A=o.dbOptions.columns;f?c.value=A:c.value=A.filter(M=>M.field==d||M.field==p);let D=JSON.parse(JSON.stringify(E)),N=JSON.parse(JSON.stringify(m(D))).slice(0,o.limit);s.value=y(N.slice(0,3)),u.value=N.slice(3),v.value=!0,h.value++},y=E=>(E.length<2||([E[0],E[1]]=[E[1],E[0]]),E),C=(E,A)=>A?E===f?Math.abs(A):A:E===f?"持平":"",b=E=>{if(f==E.field)return"rank-cup-text-change";if(d==E.field)return"rank-cup-text-rate"},w=(E,A)=>{if(f&&f==E.field&&A[E.field]>0)return{color:"#0E9266"};if(f&&f==E.field&&A[E.field]<0)return{color:"#D14A41"}},S=(E,A)=>{r("itemClick",E,A+1,"cup")},x=(E,A,D)=>{const B=u.value.findIndex(N=>N===E);r("itemClick",E,B+4,"table")},k=a.ref(null),_=async E=>{var A;if(Un(E)){await E.loadData();let D=E.mergeData();await g(D),k.value=E.onDataUpdate(()=>{const B=E.mergeData();g(B)})}else if(Vn(E))await g(E.sourceData),k.value=E.onDataUpdate(()=>{g(E.sourceData)});else{const D=(A=o.dbOptions)==null?void 0:A.dataField;let B=await Xn(E,D);g(B);return}};a.onMounted(()=>{_(o.dbOptions.data)}),a.onUnmounted(()=>{k.value&&(k.value(),k.value=null)}),t({props:o,getIsFinish(){return v.value}});const T=qn(o.dbOptions);return(E,A)=>{const D=a.resolveComponent("g-table-column"),B=a.resolveComponent("g-table"),N=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-table-cup",onContextmenu:A[0]||(A[0]=(...M)=>a.unref(T)&&a.unref(T)(...M))},[a.createElementVNode("div",AJe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),(M,O)=>(a.openBlock(),a.createElementBlock("div",{class:"region-rank-list-box",key:O},[O==0?(a.openBlock(),a.createElementBlock("div",{key:0,class:"region-rank-list-inbox-1",onClick:P=>S(M,O)},[a.createElementVNode("div",MJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",NJe,[e.bracket?(a.openBlock(),a.createElementBlock("span",BJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",OJe,"】")):a.createCommentVNode("",!0)])],8,DJe)):a.createCommentVNode("",!0),O==1?(a.openBlock(),a.createElementBlock("div",{key:1,class:"region-rank-list-inbox-2",onClick:P=>S(M,O)},[a.createElementVNode("div",RJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",LJe,[e.bracket?(a.openBlock(),a.createElementBlock("span",PJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",VJe,"】")):a.createCommentVNode("",!0)])],8,IJe)):a.createCommentVNode("",!0),O==2?(a.openBlock(),a.createElementBlock("div",{key:2,class:"region-rank-list-inbox-3",onClick:P=>S(M,O)},[a.createElementVNode("div",zJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",$Je,[e.bracket?(a.openBlock(),a.createElementBlock("span",HJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",WJe,"】")):a.createCommentVNode("",!0)])],8,FJe)):a.createCommentVNode("",!0)]))),128))]),(a.openBlock(),a.createBlock(B,{data:a.unref(u),"header-cell-class-name":"region-header","cell-class-name":"custom-cell",border:!1,onRowClick:x,key:h.value},{default:a.withCtx(()=>[a.createVNode(D,{label:"排行",type:"index",width:"90",align:"center"},{default:a.withCtx(M=>[a.createElementVNode("div",GJe,a.toDisplayString(M.$index+4),1)]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(M,O)=>(a.openBlock(),a.createBlock(D,{prop:M.field,label:M.title,width:M.width,key:O,align:"center"},{default:a.withCtx(P=>[a.createElementVNode("div",{class:a.normalizeClass(["rank-cup-flex rank-cup-text",b(M)]),style:a.normalizeStyle(w(M,P.row))},[a.unref(f)&&a.unref(f)==M.field&&P.row[M.field]>0?(a.openBlock(),a.createElementBlock("img",UJe)):a.createCommentVNode("",!0),a.unref(f)&&a.unref(f)==M.field&&P.row[M.field]<0?(a.openBlock(),a.createElementBlock("img",YJe)):a.createCommentVNode("",!0),a.unref(f)&&a.unref(f)==M.field&&(P.row[M.field]==0||!P.row[M.field])?(a.openBlock(),a.createElementBlock("span",jJe," - ")):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["initial-lineheight",b(M)])},a.toDisplayString(C(M.field,P.row[M.field]))+a.toDisplayString(P.row[M.field]&&M.unit?M.unit:""),3)],6)]),_:2},1032,["prop","label","width"]))),128))]),_:1},8,["data"]))],544),[[a.vShow,!l.value]]),l.value?a.renderSlot(E.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(N,a.mergeProps(E.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),qJe=ar(XJe,[["__scopeId","data-v-09606f3d"]]),Pne=Dt(qJe),ZJe={key:0,class:"g-ranking-tooltip"},QJe={class:"ranking-rb-list"},JJe=["onClick"],eet={class:"item-inbox"},tet=["title"],net={class:"item-inbox-target"},ret={class:"target"},aet={key:0,class:"text"},oet={class:"describe"},iet={class:"content"},set={class:"unit"},uet=a.defineComponent({name:"GRankingRb"}),cet=a.defineComponent({...uet,props:{dbOptions:{type:Object,default:{}},orderType:{type:String,default:"red"},tooltip:{type:Array,default:null},title:{type:String,default:""},description:{type:String,default:"暂无数据"},rbColor:{type:String,default:""},limit:{type:Number,default:5}},emits:["row-click"],setup(e,{expose:t,emit:n}){a.useCssVars(k=>({d921619c:C.value}));const r=e,o=n,i=a.ref(!1);let l=a.ref([]),s=a.ref([]),u=r.dbOptions.rankingField,c=r.dbOptions.namingField,d=r.dbOptions.describeField,f=r.orderType=="red"?"desc":"asc",p=r.limit,h=r.title;a.ref({});let v=a.ref(!1);const m=(k,_,T)=>k.sort((A,D)=>_==="asc"?A[u]-D[u]:_==="desc"?D[u]-A[u]:0).slice(0,T),g=(k,_)=>{o("row-click",k)},y=()=>r.rbColor?{color:r.rbColor}:r.orderType=="red"?{color:"#D14A41"}:{color:"#061957 "},C=a.computed(()=>r.orderType=="red"?"#D14A41":"#061957 "),b=async k=>{if(Ir(k)){i.value=!0;return}else i.value=!1;v.value=!1;let _=r.dbOptions.columns;s.value=_.filter(E=>E.field==c||E.field==u||E.field==d);let T=JSON.parse(JSON.stringify(k));l.value=m(T,f,p),v.value=!0},w=a.ref(null),S=async k=>{var _;if(Un(k)){await k.loadData();let T=k.mergeData();await b(T),w.value=k.onDataUpdate(()=>{const E=k.mergeData();b(E)})}else if(Vn(k))await b(k.sourceData),w.value=k.onDataUpdate(()=>{b(k.sourceData)});else{const T=(_=r.dbOptions)==null?void 0:_.dataField;let E=await Xn(k,T);b(E);return}};a.onMounted(()=>{S(r.dbOptions.data)}),a.onUnmounted(()=>{w.value&&(w.value(),w.value=null)});const x=qn(r.dbOptions);return t({props:r,getIsFinish(){return v.value}}),(k,_)=>{const T=a.resolveComponent("WarningFilled"),E=a.resolveComponent("el-icon"),A=a.resolveComponent("el-tooltip"),D=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-table-rb",onContextmenu:_[0]||(_[0]=(...B)=>a.unref(x)&&a.unref(x)(...B))},[a.createElementVNode("div",{class:"ranking-title",style:a.normalizeStyle(y())},[a.createTextVNode(a.toDisplayString(a.unref(h))+" ",1),r.tooltip?(a.openBlock(),a.createElementBlock("span",ZJe,[a.createVNode(A,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.tooltip,B=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(B)+" ",1),_[1]||(_[1]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(E,null,{default:a.withCtx(()=>[a.createVNode(T,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)],4),a.createElementVNode("div",QJe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l),(B,N)=>(a.openBlock(),a.createElementBlock("div",{class:"item",onClick:M=>g(B)},[a.createElementVNode("div",{class:a.normalizeClass(r.orderType=="black"?"top black":"top red")}," TOP"+a.toDisplayString(N+1),3),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),M=>(a.openBlock(),a.createElementBlock("div",eet,[M.field==r.dbOptions.namingField?(a.openBlock(),a.createElementBlock("div",{key:0,class:"text",title:B[M.field]},[a.renderSlot(k.$slots,`default-${M.field}`,{row:B,column:M},()=>[a.createTextVNode(a.toDisplayString(B[M.field]),1)],!0)],8,tet)):a.createCommentVNode("",!0)]))),256)),a.createElementVNode("div",net,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),M=>(a.openBlock(),a.createElementBlock("div",ret,[M.field==r.dbOptions.describeField?(a.openBlock(),a.createElementBlock("div",aet,[a.createElementVNode("div",oet,a.toDisplayString(B[M.field]),1)])):a.createCommentVNode("",!0),M.field!=r.dbOptions.namingField&&M.field!=r.dbOptions.describeField?a.renderSlot(k.$slots,`default-${M.field}`,{key:1,row:B,column:M},()=>[a.createElementVNode("div",iet,a.toDisplayString(B[M.field]),1),a.createElementVNode("div",set,a.toDisplayString(M.unit),1)],!0):a.createCommentVNode("",!0)]))),256))])],8,JJe))),256))])],544),[[a.vShow,!i.value]]),i.value?a.renderSlot(k.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(D,a.mergeProps(k.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),det=ar(cet,[["__scopeId","data-v-298e55e8"]]),Vne=Dt(det),fet=a.defineComponent({name:"GReserve"}),pet=a.defineComponent({...fet,props:{description:{type:String,default:"暂无数据"},color:{type:Array,default:[]},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=n,i=It(),l=JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors")),s=e;let u=a.ref(0);const c=a.ref(!1),d=a.ref(null),f=a.ref([]),p=a.ref([]);let h=a.ref([]);const v=s.dbOptions.columns.map(x=>({name:x.title,unit:(x==null?void 0:x.unit)||""})),m=s.dbOptions.yAxis.yAxises,g=a.ref();a.ref({});const y=async x=>{if(Ir(x)){c.value=!0;return}else c.value=!1;h.value=x,p.value=[],f.value=[],h.value&&h.value.forEach(T=>{f.value.push(T[s.dbOptions.xNameField])});const k=s.dbOptions.columns.map(T=>T.title);let _=[];s.dbOptions.yAxis&&s.dbOptions.yAxis.yAxisFields?_=s.dbOptions.columns.map(T=>{const E=s.dbOptions.yAxis.yAxisFields.find(A=>A.field===T.field);return E?{...T,...E}:T}).concat(s.dbOptions.yAxis.yAxisFields.filter(T=>!s.dbOptions.columns.some(E=>E.field===T.field))):_=s.dbOptions.columns,_.forEach((T,E)=>{const A=a.reactive({name:T.title,type:T.type,data:[],barWidth:T.type==="bar"?20:"",barGap:T.type==="bar"?.8:"",yAxisIndex:T.type==="line"?1:0,smooth:T.type==="line"?!0:"",tooltip:{valueFormatter:D=>`${D} ${T.unit}`},itemStyle:{normal:{color:T.type=="bar"?i.chartOption.colors[E]:i.chartOption.auxiliaryColors[0]}}});h.value.forEach(D=>{A.data.push(D[T.field])}),p.value.push(A)}),g.value={color:s.color?s.color:l,backgroundColor:i.chartOption.backgroundColor,grid:{...i.chartOption.grid,top:"15%",bottom:"12%",containLabel:!0},tooltip:{trigger:"axis",formatter:T=>{let E=T[0].name+"<br/>";return T.forEach((A,D)=>{!A.value||A.value===0||(E+=`<span style="display:inline-block;margin-right:5px;border-radius:2px;width:10px;height:10px;background-color:${A.color};"></span>${A.seriesName} : ${A.value||"-"}${A.value?v[D].unit:""}<br/>`)}),E}},legend:{trigger:"item",left:"center",show:!0,top:"bottom",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(r).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:[{type:"category",data:[],axisPointer:{type:"shadow"},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{fontSize:i.chartOption.fontSize,padding:i.chartOption.padding,color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",name:m[0].name||"",show:!0,axisLine:{show:!1,lineStyle:{type:"solid",width:"1"}},axisLabel:{formatter:"{value}"+v[0].unit,color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},splitLine:{lineStyle:{type:"dashed"}},nameTextStyle:{align:"center",padding:[3,4,0,-40],color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}},{type:"value",name:m[1].name||"",show:!0,axisLine:{show:!1,lineStyle:{type:"solid",width:"1"}},axisLabel:{formatter:"{value}%",color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},splitLine:{show:!1,lineStyle:{type:"dashed"}},nameTextStyle:{align:"center",padding:[3,4,0,34],color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}}],series:[]},g.value.xAxis[0].data=f.value,g.value.legend.data=k,g.value.series=p.value};t({props:s,reserveRef:d});const C=x=>{o("chart-click",x)},b=a.ref(null),w=async x=>{var k;if(Un(x)){await x.loadData();let _=x.mergeData();await y(_),b.value=x.onDataUpdate(()=>{const T=x.mergeData();y(T)})}else if(Vn(x))await y(x.sourceData),b.value=x.onDataUpdate(()=>{y(x.sourceData)});else{const _=(k=s.dbOptions)==null?void 0:k.dataField;let T=await Xn(x,_);y(T);return}};a.onMounted(()=>{w(s.dbOptions.data)}),a.onUnmounted(()=>{b.value&&(b.value(),b.value=null)});const S=qn(s.dbOptions);return(x,k)=>{const _=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-reserve",onContextmenu:k[0]||(k[0]=(...T)=>a.unref(S)&&a.unref(S)(...T))},[(a.openBlock(),a.createBlock(_,{options:g.value,ref_key:"reserveRef",ref:d,isEmpty:c.value,description:e.description,onClick:C,key:a.unref(u)},null,8,["options","isEmpty","description"]))],32)}}}),het=ar(pet,[["__scopeId","data-v-9a4e6cc2"]]),Fne=Dt(het),zne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABWSURBVHgB7ZO7DcAgDAVfMkn2b0ImICNkE9jgxeYjuQH3iJPswnetAYHkJRNlEiu33mBkF5ZUIlmBY+KhG2OyF+CEww52sGaQveCb+Md/XqVFwYi3yx/PyZH5MazHfAAAAABJRU5ErkJggg==",$ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGUSURBVHgBzZiNWYMwEIaPLmDdgA10hIzQEXADnUDcoE6gG9gN7Aa6AXWCdoPPuyZYpJAfkpK+z5M2QBI+juPugCgSACW3PbdG+pQbFrHBiU/KibFOnyVFsKA46oF9j5QL4zd99pQDPnGFcRTNzYh18ji3WABuFE1gqlNXHmNWNAcjj/oQEiyDQ8AUC9We40RMRYEU3Q3o0C8L9f9vTL/dDrnyHbeDadL/6fT/9hdFcTgKYhHPpINZVIRNxFoEga4I8aFXuh5ejr9spBr5qf9JQ15RwwmZD6yg48dcyLkq602EDnwNLo+IuScfZhDVILTc5QlLbh9IT4OY2psnvyMdX3DkN59ctqV0fLcpYgwfQYrSoVwDCtcAueekk2oqbm1WWjjElInFCNZH3XXL/OJEGFGCLlGGKttBl6A7ciP+8MTtgXTR5cJnzXPgVzuvu3HFzPGJW+HFIHSiHWMLy2uOEbaxzFdTBA1daSNCA9aoMJwTw9//ocN8i2TmGhO/bOC81nqjUDqLSIItKRKc/GuHfnXY4Re69BeY1U9v5wAAAABJRU5ErkJggg==",vet={key:0,class:"timeline-state"},met={key:0,src:zne,alt:""},get={key:1,src:$ne,alt:""},yet={class:"txt"},bet={class:"txt"},Cet={class:"timeline-body"},wet={class:"timeline-box"},xet={class:"line-bg"},ket={key:0,src:zne,alt:""},Eet={key:1,src:$ne,alt:""},_et={class:"planTime"},Tet={class:"finishTime"},Aet=["onClick"],Det=["onClick"],Met={class:"time-text"},Net=a.defineComponent({name:"GPlan"}),Bet=a.defineComponent({...Net,props:{isYearDate:{type:Boolean,default:!0},isLegend:{type:Boolean,default:!0},description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(!1),l=a.ref({}),s=a.ref([]),u=a.ref(0),c=a.ref(null),d={"提前/按时完成":{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-completed"),isOverTme:!1},逾期完成:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-overdue"),isOverTime:!0},未到期:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-notYetDue"),isOverTime:!1},已逾期:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-uncompleted"),isOverTime:!0}},f={completed:{remark:"提前/按时完成",status:"completed",icon:"check",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-completed")},overdue:{remark:"逾期完成",status:"overdue",icon:"info",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-overdue")},notYetDue:{remark:"未到期",status:"notYetDue",icon:"none",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-notYetDue")},uncompleted:{remark:"已逾期",status:"uncompleted",icon:"warning",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-uncompleted")}},p={里程碑:{color:getComputedStyle(document.documentElement).getPropertyValue("--el-border-color"),icon:"lvfont-nodes"},一级:{color:getComputedStyle(document.documentElement).getPropertyValue("--el-border-color"),icon:"lvfont-level1"}},h=["计划","实际"];let v=a.ref([]);const m=a.ref(null);a.ref({});const g=a.computed(()=>D=>({width:175*(D||s.value.length)+"px"})),y=a.computed(()=>D=>({left:175*(D||s.value.length)-100+"px"})),C=a.computed(()=>D=>D.icon?{background:D.color,borderRadius:"50%",width:"inherit",textAlign:"center"}:{background:D.color,borderRadius:"50%"}),b=D=>D||"/",w=D=>{const B=new Date(D[o.dbOptions.plannedDateField]).getTime(),N=D.finishTime!=="/"?new Date(D[o.dbOptions.actualDateField]).getTime():null,M=new Date().getTime();if(B&&N){if(N<=B)return f.completed.remark;if(N>=B)return f.overdue.remark}if(B&&!N){if(B<=M)return f.uncompleted.remark;if(B>M)return f.notYetDue.remark}},S=D=>new Date(D).getTime()<new Date().getTime(),x=()=>{a.nextTick(()=>{if(u.value>3){let D=c.value;window.testBox=D,D.scrollLeft=(u.value-3)*235}})},k=async D=>{if(Ir(D)){i.value=!0;return}else i.value=!1;v.value=D;const B=v.value;u.value=0,l.value={},s.value=[],(o.dbOptions.displayNodes&&o.dbOptions.displayNodes.length>0?B.filter(M=>o.dbOptions.displayNodes.includes(M[o.dbOptions.nodeCodeField])):B).map(M=>{if(o.dbOptions.plannedDateField){let O=M[o.dbOptions.plannedDateField].split("-")[0];l.value[O]?l.value[O]++:l.value[O]=1,s.value.push({color:d[w(M)]?d[w(M)].color:"",planTime:b(M[o.dbOptions.plannedDateField]),finishTime:b(M[o.dbOptions.actualDateField]),nodeName:M[o.dbOptions.nodeNameField],nodeType:o.dbOptions.belongDepartField?M[o.dbOptions.belongDepartField]:null,borderColor:d[w(M)]?d[w(M)].color:"",icon:p[M[o.dbOptions.nodeTypeField]]?p[M[o.dbOptions.nodeTypeField]].icon:null,nodeCode:M[o.dbOptions.nodeCodeField]}),S(M[o.dbOptions.plannedDateField])&&u.value++}}),x()},_=D=>{r("node-click",D)},T=a.ref(null),E=async D=>{var B;if(Un(D)){await D.loadData();let N=D.mergeData();await k(N),T.value=D.onDataUpdate(()=>{const M=D.mergeData();k(M)})}else if(Vn(D))await k(D.sourceData),T.value=D.onDataUpdate(()=>{k(D.sourceData)});else{const N=(B=o.dbOptions)==null?void 0:B.dataField;let M=await Xn(D,N);k(M);return}};a.onMounted(()=>{E(o.dbOptions.data)}),a.onUnmounted(()=>{T.value&&(T.value(),T.value=null)}),t({props:o,planRef:m});const A=qn(o.dbOptions);return(D,B)=>{const N=a.resolveComponent("el-tooltip"),M=a.resolveComponent("el-scrollbar"),O=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-plan",ref_key:"planRef",ref:m,onContextmenu:B[0]||(B[0]=(...P)=>a.unref(A)&&a.unref(A)(...P))},[e.isLegend?(a.openBlock(),a.createElementBlock("div",vet,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(p,(P,R)=>a.createElementVNode("li",{key:R},[a.createElementVNode("p",{class:a.normalizeClass(["dot",P.icon]),style:a.normalizeStyle(C.value(P))},[P.icon=="lvfont-level1"?(a.openBlock(),a.createElementBlock("img",met)):(a.openBlock(),a.createElementBlock("img",get))],6),a.createElementVNode("span",yet,a.toDisplayString(R)+"节点",1)])),64)),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(d,(P,R)=>a.createElementVNode("li",{key:R},[a.createElementVNode("p",{class:a.normalizeClass(["dot",P.icon]),style:a.normalizeStyle({background:`${P.color}`})},null,6),a.createElementVNode("span",bet,a.toDisplayString(R),1)])),64))])):a.createCommentVNode("",!0),a.createElementVNode("div",Cet,[a.createVNode(M,{ref_key:"timelineScroll",ref:c},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"year-box",style:a.normalizeStyle(g.value())},[a.createElementVNode("div",wet,[a.withDirectives(a.createElementVNode("div",xet,[a.createElementVNode("div",{class:"color-line",style:a.normalizeStyle(g.value(u.value))},null,4),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(P,R)=>(a.openBlock(),a.createElementBlock("div",{class:"time-node",key:R,style:a.normalizeStyle(y.value(R+1))},[a.createElementVNode("div",{class:a.normalizeClass(["icon",["dot",P.icon]]),style:a.normalizeStyle(C.value(P))},[P.icon=="lvfont-level1"&&(P.finishTime||P.planTime)?(a.openBlock(),a.createElementBlock("img",ket)):(a.openBlock(),a.createElementBlock("img",Eet))],6),a.createElementVNode("div",_et,a.toDisplayString(P.planTime),1),a.createElementVNode("div",Tet,a.toDisplayString(P.finishTime),1),P.nodeName.length>14?(a.openBlock(),a.createBlock(N,{key:0,placement:"top"},{content:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(P.nodeName),1)]),default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(P!=null&&P.showPopover?"name-line":"nodeName"),onClick:L=>_(P)},a.toDisplayString(P.nodeName),11,Aet)]),_:2},1024)):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(P!=null&&P.showPopover?"name-line":"nodeName"),onClick:L=>_(P)},a.toDisplayString(P.nodeName),11,Det)),P.nodeType!=null?(a.openBlock(),a.createElementBlock("div",{key:2,class:"nodeType",style:a.normalizeStyle({color:P.borderColor,border:"1px solid"+P.borderColor})},a.toDisplayString(P.nodeType),5)):a.createCommentVNode("",!0)],4))),128))],512),[[a.vShow,s.value.length]])])],4)]),_:1},512),a.createElementVNode("div",Met,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(h,(P,R)=>a.createElementVNode("div",{key:P,class:a.normalizeClass("key"+R)},a.toDisplayString(P),3)),64))])])],544),[[a.vShow,!i.value]]),i.value?a.renderSlot(D.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(O,a.mergeProps(D.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),Oet=ar(Bet,[["__scopeId","data-v-711bac52"]]),Hne=Dt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KSURBVHgB7ZhBbtNAFIbfzDhRFyxyA5xdBUEKN0iXkA05QVoRkFg1N2g4AekKiRY1nCBCEFgSToClRohdzQ3M1vHM403aSm6c8YzT1Gql/ovEGT/bn948v/knAPe6Y2KwprbH7/1KtdpCpXwFrKbHOGDEkAVSqPB3+3UAa6gQkD8+qT2oqn26aBcB/bxYBAgpbpjE889/Om9C2DRQY/LxgB7Tp8MaFFNEjxnO2i/fugRbgba/n/hCyTEFNuEa0hmT8XzHli1mhUH1g2H+9GwSipUF4wrFTRcWg8Gf9OH0VlEGfK9aGZvOrwTSBewKwxh8mrVftWbt3lN9DG5qNr4cDVbeb3lAT5Wn5C9weJs0wOnz3m567Mm34xEidMGuyItFPejsRenBTIaETF6sC6OlxxwzVUu8pL88mJ0yzvehAMx5fzrX5bErFHLWzQXS02WrnSwMDlKPGBSB0gWulyAjUGUubc0vMsOshoJFpzaLC9FK//au3Iph09Ira4+/HvU55w8RsW8OW0ABovoHlnrkjPlGIBcxxt4RjEMkDigWiorDLdPtBmKch1CytKFL/74CJDifQskScm4GCp7thfT1F0oSlXwYLK362RpSOIKyJFXGRWaAvMQbgqWZbUKUnUhIOQUb0GL1VXgINyzaJBwGK0yasXM1Jsfagjj5aNpZ1GFrC8i2nLnE69o5bffqq84Z+5DHRYc6bQgOIgd4VgRGkIXNOW9Wk1Z/SVYWN+SrL2GCHJOf26l1GxCM77hmyqLABqNVYKOoPTA7gILSb5MuYPLdA8d4d+kpTFRCxot3HaaRGiyOvNgbLvvmjQGl9WjyoSkk9y881IXnoT8baD2cx/G0yH7+Xnda/wEnsSndVBsOjwAAAABJRU5ErkJggg==",Let={class:"reach-table-head"},Pet={class:"txt"},Vet={class:"name"},Fet={key:1,class:"name"},zet={key:0,src:Iet,alt:"",style:{"margin-top":"-2px"}},$et={key:1,src:Ret,alt:"",style:{"margin-top":"-2px"}},Het={key:2,class:"prefix"},Wet={class:"content"},Get={key:3,class:"suffix"},Uet=a.defineComponent({name:"GNodeAchievement"}),Yet=a.defineComponent({...Uet,props:{size:{type:String,default:"small"},description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:{}}},setup(e,{expose:t}){const n=e,r=a.ref(!1),o=a.ref(null),i=["percent","compare","text","unusual","action","compare","mean"],l={background:"transparent",padding:"12px 0"},s=a.ref([]),u=a.computed(()=>C=>h.value[C]&&h.value[C].icon||""),c=a.computed(()=>C=>h.value[C]&&h.value[C].prefix||""),d=a.computed(()=>C=>h.value[C]&&h.value[C].suffix||""),f=({rowIndex:C,columnIndex:b})=>{if(C===0||C===5)return b===0?{rowspan:2,colspan:1}:{rowspan:1,colspan:1};if(C===1||C===6)return b===0?{rowspan:0,colspan:1}:{rowspan:1,colspan:1}},p=({rowIndex:C})=>`${i[C]} ${C===2?"ranking":""}`;let h=a.ref([]);a.ref({});const v=async C=>{if(Ir(C)){r.value=!0;return}else r.value=!1;h.value=C;for(var b=0;b<h.value.length;b++)s.value[b]={title:h.value[b][n.dbOptions.nodeNameField],field:h.value[b][n.dbOptions.nodeNameField],tag:h.value[b][n.dbOptions.nodeTypeField],width:160};s.value.unshift({title:"",field:"name",tag:"",align:"right",width:130});const w=n.dbOptions.displayNodes&&n.dbOptions.displayNodes.length>0?h.value.filter(S=>n.dbOptions.displayNodes.includes(S[n.dbOptions.nodeCodeField])):h.value;h.value=[{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateField).title,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateWithField).title,icon:!0,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateWithField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateWithField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateYearField).title,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateYearField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateYearField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.abnormalField).title,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.abnormalField],S),{})}]},m=a.ref(null),g=async C=>{var b;if(Un(C)){await C.loadData();let w=C.mergeData();await v(w),m.value=C.onDataUpdate(()=>{const S=C.mergeData();v(S)})}else if(Vn(C))await v(C.sourceData),m.value=C.onDataUpdate(()=>{v(C.sourceData)});else{const w=(b=n.dbOptions)==null?void 0:b.dataField;let S=await Xn(C,w);v(S);return}};a.onMounted(()=>{g(n.dbOptions.data)}),a.onUnmounted(()=>{m.value&&(m.value(),m.value=null)}),t({props:n,nodeAchRef:o});const y=qn(n.dbOptions);return(C,b)=>{const w=a.resolveComponent("mypopover"),S=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-node-achievement",ref_key:"nodeAchRef",ref:o,onContextmenu:b[0]||(b[0]=(...x)=>a.unref(y)&&a.unref(y)(...x))},[a.createVNode(a.unref(eI),{data:a.unref(h),class:"reach-table","span-method":f,"row-class-name":p,"header-cell-style":l,size:e.size,"show-overflow-tooltip":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,x=>(a.openBlock(),a.createBlock(a.unref(tI),{key:x.field,prop:x.field,label:x.title,align:x.align||"center",width:x.width,"show-overflow-tooltip":""},{header:a.withCtx(({column:k})=>[a.createElementVNode("p",Let,[x.tag?(a.openBlock(),a.createElementBlock("span",{key:0,class:"tag",style:a.normalizeStyle({color:x.tag=="里程碑"?"#316BD8":"#C18D60"})},a.toDisplayString(x.tag),5)):a.createCommentVNode("",!0),a.createElementVNode("span",Pet,a.toDisplayString(k.label),1)])]),default:a.withCtx(({row:k,$index:_})=>[k[x.field]=="异常项目"?(a.openBlock(),a.createBlock(w,{key:0,id:"41"},{default:a.withCtx(()=>[a.createElementVNode("span",Vet,a.toDisplayString(k[x.field]),1)]),_:2},1024)):x.field==="name"?(a.openBlock(),a.createElementBlock("span",Fet,a.toDisplayString(k[x.field]),1)):(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass(["texts",{fu:k[x.field]<0}])},[k[x.field]<0&&u.value(_)?(a.openBlock(),a.createElementBlock("img",zet)):a.createCommentVNode("",!0),k[x.field]>0&&u.value(_)?(a.openBlock(),a.createElementBlock("img",$et)):a.createCommentVNode("",!0),c.value(_)?(a.openBlock(),a.createElementBlock("em",Het,a.toDisplayString(c.value(_)),1)):a.createCommentVNode("",!0),a.createElementVNode("em",Wet,a.toDisplayString(k[x.field]),1),d.value(_)?(a.openBlock(),a.createElementBlock("em",Get,a.toDisplayString(d.value(_)),1)):a.createCommentVNode("",!0)],2))]),_:2},1032,["prop","label","align","width"]))),128))]),_:1},8,["data","size"])],544),[[a.vShow,!r.value]]),r.value?a.renderSlot(C.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(S,a.mergeProps(C.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),jet=ar(Yet,[["__scopeId","data-v-24191fd2"]]),Wne=Dt(jet),Ket={formatter:e=>isNaN(e)?"":e<10?`0${e}`:e.toString()};function $H(e="YYYY-MM-DD hh:mm:ss",t=""){let n=typeof t=="string"?new Date(t):t;const r=n.toString(),o=["日","一","二","三","四","五","六"],i=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"],l=r.includes("Invalid")?new Date(Date.now()-24*60*60*1e3):n,s=l.getDay(),u=l.getFullYear(),c=l.getMonth()+1,d=l.getDate(),f=l.getHours(),p=l.getMinutes(),h=l.getSeconds(),v={Y:u,M:c,D:d,W:o[s],h:f,m:p,s:h,w:i[s]};return e.replace(/(Y|M|D|h|m|s|W|w)+/gi,(m,g)=>{const y=v[g],C=m.length;return y==null?"":g==="Y"?String(y).slice(-C):C>1?Ket.formatter(Number(y)):String(y)})}function Xet(e,t){const n=new Date(e),r=new Date(t);var o;return o=(r.getFullYear()-n.getFullYear())*12,o-=n.getMonth(),o+=r.getMonth(),o<=0?0:o}const e1=It(),Gne=(e,t,n)=>{if(!e||isNaN(Number(e)))return"--";if(e==="0"||e===0||e==="0.0"||e==="0.00")return"0";let r=Number(e).toFixed(0),o="";{const i=r.toString().split(".");o=i[0].replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,"),o+""+i[1]}return o};function qet([e],t,n){if(!e)return"";e.value&&(e.value=Gne(e.value));let r=n.map(s=>s.name),o="";r.indexOf(e==null?void 0:e.axisValue);const i=`<p class='tooltip-text'> <span>当前时间:</span><span style="color:${e.color};">${e.name}</span></p>`,l=`<p class='tooltip-text'> <span>${e.seriesName}</span><span style="color:${e.color};">${e.value}万元</span></p>`;return`<div class="tooltip-cash">${o} ${i}${l}</div>`}const Zet=(e=8,t="rgba(229, 159, 98, 0.1)",n={x:0,y:0,x2:1,y2:.3})=>{const r=1/e,o=Math.round(r/10*1e3)/1e3,i=[];let l=0,s=0;for(let u=0;u<8;u++)l=Math.round(u*r*1e3)/1e3,s=Math.round((u+1)*r*1e3)/1e3,i.push({offset:l,color:t},{offset:Math.round((s-o)*1e3)/1e3,color:t},{offset:Math.round((s-o)*1e3)/1e3,color:"rgba(0,0,0,0)"},{offset:s,color:"rgba(0,0,0,0)"});return i.push({offset:s,color:t},{offset:1,color:t}),{type:"linear",...n,colorStops:i,globalCoord:!1}};function Qet(e){const t=e1.chartOption.chartTitleColor,n=e1.chartOption.chartAxisLineColor,{max:r,min:o,point:i,count:l,chart:s,cycle:u,timeline:c,start:d,tooltipLocation:f}=e,p=Math.ceil(r/3),h=Math.ceil(r*2/3);return{backgroundColor:e1.chartOption.backgroundColor,color:e1.chartOption.colors,grid:{top:"5%",left:110,right:20,bottom:"5%"},title:[{text:"资金",top:"8%",left:10,textStyle:{color:t,fontSize:16,fontWeight:"normal"}},{top:"7%",left:120,text:`{name| 现金流回正周期}{value|${l}}{unit|个月}`,textStyle:{rich:{name:{color:t,fontSize:16,fontWeight:"normal",verticalAlign:"bottom",padding:[3,8]},unit:{color:t,fontSize:16,fontWeight:"normal",verticalAlign:"bottom",padding:[3,4]},value:{color:t,fontSize:32,fontWeight:"bold"}}}}],xAxis:[{axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:c.start,max:c.ending,axisPointer:{show:!1}},{type:"category",show:!0,axisLine:{show:!0,lineStyle:{width:2}},axisTick:{show:!1},axisLabel:{show:!1,interval:0},splitLine:{show:!1},data:s.xAxis,boundaryGap:!1,axisPointer:{show:!0}}],yAxis:[{type:"value",axisLine:{show:!0},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:o||-12,max:r||12},{type:"value",min:o||-12,max:r||12,position:"left",axisLine:{lineStyle:{color:"rgba(0,0,0,0.6)",width:1}},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}],series:[{name:"时间线",type:"scatter",data:[],xAxisIndex:0,yAxisIndex:0,markLine:{silent:!0,symbol:"none",data:[{yAxis:p,symbol:"none",label:{show:!1},lineStyle:{type:"solid",color:n}},{yAxis:-h,symbol:"none",label:{show:!1},lineStyle:{type:"solid",color:n}},[{coord:[d,h],lineStyle:{type:"dashed",color:n}},{coord:[d,-h],lineStyle:{type:"dashed",color:n}}],[{coord:[u,r],lineStyle:{type:"dashed",color:n}},{coord:[u,o],lineStyle:{type:"dashed",color:n}}],[{coord:[d,h],lineStyle:{type:"dashed",color:n}},{coord:[u,h],lineStyle:{type:"dashed",color:n}}]]},markArea:{data:[[{coord:[d,h]},{coord:[u,-h]}]],itemStyle:{normal:{color:Zet()}}},markPoint:{data:c.data.map((m,g)=>{const y=!!m.title,C=Number(y),b=m.active?"#E59F62":"#3971E2",w=(m.active,"rgba(255,255,255,0.8)"),x={position:[3,c.data.length-2].includes(g)?"bottom":"top",formatter:()=>{const k=[];return m.title&&k.push(`{text|${m.title}}`),m.brief&&k.push(`{text|${m.brief}}`),m.name&&k.push(`{name|${m.name}}`),k.join(`
|
|
117
|
-
`)},rich:{text:{fontSize:12,align:"center",padding:[3,0],color:"#666666"},name:{fontSize:12,align:"center",color:"#666666",padding:[4,0]}},padding:4,backgroundColor:w,shadowColor:"rgba(0,0,0,0.2)",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:5};return{name:m.name,coord:[m.value,0,m.title],value:m.value,symbol:"circle",symbolSize:12,itemStyle:{normal:{color:"#ffffff",borderColor:b,borderWidth:3,opacity:C},emphasis:{color:"#ffffff",borderColor:b,borderWidth:3,opacity:C}},label:y?x:{show:!1}}})}},{name:"现金流:",type:"line",smooth:!0,xAxisIndex:1,yAxisIndex:1,symbolSize:20,lineStyle:{width:2.5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowBlur:15,shadowOffsetY:20},itemStyle:{color:"#3971E2",borderColor:"#fff",borderWidth:4,shadowColor:"rgba(0, 0, 0, .3)",shadowBlur:1},data:s.data.map(m=>({value:m,symbol:m==i.y?"circle":"none",label:{show:m==i.y,formatter:g=>`{text|资金需求峰值}{data|${Gne(g.value)}}{unit|万元}`,position:"bottom",rich:{text:{color:t,fontSize:16,padding:[5,0,0,0]},data:{color:t,fontSize:32,fontWeight:600,padding:[0,2,0,8]},unit:{color:t,fontSize:16,padding:[7,0,0,0]}}}}))}],tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{type:"solid"}},formatter:m=>qet(m,{unit:["万元"]},c.data),position:"right"}}}const Jet=(e,t)=>{const r=ett(t,e.dbOptions,e.tooltipLocation);return Qet(r)},ett=(e,t,n)=>{const{columns:r,nodeNameField:o,nodeCodeField:i,nodeTypeField:l,timeField:s,dataField:u,displayNodes:c,plannedCodeField:d,actualCodeField:f}=t,[p,h]=e,v=r.find(R=>R.field===o),m=r.find(R=>R.field===i),g=r.find(R=>R.field===l),y=r.find(R=>R.field===s),C=r.find(R=>R.field===u),b=r.find(R=>R.field===d),w=r.find(R=>R.field===f),S=c&&Array.isArray(c)&&c.length?c:[],x=S.length?h.filter(R=>S.includes(R[m.field])||S.includes(R[v.field])||S.includes(R[g.field])):h,k=p.map(R=>R[y.field]),_=p.map(R=>R[C.field]),T=ttt({xAxis:k,groups:_}),E=$H("YYYY-MM-DD",new Date),A=k.at(-1),D=k[0],B=h.find((R,L)=>R[m.field]===w.field)[y.field],N=[{name:E,title:"当前时间",active:!0,value:Date.parse(E)},...x.map(R=>({name:$H("YYYY-MM-DD",R[y.field]),value:Date.parse(R[y.field]),title:R[v.field]}))],M=Date.parse(h.find(R=>R[m.field]===b.field)[y.field]),O=Date.parse(D),P=Date.parse(A);return N.unshift({value:M,title:"",brief:"",name:""}),N.push({value:P,title:"",brief:"",name:""}),{max:T.round,min:-T.round,tooltipLocation:n,point:{x:T.xAxis,y:T.least},chart:{xAxis:[...k],data:[..._]},timeline:{data:N,start:O,ending:P},current:e.currentTime?Date.parse(e.currentTime):0,cycle:B?Date.parse(B):M,count:Xet(M,B)||"-",start:M||0,now:e.currentTime?Date.parse(e.currentTime):0}},ttt=({xAxis:e=[],groups:t=[]})=>{const n=t||[];if(n.length<1)return{};const r=n.map(c=>Number(c)),o=Math.min(...r),i=r.findIndex(c=>c===o),l=r.map(c=>Math.abs(c)),s=Math.max(...l),u=Math.ceil(s*3/2);return{least:o,round:u,xAxis:e[i]}},ntt=a.defineComponent({name:"GCashflow"}),rtt=a.defineComponent({...ntt,props:{description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:{}},tooltipLocation:{type:String,default:"11.5%"}},setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(!1);let l=a.ref([]),s=a.ref({});const u=a.ref(null);a.ref({});const c=async v=>{if(Ir(v)){i.value=!0;return}else i.value=!1;l.value=v,s.value=Jet(o,l.value)},d=a.ref(null),f=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await c(g),d.value=v.onDataUpdate(()=>{const y=v.mergeData();c(y)})}else if(Vn(v))await c(v.sourceData),d.value=v.onDataUpdate(()=>{c(v.sourceData)});else{const g=(m=o.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);c(y);return}};a.watch(()=>{var m;const v=(m=o.dbOptions)==null?void 0:m.data;return a.isRef(v)?v.value:v},async(v,m)=>{v&&(d.value&&(d.value(),d.value=null),await f(v))},{immediate:!0,deep:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{d.value&&(d.value(),d.value=null)}),t({props:o,cashflowRef:u});const p=v=>{r("chart-click",v)},h=qn(o.dbOptions);return(v,m)=>{const g=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-cashflow",onContextmenu:m[0]||(m[0]=(...y)=>a.unref(h)&&a.unref(h)(...y))},[a.createVNode(g,{options:a.unref(s),ref_key:"cashflowRef",ref:u,isEmpty:i.value,description:e.description,onClick:p},null,8,["options","isEmpty","description"])],32)}}}),Une=Dt(rtt),ey=document.documentElement,f2=It(),att=e=>e||"-",ott=e=>e||"",itt=(e,t,n)=>{let r=[],o=[],i=[];for(let l=0;l<e;l++)r.push({barWidth:f2.chartOption.barWidth}),i.push({splitLine:{lineStyle:{type:"dashed"}},axisLine:{show:!1},axisLabel:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")},axisTick:{show:!1},nameTextStyle:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")}}),o.push({axisTick:{show:!1},axisLabel:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")},axisLine:{show:!1},splitLine:{lineStyle:{type:"dashed"}}});return{backgroundColor:f2.chartOption.backgroundColor,tooltip:{show:!0,trigger:"axis",formatter:function(l){var d;for(var s=l[0].name,u=0,c=e;u<c;u++)s+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${l[u].color};"></span>`+l[u].seriesName+" : "+att(l[u].value)+" "+ott((d=n[u])==null?void 0:d.unit);return s}},legend:{trigger:"item",left:"center",show:!1,top:"bottom",itemWidth:10,itemHeight:10,borderRadius:0,textStyle:{fontSize:14,color:getComputedStyle(ey).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...f2.chartOption.grid,top:"10%",containLabel:!0},color:JSON.parse(getComputedStyle(ey).getPropertyValue("--ui-chart-colors")),xAxis:o,yAxis:i,series:r}},HH=(e,t,n,r)=>{const o=a.ref({});return o.value=In({},itt(t,n,r),e),{...a.toRefs(o.value)}},ltt=a.defineComponent({name:"GBar"}),stt=a.defineComponent({...ltt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:()=>({direction:"vertical"})},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){It(),Kn.state;const r=n,o=e,i=a.ref(),l=a.ref(null);let s=a.ref(0),u=null,c=a.ref(!1);const d=a.ref(null),f=a.ref(!1),p=async g=>{if(Ir(g)){f.value=!0;return}else f.value=!1;const y=_d(o.dbOptions.xAxisField);c.value=!1;let C=a.ref([]),b=Kl(o.options),w=[],S=[],x=[],k={series:[]};if(u=g,C.value=g,c.value=!0,C.value&&o.dbOptions){let _=[];if(o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxisFields?_=o.dbOptions.columns.map(T=>{const E=o.dbOptions.yAxis.yAxisFields.find(A=>A.field===T.field);return E?{...T,...E}:T}).concat(o.dbOptions.yAxis.yAxisFields.filter(T=>!o.dbOptions.columns.some(E=>E.field===T.field))):_=o.dbOptions.columns,_.map(T=>{let E=T.yAxisIndex?{name:"",type:"bar",yAxisIndex:T.yAxisIndex,data:[]}:{name:"",type:"bar",data:[]};C.value.map(A=>{E.data.push(A[T.field]),E.name=A[T.title]||T.title,E.stack=T.stack}),w.push(E)}),C.value.map(T=>{o.dbOptions.direction=="horizontal"?x.push(y=="function"?o.dbOptions.xAxisField(T):T[o.dbOptions.xAxisField]):S.push(y=="function"?o.dbOptions.xAxisField(T):T[o.dbOptions.xAxisField])}),o.dbOptions.direction=="horizontal"?S.push({type:"value",name:""}):x.push({type:"value",name:""}),b?(o.dbOptions.direction=="horizontal"?(b.yAxis?b.yAxis[0].data=x:b.yAxis=[{data:x}],b.xAxis?b.xAxis=In({},b.xAxis,S):b.xAxis=S):(b.xAxis?b.xAxis[0].data=S:b.xAxis=[{data:S}],b.yAxis?b.yAxis=In({},b.yAxis,x):b.yAxis=x),b.series?b.series=In({},b.series,w):b.series=w):(o.dbOptions.direction=="horizontal"?(k.xAxis=S,k.yAxis=[{data:x}]):(k.xAxis=[{data:S}],k.yAxis=x),k.series=w),o.dbOptions&&o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxises){let T=[];o.dbOptions.yAxis.yAxises.map(E=>{let A={name:E.name,type:"value",position:E.position,alignTicks:E.alignTicks,offset:E.offset};T.push(A)}),o.dbOptions.direction=="horizontal"?b.xAxis=In({},b.xAxis,T):b.yAxis=In({},b.yAxis,T)}}b?i.value=HH(b,o.dbOptions.columns.length,o.dbOptions.direction,o.dbOptions.columns):i.value=HH(k,o.dbOptions.columns.length,o.dbOptions.direction,o.dbOptions.columns)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),d.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),d.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{d.value&&(d.value(),d.value=null)}),t({props:o,barRef:l,getData(){return u},getIsFinish(){return c.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar","data-component-container":"",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:i.value},g.$attrs,{ref_key:"barRef",ref:l,isEmpty:f.value,description:e.description,onClick:v,key:a.unref(s)}),null,16,["options","isEmpty","description"]))],32)}}}),utt=ar(stt,[["__scopeId","data-v-6e7ad1f8"]]),Yne=Dt(utt),ty=It(),t1=document.documentElement,ctt=e=>e||"-",dtt=e=>e||"",ftt=e=>({backgroundColor:ty.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"axis",formatter:function(t){var i;for(var n=t[0].name,r=0,o=t.length;r<o;r++)n+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t[r].color};"></span>`+t[r].seriesName+" : "+ctt(t[r].value)+" "+dtt((i=e[r])==null?void 0:i.unit);return n}},legend:{trigger:"item",left:"center",top:"bottom",show:!0,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(t1).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...ty.chartOption.grid,containLabel:!0},xAxis:[{type:"category",axisTick:{show:!1,alignWithLabel:!0},axisLine:{show:!0},axisLabel:{fontSize:ty.chartOption.fontSize,padding:[5,5],lineHeight:18,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:ty.chartOption.fontSize,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}},{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:ty.chartOption.fontSize,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}}],series:[]}),WH=(e,t)=>{const n=a.ref({});return n.value=In({},ftt(t),e),{...a.toRefs(n.value)}},ptt=a.defineComponent({name:"GLine"}),htt=a.defineComponent({...ptt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(!1),s=a.ref(),u=a.ref(null);let c=null,d=a.ref(!1);const f=async g=>{if(Ir(g)){l.value=!0;return}else l.value=!1;const y=_d(o.dbOptions.xAxisField),{newDbO:C,newData:b}=p(o.dbOptions,g);g=b,d.value=!1;let w=a.ref([]),S=Kl(o.options),x=[],k=[],_={xAxis:[],series:[]};if(c=g,w.value=g,d.value=!0,w.value&&C){w.value.map(E=>{k.push(y=="function"?C.xAxisField(E):E[C.xAxisField])});let T=[];if(C.yAxis&&C.yAxis.yAxisFields?T=C.columns.map(E=>{const A=C.yAxis.yAxisFields.find(D=>D.field===E.field);return A?{...E,...A}:E}).concat(C.yAxis.yAxisFields.filter(E=>!C.columns.some(A=>A.field===E.field))):T=C.columns,T.map(E=>{let A={name:"",type:E.type||"line",yAxisIndex:E.yAxisIndex,stack:E.stack,data:[],lineStyle:E.lineStyle,areaStyle:E.areaStyle};w.value.map(D=>{A.name=D[E.title]||E.title,A.data.push(D[E.field])}),x.push(A)}),S){if(S.xAxis?S.xAxis[0].data=k:S.xAxis=[{data:k}],S.series?S.series=In({},S.series,x):S.series=x,C&&C.yAxis&&C.yAxis.yAxises){let E=[];C.yAxis.yAxises.map(A=>{let D={name:A.name,type:"value",position:A.position,alignTicks:A.alignTicks,offset:A.offset};E.push(D)}),S.yAxis=In({},S.yAxis,E)}}else _.xAxis=[{data:k}],_.series=x}S?s.value=WH(S,C.columns):s.value=WH(_,C.columns)},p=(g,y)=>{if(g.groupField){const C=g.groupField,b=g.xAxisField,w=g.columns&&g.columns[0].field,S=y,x=[...new Set(S.map(E=>E[C]))],k=[];x.forEach((E,A)=>{S.filter(B=>B[C]===E).forEach(B=>{const N=k.find(M=>M[b]===B[b]);if(N)N[`${C}${A+1}`]=E,N[`${w}${A+1}`]=B[w];else{const M={[b]:B[b],[`${C}${A+1}`]:E,[`${w}${A+1}`]:B[w]};for(let O=0;O<x.length;O++)O!==A&&(M[`${C}${O+1}`]="",M[`${w}${O+1}`]=0);k.push(M)}})});const _=[];return x.forEach((E,A)=>{g.columns.forEach((D,B)=>{_.push({title:E,field:`${D.field}${A+1}`,unit:D.unit})})}),{newDbO:{xAxisField:g.xAxisField,groupField:g.groupField,columns:_,data:k},newData:k}}else return{newDbO:g,newData:y}},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await f(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();f(b)})}else if(Vn(g))await f(g.sourceData),i.value=g.onDataUpdate(()=>{f(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);f(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,lineRef:u,getData(){return c},getIsFinish(){return d.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-line",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[a.createVNode(C,a.mergeProps({options:s.value},g.$attrs,{ref_key:"lineRef",ref:u,isEmpty:l.value,description:e.description,onClick:v}),null,16,["options","isEmpty","description"])],32)}}}),vtt=ar(htt,[["__scopeId","data-v-c412fb9d"]]),jne=Dt(vtt),ny=It(),hf=document.documentElement,mtt=e=>e||"-",gtt=e=>e||"",ytt=(e,t)=>{let n=[];for(let r=0;r<=e;r++)n.push({barWidth:ny.chartOption.barWidth});return{backgroundColor:ny.chartOption.backgroundColor,grid:{...ny.chartOption.grid,top:"10%",left:"3%",right:"3%",bottom:"12%",containLabel:!0},tooltip:{show:!0,trigger:"axis",formatter:function(r){var s;for(var o=r[0].name,i=0,l=r.length;i<l;i++){let u="";r[i].seriesType==="line"?u=`<span style="display:inline-block;margin-right:4px;width:10px;height:10px;border:2px solid ${r[i].color};border-radius:50%;"></span>`:u=`<span style="display:inline-block;margin-right:4px;border-radius:0;width:10px;height:10px;background-color:${r[i].color};"></span>`,o+="<br/>"+u+r[i].seriesName+" : "+mtt(r[i].value)+" "+gtt((s=t[i])==null?void 0:s.unit)}return o}},legend:{trigger:"item",orient:"horizontal",show:!1,top:"bottom",itemWidth:10,itemHeight:10,borderRadius:0,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(hf).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:[{type:"category",axisPointer:{type:"shadow"},axisLabel:{fontSize:ny.chartOption.fontSize,padding:ny.chartOption.padding,color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}}],yAxis:[{splitLine:{lineStyle:{type:"dashed"}},axisLabel:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}},{splitLine:{lineStyle:{type:"dashed"}},axisLabel:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}}],series:n}},GH=(e,t,n)=>{const r=a.ref({});return r.value=In({},ytt(t,n),e),{...a.toRefs(r.value)}},btt=a.defineComponent({name:"GBarLine"}),Ctt=a.defineComponent({...btt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=n;It();const i=a.ref(null),l=e,s=a.ref(),u=a.ref(null);let c=a.ref(0);a.ref({});const d=a.ref(!1);let f=a.ref(0);const p=async y=>{if(f.value=0,Ir(y)){d.value=!0;return}else d.value=!1;let C=a.ref([]),b=Kl(l.options),w={xAxis:[],yAxis:[],series:[]},S=[],x=[],k=[];const _=_d(l.dbOptions.xAxisField);if(C.value=y,C.value&&l.dbOptions){let T=[];if(l.dbOptions.yAxis&&l.dbOptions.yAxis.yAxisFields){let A=[...l.dbOptions.yAxis.yAxisFields];T=l.dbOptions.columns.map(D=>{const B=A.findIndex(N=>N.field===D.field);if(B!==-1){const N=A[B];return A.splice(B,1),{...D,...N}}return D}).concat(l.dbOptions.yAxis.yAxisFields.filter(D=>!l.dbOptions.columns.some(B=>B.field===D.field)))}else T=l.dbOptions.columns;let E=[];if(T.map(A=>{let D={name:A.title,type:A.type,yAxisIndex:A.yAxisIndex,stack:A.stack,data:[]};A.itemStyle&&(A.type==="bar"?D.itemStyle=In({},D.itemStyle,{color:A.itemStyle.color}):(D.itemStyle=In({},D.itemStyle,A.itemStyle),A.itemStyle.color&&(D.itemStyle=In({},D.itemStyle,{color:A.itemStyle.color})))),C.value.map(B=>{D.name=B[A.title]||A.title,D.data.push(B[A.field])}),S.push(D),A.type=="bar"&&E.push(A)}),E.length>0&&(f.value=E.length),C.value.map(A=>{x.push(_=="function"?l.dbOptions.xAxisField(A):A[l.dbOptions.xAxisField])}),b){if(b.xAxis?b.xAxis[0].data=x:b.xAxis=[{data:x}],b.yAxis?b.yAxis=In({},b.yAxis,k):b.yAxis=k,b.series){const A=Kl(l.options.series||[]),D=S.map((B,N)=>{const M=A[N]||{};return In({},M,B)});b.series=D}else b.series=S;if(l.dbOptions&&l.dbOptions.yAxis&&l.dbOptions.yAxis.yAxises){let A=[];l.dbOptions.yAxis.yAxises.map(D=>{let B={name:D.name,type:"value",position:D.position,alignTicks:D.alignTicks,offset:D.offset};A.push(B)}),b.yAxis=In({},b.yAxis,A)}}else w.xAxis=[{data:x}],w.yAxis=k,w.series=S}b?(h(b),s.value=GH(b,f.value,l.dbOptions.columns)):(h(b),s.value=GH(w,f.value,l.dbOptions.columns))},h=y=>{let C=[],b=[];return y.series.length>0&&y.series.map((w,S)=>{w.type=="bar"&&C.push(w),w.type=="line"&&b.push(w)}),y.series.length>0&&y.series.map((w,S)=>{C.length>0&&C.map((x,k)=>{var _;w.name==x.name&&((_=w.itemStyle)!=null&&_.color||(w.itemStyle=In({},w.itemStyle,{color:JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors"))[k]})))}),b.length>0&&b.map((x,k)=>{var _;w.name==x.name&&((_=w.itemStyle)!=null&&_.color||(w.itemStyle=In({},w.itemStyle,{color:JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors-2"))[k]})))})}),y},v=async y=>{var C;if(Un(y)){await y.loadData();let b=y.mergeData();await p(b),u.value=y.onDataUpdate(()=>{const w=y.mergeData();p(w)})}else if(Vn(y))await p(y.sourceData),u.value=y.onDataUpdate(()=>{p(y.sourceData)});else{const b=(C=l.dbOptions)==null?void 0:C.dataField;let w=await Xn(y,b);p(w);return}};a.onMounted(()=>{v(l.dbOptions.data)}),a.onUnmounted(()=>{u.value&&(u.value(),u.value=null)}),t({props:l,barLineRef:i});const m=y=>{o("chart-click",y)},g=qn(l.dbOptions);return(y,C)=>{const b=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar-line",onContextmenu:C[0]||(C[0]=(...w)=>a.unref(g)&&a.unref(g)(...w))},[(a.openBlock(),a.createBlock(b,a.mergeProps({options:s.value},y.$attrs,{ref_key:"barLineRef",ref:i,isEmpty:d.value,description:e.description,onClick:m,key:a.unref(c)}),null,16,["options","isEmpty","description"]))],32)}}}),wtt=ar(Ctt,[["__scopeId","data-v-07ef2d93"]]),Kne=Dt(wtt),ry=It(),vf=document.documentElement,Stt=e=>e||"-",xtt=e=>e||"",ktt=e=>e||"",Ett=(e,t,n)=>{let r=[];return e=="pie"?r=[{type:"pie",radius:["0","80%"],avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]:e=="ring"?r=[{type:"pie",radius:["45%","80%"],avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]:e=="rose"&&(r=[{type:"pie",radius:["45%","80%"],roseType:"area",avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]),{backgroundColor:ry.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(o){var i=xtt(t);return i+=i?"<br/>":`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${o.color};"></span>`+o.name+" : "+Stt(o.value)+" "+ktt(n),i}},legend:{trigger:"item",show:!1,orient:"vertical",left:"left",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(vf).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...ry.chartOption.grid,top:"25%",containLabel:!0},series:r}},UH=(e,t,n,r)=>{const o=a.ref({});return o.value=In({},Ett(t,n,r),e),{...a.toRefs(o.value)}},_tt=a.defineComponent({name:"GPie"}),Ttt=a.defineComponent({..._tt,props:{description:{type:String,default:"暂无数据"},type:{type:String,default:"pie"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(),u=a.ref(null);a.ref({});const c=a.ref(!1);let d=null,f=a.ref(!1);const p=async g=>{if(Ir(g)){c.value=!0;return}else c.value=!1;const y=_d(o.dbOptions.axisField);f.value=!1;let C=a.ref([]),b=[],w={};d=g,C.value=g,f.value=!0,C.value&&o.dbOptions&&(C.value.map(x=>{let k={name:y=="function"?o.dbOptions.axisField(x):x[o.dbOptions.axisField],value:x[o.dbOptions.dataField],data:x};b.push(k)}),o.options?o.options.series?o.options.series[0].data=b:o.options.series=[{data:b}]:w.series[0].data=b);const S=o.dbOptions.columns.find(x=>x.field===o.dbOptions.dataField);o.options?s.value=UH(o.options,o.type,S.title,S==null?void 0:S.unit):s.value=UH(w,o.type,S.title,S==null?void 0:S.unit)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),i.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,pieRef:u,getData(){return d},getIsFinish(){return f.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-pie",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:s.value},g.$attrs,{ref_key:"pieRef",ref:u,isEmpty:c.value,description:e.description,onClick:v,key:a.unref(l)}),null,16,["options","isEmpty","description"]))],32)}}}),Att=ar(Ttt,[["__scopeId","data-v-ce3a31b4"]]),Xne=Dt(Att),p2=It(),YH=document.documentElement,Dtt=e=>e||"-",Mtt=e=>e||"",Ntt=e=>e||"",Btt=e=>({backgroundColor:p2.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(YH).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(t){var n=`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t.color};"></span>`+Mtt(t.name);return e.map(r=>{var l;if(r.name==t.name)for(var o=0,i=r.values.length;o<i;o++)n+="<br/>"+r.values[o].name+" : "+Dtt(r.values[o].value)+" "+Ntt((l=r.values[o])==null?void 0:l.unit)}),n}},legend:{trigger:"item",left:"center",top:"bottom",bottom:10,show:!1,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(YH).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...p2.chartOption.grid,bottom:"50%",containLabel:!0},radar:{center:["50%","50%"],radius:100,indicator:[]},series:[{type:"radar",symbolSize:p2.chartOption.symbolSize,data:[]}]}),jH=(e,t)=>{const n=a.ref({});return n.value=In({},Btt(t),e),{...a.toRefs(n.value)}},Ott=a.defineComponent({name:"GRadar"}),Itt=a.defineComponent({...Ott,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(!1),s=a.ref();let u=a.ref(0),c=a.ref([]);const d=a.ref(null);a.ref({});let f=[],p=[],h=[],v=[],m=[],g={radar:{indicator:[]},series:[{}]};const y=()=>{c.value=[],p=[],h=[],v=[],f=[],m=[],g={radar:{indicator:[]},series:[{}]}},C=async x=>{if(Ir(x)){l.value=!0;return}else l.value=!1;y();const k=_d(o.dbOptions.indivedualField);c.value=x,c.value&&o.dbOptions&&(o.dbOptions.dataField&&o.dbOptions.dataField.length>0?o.dbOptions.columns.map(_=>{o.dbOptions.dataField.map(T=>{T.field==_.field&&m.push(_)})}):m=o.dbOptions.columns,m.map(_=>{f.push(_.field);let T={name:_.title,value:[]},E={name:_.title,values:[]};c.value.map(A=>{T.value.push(A[_.field]),E.values.push({name:k=="function"?o.dbOptions.indivedualField(A):A[o.dbOptions.indivedualField],value:A[_.field],unit:_.unit})}),p.push(T),v.push(E)}),c.value.map(_=>{let T={name:k=="function"?o.dbOptions.indivedualField(_):_[o.dbOptions.indivedualField],min:0},E=[];f.map(A=>{E.push(_[A])}),h.push(T)}),o.options?(o.options.radar?o.options.radar.indicator||(o.options.radar.indicator=h):o.options.radar={indicator:h},o.options.series?o.options.series[0].data=In({},o.options.series[0].data,p):o.options.series=[{data:p}]):(g.radar.indicator=h,g.series[0].data=p)),o.options?s.value=jH(o.options,v):s.value=jH(g,v)},b=async x=>{var k;if(Un(x)){await x.loadData();let _=x.mergeData();await C(_),i.value=x.onDataUpdate(()=>{const T=x.mergeData();C(T)})}else if(Vn(x))await C(x.sourceData),i.value=x.onDataUpdate(()=>{C(x.sourceData)});else{const _=(k=o.dbOptions)==null?void 0:k.dataField;let T=await Xn(x,_);C(T);return}};a.onMounted(()=>{b(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const w=qn(o.dbOptions);t({props:o,radarRef:d});const S=x=>{r("chart-click",x)};return(x,k)=>{const _=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-radar",onContextmenu:k[0]||(k[0]=(...T)=>a.unref(w)&&a.unref(w)(...T))},[(a.openBlock(),a.createBlock(_,a.mergeProps({options:s.value},x.$attrs,{ref_key:"radarRef",ref:d,isEmpty:l.value,description:e.description,onClick:S,key:a.unref(u)}),null,16,["options","isEmpty","description"]))],32)}}}),Rtt=ar(Itt,[["__scopeId","data-v-9f356e0e"]]),qne=Dt(Rtt),h2=It(),mf=document.documentElement,Ltt=e=>e||"-",Ptt=e=>e||"",Vtt=e=>e||"",Ftt=(e,t,n,r)=>({backgroundColor:h2.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(mf).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(o){var i=Ptt(e);return i+=i?"<br/>":`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${o.color};"></span>`+(n==="transfer"?o.data.orgName:o.name)+" : "+Ltt(o.value)+" "+Vtt(t),i}},legend:{trigger:"item",orient:"vertical",left:"left",show:!1,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(mf).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:{show:!1,type:"value"},yAxis:{show:!1,type:"value"},series:[{type:"funnel",sort:"descending",left:n==="transfer"?(100-parseFloat(r))/2+"%":"20%",top:10,bottom:10,width:n==="transfer"?r:"50%",...n==="transfer"?{minSize:"46%",itemStyle:{height:118}}:{},gap:0,label:{show:!0,position:"inside",color:n==="transfer"?getComputedStyle(mf).getPropertyValue("--ui-base-white"):getComputedStyle(mf).getPropertyValue("--el-text-color-primary"),fontSize:n==="transfer"?24:h2.chartOption.fontSize,formatter:function(o){return n==="transfer"?o.data.orgName+" {value|"+o.data.value+"}":o.name},rich:{value:{fontSize:26,fontWeight:500}}},labelLine:{length:10,lineStyle:{width:1,type:"solid",color:getComputedStyle(mf).getPropertyValue("--el-text-color-primary")}},itemStyle:{borderWidth:0},emphasis:{label:{fontSize:n==="transfer"?24:h2.chartOption.fontSize,color:n==="transfer"?getComputedStyle(mf).getPropertyValue("--ui-base-white"):getComputedStyle(mf).getPropertyValue("--el-text-color-primary")}}}]}),KH=(e,t,n,r,o)=>{const i=a.ref({});return i.value=In({},Ftt(t,n,r,o),e),{...a.toRefs(i.value)}},ztt={class:"bracket-text"},$tt={class:"title"},Htt={class:"value"},Wtt=a.defineComponent({name:"GFunnel"}),Gtt=a.defineComponent({...Wtt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}},chartType:{type:String,default:"normal"},transOptions:{type:Array,default:()=>[]}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(),s=a.ref(!1),u=It();let c=a.ref(u.name),d=a.ref("45%"),f=a.ref(10),p=a.ref(0),h=a.ref([]),v=o.options;const m=a.ref(null);let g=[],y={series:[{}]};a.ref({});const C=()=>{g=[]},b=async k=>{if(C(),Ir(k)){s.value=!0;return}else s.value=!1;const _=_d(o.dbOptions.axisField);h.value=k,h.value&&o.dbOptions&&(h.value.map(E=>{let A={name:_=="function"?o.dbOptions.axisField(E):E[o.dbOptions.axisField],value:E[o.dbOptions.dataField]};o.chartType==="transfer"&&(A.orgName=A.name,A.name=A.name+" "+A.value),g.push(A)}),v?v.series?v.series.length>1?v.series.map(E=>{E.type=="funnel"&&(E.data=g)}):v.series[0].data=g:v.series=[{data:g}]:y.series[0].data=g);const T=o.dbOptions.columns.find(E=>E.field===o.dbOptions.dataField);if(v){if(o.chartType==="transfer"&&v.series&&v.series.length){let E=v.series[0];d.value=E.width?E.width:"45%",f.value=E.top?E.top:10}l.value=KH(v,T.title,T==null?void 0:T.unit,o.chartType,d.value)}else l.value=KH(y,T.title,T==null?void 0:T.unit,o.chartType,d.value)},w=async k=>{var _;if(Un(k)){await k.loadData();let T=k.mergeData();await b(T),i.value=k.onDataUpdate(()=>{const E=k.mergeData();b(E)})}else if(Vn(k))await b(k.sourceData),i.value=k.onDataUpdate(()=>{b(k.sourceData)});else{const T=(_=o.dbOptions)==null?void 0:_.dataField;let E=await Xn(k,T);b(E);return}};a.onMounted(()=>{w(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const S=qn(o.dbOptions);t({props:o,funnelRef:m});const x=k=>{r("chart-click",k)};return(k,_)=>{const T=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["g-funnel",a.unref(c)==="black-gold"?"funnel-theme-black-gold":""]),onContextmenu:_[0]||(_[0]=(...E)=>a.unref(S)&&a.unref(S)(...E))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.transOptions,(E,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(["bracket",[E.position==="left"?"left-bracket":"right-bracket"]]),style:a.normalizeStyle({height:(E.endIndex-E.startIndex)*118+"px",top:E.startIndex*118+(118/2+a.unref(f))+"px",[E.position==="left"?"left":"right"]:(100-parseFloat(a.unref(d)))/2-2.5+"%"})},[a.createElementVNode("div",ztt,[a.createElementVNode("div",$tt,a.toDisplayString(E.title),1),a.createElementVNode("div",Htt,a.toDisplayString(E.value),1)])],6))),128)),(a.openBlock(),a.createBlock(T,a.mergeProps({options:l.value},k.$attrs,{ref_key:"funnelRef",ref:m,isEmpty:s.value,description:e.description,onClick:x,key:a.unref(p)}),null,16,["options","isEmpty","description"]))],34)}}}),Utt=ar(Gtt,[["__scopeId","data-v-2dcc04ff"]]),Zne=Dt(Utt),Ytt=It(),v2=document.documentElement,jtt=e=>e||"",Ktt=(e,t)=>({backgroundColor:Ytt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(v2).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:0,max:100,center:["50%","60%"],title:{offsetCenter:[0,"-110%"]},detail:{offsetCenter:[0,"25%"]},splitNumber:2,progress:{show:!0},pointer:{show:!0,length:"75%",width:4},data:[{value:100,name:"SCORE",detail:{show:!0,color:getComputedStyle(v2).getPropertyValue("--el-text-color-primary"),formatter:function(n){return n+jtt(t)}},title:{show:!0,color:getComputedStyle(v2).getPropertyValue("--el-text-color-regular")}}]}]}),XH=(e,t,n)=>{const r=a.ref({});return r.value=In({},Ktt(t,n),e),{...a.toRefs(r.value)}},Xtt=a.defineComponent({name:"GGauge"}),qtt=a.defineComponent({...Xtt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(),s=a.ref(!1);let u=a.ref(0),c=a.ref([]),d=o.options;const f=a.ref(null);let p=[],h={series:[{}]};a.ref({});const v=()=>{p=[]},m=async b=>{if(v(),Ir(b)){s.value=!0;return}else s.value=!1;const w=_d(o.dbOptions.axisField);c.value=b,c.value&&o.dbOptions&&(c.value.map(x=>{let k={name:w=="function"?o.dbOptions.axisField(x):x[o.dbOptions.axisField],value:x[o.dbOptions.dataField]};p.push(k)}),d?d.series?d.series[0].data?d.series[0].data=In({},o.options.series[0].data,p):d.series[0].data=p:d.series=[{data:p}]:h.series[0].data=p);const S=o.dbOptions.columns.find(x=>x.field===o.dbOptions.dataField);d?l.value=XH(d,S.title,S==null?void 0:S.unit):l.value=XH(h,S.title,S==null?void 0:S.unit)},g=async b=>{var w;if(Un(b)){await b.loadData();let S=b.mergeData();await m(S),i.value=b.onDataUpdate(()=>{const x=b.mergeData();m(x)})}else if(Vn(b))await m(b.sourceData),i.value=b.onDataUpdate(()=>{m(b.sourceData)});else{const S=(w=o.dbOptions)==null?void 0:w.dataField;let x=await Xn(b,S);m(x);return}};a.watch(()=>{var w;const b=(w=o.dbOptions)==null?void 0:w.data;return a.isRef(b)?b.value:b},async(b,w)=>{!b||b===w||(i.value&&(i.value(),i.value=null),await g(b))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,gaugeRef:f});const y=b=>{r("chart-click",b)},C=qn(o.dbOptions);return(b,w)=>{const S=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-gauge",onContextmenu:w[0]||(w[0]=(...x)=>a.unref(C)&&a.unref(C)(...x))},[(a.openBlock(),a.createBlock(S,a.mergeProps({options:l.value},b.$attrs,{ref_key:"gaugeRef",ref:f,isEmpty:s.value,description:e.description,onClick:y,key:a.unref(u)}),null,16,["options","isEmpty","description"]))],32)}}}),Ztt=ar(qtt,[["__scopeId","data-v-9ccf0e1d"]]),Qne=Dt(Ztt),Qtt=It(),Jtt=e=>({backgroundColor:Qtt.chartOption.backgroundColor,title:{},tooltip:{trigger:"item"},visualMap:{show:!1,realtime:!1,calculable:!0},series:[{type:"map",map:e,label:{show:!0},data:[],nameMap:{}}]}),ent=(e,t)=>{const n=a.ref({});return n.value=In({},Jtt(t),e),{...a.toRefs(n.value)}},tnt=a.defineComponent({name:"GMap"}),nnt=a.defineComponent({...tnt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);let d=a.ref([]),f=o.options;a.ref({});const p=async g=>{if(Ir(g)){s.value=!0;return}else s.value=!1;if(d.value=g,d.value&&o.dbOptions){let y=[];d.value.map(C=>{let b={name:C[o.dbOptions.mapField],value:C[o.dbOptions.dataField]};y.push(b)}),d.value=y,f.series[0].data=y}u.value=ent(f,o.dbOptions.mapName)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),i.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,mapRef:c});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-map",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:u.value,mapName:e.dbOptions.mapName,mapJson:e.dbOptions.mapJson},g.$attrs,{ref_key:"mapRef",ref:c,isEmpty:s.value,description:e.description,onClick:v,key:a.unref(l)}),null,16,["options","mapName","mapJson","isEmpty","description"]))],32)}}}),rnt=ar(nnt,[["__scopeId","data-v-5a10f8bc"]]),Jne=Dt(rnt);var ere={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(su,function(){function n(f){var p=[];return f.AMapUI&&p.push(r(f.AMapUI)),f.Loca&&p.push(o(f.Loca)),Promise.all(p)}function r(f){return new Promise(function(p,h){var v=[];if(f.plugins)for(var m=0;m<f.plugins.length;m+=1)l.AMapUI.plugins.indexOf(f.plugins[m])==-1&&v.push(f.plugins[m]);if(s.AMapUI===i.failed)h("前次请求 AMapUI 失败");else if(s.AMapUI===i.notload){s.AMapUI=i.loading,l.AMapUI.version=f.version||l.AMapUI.version,m=l.AMapUI.version;var g=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+m+"/main.js",y.onerror=function(C){s.AMapUI=i.failed,h("请求 AMapUI 失败")},y.onload=function(){if(s.AMapUI=i.loaded,v.length)window.AMapUI.loadUI(v,function(){for(var C=0,b=v.length;C<b;C++){var w=v[C].split("/").slice(-1)[0];window.AMapUI[w]=arguments[C]}for(p();u.AMapUI.length;)u.AMapUI.splice(0,1)[0]()});else for(p();u.AMapUI.length;)u.AMapUI.splice(0,1)[0]()},g.appendChild(y)}else s.AMapUI===i.loaded?f.version&&f.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):v.length?window.AMapUI.loadUI(v,function(){for(var C=0,b=v.length;C<b;C++){var w=v[C].split("/").slice(-1)[0];window.AMapUI[w]=arguments[C]}p()}):p():f.version&&f.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):u.AMapUI.push(function(C){C?h(C):v.length?window.AMapUI.loadUI(v,function(){for(var b=0,w=v.length;b<w;b++){var S=v[b].split("/").slice(-1)[0];window.AMapUI[S]=arguments[b]}p()}):p()})})}function o(f){return new Promise(function(p,h){if(s.Loca===i.failed)h("前次请求 Loca 失败");else if(s.Loca===i.notload){s.Loca=i.loading,l.Loca.version=f.version||l.Loca.version;var v=l.Loca.version,m=l.AMap.version.startsWith("2"),g=v.startsWith("2");if(m&&!g||!m&&g)h("JSAPI 与 Loca 版本不对应!!");else{m=l.key,g=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+v+"&key="+m,y.onerror=function(C){s.Loca=i.failed,h("请求 AMapUI 失败")},y.onload=function(){for(s.Loca=i.loaded,p();u.Loca.length;)u.Loca.splice(0,1)[0]()},g.appendChild(y)}}else s.Loca===i.loaded?f.version&&f.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):p():f.version&&f.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):u.Loca.push(function(C){C?h(C):h()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var i;(function(f){f.notload="notload",f.loading="loading",f.loaded="loaded",f.failed="failed"})(i||(i={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:i.notload,AMapUI:i.notload,Loca:i.notload},u={AMap:[],AMapUI:[],Loca:[]},c=[],d=function(f){typeof f=="function"&&(s.AMap===i.loaded?f(window.AMap):c.push(f))};return{load:function(f){return new Promise(function(p,h){if(s.AMap==i.failed)h("");else if(s.AMap==i.notload){var v=f.key,m=f.version,g=f.plugins;v?(window.AMap&&location.host!=="lbs.amap.com"&&h("禁止多种API加载方式混用"),l.key=v,l.AMap.version=m||l.AMap.version,l.AMap.plugins=g||l.AMap.plugins,s.AMap=i.loading,m=document.body||document.head,window.___onAPILoaded=function(C){if(delete window.___onAPILoaded,C)s.AMap=i.failed,h(C);else for(s.AMap=i.loaded,n(f).then(function(){p(window.AMap)}).catch(h);c.length;)c.splice(0,1)[0]()},g=document.createElement("script"),g.type="text/javascript",g.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+v+"&plugin="+l.AMap.plugins.join(","),g.onerror=function(C){s.AMap=i.failed,h(C)},m.appendChild(g)):h("请填写key")}else if(s.AMap==i.loaded)if(f.key&&f.key!==l.key)h("多个不一致的 key");else if(f.version&&f.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{if(v=[],f.plugins)for(m=0;m<f.plugins.length;m+=1)l.AMap.plugins.indexOf(f.plugins[m])==-1&&v.push(f.plugins[m]);v.length?window.AMap.plugin(v,function(){n(f).then(function(){p(window.AMap)}).catch(h)}):n(f).then(function(){p(window.AMap)}).catch(h)}else if(f.key&&f.key!==l.key)h("多个不一致的 key");else if(f.version&&f.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{var y=[];if(f.plugins)for(m=0;m<f.plugins.length;m+=1)l.AMap.plugins.indexOf(f.plugins[m])==-1&&y.push(f.plugins[m]);d(function(){y.length?window.AMap.plugin(y,function(){n(f).then(function(){p(window.AMap)}).catch(h)}):n(f).then(function(){p(window.AMap)}).catch(h)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:i.notload,AMapUI:i.notload,Loca:i.notload},u={AMap:[],AMapUI:[],Loca:[]}}}})})(ere);var ant=ere.exports;const ont=ls(ant),int=["id"],lnt=a.defineComponent({__name:"index",props:{ak:{type:String,require:"3689f77102aa4eb0324f229eb1101eda"},zoom:{type:Number,default:15},radius:{type:Number,default:50},opacity:{type:Number||String,default:.8},module:{type:String,default:"heatmap"},gradient:{type:Object,default:void 0},height:{type:String,default:"100%"},infoWindowOffset:{type:Array,default:()=>[0,-30]},dbOptions:{type:Object,default:()=>({}),require:!0}},emits:["click-marker","hover-marker","onLoad"],setup(e,{expose:t,emit:n}){a.useCssVars(S=>({"9733ef5e":f.value}));const r=It();let o=null,i=null;const l=e,s=a.ref(null),u=a.ref(null),c=a.ref(0),d={};a.ref({});const f=a.computed(()=>r.aMapScatterColor),p=n,h=()=>{ont.load({key:l.ak,version:"2.0",plugins:l.module=="heatmap"?["AMap.HeatMap"]:[]}).then(S=>{if(o=new S.Map("container-"+l.module,{viewMode:"2D",zoom:l.zoom,center:[l.dbOptions.center.lng,l.dbOptions.center.lat],mapStyle:r.aMapStyle}),l.module=="heatmap"){var x=new S.HeatMap(o,{radius:l.radius,opacity:[0,l.opacity],gradient:l.gradient});x.setDataSet({data:u.value})}else l.module=="scatter"&&u.value.length>0&&u.value.map(k=>{const _=new S.LngLat(k.lng,k.lat),T=new S.Marker({position:_,content:'<p class="point-p"></p>',offset:new S.Pixel(-4,-4),extData:k});T.on("click",()=>p("click-marker",T.getExtData())),T.on("mouseover",()=>p("hover-marker",T.getExtData())),o.add(T)});o.on("click",k=>{var _;((_=k.target)==null?void 0:_.className)==="AMap.Map"&&y()}),p("onLoad",o,S)}).catch(S=>{})},v=async S=>{l.dbOptions.columns.forEach(x=>{x.field==l.dbOptions.fieldsMap.lng&&(d.lng=x.field),x.field==l.dbOptions.fieldsMap.lat&&(d.lat=x.field),x.field==l.dbOptions.fieldsMap.count&&(d.count=x.field),x.field==l.dbOptions.fieldsMap.info&&(d.info=x.field)}),u.value=C(S),c.value=u.value[0].count||0},m=S=>{const[x,k]=l.infoWindowOffset;return i=new AMap.InfoWindow({offset:new AMap.Pixel(x,k),...S}),i},g=(S,x,k)=>{i||m(k),i.setContent(S),i.open(o,x)},y=()=>{i==null||i.close()};t({createInfoWindow:m,openInfoWindow:g,closeInfoWindow:y,getInfoWindow:()=>i});const C=S=>{let x=[];return S.map((k,_)=>{x[_]={lng:k[d==null?void 0:d.lng],lat:k[d==null?void 0:d.lat],count:k[d==null?void 0:d.count],info:k[d==null?void 0:d.info]}}),x.sort(function(k,_){return _.count-k.count}),x},b=async S=>{if(Un(S)){await S.loadData();let x=S.mergeData();await v(x),s.value=S.onDataUpdate(()=>{const k=S.mergeData();v(k)})}else if(Vn(S))await v(S.sourceData),s.value=S.onDataUpdate(()=>{v(S.sourceData)});else{let x=await Xn(S);v(x);return}};a.onMounted(()=>{h(),b(l.dbOptions.data)}),a.onUnmounted(()=>{s.value&&(s.value(),s.value=null)});const w=qn(l.dbOptions);return(S,x)=>(a.openBlock(),a.createElementBlock("div",{id:"container-"+l.module,style:a.normalizeStyle({height:l.height}),onContextmenu:x[0]||(x[0]=(...k)=>a.unref(w)&&a.unref(w)(...k))},null,44,int))}}),tre=Dt(lnt),n1=It(),ay=document.documentElement,snt=()=>({backgroundColor:n1.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",borderWidth:0},legend:{trigger:"item",left:"center",top:"bottom",show:!0,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(ay).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...n1.chartOption.grid,containLabel:!0},xAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary"),width:1}},axisLabel:{fontSize:n1.chartOption.fontSize,color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary"),width:1}},axisLabel:{fontSize:n1.chartOption.fontSize,color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary")}}],series:[]}),unt=(e,t)=>{const n=a.ref({});return n.value=In({},snt(),e),{...a.toRefs(n.value)}},cnt=a.defineComponent({name:"GScatter"}),dnt=a.defineComponent({...cnt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}},size:{type:[String,Number],default:14},color:{type:String,default:void 0},quadrantPointColor:{type:Boolean,default:!1}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);a.ref({});let d=null,f=a.ref(!1);function p(y,C){return typeof C=="function"?C(y):y==null?void 0:y[C]}function h(y,C){return y==null?void 0:y.find(b=>typeof b.field=="string"&&b.field===C)}const v=async y=>{var F,G,$,W;if(Ir(y)){s.value=!0;return}else s.value=!1;const{xAxisField:C,yAxisField:b,columns:w=[],labelField:S}=o.dbOptions||{},x=h(w,C),k=h(w,b);if(!x||!k){s.value=!0;return}f.value=!1,d=y;const _=getComputedStyle(r).getPropertyValue("--ui-chart-colors")||"[]";let T=[];try{T=JSON.parse(_)}catch{}const E=[T[0],T[1],T[2],T[3]],A=!!o.quadrantPointColor,D=((G=(F=o.options)==null?void 0:F.quadrant)==null?void 0:G.x)??0,B=((W=($=o.options)==null?void 0:$.quadrant)==null?void 0:W.y)??0,N=typeof D=="number"?D:parseFloat(D),M=typeof B=="number"?B:parseFloat(B),O=Number.isFinite(N)?N:0,P=Number.isFinite(M)?M:0,R=(y||[]).map(j=>{const J=p(j,C),Z=p(j,b),X=typeof J=="number"?J:parseFloat(J),ae=typeof Z=="number"?Z:parseFloat(Z),ie=S?p(j,S):"",K=o.size||14;let ne=A?void 0:o.color||void 0;if(A&&Number.isFinite(X)&&Number.isFinite(ae)){const pe=X>=O,le=ae>=P;ne=E[pe&&le?0:!pe&&le?1:!pe&&!le?2:3]||E[0]}return{value:[J,Z],name:ie,symbolSize:K,itemStyle:ne?{color:ne}:void 0}});let L=Kl(o.options)||{};const z={tooltip:{trigger:"item",formatter:j=>{const[J,Z]=j.value||[];return`${j.name}<br/>${x.title}:${J}${x.unit||""}<br/>${k.title}:${Z}${k.unit||""}`}},xAxis:[{type:"value",axisLabel:{formatter:j=>`${j}${x.unit||""}`}}],yAxis:[{type:"value",axisLabel:{formatter:j=>`${j}${k.unit||""}`}}],graphic:{elements:[{type:"text",right:"4%",bottom:"3%",silent:!0,z:100,style:{text:x.title,textAlign:"right",textVerticalAlign:"bottom",fill:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14}},{type:"text",left:0,top:"12%",rotation:Math.PI/2,silent:!0,z:100,style:{text:k.title,textAlign:"center",textVerticalAlign:"middle",fill:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14}}]},series:[{type:"scatter",data:R,label:{show:!0,formatter:j=>j.name,position:"top",color:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14},symbol:"circle",itemStyle:{borderWidth:2,borderColor:"#fff",shadowBlur:4,shadowColor:"#00000040",shadowOffsetX:0,shadowOffsetY:4,opacity:1}}]};L=In({},z,L),u.value=unt(L),f.value=!0},m=async y=>{var C;if(Un(y)){await y.loadData();let b=y.mergeData();await v(b),i.value=y.onDataUpdate(()=>{const w=y.mergeData();v(w)})}else if(Vn(y))await v(y.sourceData),i.value=y.onDataUpdate(()=>{v(y.sourceData)});else{const b=(C=o.dbOptions)==null?void 0:C.dataField;let w=await Xn(y,b);v(w);return}};a.onMounted(()=>{m(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const g=qn(o.dbOptions);return t({props:o,scatterRef:c,getData(){return d},getIsFinish(){return f.value}}),(y,C)=>{const b=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-scatter",onContextmenu:C[0]||(C[0]=(...w)=>a.unref(g)&&a.unref(g)(...w))},[(a.openBlock(),a.createBlock(b,a.mergeProps({ref_key:"scatterRef",ref:c,options:u.value},y.$attrs,{isEmpty:s.value,description:e.description,key:a.unref(l)}),null,16,["options","isEmpty","description"]))],32)}}}),fnt=ar(dnt,[["__scopeId","data-v-fbf81f36"]]),nre=Dt(fnt),pnt={class:"top"},hnt={key:0},vnt={key:0,class:"g-target-tooltip"},mnt={key:1},gnt={key:0,class:"g-target-tooltip"},ynt={class:"bottom"},bnt={class:"field"},Cnt={key:0,class:"unit"},wnt={class:"top"},Snt={class:"field_box"},xnt={class:"field"},knt={key:0,class:"unit"},Ent={class:"bottom"},_nt={key:0},Tnt={key:0,class:"g-target-tooltip"},Ant={key:1,class:"tooltip-target"},Dnt={key:0,class:"g-target-tooltip"},Mnt={class:"left_box"},Nnt={key:0},Bnt={key:0,class:"g-target-tooltip"},Ont={key:1},Int={key:0,class:"g-target-tooltip"},Rnt={class:"right_box"},Lnt={class:"field"},Pnt={class:"unit"},Vnt=a.defineComponent({name:"GTargetS"}),Fnt=a.defineComponent({...Vnt,props:{type:{type:String,default:"default"},placement:{type:String,default:"bottom"},size:{type:String,default:"sm"},tooltip:{type:Array,default:null},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},dbOptions:{type:Object,default:()=>({})},tooltipPlacement:{type:String,default:"icon"}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){a.useCssVars(N=>({c3abf0b4:c.value,"01068bd8":d.value,"401812da":f.value,"1448a918":p.value,b9193242:h.value,"242203b7":y.value,"7821629e":m.value,"5b3caa9e":g.value,ebbd17c0:C.value,"2c2549ee":w.value,"2e14689f":b.value})),Kn.state;const r=It(),o=e,i=a.ref(null),l=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-top-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-top-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-top-${o.size} g-target-s-${o.type}`),s=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-bottom-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-bottom-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-bottom-${o.size} g-target-s-${o.type}`),u=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-left-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-left-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-left-${o.size} g-target-s-${o.type}`),c=a.computed(()=>o.border?"1px solid":"0"),d=a.computed(()=>o.border?"var(--border-radius-base)":""),f=a.computed(()=>o.bg?r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),p=a.computed(()=>o.bg?`var(--color-${o.type})`:""),h=a.computed(()=>o.border&&o.type!="default"?`var(--color-${o.type})`:"var(--target-font-color)"),v=a.computed(()=>{if(o.aspect)if(o.aspectPlacement=="left"){if(o.border)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0","border-left":"none","border-top":"none"};if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else{if(o.border)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"};if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),m=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type}-num-30)`:"var(--border-color-darker)"}),g=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),y=a.computed(()=>{if(!o.bg&&o.border)return o.type!="default"?`var(--color-${o.type}-num-5)`:"var(--color-primary-num-5)";if(o.bg&&!o.border)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),C=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.5)":"calc(var(--layout-padding-default) * 0.2)"),b=a.computed(()=>{if(r.name=="om-blue"&&o.size=="lg")return 18*1.42+"px";if(r.name!="om-blue"&&o.size=="lg")return"calc(var(--font-size-base) * 1.42)";if(r.name=="om-blue"&&o.size=="md")return"18px";if(r.name!="om-blue"&&o.size=="md")return"var(--font-size-base)";if(r.name=="om-blue"&&o.size=="sm")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="sm")return"calc(var(--font-size-base) * 0.85)";if(r.name=="om-blue"&&o.size=="xs")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="xs")return"calc(var(--font-size-base) * 0.85)"}),w=a.computed(()=>r.name=="om-blue"?"baseline":"flex-end");a.computed(()=>o.tooltipPlacement=="target"?"18px":"flex-end");let S=a.ref();const x=a.ref(null),k=a.ref({});a.ref({});let _=null,T=a.ref(!1);const E=async N=>{T.value=!1,A(),Array.isArray(N)?S.value=N&&N[0]&&N[0][o.dbOptions.dataField]||"":N&&typeof N=="object"?S.value=N[o.dbOptions.dataField]??"":S.value="",_=S.value,T.value=!0},A=()=>{k.value=o.dbOptions.columns&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(N=>N.field===o.dbOptions.dataField)},D=async N=>{var M;if(Un(N)){await N.loadData();let O=N.mergeData();await E(O),i.value=N.onDataUpdate(()=>{const P=N.mergeData();E(P)})}else if(Vn(N))await E(N.sourceData),i.value=N.onDataUpdate(()=>{E(N.sourceData)});else{const O=(M=o.dbOptions)==null?void 0:M.dataField;let P=await Xn(N,O);E(P);return}};a.watch(()=>{var M;const N=(M=o.dbOptions)==null?void 0:M.data;return a.isRef(N)?N.value:N},async(N,M)=>{!N||N===M||(i.value&&(i.value(),i.value=null),await D(N))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetSRef:x,getIsFinish(){return T.value},getData(){return _}});const B=qn(o.dbOptions);return(N,M)=>{const O=a.resolveComponent("WarningFilled"),P=a.resolveComponent("el-icon"),R=a.resolveComponent("el-tooltip"),L=a.resolveComponent("ArrowRight");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.placement=="top"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-s g-target-s-top",l.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[1]||(M[1]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",pnt,[k.value&&k.value.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",hnt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",vnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[6]||(M[6]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",mnt,[o.tooltip?(a.openBlock(),a.createElementBlock("span",gnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[7]||(M[7]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)]))],4)):a.createCommentVNode("",!0),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"arrow",onClick:M[0]||(M[0]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",ynt,[a.createElementVNode("div",bnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),k.value&&k.value.unit?(a.openBlock(),a.createElementBlock("div",Cnt,a.toDisplayString(k.value.unit),1)):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0),e.placement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-s g-target-s-bottom",s.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[3]||(M[3]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",wnt,[a.createElementVNode("div",Snt,[a.createElementVNode("div",xnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),k.value&&k.value.unit?(a.openBlock(),a.createElementBlock("div",knt,a.toDisplayString(k.value.unit),1)):a.createCommentVNode("",!0)]),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:M[2]||(M[2]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",Ent,[k.value&&k.value.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",_nt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",Tnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[8]||(M[8]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Ant,[o.tooltip?(a.openBlock(),a.createElementBlock("span",Dnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[9]||(M[9]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1)]),_:1})])):a.createCommentVNode("",!0)]))],4)):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0),e.placement=="left"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-s g-target-s-left",u.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[5]||(M[5]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Mnt,[a.createElementVNode("div",{class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",Nnt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",Bnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[10]||(M[10]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Ont,[o.tooltip?(a.openBlock(),a.createElementBlock("span",Int,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[11]||(M[11]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1)]),_:1})])):a.createCommentVNode("",!0)]))],4)]),a.createElementVNode("div",Rnt,[a.createElementVNode("div",Lnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),a.createElementVNode("div",Pnt,a.toDisplayString(k.value.unit),1),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:M[4]||(M[4]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0)],64)}}}),znt=ar(Fnt,[["__scopeId","data-v-667dd957"]]),rre=Dt(znt),$nt={class:"left"},Hnt={class:"right"},Wnt={class:"right"},Gnt={class:"left"},Unt={class:"left"},Ynt={class:"right"},jnt={class:"right"},Knt={class:"left"},Xnt={class:"top"},qnt={class:"bottom"},Znt=a.defineComponent({name:"GTargetR"}),Qnt=a.defineComponent({...Znt,props:{type:{type:String,default:"primary"},targetType:{type:String,default:"default"},placement:{type:String,default:"top"},tooltip:{type:Array,default:null},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},size:{type:String,default:"sm"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},chart:{type:String,default:"ring"},color:{type:String,default:""},dbOptions:{type:Object,default:()=>({})},tooltipPlacement:{type:String,default:"icon"},ringPlacement:{type:String,default:"left"}},setup(e,{expose:t}){a.useCssVars(N=>({"8c96882a":m.value,f4e80e46:S.value,"8f81904c":g.value,93432218:w.value,"77651a54":b.value,"2e123f94":h.value,"606fe8ef":f.value,f891834e:p.value})),Kn.state;const n=It(),r=document.documentElement,o=e,i=a.ref(null),l=a.ref({data:0,kpiData:0,rate:0,title:"",unit:""}),s=a.ref(null),u=a.ref(null),c=a.computed(()=>`box-${o.type}`),d=a.computed(()=>`inbox-${o.type}`),f=a.computed(()=>Number(l.value.rate)<0||!l.value.rate?"0%":l.value.rate+"%"),p=a.computed(()=>o.color),h=a.computed(()=>o.bgColor),v=a.computed(()=>o.bg&&o.type!="default"?`g-target-r-${o.size} g-target-r-${o.type} g-target-r-bg`:`g-target-r-${o.size} g-target-r-${o.type}`),m=a.computed(()=>o.bg?n.name&&typeof n.name=="string"&&n.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),g=a.computed(()=>o.bg&&o.targetType=="default"?"var(--el-text-color-primary)":o.bg&&o.targetType!="default"?`var(--color-${o.type})`:""),y=a.computed(()=>o.bg&&o.type!="default"?`g-target-line-${o.size} g-target-line-${o.type} g-target-line-bg`:`g-target-line-${o.size} g-target-line-${o.type}`),C=a.computed(()=>{if(o.aspect){if(o.aspectPlacement=="left"){if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),b=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),w=a.computed(()=>{if(o.bg)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),S=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.75)":"calc(var(--layout-padding-default) * 0.5)"),x=a.ref(),k=(N,M)=>{const O=N.color||getComputedStyle(r).getPropertyValue(`--color-${N.type}`),P=N.type=="om"?"rgba(255, 255, 255, 0.5)":N.color?getComputedStyle(r).getPropertyValue(`--color-${N.type}-light-9`):getComputedStyle(r).getPropertyValue(`--color-${N.type}-light-5`);let R=[];N.size=="xs"?R=["23","32"]:N.size=="sm"?R=["27","37"]:N.size=="md"?R=["32","42"]:N.size=="lg"&&(R=["38","48"]),x.value={backgroundColor:n.chartOption.backgroundColor,series:{type:"pie",radius:R,center:["50%","50%"],hoverAnimation:!1,label:{normal:{position:"center"}},data:[{value:Number(M.rate)<0?0:M.rate,itemStyle:{normal:{color:O}},label:{normal:{show:!1}}},{value:100-(Number(M.rate)<0?0:M.rate),tooltip:{show:!1},itemStyle:{normal:{color:P||"rgba(255, 255, 255, 0.1)"}}}]}}};let _=a.ref(0);a.ref({});const T=N=>Math.floor(N)===N?N.toString():N.toFixed(2),E=async N=>{A(N),k(o,l.value),_.value++},A=N=>{const M=Array.isArray(N)?N&&N[0]||{}:N&&typeof N=="object"?N:{};let O=null;o.dbOptions.rateField?O=o.dbOptions.columns&&o.dbOptions.rateField&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(P=>P.field===o.dbOptions.rateField):O=o.dbOptions.columns&&o.dbOptions.dataField&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(P=>P.field===o.dbOptions.dataField),l.value.title=O.title,l.value.unit=O.unit,l.value.data=M&&M[o.dbOptions.dataField],l.value.kpiData=M&&M[o.dbOptions.kpiField],o.dbOptions.rateField?l.value.rate=M&&M[o.dbOptions.rateField]:!l.value.data||!l.value.kpiData?l.value.rate=-1:l.value.rate=T(parseFloat(l.value.data/l.value.kpiData)*100)},D=async N=>{var M;if(Un(N)){await N.loadData();let O=N.mergeData();await E(O),i.value=N.onDataUpdate(()=>{const P=N.mergeData();E(P)})}else if(Vn(N))await E(N.sourceData),i.value=N.onDataUpdate(()=>{E(N.sourceData)});else{const O=(M=o.dbOptions)==null?void 0:M.dataField;let P=await Xn(N,O);E(P);return}};a.watch(()=>{var M;const N=(M=o.dbOptions)==null?void 0:M.data;return a.isRef(N)?N.value:N},async(N,M)=>{!N||N===M||(i.value&&(i.value(),i.value=null),await D(N))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetRRef:s,targetLineRef:u});const B=qn(o.dbOptions);return(N,M)=>{const O=a.resolveComponent("g-chart"),P=a.resolveComponent("g-target-s");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.chart=="ring"&&(!o.ringPlacement||o.ringPlacement=="left")?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-r",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[0]||(M[0]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",$nt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))]),a.createElementVNode("div",Hnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="right"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-r",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[1]||(M[1]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Wnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))]),a.createElementVNode("div",Gnt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="top"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-r g-target-r-column",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[2]||(M[2]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Unt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))]),a.createElementVNode("div",Ynt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass(["g-target-r g-target-r-column",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[3]||(M[3]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",jnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))]),a.createElementVNode("div",Knt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))])],34)):a.createCommentVNode("",!0),e.chart=="line"?(a.openBlock(),a.createElementBlock("div",{key:4,class:a.normalizeClass(["g-target-line",y.value]),ref_key:"targetLineRef",ref:u,onContextmenu:M[4]||(M[4]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[a.createElementVNode("div",Xnt,[a.createElementVNode("div",{class:a.normalizeClass(["box",c.value])},[a.createElementVNode("div",{class:a.normalizeClass(["inbox",d.value]),style:a.normalizeStyle({backgroundColor:o.color})},null,6)],2)]),a.createElementVNode("div",qnt,[(a.openBlock(),a.createBlock(P,{key:a.unref(_),type:e.targetType,placement:"left",size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0)],64)}}}),Jnt=ar(Qnt,[["__scopeId","data-v-0cd5f3c3"]]),are=Dt(Jnt),ert={class:"outbox"},trt={class:"inbox"},nrt={class:"top"},rrt={key:0,class:"title"},art={class:"bottom"},ort={class:"field"},irt={key:0,class:"unit"},lrt={class:"outbox"},srt={class:"inbox"},urt={class:"top"},crt={class:"field_box"},drt={class:"field"},frt={key:0,class:"unit"},prt={class:"bottom"},hrt={key:0,class:"title"},vrt={class:"outbox"},mrt={class:"inbox"},grt={class:"left_box"},yrt={class:"title"},brt={class:"right_box"},Crt={class:"field"},wrt={class:"unit"},Srt=a.defineComponent({name:"GTargetM"}),xrt=a.defineComponent({...Srt,props:{type:{type:String,default:"default"},placement:{type:String,default:"bottom"},size:{type:String,default:"sm"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},bg:{type:Boolean,default:!1},row:{type:Number,default:3},dbOptions:{type:Object,default:()=>({})}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){a.useCssVars(E=>({"9c46ae60":d.value,ff7bb4fc:f.value,"482b9229":p.value,f8839ba4:h.value,"33f90c75":v.value,"15b10261":C.value,11460770:g.value,"41d733c7":y.value,"095d0dca":b.value}));const r=It(),o=e,i=a.ref(null),l=a.ref(null),s=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-top-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-top-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-top-${o.size} g-target-m-${o.type}`),u=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-bottom-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-bottom-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-bottom-${o.size} g-target-m-${o.type}`),c=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-right-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-right-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-right-${o.size} g-target-m-${o.type}`),d=a.computed(()=>o.border?"1px solid":"0"),f=a.computed(()=>o.border?"var(--border-radius-base)":""),p=a.computed(()=>o.bg?r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),h=a.computed(()=>o.bg?`var(--color-${o.type})`:""),v=a.computed(()=>o.border?`var(--color-${o.type})`:""),m=a.computed(()=>{if(o.aspect)if(o.aspectPlacement=="left"){if(o.border)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0","border-left":"none","border-top":"none"};if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else{if(o.boder)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"};if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),g=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type}-num-30)`:"var(--border-color-darker)"}),y=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),C=a.computed(()=>{if(!o.bg&&o.border)return o.type!="default"?`var(--color-${o.type}-num-5)`:"var(--color-primary-num-5)";if(o.bg&&!o.border)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),b=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.5)":"calc(var(--layout-padding-default) * 0.5)");a.computed(()=>{if(r.name=="om-blue"&&o.size=="lg")return 18*1.42+"px";if(r.name!="om-blue"&&o.size=="lg")return"calc(var(--font-size-base) * 1.42)";if(r.name=="om-blue"&&o.size=="md")return"18px";if(r.name!="om-blue"&&o.size=="md")return"calc(var(--font-size-base)";if(r.name=="om-blue"&&o.size=="sm")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="sm")return"calc(var(--font-size-base) * 0.85)";if(r.name=="om-blue"&&o.size=="xs")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="xs")return"calc(var(--font-size-base) * 0.85)"});let w=a.ref([]),S=a.ref([]);a.ref({});const x=(E,A)=>{const D=[];for(let B=0;B<E.length;B+=A)D.push(E.slice(B,B+A));return D},k=async E=>{if(w.value=Array.isArray(E)?E[0]||{}:E||{},o.dbOptions.columns.length>0)for(let A=0;A<o.dbOptions.columns.length;A++)S.value[A]={title:o.dbOptions.columns[A].title,field:w.value[o.dbOptions.columns[A].field],unit:o.dbOptions.columns[A].unit};S.value=x(S.value,o.row)},_=async E=>{var A;if(Un(E)){await E.loadData();let D=E.mergeData();await k(D),i.value=E.onDataUpdate(()=>{const B=E.mergeData();k(B)})}else if(Vn(E))await k(E.sourceData),i.value=E.onDataUpdate(()=>{k(E.sourceData)});else{const D=(A=o.dbOptions)==null?void 0:A.dataField;let B=await Xn(E,D);k(B);return}};a.watch(()=>{var A;const E=(A=o.dbOptions)==null?void 0:A.data;return a.isRef(E)?E.value:E},async(E,A)=>{!E||E===A||(i.value&&(i.value(),i.value=null),await _(E))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetMRef:l});const T=qn(o.dbOptions);return(E,A)=>{const D=a.resolveComponent("ArrowRight"),B=a.resolveComponent("el-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.placement=="top"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-m g-target-m-top",s.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[1]||(A[1]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),N=>(a.openBlock(),a.createElementBlock("div",ert,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,(M,O)=>(a.openBlock(),a.createElementBlock("div",trt,[a.createElementVNode("div",nrt,[M.title?(a.openBlock(),a.createElementBlock("div",rrt,a.toDisplayString(M.title),1)):a.createCommentVNode("",!0),e.arrow&&a.unref(S).length==O?(a.openBlock(),a.createElementBlock("div",{key:1,class:"arrow",onClick:A[0]||(A[0]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",art,[a.createElementVNode("div",ort,a.toDisplayString(M.field!==void 0&&M.field!==null?M.field:"--"),1),M.unit?(a.openBlock(),a.createElementBlock("div",irt,a.toDisplayString(M.unit),1)):a.createCommentVNode("",!0)])]))),256))]))),256))],34)):a.createCommentVNode("",!0),e.placement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-m g-target-m-bottom",u.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[3]||(A[3]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),N=>(a.openBlock(),a.createElementBlock("div",lrt,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,(M,O)=>(a.openBlock(),a.createElementBlock("div",srt,[a.createElementVNode("div",urt,[a.createElementVNode("div",crt,[a.createElementVNode("div",drt,a.toDisplayString(M.field!==void 0&&M.field!==null?M.field:"--"),1),M.unit?(a.openBlock(),a.createElementBlock("div",frt,a.toDisplayString(M.unit),1)):a.createCommentVNode("",!0)]),e.arrow&&a.unref(S).length==O?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:A[2]||(A[2]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",prt,[M.title?(a.openBlock(),a.createElementBlock("div",hrt,a.toDisplayString(M.title),1)):a.createCommentVNode("",!0)])]))),256))]))),256))],34)):a.createCommentVNode("",!0),e.placement=="left"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-m g-target-m-right",c.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[5]||(A[5]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),(N,M)=>(a.openBlock(),a.createElementBlock("div",vrt,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,O=>(a.openBlock(),a.createElementBlock("div",mrt,[a.createElementVNode("div",grt,[a.createElementVNode("div",yrt,a.toDisplayString(O.title),1)]),a.createElementVNode("div",brt,[a.createElementVNode("div",Crt,a.toDisplayString(O.field!==void 0&&O.field!==null?O.field:"--"),1),a.createElementVNode("div",wrt,a.toDisplayString(O.unit),1)]),e.arrow&&a.unref(S).length-2==M?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:A[4]||(A[4]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]))),256))]))),256))],34)):a.createCommentVNode("",!0)],64)}}}),ore=Dt(xrt),krt={class:"g-box-title"},Ert={class:"slotLeft"},_rt={class:"l_title"},Trt={class:"slotRight"},Art={class:"g-box-main"},Drt=["src","scrolling"],Mrt={key:1,class:"ifr-neterror"},Nrt=a.defineComponent({name:"GBox"}),Brt=a.defineComponent({...Nrt,props:{type:{type:String,default:"default"},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},tooltip:{type:Array,default:null},bg:{type:Boolean,default:!1},border:{type:Boolean,default:!1},description:{type:String,default:"iframe 连接异常"},placement:{type:String,default:"right"},title:{type:String,default:""},tag:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},fontSizeLevel:{type:Number,default:2},isGradient:{type:Boolean,default:!1},iframe:{type:String,default:""},scrolling:{type:String,default:"auto"},params:{type:Object,default:()=>{}},local:{type:Boolean,default:!1},auth:{type:String,default:""},dbOptions:{type:Object,default:()=>{}}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){var T;a.useCssVars(E=>({"4c17e2a1":d.value,"4701cdbf":g.value,c148a34a:c.value,"5ea39c92":y.value,"0e050bf2":v.value,"2c7fd559":p.value,"7d5c7496":h.value}));const r=It(),o=a.ref(null),i=a.ref(!1),l=e,s=a.computed(()=>{if(l.bg)return"g-box g-box-bg"}),u=a.computed(()=>{if(l.fontSizeLevel==1)return{height:"22.5px","margin-top":"-0.5px"};if(l.fontSizeLevel==2)return{height:"20px","margin-top":"-1px"};if(l.fontSizeLevel==3)return{height:"16px","margin-top":"-2px"}}),c=a.computed(()=>l.type!="default"?r.name.includes("black")?l.isGradient?`linear-gradient(180deg, var(--color-${l.type}-lights-1) 0%, var(--ui-bg-color) 100%)`:`var(--color-${l.type}-lights-6)`:l.isGradient?`linear-gradient(180deg, var(--color-${l.type}-lights-7) 0%, #ffffff 100%)`:`var(--color-${l.type}-lights-7)`:"var(--gui-content-fill-color-2)"),d=a.computed(()=>l.border?"1px solid":"0"),f=a.computed(()=>{if(l.tag)return l.type!="default"?`g-svg g-svg-${l.type}`:"g-svg g-svg-primary"}),p=a.computed(()=>{if(l.aspect&&l.border)return l.type!="default"?`var(--color-${l.type}-num-30)`:"var(--border-color-darker)"}),h=a.computed(()=>{if(l.aspect)return l.type!="default"?`var(--color-${l.type})`:"var(--color-primary)"}),v=a.computed(()=>{if(!l.bg&&l.border)return l.type!="default"?`var(--color-${l.type}-num-5)`:"var(--color-primary-num-5)";if(l.bg&&!l.border)return l.type!="default"?`var(--color-${l.type}-num-10)`:"var(--color-primary-num-5)"}),m=a.computed(()=>{if(l.aspect)return l.aspectPlacement=="left"?{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0"}:{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"}}),g=a.computed(()=>l.aspect?"var(--border-radius-base)":"none"),y=a.computed(()=>{if(l.fontSizeLevel==1)return"calc(var(--font-size-base) * 1.71)";if(l.fontSizeLevel==2)return"calc(var(--font-size-base) * 1.42)";if(l.fontSizeLevel==3)return"calc(var(--font-size-base) * 1.14)"}),C=()=>{i.value=!1},b=()=>{i.value=!0},w=a.ref(null),S=a.computed(()=>`${l.iframe}?params=${JSON.stringify(l.params)}&auth=${l.auth}&local=${l.local}`),x=async()=>{const E=w.value.src;w.value.src=E},k={url:l.iframe,params:l.params,auth:l.auth},_=Kn.state&&((T=Kn.state)==null?void 0:T.iframes);return l.iframe&&(l.local?_&&typeof _=="object"?_&&_.some(A=>Kr(A,k))||Kn.commit("setState",{path:"iframes",value:_fe(_,k)}):Kn.commit("setState",{path:"iframes",value:[k]}):_&&_&&_.some(A=>Kr(A,k))&&Kn.commit("setState",{path:"iframes",value:_.filter(A=>!Kr(A,k))})),t({boxRef:o,load:x}),(E,A)=>{const D=a.resolveComponent("WarningFilled"),B=a.resolveComponent("el-icon"),N=a.resolveComponent("el-tooltip"),M=a.resolveComponent("ArrowRight"),O=a.resolveComponent("el-empty");return e.title?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:["g-box",s.value]},E.$attrs,{ref_key:"boxRef",ref:o}),[a.createElementVNode("div",krt,[a.createElementVNode("div",Ert,[e.tag?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-svg",f.value]),style:a.normalizeStyle(u.value)},null,6)):a.createCommentVNode("",!0),a.createElementVNode("div",_rt,a.toDisplayString(e.title),1),a.createVNode(N,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.tooltip,P=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(P)+" ",1),A[2]||(A[2]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[l.tooltip?(a.openBlock(),a.createBlock(B,{key:0,class:"g-arrow g-arrow-tooltip"},{default:a.withCtx(()=>[a.createVNode(D,{color:"var(--ui-tooltip-color)"})]),_:1})):a.createCommentVNode("",!0)]),_:1}),e.arrow&&e.placement=="left"?(a.openBlock(),a.createBlock(B,{key:1,class:"g-arrow g-arrow-left",onClick:A[0]||(A[0]=P=>E.$emit("arrow-click",P))},{default:a.withCtx(()=>[a.createVNode(M)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.renderSlot(E.$slots,"left")])]),a.createElementVNode("div",Trt,[a.renderSlot(E.$slots,"right"),e.arrow&&e.placement=="right"?(a.openBlock(),a.createBlock(B,{key:0,class:"g-arrow",onClick:A[1]||(A[1]=P=>E.$emit("arrow-click",P))},{default:a.withCtx(()=>[a.createVNode(M)]),_:1})):a.createCommentVNode("",!0)])]),a.createElementVNode("div",Art,[a.renderSlot(E.$slots,"default")])],16)):e.iframe?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:"g-box"},E.$attrs),[i.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("iframe",{key:0,src:S.value,frameborder:"0",scrolling:e.scrolling,width:"100%",height:"100%",ref_key:"iframeRef",ref:w,onLoad:C,onError:b},null,40,Drt)),i.value?(a.openBlock(),a.createElementBlock("div",Mrt,[a.createVNode(O,a.mergeProps(E.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])])):a.createCommentVNode("",!0)],16)):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:2,class:["g-box",s.value]},E.$attrs),[l.aspect?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(l.aspect),5)):a.createCommentVNode("",!0),a.renderSlot(E.$slots,"default")],16))}}}),ire=Dt(Brt),Rh=document.documentElement,_u=It(),Ort=e=>e||"-",Irt=e=>e||"",Rrt=e=>({backgroundColor:_u.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(Rh).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"axis",formatter:function(t){var i;for(var n=t[0].name,r=0,o=t.length;r<o;r++)n+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t[r].color};"></span>`+t[r].seriesName+" : "+Ort(t[r].value)+" "+Irt((i=e[r])==null?void 0:i.unit);return n}},legend:{trigger:"item",left:"center",top:"bottom",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-4,0]}},grid:{..._u.chartOption.grid,top:"8%",containLabel:!0},xAxis:[{splitLine:{show:!0,lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLabel:{show:!0,formatter:"{value}",fontSize:_u.chartOption.fontSize,padding:_u.chartOption.padding,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"category",axisTick:{show:!1},splitLine:{show:!1,lineStyle:{type:"dashed"}},axisLabel:{show:!0,margin:_u.chartOption.margin,formatter:"{value}",fontSize:_u.chartOption.fontSize,padding:_u.chartOption.padding,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-primary")}}],series:[{barWidth:_u.chartOption.barWidth,label:{show:!0,position:"inside",color:getComputedStyle(Rh).getPropertyValue("--gui-text-color-back")}},{barWidth:_u.chartOption.barWidth,label:{show:!0,position:"inside",color:getComputedStyle(Rh).getPropertyValue("--gui-text-color-back")}}]}),qH=(e,t)=>{const n=a.ref({});return n.value=In({},Rrt(t),e),{...a.toRefs(n.value)}},Lrt=a.defineComponent({name:"GBarCompare"}),Prt=a.defineComponent({...Lrt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:()=>({direction:"vertical"})},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state,It();const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);a.ref({});const d=async v=>{if(Ir(v)){s.value=!0;return}else s.value=!1;let m=a.ref([]),g=Kl(o.options),y=[],C=[],b=[],w={series:[{}]};if(m.value=v,m.value&&o.dbOptions){let S=[];if(o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxisFields?S=o.dbOptions.columns.map(x=>{const k=o.dbOptions.yAxis.yAxisFields.find(_=>_.field===x.field);return k?{...x,...k}:x}).concat(o.dbOptions.yAxis.yAxisFields.filter(x=>!o.dbOptions.columns.some(k=>k.field===x.field))):S=o.dbOptions.columns,S.map(x=>{let k={name:"",type:"bar",yAxisIndex:x.yAxisIndex,data:[]};m.value.map(_=>{k.data.push(_[x.field]),k.name=_[x.title]||x.title,k.stack=x.stack}),y.push(k)}),m.value.map(x=>{o.dbOptions.direction=="horizontal"?b.push(x[o.dbOptions.xAxisField]):C.push(x[o.dbOptions.xAxisField])}),o.dbOptions.direction=="horizontal"?C.push({type:"value",name:""}):b.push({type:"value",name:""}),g?(o.dbOptions.direction=="horizontal"?(g.yAxis?g.yAxis[0].data=b:g.yAxis=[{data:b}],g.xAxis?g.xAxis=In({},g.yAxis,C):g.xAxis=C):(g.xAxis?g.xAxis[0].data=C:g.xAxis=[{data:C}],g.yAxis?g.yAxis=In({},g.yAxis,b):g.yAxis=b),g.series?g.series=In({},g.series,y):g.series=y):(o.dbOptions.direction=="horizontal"?(w.xAxis=C,w.yAxis=[{data:b}]):(w.xAxis=[{data:C}],w.yAxis=b),w.series=y),o.dbOptions&&o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxises){let x=[];o.dbOptions.yAxis.yAxises.map(k=>{let _={name:k.name,type:"value",position:k.position,alignTicks:k.alignTicks,offset:k.offset};x.push(_)}),o.dbOptions.direction=="horizontal"?g.xAxis=In({},g.xAxis,x):g.yAxis=In({},g.yAxis,x)}}g?u.value=qH(g,o.dbOptions.columns):u.value=qH(w,o.dbOptions.columns)},f=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await d(g),i.value=v.onDataUpdate(()=>{const y=v.mergeData();d(y)})}else if(Vn(v))await d(v.sourceData),i.value=v.onDataUpdate(()=>{d(v.sourceData)});else{const g=(m=o.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);d(y);return}};a.onMounted(()=>{f(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,barCompareRef:c});const p=v=>{r("chart-click",v)},h=qn(o.dbOptions);return(v,m)=>{const g=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar-compare",onContextmenu:m[0]||(m[0]=(...y)=>a.unref(h)&&a.unref(h)(...y))},[(a.openBlock(),a.createBlock(g,a.mergeProps({options:u.value},v.$attrs,{ref_key:"barCompareRef",ref:c,description:e.description,isEmpty:s.value,onClick:p,key:a.unref(l)}),null,16,["options","description","isEmpty"]))],32)}}}),Vrt=ar(Prt,[["__scopeId","data-v-b81145a7"]]),lre=Dt(Vrt),Frt=It(),Lh=document.documentElement,zrt=(e,t,n)=>{e=Number.isInteger(Number(e))?e:Number(e).toFixed(2);let r=[];return n=="pie"?r=t=="lg"?["0","80%"]:t=="md"?["0","75%"]:t=="sm"?["0","65%"]:["0","60%"]:r=t=="lg"?["50%","80%"]:t=="md"?["45%","75%"]:t=="sm"?["40%","65%"]:["35%","60%"],{legend:{trigger:"item",show:!1,orient:"vertical",left:"left",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(Lh).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},backgroundColor:Frt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(Lh).getPropertyValue("--ui-chart-colors")),title:n=="pie"?{}:{subtext:"总计 (亿元)",text:e,textStyle:{fontSize:t=="lg"?32:t=="md"?30:t=="sm"?24:22,align:"center",color:getComputedStyle(Lh).getPropertyValue("--el-text-color-primary")},subtextStyle:{fontSize:t=="lg"?20:t=="md"?18:t=="sm"?16:14,align:"center",lineHeight:t=="lg"?20:t=="md"?18:t=="sm"?10:5,color:getComputedStyle(Lh).getPropertyValue("--el-text-color-regular")},x:"center",y:t=="lg"||t=="md"||t=="sm"?"40%":"41%"},series:[{type:"pie",minAngle:5,startAngle:10,labelLine:{show:!0,length:20,length2:30,lineStyle:{width:2}},label:{formatter:o=>`{t|${o.name+" "+o.value}}
|
|
116
|
+
`||o==="")){var i=e.isSelected(o);Tt(n,o)?n[o]=n[o]&&i:n[o]=i}}),n}function Jqe(e){e.registerAction("legendToggleSelect","legendselectchanged",nn(Zg,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",nn(Zg,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",nn(Zg,"inverseSelect")),e.registerAction("legendSelect","legendselected",nn(Zg,"select")),e.registerAction("legendUnSelect","legendunselected",nn(Zg,"unSelect"))}function gne(e){e.registerComponentModel(QN),e.registerComponentView(vne),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Qqe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Jqe(e)}var eZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,o){var i=Um(n);e.prototype.init.call(this,n,r,o),aH(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),aH(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Bd(QN.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(QN);function aH(e,t,n){var r=e.getOrient(),o=[1,1];o[r.index]=0,Sd(t,n,{type:"box",ignoreSize:!!o})}var oH=Kt,r2=["width","height"],a2=["x","y"],tZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new oH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oH)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,o,i,l,s,u){var c=this;e.prototype.renderInner.call(this,n,r,o,i,l,s,u);var d=this._controllerGroup,f=r.get("pageIconSize",!0),p=nt(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");d.add(new Dn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",C=Hm(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:_t(c._pageGo,c,y,r,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});C.name=m,d.add(C)}},t.prototype.layoutInner=function(n,r,o,i,l,s){var u=this.getSelectorGroup(),c=n.getOrient().index,d=r2[c],f=a2[c],p=r2[1-c],h=a2[1-c];l&&up("horizontal",u,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=u.getBoundingRect(),g=[-m.x,-m.y],y=Gt(o);l&&(y[d]=o[d]-m[d]-v);var C=this._layoutContentAndController(n,i,y,c,d,p,h,f);if(l){if(s==="end")g[c]+=C[d]+v;else{var b=m[d]+v;g[c]-=b,C[f]-=b}C[d]+=m[d]+v,g[1-c]+=C[h]+C[p]/2-m[p]/2,C[p]=Math.max(C[p],m[p]),C[h]=Math.min(C[h],m[h]+g[1-c]),u.x=g[0],u.y=g[1],u.markRedraw()}return C},t.prototype._layoutContentAndController=function(n,r,o,i,l,s,u,c){var d=this.getContentGroup(),f=this._containerGroup,p=this._controllerGroup;up(n.get("orient"),d,n.get("itemGap"),i?o.width:null,i?null:o.height),up("horizontal",p,n.get("pageButtonItemGap",!0));var h=d.getBoundingRect(),v=p.getBoundingRect(),m=this._showController=h[l]>o[l],g=[-h.x,-h.y];r||(g[i]=d[c]);var y=[0,0],C=[-v.x,-v.y],b=en(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var w=n.get("pageButtonPosition",!0);w==="end"?C[i]+=o[l]-v[l]:y[i]+=v[l]+b}C[1-i]+=h[s]/2-v[s]/2,d.setPosition(g),f.setPosition(y),p.setPosition(C);var S={x:0,y:0};if(S[l]=m?o[l]:h[l],S[s]=Math.max(h[s],v[s]),S[u]=Math.min(0,v[u]+C[1-i]),f.__rectSize=o[l],m){var x={x:0,y:0};x[l]=Math.max(o[l]-v[l]-b,0),x[s]=S[s],f.setClipPath(new Mn({shape:x})),f.__rectSize=x[l]}else p.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(n);return k.pageIndex!=null&&Fn(d,{x:k.contentPosition[0],y:k.contentPosition[1]},m?n:null),this._updatePageInfoView(n,k),S},t.prototype._pageGo=function(n,r,o){var i=this._getPageInfo(r)[n];i!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var o=this._controllerGroup;q(["pagePrev","pageNext"],function(d){var f=d+"DataIndex",p=r[f]!=null,h=o.childOfName(d);h&&(h.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var i=o.childOfName("pageText"),l=n.get("pageFormatter"),s=r.pageIndex,u=s!=null?s+1:0,c=r.pageCount;i&&l&&i.setStyle("text",St(l)?l.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):l({current:u,total:c}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),i=this._containerGroup.__rectSize,l=n.getOrient().index,s=r2[l],u=a2[l],c=this._findTargetItemIndex(r),d=o.children(),f=d[c],p=d.length,h=p?1:0,v={contentPosition:[o.x,o.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=w(f);v.contentPosition[l]=-m.s;for(var g=c+1,y=m,C=m,b=null;g<=p;++g)b=w(d[g]),(!b&&C.e>y.s+i||b&&!S(b,y.s))&&(C.i>y.i?y=C:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),C=b;for(var g=c-1,y=m,C=m,b=null;g>=-1;--g)b=w(d[g]),(!b||!S(C,b.s))&&y.i<C.i&&(C=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function w(x){if(x){var k=x.getBoundingRect(),_=k[u]+x[u];return{s:_,e:_+k[s],i:x.__legendDataIndex}}}function S(x,k){return x.e>=k&&x.s<=k+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,o=this.getContentGroup(),i;return o.eachChild(function(l,s){var u=l.__legendDataIndex;i==null&&u!=null&&(i=s),u===n&&(r=s)}),r??i},t.type="legend.scroll",t}(vne);function nZe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(o){o.setScrollDataIndex(r)})})}function rZe(e){vn(gne),e.registerComponentModel(eZe),e.registerComponentView(tZe),nZe(e)}function aZe(e){vn(gne),vn(rZe)}var oZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Bd(fb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(fb),eP=Bn();function iZe(e,t,n){eP(e).coordSysRecordMap.each(function(r){var o=r.dataZoomInfoMap.get(t.uid);o&&(o.getRange=n)})}function lZe(e,t){for(var n=eP(e).coordSysRecordMap,r=n.keys(),o=0;o<r.length;o++){var i=r[o],l=n.get(i),s=l.dataZoomInfoMap;if(s){var u=t.uid,c=s.get(u);c&&(s.removeKey(u),s.keys().length||yne(n,l))}}}function yne(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function sZe(e,t){var n={model:t,containsPoint:nn(cZe,t),dispatchAction:nn(uZe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new rC(e.getZr());return q(["pan","zoom","scrollMove"],function(o){r.on(o,function(i){var l=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var u=(s.getRange||{})[o],c=u&&u(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&c&&l.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),l.length&&n.dispatchAction(l)})}),n}function uZe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function cZe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function dZe(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(i){var l=i.model,s=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function fZe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=eP(n),o=r.coordSysRecordMap||(r.coordSysRecordMap=Ot());o.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var l=ene(i);q(l.infoList,function(s){var u=s.model.uid,c=o.get(u)||o.set(u,sZe(n,s.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=Ot());d.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),o.each(function(i){var l=i.controller,s,u=i.dataZoomInfoMap;if(u){var c=u.keys()[0];c!=null&&(s=u.get(c))}if(!s){yne(o,i);return}var d=dZe(u);l.enable(d.controlType,d.opt),l.setPointerChecker(i.containsPoint),Xm(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var pZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,o){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),iZe(o,n,{pan:_t(o2.pan,this),zoom:_t(o2.zoom,this),scrollMove:_t(o2.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lZe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(UL),o2={zoom:function(e,t,n,r){var o=this.range,i=o.slice(),l=e.axisModels[0];if(l){var s=i2[t](null,[r.originX,r.originY],l,n,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/r.scale,0);i[0]=(i[0]-u)*c+u,i[1]=(i[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(jp(0,i,[0,100],0,d.minSpan,d.maxSpan),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}},pan:iH(function(e,t,n,r,o,i){var l=i2[r]([i.oldX,i.oldY],[i.newX,i.newY],t,o,n);return l.signal*(e[1]-e[0])*l.pixel/l.pixelLength}),scrollMove:iH(function(e,t,n,r,o,i){var l=i2[r]([0,0],[i.scrollDelta,i.scrollDelta],t,o,n);return l.signal*(e[1]-e[0])*i.scrollDelta})};function iH(e){return function(t,n,r,o){var i=this.range,l=i.slice(),s=t.axisModels[0];if(s){var u=e(l,s,t,n,r,o);if(jp(u,l,[0,100],"all"),this.range=l,i[0]!==l[0]||i[1]!==l[1])return l}}}var i2={grid:function(e,t,n,r,o){var i=n.axis,l={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(l.pixel=t[0]-e[0],l.pixelLength=s.width,l.pixelStart=s.x,l.signal=i.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=s.height,l.pixelStart=s.y,l.signal=i.inverse?-1:1),l},polar:function(e,t,n,r,o){var i=n.axis,l={},s=o.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(l.pixel=t[0]-e[0],l.pixelLength=u[1]-u[0],l.pixelStart=u[0],l.signal=i.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=c[1]-c[0],l.pixelStart=c[0],l.signal=i.inverse?-1:1),l},singleAxis:function(e,t,n,r,o){var i=n.axis,l=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=l.width,s.pixelStart=l.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=l.height,s.pixelStart=l.y,s.signal=i.inverse?-1:1),s}};function bne(e){YL(e),e.registerComponentModel(oZe),e.registerComponentView(pZe),fZe(e)}var hZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bd(fb.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(fb),Qg=Mn,lH=7,vZe=1,l2=30,mZe=7,Jg="horizontal",sH="vertical",gZe=5,yZe=["line","bar","candlestick","scatter"],bZe={easing:"cubicOut",duration:100,delay:0},CZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=_t(this._onBrush,this),this._onBrushEnd=_t(this._onBrushEnd,this)},t.prototype.render=function(n,r,o,i){if(e.prototype.render.apply(this,arguments),Xm(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){J0(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Kt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,o=n.get("brushSelect"),i=o?mZe:0,l=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},u=this._orient===Jg?{right:s.width-l.x-l.width,top:s.height-l2-lH-i,width:l.width,height:l2}:{right:lH,top:l.y,width:l2,height:l.height},c=Um(n.option);q(["right","top","width","height"],function(f){c[f]==="ph"&&(c[f]=u[f])});var d=va(c,s);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===sH&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,o=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),l=i&&i.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Jg&&!l?{scaleY:u?1:-1,scaleX:1}:o===Jg&&l?{scaleY:u?1:-1,scaleX:-1}:o===sH&&!l?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([s]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,o=this._displayables.sliderGroup,i=n.get("brushSelect");o.add(new Qg({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var l=new Qg({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:_t(this._onClickPanel,this)}),s=this.api.getZr();i?(l.on("mousedown",this._onBrushStart,this),l.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(l)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,o=this._shadowSize||[],i=n.series,l=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),u=s&&l.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(u==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(l!==this._shadowData||u!==this._shadowDim||r[0]!==o[0]||r[1]!==o[1]){var f=l.getDataExtent(u),p=(f[1]-f[0])*.3;f=[f[0]-p,f[1]+p];var h=[0,r[1]],v=[0,r[0]],m=[[r[0],0],[0,0]],g=[],y=v[1]/(l.count()-1),C=0,b=Math.round(l.count()/r[0]),w;l.each([u],function(T,E){if(b>0&&E%b){C+=y;return}var A=T==null||isNaN(T)||T==="",D=A?0:Jn(T,f,h,!0);A&&!w&&E?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&w&&(m.push([C,0]),g.push([C,0])),m.push([C,D]),g.push([C,D]),C+=y,w=A}),c=this._shadowPolygonPts=m,d=this._shadowPolylinePts=g}this._shadowData=l,this._shadowDim=u,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(T){var E=S.getModel(T?"selectedDataBackground":"dataBackground"),A=new Kt,D=new wo({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),B=new xo({shape:{points:d},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(D),A.add(B),A}for(var k=0;k<3;k++){var _=x(k===1);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var o,i=this.ecModel;return n.eachTargetAxis(function(l,s){var u=n.getAxisProxy(l,s).getTargetSeriesModels();q(u,function(c){if(!o&&!(r!==!0&&pn(yZe,c.get("type"))<0)){var d=i.getComponent(ed(l),s).axis,f=wZe(l),p,h=c.coordinateSystem;f!=null&&h.getOtherAxis&&(p=h.getOtherAxis(d).inverse),f=c.getData().mapDimension(f),o={thisAxis:d,series:c,thisDim:l,otherDim:f,otherAxisInverse:p}}},this)},this),o}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,o=r.handles=[null,null],i=r.handleLabels=[null,null],l=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,c=this.api,d=u.get("borderRadius")||0,f=u.get("brushSelect"),p=r.filler=new Qg({silent:f,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});l.add(p),l.add(new Qg({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:d},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:vZe,fill:"rgba(0,0,0,0)"}})),q([0,1],function(b){var w=u.get("handleIcon");!gx[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var S=ia(w,-1,0,2,2,null,!0);S.attr({cursor:uH(this._orient),draggable:!0,drift:_t(this._onDragMove,this,b),ondragend:_t(this._onDragEnd,this),onmouseover:_t(this._showDataInfo,this,!0),onmouseout:_t(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),k=u.get("handleSize");this._handleHeight=Ct(k,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(u.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),ld(S);var _=u.get("handleColor");_!=null&&(S.style.fill=_),l.add(o[b]=S);var T=u.getModel("textStyle"),E=u.get("handleLabel")||{},A=E.show||!1;n.add(i[b]=new Dn({silent:!0,invisible:!A,style:gr(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=p;if(f){var v=Ct(u.get("moveHandleSize"),s[1]),m=r.moveHandle=new Mn({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=r.moveHandleIcon=ia(u.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Mn({invisible:!0,shape:{y:s[1]-C,height:v+C}}),h.on("mouseover",function(){c.enterEmphasis(m)}).on("mouseout",function(){c.leaveEmphasis(m)}),l.add(m),l.add(y),l.add(h)}h.attr({draggable:!0,cursor:uH(this._orient),drift:_t(this._onDragMove,this,"all"),ondragstart:_t(this._showDataInfo,this,!0),ondragend:_t(this._onDragEnd,this),onmouseover:_t(this._showDataInfo,this,!0),onmouseout:_t(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Jn(n[0],[0,100],r,!0),Jn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var o=this.dataZoomModel,i=this._handleEnds,l=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];jp(r,i,l,o.get("zoomLock")?"all":n,s.minSpan!=null?Jn(s.minSpan,u,l,!0):null,s.maxSpan!=null?Jn(s.maxSpan,u,l,!0):null);var c=this._range,d=this._range=Mi([Jn(i[0],l,u,!0),Jn(i[1],l,u,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},t.prototype._updateView=function(n){var r=this._displayables,o=this._handleEnds,i=Mi(o.slice()),l=this._size;q([0,1],function(h){var v=r.handles[h],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:o[h]+(h?-1:1),y:l[1]/2-m/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:l[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=r.dataShadowSegs,c=[0,i[0],i[1],l[0]],d=0;d<u.length;d++){var f=u[d],p=f.getClipPath();p||(p=new Mn,f.setClipPath(p)),p.setShape({x:c[d],y:0,width:c[d+1]-c[d],height:l[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,o=this._displayables,i=o.handleLabels,l=this._orient,s=["",""];if(r.get("showDetail")){var u=r.findRepresentativeAxisProxy();if(u){var c=u.getAxisModel().axis,d=this._range,f=n?u.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:u.getDataValueWindow();s=[this._formatLabel(f[0],c),this._formatLabel(f[1],c)]}}var p=Mi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=sd(o.handles[v].parent,this.group),g=cE(v===0?"right":"left",m),y=this._handleWidth/2+gZe,C=Yl([p[v]+(v===0?-y:y),this._size[1]/2],m);i[v].setStyle({x:C[0],y:C[1],verticalAlign:l===Jg?"middle":g,align:l===Jg?g:"center",text:s[v]})}},t.prototype._formatLabel=function(n,r){var o=this.dataZoomModel,i=o.get("labelFormatter"),l=o.get("labelPrecision");(l==null||l==="auto")&&(l=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(l,20));return Vt(i)?i(n,s):St(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},o=r.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),l=i.get("show")||!1,s=n||this._dragging?l:o,u=this._displayables,c=u.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),u.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](u.moveHandle,1)},t.prototype._onDragMove=function(n,r,o,i){this._dragging=!0,qu(i.event);var l=this._displayables.sliderGroup.getLocalTransform(),s=Yl([r,o],l,!0),u=this._updateInterval(n,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),u&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(o[0]<0||o[0]>r[0]||o[1]<0||o[1]>r[1])){var i=this._handleEnds,l=(i[0]+i[1])/2,s=this._updateInterval("all",o[0]-l);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,o=n.offsetY;this._brushStart=new sn(r,o),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var o=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(o.width)<5)){var l=this._getViewExtent(),s=[0,100];this._range=Mi([Jn(o.x,l,s,!0),Jn(o.x+o.width,l,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(qu(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var o=this._displayables,i=this.dataZoomModel,l=o.brushRect;l||(l=o.brushRect=new Qg({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(l)),l.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,c=u.transformCoordToLocal(n,r),d=u.transformCoordToLocal(s.x,s.y),f=this._size;c[0]=Math.max(Math.min(f[0],c[0]),0),l.setShape({x:d[0],y:0,width:c[0]-d[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?bZe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=ene(this.dataZoomModel).infoList;if(!n&&r.length){var o=r[0].model.coordinateSystem;n=o.getRect&&o.getRect()}if(!n){var i=this.api.getWidth(),l=this.api.getHeight();n={x:i*.2,y:l*.2,width:i*.6,height:l*.6}}return n},t.type="dataZoom.slider",t}(UL);function wZe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function uH(e){return e==="vertical"?"ns-resize":"ew-resize"}function Cne(e){e.registerComponentModel(hZe),e.registerComponentView(CZe),YL(e)}function SZe(e){vn(bne),vn(Cne)}var wne={get:function(e,t,n){var r=Gt((xZe[e]||{})[t]);return n&&nt(r)?r[r.length-1]:r}},xZe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},cH=Na.mapVisual,kZe=Na.eachVisual,EZe=nt,dH=q,_Ze=Mi,TZe=Jn,Gx=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o)},t.prototype.optionUpdated=function(n,r){var o=this.option;!r&&cne(o,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=_t(n,this),this.controllerVisuals=XN(this.option.controller,r,n),this.targetVisuals=XN(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(o,i){r.push(i)}):r=ur(n),r},t.prototype.eachTargetSeries=function(n,r){q(this.getTargetSeriesIndices(),function(o){var i=this.ecModel.getSeriesByIndex(o);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(o){o===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,o){var i=this.option,l=i.precision,s=this.dataBound,u=i.formatter,c;o=o||["<",">"],nt(n)&&(n=n.slice(),c=!0);var d=r?n:c?[f(n[0]),f(n[1])]:f(n);if(St(u))return u.replace("{value}",c?d[0]:d).replace("{value2}",c?d[1]:d);if(Vt(u))return c?u(n[0],n[1]):u(n);if(c)return n[0]===s[0]?o[0]+" "+d[1]:n[1]===s[1]?o[1]+" "+d[0]:d[0]+" - "+d[1];return d;function f(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(l,20))}},t.prototype.resetExtent=function(){var n=this.option,r=_Ze([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var o=n.dimensions,i=o.length-1;i>=0;i--){var l=o[i],s=n.getDimensionInfo(l);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,o={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),l=r.controller||(r.controller={});on(i,o),on(l,o);var s=this.isCategory();u.call(this,i),u.call(this,l),c.call(this,i,"inRange","outOfRange"),d.call(this,l);function u(f){EZe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function c(f,p,h){var v=f[p],m=f[h];v&&!m&&(m=f[h]={},dH(v,function(g,y){if(Na.isValidType(y)){var C=wne.get(y,"inactive",s);C!=null&&(m[y]=C,y==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function d(f){var p=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),m=this.getItemSymbol(),g=m||"roundRect";dH(this.stateList,function(y){var C=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=p&&Gt(p)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=h&&Gt(h)||(s?C[0]:[C[0],C[0]])),b.symbol=cH(b.symbol,function(x){return x==="none"?g:x});var w=b.symbolSize;if(w!=null){var S=-1/0;kZe(w,function(x){x>S&&(S=x)}),b.symbolSize=cH(w,function(x){return TZe(x,[0,S],[0,C[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Cn),fH=[20,140],AZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=fH[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=fH[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):nt(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Mi((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,o=this.getExtent();return(r[0]<=o[0]||r[0]<=n)&&(r[1]>=o[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(o){var i=[],l=o.getData();l.each(this.getDataDimensionIndex(l),function(s,u){n[0]<=s&&s<=n[1]&&i.push(u)},this),r.push({seriesId:o.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=pH(this,"outOfRange",this.getExtent()),o=pH(this,"inRange",this.option.range.slice()),i=[];function l(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,u=0,c=o.length,d=r.length;u<d&&(!o.length||r[u]<=o[0]);u++)r[u]<o[s]&&l(r[u],"outOfRange");for(var f=1;s<c;s++,f=0)f&&i.length&&l(o[s],"outOfRange"),l(o[s],"inRange");for(var f=1;u<d;u++)(!o.length||o[o.length-1]<r[u])&&(f&&(i.length&&l(i[i.length-1].value,"outOfRange"),f=0),l(r[u],"outOfRange"));var p=i.length;return{stops:i,outerColors:[p?i[0].color:"transparent",p?i[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Bd(Gx.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Gx);function pH(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,o=(n[1]-n[0])/r,i=n[0],l=[],s=0;s<=r&&i<n[1];s++)l.push(i),i+=o;return l.push(n[1]),l}var Sne=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,o,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,o,i)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,o=Wp(r.get("padding")||0),i=n.getBoundingRect();n.add(new Mn({z2:-1,silent:!0,shape:{x:i.x-o[3],y:i.y-o[0],width:i.width+o[3]+o[1],height:i.height+o[0]+o[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,o){o=o||{};var i=o.forceState,l=this.visualMapModel,s={};if(r==="color"){var u=l.get("contentColor");s.color=u}function c(h){return s[h]}function d(h,v){s[h]=v}var f=l.controllerVisuals[i||l.getValueState(n)],p=Na.prepareVisualTypes(f);return q(p,function(h){var v=f[h];o.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),Na.dependsOn(h,r)&&v&&v.applyVisual(n,c,d)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,o=this.api;mE(n,r.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},t.prototype.doRender=function(n,r,o,i){},t.type="visualMap",t}(wr),hH=[["left","right","width"],["top","bottom","height"]];function xne(e,t,n){var r=e.option,o=r.align;if(o!=null&&o!=="auto")return o;for(var i={width:t.getWidth(),height:t.getHeight()},l=r.orient==="horizontal"?1:0,s=hH[l],u=[0,null,10],c={},d=0;d<3;d++)c[hH[1-l][d]]=u[d],c[s[d]]=d===2?n[0]:r[s[d]];var f=[["x","width",3],["y","height",0]][l],p=va(c,i,r.padding);return s[(p.margin[f[2]]||0)+p[f[0]]+p[f[1]]*.5<i[f[1]]*.5?0:1]}function cS(e,t){return q(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Ms=Jn,DZe=q,vH=Math.min,s2=Math.max,MZe=12,NZe=6,BZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=_t(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=_t(this._hideIndicator,this)},t.prototype.doRender=function(n,r,o,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var o=n.get("text");this._renderEndsText(r,o,0),this._renderEndsText(r,o,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,o){if(r){var i=r[1-o];i=i!=null?i+"":"";var l=this.visualMapModel,s=l.get("textGap"),u=l.itemSize,c=this._shapes.mainGroup,d=this._applyTransform([u[0]/2,o===0?-s:u[1]+s],c),f=this._applyTransform(o===0?"bottom":"top",c),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Dn({style:gr(h,{x:d[0],y:d[1],verticalAlign:p==="horizontal"?"middle":f,align:p==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,o=this._shapes,i=r.itemSize,l=this._orient,s=this._useHandle,u=xne(r,this.api,i),c=o.mainGroup=this._createBarGroup(u),d=new Kt;c.add(d),d.add(o.outOfRange=mH()),d.add(o.inRange=mH(null,s?yH(this._orient):null,_t(this._dragHandle,this,"all",!1),_t(this._dragHandle,this,"all",!0))),d.setClipPath(new Mn({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),p=s2(f.width,f.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(r,c,0,i,p,l),this._createHandle(r,c,1,i,p,l)),this._createIndicator(r,c,i,p,l),n.add(c)},t.prototype._createHandle=function(n,r,o,i,l,s){var u=_t(this._dragHandle,this,o,!1),c=_t(this._dragHandle,this,o,!0),d=es(n.get("handleSize"),i[0]),f=ia(n.get("handleIcon"),-d/2,-d/2,d,d,null,!0),p=yH(this._orient);f.attr({cursor:p,draggable:!0,drift:u,ondragend:c,onmousemove:function(y){qu(y.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),jf(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new Dn({cursor:p,draggable:!0,drift:u,onmousemove:function(y){qu(y.event)},ondragend:c,style:gr(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var m=[d,0],g=this._shapes;g.handleThumbs[o]=f,g.handleLabelPoints[o]=m,g.handleLabels[o]=v},t.prototype._createIndicator=function(n,r,o,i,l){var s=es(n.get("indicatorSize"),o[0]),u=ia(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);u.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var c=n.getModel("indicatorStyle").getItemStyle();if(u instanceof Ra){var d=u.style;u.useStyle(Qe({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},c))}else u.useStyle(c);r.add(u);var f=this.visualMapModel.textStyleModel,p=new Dn({silent:!0,invisible:!0,style:gr(f,{x:0,y:0,text:""})});this.group.add(p);var h=[(l==="horizontal"?i/2:NZe)+o[0]/2,0],v=this._shapes;v.indicator=u,v.indicatorLabel=p,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,o,i){if(this._useHandle){if(this._dragging=!r,!r){var l=this._applyTransform([o,i],this._shapes.mainGroup,!0);this._updateInterval(n,l[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():gH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),o=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[Ms(r[0],o,i,!0),Ms(r[1],o,i,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var o=this.visualMapModel,i=this._handleEnds,l=[0,o.itemSize[1]];jp(r,i,l,n,0);var s=o.getExtent();this._dataInterval=[Ms(i[0],l,s,!0),Ms(i[1],l,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,o=r.getExtent(),i=this._shapes,l=[0,r.itemSize[1]],s=n?l:this._handleEnds,u=this._createBarVisual(this._dataInterval,o,s,"inRange"),c=this._createBarVisual(o,o,l,"outOfRange");i.inRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),i.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,u)},t.prototype._createBarVisual=function(n,r,o,i){var l={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,l),u=[this.getControllerVisual(n[0],"symbolSize",l),this.getControllerVisual(n[1],"symbolSize",l)],c=this._createBarPoints(o,u);return{barColor:new zm(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var o=100,i=[],l=(n[1]-n[0])/o;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<o;s++){var u=n[0]+l*s;if(u>n[1])break;i.push({color:this.getControllerVisual(u,"color",r),offset:s/o})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var o=this.visualMapModel.itemSize;return[[o[0]-r[0],n[0]],[o[0],n[0]],[o[0],n[1]],[o[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,o=this.visualMapModel.get("inverse");return new Kt(r==="horizontal"&&!o?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&o?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!o?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var o=this._shapes,i=this.visualMapModel,l=o.handleThumbs,s=o.handleLabels,u=i.itemSize,c=i.getExtent(),d=this._applyTransform("left",o.mainGroup);DZe([0,1],function(f){var p=l[f];p.setStyle("fill",r.handlesColor[f]),p.y=n[f];var h=Ms(n[f],[0,u[1]],c,!0),v=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=v/u[0],p.x=u[0]-v/2;var m=Yl(o.handleLabelPoints[f],sd(p,this.group));if(this._orient==="horizontal"){var g=d==="left"||d==="top"?(u[0]-v)/2:(u[0]-v)/-2;m[1]+=g}s[f].setStyle({x:m[0],y:m[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,o,i){var l=this.visualMapModel,s=l.getExtent(),u=l.itemSize,c=[0,u[1]],d=this._shapes,f=d.indicator;if(f){f.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",p),v=this.getControllerVisual(n,"symbolSize"),m=Ms(n,s,c,!0),g=u[0]-v/2,y={x:f.x,y:f.y};f.y=m,f.x=g;var C=Yl(d.indicatorLabelPoint,sd(f,this.group)),b=d.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",d.mainGroup),S=this._orient,x=S==="horizontal";b.setStyle({text:(o||"")+l.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var k={x:g,y:m,style:{fill:h}},_={style:{x:C[0],y:C[1]}};if(l.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(k,T),b.animateTo(_,T)}else f.attr(k),b.attr(_);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var A=0;A<E.length;A++)this.api.enterBlur(E[A])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var o=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=vH(s2(0,i[1]),o[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=o[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var o=this.visualMapModel,i=o.itemSize;if(o.option.hoverLink){var l=[0,i[1]],s=o.getExtent();n=vH(s2(l[0],n),l[1]);var u=OZe(o,s,l),c=[n-u,n+u],d=Ms(n,l,s,!0),f=[Ms(c[0],l,s,!0),Ms(c[1],l,s,!0)];c[0]<l[0]&&(f[0]=-1/0),c[1]>l[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",u):f[1]===1/0?this._showIndicator(d,f[0],"> ",u):this._showIndicator(d,d,"≈ ",u));var p=this._hoverLinkDataIndices,h=[];(r||gH(o))&&(h=this._hoverLinkDataIndices=o.findTargetDataIndices(f));var v=_Fe(p,h);this._dispatchHighDown("downplay",cS(v[0],o)),this._dispatchHighDown("highlight",cS(v[1],o))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Xf(n.target,function(u){var c=Zt(u);if(c.dataIndex!=null)return r=c,!0},!0),!!r){var o=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(o)){var l=o.getData(r.dataType),s=l.getStore().get(i.getDataDimensionIndex(l),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var o=0;o<r.length;o++)this.api.leaveBlur(r[o])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cS(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,o,i){var l=sd(r,i?null:this.group);return nt(n)?Yl(n,l,o):cE(n,l,o)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Sne);function mH(e,t,n,r){return new wo({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(o){qu(o.event)},ondragend:r})}function OZe(e,t,n){var r=MZe/2,o=e.get("hoverLinkDataSize");return o&&(r=Ms(o,t,n,!0)/2),r}function gH(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function yH(e){return e==="vertical"?"ns-resize":"ew-resize"}var IZe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},RZe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},LZe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var o=e.pipelineContext;!r.isTargetSeries(e)||o&&o.large||n.push(aqe(r.stateList,r.targetVisuals,_t(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(o){if(o.isTargetSeries(e)){var i=o.getVisualMeta(_t(PZe,null,e,o))||{stops:[],outerColors:[]},l=o.getDataDimensionIndex(n);l>=0&&(i.dimension=l,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function PZe(e,t,n,r){for(var o=t.targetVisuals[r],i=Na.prepareVisualTypes(o),l={color:Xb(e.getData(),"color")},s=0,u=i.length;s<u;s++){var c=i[s],d=o[c==="opacity"?"__alphaForOpacity":c];d&&d.applyVisual(n,f,p)}return l.color;function f(h){return l[h]}function p(h,v){l[h]=v}}var bH=q;function VZe(e){var t=e&&e.visualMap;nt(t)||(t=t?[t]:[]),bH(t,function(n){if(n){Bh(n,"splitList")&&!Bh(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&nt(r)&&bH(r,function(o){Wt(o)&&(Bh(o,"start")&&!Bh(o,"min")&&(o.min=o.start),Bh(o,"end")&&!Bh(o,"max")&&(o.max=o.end))})}})}function Bh(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var CH=!1;function kne(e){CH||(CH=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(IZe,RZe),q(LZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(VZe))}function Ene(e){e.registerComponentModel(AZe),e.registerComponentView(BZe),kne(e)}var FZe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],zZe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(l,s){o==="categories"?(l.mappingMethod="category",l.categories=Gt(i)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=rt(this._pieceList,function(u){return u=Gt(u),s!=="inRange"&&(u.visual=null),u}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},o=Na.listVisualTypes(),i=this.isCategory();q(n.pieces,function(s){q(o,function(u){s.hasOwnProperty(u)&&(r[u]=1)})}),q(r,function(s,u){var c=!1;q(this.stateList,function(d){c=c||l(n,d,u)||l(n.target,d,u)},this),!c&&q(this.stateList,function(d){(n[d]||(n[d]={}))[u]=wne.get(u,d==="inRange"?"active":"inactive",i)})},this);function l(s,u,c){return s&&s[u]&&s[u].hasOwnProperty(c)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var o=this.option,i=this._pieceList,l=(r?o:n).selected||{};if(o.selected=l,q(i,function(u,c){var d=this.getSelectedMapKey(u);l.hasOwnProperty(d)||(l[d]=!0)},this),o.selectedMode==="single"){var s=!1;q(i,function(u,c){var d=this.getSelectedMapKey(u);l[d]&&(s?l[d]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Gt(n)},t.prototype.getValueState=function(n){var r=Na.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],o=this._pieceList;return this.eachTargetSeries(function(i){var l=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(u,c){var d=Na.findPieceIndex(u,o);d===n&&l.push(c)},this),r.push({seriesId:i.id,dataIndex:l})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var o=n.interval||[];r=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],o=["",""],i=this;function l(d,f){var p=i.getRepresentValue({interval:d});f||(f=i.getValueState(p));var h=n(p,f);d[0]===-1/0?o[0]=h:d[1]===1/0?o[1]=h:r.push({value:d[0],color:h},{value:d[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var u=s[0].interval[0];u!==-1/0&&s.unshift({interval:[-1/0,u]}),u=s[s.length-1].interval[1],u!==1/0&&s.push({interval:[u,1/0]})}var c=-1/0;return q(s,function(d){var f=d.interval;f&&(f[0]>c&&l([c,f[0]],"outOfRange"),l(f.slice()),c=f[1])},this),{stops:r,outerColors:o}},t.type="visualMap.piecewise",t.defaultOption=Bd(Gx.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Gx),zZe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var i=(r[1]-r[0])/o;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var l=0,s=r[0];l<o;s+=i,l++){var u=l===o-1?r[1]:s+i;e.push({interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),VM(e),q(e,function(c,d){c.index=d,c.text=this.formatValueText(c.interval)},this)},categories:function(e){var t=this.option;q(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),wH(t,e)},pieces:function(e){var t=this.option;q(t.pieces,function(n,r){Wt(n)||(n={value:n});var o={text:"",index:r};if(n.label!=null&&(o.text=n.label),n.hasOwnProperty("value")){var i=o.value=n.value;o.interval=[i,i],o.close=[1,1]}else{for(var l=o.interval=[],s=o.close=[0,0],u=[1,0,1],c=[-1/0,1/0],d=[],f=0;f<2;f++){for(var p=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&l[f]==null;h++)l[f]=n[p[h]],s[f]=u[h],d[f]=h===2;l[f]==null&&(l[f]=c[f])}d[0]&&l[1]===1/0&&(s[0]=0),d[1]&&l[0]===-1/0&&(s[1]=0),l[0]===l[1]&&s[0]&&s[1]&&(o.value=l[0])}o.visual=Na.retrieveVisuals(n),e.push(o)},this),wH(t,e),VM(e),q(e,function(n){var r=n.close,o=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,o)},this)}};function wH(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var $Ze=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,o=r.get("textGap"),i=r.textStyleModel,l=i.getFont(),s=i.getTextColor(),u=this._getItemAlign(),c=r.itemSize,d=this._getViewData(),f=d.endsText,p=Da(r.get("showLabel",!0),!f),h=!r.get("selectedMode");f&&this._renderEndsText(n,f[0],c,p,u),q(d.viewPieceList,function(v){var m=v.piece,g=new Kt;g.onclick=_t(this._onItemClick,this,m),this._enableHoverLink(g,v.indexInModelPieceList);var y=r.getRepresentValue(m);if(this._createItemSymbol(g,y,[0,0,c[0],c[1]],h),p){var C=this.visualMapModel.getValueState(y);g.add(new Dn({style:{x:u==="right"?-o:c[0]+o,y:c[1]/2,text:m.text,verticalAlign:"middle",align:u,font:l,fill:s,opacity:C==="outOfRange"?.5:1},silent:h}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],c,p,u),up(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var o=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(l){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:l,batch:cS(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return xne(n,this.api,n.itemSize);var o=r.align;return(!o||o==="auto")&&(o="left"),o},t.prototype._renderEndsText=function(n,r,o,i,l){if(r){var s=new Kt,u=this.visualMapModel.textStyleModel;s.add(new Dn({style:gr(u,{x:i?l==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:i?l:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=rt(n.getPieceList(),function(s,u){return{piece:s,indexInModelPieceList:u}}),o=n.get("text"),i=n.get("orient"),l=n.get("inverse");return(i==="horizontal"?l:!l)?r.reverse():o&&(o=o.slice().reverse()),{viewPieceList:r,endsText:o}},t.prototype._createItemSymbol=function(n,r,o,i){var l=ia(this.getControllerVisual(r,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(r,"color"));l.silent=i,n.add(l)},t.prototype._onItemClick=function(n){var r=this.visualMapModel,o=r.option,i=o.selectedMode;if(i){var l=Gt(o.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(l[s]=!0,q(l,function(u,c){l[c]=c===s})):l[s]=!l[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:l})}},t.type="visualMap.piecewise",t}(Sne);function _ne(e){e.registerComponentModel(FZe),e.registerComponentView($Ze),kne(e)}function HZe(e){vn(Ene),vn(_ne)}var WZe={label:{enabled:!0},decal:{show:!1}},SH=Bn(),GZe={};function UZe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Gt(WZe);on(r.label,e.getLocaleModel().get("aria"),!1),on(n.option,r,!1),o(),i();function o(){var c=n.getModel("decal"),d=c.get("show");if(d){var f=Ot();e.eachSeries(function(p){if(!p.isColorBySeries()){var h=f.get(p.type);h||(h={},f.set(p.type,h)),SH(p).scope=h}}),e.eachRawSeries(function(p){if(e.isSeriesFiltered(p))return;if(Vt(p.enableAriaDecal)){p.enableAriaDecal();return}var h=p.getData();if(p.isColorBySeries()){var C=eN(p.ecModel,p.name,GZe,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,C))}else{var v=p.getRawData(),m={},g=SH(p).scope;h.each(function(S){var x=h.getRawIndex(S);m[x]=S});var y=v.count();v.each(function(S){var x=m[S],k=v.getName(S)||S+"",_=eN(p.ecModel,k,g,y),T=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",w(T,_))})}function w(S,x){var k=S?Qe(Qe({},x),S):x;return k.dirty=!0,k}})}}function i(){var c=t.getZr().dom;if(c){var d=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=zt(f.option,d),!!f.get("enabled")){if(c.setAttribute("role","img"),f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var p=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,m=Math.min(p,v),g;if(!(p<1)){var y=s();if(y){var C=f.get(["general","withTitle"]);g=l(C,{title:y})}else g=f.get(["general","withoutTitle"]);var b=[],w=p>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=l(w,{seriesCount:p}),e.eachSeries(function(_,T){if(T<m){var E=void 0,A=_.get("name"),D=A?"withName":"withoutName";E=p>1?f.get(["series","multiple",D]):f.get(["series","single",D]),E=l(E,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:u(_.subType)});var B=_.getData();if(B.count()>h){var N=f.get(["data","partialData"]);E+=l(N,{displayCnt:h})}else E+=f.get(["data","allData"]);for(var M=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),P=f.get(["data","excludeDimensionId"]),R=[],L=0;L<B.count();L++)if(L<h){var z=B.getName(L),F=P?Wn(B.getValues(L),function($,W){return pn(P,W)===-1}):B.getValues(L),G=f.get(["data",z?"withName":"withoutName"]);R.push(l(G,{name:z,value:F.join(M)}))}E+=R.join(M)+O,b.push(E)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),k=S.get("end");g+=b.join(x)+k,c.setAttribute("aria-label",g)}}}}function l(c,d){if(!St(c))return c;var f=c;return q(d,function(p,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),p)}),f}function s(){var c=e.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function u(c){var d=e.getLocaleModel().get(["series","typeNames"]);return d[c]||d.chart}}function YZe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},q(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function jZe(e){e.registerPreprocessor(YZe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,UZe)}var xH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},KZe=function(){function e(t){var n=this._condVal=St(t)?new RegExp(t):ZX(t)?t:null;if(n==null){var r="";er(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return St(n)?this._condVal.test(t):Ln(n)?this._condVal.test(t+""):!1},e}(),XZe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),ZZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e}(),QZe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),JZe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),o=t?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?o:r))return!1;return!0},e}();function tP(e,t){if(e===!0||e===!1){var n=new XZe;return n.value=e,n}var r="";return Tne(e)||er(r),e.and?kH("and",e,t):e.or?kH("or",e,t):e.not?eQe(e,t):tQe(e,t)}function kH(e,t,n){var r=t[e],o="";nt(r)||er(o),r.length||er(o);var i=e==="and"?new qZe:new ZZe;return i.children=rt(r,function(l){return tP(l,n)}),i.children.length||er(o),i}function eQe(e,t){var n=e.not,r="";Tne(n)||er(r);var o=new QZe;return o.child=tP(n,t),o.child||er(r),o}function tQe(e,t){for(var n="",r=t.prepareGetValue(e),o=[],i=kn(e),l=e.parser,s=l?oQ(l):null,u=0;u<i.length;u++){var c=i[u];if(!(c==="parser"||t.valueGetterAttrMap.get(c))){var d=Tt(xH,c)?xH[c]:c,f=e[c],p=s?s(f):f,h=T4e(d,p)||d==="reg"&&new KZe(p);h||er(n),o.push(h)}}o.length||er(n);var v=new JZe;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=o,v}function Tne(e){return Wt(e)&&!qa(e)}var nQe=function(){function e(t,n){this._cond=tP(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function rQe(e,t){return new nQe(e,t)}var aQe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=rQe(e.config,{valueGetterAttrMap:Ot({dimension:!0}),prepareGetValue:function(s){var u="",c=s.dimension;Tt(s,"dimension")||er(u);var d=t.getDimensionInfo(c);return d||er(u),{dimIdx:d.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),o=[],i=0,l=t.count();i<l;i++)n=t.getRawDataItem(i),r.evaluate()&&o.push(n);return{data:o}}},oQe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",o=ur(n);o.length||er(r);var i=[];q(o,function(d){var f=d.dimension,p=d.order,h=d.parser,v=d.incomparable;if(f==null&&er(r),p!=="asc"&&p!=="desc"&&er(r),v&&v!=="min"&&v!=="max"){var m="";er(m)}if(p!=="asc"&&p!=="desc"){var g="";er(g)}var y=t.getDimensionInfo(f);y||er(r);var C=h?oQ(h):null;h&&!C&&er(r),i.push({dimIdx:y.index,parser:C,comparator:new lQ(p,v)})});var l=t.sourceFormat;l!==So&&l!==yl&&er(r);for(var s=[],u=0,c=t.count();u<c;u++)s.push(t.getRawDataItem(u));return s.sort(function(d,f){for(var p=0;p<i.length;p++){var h=i[p],v=t.retrieveValueFromItem(d,h.dimIdx),m=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),m=h.parser(m));var g=h.comparator.evaluate(v,m);if(g!==0)return g}return 0}),{data:s}}};function iQe(e){e.registerTransform(aQe),e.registerTransform(oQe)}var lQe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,o){e.prototype.init.call(this,n,r,o),this._sourceManager=new dQ(this),T4(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),T4(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:js},t}(Cn),sQe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(wr);function uQe(e){e.registerComponentModel(lQe),e.registerComponentView(sQe)}var xs=ru.CMD;function vv(e,t){return Math.abs(e-t)<1e-5}function nB(e){var t=e.data,n=e.len(),r=[],o,i=0,l=0,s=0,u=0;function c(B,N){o&&o.length>2&&r.push(o),o=[B,N]}function d(B,N,M,O){vv(B,M)&&vv(N,O)||o.push(B,N,M,O,M,O)}function f(B,N,M,O,P,R){var L=Math.abs(N-B),z=Math.tan(L/4)*4/3,F=N<B?-1:1,G=Math.cos(B),$=Math.sin(B),W=Math.cos(N),j=Math.sin(N),J=G*P+M,Z=$*R+O,X=W*P+M,ae=j*R+O,ie=P*z*F,K=R*z*F;o.push(J-ie*$,Z+K*G,X+ie*j,ae-K*W,X,ae)}for(var p,h,v,m,g=0;g<n;){var y=t[g++],C=g===1;switch(C&&(i=t[g],l=t[g+1],s=i,u=l,(y===xs.L||y===xs.C||y===xs.Q)&&(o=[s,u])),y){case xs.M:i=s=t[g++],l=u=t[g++],c(s,u);break;case xs.L:p=t[g++],h=t[g++],d(i,l,p,h),i=p,l=h;break;case xs.C:o.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],l=t[g++]);break;case xs.Q:p=t[g++],h=t[g++],v=t[g++],m=t[g++],o.push(i+2/3*(p-i),l+2/3*(h-l),v+2/3*(p-v),m+2/3*(h-m),v,m),i=v,l=m;break;case xs.A:var b=t[g++],w=t[g++],S=t[g++],x=t[g++],k=t[g++],_=t[g++]+k;g+=1;var T=!t[g++];p=Math.cos(k)*S+b,h=Math.sin(k)*x+w,C?(s=p,u=h,c(s,u)):d(i,l,p,h),i=Math.cos(_)*S+b,l=Math.sin(_)*x+w;for(var E=(T?-1:1)*Math.PI/2,A=k;T?A>_:A<_;A+=E){var D=T?Math.max(A+E,_):Math.min(A+E,_);f(A,D,b,w,S,x)}break;case xs.R:s=i=t[g++],u=l=t[g++],p=s+t[g++],h=u+t[g++],c(p,u),d(p,u,p,h),d(p,h,s,h),d(s,h,s,u),d(s,u,p,u);break;case xs.Z:o&&d(i,l,s,u),i=s,l=u;break}}return o&&o.length>2&&r.push(o),r}function rB(e,t,n,r,o,i,l,s,u,c){if(vv(e,n)&&vv(t,r)&&vv(o,l)&&vv(i,s)){u.push(l,s);return}var d=2/c,f=d*d,p=l-e,h=s-t,v=Math.sqrt(p*p+h*h);p/=v,h/=v;var m=n-e,g=r-t,y=o-l,C=i-s,b=m*m+g*g,w=y*y+C*C;if(b<f&&w<f){u.push(l,s);return}var S=p*m+h*g,x=-p*y-h*C,k=b-S*S,_=w-x*x;if(k<f&&S>=0&&_<f&&x>=0){u.push(l,s);return}var T=[],E=[];Cd(e,n,o,l,.5,T),Cd(t,r,i,s,.5,E),rB(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],u,c),rB(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],u,c)}function cQe(e,t){var n=nB(e),r=[];t=t||1;for(var o=0;o<n.length;o++){var i=n[o],l=[],s=i[0],u=i[1];l.push(s,u);for(var c=2;c<i.length;){var d=i[c++],f=i[c++],p=i[c++],h=i[c++],v=i[c++],m=i[c++];rB(s,u,d,f,p,h,v,m,l,t),s=v,u=m}r.push(l)}return r}function Ane(e,t,n){var r=e[t],o=e[1-t],i=Math.abs(r/o),l=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/l);s===0&&(s=1,l=n);for(var u=[],c=0;c<l;c++)u.push(s);var d=l*s,f=n-d;if(f>0)for(var c=0;c<f;c++)u[c%l]+=1;return u}function EH(e,t,n){for(var r=e.r0,o=e.r,i=e.startAngle,l=e.endAngle,s=Math.abs(l-i),u=s*o,c=o-r,d=u>Math.abs(c),f=Ane([u,c],d?0:1,t),p=(d?s:c)/f.length,h=0;h<f.length;h++)for(var v=(d?c:s)/f[h],m=0;m<f[h];m++){var g={};d?(g.startAngle=i+p*h,g.endAngle=i+p*(h+1),g.r0=r+v*m,g.r=r+v*(m+1)):(g.startAngle=i+v*m,g.endAngle=i+v*(m+1),g.r0=r+p*h,g.r=r+p*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function dQe(e,t,n){for(var r=e.width,o=e.height,i=r>o,l=Ane([r,o],i?0:1,t),s=i?"width":"height",u=i?"height":"width",c=i?"x":"y",d=i?"y":"x",f=e[s]/l.length,p=0;p<l.length;p++)for(var h=e[u]/l[p],v=0;v<l[p];v++){var m={};m[c]=p*f,m[d]=v*h,m[s]=f,m[u]=h,m.x+=e.x,m.y+=e.y,n.push(m)}}function _H(e,t,n,r){return e*r-n*t}function fQe(e,t,n,r,o,i,l,s){var u=n-e,c=r-t,d=l-o,f=s-i,p=_H(d,f,u,c);if(Math.abs(p)<1e-6)return null;var h=e-o,v=t-i,m=_H(h,v,d,f)/p;return m<0||m>1?null:new sn(m*u+e,m*c+t)}function pQe(e,t,n){var r=new sn;sn.sub(r,n,t),r.normalize();var o=new sn;sn.sub(o,e,t);var i=o.dot(r);return i}function Oh(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function hQe(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var l=e[i],s=e[(i+1)%r],u=fQe(l[0],l[1],s[0],s[1],t.x,t.y,n.x,n.y);u&&o.push({projPt:pQe(u,t,n),pt:u,idx:i})}if(o.length<2)return[{points:e},{points:e}];o.sort(function(g,y){return g.projPt-y.projPt});var c=o[0],d=o[o.length-1];if(d.idx<c.idx){var f=c;c=d,d=f}for(var p=[c.pt.x,c.pt.y],h=[d.pt.x,d.pt.y],v=[p],m=[h],i=c.idx+1;i<=d.idx;i++)Oh(v,e[i].slice());Oh(v,h),Oh(v,p);for(var i=d.idx+1;i<=c.idx+r;i++)Oh(m,e[i%r].slice());return Oh(m,p),Oh(m,h),[{points:v},{points:m}]}function TH(e){var t=e.points,n=[],r=[];oE(t,n,r);var o=new cn(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=o.width,l=o.height,s=o.x,u=o.y,c=new sn,d=new sn;return i>l?(c.x=d.x=s+i/2,c.y=u,d.y=u+l):(c.y=d.y=u+l/2,c.x=s,d.x=s+i),hQe(t,c,d)}function Ux(e,t,n,r){if(n===1)r.push(t);else{var o=Math.floor(n/2),i=e(t);Ux(e,i[0],o,r),Ux(e,i[1],n-o,r)}return r}function vQe(e,t){for(var n=[],r=0;r<t;r++)n.push(lR(e));return n}function mQe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function gQe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function yQe(e,t){var n=[],r=e.shape,o;switch(e.type){case"rect":dQe(r,t,n),o=Mn;break;case"sector":EH(r,t,n),o=Co;break;case"circle":EH({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),o=Co;break;default:var i=e.getComputedTransform(),l=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=rt(cQe(e.getUpdatedPathProxy(),l),function(y){return gQe(y)}),u=s.length;if(u===0)Ux(TH,{points:s[0]},t,n);else if(u===t)for(var c=0;c<u;c++)n.push({points:s[c]});else{var d=0,f=rt(s,function(y){var C=[],b=[];oE(y,C,b);var w=(b[1]-C[1])*(b[0]-C[0]);return d+=w,{poly:y,area:w}});f.sort(function(y,C){return C.area-y.area});for(var p=t,c=0;c<u;c++){var h=f[c];if(p<=0)break;var v=c===u-1?p:Math.ceil(h.area/d*t);v<0||(Ux(TH,{points:h.poly},v,n),p-=v)}}o=wo;break}if(!o)return vQe(e,t);for(var m=[],c=0;c<n.length;c++){var g=new o;g.setShape(n[c]),mQe(e,g),m.push(g)}return m}function bQe(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var o=[],i=[],l=n<r?e:t,s=Math.min(n,r),u=Math.abs(r-n)/6,c=(s-2)/6,d=Math.ceil(u/c)+1,f=[l[0],l[1]],p=u,h=2;h<s;){var v=l[h-2],m=l[h-1],g=l[h++],y=l[h++],C=l[h++],b=l[h++],w=l[h++],S=l[h++];if(p<=0){f.push(g,y,C,b,w,S);continue}for(var x=Math.min(p,d-1)+1,k=1;k<=x;k++){var _=k/x;Cd(v,g,C,w,_,o),Cd(m,y,b,S,_,i),v=o[3],m=i[3],f.push(o[1],i[1],o[2],i[2],v,m),g=o[5],y=i[5],C=o[6],b=i[6]}p-=x-1}return l===e?[f,t]:[e,f]}function AH(e,t){for(var n=e.length,r=e[n-2],o=e[n-1],i=[],l=0;l<t.length;)i[l++]=r,i[l++]=o;return i}function CQe(e,t){for(var n,r,o,i=[],l=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],c=t[s],d=void 0,f=void 0;u?c?(n=bQe(u,c),d=n[0],f=n[1],r=d,o=f):(f=AH(o||u,u),d=u):(d=AH(r||c,c),f=c),i.push(d),l.push(f)}return[i,l]}function DH(e){for(var t=0,n=0,r=0,o=e.length,i=0,l=o-2;i<o;l=i,i+=2){var s=e[l],u=e[l+1],c=e[i],d=e[i+1],f=s*d-c*u;t+=f,n+=(s+c)*f,r+=(u+d)*f}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function wQe(e,t,n,r){for(var o=(e.length-2)/6,i=1/0,l=0,s=e.length,u=s-2,c=0;c<o;c++){for(var d=c*6,f=0,p=0;p<s;p+=2){var h=p===0?d:(d+p-2)%u+2,v=e[h]-n[0],m=e[h+1]-n[1],g=t[p]-r[0],y=t[p+1]-r[1],C=g-v,b=y-m;f+=C*C+b*b}f<i&&(i=f,l=c)}return l}function SQe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function xQe(e,t,n,r){for(var o=[],i,l=0;l<e.length;l++){var s=e[l],u=t[l],c=DH(s),d=DH(u);i==null&&(i=c[2]<0!=d[2]<0);var f=[],p=[],h=0,v=1/0,m=[],g=s.length;i&&(s=SQe(s));for(var y=wQe(s,u,c,d)*6,C=g-2,b=0;b<C;b+=2){var w=(y+b)%C+2;f[b+2]=s[w]-c[0],f[b+3]=s[w+1]-c[1]}f[0]=s[y]-c[0],f[1]=s[y+1]-c[1];for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var k=Math.sin(x),_=Math.cos(x),T=0,b=0;b<s.length;b+=2){var E=f[b],A=f[b+1],D=u[b]-d[0],B=u[b+1]-d[1],N=D*_-B*k,M=D*k+B*_;m[b]=N,m[b+1]=M;var O=N-E,P=M-A;T+=O*O+P*P}if(T<v){v=T,h=x;for(var R=0;R<m.length;R++)p[R]=m[R]}}o.push({from:f,to:p,fromCp:c,toCp:d,rotation:-h})}return o}function Yx(e){return e.__isCombineMorphing}var Dne="__mOriginal_";function jx(e,t,n){var r=Dne+t,o=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,l=n.after,s=n.before;e[t]=function(){var u=arguments,c;return s&&s.apply(this,u),i?c=i.apply(this,u):c=o.apply(this,u),l&&l.apply(this,u),c}}function o0(e,t){var n=Dne+t;e[n]&&(e[t]=e[n],e[n]=null)}function MH(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<r.length;){var i=r[o],l=r[o+1];r[o++]=t[0]*i+t[2]*l+t[4],r[o++]=t[1]*i+t[3]*l+t[5]}}function Mne(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),o=CQe(nB(n),nB(r)),i=o[0],l=o[1],s=e.getComputedTransform(),u=t.getComputedTransform();function c(){this.transform=null}s&&MH(i,s),u&&MH(l,u),jx(t,"updateTransform",{replace:c}),t.transform=null;var d=xQe(i,l,10,Math.PI),f=[];jx(t,"buildPath",{replace:function(p){for(var h=t.__morphT,v=1-h,m=[],g=0;g<d.length;g++){var y=d[g],C=y.from,b=y.to,w=y.rotation*h,S=y.fromCp,x=y.toCp,k=Math.sin(w),_=Math.cos(w);Uy(m,S,x,h);for(var T=0;T<C.length;T+=2){var E=C[T],A=C[T+1],D=b[T],B=b[T+1],N=E*v+D*h,M=A*v+B*h;f[T]=N*_-M*k+m[0],f[T+1]=N*k+M*_+m[1]}var O=f[0],P=f[1];p.moveTo(O,P);for(var T=2;T<C.length;){var D=f[T++],B=f[T++],R=f[T++],L=f[T++],z=f[T++],F=f[T++];O===D&&P===B&&R===z&&L===F?p.lineTo(z,F):p.bezierCurveTo(D,B,R,L,z,F),O=z,P=F}}}})}function nP(e,t,n){if(!e||!t)return t;var r=n.done,o=n.during;Mne(e,t),t.__morphT=0;function i(){o0(t,"buildPath"),o0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},zt({during:function(l){t.dirtyShape(),o&&o(l)},done:function(){i(),r&&r()}},n)),t}function kQe(e,t,n,r,o,i){var l=16;e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var s=0,u,c=(1<<l)/2;c>0;c/=2){var d=0,f=0;(e&c)>0&&(d=1),(t&c)>0&&(f=1),s+=c*c*(3*d^f),f===0&&(d===1&&(e=c-1-e,t=c-1-t),u=e,e=t,t=u)}return s}function Kx(e){var t=1/0,n=1/0,r=-1/0,o=-1/0,i=rt(e,function(s){var u=s.getBoundingRect(),c=s.getComputedTransform(),d=u.x+u.width/2+(c?c[4]:0),f=u.y+u.height/2+(c?c[5]:0);return t=Math.min(d,t),n=Math.min(f,n),r=Math.max(d,r),o=Math.max(f,o),[d,f]}),l=rt(i,function(s,u){return{cp:s,z:kQe(s[0],s[1],t,n,r,o),path:e[u]}});return l.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function Nne(e){return yQe(e.path,e.count)}function aB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EQe(e,t,n){var r=[];function o(S){for(var x=0;x<S.length;x++){var k=S[x];Yx(k)?o(k.childrenRef()):k instanceof Sn&&r.push(k)}}o(e);var i=r.length;if(!i)return aB();var l=n.dividePath||Nne,s=l({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),aB();r=Kx(r),s=Kx(s);for(var u=n.done,c=n.during,d=n.individualDelay,f=new zu,p=0;p<i;p++){var h=r[p],v=s[p];v.parent=t,v.copyTransform(f),d||Mne(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function m(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}jx(t,"addSelfToZr",{after:function(S){m(S)}}),jx(t,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,o0(t,"addSelfToZr"),o0(t,"removeSelfFromZr")}var y=s.length;if(d)for(var C=y,b=function(){C--,C===0&&(g(),u&&u())},p=0;p<y;p++){var w=d?zt({delay:(n.delay||0)+d(p,y,r[p],s[p]),done:b},n):n;nP(r[p],s[p],w)}else t.__morphT=0,t.animateTo({__morphT:1},zt({during:function(S){for(var x=0;x<y;x++){var k=s[x];k.__morphT=t.__morphT,k.dirtyShape()}c&&c(S)},done:function(){g();for(var S=0;S<e.length;S++)o0(e[S],"updateTransform");u&&u()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function _Qe(e,t,n){var r=t.length,o=[],i=n.dividePath||Nne;function l(h){for(var v=0;v<h.length;v++){var m=h[v];Yx(m)?l(m.childrenRef()):m instanceof Sn&&o.push(m)}}if(Yx(e)){l(e.childrenRef());var s=o.length;if(s<r)for(var u=0,c=s;c<r;c++)o.push(lR(o[u++%s]));o.length=r}else{o=i({path:e,count:r});for(var d=e.getComputedTransform(),c=0;c<o.length;c++)o[c].setLocalTransform(d);if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),aB()}o=Kx(o),t=Kx(t);for(var f=n.individualDelay,c=0;c<r;c++){var p=f?zt({delay:(n.delay||0)+f(c,r,o[c],t[c])},n):n;nP(o[c],t[c],p)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}function NH(e){return nt(e[0])}function BH(e,t){for(var n=[],r=e.length,o=0;o<r;o++)n.push({one:e[o],many:[]});for(var o=0;o<t.length;o++){var i=t[o].length,l=void 0;for(l=0;l<i;l++)n[l%r].many.push(t[o][l])}for(var s=0,o=r-1;o>=0;o--)if(!n[o].many.length){var u=n[s].many;if(u.length<=1)if(s)s=0;else return n;var i=u.length,c=Math.ceil(i/2);n[o].many=u.slice(c,i),n[s].many=u.slice(0,c),s++}return n}var TQe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var o=lR(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function u2(e,t,n,r,o,i){if(!e.length||!t.length)return;var l=$m("update",r,o);if(!(l&&l.duration>0))return;var s=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},l),c,d;NH(e)&&(c=e,d=t),NH(t)&&(c=t,d=e);function f(y,C,b,w,S){var x=y.many,k=y.one;if(x.length===1&&!S){var _=C?x[0]:k,T=C?k:x[0];if(Yx(_))f({many:[_],one:T},!0,b,w,!0);else{var E=s?zt({delay:s(b,w)},u):u;nP(_,T,E),i(_,T,_,T,E)}}else for(var A=zt({dividePath:TQe[n],individualDelay:s&&function(P,R,L,z){return s(P+b,w)}},u),D=C?EQe(x,k,A):_Qe(k,x,A),B=D.fromIndividuals,N=D.toIndividuals,M=B.length,O=0;O<M;O++){var E=s?zt({delay:s(O,M)},u):u;i(B[O],N[O],C?x[O]:y.one,C?y.one:x[O],E)}}for(var p=c?c===e:e.length>t.length,h=c?BH(d,c):BH(p?t:e,[p?e:t]),v=0,m=0;m<h.length;m++)v+=h[m].many.length;for(var g=0,m=0;m<h.length;m++)f(h[m],p,g,v),g+=h[m].many.length}function Tf(e){if(!e)return[];if(nt(e)){for(var t=[],n=0;n<e.length;n++)t.push(Tf(e[n]));return t}var r=[];return e.traverse(function(o){o instanceof Sn&&!o.disableMorphing&&!o.invisible&&!o.ignore&&r.push(o)}),r}var Bne=1e4,AQe=0,OH=1,IH=2,DQe=Bn();function MQe(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var o=e.getDimensionInfo(n[r]);if(o&&o.otherDims[t]===0)return n[r]}}function NQe(e,t,n){var r=e.getDimensionInfo(n),o=r&&r.ordinalMeta;if(r){var i=e.get(r.name,t);return o&&o.categories[i]||i+""}}function RH(e,t,n,r){var o=r?"itemChildGroupId":"itemGroupId",i=MQe(e,o);if(i){var l=NQe(e,t,i);return l}var s=e.getRawDataItem(t),u=r?"childGroupId":"groupId";if(s&&s[u])return s[u]+"";if(!r)return n||e.getId(t)}function LH(e){var t=[];return q(e,function(n){var r=n.data,o=n.dataGroupId;if(!(r.count()>Bne))for(var i=r.getIndices(),l=0;l<i.length;l++)t.push({data:r,groupId:RH(r,l,o,!1),childGroupId:RH(r,l,o,!0),divide:n.divide,dataIndex:l})}),t}function c2(e,t,n){e.traverse(function(r){r instanceof Sn&&kr(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function d2(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Ih(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function BQe(e,t,n){var r=$m("update",n,t);r&&e.traverse(function(o){if(o instanceof pl){var i=d3e(o);i&&o.animateFrom({style:i},r)}})}function OQe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var o=e[r],i=t[r];if(o.data.getId(o.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function One(e,t,n){var r=LH(e),o=LH(t);function i(b,w,S,x,k){(S||b)&&w.animateFrom({style:S&&S!==b?Qe(Qe({},S.style),b.style):b.style},k)}var l=!1,s=AQe,u=Ot(),c=Ot();r.forEach(function(b){b.groupId&&u.set(b.groupId,!0),b.childGroupId&&c.set(b.childGroupId,!0)});for(var d=0;d<o.length;d++){var f=o[d].groupId;if(c.get(f)){s=OH;break}var p=o[d].childGroupId;if(p&&u.get(p)){s=IH;break}}function h(b,w){return function(S){var x=S.data,k=S.dataIndex;return w?x.getId(k):b?s===OH?S.childGroupId:S.groupId:s===IH?S.childGroupId:S.groupId}}var v=OQe(r,o),m={};if(!v)for(var d=0;d<o.length;d++){var g=o[d],y=g.data.getItemGraphicEl(g.dataIndex);y&&(m[y.id]=!0)}function C(b,w){var S=r[w],x=o[b],k=x.data.hostModel,_=S.data.getItemGraphicEl(S.dataIndex),T=x.data.getItemGraphicEl(x.dataIndex);if(_===T){T&&BQe(T,x.dataIndex,k);return}_&&m[_.id]||T&&(Ih(T),_?(Ih(_),d2(_),l=!0,u2(Tf(_),Tf(T),x.divide,k,b,i)):c2(T,k,b))}new Ju(r,o,h(!0,v),h(!1,v),null,"multiple").update(C).updateManyToOne(function(b,w){var S=o[b],x=S.data,k=x.hostModel,_=x.getItemGraphicEl(S.dataIndex),T=Wn(rt(w,function(E){return r[E].data.getItemGraphicEl(r[E].dataIndex)}),function(E){return E&&E!==_&&!m[E.id]});_&&(Ih(_),T.length?(q(T,function(E){Ih(E),d2(E)}),l=!0,u2(Tf(T),Tf(_),S.divide,k,b,i)):c2(_,k,S.dataIndex))}).updateOneToMany(function(b,w){var S=r[w],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&m[x.id])){var k=Wn(rt(b,function(T){return o[T].data.getItemGraphicEl(o[T].dataIndex)}),function(T){return T&&T!==x}),_=o[b[0]].data.hostModel;k.length&&(q(k,function(T){return Ih(T)}),x?(Ih(x),d2(x),l=!0,u2(Tf(x),Tf(k),S.divide,_,b[0],i)):q(k,function(T){return c2(T,_,b[0])}))}}).updateManyToMany(function(b,w){new Ju(w,b,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return o[S].data.getId(o[S].dataIndex)}).update(function(S,x){C(b[S],w[x])}).execute()}).execute(),l&&q(t,function(b){var w=b.data,S=w.hostModel,x=S&&n.getViewOfSeriesModel(S),k=$m("update",S,0);x&&S.isAnimationEnabled()&&k&&k.duration>0&&x.group.traverse(function(_){_ instanceof Sn&&!_.animators.length&&_.animateFrom({style:{opacity:0}},k)})})}function PH(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function VH(e){return nt(e)?e.sort().join(","):e}function $c(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function IQe(e,t){var n=Ot(),r=Ot(),o=Ot();return q(e.oldSeries,function(i,l){var s=e.oldDataGroupIds[l],u=e.oldData[l],c=PH(i),d=VH(c);r.set(d,{dataGroupId:s,data:u}),nt(c)&&q(c,function(f){o.set(f,{key:d,dataGroupId:s,data:u})})}),q(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var l=i.get("dataGroupId"),s=i.getData(),u=PH(i),c=VH(u),d=r.get(c);if(d)n.set(c,{oldSeries:[{dataGroupId:d.dataGroupId,divide:$c(d.data),data:d.data}],newSeries:[{dataGroupId:l,divide:$c(s),data:s}]});else if(nt(u)){var f=[];q(u,function(v){var m=r.get(v);m.data&&f.push({dataGroupId:m.dataGroupId,divide:$c(m.data),data:m.data})}),f.length&&n.set(c,{oldSeries:f,newSeries:[{dataGroupId:l,data:s,divide:$c(s)}]})}else{var p=o.get(u);if(p){var h=n.get(p.key);h||(h={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:$c(p.data)}],newSeries:[]},n.set(p.key,h)),h.newSeries.push({dataGroupId:l,data:s,divide:$c(s)})}}}}),n}function FH(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function RQe(e,t,n,r){var o=[],i=[];q(ur(e.from),function(l){var s=FH(t.oldSeries,l);s>=0&&o.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:$c(t.oldData[s]),groupIdDim:l.dimension})}),q(ur(e.to),function(l){var s=FH(n.updatedSeries,l);if(s>=0){var u=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:$c(u),groupIdDim:l.dimension})}}),o.length>0&&i.length>0&&One(o,i,r)}function LQe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){q(ur(r.seriesTransition),function(o){q(ur(o.to),function(i){for(var l=r.updatedSeries,s=0;s<l.length;s++)(i.seriesIndex!=null&&i.seriesIndex===l[s].seriesIndex||i.seriesId!=null&&i.seriesId===l[s].id)&&(l[s][rS]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var o=DQe(n);if(o.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)q(ur(i),function(h){RQe(h,o,r,n)});else{var l=IQe(o,r);q(l.keys(),function(h){var v=l.get(h);One(v.oldSeries,v.newSeries,n)})}q(r.updatedSeries,function(h){h[rS]&&(h[rS]=!1)})}for(var s=t.getSeries(),u=o.oldSeries=[],c=o.oldDataGroupIds=[],d=o.oldData=[],f=0;f<s.length;f++){var p=s[f].getData();p.count()<Bne&&(u.push(s[f]),c.push(s[f].get("dataGroupId")),d.push(p))}})}vn([Y8e]);vn([$8e]);vn([fHe,THe,PHe,m7e,T7e,pWe,$We,kGe,YGe,QGe,l9e,tUe,_Ue,PUe,JUe,rYe,pYe,CYe,NYe,PYe,jYe,Mje]);vn(Xje);vn(wKe);vn(Nee);vn(IKe);vn(mte);vn(VKe);vn(jKe);vn(IXe);vn(JXe);vn(oC);vn(mqe);vn(bqe);vn(Dqe);vn(Lqe);vn(Hqe);vn(Kqe);vn(aZe);vn(SZe);vn(bne);vn(Cne);vn(HZe);vn(Ene);vn(_ne);vn(jZe);vn(iQe);vn(uQe);vn(LQe);vn(l8e);const PQe=Object.freeze(Object.defineProperty({__proto__:null,Axis:bl,ChartView:rr,ComponentModel:Cn,ComponentView:wr,List:go,Model:Gn,PRIORITY:zQ,SeriesModel:cr,color:MVe,connect:m$e,dataTool:x$e,dependencies:J5e,disConnect:g$e,disconnect:XQ,dispose:y$e,env:wn,extendChartView:K6e,extendComponentModel:U6e,extendComponentView:Y6e,extendSeriesModel:j6e,format:I6e,getCoordinateSystemDimensions:C$e,getInstanceByDom:VR,getInstanceById:b$e,getMap:S$e,graphic:O6e,helper:E6e,init:KQ,innerDrawElementOnCanvas:IR,matrix:sVe,number:N6e,parseGeoJSON:vN,parseGeoJson:vN,registerAction:us,registerCoordinateSystem:QQ,registerLayout:JQ,registerLoading:WR,registerLocale:mR,registerMap:eJ,registerPostInit:qQ,registerPostUpdate:ZQ,registerPreprocessor:zR,registerProcessor:$R,registerTheme:FR,registerTransform:tJ,registerUpdateLifecycle:SE,registerVisual:Od,setCanvasCreator:w$e,setPlatformAPI:YX,throttle:CE,time:B6e,use:vn,util:R6e,vector:KPe,version:Q5e,zrUtil:$Pe,zrender:dFe},Symbol.toStringTag,{value:"Module"}));function VQe(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function FQe(e){return typeof e=="function"?e():a.unref(e)}const zQe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function zH(e){var t;const n=FQe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $Qe=zQe?window:void 0;function HQe(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function WQe(e){const t=HQe();return a.computed(()=>(t.value,!!e()))}function GQe(e,t,n={}){const{window:r=$Qe,...o}=n;let i;const l=WQe(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},u=a.computed(()=>Array.isArray(e)?e.map(f=>zH(f)):[zH(e)]),c=a.watch(u,f=>{if(s(),l.value&&r){i=new ResizeObserver(t);for(const p of f)p&&i.observe(p,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return VQe(d),{isSupported:l,stop:d}}const Cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAZdElEQVR4nO2dTZAkx3Xff5nVXVXd073TGMxgd4jF7sBYQAYsUKDoMBlBQAQs2bSkCxjBMOQTV0EfFD6BBx90cDh4ssJy0HvxybSNiyMsSjJthRyKsC3LDDNkW6EPyBRkWgChhUhosdjBomf6q74ynw9ZWVXdM7M7u9jd7sXOP6Kns/K7Jv/53suXWdVKRDjBCQD0sjtwgtXBCRlOUOGEDCeocEKGE1Q4IcMJKpyQ4QQVTshwggonZDhBhdayO/DaN4fHzfpP0PwCil0Cfh74DgWggODoQhdfHgCQ5zDJLEkqpKkgaYtpnjNJMpJckyVCmgtZBkliSVMhySxZLiRZQZJo0tSS5oIpIE0U0yQD4PFzIZ/7611+83+Mbvv/sApYumRQwbE/X0YYYLlArv8NBQC/A7wJnF/qTdR4ftkd+ChYumSQ/AaJAdCGcuD/KfDPAZSym6UT/TNYOhh+AfjFxeIX/+7gjvZ1Aa8Afwv4ceCvAvE/+LmH/97dbPBuY+lkuAVcAr4MPAeAY4OjiuU/3eW2Dwz8qVOinn6qw48/2+GJnZB2S779wXX5lbvcj7uK+4EM54F3yp6+TM5bIvRoAzktFF8FvrNY6OLPDW63vQMDryRQWgmdWPHQumbzoRaPn2uz81ibVqAwhrfaLV683QZXBatOhjfJuYDiv2N4iYB3UPxDhF8GziN8G8WlxULHJMJ54LMsDLyIVSgBJSgFgYZuR7Ex0IRtxSdOt3h0u02rBVkuFAWFbhc/n02hHd+5G18GVpkMzwMXABBeRPEm8FO0uETGy2WeFxcLHUEEP/CvAM8Cj+Y66xgErQM0gtJuYVJDaAUQtlzsxkMBj55pE0WaPBfyHJRGgpZ9KW4flEz3I1aZDN/B8AIBF4FPK2FHMl4n5DlCvgy8cwt1vZMq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dbkcWoloF2u14+mBmrlYBtIE2gGq1CgDcbrcpfS7LJVHViVIObSWgqovaS9S9pq6oikSZwb5GbSm0221UYyEfeNkDbnOJaN0vpLjl1xmuBCJiAK1qtepUOY7rq9WqYLnpQVSrVdFug9sAV5lFu93mdruNarUqoNYFtExch0zT+e12mwGIqpZNycTXut52W+ZVAQaqsk5Zn65XrYEkzyFUO2G16jioVtsnP/OZBhG1iG7vX44IwNgypHDhwoXyrl222RrYJbBjxw4A4FarRdrpk0k7lKfeArAD8RFoqUqUHFqtlq5nID9OS5TnVqtFQ+XjSlPyKsFTP6Ei+VVhTIYBMHMJQKHZbFKtVmN5BJrNWKZWq0U3TcupS2o2m9DldKQg81cgn4lK2WazSTVZGTebTQISf3SzFssk2ot8jkS6gFR+MGwR6WoxJsMQMLPdaDTMqakpNBoNTE0BgDwnIpqcnBxy0xpAA1DCcWqjgamBtETmGvlUfZDtDiAE4EMS4PJfSHWVGJNhHTCzuby8bAHA9PT0kBW9ZQDTDICWl5djmeVlWlZC09Opv3Iz+MSUpfgyqbK6njXyi4uLYmVlJbjnnnv8azH/G0V2d0ePGETkqYFSAC4C2JXMZiBWmopIpJKmp1nnLC0t0czMTKS8ixcvYteuXYhkcRHT05HSeVp9caiSCwAEAMTevXu3ZMSOLcMVwMwFAPnFxUXas2fPmv0Qi4uL2LNnD7B2QWjI84hFAHuiqnWd6qgjj5CIQowAYzJsAMycR9qKptb7FxYWUK/Xr6VqTQBxo+f/a8GYDBuEIoQBPE/AXUCaEOtZBQKeB3BX4jF2igCjvfkDGJPhKqB8g+tC1giQxP8DO8fk/g0qG58AAAAASUVORK5CYII=",UQe=["id"],YQe=a.defineComponent({name:"GChart"}),jQe=a.defineComponent({...YQe,props:{options:{type:Object,default:{}},id:{type:String,default:()=>Math.random().toString(36).substring(2,8)},theme:{type:String,default:""},mapName:{type:String,default:""},mapJson:{type:Object,default:{}},isEmpty:{type:[Boolean,Function],default:!1},description:{type:String,default:"暂无数据"}},setup(e,{expose:t,emit:n}){let r=Kn.state;const o=a.shallowRef(),i=a.shallowRef(),l=PQe,s=n,u=Object.entries(a.useAttrs()),c=e,{options:d,mapName:f,mapJson:p}=a.toRefs(c),h=a.ref("");a.onBeforeMount(()=>{window.removeEventListener("resize",y)}),a.onUnmounted(()=>{m(),i.value=null}),a.onMounted(async()=>{await a.nextTick(),h.value=r.theme,v(h.value)});const v=S=>{if(!o.value||o.value.clientWidth===0||o.value.clientHeight===0){requestAnimationFrame(()=>v(S));return}i.value=l.init(o.value,S),f.value&&p.value&&l.registerMap(f.value,p.value),s("chart",i.value),C(d.value),b(),GQe(o.value,y)},m=()=>{var S;(S=i.value)==null||S.dispose()},g=()=>{var S;(S=i.value)==null||S.clear()},y=fD(async()=>{var S;await a.nextTick(),(S=i.value)==null||S.resize()},300,!0),C=fD(async S=>{await a.nextTick(),i.value&&(i.value.setOption(S),y())},300,!0),b=()=>{if(!i.value)return;const S="on";i.value.off("click"),u.forEach(([x,k])=>{if(x.startsWith(S)&&!x.startsWith("onChart")){const _=bve(x).substring(3);i.value.on(_,(...T)=>s(_,...T))}})},w=a.computed(()=>typeof c.isEmpty=="function"?c.isEmpty(c.options):c.isEmpty);return a.watch(d,async S=>{await a.nextTick(),S&&(g(),C(S))},{deep:!0}),a.watch(()=>r.theme,async S=>{await a.nextTick(),m(),v(S)},{deep:!0}),a.watch(()=>r["gui-theme"],async S=>{await a.nextTick(),m(),v(r.theme)},{deep:!0}),t({myChart:i}),(S,x)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"g-chart"},S.$attrs),[a.withDirectives(a.createElementVNode("div",{class:"g-chart-inbox",id:e.id,ref_key:"chartRef",ref:o},null,8,UQe),[[a.vShow,!w.value]]),w.value?a.renderSlot(S.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(a.unref(Lk),a.mergeProps(S.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0),a.renderSlot(S.$slots,"default",{},void 0,!0)],16))}}),ar=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},KQe=ar(jQe,[["__scopeId","data-v-72a1370d"]]),Dt=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),Ine=Dt(KQe),XQe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAACCAYAAABMtjVDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACzSURBVHgB7ZCxDcIwEEXvYBBIQRBb2B2eAjIJYRK8hekcpkCkwYug41KDo0+JdK9++vp6fB1GoU/K3rUNgaR8d8zLTDhR9ztUTvnRM/MJ9UWoC76NqK8Npu8O9UVeTfC7gvqVxjWs/ey+ta/xa3vdL7q/Qn39zqirbdba5on6+v2m3x3qpzwememC+iJyDn7bo762idrmgPoi7IPfDKhv7ef2rX19/3v7qfGCDMMwDMP4a974DYjT8B1J0AAAAABJRU5ErkJggg==",qQe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAiCAYAAAC0nUK+AAAAAXNSR0IArs4c6QAABO5JREFUSEvtlm1sU1UYx3/n3rZrmaOwsaEskzGHIwQ3cMAHRqKIQRIngxgIMRGFKBJRUBIjMX5AkIQXhyTIJESiJIQEEjOXhSBxGzOEmYgOeXWT4DpYB4O9uEHXduvt0XPvStvRbcBnz6fm9Jzf85z/+T/PuYIEY97+s7vcLr1ga/FkjDDsqvHg7QlSWpJnrt5R/TdNnQHKlk5FAF/+7MHT6R998u1nZ8Xi1H/3jXn762vdLvtzCh4OS0prPXi7gpQuseDbq5po7vSzd9kAvLaZ1qCDE6/lxPH+hz+MLL+fcrsccx9G8xv9Ln5cPnFkzZ//5uziMU57+daXcx/oQnef8uK59c/2mtUzN47olsiC8+3+NqGJjNKTTcO5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o0qUBSlzh/Q4EV52RcJwVSW5ZG5eBUkv5r6wLh/rw4lPx1G7oYtwTTRNI0vdm7FsjUfQScIcNkb0WapAUXTuFFVDY/HAyho0eAnd+Yokqxg8NA4TM1Qc919iX6/X3PG64SgQ5plsSdvM5av/RhCmB7mqguQpUBAjWYzmpttAbWpZV265y253SMiwTAOaZNe7fcObc1WiKIXp4rzERufiHlZC9FSdxWedkdwj91uR/29+5pUiWIyUaWRVVK7x4dh0TF4aVZOv/CiYz9C9HphbrwH4+KliGRFdLQ1h9g77A7U3WsIwNWVkh05iiq7iAg9RhoMGBiXjPBBcVBkSTPqkqSqCvXb9dCO7/buxoK508FxwULWnFitTTBbrCCks+UW5RnLCSGTOI7DuLFjtIqjGA68EIlzF8uRMjoVBkMyxA4HPC4H/GIHTvx6AVMmpiFqyMAekiSoqbmDhy4XFMDeGblxnaKQ3WqEqWNSwPN8cEPN3QZU19Tj9Yz04BzLMjhadAaZs6dC0HXbatV65R/tdACOaL9ffZjJp40c6HG2eyEIAkanJAdToTos+PmcFqEhKR6SJOP6zVro9WGYPvmFkHyrF+lwOMCzNESvNCVY/kXbs/MIsEmFxcXFInrY0OBGWVZQ12CGxdoChqaRlBCLmGFRIe2ho8ON6lu3u6Iuz9pUMDkIV1VTwl31qC1apcbGxiAmelgIgKKIWhzoejQ0LRPA+dCF2tq7WjAMTeDxK3E5mwssIW/o8bzsWIGhzL7Olhuh1yMpMQEMyzzSxLQeTyjcrauHzW7XIg7XsXB6xdnZGwvPao57i/r4p9nxrIQGBBRI1JYbGRGBsLAw6HS81jc8Xg9crg44nc5AH1GPS1Pw+eQZWVsKzncx+339i3cY9+t1/EqXWwz679Z79zaBZ+D2SidlUVpiNBW19gz2sX8tDn02J3yAT78VwFwA40NOSXAbMkpkittr3Hikrq+y/heoYPkNLz8/aQAAAABJRU5ErkJggg==",JQe={class:"funds-ranking-list"},eJe={class:"left"},tJe=["src"],nJe=["src"],rJe=["src"],aJe={key:3,class:"count"},oJe={key:1,class:"count"},iJe=["title"],lJe={class:"right"},sJe=["title"],uJe={class:"unit"},cJe={key:0,class:"radio"},dJe={key:0,class:"line-box"},fJe=a.defineComponent({name:"GRankingList"}),pJe=a.defineComponent({...fJe,props:{dbOptions:{type:Object,default:{}},type:{type:String,default:"primary"},icon:{type:Boolean,default:!1},description:{type:String,default:"暂无数据"},limit:{type:Number,default:10},icons:{type:Object,default:{}},sort:{type:String,default:"desc"},index:{type:Number,default:""}},setup(e,{expose:t}){const n=e,r=a.computed(()=>n.type?`radio-line-${n.type}`:""),o=a.ref(!1);let i=a.ref([]),l=a.ref([]);const s=a.ref(null);let u=n.dbOptions.columns,c=n.dbOptions.rankingField;a.ref({});const d=a.ref(""),f=g=>{if(n.sort=="desc")return g.sort((y,C)=>C[c]-y[c]);if(n.sort=="asc")return g.sort((y,C)=>y[c]-C[c])},p=async g=>{if(Ir(g)){o.value=!0;return}else o.value=!1;i.value=g,i.value=f(i.value);const y=i.value.reduce((w,S)=>w+parseFloat(S[u[1].field]),0),C=n.dbOptions.columns.find(w=>w.field===n.dbOptions.namingField),b=n.dbOptions.columns.find(w=>w.field===n.dbOptions.rankingField);for(let w=0;w<i.value.length;w++)l.value[w]={rank:w+1,company:i.value[w][C.field]||"",value:i.value[w][b.field]||"",unit:b.unit||"",width:i.value[w].width||(parseFloat(i.value[w][u[1].field])/y*100).toFixed(2)+"%",class:i.value[w].class};d.value=n.index},h=a.ref(null),v=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),h.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),h.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=n.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{v(n.dbOptions.data)}),a.onUnmounted(()=>{h.value&&(h.value(),h.value=null)}),t({props:n,rankingListRef:s});const m=qn(n.dbOptions);return(g,y)=>{const C=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-list",ref_key:"rankingListRef",ref:s,onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[a.createElementVNode("ul",JQe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l).slice(0,n.limit),(b,w)=>{var S,x,k;return a.openBlock(),a.createElementBlock(a.Fragment,{key:`list${w}`},[a.createElementVNode("div",{class:a.normalizeClass(["funds-ranking-item",b.class])},[a.createElementVNode("div",eJe,[e.icon?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[b.rank==1?(a.openBlock(),a.createElementBlock("img",{key:0,src:(S=n==null?void 0:n.icons)!=null&&S.length?n==null?void 0:n.icons[0]:a.unref(qQe),class:"funds-icon",alt:""},null,8,tJe)):b.rank==2?(a.openBlock(),a.createElementBlock("img",{key:1,src:(x=n==null?void 0:n.icons)!=null&&x.length?n==null?void 0:n.icons[1]:a.unref(ZQe),class:"funds-icon",alt:""},null,8,nJe)):b.rank==3?(a.openBlock(),a.createElementBlock("img",{key:2,src:(k=n==null?void 0:n.icons)!=null&&k.length?n==null?void 0:n.icons[2]:a.unref(QQe),class:"funds-icon",alt:""},null,8,rJe)):(a.openBlock(),a.createElementBlock("span",aJe,a.toDisplayString(b.rank),1))],64)):(a.openBlock(),a.createElementBlock("span",oJe,a.toDisplayString(b.rank),1)),a.renderSlot(g.$slots,"label",{item:b},()=>[a.createElementVNode("span",{class:"label",title:b.company},a.toDisplayString(b.company),9,iJe)],!0)]),a.createElementVNode("div",lJe,[a.createElementVNode("span",{class:"value",title:b.value+b.unit},[a.renderSlot(g.$slots,"value",{item:b},()=>[a.createTextVNode(a.toDisplayString(b.value),1)],!0),a.createElementVNode("span",uJe,a.toDisplayString(b.unit),1)],8,sJe),e.type?(a.openBlock(),a.createElementBlock("div",cJe,[a.createElementVNode("i",{class:a.normalizeClass(["radio-line",r.value]),style:a.normalizeStyle({width:b.width})},null,6)])):a.createCommentVNode("",!0)])],2),w===d.value?(a.openBlock(),a.createElementBlock("div",dJe,y[1]||(y[1]=[a.createElementVNode("img",{src:XQe},null,-1)]))):a.createCommentVNode("",!0)],64)}),128))])],544),[[a.vShow,!o.value]]),o.value?a.renderSlot(g.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(C,a.mergeProps(g.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),hJe=ar(pJe,[["__scopeId","data-v-3bf2e932"]]),Rne=Dt(hJe),vJe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAiCAYAAAC0nUK+AAAAAXNSR0IArs4c6QAABO5JREFUSEvtlm1sU1UYx3/n3rZrmaOwsaEskzGHIwQ3cMAHRqKIQRIngxgIMRGFKBJRUBIjMX5AkIQXhyTIJESiJIQEEjOXhSBxGzOEmYgOeXWT4DpYB4O9uEHXduvt0XPvStvRbcBnz6fm9Jzf85z/+T/PuYIEY97+s7vcLr1ga/FkjDDsqvHg7QlSWpJnrt5R/TdNnQHKlk5FAF/+7MHT6R998u1nZ8Xi1H/3jXn762vdLvtzCh4OS0prPXi7gpQuseDbq5po7vSzd9kAvLaZ1qCDE6/lxPH+hz+MLL+fcrsccx9G8xv9Ln5cPnFkzZ//5uziMU57+daXcx/oQnef8uK59c/2mtUzN47olsiC8+3+NqGJjNKTTcO5pe9al7+wODf14mDbJXRL7KKLXYGqL05en+/t9MVZ0dMVpGzplAsFaa78RHZWcyPCZcOaF+o6Jr61qWHhzNLFU6TatK2qiRTZcnpf/pHvxdQDxx4d3vhuPXllhQJMcOyQjWsviry90x4JLq+8n0Q47BN5e23yW5ykYjdBnfSLlQRk43ut3OnLFTP39yYKMKws8sz8HEJ9Ddw+bccuIDyA0MAMY8u7wKiMFWJ27R8PD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pUiWIyUaWRVVK7x4dh0TF4aVZOv/CiYz9C9HphbrwH4+KliGRFdLQ1h9g77A7U3WsIwNWVkh05iiq7iAg9RhoMGBiXjPBBcVBkSTPqkqSqCvXb9dCO7/buxoK508FxwULWnFitTTBbrCCks+UW5RnLCSGTOI7DuLFjtIqjGA68EIlzF8uRMjoVBkMyxA4HPC4H/GIHTvx6AVMmpiFqyMAekiSoqbmDhy4XFMDeGblxnaKQ3WqEqWNSwPN8cEPN3QZU19Tj9Yz04BzLMjhadAaZs6dC0HXbatV65R/tdACOaL9ffZjJp40c6HG2eyEIAkanJAdToTos+PmcFqEhKR6SJOP6zVro9WGYPvmFkHyrF+lwOMCzNESvNCVY/kXbs/MIsEmFxcXFInrY0OBGWVZQ12CGxdoChqaRlBCLmGFRIe2ho8ON6lu3u6Iuz9pUMDkIV1VTwl31qC1apcbGxiAmelgIgKKIWhzoejQ0LRPA+dCF2tq7WjAMTeDxK3E5mwssIW/o8bzsWIGhzL7Olhuh1yMpMQEMyzzSxLQeTyjcrauHzW7XIg7XsXB6xdnZGwvPao57i/r4p9nxrIQGBBRI1JYbGRGBsLAw6HS81jc8Xg9crg44nc5AH1GPS1Pw+eQZWVsKzncx+339i3cY9+t1/EqXWwz679Z79zaBZ+D2SidlUVpiNBW19gz2sX8tDn02J3yAT78VwFwA40NOSXAbMkpkittr3Hikrq+y/heoYPkNLz8/aQAAAABJRU5ErkJggg==",yJe={class:"headerIcon"},bJe=["src"],CJe=["src"],wJe=["src"],SJe={key:3},xJe=a.defineComponent({name:"GRankingTable"}),kJe=a.defineComponent({...xJe,props:{border:{type:Boolean,default:!1},dbOptions:{type:Object,default:{}},icon:{type:Boolean,default:!1},limit:{type:Number,default:10},description:{type:String,default:"暂无数据"},icons:{type:Object,default:{}},sort:{type:String,default:"desc"}},setup(e,{expose:t}){const n=e,r=a.ref(!1);let o=a.ref([]);const i=a.ref(null);let l=n.dbOptions.columns,s=n.dbOptions.rankingField;const u=v=>{if(n.sort=="desc")return v.sort((m,g)=>g[s]-m[s]);if(n.sort=="asc")return v.sort((m,g)=>m[s]-g[s])};a.ref({});const c=n.dbOptions.columns.find(v=>v.field===n.dbOptions.namingField);l[0]=c;const d=async v=>{if(Ir(v)){r.value=!0;return}else r.value=!1;o.value=JSON.parse(JSON.stringify(v)),u(o.value)},f=a.ref(null),p=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await d(g),f.value=v.onDataUpdate(()=>{const y=v.mergeData();d(y)})}else if(Vn(v))await d(v.sourceData),f.value=v.onDataUpdate(()=>{d(v.sourceData)});else{const g=(m=n.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);d(y);return}};a.onMounted(()=>{p(n.dbOptions.data)}),a.onUnmounted(()=>{f.value&&(f.value(),f.value=null)}),t({props:n,rankingTableRef:i});const h=qn(n.dbOptions);return(v,m)=>{const g=a.resolveComponent("el-table-column"),y=a.resolveComponent("el-table"),C=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-table",ref_key:"rankingTableRef",ref:i,onContextmenu:m[0]||(m[0]=(...b)=>a.unref(h)&&a.unref(h)(...b))},[a.createVNode(y,a.mergeProps({data:a.unref(o).slice(0,n.limit),border:n.border,stripe:"",style:{width:"100%"}},v.$attrs,{"header-cell-style":{background:"var(--el-fill-color-lighter)",color:"var(--el-text-color-primary)",fontWeight:600}}),{default:a.withCtx(()=>[a.createVNode(g,{type:"index",width:"70",label:"排名","header-align":"center",align:"center"},a.createSlots({_:2},[e.icon?{name:"default",fn:a.withCtx(({$index:b})=>{var w,S,x;return[a.createElementVNode("div",yJe,[b+1==1?(a.openBlock(),a.createElementBlock("img",{key:0,src:(w=n==null?void 0:n.icons)!=null&&w.length?n==null?void 0:n.icons[0]:a.unref(vJe),style:{width:"33%",height:"33%"},alt:""},null,8,bJe)):b+1==2?(a.openBlock(),a.createElementBlock("img",{key:1,src:(S=n==null?void 0:n.icons)!=null&&S.length?n==null?void 0:n.icons[1]:a.unref(mJe),style:{width:"33%",height:"33%"},alt:""},null,8,CJe)):b+1==3?(a.openBlock(),a.createElementBlock("img",{key:2,src:(x=n==null?void 0:n.icons)!=null&&x.length?n==null?void 0:n.icons[2]:a.unref(gJe),style:{width:"33%",height:"33%"},alt:""},null,8,wJe)):(a.openBlock(),a.createElementBlock("span",SJe,a.toDisplayString(b+1),1))])]}),key:"0"}:void 0]),1024),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l),(b,w)=>(a.openBlock(),a.createBlock(g,{prop:b.field,label:b.title,width:b.width,key:w,"header-align":"center",align:"center"},{header:a.withCtx(({column:S})=>[a.renderSlot(v.$slots,`header-${b.field}`,{column:S},()=>[a.createTextVNode(a.toDisplayString(S.label),1)],!0)]),default:a.withCtx(({row:S})=>[a.renderSlot(v.$slots,`default-${b.field}`,{row:S},()=>[a.createTextVNode(a.toDisplayString(S[b.field]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},16,["data","border"])],544),[[a.vShow,!r.value]]),r.value?a.renderSlot(v.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(C,a.mergeProps(v.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),EJe=ar(kJe,[["__scopeId","data-v-7e22a191"]]),Lne=Dt(EJe),_Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJcSURBVHgB7ZdPbhMxFMa/Z+cPUiGEG8wVUC8QdrBrT9Ag0ewgzAkSTpA23aAWqeEGZQU7wo5Npdygc4QhAqmB2sZOUqmgqT32uEJI+W0mGT+/fPOe35sXYMOGfwvh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msc7RAtAcX1EfmVuKuFzCZOMdlbkxGe3ABd3AqrxcqM7tbFA4FDckCyzs7+SoxAZhgJGYNMkgWOFMgBbsB8WIfGeQJ3G4W+OVFI3U0kSyBfpsb4nDGDk6QSJ4HPdwskAj7SCRfoAIpRwaJpHSSLhXoF0xd/9vHmGYdLSXUlHhUjm2lWocIvDhpc09y2UUmvhuV93bYZBe3xQTfObpoAZmMzlR2+CsUyeWJE7iNSlVWFMhAMdLYRQmct7dr5MJ408SfJ36LOxj6ByADeUn1rBg/D868eIpEGFz5mVJrn5Qk8gDLzBYJsEPUpJ0+DxIuEhZdxw6w6fPg2NaSifqEkbh17FSJsUxeHexgoC07PjFSxv/scUvOHc0x5ctKRGIsk91J5vWsDtnkZH0rrU68+GvCzMuKRSKtCAyVndiy8pPWhgXmVcdQyv5Wk3xwX8V8mL3y1yL4WdtvN6yTTxoT2mVadgKBAAAAAElFTkSuQmCC",AJe={class:"region-rank-list"},DJe=["onClick"],MJe={class:"num"},NJe={class:"title"},BJe={key:0},OJe={key:1},IJe=["onClick"],RJe={class:"num"},LJe={class:"title"},PJe={key:0},VJe={key:1},FJe=["onClick"],zJe={class:"num"},$Je={class:"title"},HJe={key:0},WJe={key:1},GJe={class:"rank-cup-num"},UJe={key:0,src:_Je,class:"icon-margin",alt:""},YJe={key:1,src:TJe,class:"icon-margin",alt:""},jJe={key:2,class:"icon-margin"},KJe=a.defineComponent({name:"GRankingCup"}),XJe=a.defineComponent({...KJe,props:{dbOptions:{type:Object,default:{}},title:{type:String,default:""},icons:{type:Array,default:[]},rankingColors:{type:Array,default:[]},description:{type:String,default:"暂无数据"},limit:{type:Number,default:10},sort:{type:String,default:"desc"},bracket:{type:Boolean,default:!0}},emits:["itemClick"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref({}),l=a.ref(!1);a.ref([]);let s=a.ref([]),u=a.ref([]),c=a.ref([]),d=o.dbOptions.rankingField,f=o.dbOptions.rankingChgField,p=o.dbOptions.namingField;const h=a.ref(0);a.ref({});let v=a.ref(!1);i.value=o.dbOptions.columns&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(E=>E.field===o.dbOptions.rankingField);const m=E=>{if(o.sort=="desc")return E.sort((A,D)=>D[d]-A[d]);if(o.sort=="asc")return E.sort((A,D)=>A[d]-D[d])},g=async E=>{if(Ir(E)){l.value=!0;return}else l.value=!1;v.value=!1;let A=o.dbOptions.columns;f?c.value=A:c.value=A.filter(M=>M.field==d||M.field==p);let D=JSON.parse(JSON.stringify(E)),N=JSON.parse(JSON.stringify(m(D))).slice(0,o.limit);s.value=y(N.slice(0,3)),u.value=N.slice(3),v.value=!0,h.value++},y=E=>(E.length<2||([E[0],E[1]]=[E[1],E[0]]),E),C=(E,A)=>A?E===f?Math.abs(A):A:E===f?"持平":"",b=E=>{if(f==E.field)return"rank-cup-text-change";if(d==E.field)return"rank-cup-text-rate"},w=(E,A)=>{if(f&&f==E.field&&A[E.field]>0)return{color:"#0E9266"};if(f&&f==E.field&&A[E.field]<0)return{color:"#D14A41"}},S=(E,A)=>{r("itemClick",E,A+1,"cup")},x=(E,A,D)=>{const B=u.value.findIndex(N=>N===E);r("itemClick",E,B+4,"table")},k=a.ref(null),_=async E=>{var A;if(Un(E)){await E.loadData();let D=E.mergeData();await g(D),k.value=E.onDataUpdate(()=>{const B=E.mergeData();g(B)})}else if(Vn(E))await g(E.sourceData),k.value=E.onDataUpdate(()=>{g(E.sourceData)});else{const D=(A=o.dbOptions)==null?void 0:A.dataField;let B=await Xn(E,D);g(B);return}};a.onMounted(()=>{_(o.dbOptions.data)}),a.onUnmounted(()=>{k.value&&(k.value(),k.value=null)}),t({props:o,getIsFinish(){return v.value}});const T=qn(o.dbOptions);return(E,A)=>{const D=a.resolveComponent("g-table-column"),B=a.resolveComponent("g-table"),N=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-ranking-table-cup",onContextmenu:A[0]||(A[0]=(...M)=>a.unref(T)&&a.unref(T)(...M))},[a.createElementVNode("div",AJe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),(M,O)=>(a.openBlock(),a.createElementBlock("div",{class:"region-rank-list-box",key:O},[O==0?(a.openBlock(),a.createElementBlock("div",{key:0,class:"region-rank-list-inbox-1",onClick:P=>S(M,O)},[a.createElementVNode("div",MJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",NJe,[e.bracket?(a.openBlock(),a.createElementBlock("span",BJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",OJe,"】")):a.createCommentVNode("",!0)])],8,DJe)):a.createCommentVNode("",!0),O==1?(a.openBlock(),a.createElementBlock("div",{key:1,class:"region-rank-list-inbox-2",onClick:P=>S(M,O)},[a.createElementVNode("div",RJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",LJe,[e.bracket?(a.openBlock(),a.createElementBlock("span",PJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",VJe,"】")):a.createCommentVNode("",!0)])],8,IJe)):a.createCommentVNode("",!0),O==2?(a.openBlock(),a.createElementBlock("div",{key:2,class:"region-rank-list-inbox-3",onClick:P=>S(M,O)},[a.createElementVNode("div",zJe,a.toDisplayString(M[a.unref(d)])+a.toDisplayString(i.value.unit),1),a.createElementVNode("div",$Je,[e.bracket?(a.openBlock(),a.createElementBlock("span",HJe,"【")):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(M[a.unref(c)[0].field])+" ",1),e.bracket?(a.openBlock(),a.createElementBlock("span",WJe,"】")):a.createCommentVNode("",!0)])],8,FJe)):a.createCommentVNode("",!0)]))),128))]),(a.openBlock(),a.createBlock(B,{data:a.unref(u),"header-cell-class-name":"region-header","cell-class-name":"custom-cell",border:!1,onRowClick:x,key:h.value},{default:a.withCtx(()=>[a.createVNode(D,{label:"排行",type:"index",width:"90",align:"center"},{default:a.withCtx(M=>[a.createElementVNode("div",GJe,a.toDisplayString(M.$index+4),1)]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(M,O)=>(a.openBlock(),a.createBlock(D,{prop:M.field,label:M.title,width:M.width,key:O,align:"center"},{default:a.withCtx(P=>[a.createElementVNode("div",{class:a.normalizeClass(["rank-cup-flex rank-cup-text",b(M)]),style:a.normalizeStyle(w(M,P.row))},[a.unref(f)&&a.unref(f)==M.field&&P.row[M.field]>0?(a.openBlock(),a.createElementBlock("img",UJe)):a.createCommentVNode("",!0),a.unref(f)&&a.unref(f)==M.field&&P.row[M.field]<0?(a.openBlock(),a.createElementBlock("img",YJe)):a.createCommentVNode("",!0),a.unref(f)&&a.unref(f)==M.field&&(P.row[M.field]==0||!P.row[M.field])?(a.openBlock(),a.createElementBlock("span",jJe," - ")):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["initial-lineheight",b(M)])},a.toDisplayString(C(M.field,P.row[M.field]))+a.toDisplayString(P.row[M.field]&&M.unit?M.unit:""),3)],6)]),_:2},1032,["prop","label","width"]))),128))]),_:1},8,["data"]))],544),[[a.vShow,!l.value]]),l.value?a.renderSlot(E.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(N,a.mergeProps(E.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),qJe=ar(XJe,[["__scopeId","data-v-09606f3d"]]),Pne=Dt(qJe),ZJe={key:0,class:"g-ranking-tooltip"},QJe={class:"ranking-rb-list"},JJe=["onClick"],eet={class:"item-inbox"},tet=["title"],net={class:"item-inbox-target"},ret={class:"target"},aet={key:0,class:"text"},oet={class:"describe"},iet={class:"content"},set={class:"unit"},uet=a.defineComponent({name:"GRankingRb"}),cet=a.defineComponent({...uet,props:{dbOptions:{type:Object,default:{}},orderType:{type:String,default:"red"},tooltip:{type:Array,default:null},title:{type:String,default:""},description:{type:String,default:"暂无数据"},rbColor:{type:String,default:""},limit:{type:Number,default:5}},emits:["row-click"],setup(e,{expose:t,emit:n}){a.useCssVars(k=>({e3d65d1a:C.value}));const r=e,o=n,i=a.ref(!1);let l=a.ref([]),s=a.ref([]),u=r.dbOptions.rankingField,c=r.dbOptions.namingField,d=r.dbOptions.describeField,f=r.orderType=="red"?"desc":"asc",p=r.limit,h=r.title;a.ref({});let v=a.ref(!1);const m=(k,_,T)=>k.sort((A,D)=>_==="asc"?A[u]-D[u]:_==="desc"?D[u]-A[u]:0).slice(0,T),g=(k,_)=>{o("row-click",k)},y=()=>r.rbColor?{color:r.rbColor}:r.orderType=="red"?{color:"#D14A41"}:{color:"#061957 "},C=a.computed(()=>r.orderType=="red"?"#D14A41":"#061957 "),b=async k=>{if(Ir(k)){i.value=!0;return}else i.value=!1;v.value=!1;let _=r.dbOptions.columns;s.value=_.filter(E=>E.field==c||E.field==u||E.field==d);let T=JSON.parse(JSON.stringify(k));l.value=m(T,f,p),v.value=!0},w=a.ref(null),S=async k=>{var _;if(Un(k)){await k.loadData();let T=k.mergeData();await b(T),w.value=k.onDataUpdate(()=>{const E=k.mergeData();b(E)})}else if(Vn(k))await b(k.sourceData),w.value=k.onDataUpdate(()=>{b(k.sourceData)});else{const T=(_=r.dbOptions)==null?void 0:_.dataField;let E=await Xn(k,T);b(E);return}};a.onMounted(()=>{S(r.dbOptions.data)}),a.onUnmounted(()=>{w.value&&(w.value(),w.value=null)});const x=qn(r.dbOptions);return t({props:r,getIsFinish(){return v.value}}),(k,_)=>{const T=a.resolveComponent("WarningFilled"),E=a.resolveComponent("el-icon"),A=a.resolveComponent("el-tooltip"),D=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:"g-ranking-table-rb",onContextmenu:_[0]||(_[0]=(...B)=>a.unref(x)&&a.unref(x)(...B))},[a.createElementVNode("div",{class:"ranking-title",style:a.normalizeStyle(y())},[a.createTextVNode(a.toDisplayString(a.unref(h))+" ",1),r.tooltip?(a.openBlock(),a.createElementBlock("span",ZJe,[a.createVNode(A,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.tooltip,B=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(B)+" ",1),_[1]||(_[1]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(E,null,{default:a.withCtx(()=>[a.createVNode(T,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)],4),a.createElementVNode("div",QJe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l),(B,N)=>(a.openBlock(),a.createElementBlock("div",{class:"item",onClick:M=>g(B)},[a.createElementVNode("div",{class:a.normalizeClass(r.orderType=="black"?"top black":"top red")}," TOP"+a.toDisplayString(N+1),3),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),M=>(a.openBlock(),a.createElementBlock("div",eet,[M.field==r.dbOptions.namingField?(a.openBlock(),a.createElementBlock("div",{key:0,class:"text",title:B[M.field]},[a.renderSlot(k.$slots,`default-${M.field}`,{row:B,column:M},()=>[a.createTextVNode(a.toDisplayString(B[M.field]),1)],!0)],8,tet)):a.createCommentVNode("",!0)]))),256)),a.createElementVNode("div",net,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),M=>(a.openBlock(),a.createElementBlock("div",ret,[M.field==r.dbOptions.describeField?(a.openBlock(),a.createElementBlock("div",aet,[a.createElementVNode("div",oet,a.toDisplayString(B[M.field]),1)])):a.createCommentVNode("",!0),M.field!=r.dbOptions.namingField&&M.field!=r.dbOptions.describeField?a.renderSlot(k.$slots,`default-${M.field}`,{key:1,row:B,column:M},()=>[a.createElementVNode("div",iet,a.toDisplayString(B[M.field]),1),a.createElementVNode("div",set,a.toDisplayString(M.unit),1)],!0):a.createCommentVNode("",!0)]))),256))])],8,JJe))),256))])],32),i.value?a.renderSlot(k.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(D,a.mergeProps(k.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),det=ar(cet,[["__scopeId","data-v-330391d1"]]),Vne=Dt(det),fet=a.defineComponent({name:"GReserve"}),pet=a.defineComponent({...fet,props:{description:{type:String,default:"暂无数据"},color:{type:Array,default:[]},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=n,i=It(),l=JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors")),s=e;let u=a.ref(0);const c=a.ref(!1),d=a.ref(null),f=a.ref([]),p=a.ref([]);let h=a.ref([]);const v=s.dbOptions.columns.map(x=>({name:x.title,unit:(x==null?void 0:x.unit)||""})),m=s.dbOptions.yAxis.yAxises,g=a.ref();a.ref({});const y=async x=>{if(Ir(x)){c.value=!0;return}else c.value=!1;h.value=x,p.value=[],f.value=[],h.value&&h.value.forEach(T=>{f.value.push(T[s.dbOptions.xNameField])});const k=s.dbOptions.columns.map(T=>T.title);let _=[];s.dbOptions.yAxis&&s.dbOptions.yAxis.yAxisFields?_=s.dbOptions.columns.map(T=>{const E=s.dbOptions.yAxis.yAxisFields.find(A=>A.field===T.field);return E?{...T,...E}:T}).concat(s.dbOptions.yAxis.yAxisFields.filter(T=>!s.dbOptions.columns.some(E=>E.field===T.field))):_=s.dbOptions.columns,_.forEach((T,E)=>{const A=a.reactive({name:T.title,type:T.type,data:[],barWidth:T.type==="bar"?20:"",barGap:T.type==="bar"?.8:"",yAxisIndex:T.type==="line"?1:0,smooth:T.type==="line"?!0:"",tooltip:{valueFormatter:D=>`${D} ${T.unit}`},itemStyle:{normal:{color:T.type=="bar"?i.chartOption.colors[E]:i.chartOption.auxiliaryColors[0]}}});h.value.forEach(D=>{A.data.push(D[T.field])}),p.value.push(A)}),g.value={color:s.color?s.color:l,backgroundColor:i.chartOption.backgroundColor,grid:{...i.chartOption.grid,top:"15%",bottom:"12%",containLabel:!0},tooltip:{trigger:"axis",formatter:T=>{let E=T[0].name+"<br/>";return T.forEach((A,D)=>{!A.value||A.value===0||(E+=`<span style="display:inline-block;margin-right:5px;border-radius:2px;width:10px;height:10px;background-color:${A.color};"></span>${A.seriesName} : ${A.value||"-"}${A.value?v[D].unit:""}<br/>`)}),E}},legend:{trigger:"item",left:"center",show:!0,top:"bottom",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(r).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:[{type:"category",data:[],axisPointer:{type:"shadow"},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{fontSize:i.chartOption.fontSize,padding:i.chartOption.padding,color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",name:m[0].name||"",show:!0,axisLine:{show:!1,lineStyle:{type:"solid",width:"1"}},axisLabel:{formatter:"{value}"+v[0].unit,color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},splitLine:{lineStyle:{type:"dashed"}},nameTextStyle:{align:"center",padding:[3,4,0,-40],color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}},{type:"value",name:m[1].name||"",show:!0,axisLine:{show:!1,lineStyle:{type:"solid",width:"1"}},axisLabel:{formatter:"{value}%",color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")},splitLine:{show:!1,lineStyle:{type:"dashed"}},nameTextStyle:{align:"center",padding:[3,4,0,34],color:getComputedStyle(r).getPropertyValue("--el-text-color-primary")}}],series:[]},g.value.xAxis[0].data=f.value,g.value.legend.data=k,g.value.series=p.value};t({props:s,reserveRef:d});const C=x=>{o("chart-click",x)},b=a.ref(null),w=async x=>{var k;if(Un(x)){await x.loadData();let _=x.mergeData();await y(_),b.value=x.onDataUpdate(()=>{const T=x.mergeData();y(T)})}else if(Vn(x))await y(x.sourceData),b.value=x.onDataUpdate(()=>{y(x.sourceData)});else{const _=(k=s.dbOptions)==null?void 0:k.dataField;let T=await Xn(x,_);y(T);return}};a.onMounted(()=>{w(s.dbOptions.data)}),a.onUnmounted(()=>{b.value&&(b.value(),b.value=null)});const S=qn(s.dbOptions);return(x,k)=>{const _=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-reserve",onContextmenu:k[0]||(k[0]=(...T)=>a.unref(S)&&a.unref(S)(...T))},[(a.openBlock(),a.createBlock(_,{options:g.value,ref_key:"reserveRef",ref:d,isEmpty:c.value,description:e.description,onClick:C,key:a.unref(u)},null,8,["options","isEmpty","description"]))],32)}}}),het=ar(pet,[["__scopeId","data-v-9a4e6cc2"]]),Fne=Dt(het),zne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABWSURBVHgB7ZO7DcAgDAVfMkn2b0ImICNkE9jgxeYjuQH3iJPswnetAYHkJRNlEiu33mBkF5ZUIlmBY+KhG2OyF+CEww52sGaQveCb+Md/XqVFwYi3yx/PyZH5MazHfAAAAABJRU5ErkJggg==",$ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGUSURBVHgBzZiNWYMwEIaPLmDdgA10hIzQEXADnUDcoE6gG9gN7Aa6AXWCdoPPuyZYpJAfkpK+z5M2QBI+juPugCgSACW3PbdG+pQbFrHBiU/KibFOnyVFsKA46oF9j5QL4zd99pQDPnGFcRTNzYh18ji3WABuFE1gqlNXHmNWNAcjj/oQEiyDQ8AUC9We40RMRYEU3Q3o0C8L9f9vTL/dDrnyHbeDadL/6fT/9hdFcTgKYhHPpINZVIRNxFoEga4I8aFXuh5ejr9spBr5qf9JQ15RwwmZD6yg48dcyLkq602EDnwNLo+IuScfZhDVILTc5QlLbh9IT4OY2psnvyMdX3DkN59ctqV0fLcpYgwfQYrSoVwDCtcAueekk2oqbm1WWjjElInFCNZH3XXL/OJEGFGCLlGGKttBl6A7ciP+8MTtgXTR5cJnzXPgVzuvu3HFzPGJW+HFIHSiHWMLy2uOEbaxzFdTBA1daSNCA9aoMJwTw9//ocN8i2TmGhO/bOC81nqjUDqLSIItKRKc/GuHfnXY4Re69BeY1U9v5wAAAABJRU5ErkJggg==",vet={key:0,class:"timeline-state"},met={key:0,src:zne,alt:""},get={key:1,src:$ne,alt:""},yet={class:"txt"},bet={class:"txt"},Cet={class:"timeline-body"},wet={class:"timeline-box"},xet={class:"line-bg"},ket={key:0,src:zne,alt:""},Eet={key:1,src:$ne,alt:""},_et={class:"planTime"},Tet={class:"finishTime"},Aet=["onClick"],Det=["onClick"],Met={class:"time-text"},Net=a.defineComponent({name:"GPlan"}),Bet=a.defineComponent({...Net,props:{isYearDate:{type:Boolean,default:!0},isLegend:{type:Boolean,default:!0},description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(!1),l=a.ref({}),s=a.ref([]),u=a.ref(0),c=a.ref(null),d={"提前/按时完成":{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-completed"),isOverTme:!1},逾期完成:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-overdue"),isOverTime:!0},未到期:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-notYetDue"),isOverTime:!1},已逾期:{color:getComputedStyle(document.documentElement).getPropertyValue("--pn-uncompleted"),isOverTime:!0}},f={completed:{remark:"提前/按时完成",status:"completed",icon:"check",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-completed")},overdue:{remark:"逾期完成",status:"overdue",icon:"info",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-overdue")},notYetDue:{remark:"未到期",status:"notYetDue",icon:"none",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-notYetDue")},uncompleted:{remark:"已逾期",status:"uncompleted",icon:"warning",color:getComputedStyle(document.documentElement).getPropertyValue("--pn-uncompleted")}},p={里程碑:{color:getComputedStyle(document.documentElement).getPropertyValue("--el-border-color"),icon:"lvfont-nodes"},一级:{color:getComputedStyle(document.documentElement).getPropertyValue("--el-border-color"),icon:"lvfont-level1"}},h=["计划","实际"];let v=a.ref([]);const m=a.ref(null);a.ref({});const g=a.computed(()=>D=>({width:175*(D||s.value.length)+"px"})),y=a.computed(()=>D=>({left:175*(D||s.value.length)-100+"px"})),C=a.computed(()=>D=>D.icon?{background:D.color,borderRadius:"50%",width:"inherit",textAlign:"center"}:{background:D.color,borderRadius:"50%"}),b=D=>D||"/",w=D=>{const B=new Date(D[o.dbOptions.plannedDateField]).getTime(),N=D.finishTime!=="/"?new Date(D[o.dbOptions.actualDateField]).getTime():null,M=new Date().getTime();if(B&&N){if(N<=B)return f.completed.remark;if(N>=B)return f.overdue.remark}if(B&&!N){if(B<=M)return f.uncompleted.remark;if(B>M)return f.notYetDue.remark}},S=D=>new Date(D).getTime()<new Date().getTime(),x=()=>{a.nextTick(()=>{if(u.value>3){let D=c.value;window.testBox=D,D.scrollLeft=(u.value-3)*235}})},k=async D=>{if(Ir(D)){i.value=!0;return}else i.value=!1;v.value=D;const B=v.value;u.value=0,l.value={},s.value=[],(o.dbOptions.displayNodes&&o.dbOptions.displayNodes.length>0?B.filter(M=>o.dbOptions.displayNodes.includes(M[o.dbOptions.nodeCodeField])):B).map(M=>{if(o.dbOptions.plannedDateField){let O=M[o.dbOptions.plannedDateField].split("-")[0];l.value[O]?l.value[O]++:l.value[O]=1,s.value.push({color:d[w(M)]?d[w(M)].color:"",planTime:b(M[o.dbOptions.plannedDateField]),finishTime:b(M[o.dbOptions.actualDateField]),nodeName:M[o.dbOptions.nodeNameField],nodeType:o.dbOptions.belongDepartField?M[o.dbOptions.belongDepartField]:null,borderColor:d[w(M)]?d[w(M)].color:"",icon:p[M[o.dbOptions.nodeTypeField]]?p[M[o.dbOptions.nodeTypeField]].icon:null,nodeCode:M[o.dbOptions.nodeCodeField]}),S(M[o.dbOptions.plannedDateField])&&u.value++}}),x()},_=D=>{r("node-click",D)},T=a.ref(null),E=async D=>{var B;if(Un(D)){await D.loadData();let N=D.mergeData();await k(N),T.value=D.onDataUpdate(()=>{const M=D.mergeData();k(M)})}else if(Vn(D))await k(D.sourceData),T.value=D.onDataUpdate(()=>{k(D.sourceData)});else{const N=(B=o.dbOptions)==null?void 0:B.dataField;let M=await Xn(D,N);k(M);return}};a.onMounted(()=>{E(o.dbOptions.data)}),a.onUnmounted(()=>{T.value&&(T.value(),T.value=null)}),t({props:o,planRef:m});const A=qn(o.dbOptions);return(D,B)=>{const N=a.resolveComponent("el-tooltip"),M=a.resolveComponent("el-scrollbar"),O=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-plan",ref_key:"planRef",ref:m,onContextmenu:B[0]||(B[0]=(...P)=>a.unref(A)&&a.unref(A)(...P))},[e.isLegend?(a.openBlock(),a.createElementBlock("div",vet,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(p,(P,R)=>a.createElementVNode("li",{key:R},[a.createElementVNode("p",{class:a.normalizeClass(["dot",P.icon]),style:a.normalizeStyle(C.value(P))},[P.icon=="lvfont-level1"?(a.openBlock(),a.createElementBlock("img",met)):(a.openBlock(),a.createElementBlock("img",get))],6),a.createElementVNode("span",yet,a.toDisplayString(R)+"节点",1)])),64)),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(d,(P,R)=>a.createElementVNode("li",{key:R},[a.createElementVNode("p",{class:a.normalizeClass(["dot",P.icon]),style:a.normalizeStyle({background:`${P.color}`})},null,6),a.createElementVNode("span",bet,a.toDisplayString(R),1)])),64))])):a.createCommentVNode("",!0),a.createElementVNode("div",Cet,[a.createVNode(M,{ref_key:"timelineScroll",ref:c},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"year-box",style:a.normalizeStyle(g.value())},[a.createElementVNode("div",wet,[a.withDirectives(a.createElementVNode("div",xet,[a.createElementVNode("div",{class:"color-line",style:a.normalizeStyle(g.value(u.value))},null,4),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(P,R)=>(a.openBlock(),a.createElementBlock("div",{class:"time-node",key:R,style:a.normalizeStyle(y.value(R+1))},[a.createElementVNode("div",{class:a.normalizeClass(["icon",["dot",P.icon]]),style:a.normalizeStyle(C.value(P))},[P.icon=="lvfont-level1"&&(P.finishTime||P.planTime)?(a.openBlock(),a.createElementBlock("img",ket)):(a.openBlock(),a.createElementBlock("img",Eet))],6),a.createElementVNode("div",_et,a.toDisplayString(P.planTime),1),a.createElementVNode("div",Tet,a.toDisplayString(P.finishTime),1),P.nodeName.length>14?(a.openBlock(),a.createBlock(N,{key:0,placement:"top"},{content:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(P.nodeName),1)]),default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(P!=null&&P.showPopover?"name-line":"nodeName"),onClick:L=>_(P)},a.toDisplayString(P.nodeName),11,Aet)]),_:2},1024)):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(P!=null&&P.showPopover?"name-line":"nodeName"),onClick:L=>_(P)},a.toDisplayString(P.nodeName),11,Det)),P.nodeType!=null?(a.openBlock(),a.createElementBlock("div",{key:2,class:"nodeType",style:a.normalizeStyle({color:P.borderColor,border:"1px solid"+P.borderColor})},a.toDisplayString(P.nodeType),5)):a.createCommentVNode("",!0)],4))),128))],512),[[a.vShow,s.value.length]])])],4)]),_:1},512),a.createElementVNode("div",Met,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(h,(P,R)=>a.createElementVNode("div",{key:P,class:a.normalizeClass("key"+R)},a.toDisplayString(P),3)),64))])])],544),[[a.vShow,!i.value]]),i.value?a.renderSlot(D.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(O,a.mergeProps(D.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),Oet=ar(Bet,[["__scopeId","data-v-711bac52"]]),Hne=Dt(Oet),Iet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJOSURBVHgB7ZjbbdswFIZ/skVQ9EkjuBM42kD2k6G+tBPUGzidwMoGzgRNJ2he6gYo0HAD2+kC6gZ+6lNB9pAyClmUeJHdXJB8QGJJOKI+8XJ4bOCZRwZDT1aTbEAfGTgGUEh2rW3xB2s6L9PvYo0eRAmtsizhrzADY1O6c+AMJikodSmBz+m1KHFsoc0km4OzMzpMEItUxfBanIeEeoX00HDGvlDkKQ6BekwqNfL1FguQufEOzxGl2J3JBErxrvtiZKRUb/RfSKxu00yBrue2Xfw5Gc9jeka/bcxK0vNxlWcFQoT0UEmuzvCf4WAznUbs6zYZ+izteBK8hvXilhCN7xx3BPXSB/taDbMdHHtVuRnstqB2oYOTXx+4mSK10zr3IYT9EeF4YDx+IcnURxpb785N28NFFRvHy8Z56Ynfpl/FQh9s8jH9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DifQskScm4GCp7thfT1F0oSlXwYLK362RpSOIKyJFXGRWaAvMQbgqWZbUKUnUhIOQUb0GL1VXgINyzaJBwGK0yasXM1Jsfagjj5aNpZ1GFrC8i2nLnE69o5bffqq84Z+5DHRYc6bQgOIgd4VgRGkIXNOW9Wk1Z/SVYWN+SrL2GCHJOf26l1GxCM77hmyqLABqNVYKOoPTA7gILSb5MuYPLdA8d4d+kpTFRCxot3HaaRGiyOvNgbLvvmjQGl9WjyoSkk9y881IXnoT8baD2cx/G0yH7+Xnda/wEnsSndVBsOjwAAAABJRU5ErkJggg==",Let={class:"reach-table-head"},Pet={class:"txt"},Vet={class:"name"},Fet={key:1,class:"name"},zet={key:0,src:Iet,alt:"",style:{"margin-top":"-2px"}},$et={key:1,src:Ret,alt:"",style:{"margin-top":"-2px"}},Het={key:2,class:"prefix"},Wet={class:"content"},Get={key:3,class:"suffix"},Uet=a.defineComponent({name:"GNodeAchievement"}),Yet=a.defineComponent({...Uet,props:{size:{type:String,default:"small"},description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:{}}},setup(e,{expose:t}){const n=e,r=a.ref(!1),o=a.ref(null),i=["percent","compare","text","unusual","action","compare","mean"],l={background:"transparent",padding:"12px 0"},s=a.ref([]),u=a.computed(()=>C=>h.value[C]&&h.value[C].icon||""),c=a.computed(()=>C=>h.value[C]&&h.value[C].prefix||""),d=a.computed(()=>C=>h.value[C]&&h.value[C].suffix||""),f=({rowIndex:C,columnIndex:b})=>{if(C===0||C===5)return b===0?{rowspan:2,colspan:1}:{rowspan:1,colspan:1};if(C===1||C===6)return b===0?{rowspan:0,colspan:1}:{rowspan:1,colspan:1}},p=({rowIndex:C})=>`${i[C]} ${C===2?"ranking":""}`;let h=a.ref([]);a.ref({});const v=async C=>{if(Ir(C)){r.value=!0;return}else r.value=!1;h.value=C;for(var b=0;b<h.value.length;b++)s.value[b]={title:h.value[b][n.dbOptions.nodeNameField],field:h.value[b][n.dbOptions.nodeNameField],tag:h.value[b][n.dbOptions.nodeTypeField],width:160};s.value.unshift({title:"",field:"name",tag:"",align:"right",width:130});const w=n.dbOptions.displayNodes&&n.dbOptions.displayNodes.length>0?h.value.filter(S=>n.dbOptions.displayNodes.includes(S[n.dbOptions.nodeCodeField])):h.value;h.value=[{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateField).title,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateWithField).title,icon:!0,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateWithField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateWithField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateYearField).title,suffix:n.dbOptions.columns.find(S=>S.field===n.dbOptions.completionRateYearField).unit,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.completionRateYearField],S),{})},{name:n.dbOptions.columns.find(S=>S.field===n.dbOptions.abnormalField).title,...w.reduce((S,x)=>(S[x[n.dbOptions.nodeNameField]]=x[n.dbOptions.abnormalField],S),{})}]},m=a.ref(null),g=async C=>{var b;if(Un(C)){await C.loadData();let w=C.mergeData();await v(w),m.value=C.onDataUpdate(()=>{const S=C.mergeData();v(S)})}else if(Vn(C))await v(C.sourceData),m.value=C.onDataUpdate(()=>{v(C.sourceData)});else{const w=(b=n.dbOptions)==null?void 0:b.dataField;let S=await Xn(C,w);v(S);return}};a.onMounted(()=>{g(n.dbOptions.data)}),a.onUnmounted(()=>{m.value&&(m.value(),m.value=null)}),t({props:n,nodeAchRef:o});const y=qn(n.dbOptions);return(C,b)=>{const w=a.resolveComponent("mypopover"),S=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-node-achievement",ref_key:"nodeAchRef",ref:o,onContextmenu:b[0]||(b[0]=(...x)=>a.unref(y)&&a.unref(y)(...x))},[a.createVNode(a.unref(eI),{data:a.unref(h),class:"reach-table","span-method":f,"row-class-name":p,"header-cell-style":l,size:e.size,"show-overflow-tooltip":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,x=>(a.openBlock(),a.createBlock(a.unref(tI),{key:x.field,prop:x.field,label:x.title,align:x.align||"center",width:x.width,"show-overflow-tooltip":""},{header:a.withCtx(({column:k})=>[a.createElementVNode("p",Let,[x.tag?(a.openBlock(),a.createElementBlock("span",{key:0,class:"tag",style:a.normalizeStyle({color:x.tag=="里程碑"?"#316BD8":"#C18D60"})},a.toDisplayString(x.tag),5)):a.createCommentVNode("",!0),a.createElementVNode("span",Pet,a.toDisplayString(k.label),1)])]),default:a.withCtx(({row:k,$index:_})=>[k[x.field]=="异常项目"?(a.openBlock(),a.createBlock(w,{key:0,id:"41"},{default:a.withCtx(()=>[a.createElementVNode("span",Vet,a.toDisplayString(k[x.field]),1)]),_:2},1024)):x.field==="name"?(a.openBlock(),a.createElementBlock("span",Fet,a.toDisplayString(k[x.field]),1)):(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass(["texts",{fu:k[x.field]<0}])},[k[x.field]<0&&u.value(_)?(a.openBlock(),a.createElementBlock("img",zet)):a.createCommentVNode("",!0),k[x.field]>0&&u.value(_)?(a.openBlock(),a.createElementBlock("img",$et)):a.createCommentVNode("",!0),c.value(_)?(a.openBlock(),a.createElementBlock("em",Het,a.toDisplayString(c.value(_)),1)):a.createCommentVNode("",!0),a.createElementVNode("em",Wet,a.toDisplayString(k[x.field]),1),d.value(_)?(a.openBlock(),a.createElementBlock("em",Get,a.toDisplayString(d.value(_)),1)):a.createCommentVNode("",!0)],2))]),_:2},1032,["prop","label","align","width"]))),128))]),_:1},8,["data","size"])],544),[[a.vShow,!r.value]]),r.value?a.renderSlot(C.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(S,a.mergeProps(C.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),jet=ar(Yet,[["__scopeId","data-v-24191fd2"]]),Wne=Dt(jet),Ket={formatter:e=>isNaN(e)?"":e<10?`0${e}`:e.toString()};function $H(e="YYYY-MM-DD hh:mm:ss",t=""){let n=typeof t=="string"?new Date(t):t;const r=n.toString(),o=["日","一","二","三","四","五","六"],i=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"],l=r.includes("Invalid")?new Date(Date.now()-24*60*60*1e3):n,s=l.getDay(),u=l.getFullYear(),c=l.getMonth()+1,d=l.getDate(),f=l.getHours(),p=l.getMinutes(),h=l.getSeconds(),v={Y:u,M:c,D:d,W:o[s],h:f,m:p,s:h,w:i[s]};return e.replace(/(Y|M|D|h|m|s|W|w)+/gi,(m,g)=>{const y=v[g],C=m.length;return y==null?"":g==="Y"?String(y).slice(-C):C>1?Ket.formatter(Number(y)):String(y)})}function Xet(e,t){const n=new Date(e),r=new Date(t);var o;return o=(r.getFullYear()-n.getFullYear())*12,o-=n.getMonth(),o+=r.getMonth(),o<=0?0:o}const e1=It(),Gne=(e,t,n)=>{if(!e||isNaN(Number(e)))return"--";if(e==="0"||e===0||e==="0.0"||e==="0.00")return"0";let r=Number(e).toFixed(0),o="";{const i=r.toString().split(".");o=i[0].replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,"),o+""+i[1]}return o};function qet([e],t,n){if(!e)return"";e.value&&(e.value=Gne(e.value));let r=n.map(s=>s.name),o="";r.indexOf(e==null?void 0:e.axisValue);const i=`<p class='tooltip-text'> <span>当前时间:</span><span style="color:${e.color};">${e.name}</span></p>`,l=`<p class='tooltip-text'> <span>${e.seriesName}</span><span style="color:${e.color};">${e.value}万元</span></p>`;return`<div class="tooltip-cash">${o} ${i}${l}</div>`}const Zet=(e=8,t="rgba(229, 159, 98, 0.1)",n={x:0,y:0,x2:1,y2:.3})=>{const r=1/e,o=Math.round(r/10*1e3)/1e3,i=[];let l=0,s=0;for(let u=0;u<8;u++)l=Math.round(u*r*1e3)/1e3,s=Math.round((u+1)*r*1e3)/1e3,i.push({offset:l,color:t},{offset:Math.round((s-o)*1e3)/1e3,color:t},{offset:Math.round((s-o)*1e3)/1e3,color:"rgba(0,0,0,0)"},{offset:s,color:"rgba(0,0,0,0)"});return i.push({offset:s,color:t},{offset:1,color:t}),{type:"linear",...n,colorStops:i,globalCoord:!1}};function Qet(e){const t=e1.chartOption.chartTitleColor,n=e1.chartOption.chartAxisLineColor,{max:r,min:o,point:i,count:l,chart:s,cycle:u,timeline:c,start:d,tooltipLocation:f}=e,p=Math.ceil(r/3),h=Math.ceil(r*2/3);return{backgroundColor:e1.chartOption.backgroundColor,color:e1.chartOption.colors,grid:{top:"5%",left:110,right:20,bottom:"5%"},title:[{text:"资金",top:"8%",left:10,textStyle:{color:t,fontSize:16,fontWeight:"normal"}},{top:"7%",left:120,text:`{name| 现金流回正周期}{value|${l}}{unit|个月}`,textStyle:{rich:{name:{color:t,fontSize:16,fontWeight:"normal",verticalAlign:"bottom",padding:[3,8]},unit:{color:t,fontSize:16,fontWeight:"normal",verticalAlign:"bottom",padding:[3,4]},value:{color:t,fontSize:32,fontWeight:"bold"}}}}],xAxis:[{axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:c.start,max:c.ending,axisPointer:{show:!1}},{type:"category",show:!0,axisLine:{show:!0,lineStyle:{width:2}},axisTick:{show:!1},axisLabel:{show:!1,interval:0},splitLine:{show:!1},data:s.xAxis,boundaryGap:!1,axisPointer:{show:!0}}],yAxis:[{type:"value",axisLine:{show:!0},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:o||-12,max:r||12},{type:"value",min:o||-12,max:r||12,position:"left",axisLine:{lineStyle:{color:"rgba(0,0,0,0.6)",width:1}},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}],series:[{name:"时间线",type:"scatter",data:[],xAxisIndex:0,yAxisIndex:0,markLine:{silent:!0,symbol:"none",data:[{yAxis:p,symbol:"none",label:{show:!1},lineStyle:{type:"solid",color:n}},{yAxis:-h,symbol:"none",label:{show:!1},lineStyle:{type:"solid",color:n}},[{coord:[d,h],lineStyle:{type:"dashed",color:n}},{coord:[d,-h],lineStyle:{type:"dashed",color:n}}],[{coord:[u,r],lineStyle:{type:"dashed",color:n}},{coord:[u,o],lineStyle:{type:"dashed",color:n}}],[{coord:[d,h],lineStyle:{type:"dashed",color:n}},{coord:[u,h],lineStyle:{type:"dashed",color:n}}]]},markArea:{data:[[{coord:[d,h]},{coord:[u,-h]}]],itemStyle:{normal:{color:Zet()}}},markPoint:{data:c.data.map((m,g)=>{const y=!!m.title,C=Number(y),b=m.active?"#E59F62":"#3971E2",w=(m.active,"rgba(255,255,255,0.8)"),x={position:[3,c.data.length-2].includes(g)?"bottom":"top",formatter:()=>{const k=[];return m.title&&k.push(`{text|${m.title}}`),m.brief&&k.push(`{text|${m.brief}}`),m.name&&k.push(`{name|${m.name}}`),k.join(`
|
|
117
|
+
`)},rich:{text:{fontSize:12,align:"center",padding:[3,0],color:"#666666"},name:{fontSize:12,align:"center",color:"#666666",padding:[4,0]}},padding:4,backgroundColor:w,shadowColor:"rgba(0,0,0,0.2)",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:5};return{name:m.name,coord:[m.value,0,m.title],value:m.value,symbol:"circle",symbolSize:12,itemStyle:{normal:{color:"#ffffff",borderColor:b,borderWidth:3,opacity:C},emphasis:{color:"#ffffff",borderColor:b,borderWidth:3,opacity:C}},label:y?x:{show:!1}}})}},{name:"现金流:",type:"line",smooth:!0,xAxisIndex:1,yAxisIndex:1,symbolSize:20,lineStyle:{width:2.5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowBlur:15,shadowOffsetY:20},itemStyle:{color:"#3971E2",borderColor:"#fff",borderWidth:4,shadowColor:"rgba(0, 0, 0, .3)",shadowBlur:1},data:s.data.map(m=>({value:m,symbol:m==i.y?"circle":"none",label:{show:m==i.y,formatter:g=>`{text|资金需求峰值}{data|${Gne(g.value)}}{unit|万元}`,position:"bottom",rich:{text:{color:t,fontSize:16,padding:[5,0,0,0]},data:{color:t,fontSize:32,fontWeight:600,padding:[0,2,0,8]},unit:{color:t,fontSize:16,padding:[7,0,0,0]}}}}))}],tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{type:"solid"}},formatter:m=>qet(m,{unit:["万元"]},c.data),position:"right"}}}const Jet=(e,t)=>{const r=ett(t,e.dbOptions,e.tooltipLocation);return Qet(r)},ett=(e,t,n)=>{const{columns:r,nodeNameField:o,nodeCodeField:i,nodeTypeField:l,timeField:s,dataField:u,displayNodes:c,plannedCodeField:d,actualCodeField:f}=t,[p,h]=e,v=r.find(R=>R.field===o),m=r.find(R=>R.field===i),g=r.find(R=>R.field===l),y=r.find(R=>R.field===s),C=r.find(R=>R.field===u),b=r.find(R=>R.field===d),w=r.find(R=>R.field===f),S=c&&Array.isArray(c)&&c.length?c:[],x=S.length?h.filter(R=>S.includes(R[m.field])||S.includes(R[v.field])||S.includes(R[g.field])):h,k=p.map(R=>R[y.field]),_=p.map(R=>R[C.field]),T=ttt({xAxis:k,groups:_}),E=$H("YYYY-MM-DD",new Date),A=k.at(-1),D=k[0],B=h.find((R,L)=>R[m.field]===w.field)[y.field],N=[{name:E,title:"当前时间",active:!0,value:Date.parse(E)},...x.map(R=>({name:$H("YYYY-MM-DD",R[y.field]),value:Date.parse(R[y.field]),title:R[v.field]}))],M=Date.parse(h.find(R=>R[m.field]===b.field)[y.field]),O=Date.parse(D),P=Date.parse(A);return N.unshift({value:M,title:"",brief:"",name:""}),N.push({value:P,title:"",brief:"",name:""}),{max:T.round,min:-T.round,tooltipLocation:n,point:{x:T.xAxis,y:T.least},chart:{xAxis:[...k],data:[..._]},timeline:{data:N,start:O,ending:P},current:e.currentTime?Date.parse(e.currentTime):0,cycle:B?Date.parse(B):M,count:Xet(M,B)||"-",start:M||0,now:e.currentTime?Date.parse(e.currentTime):0}},ttt=({xAxis:e=[],groups:t=[]})=>{const n=t||[];if(n.length<1)return{};const r=n.map(c=>Number(c)),o=Math.min(...r),i=r.findIndex(c=>c===o),l=r.map(c=>Math.abs(c)),s=Math.max(...l),u=Math.ceil(s*3/2);return{least:o,round:u,xAxis:e[i]}},ntt=a.defineComponent({name:"GCashflow"}),rtt=a.defineComponent({...ntt,props:{description:{type:String,default:"暂无数据"},dbOptions:{type:Object,default:{}},tooltipLocation:{type:String,default:"11.5%"}},setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(!1);let l=a.ref([]),s=a.ref({});const u=a.ref(null);a.ref({});const c=async v=>{if(Ir(v)){i.value=!0;return}else i.value=!1;l.value=v,s.value=Jet(o,l.value)},d=a.ref(null),f=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await c(g),d.value=v.onDataUpdate(()=>{const y=v.mergeData();c(y)})}else if(Vn(v))await c(v.sourceData),d.value=v.onDataUpdate(()=>{c(v.sourceData)});else{const g=(m=o.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);c(y);return}};a.watch(()=>{var m;const v=(m=o.dbOptions)==null?void 0:m.data;return a.isRef(v)?v.value:v},async(v,m)=>{v&&(d.value&&(d.value(),d.value=null),await f(v))},{immediate:!0,deep:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{d.value&&(d.value(),d.value=null)}),t({props:o,cashflowRef:u});const p=v=>{r("chart-click",v)},h=qn(o.dbOptions);return(v,m)=>{const g=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-cashflow",onContextmenu:m[0]||(m[0]=(...y)=>a.unref(h)&&a.unref(h)(...y))},[a.createVNode(g,{options:a.unref(s),ref_key:"cashflowRef",ref:u,isEmpty:i.value,description:e.description,onClick:p},null,8,["options","isEmpty","description"])],32)}}}),Une=Dt(rtt),ey=document.documentElement,f2=It(),att=e=>e||"-",ott=e=>e||"",itt=(e,t,n)=>{let r=[],o=[],i=[];for(let l=0;l<e;l++)r.push({barWidth:f2.chartOption.barWidth}),i.push({splitLine:{lineStyle:{type:"dashed"}},axisLine:{show:!1},axisLabel:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")},axisTick:{show:!1},nameTextStyle:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")}}),o.push({axisTick:{show:!1},axisLabel:{color:getComputedStyle(ey).getPropertyValue("--el-text-color-primary")},axisLine:{show:!1},splitLine:{lineStyle:{type:"dashed"}}});return{backgroundColor:f2.chartOption.backgroundColor,tooltip:{show:!0,trigger:"axis",formatter:function(l){var d;for(var s=l[0].name,u=0,c=e;u<c;u++)s+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${l[u].color};"></span>`+l[u].seriesName+" : "+att(l[u].value)+" "+ott((d=n[u])==null?void 0:d.unit);return s}},legend:{trigger:"item",left:"center",show:!1,top:"bottom",itemWidth:10,itemHeight:10,borderRadius:0,textStyle:{fontSize:14,color:getComputedStyle(ey).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...f2.chartOption.grid,top:"10%",containLabel:!0},color:JSON.parse(getComputedStyle(ey).getPropertyValue("--ui-chart-colors")),xAxis:o,yAxis:i,series:r}},HH=(e,t,n,r)=>{const o=a.ref({});return o.value=In({},itt(t,n,r),e),{...a.toRefs(o.value)}},ltt=a.defineComponent({name:"GBar"}),stt=a.defineComponent({...ltt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:()=>({direction:"vertical"})},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){It(),Kn.state;const r=n,o=e,i=a.ref(),l=a.ref(null);let s=a.ref(0),u=null,c=a.ref(!1);const d=a.ref(null),f=a.ref(!1),p=async g=>{if(Ir(g)){f.value=!0;return}else f.value=!1;const y=_d(o.dbOptions.xAxisField);c.value=!1;let C=a.ref([]),b=Kl(o.options),w=[],S=[],x=[],k={series:[]};if(u=g,C.value=g,c.value=!0,C.value&&o.dbOptions){let _=[];if(o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxisFields?_=o.dbOptions.columns.map(T=>{const E=o.dbOptions.yAxis.yAxisFields.find(A=>A.field===T.field);return E?{...T,...E}:T}).concat(o.dbOptions.yAxis.yAxisFields.filter(T=>!o.dbOptions.columns.some(E=>E.field===T.field))):_=o.dbOptions.columns,_.map(T=>{let E=T.yAxisIndex?{name:"",type:"bar",yAxisIndex:T.yAxisIndex,data:[]}:{name:"",type:"bar",data:[]};C.value.map(A=>{E.data.push(A[T.field]),E.name=A[T.title]||T.title,E.stack=T.stack}),w.push(E)}),C.value.map(T=>{o.dbOptions.direction=="horizontal"?x.push(y=="function"?o.dbOptions.xAxisField(T):T[o.dbOptions.xAxisField]):S.push(y=="function"?o.dbOptions.xAxisField(T):T[o.dbOptions.xAxisField])}),o.dbOptions.direction=="horizontal"?S.push({type:"value",name:""}):x.push({type:"value",name:""}),b?(o.dbOptions.direction=="horizontal"?(b.yAxis?b.yAxis[0].data=x:b.yAxis=[{data:x}],b.xAxis?b.xAxis=In({},b.xAxis,S):b.xAxis=S):(b.xAxis?b.xAxis[0].data=S:b.xAxis=[{data:S}],b.yAxis?b.yAxis=In({},b.yAxis,x):b.yAxis=x),b.series?b.series=In({},b.series,w):b.series=w):(o.dbOptions.direction=="horizontal"?(k.xAxis=S,k.yAxis=[{data:x}]):(k.xAxis=[{data:S}],k.yAxis=x),k.series=w),o.dbOptions&&o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxises){let T=[];o.dbOptions.yAxis.yAxises.map(E=>{let A={name:E.name,type:"value",position:E.position,alignTicks:E.alignTicks,offset:E.offset};T.push(A)}),o.dbOptions.direction=="horizontal"?b.xAxis=In({},b.xAxis,T):b.yAxis=In({},b.yAxis,T)}}b?i.value=HH(b,o.dbOptions.columns.length,o.dbOptions.direction,o.dbOptions.columns):i.value=HH(k,o.dbOptions.columns.length,o.dbOptions.direction,o.dbOptions.columns)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),d.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),d.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{d.value&&(d.value(),d.value=null)}),t({props:o,barRef:l,getData(){return u},getIsFinish(){return c.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar","data-component-container":"",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:i.value},g.$attrs,{ref_key:"barRef",ref:l,isEmpty:f.value,description:e.description,onClick:v,key:a.unref(s)}),null,16,["options","isEmpty","description"]))],32)}}}),utt=ar(stt,[["__scopeId","data-v-6e7ad1f8"]]),Yne=Dt(utt),ty=It(),t1=document.documentElement,ctt=e=>e||"-",dtt=e=>e||"",ftt=e=>({backgroundColor:ty.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"axis",formatter:function(t){var i;for(var n=t[0].name,r=0,o=t.length;r<o;r++)n+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t[r].color};"></span>`+t[r].seriesName+" : "+ctt(t[r].value)+" "+dtt((i=e[r])==null?void 0:i.unit);return n}},legend:{trigger:"item",left:"center",top:"bottom",show:!0,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(t1).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...ty.chartOption.grid,containLabel:!0},xAxis:[{type:"category",axisTick:{show:!1,alignWithLabel:!0},axisLine:{show:!0},axisLabel:{fontSize:ty.chartOption.fontSize,padding:[5,5],lineHeight:18,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:ty.chartOption.fontSize,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}},{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:ty.chartOption.fontSize,color:getComputedStyle(t1).getPropertyValue("--el-text-color-primary")}}],series:[]}),WH=(e,t)=>{const n=a.ref({});return n.value=In({},ftt(t),e),{...a.toRefs(n.value)}},ptt=a.defineComponent({name:"GLine"}),htt=a.defineComponent({...ptt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(!1),s=a.ref(),u=a.ref(null);let c=null,d=a.ref(!1);const f=async g=>{if(Ir(g)){l.value=!0;return}else l.value=!1;const y=_d(o.dbOptions.xAxisField),{newDbO:C,newData:b}=p(o.dbOptions,g);g=b,d.value=!1;let w=a.ref([]),S=Kl(o.options),x=[],k=[],_={xAxis:[],series:[]};if(c=g,w.value=g,d.value=!0,w.value&&C){w.value.map(E=>{k.push(y=="function"?C.xAxisField(E):E[C.xAxisField])});let T=[];if(C.yAxis&&C.yAxis.yAxisFields?T=C.columns.map(E=>{const A=C.yAxis.yAxisFields.find(D=>D.field===E.field);return A?{...E,...A}:E}).concat(C.yAxis.yAxisFields.filter(E=>!C.columns.some(A=>A.field===E.field))):T=C.columns,T.map(E=>{let A={name:"",type:E.type||"line",yAxisIndex:E.yAxisIndex,stack:E.stack,data:[],lineStyle:E.lineStyle,areaStyle:E.areaStyle};w.value.map(D=>{A.name=D[E.title]||E.title,A.data.push(D[E.field])}),x.push(A)}),S){if(S.xAxis?S.xAxis[0].data=k:S.xAxis=[{data:k}],S.series?S.series=In({},S.series,x):S.series=x,C&&C.yAxis&&C.yAxis.yAxises){let E=[];C.yAxis.yAxises.map(A=>{let D={name:A.name,type:"value",position:A.position,alignTicks:A.alignTicks,offset:A.offset};E.push(D)}),S.yAxis=In({},S.yAxis,E)}}else _.xAxis=[{data:k}],_.series=x}S?s.value=WH(S,C.columns):s.value=WH(_,C.columns)},p=(g,y)=>{if(g.groupField){const C=g.groupField,b=g.xAxisField,w=g.columns&&g.columns[0].field,S=y,x=[...new Set(S.map(E=>E[C]))],k=[];x.forEach((E,A)=>{S.filter(B=>B[C]===E).forEach(B=>{const N=k.find(M=>M[b]===B[b]);if(N)N[`${C}${A+1}`]=E,N[`${w}${A+1}`]=B[w];else{const M={[b]:B[b],[`${C}${A+1}`]:E,[`${w}${A+1}`]:B[w]};for(let O=0;O<x.length;O++)O!==A&&(M[`${C}${O+1}`]="",M[`${w}${O+1}`]=0);k.push(M)}})});const _=[];return x.forEach((E,A)=>{g.columns.forEach((D,B)=>{_.push({title:E,field:`${D.field}${A+1}`,unit:D.unit})})}),{newDbO:{xAxisField:g.xAxisField,groupField:g.groupField,columns:_,data:k},newData:k}}else return{newDbO:g,newData:y}},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await f(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();f(b)})}else if(Vn(g))await f(g.sourceData),i.value=g.onDataUpdate(()=>{f(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);f(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,lineRef:u,getData(){return c},getIsFinish(){return d.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-line",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[a.createVNode(C,a.mergeProps({options:s.value},g.$attrs,{ref_key:"lineRef",ref:u,isEmpty:l.value,description:e.description,onClick:v}),null,16,["options","isEmpty","description"])],32)}}}),vtt=ar(htt,[["__scopeId","data-v-c412fb9d"]]),jne=Dt(vtt),ny=It(),hf=document.documentElement,mtt=e=>e||"-",gtt=e=>e||"",ytt=(e,t)=>{let n=[];for(let r=0;r<=e;r++)n.push({barWidth:ny.chartOption.barWidth});return{backgroundColor:ny.chartOption.backgroundColor,grid:{...ny.chartOption.grid,top:"10%",left:"3%",right:"3%",bottom:"12%",containLabel:!0},tooltip:{show:!0,trigger:"axis",formatter:function(r){var s;for(var o=r[0].name,i=0,l=r.length;i<l;i++){let u="";r[i].seriesType==="line"?u=`<span style="display:inline-block;margin-right:4px;width:10px;height:10px;border:2px solid ${r[i].color};border-radius:50%;"></span>`:u=`<span style="display:inline-block;margin-right:4px;border-radius:0;width:10px;height:10px;background-color:${r[i].color};"></span>`;const c=(s=t.find(d=>(d==null?void 0:d.title)===r[i].seriesName))==null?void 0:s.unit;o+="<br/>"+u+r[i].seriesName+" : "+mtt(r[i].value)+" "+gtt(c)}return o}},legend:{trigger:"item",orient:"horizontal",show:!1,top:"bottom",itemWidth:10,itemHeight:10,borderRadius:0,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(hf).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:[{type:"category",axisPointer:{type:"shadow"},axisLabel:{fontSize:ny.chartOption.fontSize,padding:ny.chartOption.padding,color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}}],yAxis:[{splitLine:{lineStyle:{type:"dashed"}},axisLabel:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}},{splitLine:{lineStyle:{type:"dashed"}},axisLabel:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")},nameTextStyle:{color:getComputedStyle(hf).getPropertyValue("--el-text-color-primary")}}],series:n}},GH=(e,t,n)=>{const r=a.ref({});return r.value=In({},ytt(t,n),e),{...a.toRefs(r.value)}},btt=a.defineComponent({name:"GBarLine"}),Ctt=a.defineComponent({...btt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=n;It();const i=a.ref(null),l=e,s=a.ref(),u=a.ref(null);let c=a.ref(0);a.ref({});const d=a.ref(!1);let f=a.ref(0);const p=async y=>{if(f.value=0,Ir(y)){d.value=!0;return}else d.value=!1;let C=a.ref([]),b=Kl(l.options),w={xAxis:[],yAxis:[],series:[]},S=[],x=[],k=[];const _=_d(l.dbOptions.xAxisField);if(C.value=y,C.value&&l.dbOptions){let T=[];if(l.dbOptions.yAxis&&l.dbOptions.yAxis.yAxisFields){let A=[...l.dbOptions.yAxis.yAxisFields];T=l.dbOptions.columns.map(D=>{const B=A.findIndex(N=>N.field===D.field);if(B!==-1){const N=A[B];return A.splice(B,1),{...D,...N}}return D}).concat(l.dbOptions.yAxis.yAxisFields.filter(D=>!l.dbOptions.columns.some(B=>B.field===D.field)))}else T=l.dbOptions.columns;let E=[];if(T.map(A=>{let D={name:A.title,type:A.type,yAxisIndex:A.yAxisIndex,stack:A.stack,data:[]};A.itemStyle&&(A.type==="bar"?D.itemStyle=In({},D.itemStyle,{color:A.itemStyle.color}):(D.itemStyle=In({},D.itemStyle,A.itemStyle),A.itemStyle.color&&(D.itemStyle=In({},D.itemStyle,{color:A.itemStyle.color})))),C.value.map(B=>{D.name=B[A.title]||A.title,D.data.push(B[A.field])}),S.push(D),A.type=="bar"&&E.push(A)}),E.length>0&&(f.value=E.length),C.value.map(A=>{x.push(_=="function"?l.dbOptions.xAxisField(A):A[l.dbOptions.xAxisField])}),b){if(b.xAxis?b.xAxis[0].data=x:b.xAxis=[{data:x}],b.yAxis?b.yAxis=In({},b.yAxis,k):b.yAxis=k,b.series){const A=Kl(l.options.series||[]),D=S.map((B,N)=>{const M=A[N]||{};return In({},M,B)});b.series=D}else b.series=S;if(l.dbOptions&&l.dbOptions.yAxis&&l.dbOptions.yAxis.yAxises){let A=[];l.dbOptions.yAxis.yAxises.map(D=>{let B={name:D.name,type:"value",position:D.position,alignTicks:D.alignTicks,offset:D.offset};A.push(B)}),b.yAxis=In({},b.yAxis,A)}}else w.xAxis=[{data:x}],w.yAxis=k,w.series=S}b?(h(b),s.value=GH(b,f.value,l.dbOptions.columns)):(h(b),s.value=GH(w,f.value,l.dbOptions.columns))},h=y=>{let C=[],b=[];return y.series.length>0&&y.series.map((w,S)=>{w.type=="bar"&&C.push(w),w.type=="line"&&b.push(w)}),y.series.length>0&&y.series.map((w,S)=>{C.length>0&&C.map((x,k)=>{var _;w.name==x.name&&((_=w.itemStyle)!=null&&_.color||(w.itemStyle=In({},w.itemStyle,{color:JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors"))[k]})))}),b.length>0&&b.map((x,k)=>{var _;w.name==x.name&&((_=w.itemStyle)!=null&&_.color||(w.itemStyle=In({},w.itemStyle,{color:JSON.parse(getComputedStyle(r).getPropertyValue("--ui-chart-colors-2"))[k]})))})}),y},v=async y=>{var C;if(Un(y)){await y.loadData();let b=y.mergeData();await p(b),u.value=y.onDataUpdate(()=>{const w=y.mergeData();p(w)})}else if(Vn(y))await p(y.sourceData),u.value=y.onDataUpdate(()=>{p(y.sourceData)});else{const b=(C=l.dbOptions)==null?void 0:C.dataField;let w=await Xn(y,b);p(w);return}};a.onMounted(()=>{v(l.dbOptions.data)}),a.onUnmounted(()=>{u.value&&(u.value(),u.value=null)}),t({props:l,barLineRef:i});const m=y=>{o("chart-click",y)},g=qn(l.dbOptions);return(y,C)=>{const b=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar-line",onContextmenu:C[0]||(C[0]=(...w)=>a.unref(g)&&a.unref(g)(...w))},[(a.openBlock(),a.createBlock(b,a.mergeProps({options:s.value},y.$attrs,{ref_key:"barLineRef",ref:i,isEmpty:d.value,description:e.description,onClick:m,key:a.unref(c)}),null,16,["options","isEmpty","description"]))],32)}}}),wtt=ar(Ctt,[["__scopeId","data-v-07ef2d93"]]),Kne=Dt(wtt),ry=It(),vf=document.documentElement,Stt=e=>e||"-",xtt=e=>e||"",ktt=e=>e||"",Ett=(e,t,n)=>{let r=[];return e=="pie"?r=[{type:"pie",radius:["0","80%"],avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]:e=="ring"?r=[{type:"pie",radius:["45%","80%"],avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]:e=="rose"&&(r=[{type:"pie",radius:["45%","80%"],roseType:"area",avoidLabelOverlap:!1,label:{show:!0,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")},emphasis:{label:{show:!0,fontSize:ry.chartOption.fontSize,color:getComputedStyle(vf).getPropertyValue("--el-text-color-primary")}},labelLine:{show:!0}}]),{backgroundColor:ry.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(o){var i=xtt(t);return i+=i?"<br/>":`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${o.color};"></span>`+o.name+" : "+Stt(o.value)+" "+ktt(n),i}},legend:{trigger:"item",show:!1,orient:"vertical",left:"left",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(vf).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...ry.chartOption.grid,top:"25%",containLabel:!0},series:r}},UH=(e,t,n,r)=>{const o=a.ref({});return o.value=In({},Ett(t,n,r),e),{...a.toRefs(o.value)}},_tt=a.defineComponent({name:"GPie"}),Ttt=a.defineComponent({..._tt,props:{description:{type:String,default:"暂无数据"},type:{type:String,default:"pie"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(),u=a.ref(null);a.ref({});const c=a.ref(!1);let d=null,f=a.ref(!1);const p=async g=>{if(Ir(g)){c.value=!0;return}else c.value=!1;const y=_d(o.dbOptions.axisField);f.value=!1;let C=a.ref([]),b=[],w={};d=g,C.value=g,f.value=!0,C.value&&o.dbOptions&&(C.value.map(x=>{let k={name:y=="function"?o.dbOptions.axisField(x):x[o.dbOptions.axisField],value:x[o.dbOptions.dataField],data:x};b.push(k)}),o.options?o.options.series?o.options.series[0].data=b:o.options.series=[{data:b}]:w.series[0].data=b);const S=o.dbOptions.columns.find(x=>x.field===o.dbOptions.dataField);o.options?s.value=UH(o.options,o.type,S.title,S==null?void 0:S.unit):s.value=UH(w,o.type,S.title,S==null?void 0:S.unit)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),i.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,pieRef:u,getData(){return d},getIsFinish(){return f.value}});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-pie",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:s.value},g.$attrs,{ref_key:"pieRef",ref:u,isEmpty:c.value,description:e.description,onClick:v,key:a.unref(l)}),null,16,["options","isEmpty","description"]))],32)}}}),Att=ar(Ttt,[["__scopeId","data-v-ce3a31b4"]]),Xne=Dt(Att),p2=It(),YH=document.documentElement,Dtt=e=>e||"-",Mtt=e=>e||"",Ntt=e=>e||"",Btt=e=>({backgroundColor:p2.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(YH).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(t){var n=`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t.color};"></span>`+Mtt(t.name);return e.map(r=>{var l;if(r.name==t.name)for(var o=0,i=r.values.length;o<i;o++)n+="<br/>"+r.values[o].name+" : "+Dtt(r.values[o].value)+" "+Ntt((l=r.values[o])==null?void 0:l.unit)}),n}},legend:{trigger:"item",left:"center",top:"bottom",bottom:10,show:!1,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(YH).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...p2.chartOption.grid,bottom:"50%",containLabel:!0},radar:{center:["50%","50%"],radius:100,indicator:[]},series:[{type:"radar",symbolSize:p2.chartOption.symbolSize,data:[]}]}),jH=(e,t)=>{const n=a.ref({});return n.value=In({},Btt(t),e),{...a.toRefs(n.value)}},Ott=a.defineComponent({name:"GRadar"}),Itt=a.defineComponent({...Ott,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(!1),s=a.ref();let u=a.ref(0),c=a.ref([]);const d=a.ref(null);a.ref({});let f=[],p=[],h=[],v=[],m=[],g={radar:{indicator:[]},series:[{}]};const y=()=>{c.value=[],p=[],h=[],v=[],f=[],m=[],g={radar:{indicator:[]},series:[{}]}},C=async x=>{if(Ir(x)){l.value=!0;return}else l.value=!1;y();const k=_d(o.dbOptions.indivedualField);c.value=x,c.value&&o.dbOptions&&(o.dbOptions.dataField&&o.dbOptions.dataField.length>0?o.dbOptions.columns.map(_=>{o.dbOptions.dataField.map(T=>{T.field==_.field&&m.push(_)})}):m=o.dbOptions.columns,m.map(_=>{f.push(_.field);let T={name:_.title,value:[]},E={name:_.title,values:[]};c.value.map(A=>{T.value.push(A[_.field]),E.values.push({name:k=="function"?o.dbOptions.indivedualField(A):A[o.dbOptions.indivedualField],value:A[_.field],unit:_.unit})}),p.push(T),v.push(E)}),c.value.map(_=>{let T={name:k=="function"?o.dbOptions.indivedualField(_):_[o.dbOptions.indivedualField],min:0},E=[];f.map(A=>{E.push(_[A])}),h.push(T)}),o.options?(o.options.radar?o.options.radar.indicator||(o.options.radar.indicator=h):o.options.radar={indicator:h},o.options.series?o.options.series[0].data=In({},o.options.series[0].data,p):o.options.series=[{data:p}]):(g.radar.indicator=h,g.series[0].data=p)),o.options?s.value=jH(o.options,v):s.value=jH(g,v)},b=async x=>{var k;if(Un(x)){await x.loadData();let _=x.mergeData();await C(_),i.value=x.onDataUpdate(()=>{const T=x.mergeData();C(T)})}else if(Vn(x))await C(x.sourceData),i.value=x.onDataUpdate(()=>{C(x.sourceData)});else{const _=(k=o.dbOptions)==null?void 0:k.dataField;let T=await Xn(x,_);C(T);return}};a.onMounted(()=>{b(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const w=qn(o.dbOptions);t({props:o,radarRef:d});const S=x=>{r("chart-click",x)};return(x,k)=>{const _=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-radar",onContextmenu:k[0]||(k[0]=(...T)=>a.unref(w)&&a.unref(w)(...T))},[(a.openBlock(),a.createBlock(_,a.mergeProps({options:s.value},x.$attrs,{ref_key:"radarRef",ref:d,isEmpty:l.value,description:e.description,onClick:S,key:a.unref(u)}),null,16,["options","isEmpty","description"]))],32)}}}),Rtt=ar(Itt,[["__scopeId","data-v-9f356e0e"]]),qne=Dt(Rtt),h2=It(),mf=document.documentElement,Ltt=e=>e||"-",Ptt=e=>e||"",Vtt=e=>e||"",Ftt=(e,t,n,r)=>({backgroundColor:h2.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(mf).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",formatter:function(o){var i=Ptt(e);return i+=i?"<br/>":`<span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${o.color};"></span>`+(n==="transfer"?o.data.orgName:o.name)+" : "+Ltt(o.value)+" "+Vtt(t),i}},legend:{trigger:"item",orient:"vertical",left:"left",show:!1,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(mf).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},xAxis:{show:!1,type:"value"},yAxis:{show:!1,type:"value"},series:[{type:"funnel",sort:"descending",left:n==="transfer"?(100-parseFloat(r))/2+"%":"20%",top:10,bottom:10,width:n==="transfer"?r:"50%",...n==="transfer"?{minSize:"46%",itemStyle:{height:118}}:{},gap:0,label:{show:!0,position:"inside",color:n==="transfer"?getComputedStyle(mf).getPropertyValue("--ui-base-white"):getComputedStyle(mf).getPropertyValue("--el-text-color-primary"),fontSize:n==="transfer"?24:h2.chartOption.fontSize,formatter:function(o){return n==="transfer"?o.data.orgName+" {value|"+o.data.value+"}":o.name},rich:{value:{fontSize:26,fontWeight:500}}},labelLine:{length:10,lineStyle:{width:1,type:"solid",color:getComputedStyle(mf).getPropertyValue("--el-text-color-primary")}},itemStyle:{borderWidth:0},emphasis:{label:{fontSize:n==="transfer"?24:h2.chartOption.fontSize,color:n==="transfer"?getComputedStyle(mf).getPropertyValue("--ui-base-white"):getComputedStyle(mf).getPropertyValue("--el-text-color-primary")}}}]}),KH=(e,t,n,r,o)=>{const i=a.ref({});return i.value=In({},Ftt(t,n,r,o),e),{...a.toRefs(i.value)}},ztt={class:"bracket-text"},$tt={class:"title"},Htt={class:"value"},Wtt=a.defineComponent({name:"GFunnel"}),Gtt=a.defineComponent({...Wtt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}},chartType:{type:String,default:"normal"},transOptions:{type:Array,default:()=>[]}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(),s=a.ref(!1),u=It();let c=a.ref(u.name),d=a.ref("45%"),f=a.ref(10),p=a.ref(0),h=a.ref([]),v=o.options;const m=a.ref(null);let g=[],y={series:[{}]};a.ref({});const C=()=>{g=[]},b=async k=>{if(C(),Ir(k)){s.value=!0;return}else s.value=!1;const _=_d(o.dbOptions.axisField);h.value=k,h.value&&o.dbOptions&&(h.value.map(E=>{let A={name:_=="function"?o.dbOptions.axisField(E):E[o.dbOptions.axisField],value:E[o.dbOptions.dataField]};o.chartType==="transfer"&&(A.orgName=A.name,A.name=A.name+" "+A.value),g.push(A)}),v?v.series?v.series.length>1?v.series.map(E=>{E.type=="funnel"&&(E.data=g)}):v.series[0].data=g:v.series=[{data:g}]:y.series[0].data=g);const T=o.dbOptions.columns.find(E=>E.field===o.dbOptions.dataField);if(v){if(o.chartType==="transfer"&&v.series&&v.series.length){let E=v.series[0];d.value=E.width?E.width:"45%",f.value=E.top?E.top:10}l.value=KH(v,T.title,T==null?void 0:T.unit,o.chartType,d.value)}else l.value=KH(y,T.title,T==null?void 0:T.unit,o.chartType,d.value)},w=async k=>{var _;if(Un(k)){await k.loadData();let T=k.mergeData();await b(T),i.value=k.onDataUpdate(()=>{const E=k.mergeData();b(E)})}else if(Vn(k))await b(k.sourceData),i.value=k.onDataUpdate(()=>{b(k.sourceData)});else{const T=(_=o.dbOptions)==null?void 0:_.dataField;let E=await Xn(k,T);b(E);return}};a.onMounted(()=>{w(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const S=qn(o.dbOptions);t({props:o,funnelRef:m});const x=k=>{r("chart-click",k)};return(k,_)=>{const T=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["g-funnel",a.unref(c)==="black-gold"?"funnel-theme-black-gold":""]),onContextmenu:_[0]||(_[0]=(...E)=>a.unref(S)&&a.unref(S)(...E))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.transOptions,(E,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(["bracket",[E.position==="left"?"left-bracket":"right-bracket"]]),style:a.normalizeStyle({height:(E.endIndex-E.startIndex)*118+"px",top:E.startIndex*118+(118/2+a.unref(f))+"px",[E.position==="left"?"left":"right"]:(100-parseFloat(a.unref(d)))/2-2.5+"%"})},[a.createElementVNode("div",ztt,[a.createElementVNode("div",$tt,a.toDisplayString(E.title),1),a.createElementVNode("div",Htt,a.toDisplayString(E.value),1)])],6))),128)),(a.openBlock(),a.createBlock(T,a.mergeProps({options:l.value},k.$attrs,{ref_key:"funnelRef",ref:m,isEmpty:s.value,description:e.description,onClick:x,key:a.unref(p)}),null,16,["options","isEmpty","description"]))],34)}}}),Utt=ar(Gtt,[["__scopeId","data-v-2dcc04ff"]]),Zne=Dt(Utt),Ytt=It(),v2=document.documentElement,jtt=e=>e||"",Ktt=(e,t)=>({backgroundColor:Ytt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(v2).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:0,max:100,center:["50%","60%"],title:{offsetCenter:[0,"-110%"]},detail:{offsetCenter:[0,"25%"]},splitNumber:2,progress:{show:!0},pointer:{show:!0,length:"75%",width:4},data:[{value:100,name:"SCORE",detail:{show:!0,color:getComputedStyle(v2).getPropertyValue("--el-text-color-primary"),formatter:function(n){return n+jtt(t)}},title:{show:!0,color:getComputedStyle(v2).getPropertyValue("--el-text-color-regular")}}]}]}),XH=(e,t,n)=>{const r=a.ref({});return r.value=In({},Ktt(t,n),e),{...a.toRefs(r.value)}},Xtt=a.defineComponent({name:"GGauge"}),qtt=a.defineComponent({...Xtt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null),l=a.ref(),s=a.ref(!1);let u=a.ref(0),c=a.ref([]),d=o.options;const f=a.ref(null);let p=[],h={series:[{}]};a.ref({});const v=()=>{p=[]},m=async b=>{if(v(),Ir(b)){s.value=!0;return}else s.value=!1;const w=_d(o.dbOptions.axisField);c.value=b,c.value&&o.dbOptions&&(c.value.map(x=>{let k={name:w=="function"?o.dbOptions.axisField(x):x[o.dbOptions.axisField],value:x[o.dbOptions.dataField]};p.push(k)}),d?d.series?d.series[0].data?d.series[0].data=In({},o.options.series[0].data,p):d.series[0].data=p:d.series=[{data:p}]:h.series[0].data=p);const S=o.dbOptions.columns.find(x=>x.field===o.dbOptions.dataField);d?l.value=XH(d,S.title,S==null?void 0:S.unit):l.value=XH(h,S.title,S==null?void 0:S.unit)},g=async b=>{var w;if(Un(b)){await b.loadData();let S=b.mergeData();await m(S),i.value=b.onDataUpdate(()=>{const x=b.mergeData();m(x)})}else if(Vn(b))await m(b.sourceData),i.value=b.onDataUpdate(()=>{m(b.sourceData)});else{const S=(w=o.dbOptions)==null?void 0:w.dataField;let x=await Xn(b,S);m(x);return}};a.watch(()=>{var w;const b=(w=o.dbOptions)==null?void 0:w.data;return a.isRef(b)?b.value:b},async(b,w)=>{!b||b===w||(i.value&&(i.value(),i.value=null),await g(b))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,gaugeRef:f});const y=b=>{r("chart-click",b)},C=qn(o.dbOptions);return(b,w)=>{const S=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-gauge",onContextmenu:w[0]||(w[0]=(...x)=>a.unref(C)&&a.unref(C)(...x))},[(a.openBlock(),a.createBlock(S,a.mergeProps({options:l.value},b.$attrs,{ref_key:"gaugeRef",ref:f,isEmpty:s.value,description:e.description,onClick:y,key:a.unref(u)}),null,16,["options","isEmpty","description"]))],32)}}}),Ztt=ar(qtt,[["__scopeId","data-v-9ccf0e1d"]]),Qne=Dt(Ztt),Qtt=It(),Jtt=e=>({backgroundColor:Qtt.chartOption.backgroundColor,title:{},tooltip:{trigger:"item"},visualMap:{show:!1,realtime:!1,calculable:!0},series:[{type:"map",map:e,label:{show:!0},data:[],nameMap:{}}]}),ent=(e,t)=>{const n=a.ref({});return n.value=In({},Jtt(t),e),{...a.toRefs(n.value)}},tnt=a.defineComponent({name:"GMap"}),nnt=a.defineComponent({...tnt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);let d=a.ref([]),f=o.options;a.ref({});const p=async g=>{if(Ir(g)){s.value=!0;return}else s.value=!1;if(d.value=g,d.value&&o.dbOptions){let y=[];d.value.map(C=>{let b={name:C[o.dbOptions.mapField],value:C[o.dbOptions.dataField]};y.push(b)}),d.value=y,f.series[0].data=y}u.value=ent(f,o.dbOptions.mapName)},h=async g=>{var y;if(Un(g)){await g.loadData();let C=g.mergeData();await p(C),i.value=g.onDataUpdate(()=>{const b=g.mergeData();p(b)})}else if(Vn(g))await p(g.sourceData),i.value=g.onDataUpdate(()=>{p(g.sourceData)});else{const C=(y=o.dbOptions)==null?void 0:y.dataField;let b=await Xn(g,C);p(b);return}};a.onMounted(()=>{h(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,mapRef:c});const v=g=>{r("chart-click",g)},m=qn(o.dbOptions);return(g,y)=>{const C=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-map",onContextmenu:y[0]||(y[0]=(...b)=>a.unref(m)&&a.unref(m)(...b))},[(a.openBlock(),a.createBlock(C,a.mergeProps({options:u.value,mapName:e.dbOptions.mapName,mapJson:e.dbOptions.mapJson},g.$attrs,{ref_key:"mapRef",ref:c,isEmpty:s.value,description:e.description,onClick:v,key:a.unref(l)}),null,16,["options","mapName","mapJson","isEmpty","description"]))],32)}}}),rnt=ar(nnt,[["__scopeId","data-v-5a10f8bc"]]),Jne=Dt(rnt);var ere={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(su,function(){function n(f){var p=[];return f.AMapUI&&p.push(r(f.AMapUI)),f.Loca&&p.push(o(f.Loca)),Promise.all(p)}function r(f){return new Promise(function(p,h){var v=[];if(f.plugins)for(var m=0;m<f.plugins.length;m+=1)l.AMapUI.plugins.indexOf(f.plugins[m])==-1&&v.push(f.plugins[m]);if(s.AMapUI===i.failed)h("前次请求 AMapUI 失败");else if(s.AMapUI===i.notload){s.AMapUI=i.loading,l.AMapUI.version=f.version||l.AMapUI.version,m=l.AMapUI.version;var g=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+m+"/main.js",y.onerror=function(C){s.AMapUI=i.failed,h("请求 AMapUI 失败")},y.onload=function(){if(s.AMapUI=i.loaded,v.length)window.AMapUI.loadUI(v,function(){for(var C=0,b=v.length;C<b;C++){var w=v[C].split("/").slice(-1)[0];window.AMapUI[w]=arguments[C]}for(p();u.AMapUI.length;)u.AMapUI.splice(0,1)[0]()});else for(p();u.AMapUI.length;)u.AMapUI.splice(0,1)[0]()},g.appendChild(y)}else s.AMapUI===i.loaded?f.version&&f.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):v.length?window.AMapUI.loadUI(v,function(){for(var C=0,b=v.length;C<b;C++){var w=v[C].split("/").slice(-1)[0];window.AMapUI[w]=arguments[C]}p()}):p():f.version&&f.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):u.AMapUI.push(function(C){C?h(C):v.length?window.AMapUI.loadUI(v,function(){for(var b=0,w=v.length;b<w;b++){var S=v[b].split("/").slice(-1)[0];window.AMapUI[S]=arguments[b]}p()}):p()})})}function o(f){return new Promise(function(p,h){if(s.Loca===i.failed)h("前次请求 Loca 失败");else if(s.Loca===i.notload){s.Loca=i.loading,l.Loca.version=f.version||l.Loca.version;var v=l.Loca.version,m=l.AMap.version.startsWith("2"),g=v.startsWith("2");if(m&&!g||!m&&g)h("JSAPI 与 Loca 版本不对应!!");else{m=l.key,g=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+v+"&key="+m,y.onerror=function(C){s.Loca=i.failed,h("请求 AMapUI 失败")},y.onload=function(){for(s.Loca=i.loaded,p();u.Loca.length;)u.Loca.splice(0,1)[0]()},g.appendChild(y)}}else s.Loca===i.loaded?f.version&&f.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):p():f.version&&f.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):u.Loca.push(function(C){C?h(C):h()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var i;(function(f){f.notload="notload",f.loading="loading",f.loaded="loaded",f.failed="failed"})(i||(i={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:i.notload,AMapUI:i.notload,Loca:i.notload},u={AMap:[],AMapUI:[],Loca:[]},c=[],d=function(f){typeof f=="function"&&(s.AMap===i.loaded?f(window.AMap):c.push(f))};return{load:function(f){return new Promise(function(p,h){if(s.AMap==i.failed)h("");else if(s.AMap==i.notload){var v=f.key,m=f.version,g=f.plugins;v?(window.AMap&&location.host!=="lbs.amap.com"&&h("禁止多种API加载方式混用"),l.key=v,l.AMap.version=m||l.AMap.version,l.AMap.plugins=g||l.AMap.plugins,s.AMap=i.loading,m=document.body||document.head,window.___onAPILoaded=function(C){if(delete window.___onAPILoaded,C)s.AMap=i.failed,h(C);else for(s.AMap=i.loaded,n(f).then(function(){p(window.AMap)}).catch(h);c.length;)c.splice(0,1)[0]()},g=document.createElement("script"),g.type="text/javascript",g.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+v+"&plugin="+l.AMap.plugins.join(","),g.onerror=function(C){s.AMap=i.failed,h(C)},m.appendChild(g)):h("请填写key")}else if(s.AMap==i.loaded)if(f.key&&f.key!==l.key)h("多个不一致的 key");else if(f.version&&f.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{if(v=[],f.plugins)for(m=0;m<f.plugins.length;m+=1)l.AMap.plugins.indexOf(f.plugins[m])==-1&&v.push(f.plugins[m]);v.length?window.AMap.plugin(v,function(){n(f).then(function(){p(window.AMap)}).catch(h)}):n(f).then(function(){p(window.AMap)}).catch(h)}else if(f.key&&f.key!==l.key)h("多个不一致的 key");else if(f.version&&f.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{var y=[];if(f.plugins)for(m=0;m<f.plugins.length;m+=1)l.AMap.plugins.indexOf(f.plugins[m])==-1&&y.push(f.plugins[m]);d(function(){y.length?window.AMap.plugin(y,function(){n(f).then(function(){p(window.AMap)}).catch(h)}):n(f).then(function(){p(window.AMap)}).catch(h)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:i.notload,AMapUI:i.notload,Loca:i.notload},u={AMap:[],AMapUI:[],Loca:[]}}}})})(ere);var ant=ere.exports;const ont=ls(ant),int=["id"],lnt=a.defineComponent({__name:"index",props:{ak:{type:String,require:"3689f77102aa4eb0324f229eb1101eda"},zoom:{type:Number,default:15},radius:{type:Number,default:50},opacity:{type:Number||String,default:.8},module:{type:String,default:"heatmap"},gradient:{type:Object,default:void 0},height:{type:String,default:"100%"},infoWindowOffset:{type:Array,default:()=>[0,-30]},dbOptions:{type:Object,default:()=>({}),require:!0}},emits:["click-marker","hover-marker","onLoad"],setup(e,{expose:t,emit:n}){a.useCssVars(S=>({"9733ef5e":f.value}));const r=It();let o=null,i=null;const l=e,s=a.ref(null),u=a.ref(null),c=a.ref(0),d={};a.ref({});const f=a.computed(()=>r.aMapScatterColor),p=n,h=()=>{ont.load({key:l.ak,version:"2.0",plugins:l.module=="heatmap"?["AMap.HeatMap"]:[]}).then(S=>{if(o=new S.Map("container-"+l.module,{viewMode:"2D",zoom:l.zoom,center:[l.dbOptions.center.lng,l.dbOptions.center.lat],mapStyle:r.aMapStyle}),l.module=="heatmap"){var x=new S.HeatMap(o,{radius:l.radius,opacity:[0,l.opacity],gradient:l.gradient});x.setDataSet({data:u.value})}else l.module=="scatter"&&u.value.length>0&&u.value.map(k=>{const _=new S.LngLat(k.lng,k.lat),T=new S.Marker({position:_,content:'<p class="point-p"></p>',offset:new S.Pixel(-4,-4),extData:k});T.on("click",()=>p("click-marker",T.getExtData())),T.on("mouseover",()=>p("hover-marker",T.getExtData())),o.add(T)});o.on("click",k=>{var _;((_=k.target)==null?void 0:_.className)==="AMap.Map"&&y()}),p("onLoad",o,S)}).catch(S=>{})},v=async S=>{l.dbOptions.columns.forEach(x=>{x.field==l.dbOptions.fieldsMap.lng&&(d.lng=x.field),x.field==l.dbOptions.fieldsMap.lat&&(d.lat=x.field),x.field==l.dbOptions.fieldsMap.count&&(d.count=x.field),x.field==l.dbOptions.fieldsMap.info&&(d.info=x.field)}),u.value=C(S),c.value=u.value[0].count||0},m=S=>{const[x,k]=l.infoWindowOffset;return i=new AMap.InfoWindow({offset:new AMap.Pixel(x,k),...S}),i},g=(S,x,k)=>{i||m(k),i.setContent(S),i.open(o,x)},y=()=>{i==null||i.close()};t({createInfoWindow:m,openInfoWindow:g,closeInfoWindow:y,getInfoWindow:()=>i});const C=S=>{let x=[];return S.map((k,_)=>{x[_]={lng:k[d==null?void 0:d.lng],lat:k[d==null?void 0:d.lat],count:k[d==null?void 0:d.count],info:k[d==null?void 0:d.info]}}),x.sort(function(k,_){return _.count-k.count}),x},b=async S=>{if(Un(S)){await S.loadData();let x=S.mergeData();await v(x),s.value=S.onDataUpdate(()=>{const k=S.mergeData();v(k)})}else if(Vn(S))await v(S.sourceData),s.value=S.onDataUpdate(()=>{v(S.sourceData)});else{let x=await Xn(S);v(x);return}};a.onMounted(()=>{h(),b(l.dbOptions.data)}),a.onUnmounted(()=>{s.value&&(s.value(),s.value=null)});const w=qn(l.dbOptions);return(S,x)=>(a.openBlock(),a.createElementBlock("div",{id:"container-"+l.module,style:a.normalizeStyle({height:l.height}),onContextmenu:x[0]||(x[0]=(...k)=>a.unref(w)&&a.unref(w)(...k))},null,44,int))}}),tre=Dt(lnt),n1=It(),ay=document.documentElement,snt=()=>({backgroundColor:n1.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(document.documentElement).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"item",borderWidth:0},legend:{trigger:"item",left:"center",top:"bottom",show:!0,itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(ay).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},grid:{...n1.chartOption.grid,containLabel:!0},xAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary"),width:1}},axisLabel:{fontSize:n1.chartOption.fontSize,color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"value",splitLine:{lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary"),width:1}},axisLabel:{fontSize:n1.chartOption.fontSize,color:getComputedStyle(ay).getPropertyValue("--el-text-color-primary")}}],series:[]}),unt=(e,t)=>{const n=a.ref({});return n.value=In({},snt(),e),{...a.toRefs(n.value)}},cnt=a.defineComponent({name:"GScatter"}),dnt=a.defineComponent({...cnt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}},size:{type:[String,Number],default:14},color:{type:String,default:void 0},quadrantPointColor:{type:Boolean,default:!1}},setup(e,{expose:t,emit:n}){Kn.state;const r=document.documentElement,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);a.ref({});let d=null,f=a.ref(!1);function p(y,C){return typeof C=="function"?C(y):y==null?void 0:y[C]}function h(y,C){return y==null?void 0:y.find(b=>typeof b.field=="string"&&b.field===C)}const v=async y=>{var F,G,$,W;if(Ir(y)){s.value=!0;return}else s.value=!1;const{xAxisField:C,yAxisField:b,columns:w=[],labelField:S}=o.dbOptions||{},x=h(w,C),k=h(w,b);if(!x||!k){s.value=!0;return}f.value=!1,d=y;const _=getComputedStyle(r).getPropertyValue("--ui-chart-colors")||"[]";let T=[];try{T=JSON.parse(_)}catch{}const E=[T[0],T[1],T[2],T[3]],A=!!o.quadrantPointColor,D=((G=(F=o.options)==null?void 0:F.quadrant)==null?void 0:G.x)??0,B=((W=($=o.options)==null?void 0:$.quadrant)==null?void 0:W.y)??0,N=typeof D=="number"?D:parseFloat(D),M=typeof B=="number"?B:parseFloat(B),O=Number.isFinite(N)?N:0,P=Number.isFinite(M)?M:0,R=(y||[]).map(j=>{const J=p(j,C),Z=p(j,b),X=typeof J=="number"?J:parseFloat(J),ae=typeof Z=="number"?Z:parseFloat(Z),ie=S?p(j,S):"",K=o.size||14;let ne=A?void 0:o.color||void 0;if(A&&Number.isFinite(X)&&Number.isFinite(ae)){const pe=X>=O,le=ae>=P;ne=E[pe&&le?0:!pe&&le?1:!pe&&!le?2:3]||E[0]}return{value:[J,Z],name:ie,symbolSize:K,itemStyle:ne?{color:ne}:void 0}});let L=Kl(o.options)||{};const z={tooltip:{trigger:"item",formatter:j=>{const[J,Z]=j.value||[];return`${j.name}<br/>${x.title}:${J}${x.unit||""}<br/>${k.title}:${Z}${k.unit||""}`}},xAxis:[{type:"value",axisLabel:{formatter:j=>`${j}${x.unit||""}`}}],yAxis:[{type:"value",axisLabel:{formatter:j=>`${j}${k.unit||""}`}}],graphic:{elements:[{type:"text",right:"4%",bottom:"3%",silent:!0,z:100,style:{text:x.title,textAlign:"right",textVerticalAlign:"bottom",fill:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14}},{type:"text",left:0,top:"12%",rotation:Math.PI/2,silent:!0,z:100,style:{text:k.title,textAlign:"center",textVerticalAlign:"middle",fill:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14}}]},series:[{type:"scatter",data:R,label:{show:!0,formatter:j=>j.name,position:"top",color:getComputedStyle(r).getPropertyValue("--el-text-color-primary"),fontSize:14},symbol:"circle",itemStyle:{borderWidth:2,borderColor:"#fff",shadowBlur:4,shadowColor:"#00000040",shadowOffsetX:0,shadowOffsetY:4,opacity:1}}]};L=In({},z,L),u.value=unt(L),f.value=!0},m=async y=>{var C;if(Un(y)){await y.loadData();let b=y.mergeData();await v(b),i.value=y.onDataUpdate(()=>{const w=y.mergeData();v(w)})}else if(Vn(y))await v(y.sourceData),i.value=y.onDataUpdate(()=>{v(y.sourceData)});else{const b=(C=o.dbOptions)==null?void 0:C.dataField;let w=await Xn(y,b);v(w);return}};a.onMounted(()=>{m(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)});const g=qn(o.dbOptions);return t({props:o,scatterRef:c,getData(){return d},getIsFinish(){return f.value}}),(y,C)=>{const b=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-scatter",onContextmenu:C[0]||(C[0]=(...w)=>a.unref(g)&&a.unref(g)(...w))},[(a.openBlock(),a.createBlock(b,a.mergeProps({ref_key:"scatterRef",ref:c,options:u.value},y.$attrs,{isEmpty:s.value,description:e.description,key:a.unref(l)}),null,16,["options","isEmpty","description"]))],32)}}}),fnt=ar(dnt,[["__scopeId","data-v-fbf81f36"]]),nre=Dt(fnt),pnt={class:"top"},hnt={key:0},vnt={key:0,class:"g-target-tooltip"},mnt={key:1},gnt={key:0,class:"g-target-tooltip"},ynt={class:"bottom"},bnt={class:"field"},Cnt={key:0,class:"unit"},wnt={class:"top"},Snt={class:"field_box"},xnt={class:"field"},knt={key:0,class:"unit"},Ent={class:"bottom"},_nt={key:0},Tnt={key:0,class:"g-target-tooltip"},Ant={key:1,class:"tooltip-target"},Dnt={key:0,class:"g-target-tooltip"},Mnt={class:"left_box"},Nnt={key:0},Bnt={key:0,class:"g-target-tooltip"},Ont={key:1},Int={key:0,class:"g-target-tooltip"},Rnt={class:"right_box"},Lnt={class:"field"},Pnt={class:"unit"},Vnt=a.defineComponent({name:"GTargetS"}),Fnt=a.defineComponent({...Vnt,props:{type:{type:String,default:"default"},placement:{type:String,default:"bottom"},size:{type:String,default:"sm"},tooltip:{type:Array,default:null},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},dbOptions:{type:Object,default:()=>({})},tooltipPlacement:{type:String,default:"icon"}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){a.useCssVars(N=>({c3abf0b4:c.value,"01068bd8":d.value,"401812da":f.value,"1448a918":p.value,b9193242:h.value,"242203b7":y.value,"7821629e":m.value,"5b3caa9e":g.value,ebbd17c0:C.value,"2c2549ee":w.value,"2e14689f":b.value})),Kn.state;const r=It(),o=e,i=a.ref(null),l=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-top-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-top-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-top-${o.size} g-target-s-${o.type}`),s=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-bottom-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-bottom-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-bottom-${o.size} g-target-s-${o.type}`),u=a.computed(()=>o.bg&&o.type!="default"?`g-target-s-left-${o.size} g-target-s-${o.type} g-target-s-bg`:o.border&&!o.bg?`g-target-s-left-${o.size} g-target-s-${o.type} g-target-s-border`:`g-target-s-left-${o.size} g-target-s-${o.type}`),c=a.computed(()=>o.border?"1px solid":"0"),d=a.computed(()=>o.border?"var(--border-radius-base)":""),f=a.computed(()=>o.bg?r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),p=a.computed(()=>o.bg?`var(--color-${o.type})`:""),h=a.computed(()=>o.border&&o.type!="default"?`var(--color-${o.type})`:"var(--target-font-color)"),v=a.computed(()=>{if(o.aspect)if(o.aspectPlacement=="left"){if(o.border)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0","border-left":"none","border-top":"none"};if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else{if(o.border)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"};if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),m=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type}-num-30)`:"var(--border-color-darker)"}),g=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),y=a.computed(()=>{if(!o.bg&&o.border)return o.type!="default"?`var(--color-${o.type}-num-5)`:"var(--color-primary-num-5)";if(o.bg&&!o.border)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),C=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.5)":"calc(var(--layout-padding-default) * 0.2)"),b=a.computed(()=>{if(r.name=="om-blue"&&o.size=="lg")return 18*1.42+"px";if(r.name!="om-blue"&&o.size=="lg")return"calc(var(--font-size-base) * 1.42)";if(r.name=="om-blue"&&o.size=="md")return"18px";if(r.name!="om-blue"&&o.size=="md")return"var(--font-size-base)";if(r.name=="om-blue"&&o.size=="sm")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="sm")return"calc(var(--font-size-base) * 0.85)";if(r.name=="om-blue"&&o.size=="xs")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="xs")return"calc(var(--font-size-base) * 0.85)"}),w=a.computed(()=>r.name=="om-blue"?"baseline":"flex-end");a.computed(()=>o.tooltipPlacement=="target"?"18px":"flex-end");let S=a.ref();const x=a.ref(null),k=a.ref({});a.ref({});let _=null,T=a.ref(!1);const E=async N=>{T.value=!1,A(),Array.isArray(N)?S.value=N&&N[0]&&N[0][o.dbOptions.dataField]||"":N&&typeof N=="object"?S.value=N[o.dbOptions.dataField]??"":S.value="",_=S.value,T.value=!0},A=()=>{k.value=o.dbOptions.columns&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(N=>N.field===o.dbOptions.dataField)},D=async N=>{var M;if(Un(N)){await N.loadData();let O=N.mergeData();await E(O),i.value=N.onDataUpdate(()=>{const P=N.mergeData();E(P)})}else if(Vn(N))await E(N.sourceData),i.value=N.onDataUpdate(()=>{E(N.sourceData)});else{const O=(M=o.dbOptions)==null?void 0:M.dataField;let P=await Xn(N,O);E(P);return}};a.watch(()=>{var M;const N=(M=o.dbOptions)==null?void 0:M.data;return a.isRef(N)?N.value:N},async(N,M)=>{!N||N===M||(i.value&&(i.value(),i.value=null),await D(N))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetSRef:x,getIsFinish(){return T.value},getData(){return _}});const B=qn(o.dbOptions);return(N,M)=>{const O=a.resolveComponent("WarningFilled"),P=a.resolveComponent("el-icon"),R=a.resolveComponent("el-tooltip"),L=a.resolveComponent("ArrowRight");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.placement=="top"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-s g-target-s-top",l.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[1]||(M[1]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",pnt,[k.value&&k.value.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",hnt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",vnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[6]||(M[6]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",mnt,[o.tooltip?(a.openBlock(),a.createElementBlock("span",gnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[7]||(M[7]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)]))],4)):a.createCommentVNode("",!0),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"arrow",onClick:M[0]||(M[0]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",ynt,[a.createElementVNode("div",bnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),k.value&&k.value.unit?(a.openBlock(),a.createElementBlock("div",Cnt,a.toDisplayString(k.value.unit),1)):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0),e.placement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-s g-target-s-bottom",s.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[3]||(M[3]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",wnt,[a.createElementVNode("div",Snt,[a.createElementVNode("div",xnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),k.value&&k.value.unit?(a.openBlock(),a.createElementBlock("div",knt,a.toDisplayString(k.value.unit),1)):a.createCommentVNode("",!0)]),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:M[2]||(M[2]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",Ent,[k.value&&k.value.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",_nt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",Tnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[8]||(M[8]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Ant,[o.tooltip?(a.openBlock(),a.createElementBlock("span",Dnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[9]||(M[9]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1)]),_:1})])):a.createCommentVNode("",!0)]))],4)):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0),e.placement=="left"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-s g-target-s-left",u.value]),ref_key:"targetSRef",ref:x,onContextmenu:M[5]||(M[5]=(...z)=>a.unref(B)&&a.unref(B)(...z))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(v.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Mnt,[a.createElementVNode("div",{class:"title",style:a.normalizeStyle({color:a.unref(r).name=="om-blue"?"var(--gui-text-color-primary)":"var(--gui-text-color-regular)"})},[o.tooltipPlacement=="icon"?(a.openBlock(),a.createElementBlock("div",Nnt,[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1),o.tooltip?(a.openBlock(),a.createElementBlock("span",Bnt,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[10]||(M[10]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createVNode(P,null,{default:a.withCtx(()=>[a.createVNode(O,{color:"var(--ui-tooltip-color)"})]),_:1})]),_:1})])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Ont,[o.tooltip?(a.openBlock(),a.createElementBlock("span",Int,[a.createVNode(R,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.tooltip,z=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(z)+" ",1),M[11]||(M[11]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.value.title)+" ",1)]),_:1})])):a.createCommentVNode("",!0)]))],4)]),a.createElementVNode("div",Rnt,[a.createElementVNode("div",Lnt,a.toDisplayString(a.unref(S)!==void 0&&a.unref(S)!==null?a.unref(S):"--"),1),a.createElementVNode("div",Pnt,a.toDisplayString(k.value.unit),1),e.arrow?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:M[4]||(M[4]=z=>N.$emit("arrow-click",z))},[a.createVNode(P,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(L)]),_:1})])):a.createCommentVNode("",!0)])],34)):a.createCommentVNode("",!0)],64)}}}),znt=ar(Fnt,[["__scopeId","data-v-667dd957"]]),rre=Dt(znt),$nt={class:"left"},Hnt={class:"right"},Wnt={class:"right"},Gnt={class:"left"},Unt={class:"left"},Ynt={class:"right"},jnt={class:"right"},Knt={class:"left"},Xnt={class:"top"},qnt={class:"bottom"},Znt=a.defineComponent({name:"GTargetR"}),Qnt=a.defineComponent({...Znt,props:{type:{type:String,default:"primary"},targetType:{type:String,default:"default"},placement:{type:String,default:"top"},tooltip:{type:Array,default:null},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},size:{type:String,default:"sm"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},chart:{type:String,default:"ring"},color:{type:String,default:""},dbOptions:{type:Object,default:()=>({})},tooltipPlacement:{type:String,default:"icon"},ringPlacement:{type:String,default:"left"}},setup(e,{expose:t}){a.useCssVars(N=>({"8c96882a":m.value,f4e80e46:S.value,"8f81904c":g.value,93432218:w.value,"77651a54":b.value,"2e123f94":h.value,"606fe8ef":f.value,f891834e:p.value})),Kn.state;const n=It(),r=document.documentElement,o=e,i=a.ref(null),l=a.ref({data:0,kpiData:0,rate:0,title:"",unit:""}),s=a.ref(null),u=a.ref(null),c=a.computed(()=>`box-${o.type}`),d=a.computed(()=>`inbox-${o.type}`),f=a.computed(()=>Number(l.value.rate)<0||!l.value.rate?"0%":l.value.rate+"%"),p=a.computed(()=>o.color),h=a.computed(()=>o.bgColor),v=a.computed(()=>o.bg&&o.type!="default"?`g-target-r-${o.size} g-target-r-${o.type} g-target-r-bg`:`g-target-r-${o.size} g-target-r-${o.type}`),m=a.computed(()=>o.bg?n.name&&typeof n.name=="string"&&n.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),g=a.computed(()=>o.bg&&o.targetType=="default"?"var(--el-text-color-primary)":o.bg&&o.targetType!="default"?`var(--color-${o.type})`:""),y=a.computed(()=>o.bg&&o.type!="default"?`g-target-line-${o.size} g-target-line-${o.type} g-target-line-bg`:`g-target-line-${o.size} g-target-line-${o.type}`),C=a.computed(()=>{if(o.aspect){if(o.aspectPlacement=="left"){if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),b=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),w=a.computed(()=>{if(o.bg)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),S=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.75)":"calc(var(--layout-padding-default) * 0.5)"),x=a.ref(),k=(N,M)=>{const O=N.color||getComputedStyle(r).getPropertyValue(`--color-${N.type}`),P=N.type=="om"?"rgba(255, 255, 255, 0.5)":N.color?getComputedStyle(r).getPropertyValue(`--color-${N.type}-light-9`):getComputedStyle(r).getPropertyValue(`--color-${N.type}-light-5`);let R=[];N.size=="xs"?R=["23","32"]:N.size=="sm"?R=["27","37"]:N.size=="md"?R=["32","42"]:N.size=="lg"&&(R=["38","48"]),x.value={backgroundColor:n.chartOption.backgroundColor,series:{type:"pie",radius:R,center:["50%","50%"],hoverAnimation:!1,label:{normal:{position:"center"}},data:[{value:Number(M.rate)<0?0:M.rate,itemStyle:{normal:{color:O}},label:{normal:{show:!1}}},{value:100-(Number(M.rate)<0?0:M.rate),tooltip:{show:!1},itemStyle:{normal:{color:P||"rgba(255, 255, 255, 0.1)"}}}]}}};let _=a.ref(0);a.ref({});const T=N=>Math.floor(N)===N?N.toString():N.toFixed(2),E=async N=>{A(N),k(o,l.value),_.value++},A=N=>{const M=Array.isArray(N)?N&&N[0]||{}:N&&typeof N=="object"?N:{};let O=null;o.dbOptions.rateField?O=o.dbOptions.columns&&o.dbOptions.rateField&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(P=>P.field===o.dbOptions.rateField):O=o.dbOptions.columns&&o.dbOptions.dataField&&o.dbOptions.columns.length>0&&o.dbOptions.columns.find(P=>P.field===o.dbOptions.dataField),l.value.title=O.title,l.value.unit=O.unit,l.value.data=M&&M[o.dbOptions.dataField],l.value.kpiData=M&&M[o.dbOptions.kpiField],o.dbOptions.rateField?l.value.rate=M&&M[o.dbOptions.rateField]:!l.value.data||!l.value.kpiData?l.value.rate=-1:l.value.rate=T(parseFloat(l.value.data/l.value.kpiData)*100)},D=async N=>{var M;if(Un(N)){await N.loadData();let O=N.mergeData();await E(O),i.value=N.onDataUpdate(()=>{const P=N.mergeData();E(P)})}else if(Vn(N))await E(N.sourceData),i.value=N.onDataUpdate(()=>{E(N.sourceData)});else{const O=(M=o.dbOptions)==null?void 0:M.dataField;let P=await Xn(N,O);E(P);return}};a.watch(()=>{var M;const N=(M=o.dbOptions)==null?void 0:M.data;return a.isRef(N)?N.value:N},async(N,M)=>{!N||N===M||(i.value&&(i.value(),i.value=null),await D(N))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetRRef:s,targetLineRef:u});const B=qn(o.dbOptions);return(N,M)=>{const O=a.resolveComponent("g-chart"),P=a.resolveComponent("g-target-s");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.chart=="ring"&&(!o.ringPlacement||o.ringPlacement=="left")?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-r",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[0]||(M[0]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",$nt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))]),a.createElementVNode("div",Hnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="right"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-r",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[1]||(M[1]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Wnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))]),a.createElementVNode("div",Gnt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="top"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-r g-target-r-column",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[2]||(M[2]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",Unt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))]),a.createElementVNode("div",Ynt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0),e.chart=="ring"&&o.ringPlacement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass(["g-target-r g-target-r-column",v.value]),ref_key:"targetRRef",ref:s,onContextmenu:M[3]||(M[3]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[o.aspect&&o.bg&&o.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(C.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",jnt,[(a.openBlock(),a.createBlock(P,{class:"g-target-r-text",key:a.unref(_),type:e.targetType,placement:e.placement,size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","placement","size","border","arrow","tooltip","tooltipPlacement","db-options"]))]),a.createElementVNode("div",Knt,[(a.openBlock(),a.createBlock(O,{options:x.value,key:a.unref(_)},null,8,["options"]))])],34)):a.createCommentVNode("",!0),e.chart=="line"?(a.openBlock(),a.createElementBlock("div",{key:4,class:a.normalizeClass(["g-target-line",y.value]),ref_key:"targetLineRef",ref:u,onContextmenu:M[4]||(M[4]=(...R)=>a.unref(B)&&a.unref(B)(...R))},[a.createElementVNode("div",Xnt,[a.createElementVNode("div",{class:a.normalizeClass(["box",c.value])},[a.createElementVNode("div",{class:a.normalizeClass(["inbox",d.value]),style:a.normalizeStyle({backgroundColor:o.color})},null,6)],2)]),a.createElementVNode("div",qnt,[(a.openBlock(),a.createBlock(P,{key:a.unref(_),type:e.targetType,placement:"left",size:e.size,border:e.border,arrow:e.arrow,tooltip:e.tooltip,tooltipPlacement:e.tooltipPlacement,"db-options":{dataField:"value",columns:[{title:l.value.title,field:"value",unit:l.value.unit}],data:{value:l.value.data}}},null,8,["type","size","border","arrow","tooltip","tooltipPlacement","db-options"]))])],34)):a.createCommentVNode("",!0)],64)}}}),Jnt=ar(Qnt,[["__scopeId","data-v-0cd5f3c3"]]),are=Dt(Jnt),ert={class:"outbox"},trt={class:"inbox"},nrt={class:"top"},rrt={key:0,class:"title"},art={class:"bottom"},ort={class:"field"},irt={key:0,class:"unit"},lrt={class:"outbox"},srt={class:"inbox"},urt={class:"top"},crt={class:"field_box"},drt={class:"field"},frt={key:0,class:"unit"},prt={class:"bottom"},hrt={key:0,class:"title"},vrt={class:"outbox"},mrt={class:"inbox"},grt={class:"left_box"},yrt={class:"title"},brt={class:"right_box"},Crt={class:"field"},wrt={class:"unit"},Srt=a.defineComponent({name:"GTargetM"}),xrt=a.defineComponent({...Srt,props:{type:{type:String,default:"default"},placement:{type:String,default:"bottom"},size:{type:String,default:"sm"},arrow:{type:Boolean,default:!1},border:{type:Boolean,default:!1},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},bg:{type:Boolean,default:!1},row:{type:Number,default:3},dbOptions:{type:Object,default:()=>({})}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){a.useCssVars(E=>({"9c46ae60":d.value,ff7bb4fc:f.value,"482b9229":p.value,f8839ba4:h.value,"33f90c75":v.value,"15b10261":C.value,11460770:g.value,"41d733c7":y.value,"095d0dca":b.value}));const r=It(),o=e,i=a.ref(null),l=a.ref(null),s=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-top-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-top-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-top-${o.size} g-target-m-${o.type}`),u=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-bottom-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-bottom-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-bottom-${o.size} g-target-m-${o.type}`),c=a.computed(()=>o.bg&&o.type!="default"?`g-target-m-right-${o.size} g-target-m-${o.type} g-target-m-bg`:!o.bg&&o.border?`g-target-m-right-${o.size} g-target-m-${o.type} g-target-m-border`:`g-target-m-right-${o.size} g-target-m-${o.type}`),d=a.computed(()=>o.border?"1px solid":"0"),f=a.computed(()=>o.border?"var(--border-radius-base)":""),p=a.computed(()=>o.bg?r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${o.type}-lights-7)`:`var(--color-${o.type}-lights-6)`:""),h=a.computed(()=>o.bg?`var(--color-${o.type})`:""),v=a.computed(()=>o.border?`var(--color-${o.type})`:""),m=a.computed(()=>{if(o.aspect)if(o.aspectPlacement=="left"){if(o.border)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0","border-left":"none","border-top":"none"};if(o.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else{if(o.boder)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"};if(o.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),g=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type}-num-30)`:"var(--border-color-darker)"}),y=a.computed(()=>{if(o.aspect)return o.type!="default"?`var(--color-${o.type})`:"var(--color-primary)"}),C=a.computed(()=>{if(!o.bg&&o.border)return o.type!="default"?`var(--color-${o.type}-num-5)`:"var(--color-primary-num-5)";if(o.bg&&!o.border)return o.type!="default"?`var(--color-${o.type}-num-10)`:"var(--color-primary-num-5)"}),b=a.computed(()=>o.aspect?"calc(var(--layout-padding-default) * 1.5)":"calc(var(--layout-padding-default) * 0.5)");a.computed(()=>{if(r.name=="om-blue"&&o.size=="lg")return 18*1.42+"px";if(r.name!="om-blue"&&o.size=="lg")return"calc(var(--font-size-base) * 1.42)";if(r.name=="om-blue"&&o.size=="md")return"18px";if(r.name!="om-blue"&&o.size=="md")return"calc(var(--font-size-base)";if(r.name=="om-blue"&&o.size=="sm")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="sm")return"calc(var(--font-size-base) * 0.85)";if(r.name=="om-blue"&&o.size=="xs")return 18*.85+"px";if(r.name!="om-blue"&&o.size=="xs")return"calc(var(--font-size-base) * 0.85)"});let w=a.ref([]),S=a.ref([]);a.ref({});const x=(E,A)=>{const D=[];for(let B=0;B<E.length;B+=A)D.push(E.slice(B,B+A));return D},k=async E=>{if(w.value=Array.isArray(E)?E[0]||{}:E||{},o.dbOptions.columns.length>0)for(let A=0;A<o.dbOptions.columns.length;A++)S.value[A]={title:o.dbOptions.columns[A].title,field:w.value[o.dbOptions.columns[A].field],unit:o.dbOptions.columns[A].unit};S.value=x(S.value,o.row)},_=async E=>{var A;if(Un(E)){await E.loadData();let D=E.mergeData();await k(D),i.value=E.onDataUpdate(()=>{const B=E.mergeData();k(B)})}else if(Vn(E))await k(E.sourceData),i.value=E.onDataUpdate(()=>{k(E.sourceData)});else{const D=(A=o.dbOptions)==null?void 0:A.dataField;let B=await Xn(E,D);k(B);return}};a.watch(()=>{var A;const E=(A=o.dbOptions)==null?void 0:A.data;return a.isRef(E)?E.value:E},async(E,A)=>{!E||E===A||(i.value&&(i.value(),i.value=null),await _(E))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,targetMRef:l});const T=qn(o.dbOptions);return(E,A)=>{const D=a.resolveComponent("ArrowRight"),B=a.resolveComponent("el-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.placement=="top"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-target-m g-target-m-top",s.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[1]||(A[1]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),N=>(a.openBlock(),a.createElementBlock("div",ert,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,(M,O)=>(a.openBlock(),a.createElementBlock("div",trt,[a.createElementVNode("div",nrt,[M.title?(a.openBlock(),a.createElementBlock("div",rrt,a.toDisplayString(M.title),1)):a.createCommentVNode("",!0),e.arrow&&a.unref(S).length==O?(a.openBlock(),a.createElementBlock("div",{key:1,class:"arrow",onClick:A[0]||(A[0]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",art,[a.createElementVNode("div",ort,a.toDisplayString(M.field!==void 0&&M.field!==null?M.field:"--"),1),M.unit?(a.openBlock(),a.createElementBlock("div",irt,a.toDisplayString(M.unit),1)):a.createCommentVNode("",!0)])]))),256))]))),256))],34)):a.createCommentVNode("",!0),e.placement=="bottom"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["g-target-m g-target-m-bottom",u.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[3]||(A[3]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),N=>(a.openBlock(),a.createElementBlock("div",lrt,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,(M,O)=>(a.openBlock(),a.createElementBlock("div",srt,[a.createElementVNode("div",urt,[a.createElementVNode("div",crt,[a.createElementVNode("div",drt,a.toDisplayString(M.field!==void 0&&M.field!==null?M.field:"--"),1),M.unit?(a.openBlock(),a.createElementBlock("div",frt,a.toDisplayString(M.unit),1)):a.createCommentVNode("",!0)]),e.arrow&&a.unref(S).length==O?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:A[2]||(A[2]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]),a.createElementVNode("div",prt,[M.title?(a.openBlock(),a.createElementBlock("div",hrt,a.toDisplayString(M.title),1)):a.createCommentVNode("",!0)])]))),256))]))),256))],34)):a.createCommentVNode("",!0),e.placement=="left"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["g-target-m g-target-m-right",c.value]),ref_key:"targetMRef",ref:l,onContextmenu:A[5]||(A[5]=(...N)=>a.unref(T)&&a.unref(T)(...N))},[o.aspect&&o.type!="default"&&(o.bg||o.border)?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(o.aspect),5)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(S),(N,M)=>(a.openBlock(),a.createElementBlock("div",vrt,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N,O=>(a.openBlock(),a.createElementBlock("div",mrt,[a.createElementVNode("div",grt,[a.createElementVNode("div",yrt,a.toDisplayString(O.title),1)]),a.createElementVNode("div",brt,[a.createElementVNode("div",Crt,a.toDisplayString(O.field!==void 0&&O.field!==null?O.field:"--"),1),a.createElementVNode("div",wrt,a.toDisplayString(O.unit),1)]),e.arrow&&a.unref(S).length-2==M?(a.openBlock(),a.createElementBlock("div",{key:0,class:"arrow",onClick:A[4]||(A[4]=P=>E.$emit("arrow-click",P))},[a.createVNode(B,{class:"icon"},{default:a.withCtx(()=>[a.createVNode(D)]),_:1})])):a.createCommentVNode("",!0)]))),256))]))),256))],34)):a.createCommentVNode("",!0)],64)}}}),ore=Dt(xrt),krt={class:"g-box-title"},Ert={class:"slotLeft"},_rt={class:"l_title"},Trt={class:"slotRight"},Art={class:"g-box-main"},Drt=["src","scrolling"],Mrt={key:1,class:"ifr-neterror"},Nrt=a.defineComponent({name:"GBox"}),Brt=a.defineComponent({...Nrt,props:{type:{type:String,default:"default"},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},tooltip:{type:Array,default:null},bg:{type:Boolean,default:!1},border:{type:Boolean,default:!1},description:{type:String,default:"iframe 连接异常"},placement:{type:String,default:"right"},title:{type:String,default:""},tag:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},fontSizeLevel:{type:Number,default:2},isGradient:{type:Boolean,default:!1},iframe:{type:String,default:""},scrolling:{type:String,default:"auto"},params:{type:Object,default:()=>{}},local:{type:Boolean,default:!1},auth:{type:String,default:""},dbOptions:{type:Object,default:()=>{}}},emits:["arrow-click"],setup(e,{expose:t,emit:n}){var T;a.useCssVars(E=>({"4c17e2a1":d.value,"4701cdbf":g.value,c148a34a:c.value,"5ea39c92":y.value,"0e050bf2":v.value,"2c7fd559":p.value,"7d5c7496":h.value}));const r=It(),o=a.ref(null),i=a.ref(!1),l=e,s=a.computed(()=>{if(l.bg)return"g-box g-box-bg"}),u=a.computed(()=>{if(l.fontSizeLevel==1)return{height:"22.5px","margin-top":"-0.5px"};if(l.fontSizeLevel==2)return{height:"20px","margin-top":"-1px"};if(l.fontSizeLevel==3)return{height:"16px","margin-top":"-2px"}}),c=a.computed(()=>l.type!="default"?r.name.includes("black")?l.isGradient?`linear-gradient(180deg, var(--color-${l.type}-lights-1) 0%, var(--ui-bg-color) 100%)`:`var(--color-${l.type}-lights-6)`:l.isGradient?`linear-gradient(180deg, var(--color-${l.type}-lights-7) 0%, #ffffff 100%)`:`var(--color-${l.type}-lights-7)`:"var(--gui-content-fill-color-2)"),d=a.computed(()=>l.border?"1px solid":"0"),f=a.computed(()=>{if(l.tag)return l.type!="default"?`g-svg g-svg-${l.type}`:"g-svg g-svg-primary"}),p=a.computed(()=>{if(l.aspect&&l.border)return l.type!="default"?`var(--color-${l.type}-num-30)`:"var(--border-color-darker)"}),h=a.computed(()=>{if(l.aspect)return l.type!="default"?`var(--color-${l.type})`:"var(--color-primary)"}),v=a.computed(()=>{if(!l.bg&&l.border)return l.type!="default"?`var(--color-${l.type}-num-5)`:"var(--color-primary-num-5)";if(l.bg&&!l.border)return l.type!="default"?`var(--color-${l.type}-num-10)`:"var(--color-primary-num-5)"}),m=a.computed(()=>{if(l.aspect)return l.aspectPlacement=="left"?{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0"}:{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)"}}),g=a.computed(()=>l.aspect?"var(--border-radius-base)":"none"),y=a.computed(()=>{if(l.fontSizeLevel==1)return"calc(var(--font-size-base) * 1.71)";if(l.fontSizeLevel==2)return"calc(var(--font-size-base) * 1.42)";if(l.fontSizeLevel==3)return"calc(var(--font-size-base) * 1.14)"}),C=()=>{i.value=!1},b=()=>{i.value=!0},w=a.ref(null),S=a.computed(()=>`${l.iframe}?params=${JSON.stringify(l.params)}&auth=${l.auth}&local=${l.local}`),x=async()=>{const E=w.value.src;w.value.src=E},k={url:l.iframe,params:l.params,auth:l.auth},_=Kn.state&&((T=Kn.state)==null?void 0:T.iframes);return l.iframe&&(l.local?_&&typeof _=="object"?_&&_.some(A=>Kr(A,k))||Kn.commit("setState",{path:"iframes",value:_fe(_,k)}):Kn.commit("setState",{path:"iframes",value:[k]}):_&&_&&_.some(A=>Kr(A,k))&&Kn.commit("setState",{path:"iframes",value:_.filter(A=>!Kr(A,k))})),t({boxRef:o,load:x}),(E,A)=>{const D=a.resolveComponent("WarningFilled"),B=a.resolveComponent("el-icon"),N=a.resolveComponent("el-tooltip"),M=a.resolveComponent("ArrowRight"),O=a.resolveComponent("el-empty");return e.title?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:["g-box",s.value]},E.$attrs,{ref_key:"boxRef",ref:o}),[a.createElementVNode("div",krt,[a.createElementVNode("div",Ert,[e.tag?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["g-svg",f.value]),style:a.normalizeStyle(u.value)},null,6)):a.createCommentVNode("",!0),a.createElementVNode("div",_rt,a.toDisplayString(e.title),1),a.createVNode(N,{placement:"top"},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.tooltip,P=>(a.openBlock(),a.createElementBlock("span",null,[a.createTextVNode(a.toDisplayString(P)+" ",1),A[2]||(A[2]=a.createElementVNode("br",null,null,-1))]))),256))]),default:a.withCtx(()=>[l.tooltip?(a.openBlock(),a.createBlock(B,{key:0,class:"g-arrow g-arrow-tooltip"},{default:a.withCtx(()=>[a.createVNode(D,{color:"var(--ui-tooltip-color)"})]),_:1})):a.createCommentVNode("",!0)]),_:1}),e.arrow&&e.placement=="left"?(a.openBlock(),a.createBlock(B,{key:1,class:"g-arrow g-arrow-left",onClick:A[0]||(A[0]=P=>E.$emit("arrow-click",P))},{default:a.withCtx(()=>[a.createVNode(M)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.renderSlot(E.$slots,"left")])]),a.createElementVNode("div",Trt,[a.renderSlot(E.$slots,"right"),e.arrow&&e.placement=="right"?(a.openBlock(),a.createBlock(B,{key:0,class:"g-arrow",onClick:A[1]||(A[1]=P=>E.$emit("arrow-click",P))},{default:a.withCtx(()=>[a.createVNode(M)]),_:1})):a.createCommentVNode("",!0)])]),a.createElementVNode("div",Art,[a.renderSlot(E.$slots,"default")])],16)):e.iframe?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:"g-box"},E.$attrs),[i.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("iframe",{key:0,src:S.value,frameborder:"0",scrolling:e.scrolling,width:"100%",height:"100%",ref_key:"iframeRef",ref:w,onLoad:C,onError:b},null,40,Drt)),i.value?(a.openBlock(),a.createElementBlock("div",Mrt,[a.createVNode(O,a.mergeProps(E.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])])):a.createCommentVNode("",!0)],16)):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:2,class:["g-box",s.value]},E.$attrs),[l.aspect?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(m.value)},a.toDisplayString(l.aspect),5)):a.createCommentVNode("",!0),a.renderSlot(E.$slots,"default")],16))}}}),ire=Dt(Brt),Rh=document.documentElement,_u=It(),Ort=e=>e||"-",Irt=e=>e||"",Rrt=e=>({backgroundColor:_u.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(Rh).getPropertyValue("--ui-chart-colors")),tooltip:{show:!0,trigger:"axis",formatter:function(t){var i;for(var n=t[0].name,r=0,o=t.length;r<o;r++)n+=`<br/><span style="display:inline-block;margin-right:4px;border-radius:2px;width:10px;height:10px;background-color:${t[r].color};"></span>`+t[r].seriesName+" : "+Ort(t[r].value)+" "+Irt((i=e[r])==null?void 0:i.unit);return n}},legend:{trigger:"item",left:"center",top:"bottom",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,lineHeight:14,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-regular"),rich:{a:{verticalAlign:"middle"}},padding:[0,0,-4,0]}},grid:{..._u.chartOption.grid,top:"8%",containLabel:!0},xAxis:[{splitLine:{show:!0,lineStyle:{type:"dashed"}},axisTick:{show:!1},axisLabel:{show:!0,formatter:"{value}",fontSize:_u.chartOption.fontSize,padding:_u.chartOption.padding,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-primary")}}],yAxis:[{type:"category",axisTick:{show:!1},splitLine:{show:!1,lineStyle:{type:"dashed"}},axisLabel:{show:!0,margin:_u.chartOption.margin,formatter:"{value}",fontSize:_u.chartOption.fontSize,padding:_u.chartOption.padding,color:getComputedStyle(Rh).getPropertyValue("--el-text-color-primary")}}],series:[{barWidth:_u.chartOption.barWidth,label:{show:!0,position:"inside",color:getComputedStyle(Rh).getPropertyValue("--gui-text-color-back")}},{barWidth:_u.chartOption.barWidth,label:{show:!0,position:"inside",color:getComputedStyle(Rh).getPropertyValue("--gui-text-color-back")}}]}),qH=(e,t)=>{const n=a.ref({});return n.value=In({},Rrt(t),e),{...a.toRefs(n.value)}},Lrt=a.defineComponent({name:"GBarCompare"}),Prt=a.defineComponent({...Lrt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:()=>({direction:"vertical"})},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state,It();const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);a.ref({});const d=async v=>{if(Ir(v)){s.value=!0;return}else s.value=!1;let m=a.ref([]),g=Kl(o.options),y=[],C=[],b=[],w={series:[{}]};if(m.value=v,m.value&&o.dbOptions){let S=[];if(o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxisFields?S=o.dbOptions.columns.map(x=>{const k=o.dbOptions.yAxis.yAxisFields.find(_=>_.field===x.field);return k?{...x,...k}:x}).concat(o.dbOptions.yAxis.yAxisFields.filter(x=>!o.dbOptions.columns.some(k=>k.field===x.field))):S=o.dbOptions.columns,S.map(x=>{let k={name:"",type:"bar",yAxisIndex:x.yAxisIndex,data:[]};m.value.map(_=>{k.data.push(_[x.field]),k.name=_[x.title]||x.title,k.stack=x.stack}),y.push(k)}),m.value.map(x=>{o.dbOptions.direction=="horizontal"?b.push(x[o.dbOptions.xAxisField]):C.push(x[o.dbOptions.xAxisField])}),o.dbOptions.direction=="horizontal"?C.push({type:"value",name:""}):b.push({type:"value",name:""}),g?(o.dbOptions.direction=="horizontal"?(g.yAxis?g.yAxis[0].data=b:g.yAxis=[{data:b}],g.xAxis?g.xAxis=In({},g.yAxis,C):g.xAxis=C):(g.xAxis?g.xAxis[0].data=C:g.xAxis=[{data:C}],g.yAxis?g.yAxis=In({},g.yAxis,b):g.yAxis=b),g.series?g.series=In({},g.series,y):g.series=y):(o.dbOptions.direction=="horizontal"?(w.xAxis=C,w.yAxis=[{data:b}]):(w.xAxis=[{data:C}],w.yAxis=b),w.series=y),o.dbOptions&&o.dbOptions.yAxis&&o.dbOptions.yAxis.yAxises){let x=[];o.dbOptions.yAxis.yAxises.map(k=>{let _={name:k.name,type:"value",position:k.position,alignTicks:k.alignTicks,offset:k.offset};x.push(_)}),o.dbOptions.direction=="horizontal"?g.xAxis=In({},g.xAxis,x):g.yAxis=In({},g.yAxis,x)}}g?u.value=qH(g,o.dbOptions.columns):u.value=qH(w,o.dbOptions.columns)},f=async v=>{var m;if(Un(v)){await v.loadData();let g=v.mergeData();await d(g),i.value=v.onDataUpdate(()=>{const y=v.mergeData();d(y)})}else if(Vn(v))await d(v.sourceData),i.value=v.onDataUpdate(()=>{d(v.sourceData)});else{const g=(m=o.dbOptions)==null?void 0:m.dataField;let y=await Xn(v,g);d(y);return}};a.onMounted(()=>{f(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,barCompareRef:c});const p=v=>{r("chart-click",v)},h=qn(o.dbOptions);return(v,m)=>{const g=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-bar-compare",onContextmenu:m[0]||(m[0]=(...y)=>a.unref(h)&&a.unref(h)(...y))},[(a.openBlock(),a.createBlock(g,a.mergeProps({options:u.value},v.$attrs,{ref_key:"barCompareRef",ref:c,description:e.description,isEmpty:s.value,onClick:p,key:a.unref(l)}),null,16,["options","description","isEmpty"]))],32)}}}),Vrt=ar(Prt,[["__scopeId","data-v-b81145a7"]]),lre=Dt(Vrt),Frt=It(),Lh=document.documentElement,zrt=(e,t,n)=>{e=Number.isInteger(Number(e))?e:Number(e).toFixed(2);let r=[];return n=="pie"?r=t=="lg"?["0","80%"]:t=="md"?["0","75%"]:t=="sm"?["0","65%"]:["0","60%"]:r=t=="lg"?["50%","80%"]:t=="md"?["45%","75%"]:t=="sm"?["40%","65%"]:["35%","60%"],{legend:{trigger:"item",show:!1,orient:"vertical",left:"left",itemWidth:10,itemHeight:10,textStyle:{fontSize:14,color:getComputedStyle(Lh).getPropertyValue("--el-text-color-regular"),lineHeight:14,rich:{a:{verticalAlign:"middle"}},padding:[0,0,-2,0]}},backgroundColor:Frt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(Lh).getPropertyValue("--ui-chart-colors")),title:n=="pie"?{}:{subtext:"总计 (亿元)",text:e,textStyle:{fontSize:t=="lg"?32:t=="md"?30:t=="sm"?24:22,align:"center",color:getComputedStyle(Lh).getPropertyValue("--el-text-color-primary")},subtextStyle:{fontSize:t=="lg"?20:t=="md"?18:t=="sm"?16:14,align:"center",lineHeight:t=="lg"?20:t=="md"?18:t=="sm"?10:5,color:getComputedStyle(Lh).getPropertyValue("--el-text-color-regular")},x:"center",y:t=="lg"||t=="md"||t=="sm"?"40%":"41%"},series:[{type:"pie",minAngle:5,startAngle:10,labelLine:{show:!0,length:20,length2:30,lineStyle:{width:2}},label:{formatter:o=>`{t|${o.name+" "+o.value}}
|
|
118
118
|
{f|${"占比 "+(o.data.value/e*100).toFixed(2)}%}`,rich:{t:{lineHeight:t=="lg"?20:t=="md"?18:t=="sm"?16:14,fontSize:t=="lg"?18:t=="md"?16:t=="sm"?14:12,align:"left",color:getComputedStyle(Lh).getPropertyValue("--el-text-color-primary"),fontFamily:"DIN, Arial, sans-serif"},f:{fontSize:t=="lg"?18:t=="md"?16:t=="sm"?14:12,align:"center",lineHeight:t=="lg"?28:t=="md"?26:t=="sm"?24:22,color:getComputedStyle(Lh).getPropertyValue("--el-text-color-primary"),fontFamily:"DIN, Arial, sans-serif"}}},center:["50%","50%"],roseType:n=="rose"?"area":"",radius:r}]}},ZH=(e,t,n,r)=>{const o=a.ref({});return o.value=In({},zrt(t,n,r),e),{...a.toRefs(o.value)}},$rt=a.defineComponent({name:"GPieDistri"}),Hrt=a.defineComponent({...$rt,props:{description:{type:String,default:"暂无数据"},size:{type:String,default:"sm"},options:{type:Object,default:{}},type:{type:String,default:"ring"},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){Kn.state;const r=n,o=e,i=a.ref(null);let l=a.ref(0);const s=a.ref(!1),u=a.ref(),c=a.ref(null);let d=a.ref([]),f=o.options,p=[],h=a.ref(0),v={series:[{title:{}}]};a.ref({});const m=async b=>{if(Ir(b)){s.value=!0;return}else s.value=!1;p=[],d.value=b,d.value&&o.dbOptions&&(d.value.map(w=>{let S={name:w[o.dbOptions.axisField],value:w[o.dbOptions.dataField]};p.push(S)}),h.value=d.value.reduce((w,S)=>w+S[o.dbOptions.dataField],0),f?f.series?f.series[0].data=p:f.series=[{data:p}]:v.series[0].data=p),f?u.value=ZH(f,h.value,o.size,o.type):u.value=ZH(v,h.value,o.size,o.type)},g=async b=>{var w;if(Un(b)){await b.loadData();let S=b.mergeData();await m(S),i.value=b.onDataUpdate(()=>{const x=b.mergeData();m(x)})}else if(Vn(b))await m(b.sourceData),i.value=b.onDataUpdate(()=>{m(b.sourceData)});else{const S=(w=o.dbOptions)==null?void 0:w.dataField;let x=await Xn(b,S);m(x);return}};a.onMounted(()=>{g(o.dbOptions.data)}),a.onUnmounted(()=>{i.value&&(i.value(),i.value=null)}),t({props:o,pieDistriRef:c});const y=b=>{r("chart-click",b)},C=qn(o.dbOptions);return(b,w)=>{const S=a.resolveComponent("g-chart");return a.openBlock(),a.createElementBlock("div",{class:"g-pie-distri",onContextmenu:w[0]||(w[0]=(...x)=>a.unref(C)&&a.unref(C)(...x))},[(a.openBlock(),a.createBlock(S,a.mergeProps({options:u.value},b.$attrs,{ref_key:"pieDistriRef",ref:c,isEmpty:s.value,description:e.description,onClick:y,key:a.unref(l)}),null,16,["options","isEmpty","description"]))],32)}}}),Wrt=ar(Hrt,[["__scopeId","data-v-789b4a62"]]),sre=Dt(Wrt),Grt=It(),Ph=document.documentElement,Urt=(e,t,n,r,o,i)=>{let l;t=="NaN"||!t||t==="-"?l=0:l=t;const s=100;let u=0,c=0,d="189.5%",f=0,p=0,h="";return n=="xs"?(u=24,c=14,d="189.5%",f=8,p=10,h="45%"):n=="sm"?(u=28,c=16,d="189.5%",f=10,p=12,h="47%"):n=="md"?(u=32,c=18,d="189%",f=12,p=14,h="47%"):n=="lg"&&(u=36,c=20,d="188.5%",f=14,p=16,h="47%"),{backgroundColor:Grt.chartOption.backgroundColor,title:{text:o||"达成率",textStyle:{fontSize:c,fontWeight:500,color:getComputedStyle(Ph).getPropertyValue("--font-color-second")},subtext:t==="-"?"-%":l+"%",padding:5,subtextStyle:{fontWeight:600,color:getComputedStyle(Ph).getPropertyValue(`--color-${e}`),fontSize:u},x:"center",y:h},series:[{name:"",type:"gauge",z:2,radius:"155%",center:["50%","95%"],startAngle:"180",endAngle:"0",axisLine:{roundCap:!1,lineStyle:{color:[[l/s,getComputedStyle(Ph).getPropertyValue(`--color-${e}`)],[1,getComputedStyle(Ph).getPropertyValue(i)]],width:f}},detail:{show:!1},title:{show:!1},data:[{name:"实际达成率",value:l}],splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1,length:d,width:p,showAbove:!0,icon:"circle",itemStyle:{color:r?getComputedStyle(Ph).getPropertyValue(`--color-${e}`):"#fff",borderWidth:2,borderType:"solid",borderColor:r?"#fff":getComputedStyle(Ph).getPropertyValue(`--color-${e}`)}},axisTick:{show:!1}}]}},Yrt={class:"title"},jrt={class:"gauge"},Krt={class:"item"},Xrt={class:"item-title"},qrt={class:"circle-title"},Zrt={class:"item-field"},Qrt=a.defineComponent({name:"GTargetAchievement"}),Jrt=a.defineComponent({...Qrt,props:{type:{type:String,default:"primary"},size:{type:String,default:"sm"},aspect:{type:String,default:""},aspectPlacement:{type:String,default:"left"},bg:{type:Boolean,default:!1},options:{type:Object,default:{}},dbOptions:{type:Object,default:{data:[],dataUrl:{}}}},setup(e,{expose:t}){a.useCssVars(D=>({69591899:m.value,"03a9892b":w.value,d67de3dc:C.value,"2e24c0bd":b.value,b27dc0d8:S.value,f95d4cf0:g.value,"51f0c57a":v.value,"87649e88":h.value})),Kn.state;const n=It(),r=e,o=a.ref(null);let i=a.ref(0);const l=a.ref();let s=a.ref([]),u=a.ref([]);const c=a.ref(null),d=r.options.isLegend==null?!0:r.options.isLegend,f=a.computed(()=>`g-target-ach-${r.size}`),p=a.computed(()=>`target-${r.type}`),h=a.computed(()=>n.name&&typeof n.name=="string"&&n.name.includes("white")?`var(--color-${r.type}-lights-6)`:`var(--color-${r.type}-lights-1)`),v=a.computed(()=>`var(--color-${r.type})`),m=a.computed(()=>r.bg?n.name&&typeof n.name=="string"&&n.name.includes("white")?`var(--color-${r.type}-lights-7)`:`var(--color-${r.type}-lights-6)`:""),g=a.computed(()=>`var(--color-${r.type})`),y=a.computed(()=>{if(r.aspect){if(r.aspectPlacement=="left"){if(r.bg)return{left:0,"border-radius":"var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6) 0",border:"none"}}else if(r.bg)return{right:0,"border-radius":"0 var(--border-radius-base) 0 calc(var(--border-radius-base) * 0.6)",border:"none"}}}),C=a.computed(()=>{if(r.aspect)return`var(--color-${r.type}-lights-1)`}),b=a.computed(()=>{if(r.aspect)return r.type!="default"?`var(--color-${r.type})`:"var(--color-primary)"}),w=a.computed(()=>{if(r.bg)return r.type!="default"?`var(--color-${r.type}-num-10)`:"var(--color-primary-num-5)"}),S=a.computed(()=>r.aspect?"calc(var(--layout-padding-default) * 1.25)":"calc(var(--layout-padding-default) * 0.625)"),x=a.ref(!0);let k=a.ref(0);a.ref({});const _=D=>Math.floor(D)===D?D.toString():D.toFixed(2),T=async D=>{s.value=D&&D[0]||{};const B=r.dbOptions.columns&&r.dbOptions.dataField&&r.dbOptions.columns.length>0&&r.dbOptions.columns.find(M=>M.field===r.dbOptions.dataField),N=r.dbOptions.columns&&r.dbOptions.kpiField&&r.dbOptions.columns.length>0&&r.dbOptions.columns.find(M=>M.field===r.dbOptions.kpiField);if(r.dbOptions.rateField)k.value=s.value[r.dbOptions.rateField];else if(!s.value[B==null?void 0:B.field]||s.value[B==null?void 0:B.field]==0||!s.value[N==null?void 0:N.field]||s.value[N==null?void 0:N.field]==0)k.value="-";else{let M=s.value[B==null?void 0:B.field]/s.value[N==null?void 0:N.field];k.value=_(parseFloat(M)*100)}l.value=Urt(r.type,k.value,r.size,r.bg,r.options.subText,n.name.includes("om-blue")?`--color-${r.type}-lights-6`:n.name.includes("white")?`--color-${r.type}-lights-6`:`--color-${r.type}-lights-1`),u.value[0]={title:B==null?void 0:B.title,field:s.value[B==null?void 0:B.field],unit:B==null?void 0:B.unit},u.value[1]={title:N==null?void 0:N.title,field:s.value[N==null?void 0:N.field],unit:N==null?void 0:N.unit},i.value++},E=async D=>{var B;if(Un(D)){await D.loadData();let N=D.mergeData();await T(N),o.value=D.onDataUpdate(()=>{const M=D.mergeData();T(M)})}else if(Vn(D))await T(D.sourceData),o.value=D.onDataUpdate(()=>{T(D.sourceData)});else{const N=(B=r.dbOptions)==null?void 0:B.dataField;let M=await Xn(D,N);T(M);return}};a.watch(()=>{var B;const D=(B=r.dbOptions)==null?void 0:B.data;return a.isRef(D)?D.value:D},async(D,B)=>{!D||D===B||(o.value&&(o.value(),o.value=null),await E(D))},{immediate:!0}),a.onMounted(()=>{}),a.onUnmounted(()=>{o.value&&(o.value(),o.value=null)}),t({props:r,targetAchRef:c});const A=qn(r.dbOptions);return(D,B)=>{const N=a.resolveComponent("g-chart");return x.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-target-ach-outbox",ref_key:"targetAchRef",ref:c,onContextmenu:B[0]||(B[0]=(...M)=>a.unref(A)&&a.unref(A)(...M))},[r.aspect&&r.bg&&r.type!="default"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"g-aspect",style:a.normalizeStyle(y.value)},a.toDisplayString(r.aspect),5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["g-target-ach",f.value])},[a.createElementVNode("div",Yrt,a.toDisplayString(e.options.title),1),a.createElementVNode("div",jrt,[(a.openBlock(),a.createBlock(N,{options:l.value,key:a.unref(i)},null,8,["options"]))]),a.unref(d)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["targe",p.value])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(u),M=>(a.openBlock(),a.createElementBlock("div",Krt,[a.createElementVNode("div",Xrt,[B[1]||(B[1]=a.createElementVNode("span",{class:"circle"},null,-1)),a.createElementVNode("span",qrt,a.toDisplayString(M.title),1)]),a.createElementVNode("div",Zrt,[a.createTextVNode(a.toDisplayString(M.field!==void 0&&M.field!==null?M.field:"--")+" ",1),a.createElementVNode("span",null,a.toDisplayString(M.unit),1)])]))),256))],2)):a.createCommentVNode("",!0)],2)],544)):a.createCommentVNode("",!0)}}}),ure=Dt(Jrt),eat="4.0.29",Kp={coreVersion:eat,uiVersion:"",tableVersion:""};var tat={cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1},fc=tat;function nat(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)}var $o=nat,rat=Object.prototype.toString,cre=rat,aat=cre;function oat(e){return function(t){return"[object "+e+"]"===aat.call(t)}}var iC=oat,iat=iC,lat=Array.isArray||iat("Array"),Er=lat;function sat(e,t){return e&&e.hasOwnProperty?e.hasOwnProperty(t):!1}var cs=sat,uat=cs;function cat(e,t,n){if(e)for(var r in e)uat(e,r)&&t.call(n,e[r],r,e)}var lC=cat,dat=Er,fat=$o,pat=lC;function hat(e,t,n){return e&&(dat(e)?fat:pat)(e,t,n)}var $a=hat;function vat(e){return function(t){return typeof t===e}}var tg=vat,mat=tg,gat=mat("function"),Pi=gat,yat=$a;function bat(e,t){var n=Object[e];return function(r){var o=[];if(r){if(n)return n(r);yat(r,t>1?function(i){o.push([""+i,r[i]])}:function(){o.push(arguments[t])})}return o}}var rP=bat,Cat=rP,wat=Cat("keys",1),pc=wat,Sat=cre,xat=lC,kat=$o;function m2(e,t){var n=e.__proto__.constructor;return t?new n(t):new n}function r1(e,t){return t?dre(e,t):e}function dre(e,t){if(e)switch(Sat.call(e)){case"[object Object]":{var n=Object.create(Object.getPrototypeOf(e));return xat(e,function(l,s){n[s]=r1(l,t)}),n}case"[object Date]":case"[object RegExp]":return m2(e,e.valueOf());case"[object Array]":case"[object Arguments]":{var r=[];return kat(e,function(l){r.push(r1(l,t))}),r}case"[object Set]":{var o=m2(e);return o.forEach(function(l){o.add(r1(l,t))}),o}case"[object Map]":{var i=m2(e);return i.forEach(function(l,s){i.set(s,r1(l,t))}),i}}return e}function Eat(e,t){return e&&dre(e,t)}var aP=Eat,_at=$o,Tat=pc,Aat=Er,Dat=aP,QH=Object.assign;function JH(e,t,n){for(var r=t.length,o,i=1;i<r;i++)o=t[i],_at(Tat(t[i]),n?function(l){e[l]=Dat(o[l],n)}:function(l){e[l]=o[l]});return e}var Mat=function(e){if(e){var t=arguments;if(e===!0){if(t.length>1)return e=Aat(e[1])?[]:{},JH(e,t,!0)}else return QH?QH.apply(Object,t):JH(e,t)}return e},ds=Mat,Nat=fc,Bat=$o,Oat=$a,Iat=Pi,Rat=ds,pp=function(){};function Lat(){Bat(arguments,function(e){Oat(e,function(t,n){pp[n]=Iat(t)?function(){var r=t.apply(pp.$context,arguments);return pp.$context=null,r}:t})})}function Pat(e){return Rat(Nat,e)}pp.VERSION="3.6.0";pp.mixin=Lat;pp.setup=Pat;var Vat=pp;function Fat(e,t,n){for(var r=e.length-1;r>=0;r--)t.call(n,e[r],r,e)}var oP=Fat,zat=oP,$at=pc;function Hat(e,t,n){zat($at(e),function(r){t.call(n,e[r],r,e)})}var fre=Hat;function Wat(e){return e===null}var hc=Wat,Gat=hc;function Uat(e,t){return function(n){return Gat(n)?t:n[e]}}var ng=Uat,Yat=$a,jat=Pi,Kat=ng;function Xat(e,t,n){var r={};if(e)if(t)jat(t)||(t=Kat(t)),Yat(e,function(o,i){r[i]=t.call(n,o,i,e)});else return e;return r}var qat=Xat;function Zat(e){return e?e.constructor===Object:!1}var rg=Zat,e7=Er,t7=rg,Qat=$a;function pre(e,t){return t7(e)&&t7(t)||e7(e)&&e7(t)?(Qat(t,function(n,r){e[r]=pre(e[r],n)}),e):t}var Jat=function(e){e||(e={});for(var t=arguments,n=t.length,r,o=1;o<n;o++)r=t[o],r&&pre(e,r);return e},eot=Jat,tot=$a;function not(e,t,n){var r=[];if(e&&arguments.length>1){if(e.map)return e.map(t,n);tot(e,function(){r.push(t.apply(n,arguments))})}return r}var Xp=not,rot=cs,aot=Er;function oot(e,t,n,r,o){return function(i,l,s){if(i&&l){if(e&&i[e])return i[e](l,s);if(t&&aot(i)){for(var u=0,c=i.length;u<c;u++)if(!!l.call(s,i[u],u,i)===r)return[!0,!1,u,i[u]][n]}else for(var d in i)if(rot(i,d)&&!!l.call(s,i[d],d,i)===r)return[!0,!1,d,i[d]][n]}return o}}var RE=oot,iot=RE,lot=iot("some",1,0,!0,!1),hre=lot,sot=RE,uot=sot("every",1,1,!1,!0),vre=uot,cot=cs;function dot(e,t){if(e){if(e.includes)return e.includes(t);for(var n in e)if(cot(e,n)&&t===e[n])return!0}return!1}var ag=dot,n7=Er,r7=ag;function fot(e,t){var n,r=0;if(n7(e)&&n7(t)){for(n=t.length;r<n;r++)if(!r7(e,t[r]))return!1;return!0}return r7(e,t)}var mre=fot,a7=$a,pot=ag,hot=Pi,vot=ng;function mot(e,t,n){var r=[];if(t){hot(t)||(t=vot(t));var o,i={};a7(e,function(l,s){o=t.call(n,l,s,e),i[o]||(i[o]=1,r.push(l))})}else a7(e,function(l){pot(r,l)||r.push(l)});return r}var gre=mot,got=Xp;function yot(e){return got(e,function(t){return t})}var iP=yot,bot=gre,Cot=iP;function wot(){for(var e=arguments,t=[],n=0,r=e.length;n<r;n++)t=t.concat(Cot(e[n]));return bot(t)}var Sot=wot,xot="undefined",fs=xot,kot=fs,Eot=tg,_ot=Eot(kot),hu=_ot,Tot=hc,Aot=hu;function Dot(e){return Tot(e)||Aot(e)}var Id=Dot,Mot=/(.+)?\[(\d+)\]$/,yre=Mot;function Not(e){return e?e.splice&&e.join?e:(""+e).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}var lP=Not,Bot=yre,Oot=lP,Iot=cs,Rot=hu,bre=Id;function Lot(e,t,n){if(bre(e))return n;var r=Vot(e,t);return Rot(r)?n:r}function Pot(e,t){var n=t?t.match(Bot):"";return n?n[1]?e[n[1]]?e[n[1]][n[2]]:void 0:e[n[2]]:e[t]}function Vot(e,t){if(e){var n,r,o,i=0;if(e[t]||Iot(e,t))return e[t];if(r=Oot(t),o=r.length,o){for(n=e;i<o;i++)if(n=Pot(n,r[i]),bre(n))return i===o-1?n:void 0}return n}}var sC=Lot,o7=$o,Fot=iP,i7=Xp,l7=Er,zot=Pi,$ot=rg,s7=hu,Hot=hc,Wot=Id,Got=sC,Uot=ng,Yot="asc",jot="desc";function oB(e,t){return s7(e)?1:Hot(e)?s7(t)?-1:1:e&&e.localeCompare?e.localeCompare(t):e>t?1:-1}function Kot(e,t,n){return function(r,o){var i=r[e],l=o[e];return i===l?n?n(r,o):0:t.order===jot?oB(l,i):oB(i,l)}}function Xot(e,t,n,r){var o=[];return n=l7(n)?n:[n],o7(n,function(i,l){if(i){var s=i,u;l7(i)?(s=i[0],u=i[1]):$ot(i)&&(s=i.field,u=i.order),o.push({field:s,order:u||Yot}),o7(t,zot(s)?function(c,d){c[l]=s.call(r,c.data,d,e)}:function(c){c[l]=s?Got(c.data,s):c.data})}}),o}function qot(e,t,n){if(e){if(Wot(t))return Fot(e).sort(oB);for(var r,o=i7(e,function(s){return{data:s}}),i=Xot(e,o,t,n),l=i.length-1;l>=0;)r=Kot(l,i[l],r),l--;return r&&(o=o.sort(r)),i7(o,Uot("data"))}return[]}var sP=qot,Zot=sP,Qot=Zot,Jot=Qot;function eit(e,t){return e>=t?e:(e=e>>0)+Math.round(Math.random()*((t||9)-e))}var Cre=eit,tit=rP,nit=tit("values",0),og=nit,rit=Cre,ait=og;function oit(e){for(var t,n=[],r=ait(e),o=r.length-1;o>=0;o--)t=o>0?rit(0,o):0,n.push(r[t]),r.splice(t,1);return n}var wre=oit,iit=wre;function lit(e,t){var n=iit(e);return arguments.length<=1?n[0]:(t<n.length&&(n.length=t||0),n)}var sit=lit;function uit(e){return function(t){if(t){var n=e(t&&t.replace?t.replace(/,/g,""):t);if(!isNaN(n))return n}return 0}}var Sre=uit,cit=Sre,dit=cit(parseFloat),qp=dit,u7=qp;function fit(e,t,n){var r=[],o=arguments.length;if(e){if(t=o>=2?u7(t):0,n=o>=3?u7(n):e.length,e.slice)return e.slice(t,n);for(;t<n;t++)r.push(e[t])}return r}var Zp=fit,pit=$a;function hit(e,t,n){var r=[];if(e&&t){if(e.filter)return e.filter(t,n);pit(e,function(o,i){t.call(n,o,i,e)&&r.push(o)})}return r}var vit=hit,mit=RE,git=mit("",0,2,!0),yit=git,bit=RE,Cit=bit("find",1,3,!0),wit=Cit,Sit=Er,xit=og;function kit(e,t,n){if(e){Sit(e)||(e=xit(e));for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return e[r]}}var Eit=kit,_it=pc;function Tit(e,t,n){if(e){var r,o,i=0,l=null,s=n,u=arguments.length>2,c=_it(e);if(e.length&&e.reduce)return o=function(){return t.apply(l,arguments)},u?e.reduce(o,s):e.reduce(o);for(u&&(i=1,s=e[c[0]]),r=c.length;i<r;i++)s=t.call(l,s,e[c[i]],i,e);return s}}var Ait=Tit,Dit=Er;function Mit(e,t,n,r){if(Dit(e)&&e.copyWithin)return e.copyWithin(t,n,r);var o,i,l=t>>0,s=n>>0,u=e.length,c=arguments.length>3?r>>0:u;if(l<u&&(l=l>=0?l:u+l,l>=0&&(s=s>=0?s:u+s,c=c>=0?c:u+c,s<c)))for(o=0,i=e.slice(s,c);l<u&&!(i.length<=o);l++)e[l]=i[o++];return e}var Nit=Mit,Bit=Er;function Oit(e,t){var n,r=[],o=t>>0||1;if(Bit(e))if(o>=0&&e.length>o)for(n=0;n<e.length;)r.push(e.slice(n,n+o)),n+=o;else r=e.length?[e]:e;return r}var Iit=Oit,Rit=Xp,Lit=ng;function Pit(e,t){return Rit(e,Lit(t))}var xre=Pit,Vit=Pi,c7=Id,Fit=sC,zit=$o;function $it(e){return function(t,n){if(t&&t.length){var r,o;return zit(t,function(i,l){n&&(i=Vit(n)?n(i,l,t):Fit(i,n)),!c7(i)&&(c7(r)||e(r,i))&&(o=l,r=i)}),t[o]}return r}}var kre=$it,Hit=kre,Wit=Hit(function(e,t){return e<t}),Ere=Wit,Git=xre,Uit=Ere;function Yit(e){var t,n,r,o=[];if(e&&e.length)for(t=0,n=Uit(e,function(i){return i?i.length:0}),r=n?n.length:0;t<r;t++)o.push(Git(e,t));return o}var _re=Yit,jit=_re;function Kit(){return jit(arguments)}var Xit=Kit,qit=og,Zit=$a;function Qit(e,t){var n={};return t=t||[],Zit(qit(e),function(r,o){n[r]=t[o]}),n}var Jit=Qit,Tre=Er,elt=$o;function Are(e,t){var n=[];return elt(e,function(r){n=n.concat(Tre(r)?t?Are(r,t):r:[r])}),n}function tlt(e,t){return Tre(e)?Are(e,t):[]}var nlt=tlt,rlt=Xp,alt=Er;function olt(e,t){for(var n=0,r=t.length;e&&n<r;)e=e[t[n++]];return r&&e?e:0}function ilt(e,t){for(var n,r=arguments,o=[],i=[],l=2,s=r.length;l<s;l++)o.push(r[l]);if(alt(t)){for(s=t.length-1,l=0;l<s;l++)i.push(t[l]);t=t[s]}return rlt(e,function(u){if(i.length&&(u=olt(u,i)),n=u[t]||t,n&&n.apply)return n.apply(u,o)})}var llt=ilt;function slt(e,t){try{delete e[t]}catch{e[t]=void 0}}var Dre=slt,ult=Er,clt=oP,dlt=fre;function flt(e,t,n){return e&&(ult(e)?clt:dlt)(e,t,n)}var Mre=flt,plt=tg,hlt=plt("object"),LE=hlt,vlt=Dre,mlt=rg,glt=LE,ylt=Er,blt=hc,Clt=ds,wlt=lC;function Slt(e,t,n){if(e){var r,o=arguments.length>1&&(blt(t)||!glt(t)),i=o?n:t;if(mlt(e))wlt(e,o?function(l,s){e[s]=t}:function(l,s){vlt(e,s)}),i&&Clt(e,i);else if(ylt(e)){if(o)for(r=e.length;r>0;)r--,e[r]=t;else e.length=0;i&&e.push.apply(e,i)}}return e}var Nre=Slt,xlt=Dre,klt=Pi,Elt=Er,_lt=$a,Tlt=$o,Alt=Mre,Dlt=Nre,Mlt=Id;function Nlt(e){return function(t,n){return n===e}}function Blt(e,t,n){if(e){if(!Mlt(t)){var r=[],o=[];return klt(t)||(t=Nlt(t)),_lt(e,function(i,l,s){t.call(n,i,l,s)&&r.push(l)}),Elt(e)?Alt(r,function(i,l){o.push(e[i]),e.splice(i,1)}):(o={},Tlt(r,function(i){o[i]=e[i],xlt(e,i)})),o}return Dlt(e)}return e}var Bre=Blt,Olt=fc,Ilt=sP,Rlt=aP,Llt=Id,iB=$a,Plt=Bre,Vlt=ds;function Flt(e,t){iB(e,function(n){n[t]&&!n[t].length&&Plt(n,t)})}function zlt(e,t){var n=Vlt({},Olt.treeOptions,t),r=n.strict,o=n.key,i=n.parentKey,l=n.children,s=n.mapChildren,u=n.sortKey,c=n.reverse,d=n.data,f=[],p={},h={},v,m,g;return u&&(e=Ilt(Rlt(e),u),c&&(e=e.reverse())),iB(e,function(y){v=y[o],h[v]=!0}),iB(e,function(y){v=y[o],d?(m={},m[d]=y):m=y,g=y[i],p[v]=p[v]||[],m[o]=v,m[i]=g,v===g&&(g=null,console.log("Fix infinite Loop.",y)),p[g]=p[g]||[],p[g].push(m),m[l]=p[v],s&&(m[s]=p[v]),(!r||r&&Llt(g))&&(h[g]||f.push(m))}),r&&Flt(e,l),f}var $lt=zlt,Hlt=fc,Wlt=$o,Glt=ds;function Ore(e,t,n,r){var o=r.key,i=r.parentKey,l=r.children,s=r.data,u=r.updated,c=r.clear;return Wlt(n,function(d){var f=d[l];s&&(d=d[s]),u!==!1&&(d[i]=t?t[o]:null),e.push(d),f&&f.length&&Ore(e,d,f,r),c&&delete d[l]}),e}function Ult(e,t){return Ore([],null,e,Glt({},Hlt.treeOptions,t))}var Ylt=Ult;function jlt(e){return function(t,n,r,o){var i=r||{},l=i.children||"children";return e(null,t,n,o,[],[],l,i)}}var PE=jlt,Klt=PE;function Ire(e,t,n,r,o,i,l,s){if(t){var u,c,d,f,p,h;for(c=0,d=t.length;c<d;c++){if(u=t[c],f=o.concat([""+c]),p=i.concat([u]),n.call(r,u,c,t,f,e,p))return{index:c,item:u,path:f,items:t,parent:e,nodes:p};if(l&&u&&(h=Ire(u,u[l],n,r,f.concat([l]),p,l),h))return h}}}var Xlt=Klt(Ire),qlt=Xlt,Zlt=PE,Qlt=$a;function Rre(e,t,n,r,o,i,l,s){var u,c;Qlt(t,function(d,f){u=o.concat([""+f]),c=i.concat([d]),n.call(r,d,f,t,u,e,c),d&&l&&(u.push(l),Rre(d,d[l],n,r,u,c,l))})}var Jlt=Zlt(Rre),Lre=Jlt,est=PE,tst=Xp;function Pre(e,t,n,r,o,i,l,s){var u,c,d,f=s.mapChildren||l;return tst(t,function(p,h){return u=o.concat([""+h]),c=i.concat([p]),d=n.call(r,p,h,t,u,e,c),d&&p&&l&&p[l]&&(d[f]=Pre(p,p[l],n,r,u,c,l,s)),d})}var nst=est(Pre),rst=nst,ast=Lre;function ost(e,t,n,r){var o=[];return e&&t&&ast(e,function(i,l,s,u,c,d){t.call(r,i,l,s,u,c,d)&&o.push(i)},n),o}var ist=ost,lst=PE,sst=$o,ust=ds;function Vre(e,t,n,r,o,i,l,s,u){var c,d,f,p,h,v=[],m=u.original,g=u.data,y=u.mapChildren||s,C=u.isEvery;return sst(n,function(b,w){c=i.concat([""+w]),d=l.concat([b]),p=e&&!C||r.call(o,b,w,n,c,t,d),h=s&&b[s],p||h?(m?f=b:(f=ust({},b),g&&(f[g]=b)),f[y]=Vre(p,b,b[s],r,o,c,d,s,u),(p||f[y].length)&&v.push(f)):p&&v.push(f)}),v}var cst=lst(function(e,t,n,r,o,i,l,s){return Vre(0,e,t,n,r,o,i,l,s)}),dst=cst;function fst(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(t===e[n])return n}var Fre=fst;function pst(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var n=e.length-1;n>=0;n--)if(t===e[n])return n;return-1}var zre=pst,hst=tg,vst=hst("number"),vu=vst,mst=vu;function gst(e){return mst(e)&&isNaN(e)}var yst=gst,bst=tg,Cst=bst("string"),vc=Cst,wst=iC,Sst=wst("Date"),Rd=Sst,xst=parseInt,uC=xst;function kst(e){return Date.UTC(e.y,e.M||0,e.d||1,e.H||0,e.m||0,e.s||0,e.S||0)}var Est=kst;function _st(e){return e.getTime()}var xl=_st,Xx=uC,d7=Est,Tst=xl,Ast=vc,Dst=Rd;function cC(e){return"(\\d{"+e+"})"}function Mst(e){return e<10?e*100:e<100?e*10:e}function f7(e){return isNaN(e)?e:Xx(e)}var Vh=cC(2),ov=cC("1,2"),$re=cC("1,7"),Hre=cC("3,4"),Wre=".{1}",oy=Wre+ov,Gre="(([zZ])|([-+]\\d{2}:?\\d{2}))",p7=[Hre,oy,oy,oy,oy,oy,Wre+$re,Gre],lB=[];for(var g2=p7.length-1;g2>=0;g2--){for(var h7="",hp=0;hp<g2+1;hp++)h7+=p7[hp];lB.push(new RegExp("^"+h7+"$"))}function Nst(e){for(var t,n={},r=0,o=lB.length;r<o;r++)if(t=e.match(lB[r]),t){n.y=t[1],n.M=t[2],n.d=t[3],n.H=t[4],n.m=t[5],n.s=t[6],n.S=t[7],n.Z=t[8];break}return n}var v7=[["yyyy",Hre],["yy",Vh],["MM",Vh],["M",ov],["dd",Vh],["d",ov],["HH",Vh],["H",ov],["mm",Vh],["m",ov],["ss",Vh],["s",ov],["SSS",cC(3)],["S",$re],["Z",Gre]],Ure={},Yre=["\\[([^\\]]+)\\]"];for(var hp=0;hp<v7.length;hp++){var y2=v7[hp];Ure[y2[0]]=y2[1]+"?",Yre.push(y2[0])}var Bst=new RegExp(Yre.join("|"),"g"),m7={};function Ost(e,t){var n=m7[t];if(!n){var r=[],o=t.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(Bst,function(d,f){var p=d.charAt(0);return p==="["?f:(r.push(p),Ure[d])});n=m7[t]={_i:r,_r:new RegExp(o)}}var i={},l=e.match(n._r);if(l){for(var s=n._i,u=1,c=l.length;u<c;u++)i[s[u-1]]=l[u];return i}return i}function Ist(e){if(/^[zZ]/.test(e.Z))return new Date(d7(e));var t=e.Z.match(/([-+])(\d{2}):?(\d{2})/);return t?new Date(d7(e)-(t[1]==="-"?-1:1)*Xx(t[2])*36e5+Xx(t[3])*6e4):new Date("")}function Rst(e,t){if(e){var n=Dst(e);if(n||!t&&/^[0-9]{11,15}$/.test(e))return new Date(n?Tst(e):Xx(e));if(Ast(e)){var r=t?Ost(e,t):Nst(e);if(r.y)return r.M&&(r.M=f7(r.M)-1),r.S&&(r.S=Mst(f7(r.S.substring(0,3)))),r.Z?Ist(r):new Date(r.y,r.M||0,r.d||1,r.H||0,r.m||0,r.s||0,r.S||0)}}return new Date("")}var ui=Rst;function Lst(){return new Date}var VE=Lst,Pst=Rd,Vst=ui,Fst=VE;function zst(e){var t,n=e?Vst(e):Fst();return Pst(n)?(t=n.getFullYear(),t%4===0&&(t%100!==0||t%400===0)):!1}var jre=zst,$st=Er,Hst=cs;function Wst(e,t,n){if(e){if($st(e))for(var r=0,o=e.length;r<o&&t.call(n,e[r],r,e)!==!1;r++);else for(var i in e)if(Hst(e,i)&&t.call(n,e[i],i,e)===!1)break}}var Gst=Wst,Ust=Er,Yst=cs;function jst(e,t,n){if(e){var r,o;if(Ust(e))for(r=e.length-1;r>=0&&t.call(n,e[r],r,e)!==!1;r--);else for(o=Yst(e),r=o.length-1;r>=0&&t.call(n,e[o[r]],o[r],e)!==!1;r--);}}var Kst=jst,Xst=Er,qst=vc,Zst=cs;function Qst(e,t){return function(n,r){if(n){if(n[e])return n[e](r);if(qst(n)||Xst(n))return t(n,r);for(var o in n)if(Zst(n,o)&&r===n[o])return o}return-1}}var Kre=Qst,Jst=Kre,eut=Fre,tut=Jst("indexOf",eut),nut=tut,rut=Kre,aut=zre,out=rut("lastIndexOf",aut),Xre=out,iut=Er,lut=vc,sut=$a;function uut(e){var t=0;return lut(e)||iut(e)?e.length:(sut(e,function(){t++}),t)}var qre=uut,cut=vu;function dut(e){return cut(e)&&isFinite(e)}var fut=dut,put=Er,hut=hc,vut=function(e){return!hut(e)&&!isNaN(e)&&!put(e)&&e%1===0},Zre=vut,mut=Er,gut=Zre,yut=hc;function but(e){return!yut(e)&&!isNaN(e)&&!mut(e)&&!gut(e)}var Cut=but,wut=tg,Sut=wut("boolean"),Qre=Sut,xut=iC,kut=xut("RegExp"),uP=kut,Eut=iC,_ut=Eut("Error"),Jre=_ut;function Tut(e){return e?e.constructor===TypeError:!1}var Aut=Tut;function Dut(e){for(var t in e)return!1;return!0}var eae=Dut,Mut=fs,Nut=typeof Symbol!==Mut;function But(e){return Nut&&Symbol.isSymbol?Symbol.isSymbol(e):typeof e=="symbol"}var tae=But,Out=iC,Iut=Out("Arguments"),Rut=Iut,Lut=vc,Put=vu;function Vut(e){return!!(e&&Lut(e.nodeName)&&Put(e.nodeType))}var Fut=Vut,zut=fs,$ut=typeof document===zut?0:document,cP=$ut,Hut=cP;function Wut(e){return!!(e&&Hut&&e.nodeType===9)}var Gut=Wut,Uut=fs,Yut=typeof window===Uut?0:window,nae=Yut,jut=nae;function Kut(e){return!!(jut&&(e&&e===e.window))}var Xut=Kut,qut=fs,Zut=typeof FormData!==qut;function Qut(e){return Zut&&e instanceof FormData}var Jut=Qut,ect=fs,tct=typeof Map!==ect;function nct(e){return tct&&e instanceof Map}var rct=nct,act=fs,oct=typeof WeakMap!==act;function ict(e){return oct&&e instanceof WeakMap}var lct=ict,sct=fs,uct=typeof Set!==sct;function cct(e){return uct&&e instanceof Set}var dct=cct,fct=fs,pct=typeof WeakSet!==fct;function hct(e){return pct&&e instanceof WeakSet}var vct=hct,mct=Pi,gct=vc,yct=Er,bct=cs;function Cct(e){return function(t,n,r){if(t&&mct(n)){if(yct(t)||gct(t))return e(t,n,r);for(var o in t)if(bct(t,o)&&n.call(r,t[o],o,t))return o}return-1}}var rae=Cct,wct=rae,Sct=wct(function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1}),dP=Sct,g7=vu,y7=Er,b7=vc,xct=uP,kct=Rd,Ect=Qre,_ct=hu,C7=pc,Tct=vre;function aae(e,t,n,r,o,i,l){if(e===t)return!0;if(e&&t&&!g7(e)&&!g7(t)&&!b7(e)&&!b7(t)){if(xct(e))return n(""+e,""+t,o,i,l);if(kct(e)||Ect(e))return n(+e,+t,o,i,l);var s,u,c,d=y7(e),f=y7(t);if(d||f?d&&f:e.constructor===t.constructor)return u=C7(e),c=C7(t),r&&(s=r(e,t,o)),u.length===c.length?_ct(s)?Tct(u,function(p,h){return p===c[h]&&aae(e[p],t[c[h]],n,r,d||f?h:p,e,t)}):!!s:!1}return n(e,t,o,i,l)}var oae=aae;function Act(e,t){return e===t}var iae=Act,Dct=oae,Mct=iae;function Nct(e,t){return Dct(e,t,Mct)}var lae=Nct,w7=pc,Bct=dP,S7=lae,Oct=hre,Ict=mre;function Rct(e,t){var n=w7(e),r=w7(t);if(r.length){if(Ict(n,r))return Oct(r,function(o){return Bct(n,function(i){return i===o&&S7(e[i],t[o])})>-1})}else return!0;return S7(e,t)}var Lct=Rct,x7=oae,k7=iae,Pct=Pi,Vct=hu;function Fct(e,t,n){return Pct(n)?x7(e,t,function(r,o,i,l,s){var u=n(r,o,i,l,s);return Vct(u)?k7(r,o):!!u},n):x7(e,t,k7)}var zct=Fct,$ct=tae,Hct=Rd,Wct=Er,Gct=uP,Uct=Jre,Yct=hc;function jct(e){return Yct(e)?"null":$ct(e)?"symbol":Hct(e)?"date":Wct(e)?"array":Gct(e)?"regexp":Uct(e)?"error":typeof e}var Kct=jct,Xct=0;function qct(e){return[e,++Xct].join("")}var Zct=qct,Qct=rae,Jct=Qct(function(e,t,n){for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return r;return-1}),edt=Jct,tdt=rg,ndt=vc;function rdt(e){if(tdt(e))return e;if(ndt(e))try{return JSON.parse(e)}catch{}return{}}var adt=rdt,odt=Id;function idt(e){return odt(e)?"":JSON.stringify(e)}var ldt=idt,sdt=rP,udt=sdt("entries",2),cdt=udt,ddt=Pi,fdt=Er,pdt=$a,hdt=dP;function vdt(e,t){return function(n,r){var o,i,l={},s=[],u=this,c=arguments,d=c.length;if(!ddt(r)){for(i=1;i<d;i++)o=c[i],s.push.apply(s,fdt(o)?o:[o]);r=0}return pdt(n,function(f,p){((r?r.call(u,f,p,n):hdt(s,function(h){return h===p})>-1)?e:t)&&(l[p]=f)}),l}}var sae=vdt,mdt=sae,gdt=mdt(1,0),ydt=gdt,bdt=sae,Cdt=bdt(0,1),wdt=Cdt,Sdt=og;function xdt(e){return Sdt(e)[0]}var kdt=xdt,Edt=og;function _dt(e){var t=Edt(e);return t[t.length-1]}var Tdt=_dt,Adt=yre,Ddt=lP,a1=cs;function Mdt(e,t){if(e){if(a1(e,t))return!0;var n,r,o,i,l,s,u=Ddt(t),c=0,d=u.length;for(l=e;c<d&&(s=!1,n=u[c],i=n?n.match(Adt):"",i?(r=i[1],o=i[2],r?l[r]&&a1(l[r],o)&&(s=!0,l=l[r][o]):a1(l,o)&&(s=!0,l=l[o])):a1(l,n)&&(s=!0,l=l[n]),s);c++)if(c===d-1)return!0}return!1}var Ndt=Mdt,E7=uC,Bdt=lP,Odt=cs,_7=/(.+)?\[(\d+)\]$/;function Idt(e,t,n,r,o){if(e[t])n&&(e[t]=o);else{var i,l,s=t?t.match(_7):null;if(n)l=o;else{var u=r?r.match(_7):null;u&&!u[1]?l=new Array(E7(u[2])+1):l={}}return s?s[1]?(i=E7(s[2]),e[s[1]]?n?e[s[1]][i]=l:e[s[1]][i]?l=e[s[1]][i]:e[s[1]][i]=l:(e[s[1]]=new Array(i+1),e[s[1]][i]=l)):e[s[2]]=l:e[t]=l,l}return e[t]}function Rdt(e,t,n){if(e){if((e[t]||Odt(e,t))&&!T7(t))e[t]=n;else for(var r=e,o=Bdt(t),i=o.length,l=0;l<i;l++)if(!T7(o[l])){var s=l===i-1;r=Idt(r,o[l],s,s?null:o[l+1],n)}}return e}function T7(e){return e==="__proto__"||e==="constructor"||e==="prototype"}var Ldt=Rdt,Pdt=eae,Vdt=LE,Fdt=Pi,zdt=ng,$dt=$a;function Hdt(e){return function(){return Pdt(e)}}function Wdt(e,t,n){var r,o={};return e&&(t&&Vdt(t)?t=Hdt(t):Fdt(t)||(t=zdt(t)),$dt(e,function(i,l){r=t?t.call(n,i,l,e):i,o[r]?o[r].push(i):o[r]=[i]})),o}var uae=Wdt,Gdt=uae,Udt=lC;function Ydt(e,t,n){var r=Gdt(e,t,n||this);return Udt(r,function(o,i){r[i]=o.length}),r}var jdt=Ydt;function Kdt(e,t,n){var r,o,i=[],l=arguments;if(l.length<2&&(t=l[0],e=0),r=e>>0,o=t>>0,r<t)for(n=n>>0||1;r<o;r+=n)i.push(r);return i}var cae=Kdt,A7=pc,Xdt=Zp,qdt=ag,Zdt=$o,Qdt=ds;function Jdt(e,t){if(e&&t){var n=Qdt.apply(this,[{}].concat(Xdt(arguments,1))),r=A7(n);Zdt(A7(e),function(o){qdt(r,o)&&(e[o]=n[o])})}return e}var eft=Jdt,tft=kre,nft=tft(function(e,t){return e>t}),rft=nft;function aft(e){return(e.split(".")[1]||"").length}var FE=aft,oft=uC;function ift(e,t){if(e.repeat)return e.repeat(t);var n=isNaN(t)?[]:new Array(oft(t));return n.join(e)+(n.length>0?e:"")}var dC=ift;function lft(e,t){return e.substring(0,t)+"."+e.substring(t,e.length)}var dae=lft,o1=dC,b2=dae;function sft(e){var t=""+e,n=t.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(n){var r=e<0,o=r?"-":"",i=n[3]||"",l=n[5]||"",s=n[6]||"",u=n[7],c=n[8],d=c-s.length,f=c-i.length,p=c-l.length;return u==="+"?i?o+i+o1("0",c):d>0?o+l+s+o1("0",d):o+l+b2(s,c):i?f>0?o+"0."+o1("0",Math.abs(f))+i:o+b2(i,f):p>0?o+"0."+o1("0",Math.abs(p))+l+s:o+b2(l,p)+s}return t}var Ld=sft,D7=FE,M7=Ld;function uft(e,t){var n=M7(e),r=M7(t);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,D7(n)+D7(r))}var fae=uft,cft=fae,N7=qp,dft=Ld;function fft(e){return function(t,n){var r=N7(t),o=r;if(r){n=n>>0;var i=dft(r),l=i.split("."),s=l[0],u=l[1]||"",c=u.substring(0,n+1),d=s+(c?"."+c:"");if(n>=u.length)return N7(d);if(d=r,n>0){var f=Math.pow(10,n);o=Math[e](cft(d,f))/f}else o=Math[e](d)}return o}}var fP=fft,pft=fP,hft=pft("round"),pP=hft,vft=fP,mft=vft("ceil"),pae=mft,gft=fP,yft=gft("floor"),hae=yft,bft=Id,Cft=vu,wft=Ld;function Sft(e){return Cft(e)?wft(e):""+(bft(e)?"":e)}var ci=Sft,xft=pP,kft=ci,Eft=dC,_ft=dae;function Tft(e,t){t=t>>0;var n=kft(xft(e,t)),r=n.split("."),o=r[0],i=r[1]||"",l=t-i.length;return t?l>0?o+"."+i+Eft("0",l):o+_ft(i,Math.abs(l)):o}var hP=Tft,Aft=fc,Dft=pP,Mft=pae,Nft=hae,Bft=vu,Oft=ci,Ift=hP,Rft=Ld,Lft=ds;function Pft(e,t){var n=Lft({},Aft.commafyOptions,t),r=n.digits,o=Bft(e),i,l,s,u,c;return o?(i=(n.ceil?Mft:n.floor?Nft:Dft)(e,r),l=Rft(r?Ift(i,r):i).split("."),u=l[0],c=l[1],s=u&&i<0,s&&(u=u.substring(1,u.length))):(i=Oft(e).replace(/,/g,""),l=i?[i]:[],u=l[0]),l.length?(s?"-":"")+u.replace(new RegExp("(?=(?!(\\b))(.{"+(n.spaceNumber||3)+"})+$)","g"),n.separator||",")+(c?"."+c:""):i}var Vft=Pft,Fft=uC,zft=Sre,$ft=zft(Fft),Hft=$ft,Wft=fae,B7=qp;function Gft(e,t){var n=B7(e),r=B7(t);return Wft(n,r)}var vP=Gft,O7=FE,I7=Ld,R7=vP;function Uft(e,t){var n=I7(e),r=I7(t),o=Math.pow(10,Math.max(O7(n),O7(r)));return(R7(e,o)+R7(t,o))/o}var vae=Uft,Yft=vae,L7=qp;function jft(e,t){return Yft(L7(e),L7(t))}var Kft=jft,P7=FE,V7=Ld,F7=qp,Xft=hP;function qft(e,t){var n=F7(e),r=F7(t),o=V7(n),i=V7(r),l=P7(o),s=P7(i),u=Math.pow(10,Math.max(l,s)),c=l>=s?l:s;return parseFloat(Xft((n*u-r*u)/u,c))}var Zft=qft,z7=FE,$7=Ld,Qft=vP;function Jft(e,t){var n=$7(e),r=$7(t),o=z7(n),i=z7(r),l=i-o,s=l<0,u=Math.pow(10,s?Math.abs(l):l);return Qft(n.replace(".","")/r.replace(".",""),s?1/u:u)}var mae=Jft,ept=mae,H7=qp;function tpt(e,t){return ept(H7(e),H7(t))}var npt=tpt,C2=vae,rpt=Pi,apt=Er,opt=$a,ipt=sC;function lpt(e,t,n){var r=0;return opt(e&&e.length>2&&apt(e)?e.sort():e,t?rpt(t)?function(){r=C2(r,t.apply(n,arguments))}:function(o){r=C2(r,ipt(o,t))}:function(o){r=C2(r,o)}),r}var gae=lpt,spt=mae,upt=qre,cpt=gae;function dpt(e,t,n){return spt(cpt(e,t,n),upt(e))}var fpt=dpt,ppt="first",fC=ppt,hpt="last",zE=hpt;function vpt(e){return e.getFullYear()}var pC=vpt,mpt=864e5,ig=mpt;function gpt(e){return e.getMonth()}var $E=gpt,ypt=Rd,bpt=xl;function Cpt(e){return ypt(e)&&!isNaN(bpt(e))}var kl=Cpt,W7=fC,wpt=zE,Spt=ig,xpt=pC,G7=xl,U7=$E,kpt=ui,Ept=kl,_pt=vu;function yae(e,t,n){var r=t&&!isNaN(t)?t:0;if(e=kpt(e),Ept(e)){if(n===W7)return new Date(xpt(e),U7(e)+r,1);if(n===wpt)return new Date(G7(yae(e,r+1,W7))-1);if(_pt(n)&&e.setDate(n),r){var o=e.getDate();if(e.setMonth(U7(e)+r),o!==e.getDate())return e.setDate(1),new Date(G7(e)-Spt)}}return e}var hC=yae,Tpt=fC,Y7=zE,j7=pC,Apt=hC,Dpt=ui,Mpt=kl;function Npt(e,t,n){var r;if(e=Dpt(e),Mpt(e)&&(t&&(r=t&&!isNaN(t)?t:0,e.setFullYear(j7(e)+r)),n||!isNaN(n))){if(n===Tpt)return new Date(j7(e),0,1);if(n===Y7)return e.setMonth(11),Apt(e,0,Y7);e.setMonth(n)}return e}var HE=Npt,Bpt=hC,Opt=ui,Ipt=kl;function Rpt(e){var t=e.getMonth();return t<3?1:t<6?2:t<9?3:4}function Lpt(e,t,n){var r,o=t&&!isNaN(t)?t*3:0;return e=Opt(e),Ipt(e)?(r=(Rpt(e)-1)*3,e.setMonth(r),Bpt(e,o,n)):e}var Ppt=Lpt,K7=fC,Vpt=zE,Fpt=uC,zpt=pC,$pt=$E,Hpt=xl,Wpt=ui,Gpt=kl;function bae(e,t,n){if(e=Wpt(e),Gpt(e)&&!isNaN(t)){if(e.setDate(e.getDate()+Fpt(t)),n===K7)return new Date(zpt(e),$pt(e),e.getDate());if(n===Vpt)return new Date(Hpt(bae(e,1,K7))-1)}return e}var Cae=bae;function Upt(e){return e.toUpperCase()}var wae=Upt,Ypt=ig,jpt=Ypt*7,Sae=jpt,Kpt=fc,w2=ig,Xpt=Sae,qpt=xl,Zpt=ui,Qpt=kl,X7=vu;function Jpt(e,t,n,r){if(e=Zpt(e),Qpt(e)){var o=X7(n),i=X7(r),l=qpt(e);if(o||i){var s=i?r:Kpt.firstDayOfWeek,u=e.getDay(),c=o?n:u;if(u!==c){var d=0;s>u?d=-(7-s+u):s<u&&(d=s-u),c>s?l+=((c===0?7:c)-s+d)*w2:c<s?l+=(7-s+c+d)*w2:l+=d*w2}}return t&&!isNaN(t)&&(l+=t*Xpt),new Date(l)}return e}var xae=Jpt,eht=fc,i1=ig,tht=Sae,nht=vu,rht=ag,aht=ui,oht=kl,q7=xae,iht=cae,lht=Xp,l1=xl,sht=lht(iht(0,7),function(e){return[(e+1)%7,(e+2)%7,(e+3)%7]});function Z7(e,t){var n=new Date(e).getDay();return rht(sht[t],n)}function uht(e,t){return function(n,r){var o=nht(r)?r:eht.firstDayOfWeek,i=aht(n);if(oht(i)){var l=q7(i,0,o,o),s=e(l),u=l1(s),c=l1(l),d=c+i1*6,f=new Date(d),p=q7(s,0,o,o),h=l1(p);if(c===h)return 1;var v;if(t(l,f)){for(v=l1(e(f));v<d;v+=i1)if(Z7(v,o))return 1}var m=h+i1*6,g=new Date(d),y=1;if(t(p,g)){for(y=0,v=u;v<m;v+=i1)if(Z7(v,o)){y++;break}}return Math.floor((c-h)/tht)+y}return NaN}}var kae=uht,cht=kae,dht=cht(function(e){return new Date(e.getFullYear(),0,1)},function(e,t){return e.getFullYear()!==t.getFullYear()}),Eae=dht,fht=pC,pht=$E;function hht(e){return new Date(fht(e),pht(e),e.getDate())}var vht=hht,mht=xl,ght=vht;function yht(e){return mht(ght(e))}var bht=yht,Cht=ig,wht=fC,Q7=bht,Sht=HE,xht=ui,kht=kl;function Eht(e){return e=xht(e),kht(e)?Math.floor((Q7(e)-Q7(Sht(e,0,wht)))/Cht)+1:NaN}var _ae=Eht,_ht=ci,Tht=hu,Aht=dC;function Dht(e,t,n){var r=_ht(e);return t=t>>0,n=Tht(n)?" ":""+n,r.padStart?r.padStart(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=Aht(n,t/n.length)),n.slice(0,t)+r):r}var Tae=Dht,iy=fc,Mht=wae,Nht=pC,J7=$E,Bht=ui,Oht=Eae,Iht=_ae,Rht=ds,Lht=kl,Pht=Pi,ks=Tae;function Dc(e,t,n,r){var o=t[n];return o?Pht(o)?o(r,n,e):o[r]:r}var Vht=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function Fht(e,t,n){if(e){if(e=Bht(e),Lht(e)){var r=t||iy.parseDateFormat||iy.formatString,o=e.getHours(),i=o<12?"am":"pm",l=Rht({},iy.parseDateRules||iy.formatStringMatchs,n?n.formats:null),s=function(b,w){return(""+Nht(e)).substr(4-w)},u=function(b,w){return ks(J7(e)+1,w,"0")},c=function(b,w){return ks(e.getDate(),w,"0")},d=function(b,w){return ks(o,w,"0")},f=function(b,w){return ks(o<=12?o:o-12,w,"0")},p=function(b,w){return ks(e.getMinutes(),w,"0")},h=function(b,w){return ks(e.getSeconds(),w,"0")},v=function(b,w){return ks(e.getMilliseconds(),w,"0")},m=function(b,w){var S=e.getTimezoneOffset()/60*-1;return Dc(e,l,b,(S>=0?"+":"-")+ks(S,2,"0")+(w===1?":":"")+"00")},g=function(b,w){return ks(Dc(e,l,b,Oht(e,(n?n.firstDay:null)||iy.firstDayOfWeek)),w,"0")},y=function(b,w){return ks(Dc(e,l,b,Iht(e)),w,"0")},C={yyyy:s,yy:s,MM:u,M:u,dd:c,d:c,HH:d,H:d,hh:f,h:f,mm:p,m:p,ss:h,s:h,SSS:v,S:v,ZZ:m,Z:m,WW:g,W:g,DDD:y,D:y,a:function(b){return Dc(e,l,b,i)},A:function(b){return Dc(e,l,b,Mht(i))},e:function(b){return Dc(e,l,b,e.getDay())},E:function(b){return Dc(e,l,b,e.getDay())},q:function(b){return Dc(e,l,b,Math.floor((J7(e)+3)/3))}};return r.replace(Vht,function(b,w){return w||(C[b]?C[b](b,b.length):b)})}return"Invalid Date"}return""}var Aae=Fht,zht=xl,$ht=VE,Hht=Date.now||function(){return zht($ht())},Dae=Hht,Wht=xl,Ght=Dae,Uht=ui,Yht=Rd,jht=function(e,t){if(e){var n=Uht(e,t);return Yht(n)?Wht(n):n}return Ght()},Kht=jht,eW=Aae;function Xht(e,t,n){return e&&t?(e=eW(e,n),e!=="Invalid Date"&&e===eW(t,n)):!1}var qht=Xht,Zht=kae,Qht=Zht(function(e){return new Date(e.getFullYear(),e.getMonth(),1)},function(e,t){return e.getMonth()!==t.getMonth()}),Jht=Qht,evt=HE,tvt=ui,nvt=kl,rvt=jre;function avt(e,t){return e=tvt(e),nvt(e)?rvt(evt(e,t))?366:365:NaN}var ovt=avt,ivt=ig,lvt=fC,svt=zE,tW=xl,nW=hC,uvt=ui,cvt=kl;function dvt(e,t){return e=uvt(e),cvt(e)?Math.floor((tW(nW(e,t,svt))-tW(nW(e,t,lvt)))/ivt)+1:NaN}var fvt=dvt,rW=xl,pvt=VE,aW=ui,oW=kl,iW=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function hvt(e,t){var n,r,o,i,l,s,u={done:!1,time:0};if(e=aW(e),t=t?aW(t):pvt(),oW(e)&&oW(t)&&(n=rW(e),r=rW(t),n<r))for(i=u.time=r-n,u.done=!0,s=0,l=iW.length;s<l;s++)o=iW[s],i>=o[1]?s===l-1?u[o[0]]=i||0:(u[o[0]]=Math.floor(i/o[1]),i-=u[o[0]]*o[1]):u[o[0]]=0;return u}var vvt=hvt,mvt=ci,gvt=hu,yvt=dC;function bvt(e,t,n){var r=mvt(e);return t=t>>0,n=gvt(n)?" ":""+n,r.padEnd?r.padEnd(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=yvt(n,t/n.length)),r+n.slice(0,t)):r}var Cvt=bvt,wvt=ci,Svt=dC;function xvt(e,t){return Svt(wvt(e),t)}var kvt=xvt,Evt=ci;function _vt(e){return e&&e.trimRight?e.trimRight():Evt(e).replace(/[\s\uFEFF\xA0]+$/g,"")}var Mae=_vt,Tvt=ci;function Avt(e){return e&&e.trimLeft?e.trimLeft():Tvt(e).replace(/^[\s\uFEFF\xA0]+/g,"")}var Nae=Avt,Dvt=Mae,Mvt=Nae;function Nvt(e){return e&&e.trim?e.trim():Dvt(Mvt(e))}var Bae=Nvt,Bvt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Oae=Bvt,Ovt=ci,Ivt=pc;function Rvt(e){var t=new RegExp("(?:"+Ivt(e).join("|")+")","g");return function(n){return Ovt(n).replace(t,function(r){return e[r]})}}var Iae=Rvt,Lvt=Oae,Pvt=Iae,Vvt=Pvt(Lvt),Fvt=Vvt,lW=Oae,zvt=Iae,$vt=$a,Rae={};$vt(lW,function(e,t){Rae[lW[t]]=t});var Hvt=zvt(Rae),Wvt=Hvt;function Gvt(e,t,n){return e.substring(t,n)}var Lae=Gvt;function Uvt(e){return e.toLowerCase()}var Pae=Uvt,Yvt=ci,Mc=Lae,ly=wae,jvt=Pae,S2={};function Kvt(e){if(e=Yvt(e),S2[e])return S2[e];var t=e.length,n=e.replace(/([-]+)/g,function(r,o,i){return i&&i+o.length<t?"-":""});return t=n.length,n=n.replace(/([A-Z]+)/g,function(r,o,i){var l=o.length;return o=jvt(o),i?l>2&&i+l<t?ly(Mc(o,0,1))+Mc(o,1,l-1)+ly(Mc(o,l-1,l)):ly(Mc(o,0,1))+Mc(o,1,l):l>1&&i+l<t?Mc(o,0,l-1)+ly(Mc(o,l-1,l)):o}).replace(/(-[a-zA-Z])/g,function(r,o){return ly(Mc(o,1,o.length))}),S2[e]=n,n}var Xvt=Kvt,qvt=ci,Fh=Lae,Nc=Pae,x2={};function Zvt(e){if(e=qvt(e),x2[e])return x2[e];if(/^[A-Z]+$/.test(e))return Nc(e);var t=e.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(n,r,o,i){var l=o.length;return l>1?r+"-"+Nc(Fh(o,0,l-1))+"-"+Nc(Fh(o,l-1,l))+i:Nc(r+"-"+o+i)}).replace(/^([A-Z]+)([a-z]+)?$/,function(n,r,o){var i=r.length;return Nc(Fh(r,0,i-1)+"-"+Fh(r,i-1,i)+(o||""))}).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,function(n,r,o,i,l){var s=o.length;return s>1&&(r&&(r+="-"),i)?(r||"")+Nc(Fh(o,0,s-1))+"-"+Nc(Fh(o,s-1,s))+i:(r||"")+(l?"-":"")+Nc(o)+(i||"")});return t=t.replace(/([-]+)/g,function(n,r,o){return o&&o+r.length<t.length?"-":""}),x2[e]=t,t}var Qvt=Zvt,Jvt=ci;function emt(e,t,n){var r=Jvt(e);return(arguments.length===1?r:r.substring(n)).indexOf(t)===0}var tmt=emt,nmt=ci;function rmt(e,t,n){var r=nmt(e),o=arguments.length;return o>1&&(o>2?r.substring(0,n).indexOf(t)===n-1:r.indexOf(t)===r.length-1)}var amt=rmt,omt=fc,imt=ci,lmt=Bae,smt=sC;function umt(e,t,n){return imt(e).replace((n||omt).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(r,o){return smt(t,lmt(o))})}var Vae=umt,cmt=Vae;function dmt(e,t){return cmt(e,t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}var fmt=dmt;function pmt(){}var hmt=pmt,sW=Zp;function vmt(e,t){var n=sW(arguments,2);return function(){return e.apply(t,sW(arguments).concat(n))}}var mmt=vmt,uW=Zp;function gmt(e,t){var n=!1,r=null,o=uW(arguments,2);return function(){return n||(r=e.apply(t,uW(arguments).concat(o)),n=!0),r}}var ymt=gmt,bmt=Zp;function Cmt(e,t,n){var r=0,o=[];return function(){var i=arguments;r++,r<=e&&o.push(i[0]),r>=e&&t.apply(n,[o].concat(bmt(i)))}}var wmt=Cmt,Smt=Zp;function xmt(e,t,n){var r=0,o=[];return n=n||this,function(){var i=arguments;r++,r<e&&(o.push(i[0]),t.apply(n,[o].concat(Smt(i))))}}var kmt=xmt;function Emt(e,t,n){var r=null,o=null,i=n||{},l=!1,s=null,u="leading"in i?i.leading:!0,c="trailing"in i?i.trailing:!1,d=function(){r=null,o=null},f=function(){l=!0,e.apply(o,r),s=setTimeout(p,t),d()},p=function(){s=null,!l&&c===!0&&f()},h=function(){var m=s!==null;return m&&clearTimeout(s),d(),s=null,l=!1,m},v=function(){r=arguments,o=this,l=!1,s===null&&(u===!0?f():c===!0&&(s=setTimeout(p,t)))};return v.cancel=h,v}var _mt=Emt;function Tmt(e,t,n){var r=null,o=null,i=n||{},l=!1,s=null,u=typeof n=="boolean",c="leading"in i?i.leading:u,d="trailing"in i?i.trailing:!u,f=function(){r=null,o=null},p=function(){l=!0,e.apply(o,r),f()},h=function(){c===!0&&(s=null),!l&&d===!0&&p()},v=function(){var g=s!==null;return g&&clearTimeout(s),f(),s=null,l=!1,g},m=function(){l=!1,r=arguments,o=this,s===null?c===!0&&p():clearTimeout(s),s=setTimeout(h,t)};return m.cancel=v,m}var Amt=Tmt,Dmt=Zp;function Mmt(e,t){var n=Dmt(arguments,2),r=this;return setTimeout(function(){e.apply(r,n)},t)}var Nmt=Mmt,Bmt=decodeURIComponent,Fae=Bmt,cW=Fae,Omt=$o,Imt=vc;function Rmt(e){var t,n={};return e&&Imt(e)&&Omt(e.split("&"),function(r){t=r.split("="),n[cW(t[0])]=cW(t[1]||"")}),n}var zae=Rmt,Lmt=encodeURIComponent,$ae=Lmt,qx=$ae,Hae=$a,Wae=Er,Gae=hc,Pmt=hu,Uae=rg;function Yae(e,t,n){var r,o=[];return Hae(e,function(i,l){r=Wae(i),Uae(i)||r?o=o.concat(Yae(i,t+"["+l+"]",r)):o.push(qx(t+"["+(n?"":l)+"]")+"="+qx(Gae(i)?"":i))}),o}function Vmt(e){var t,n=[];return Hae(e,function(r,o){Pmt(r)||(t=Wae(r),Uae(r)||t?n=n.concat(Yae(r,o,t)):n.push(qx(o)+"="+qx(Gae(r)?"":r)))}),n.join("&").replace(/%20/g,"+")}var Fmt=Vmt,zmt=fs,$mt=typeof location===zmt?0:location,WE=$mt,s1=WE;function Hmt(){return s1?s1.origin||s1.protocol+"//"+s1.host:""}var jae=Hmt,dW=WE,Wmt=zae,Gmt=jae;function fW(e){return Wmt(e.split("?")[1]||"")}function Umt(e){var t,n,r,o,i=""+e;return i.indexOf("//")===0?i=(dW?dW.protocol:"")+i:i.indexOf("/")===0&&(i=Gmt()+i),r=i.replace(/#.*/,"").match(/(\?.*)/),o={href:i,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""},o.path=i.replace(/^([a-z0-9.+-]*:)\/\//,function(l,s){return o.protocol=s,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(l,s,u){return n=u||"",o.port=n.replace(":",""),o.hostname=s,o.host=s+n,"/"}).replace(/(#.*)/,function(l,s){return o.hash=s.length>1?s:"",""}),t=o.hash.match(/#((.*)\?|(.*))/),o.pathname=o.path.replace(/(\?|#.*).*/,""),o.origin=o.protocol+"//"+o.host,o.hashKey=t&&(t[2]||t[1])||"",o.hashQuery=fW(o.hash),o.searchQuery=fW(o.search),o}var Kae=Umt,pW=WE,Ymt=jae,jmt=Xre;function Kmt(){if(pW){var e=pW.pathname,t=jmt(e,"/")+1;return Ymt()+(t===e.length?e:e.substring(0,t))}return""}var Xmt=Kmt,hW=WE,qmt=Kae;function Zmt(){return hW?qmt(hW.href):{}}var Qmt=Zmt,Xae=fc,k2=cP,vW=Fae,mW=$ae,Jmt=Er,gW=LE,qae=Rd,egt=hu,tgt=ag,ngt=pc,Zx=ds,E2=$o,rgt=VE,u1=xl,agt=HE,ogt=hC,igt=Cae;function yW(e,t){var n=parseFloat(t),r=rgt(),o=u1(r);switch(e){case"y":return u1(agt(r,n));case"M":return u1(ogt(r,n));case"d":return u1(igt(r,n));case"h":case"H":return o+n*60*60*1e3;case"m":return o+n*60*1e3;case"s":return o+n*1e3}return o}function _2(e){return(qae(e)?e:new Date(e)).toUTCString()}function Ed(e,t,n){if(k2){var r,o,i,l,s,u,c=[],d=arguments;return Jmt(e)?c=e:d.length>1?c=[Zx({name:e,value:t},n)]:gW(e)&&(c=[e]),c.length>0?(E2(c,function(f){r=Zx({},Xae.cookies,f),i=[],r.name&&(o=r.expires,i.push(mW(r.name)+"="+mW(gW(r.value)?JSON.stringify(r.value):r.value)),o&&(isNaN(o)?o=o.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(p,h,v){return _2(yW(v,h))}):/^[0-9]{11,13}$/.test(o)||qae(o)?o=_2(o):o=_2(yW("d",o)),r.expires=o),E2(["expires","path","domain","secure"],function(p){egt(r[p])||i.push(r[p]&&p==="secure"?p:p+"="+r[p])})),k2.cookie=i.join("; ")}),!0):(l={},s=k2.cookie,s&&E2(s.split("; "),function(f){u=f.indexOf("="),l[vW(f.substring(0,u))]=vW(f.substring(u+1)||"")}),d.length===1?l[e]:l)}return!1}function lgt(e){return tgt(Zae(),e)}function bW(e){return Ed(e)}function CW(e,t,n){return Ed(e,t,n),Ed}function wW(e,t){Ed(e,"",Zx({expires:-1},Xae.cookies,t))}function Zae(){return ngt(Ed())}function sgt(){return Ed()}Zx(Ed,{has:lgt,set:CW,setItem:CW,get:bW,getItem:bW,remove:wW,removeItem:wW,keys:Zae,getJSON:sgt});var ugt=Ed,cgt=fs,T2=cP,A2=nae,dgt=ds,fgt=$o;function SW(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch{return!1}}function c1(e){return navigator.userAgent.indexOf(e)>-1}function pgt(){var e,t,n,r=!1,o=!1,i=!1,l={isNode:!1,isMobile:r,isPC:!1,isDoc:!!T2};if(!A2&&typeof process!==cgt)l.isNode=!0;else{n=c1("Edge"),t=c1("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),l.isDoc&&(e=T2.body||T2.documentElement,fgt(["webkit","khtml","moz","ms","o"],function(s){l["-"+s]=!!e[s+"MatchesSelector"]}));try{o=SW(A2.localStorage)}catch{}try{i=SW(A2.sessionStorage)}catch{}dgt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,x0t=Kft,k0t=Zft,E0t=vP,_0t=npt,T0t=gae,A0t=fpt,D0t=HE,M0t=Ppt,N0t=hC,B0t=Cae,O0t=ui,I0t=Aae,R0t=Dae,L0t=Kht,P0t=kl,V0t=qht,F0t=xae,z0t=_ae,$0t=Eae,H0t=Jht,W0t=ovt,G0t=fvt,U0t=vvt,Y0t=Cvt,j0t=Tae,K0t=kvt,X0t=Bae,q0t=Mae,Z0t=Nae,Q0t=Fvt,J0t=Wvt,ebt=Xvt,tbt=Qvt,nbt=tmt,rbt=amt,abt=Vae,obt=fmt,kW=ci,ibt=hmt,lbt=ng,sbt=mmt,ubt=ymt,cbt=wmt,dbt=kmt,fbt=_mt,pbt=Amt,hbt=Nmt,vbt=zae,mbt=Fmt,gbt=Kae,ybt=Xmt,bbt=Qmt,Cbt=ugt,wbt=hgt;xW(Qae,{assign:xW,objectEach:vgt,lastObjectEach:mgt,objectMap:ggt,merge:ygt,uniq:Egt,union:_gt,sortBy:Agt,orderBy:Dgt,shuffle:Mgt,sample:Ngt,some:Cgt,every:wgt,slice:Bgt,filter:Ogt,find:Lgt,findLast:Pgt,findKey:Igt,includes:Rgt,arrayIndexOf:eyt,arrayLastIndexOf:tyt,map:bgt,reduce:Vgt,copyWithin:Fgt,chunk:zgt,zip:$gt,unzip:Hgt,zipObject:Wgt,flatten:Ggt,toArray:Tgt,includeArrays:Sgt,pluck:Ugt,invoke:Ygt,arrayEach:xgt,lastArrayEach:kgt,toArrayTree:jgt,toTreeArray:Kgt,findTree:Xgt,eachTree:qgt,mapTree:Zgt,filterTree:Qgt,searchTree:Jgt,hasOwnProp:nyt,eqNull:pyt,isNaN:oyt,isFinite:_yt,isUndefined:iyt,isArray:ryt,isFloat:Tyt,isInteger:Ayt,isFunction:lyt,isBoolean:Dyt,isString:uyt,isNumber:Myt,isRegExp:Nyt,isObject:syt,isPlainObject:cyt,isDate:fyt,isError:Byt,isTypeError:Oyt,isEmpty:Iyt,isNull:ayt,isSymbol:Ryt,isArguments:Lyt,isElement:Pyt,isDocument:Vyt,isWindow:Fyt,isFormData:zyt,isMap:$yt,isWeakMap:Hyt,isSet:Wyt,isWeakSet:Gyt,isLeapYear:dyt,isMatch:Uyt,isEqual:Yyt,isEqualWith:jyt,getType:Kyt,uniqueId:Xyt,getSize:Syt,indexOf:gyt,lastIndexOf:yyt,findIndexOf:qyt,findLastIndexOf:Zyt,toStringJSON:Qyt,toJSONString:Jyt,keys:byt,values:Cyt,entries:e0t,pick:t0t,omit:n0t,first:r0t,last:a0t,each:hyt,forOf:vyt,lastForOf:myt,lastEach:xyt,has:o0t,get:i0t,set:l0t,groupBy:s0t,countBy:u0t,clone:wyt,clear:Eyt,remove:kyt,range:c0t,destructuring:d0t,random:f0t,min:h0t,max:p0t,commafy:v0t,round:m0t,ceil:g0t,floor:y0t,toFixed:b0t,toNumber:w0t,toNumberString:S0t,toInteger:C0t,add:x0t,subtract:k0t,multiply:E0t,divide:_0t,sum:T0t,mean:A0t,now:R0t,timestamp:L0t,isValidDate:P0t,isDateSame:V0t,toStringDate:O0t,toDateString:I0t,getWhatYear:D0t,getWhatQuarter:M0t,getWhatMonth:N0t,getWhatWeek:F0t,getWhatDay:B0t,getYearDay:z0t,getYearWeek:$0t,getMonthWeek:H0t,getDayOfYear:W0t,getDayOfMonth:G0t,getDateDiff:U0t,trim:X0t,trimLeft:Z0t,trimRight:q0t,escape:Q0t,unescape:J0t,camelCase:ebt,kebabCase:tbt,repeat:K0t,padStart:j0t,padEnd:Y0t,startsWith:nbt,endsWith:rbt,template:abt,toFormatString:obt,toString:kW,toValueString:kW,noop:ibt,property:lbt,bind:sbt,once:ubt,after:cbt,before:dbt,throttle:fbt,debounce:pbt,delay:hbt,unserialize:vbt,serialize:mbt,parseUrl:gbt,getBaseURL:ybt,locat:bbt,browse:wbt,cookie:Cbt});var Sbt=Qae;const U=ls(Sbt);var Lv=null,D2=null,Bc=null,EW="z-index-manage",gf=null,_W="z-index-style",Jae="m",eoe="s",vb={m:1e3,s:1e3};function mP(){return Lv||typeof document<"u"&&(Lv=document),Lv}function toe(){return Lv&&!D2&&(D2=Lv.body||Lv.getElementsByTagName("body")[0]),D2}function xbt(){var e=0,t=mP();if(t){var n=toe();if(n)for(var r=n.getElementsByTagName("*"),o=0;o<r.length;o++){var i=r[o];if(i&&i.style&&i.nodeType===1){var l=i.style.zIndex;l&&/^\d+$/.test(l)&&(e=Math.max(e,Number(l)))}}}return e}function kbt(){if(!gf){var e=mP();e&&(gf=e.getElementById(_W),gf||(gf=e.createElement("style"),gf.id=_W,e.getElementsByTagName("head")[0].appendChild(gf)))}return gf}function noe(){var e=kbt();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+GE()+";"+t+"sub"+n+":"+bP()+"}"}}function roe(){if(!Bc){var e=mP();if(e&&(Bc=e.getElementById(EW),!Bc)){var t=toe();t&&(Bc=e.createElement("div"),Bc.id=EW,Bc.style.display="none",t.appendChild(Bc),gP(vb.m),yP(vb.s))}}return Bc}function aoe(e){return function(t){if(t){t=Number(t),vb[e]=t;var n=roe();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return noe(),vb[e]}}var gP=aoe(Jae);function ooe(e,t){return function(r){var o,i=roe();if(i){var l=i.dataset?i.dataset[e]:i.getAttribute("data-"+e);l&&(o=Number(l))}return o||(o=vb[e]),r?Number(r)<o?t():r:o}}var GE=ooe(Jae,ioe);function ioe(){return gP(GE()+1)}var yP=aoe(eoe),loe=ooe(eoe,soe);function bP(){return GE()+loe()}function soe(){return yP(loe()+1),bP()}var CP={setCurrent:gP,getCurrent:GE,getNext:ioe,setSubCurrent:yP,getSubCurrent:bP,getSubNext:soe,getMax:xbt};noe();const ym={size:"",version:1,zIndex:999,resizeInterval:500},uoe={theme:""};function wP(e){const t=!e||e==="default"?"light":e;if(uoe.theme=t,typeof document<"u"){const n=document.documentElement;n&&n.setAttribute("data-vxe-ui-theme",t)}return Kp}function Ebt(){return uoe.theme}function _bt(e){return e&&(e.zIndex&&CP.setCurrent(e.zIndex),e.theme&&wP(e.theme),U.merge(ym,e)),Kp}function Tbt(e,t){return arguments.length?U.get(ym,e,t):ym}const Abt={},sB={};function Dbt(e){return e&&Object.assign(sB,e),Kp}function Mbt(e){return arguments.length?U.get(sB,e):sB}const Af={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},uB=U.browse(),TW={" ":"Spacebar",Apps:Af.CONTEXT_MENU,Del:Af.DELETE,Up:Af.ARROW_UP,Down:Af.ARROW_DOWN,Left:Af.ARROW_LEFT,Right:Af.ARROW_RIGHT},coe=uB.firefox?"DOMMouseScroll":"mousewheel",cB=[];function Tu(e){const t=e.type===coe;cB.forEach(({type:n,cb:r})=>{e.cancelBubble||(n===e.type||t&&n==="mousewheel")&&r(e)})}class Nbt{constructor(t,n,r){Object.defineProperty(this,"$event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:""}),this.$event=t,t&&(t.type&&(this.type=t.type),t.key&&(this.key=t.key),t.code&&(this.code=t.code)),Object.assign(this,n,r)}stopPropagation(){const t=this.$event;t&&t.stopPropagation()}preventDefault(){const t=this.$event;t&&t.preventDefault()}}const Bbt=(e,t,n)=>new Nbt(e,t,n),Obt={on(e,t,n){cB.push({comp:e,type:t,cb:n})},off(e,t){U.remove(cB,n=>n.comp===e&&n.type===t)},hasKey(e,t){const{key:n}=e;return t=t.toLowerCase(),n?t===n.toLowerCase()||!!(TW[n]&&TW[n].toLowerCase()===t):!1}};uB.isDoc&&(uB.msie||(window.addEventListener("copy",Tu,!1),window.addEventListener("cut",Tu,!1),window.addEventListener("paste",Tu,!1)),document.addEventListener("keydown",Tu,!1),document.addEventListener("contextmenu",Tu,!1),window.addEventListener("mousedown",Tu,!1),window.addEventListener("blur",Tu,!1),window.addEventListener("resize",Tu,!1),window.addEventListener(coe,U.throttle(Tu,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let AW;const Vf=[],Ibt=500;function Rbt(){Vf.length&&(Vf.forEach(e=>{e.tarList.forEach(t=>{const{target:n,width:r,heighe:o}=t,i=n.clientWidth,l=n.clientHeight;(i&&r!==i||l&&o!==l)&&(t.width=i,t.heighe=l,setTimeout(e.callback))})}),doe())}function doe(){clearTimeout(AW),AW=setTimeout(Rbt,ym.resizeInterval||Ibt)}class Lbt{constructor(t){Object.defineProperty(this,"tarList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"callback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.callback=t}observe(t){if(t){const{tarList:n}=this;n.some(r=>r.target===t)||n.push({target:t,width:t.clientWidth,heighe:t.clientHeight}),Vf.length||doe(),Vf.some(r=>r===this)||Vf.push(this)}}unobserve(t){U.remove(Vf,n=>n.tarList.some(r=>r.target===t))}disconnect(){U.remove(Vf,t=>t===this)}}const Pbt={create(e){return window.ResizeObserver?new window.ResizeObserver(e):new Lbt(e)}},vC=a.reactive({language:"",langMaps:{}});let DW=!1;function foe(e,t){const{langMaps:n,language:r}=vC,{i18n:o}=ym;return o?`${o(e,t)||""}`:(DW||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${Kp.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),DW=!0),U.toFormatString(U.get(n[r],e,e),t))}function Vbt(e){return vC.language=e||"zh-CN",Kp}function Fbt(e,t){return vC.langMaps[e]=Object.assign({},t),Kp}function zbt(e){const{langMaps:t}=vC;return!!t[e]}function $bt(){const{language:e}=vC;return e}function M2(e,t){return function(n,r){const o=`[vxe ${t||""}] ${foe(n,r)}`;return console[e](o),o}}const MW="4.0.29",Hbt={create:M2,warn:M2("warn",`v${MW}`),err:M2("error",`v${MW}`)},sy={},iv={mixin(e){return U.each(e,(t,n)=>iv.add(n,t)),iv},get(e){return sy[e]||null},add(e,t){if(e&&t){const n=sy[e];n?Object.assign(n,t):sy[e]=t}return iv},forEach(e){return U.objectEach(sy,e),iv},delete(e){return delete sy[e],iv}};class poe{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(t){return U.each(t,(n,r)=>{this.add(r,n)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,n){const r=this.store[t];return this.store[t]=r?U.merge(r,n):n,this}delete(t){delete this.store[t]}forEach(t){U.objectEach(this.store,t)}}const Wbt=new poe;class Gbt{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(t){return U.each(t,(n,r)=>{this.add(r,n)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,n){const r=this.store[t];return U.isFunction(n)&&(n={menuMethod:n}),this.store[t]=r?U.merge(r,n):n,this}delete(t){delete this.store[t]}forEach(t){U.objectEach(this.store,t)}}const Ubt=new Gbt;class Ybt{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(t){return U.each(t,(n,r)=>{this.add(r,n)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,n){const r=this.store[t];return U.isFunction(n)&&(n={cellFormatMethod:n}),this.store[t]=r?U.merge(r,n):n,this}delete(t){delete this.store[t]}forEach(t){U.objectEach(this.store,t)}}const jbt=new Ybt;class Kbt{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(t){return U.each(t,(n,r)=>{this.add(r,n)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(t,n){const r=this.store[t];return U.isFunction(n)&&(n={commandMethod:n}),this.store[t]=r?U.merge(r,n):n,this}delete(t){delete this.store[t]}forEach(t){U.objectEach(this.store,t)}}const Xbt=new Kbt,uy={},dS={mixin(e){return U.each(e,(t,n)=>{dS.add(n,t)}),dS},get(e){return uy[e]||[]},add(e,t){U.isFunction(t)&&(t={tableInterceptorMethod:t});const n=t.tableInterceptorMethod;if(n){let r=uy[e];r||(r=uy[e]=[]),r.push(n)}return dS},delete(e,t){const n=uy[e];if(n){U.isFunction(t)&&(t={tableInterceptorMethod:t});const r=t?t.tableInterceptorMethod:null;r?U.remove(n,o=>o===r):delete uy[e]}}};let Bs;const cy={text:"",html:""};function qbt(e){if(!Bs){Bs=document.createElement("textarea"),Bs.id="$VxeCopy";const t=Bs.style;t.width="48px",t.height="24px",t.position="fixed",t.zIndex="0",t.left="-500px",t.top="-500px",document.body.appendChild(Bs)}Bs.value=e}const Zbt={getStore(){return cy},setStore(e){Object.assign(cy,e||{})},copy(e){let t=!1;try{const n=U.toValueString(e);qbt(n),Bs.select(),Bs.setSelectionRange(0,Bs.value.length),t=document.execCommand("copy"),Bs.blur(),cy.text=n,cy.html=""}catch{}return t},getText(){return cy.text||""}};function fS(e,t){let n=!0,r=!1;const o=t||ym.permissionMethod;if(e&&o){n=!1,r=!0;let l=!1,s=!1;const u=String(e).split("|");for(let c=0;c<u.length;c++){const d=u[c];let f=!0,p=!1;const h=o({code:d});if(U.isBoolean(h)?f=h:h&&(f=!!h.visible,p=!!h.disabled),!p&&!s&&(s=!0,r=p),f&&!l&&(l=!0,n=f),l&&s)break}}return{code:e,visible:n,disabled:r}}const Qbt={getCheckInfo(e){return fS(e)},checkVisible(e){return fS(e).visible},checkDisable(e){return fS(e).disabled}},Jbt=new poe;function eCt(e){const t=a.inject("xeSizeInfo",null),n=a.computed(()=>e.size||(t?t.value:null));return a.provide("xeSizeInfo",n),{computeSize:n}}function tCt(e){return{computePermissionInfo:a.computed(()=>fS(e.permissionCode,e.permissionMethod))}}const nCt={useSize:eCt,usePermission:tCt},NW=[];function rCt(e,t){return e&&e.install&&NW.indexOf(e)===-1&&(e.install(Ze,t),NW.push(e)),Ze}const hoe={};function aCt(e){return hoe[e]||null}function oCt(e){e&&e.name&&(hoe[e.name]=e)}function iCt(){return a.createCommentVNode()}const Ze=Object.assign(Kp,{renderEmptyElement:iCt,setTheme:wP,getTheme:Ebt,setConfig:_bt,getConfig:Tbt,setIcon:Dbt,getIcon:Mbt,setLanguage:Vbt,hasLanguage:zbt,getLanguage:$bt,setI18n:Fbt,getI18n:foe,globalEvents:Obt,GLOBAL_EVENT_KEYS:Af,createEvent:Bbt,globalResize:Pbt,renderer:iv,validators:Wbt,menus:Ubt,formats:jbt,commands:Xbt,interceptor:dS,clipboard:Zbt,log:Hbt,permission:Qbt,globalStore:Abt,hooks:Jbt,component:oCt,getComponent:aCt,useFns:nCt,use:rCt});wP();function dn(e){return e&&e.enabled!==!1}function voe(e){return e==null||e===""}function moe(e){const t=e.name,n=U.lastIndexOf(t,"."),r=t.substring(n+1,t.length).toLowerCase();return{filename:t.substring(0,n),type:r}}function goe(){return CP.getNext()}function yoe(){return CP.getCurrent()}function mv(e){return e&&e.children&&e.children.length>0}function au(e,t){if(e){const n=Ze.getConfig().translate;return U.toValueString(n?n(""+e,t):e)}return""}function fa(e,t){return""+(voe(e)?t?Ze.getConfig().emptyCell:"":e)}function Os(e){return e===""||U.eqNull(e)}const boe="4.10.5";Ze.version=boe;Ze.tableVersion=boe;Ze.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,padding:!0,minHeight:144,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0},checkboxConfig:{strict:!0},tooltipConfig:{enterable:!0},validConfig:{showMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{maxFixedSize:4},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,showFooter:!0,placement:"top-right",modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,iconLayout:"vertical"},filterConfig:{showIcon:!0},treeConfig:{rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0},expandConfig:{showIcon:!0},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},scrollX:{gt:60},scrollY:{gt:100}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showResponseMsg:!0,showActiveMsg:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},toolbar:{}});const $n="vxe-table-icon-";Ze.setIcon({TABLE_SORT_ASC:$n+"caret-up",TABLE_SORT_DESC:$n+"caret-down",TABLE_FILTER_NONE:$n+"funnel",TABLE_FILTER_MATCH:$n+"funnel",TABLE_EDIT:$n+"edit",TABLE_TITLE_PREFIX:$n+"question-circle-fill",TABLE_TITLE_SUFFIX:$n+"question-circle-fill",TABLE_TREE_LOADED:$n+"spinner roll",TABLE_TREE_OPEN:$n+"caret-right rotate90",TABLE_TREE_CLOSE:$n+"caret-right",TABLE_EXPAND_LOADED:$n+"spinner roll",TABLE_EXPAND_OPEN:$n+"arrow-right rotate90",TABLE_EXPAND_CLOSE:$n+"arrow-right",TABLE_CHECKBOX_CHECKED:$n+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:$n+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:$n+"checkbox-indeterminate-fill",TABLE_RADIO_CHECKED:$n+"radio-checked-fill",TABLE_RADIO_UNCHECKED:$n+"radio-unchecked",TABLE_CUSTOM_SORT:$n+"drag-handle",TABLE_MENU_OPTIONS:$n+"arrow-right",TABLE_DRAG_ROW:$n+"drag-handle",TABLE_DRAG_COLUMN:$n+"drag-handle",TABLE_DRAG_STATUS_ROW:$n+"sort",TABLE_DRAG_STATUS_SUB_ROW:$n+"add-sub",TABLE_DRAG_STATUS_COLUMN:$n+"swap",TABLE_DRAG_DISABLED:$n+"no-drop",TOOLBAR_TOOLS_REFRESH:$n+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:$n+"repeat roll",TOOLBAR_TOOLS_IMPORT:$n+"upload",TOOLBAR_TOOLS_EXPORT:$n+"download",TOOLBAR_TOOLS_PRINT:$n+"print",TOOLBAR_TOOLS_FULLSCREEN:$n+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:$n+"minimize",TOOLBAR_TOOLS_CUSTOM:$n+"custom-column",TOOLBAR_TOOLS_FIXED_LEFT:$n+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:$n+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:$n+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:$n+"fixed-right-fill"});Ze.setTheme;Ze.getTheme;Ze.setConfig;Ze.getConfig;Ze.setIcon;Ze.getIcon;Ze.setLanguage;Ze.setI18n;Ze.getI18n;Ze.globalEvents;Ze.globalResize;Ze.renderer;Ze.validators;Ze.menus;Ze.formats;Ze.commands;Ze.interceptor;Ze.clipboard;Ze.log;Ze.hooks;Ze.use;const lCt=e=>Ze.setConfig(e);Ze.setup=lCt;const sCt=e=>Ze.setConfig(e);Ze.config=sCt;const uCt=(e,t)=>Ze.getI18n(e,t);Ze.t=uCt;const cCt=(e,t)=>au(e,t);Ze._t=cCt;const{log:Coe}=Ze,woe="table v4.10.5",lv=Coe.create("warn",woe),Wr=Coe.create("error",woe),{getI18n:dCt,formats:FEt}=Ze;class dB{constructor(t,n,{renderHeader:r,renderCell:o,renderFooter:i,renderData:l}={}){const s=t.xegrid,u=n.formatter,c=U.isBoolean(n.visible)?n.visible:!0;if(Object.assign(this,{type:n.type,property:n.field,field:n.field,title:n.title,width:n.width,minWidth:n.minWidth,maxWidth:n.maxWidth,resizable:n.resizable,fixed:n.fixed,align:n.align,headerAlign:n.headerAlign,footerAlign:n.footerAlign,showOverflow:n.showOverflow,showHeaderOverflow:n.showHeaderOverflow,showFooterOverflow:n.showFooterOverflow,className:n.className,headerClassName:n.headerClassName,footerClassName:n.footerClassName,formatter:u,footerFormatter:n.footerFormatter,sortable:n.sortable,sortBy:n.sortBy,sortType:n.sortType,filters:_oe(n.filters),filterMultiple:U.isBoolean(n.filterMultiple)?n.filterMultiple:!0,filterMethod:n.filterMethod,filterResetMethod:n.filterResetMethod,filterRecoverMethod:n.filterRecoverMethod,filterRender:n.filterRender,treeNode:n.treeNode,dragSort:n.dragSort,cellType:n.cellType,cellRender:n.cellRender,editRender:n.editRender,contentRender:n.contentRender,headerExportMethod:n.headerExportMethod,exportMethod:n.exportMethod,footerExportMethod:n.footerExportMethod,titleHelp:n.titleHelp,titlePrefix:n.titlePrefix,titleSuffix:n.titleSuffix,params:n.params,id:n.colId||U.uniqueId("col_"),parentId:null,visible:c,halfVisible:!1,defaultVisible:c,defaultFixed:n.fixed,checked:!1,halfChecked:!1,disabled:!1,level:1,rowSpan:1,colSpan:1,order:null,sortTime:0,sortNumber:0,renderSortNumber:0,renderFixed:"",renderVisible:!1,renderWidth:0,renderHeight:0,renderResizeWidth:0,renderAutoWidth:0,resizeWidth:0,renderLeft:0,renderArgs:[],model:{},renderHeader:r||n.renderHeader,renderCell:o||n.renderCell,renderFooter:i||n.renderFooter,renderData:l,slots:n.slots}),s){const{computeProxyOpts:d}=s.getComputeMaps(),f=d.value;f.beforeColumn&&f.beforeColumn({$grid:s,column:this})}}getTitle(){return au(this.title||(this.type==="seq"?dCt("vxe.table.seqTitle"):""))}getKey(){const{type:t}=this;return this.field||(t?`type=${t}`:null)}update(t,n){t!=="filters"&&(t==="field"&&(this.property=n),this[t]=n)}}const N2={},gv=U.browse();let yv;function Soe(){return yv||(yv=new Image,yv.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="),yv}function fB(){return yv||Soe()}function Gc(e,t){return e?U.isFunction(e)?e(t):e:""}function xoe(e){return N2[e]||(N2[e]=new RegExp(`(?:^|\\s)${e}(?!\\S)`,"g")),N2[e]}function koe(e,t,n){if(e){const r=e.parentNode;if(n.top+=e.offsetTop,n.left+=e.offsetLeft,r&&r!==document.documentElement&&r!==document.body&&(n.top-=r.scrollTop,n.left-=r.scrollLeft),!(t&&(e===t||e.offsetParent===t))&&e.offsetParent)return koe(e.offsetParent,t,n)}return n}function pB(e){return e&&/^\d+(px)?$/.test(e)}function Ny(e){return e&&/^\d+%$/.test(e)}function Bp(e,t){return e&&e.className&&e.className.match&&e.className.match(xoe(t))}function Ei(e,t){e&&Bp(e,t)&&(e.className=e.className.replace(xoe(t),""))}function Is(e,t){e&&!Bp(e,t)&&(Ei(e,t),e.className=`${e.className} ${t}`)}function BW(e,t="px"){return U.isNumber(e)||/^\d+$/.test(`${e}`)?`${e}${t}`:`${e||""}`}function UE(){const e=document.documentElement,t=document.body;return{scrollTop:e.scrollTop||t.scrollTop,scrollLeft:e.scrollLeft||t.scrollLeft,visibleHeight:e.clientHeight||t.clientHeight,visibleWidth:e.clientWidth||t.clientWidth}}function dy(e){return e?e.offsetHeight:0}function hB(e){if(e){const t=getComputedStyle(e),n=U.toNumber(t.paddingTop),r=U.toNumber(t.paddingBottom);return n+r}return 0}function Hr(e,t){e&&(e.scrollTop=t)}function ca(e,t){e&&(e.scrollLeft=t)}function SP(e,t){const n=t.type==="html"?e.innerText:e.textContent;e.getAttribute("title")!==n&&e.setAttribute("title",n)}function Hn(e,t,n,r){let o,i=e.target.shadowRoot&&e.composed&&e.composedPath()[0]||e.target;for(;i&&i.nodeType&&i!==document;){if(n&&Bp(i,n)&&(!r||r(i)))o=i;else if(i===t)return{flag:n?!!o:!0,container:t,targetElem:o};i=i.parentNode}return{flag:!1}}function fCt(e,t){return koe(e,t,{left:0,top:0})}function pS(e){const t=e.getBoundingClientRect(),n=t.top,r=t.left,{scrollTop:o,scrollLeft:i,visibleHeight:l,visibleWidth:s}=UE();return{boundingTop:n,top:o+n,boundingLeft:r,left:i+r,visibleHeight:l,visibleWidth:s}}const OW="scrollIntoViewIfNeeded",IW="scrollIntoView";function pCt(e){e&&(e[OW]?e[OW]():e[IW]&&e[IW]())}function hCt(e,t){e&&e.dispatchEvent(new Event(t))}function B2(e){return e&&e.nodeType===1}const Eoe=(e,t)=>{const n=[];return e.forEach(r=>{r.parentId=t?t.id:null,r.visible&&(r.children&&r.children.length&&r.children.some(o=>o.visible)?(n.push(r),n.push(...Eoe(r.children,r))):n.push(r))}),n},vCt=e=>{let t=1;const n=(i,l)=>{if(l&&(i.level=l.level+1,t<i.level&&(t=i.level)),i.children&&i.children.length&&i.children.some(s=>s.visible)){let s=0;i.children.forEach(u=>{u.visible&&(n(u,i),s+=u.colSpan)}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i)});const r=[];for(let i=0;i<t;i++)r.push([]);return Eoe(e).forEach(i=>{i.children&&i.children.length&&i.children.some(l=>l.visible)?i.rowSpan=1:i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function O2(e,t,n){const r=e.internalData;return e.clearScroll().then(()=>{if(t||n)return r.lastScrollLeft=0,r.lastScrollTop=0,r.inVirtualScroll=!1,r.inBodyScroll=!1,r.inFooterScroll=!1,r.bodyScrollType="",e.scrollTo(t,n)})}function I2(){return U.uniqueId("row_")}function Mu(e){const{props:t}=e,{computeRowOpts:n}=e.getComputeMaps(),{rowId:r}=t,o=n.value;return r||o.keyField||"_X_ROW_KEY"}function ct(e,t){const n=U.get(t,Mu(e));return U.eqNull(n)?"":encodeURIComponent(n)}const na=(e,t)=>t?U.isString(t)?e.getColumnByField(t):t:null;function d1(e){if(e){const t=getComputedStyle(e),n=U.toNumber(t.paddingLeft),r=U.toNumber(t.paddingRight);return n+r}return 0}function zh(e){if(e){const t=getComputedStyle(e),n=U.toNumber(t.marginLeft),r=U.toNumber(t.marginRight);return e.offsetWidth+n+r}return 0}function Au(e,t){return e.querySelector(".vxe-cell"+t)}function _oe(e){return e&&U.isArray(e)?e.map(({label:t,value:n,data:r,resetValue:o,checked:i})=>({label:t,value:n,data:r,resetValue:o,checked:!!i,_checked:!!i})):e}function mCt(e){return e.map((t,n)=>n%2===0?Number(t)+1:".").join("")}function ba(e,t){return U.get(e,t.field)}function Rs(e,t,n){return U.set(e,t.field,n)}function Mo(e){if(e){const t=e.value;if(t)return t.$el||t}return null}function Toe(e){const{$table:t,column:n,cell:r}=e,{props:o}=t,{computeResizableOpts:i}=t.getComputeMaps(),l=i.value,{minWidth:s}=l;if(s){const b=U.isFunction(s)?s(e):s;if(b!=="auto")return Math.max(1,U.toNumber(b))}const{showHeaderOverflow:u}=o,{showHeaderOverflow:c,minWidth:d}=n,f=U.isUndefined(c)||U.isNull(c)?u:c,m=f==="title"||(f===!0||f==="tooltip")||f==="ellipsis",g=U.floor((U.toNumber(getComputedStyle(r).fontSize)||14)*1.6),y=d1(r)+d1(Au(r,""));let C=g+y;if(m){const b=d1(Au(r,">.vxe-cell--drag-handle")),w=d1(Au(r,">.vxe-cell--checkbox")),S=zh(Au(r,">.vxe-cell--required-icon")),x=zh(Au(r,">.vxe-cell--edit-icon")),k=zh(Au(r,">.vxe-cell-title-prefix-icon")),_=zh(Au(r,">.vxe-cell-title-suffix-icon")),T=zh(Au(r,">.vxe-cell--sort")),E=zh(Au(r,">.vxe-cell--filter"));C+=b+w+S+x+k+_+E+T}if(d){const{refTableBody:b}=t.getRefMaps(),w=b.value,S=w?w.$el:null;if(S){if(Ny(d)){const k=(S.clientWidth-1)/100;return Math.max(C,Math.floor(U.toInteger(d)*k))}else if(pB(d))return Math.max(C,U.toInteger(d))}}return C}function hS(e){return e&&(e.constructor===dB||e instanceof dB)}function gCt(e,t,n){return hS(t)?t:a.reactive(new dB(e,t,n))}function Aoe(e,t,n){Object.keys(t).forEach(r=>{a.watch(()=>t[r],o=>{n.update(r,o),e&&(r==="filters"?(e.setFilter(n,o),e.handleUpdateDataQueue()):["visible","fixed","width","minWidth","maxWidth"].includes(r)&&e.handleRefreshColumnQueue())})})}function Doe(e,t,n,r){const{reactData:o}=e,{staticColumns:i}=o,l=t.parentNode,s=r?r.columnConfig:null,u=s?s.children:i;l&&u&&(u.splice(U.arrayIndexOf(l.children,t),0,n),o.staticColumns=i.slice(0))}function Moe(e,t){const{reactData:n}=e,{staticColumns:r}=n,o=U.findTree(r,i=>i.id===t.id,{children:"children"});o&&o.items.splice(o.index,1),n.staticColumns=r.slice(0)}function RW(e,t){const{internalData:n}=e,{fullColumnIdData:r}=n;if(!t)return null;let o=t.parentId;for(;r[o];){const i=r[o].column;if(o=i.parentId,!o)return i}return t}const yCt={mini:3,small:2,medium:1},Noe=(e,t)=>{let n=1;if(!e)return n;const{$table:r}=t,{computeTreeOpts:o}=r.getComputeMaps(),i=o.value,{transform:l,mapChildrenField:s}=i,u=i.children||i.childrenField,c=e[l?s:u];if(c&&r.isTreeExpandByRow(e))for(let d=0;d<c.length;d++)n+=Noe(c[d],t);return n},Boe=e=>{const{computeSize:t}=e.getComputeMaps(),n=t.value;return n&&yCt[n]||0};function bCt(e,t){const{$table:n}=e,r=n.reactData;let o=1;return t&&(o=Noe(t,e)),r.rowHeight*o-(t?1:12-Boe(n))}function Ooe(e,t,n){for(let r=0;r<e.length;r++){const{row:o,col:i,rowspan:l,colspan:s}=e[r];if(i>-1&&o>-1&&l&&s){if(o===t&&i===n)return{rowspan:l,colspan:s};if(t>=o&&t<o+l&&n>=i&&n<i+s)return{rowspan:0,colspan:0}}}}function CCt(e){const{props:t,internalData:n}=e;return n.initStatus=!1,e.clearSort(),e.clearCurrentRow(),e.clearCurrentColumn(),e.clearRadioRow(),e.clearRadioReserve(),e.clearCheckboxRow(),e.clearCheckboxReserve(),e.clearRowExpand(),e.clearTreeExpand(),e.clearTreeExpandReserve(),e.clearPendingRow(),e.clearFilter&&e.clearFilter(),e.clearSelected&&(t.keyboardConfig||t.mouseConfig)&&e.clearSelected(),e.clearCellAreas&&t.mouseConfig&&(e.clearCellAreas(),e.clearCopyCellArea()),e.clearScroll()}function wCt(e){return e.clearFilter&&e.clearFilter(),CCt(e)}function LW(e,t){const{reactData:n,internalData:r}=e,o=e.props,{showOverflow:i}=o,{refTableBody:l}=e.getRefMaps(),{columnStore:s,scrollYLoad:u}=n,{afterFullData:c,scrollYStore:d,fullAllDataRowIdData:f}=r,{rowHeight:p}=d,h=l.value,{leftList:v,rightList:m}=s,g=h?h.$el:null,y=ct(e,t);let C=0;v.forEach(w=>{C+=w.renderWidth});let b=0;if(m.forEach(w=>{b+=w.renderWidth}),g){const w=g.clientHeight,S=g.scrollTop,x=g.querySelector(`[rowid="${y}"]`);if(x){const k=x.offsetParent,_=x.offsetTop+(k?k.offsetTop:0),T=x.clientHeight;if(_<S||_>S+w)return e.scrollTo(null,_);if(_+T>=w+S)return e.scrollTo(null,S+T)}else if(u){if(i)return e.scrollTo(null,(e.findRowIndexOf(c,t)-1)*p);let k=0;const _=f[y],T=_&&_.height||p;for(let E=0;E<c.length;E++){const A=c[E],D=ct(e,A);if(A===t||D===y)break;const B=f[D];k+=B&&B.height||p}return k<S?e.scrollTo(null,k-C-1):e.scrollTo(null,k+T-(w-b-1))}}return Promise.resolve()}function PW(e,t,n){const{reactData:r,internalData:o}=e,{refTableBody:i}=e.getRefMaps(),{columnStore:l,scrollXLoad:s}=r,{visibleColumn:u}=o,{leftList:c,rightList:d}=l,f=i.value,p=f?f.$el:null;if(t.fixed)return Promise.resolve();let h=0;c.forEach(m=>{h+=m.renderWidth});let v=0;if(d.forEach(m=>{v+=m.renderWidth}),p){const m=p.clientWidth,g=p.scrollLeft;let y=null;if(n){const C=ct(e,n);y=p.querySelector(`[rowid="${C}"] .${t.id}`)}if(y||(y=p.querySelector(`.${t.id}`)),y){const C=y.offsetParent,b=y.offsetLeft+(C?C.offsetLeft:0),w=y.clientWidth;if(b<g+h)return e.scrollTo(b-h-1);if(b+w-g>m-v)return e.scrollTo(b+w-(m-v-1))}else if(s){let C=0;const b=t.renderWidth;for(let w=0;w<u.length;w++){const S=u[w];if(S===t||S.id===t.id)break;C+=S.renderWidth}return C<g?e.scrollTo(C-h-1):e.scrollTo(C+b-(m-v-1))}}return Promise.resolve()}function Pv(e){return"on"+e.substring(0,1).toLocaleUpperCase()+e.substring(1)}function Ioe(e){switch(e.name){case"input":case"textarea":return"input";case"select":return"change"}return"update:modelValue"}function Roe(e){switch(e.name){case"input":case"textarea":case"VxeInput":case"VxeNumberInput":case"VxeTextarea":case"$input":case"$textarea":return"input"}return"change"}function Ya(e){return e==null?[]:U.isArray(e)?e:[e]}const{getI18n:f1,getIcon:Br,renderer:By,formats:VW,renderEmptyElement:Jf}=Ze;function SCt(e){const{$table:t,column:n}=e,r=n.titlePrefix||n.titleHelp;return r?a.h("i",{class:["vxe-cell-title-prefix-icon",r.icon||Br().TABLE_TITLE_PREFIX],onMouseenter(o){t.triggerHeaderTitleEvent(o,r,e)},onMouseleave(o){t.handleTargetLeaveEvent(o)}}):Jf(t)}function xCt(e){const{$table:t,column:n}=e,r=n.titleSuffix;return r?a.h("i",{class:["vxe-cell-title-suffix-icon",r.icon||Br().TABLE_TITLE_SUFFIX],onMouseenter(o){t.triggerHeaderTitleEvent(o,r,e)},onMouseleave(o){t.handleTargetLeaveEvent(o)}}):Jf(t)}function FW(e){const{$table:t,column:n}=e,{context:r}=t,o=r.slots,i=t.props,{slots:l}=n,{dragConfig:s}=i,{computeRowDragOpts:u}=t.getComputeMaps(),c=u.value,{icon:d,trigger:f,disabledMethod:p}=c,h=p||(s?s.rowDisabledMethod:null),v=h&&h(e),m=(l?l.rowDragIcon||l["row-drag-icon"]:null)||o.rowDragIcon||o["row-drag-icon"],g={};return f!=="cell"&&(g.onMousedown=y=>{v||t.handleCellDragMousedownEvent(y,e)},g.onMouseup=t.handleCellDragMouseupEvent),a.h("span",Object.assign({key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":v}]},g),m?t.callSlot(m,e):[a.h("i",{class:d||(s?s.rowIcon:"")||Br().TABLE_DRAG_ROW})])}function Ha(e,t){const{$table:n,column:r,level:o}=e,{dragSort:i}=r,l=n.props,{treeConfig:s,dragConfig:u}=l,{computeRowOpts:c,computeRowDragOpts:d}=n.getComputeMaps(),f=c.value,p=d.value,{showIcon:h,isPeerDrag:v,isCrossDrag:m,visibleMethod:g}=p,y=g||(u?u.rowVisibleMethod:null),C=U.isArray(t)?t:[t];return i&&f.drag&&(h||u&&u.showRowIcon)&&(!y||y(e))&&(s?(v||m||!o)&&C.unshift(FW(e)):C.unshift(FW(e))),C}function kCt(e){const{$table:t,column:n}=e,{context:r}=t,o=r.slots,{slots:i}=n,{computeColumnOpts:l,computeColumnDragOpts:s}=t.getComputeMaps(),u=l.value,c=s.value,{showIcon:d,icon:f,trigger:p,isPeerDrag:h,isCrossDrag:v,visibleMethod:m,disabledMethod:g}=c;if(u.drag&&d&&(!m||m(e))&&!n.fixed&&(h||v||!n.parentId)){const y=g&&g(e),C=(i?i.columnDragIcon||i["column-drag-icon"]:null)||o.columnDragIcon||o["column-drag-icon"],b={};return p!=="cell"&&(b.onMousedown=w=>{y||t.handleHeaderCellDragMousedownEvent(w,e)},b.onMouseup=t.handleHeaderCellDragMouseupEvent),a.h("span",Object.assign({key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":y}]},b),C?t.callSlot(C,e):[a.h("i",{class:f||Br().TABLE_DRAG_COLUMN})])}return Jf(t)}function Es(e,t){return[SCt(e),kCt(e),...U.isArray(t)?t:[t],xCt(e)]}function Oc(e,t){const{$table:n,column:r}=e,o=n.props,i=n.reactData,{computeTooltipOpts:l}=n.getComputeMaps(),{showHeaderOverflow:s}=o,{type:u,showHeaderOverflow:c}=r,f=l.value.showAll,p=U.isUndefined(c)||U.isNull(c)?s:c,h=p==="title",v=p===!0||p==="tooltip",m={};return(h||v||f)&&(m.onMouseenter=g=>{i._isResize||(h?SP(g.currentTarget,r):(v||f)&&n.triggerHeaderTooltipEvent(g,e))}),(v||f)&&(m.onMouseleave=g=>{i._isResize||(v||f)&&n.handleTargetLeaveEvent(g)}),[u==="html"&&U.isString(t)?a.h("span",Object.assign({class:"vxe-cell--title",innerHTML:t},m)):a.h("span",Object.assign({class:"vxe-cell--title"},m),Ya(t))]}function zW(e,t){if(U.isFunction(e))return`${e(t)}`;const n=U.isArray(e),r=n?VW.get(e[0]):VW.get(e),o=r?r.tableFooterCellFormatMethod:null;return o?`${n?o(t,...e.slice(1)):o(t)}`:""}function ECt(e){const{$table:t,column:n,_columnIndex:r,items:o,row:i}=e,{slots:l,editRender:s,cellRender:u,footerFormatter:c}=n,d=s||u,f=l?l.footer:null;if(f)return t.callSlot(f,e);if(d){const h=By.get(d.name);if(h){const v=h.renderTableFooter||h.renderFooter;if(v)return Ya(v(d,e))}}let p="";return U.isArray(o)?(p=o[r],[c?zW(c,{itemValue:p,column:n,row:i,items:o,_columnIndex:r}):fa(p,1)]):(p=U.get(i,n.field),[c?zW(c,{itemValue:p,column:n,row:i,items:o,_columnIndex:r}):fa(p,1)])}function $W(e){const{$table:t,row:n,column:r}=e;return fa(t.getCellLabel(n,r),1)}function _Ct(e){const{column:t,$table:n}=e,r=n.props,{editConfig:o}=r,{type:i,treeNode:l,editRender:s}=t,{computeEditOpts:u,computeCheckboxOpts:c}=n.getComputeMaps(),d=c.value,f=u.value;switch(i){case"seq":return l?qt.renderTreeIndexCell(e):qt.renderSeqCell(e);case"radio":return l?qt.renderTreeRadioCell(e):qt.renderRadioCell(e);case"checkbox":return d.checkField?l?qt.renderTreeSelectionCellByProp(e):qt.renderCheckboxCellByProp(e):l?qt.renderTreeSelectionCell(e):qt.renderCheckboxCell(e);case"expand":return qt.renderExpandCell(e);case"html":return l?qt.renderTreeHTMLCell(e):qt.renderHTMLCell(e)}return o&&s?f.mode==="cell"?l?qt.renderTreeCellEdit(e):qt.renderCellEdit(e):l?qt.renderTreeRowEdit(e):qt.renderRowEdit(e):l?qt.renderTreeCell(e):qt.renderDefaultCell(e)}function TCt(e){const{column:t,$table:n}=e,r=n.props,{editConfig:o}=r,{type:i,filters:l,sortable:s,editRender:u}=t;switch(i){case"seq":return qt.renderSeqHeader(e);case"radio":return qt.renderRadioHeader(e);case"checkbox":return qt.renderCheckboxHeader(e);case"html":if(l&&s)return qt.renderSortAndFilterHeader(e);if(s)return qt.renderSortHeader(e);if(l)return qt.renderFilterHeader(e);break}return o&&u?qt.renderEditHeader(e):l&&s?qt.renderSortAndFilterHeader(e):s?qt.renderSortHeader(e):l?qt.renderFilterHeader(e):qt.renderDefaultHeader(e)}function ACt(e){return qt.renderDefaultFooter(e)}const qt={createColumn(e,t){const{type:n}=t,r={renderHeader:TCt,renderCell:_Ct,renderFooter:ACt};return n==="expand"&&(r.renderData=qt.renderExpandData),gCt(e,t,r)},renderHeaderTitle(e){const{$table:t,column:n}=e,{slots:r,editRender:o,cellRender:i}=n,l=o||i,s=r?r.header:null;if(s)return Oc(e,t.callSlot(s,e));if(l){const u=By.get(l.name);if(u){const c=u.renderTableHeader||u.renderHeader;if(c)return Oc(e,Ya(c(l,e)))}}return Oc(e,fa(n.getTitle(),1))},renderDefaultHeader(e){return Es(e,qt.renderHeaderTitle(e))},renderDefaultCell(e){const{$table:t,row:n,column:r}=e,{slots:o,editRender:i,cellRender:l}=r,s=i||l,u=o?o.default:null;if(u)return Ha(e,t.callSlot(u,e));if(s){const f=By.get(s.name);if(f){const p=f.renderTableCell||f.renderCell,h=f.renderTableDefault||f.renderDefault,v=i?p:h;if(v)return Ha(e,Ya(v(s,Object.assign({$type:i?"edit":"cell"},e))))}}const c=t.getCellLabel(n,r),d=i?i.placeholder:"";return Ha(e,[a.h("span",{class:"vxe-cell--label"},[i&&Os(c)?a.h("span",{class:"vxe-cell--placeholder"},fa(au(d),1)):a.h("span",fa(c,1))])])},renderTreeCell(e){return qt.renderTreeIcon(e,qt.renderDefaultCell(e))},renderDefaultFooter(e){return[a.h("span",{class:"vxe-cell--item"},ECt(e))]},renderTreeIcon(e,t){const{$table:n,isHidden:r}=e,o=n.reactData,i=n.internalData,{computeTreeOpts:l}=n.getComputeMaps(),{treeExpandedMaps:s,treeExpandLazyLoadedMaps:u}=o,{fullAllDataRowIdData:c}=i,d=l.value,{row:f,column:p,level:h}=e,{slots:v}=p,{indent:m,lazy:g,trigger:y,iconLoaded:C,showIcon:b,iconOpen:w,iconClose:S}=d,x=d.children||d.childrenField,k=d.hasChild||d.hasChildField,_=f[x],T=_&&_.length,E=v?v.icon:null;let A=!1,D=!1,B=!1,N=!1;const M={};if(E)return n.callSlot(E,e);if(!r){const O=ct(n,f);if(D=!!s[O],g){const P=c[O];B=!!u[O],A=f[k],N=!!P.treeLoaded}}return(!y||y==="default")&&(M.onClick=O=>{n.triggerTreeExpandEvent(O,e)}),[a.h("div",{class:["vxe-cell--tree-node",{"is--active":D}],style:{paddingLeft:`${h*m}px`}},[b&&(g?N?T:T||A:T)?[a.h("div",Object.assign({class:"vxe-tree--btn-wrapper"},M),[a.h("i",{class:["vxe-tree--node-btn",B?C||Br().TABLE_TREE_LOADED:D?w||Br().TABLE_TREE_OPEN:S||Br().TABLE_TREE_CLOSE]})])]:null,a.h("div",{class:"vxe-tree-cell"},t)])]},renderSeqHeader(e){const{$table:t,column:n}=e,{slots:r}=n,o=r?r.header:null;return Es(e,Oc(e,o?t.callSlot(o,e):fa(n.getTitle(),1)))},renderSeqCell(e){const{$table:t,column:n}=e,r=t.props,{treeConfig:o}=r,{computeSeqOpts:i}=t.getComputeMaps(),l=i.value,{slots:s}=n,u=s?s.default:null;if(u)return Ha(e,t.callSlot(u,e));const{seq:c}=e,d=l.seqMethod;return Ha(e,[a.h("span",`${fa(d?d(e):o?c:(l.startIndex||0)+c,1)}`)])},renderTreeIndexCell(e){return qt.renderTreeIcon(e,qt.renderSeqCell(e))},renderRadioHeader(e){const{$table:t,column:n}=e,{slots:r}=n,o=r?r.header:null,i=r?r.title:null;return Es(e,Oc(e,o?t.callSlot(o,e):[a.h("span",{class:"vxe-radio--label"},i?t.callSlot(i,e):fa(n.getTitle(),1))]))},renderRadioCell(e){const{$table:t,column:n,isHidden:r}=e,o=t.reactData,{computeRadioOpts:i}=t.getComputeMaps(),{selectRadioRow:l}=o,s=i.value,{slots:u}=n,{labelField:c,checkMethod:d,visibleMethod:f}=s,{row:p}=e,h=u?u.default:null,v=u?u.radio:null,m=t.eqRow(p,l),g=!f||f({row:p});let y=!!d,C;r||(C={onClick(S){!y&&g&&t.triggerRadioRowEvent(S,e)}},d&&(y=!d({row:p})));const b=Object.assign(Object.assign({},e),{checked:m,disabled:y,visible:g});if(v)return Ha(e,t.callSlot(v,b));const w=[];return g&&w.push(a.h("span",{class:["vxe-radio--icon",m?Br().TABLE_RADIO_CHECKED:Br().TABLE_RADIO_UNCHECKED]})),(h||c)&&w.push(a.h("span",{class:"vxe-radio--label"},h?t.callSlot(h,b):U.get(p,c))),Ha(e,[a.h("span",Object.assign({class:["vxe-cell--radio",{"is--checked":m,"is--disabled":y}]},C),w)])},renderTreeRadioCell(e){return qt.renderTreeIcon(e,qt.renderRadioCell(e))},renderCheckboxHeader(e){const{$table:t,column:n,isHidden:r}=e,o=t.reactData,{computeIsAllCheckboxDisabled:i,computeCheckboxOpts:l}=t.getComputeMaps(),{isAllSelected:s,isIndeterminate:u}=o,c=i.value,{slots:d}=n,f=d?d.header:null,p=d?d.title:null,h=l.value,v=n.getTitle(),m={};r||(m.onClick=y=>{c||t.triggerCheckAllEvent(y,!s)});const g=Object.assign(Object.assign({},e),{checked:s,disabled:c,indeterminate:u});return f?Es(e,Oc(g,t.callSlot(f,g))):(h.checkStrictly?!h.showHeader:h.showHeader===!1)?Es(e,Oc(g,[a.h("span",{class:"vxe-checkbox--label"},p?t.callSlot(p,g):v)])):Es(e,Oc(g,[a.h("span",Object.assign({class:["vxe-cell--checkbox",{"is--checked":s,"is--disabled":c,"is--indeterminate":u}],title:f1("vxe.table.allTitle")},m),[a.h("span",{class:["vxe-checkbox--icon",u?Br().TABLE_CHECKBOX_INDETERMINATE:s?Br().TABLE_CHECKBOX_CHECKED:Br().TABLE_CHECKBOX_UNCHECKED]})].concat(p||v?[a.h("span",{class:"vxe-checkbox--label"},p?t.callSlot(p,g):v)]:[]))]))},renderCheckboxCell(e){const{$table:t,row:n,column:r,isHidden:o}=e,i=t.props,l=t.reactData,{treeConfig:s}=i,{selectCheckboxMaps:u,treeIndeterminateMaps:c}=l,{computeCheckboxOpts:d}=t.getComputeMaps(),f=d.value,{labelField:p,checkMethod:h,visibleMethod:v}=f,{slots:m}=r,g=m?m.default:null,y=m?m.checkbox:null;let C=!1,b=!1;const w=!v||v({row:n});let S=!!h;const x={};if(!o){const T=ct(t,n);b=!!u[T],x.onClick=E=>{!S&&w&&t.triggerCheckRowEvent(E,e,!b)},h&&(S=!h({row:n})),s&&(C=!!c[T])}const k=Object.assign(Object.assign({},e),{checked:b,disabled:S,visible:w,indeterminate:C});if(y)return Ha(e,t.callSlot(y,k));const _=[];return w&&_.push(a.h("span",{class:["vxe-checkbox--icon",C?Br().TABLE_CHECKBOX_INDETERMINATE:b?Br().TABLE_CHECKBOX_CHECKED:Br().TABLE_CHECKBOX_UNCHECKED]})),(g||p)&&_.push(a.h("span",{class:"vxe-checkbox--label"},g?t.callSlot(g,k):U.get(n,p))),Ha(e,[a.h("span",Object.assign({class:["vxe-cell--checkbox",{"is--checked":b,"is--disabled":S,"is--indeterminate":C,"is--hidden":!w}]},x),_)])},renderTreeSelectionCell(e){return qt.renderTreeIcon(e,qt.renderCheckboxCell(e))},renderCheckboxCellByProp(e){const{$table:t,row:n,column:r,isHidden:o}=e,i=t.props,l=t.reactData,{treeConfig:s}=i,{treeIndeterminateMaps:u}=l,{computeCheckboxOpts:c}=t.getComputeMaps(),d=c.value,{labelField:f,checkField:p,checkMethod:h,visibleMethod:v}=d,m=d.indeterminateField||d.halfField,{slots:g}=r,y=g?g.default:null,C=g?g.checkbox:null;let b=!1,w=!1;const S=!v||v({row:n});let x=!!h;const k={};if(!o){const E=ct(t,n);w=U.get(n,p),k.onClick=A=>{!x&&S&&t.triggerCheckRowEvent(A,e,!w)},h&&(x=!h({row:n})),s&&(b=!!u[E])}const _=Object.assign(Object.assign({},e),{checked:w,disabled:x,visible:S,indeterminate:b});if(C)return Ha(e,t.callSlot(C,_));const T=[];return S&&(T.push(a.h("span",{class:["vxe-checkbox--icon",b?Br().TABLE_CHECKBOX_INDETERMINATE:w?Br().TABLE_CHECKBOX_CHECKED:Br().TABLE_CHECKBOX_UNCHECKED]})),(y||f)&&T.push(a.h("span",{class:"vxe-checkbox--label"},y?t.callSlot(y,_):U.get(n,f)))),Ha(e,[a.h("span",Object.assign({class:["vxe-cell--checkbox",{"is--checked":w,"is--disabled":x,"is--indeterminate":m&&!w?n[m]:b,"is--hidden":!S}]},k),T)])},renderTreeSelectionCellByProp(e){return qt.renderTreeIcon(e,qt.renderCheckboxCellByProp(e))},renderExpandCell(e){const{$table:t,isHidden:n,row:r,column:o}=e,i=t.reactData,{rowExpandedMaps:l,rowExpandLazyLoadedMaps:s}=i,{computeExpandOpts:u}=t.getComputeMaps(),c=u.value,{lazy:d,labelField:f,iconLoaded:p,showIcon:h,iconOpen:v,iconClose:m,visibleMethod:g}=c,{slots:y}=o,C=y?y.default:null,b=y?y.icon:null;let w=!1,S=!1;if(b)return Ha(e,t.callSlot(b,e));if(!n){const x=ct(t,r);w=!!l[x],d&&(S=!!s[x])}return Ha(e,[h&&(!g||g(e))?a.h("span",{class:["vxe-table--expanded",{"is--active":w}],onClick(x){t.triggerRowExpandEvent(x,e)}},[a.h("i",{class:["vxe-table--expand-btn",S?p||Br().TABLE_EXPAND_LOADED:w?v||Br().TABLE_EXPAND_OPEN:m||Br().TABLE_EXPAND_CLOSE]})]):Jf(t),C||f?a.h("span",{class:"vxe-table--expand-label"},C?t.callSlot(C,e):U.get(r,f)):Jf(t)])},renderExpandData(e){const{$table:t,column:n}=e,{slots:r,contentRender:o}=n,i=r?r.content:null;if(i)return t.callSlot(i,e);if(o){const l=By.get(o.name);if(l){const s=l.renderTableExpand||l.renderExpand;if(s)return Ya(s(o,e))}}return[]},renderHTMLCell(e){const{$table:t,column:n}=e,{slots:r}=n,o=r?r.default:null;return o?Ha(e,t.callSlot(o,e)):Ha(e,[a.h("span",{class:"vxe-cell--html",innerHTML:$W(e)})])},renderTreeHTMLCell(e){return qt.renderTreeIcon(e,qt.renderHTMLCell(e))},renderSortAndFilterHeader(e){return Es(e,qt.renderHeaderTitle(e).concat(qt.renderSortIcon(e).concat(qt.renderFilterIcon(e))))},renderSortHeader(e){return Es(e,qt.renderHeaderTitle(e).concat(qt.renderSortIcon(e)))},renderSortIcon(e){const{$table:t,column:n}=e,{computeSortOpts:r}=t.getComputeMaps(),o=r.value,{showIcon:i,iconLayout:l,iconAsc:s,iconDesc:u,iconVisibleMethod:c}=o,{order:d}=n;return i&&(!c||c(e))?[a.h("span",{class:["vxe-cell--sort",`vxe-cell--sort-${l}-layout`]},[a.h("i",{class:["vxe-sort--asc-btn",s||Br().TABLE_SORT_ASC,{"sort--active":d==="asc"}],title:f1("vxe.table.sortAsc"),onClick(f){f.stopPropagation(),t.triggerSortEvent(f,n,"asc")}}),a.h("i",{class:["vxe-sort--desc-btn",u||Br().TABLE_SORT_DESC,{"sort--active":d==="desc"}],title:f1("vxe.table.sortDesc"),onClick(f){f.stopPropagation(),t.triggerSortEvent(f,n,"desc")}})])]:[]},renderFilterHeader(e){return Es(e,qt.renderHeaderTitle(e).concat(qt.renderFilterIcon(e)))},renderFilterIcon(e){const{$table:t,column:n,hasFilter:r}=e,o=t.reactData,{filterStore:i}=o,{computeFilterOpts:l}=t.getComputeMaps(),s=l.value,{showIcon:u,iconNone:c,iconMatch:d,iconVisibleMethod:f}=s;return u&&(!f||f(e))?[a.h("span",{class:["vxe-cell--filter",{"is--active":i.visible&&i.column===n}]},[a.h("i",{class:["vxe-filter--btn",r?d||Br().TABLE_FILTER_MATCH:c||Br().TABLE_FILTER_NONE],title:f1("vxe.table.filter"),onClick(p){t.triggerFilterEvent&&t.triggerFilterEvent(p,e.column,e)}})])]:[]},renderEditHeader(e){const{$table:t,column:n}=e,r=t.props,{computeEditOpts:o}=t.getComputeMaps(),{editConfig:i,editRules:l}=r,s=o.value,{sortable:u,filters:c,editRender:d}=n;let f=!1;if(l){const h=U.get(l,n.field);h&&(f=h.some(v=>v.required))}let p=[];return dn(i)&&(p=[f&&s.showAsterisk?a.h("i",{class:"vxe-cell--required-icon"}):Jf(t),dn(d)&&s.showIcon?a.h("i",{class:["vxe-cell--edit-icon",s.icon||Br().TABLE_EDIT]}):Jf(t)]),Es(e,p.concat(qt.renderHeaderTitle(e)).concat(u?qt.renderSortIcon(e):[]).concat(c?qt.renderFilterIcon(e):[]))},renderRowEdit(e){const{$table:t,column:n}=e,r=t.reactData,{editStore:o}=r,{actived:i}=o,{editRender:l}=n;return qt.runRenderer(e,dn(l)&&i&&i.row===e.row)},renderTreeRowEdit(e){return qt.renderTreeIcon(e,qt.renderRowEdit(e))},renderCellEdit(e){const{$table:t,column:n}=e,r=t.reactData,{editStore:o}=r,{actived:i}=o,{editRender:l}=n;return qt.runRenderer(e,dn(l)&&i&&i.row===e.row&&i.column===e.column)},renderTreeCellEdit(e){return qt.renderTreeIcon(e,qt.renderCellEdit(e))},runRenderer(e,t){const{$table:n,column:r}=e,{slots:o,editRender:i,formatter:l}=r,s=o?o.default:null,u=o?o.edit:null,c=By.get(i.name),d=c?c.renderTableEdit||c.renderEdit:null,f=Object.assign({$type:"",isEdit:t},e);return t?(f.$type="edit",u?n.callSlot(u,f):d?Ya(d(i,f)):[]):s?Ha(e,n.callSlot(s,f)):l?Ha(e,[a.h("span",{class:"vxe-cell--label"},$W(f))]):qt.renderDefaultCell(f)}},Loe={colId:[String,Number],type:String,field:String,title:String,width:[Number,String],minWidth:[Number,String],maxWidth:[Number,String],resizable:{type:Boolean,default:null},fixed:String,align:String,headerAlign:String,footerAlign:String,showOverflow:{type:[Boolean,String],default:null},showHeaderOverflow:{type:[Boolean,String],default:null},showFooterOverflow:{type:[Boolean,String],default:null},className:[String,Function],headerClassName:[String,Function],footerClassName:[String,Function],formatter:[Function,Array,String],footerFormatter:[Function,Array,String],sortable:Boolean,sortBy:[String,Function],sortType:String,filters:{type:Array,default:null},filterMultiple:{type:Boolean,default:!0},filterMethod:Function,filterResetMethod:Function,filterRecoverMethod:Function,filterRender:Object,treeNode:Boolean,dragSort:Boolean,visible:{type:Boolean,default:null},headerExportMethod:Function,exportMethod:Function,footerExportMethod:Function,titleHelp:Object,titlePrefix:Object,titleSuffix:Object,cellType:String,cellRender:Object,editRender:Object,contentRender:Object,params:Object},td=a.defineComponent({name:"VxeColumn",props:Loe,setup(e,{slots:t}){const n=a.ref(),r=a.inject("$xeTable",null),o=a.inject("$xeColgroup",null);if(!r)return()=>a.createCommentVNode();const i=qt.createColumn(r,e);i.slots=t;const l=()=>a.h("div",{ref:n}),s={columnConfig:i,renderVN:l};return Aoe(r,e,i),a.onMounted(()=>{const u=n.value;u&&Doe(r,u,i,o)}),a.onUnmounted(()=>{Moe(r,i)}),a.provide("$xeColumn",s),a.provide("$xeGrid",null),l}});Object.assign({},td,{install(e){e.component(td.name,td),e.component("VxeTableColumn",td)}});Ze.dynamicApp&&(Ze.dynamicApp.component(td.name,td),Ze.dynamicApp.component("VxeTableColumn",td));Ze.component(td);const nd=a.defineComponent({name:"VxeColgroup",props:Loe,setup(e,{slots:t}){const n=a.ref(),r=a.inject("$xeTable",null),o=a.inject("$xeColgroup",null);if(!r)return()=>a.createCommentVNode();const i=qt.createColumn(r,e),l={};t.header&&(l.header=t.header),i.slots=l,i.children=[],Aoe(r,e,i),a.onMounted(()=>{const c=n.value;c&&Doe(r,c,i,o)}),a.onUnmounted(()=>{Moe(r,i)});const s=()=>a.h("div",{ref:n},t.default?t.default():[]),u={columnConfig:i};return a.provide("$xeColgroup",u),a.provide("$xeGrid",null),s}});Object.assign({},nd,{install(e){e.component(nd.name,nd),e.component("VxeTableColgroup",nd)}});Ze.dynamicApp&&(Ze.dynamicApp.component(nd.name,nd),Ze.dynamicApp.component("VxeTableColgroup",nd));Ze.component(nd);const{getI18n:DCt,renderer:HW,renderEmptyElement:R2}=Ze,$h="body",WW=a.defineComponent({name:"VxeTableBody",props:{tableData:Array,tableColumn:Array,fixedColumn:Array,fixedType:{type:String,default:""}},setup(e){const t=a.inject("$xeTable",{}),{xID:n,props:r,context:o,reactData:i,internalData:l}=t,{refTableBody:s,refTableHeader:u,refTableFooter:c,refTableLeftBody:d,refTableRightBody:f,refScrollXHandleElem:p,refScrollYHandleElem:h}=t.getRefMaps(),{computeEditOpts:v,computeMouseOpts:m,computeAreaOpts:g,computeSYOpts:y,computeEmptyOpts:C,computeTooltipOpts:b,computeRadioOpts:w,computeExpandOpts:S,computeTreeOpts:x,computeCheckboxOpts:k,computeCellOpts:_,computeValidOpts:T,computeRowOpts:E,computeColumnOpts:A,computeRowDragOpts:D,computeColumnDragOpts:B}=t.getComputeMaps(),N=a.ref(),M=a.ref(),O=a.ref(),P=a.ref(),R=a.ref(),L=a.ref(),z=a.ref(),F=()=>{const{delayHover:le}=r,{lastScrollTime:Ce,_isResize:be}=i;return!!(be||Ce&&Date.now()<Ce+le)},G=le=>{const{row:Ce,column:be}=le,{afterFullData:Ee}=l,{treeConfig:Te}=r,De=x.value,{slots:Fe,treeNode:Je}=be,{fullAllDataRowIdData:Ve}=l;if(Fe&&Fe.line)return t.callSlot(Fe.line,le);const Ke=ct(t,Ce),ye=Ve[Ke];let Me=0,Ye=null;ye&&(Me=ye.level,Ye=ye.items[ye._index-1]);const lt=t.eqRow(Ee[0],Ce);return Te&&Je&&(De.showLine||De.line)?[a.h("div",{class:"vxe-tree--line-wrapper"},[a.h("div",{class:"vxe-tree--line",style:{height:`${lt?1:bCt(le,Ye)}px`,left:`${Me*De.indent+(Me?2-Boe(t):0)+16}px`}})])]:[]},$=(le,Ce,be,Ee,Te,De,Fe,Je,Ve,Ke,ye,Me)=>{const{fullAllDataRowIdData:Ye}=l,{columnKey:lt,height:vt,showOverflow:ft,cellClassName:pt,cellStyle:_e,align:at,spanMethod:tt,mouseConfig:ue,editConfig:se,editRules:ee,tooltipConfig:he}=r,{tableData:ze,overflowX:Xe,currentColumn:st,scrollXLoad:Mt,scrollYLoad:Ft,isCalcCellHeight:ke,mergeList:Se,editStore:$e,isAllOverflow:ve,validErrorMaps:we}=i,{afterFullData:He}=l,We=_.value,et=T.value,xt=k.value,Xt=v.value,$t=b.value,En=E.value,Ut=D.value,{disabledMethod:or,isCrossDrag:Zn,isPeerDrag:Pe}=Ut,yt=y.value,te=A.value,mn=m.value,xn=g.value,{selectCellToRow:On}=xn,{type:ir,cellRender:lr,editRender:An,align:Yn,showOverflow:Ue,className:mt,treeNode:Et,slots:Yt}=Ve,{verticalAlign:pr}=We,{actived:xa}=$e,{rHeight:no}=yt,{height:Jr}=En,di=Ve.id,mu=An||lr,ro=mu?HW.get(mu.name):null,Qp=ro?ro.tableCellClassName||ro.cellClassName:null,gu=ro?ro.tableCellStyle||ro.cellStyle:"",gc=$t.showAll,yu=t.getColumnIndex(Ve),lg=t.getVTColumnIndex(Ve),yc=dn(An);let fi=be?Ve.fixed!==be:Ve.fixed&&Xe;const Jp=U.isUndefined(Ue)||U.isNull(Ue)?ft:Ue,ka=Jp==="ellipsis",Vi=Jp==="title",El=Jp===!0||Jp==="tooltip",eh=ft||Vi||El||ka;let bC;const bu={},qE=Ye[Ce],CC=Yn||(ro?ro.tableCellAlign:"")||at,pi=we[`${Ce}:${di}`],Pd=ee&&et.showMessage&&(et.message==="default"?vt||ze.length>1:et.message==="inline"),ko={colid:di},ma={$table:t,$grid:t.xegrid,isEdit:!1,seq:le,rowid:Ce,row:Te,rowIndex:De,$rowIndex:Fe,_rowIndex:Je,column:Ve,columnIndex:yu,$columnIndex:Ke,_columnIndex:lg,fixed:be,type:$h,isHidden:fi,level:Ee,visibleData:He,data:ze,items:Me};let Vd=!1,wC=!1;if(En.drag&&(Vd=Ut.trigger==="row"||Ve.dragSort&&Ut.trigger==="cell"),Vd&&(wC=!!(or&&or(ma))),(Vi||El||gc||he)&&(bu.onMouseenter=_r=>{F()||(Vi?SP(_r.currentTarget,Ve):(El||gc)&&t.triggerBodyTooltipEvent(_r,ma),t.dispatchEvent("cell-mouseenter",Object.assign({cell:_r.currentTarget},ma),_r))}),(El||gc||he)&&(bu.onMouseleave=_r=>{F()||((El||gc)&&t.handleTargetLeaveEvent(_r),t.dispatchEvent("cell-mouseleave",Object.assign({cell:_r.currentTarget},ma),_r))}),(Vd||xt.range||ue)&&(bu.onMousedown=_r=>{t.triggerCellMousedownEvent(_r,ma)}),Vd&&(bu.onMouseup=t.triggerCellMouseupEvent),bu.onClick=_r=>{t.triggerCellClickEvent(_r,ma)},bu.onDblclick=_r=>{t.triggerCellDblclickEvent(_r,ma)},Se.length){const _r=Ooe(Se,Je,lg);if(_r){const{rowspan:Fi,colspan:ps}=_r;if(!Fi||!ps)return null;Fi>1&&(ko.rowspan=Fi),ps>1&&(ko.colspan=ps)}}else if(tt){const{rowspan:_r=1,colspan:Fi=1}=tt(ma)||{};if(!_r||!Fi)return null;_r>1&&(ko.rowspan=_r),Fi>1&&(ko.colspan=Fi)}fi&&Se&&(ko.colspan>1||ko.rowspan>1)&&(fi=!1),!fi&&se&&(An||lr)&&(Xt.showStatus||Xt.showUpdateStatus)&&(bC=t.isUpdateByRow(Te,Ve.field));const bc=[];if(fi&&ft&&ve)bc.push(a.h("div",{class:["vxe-cell",{"c--title":Vi,"c--tooltip":El,"c--ellipsis":ka}],style:{maxHeight:eh&&(no||Jr)?`${no||Jr}px`:""}}));else if(bc.push(...G(ma),a.h("div",{class:["vxe-cell",{"c--title":Vi,"c--tooltip":El,"c--ellipsis":ka}],style:{maxHeight:eh&&(no||Jr)?`${no||Jr}px`:""},title:Vi?t.getCellLabel(Te,Ve):null},Ve.renderCell(ma))),Pd&&pi){const _r=pi.rule,Fi=Yt?Yt.valid:null,ps=Object.assign(Object.assign(Object.assign({},ma),pi),{rule:pi});bc.push(a.h("div",{class:["vxe-cell--valid-error-tip",Gc(et.className,ps)],style:_r&&_r.maxWidth?{width:`${_r.maxWidth}px`}:null},[a.h("div",{class:`vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${et.theme||"normal"}`},[Fi?t.callSlot(Fi,ps):[a.h("span",{class:"vxe-cell--valid-error-msg"},pi.content)]])]))}let Fd="";const sg=ke?qE.height:0;eh?no||Jr?Fd=`${no||Jr}px`:ve||(Fd=`${sg||Jr||18}px`):Fd=`${sg||Jr||18}px`,ue&&mn.area&&On&&(!Ke&&On===!0||On===Ve.field)&&bc.push(a.h("div",{class:"vxe-cell--area-status"}));const SC=!Ve.resizeWidth&&(Ve.minWidth==="auto"||Ve.width==="auto");return a.h("td",Object.assign(Object.assign(Object.assign({class:["vxe-body--column",di,{[`col--${CC}`]:CC,[`col--vertical-${pr}`]:pr,[`col--${ir}`]:ir,"col--last":Ke===ye.length-1,"col--tree-node":Et,"col--edit":yc,"col--ellipsis":eh,"fixed--width":!SC,"fixed--hidden":fi,"is--drag-cell":Vd&&(Zn||Pe||!Ee),"is--drag-disabled":wC,"col--dirty":bC,"col--active":se&&yc&&xa.row===Te&&(xa.column===Ve||Xt.mode==="row"),"col--valid-error":!!pi,"col--current":st===Ve},Gc(Qp,ma),Gc(mt,ma),Gc(pt,ma)],key:lt||Mt||Ft||te.useKey||En.useKey||te.drag?di:Ke},ko),{style:Object.assign({height:Fd},U.isFunction(gu)?gu(ma):gu,U.isFunction(_e)?_e(ma):_e)}),bu),bc)},W=(le,Ce,be)=>{const{stripe:Ee,rowKey:Te,highlightHoverRow:De,rowClassName:Fe,rowStyle:Je,showOverflow:Ve,editConfig:Ke,treeConfig:ye}=r,{hasFixedColumn:Me,treeExpandedMaps:Ye,scrollXLoad:lt,scrollYLoad:vt,rowExpandedMaps:ft,expandColumn:pt,selectRadioRow:_e,pendingRowMaps:at,isDragColMove:tt}=i,{fullAllDataRowIdData:ue}=l,se=k.value,ee=w.value,he=x.value,ze=v.value,Xe=E.value,st=A.value,Mt=B.value,{transform:Ft,seqMode:ke}=he,Se=he.children||he.childrenField,$e=[];return Ce.forEach((ve,we)=>{const He={};let We=we;We=t.getRowIndex(ve),(Xe.isHover||De)&&(He.onMouseenter=xn=>{F()||t.triggerHoverEvent(xn,{row:ve,rowIndex:We})},He.onMouseleave=()=>{F()||t.clearHoverRow()});const et=ct(t,ve),xt=ue[et];let Xt=0,$t=-1,En=0;xt&&(Xt=xt.level,ye&&Ft&&ke==="increasing"?$t=xt._index+1:$t=xt.seq,En=xt._index);const Ut={$table:t,seq:$t,rowid:et,fixed:le,type:$h,level:Xt,row:ve,rowIndex:We,$rowIndex:we,_rowIndex:En},or=pt&&!!ft[et];let Zn=!1,Pe=[],yt=!1;Ke&&(yt=t.isInsertByRow(ve)),ye&&!vt&&!Ft&&(Pe=ve[Se],Zn=Pe&&Pe.length>0&&!!Ye[et]),Xe.drag&&(!ye||Ft)&&(He.onDragstart=t.handleRowDragDragstartEvent,He.onDragend=t.handleRowDragDragendEvent,He.onDragover=t.handleRowDragDragoverEvent);const te=["vxe-body--row",ye?`row--level-${Xt}`:"",{"row--stripe":Ee&&(En+1)%2===0,"is--new":yt,"is--expand-row":or,"is--expand-tree":Zn,"row--new":yt&&(ze.showStatus||ze.showInsertStatus),"row--radio":ee.highlight&&t.eqRow(_e,ve),"row--checked":se.highlight&&t.isCheckedByCheckboxRow(ve),"row--pending":!!at[et]},Gc(Fe,Ut)],mn=be.map((xn,On)=>$($t,et,le,Xt,ve,We,we,En,xn,On,be,Ce));if($e.push(st.drag&&Mt.animation?a.h(a.TransitionGroup,Object.assign({name:`vxe-header--col-list${tt?"":"-disabled"}`,tag:"tr",class:te,rowid:et,style:Je?U.isFunction(Je)?Je(Ut):Je:null,key:Te||lt||vt||Xe.useKey||Xe.drag||st.drag||ye?et:we},He),{default:()=>mn}):a.h("tr",Object.assign({class:te,rowid:et,style:Je?U.isFunction(Je)?Je(Ut):Je:null,key:Te||lt||vt||Xe.useKey||Xe.drag||st.drag||ye?et:we},He),mn)),or){const xn=S.value,{height:On,padding:ir}=xn,lr={};On&&(lr.height=`${On}px`),ye&&(lr.paddingLeft=`${Xt*he.indent+30}px`);const{showOverflow:An}=pt,Yn=U.isUndefined(An)||U.isNull(An)?Ve:An,Ue={$table:t,seq:$t,column:pt,fixed:le,type:$h,level:Xt,row:ve,rowIndex:We,$rowIndex:we,_rowIndex:En};$e.push(a.h("tr",Object.assign({class:["vxe-body--expanded-row",{"is--padding":ir}],key:`expand_${et}`,style:Je?U.isFunction(Je)?Je(Ue):Je:null},He),[a.h("td",{class:{"vxe-body--expanded-column":1,"fixed--hidden":le&&!Me,"col--ellipsis":Yn},colspan:be.length},[a.h("div",{class:{"vxe-body--expanded-cell":1,"is--ellipsis":On},style:lr},[pt.renderData(Ue)])])]))}Zn&&$e.push(...W(le,Pe,be))}),$e},j=le=>{const{fixedType:Ce}=e,{lastScrollTop:be,lastScrollLeft:Ee,inVirtualScroll:Te,inBodyScroll:De,bodyScrollType:Fe,inFooterScroll:Je}=l;if(Te||Je||De&&Fe!==Ce)return;const Ve=u.value,Ke=s.value,ye=c.value,Me=d.value,Ye=f.value,lt=N.value,vt=Ve?Ve.$el:null,ft=ye?ye.$el:null,pt=Ke.$el;if(!pt)return;const _e=Me?Me.$el:null,at=Ye?Ye.$el:null,tt=p.value,ue=h.value,se=lt.scrollTop,ee=pt.scrollLeft,he=ee!==Ee,ze=se!==be;l.inBodyScroll=!0,l.bodyScrollType=Ce,ze&&(_e&&Ce==="left"?(Hr(pt,se),Hr(at,se)):at&&Ce==="right"?(Hr(pt,se),Hr(_e,se)):(Hr(_e,se),Hr(at,se)),Hr(ue,se),t.triggerScrollYEvent(le)),he&&(ca(tt,ee),ca(vt,ee),ca(ft,ee),t.triggerScrollXEvent(le)),t.handleScrollEvent(le,ze,he,se,ee,{type:$h,fixed:Ce})};let J,Z=0,X=0,ae=0,ie=!1;const K=(le,Ce,be,Ee,Te)=>{const{elemStore:De}=l,{scrollXLoad:Fe,scrollYLoad:Je}=i,Ve=s.value,Ke=d.value,ye=f.value,Me=Ke?Ke.$el:null,Ye=ye?ye.$el:null,lt=Ve.$el,vt=Mo(De["main-body-ySpace"]),ft=Mo(De["main-body-xSpace"]),pt=Je&&vt?vt.clientHeight:lt.clientHeight,_e=Fe&&ft?ft.clientWidth:lt.clientWidth,at=ie===Ce?Math.max(0,Z-ae):0;ie=Ce,Z=Math.abs(Ce?be-at:be+at),X=0,ae=0,clearTimeout(J);const tt=()=>{if(ae<Z){const{fixedType:ue}=e;X=Math.max(5,Math.floor(X*1.5)),ae=ae+X,ae>Z&&(X=X-(ae-Z));const{scrollTop:se,clientHeight:ee,scrollHeight:he}=lt,ze=se+X*(Ce?-1:1);lt.scrollTop=ze,Me&&(Me.scrollTop=ze),Ye&&(Ye.scrollTop=ze),(Ce?ze<he-ee:ze>=0)&&(J=setTimeout(tt,10)),t.dispatchEvent("scroll",{type:$h,fixed:ue,scrollTop:lt.scrollTop,scrollLeft:lt.scrollLeft,scrollHeight:lt.scrollHeight,scrollWidth:lt.scrollWidth,bodyHeight:pt,bodyWidth:_e,isX:Ee,isY:Te},le)}};tt()},ne=le=>{const{deltaY:Ce,deltaX:be}=le,{highlightHoverRow:Ee}=r,{scrollYLoad:Te}=i,{lastScrollTop:De,lastScrollLeft:Fe}=l,Je=E.value,Ve=s.value,Ke=N.value,ye=Ve.$el,Me=Ce,Ye=be,lt=Me<0;if(lt?Ke.scrollTop<=0:Ke.scrollTop>=Ke.scrollHeight-Ke.clientHeight)return;const vt=Ke.scrollTop+Me,ft=ye.scrollLeft+Ye,pt=ft!==Fe,_e=vt!==De;_e&&(le.preventDefault(),l.lastScrollTop=vt,l.lastScrollLeft=ft,i.lastScrollTime=Date.now(),(Je.isHover||Ee)&&t.clearHoverRow(),K(le,lt,Me,pt,_e),Te&&t.triggerScrollYEvent(le))};return a.onMounted(()=>{a.nextTick(()=>{const{fixedType:le}=e,{elemStore:Ce}=l,be=`${le||"main"}-body-`;Ce[`${be}wrapper`]=N,Ce[`${be}table`]=M,Ce[`${be}colgroup`]=O,Ce[`${be}list`]=P,Ce[`${be}xSpace`]=R,Ce[`${be}ySpace`]=L,Ce[`${be}emptyBlock`]=z})}),a.onBeforeUnmount(()=>{clearTimeout(J)}),a.onUnmounted(()=>{const{fixedType:le}=e,{elemStore:Ce}=l,be=`${le||"main"}-body-`;Ce[`${be}wrapper`]=null,Ce[`${be}table`]=null,Ce[`${be}colgroup`]=null,Ce[`${be}list`]=null,Ce[`${be}xSpace`]=null,Ce[`${be}ySpace`]=null,Ce[`${be}emptyBlock`]=null}),()=>{const{slots:le}=o,{fixedColumn:Ce,fixedType:be,tableColumn:Ee}=e,{showOverflow:Te,spanMethod:De,footerSpanMethod:Fe,mouseConfig:Je}=r,{isGroup:Ve,tableData:Ke,scrollXLoad:ye,scrollYLoad:Me,isAllOverflow:Ye,isDragRowMove:lt,expandColumn:vt,dragRow:ft,dragCol:pt}=i,{visibleColumn:_e,fullAllDataRowIdData:at,fullColumnIdData:tt}=l,ue=E.value,se=y.value,ee=C.value,he=m.value,ze=D.value;let Xe=Ke,st=Ee;if(be&&(st=_e,(ye||Me||Te&&Ye)&&(vt||De||Fe?st=_e:st=Ce||[])),Me&&ft&&Xe.length>2){const Se=at[ct(t,ft)];if(Se){const $e=Se._index,ve=Xe[0],we=Xe[Xe.length-1],He=at[ct(t,ve)],We=at[ct(t,we)];if(He&&We){const et=He._index,xt=We._index;$e<et?Xe=[ft].concat(Xe):$e>xt&&(Xe=Xe.concat([ft]))}}}if(!be&&!Ve&&ye&&pt&&st.length>2){const Se=tt[pt.id];if(Se){const $e=Se._index,ve=st[0],we=st[st.length-1],He=tt[ve.id],We=tt[we.id];if(He&&We){const et=He._index,xt=We._index;$e<et?st=[pt].concat(st):$e>xt&&(st=st.concat([pt]))}}}let Mt;const Ft=le?le.empty:null;if(Ft)Mt=t.callSlot(Ft,{$table:t,$grid:t.xegrid});else{const Se=ee.name?HW.get(ee.name):null,$e=Se?Se.renderTableEmpty||Se.renderTableEmptyView||Se.renderEmpty:null;$e?Mt=Ya($e(ee,{$table:t})):Mt=r.emptyText||DCt("vxe.table.emptyText")}const ke={onScroll:j};return se.mode==="wheel"&&(ke.onWheel=ne),a.h("div",Object.assign({ref:N,class:["vxe-table--body-wrapper",be?`fixed-${be}--wrapper`:"body--wrapper"],xid:n},ke),[be?R2(t):a.h("div",{ref:R,class:"vxe-body--x-space"}),a.h("div",{ref:L,class:"vxe-body--y-space"}),a.h("table",{ref:M,class:"vxe-table--body",xid:n,cellspacing:0,cellpadding:0,border:0},[a.h("colgroup",{ref:O},st.map((Se,$e)=>a.h("col",{name:Se.id,key:$e}))),ue.drag&&ze.animation?a.h(a.TransitionGroup,{ref:P,name:`vxe-body--row-list${lt?"":"-disabled"}`,tag:"tbody"},{default:()=>W(be,Xe,st)}):a.h("tbody",{ref:P},W(be,Xe,st))]),a.h("div",{class:"vxe-table--checkbox-range"}),Je&&he.area?a.h("div",{class:"vxe-table--cell-area"},[a.h("span",{class:"vxe-table--cell-main-area"},he.extension?[a.h("span",{class:"vxe-table--cell-main-area-btn",onMousedown(Se){t.triggerCellAreaExtendMousedownEvent&&t.triggerCellAreaExtendMousedownEvent(Se,{$table:t,fixed:be,type:$h})}})]:[]),a.h("span",{class:"vxe-table--cell-copy-area"}),a.h("span",{class:"vxe-table--cell-extend-area"}),a.h("span",{class:"vxe-table--cell-multi-area"}),a.h("span",{class:"vxe-table--cell-active-area"})]):R2(t),be?R2(t):a.h("div",{class:"vxe-table--empty-block",ref:z},[a.h("div",{class:"vxe-table--empty-content"},Mt)])])}}}),{getI18n:MCt,renderer:NCt,renderEmptyElement:BCt}=Ze,GW="header",UW=a.defineComponent({name:"VxeTableHeader",props:{tableData:Array,tableColumn:Array,tableGroupColumn:Array,fixedColumn:Array,fixedType:{type:String,default:null}},setup(e){const t=a.inject("$xeTable",{}),{xID:n,props:r,reactData:o,internalData:i}=t,{refElem:l,refTableBody:s,refLeftContainer:u,refRightContainer:c,refCellResizeBar:d,refCellResizeTip:f}=t.getRefMaps(),{computeColumnOpts:p,computeColumnDragOpts:h,computeResizableOpts:v}=t.getComputeMaps(),m=a.ref([]),g=a.ref(),y=a.ref(),C=a.ref(),b=a.ref(),w=a.ref(),S=a.ref(),x=()=>{const{isGroup:A}=o;m.value=A?vCt(e.tableGroupColumn):[]},k=(A,D)=>{const{column:B}=D,{fixedType:N}=e,{visibleColumn:M}=i,O=v.value,P=s.value,R=l.value,L=u.value,z=c.value,F=d.value,G=f.value,{clientX:$}=A,W=g.value,j=A.target,J=j.parentNode,Z=Object.assign(D,{cell:J});let X=0;const ae=P.$el,ie=fCt(j,W),K=j.clientWidth,ne=Math.floor(K/2),pe=Toe(Z)-ne;let le=ie.left-J.clientWidth+K+pe,Ce=ie.left+ne;const be=document.onmousemove,Ee=document.onmouseup,Te=N==="left",De=N==="right";let Fe=0;if(Te||De){const Ve=Te?"nextElementSibling":"previousElementSibling";let Ke=J[Ve];for(;Ke&&!Bp(Ke,"fixed--hidden");)Bp(Ke,"col--group")||(Fe+=Ke.offsetWidth),Ke=Ke[Ve];De&&z&&(Ce=z.offsetLeft+Fe)}const Je=function(Ve){Ve.stopPropagation(),Ve.preventDefault();const Ke=Ve.clientX-$;let ye=Ce+Ke;const Me=N?0:ae.scrollLeft;Te?ye=Math.min(ye,(z?z.offsetLeft:ae.clientWidth)-Fe-pe):De?(le=(L?L.clientWidth:0)+Fe+pe,ye=Math.min(ye,Ce+J.clientWidth-pe)):le=Math.max(ae.scrollLeft,le),X=Math.max(ye,le);const Ye=X-Me;if(F.style.left=`${Ye}px`,O.showDragTip&&G){const lt=R.clientWidth,vt=W.getBoundingClientRect(),ft=F.clientWidth,pt=G.clientWidth,_e=G.clientHeight;let at=-pt;Ye<pt+ft?at=pt+ft-Ye:Ye>lt&&(at+=lt-Ye),G.style.left=`${at}px`,G.style.top=`${Math.min(R.clientHeight-_e,Math.max(0,Ve.clientY-vt.y-_e/2))}px`,G.textContent=MCt("vxe.table.resizeColTip",[B.renderWidth+(De?Ce-X:X-Ce)])}};o._isResize=!0,Is(R,"drag--resize"),F.style.display="block",document.onmousemove=Je,document.onmouseup=function(Ve){document.onmousemove=be,document.onmouseup=Ee;const Ke=B.renderWidth+(De?Ce-X:X-Ce);B.resizeWidth=Ke,O.dragMode==="fixed"&&M.forEach(ye=>{ye.id!==B.id&&(ye.resizeWidth||(ye.resizeWidth=ye.renderWidth))}),F.style.display="none",o._isResize=!1,i._lastResizeTime=Date.now(),t.analyColumnWidth(),t.recalculate(!0).then(()=>{t.saveCustomStore("update:visible"),t.updateCellAreas(),t.dispatchEvent("resizable-change",Object.assign(Object.assign({},D),{resizeWidth:Ke}),Ve),setTimeout(()=>t.recalculate(!0),300)}),Ei(R,"drag--resize")},Je(A),t.closeMenu&&t.closeMenu()},_=(A,D)=>{const{fixedType:B}=e,{resizable:N,border:M,columnKey:O,headerCellClassName:P,headerCellStyle:R,showHeaderOverflow:L,headerAlign:z,align:F,mouseConfig:G}=r,{currentColumn:$,scrollXLoad:W,scrollYLoad:j,overflowX:J,scrollbarWidth:Z}=o,X=p.value,ae=h.value,{disabledMethod:ie,isCrossDrag:K,isPeerDrag:ne}=ae;return A.map((pe,le)=>{const{type:Ce,showHeaderOverflow:be,headerAlign:Ee,align:Te,filters:De,headerClassName:Fe,editRender:Je,cellRender:Ve}=pe,Ke=pe.id,ye=Je||Ve,Me=ye?NCt.get(ye.name):null,Ye=pe.children&&pe.children.length,lt=B?pe.fixed!==B&&!Ye:!!pe.fixed&&J,vt=U.eqNull(be)?L:be,ft=Ee||(Me?Me.tableHeaderCellAlign:"")||z||Te||(Me?Me.tableCellAlign:"")||F;let pt=vt==="ellipsis";const _e=vt==="title",at=vt===!0||vt==="tooltip";let tt=_e||at||pt,ue=!1,se=null;De&&(se=De[0],ue=De.some(Se=>Se.checked));const ee=t.getColumnIndex(pe),he=t.getVTColumnIndex(pe),ze={$table:t,$grid:t.xegrid,$rowIndex:D,column:pe,columnIndex:ee,$columnIndex:le,_columnIndex:he,firstFilterOption:se,fixed:B,type:GW,isHidden:lt,hasFilter:ue},Xe={colid:Ke,colspan:pe.colSpan>1?pe.colSpan:null,rowspan:pe.rowSpan>1?pe.rowSpan:null},st={onClick:Se=>t.triggerHeaderCellClickEvent(Se,ze),onDblclick:Se=>t.triggerHeaderCellDblclickEvent(Se,ze)};W&&!tt&&(pt=tt=!0);const Mt=X.drag&&ae.trigger==="cell";let Ft=!1;Mt&&(Ft=!!(ie&&ie(ze))),(G||Mt)&&(st.onMousedown=Se=>t.triggerHeaderCellMousedownEvent(Se,ze)),X.drag&&(st.onDragstart=t.handleHeaderCellDragDragstartEvent,st.onDragend=t.handleHeaderCellDragDragendEvent,st.onDragover=t.handleHeaderCellDragDragoverEvent,Mt&&(st.onMouseup=t.handleHeaderCellDragMouseupEvent));const ke=!pe.resizeWidth&&(pe.minWidth==="auto"||pe.width==="auto");return a.h("th",Object.assign(Object.assign(Object.assign({class:["vxe-header--column",Ke,{[`col--${ft}`]:ft,[`col--${Ce}`]:Ce,"col--last":le===A.length-1,"col--fixed":pe.fixed,"col--group":Ye,"col--ellipsis":tt,"fixed--width":!ke,"fixed--hidden":lt,"is--sortable":pe.sortable,"col--filter":!!De,"is--filter-active":ue,"is--drag-active":!pe.fixed&&!Ft&&(K||ne||!pe.parentId),"is--drag-disabled":Ft,"col--current":$===pe},Fe?U.isFunction(Fe)?Fe(ze):Fe:"",P?U.isFunction(P)?P(ze):P:""],style:R?U.isFunction(R)?R(ze):R:null},Xe),st),{key:O||W||j||X.useKey||X.drag||Ye?Ke:le}),[a.h("div",{class:["vxe-cell",{"c--title":_e,"c--tooltip":at,"c--ellipsis":pt}]},pe.renderHeader(ze)),!lt&&!Ye&&(U.isBoolean(pe.resizable)?pe.resizable:X.resizable||N)?a.h("div",{class:["vxe-resizable",{"is--line":!M||M==="none"}],onMousedown:Se=>k(Se,ze),onDblclick:Se=>t.handleResizeDblclickEvent(Se,ze)}):null])}).concat(Z?[a.h("th",{key:`gr${D}`,class:"vxe-header--gutter col--gutter"})]:[])},T=A=>{const{fixedType:D}=e,{headerRowClassName:B,headerRowStyle:N}=r,{isDragColMove:M}=o,O=p.value,P=h.value;return A.map((R,L)=>{const z={$table:t,$rowIndex:L,fixed:D,type:GW};return O.drag&&P.animation?a.h(a.TransitionGroup,{key:L,name:`vxe-header--col-list${M?"":"-disabled"}`,tag:"tr",class:["vxe-header--row",B?U.isFunction(B)?B(z):B:""],style:N?U.isFunction(N)?N(z):N:null},{default:()=>_(R,L)}):a.h("tr",{key:L,class:["vxe-header--row",B?U.isFunction(B)?B(z):B:""],style:N?U.isFunction(N)?N(z):N:null},_(R,L))})},E=()=>{const{fixedType:A,fixedColumn:D,tableColumn:B}=e,{showHeaderOverflow:N,spanMethod:M,footerSpanMethod:O}=r,{isGroup:P,scrollXLoad:R,scrollYLoad:L,scrollbarWidth:z,dragCol:F}=o,{visibleColumn:G,fullColumnIdData:$}=i;let W=m.value,j=B;if(P?j=G:(A&&(j=G,(R||L||N)&&(M||O?j=G:j=D||[])),W=[j]),!A&&!P&&R&&F&&j.length>2){const J=$[F.id];if(J){const Z=J._index,X=j[0],ae=j[j.length-1],ie=$[X.id],K=$[ae.id];if(ie&&K){const ne=ie._index,pe=K._index;Z<ne?(j=[F].concat(j),W=[[F].concat(W[0])].concat(W.slice(1))):Z>pe&&(j=j.concat([F]),W=[W[0].concat([F])].concat(W.slice(1)))}}}return a.h("div",{ref:g,class:["vxe-table--header-wrapper",A?`fixed-${A}--wrapper`:"body--wrapper"],xid:n},[A?BCt(t):a.h("div",{ref:w,class:"vxe-body--x-space"}),a.h("table",{ref:y,class:"vxe-table--header",xid:n,cellspacing:0,cellpadding:0,border:0},[a.h("colgroup",{ref:C},j.map((J,Z)=>a.h("col",{name:J.id,key:Z})).concat(z?[a.h("col",{name:"col_gutter"})]:[])),a.h("thead",{ref:b},T(W))]),a.h("div",{ref:S,class:"vxe-table--header-border-line"})])};return a.watch(()=>e.tableColumn,x),a.onMounted(()=>{a.nextTick(()=>{const{fixedType:A}=e,{internalData:D}=t,{elemStore:B}=D,N=`${A||"main"}-header-`;B[`${N}wrapper`]=g,B[`${N}table`]=y,B[`${N}colgroup`]=C,B[`${N}list`]=b,B[`${N}xSpace`]=w,B[`${N}repair`]=S,x()})}),a.onUnmounted(()=>{const{fixedType:A}=e,{internalData:D}=t,{elemStore:B}=D,N=`${A||"main"}-header-`;B[`${N}wrapper`]=null,B[`${N}table`]=null,B[`${N}colgroup`]=null,B[`${N}list`]=null,B[`${N}xSpace`]=null,B[`${N}repair`]=null}),E}}),{renderer:OCt,renderEmptyElement:ICt}=Ze,L2="footer";function RCt(e,t,n){for(let r=0;r<e.length;r++){const{row:o,col:i,rowspan:l,colspan:s}=e[r];if(i>-1&&o>-1&&l&&s){if(o===t&&i===n)return{rowspan:l,colspan:s};if(t>=o&&t<o+l&&n>=i&&n<i+s)return{rowspan:0,colspan:0}}}}const YW=a.defineComponent({name:"VxeTableFooter",props:{footerTableData:{type:Array,default:()=>[]},tableColumn:{type:Array,default:()=>[]},fixedColumn:{type:Array,default:()=>[]},fixedType:{type:String,default:null}},setup(e){const t=a.inject("$xeTable",{}),{xID:n,props:r,reactData:o,internalData:i}=t,{refTableHeader:l,refTableBody:s,refScrollXHandleElem:u}=t.getRefMaps(),{computeTooltipOpts:c,computeColumnOpts:d,computeColumnDragOpts:f}=t.getComputeMaps(),p=a.ref(),h=a.ref(),v=a.ref(),m=a.ref(),g=a.ref(),y=S=>{const{inVirtualScroll:x,inBodyScroll:k}=i;if(x||k)return;const{fixedType:_}=e,T=l.value,E=s.value,A=T?T.$el:null,D=p.value;if(!D)return;const B=E?E.$el:null;if(!B)return;const N=u.value,M=D.scrollLeft,O=!0,P=!1,R=B.scrollTop;i.inFooterScroll=!0,ca(N,M),ca(A,M),ca(B,M),t.triggerScrollXEvent(S),t.handleScrollEvent(S,P,O,R,M,{type:L2,fixed:_})},C=(S,x,k,_,T)=>{const{fixedType:E}=e,{footerCellClassName:A,footerCellStyle:D,footerAlign:B,footerSpanMethod:N,align:M,columnKey:O,showFooterOverflow:P}=r,{scrollXLoad:R,scrollYLoad:L,overflowX:z,scrollbarWidth:F,currentColumn:G,mergeFooterList:$}=o,W=c.value,j=d.value;return S.map((J,Z)=>{const{type:X,showFooterOverflow:ae,footerAlign:ie,align:K,footerClassName:ne,editRender:pe,cellRender:le}=J,Ce=pe||le,be=Ce?OCt.get(Ce.name):null,Ee=W.showAll,Te=J.children&&J.children.length,De=E?J.fixed!==E&&!Te:J.fixed&&z,Fe=U.eqNull(ae)?P:ae,Je=ie||(be?be.tableFooterCellAlign:"")||B||K||(be?be.tableCellAlign:"")||M;let Ve=Fe==="ellipsis";const Ke=Fe==="title",ye=Fe===!0||Fe==="tooltip";let Me=Ke||ye||Ve;const Ye={colid:J.id},lt={},vt=t.getColumnIndex(J),ft=t.getVTColumnIndex(J),pt=ft,_e={$table:t,$grid:t.xegrid,row:k,rowIndex:T,_rowIndex:T,$rowIndex:_,column:J,columnIndex:vt,$columnIndex:Z,_columnIndex:ft,itemIndex:pt,items:k,fixed:E,type:L2,data:x};if(R&&!Me&&(Ve=Me=!0),(Ke||ye||Ee)&&(lt.onMouseenter=tt=>{Ke?SP(tt.currentTarget,J):(ye||Ee)&&t.triggerFooterTooltipEvent(tt,_e)}),(ye||Ee)&&(lt.onMouseleave=tt=>{(ye||Ee)&&t.handleTargetLeaveEvent(tt)}),lt.onClick=tt=>{t.dispatchEvent("footer-cell-click",Object.assign({cell:tt.currentTarget},_e),tt)},lt.onDblclick=tt=>{t.dispatchEvent("footer-cell-dblclick",Object.assign({cell:tt.currentTarget},_e),tt)},$.length){const tt=RCt($,T,ft);if(tt){const{rowspan:ue,colspan:se}=tt;if(!ue||!se)return null;ue>1&&(Ye.rowspan=ue),se>1&&(Ye.colspan=se)}}else if(N){const{rowspan:tt=1,colspan:ue=1}=N(_e)||{};if(!tt||!ue)return null;tt>1&&(Ye.rowspan=tt),ue>1&&(Ye.colspan=ue)}const at=!J.resizeWidth&&(J.minWidth==="auto"||J.width==="auto");return a.h("td",Object.assign(Object.assign(Object.assign(Object.assign({class:["vxe-footer--column",J.id,{[`col--${Je}`]:Je,[`col--${X}`]:X,"col--last":Z===S.length-1,"fixed--width":!at,"fixed--hidden":De,"col--ellipsis":Me,"col--current":G===J},Gc(ne,_e),Gc(A,_e)]},Ye),{style:D?U.isFunction(D)?D(_e):D:null}),lt),{key:O||R||L||j.useKey||j.drag?J.id:Z}),[a.h("div",{class:["vxe-cell",{"c--title":Ke,"c--tooltip":ye,"c--ellipsis":Ve}]},J.renderFooter(_e))])}).concat(F?[a.h("td",{key:`gr${_}`,class:"vxe-footer--gutter col--gutter"})]:[])},b=S=>{const{fixedType:x,footerTableData:k}=e,{footerRowClassName:_,footerRowStyle:T}=r,{isDragColMove:E}=o,A=d.value,D=f.value;return k.map((B,N)=>{const M=N,O={$table:t,row:B,_rowIndex:M,$rowIndex:N,fixed:x,type:L2};return A.drag&&D.animation?a.h(a.TransitionGroup,{key:N,name:`vxe-header--col-list${E?"":"-disabled"}`,tag:"tr",class:["vxe-footer--row",_?U.isFunction(_)?_(O):_:""],style:T?U.isFunction(T)?T(O):T:null},{default:()=>C(S,k,B,N,M)}):a.h("tr",{key:N,class:["vxe-footer--row",_?U.isFunction(_)?_(O):_:""],style:T?U.isFunction(T)?T(O):T:null},C(S,k,B,N,M))})},w=()=>{const{fixedType:S,fixedColumn:x,tableColumn:k}=e,{spanMethod:_,footerSpanMethod:T,showFooterOverflow:E}=r,{visibleColumn:A,fullColumnIdData:D}=i,{isGroup:B,scrollXLoad:N,scrollYLoad:M,scrollbarWidth:O,dragCol:P}=o;let R=k;if(S&&(R=A,(N||M||E)&&(_||T?R=A:R=x||[])),!S&&!B&&N&&P&&R.length>2){const z=D[P.id];if(z){const F=z._index,G=R[0],$=R[R.length-1],W=D[G.id],j=D[$.id];if(W&&j){const J=W._index,Z=j._index;F<J?R=[P].concat(R):F>Z&&(R=R.concat([P]))}}}const L={};return S||(L.onScroll=y),a.h("div",Object.assign({ref:p,class:["vxe-table--footer-wrapper",S?`fixed-${S}--wrapper`:"body--wrapper"],xid:n},L),[S?ICt(t):a.h("div",{ref:g,class:"vxe-body--x-space"}),a.h("table",{ref:h,class:"vxe-table--footer",xid:n,cellspacing:0,cellpadding:0,border:0},[a.h("colgroup",{ref:v},R.map((z,F)=>a.h("col",{name:z.id,key:F})).concat(O?[a.h("col",{name:"col_gutter"})]:[])),a.h("tfoot",{ref:m},b(R))])])};return a.onMounted(()=>{a.nextTick(()=>{const{fixedType:S}=e,{elemStore:x}=i,k=`${S||"main"}-footer-`;x[`${k}wrapper`]=p,x[`${k}table`]=h,x[`${k}colgroup`]=v,x[`${k}list`]=m,x[`${k}xSpace`]=g})}),a.onUnmounted(()=>{const{fixedType:S}=e,{elemStore:x}=i,k=`${S||"main"}-footer-`;x[`${k}wrapper`]=null,x[`${k}table`]=null,x[`${k}colgroup`]=null,x[`${k}list`]=null,x[`${k}xSpace`]=null}),w}}),{getConfig:Mr}=Ze,xP={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:()=>Mr().table.minHeight},maxHeight:[Number,String],resizable:{type:Boolean,default:()=>Mr().table.resizable},stripe:{type:Boolean,default:()=>Mr().table.stripe},border:{type:[Boolean,String],default:()=>Mr().table.border},padding:{type:Boolean,default:()=>Mr().table.padding},round:{type:Boolean,default:()=>Mr().table.round},size:{type:String,default:()=>Mr().table.size||Mr().size},fit:{type:Boolean,default:()=>Mr().table.fit},loading:Boolean,align:{type:String,default:()=>Mr().table.align},headerAlign:{type:String,default:()=>Mr().table.headerAlign},footerAlign:{type:String,default:()=>Mr().table.footerAlign},showHeader:{type:Boolean,default:()=>Mr().table.showHeader},highlightCurrentRow:{type:Boolean,default:()=>Mr().table.highlightCurrentRow},highlightHoverRow:{type:Boolean,default:()=>Mr().table.highlightHoverRow},highlightCurrentColumn:{type:Boolean,default:()=>Mr().table.highlightCurrentColumn},highlightHoverColumn:{type:Boolean,default:()=>Mr().table.highlightHoverColumn},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:()=>Mr().table.showOverflow},showHeaderOverflow:{type:[Boolean,String],default:()=>Mr().table.showHeaderOverflow},showFooterOverflow:{type:[Boolean,String],default:()=>Mr().table.showFooterOverflow},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:()=>Mr().table.rowId},zIndex:Number,emptyText:{type:String,default:()=>Mr().table.emptyText},keepSource:{type:Boolean,default:()=>Mr().table.keepSource},autoResize:{type:Boolean,default:()=>Mr().table.autoResize},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,cellConfig:Object,rowConfig:Object,dragConfig:Object,rowDragConfig:Object,columnDragConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:Object,importConfig:Object,printConfig:Object,expandConfig:Object,treeConfig:Object,menuConfig:Object,mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:Object,validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:Object,customConfig:Object,scrollX:Object,scrollY:Object,animat:{type:Boolean,default:()=>Mr().table.animat},delayHover:{type:Number,default:()=>Mr().table.delayHover},params:Object},kP=["update:data","keydown-start","keydown","keydown-end","paste","copy","cut","current-change","radio-change","checkbox-change","checkbox-all","checkbox-range-start","checkbox-range-change","checkbox-range-end","checkbox-range-select","cell-click","cell-dblclick","cell-menu","cell-mouseenter","cell-mouseleave","cell-selected","cell-delete-value","cell-backspace-value","header-cell-click","header-cell-dblclick","header-cell-menu","footer-cell-click","footer-cell-dblclick","footer-cell-menu","clear-merge","sort-change","clear-sort","filter-change","filter-visible","clear-filter","resizable-change","toggle-row-expand","toggle-tree-expand","menu-click","edit-closed","row-dragstart","row-dragover","row-dragend","column-dragstart","column-dragover","column-dragend","enter-append-row","edit-actived","edit-activated","edit-disabled","valid-error","scroll","scroll-boundary","custom","change-fnr","open-fnr","show-fnr","hide-fnr","fnr-change","fnr-find","fnr-find-all","fnr-replace","fnr-replace-all","cell-area-copy","cell-area-cut","cell-area-paste","cell-area-merge","clear-cell-area-selection","clear-cell-area-merge","header-cell-area-selection","cell-area-selection-invalid","cell-area-selection-start","cell-area-selection-drag","cell-area-selection-end","cell-area-extension-start","cell-area-extension-drag","cell-area-extension-end","cell-area-selection-all-start","cell-area-selection-all-end","cell-area-arrows-start","cell-area-arrows-end","active-cell-change-start","active-cell-change-end"],{getI18n:dr,getIcon:ua,renderEmptyElement:p1}=Ze,LCt=a.defineComponent({name:"TableCustomPanel",props:{customStore:{type:Object,default:()=>({})}},setup(e){const t=Ze.getComponent("VxeModal"),n=Ze.getComponent("VxeDrawer"),r=Ze.getComponent("VxeButton"),o=Ze.getComponent("VxeNumberInput"),i=Ze.getComponent("VxeRadioGroup"),l=a.inject("$xeTable",{}),{props:s,reactData:u,internalData:c}=l,{computeCustomOpts:d,computeColumnDragOpts:f,computeColumnOpts:p,computeIsMaxFixedColumn:h,computeResizableOpts:v}=l.getComputeMaps(),m=a.ref(),g=a.ref(),y=a.ref(),C=a.ref(),b=a.ref();let w,S=!1,x;const k=ie=>{const{customStore:K}=e;K.activeWrapper=!0,l.customOpenEvent(ie)},_=ie=>{const{customStore:K}=e;K.activeWrapper=!1,setTimeout(()=>{!K.activeBtn&&!K.activeWrapper&&l.customCloseEvent(ie)},300)},T=({$event:ie})=>{u.isCustomStatus=!0,l.saveCustom(),l.closeCustom(),l.emitCustomEvent("confirm",ie)},E=({$event:ie})=>{l.closeCustom(),l.emitCustomEvent("close",ie)},A=({$event:ie})=>{l.cancelCustom(),l.closeCustom(),l.emitCustomEvent("cancel",ie)},D=ie=>{l.resetCustom(!0),l.closeCustom(),l.emitCustomEvent("reset",ie)},B=({$event:ie})=>{Ze.modal?Ze.modal.confirm({content:dr("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(K=>{K==="confirm"&&D(ie)}):D(ie)},N=ie=>{const{customColumnList:K}=u,ne=U.findTree(K,pe=>pe===ie);if(ne&&ne.parent){const{parent:pe}=ne;pe.children&&pe.children.length&&(pe.renderVisible=pe.children.every(le=>le.renderVisible),pe.halfVisible=!pe.renderVisible&&pe.children.some(le=>le.renderVisible||le.halfVisible),N(pe))}},M=ie=>{const K=!ie.renderVisible;d.value.immediate?(U.eachTree([ie],pe=>{pe.visible=K,pe.renderVisible=K,pe.halfVisible=!1}),u.isCustomStatus=!0,l.handleCustom(),l.saveCustomStore("update:visible")):U.eachTree([ie],pe=>{pe.renderVisible=K,pe.halfVisible=!1}),N(ie),l.checkCustomStatus()},O=ie=>{d.value.immediate&&ie.renderResizeWidth!==ie.renderWidth&&(ie.resizeWidth=ie.renderResizeWidth,ie.renderWidth=ie.renderResizeWidth,u.isCustomStatus=!0,l.handleCustom(),l.saveCustomStore("update:width"))},P=(ie,K)=>{const ne=h.value;d.value.immediate?(ie.renderFixed===K?U.eachTree([ie],le=>{le.fixed="",le.renderFixed=""}):(!ne||ie.renderFixed)&&U.eachTree([ie],le=>{le.fixed=K,le.renderFixed=K}),u.isCustomStatus=!0,l.handleCustom(),l.saveCustomStore("update:fixed")):ie.renderFixed===K?U.eachTree([ie],le=>{le.renderFixed=""}):(!ne||ie.renderFixed)&&U.eachTree([ie],le=>{le.renderFixed=K})},R=()=>{l.toggleCustomAllCheckbox()},L=(ie,K,ne,pe)=>{const le=g.value;if(!le)return;const Ce=le.getBoundingClientRect();if(K){const Ee=y.value;if(Ee)if(ne){const Te=K.getBoundingClientRect();Ee.style.display="block",Ee.style.top=`${Math.max(1,Te.y+le.scrollTop-Ce.y)}px`,Ee.style.height=`${Te.height}px`,Ee.style.width=`${Te.width}px`,Ee.setAttribute("drag-pos",pe),Ee.setAttribute("drag-to-child",S?"y":"n")}else Ee.style.display=""}const be=C.value;be&&(be.style.display="block",be.style.top=`${Math.min(le.clientHeight+le.scrollTop-be.clientHeight,ie.clientY+le.scrollTop-Ce.y)}px`,be.style.left=`${Math.min(le.clientWidth+le.scrollLeft-be.clientWidth,ie.clientX+le.scrollLeft-Ce.x)}px`,be.setAttribute("drag-status",ne?S?"sub":"normal":"disabled"))},z=()=>{const ie=C.value,K=y.value;ie&&(ie.style.display=""),K&&(K.style.display="")},F=ie=>{const le=ie.currentTarget.parentElement.parentElement.parentElement,Ce=le.getAttribute("colid"),be=l.getColumnById(Ce);le.draggable=!0,b.value=be,Is(le,"active--drag-origin")},G=ie=>{const le=ie.currentTarget.parentElement.parentElement.parentElement;z(),le.draggable=!1,b.value=null,Ei(le,"active--drag-origin")},$=ie=>{ie.dataTransfer&&ie.dataTransfer.setDragImage(fB(),0,0)},W=ie=>{const{mouseConfig:K}=s,{customColumnList:ne}=u,{collectColumn:pe}=c,le=d.value,{immediate:Ce}=le,be=ie.currentTarget,Ee=b.value,Te=f.value,{isCrossDrag:De,isSelfToChildDrag:Fe,isToChildDrag:Je,dragEndMethod:Ve}=Te,Ke=x==="bottom"?1:0;if(w&&Ee&&w!==Ee){const ye=Ee,Me=w;Promise.resolve(Ve?Ve({oldColumn:ye,newColumn:Me,dragPos:x,dragToChild:!!S,offsetIndex:Ke}):!0).then(Ye=>{if(!Ye)return;let lt=-1,vt=-1;const ft={};U.eachTree([ye],_e=>{ft[_e.id]=_e});let pt=!1;if(Ce){if(ye.parentId&&Me.parentId){if(!De)return;if(ft[Me.id]&&(pt=!0,!(De&&Fe))){Ze.modal&&Ze.modal.message({status:"error",content:dr("vxe.error.treeDragChild")});return}}else if(ye.parentId){if(!De)return}else if(Me.parentId){if(!De)return;if(ft[Me.id]&&(pt=!0,!(De&&Fe))){Ze.modal&&Ze.modal.message({status:"error",content:dr("vxe.error.treeDragChild")});return}}const _e=U.findTree(pe,tt=>tt.id===ye.id);if(pt&&De&&Fe){if(_e){const{items:tt,index:ue}=_e,se=ye.children||[];se.forEach(ee=>{ee.parentId=ye.parentId}),tt.splice(ue,1,...se),ye.children=[]}}else if(_e){const{items:tt,index:ue,parent:se}=_e;tt.splice(ue,1),se||(lt=ue)}const at=U.findTree(pe,tt=>tt.id===Me.id);if(at){const{items:tt,index:ue,parent:se}=at;De&&Je&&S?(ye.parentId=Me.id,Me.children=(Me.children||[]).concat([ye])):(ye.parentId=Me.parentId,tt.splice(ue+Ke,0,ye)),se||(vt=ue)}U.eachTree(pe,(tt,ue,se,ee,he)=>{if(!he){const ze=ue+1;tt.renderSortNumber=ze}})}else lt=U.findIndexOf(ne,_e=>_e.id===ye.id),ne.splice(lt,1),vt=U.findIndexOf(ne,_e=>_e.id===Me.id),ne.splice(vt+Ke,0,ye);u.isDragColMove=!0,K&&(l.clearSelected&&l.clearSelected(),l.clearCellAreas&&(l.clearCellAreas(),l.clearCopyCellArea())),l.dispatchEvent("column-dragend",{oldColumn:ye,newColumn:Me,dragPos:x,offsetIndex:Ke,_index:{newIndex:vt,oldIndex:lt}},ie),Ce&&(u.customColumnList=pe.slice(0),l.handleColDragSwapColumn())}).catch(()=>{})}z(),b.value=null,be.draggable=!1,be.removeAttribute("drag-pos"),Ei(be,"active--drag-target"),Ei(be,"active--drag-origin")},j=ie=>{const K=d.value,{immediate:ne}=K,pe=f.value,{isCrossDrag:le,isToChildDrag:Ce}=pe,be=ie.currentTarget,Ee=ie.ctrlKey,Te=be.getAttribute("colid"),De=l.getColumnById(Te),Fe=b.value;if(De&&(le||De.level===1)){ie.preventDefault();const Ve=ie.clientY-be.getBoundingClientRect().y<be.clientHeight/2?"top":"bottom";if(Fe&&Fe.id===De.id||!le&&De.level>1||!ne&&De.level>1||De.renderFixed){L(ie,be,!1,Ve);return}S=!!(le&&Ce&&Ee&&ne),w=De,x=Ve,L(ie,be,!0,Ve)}},J=()=>{const ie=b.value,K=f.value;return a.h("div",{},[a.h("div",{ref:y,class:["vxe-table-custom-popup--drag-line",{"is--guides":K.showGuidesStatus}]}),a.h("div",{ref:C,class:"vxe-table-custom-popup--drag-tip"},[a.h("div",{class:"vxe-table-custom-popup--drag-tip-wrapper"},[a.h("div",{class:"vxe-table-custom-popup--drag-tip-status"},[a.h("span",{class:["vxe-table-custom-popup--drag-tip-normal-status",ua().TABLE_DRAG_STATUS_ROW]}),a.h("span",{class:["vxe-table-custom-popup--drag-tip-sub-status",ua().TABLE_DRAG_STATUS_SUB_ROW]}),a.h("span",{class:["vxe-table-custom-popup--drag-tip-disabled-status",ua().TABLE_DRAG_DISABLED]})]),a.h("div",{class:"vxe-table-custom-popup--drag-tip-content"},dr("vxe.custom.cstmDragTarget",[ie&&ie.type!=="html"?ie.getTitle():""]))])])])},Z=()=>{const{customStore:ie}=e,{isCustomStatus:K,customColumnList:ne}=u,pe=d.value,{immediate:le}=pe,Ce=f.value,{maxHeight:be}=ie,{checkMethod:Ee,visibleMethod:Te,allowVisible:De,allowSort:Fe,allowFixed:Je,trigger:Ve,placement:Ke}=pe,ye=h.value,{isCrossDrag:Me}=Ce,Ye=pe.slots||{},lt=Ye.header,vt=Ye.top,ft=Ye.bottom,pt=Ye.default,_e=Ye.footer,at=[],tt={},ue=ie.isAll,se=ie.isIndeterminate;Ve==="hover"&&(tt.onMouseenter=k,tt.onMouseleave=_);const ee={$table:l,$grid:l.xegrid,columns:ne,isAllChecked:ue,isAllIndeterminate:se,isCustomStatus:K};return U.eachTree(ne,(he,ze,Xe,st,Mt)=>{if(Te?Te({column:he}):!0){const ke=he.renderVisible,Se=he.halfVisible,$e=he.children&&he.children.length,ve=fa(he.getTitle(),1),we=Ee?!Ee({column:he}):!1,He=!ke;at.push(a.h("li",{key:he.id,colid:he.id,class:["vxe-table-custom--option",`level--${he.level}`,{"is--hidden":we||He,"is--group":$e}],onDragstart:$,onDragend:W,onDragover:j},[De?a.h("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":ke,"is--indeterminate":Se,"is--disabled":we}],title:dr("vxe.custom.setting.colVisible"),onClick:()=>{we||M(he)}},[a.h("span",{class:["vxe-checkbox--icon",Se?ua().TABLE_CHECKBOX_INDETERMINATE:ke?ua().TABLE_CHECKBOX_CHECKED:ua().TABLE_CHECKBOX_UNCHECKED]})]):a.createCommentVNode(),a.h("div",{class:"vxe-table-custom--name-option"},[Fe&&(Me&&le||he.level===1)?a.h("div",{class:"vxe-table-custom--sort-option"},[a.h("span",Object.assign({class:["vxe-table-custom--sort-btn",{"is--disabled":we||He||he.renderFixed}],title:dr("vxe.custom.setting.sortHelpTip")},we||He||he.renderFixed?{}:{onMousedown:F,onMouseup:G}),[a.h("i",{class:ua().TABLE_CUSTOM_SORT})])]):a.createCommentVNode(),he.type==="html"?a.h("div",{key:"1",class:"vxe-table-custom--checkbox-label",innerHTML:ve}):a.h("div",{key:"0",class:"vxe-table-custom--checkbox-label"},ve)]),!Mt&&Je?a.h("div",{class:"vxe-table-custom--fixed-option"},[r?a.h(r,{mode:"text",icon:he.renderFixed==="left"?ua().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:ua().TOOLBAR_TOOLS_FIXED_LEFT,status:he.renderFixed==="left"?"primary":"",disabled:we||He||ye&&!he.renderFixed,title:dr(he.renderFixed==="left"?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft"),onClick:()=>{P(he,"left")}}):a.createCommentVNode(),r?a.h(r,{mode:"text",icon:he.renderFixed==="right"?ua().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:ua().TOOLBAR_TOOLS_FIXED_RIGHT,status:he.renderFixed==="right"?"primary":"",disabled:we||He||ye&&!he.renderFixed,title:dr(he.renderFixed==="right"?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight"),onClick:()=>{P(he,"right")}}):a.createCommentVNode()]):a.createCommentVNode()]))}}),a.h("div",{ref:m,key:"simple",class:["vxe-table-custom-wrapper",`placement--${Ke}`,{"is--active":ie.visible}],style:be&&!["left","right"].includes(Ke)?{maxHeight:`${be}px`}:{}},ie.visible?[a.h("div",{class:"vxe-table-custom--header"},lt?l.callSlot(lt,ee):[a.h("ul",{class:"vxe-table-custom--panel-list"},[a.h("li",{class:"vxe-table-custom--option"},[De?a.h("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":ue,"is--indeterminate":se}],title:dr("vxe.table.allTitle"),onClick:R},[a.h("span",{class:["vxe-checkbox--icon",se?ua().TABLE_CHECKBOX_INDETERMINATE:ue?ua().TABLE_CHECKBOX_CHECKED:ua().TABLE_CHECKBOX_UNCHECKED]}),a.h("span",{class:"vxe-checkbox--label"},dr("vxe.toolbar.customAll"))]):a.h("span",{class:"vxe-checkbox--label"},dr("vxe.table.customTitle"))])])]),a.h("div",{ref:g,class:"vxe-table-custom--body"},[vt?a.h("div",{class:"vxe-table-custom--panel-top"},l.callSlot(vt,ee)):p1(l),pt?a.h("div",{class:"vxe-table-custom--panel-body"},l.callSlot(pt,ee)):a.h(a.TransitionGroup,Object.assign({class:"vxe-table-custom--panel-list",name:"vxe-table-custom--list",tag:"ul"},tt),{default:()=>at}),ft?a.h("div",{class:"vxe-table-custom--panel-bottom"},l.callSlot(ft,ee)):p1(l),J()]),pe.showFooter?a.h("div",{class:"vxe-table-custom--footer"},_e?l.callSlot(_e,ee):[a.h("div",{class:"vxe-table-custom--footer-buttons"},[r?a.h(r,{mode:"text",content:pe.resetButtonText||dr("vxe.table.customRestore"),disabled:!K,onClick:B}):a.createCommentVNode(),le?r?a.h(r,{mode:"text",content:pe.closeButtonText||dr("vxe.table.customClose"),onClick:E}):a.createCommentVNode():r?a.h(r,{mode:"text",content:pe.cancelButtonText||dr("vxe.table.customCancel"),onClick:A}):a.createCommentVNode(),le?a.createCommentVNode():r?a.h(r,{mode:"text",status:"primary",content:pe.confirmButtonText||dr("vxe.table.customConfirm"),onClick:T}):a.createCommentVNode()])]):null]:[])},X=()=>{const{customStore:ie}=e,{resizable:K}=s,{isCustomStatus:ne,customColumnList:pe}=u,le=d.value,{immediate:Ce}=le,be=f.value,{mode:Ee,modalOptions:Te,drawerOptions:De,allowVisible:Fe,allowSort:Je,allowFixed:Ve,allowResizable:Ke,checkMethod:ye,visibleMethod:Me}=le,Ye=p.value,{maxFixedSize:lt}=Ye,vt=v.value,{minWidth:ft,maxWidth:pt}=vt,_e=Object.assign({},Te),at=Object.assign({},De),tt=h.value,{isCrossDrag:ue}=be,se=le.slots||{},ee=se.header,he=se.top,ze=se.bottom,Xe=se.default,st=se.footer,Mt=[],Ft=ie.isAll,ke=ie.isIndeterminate,Se={$table:l,$grid:l.xegrid,columns:pe,isAllChecked:Ft,isAllIndeterminate:ke,isCustomStatus:ne};U.eachTree(pe,(ve,we,He,We,et)=>{if(Me?Me({column:ve}):!0){let Xt=0,$t=0;if(Ke){const te={$table:l,column:ve,columnIndex:we,$columnIndex:we,$rowIndex:-1};ft&&(Xt=U.toNumber(U.isFunction(ft)?ft(te):ft)),pt&&($t=U.toNumber(U.isFunction(pt)?pt(te):pt))}const En=ve.renderVisible,Ut=ve.halfVisible,or=fa(ve.getTitle(),1),Zn=ve.children&&ve.children.length,Pe=ye?!ye({column:ve}):!1,yt=!En;Mt.push(a.h("tr",{key:ve.id,colid:ve.id,class:[`vxe-table-custom-popup--row level--${ve.level}`,{"is--group":Zn}],onDragstart:$,onDragend:W,onDragover:j},[Fe?a.h("td",{class:"vxe-table-custom-popup--column-item col--visible"},[a.h("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":En,"is--indeterminate":Ut,"is--disabled":Pe}],title:dr("vxe.custom.setting.colVisible"),onClick:()=>{Pe||M(ve)}},[a.h("span",{class:["vxe-checkbox--icon",Ut?ua().TABLE_CHECKBOX_INDETERMINATE:En?ua().TABLE_CHECKBOX_CHECKED:ua().TABLE_CHECKBOX_UNCHECKED]})])]):a.createCommentVNode(),a.h("td",{class:"vxe-table-custom-popup--column-item col--name"},[a.h("div",{class:"vxe-table-custom-popup--name"},[Je?ue&&Ce||ve.level===1?a.h("div",Object.assign({class:["vxe-table-custom-popup--column-sort-btn",{"is--disabled":Pe||yt||ve.renderFixed}],title:dr("vxe.custom.setting.sortHelpTip")},Pe||yt||ve.renderFixed?{}:{onMousedown:F,onMouseup:G}),[a.h("i",{class:ua().TABLE_CUSTOM_SORT})]):a.h("div",{class:"vxe-table-custom-popup--column-sort-placeholder"}):a.createCommentVNode(),ve.type==="html"?a.h("div",{key:"1",class:"vxe-table-custom-popup--title",innerHTML:or}):a.h("div",{key:"0",class:"vxe-table-custom-popup--title",title:or},or)])]),Ke?a.h("td",{class:"vxe-table-custom-popup--column-item col--resizable"},[ve.children&&ve.children.length||!(U.isBoolean(ve.resizable)?ve.resizable:Ye.resizable||K)?a.h("span","-"):o?a.h(o,{type:"integer",immediate:!1,disabled:Pe||yt,modelValue:ve.renderResizeWidth,min:Xt||void 0,max:$t||void 0,"onUpdate:modelValue"(te){const mn=Math.max(0,Number(te));ve.renderResizeWidth=mn},onChange(){O(ve)}}):a.createCommentVNode()]):a.createCommentVNode(),Ve?a.h("td",{class:"vxe-table-custom-popup--column-item col--fixed"},[et?a.h("span","-"):i?a.h(i,{modelValue:ve.renderFixed||"",type:"button",size:"mini",disabled:Pe||yt,options:[{label:dr("vxe.custom.setting.fixedLeft"),value:"left",disabled:Pe||yt||tt},{label:dr("vxe.custom.setting.fixedUnset"),value:"",disabled:Pe||yt},{label:dr("vxe.custom.setting.fixedRight"),value:"right",disabled:Pe||yt||tt}],"onUpdate:modelValue"(te){P(ve,te)}}):a.createCommentVNode()]):a.createCommentVNode()]))}});const $e={default:()=>Xe?l.callSlot(Xe,Se):a.h("div",{ref:g,class:"vxe-table-custom-popup--body"},[he?a.h("div",{class:"vxe-table-custom-popup--table-top"},l.callSlot(he,Se)):p1(l),a.h("div",{class:"vxe-table-custom-popup--table-wrapper"},[a.h("table",{},[a.h("colgroup",{},[Fe?a.h("col",{class:"vxe-table-custom-popup--table-col-seq"}):a.createCommentVNode(),a.h("col",{class:"vxe-table-custom-popup--table-col-title"}),Ke?a.h("col",{class:"vxe-table-custom-popup--table-col-width"}):a.createCommentVNode(),Ve?a.h("col",{class:"vxe-table-custom-popup--table-col-fixed"}):a.createCommentVNode()]),a.h("thead",{},[a.h("tr",{},[Fe?a.h("th",{},[a.h("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":Ft,"is--indeterminate":ke}],title:dr("vxe.table.allTitle"),onClick:R},[a.h("span",{class:["vxe-checkbox--icon",ke?ua().TABLE_CHECKBOX_INDETERMINATE:Ft?ua().TABLE_CHECKBOX_CHECKED:ua().TABLE_CHECKBOX_UNCHECKED]}),a.h("span",{class:"vxe-checkbox--label"},dr("vxe.toolbar.customAll"))])]):a.createCommentVNode(),a.h("th",{},dr("vxe.custom.setting.colTitle")),Ke?a.h("th",{},dr("vxe.custom.setting.colResizable")):a.createCommentVNode(),Ve?a.h("th",{},dr(`vxe.custom.setting.${lt?"colFixedMax":"colFixed"}`,[lt])):a.createCommentVNode()])]),a.h(a.TransitionGroup,{class:"vxe-table-custom--panel-list",tag:"tbody",name:"vxe-table-custom--list"},{default:()=>Mt})])]),ze?a.h("div",{class:"vxe-table-custom-popup--table-bottom"},l.callSlot(ze,Se)):p1(l),J()]),footer:()=>st?l.callSlot(st,Se):a.h("div",{class:"vxe-table-custom-popup--footer"},[r?a.h(r,{content:le.resetButtonText||dr("vxe.custom.cstmRestore"),disabled:!ne,onClick:B}):a.createCommentVNode(),Ce?r?a.h(r,{content:le.closeButtonText||dr("vxe.table.customClose"),onClick:E}):a.createCommentVNode():r?a.h(r,{content:le.cancelButtonText||dr("vxe.table.customCancel"),onClick:A}):a.createCommentVNode(),Ce?a.createCommentVNode():r?a.h(r,{status:"primary",content:le.confirmButtonText||dr("vxe.custom.cstmConfirm"),onClick:T}):a.createCommentVNode()])};return ee&&($e.header=()=>l.callSlot(ee,Se)),Ee==="drawer"?n?a.h(n,{key:"drawer",className:["vxe-table-custom-drawer-wrapper","vxe-table--ignore-clear",at.className||""].join(" "),modelValue:ie.visible,title:at.title||dr("vxe.custom.cstmTitle"),width:at.width||Math.min(880,Math.floor(document.documentElement.clientWidth*.6)),position:at.position,resize:!!at.resize,escClosable:!!at.escClosable,maskClosable:!!at.maskClosable,destroyOnClose:!0,showFooter:!0,"onUpdate:modelValue"(ve){ie.visible=ve}},$e):a.createCommentVNode():t?a.h(t,{key:"modal",className:["vxe-table-custom-modal-wrapper","vxe-table--ignore-clear",_e.className||""].join(" "),modelValue:ie.visible,title:_e.title||dr("vxe.custom.cstmTitle"),width:_e.width||Math.min(880,document.documentElement.clientWidth),minWidth:_e.minWidth||700,height:_e.height||Math.min(680,document.documentElement.clientHeight),minHeight:_e.minHeight||400,showZoom:_e.showZoom,showMaximize:_e.showMaximize,showMinimize:_e.showMinimize,mask:_e.mask,lockView:_e.lockView,resize:_e.resize,escClosable:!!_e.escClosable,maskClosable:!!_e.maskClosable,destroyOnClose:!0,showFooter:!0,"onUpdate:modelValue"(ve){ie.visible=ve}},$e):a.createCommentVNode()};return()=>{const ie=d.value;return["modal","drawer","popup"].includes(`${ie.mode}`)?X():Z()}}}),{getI18n:h1,getIcon:fy,renderer:jW}=Ze,PCt=a.defineComponent({name:"VxeTableFilterPanel",props:{filterStore:Object},setup(e){const t=a.inject("$xeTable",{}),{reactData:n,internalData:r,getComputeMaps:o}=t,{computeFilterOpts:i}=o(),l=a.computed(()=>{const{filterStore:C}=e;return C&&C.options.some(b=>b.checked)}),s=(C,b)=>{const{filterStore:w}=e;w.options.forEach(S=>{S._checked=b,S.checked=b}),w.isAllSelected=b,w.isIndeterminate=!1},u=C=>{t.handleFilterConfirmFilter(C)},c=(C,b,w)=>{t.handleFilterChangeRadioOption(C,b,w)},d=C=>{t.handleFilterResetFilter(C)},f=(C,b,w)=>{t.handleFilterChangeMultipleOption(C,b,w)},p=(C,b,w)=>{t.handleFilterChangeOption(C,b,w)},h=(C,b)=>{const{filterStore:w}=e;w.multiple?s(C,b):d(C)},v={changeRadioOption:c,changeMultipleOption:f,changeAllOption:h,changeOption:p,confirmFilter:u,resetFilter:d},m=(C,b)=>{const{filterStore:w}=e,{column:S,multiple:x,maxHeight:k}=w,_=S?S.slots:null,T=_?_.filter:null,E=Object.assign({},r._currFilterParams,{$panel:v,$table:t}),A=b?b.renderTableFilter||b.renderFilter:null;if(T)return[a.h("div",{class:"vxe-table--filter-template"},t.callSlot(T,E))];if(A)return[a.h("div",{class:"vxe-table--filter-template"},Ya(A(C,E)))];const D=x?w.isAllSelected:!w.options.some(N=>N._checked),B=x&&w.isIndeterminate;return[a.h("ul",{class:"vxe-table--filter-header"},[a.h("li",{class:["vxe-table--filter-option",{"is--checked":D,"is--indeterminate":B}],title:h1(x?"vxe.table.allTitle":"vxe.table.allFilter"),onClick:N=>{h(N,!w.isAllSelected)}},(x?[a.h("span",{class:["vxe-checkbox--icon",B?fy().TABLE_CHECKBOX_INDETERMINATE:D?fy().TABLE_CHECKBOX_CHECKED:fy().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([a.h("span",{class:"vxe-checkbox--label"},h1("vxe.table.allFilter"))]))]),a.h("ul",{class:"vxe-table--filter-body",style:k?{maxHeight:`${k}px`}:{}},w.options.map(N=>{const M=N._checked;return a.h("li",{class:["vxe-table--filter-option",{"is--checked":N._checked}],title:N.label,onClick:O=>{p(O,!N._checked,N)}},(x?[a.h("span",{class:["vxe-checkbox--icon",M?fy().TABLE_CHECKBOX_CHECKED:fy().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([a.h("span",{class:"vxe-checkbox--label"},fa(N.label,1))]))}))]},g=()=>{const{filterStore:C}=e,{column:b,multiple:w}=C,S=i.value,x=l.value,{filterRender:k}=b,_=dn(k)?jW.get(k.name):null,T=!x&&!C.isAllSelected&&!C.isIndeterminate;return w&&(!_||!(_.showTableFilterFooter===!1||_.showFilterFooter===!1||_.isFooter===!1))?[a.h("div",{class:"vxe-table--filter-footer"},[a.h("button",{class:{"is--disabled":T},disabled:T,onClick:u},S.confirmButtonText||h1("vxe.table.confirmFilter")),a.h("button",{onClick:d},S.resetButtonText||h1("vxe.table.resetFilter"))])]:[]};return()=>{const{filterStore:C}=e,{initStore:b}=n,{visible:w,multiple:S,column:x}=C,k=x?x.filterRender:null,_=dn(k)?jW.get(k.name):null,T=_?_.tableFilterClassName||_.filterClassName:"",E=Object.assign({},r._currFilterParams,{$panel:v,$table:t}),A=i.value,{destroyOnClose:D}=A;return a.h("div",{class:["vxe-table--filter-wrapper","filter--prevent-default",Gc(T,E),{"is--animat":t.props.animat,"is--multiple":S,"is--active":w}],style:C.style},b.filter&&(!D||w)&&x?m(k,_).concat(g()):[])}}}),{getI18n:yf,getIcon:VCt}=Ze,FCt=a.defineComponent({name:"VxeTableImportPanel",props:{defaultOptions:Object,storeData:Object},setup(e){const t=Ze.getComponent("VxeModal"),n=Ze.getComponent("VxeButton"),r=Ze.getComponent("VxeSelect"),o=a.inject("$xeTable",{}),{computeImportOpts:i}=o.getComputeMaps(),l=a.reactive({loading:!1}),s=a.ref(),u=a.computed(()=>{const{storeData:y}=e;return`${y.filename}.${y.type}`}),c=a.computed(()=>{const{storeData:y}=e;return y.file&&y.type}),d=a.computed(()=>{const{storeData:y}=e,{type:C,typeList:b}=y;if(C){const w=U.find(b,S=>C===S.value);return w?w.label:"*.*"}return`*.${b.map(w=>w.value).join(", *.")}`}),f=()=>{const{storeData:y}=e;Object.assign(y,{filename:"",sheetName:"",type:""})},p=()=>{const{storeData:y,defaultOptions:C}=e;o.readFile(C).then(b=>{const{file:w}=b;Object.assign(y,moe(w),{file:w})}).catch(b=>b)},h=()=>{a.nextTick(()=>{const y=s.value;y&&y.focus()})},v=()=>{const{storeData:y}=e;y.visible=!1},m=()=>{const{storeData:y,defaultOptions:C}=e,b=i.value;l.loading=!0,o.importByFile(y.file,Object.assign({},b,C)).then(()=>{l.loading=!1,y.visible=!1}).catch(()=>{l.loading=!1})};return()=>{const{defaultOptions:y,storeData:C}=e,b=u.value,w=c.value,S=d.value,x=y.slots||{},k=x.top,_=x.bottom,T=x.default,E=x.footer;return t?a.h(t,{id:"VXE_IMPORT_MODAL",modelValue:C.visible,title:yf("vxe.import.impTitle"),className:"vxe-table-export-popup-wrapper",width:540,minWidth:360,minHeight:240,mask:!0,lockView:!0,showFooter:!0,escClosable:!0,maskClosable:!0,showMaximize:!0,resize:!0,loading:l.loading,"onUpdate:modelValue"(A){C.visible=A},onShow:h},{default:()=>{const A={$table:o,$grid:o.xegrid,options:y,params:y.params};return a.h("div",{class:"vxe-table-export--panel"},[k?a.h("div",{class:"vxe-table-export--panel-top"},o.callSlot(k,A)):a.createCommentVNode(),a.h("div",{class:"vxe-table-export--panel-body"},T?o.callSlot(T,A):[a.h("table",{class:"vxe-table-export--panel-table",cellspacing:0,cellpadding:0,border:0},[a.h("tbody",[a.h("tr",[a.h("td",yf("vxe.import.impFile")),a.h("td",[w?a.h("div",{class:"vxe-table-export--selected--file",title:b},[a.h("span",b),a.h("i",{class:VCt().INPUT_CLEAR,onClick:f})]):a.h("button",{ref:s,class:"vxe-table-export--select--file",onClick:p},yf("vxe.import.impSelect"))])]),a.h("tr",[a.h("td",yf("vxe.import.impType")),a.h("td",S)]),a.h("tr",[a.h("td",yf("vxe.import.impMode")),a.h("td",[r?a.h(r,{modelValue:y.mode,options:C.modeList,"onUpdate:modelValue"(D){y.mode=D}}):a.createCommentVNode()])])])])]),_?a.h("div",{class:"vxe-table-export--panel-bottom"},o.callSlot(_,A)):a.createCommentVNode()])},footer(){const A={$table:o,$grid:o.xegrid,options:y,params:y.params};return a.h("div",{class:"vxe-table-export--panel-footer"},E?o.callSlot(E,A):[a.h("div",{class:"vxe-table-export--panel-btns"},[n?a.h(n,{content:yf("vxe.import.impCancel"),onClick:v}):a.createCommentVNode(),n?a.h(n,{status:"primary",disabled:!w||l.loading,content:yf("vxe.import.impConfirm"),onClick:m}):a.createCommentVNode()])])}}):a.createCommentVNode()}}}),{getI18n:xr,getIcon:Hh}=Ze,zCt=a.defineComponent({name:"VxeTableExportPanel",props:{defaultOptions:Object,storeData:Object},setup(e){const t=Ze.getComponent("VxeModal"),n=Ze.getComponent("VxeButton"),r=Ze.getComponent("VxeSelect"),o=Ze.getComponent("VxeInput"),i=Ze.getComponent("VxeCheckbox"),l=a.inject("$xeTable",{}),{computeExportOpts:s,computePrintOpts:u}=l.getComputeMaps(),c=a.reactive({isAll:!1,isIndeterminate:!1,loading:!1}),d=a.ref(),f=a.ref(),p=a.ref(),h=a.computed(()=>{const{storeData:D}=e;return D.columns.every(B=>B.checked)}),v=a.computed(()=>{const{defaultOptions:D}=e;return["html","xml","xlsx","pdf"].indexOf(D.type)>-1}),m=a.computed(()=>{const{storeData:D,defaultOptions:B}=e;return!B.original&&B.mode==="current"&&(D.isPrint||["html","xlsx"].indexOf(B.type)>-1)}),g=a.computed(()=>{const{defaultOptions:D}=e;return!D.original&&["xlsx"].indexOf(D.type)>-1}),y=D=>{const{storeData:B}=e,N=U.findTree(B.columns,M=>M===D);if(N&&N.parent){const{parent:M}=N;M.children&&M.children.length&&(M.checked=M.children.every(O=>O.checked),M.halfChecked=!M.checked&&M.children.some(O=>O.checked||O.halfChecked),y(M))}},C=()=>{const{storeData:D}=e,B=D.columns;c.isAll=B.every(N=>N.disabled||N.checked),c.isIndeterminate=!c.isAll&&B.some(N=>!N.disabled&&(N.checked||N.halfChecked))},b=D=>{const B=!D.checked;U.eachTree([D],N=>{N.checked=B,N.halfChecked=!1}),y(D),C()},w=()=>{const{storeData:D}=e,B=!c.isAll;U.eachTree(D.columns,N=>{N.disabled||(N.checked=B,N.halfChecked=!1)}),c.isAll=B,C()},S=()=>{a.nextTick(()=>{const D=f.value,B=p.value,N=d.value,M=D||B||N;M&&M.focus()}),C()},x=()=>{const{storeData:D,defaultOptions:B}=e,{hasMerge:N,columns:M}=D,O=h.value,P=m.value,R=U.searchTree(M,L=>L.checked,{children:"children",mapChildren:"childNodes",original:!0});return Object.assign({},B,{columns:R,isMerge:N&&P&&O?B.isMerge:!1})},k=()=>{const{storeData:D}=e,B=u.value;D.visible=!1,l.print(Object.assign({},B,x()))},_=()=>{const{storeData:D}=e,B=s.value;c.loading=!0,l.exportData(Object.assign({},B,x())).then(()=>{c.loading=!1,D.visible=!1}).catch(()=>{c.loading=!1})},T=()=>{const{storeData:D}=e;D.visible=!1},E=()=>{const{storeData:D}=e;D.isPrint?k():_()};return()=>{const{defaultOptions:D,storeData:B}=e,{isAll:N,isIndeterminate:M}=c,{hasTree:O,hasMerge:P,isPrint:R,hasColgroup:L,columns:z}=B,{isHeader:F}=D,G=[],$=h.value,W=v.value,j=m.value,J=g.value,Z=D.slots||{},X=Z.top,ae=Z.bottom,ie=Z.default,K=Z.footer,ne=Z.parameter;return U.eachTree(z,pe=>{const le=fa(pe.getTitle(),1),Ce=pe.children&&pe.children.length,be=pe.checked,Ee=pe.halfChecked,Te=pe.type==="html";G.push(a.h("li",{key:pe.id,class:["vxe-table-export--panel-column-option",`level--${pe.level}`,{"is--group":Ce,"is--checked":be,"is--indeterminate":Ee,"is--disabled":pe.disabled}],title:Te?"":le,onClick:()=>{pe.disabled||b(pe)}},[a.h("span",{class:["vxe-checkbox--icon",Ee?Hh().TABLE_CHECKBOX_INDETERMINATE:be?Hh().TABLE_CHECKBOX_CHECKED:Hh().TABLE_CHECKBOX_UNCHECKED]}),Te?a.h("span",{key:"1",class:"vxe-checkbox--label",innerHTML:le}):a.h("span",{key:"0",class:"vxe-checkbox--label"},le)]))}),t?a.h(t,{id:"VXE_EXPORT_MODAL",modelValue:B.visible,title:xr(R?"vxe.export.printTitle":"vxe.export.expTitle"),className:"vxe-table-export-popup-wrapper",width:660,minWidth:500,minHeight:400,mask:!0,lockView:!0,showFooter:!0,escClosable:!0,maskClosable:!0,showMaximize:!0,resize:!0,loading:c.loading,"onUpdate:modelValue"(pe){B.visible=pe},onShow:S},{default:()=>{const pe={$table:l,$grid:l.xegrid,options:D,columns:z,params:D.params};return a.h("div",{class:"vxe-table-export--panel"},[X?a.h("div",{class:"vxe-table-export--panel-top"},l.callSlot(X,pe)):a.createCommentVNode(),a.h("div",{class:"vxe-table-export--panel-body"},ie?l.callSlot(ie,pe):[a.h("table",{class:"vxe-table-export--panel-table",cellspacing:0,cellpadding:0,border:0},[a.h("tbody",[[R?a.createCommentVNode():a.h("tr",[a.h("td",xr("vxe.export.expName")),a.h("td",[o?a.h(o,{ref:f,modelValue:D.filename,type:"text",clearable:!0,placeholder:xr("vxe.export.expNamePlaceholder"),"onUpdate:modelValue"(le){D.filename=le}}):a.createCommentVNode()])]),R?a.createCommentVNode():a.h("tr",[a.h("td",xr("vxe.export.expType")),a.h("td",[r?a.h(r,{modelValue:D.type,options:B.typeList,"onUpdate:modelValue"(le){D.type=le}}):a.createCommentVNode()])]),R||W?a.h("tr",[a.h("td",xr("vxe.export.expSheetName")),a.h("td",[o?a.h(o,{ref:p,modelValue:D.sheetName,type:"text",clearable:!0,placeholder:xr("vxe.export.expSheetNamePlaceholder"),"onUpdate:modelValue"(le){D.sheetName=le}}):a.createCommentVNode()])]):a.createCommentVNode(),a.h("tr",[a.h("td",xr("vxe.export.expMode")),a.h("td",[r?a.h(r,{modelValue:D.mode,options:B.modeList.map(le=>({value:le.value,label:xr(le.label)})),"onUpdate:modelValue"(le){D.mode=le}}):a.createCommentVNode()])]),a.h("tr",[a.h("td",[xr("vxe.export.expColumn")]),a.h("td",[a.h("div",{class:"vxe-table-export--panel-column"},[a.h("ul",{class:"vxe-table-export--panel-column-header"},[a.h("li",{class:["vxe-table-export--panel-column-option",{"is--checked":N,"is--indeterminate":M}],title:xr("vxe.table.allTitle"),onClick:w},[a.h("span",{class:["vxe-checkbox--icon",M?Hh().TABLE_CHECKBOX_INDETERMINATE:N?Hh().TABLE_CHECKBOX_CHECKED:Hh().TABLE_CHECKBOX_UNCHECKED]}),a.h("span",{class:"vxe-checkbox--label"},xr("vxe.export.expCurrentColumn"))])]),a.h("ul",{class:"vxe-table-export--panel-column-body"},G)])])]),a.h("tr",[a.h("td",xr("vxe.export.expOpts")),ne?a.h("td",[a.h("div",{class:"vxe-table-export--panel-option-row"},l.callSlot(ne,pe))]):a.h("td",[a.h("div",{class:"vxe-table-export--panel-option-row"},[i?a.h(i,{modelValue:D.isHeader,title:xr("vxe.export.expHeaderTitle"),content:xr("vxe.export.expOptHeader"),"onUpdate:modelValue"(le){D.isHeader=le}}):a.createCommentVNode(),i?a.h(i,{modelValue:D.isFooter,disabled:!B.hasFooter,title:xr("vxe.export.expFooterTitle"),content:xr("vxe.export.expOptFooter"),"onUpdate:modelValue"(le){D.isFooter=le}}):a.createCommentVNode(),i?a.h(i,{modelValue:D.original,title:xr("vxe.export.expOriginalTitle"),content:xr("vxe.export.expOptOriginal"),"onUpdate:modelValue"(le){D.original=le}}):a.createCommentVNode()]),a.h("div",{class:"vxe-table-export--panel-option-row"},[i?a.h(i,{modelValue:F&&L&&j?D.isColgroup:!1,title:xr("vxe.export.expColgroupTitle"),disabled:!F||!L||!j,content:xr("vxe.export.expOptColgroup"),"onUpdate:modelValue"(le){D.isColgroup=le}}):a.createCommentVNode(),i?a.h(i,{modelValue:P&&j&&$?D.isMerge:!1,title:xr("vxe.export.expMergeTitle"),disabled:!P||!j||!$,content:xr("vxe.export.expOptMerge"),"onUpdate:modelValue"(le){D.isMerge=le}}):a.createCommentVNode(),R||!i?a.createCommentVNode():a.h(i,{modelValue:J?D.useStyle:!1,disabled:!J,title:xr("vxe.export.expUseStyleTitle"),content:xr("vxe.export.expOptUseStyle"),"onUpdate:modelValue"(le){D.useStyle=le}}),i?a.h(i,{modelValue:O?D.isAllExpand:!1,disabled:!O,title:xr("vxe.export.expAllExpandTitle"),content:xr("vxe.export.expOptAllExpand"),"onUpdate:modelValue"(le){D.isAllExpand=le}}):a.createCommentVNode()])])])]])])]),ae?a.h("div",{class:"vxe-table-export--panel-bottom"},l.callSlot(ae,pe)):a.createCommentVNode()])},footer(){const pe={$table:l,$grid:l.xegrid,options:D,columns:z,params:D.params};return a.h("div",{class:"vxe-table-export--panel-footer"},K?l.callSlot(K,pe):[a.h("div",{class:"vxe-table-export--panel-btns"},[n?a.h(n,{content:xr("vxe.export.expCancel"),onClick:T}):a.createCommentVNode(),n?a.h(n,{ref:d,status:"primary",content:xr(R?"vxe.export.expPrint":"vxe.export.expConfirm"),onClick:E}):a.createCommentVNode()])])}}):a.createCommentVNode()}}}),{getIcon:$Ct}=Ze,HCt=a.defineComponent({name:"VxeTableMenuPanel",setup(e,t){const n=U.uniqueId(),r=a.inject("$xeTable",{}),{reactData:o}=r,i=a.ref(),l={refElem:i},s={xID:n,props:e,context:t,getRefMaps:()=>l},u=()=>{const{ctxMenuStore:c}=o,{computeMenuOpts:d}=r.getComputeMaps(),f=d.value;return a.h(a.Teleport,{to:"body",disabled:!1},[a.h("div",{ref:i,class:["vxe-table--context-menu-wrapper",f.className,{"is--visible":c.visible}],style:c.style},c.list.map((p,h)=>p.every(v=>v.visible===!1)?a.createCommentVNode():a.h("ul",{class:"vxe-context-menu--option-wrapper",key:h},p.map((v,m)=>{const g=v.children&&v.children.some(b=>b.visible!==!1),y=Object.assign({},v.prefixConfig),C=Object.assign({},v.suffixConfig);return v.visible===!1?null:a.h("li",{class:[v.className,{"link--disabled":v.disabled,"link--active":v===c.selected}],key:`${h}_${m}`},[a.h("a",{class:"vxe-context-menu--link",onClick(b){r.ctxMenuLinkEvent(b,v)},onMouseover(b){r.ctxMenuMouseoverEvent(b,v)},onMouseout(b){r.ctxMenuMouseoutEvent(b,v)}},[a.h("div",{class:["vxe-context-menu--link-prefix",y.className||""]},[a.h("i",{class:y.icon||v.prefixIcon}),y.content?a.h("span",{},`${y.content}`):a.createCommentVNode()]),a.h("div",{class:"vxe-context-menu--link-content"},au(v.name)),a.h("div",{class:["vxe-context-menu--link-suffix",C.className||""]},[a.h("i",{class:C.icon||v.suffixIcon||(g?$Ct().TABLE_MENU_OPTIONS:"")}),C.content?a.h("span",`${C.content}`):a.createCommentVNode()])]),g?a.h("ul",{class:["vxe-table--context-menu-clild-wrapper",{"is--show":v===c.selected&&c.showChild}]},v.children.map((b,w)=>{const S=Object.assign({},b.prefixConfig),x=Object.assign({},b.suffixConfig);return b.visible===!1?null:a.h("li",{class:[b.className,{"link--disabled":b.disabled,"link--active":b===c.selectChild}],key:`${h}_${m}_${w}`},[a.h("a",{class:"vxe-context-menu--link",onClick(k){r.ctxMenuLinkEvent(k,b)},onMouseover(k){r.ctxMenuMouseoverEvent(k,v,b)},onMouseout(k){r.ctxMenuMouseoutEvent(k,v)}},[a.h("div",{class:["vxe-context-menu--link-prefix",S.className||""]},[a.h("i",{class:S.icon||b.prefixIcon}),S.content?a.h("span",`${S.content}`):a.createCommentVNode()]),a.h("div",{class:"vxe-context-menu--link-content"},au(b.name)),a.h("div",{class:["vxe-context-menu--link-suffix",x.className||""]},[a.h("i",{class:x.icon}),x.content?a.h("span",`${x.content}`):a.createCommentVNode()])])])})):null])}))))])};return s.renderVN=u,s},render(){return this.renderVN()}}),{getConfig:jn,getIcon:v1,getI18n:Ic,renderer:KW,formats:XW,createEvent:WCt,globalResize:GCt,interceptor:qW,hooks:UCt,globalEvents:fr,GLOBAL_EVENT_KEYS:yi,useFns:YCt,renderEmptyElement:Wa}=Ze,ZW="VXE_CUSTOM_STORE",Vv=a.defineComponent({name:"VxeTable",props:xP,emits:kP,setup(e,t){const{slots:n,emit:r}=t,o=U.uniqueId(),i=Ze.getComponent("VxeLoading"),l=Ze.getComponent("VxeTooltip"),s=a.inject("$xeTabs",null),{computeSize:u}=YCt.useSize(e),c=a.reactive({isCalcColumn:!1,staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,lastScrollTime:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectCheckboxMaps:{},currentRow:null,currentColumn:null,selectRadioRow:null,footerTableData:[],expandColumn:null,treeNodeColumn:null,hasFixedColumn:!1,rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},treeIndeterminateMaps:{},mergeList:[],mergeFooterList:[],upDataFlag:0,reColumnFlag:0,pendingRowMaps:{},initStore:{filter:!1,import:!1,export:!1,custom:!1},customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:0,oldSortMaps:{},oldFixedMaps:{},oldVisibleMaps:{}},customColumnList:[],filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],autoMinList:[],scaleList:[],scaleMinList:[],autoList:[],remainList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},focused:{row:null,column:null},insertMaps:{},removeMaps:{}},tooltipStore:{row:null,column:null,content:null,visible:!1,currOpts:{}},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasMerge:!1,hasTree:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1},scrollVMLoading:!1,isCalcCellHeight:0,isCustomStatus:!1,isDragRowMove:!1,dragRow:null,isDragColMove:!1,dragCol:null,dragTipText:"",_isResize:!1,_isLoading:!1}),d={tZindex:0,elemStore:{},scrollXStore:{offsetSize:0,visibleSize:0,startIndex:0,endIndex:0},scrollYStore:{rowHeight:0,offsetSize:0,visibleSize:0,startIndex:0,endIndex:0},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,customHeight:0,customMinHeight:0,customMaxHeight:0,hoverRow:null,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},treeIndeterminateRowMaps:{},tableFullData:[],afterFullData:[],afterTreeFullData:[],afterFullRowMaps:{},tableFullTreeData:[],tableSynchData:[],tableSourceData:[],collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowIdData:{},sourceDataRowIdData:{},fullDataRowIdData:{},fullColumnIdData:{},fullColumnFieldData:{},columnStatusMaps:{},rowStatusMaps:{},inited:!1,tooltipTimeout:null,initStatus:!1,isActivated:!1};let f={},p={};const h=a.ref(),v=a.ref(),m=a.ref(),g=a.ref(),y=a.ref(),C=a.ref(),b=a.ref(),w=a.ref(),S=a.ref(),x=a.ref(),k=a.ref(),_=a.ref(),T=a.ref(),E=a.ref(),A=a.ref(),D=a.ref(),B=a.ref(),N=a.ref(),M=a.ref(),O=a.ref(),P=a.ref(),R=a.ref(),L=a.ref(),z=a.ref(),F=a.ref(),G=a.ref(),$=a.ref(),W=a.ref(),j=a.ref(),J=a.ref(),Z=a.inject("$xeGrid",null);let X;const ae=a.computed(()=>{const{id:I}=e;return I?U.isFunction(I)?`${I({$table:te,$grid:Z})||""}`:`${I}`:""}),ie=a.computed(()=>Object.assign({},jn().table.validConfig,e.validConfig)),K=a.computed(()=>Object.assign({},jn().table.scrollX,e.scrollX)),ne=a.computed(()=>{const I=K.value,{threshold:V}=I;return V?U.toNumber(V):0}),pe=a.computed(()=>Object.assign({},jn().table.scrollY,e.scrollY)),le=a.computed(()=>{const I=pe.value,{threshold:V}=I;return V?U.toNumber(V):0}),Ce=a.computed(()=>({default:48,medium:44,small:40,mini:36})),be=a.computed(()=>Object.assign({},jn().table.columnConfig,e.columnConfig)),Ee=a.computed(()=>Object.assign({},jn().table.cellConfig,e.cellConfig)),Te=a.computed(()=>Object.assign({},jn().table.rowConfig,e.rowConfig)),De=a.computed(()=>Object.assign({},jn().table.rowDragConfig,e.rowDragConfig)),Fe=a.computed(()=>Object.assign({},jn().table.columnDragConfig,e.columnDragConfig)),Je=a.computed(()=>Object.assign({},jn().table.resizeConfig,e.resizeConfig)),Ve=a.computed(()=>Object.assign({},jn().table.resizableConfig,e.resizableConfig)),Ke=a.computed(()=>Object.assign({startIndex:0},jn().table.seqConfig,e.seqConfig)),ye=a.computed(()=>Object.assign({},jn().table.radioConfig,e.radioConfig)),Me=a.computed(()=>Object.assign({},jn().table.checkboxConfig,e.checkboxConfig));let Ye=a.ref();Ye=a.computed(()=>Object.assign({},jn().tooltip,jn().table.tooltipConfig,e.tooltipConfig));const lt=a.computed(()=>{const I=Ye.value;return Object.assign({},I)}),vt=a.computed(()=>{const I=Ye.value;return Object.assign({isArrow:!1},I)}),ft=a.computed(()=>Object.assign({},jn().table.editConfig,e.editConfig)),pt=a.computed(()=>Object.assign({orders:["asc","desc",null]},jn().table.sortConfig,e.sortConfig)),_e=a.computed(()=>Object.assign({},jn().table.filterConfig,e.filterConfig)),at=a.computed(()=>Object.assign({},jn().table.mouseConfig,e.mouseConfig)),tt=a.computed(()=>Object.assign({},jn().table.areaConfig,e.areaConfig)),ue=a.computed(()=>Object.assign({},jn().table.keyboardConfig,e.keyboardConfig)),se=a.computed(()=>Object.assign({},jn().table.clipConfig,e.clipConfig)),ee=a.computed(()=>Object.assign({},jn().table.fnrConfig,e.fnrConfig)),he=a.computed(()=>Object.assign({},jn().table.menuConfig,e.menuConfig)),ze=a.computed(()=>{const V=he.value.header;return V&&V.options?V.options:[]}),Xe=a.computed(()=>{const V=he.value.body;return V&&V.options?V.options:[]}),st=a.computed(()=>{const V=he.value.footer;return V&&V.options?V.options:[]}),Mt=a.computed(()=>{const I=he.value,V=ze.value,H=Xe.value,Y=st.value;return!!(e.menuConfig&&dn(I)&&(V.length||H.length||Y.length))}),Ft=a.computed(()=>{const{ctxMenuStore:I}=c,V=[];return I.list.forEach(H=>{H.forEach(Y=>{V.push(Y)})}),V}),ke=a.computed(()=>Object.assign({},jn().table.exportConfig,e.exportConfig)),Se=a.computed(()=>Object.assign({},jn().table.importConfig,e.importConfig)),$e=a.computed(()=>Object.assign({},jn().table.printConfig,e.printConfig)),ve=a.computed(()=>Object.assign({},jn().table.expandConfig,e.expandConfig)),we=a.computed(()=>Object.assign({},jn().table.treeConfig,e.treeConfig)),He=a.computed(()=>Object.assign({},jn().table.emptyRender,e.emptyRender)),We=a.computed(()=>Object.assign({},jn().table.loadingConfig,e.loadingConfig)),et=a.computed(()=>e.border?Math.max(2,Math.ceil(c.scrollbarWidth/c.tableColumn.length)):1),xt=a.computed(()=>Object.assign({},jn().table.customConfig,e.customConfig)),Xt=a.computed(()=>{const{visibleColumn:I}=d,{tableColumn:V}=c;return V.length||I.length?I.filter(H=>H.width==="auto"||H.minWidth==="auto"):[]}),$t=a.computed(()=>{const{tableColumn:I}=c,{collectColumn:V}=d;let H=0;return I.length&&V.length&&V.forEach(Y=>{Y.renderFixed&&H++}),H}),En=a.computed(()=>{const I=$t.value,V=be.value,{maxFixedSize:H}=V;return H?I>=H:!1}),Ut=a.computed(()=>{const{border:I}=e;return I===!0?"full":I||"default"}),or=a.computed(()=>{const{tableData:I}=c,{tableFullData:V}=d,H=Me.value,{strict:Y,checkMethod:Q}=H;return Y?I.length||V.length?Q?V.every(oe=>!Q({row:oe})):!1:!0:!1}),Zn=a.computed(()=>{const{overflowX:I,scrollXLoad:V,overflowY:H,scrollYLoad:Y}=c;return{x:I&&V,y:H&&Y}}),Pe={refElem:h,refTooltip:v,refValidTooltip:g,refTableFilter:C,refTableCustom:b,refTableMenu:y,refTableHeader:w,refTableBody:S,refTableFooter:x,refTableLeftHeader:k,refTableLeftBody:_,refTableLeftFooter:T,refTableRightHeader:E,refTableRightBody:A,refTableRightFooter:D,refLeftContainer:B,refRightContainer:N,refCellResizeBar:M,refCellResizeTip:O,refScrollXVirtualElem:F,refScrollYVirtualElem:G,refScrollXHandleElem:$,refScrollYHandleElem:W,refScrollXSpaceElem:j,refScrollYSpaceElem:J},yt={computeSize:u,computeTableId:ae,computeValidOpts:ie,computeSXOpts:K,computeSYOpts:pe,computeColumnOpts:be,computeCellOpts:Ee,computeRowOpts:Te,computeRowDragOpts:De,computeColumnDragOpts:Fe,computeResizeOpts:Je,computeResizableOpts:Ve,computeSeqOpts:Ke,computeRadioOpts:ye,computeCheckboxOpts:Me,computeTooltipOpts:Ye,computeEditOpts:ft,computeSortOpts:pt,computeFilterOpts:_e,computeMouseOpts:at,computeAreaOpts:tt,computeKeyboardOpts:ue,computeClipOpts:se,computeFNROpts:ee,computeHeaderMenu:ze,computeBodyMenu:Xe,computeFooterMenu:st,computeIsMenu:Mt,computeMenuOpts:he,computeExportOpts:ke,computeImportOpts:Se,computePrintOpts:$e,computeExpandOpts:ve,computeTreeOpts:we,computeEmptyOpts:He,computeLoadingOpts:We,computeCustomOpts:xt,computeFixedColumnSize:$t,computeIsMaxFixedColumn:En,computeIsAllCheckboxDisabled:or,computeVirtualScrollBars:Zn},te={xID:o,props:e,context:t,reactData:c,internalData:d,getRefMaps:()=>Pe,getComputeMaps:()=>yt,xegrid:Z},mn=(I,V,H)=>{const Y=U.get(I,H),Q=U.get(V,H);return Os(Y)&&Os(Q)?!0:U.isString(Y)||U.isNumber(Y)?""+Y==""+Q:U.isEqual(Y,Q)},xn=I=>{const V=pt.value,{orders:H}=V,Y=I.order||null,Q=H.indexOf(Y)+1;return H[Q<H.length?Q:0]},On=I=>{const V=jn().version,H=U.toStringJSON(localStorage.getItem(ZW)||""),Y=H&&H._v===V?H:{_v:V};return(I?Y[I]:Y)||{}},ir=(I,V)=>{const H=jn().version,Y=On();Y[I]=V||void 0,Y._v=H,localStorage.setItem(ZW,U.toJSONString(Y))},lr=I=>{const{fullAllDataRowIdData:V}=d,H={};return U.each(I,(Y,Q)=>{V[Q]&&(H[Q]=Y)}),H},An=I=>{const{fullDataRowIdData:V}=d,H=[];return U.each(I,(Y,Q)=>{V[Q]&&te.findRowIndexOf(H,V[Q].row)===-1&&H.push(V[Q].row)}),H},Yn=()=>{const{visibleColumn:I}=d,V=S.value,H=V?V.$el:null;if(H){const{scrollLeft:Y,clientWidth:Q}=H,oe=Y+Q;let re=-1,ce=0,de=0;for(let me=0,ge=I.length;me<ge&&(ce+=I[me].renderWidth,re===-1&&Y<ce&&(re=me),!(re>=0&&(de++,ce>oe)));me++);return{toVisibleIndex:Math.max(0,re),visibleSize:Math.max(6,de)}}return{toVisibleIndex:0,visibleSize:6}},Ue=()=>{const I=w.value,V=S.value,H=V?V.$el:null,Y=u.value,Q=Ce.value;let oe=0;if(H){const re=I?I.$el:null;let ce;ce=H.querySelector("tr"),!ce&&re&&(ce=re.querySelector("tr")),ce&&(oe=ce.clientHeight)}return oe||(oe=Q[Y||"default"]),Math.max(18,oe)},mt=()=>{const{showOverflow:I}=e,{scrollYStore:V,afterFullData:H,fullAllDataRowIdData:Y}=d,Q=S.value,oe=Q?Q.$el:null,{rowHeight:re}=V;if(oe){const{scrollTop:ce,clientHeight:de}=oe,me=ce+de;let ge=-1,Be=0,xe=0;if(I)ge=Math.floor(ce/re),xe=Math.ceil(de/re)+1;else for(let Ie=0,Le=H.length;Ie<Le;Ie++){const Ae=H[Ie],qe=ct(te,Ae),gt=Y[qe];if(Be+=gt&>.height||re,ge===-1&&ce<Be&&(ge=Ie),ge>=0&&(xe++,Be>me))break}return{toVisibleIndex:Math.max(0,ge),visibleSize:Math.max(8,xe)}}return{toVisibleIndex:0,visibleSize:8}},Et=(I,V,H)=>{for(let Y=0,Q=I.length;Y<Q;Y++){const oe=I[Y],{startIndex:re,endIndex:ce}=V,de=oe[H],me=oe[H+"span"],ge=de+me;de<re&&re<ge&&(V.startIndex=de),de<ce&&ce<ge&&(V.endIndex=ge),(V.startIndex!==re||V.endIndex!==ce)&&(Y=-1)}},Yt=(I,V,H)=>{if(I){const{treeConfig:Y}=e,{visibleColumn:Q}=d;U.isArray(I)||(I=[I]),Y&&I.length&&Wr("vxe.error.noTree",["merge-cells | merge-footer-items"]),I.forEach(oe=>{let{row:re,col:ce,rowspan:de,colspan:me}=oe;if(H&&U.isNumber(re)&&(re=H[re]),U.isNumber(ce)&&(ce=Q[ce]),(H?re:U.isNumber(re))&&ce&&(de||me)&&(de=U.toNumber(de)||1,me=U.toNumber(me)||1,de>1||me>1)){const ge=U.findIndexOf(V,xe=>(xe._row===re||ct(te,xe._row)===ct(te,re))&&(xe._col.id===ce||xe._col.id===ce.id)),Be=V[ge];if(Be)Be.rowspan=de,Be.colspan=me,Be._rowspan=de,Be._colspan=me;else{const xe=H?te.findRowIndexOf(H,re):re,Ie=f.getVTColumnIndex(ce);V.push({row:xe,col:Ie,rowspan:de,colspan:me,_row:re,_col:ce,_rowspan:de,_colspan:me})}}})}},pr=(I,V,H)=>{const Y=[];if(I){const{treeConfig:Q}=e,{visibleColumn:oe}=d;U.isArray(I)||(I=[I]),Q&&I.length&&Wr("vxe.error.noTree",["merge-cells | merge-footer-items"]),I.forEach(re=>{let{row:ce,col:de}=re;H&&U.isNumber(ce)&&(ce=H[ce]),U.isNumber(de)&&(de=oe[de]);const me=U.findIndexOf(V,ge=>(ge._row===ce||ct(te,ge._row)===ct(te,ce))&&(ge._col.id===de||ge._col.id===de.id));if(me>-1){const ge=V.splice(me,1);Y.push(ge[0])}})}return Y},xa=()=>{const{tableFullColumn:I}=d;I.forEach(V=>{V.order=null})},no=I=>{const{parentHeight:V}=c,H=e[I];let Y=0;if(H)if(H==="100%"||H==="auto")Y=V;else{const Q=te.getExcludeHeight();Ny(H)?Y=Math.floor((U.toInteger(H)||1)/100*V):Y=U.toNumber(H),Y=Math.max(40,Y-Q)}return Y},Jr=I=>{let{collectColumn:V}=d;const{resizableData:H,sortData:Y,visibleData:Q,fixedData:oe}=I;let re=!1;H||Y||Q||oe?(U.eachTree(V,(ce,de,me,ge,Be)=>{const xe=ce.getKey();Be||(oe&&oe[xe]!==void 0&&(ce.fixed=oe[xe]),Y&&U.isNumber(Y[xe])&&(re=!0,ce.renderSortNumber=Y[xe])),H&&U.isNumber(H[xe])&&(ce.resizeWidth=H[xe]),Q&&U.isBoolean(Q[xe])&&(ce.visible=Q[xe])}),re&&(V=U.orderBy(V,"renderSortNumber"),d.collectColumn=V,d.tableFullColumn=EC(V)),c.isCustomStatus=!0):c.isCustomStatus=!1},di=()=>{const{customConfig:I}=e,V=ae.value,H=xt.value,{storage:Y,restoreStore:Q}=H,oe=Y===!0,re=oe?{}:Object.assign({},Y||{}),ce=oe||re.resizable,de=oe||re.visible,me=oe||re.fixed,ge=oe||re.sort;if((I?dn(H):H.enabled)&&(ce||de||me||ge)){if(!V){Wr("vxe.error.reqProp",["id"]);return}const Be=On(V);return Q?Promise.resolve(Q({id:V,type:"restore",storeData:Be})).then(xe=>{if(xe)return Jr(xe)}).catch(xe=>xe):Jr(Be)}},mu=()=>{const{tableFullColumn:I,collectColumn:V}=d,H=d.fullColumnIdData={},Y=d.fullColumnFieldData={};at.value,be.value;const Q=Fe.value,{isCrossDrag:oe,isSelfToChildDrag:re}=Q,ce=xt.value,{storage:de}=ce;Te.value;const me=V.some(mv);let ge=!!e.showOverflow,Be,xe;const Ie=(Le,Ae,qe,gt,Oe)=>{const{id:ut,field:wt,fixed:Lt,type:Pt,treeNode:an}=Le,rn={$index:-1,_index:-1,column:Le,colid:ut,index:Ae,items:qe,parent:Oe||null,width:0};wt?(Y[wt]&&Wr("vxe.error.colRepet",["field",wt]),Y[wt]=rn):(de||oe||re)&&Wr("vxe.error.reqProp",[`${Le.getTitle()||Pt||""} -> column.field`]),an?xe||(xe=Le):Pt==="expand"&&(Be||(Be=Le)),ge&&Le.showOverflow===!1&&(ge=!1),H[ut]&&Wr("vxe.error.colRepet",["colId",ut]),H[ut]=rn};me?U.eachTree(V,(Le,Ae,qe,gt,Oe,ut)=>{Le.level=ut.length,Ie(Le,Ae,qe,gt,Oe)}):I.forEach(Ie),c.isGroup=me,c.treeNodeColumn=xe,c.expandColumn=Be,c.isAllOverflow=ge},ro=()=>{d.customHeight=no("height"),d.customMinHeight=no("minHeight"),d.customMaxHeight=no("maxHeight")},Qp=(I,V)=>{const H=V.querySelectorAll(`.vxe-header--column.${I.id}>.vxe-cell,.vxe-body--column.${I.id}>.vxe-cell,.vxe-footer--column.${I.id}>.vxe-cell`),Y=H[0];let Q=0;if(Y){const re=getComputedStyle(Y);Q=Math.floor(U.toNumber(re.paddingLeft)+U.toNumber(re.paddingRight))+2}let oe=I.renderAutoWidth-Q;return U.arrayEach(H,re=>{const ce=re,de=ce.parentElement;let me=0;if(`${de.tagName}`.toLowerCase()==="th")U.arrayEach(ce.children,ge=>{me+=ge.offsetWidth+1});else{const ge=ce.firstElementChild;ge&&(me=ge.offsetWidth)}me&&(oe=Math.max(oe,Math.ceil(me)+4))}),oe+Q},gu=()=>{const I=Xt.value;return c.isCalcColumn=!0,a.nextTick().then(()=>{const{fullColumnIdData:V}=d,H=h.value;H&&(I.forEach(Y=>{const Q=Y.id,oe=V[Q],re=Qp(Y,H);oe&&(oe.width=Math.max(re,oe.width)),Y.renderAutoWidth=re}),te.analyColumnWidth()),c.isCalcColumn=!1})},gc=()=>{const I=w.value,V=S.value,H=x.value,Y=V?V.$el:null,Q=I?I.$el:null,oe=H?H.$el:null;if(!Y)return;let re=0;const ce=40,de=Y.clientWidth-1;let me=de,ge=me/100;const{fit:Be}=e,{columnStore:xe}=c,{resizeList:Ie,pxMinList:Le,autoMinList:Ae,pxList:qe,scaleList:gt,scaleMinList:Oe,autoList:ut,remainList:wt}=xe;if(Le.forEach(Qt=>{const tn=U.toInteger(Qt.minWidth);re+=tn,Qt.renderWidth=tn}),Ae.forEach(Qt=>{const tn=Math.max(60,U.toInteger(Qt.renderAutoWidth));re+=tn,Qt.renderWidth=tn}),Oe.forEach(Qt=>{const tn=Math.floor(U.toInteger(Qt.minWidth)*ge);re+=tn,Qt.renderWidth=tn}),gt.forEach(Qt=>{const tn=Math.floor(U.toInteger(Qt.width)*ge);re+=tn,Qt.renderWidth=tn}),qe.forEach(Qt=>{const tn=U.toInteger(Qt.width);re+=tn,Qt.renderWidth=tn}),ut.forEach(Qt=>{const tn=Math.max(60,U.toInteger(Qt.renderAutoWidth));re+=tn,Qt.renderWidth=tn}),Ie.forEach(Qt=>{const tn=U.toInteger(Qt.resizeWidth);re+=tn,Qt.renderWidth=tn}),me-=re,ge=me>0?Math.floor(me/(Oe.length+Le.length+Ae.length+wt.length)):0,Be?me>0&&Oe.concat(Le).concat(Ae).forEach(Qt=>{re+=ge,Qt.renderWidth+=ge}):ge=ce,wt.forEach(Qt=>{const tn=Math.max(ge,ce);Qt.renderWidth=tn,re+=tn}),Be){const Qt=gt.concat(Oe).concat(Le).concat(Ae).concat(wt);let tn=Qt.length-1;if(tn>0){let hr=de-re;if(hr>0){for(;hr>0&&tn>=0;)hr--,Qt[tn--].renderWidth++;re=de}}}const Lt=Y.offsetHeight,Pt=Y.scrollHeight>Y.clientHeight;let an=0;Pt&&(an=Math.max(Y.offsetWidth-Y.clientWidth,0)),c.scrollbarWidth=an,c.overflowY=Pt,d.tableWidth=re,d.tableHeight=Lt;let rn=0;Q&&(rn=Q.clientHeight,a.nextTick(()=>{Q&&Y&&Q.scrollLeft!==Y.scrollLeft&&(Q.scrollLeft=Y.scrollLeft)})),d.headerHeight=rn;let ln=!1,Jt=0,_n=0;oe?(Jt=oe.offsetHeight,ln=re>oe.clientWidth,_n=Math.max(Jt-oe.clientHeight,0)):(ln=re>de,_n=Math.max(Lt-Y.clientHeight,0)),d.footerHeight=Jt,c.overflowX=ln,c.scrollbarHeight=_n,ro(),c.parentHeight=Math.max(d.headerHeight+Jt+20,p.getParentHeight()),ln&&p.checkScrolling()},yu=()=>{const{showOverflow:I}=e,{tableData:V,scrollXLoad:H}=c,{fullAllDataRowIdData:Y}=d,Q=h.value;if(!I&&Q){let oe=0,re=0,ce=!1;V.forEach(de=>{const me=ct(te,de),ge=Y[me],Be=Q.querySelectorAll(`.vxe-body--row[rowid="${me}"]>.vxe-body--column>.vxe-cell`);if(ge&&Be.length){let xe=0;for(let Ie=0;Ie<Be.length;Ie++){const Le=Be[Ie],Ae=Le.parentElement;if(!Ae||!Ae.clientWidth)break;ce||(oe=U.toNumber(getComputedStyle(Ae).paddingTop),re=U.toNumber(getComputedStyle(Ae).paddingBottom),ce=!0);let qe=oe+re;Le&&(qe+=Le.clientHeight),xe=Math.max(xe,qe)}ge.height=H?Math.max(ge.height,xe):xe}}),c.isCalcCellHeight++}},lg=I=>{const{sortBy:V,sortType:H}=I;return Y=>{let Q;return V?Q=U.isFunction(V)?V({row:Y,column:I}):U.get(Y,V):Q=f.getCellLabel(Y,I),!H||H==="auto"?isNaN(Q)?Q:U.toNumber(Q):H==="number"?U.toNumber(Q):H==="string"?U.toValueString(Q):Q}},yc=()=>{const{treeConfig:I}=e,{afterFullData:V,fullDataRowIdData:H,fullAllDataRowIdData:Y,afterTreeFullData:Q}=d,oe=we.value,re=oe.children||oe.childrenField,ce={};I?U.eachTree(Q,(de,me,ge,Be)=>{const xe=ct(te,de),Ie=Y[xe],Le=Be.map((Ae,qe)=>qe%2===0?Number(Ae)+1:".").join("");if(Ie)Ie.seq=Le,Ie._index=me;else{const Ae={row:de,rowid:xe,seq:Le,index:-1,$index:-1,_index:-1,items:[],parent:null,level:0,height:0,oTop:0};Y[xe]=Ae,H[xe]=Ae}ce[xe]=de},{children:oe.transform?oe.mapChildrenField:re}):V.forEach((de,me)=>{const ge=ct(te,de),Be=Y[ge],xe=me+1;if(Be)Be.seq=xe,Be._index=me;else{const Ie={row:de,rowid:ge,seq:xe,index:-1,$index:-1,_index:me,items:[],parent:null,level:0,height:0,oTop:0};Y[ge]=Ie,H[ge]=Ie}ce[ge]=de}),d.afterFullRowMaps=ce},fi=()=>{const{treeConfig:I}=e,{treeExpandedMaps:V}=c,{fullAllDataRowIdData:H}=d,Y=we.value,Q=Y.children||Y.childrenField;if(I&&Y.transform){const oe=[],re={};return U.eachTree(d.afterTreeFullData,(ce,de,me,ge,Be)=>{const xe=ct(te,ce),Ie=ct(te,Be);if(!Be||re[Ie]&&V[Ie]){const Le=H[xe];Le&&(Le._index=oe.length),re[xe]=1,oe.push(ce)}},{children:Q}),d.afterFullData=oe,_C(oe),oe}return d.afterFullData},Jp=()=>{const{treeConfig:I}=e,{tableFullColumn:V,tableFullData:H,tableFullTreeData:Y}=d,Q=_e.value,oe=pt.value,re=we.value,ce=re.children||re.childrenField,{transform:de}=re,{remote:me,filterMethod:ge}=Q,{remote:Be,sortMethod:xe,multiple:Ie,chronological:Le}=oe;let Ae=[],qe=[];if(!me||!Be){const gt=[];let Oe=[];if(V.forEach(ut=>{const{field:wt,sortable:Lt,order:Pt,filters:an}=ut;if(!me&&an&&an.length){const rn=[],ln=[];an.forEach(Jt=>{Jt.checked&&(ln.push(Jt),rn.push(Jt.value))}),ln.length&>.push({column:ut,valueList:rn,itemList:ln})}!Be&&Lt&&Pt&&Oe.push({column:ut,field:wt,property:wt,order:Pt,sortTime:ut.sortTime})}),Ie&&Le&&Oe.length>1&&(Oe=U.orderBy(Oe,"sortTime")),!me&>.length){const ut=wt=>gt.every(({column:Lt,valueList:Pt,itemList:an})=>{const{filterMethod:rn,filterRender:ln}=Lt,Jt=dn(ln)?KW.get(ln.name):null,_n=Jt?Jt.tableFilterMethod||Jt.filterMethod:null,Qt=Jt?Jt.tableFilterDefaultMethod||Jt.defaultTableFilterMethod||Jt.defaultFilterMethod:null,tn=ba(wt,Lt);return rn?an.some(hr=>rn({value:hr.value,option:hr,cellValue:tn,row:wt,column:Lt,$table:te})):_n?an.some(hr=>_n({value:hr.value,option:hr,cellValue:tn,row:wt,column:Lt,$table:te})):ge?ge({options:an,values:Pt,cellValue:tn,row:wt,column:Lt}):Qt?an.some(hr=>Qt({value:hr.value,option:hr,cellValue:tn,row:wt,column:Lt,$table:te})):Pt.indexOf(U.get(wt,Lt.field))>-1});I&&de?(qe=U.searchTree(Y,ut,{original:!0,isEvery:!0,children:re.mapChildrenField,mapChildren:ce}),Ae=qe):(Ae=I?Y.filter(ut):H.filter(ut),qe=Ae)}else I&&de?(qe=U.searchTree(Y,()=>!0,{original:!0,isEvery:!0,children:re.mapChildrenField,mapChildren:ce}),Ae=qe):(Ae=I?Y.slice(0):H.slice(0),qe=Ae);if(!Be&&Oe.length)if(I&&de){if(xe){const ut=xe({data:qe,sortList:Oe,$table:te});qe=U.isArray(ut)?ut:qe}else qe=U.orderBy(qe,Oe.map(({column:ut,order:wt})=>[lg(ut),wt]));Ae=qe}else{if(xe){const ut=xe({data:Ae,sortList:Oe,$table:te});Ae=U.isArray(ut)?ut:Ae}else Ae=U.orderBy(Ae,Oe.map(({column:ut,order:wt})=>[lg(ut),wt]));qe=Ae}}else I&&de?(qe=U.searchTree(Y,()=>!0,{original:!0,isEvery:!0,children:re.mapChildrenField,mapChildren:ce}),Ae=qe):(Ae=I?Y.slice(0):H.slice(0),qe=Ae);d.afterFullData=Ae,d.afterTreeFullData=qe,yc()},ka=()=>{const{border:I,showFooter:V,showOverflow:H,showHeaderOverflow:Y,showFooterOverflow:Q,mouseConfig:oe,spanMethod:re,footerSpanMethod:ce}=e,{isGroup:de,currentRow:me,tableColumn:ge,scrollXLoad:Be,scrollYLoad:xe,overflowX:Ie,scrollbarWidth:Le,scrollbarHeight:Ae,columnStore:qe,editStore:gt,isAllOverflow:Oe,expandColumn:ut}=c;let{visibleColumn:wt,fullColumnIdData:Lt,tableHeight:Pt,tableWidth:an,headerHeight:rn,footerHeight:ln,elemStore:Jt,customHeight:_n,customMinHeight:Qt,customMaxHeight:tn}=d;const hr=["main","left","right"],hs=P.value,zi=et.value,Cu=at.value,_l=Mo(Jt["main-body-wrapper"]);hs&&(hs.style.top=`${rn}px`,hs.style.height=_l?`${_l.offsetHeight-Ae}px`:""),_n>0&&V&&(_n+=Ae);const hi=F.value;hi&&(hi.style.height=`${Ae}px`);const Eo=G.value;if(Eo){let la=0,Ho=0;const sa=Qt-rn-ln;tn&&(Ho=tn-rn-ln,Ho=Math.max(sa,Ho)),_n&&(la=_n-rn-ln,Ho&&(la=Math.min(Ho,la)),la=Math.max(sa,la)),Eo.style.top=`${rn}px`,Eo.style.width=`${Le}px`,Eo.style.height=`${la+(Ie?-Math.max(1,Ae):0)}px`}return hr.forEach((la,Ho)=>{const sa=Ho>0?la:"",wu=["header","body","footer"],vs=sa==="left";let Tr=[],Rr;sa&&(Tr=vs?qe.leftList:qe.rightList,Rr=vs?B.value:N.value),wu.forEach(Lr=>{const Ar=Mo(Jt[`${la}-${Lr}-wrapper`]),Ea=Mo(Jt[`${la}-${Lr}-table`]);if(Lr==="header"){let _a=an,zr=ge;de?zr=wt:sa&&(zr=wt,(Be||xe||Y)&&(re||ce?zr=wt:zr=Tr||[])),_a=zr.reduce((ao,mi)=>ao+mi.renderWidth,0),Ea&&(Ea.style.width=_a?`${_a+Le}px`:"");const vi=Mo(Jt[`${la}-${Lr}-repair`]);vi&&(vi.style.width=`${an}px`);const ea=Mo(Jt[`${la}-${Lr}-list`]);de&&ea&&U.arrayEach(ea.querySelectorAll(".col--group"),ao=>{const mi=f.getColumnNode(ao);if(mi){const $d=mi.item,{showHeaderOverflow:ms}=$d,fg=U.isBoolean(ms)?ms:Y,pg=fg==="title"||(fg===!0||fg==="tooltip")||fg==="ellipsis";let hg=0,nh=0;pg&&U.eachTree($d.children,vg=>{(!vg.children||!$d.children.length)&&nh++,hg+=vg.renderWidth},{children:"children"}),ao.style.width=pg?`${hg-nh-(I?2:0)}px`:""}})}else if(Lr==="body"){const _a=Mo(Jt[`${la}-${Lr}-emptyBlock`]);if(B2(Ar)){let ea=0;const ao=Qt-rn-ln;if(tn&&(ea=tn-rn-ln,sa&&(ea-=V?0:Ae),ea=Math.max(ao,ea),Ar.style.maxHeight=`${ea}px`),_n){let mi=_n-rn-ln;sa&&(mi-=V?0:Ae),ea&&(mi=Math.min(ea,mi)),Ar.style.height=`${Math.max(ao,mi)}px`}else Ar.style.height="";Ar.style.minHeight=`${ao}px`}Rr&&(B2(Ar)&&(Ar.style.top=`${rn}px`),Rr.style.height=`${(_n>0?_n-rn-ln:Pt)+rn+ln-Ae*(V?2:1)}px`,Rr.style.width=`${Tr.reduce((ea,ao)=>ea+ao.renderWidth,vs?0:Le)}px`);let zr=an,vi=ge;sa&&(vi=wt,(Be||xe||H&&Oe)&&(ut||re||ce?vi=wt:vi=Tr||[])),zr=vi.reduce((ea,ao)=>ea+ao.renderWidth,0),Ea&&(Ea.style.width=zr?`${zr}px`:"",Ea.style.paddingRight=Le&&sa&&(gv["-moz"]||gv.safari)?`${Le}px`:""),_a&&(_a.style.width=zr?`${zr}px`:"")}else if(Lr==="footer"){let _a=an,zr=ge;sa&&(zr=wt,(Be||xe||Q)&&(re||ce?zr=wt:zr=Tr||[])),_a=zr.reduce((vi,ea)=>vi+ea.renderWidth,0),B2(Ar)&&(Rr&&(Ar.style.top=`${_n>0?_n-ln:Pt+rn}px`),Ar.style.marginTop=`${-Math.max(1,Ae)}px`),Ea&&(Ea.style.width=_a?`${_a+Le}px`:"")}const Wo=Mo(Jt[`${la}-${Lr}-colgroup`]);Wo&&U.arrayEach(Wo.children,_a=>{const zr=_a.getAttribute("name");if(zr==="col_gutter"&&(_a.style.width=`${Le}px`),Lt[zr]){const ea=Lt[zr].column,{showHeaderOverflow:ao,showFooterOverflow:mi,showOverflow:$d}=ea;let ms;_a.style.width=`${ea.renderWidth}px`,Lr==="header"?ms=U.isUndefined(ao)||U.isNull(ao)?Y:ao:Lr==="footer"?ms=U.isUndefined(mi)||U.isNull(mi)?Q:mi:ms=U.isUndefined($d)||U.isNull($d)?H:$d;let NC=ms==="title"||(ms===!0||ms==="tooltip")||ms==="ellipsis";const pg=Mo(Jt[`${la}-${Lr}-list`]);xe&&!NC&&(NC=!0),pg&&U.arrayEach(pg.querySelectorAll(`.${ea.id}`),hg=>{const nh=parseInt(hg.getAttribute("colspan")||1),vg=hg.querySelector(".vxe-cell");let FP=ea.renderWidth;if(vg){if(nh>1){const Wle=f.getColumnIndex(ea);for(let c_=1;c_<nh;c_++){const zP=f.getColumns(Wle+c_);zP&&(FP+=zP.renderWidth)}}vg.style.width=NC?`${FP-zi*nh}px`:""}})}})})}),me&&f.setCurrentRow(me),oe&&Cu.selected&>.selected.row&>.selected.column&&te.addCellSelectedClass(),a.nextTick()},Vi=I=>te.triggerValidate?te.triggerValidate(I):a.nextTick(),El=(I,V)=>{Vi("blur").catch(H=>H).then(()=>{te.handleEdit(V,I).then(()=>Vi("change")).catch(H=>H)})},eh=()=>{const{sortConfig:I}=e;if(I){const V=pt.value;let{defaultSort:H}=V;H&&(U.isArray(H)||(H=[H]),H.length&&((I.multiple?H:H.slice(0,1)).forEach((Y,Q)=>{const{field:oe,order:re}=Y;if(oe&&re){const ce=f.getColumnByField(oe);ce&&ce.sortable&&(ce.order=re,ce.sortTime=Date.now()+Q)}}),V.remote||p.handleTableData(!0).then(ka)))}},bC=()=>{const{checkboxConfig:I}=e;if(I){const{fullDataRowIdData:V}=d,H=Me.value,{checkAll:Y,checkRowKeys:Q}=H;if(Y)ma(!0,!0);else if(Q){const oe=[];Q.forEach(re=>{V[re]&&oe.push(V[re].row)}),ko(oe,!0,!0)}}},bu=()=>{const{radioConfig:I}=e;if(I){const{fullDataRowIdData:V}=d,H=ye.value,{checkRowKey:Y,reserve:Q}=H;if(Y&&(V[Y]&&Pd(V[Y].row,!0),Q)){const oe=Mu(te);d.radioReserveRow={[oe]:Y}}}},qE=()=>{const{expandConfig:I}=e;if(I){const{fullDataRowIdData:V}=d,H=ve.value,{expandAll:Y,expandRowKeys:Q}=H;if(Y)f.setAllRowExpand(!0);else if(Q){const oe=[];Q.forEach(re=>{V[re]&&oe.push(V[re].row)}),f.setRowExpand(oe,!0)}}},CC=I=>{ye.value.reserve&&(d.radioReserveRow=I)},pi=(I,V)=>{const{checkboxReserveRowMap:H}=d;if(Me.value.reserve){const Q=ct(te,I);V?H[Q]=I:H[Q]&&delete H[Q]}},Pd=(I,V)=>{const H=ye.value,{checkMethod:Y}=H;return I&&(V||!Y||Y({row:I}))&&(c.selectRadioRow=I,CC(I)),a.nextTick()},ko=(I,V,H)=>(I&&!U.isArray(I)&&(I=[I]),te.handleBatchSelectRows(I,!!V,H),te.checkSelectionStatus(),a.nextTick()),ma=(I,V)=>{const{treeConfig:H}=e,{selectCheckboxMaps:Y}=c,{afterFullData:Q,checkboxReserveRowMap:oe}=d,re=we.value,ce=re.children||re.childrenField,de=Me.value,{checkField:me,reserve:ge,checkMethod:Be}=de,xe=de.indeterminateField||de.halfField,Ie={};if(me){const Le=Ae=>{(V||!Be||Be({row:Ae}))&&(I&&(Ie[ct(te,Ae)]=Ae),U.set(Ae,me,I)),H&&xe&&U.set(Ae,xe,!1)};H?U.eachTree(Q,Le,{children:ce}):Q.forEach(Le)}else H?I?U.eachTree(Q,Le=>{(V||!Be||Be({row:Le}))&&(Ie[ct(te,Le)]=Le)},{children:ce}):!V&&Be&&U.eachTree(Q,Le=>{const Ae=ct(te,Le);!Be({row:Le})&&Y[Ae]&&(Ie[Ae]=Le)},{children:ce}):I?!V&&Be?Q.forEach(Le=>{const Ae=ct(te,Le);(Y[Ae]||Be({row:Le}))&&(Ie[Ae]=Le)}):Q.forEach(Le=>{Ie[ct(te,Le)]=Le}):!V&&Be&&Q.forEach(Le=>{const Ae=ct(te,Le);!Be({row:Le})&&Y[Ae]&&(Ie[Ae]=Le)});return ge&&(I?U.each(Ie,(Le,Ae)=>{oe[Ae]=Le}):Q.forEach(Le=>pi(Le,!1))),c.selectCheckboxMaps=me?{}:Ie,c.isAllSelected=I,c.isIndeterminate=!1,c.treeIndeterminateMaps={},d.treeIndeterminateRowMaps={},p.checkSelectionStatus(),a.nextTick()},Vd=()=>{const{treeConfig:I}=e,{expandColumn:V,currentRow:H,selectCheckboxMaps:Y,selectRadioRow:Q,rowExpandedMaps:oe,treeExpandedMaps:re}=c,{fullDataRowIdData:ce,fullAllDataRowIdData:de,radioReserveRow:me}=d,ge=ve.value,Be=we.value,xe=ye.value,Ie=Me.value;if(Q&&!de[ct(te,Q)]&&(c.selectRadioRow=null),xe.reserve&&me){const Le=ct(te,me);ce[Le]&&Pd(ce[Le].row,!0)}c.selectCheckboxMaps=lr(Y),Ie.reserve&&ko(An(d.checkboxReserveRowMap),!0,!0),H&&!de[ct(te,H)]&&(c.currentRow=null),c.rowExpandedMaps=V?lr(oe):{},V&&ge.reserve&&f.setRowExpand(An(d.rowExpandedReserveRowMap),!0),c.treeExpandedMaps=I?lr(re):{},I&&Be.reserve&&f.setTreeExpand(An(d.treeExpandedReserveRowMap),!0)},wC=()=>{const{treeConfig:I}=e;if(I){const{tableFullData:V}=d,H=we.value,{expandAll:Y,expandRowKeys:Q}=H,oe=H.children||H.childrenField;if(Y)f.setAllTreeExpand(!0);else if(Q){const re=[],ce=Mu(te);Q.forEach(de=>{const me=U.findTree(V,ge=>de===U.get(ge,ce),{children:oe});me&&re.push(me.item)}),f.setTreeExpand(re,!0)}}},bc=I=>{const V=we.value,H=Me.value,{transform:Y,loadMethod:Q}=V,{checkStrictly:oe}=H;return new Promise(re=>{if(Q){const{treeExpandLazyLoadedMaps:ce}=c,{fullAllDataRowIdData:de}=d,me=ct(te,I),ge=de[me];ce[me]=I,Promise.resolve(Q({$table:te,row:I})).then(Be=>{if(ge&&(ge.treeLoaded=!0),ce[me]&&delete ce[me],U.isArray(Be)||(Be=[]),Be)return f.loadTreeChildren(I,Be).then(xe=>{const{treeExpandedMaps:Ie}=c;return xe.length&&!Ie[me]&&(Ie[me]=I),!oe&&f.isCheckedByCheckboxRow(I)&&ko(xe,!0),a.nextTick().then(()=>{if(Y)return p.handleTableData(),yc(),a.nextTick()})})}).catch(()=>{const{treeExpandLazyLoadedMaps:Be}=c;ge&&(ge.treeLoaded=!1),Be[me]&&delete Be[me]}).finally(()=>{a.nextTick().then(()=>f.recalculate()).then(()=>re())})}else re()})},Fd=(I,V)=>{const{treeExpandedReserveRowMap:H}=d;if(we.value.reserve){const Q=ct(te,I);V?H[Q]=I:H[Q]&&delete H[Q]}},sg=I=>new Promise(V=>{const H=ve.value,{loadMethod:Y}=H;if(Y){const{fullAllDataRowIdData:Q}=d,oe=Object.assign({},c.rowExpandLazyLoadedMaps),re=ct(te,I),ce=Q[re];oe[re]=I,c.rowExpandLazyLoadedMaps=oe,Y({$table:te,row:I,rowIndex:f.getRowIndex(I),$rowIndex:f.getVMRowIndex(I)}).then(()=>{const de=Object.assign({},c.rowExpandedMaps);ce&&(ce.expandLoaded=!0),de[re]=I,c.rowExpandedMaps=de}).catch(()=>{ce&&(ce.expandLoaded=!1)}).finally(()=>{const de=Object.assign({},c.rowExpandLazyLoadedMaps);de[re]&&delete de[re],c.rowExpandLazyLoadedMaps=de,a.nextTick().then(()=>f.recalculate()).then(()=>V())})}else V()}),SC=(I,V)=>{const{rowExpandedReserveRowMap:H}=d;if(ve.value.reserve){const Q=ct(te,I);V?H[Q]=I:H[Q]&&delete H[Q]}},_r=()=>{const{mergeCells:I}=e;I&&f.setMergeCells(I)},Fi=()=>{const{mergeFooterItems:I}=e;I&&f.setMergeFooterItems(I)},ps=()=>a.nextTick().then(()=>{const{scrollXLoad:I,scrollYLoad:V}=c,{scrollXStore:H,scrollYStore:Y}=d,Q=pe.value,oe=K.value;if(I){const{visibleSize:de}=Yn(),me=Math.max(0,oe.oSize?U.toNumber(oe.oSize):gv.edge?5:0);H.offsetSize=me,H.visibleSize=de,H.endIndex=Math.max(H.startIndex+H.visibleSize+me,H.endIndex),p.updateScrollXData().then(()=>{zd()})}else p.updateScrollXSpace();yu();const re=Ue();Y.rowHeight=re,c.rowHeight=re;const{visibleSize:ce}=mt();if(V){const de=Math.max(0,Q.oSize?U.toNumber(Q.oSize):gv.edge?10:0);Y.offsetSize=de,Y.visibleSize=ce,Y.endIndex=Math.max(Y.startIndex+ce+de,Y.endIndex),p.updateScrollYData().then(()=>{ug()})}else p.updateScrollYSpace();a.nextTick(ka)}),ZE=I=>{const V=h.value;return d.rceRunTime=Date.now(),!V||!V.clientWidth?a.nextTick():(gu(),gc(),ps().then(()=>{if(I===!0)return yu(),gu(),gc(),ps()}))},xC=I=>{const{keepSource:V,treeConfig:H,showOverflow:Y}=e,{editStore:Q,scrollYLoad:oe}=c,{scrollYStore:re,scrollXStore:ce,lastScrollLeft:de,lastScrollTop:me}=d,ge=we.value,Be=Te.value,{transform:xe}=ge,Ie=ge.children||ge.childrenField;let Le=[],Ae=a.reactive(I?I.slice(0):[]);H&&(xe?(Le=U.toArrayTree(Ae,{key:ge.rowField,parentKey:ge.parentField,children:Ie,mapChildren:ge.mapChildrenField}),Ae=Le.slice(0)):Le=Ae.slice(0)),re.startIndex=0,re.endIndex=1,ce.startIndex=0,ce.endIndex=1,c.scrollVMLoading=!1,Q.insertMaps={},Q.removeMaps={};const qe=_C(Ae);if(c.isDragRowMove=!1,d.tableFullData=Ae,d.tableFullTreeData=Le,p.cacheRowMap(!0),d.tableSynchData=I,V&&p.cacheSourceMap(Ae),qe&&Y&&!Be.height){const gt=d.tableFullColumn.find(Oe=>Oe.showOverflow===!1);gt&&Wr("vxe.error.errProp",[`column[field="${gt.field}"].show-overflow=false`,"show-overflow=true"])}return te.clearCellAreas&&e.mouseConfig&&(te.clearCellAreas(),te.clearCopyCellArea()),f.clearMergeCells(),f.clearMergeFooterItems(),p.handleTableData(!0),f.updateFooter(),a.nextTick().then(()=>{ro(),ka()}).then(()=>{ps()}).then(()=>(qe&&(re.endIndex=re.visibleSize),Vd(),p.checkSelectionStatus(),new Promise(gt=>{a.nextTick().then(()=>f.recalculate()).then(()=>{let Oe=de,ut=me;const wt=K.value,Lt=pe.value;wt.scrollToLeftOnChange&&(Oe=0),Lt.scrollToTopOnChange&&(ut=0),oe===qe?O2(te,Oe,ut).then(gt):setTimeout(()=>O2(te,Oe,ut).then(gt))})})))},kC=()=>{bC(),bu(),qE(),wC(),_r(),Fi(),a.nextTick(()=>setTimeout(()=>f.recalculate()))},mle=()=>{eh()},QE=()=>{const{scrollXLoad:I}=c,{visibleColumn:V,scrollXStore:H,fullColumnIdData:Y}=d,Q=I?V.slice(H.startIndex,H.endIndex):V.slice(0);Q.forEach((oe,re)=>{const ce=oe.id,de=Y[ce];de&&(de.$index=re)}),c.tableColumn=Q},NP=()=>{const I=U.orderBy(d.collectColumn,"renderSortNumber");d.collectColumn=I;const V=EC(I);d.tableFullColumn=V,mu()},zd=()=>{const{mergeList:I,mergeFooterList:V}=c,{scrollXStore:H}=d,{startIndex:Y,endIndex:Q,offsetSize:oe}=H,{toVisibleIndex:re,visibleSize:ce}=Yn(),de={startIndex:Math.max(0,re-1-oe),endIndex:re+ce+oe};Et(I.concat(V),de,"col");const{startIndex:me,endIndex:ge}=de;(re<=Y||re>=Q-ce-1)&&(Y!==me||Q!==ge)&&(H.startIndex=me,H.endIndex=ge,p.updateScrollXData()),f.closeTooltip()},EC=I=>{const V=[];return I.forEach(H=>{V.push(...H.children&&H.children.length?EC(H.children):[H])}),V},JE=I=>{const{showOverflow:V}=e,H=Te.value,Y=[],Q=[],oe=[],{isGroup:re,columnStore:ce}=c,de=K.value,{collectColumn:me,tableFullColumn:ge,scrollXStore:Be,fullColumnIdData:xe}=d;if(re){const Ae=[],qe=[],gt=[];U.eachTree(me,(Oe,ut,wt,Lt,Pt)=>{const an=mv(Oe);Pt&&Pt.fixed&&(Oe.fixed=Pt.fixed),Pt&&Oe.fixed!==Pt.fixed&&Wr("vxe.error.groupFixed"),an?Oe.visible=!!U.findTree(Oe.children,rn=>mv(rn)?!1:rn.visible):Oe.visible&&(Oe.fixed==="left"?Y.push(Oe):Oe.fixed==="right"?oe.push(Oe):Q.push(Oe))}),me.forEach(Oe=>{Oe.visible&&(Oe.fixed==="left"?Ae.push(Oe):Oe.fixed==="right"?gt.push(Oe):qe.push(Oe))}),c.tableGroupColumn=Ae.concat(qe).concat(gt)}else ge.forEach(Ae=>{Ae.visible&&(Ae.fixed==="left"?Y.push(Ae):Ae.fixed==="right"?oe.push(Ae):Q.push(Ae))});const Ie=Y.concat(Q).concat(oe),Le=!!de.enabled&&de.gt>-1&&(de.gt===0||de.gt<ge.length);if(c.hasFixedColumn=Y.length>0||oe.length>0,Object.assign(ce,{leftList:Y,centerList:Q,rightList:oe}),Le){if(V&&!H.height){const Ae=d.tableFullColumn.find(qe=>qe.showOverflow===!1);Ae&&Wr("vxe.error.errProp",[`column[field="${Ae.field}"].show-overflow=false`,"show-overflow=true"])}if(I){const{visibleSize:Ae}=Yn();Be.startIndex=0,Be.endIndex=Ae,Be.visibleSize=Ae}}return(Ie.length!==d.visibleColumn.length||!d.visibleColumn.every((Ae,qe)=>Ae===Ie[qe]))&&(f.clearMergeCells(),f.clearMergeFooterItems()),c.scrollXLoad=Le,Ie.forEach((Ae,qe)=>{const gt=Ae.id,Oe=xe[gt];Oe&&(Oe._index=qe)}),d.visibleColumn=Ie,QE(),I?f.updateFooter().then(()=>f.recalculate()).then(()=>(f.updateCellAreas(),f.recalculate())):f.updateFooter()},gle=()=>{const{collectColumn:I}=d;I.forEach((V,H)=>{const Y=H+1;V.sortNumber=Y,V.renderSortNumber=Y})},BP=I=>{d.collectColumn=I;const V=EC(I);return d.tableFullColumn=V,c._isLoading=!0,c.isDragColMove=!1,gle(),Promise.resolve(di()).then(()=>(c._isLoading=!1,mu(),JE(!0).then(()=>{c.scrollXLoad&&zd()}),f.clearMergeCells(),f.clearMergeFooterItems(),p.handleTableData(!0),a.nextTick().then(()=>(X&&X.syncUpdate({collectColumn:d.collectColumn,$table:te}),te.handleUpdateCustomColumn&&te.handleUpdateCustomColumn(),f.recalculate()))))},_C=I=>{const{treeConfig:V}=e,H=pe.value,Y=we.value,{transform:Q}=Y,oe=I||d.tableFullData,re=(Q||!V)&&!!H.enabled&&H.gt>-1&&(H.gt===0||H.gt<oe.length);return c.scrollYLoad=re,re},OP=(I,V)=>{const{treeExpandedMaps:H,treeExpandLazyLoadedMaps:Y,treeNodeColumn:Q}=c,oe=Object.assign({},H),{fullAllDataRowIdData:re,tableFullData:ce}=d,de=we.value,{reserve:me,lazy:ge,accordion:Be,toggleMethod:xe}=de,Ie=de.children||de.childrenField,Le=de.hasChild||de.hasChildField,Ae=[],qe=f.getColumnIndex(Q),gt=f.getVMColumnIndex(Q);let Oe=xe?I.filter(ut=>xe({$table:te,expanded:V,column:Q,columnIndex:qe,$columnIndex:gt,row:ut})):I;if(Be){Oe=Oe.length?[Oe[Oe.length-1]]:[];const ut=U.findTree(ce,wt=>wt===Oe[0],{children:Ie});ut&&ut.items.forEach(wt=>{const Lt=ct(te,wt);oe[Lt]&&delete oe[Lt]})}return V?Oe.forEach(ut=>{const wt=ct(te,ut);if(!oe[wt]){const Lt=re[wt];Lt&&(ge&&ut[Le]&&!Lt.treeLoaded&&!Y[wt]?Ae.push(bc(ut)):ut[Ie]&&ut[Ie].length&&(oe[wt]=ut))}}):Oe.forEach(ut=>{const wt=ct(te,ut);oe[wt]&&delete oe[wt]}),me&&Oe.forEach(ut=>Fd(ut,V)),c.treeExpandedMaps=oe,Promise.all(Ae).then(()=>f.recalculate())},yle=(I,V)=>OP(I,V).then(()=>{fi(),p.handleTableData(),yc()}).then(()=>f.recalculate()).then(()=>{setTimeout(()=>{f.updateCellAreas()},30)}),IP=(I,V)=>{ma(V),I&&sr("checkbox-all",{records:f.getCheckboxRecords(),reserves:f.getCheckboxReserveRecords(),indeterminates:f.getCheckboxIndeterminateRecords(),checked:V},I)},ug=()=>{const{showOverflow:I}=e,{mergeList:V}=c,{tableHeight:H,scrollYStore:Y}=d,{startIndex:Q,endIndex:oe,offsetSize:re}=Y,ce=I?re:re+Math.min(8,Math.ceil(H/200)),{toVisibleIndex:de,visibleSize:me}=mt(),ge={startIndex:Math.max(0,de-1-re),endIndex:de+me+ce};Et(V,ge,"row");const{startIndex:Be,endIndex:xe}=ge;(de<=Q||de>=oe-me-1)&&(Q!==Be||oe!==xe)&&(Y.startIndex=Be,Y.endIndex=xe,te.updateScrollYData())},TC=I=>function(V){const{fullAllDataRowIdData:H}=d;if(V){const Y=ct(te,V),Q=H[Y];if(Q)return Q[I]}return-1},e_=I=>function(V){const{fullColumnIdData:H}=d;if(V){const Y=H[V.id];if(Y)return Y[I]}return-1},ble=()=>{const{lxTimeout:I,lxRunTime:V,scrollXStore:H}=d,{visibleSize:Y}=H,Q=Math.min(80,Math.floor(Y*3));I&&clearTimeout(I),(!V||V+Q<Date.now())&&(d.lxRunTime=Date.now(),zd()),d.lxTimeout=setTimeout(()=>{d.lxTimeout=void 0,d.lxRunTime=void 0,zd()},Q)},Cle=()=>{const{lyTimeout:I,lyRunTime:V,scrollYStore:H}=d,{visibleSize:Y}=H,Q=Math.min(80,Math.floor(Y));I&&clearTimeout(I),(!V||V+Q<Date.now())&&(d.lyRunTime=Date.now(),ug()),d.lyTimeout=setTimeout(()=>{d.lyTimeout=void 0,d.lyRunTime=void 0,ug()},Q)},wle=I=>{const{intoRunScroll:V,inFooterScroll:H,inBodyScroll:Y,lastScrollTop:Q}=d;if(!V&&(H||Y))return;const oe=w.value,re=S.value,ce=x.value,de=re.$el,me=oe?oe.$el:null,ge=ce?ce.$el:null,Be=W.value,xe=I.currentTarget,{scrollLeft:Ie}=xe,Le=Be||de;let Ae=0;Le&&(Ae=Le.scrollTop);const qe=!0,gt=Ae!==Q;d.inVirtualScroll=!0,ca(de,Ie),ca(me,Ie),ca(ge,Ie),te.triggerScrollXEvent(I),te.handleScrollEvent(I,gt,qe,Ae,Ie,{type:"table",fixed:""})},Sle=I=>{const{intoRunScroll:V,inFooterScroll:H,inBodyScroll:Y,lastScrollLeft:Q}=d;if(!V&&(H||Y))return;const oe=S.value,re=_.value,ce=A.value,de=oe.$el,me=re?re.$el:null,ge=ce?ce.$el:null,Be=$.value,xe=I.currentTarget,{scrollTop:Ie}=xe,Le=Be||de;let Ae=0;Le&&(Ae=Le.scrollLeft);const qe=Ae!==Q,gt=!0;d.inVirtualScroll=!0,Hr(de,Ie),Hr(me,Ie),Hr(ge,Ie),te.triggerScrollYEvent(I),te.handleScrollEvent(I,gt,qe,Ie,Ae,{type:"table",fixed:""})},xle=(I,V)=>{const{scrollXLoad:H,scrollYLoad:Y}=c,{lcsTimeout:Q}=d;Q&&clearTimeout(Q),d.lcsTimeout=setTimeout(()=>{d.lcsRunTime=Date.now(),d.lcsTimeout=void 0,d.inVirtualScroll=!1,d.inBodyScroll=!1,d.inFooterScroll=!1,d.bodyScrollType="",I&&H&&p.updateScrollXData().then(()=>{zd()}),V&&Y&&p.updateScrollYData().then(()=>{ug()}),f.updateCellAreas()},200)};let RP;const sr=(I,V,H)=>{r(I,WCt(H,{$table:te,$grid:Z},V))},kle=(I,V)=>{const{fullColumnIdData:H}=d,Y=na(te,I);return Y&&H[Y.id]?PW(te,Y,V):a.nextTick()};f={dispatchEvent:sr,clearAll(){return wCt(te)},syncData(){return lv("vxe.error.delFunc",["syncData","getData"]),a.nextTick().then(()=>(c.tableData=[],r("update:data",d.tableFullData),a.nextTick()))},updateData(){const{scrollXLoad:I,scrollYLoad:V}=c;return p.handleTableData(!0).then(()=>{if(f.updateFooter(),I||V)return I&&p.updateScrollXSpace(),V&&p.updateScrollYSpace(),f.refreshScroll()}).then(()=>(f.updateCellAreas(),f.recalculate(!0))).then(()=>{setTimeout(()=>te.recalculate(),50)})},loadData(I){const{initStatus:V}=d;return xC(I).then(()=>(d.inited=!0,d.initStatus=!0,V||kC(),f.recalculate()))},reloadData(I){return f.clearAll().then(()=>(d.inited=!0,d.initStatus=!0,xC(I))).then(()=>(kC(),f.recalculate()))},setRow(I,V){if(I&&V){let H=I;U.isArray(I)||(H=[I]);const Y=Mu(te);H.forEach(Q=>{const oe=ct(te,Q),re=U.clone(Object.assign({},V),!0);U.set(re,Y,oe),Object.assign(Q,re)})}return a.nextTick()},reloadRow(I,V,H){const{keepSource:Y}=e,{tableData:Q}=c,{tableSourceData:oe}=d;if(Y){const re=f.getRowIndex(I),ce=oe[re];if(ce&&I)if(H){const de=U.clone(U.get(V||I,H),!0);U.set(I,H,de),U.set(ce,H,de)}else{const de=Mu(te),me=ct(te,I),ge=U.clone(Object.assign({},V),!0);U.set(ge,de,me),U.destructuring(ce,Object.assign(I,ge))}c.tableData=Q.slice(0)}return a.nextTick()},getParams(){return e.params},loadTreeChildren(I,V){const{keepSource:H}=e,{tableSourceData:Y,fullDataRowIdData:Q,fullAllDataRowIdData:oe,sourceDataRowIdData:re}=d,ce=we.value,{transform:de,mapChildrenField:me}=ce,ge=ce.children||ce.childrenField,Be=oe[ct(te,I)],xe=Be?Be.level:0;return f.createData(V).then(Ie=>{if(H){const Le=ct(te,I),Ae=U.findTree(Y,qe=>Le===ct(te,qe),{children:ge});Ae&&(Ae.item[ge]=U.clone(Ie,!0)),Ie.forEach(qe=>{const gt=ct(te,qe);re[gt]=U.clone(qe,!0)})}return U.eachTree(Ie,(Le,Ae,qe,gt,Oe,ut)=>{const wt=ct(te,Le),Lt=Oe||Be.row,Pt={row:Le,rowid:wt,seq:-1,index:Ae,_index:-1,$index:-1,items:qe,parent:Lt,level:xe+ut.length,height:0,oTop:0};Q[wt]=Pt,oe[wt]=Pt},{children:ge}),I[ge]=Ie,de&&(I[me]=U.clone(Ie,!1)),yc(),Ie})},loadColumn(I){const V=U.mapTree(I,H=>a.reactive(qt.createColumn(te,H)));return BP(V)},reloadColumn(I){return f.clearAll().then(()=>f.loadColumn(I))},getRowNode(I){if(I){const{fullAllDataRowIdData:V}=d,H=I.getAttribute("rowid");if(H){const Y=V[H];if(Y)return{rowid:Y.rowid,item:Y.row,index:Y.index,items:Y.items,parent:Y.parent}}}return null},getColumnNode(I){if(I){const{fullColumnIdData:V}=d,H=I.getAttribute("colid");if(H){const Y=V[H];if(Y)return{colid:Y.colid,item:Y.column,index:Y.index,items:Y.items,parent:Y.parent}}}return null},getRowSeq:TC("seq"),getRowIndex:TC("index"),getVTRowIndex:TC("_index"),getVMRowIndex:TC("$index"),getColumnIndex:e_("index"),getVTColumnIndex:e_("_index"),getVMColumnIndex:e_("$index"),createData(I){return a.nextTick().then(()=>a.reactive(p.defineField(I)))},createRow(I){const V=U.isArray(I);return V||(I=[I||{}]),f.createData(I).then(H=>V?H:H[0])},revertData(I,V){const{keepSource:H}=e,{tableSourceData:Y,sourceDataRowIdData:Q}=d;if(!H)return a.nextTick();let oe=I;return I?U.isArray(I)||(oe=[I]):oe=U.toArray(te.getUpdateRecords()),oe.length&&oe.forEach(re=>{if(!f.isInsertByRow(re)){const ce=ct(te,re),de=Q[ce];de&&re&&(V?U.set(re,V,U.clone(U.get(de,V),!0)):U.destructuring(re,U.clone(de,!0)))}}),I?a.nextTick():f.reloadData(Y)},clearData(I,V){const{tableFullData:H,visibleColumn:Y}=d;return arguments.length?I&&!U.isArray(I)&&(I=[I]):I=H,V?I.forEach(Q=>U.set(Q,V,null)):I.forEach(Q=>{Y.forEach(oe=>{oe.field&&Rs(Q,oe,null)})}),a.nextTick()},getCellElement(I,V){const H=na(te,V);if(!H)return null;const Y=ct(te,I),Q=S.value,oe=_.value,re=A.value;let ce;return H&&(H.fixed&&(H.fixed==="left"?oe&&(ce=oe.$el):re&&(ce=re.$el)),ce||(ce=Q.$el),ce)?ce.querySelector(`.vxe-body--row[rowid="${Y}"] .${H.id}`):null},getCellLabel(I,V){const H=na(te,V);if(!H)return null;const Y=H.formatter,Q=ba(I,H);let oe=Q;if(Y){let re;const{fullAllDataRowIdData:ce}=d,de=ct(te,I),me=H.id,ge=ce[de];if(ge&&(re=ge.formatData,re||(re=ce[de].formatData={}),ge&&re[me]&&re[me].value===Q))return re[me].label;const Be={cellValue:Q,row:I,rowIndex:f.getRowIndex(I),column:H,columnIndex:f.getColumnIndex(H)};if(U.isString(Y)){const xe=XW.get(Y),Ie=xe?xe.tableCellFormatMethod||xe.cellFormatMethod:null;oe=Ie?Ie(Be):""}else if(U.isArray(Y)){const xe=XW.get(Y[0]),Ie=xe?xe.tableCellFormatMethod||xe.cellFormatMethod:null;oe=Ie?Ie(Be,...Y.slice(1)):""}else oe=Y(Be);re&&(re[me]={value:Q,label:oe})}return oe},isInsertByRow(I){const{editStore:V}=c,H=ct(te,I);return!!V.insertMaps[H]},removeInsertRow(){const{editStore:I}=c;return I.insertMaps={},te.remove(te.getInsertRecords())},isUpdateByRow(I,V){const{keepSource:H}=e,{tableFullColumn:Y,fullDataRowIdData:Q,sourceDataRowIdData:oe}=d;if(H){const re=ct(te,I);if(!Q[re])return!1;const ce=oe[re];if(ce){if(arguments.length>1)return!mn(ce,I,V);for(let de=0,me=Y.length;de<me;de++){const ge=Y[de].field;if(ge&&!mn(ce,I,ge))return!0}}}return!1},getColumns(I){const V=d.visibleColumn;return U.isUndefined(I)?V.slice(0):V[I]},getColid(I){const V=na(te,I);return V?V.id:null},getColumnById(I){const V=d.fullColumnIdData;return I&&V[I]?V[I].column:null},getColumnByField(I){const V=d.fullColumnFieldData;return I&&V[I]?V[I].column:null},getParentColumn(I){const V=d.fullColumnIdData,H=na(te,I);return H&&H.parentId&&V[H.parentId]?V[H.parentId].column:null},getTableColumn(){return{collectColumn:d.collectColumn.slice(0),fullColumn:d.tableFullColumn.slice(0),visibleColumn:d.visibleColumn.slice(0),tableColumn:c.tableColumn.slice(0)}},getFullColumns(){const{collectColumn:I}=d;return I.slice(0)},getData(I){const V=e.data||d.tableSynchData;return U.isUndefined(I)?V.slice(0):V[I]},getCheckboxRecords(I){const{treeConfig:V}=e,{tableFullData:H,afterFullData:Y,afterTreeFullData:Q,tableFullTreeData:oe,fullDataRowIdData:re,afterFullRowMaps:ce}=d,de=we.value,me=Me.value,{transform:ge,mapChildrenField:Be}=de,{checkField:xe}=me,Ie=de.children||de.childrenField;let Le=[];const Ae=I?ge?oe:H:ge?Q:Y;if(xe)V?Le=U.filterTree(Ae,qe=>U.get(qe,xe),{children:ge?Be:Ie}):Le=Ae.filter(qe=>U.get(qe,xe));else{const{selectCheckboxMaps:qe}=c;U.each(qe,(gt,Oe)=>{I?re[Oe]&&Le.push(re[Oe].row):ce[Oe]&&Le.push(ce[Oe])})}return Le},getTreeRowChildren(I){const{treeConfig:V}=e,{fullDataRowIdData:H}=d,Y=we.value,{transform:Q,mapChildrenField:oe}=Y,re=Y.children||Y.childrenField;if(I&&V){let ce;if(U.isString(I)?ce=I:ce=ct(te,I),ce){const de=H[ce],me=de?de.row:null;if(me)return me[Q?oe:re]||[]}}return[]},getTreeParentRow(I){const{treeConfig:V}=e,{fullDataRowIdData:H}=d;if(I&&V){let Y;if(U.isString(I)?Y=I:Y=ct(te,I),Y){const Q=H[Y];return Q?Q.parent:null}}return null},getParentRow(I){return lv("vxe.error.delFunc",["getParentRow","getTreeParentRow"]),te.getTreeParentRow(I)},getRowById(I){const{fullDataRowIdData:V}=d,H=U.eqNull(I)?"":encodeURIComponent(I||"");return V[H]?V[H].row:null},getRowid(I){return ct(te,I)},getTableData(){const{tableData:I,footerTableData:V}=c,{tableFullData:H,afterFullData:Y,tableFullTreeData:Q}=d;return{fullData:e.treeConfig?Q.slice(0):H.slice(0),visibleData:Y.slice(0),tableData:I.slice(0),footerData:V.slice(0)}},getFullData(){const{treeConfig:I}=e,{tableFullData:V,tableFullTreeData:H}=d;if(I){const Y=we.value,{transform:Q,mapChildrenField:oe}=Y,re=Y.children||Y.childrenField;return Q?U.toArrayTree(U.toTreeArray(H,{children:oe}),{children:re}):H.slice(0)}return V.slice(0)},setColumnFixed(I,V){let H=!1;const Y=U.isArray(I)?I:[I],Q=be.value,oe=En.value;for(let re=0;re<Y.length;re++){const ce=Y[re],de=na(te,ce),me=RW(te,de);if(me&&me.fixed!==V){if(!me.fixed&&oe)return Ze.modal&&Ze.modal.message({status:"error",content:Ic("vxe.table.maxFixedCol",[Q.maxFixedSize])}),a.nextTick();U.eachTree([me],ge=>{ge.fixed=V}),p.saveCustomStore("update:fixed"),H||(H=!0)}}return H?f.refreshColumn():a.nextTick()},clearColumnFixed(I){let V=!1;return(U.isArray(I)?I:[I]).forEach(Y=>{const Q=na(te,Y),oe=RW(te,Q);oe&&oe.fixed&&(U.eachTree([oe],re=>{re.fixed=null}),p.saveCustomStore("update:fixed"),V||(V=!0))}),V?f.refreshColumn():a.nextTick()},hideColumn(I){let V=!1;return(U.isArray(I)?I:[I]).forEach(Y=>{const Q=na(te,Y);Q&&Q.visible&&(Q.visible=!1,V||(V=!0))}),V?p.handleCustom():a.nextTick()},showColumn(I){let V=!1;return(U.isArray(I)?I:[I]).forEach(Y=>{const Q=na(te,Y);Q&&!Q.visible&&(Q.visible=!0,V||(V=!0))}),V?p.handleCustom():a.nextTick()},setColumnWidth(I,V){let H=!1;return(U.isArray(I)?I:[I]).forEach(Q=>{const oe=na(te,Q);if(oe){const re=U.toInteger(V);let ce=re;if(Ny(V)){const de=S.value,me=de?de.$el:null,ge=me?me.clientWidth-1:0;ce=Math.floor(re*ge)}oe.resizeWidth=ce,H||(H=!0)}}),H?f.refreshColumn():a.nextTick()},getColumnWidth(I){const V=na(te,I);return V?V.renderWidth:0},resetColumn(I){return lv("vxe.error.delFunc",["resetColumn","resetCustom"]),te.resetCustom(I)},refreshColumn(I){return I&&NP(),JE(!0).then(()=>f.refreshScroll()).then(()=>f.recalculate())},refreshScroll(){const{lastScrollLeft:I,lastScrollTop:V}=d,H=S.value,Y=x.value,Q=_.value,oe=A.value,re=H?H.$el:null,ce=Q?Q.$el:null,de=oe?oe.$el:null,me=Y?Y.$el:null;return new Promise(ge=>{if(I||V)return O2(te,I,V).then().then(()=>{setTimeout(ge,30)});Hr(re,V),Hr(ce,V),Hr(de,V),ca(me,I),setTimeout(ge,30)})},recalculate(I){return new Promise(V=>{const{rceTimeout:H,rceRunTime:Y}=d,oe=Je.value.refreshDelay||20,re=h.value;re&&re.clientWidth&&gc(),H?(clearTimeout(H),Y&&Y+(oe-5)<Date.now()?V(ZE(!!I)):a.nextTick(()=>{V()})):V(ZE(!!I)),d.rceTimeout=setTimeout(()=>{d.rceTimeout=void 0,ZE(!!I)},oe)})},openTooltip(I,V){const H=m.value;return H&&H.open?H.open(I,V):a.nextTick()},closeTooltip(){const{tooltipStore:I}=c,V=v.value,H=m.value;return I.visible&&(Object.assign(I,{row:null,column:null,content:null,visible:!1,currOpts:{}}),V&&V.close&&V.close()),H&&H.close&&H.close(),a.nextTick()},isAllCheckboxChecked(){return c.isAllSelected},isAllCheckboxIndeterminate(){return!c.isAllSelected&&c.isIndeterminate},getCheckboxIndeterminateRecords(I){const{treeConfig:V}=e,{fullDataRowIdData:H}=d,{treeIndeterminateMaps:Y}=c;if(V){const Q=[],oe=[];return U.each(Y,(re,ce)=>{re&&(Q.push(re),H[ce]&&oe.push(re))}),I?Q:oe}return[]},setCheckboxRow(I,V){return I&&!U.isArray(I)&&(I=[I]),ko(I,V,!0)},setCheckboxRowKey(I,V){const{fullAllDataRowIdData:H}=d;U.isArray(I)||(I=[I]);const Y=[];return I.forEach(Q=>{const oe=H[Q];oe&&Y.push(oe.row)}),ko(Y,V,!0)},isCheckedByCheckboxRow(I){const{selectCheckboxMaps:V}=c,H=Me.value,{checkField:Y}=H;return Y?U.get(I,Y):!!V[ct(te,I)]},isCheckedByCheckboxRowKey(I){const{selectCheckboxMaps:V}=c,{fullAllDataRowIdData:H}=d,Y=Me.value,{checkField:Q}=Y;if(Q){const oe=H[I];return oe?U.get(oe.row,Q):!1}return!!V[I]},isIndeterminateByCheckboxRow(I){const{treeIndeterminateMaps:V}=c;return!!V[ct(te,I)]&&!te.isCheckedByCheckboxRow(I)},isIndeterminateByCheckboxRowKey(I){const{treeIndeterminateMaps:V}=c;return!!V[I]&&!te.isCheckedByCheckboxRowKey(I)},toggleCheckboxRow(I){const{selectCheckboxMaps:V}=c,H=Me.value,{checkField:Y}=H,Q=Y?!U.get(I,Y):!V[ct(te,I)];return p.handleBatchSelectRows([I],Q,!0),p.checkSelectionStatus(),a.nextTick()},setAllCheckboxRow(I){return ma(I,!0)},getRadioReserveRecord(I){const{treeConfig:V}=e,{fullDataRowIdData:H,radioReserveRow:Y,afterFullData:Q}=d,oe=ye.value,re=we.value,ce=re.children||re.childrenField;if(oe.reserve&&Y){const de=ct(te,Y);if(I){if(!H[de])return Y}else{const me=Mu(te);if(V){if(U.findTree(Q,Be=>de===U.get(Be,me),{children:ce}))return Y}else if(!Q.some(ge=>de===U.get(ge,me)))return Y}}return null},clearRadioReserve(){return d.radioReserveRow=null,a.nextTick()},getCheckboxReserveRecords(I){const{treeConfig:V}=e,{afterFullData:H,fullDataRowIdData:Y,checkboxReserveRowMap:Q}=d,oe=Me.value,re=we.value,ce=re.children||re.childrenField,de=[];if(oe.reserve){const me={};V?U.eachTree(H,ge=>{me[ct(te,ge)]=1},{children:ce}):H.forEach(ge=>{me[ct(te,ge)]=1}),U.each(Q,(ge,Be)=>{ge&&(I?Y[Be]||de.push(ge):me[Be]||de.push(ge))})}return de},clearCheckboxReserve(){return d.checkboxReserveRowMap={},a.nextTick()},toggleAllCheckboxRow(){return IP(null,!c.isAllSelected),a.nextTick()},clearCheckboxRow(){const{treeConfig:I}=e,{tableFullData:V}=d,H=we.value,Y=H.children||H.childrenField,Q=Me.value,{checkField:oe,reserve:re}=Q,ce=Q.indeterminateField||Q.halfField;if(oe){const de=me=>{I&&ce&&U.set(me,ce,!1),U.set(me,oe,!1)};I?U.eachTree(V,de,{children:Y}):V.forEach(de)}return re&&V.forEach(de=>pi(de,!1)),c.isAllSelected=!1,c.isIndeterminate=!1,c.selectCheckboxMaps={},c.treeIndeterminateMaps={},a.nextTick()},setCurrentRow(I){const V=Te.value,H=h.value;return f.clearCurrentRow(),c.currentRow=I,(V.isCurrent||e.highlightCurrentRow)&&H&&U.arrayEach(H.querySelectorAll(`[rowid="${ct(te,I)}"]`),Y=>Is(Y,"row--current")),a.nextTick()},isCheckedByRadioRow(I){const{selectRadioRow:V}=c;return I&&V?te.eqRow(V,I):!1},isCheckedByRadioRowKey(I){const{selectRadioRow:V}=c;return V?I===ct(te,V):!1},setRadioRow(I){return Pd(I,!0)},setRadioRowKey(I){const{fullAllDataRowIdData:V}=d,H=V[I];return H?Pd(H.row,!0):a.nextTick()},clearCurrentRow(){const I=h.value;return c.currentRow=null,d.hoverRow=null,I&&U.arrayEach(I.querySelectorAll(".row--current"),V=>Ei(V,"row--current")),a.nextTick()},clearRadioRow(){return c.selectRadioRow=null,a.nextTick()},getCurrentRecord(){return Te.value.isCurrent||e.highlightCurrentRow?c.currentRow:null},getRadioRecord(I){const{fullDataRowIdData:V,afterFullRowMaps:H}=d,{selectRadioRow:Y}=c;if(Y){const Q=ct(te,Y);if(I){if(V[Q])return Y}else if(H[Q])return Y}return null},getCurrentColumn(){return be.value.isCurrent||e.highlightCurrentColumn?c.currentColumn:null},setCurrentColumn(I){const V=na(te,I);return V&&(f.clearCurrentColumn(),c.currentColumn=V),a.nextTick()},clearCurrentColumn(){return c.currentColumn=null,a.nextTick()},setPendingRow(I,V){const H=Object.assign({},c.pendingRowMaps);return I&&!U.isArray(I)&&(I=[I]),V?I.forEach(Y=>{const Q=ct(te,Y);Q&&!H[Q]&&(H[Q]=Y)}):I.forEach(Y=>{const Q=ct(te,Y);Q&&H[Q]&&delete H[Q]}),c.pendingRowMaps=H,a.nextTick()},togglePendingRow(I){const V=Object.assign({},c.pendingRowMaps);return I&&!U.isArray(I)&&(I=[I]),I.forEach(H=>{const Y=ct(te,H);Y&&(V[Y]?delete V[Y]:V[Y]=H)}),c.pendingRowMaps=V,a.nextTick()},hasPendingByRow(I){return f.isPendingByRow(I)},isPendingByRow(I){const{pendingRowMaps:V}=c,H=ct(te,I);return!!V[H]},getPendingRecords(){const{pendingRowMaps:I}=c,{fullAllDataRowIdData:V}=d,H=[];return U.each(I,(Y,Q)=>{V[Q]&&H.push(Y)}),H},clearPendingRow(){return c.pendingRowMaps={},a.nextTick()},sort(I,V){const H=pt.value,{multiple:Y,remote:Q,orders:oe}=H;return I&&U.isString(I)&&(I=[{field:I,order:V}]),U.isArray(I)||(I=[I]),I.length?(Y||xa(),(Y?I:[I[0]]).forEach((re,ce)=>{let{field:de,order:me}=re,ge=de;U.isString(de)&&(ge=f.getColumnByField(de)),ge&&ge.sortable&&(oe.indexOf(me)===-1&&(me=xn(ge)),ge.order!==me&&(ge.order=me),ge.sortTime=Date.now()+ce)}),Q||p.handleTableData(!0),a.nextTick().then(()=>(f.updateCellAreas(),ka()))):a.nextTick()},setSort(I,V){const H=pt.value,{multiple:Y,remote:Q,orders:oe}=H;if(U.isArray(I)||(I=[I]),I&&I.length){Y||(I=[I[0]],xa());let re=null;return I.forEach((ce,de)=>{let{field:me,order:ge}=ce,Be=me;U.isString(me)&&(Be=f.getColumnByField(me)),re||(re=Be),Be&&Be.sortable&&(oe.indexOf(ge)===-1&&(ge=xn(Be)),Be.order!==ge&&(Be.order=ge),Be.sortTime=Date.now()+de)}),V&&(Q||p.handleTableData(!0),te.handleColumnSortEvent(new Event("click"),re)),a.nextTick().then(()=>(f.updateCellAreas(),ka()))}return a.nextTick()},clearSort(I){const V=pt.value;if(I){const H=na(te,I);H&&(H.order=null)}else xa();return V.remote||p.handleTableData(!0),a.nextTick().then(ka)},isSort(I){if(I){const V=na(te,I);return V?V.sortable&&!!V.order:!1}return f.getSortColumns().length>0},getSortColumns(){const I=pt.value,{multiple:V,chronological:H}=I,Y=[],{tableFullColumn:Q}=d;return Q.forEach(oe=>{const{field:re,order:ce}=oe;oe.sortable&&ce&&Y.push({column:oe,field:re,property:re,order:ce,sortTime:oe.sortTime})}),V&&H&&Y.length>1?U.orderBy(Y,"sortTime"):Y},closeFilter(){const{filterStore:I}=c,{column:V,visible:H}=I;return Object.assign(I,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),H&&sr("filter-visible",{column:V,property:V.field,field:V.field,filterList:te.getCheckedFilters(),visible:!1},null),a.nextTick()},isActiveFilterByColumn(I){const V=na(te,I);return V?V.filters&&V.filters.some(H=>H.checked):te.getCheckedFilters().length>0},isFilter(I){return f.isActiveFilterByColumn(I)},isRowExpandLoaded(I){const{fullAllDataRowIdData:V}=d,H=V[ct(te,I)];return H&&!!H.expandLoaded},clearRowExpandLoaded(I){const V=Object.assign({},c.rowExpandLazyLoadedMaps),{fullAllDataRowIdData:H}=d,Y=ve.value,{lazy:Q}=Y,oe=ct(te,I),re=H[oe];return Q&&re&&(re.expandLoaded=!1,delete V[oe]),c.rowExpandLazyLoadedMaps=V,a.nextTick()},reloadRowExpand(I){const{rowExpandLazyLoadedMaps:V}=c,H=ve.value,{lazy:Y}=H,Q=ct(te,I);return Y&&!V[Q]&&f.clearRowExpandLoaded(I).then(()=>sg(I)),a.nextTick()},reloadExpandContent(I){return f.reloadRowExpand(I)},toggleRowExpand(I){return f.setRowExpand(I,!f.isRowExpandByRow(I))},setAllRowExpand(I){const V=we.value,{tableFullData:H,tableFullTreeData:Y}=d,Q=V.children||V.childrenField;let oe=[];return e.treeConfig?U.eachTree(Y,re=>{oe.push(re)},{children:Q}):oe=H,f.setRowExpand(oe,I)},setRowExpand(I,V){const{rowExpandedMaps:H,rowExpandLazyLoadedMaps:Y,expandColumn:Q}=c,{fullAllDataRowIdData:oe}=d;let re=Object.assign({},H);const ce=ve.value,{reserve:de,lazy:me,accordion:ge,toggleMethod:Be}=ce,xe=[],Ie=f.getColumnIndex(Q),Le=f.getVMColumnIndex(Q);if(I){U.isArray(I)||(I=[I]),ge&&(re={},I=I.slice(I.length-1,I.length));const Ae=Be?I.filter(qe=>Be({$table:te,expanded:V,column:Q,columnIndex:Ie,$columnIndex:Le,row:qe,rowIndex:f.getRowIndex(qe),$rowIndex:f.getVMRowIndex(qe)})):I;V?Ae.forEach(qe=>{const gt=ct(te,qe);if(!re[gt]){const Oe=oe[gt];me&&!Oe.expandLoaded&&!Y[gt]?xe.push(sg(qe)):re[gt]=qe}}):Ae.forEach(qe=>{const gt=ct(te,qe);re[gt]&&delete re[gt]}),de&&Ae.forEach(qe=>SC(qe,V))}return c.rowExpandedMaps=re,Promise.all(xe).then(()=>f.recalculate())},isRowExpandByRow(I){const{rowExpandedMaps:V}=c,H=ct(te,I);return!!V[H]},isExpandByRow(I){return f.isRowExpandByRow(I)},clearRowExpand(){const{tableFullData:I}=d,V=ve.value,{reserve:H}=V,Y=f.getRowExpandRecords();return c.rowExpandedMaps={},H&&I.forEach(Q=>SC(Q,!1)),a.nextTick().then(()=>{Y.length&&f.recalculate()})},clearRowExpandReserve(){return d.rowExpandedReserveRowMap={},a.nextTick()},getRowExpandRecords(){const I=[];return U.each(c.rowExpandedMaps,V=>{V&&I.push(V)}),I},getTreeExpandRecords(){const I=[];return U.each(c.treeExpandedMaps,V=>{V&&I.push(V)}),I},isTreeExpandLoaded(I){const{fullAllDataRowIdData:V}=d,H=V[ct(te,I)];return H&&!!H.treeLoaded},clearTreeExpandLoaded(I){const V=Object.assign({},c.treeExpandedMaps),{fullAllDataRowIdData:H}=d,Y=we.value,{transform:Q}=Y;return I&&(U.isArray(I)||(I=[I]),I.forEach(oe=>{const re=ct(te,oe),ce=H[re];ce&&(ce.treeLoaded=!1,V[re]&&delete V[re])})),c.treeExpandedMaps=V,Q?(fi(),p.handleTableData()):a.nextTick()},reloadTreeExpand(I){const{treeExpandLazyLoadedMaps:V}=c,H=we.value,Y=H.hasChild||H.hasChildField,{transform:Q,lazy:oe}=H,re=ct(te,I);return oe&&I[Y]&&!V[re]?f.clearTreeExpandLoaded(I).then(()=>bc(I)).then(()=>{if(Q)return fi(),p.handleTableData()}).then(()=>f.recalculate()):a.nextTick()},reloadTreeChilds(I){return f.reloadTreeExpand(I)},toggleTreeExpand(I){return f.setTreeExpand(I,!f.isTreeExpandByRow(I))},setAllTreeExpand(I){const{tableFullData:V}=d,H=we.value,{transform:Y,lazy:Q}=H,oe=H.children||H.childrenField,re=[];return U.eachTree(V,ce=>{const de=ce[oe];(Q||de&&de.length)&&re.push(ce)},{children:oe}),f.setTreeExpand(re,I).then(()=>{if(Y)return fi(),f.recalculate()})},setTreeExpand(I,V){const H=we.value,{transform:Y}=H;return I&&(U.isArray(I)||(I=[I]),I.length)?Y?yle(I,V):OP(I,V):a.nextTick()},isTreeExpandByRow(I){const{treeExpandedMaps:V}=c;return!!V[ct(te,I)]},clearTreeExpand(){const{tableFullTreeData:I}=d,V=we.value,H=V.children||V.childrenField,{transform:Y,reserve:Q}=V,oe=f.getTreeExpandRecords();return c.treeExpandedMaps={},Q&&U.eachTree(I,re=>Fd(re,!1),{children:H}),p.handleTableData().then(()=>{if(Y)return fi(),p.handleTableData()}).then(()=>{if(oe.length)return f.recalculate()})},clearTreeExpandReserve(){return d.treeExpandedReserveRowMap={},a.nextTick()},getScroll(){const{scrollXLoad:I,scrollYLoad:V}=c,Y=S.value.$el;return{virtualX:I,virtualY:V,scrollTop:Y.scrollTop,scrollLeft:Y.scrollLeft}},scrollTo(I,V){const H=S.value,Y=w.value,Q=x.value,oe=_.value,re=A.value,ce=H?H.$el:null,de=oe?oe.$el:null,me=re?re.$el:null,ge=Y?Y.$el:null,Be=Q?Q.$el:null;if(d.intoRunScroll=!0,U.isNumber(I)){const xe=$.value;xe?ca(xe,I):(ca(ce,I),ca(ge,I),ca(Be,I))}if(U.isNumber(V)){const xe=W.value;xe?Hr(xe,V):(Hr(ce,V),Hr(de,V),Hr(me,V))}return c.scrollXLoad||c.scrollYLoad?new Promise(xe=>{setTimeout(()=>{a.nextTick(()=>{d.intoRunScroll=!1,xe()})},30)}):a.nextTick()},scrollToRow(I,V){const{showOverflow:H}=e,{scrollYLoad:Y,scrollXLoad:Q}=c,oe=[];return I&&(e.treeConfig?oe.push(p.scrollToTreeRow(I)):oe.push(LW(te,I))),V&&oe.push(kle(V,I)),Promise.all(oe).then(()=>{if(I)return!H&&(Y||Q)&&(yu(),gu()),a.nextTick()})},scrollToColumn(I){const{fullColumnIdData:V}=d,H=na(te,I);return H&&V[H.id]?PW(te,H):a.nextTick()},clearScroll(){const{scrollXStore:I,scrollYStore:V}=d,H=S.value,Y=w.value,Q=x.value,oe=_.value,re=A.value,ce=oe?oe.$el:null,de=H?H.$el:null,me=re?re.$el:null,ge=Y?Y.$el:null,Be=Q?Q.$el:null,xe=$.value;xe?ca(xe,0):(ca(de,0),ca(ge,0),ca(Be,0));const Ie=W.value;return Ie?Hr(Ie,0):(Hr(de,0),Hr(ce,0),Hr(me,0)),I.startIndex=0,I.endIndex=I.visibleSize,V.startIndex=0,V.endIndex=V.visibleSize,a.nextTick().then(()=>{ca(de,0),ca(ge,0),ca(Be,0),Hr(de,0),Hr(ce,0),Hr(me,0)})},updateFooter(){const{showFooter:I,footerData:V,footerMethod:H}=e,{visibleColumn:Y,afterFullData:Q}=d;let oe=[];return I&&V&&V.length?oe=V.slice(0):I&&H&&(oe=Y.length?H({columns:Y,data:Q,$table:te,$grid:Z}):[]),c.footerTableData=oe,a.nextTick()},updateStatus(I,V){const H=!U.isUndefined(V);return a.nextTick().then(()=>{const{editRules:Y}=e,{validStore:Q}=c,oe=S.value;if(I&&oe&&Y){const{row:re,column:ce}=I,de="change";if(te.hasCellRules&&te.hasCellRules(de,re,ce)){const me=f.getCellElement(re,ce);if(me)return te.validCellRules(de,re,ce,V).then(()=>{H&&Q.visible&&Rs(re,ce,V),te.clearValidate(re,ce)}).catch(({rule:ge})=>{H&&Rs(re,ce,V),te.showValidTooltip({rule:ge,row:re,column:ce,cell:me})})}}})},setMergeCells(I){return e.spanMethod&&Wr("vxe.error.errConflicts",["merge-cells","span-method"]),Yt(I,c.mergeList,d.afterFullData),a.nextTick().then(()=>(f.updateCellAreas(),ka()))},removeMergeCells(I){e.spanMethod&&Wr("vxe.error.errConflicts",["merge-cells","span-method"]);const V=pr(I,c.mergeList,d.afterFullData);return a.nextTick().then(()=>(f.updateCellAreas(),ka(),V))},getMergeCells(){return c.mergeList.slice(0)},clearMergeCells(){return c.mergeList=[],a.nextTick().then(()=>ka())},setMergeFooterItems(I){return e.footerSpanMethod&&Wr("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),Yt(I,c.mergeFooterList),a.nextTick().then(()=>(f.updateCellAreas(),ka()))},removeMergeFooterItems(I){e.footerSpanMethod&&Wr("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]);const V=pr(I,c.mergeFooterList);return a.nextTick().then(()=>(f.updateCellAreas(),ka(),V))},getMergeFooterItems(){return c.mergeFooterList.slice(0)},clearMergeFooterItems(){return c.mergeFooterList=[],a.nextTick().then(()=>ka())},updateCellAreas(){const{mouseConfig:I}=e,V=at.value;return I&&V.area&&te.handleRecalculateCellAreas?te.handleRecalculateCellAreas():a.nextTick()},getCustomStoreData(){const{id:I}=e,V=xt.value,{collectColumn:H}=d,{checkMethod:Y}=V,Q={},oe={},re={},ce={},de={resizableData:void 0,sortData:void 0,visibleData:void 0,fixedData:void 0};if(!I)return Wr("vxe.error.reqProp",["id"]),de;let me=0,ge=0,Be=0,xe=0;return U.eachTree(H,(Ie,Le,Ae,qe,gt)=>{if(!gt&&(H.forEach(Oe=>{const ut=Oe.getKey();ut&&(ge=1,oe[ut]=Oe.renderSortNumber)}),Ie.fixed!==Ie.defaultFixed)){const Oe=Ie.getKey();Oe&&(Be=1,ce[Oe]=Ie.fixed)}if(Ie.resizeWidth){const Oe=Ie.getKey();Oe&&(me=1,Q[Oe]=Ie.renderWidth)}if(!Y||Y({column:Ie})){if(!Ie.visible&&Ie.defaultVisible){const Oe=Ie.getKey();Oe&&(xe=1,re[Oe]=!1)}else if(Ie.visible&&!Ie.defaultVisible){const Oe=Ie.getKey();Oe&&(xe=1,re[Oe]=!0)}}}),me&&(de.resizableData=Q),ge&&(de.sortData=oe),Be&&(de.fixedData=ce),xe&&(de.visibleData=re),de},focus(){return d.isActivated=!0,a.nextTick()},blur(){return d.isActivated=!1,a.nextTick()},connect(I){return I?(X=I,X.syncUpdate({collectColumn:d.collectColumn,$table:te})):Wr("vxe.error.barUnableLink"),a.nextTick()}};const Ele=I=>{const{editStore:V,ctxMenuStore:H,filterStore:Y,customStore:Q}=c,{mouseConfig:oe,editRules:re}=e,ce=h.value,de=ft.value,me=ie.value,ge=tt.value,{actived:Be}=V,xe=g.value,Ie=C.value,Le=b.value,Ae=y.value;if(Ie&&(Hn(I,ce,"vxe-cell--filter").flag||Hn(I,Ie.$el).flag||Hn(I,document.body,"vxe-table--ignore-clear").flag||p.preventEvent(I,"event.clearFilter",Y.args,f.closeFilter)),Le&&(Q.btnEl===I.target||Hn(I,document.body,"vxe-toolbar-custom-target").flag||Hn(I,Le.$el).flag||Hn(I,document.body,"vxe-table--ignore-clear").flag||p.preventEvent(I,"event.clearCustom",{},()=>{te.closeCustom&&te.closeCustom()})),Be.row){if(de.autoClear!==!1){const gt=Be.args.cell;(!gt||!Hn(I,gt).flag)&&(xe&&Hn(I,xe.$el).flag||(!d._lastCallTime||d._lastCallTime+50<Date.now())&&(Hn(I,document.body,"vxe-table--ignore-clear").flag||p.preventEvent(I,"event.clearEdit",Be.args,()=>{let Oe;if(de.mode==="row"){const ut=Hn(I,ce,"vxe-body--row"),wt=ut.flag?f.getRowNode(ut.targetElem):null;Oe=wt?!te.eqRow(wt.item,Be.args.row):!1}else Oe=!Hn(I,ce,"col--edit").flag;if(Oe||(Oe=Hn(I,ce,"vxe-header--row").flag),Oe||(Oe=Hn(I,ce,"vxe-footer--row").flag),!Oe&&e.height&&!c.overflowY){const ut=I.target;Bp(ut,"vxe-table--body-wrapper")&&(Oe=I.offsetY<ut.clientHeight)}(Oe||!Hn(I,ce).flag)&&setTimeout(()=>{te.handleClearEdit(I).then(()=>{!d.isActivated&&re&&me.autoClear&&(c.validErrorMaps={})})})})))}}else if(oe&&!Hn(I,ce).flag&&!(Z&&Hn(I,Z.getRefMaps().refElem.value).flag)&&!(Ae&&Hn(I,Ae.getRefMaps().refElem.value).flag)&&!(X&&Hn(I,X.getRefMaps().refElem.value).flag)&&(te.clearSelected&&te.clearSelected(),ge.autoClear&&te.getCellAreas)){const gt=te.getCellAreas();gt&>.length&&!Hn(I,document.body,"vxe-table--ignore-areas-clear").flag&&p.preventEvent(I,"event.clearAreas",{},()=>{te.clearCellAreas(),te.clearCopyCellArea(),sr("clear-cell-area-selection",{cellAreas:gt},I)})}te.closeMenu&&H.visible&&Ae&&!Hn(I,Ae.getRefMaps().refElem.value).flag&&te.closeMenu();const qe=Hn(I,Z?Z.getRefMaps().refElem.value:ce).flag;!qe&&re&&me.autoClear&&(c.validErrorMaps={}),d.isActivated=qe},_le=()=>{f.closeFilter(),te.closeMenu&&te.closeMenu()},Tle=()=>{f.closeTooltip(),te.closeMenu&&te.closeMenu()},Ale=I=>{const{mouseConfig:V,keyboardConfig:H}=e,{filterStore:Y,ctxMenuStore:Q,editStore:oe}=c,re=at.value,ce=ue.value,{actived:de}=oe;fr.hasKey(I,yi.ESCAPE)&&p.preventEvent(I,"event.keydown",null,()=>{if(sr("keydown-start",{},I),H&&V&&re.area&&te.handleKeyboardCellAreaEvent)te.handleKeyboardCellAreaEvent(I);else if((de.row||Y.visible||Q.visible)&&(I.stopPropagation(),te.closeMenu&&te.closeMenu(),f.closeFilter(),H&&ce.isEsc&&de.row)){const ge=de.args;te.handleClearEdit(I),re.selected&&a.nextTick(()=>te.handleSelected(ge,I))}sr("keydown",{},I),sr("keydown-end",{},I)})},Dle=I=>{d.isActivated&&p.preventEvent(I,"event.keydown",null,()=>{const{mouseConfig:V,keyboardConfig:H,treeConfig:Y,editConfig:Q,highlightCurrentRow:oe}=e,{ctxMenuStore:re,editStore:ce,currentRow:de}=c,{afterFullData:me}=d,ge=Mt.value,Be=Xe.value,xe=ue.value,Ie=at.value,Le=ft.value,Ae=we.value,qe=Ft.value,gt=Te.value,{selected:Oe,actived:ut}=ce,wt=Ae.children||Ae.childrenField,Lt=I.keyCode,Pt=fr.hasKey(I,yi.ESCAPE),an=fr.hasKey(I,yi.BACKSPACE),rn=fr.hasKey(I,yi.TAB),ln=fr.hasKey(I,yi.ENTER),Jt=fr.hasKey(I,yi.SPACEBAR),_n=fr.hasKey(I,yi.ARROW_LEFT),Qt=fr.hasKey(I,yi.ARROW_UP),tn=fr.hasKey(I,yi.ARROW_RIGHT),hr=fr.hasKey(I,yi.ARROW_DOWN),hs=fr.hasKey(I,yi.DELETE),zi=fr.hasKey(I,yi.F2),Cu=fr.hasKey(I,yi.CONTEXT_MENU),_l=I.metaKey,hi=I.ctrlKey,Eo=I.shiftKey,la=I.altKey,Ho=_n||Qt||tn||hr,sa=ge&&re.visible&&(ln||Jt||Ho),wu=dn(Q)&&ut.column&&ut.row,vs=Le.beforeEditMethod||Le.activeMethod;if(sa)I.preventDefault(),re.showChild&&mv(re.selected)?te.moveCtxMenu(I,re,"selectChild",_n,!1,re.selected.children):te.moveCtxMenu(I,re,"selected",tn,!0,qe);else if(H&&V&&Ie.area&&te.handleKeyboardCellAreaEvent)te.handleKeyboardCellAreaEvent(I);else if(Pt){if(te.closeMenu&&te.closeMenu(),f.closeFilter(),H&&xe.isEsc&&ut.row){const Tr=ut.args;te.handleClearEdit(I),Ie.selected&&a.nextTick(()=>te.handleSelected(Tr,I))}}else if(Jt&&H&&xe.isChecked&&Oe.row&&Oe.column&&(Oe.column.type==="checkbox"||Oe.column.type==="radio"))I.preventDefault(),Oe.column.type==="checkbox"?p.handleToggleCheckRowEvent(I,Oe.args):p.triggerRadioRowEvent(I,Oe.args);else if(zi&&dn(Q))wu||Oe.row&&Oe.column&&(I.preventDefault(),te.handleEdit(Oe.args,I));else if(Cu)d._keyCtx=Oe.row&&Oe.column&&Be.length,clearTimeout(RP),RP=setTimeout(()=>{d._keyCtx=!1},1e3);else if(ln&&!la&&H&&xe.isEnter&&(Oe.row||ut.row||Y&&(gt.isCurrent||oe)&&de)){const{isLastEnterAppendRow:Tr,beforeEnterMethod:Rr,enterMethod:Lr}=xe;if(hi){if(ut.row){const Ar=ut.args;te.handleClearEdit(I),Ie.selected&&a.nextTick(()=>{te.handleSelected(Ar,I)})}}else if(Oe.row||ut.row){const Ar=Oe.row?Oe.args:ut.args;if(Eo)xe.enterToTab?te.moveTabSelected(Ar,Eo,I):te.moveSelected(Ar,_n,!0,tn,!1,I);else if(xe.enterToTab)te.moveTabSelected(Ar,Eo,I);else{const Ea=Oe.row||ut.row,Wo=Oe.column||ut.column,_a=te.getVTRowIndex(Ea),zr={row:Ea,rowIndex:te.getRowIndex(Ea),$rowIndex:te.getVMRowIndex(Ea),_rowIndex:_a,column:Wo,columnIndex:te.getColumnIndex(Wo),$columnIndex:te.getVMColumnIndex(Wo),_columnIndex:te.getVTColumnIndex(Wo),$table:te};if(!Rr||Rr(zr)!==!1){if(Tr&&_a>=me.length-1){te.insertAt({},-1).then(({row:vi})=>{te.scrollToRow(vi,Wo),te.handleSelected(Object.assign(Object.assign({},Ar),{row:vi}),I)}),te.dispatchEvent("enter-append-row",zr,I);return}te.moveSelected(Ar,_n,!1,tn,!0,I),Lr&&Lr(zr)}}}else if(Y&&(gt.isCurrent||oe)&&de){const Ar=de[wt];if(Ar&&Ar.length){I.preventDefault();const Ea=Ar[0],Wo={$table:te,row:Ea,rowIndex:f.getRowIndex(Ea),$rowIndex:f.getVMRowIndex(Ea)};f.setTreeExpand(de,!0).then(()=>f.scrollToRow(Ea)).then(()=>p.triggerCurrentRowEvent(I,Wo))}}}else if(Ho&&H&&xe.isArrow)wu||(Oe.row&&Oe.column?te.moveSelected(Oe.args,_n,Qt,tn,hr,I):(Qt||hr)&&(gt.isCurrent||oe)&&te.moveCurrentRow(Qt,hr,I));else if(rn&&H&&xe.isTab)Oe.row||Oe.column?te.moveTabSelected(Oe.args,Eo,I):(ut.row||ut.column)&&te.moveTabSelected(ut.args,Eo,I);else if(H&&xe.isDel&&hs&&dn(Q)&&(Oe.row||Oe.column)){if(!wu){const{delMethod:Tr}=xe,Rr={row:Oe.row,rowIndex:f.getRowIndex(Oe.row),column:Oe.column,columnIndex:f.getColumnIndex(Oe.column),$table:te,$grid:Z};(!vs||vs(Rr))&&(Tr?Tr(Rr):Rs(Oe.row,Oe.column,null),f.updateFooter(),sr("cell-delete-value",Rr,I))}}else if(an&&H&&xe.isBack&&dn(Q)&&(Oe.row||Oe.column)){if(!wu){const{backMethod:Tr}=xe;if(xe.isDel&&dn(Q)&&(Oe.row||Oe.column)){const Rr={row:Oe.row,rowIndex:f.getRowIndex(Oe.row),column:Oe.column,columnIndex:f.getColumnIndex(Oe.column),$table:te,$grid:Z};(!vs||vs(Rr))&&(Tr?Tr(Rr):(Rs(Oe.row,Oe.column,null),te.handleEdit(Oe.args,I)),sr("cell-backspace-value",Rr,I))}}}else if(an&&H&&Y&&xe.isBack&&(gt.isCurrent||oe)&&de){const{parent:Tr}=U.findTree(d.afterTreeFullData,Rr=>Rr===de,{children:wt});if(Tr){I.preventDefault();const Rr={row:Tr,rowIndex:f.getRowIndex(Tr),$rowIndex:f.getVMRowIndex(Tr),$table:te,$grid:Z};f.setTreeExpand(Tr,!1).then(()=>f.scrollToRow(Tr)).then(()=>p.triggerCurrentRowEvent(I,Rr))}}else if(H&&dn(Q)&&xe.isEdit&&!hi&&!_l&&(Jt||Lt>=48&&Lt<=57||Lt>=65&&Lt<=90||Lt>=96&&Lt<=111||Lt>=186&&Lt<=192||Lt>=219&&Lt<=222)){const{editMode:Tr,editMethod:Rr}=xe;if(Oe.column&&Oe.row&&dn(Oe.column.editRender)){const Lr=Le.beforeEditMethod||Le.activeMethod,Ar={row:Oe.row,rowIndex:f.getRowIndex(Oe.row),column:Oe.column,columnIndex:f.getColumnIndex(Oe.column),$table:te,$grid:Z};(!Lr||Lr(Object.assign(Object.assign({},Oe.args),{$table:te,$grid:Z})))&&(Rr?Rr(Ar):(Tr!=="insert"&&Rs(Oe.row,Oe.column,null),te.handleEdit(Oe.args,I)))}}sr("keydown",{},I)})},Mle=I=>{const{keyboardConfig:V,mouseConfig:H}=e,{editStore:Y,filterStore:Q}=c,{isActivated:oe}=d,re=at.value,ce=ue.value,{actived:de}=Y;oe&&!Q.visible&&(de.row||de.column||V&&ce.isClip&&H&&re.area&&te.handlePasteCellAreaEvent&&te.handlePasteCellAreaEvent(I),sr("paste",{},I))},Nle=I=>{const{keyboardConfig:V,mouseConfig:H}=e,{editStore:Y,filterStore:Q}=c,{isActivated:oe}=d,re=at.value,ce=ue.value,{actived:de}=Y;oe&&!Q.visible&&(de.row||de.column||V&&ce.isClip&&H&&re.area&&te.handleCopyCellAreaEvent&&te.handleCopyCellAreaEvent(I),sr("copy",{},I))},Ble=I=>{const{keyboardConfig:V,mouseConfig:H}=e,{editStore:Y,filterStore:Q}=c,{isActivated:oe}=d,re=at.value,ce=ue.value,{actived:de}=Y;oe&&!Q.visible&&(de.row||de.column||V&&ce.isClip&&H&&re.area&&te.handleCutCellAreaEvent&&te.handleCutCellAreaEvent(I),sr("cut",{},I))},LP=()=>{te.closeMenu&&te.closeMenu();const I=h.value;if(!I||!I.clientWidth)return a.nextTick();f.recalculate(!0),f.updateCellAreas()},AC=I=>{const V=v.value;clearTimeout(d.tooltipTimeout),I?f.closeTooltip():V&&V.setActived&&V.setActived(!0)},PP=()=>{const{dragRow:I,dragCol:V}=c;(I||V)&&(DC(),t_(),th(),c.dragRow=null,c.dragCol=null,c.isDragColMove=!1,c.isDragRowMove=!1)},t_=()=>{const I=h.value;if(I){const V="row--drag-origin";U.arrayEach(I.querySelectorAll(`.${V}`),H=>{H.draggable=!1,Ei(H,V)})}},Ole=I=>{const V=h.value;if(V){const H="row--drag-origin",Y=ct(te,I);U.arrayEach(V.querySelectorAll(`[rowid="${Y}"]`),Q=>{Is(Q,H)})}},Ile=I=>{const{dragConfig:V}=e,{dragRow:H}=c,Y=De.value,{tooltipMethod:Q}=Y,oe=Q||(V?V.rowTooltipMethod:null);let re="";oe?re=`${oe({row:H})||""}`:re=Ic("vxe.table.dragTip",[I.textContent||""]),c.dragTipText=re},Rle=I=>{const V=h.value;if(V){const H=[];U.eachTree([I],Q=>{H.push(`[colid="${Q.id}"]`)});const Y="col--drag-origin";U.arrayEach(V.querySelectorAll(H.join(",")),Q=>{Is(Q,Y)})}},DC=()=>{const I=h.value;if(I){const V="col--drag-origin";U.arrayEach(I.querySelectorAll(`.${V}`),H=>{H.draggable=!1,Ei(H,V)})}},Lle=I=>{const{dragCol:V}=c,H=Fe.value,{tooltipMethod:Y}=H;let Q="";Y?Q=`${Y({column:V})||""}`:Q=Ic("vxe.table.dragTip",[I.textContent||""]),c.dragTipText=Q},MC=(I,V,H,Y,Q)=>{const oe=h.value;if(!oe)return;const{scrollbarWidth:re,scrollbarHeight:ce}=c,{prevDragToChild:de}=d,me=oe.getBoundingClientRect(),ge=oe.clientWidth,Be=oe.clientHeight;if(V){const Ie=L.value;if(Ie)if(Y){const Le=V.getBoundingClientRect();let Ae=V.clientHeight;const qe=Math.max(1,Le.y-me.y);qe+Ae>Be-ce&&(Ae=Be-qe-ce),Ie.style.display="block",Ie.style.top=`${qe}px`,Ie.style.height=`${Ae}px`,Ie.style.width=`${ge-re}px`,Ie.setAttribute("drag-pos",Q),Ie.setAttribute("drag-to-child",de?"y":"n")}else Ie.style.display=""}else if(H){const Ie=z.value;if(Ie)if(Y){const Le=B.value,Ae=Le?Le.clientWidth:0,qe=N.value,gt=qe?qe.clientWidth:0,Oe=H.getBoundingClientRect();let ut=H.clientWidth;const wt=Math.max(0,Oe.y-me.y),Lt=Ae;let Pt=Oe.x-me.x;Pt<Lt&&(ut-=Lt-Pt,Pt=Lt);const an=ge-gt-(gt?0:re);Pt+ut>an&&(ut=an-Pt),Ie.style.display="block",Ie.style.top=`${wt}px`,Ie.style.left=`${Pt}px`,Ie.style.width=`${ut}px`,de?Ie.style.height=`${Oe.height}px`:Ie.style.height=`${Be-wt-ce}px`,Ie.setAttribute("drag-pos",Q),Ie.setAttribute("drag-to-child",de?"y":"n")}else Ie.style.display=""}const xe=R.value;xe&&(xe.style.display="block",xe.style.top=`${Math.min(oe.clientHeight-oe.scrollTop-xe.clientHeight,I.clientY-me.y)}px`,xe.style.left=`${Math.min(oe.clientWidth-oe.scrollLeft-xe.clientWidth-16,I.clientX-me.x)}px`,xe.setAttribute("drag-status",Y?de?"sub":"normal":"disabled"))},th=()=>{const I=R.value,V=L.value,H=z.value;I&&(I.style.display=""),V&&(V.style.display=""),H&&(H.style.display="")},n_=(I,V,H,Y,Q)=>{Q.cell=V;const{tooltipStore:oe}=c,re=Ye.value,{column:ce,row:de}=Q,{showAll:me,contentMethod:ge}=re,Be=ge?ge(Q):null,xe=ge&&!U.eqNull(Be),Ie=xe?Be:U.toString(ce.type==="html"?H.innerText:H.textContent).trim(),Le=H.scrollWidth>H.clientWidth;return Ie&&(me||xe||Le)&&(Object.assign(oe,{row:de,column:ce,visible:!0,currOpts:{}}),a.nextTick(()=>{const Ae=v.value;Ae&&Ae.open&&Ae.open(Le?H:Y||H,fa(Ie))})),a.nextTick()},cg=(I,V)=>{if(I){if(Z)return Z.callSlot(I,V);if(U.isFunction(I))return Ya(I(V))}return[]};p={getSetupOptions(){return jn()},updateAfterDataIndex:yc,callSlot:cg,getParentElem(){const I=h.value;if(Z){const V=Z.getRefMaps().refElem.value;return V?V.parentNode:null}return I?I.parentNode:null},getParentHeight(){const{height:I}=e,V=h.value;if(V){const H=V.parentNode,Y=I==="100%"||I==="auto"?hB(H):0;return Math.floor(Z?Z.getParentHeight():U.toNumber(getComputedStyle(H).height)-Y)}return 0},getExcludeHeight(){return Z?Z.getExcludeHeight():0},defineField(I){const{treeConfig:V}=e,H=ve.value,Y=we.value,Q=ye.value,oe=Me.value,re=Y.children||Y.childrenField,ce=Mu(te);return U.isArray(I)||(I=[I]),I.map(de=>(d.tableFullColumn.forEach(ge=>{const{field:Be,editRender:xe}=ge;if(Be&&!U.has(de,Be)&&!de[Be]){let Ie=null;if(xe){const{defaultValue:Le}=xe;U.isFunction(Le)?Ie=Le({column:ge}):U.isUndefined(Le)||(Ie=Le)}U.set(de,Be,Ie)}}),[Q.labelField,oe.checkField,oe.labelField,H.labelField].forEach(ge=>{ge&&Os(U.get(de,ge))&&U.set(de,ge,null)}),V&&Y.lazy&&U.isUndefined(de[re])&&(de[re]=null),Os(U.get(de,ce))&&U.set(de,ce,I2()),de))},handleTableData(I){const{scrollYLoad:V}=c,{scrollYStore:H,fullDataRowIdData:Y}=d;let Q=d.afterFullData;I&&(Jp(),Q=fi());const oe=V?Q.slice(H.startIndex,H.endIndex):Q.slice(0);return oe.forEach((re,ce)=>{const de=ct(te,re),me=Y[de];me&&(me.$index=ce)}),c.tableData=oe,a.nextTick()},cacheRowMap(I){const{treeConfig:V}=e,H=we.value,{fullAllDataRowIdData:Y,tableFullData:Q,tableFullTreeData:oe}=d,re=H.children||H.childrenField,ce=H.hasChild||H.hasChildField,de=Mu(te),me=V&&H.lazy,ge={},Be={},xe=(Ie,Le,Ae,qe,gt,Oe)=>{let ut=ct(te,Ie);const wt=V&&qe?mCt(qe):Le+1,Lt=Oe?Oe.length-1:0;Os(ut)&&(ut=I2(),U.set(Ie,de,ut)),me&&Ie[ce]&&U.isUndefined(Ie[re])&&(Ie[re]=null);let Pt=Y[ut];Pt||(Pt={row:Ie,rowid:ut,seq:wt,index:-1,_index:-1,$index:-1,items:Ae,parent:gt,level:Lt,height:0,oTop:0}),Pt.row=Ie,Pt.items=Ae,Pt.parent=gt,Pt.level=Lt,Pt.index=V&>?-1:Le,I&&(Be[ut]=Pt),ge[ut]=Pt};I&&(d.fullDataRowIdData=Be),d.fullAllDataRowIdData=ge,V?U.eachTree(oe,xe,{children:re}):Q.forEach(xe)},cacheSourceMap(I){const{treeConfig:V}=e,H=we.value;let{sourceDataRowIdData:Y}=d;const Q=U.clone(I,!0),oe=Mu(te);Y=d.sourceDataRowIdData={};const re=ce=>{let de=ct(te,ce);Os(de)&&(de=I2(),U.set(ce,oe,de)),Y[de]=ce};if(V){const ce=H.children||H.childrenField;U.eachTree(Q,re,{children:H.transform?H.mapChildrenField:ce})}else Q.forEach(re);d.tableSourceData=Q},analyColumnWidth(){const{tableFullColumn:I}=d,V=be.value,{width:H,minWidth:Y}=V,Q=[],oe=[],re=[],ce=[],de=[],me=[],ge=[],Be=[];I.forEach(xe=>{H&&!xe.width&&(xe.width=H),Y&&!xe.minWidth&&(xe.minWidth=Y),xe.visible&&(xe.resizeWidth?Q.push(xe):xe.width==="auto"?ge.push(xe):pB(xe.width)?oe.push(xe):Ny(xe.width)?de.push(xe):pB(xe.minWidth)?re.push(xe):xe.minWidth==="auto"?ce.push(xe):Ny(xe.minWidth)?me.push(xe):Be.push(xe))}),Object.assign(c.columnStore,{resizeList:Q,pxList:oe,pxMinList:re,autoMinList:ce,scaleList:de,scaleMinList:me,autoList:ge,remainList:Be})},handleResizeDblclickEvent(I,V){const H=Ve.value,{isDblclickAutoWidth:Y}=H,Q=h.value;if(Y&&Q){const{fullColumnIdData:oe}=d,{column:re}=V,ce=re.id,de=oe[ce],ge=I.target.parentNode,Be=Object.assign(V,{cell:ge}),xe=Toe(Be);let Ie=Qp(re,Q);de&&(Ie=Math.max(Ie,de.width)),re.resizeWidth=Math.max(xe,Ie),c._isResize=!1,d._lastResizeTime=Date.now(),te.analyColumnWidth(),te.recalculate(!0).then(()=>{te.saveCustomStore("update:visible"),te.updateCellAreas(),te.dispatchEvent("resizable-change",Object.assign(Object.assign({},V),{resizeWidth:Ie}),I),setTimeout(()=>te.recalculate(!0),300)})}},saveCustomStore(I){const{customConfig:V}=e,H=ae.value,Y=xt.value,{updateStore:Q,storage:oe}=Y,re=oe===!0,ce=re?{}:Object.assign({},oe||{}),de=re||ce.resizable,me=re||ce.visible,ge=re||ce.fixed,Be=re||ce.sort;if(I!=="reset"&&(c.isCustomStatus=!0),(V?dn(Y):Y.enabled)&&(de||me||ge||Be)){if(!H)return Wr("vxe.error.reqProp",["id"]),a.nextTick();const xe=I==="reset"?{resizableData:{},sortData:{},visibleData:{},fixedData:{}}:f.getCustomStoreData();if(Q)return Q({id:H,type:I,storeData:xe});ir(H,I==="reset"?null:xe)}return a.nextTick()},handleCustom(){const{mouseConfig:I}=e;return I&&(te.clearSelected&&te.clearSelected(),te.clearCellAreas&&(te.clearCellAreas(),te.clearCopyCellArea())),p.analyColumnWidth(),f.refreshColumn(!0)},handleUpdateDataQueue(){c.upDataFlag++},handleRefreshColumnQueue(){c.reColumnFlag++},preventEvent(I,V,H,Y,Q){let oe=qW.get(V);!oe.length&&V==="event.clearEdit"&&(oe=qW.get("event.clearActived"));let re;return oe.some(ce=>ce(Object.assign({$grid:Z,$table:te,$event:I},H))===!1)||Y&&(re=Y()),Q&&Q(),re},updateCheckboxStatus(){const{treeConfig:I}=e,{selectCheckboxMaps:V,treeIndeterminateMaps:H}=c,Y=Object.assign({},V),Q=Object.assign({},H),oe=we.value,{transform:re,mapChildrenField:ce}=oe,de=oe.children||oe.childrenField,me=Me.value,{checkField:ge,checkStrictly:Be,checkMethod:xe}=me,{afterTreeFullData:Ie}=d;if(!Be){if(I){const Le={},Ae=[];U.eachTree(Ie,qe=>{const gt=ct(te,qe),Oe=qe[re?ce:de];Oe&&Oe.length&&!Le[gt]&&(Le[gt]=1,Ae.unshift([qe,gt,Oe]))},{children:re?ce:de}),Ae.forEach(qe=>{const gt=qe[0],Oe=qe[1],ut=qe[2];let wt=0,Lt=0,Pt=0;ut.forEach(xe?ln=>{const Jt=ct(te,ln),_n=ge?U.get(ln,ge):Y[Jt];xe({row:ln})?(_n?wt++:Q[Jt]&&Lt++,Pt++):_n?wt++:Q[Jt]&&Lt++}:ln=>{const Jt=ct(te,ln);(ge?U.get(ln,ge):Y[Jt])?wt++:Q[Jt]&&Lt++,Pt++});const an=wt>=Pt,rn=!an&&(wt>=1||Lt>=1);ge&&U.get(gt,ge,an),an?(ge||(Y[Oe]=gt),Q[Oe]&&delete Q[Oe]):(ge||Y[Oe]&&delete Y[Oe],rn?Q[Oe]=gt:Q[Oe]&&delete Q[Oe])})}c.selectCheckboxMaps=Y,c.treeIndeterminateMaps=Q}},updateAllCheckboxStatus(){const{treeConfig:I}=e,{selectCheckboxMaps:V,treeIndeterminateMaps:H}=c,Y=Me.value,{checkField:Q,checkMethod:oe}=Y,{afterFullData:re,afterTreeFullData:ce}=d;let de=0,me=0,ge=0;const Be=I?ce:re;Be.forEach(oe?Le=>{const Ae=ct(te,Le),qe=Q?U.get(Le,Q):V[Ae];oe({row:Le})?(qe?de++:H[Ae]&&me++,ge++):qe?de++:H[Ae]&&me++}:Le=>{const Ae=ct(te,Le);(Q?U.get(Le,Q):V[Ae])?de++:H[Ae]&&me++,ge++});const xe=Be.length>0&&de>=ge,Ie=!xe&&(de>=1||me>=1);c.isAllSelected=xe,c.isIndeterminate=Ie},checkSelectionStatus(){te.updateCheckboxStatus(),te.updateAllCheckboxStatus()},handleBatchSelectRows(I,V,H){const{treeConfig:Y}=e,{selectCheckboxMaps:Q}=c,oe=Object.assign({},Q),re=we.value,{transform:ce,mapChildrenField:de}=re,me=re.children||re.childrenField,ge=Me.value,{checkField:Be,checkStrictly:xe,checkMethod:Ie}=ge,Le=ge.indeterminateField||ge.halfField;if(Be){if(Y&&!xe){U.eachTree(I,Ae=>{(H||!Ie||Ie({row:Ae}))&&(U.set(Ae,Be,V),Le&&U.set(Ae,Le,!1),pi(Ae,V))},{children:ce?de:me}),c.selectCheckboxMaps=oe;return}else I.forEach(Ae=>{(H||!Ie||Ie({row:Ae}))&&(U.set(Ae,Be,V),pi(Ae,V))});c.selectCheckboxMaps=oe;return}if(Y&&!xe){U.eachTree(I,Ae=>{const qe=ct(te,Ae);(H||!Ie||Ie({row:Ae}))&&(V?oe[qe]=Ae:oe[qe]&&delete oe[qe],pi(Ae,V))},{children:ce?de:me}),c.selectCheckboxMaps=oe;return}I.forEach(Ae=>{const qe=ct(te,Ae);(H||!Ie||Ie({row:Ae}))&&(V?oe[qe]||(oe[qe]=Ae):oe[qe]&&delete oe[qe],pi(Ae,V))}),c.selectCheckboxMaps=oe},handleSelectRow({row:I},V,H){te.handleBatchSelectRows([I],V,H)},triggerHeaderTitleEvent(I,V,H){const Y=V.content||V.message;if(Y){const{tooltipStore:Q}=c,{column:oe}=H,re=au(Y);AC(!0),Q.row=null,Q.column=oe,Q.visible=!0,Q.currOpts=V,a.nextTick(()=>{const ce=v.value;ce&&ce.open&&ce.open(I.currentTarget,re)})}},triggerHeaderTooltipEvent(I,V){const{tooltipStore:H}=c,{column:Y}=V,Q=I.currentTarget;AC(!0),(H.column!==Y||!H.visible)&&n_(I,Q,Q,null,V)},triggerBodyTooltipEvent(I,V){const{editConfig:H}=e,{editStore:Y}=c,{tooltipStore:Q}=c,oe=ft.value,{actived:re}=Y,{row:ce,column:de}=V,me=I.currentTarget;if(AC(Q.column!==de||Q.row!==ce),!(de.editRender&&dn(H)&&(oe.mode==="row"&&re.row===ce||re.row===ce&&re.column===de))&&(Q.column!==de||Q.row!==ce||!Q.visible)){let ge,Be;de.treeNode?(ge=me.querySelector(".vxe-tree-cell"),de.type==="html"&&(Be=me.querySelector(".vxe-cell--html"))):Be=me.querySelector(de.type==="html"?".vxe-cell--html":".vxe-cell--label"),n_(I,me,ge||me.children[0],Be,V)}},triggerFooterTooltipEvent(I,V){const{column:H}=V,{tooltipStore:Y}=c,Q=I.currentTarget;AC(Y.column!==H||!!Y.row),(Y.column!==H||!Y.visible)&&n_(I,Q,Q.querySelector(".vxe-cell--item")||Q.children[0],null,V)},handleTargetLeaveEvent(){const I=Ye.value;let V=v.value;V&&V.setActived&&V.setActived(!1),I.enterable?d.tooltipTimeout=setTimeout(()=>{V=v.value,V&&V.isActived&&!V.isActived()&&f.closeTooltip()},I.leaveDelay):f.closeTooltip()},triggerHeaderCellClickEvent(I,V){const{_lastResizeTime:H}=d,Y=pt.value,Q=be.value,{column:oe}=V,re=I.currentTarget,ce=H&&H>Date.now()-300,de=Hn(I,re,"vxe-cell--sort").flag,me=Hn(I,re,"vxe-cell--filter").flag;Y.trigger==="cell"&&!(ce||de||me)&&p.triggerSortEvent(I,oe,xn(oe)),sr("header-cell-click",Object.assign({triggerResizable:ce,triggerSort:de,triggerFilter:me,cell:re},V),I),(Q.isCurrent||e.highlightCurrentColumn)&&p.triggerCurrentColumnEvent(I,V)},triggerHeaderCellDblclickEvent(I,V){sr("header-cell-dblclick",Object.assign({cell:I.currentTarget},V),I)},triggerCellClickEvent(I,V){const{highlightCurrentRow:H,editConfig:Y}=e,{editStore:Q}=c,oe=ve.value,re=ft.value,ce=we.value,de=ye.value,me=Me.value,ge=ue.value,Be=Te.value,{actived:xe,focused:Ie}=Q,{row:Le,column:Ae}=V,{type:qe,treeNode:gt}=Ae,Oe=qe==="radio",ut=qe==="checkbox",wt=qe==="expand",Lt=I.currentTarget,Pt=Oe&&Hn(I,Lt,"vxe-cell--radio").flag,an=ut&&Hn(I,Lt,"vxe-cell--checkbox").flag,rn=gt&&Hn(I,Lt,"vxe-tree--btn-wrapper").flag,ln=wt&&Hn(I,Lt,"vxe-table--expanded").flag;V=Object.assign({cell:Lt,triggerRadio:Pt,triggerCheckbox:an,triggerTreeNode:rn,triggerExpandNode:ln},V),!an&&!Pt&&(!ln&&(oe.trigger==="row"||wt&&oe.trigger==="cell")&&p.triggerRowExpandEvent(I,V),(ce.trigger==="row"||gt&&ce.trigger==="cell")&&p.triggerTreeExpandEvent(I,V)),rn||(ln||((Be.isCurrent||H)&&!an&&!Pt&&p.triggerCurrentRowEvent(I,V),!Pt&&(de.trigger==="row"||Oe&&de.trigger==="cell")&&p.triggerRadioRowEvent(I,V),!an&&(me.trigger==="row"||ut&&me.trigger==="cell")&&p.handleToggleCheckRowEvent(I,V)),dn(Y)&&(ge.arrowCursorLock&&I&&re.mode==="cell"&&I.target&&/^input|textarea$/i.test(I.target.tagName)&&(Ie.column=Ae,Ie.row=Le),re.trigger==="manual"?xe.args&&xe.row===Le&&Ae!==xe.column&&El(I,V):(!xe.args||Le!==xe.row||Ae!==xe.column)&&(re.trigger==="click"||re.trigger==="dblclick"&&re.mode==="row"&&xe.row===Le)&&El(I,V))),dn(Y)&&re.trigger==="dblclick"&&xe.row&&xe.column&&(re.mode==="row"?te.eqRow(xe.row,Le)||te.handleClearEdit(I):re.mode==="cell"&&(!te.eqRow(xe.row,Le)||xe.column.id!==Ae.id)&&te.handleClearEdit(I)),sr("cell-click",V,I)},triggerCellDblclickEvent(I,V){const{editConfig:H}=e,{editStore:Y}=c,Q=ft.value,{actived:oe}=Y,re=I.currentTarget;V=Object.assign({cell:re},V),dn(H)&&Q.trigger==="dblclick"&&(!oe.args||I.currentTarget!==oe.args.cell)&&(Q.mode==="row"?Vi("blur").catch(ce=>ce).then(()=>{te.handleEdit(V,I).then(()=>Vi("change")).catch(ce=>ce)}):Q.mode==="cell"&&te.handleEdit(V,I).then(()=>Vi("change")).catch(ce=>ce)),sr("cell-dblclick",V,I)},handleToggleCheckRowEvent(I,V){const{selectCheckboxMaps:H}=c,Y=Me.value,{checkField:Q,trigger:oe}=Y,{row:re}=V;if(oe==="manual")return;let ce=!1;Q?ce=!U.get(re,Q):ce=!H[ct(te,re)],I?p.triggerCheckRowEvent(I,V,ce):(p.handleBatchSelectRows([re],ce),p.checkSelectionStatus())},triggerCheckRowEvent(I,V,H){const Y=Me.value,{row:Q}=V,{afterFullData:oe}=d,{checkMethod:re,trigger:ce}=Y;if(ce!=="manual"){if(I.stopPropagation(),Y.isShiftKey&&I.shiftKey&&!e.treeConfig){const de=f.getCheckboxRecords();if(de.length){const me=de[0],ge=f.getVTRowIndex(Q),Be=f.getVTRowIndex(me);if(ge!==Be){f.setAllCheckboxRow(!1);const xe=ge<Be?oe.slice(ge,Be+1):oe.slice(Be,ge+1);ko(xe,!0,!1),sr("checkbox-range-select",Object.assign({rangeRecords:xe},V),I);return}}}(!re||re({row:Q}))&&(p.handleBatchSelectRows([Q],H),p.checkSelectionStatus(),sr("checkbox-change",Object.assign({records:f.getCheckboxRecords(),reserves:f.getCheckboxReserveRecords(),indeterminates:f.getCheckboxIndeterminateRecords(),checked:H},V),I))}},triggerCheckAllEvent(I,V){const H=Me.value,{trigger:Y}=H;Y!=="manual"&&(I&&I.stopPropagation(),IP(I,V))},triggerRadioRowEvent(I,V){const{selectRadioRow:H}=c,{row:Y}=V,Q=ye.value,{trigger:oe}=Q;if(oe==="manual")return;I.stopPropagation();let re=Y,ce=H!==re;ce?Pd(re):Q.strict||(ce=H===re,ce&&(re=null,f.clearRadioRow())),ce&&sr("radio-change",Object.assign({oldValue:H,newValue:re},V),I)},triggerCurrentColumnEvent(I,V){const H=be.value,{currentMethod:Y}=H,{column:Q}=V;(!Y||Y({column:Q}))&&f.setCurrentColumn(Q)},triggerCurrentRowEvent(I,V){const{currentRow:H}=c,Y=Te.value,{currentMethod:Q}=Y,{row:oe}=V,re=H!==oe;(!Q||Q({row:oe}))&&(f.setCurrentRow(oe),re&&sr("current-change",Object.assign({oldValue:H,newValue:oe},V),I))},triggerRowExpandEvent(I,V){const{rowExpandLazyLoadedMaps:H,expandColumn:Y}=c,Q=ve.value,{row:oe}=V,{lazy:re,trigger:ce}=Q;if(ce==="manual")return;I.stopPropagation();const de=ct(te,oe);if(!re||!H[de]){const me=!f.isRowExpandByRow(oe),ge=f.getColumnIndex(Y),Be=f.getVMColumnIndex(Y);f.setRowExpand(oe,me),sr("toggle-row-expand",{expanded:me,column:Y,columnIndex:ge,$columnIndex:Be,row:oe,rowIndex:f.getRowIndex(oe),$rowIndex:f.getVMRowIndex(oe)},I)}},triggerTreeExpandEvent(I,V){const{treeExpandLazyLoadedMaps:H}=c,Y=we.value,{row:Q,column:oe}=V,{lazy:re,trigger:ce}=Y;if(ce==="manual")return;I.stopPropagation();const de=ct(te,Q);if(!re||!H[de]){const me=!f.isTreeExpandByRow(Q),ge=f.getColumnIndex(oe),Be=f.getVMColumnIndex(oe);f.setTreeExpand(Q,me),sr("toggle-tree-expand",{expanded:me,column:oe,columnIndex:ge,$columnIndex:Be,row:Q},I)}},handleColumnSortEvent(I,V){const{mouseConfig:H}=e,Y=at.value,{field:Q,sortable:oe}=V;if(oe){const re={$table:te,$event:I,column:V,field:Q,property:Q,order:V.order,sortList:f.getSortColumns(),sortTime:V.sortTime};H&&Y.area&&te.handleSortEvent&&te.handleSortEvent(I,re),sr("sort-change",re,I)}},triggerSortEvent(I,V,H){const Y=pt.value,{field:Q,sortable:oe}=V;oe&&(!H||V.order===H?f.clearSort(Y.multiple?V:null):f.sort({field:Q,order:H}),te.handleColumnSortEvent(I,V))},triggerHeaderCellMousedownEvent(I,V){const{mouseConfig:H}=e,Y=at.value,Q=be.value,oe=Fe.value,{trigger:re,isCrossDrag:ce,isPeerDrag:de,disabledMethod:me}=oe,ge=I.currentTarget,Be=ge&&ge.tagName&&ge.tagName.toLowerCase()==="input",xe=Hn(I,ge,"vxe-cell--checkbox").flag,Ie=Hn(I,ge,"vxe-cell--sort").flag,Le=Hn(I,ge,"vxe-cell--filter").flag;let Ae=!1;const qe=Q.drag&&re==="cell";if(!(Be||xe||Ie||Le)){const{column:gt}=V;qe&&!gt.fixed&&(ce||de||!gt.parentId)&&!(me&&me(V))&&(Ae=!0,te.handleHeaderCellDragMousedownEvent(I,V))}!Ae&&H&&Y.area&&te.handleHeaderCellAreaEvent&&te.handleHeaderCellAreaEvent(I,Object.assign({cell:ge,triggerSort:Ie,triggerFilter:Le},V)),te.focus(),te.closeMenu&&te.closeMenu()},triggerCellMousedownEvent(I,V){const{column:H}=V,{type:Y,treeNode:Q}=H,oe=Y==="radio",re=Y==="checkbox",ce=Y==="expand",de=Te.value,me=De.value,{trigger:ge,isCrossDrag:Be,isPeerDrag:xe,disabledMethod:Ie}=me,Le=I.currentTarget;V.cell=Le;const Ae=Le&&Le.tagName&&Le.tagName.toLowerCase()==="input",qe=oe&&Hn(I,Le,"vxe-cell--radio").flag,gt=re&&Hn(I,Le,"vxe-cell--checkbox").flag,Oe=Q&&Hn(I,Le,"vxe-tree--btn-wrapper").flag,ut=ce&&Hn(I,Le,"vxe-table--expanded").flag;let wt=!1;de.drag&&(wt=ge==="row"||H.dragSort&&ge==="cell");let Lt=!1;Ae||qe||gt||Oe||ut||wt&&(Be||xe||!V.level)&&!(Ie&&Ie(V))&&(Lt=!0,te.handleCellDragMousedownEvent(I,V)),!Lt&&te.handleCellMousedownEvent&&te.handleCellMousedownEvent(I,V),te.focus(),te.closeFilter(),te.closeMenu&&te.closeMenu()},triggerCellMouseupEvent(){PP()},handleRowDragDragstartEvent(I){I.dataTransfer&&I.dataTransfer.setDragImage(fB(),0,0)},handleRowDragSwapEvent(I,V,H,Y,Q,oe){const{treeConfig:re,dragConfig:ce}=e,de=De.value,{fullAllDataRowIdData:me}=d,{isPeerDrag:ge,isCrossDrag:Be,isSelfToChildDrag:xe,dragEndMethod:Ie}=de,Le=we.value,{transform:Ae,rowField:qe,mapChildrenField:gt,parentField:Oe}=Le,ut=Le.children||Le.childrenField,{afterFullData:wt,tableFullData:Lt}=d,Pt=Ie||(ce?ce.dragEndMethod:null),an=Q==="bottom"?1:0;return Y&&H&&Y!==H?Promise.resolve(Pt?Pt({oldRow:H,newRow:Y,dragPos:Q,dragToChild:!!oe,offsetIndex:an}):!0).then(rn=>{if(!rn)return;let ln=-1,Jt=-1;if(re){if(Ae){const _n=ct(te,H),Qt=me[_n],tn=ct(te,Y),hr=me[tn];if(Qt&&hr){const{level:hs}=Qt,{level:zi}=hr,Cu={};U.eachTree([H],sa=>{Cu[ct(te,sa)]=sa},{children:gt});let _l=!1;if(hs&&zi)if(ge&&!Be){if(Qt.row[Oe]!==hr.row[Oe])return}else{if(!Be)return;if(Cu[tn]&&(_l=!0,!(Be&&xe))){Ze.modal&&Ze.modal.message({status:"error",content:Ic("vxe.error.treeDragChild")});return}}else if(hs){if(!Be)return}else if(zi){if(!Be)return;if(Cu[tn]&&(_l=!0,!(Be&&xe))){Ze.modal&&Ze.modal.message({status:"error",content:Ic("vxe.error.treeDragChild")});return}}const hi=U.toTreeArray(d.afterTreeFullData,{children:ut}),Eo=te.findRowIndexOf(hi,H);hi.splice(Eo,1);const Ho=te.findRowIndexOf(hi,Y)+an;hi.splice(Ho,0,H),_l&&Be&&xe&&U.each(H[ut],sa=>{sa[Oe]=H[Oe]}),H[Oe]=oe?Y[qe]:Y[Oe],d.tableFullTreeData=U.toArrayTree(hi,{key:Le.rowField,parentKey:Le.parentField,children:ut,mapChildren:Le.mapChildrenField})}}}else{ln=te.findRowIndexOf(wt,H);const _n=te.findRowIndexOf(Lt,H);wt.splice(ln,1),Lt.splice(_n,1);const Qt=te.findRowIndexOf(wt,Y),tn=te.findRowIndexOf(Lt,Y);Jt=Qt+an;const hr=tn+an;wt.splice(Jt,0,H),Lt.splice(hr,0,H)}c.isDragRowMove=!0,te.handleTableData(re&&Ae),te.cacheRowMap(),_C(),re&&Ae||te.updateAfterDataIndex(),te.checkSelectionStatus(),c.scrollYLoad&&te.updateScrollYSpace(),a.nextTick().then(()=>{te.updateCellAreas(),te.recalculate()}),sr("row-dragend",{oldRow:H,newRow:Y,dragPos:Q,dragToChild:!!oe,offsetIndex:an,_index:{newIndex:Jt,oldIndex:ln}},I)}).catch(()=>{}):Promise.resolve()},handleRowDragDragendEvent(I){const{treeConfig:V}=e,{fullAllDataRowIdData:H,prevDragToChild:Y}=d,{dragRow:Q}=c,oe=we.value,{lazy:re}=oe,ce=oe.hasChild||oe.hasChildField,{prevDragRow:de,prevDragPos:me}=d;if(V&&Y){if(re){const ge=ct(te,de),Be=H[ge];de[ce]?Be&&Be.treeLoaded&&te.handleRowDragSwapEvent(I,!0,Q,de,me,Y):te.handleRowDragSwapEvent(I,!0,Q,de,me,Y)}}else te.handleRowDragSwapEvent(I,!0,Q,de,me,Y);th(),t_(),d.prevDragToChild=!1,c.dragRow=null,c.dragCol=null,setTimeout(()=>{c.isDragRowMove=!1},500)},handleRowDragDragoverEvent(I){const{treeConfig:V}=e,{fullAllDataRowIdData:H}=d,{dragRow:Y}=c,Q=we.value,{lazy:oe,transform:re,parentField:ce}=Q,de=Q.hasChild||Q.hasChildField,me=De.value,{isPeerDrag:ge,isCrossDrag:Be,isToChildDrag:xe}=me;if(!Y){I.preventDefault();return}const Ie=I.ctrlKey,Le=I.currentTarget,Ae=Le.getAttribute("rowid")||"",qe=H[Ae];if(qe){const gt=qe.row,Oe=ct(te,gt),ut=H[Oe];I.preventDefault();const{dragRow:wt}=c,Pt=I.clientY-Le.getBoundingClientRect().y<Le.clientHeight/2?"top":"bottom";if(d.prevDragToChild=!!(V&&re&&Be&&xe&&Ie),d.prevDragRow=gt,d.prevDragPos=Pt,te.eqRow(wt,gt)||Ie&&V&&oe&>[de]&&ut&&!ut.treeLoaded||!Be&&V&&re&&(ge?wt[ce]!==gt[ce]:qe.level)){MC(I,Le,null,!1,Pt);return}MC(I,Le,null,!0,Pt),sr("row-dragover",{oldRow:wt,targetRow:gt,dragPos:Pt},I)}},handleCellDragMousedownEvent(I,V){var H;I.stopPropagation();const{dragConfig:Y}=e,Q=De.value,{trigger:oe,dragStartMethod:re}=Q,{row:ce}=V,de=I.currentTarget,me=oe==="cell"||oe==="row"?de:(H=de.parentElement)===null||H===void 0?void 0:H.parentElement,ge=me.parentElement,Be=re||(Y?Y.dragStartMethod:null);if(t_(),Be&&!Be(V)){ge.draggable=!1,c.dragRow=null,c.dragCol=null,th();return}c.dragRow=ce,c.dragCol=null,ge.draggable=!0,Ole(ce),Ile(me),sr("row-dragstart",V,I)},handleCellDragMouseupEvent(){PP()},handleHeaderCellDragDragstartEvent(I){I.dataTransfer&&I.dataTransfer.setDragImage(fB(),0,0)},handleColDragSwapColumn(){NP(),JE(!1).then(()=>{te.updateCellAreas(),te.saveCustomStore("update:sort")})},handleColDragSwapEvent(I,V,H,Y,Q,oe){const{mouseConfig:re}=e,ce=Fe.value,{isPeerDrag:de,isCrossDrag:me,isSelfToChildDrag:ge,isToChildDrag:Be,dragEndMethod:xe}=ce,{collectColumn:Ie}=d,Le=Q==="right"?1:0;if(Y&&H&&Y!==H){const Ae=H,qe=Y;return Promise.resolve(xe?xe({oldColumn:Ae,newColumn:qe,dragPos:Q,dragToChild:!!oe,offsetIndex:Le}):!0).then(gt=>{if(!gt)return;let Oe=-1,ut=-1;const wt={};U.eachTree([Ae],rn=>{wt[rn.id]=rn});let Lt=!1;if(Ae.parentId&&qe.parentId)if(de&&!me){if(Ae.parentId!==qe.parentId)return}else{if(!me)return;if(wt[qe.id]&&(Lt=!0,!(me&&ge))){Ze.modal&&Ze.modal.message({status:"error",content:Ic("vxe.error.treeDragChild")});return}}else if(Ae.parentId){if(!me)return}else if(qe.parentId){if(!me)return;if(wt[qe.id]&&(Lt=!0,!(me&&ge))){Ze.modal&&Ze.modal.message({status:"error",content:Ic("vxe.error.treeDragChild")});return}}const Pt=U.findTree(Ie,rn=>rn.id===Ae.id);if(Lt&&me&&ge){if(Pt){const{items:rn,index:ln}=Pt,Jt=Ae.children||[];Jt.forEach(_n=>{_n.parentId=Ae.parentId}),rn.splice(ln,1,...Jt),Ae.children=[]}}else if(Pt){const{items:rn,index:ln,parent:Jt}=Pt;rn.splice(ln,1),Jt||(Oe=ln)}const an=U.findTree(Ie,rn=>rn.id===qe.id);if(an){const{items:rn,index:ln,parent:Jt}=an;me&&Be&&oe?(Ae.parentId=qe.id,qe.children=(qe.children||[]).concat([Ae])):(Ae.parentId=qe.parentId,rn.splice(ln+Le,0,Ae)),Jt||(ut=ln)}U.eachTree(Ie,(rn,ln,Jt,_n,Qt)=>{if(!Qt){const tn=ln+1;rn.renderSortNumber=tn}}),c.isDragColMove=!0,re&&(te.clearSelected&&te.clearSelected(),te.clearCellAreas&&(te.clearCellAreas(),te.clearCopyCellArea())),sr("column-dragend",{oldColumn:Ae,newColumn:qe,dragPos:Q,dragToChild:!!oe,offsetIndex:Le,_index:{newIndex:ut,oldIndex:Oe}},I),V&&te.handleColDragSwapColumn()}).catch(()=>{})}return Promise.resolve()},handleHeaderCellDragDragendEvent(I){const{dragCol:V}=c,{prevDragCol:H,prevDragPos:Y,prevDragToChild:Q}=d;te.handleColDragSwapEvent(I,!0,V,H,Y,Q),th(),DC(),d.prevDragToChild=!1,c.dragRow=null,c.dragCol=null,setTimeout(()=>{c.isDragColMove=!1,te.recalculate().then(()=>{zd()})},500)},handleHeaderCellDragDragoverEvent(I){const{dragCol:V}=c,H=Fe.value,{isToChildDrag:Y,isPeerDrag:Q,isCrossDrag:oe}=H;if(!V){I.preventDefault();return}const re=I.ctrlKey,ce=I.currentTarget,de=ce.getAttribute("colid"),me=te.getColumnById(de);if(me){I.preventDefault();const{clientX:ge}=I,xe=ge-ce.getBoundingClientRect().x<ce.clientWidth/2?"left":"right";if(d.prevDragToChild=!!(oe&&Y&&re),d.prevDragCol=me,d.prevDragPos=xe,me.fixed||V&&V.id===me.id||!oe&&(Q?V.parentId!==me.parentId:me.parentId)){MC(I,null,ce,!1,xe);return}MC(I,null,ce,!0,xe),sr("column-dragover",{oldColumn:V,targetColumn:me,dragPos:xe},I);const Ie=h.value;if(!Ie)return;const Le=$.value,Ae=S.value,qe=Ae?Ae.$el:null,gt=Le||qe;if(gt){const Oe=Ie.getBoundingClientRect(),ut=Ie.clientWidth,wt=B.value,Lt=wt?wt.clientWidth:0,Pt=N.value,an=Pt?Pt.clientWidth:0,rn=Oe.x+Lt,ln=Oe.x+ut-an,Jt=28,_n=ge-rn,Qt=ln-ge;if(_n>0&&_n<=Jt){const tn=Math.floor(ut/(_n>Jt/2?240:120));gt.scrollLeft-=tn*(Jt-_n)}else if(Qt>0&&Qt<=Jt){const tn=Math.floor(ut/(Qt>Jt/2?240:120));gt.scrollLeft+=tn*(Jt-Qt)}}}},handleHeaderCellDragMousedownEvent(I,V){var H;I.stopPropagation();const Y=Fe.value,{trigger:Q,dragStartMethod:oe}=Y,{column:re}=V,ce=I.currentTarget,de=Q==="cell"?ce:(H=ce.parentElement)===null||H===void 0?void 0:H.parentElement;if(c.isDragColMove=!1,DC(),oe&&!oe(V)){de.draggable=!1,c.dragRow=null,c.dragCol=null,th();return}c.dragCol=re,c.dragRow=null,de.draggable=!0,Rle(re),Lle(de),sr("column-dragstart",V,I)},handleHeaderCellDragMouseupEvent(){DC(),th(),c.dragRow=null,c.dragCol=null,c.isDragColMove=!1},handleScrollEvent(I,V,H,Y,Q,oe){const{highlightHoverRow:re}=e,{lastScrollLeft:ce,lastScrollTop:de}=d,me=S.value,ge=me?me.$el:null,Be=Te.value,xe=g.value,Ie=v.value,Le=ge?ge.clientHeight:0,Ae=ge?ge.clientWidth:0,qe=ge?ge.scrollHeight:0,gt=ge?ge.scrollWidth:0;let Oe=!1,ut=!1,wt=!1,Lt=!1,Pt="",an=!1,rn=!1,ln=!1,Jt=!1;if(H){const Qt=ne.value;wt=Q<=0,wt||(Lt=Q+Ae>=gt),Q>ce?(Pt="right",Q+Ae>=gt-Qt&&(Jt=!0)):(Pt="left",Q<=Qt&&(ln=!0)),p.checkScrolling(),d.lastScrollLeft=Q}if(V){const Qt=le.value;Oe=Y<=0,Oe||(ut=Y+Le>=qe),Y>de?(Pt="bottom",Y+Le>=qe-Qt&&(rn=!0)):(Pt="top",Y<=Qt&&(an=!0)),d.lastScrollTop=Y}c.isDragColMove=!1,c.isDragRowMove=!1,c.lastScrollTime=Date.now();const _n=Object.assign({scrollTop:Y,scrollLeft:Q,bodyHeight:Le,bodyWidth:Ae,scrollHeight:qe,scrollWidth:gt,isX:H,isY:V,isTop:Oe,isBottom:ut,isLeft:wt,isRight:Lt,direction:Pt},oe);xle(H,V),(Be.isHover||re)&&te.clearHoverRow(),xe&&xe.reactData.visible&&xe.close(),Ie&&Ie.reactData.visible&&Ie.close(),(rn||an||Jt||ln)&&sr("scroll-boundary",_n,I),sr("scroll",_n,I)},triggerScrollXEvent(){K.value.immediate?zd():ble()},triggerScrollYEvent(){pe.value.immediate?ug():Cle()},scrollToTreeRow(I){const{treeConfig:V}=e,{tableFullData:H}=d,Y=[];if(V){const Q=we.value,oe=Q.children||Q.childrenField,re=U.findTree(H,ce=>te.eqRow(ce,I),{children:oe});if(re){const ce=re.nodes;ce.forEach((de,me)=>{me<ce.length-1&&!f.isTreeExpandByRow(de)&&Y.push(f.setTreeExpand(de,!0))})}}return Promise.all(Y).then(()=>LW(te,I))},updateScrollYStatus:_C,updateScrollXSpace(){const{isGroup:I,scrollXLoad:V,scrollbarWidth:H}=c,{visibleColumn:Y,scrollXStore:Q,elemStore:oe,tableWidth:re}=d,ce=w.value,de=S.value,me=x.value,ge=de?de.$el:null;if(ge){const Be=ce?ce.$el:null,xe=me?me.$el:null,Ie=Be?Be.querySelector(".vxe-table--header"):null,Le=ge.querySelector(".vxe-table--body"),Ae=xe?xe.querySelector(".vxe-table--footer"):null,qe=Y.slice(0,Q.startIndex).reduce((wt,Lt)=>wt+Lt.renderWidth,0);let gt="";V&&(gt=`${qe}px`),Ie&&(Ie.style.marginLeft=I?"":gt),Le.style.marginLeft=gt,Ae&&(Ae.style.marginLeft=gt),["main"].forEach(wt=>{["header","body","footer"].forEach(Pt=>{const an=Mo(oe[`${wt}-${Pt}-xSpace`]);an&&(an.style.width=V?`${re+(Pt==="header"?H:0)}px`:"")})});const ut=j.value;ut&&(ut.style.width=`${re+H}px`),a.nextTick(()=>{ka()})}},updateScrollYSpace(){const{showOverflow:I}=e,{scrollYLoad:V}=c,{scrollYStore:H,elemStore:Y,afterFullData:Q,fullAllDataRowIdData:oe}=d,{startIndex:re,rowHeight:ce}=H;let de=0,me=0;const ge=["main","left","right"];let Be="",xe="";if(V){if(I)de=Q.length*ce,me=Math.max(0,re*ce);else{for(let Le=0;Le<Q.length;Le++){const Ae=Q[Le],qe=ct(te,Ae),gt=oe[qe];gt&&(de+=gt.height||ce)}for(let Le=0;Le<re;Le++){const Ae=Q[Le],qe=ct(te,Ae),gt=oe[qe];gt&&(me+=gt.height||ce)}}Be=`${me}px`,xe=`${de}px`}ge.forEach(Le=>{const Ae=["header","body","footer"],qe=Mo(Y[`${Le}-body-table`]);qe&&(qe.style.marginTop=Be),Ae.forEach(gt=>{const Oe=Mo(Y[`${Le}-${gt}-ySpace`]);Oe&&(Oe.style.height=xe)})});const Ie=J.value;Ie&&(Ie.style.height=xe),a.nextTick(ka)},updateScrollXData(){const{showOverflow:I}=e;return QE(),yu(),a.nextTick().then(()=>{yu(),QE(),p.updateScrollXSpace(),I||p.updateScrollYSpace()})},updateScrollYData(){return p.handleTableData(),yu(),a.nextTick().then(()=>{yu(),p.handleTableData(),p.updateScrollYSpace()})},checkScrolling(){const I=B.value,V=N.value,H=S.value,Y=H?H.$el:null,oe=$.value||Y;oe&&(I&&(oe.scrollLeft>0?Is(I,"scrolling--middle"):Ei(I,"scrolling--middle")),V&&(oe.clientWidth<oe.scrollWidth-Math.ceil(oe.scrollLeft)?Is(V,"scrolling--middle"):Ei(V,"scrolling--middle")))},updateZindex(){e.zIndex?d.tZindex=e.zIndex:d.tZindex<yoe()&&(d.tZindex=goe())},handleCheckedCheckboxRow:ko,triggerHoverEvent(I,{row:V}){p.setHoverRow(V)},setHoverRow(I){const V=ct(te,I),H=h.value;p.clearHoverRow(),H&&U.arrayEach(H.querySelectorAll(`[rowid="${V}"]`),Y=>Is(Y,"row--hover")),d.hoverRow=I},clearHoverRow(){const I=h.value;I&&U.arrayEach(I.querySelectorAll(".vxe-body--row.row--hover"),V=>Ei(V,"row--hover")),d.hoverRow=null},getCell(I,V){return f.getCellElement(I,V)},findRowIndexOf(I,V){return V?U.findIndexOf(I,H=>te.eqRow(H,V)):-1},eqRow(I,V){return I&&V?I===V?!0:ct(te,I)===ct(te,V):!1}},Object.assign(te,f,p);const VP=I=>{const{showHeader:V,showFooter:H}=e,{tableData:Y,tableColumn:Q,tableGroupColumn:oe,columnStore:re,footerTableData:ce}=c,de=I==="left",me=de?re.leftList:re.rightList;return a.h("div",{ref:de?B:N,class:`vxe-table--fixed-${I}-wrapper`},[V?a.h(UW,{ref:de?k:E,fixedType:I,tableData:Y,tableColumn:Q,tableGroupColumn:oe,fixedColumn:me}):Wa(te),a.h(WW,{ref:de?_:A,fixedType:I,tableData:Y,tableColumn:Q,fixedColumn:me}),H?a.h(YW,{ref:de?T:D,footerTableData:ce,tableColumn:Q,fixedColumn:me,fixedType:I}):Wa(te)])},Ple=()=>{const I=He.value,V={$table:te};if(n.empty)return n.empty(V);{const H=I.name?KW.get(I.name):null,Y=H?H.renderTableEmpty||H.renderTableEmptyView||H.renderEmpty:null;if(Y)return Ya(Y(I,V))}return au(e.emptyText)||Ic("vxe.table.emptyText")},Vle=()=>{const{dragConfig:I}=e,{dragRow:V,dragCol:H,dragTipText:Y}=c,Q=Fe.value,ce=(De.value.slots||{}).tip||(I&&I.slots?I.slots.rowTip:null),me=(Q.slots||{}).tip;return V&&ce?cg(ce,{row:V}):H&&me?cg(me,{column:H}):[a.h("span",Y)]},Fle=()=>{const{dragRow:I}=c,V=Te.value,H=be.value,Y=De.value,Q=Fe.value;return V.drag||H.drag?a.h("div",{class:"vxe-table--drag-wrapper"},[a.h("div",{ref:L,class:["vxe-table--drag-row-line",{"is--guides":Y.showGuidesStatus}]}),a.h("div",{ref:z,class:["vxe-table--drag-col-line",{"is--guides":Q.showGuidesStatus}]}),a.h("div",{ref:R,class:"vxe-table--drag-sort-tip"},[a.h("div",{class:"vxe-table--drag-sort-tip-wrapper"},[a.h("div",{class:"vxe-table--drag-sort-tip-status"},[a.h("span",{class:["vxe-table--drag-sort-tip-normal-status",I?v1().TABLE_DRAG_STATUS_ROW:v1().TABLE_DRAG_STATUS_COLUMN]}),a.h("span",{class:["vxe-table--drag-sort-tip-sub-status",v1().TABLE_DRAG_STATUS_SUB_ROW]}),a.h("span",{class:["vxe-table--drag-sort-tip-disabled-status",v1().TABLE_DRAG_DISABLED]})]),a.h("div",{class:"vxe-table--drag-sort-tip-content"},Vle())])])]):Wa(te)};function r_(){const I=h.value;I&&I.clientWidth&&I.clientHeight&&f.recalculate()}const zle=()=>{const{loading:I,stripe:V,showHeader:H,height:Y,treeConfig:Q,mouseConfig:oe,showFooter:re,highlightCell:ce,highlightHoverRow:de,highlightHoverColumn:me,editConfig:ge,editRules:Be}=e,{isCalcColumn:xe,isGroup:Ie,overflowX:Le,overflowY:Ae,scrollXLoad:qe,scrollYLoad:gt,scrollbarHeight:Oe,tableData:ut,tableColumn:wt,tableGroupColumn:Lt,footerTableData:Pt,initStore:an,columnStore:rn,filterStore:ln,customStore:Jt,tooltipStore:_n}=c,{leftList:Qt,rightList:tn}=rn,hr=n.loading,hs=lt.value,zi=ie.value,Cu=Me.value,_l=we.value,hi=Te.value,Eo=be.value,la=u.value,Ho=Ut.value,sa=at.value,wu=tt.value,vs=vt.value,Tr=We.value,Rr=Mt.value,Lr=c._isLoading||I,Ar=Zn.value,Ea=Ve.value,Wo=oe&&sa.area,_a=Fe.value;return a.h("div",{ref:h,class:["vxe-table","vxe-table--render-default",`tid_${o}`,`border--${Ho}`,{[`size--${la}`]:la,[`valid-msg--${zi.msgMode}`]:!!Be,"vxe-editable":!!ge,"old-cell-valid":Be&&jn().cellVaildMode==="obsolete","cell--highlight":ce,"cell--selected":oe&&sa.selected,"cell--area":Wo,"header-cell--area":Wo&&wu.selectCellByHeader,"body-cell--area":Wo&&wu.selectCellByBody,"row--highlight":hi.isHover||de,"column--highlight":Eo.isHover||me,"checkbox--range":Cu.range,"column--calc":xe,"col--drag-cell":Eo.drag&&_a.trigger==="cell","is--header":H,"is--footer":re,"is--group":Ie,"is--tree-line":Q&&(_l.showLine||_l.line),"is--fixed-left":Qt.length,"is--fixed-right":tn.length,"is--animat":!!e.animat,"is--padding":e.padding,"is--round":e.round,"is--stripe":!Q&&V,"is--loading":Lr,"is--empty":!Lr&&!ut.length,"is--scroll-y":Ae,"is--scroll-x":Le,"is--virtual-x":qe,"is--virtual-y":gt}],spellcheck:!1,onKeydown:Ale},[a.h("div",{class:"vxe-table-slots"},n.default?n.default({}):[]),a.h("div",{key:"tw",class:"vxe-table--render-wrapper"},[a.h("div",{class:"vxe-table--main-wrapper"},[H?a.h(UW,{ref:w,tableData:ut,tableColumn:wt,tableGroupColumn:Lt}):Wa(te),a.h(WW,{ref:S,tableData:ut,tableColumn:wt}),re?a.h(YW,{ref:x,footerTableData:Pt,tableColumn:wt}):Wa(te)]),a.h("div",{class:"vxe-table--fixed-wrapper"},[Qt&&Qt.length&&Le?VP("left"):Wa(te),tn&&tn.length&&Le?VP("right"):Wa(te)])]),Ar.x?a.h("div",{key:"vx",ref:F,class:"vxe-table--scroll-x-virtual"},[a.h("div",{ref:$,class:"vxe-table--scroll-x-handle",onScroll:wle},[a.h("div",{ref:j,class:"vxe-table--scroll-x-space"})])]):Wa(te),Ar.y?a.h("div",{key:"vy",ref:G,class:"vxe-table--scroll-y-virtual"},[a.h("div",{ref:W,class:"vxe-table--scroll-y-handle",onScroll:Sle},[a.h("div",{ref:J,class:"vxe-table--scroll-y-space"})])]):Wa(te),a.h("div",{key:"tn",ref:P,class:"vxe-table--empty-placeholder"},[a.h("div",{class:"vxe-table--empty-content"},Ple())]),a.h("div",{key:"tl",class:"vxe-table--border-line"}),a.h("div",{key:"cl",ref:M,class:"vxe-table--resizable-bar",style:Le?{"padding-bottom":`${Oe}px`}:null},Ea.showDragTip?[a.h("div",{ref:O,class:"vxe-table--resizable-number-tip"},"23432px")]:[]),i?a.h(i,{key:"lg",class:"vxe-table--loading",modelValue:Lr,icon:Tr.icon,text:Tr.text},hr?{default:()=>cg(hr,{$table:te,$grid:Z,loading:Lr})}:{}):hr?a.h("div",{class:["vxe-loading--custom-wrapper",{"is--visible":Lr}]},cg(hr,{$table:te,$grid:Z,loading:Lr})):Wa(te),an.custom?a.h(LCt,{key:"cs",ref:b,customStore:Jt}):Wa(te),an.filter?a.h(PCt,{key:"tf",ref:C,filterStore:ln}):Wa(te),an.import&&e.importConfig?a.h(FCt,{key:"it",defaultOptions:c.importParams,storeData:c.importStore}):Wa(te),an.export&&(e.exportConfig||e.printConfig)?a.h(zCt,{key:"et",defaultOptions:c.exportParams,storeData:c.exportStore}):Wa(te),Rr?a.h(HCt,{key:"tm",ref:y}):Wa(te),Fle(),l?a.h("div",{},[a.h(l,{key:"ctp",ref:m,isArrow:!1,enterable:!1}),a.h(l,Object.assign({key:"btp",ref:v},hs,_n.currOpts)),e.editRules&&zi.showMessage&&(zi.message==="default"?!Y:zi.message==="tooltip")?a.h(l,Object.assign({key:"vtp",ref:g,class:[{"old-cell-valid":Be&&jn().cellVaildMode==="obsolete"},"vxe-table--valid-error"]},zi.message==="tooltip"||ut.length===1?vs:{})):Wa(te)]):Wa(te)])},a_=a.ref(0);a.watch(()=>e.data?e.data.length:-1,()=>{a_.value++}),a.watch(()=>e.data,()=>{a_.value++}),a.watch(a_,()=>{const{initStatus:I}=d,V=e.data||[];V&&V.length>=5e4&&lv("vxe.error.errLargeData",["loadData(data), reloadData(data)"]),xC(V).then(()=>{const{scrollXLoad:H,scrollYLoad:Y,expandColumn:Q}=c;d.inited=!0,d.initStatus=!0,I||kC(),(H||Y)&&Q&&lv("vxe.error.scrollErrProp",["column.type=expand"]),f.recalculate()})});const o_=a.ref(0);a.watch(()=>c.staticColumns.length,()=>{o_.value++}),a.watch(()=>c.staticColumns,()=>{o_.value++}),a.watch(o_,()=>{BP(U.clone(c.staticColumns))});const i_=a.ref(0);a.watch(()=>c.tableColumn.length,()=>{i_.value++}),a.watch(()=>c.tableColumn,()=>{i_.value++}),a.watch(i_,()=>{p.analyColumnWidth()}),a.watch(()=>c.upDataFlag,()=>{a.nextTick(()=>{f.updateData()})}),a.watch(()=>c.reColumnFlag,()=>{a.nextTick(()=>{f.refreshColumn()})}),a.watch(()=>e.showHeader,()=>{a.nextTick(()=>{f.recalculate(!0).then(()=>f.refreshScroll())})}),a.watch(()=>e.showFooter,()=>{a.nextTick(()=>{f.recalculate(!0).then(()=>f.refreshScroll())})});const l_=a.ref(0);a.watch(()=>e.footerData?e.footerData.length:-1,()=>{l_.value++}),a.watch(()=>e.footerData,()=>{l_.value++}),a.watch(l_,()=>{f.updateFooter()}),a.watch(()=>e.height,()=>{a.nextTick(()=>f.recalculate(!0))}),a.watch(()=>e.maxHeight,()=>{a.nextTick(()=>f.recalculate(!0))}),a.watch(u,()=>{a.nextTick(()=>{f.recalculate(!0).then(()=>f.refreshScroll())})}),a.watch(()=>e.syncResize,I=>{I&&(r_(),a.nextTick(()=>{r_(),setTimeout(()=>r_())}))});const s_=a.ref(0);a.watch(()=>e.mergeCells?e.mergeCells.length:-1,()=>{s_.value++}),a.watch(()=>e.mergeCells,()=>{s_.value++}),a.watch(s_,()=>{f.clearMergeCells(),a.nextTick(()=>{e.mergeCells&&f.setMergeCells(e.mergeCells)})});const u_=a.ref(0);a.watch(()=>e.mergeFooterItems?e.mergeFooterItems.length:-1,()=>{u_.value++}),a.watch(()=>e.mergeFooterItems,()=>{u_.value++}),a.watch(u_,()=>{f.clearMergeFooterItems(),a.nextTick(()=>{e.mergeFooterItems&&f.setMergeFooterItems(e.mergeFooterItems)})}),s&&a.watch(()=>s?s.reactData.resizeFlag:null,()=>{LP()}),UCt.forEach(I=>{const{setupTable:V}=I;if(V){const H=V(te);H&&U.isObject(H)&&Object.assign(te,H)}}),p.preventEvent(null,"created",{$table:te});let dg;return a.onActivated(()=>{f.recalculate().then(()=>f.refreshScroll()),p.preventEvent(null,"activated",{$table:te})}),a.onDeactivated(()=>{d.isActivated=!1,p.preventEvent(null,"deactivated",{$table:te})}),a.onMounted(()=>{const I=be.value,V=Te.value,H=xt.value;(I.drag||V.drag||H.allowSort)&&Soe(),a.nextTick(()=>{const{data:Y,treeConfig:Q,showOverflow:oe}=e,{scrollXStore:re,scrollYStore:ce}=d,de=pe.value;if(ft.value,we.value,ye.value,Me.value,ve.value,Te.value,Object.assign(ce,{startIndex:0,endIndex:0,visibleSize:0,adaptive:de.adaptive!==!1}),Object.assign(re,{startIndex:0,endIndex:0,visibleSize:0}),xC(Y||[]).then(()=>{Y&&Y.length&&(d.inited=!0,d.initStatus=!0,kC()),mle(),ka()}),e.autoResize){const me=h.value,ge=p.getParentElem();dg=GCt.create(()=>{e.autoResize&&f.recalculate(!0)}),me&&dg.observe(me),ge&&dg.observe(ge)}}),fr.on(te,"paste",Mle),fr.on(te,"copy",Nle),fr.on(te,"cut",Ble),fr.on(te,"mousedown",Ele),fr.on(te,"blur",_le),fr.on(te,"mousewheel",Tle),fr.on(te,"keydown",Dle),fr.on(te,"resize",LP),fr.on(te,"contextmenu",te.handleGlobalContextmenuEvent),p.preventEvent(null,"mounted",{$table:te})}),a.onBeforeUnmount(()=>{dg&&dg.disconnect(),f.closeFilter(),te.closeMenu&&te.closeMenu(),p.preventEvent(null,"beforeUnmount",{$table:te})}),a.onUnmounted(()=>{fr.off(te,"paste"),fr.off(te,"copy"),fr.off(te,"cut"),fr.off(te,"mousedown"),fr.off(te,"blur"),fr.off(te,"mousewheel"),fr.off(te,"keydown"),fr.off(te,"resize"),fr.off(te,"contextmenu"),p.preventEvent(null,"unmounted",{$table:te})}),a.provide("$xeColgroup",null),a.provide("$xeTable",te),te.renderVN=zle,te},render(){return this.renderVN()}});function jCt(e){const t=a.computed(()=>{const{renderParams:i}=e;return i.column}),n=a.computed(()=>{const{renderParams:i}=e;return i.row}),r=a.computed(()=>{const{renderOpts:i}=e;return i.props||{}}),o=a.computed({get(){const{renderParams:i}=e,{row:l,column:s}=i;return U.get(l,s.field)},set(i){const{renderParams:l}=e,{row:s,column:u}=l;return U.set(s,u.field,i)}});return{currColumn:t,currRow:n,cellModel:o,cellOptions:r}}const{renderer:QW,hooks:KCt}=Ze,XCt=["openFilter","setFilter","clearFilter","saveFilterPanel","resetFilterPanel","getCheckedFilters","updateFilterOptionStatus"];KCt.add("tableFilterModule",{setupTable(e){const{props:t,reactData:n,internalData:r}=e,{refTableHeader:o,refTableBody:i,refTableFilter:l}=e.getRefMaps(),{computeFilterOpts:s,computeMouseOpts:u}=e.getComputeMaps(),c=m=>{const{filterStore:g}=n;g.options.forEach(y=>{y.checked=y._checked}),e.confirmFilterEvent(m)},d=(m,g,y)=>{const{filterStore:C}=n;C.options.forEach(b=>{b._checked=!1}),y._checked=g,e.checkFilterOptions(),c(m)},f=(m,g,y)=>{y._checked=g,e.checkFilterOptions()},p=m=>{const{filterStore:g}=n;e.handleClearFilter(g.column),e.confirmFilterEvent(m)},h={checkFilterOptions(){const{filterStore:m}=n;m.isAllSelected=m.options.every(g=>g._checked),m.isIndeterminate=!m.isAllSelected&&m.options.some(g=>g._checked)},triggerFilterEvent(m,g,y){const{initStore:C,filterStore:b}=n;if(b.column===g&&b.visible)b.visible=!1;else{const{target:w,pageX:S}=m,{visibleWidth:x}=UE(),{filters:k,filterMultiple:_,filterRender:T}=g,E=dn(T)?QW.get(T.name):null,A=g.filterRecoverMethod||(E?E.tableFilterRecoverMethod||E.filterRecoverMethod:null);r._currFilterParams=y,Object.assign(b,{multiple:_,options:k,column:g,style:null}),b.options.forEach(D=>{const{_checked:B,checked:N}=D;D._checked=N,!N&&B!==N&&A&&A({option:D,column:g,$table:e})}),this.checkFilterOptions(),b.visible=!0,C.filter=!0,a.nextTick(()=>{const D=o.value,B=i.value,N=D?D.$el:null,M=B.$el;if(!M)return;const O=l.value,P=O?O.$el:null;if(!P)return;const R=P.offsetWidth,L=P.offsetHeight,z=P.querySelector(".vxe-table--filter-header"),F=P.querySelector(".vxe-table--filter-footer"),G=R/2,$=10,W=M.clientWidth-R-$;let j,J;const Z={top:`${w.offsetTop+w.offsetParent.offsetTop+w.offsetHeight}px`};let X=null;const ae=M.clientHeight-(N?N.clientHeight/2:0);if(L>=ae&&(X=Math.max(40,ae-(F?F.offsetHeight:0)-(z?z.offsetHeight:0))),g.fixed==="left"?j=w.offsetLeft+w.offsetParent.offsetLeft-G:g.fixed==="right"?J=w.offsetParent.offsetWidth-w.offsetLeft+(w.offsetParent.offsetParent.offsetWidth-w.offsetParent.offsetLeft)-g.renderWidth-G:j=w.offsetLeft+w.offsetParent.offsetLeft-G-M.scrollLeft,j){const ie=S+R-G+$-x;ie>0&&(j-=ie),Z.left=`${Math.min(W,Math.max($,j))}px`}else if(J){const ie=S+R-G+$-x;ie>0&&(J+=ie),Z.right=`${Math.max($,J)}px`}b.style=Z,b.maxHeight=X})}e.dispatchEvent("filter-visible",{column:g,field:g.field,property:g.field,filterList:e.getCheckedFilters(),visible:b.visible},m)},handleClearFilter(m){if(m){const{filters:g,filterRender:y}=m;if(g){const C=dn(y)?QW.get(y.name):null,b=m.filterResetMethod||(C?C.tableFilterResetMethod||C.filterResetMethod:null);g.forEach(w=>{w._checked=!1,w.checked=!1,b||(w.data=U.clone(w.resetValue,!0))}),b&&b({options:g,column:m,$table:e})}}},handleColumnConfirmFilter(m,g){const{mouseConfig:y}=t,{scrollXLoad:C,scrollYLoad:b}=n,w=s.value,S=u.value,{field:x}=m,k=[],_=[];m.filters.forEach(A=>{A.checked&&(k.push(A.value),_.push(A.data))});const T=e.getCheckedFilters(),E={$table:e,$event:g,column:m,field:x,property:x,values:k,datas:_,filters:T,filterList:T};return w.remote||(e.handleTableData(!0),e.checkSelectionStatus()),y&&S.area&&e.handleFilterEvent&&e.handleFilterEvent(g,E),g&&e.dispatchEvent("filter-change",E,g),e.closeFilter(),e.updateFooter().then(()=>{const{scrollXLoad:A,scrollYLoad:D}=n;if(C||A||b||D)return(C||A)&&e.updateScrollXSpace(),(b||D)&&e.updateScrollYSpace(),e.refreshScroll()}).then(()=>(e.updateCellAreas(),e.recalculate(!0))).then(()=>{setTimeout(()=>e.recalculate(),50)})},confirmFilterEvent(m){const{filterStore:g}=n,{column:y}=g;e.handleColumnConfirmFilter(y,m)},handleFilterChangeRadioOption:d,handleFilterChangeMultipleOption:f,handleFilterChangeOption(m,g,y){const{filterStore:C}=n;C.multiple?f(m,g,y):d(m,g,y)},handleFilterConfirmFilter:c,handleFilterResetFilter:p};return Object.assign(Object.assign({},{openFilter(m){const g=na(e,m);if(g&&g.filters){const{elemStore:y}=r,{fixed:C}=g;return e.scrollToColumn(g).then(()=>{const b=Mo(y[`${C||"main"}-header-wrapper`]||y["main-header-wrapper"]);if(b){const w=b.querySelector(`.vxe-header--column.${g.id} .vxe-filter--btn`);hCt(w,"click")}})}return a.nextTick()},setFilter(m,g,y){const C=na(e,m);return C&&C.filters&&(C.filters=_oe(g||[]),y)?e.handleColumnConfirmFilter(C,new Event("click")):a.nextTick()},clearFilter(m){const{filterStore:g}=n,{tableFullColumn:y}=r,C=s.value;let b;return m?(b=na(e,m),b&&h.handleClearFilter(b)):y.forEach(h.handleClearFilter),(!m||b!==g.column)&&Object.assign(g,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),C.remote?a.nextTick():e.updateData()},saveFilterPanel(){return c(null),a.nextTick()},resetFilterPanel(){return p(null),a.nextTick()},getCheckedFilters(){const{tableFullColumn:m}=r,g=[];return m.forEach(y=>{const{field:C,filters:b}=y,w=[],S=[];b&&b.length&&(b.forEach(x=>{x.checked&&(w.push(x.value),S.push(x.data))}),w.length&&g.push({column:y,field:C,property:C,values:w,datas:S}))}),g},updateFilterOptionStatus(m,g){return m._checked=g,m.checked=g,a.nextTick()}}),h)},setupGrid(e){return e.extendTableMethods(XCt)}});const{menus:qCt,hooks:ZCt,globalEvents:m1,GLOBAL_EVENT_KEYS:g1}=Ze,QCt=["closeMenu"];ZCt.add("tableMenuModule",{setupTable(e){const{xID:t,props:n,reactData:r,internalData:o}=e,{refElem:i,refTableFilter:l,refTableMenu:s}=e.getRefMaps(),{computeMouseOpts:u,computeIsMenu:c,computeMenuOpts:d}=e.getComputeMaps();let f={},p={};const h=(v,m,g)=>{const{ctxMenuStore:y}=r,C=c.value,b=d.value,w=b[m],S=b.visibleMethod;if(w){const{options:x,disabled:k}=w;k?v.preventDefault():C&&x&&x.length&&(g.options=x,e.preventEvent(v,"event.showMenu",g,()=>{if(!S||S(g)){v.preventDefault(),e.updateZindex();const{scrollTop:_,scrollLeft:T,visibleHeight:E,visibleWidth:A}=UE();let D=v.clientY+_,B=v.clientX+T;const N=()=>{o._currMenuParams=g,Object.assign(y,{visible:!0,list:x,selected:null,selectChild:null,showChild:!1,style:{zIndex:o.tZindex,top:`${D}px`,left:`${B}px`}}),a.nextTick(()=>{const L=s.value.getRefMaps().refElem.value,z=L.clientHeight,F=L.clientWidth,{boundingTop:G,boundingLeft:$}=pS(L),W=G+z-E,j=$+F-A;W>-10&&(y.style.top=`${Math.max(_+2,D-z-2)}px`),j>-10&&(y.style.left=`${Math.max(T+2,B-F-2)}px`)})},{keyboard:M,row:O,column:P}=g;M&&O&&P?e.scrollToRow(O,P).then(()=>{const R=e.getCellElement(O,P);if(R){const{boundingTop:L,boundingLeft:z}=pS(R);D=L+_+Math.floor(R.offsetHeight/2),B=z+T+Math.floor(R.offsetWidth/2)}N()}):N()}else f.closeMenu()}))}e.closeFilter()};return f={closeMenu(){return Object.assign(r.ctxMenuStore,{visible:!1,selected:null,selectChild:null,showChild:!1}),a.nextTick()}},p={moveCtxMenu(v,m,g,y,C,b){let w;const S=U.findIndexOf(b,x=>m[g]===x);if(y)C&&mv(m.selected)?m.showChild=!0:(m.showChild=!1,m.selectChild=null);else if(m1.hasKey(v,g1.ARROW_UP)){for(let x=S-1;x>=0;x--)if(b[x].visible!==!1){w=b[x];break}m[g]=w||b[b.length-1]}else if(m1.hasKey(v,g1.ARROW_DOWN)){for(let x=S+1;x<b.length;x++)if(b[x].visible!==!1){w=b[x];break}m[g]=w||b[0]}else m[g]&&(m1.hasKey(v,g1.ENTER)||m1.hasKey(v,g1.SPACEBAR))&&p.ctxMenuLinkEvent(v,m[g])},handleOpenMenuEvent:h,handleGlobalContextmenuEvent(v){const{mouseConfig:m,menuConfig:g}=n,{editStore:y,ctxMenuStore:C}=r,{visibleColumn:b}=o,w=l.value,S=s.value,x=u.value,k=d.value,_=i.value,{selected:T}=y,E=["header","body","footer"];if(dn(g)){if(C.visible&&S&&Hn(v,S.getRefMaps().refElem.value).flag){v.preventDefault();return}if(o._keyCtx){const A="body",D={type:A,$table:e,keyboard:!0,columns:b.slice(0),$event:v};if(m&&x.area){const B=e.getActiveCellArea();if(B&&B.row&&B.column){D.row=B.row,D.column=B.column,h(v,A,D);return}}else if(m&&x.selected&&T.row&&T.column){D.row=T.row,D.column=T.column,h(v,A,D);return}}for(let A=0;A<E.length;A++){const D=E[A],B=Hn(v,_,`vxe-${D}--column`,M=>M.parentNode.parentNode.parentNode.getAttribute("xid")===t),N={type:D,$table:e,columns:b.slice(0),$event:v};if(B.flag){const M=B.targetElem,O=e.getColumnNode(M),P=O?O.item:null;let R=`${D}-`;if(P&&Object.assign(N,{column:P,columnIndex:e.getColumnIndex(P),cell:M}),D==="body"){const z=e.getRowNode(M.parentNode),F=z?z.item:null;R="",F&&(N.row=F,N.rowIndex=e.getRowIndex(F))}const L=`${R}cell-menu`;h(v,D,N),e.dispatchEvent(L,N,v);return}else if(Hn(v,_,`vxe-table--${D}-wrapper`,M=>M.getAttribute("xid")===t).flag){k.trigger==="cell"?v.preventDefault():h(v,D,N);return}}}w&&!Hn(v,w.$el).flag&&e.closeFilter(),f.closeMenu()},ctxMenuMouseoverEvent(v,m,g){const y=v.currentTarget,{ctxMenuStore:C}=r;v.preventDefault(),v.stopPropagation(),C.selected=m,C.selectChild=g,g||(C.showChild=mv(m),C.showChild&&a.nextTick(()=>{const b=y.nextElementSibling;if(b){const{boundingTop:w,boundingLeft:S,visibleHeight:x,visibleWidth:k}=pS(y),_=w+y.offsetHeight,T=S+y.offsetWidth;let E="",A="";T+b.offsetWidth>k-10&&(E="auto",A=`${y.offsetWidth}px`);let D="",B="";_+b.offsetHeight>x-10&&(D="auto",B="0"),b.style.left=E,b.style.right=A,b.style.top=D,b.style.bottom=B}}))},ctxMenuMouseoutEvent(v,m){const{ctxMenuStore:g}=r;m.children||(g.selected=null),g.selectChild=null},ctxMenuLinkEvent(v,m){if(!m.disabled&&(m.code||!m.children||!m.children.length)){const g=qCt.get(m.code),y=Object.assign({},o._currMenuParams,{menu:m,$table:e,$grid:e.xegrid,$event:v}),C=g?g.tableMenuMethod||g.menuMethod:null;C&&C(y,v),e.dispatchEvent("menu-click",y,v),f.closeMenu()}}},Object.assign(Object.assign({},f),p)},setupGrid(e){return e.extendTableMethods(QCt)}});const{getConfig:JCt,renderer:ewt,hooks:twt,getI18n:JW}=Ze,nwt=["insert","insertAt","insertNextAt","insertChild","insertChildAt","insertChildNextAt","remove","removeCheckboxRow","removeRadioRow","removeCurrentRow","getRecordset","getInsertRecords","getRemoveRecords","getUpdateRecords","getEditRecord","getActiveRecord","getSelectedCell","clearEdit","clearActived","clearSelected","isEditByRow","isActiveByRow","setEditRow","setActiveRow","setEditCell","setActiveCell","setSelectCell"];twt.add("tableEditModule",{setupTable(e){const{props:t,reactData:n,internalData:r}=e,{refElem:o}=e.getRefMaps(),{computeMouseOpts:i,computeEditOpts:l,computeCheckboxOpts:s,computeTreeOpts:u,computeValidOpts:c}=e.getComputeMaps();let d={},f={};const p=(w,S)=>{const{model:x,editRender:k}=S;k&&(x.value=ba(w,S),x.update=!1)},h=(w,S)=>{const{model:x,editRender:k}=S;k&&x.update&&(Rs(w,S,x.value),x.update=!1,x.value=null)},v=()=>{const w=o.value;if(w){const S=w.querySelector(".col--selected");S&&Ei(S,"col--selected")}};function m(){const{editStore:w,tableColumn:S}=n,x=l.value,{actived:k}=w,{row:_,column:T}=k;(_||T)&&(x.mode==="row"?S.forEach(E=>h(_,E)):h(_,T))}function g(w,S){const{tableFullTreeData:x,afterFullData:k,fullDataRowIdData:_,fullAllDataRowIdData:T}=r,E=u.value,{rowField:A,parentField:D,mapChildrenField:B}=E,N=E.children||E.childrenField,M=S?"push":"unshift";w.forEach(O=>{const P=O[D],R=ct(e,O),L=P?U.findTree(x,z=>P===z[A],{children:B}):null;if(L){const{item:z}=L,F=T[ct(e,z)],G=F?F.level:0;let $=z[N],W=z[B];U.isArray($)||($=z[N]=[]),U.isArray(W)||(W=z[N]=[]),$[M](O),W[M](O);const j={row:O,rowid:R,seq:-1,index:-1,_index:-1,$index:-1,items:$,parent:z,level:G+1,height:0,oTop:0};_[R]=j,T[R]=j}else{k[M](O),x[M](O);const z={row:O,rowid:R,seq:-1,index:-1,_index:-1,$index:-1,items:x,parent:null,level:0,height:0,oTop:0};_[R]=z,T[R]=z}})}const y=(w,S,x)=>{const{treeConfig:k}=t,{mergeList:_,editStore:T}=n,{tableFullTreeData:E,afterFullData:A,tableFullData:D,fullDataRowIdData:B,fullAllDataRowIdData:N}=r,M=u.value,{transform:O,rowField:P,mapChildrenField:R}=M,L=M.children||M.childrenField;U.isArray(w)||(w=[w]);const z=a.reactive(e.defineField(w.map(G=>Object.assign(k&&O?{[R]:[],[L]:[]}:{},G))));if(U.eqNull(S))k&&O?g(z,!1):(z.forEach(G=>{const $=ct(e,G),W={row:G,rowid:$,seq:-1,index:-1,_index:-1,$index:-1,items:A,parent:null,level:0,height:0,oTop:0};B[$]=W,N[$]=W,A.unshift(G),D.unshift(G)}),_.forEach(G=>{const{row:$}=G;$>0&&(G.row=$+z.length)}));else if(S===-1)k&&O?g(z,!0):(z.forEach(G=>{const $=ct(e,G),W={row:G,rowid:$,seq:-1,index:-1,_index:-1,$index:-1,items:A,parent:null,level:0,height:0,oTop:0};B[$]=W,N[$]=W,A.push(G),D.push(G)}),_.forEach(G=>{const{row:$,rowspan:W}=G;$+W>A.length&&(G.rowspan=W+z.length)}));else if(k&&O){const G=U.findTree(E,$=>S[P]===$[P],{children:R});if(G){const{parent:$}=G,W=$?$[R]:E,j=N[ct(e,$)],J=j?j.level:0;if(z.forEach((Z,X)=>{const ae=ct(e,Z);$&&(Z[M.parentField]=$[P]);let ie=G.index+X;x&&(ie=ie+1),W.splice(ie,0,Z);const K={row:Z,rowid:ae,seq:-1,index:-1,_index:-1,$index:-1,items:W,parent:$,level:J+1,height:0,oTop:0};B[ae]=K,N[ae]=K}),$){const Z=U.findTree(E,X=>S[P]===X[P],{children:L});if(Z){const X=Z.items;let ae=Z.index;x&&(ae=ae+1),X.splice(ae,0,...z)}}}else g(z,!0)}else{if(k)throw new Error(JW("vxe.error.noTree",["insert"]));let G=-1;if(U.isNumber(S)?S<A.length&&(G=S):G=e.findRowIndexOf(A,S),x&&(G=Math.min(A.length,G+1)),G===-1)throw new Error(JW("vxe.error.unableInsert"));A.splice(G,0,...z);const $=e.findRowIndexOf(D,S);$>-1?D.splice($+(x?1:0),0,...z):D.push(...z),_.forEach(W=>{const{row:j,rowspan:J}=W;j>G?W.row=j+z.length:j+J>G&&(W.rowspan=J+z.length)})}const{insertMaps:F}=T;return z.forEach(G=>{const $=ct(e,G);F[$]=G}),e.cacheRowMap(),e.updateScrollYStatus(),e.handleTableData(k&&O),k&&O||e.updateAfterDataIndex(),e.updateFooter(),e.checkSelectionStatus(),n.scrollYLoad&&e.updateScrollYSpace(),a.nextTick().then(()=>(e.updateCellAreas(),e.recalculate())).then(()=>({row:z.length?z[z.length-1]:null,rows:z}))},C=(w,S,x,k)=>{const{treeConfig:_}=t,T=u.value,{transform:E,rowField:A,parentField:D}=T;return _&&E?(U.isArray(w)||(w=[w]),y(w.map(B=>Object.assign({},B,{[D]:S[A]})),x,k)):(Wr("vxe.error.errProp",["tree-config.treeConfig=false","tree-config.treeConfig=true"]),Promise.resolve({row:null,rows:[]}))},b=(w,S)=>{const{mouseConfig:x}=t,{editStore:k}=n,{actived:_,focused:T}=k,{row:E,column:A}=_,D=c.value,B=i.value;if(E||A){if(S&&ct(e,S)!==ct(e,E))return a.nextTick();m(),_.args=null,_.row=null,_.column=null,e.updateFooter(),e.dispatchEvent("edit-closed",{row:E,rowIndex:e.getRowIndex(E),$rowIndex:e.getVMRowIndex(E),column:A,columnIndex:e.getColumnIndex(A),$columnIndex:e.getVMColumnIndex(A)},w||null)}return a.nextTick(()=>{if(x&&B.area&&e.handleRecalculateCellAreas)return e.handleRecalculateCellAreas()}),D.autoClear&&(D.msgMode!=="full"||JCt().cellVaildMode==="obsolete")&&e.clearValidate?e.clearValidate():(T.row=null,T.column=null,a.nextTick())};return d={insert(w){return y(w,null)},insertAt(w,S){return y(w,S)},insertNextAt(w,S){return y(w,S,!0)},insertChild(w,S){return C(w,S,null)},insertChildAt(w,S,x){return C(w,S,x)},insertChildNextAt(w,S,x){return C(w,S,x,!0)},remove(w){const{treeConfig:S}=t,{mergeList:x,editStore:k,selectCheckboxMaps:_}=n,{tableFullTreeData:T,afterFullData:E,tableFullData:A}=r,D=s.value,B=u.value,{transform:N,mapChildrenField:M}=B,O=B.children||B.childrenField,{actived:P,removeMaps:R}=k,L=Object.assign({},k.insertMaps),z=Object.assign({},n.pendingRowMaps),{checkField:F}=D;let G=[];if(w?U.isArray(w)||(w=[w]):w=A,w.forEach($=>{if(!e.isInsertByRow($)){const W=ct(e,$);R[W]=$}}),!F){const $=Object.assign({},_);w.forEach(W=>{const j=ct(e,W);$[j]&&delete $[j]}),n.selectCheckboxMaps=$}return A===w?(w=G=A.slice(0),r.tableFullData=[],r.afterFullData=[],e.clearMergeCells()):S&&N?w.forEach($=>{const W=ct(e,$),j=U.findTree(T,X=>W===ct(e,X),{children:M});if(j){const X=j.items.splice(j.index,1);G.push(X[0])}const J=U.findTree(T,X=>W===ct(e,X),{children:O});J&&J.items.splice(J.index,1);const Z=e.findRowIndexOf(E,$);Z>-1&&E.splice(Z,1)}):w.forEach($=>{const W=e.findRowIndexOf(A,$);if(W>-1){const J=A.splice(W,1);G.push(J[0])}const j=e.findRowIndexOf(E,$);j>-1&&(x.forEach(J=>{const{row:Z,rowspan:X}=J;Z>j?J.row=Z-1:Z+X>j&&(J.rowspan=X-1)}),E.splice(j,1))}),P.row&&e.findRowIndexOf(w,P.row)>-1&&d.clearEdit(),w.forEach($=>{const W=ct(e,$);L[W]&&delete L[W],z[W]&&delete z[W]}),k.insertMaps=L,n.pendingRowMaps=z,e.updateFooter(),e.cacheRowMap(),e.handleTableData(S&&N),S&&N||e.updateAfterDataIndex(),e.checkSelectionStatus(),n.scrollYLoad&&e.updateScrollYSpace(),a.nextTick().then(()=>(e.updateCellAreas(),e.recalculate())).then(()=>({row:G.length?G[G.length-1]:null,rows:G}))},removeCheckboxRow(){return d.remove(e.getCheckboxRecords()).then(w=>(e.clearCheckboxRow(),w))},removeRadioRow(){const w=e.getRadioRecord();return d.remove(w||[]).then(S=>(e.clearRadioRow(),S))},removeCurrentRow(){const w=e.getCurrentRecord();return d.remove(w||[]).then(S=>(e.clearCurrentRow(),S))},getRecordset(){const w=d.getRemoveRecords(),S=e.getPendingRecords(),x=w.concat(S),k=d.getUpdateRecords().filter(_=>!x.some(T=>e.eqRow(T,_)));return{insertRecords:d.getInsertRecords(),removeRecords:w,updateRecords:k,pendingRecords:S}},getInsertRecords(){const{editStore:w}=n,{fullAllDataRowIdData:S}=r,{insertMaps:x}=w,k=[];return U.each(x,(_,T)=>{S[T]&&k.push(_)}),k},getRemoveRecords(){const{editStore:w}=n,{removeMaps:S}=w,x=[];return U.each(S,k=>{x.push(k)}),x},getUpdateRecords(){const{keepSource:w,treeConfig:S}=t,{tableFullData:x}=r,k=u.value;return w?(m(),S?U.filterTree(x,_=>e.isUpdateByRow(_),k):x.filter(_=>e.isUpdateByRow(_))):[]},getActiveRecord(){return this.getEditRecord()},getEditRecord(){const{editStore:w}=n,{afterFullData:S}=r,x=o.value,{args:k,row:_}=w.actived;return k&&e.findRowIndexOf(S,_)>-1&&x.querySelectorAll(".vxe-body--column.col--active").length?Object.assign({},k):null},getSelectedCell(){const{editStore:w}=n,{args:S,column:x}=w.selected;return S&&x?Object.assign({},S):null},clearActived(w){return this.clearEdit(w)},clearEdit(w){return b(null,w)},clearSelected(){const{editStore:w}=n,{selected:S}=w;return S.row=null,S.column=null,v(),a.nextTick()},isActiveByRow(w){return this.isEditByRow(w)},isEditByRow(w){const{editStore:S}=n;return S.actived.row===w},setActiveRow(w){return d.setEditRow(w)},setEditRow(w,S){const{visibleColumn:x}=r;let k=U.find(x,_=>dn(_.editRender));return S&&(k=U.isString(S)?e.getColumnByField(S):S),e.setEditCell(w,k)},setActiveCell(w,S){return d.setEditCell(w,S)},setEditCell(w,S){const{editConfig:x}=t,k=U.isString(S)?e.getColumnByField(S):S;return w&&k&&dn(x)&&dn(k.editRender)?e.scrollToRow(w,k).then(()=>{const _=e.getCellElement(w,k);return _&&(f.handleEdit({row:w,rowIndex:e.getRowIndex(w),column:k,columnIndex:e.getColumnIndex(k),cell:_,$table:e}),r._lastCallTime=Date.now()),a.nextTick()}):a.nextTick()},setSelectCell(w,S){const{tableData:x}=n,k=l.value,_=U.isString(S)?e.getColumnByField(S):S;if(w&&_&&k.trigger!=="manual"){const T=e.findRowIndexOf(x,w);if(T>-1&&_){const E=e.getCellElement(w,_),A={row:w,rowIndex:T,column:_,columnIndex:e.getColumnIndex(_),cell:E};e.handleSelected(A,{})}}return a.nextTick()}},f={handleEdit(w,S){const{editConfig:x,mouseConfig:k}=t,{editStore:_,tableColumn:T}=n,E=l.value,{mode:A}=E,{actived:D,focused:B}=_,{row:N,column:M}=w,{editRender:O}=M,P=w.cell||e.getCellElement(N,M),R=E.beforeEditMethod||E.activeMethod;if(w.cell=P,P&&dn(x)&&dn(O)&&!e.isPendingByRow(N)){if(D.row!==N||A==="cell"&&D.column!==M){let L="edit-disabled";if(!R||R(Object.assign(Object.assign({},w),{$table:e,$grid:e.xegrid}))){k&&(d.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),e.closeTooltip(),D.column&&b(S),L="edit-activated",M.renderHeight=P.offsetHeight,D.args=w,D.row=N,D.column=M,A==="row"?T.forEach(F=>p(N,F)):p(N,M);const z=E.afterEditMethod;a.nextTick(()=>{f.handleFocus(w,S),z&&z(Object.assign(Object.assign({},w),{$table:e,$grid:e.xegrid}))})}e.dispatchEvent(L,{row:N,rowIndex:e.getRowIndex(N),$rowIndex:e.getVMRowIndex(N),column:M,columnIndex:e.getColumnIndex(M),$columnIndex:e.getVMColumnIndex(M)},S),L==="edit-activated"&&e.dispatchEvent("edit-actived",{row:N,rowIndex:e.getRowIndex(N),$rowIndex:e.getVMRowIndex(N),column:M,columnIndex:e.getColumnIndex(M),$columnIndex:e.getVMColumnIndex(M)},S)}else{const{column:L}=D;if(k&&(d.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),L!==M){const{model:z}=L;z.update&&Rs(N,L,z.value),e.clearValidate&&e.clearValidate(N,M)}M.renderHeight=P.offsetHeight,D.args=w,D.column=M,setTimeout(()=>{f.handleFocus(w,S)})}B.column=null,B.row=null,e.focus()}return a.nextTick()},handleActived(w,S){return f.handleEdit(w,S)},handleClearEdit:b,handleFocus(w){const{row:S,column:x,cell:k}=w,{editRender:_}=x,T=l.value;if(dn(_)){const E=ewt.get(_.name);let A=_.autofocus||_.autoFocus,D=_.autoSelect||_.autoselect,B;if(T.autoFocus&&(!A&&E&&(A=E.tableAutoFocus||E.tableAutofocus||E.autofocus),!D&&E&&(D=E.tableAutoSelect||E.autoselect),U.isFunction(A)?B=A(w):A&&(A===!0?B=k.querySelector("input,textarea"):B=k.querySelector(A),B&&B.focus())),B){if(D)B.select();else if(gv.msie){const N=B.createTextRange();N.collapse(!1),N.select()}}else T.autoPos&&(x.fixed||e.scrollToRow(S,x))}},handleSelected(w,S){const{mouseConfig:x}=t,{editStore:k}=n,_=i.value,T=l.value,{actived:E,selected:A}=k,{row:D,column:B}=w,N=x&&_.selected;return N&&(A.row!==D||A.column!==B)&&(E.row!==D||T.mode==="cell"&&E.column!==B)&&(b(S),d.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea()),A.args=w,A.row=D,A.column=B,N&&f.addCellSelectedClass(),e.focus(),S&&e.dispatchEvent("cell-selected",w,S)),a.nextTick()},addCellSelectedClass(){const{editStore:w}=n,{selected:S}=w,{row:x,column:k}=S;if(v(),x&&k){const _=e.getCellElement(x,k);_&&Is(_,"col--selected")}}},Object.assign(Object.assign({},d),f)},setupGrid(e){return e.extendTableMethods(nwt)}});const rwt='body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';function awt(e,t){return new Blob([e],{type:`text/${t.type};charset=utf-8;`})}function owt(e,t){const{style:n}=e;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',`<title>${e.sheetName}</title>`,'<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',`<style>${rwt}</style>`,n?`<style>${n}</style>`:"","</head>",`<body>${t}</body>`,"</html>"].join("")}const{getI18n:_s,hooks:iwt,renderer:P2}=Ze;let Wh;const lwt="\uFEFF",Df=`\r
|
|
119
119
|
`;function eG(e){return e.field||["seq","checkbox","radio"].indexOf(e.type)>-1}const Poe=e=>{const t=[];return e.forEach(n=>{n.childNodes&&n.childNodes.length?(t.push(n),t.push(...Poe(n.childNodes))):t.push(n)}),t},swt=e=>{let t=1;const n=(i,l)=>{if(l&&(i._level=l._level+1,t<i._level&&(t=i._level)),i.childNodes&&i.childNodes.length){let s=0;i.childNodes.forEach(u=>{n(u,i),s+=u._colSpan}),i._colSpan=s}else i._colSpan=1};e.forEach(i=>{i._level=1,n(i)});const r=[];for(let i=0;i<t;i++)r.push([]);return Poe(e).forEach(i=>{i.childNodes&&i.childNodes.length?i._rowSpan=1:i._rowSpan=t-i._level+1,r[i._level-1].push(i)}),r};function uwt(e){return e===!0?"full":e||"default"}function Gh(e){return e==="TRUE"||e==="true"||e===!0}function y1(e,t){const{footerFilterMethod:n}=e;return n?t.filter((r,o)=>n({items:r,$rowIndex:o})):t}function cwt(e,t){if(t){if(e.type==="seq")return` ${t}`;switch(e.cellType){case"string":if(!isNaN(t))return` ${t}`;break;case"number":break;default:if(t.length>=12&&!isNaN(t))return` ${t}`;break}}return t}function Uh(e){return/[",\s\n]/.test(e)?`"${e.replace(/"/g,'""')}"`:e}function xi(e,t){return e.getElementsByTagName(t)}function tG(e){return`#${e}@${U.uniqueId()}`}function Voe(e,t){return e.replace(/#\d+@\d+/g,n=>U.hasOwnProp(t,n)?t[n]:n)}function nG(e,t){return Voe(e,t).replace(/^"+$/g,r=>'"'.repeat(Math.ceil(r.length/2)))}function Foe(e,t,n){const r=t.split(Df),o=[];let i=[];if(r.length){const l={},s=Date.now();r.forEach(u=>{if(u){const c={};u=u.replace(/("")|(\n)/g,(f,p)=>{const h=tG(s);return l[h]=p?'"':`
|
|
120
120
|
`,h}).replace(/"(.*?)"/g,(f,p)=>{const h=tG(s);return l[h]=Voe(p,l),h});const d=u.split(n);i.length?(d.forEach((f,p)=>{p<i.length&&(c[i[p]]=nG(f.trim(),l))}),o.push(c)):i=d.map(f=>nG(f.trim(),l))}})}return{fields:i,rows:o}}function dwt(e,t){return Foe(e,t,",")}function fwt(e,t){return Foe(e,t," ")}function pwt(e,t){const r=new DOMParser().parseFromString(t,"text/html"),o=xi(r,"body"),i=[],l=[];if(o.length){const s=xi(o[0],"table");if(s.length){const u=xi(s[0],"thead");if(u.length){U.arrayEach(xi(u[0],"tr"),d=>{U.arrayEach(xi(d,"th"),f=>{l.push(f.textContent)})});const c=xi(s[0],"tbody");c.length&&U.arrayEach(xi(c[0],"tr"),d=>{const f={};U.arrayEach(xi(d,"td"),(p,h)=>{l[h]&&(f[l[h]]=p.textContent||"")}),i.push(f)})}}}return{fields:l,rows:i}}function hwt(e,t){const r=new DOMParser().parseFromString(t,"application/xml"),o=xi(r,"Worksheet"),i=[],l=[];if(o.length){const s=xi(o[0],"Table");if(s.length){const u=xi(s[0],"Row");u.length&&(U.arrayEach(xi(u[0],"Cell"),c=>{l.push(c.textContent)}),U.arrayEach(u,(c,d)=>{if(d){const f={},p=xi(c,"Cell");U.arrayEach(p,(h,v)=>{l[v]&&(f[l[v]]=h.textContent)}),i.push(f)}}))}}return{fields:l,rows:i}}function rG(e){U.eachTree(e,t=>{delete t._level,delete t._colSpan,delete t._rowSpan,delete t._children,delete t.childNodes},{children:"children"})}function vwt(e,t){const n=[];return e.forEach(r=>{const o=r.field;o&&n.push(o)}),t.some(r=>n.indexOf(r)>-1)}const mwt=["exportData","importByFile","importData","saveFile","readFile","print","getPrintHtml","openImport","closeImport","openExport","closeExport","openPrint","closePrint"];iwt.add("tableExportModule",{setupTable(e){const{props:t,reactData:n,internalData:r}=e,{computeTreeOpts:o,computePrintOpts:i,computeExportOpts:l,computeImportOpts:s,computeCustomOpts:u,computeSeqOpts:c,computeRadioOpts:d,computeCheckboxOpts:f,computeColumnOpts:p}=e.getComputeMaps(),h=a.inject("$xeGrid",null),v=L=>{const z=o.value,F=z.children||z.childrenField;return L[F]&&L[F].length},m=(L,z,F,G,$)=>{const j=c.value.seqMethod||G.seqMethod;return j?j({row:z,rowIndex:e.getRowIndex(z),$rowIndex:F,column:G,columnIndex:e.getColumnIndex(G),$columnIndex:$}):L};function g(L,z){const F=p.value,G=z.headerExportMethod||F.headerExportMethod;return G?G({column:z,options:L,$table:e}):(L.original?z.field:z.getTitle())||""}const y=L=>U.isBoolean(L)?L?"TRUE":"FALSE":L,C=L=>Os(L)?"":`${L}`,b=(L,z,F)=>{const{isAllExpand:G,mode:$}=L,{treeConfig:W}=t,j=d.value,J=f.value,Z=o.value,X=p.value;if(Wh||(Wh=document.createElement("div")),W){const ae=Z.children||Z.childrenField,ie=[],K=new Map;return U.eachTree(F,(ne,pe,le,Ce,be,Ee)=>{const Te=ne._row||ne,De=be&&be._row?be._row:be;if(G||!De||K.has(De)&&e.isTreeExpandByRow(De)){const Fe=v(Te),Je={_row:Te,_level:Ee.length-1,_hasChild:Fe,_expand:Fe&&e.isTreeExpandByRow(Te)};z.forEach((Ve,Ke)=>{let ye="";const Me=Ve.editRender||Ve.cellRender;let Ye=Ve.exportMethod||X.exportMethod;if(!Ye&&Me&&Me.name){const lt=P2.get(Me.name);lt&&(Ye=lt.tableExportMethod||lt.exportMethod)}if(Ye||(Ye=X.exportMethod),Ye)ye=Ye({$table:e,row:Te,column:Ve,options:L});else switch(Ve.type){case"seq":{const lt=Ce.map((vt,ft)=>ft%2===0?Number(vt)+1:".").join("");ye=$==="all"?lt:m(lt,Te,pe,Ve,Ke);break}case"checkbox":ye=y(e.isCheckedByCheckboxRow(Te)),Je._checkboxLabel=J.labelField?U.get(Te,J.labelField):"",Je._checkboxDisabled=J.checkMethod&&!J.checkMethod({row:Te});break;case"radio":ye=y(e.isCheckedByRadioRow(Te)),Je._radioLabel=j.labelField?U.get(Te,j.labelField):"",Je._radioDisabled=j.checkMethod&&!j.checkMethod({row:Te});break;default:if(L.original)ye=ba(Te,Ve);else if(ye=e.getCellLabel(Te,Ve),Ve.type==="html")Wh.innerHTML=ye,ye=Wh.innerText.trim();else{const lt=e.getCellElement(Te,Ve);lt&&(ye=lt.innerText.trim())}}Je[Ve.id]=C(ye)}),K.set(Te,1),ie.push(Object.assign(Je,Te))}},{children:ae}),ie}return F.map((ae,ie)=>{const K={_row:ae};return z.forEach((ne,pe)=>{let le="";const Ce=ne.editRender||ne.cellRender;let be=ne.exportMethod||X.exportMethod;if(!be&&Ce&&Ce.name){const Ee=P2.get(Ce.name);Ee&&(be=Ee.tableExportMethod||Ee.exportMethod)}if(be)le=be({$table:e,row:ae,column:ne,options:L});else switch(ne.type){case"seq":{const Ee=ie+1;le=$==="all"?Ee:m(Ee,ae,ie,ne,pe);break}case"checkbox":le=y(e.isCheckedByCheckboxRow(ae)),K._checkboxLabel=J.labelField?U.get(ae,J.labelField):"",K._checkboxDisabled=J.checkMethod&&!J.checkMethod({row:ae});break;case"radio":le=y(e.isCheckedByRadioRow(ae)),K._radioLabel=j.labelField?U.get(ae,j.labelField):"",K._radioDisabled=j.checkMethod&&!j.checkMethod({row:ae});break;default:if(L.original)le=ba(ae,ne);else if(le=e.getCellLabel(ae,ne),ne.type==="html")Wh.innerHTML=le,le=Wh.innerText.trim();else{const Ee=e.getCellElement(ae,ne);Ee&&(le=Ee.innerText.trim())}}K[ne.id]=C(le)}),K})},w=L=>{const{columns:z,dataFilterMethod:F}=L;let G=L.data;return F&&(G=G.filter(($,W)=>F({row:$,$rowIndex:W}))),b(L,z,G)},S=(L,z,F)=>{const G=p.value,$=F.editRender||F.cellRender;let W=F.footerExportMethod;if(!W&&$&&$.name){const J=P2.get($.name);J&&(W=J.tableFooterExportMethod||J.footerExportMethod)}W||(W=G.footerExportMethod);const j=e.getVTColumnIndex(F);return W?W({$table:e,items:z,itemIndex:j,row:z,_columnIndex:j,column:F,options:L}):U.isArray(z)?U.toValueString(z[j]):U.get(z,F.field)},x=(L,z,F)=>{let G=lwt;if(L.isHeader&&(G+=z.map($=>Uh(g(L,$))).join(",")+Df),F.forEach($=>{G+=z.map(W=>Uh(cwt(W,$[W.id]))).join(",")+Df}),L.isFooter){const{footerTableData:$}=n;y1(L,$).forEach(j=>{G+=z.map(J=>Uh(S(L,j,J))).join(",")+Df})}return G},k=(L,z,F)=>{let G="";if(L.isHeader&&(G+=z.map($=>Uh(g(L,$))).join(" ")+Df),F.forEach($=>{G+=z.map(W=>Uh($[W.id])).join(" ")+Df}),L.isFooter){const{footerTableData:$}=n;y1(L,$).forEach(j=>{G+=z.map(J=>Uh(S(L,j,J))).join(" ")+Df})}return G},_=(L,z,F)=>{const G=L[z],$=U.isUndefined(G)||U.isNull(G)?F:G;let Z=$==="title"||($===!0||$==="tooltip")||$==="ellipsis";const{scrollXLoad:X,scrollYLoad:ae}=n;return(X||ae)&&!Z&&(Z=!0),Z},T=(L,z,F)=>{const{id:G,border:$,treeConfig:W,headerAlign:j,align:J,footerAlign:Z,showOverflow:X,showHeaderOverflow:ae}=t,{isAllSelected:ie,isIndeterminate:K,mergeList:ne}=n,pe=o.value,{print:le,isHeader:Ce,isFooter:be,isColgroup:Ee,isMerge:Te,colgroups:De,original:Fe}=L,Je="check-all",Ke=[`<table class="${["vxe-table",`border--${uwt($)}`,le?"is--print":"",Ce?"is--header":""].filter(Me=>Me).join(" ")}" border="0" cellspacing="0" cellpadding="0">`,`<colgroup>${z.map(Me=>`<col style="width:${Me.renderWidth}px">`).join("")}</colgroup>`];if(Ce&&(Ke.push("<thead>"),Ee&&!Fe?De.forEach(Me=>{Ke.push(`<tr>${Me.map(Ye=>{const lt=Ye.headerAlign||Ye.align||j||J,vt=_(Ye,"showHeaderOverflow",ae)?["col--ellipsis"]:[],ft=g(L,Ye);let pt=0,_e=0;U.eachTree([Ye],tt=>{(!tt.childNodes||!Ye.childNodes.length)&&_e++,pt+=tt.renderWidth},{children:"childNodes"});const at=pt-_e;return lt&&vt.push(`col--${lt}`),Ye.type==="checkbox"?`<th class="${vt.join(" ")}" colspan="${Ye._colSpan}" rowspan="${Ye._rowSpan}"><div ${le?"":`style="width: ${at}px"`}><input type="checkbox" class="${Je}" ${ie?"checked":""}><span>${ft}</span></div></th>`:`<th class="${vt.join(" ")}" colspan="${Ye._colSpan}" rowspan="${Ye._rowSpan}" title="${ft}"><div ${le?"":`style="width: ${at}px"`}><span>${fa(ft,!0)}</span></div></th>`}).join("")}</tr>`)}):Ke.push(`<tr>${z.map(Me=>{const Ye=Me.headerAlign||Me.align||j||J,lt=_(Me,"showHeaderOverflow",ae)?["col--ellipsis"]:[],vt=g(L,Me);return Ye&<.push(`col--${Ye}`),Me.type==="checkbox"?`<th class="${lt.join(" ")}"><div ${le?"":`style="width: ${Me.renderWidth}px"`}><input type="checkbox" class="${Je}" ${ie?"checked":""}><span>${vt}</span></div></th>`:`<th class="${lt.join(" ")}" title="${vt}"><div ${le?"":`style="width: ${Me.renderWidth}px"`}><span>${fa(vt,!0)}</span></div></th>`}).join("")}</tr>`),Ke.push("</thead>")),F.length&&(Ke.push("<tbody>"),W?F.forEach(Me=>{Ke.push("<tr>"+z.map(Ye=>{const lt=Ye.align||J,vt=_(Ye,"showOverflow",X)?["col--ellipsis"]:[],ft=Me[Ye.id];if(lt&&vt.push(`col--${lt}`),Ye.treeNode){let pt="";return Me._hasChild&&(pt=`<i class="${Me._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon"}"></i>`),vt.push("vxe-table--tree-node"),Ye.type==="radio"?`<td class="${vt.join(" ")}" title="${ft}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><div class="vxe-table--tree-node-wrapper" style="padding-left: ${Me._level*pe.indent}px"><div class="vxe-table--tree-icon-wrapper">${pt}</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_${G}" ${Me._radioDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._radioLabel}</span></div></div></div></td>`:Ye.type==="checkbox"?`<td class="${vt.join(" ")}" title="${ft}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><div class="vxe-table--tree-node-wrapper" style="padding-left: ${Me._level*pe.indent}px"><div class="vxe-table--tree-icon-wrapper">${pt}</div><div class="vxe-table--tree-cell"><input type="checkbox" ${Me._checkboxDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._checkboxLabel}</span></div></div></div></td>`:`<td class="${vt.join(" ")}" title="${ft}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><div class="vxe-table--tree-node-wrapper" style="padding-left: ${Me._level*pe.indent}px"><div class="vxe-table--tree-icon-wrapper">${pt}</div><div class="vxe-table--tree-cell">${ft}</div></div></div></td>`}return Ye.type==="radio"?`<td class="${vt.join(" ")}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><input type="radio" name="radio_${G}" ${Me._radioDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._radioLabel}</span></div></td>`:Ye.type==="checkbox"?`<td class="${vt.join(" ")}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><input type="checkbox" ${Me._checkboxDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._checkboxLabel}</span></div></td>`:`<td class="${vt.join(" ")}" title="${ft}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}>${fa(ft,!0)}</div></td>`}).join("")+"</tr>")}):F.forEach(Me=>{Ke.push("<tr>"+z.map(Ye=>{const lt=Ye.align||J,vt=_(Ye,"showOverflow",X)?["col--ellipsis"]:[],ft=Me[Ye.id];let pt=1,_e=1;if(Te&&ne.length){const at=e.getVTRowIndex(Me._row),tt=e.getVTColumnIndex(Ye),ue=Ooe(ne,at,tt);if(ue){const{rowspan:se,colspan:ee}=ue;if(!se||!ee)return"";se>1&&(pt=se),ee>1&&(_e=ee)}}return lt&&vt.push(`col--${lt}`),Ye.type==="radio"?`<td class="${vt.join(" ")}" rowspan="${pt}" colspan="${_e}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><input type="radio" name="radio_${G}" ${Me._radioDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._radioLabel}</span></div></td>`:Ye.type==="checkbox"?`<td class="${vt.join(" ")}" rowspan="${pt}" colspan="${_e}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}><input type="checkbox" ${Me._checkboxDisabled?"disabled ":""}${Gh(ft)?"checked":""}><span>${Me._checkboxLabel}</span></div></td>`:`<td class="${vt.join(" ")}" rowspan="${pt}" colspan="${_e}" title="${ft}"><div ${le?"":`style="width: ${Ye.renderWidth}px"`}>${fa(ft,!0)}</div></td>`}).join("")+"</tr>")}),Ke.push("</tbody>")),be){const{footerTableData:Me}=n,Ye=y1(L,Me);Ye.length&&(Ke.push("<tfoot>"),Ye.forEach(lt=>{Ke.push(`<tr>${z.map(vt=>{const ft=vt.footerAlign||vt.align||Z||J,pt=_(vt,"showOverflow",X)?["col--ellipsis"]:[],_e=S(L,lt,vt);return ft&&pt.push(`col--${ft}`),`<td class="${pt.join(" ")}" title="${_e}"><div ${le?"":`style="width: ${vt.renderWidth}px"`}>${fa(_e,!0)}</div></td>`}).join("")}</tr>`)}),Ke.push("</tfoot>"))}const ye=!ie&&K?`<script>(function(){var a=document.querySelector(".${Je}");if(a){a.indeterminate=true}})()<\/script>`:"";return Ke.push("</table>",ye),le?Ke.join(""):owt(L,Ke.join(""))},E=(L,z,F)=>{let G=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",`<Worksheet ss:Name="${L.sheetName}">`,"<Table>",z.map($=>`<Column ss:Width="${$.renderWidth}"/>`).join("")].join("");if(L.isHeader&&(G+=`<Row>${z.map($=>`<Cell><Data ss:Type="String">${g(L,$)}</Data></Cell>`).join("")}</Row>`),F.forEach($=>{G+="<Row>"+z.map(W=>`<Cell><Data ss:Type="String">${$[W.id]}</Data></Cell>`).join("")+"</Row>"}),L.isFooter){const{footerTableData:$}=n;y1(L,$).forEach(j=>{G+=`<Row>${z.map(J=>`<Cell><Data ss:Type="String">${S(L,j,J)}</Data></Cell>`).join("")}</Row>`})}return`${G}</Table></Worksheet></Workbook>`},A=(L,z,F)=>{if(z.length)switch(L.type){case"csv":return x(L,z,F);case"txt":return k(L,z,F);case"html":return T(L,z,F);case"xml":return E(L,z,F)}return""},D=(L,z)=>{const{filename:F,type:G,download:$}=L;if(!$){const W=awt(z,L);return Promise.resolve({type:G,content:z,blob:W})}Ze.saveFile&&Ze.saveFile({filename:F,type:G,content:z}).then(()=>{L.message!==!1&&Ze.modal&&Ze.modal.message({content:_s("vxe.table.expSuccess"),status:"success"})})},B=L=>{const{remote:z,columns:F,colgroups:G,exportMethod:$,afterExportMethod:W}=L;return new Promise(j=>{if(z){const J={options:L,$table:e,$grid:h};j($?$(J):J)}else{const J=w(L);j(e.preventEvent(null,"event.export",{options:L,columns:F,colgroups:G,datas:J},()=>D(L,A(L,F,J))))}}).then(j=>(rG(F),L.print||W&&W({status:!0,options:L,$table:e,$grid:h}),Object.assign({status:!0},j))).catch(()=>{rG(F),L.print||W&&W({status:!1,options:L,$table:e,$grid:h});const j={status:!1};return Promise.reject(j)})},N=(L,z)=>{const{tableFullColumn:F,_importResolve:G,_importReject:$}=r;let W={fields:[],rows:[]};switch(z.type){case"csv":W=dwt(F,L);break;case"txt":W=fwt(F,L);break;case"html":W=pwt(F,L);break;case"xml":W=hwt(F,L);break}const{fields:j,rows:J}=W;vwt(F,j)?e.createData(J).then(X=>{let ae;return(z.mode==="insert"||z.mode==="insertBottom")&&(ae=e.insertAt(X,-1)),z.mode==="insertTop"?ae=e.insert(X):ae=e.reloadData(X),z.message!==!1&&Ze.modal&&Ze.modal.message({content:_s("vxe.table.impSuccess",[J.length]),status:"success"}),ae.then(()=>{G&&G({status:!0})})}):z.message!==!1&&(Ze.modal&&Ze.modal.message({content:_s("vxe.error.impFields"),status:"error"}),$&&$({status:!1}))},M=(L,z)=>{const{importMethod:F,afterImportMethod:G}=z,{type:$,filename:W}=moe(L),j=s.value;if(!F&&!U.includes(U.keys(j._typeMaps),$)){z.message!==!1&&Ze.modal&&Ze.modal.message({content:_s("vxe.error.notType",[$]),status:"error"});const Z={status:!1};return Promise.reject(Z)}return new Promise((Z,X)=>{const ae=K=>{Z(K),r._importResolve=null,r._importReject=null},ie=K=>{X(K),r._importResolve=null,r._importReject=null};if(r._importResolve=ae,r._importReject=ie,window.FileReader){const K=Object.assign({mode:"insertTop"},z,{type:$,filename:W});if(K.remote)F?Promise.resolve(F({file:L,options:K,$table:e})).then(()=>{ae({status:!0})}).catch(()=>{ae({status:!0})}):ae({status:!0});else{const{tableFullColumn:ne}=r;e.preventEvent(null,"event.import",{file:L,options:K,columns:ne},()=>{const pe=new FileReader;pe.onerror=()=>{Wr("vxe.error.notType",[$]),ie({status:!1})},pe.onload=le=>{N(le.target.result,K)},pe.readAsText(L,K.encoding||"UTF-8")})}}else ae({status:!0})}).then(()=>{G&&G({status:!0,options:z,$table:e})}).catch(Z=>(G&&G({status:!1,options:z,$table:e}),Promise.reject(Z)))},O=(L,z)=>{const{treeConfig:F,showHeader:G,showFooter:$}=t,{initStore:W,mergeList:j,mergeFooterList:J,isGroup:Z,footerTableData:X,exportStore:ae,exportParams:ie}=n,{collectColumn:K}=r,ne=l.value,pe=F,le=u.value,Ce=e.getCheckboxRecords(),be=h?h.getComputeMaps().computeProxyOpts.value:{},Ee=!!X.length,Te=!!(j.length||J.length),De=Object.assign({message:!0,isHeader:G,isFooter:$,isColgroup:Z,isMerge:Te,useStyle:!0,current:"current",modes:["current","selected"].concat(be.ajax&&be.ajax.queryAll?["all"]:[])},L),Fe=De.types||U.keys(ne._typeMaps),Je=De.modes||[],Ve=le.checkMethod,Ke=K.slice(0),{columns:ye}=De,Me=Fe.map(_e=>({value:_e,label:_s(`vxe.export.types.${_e}`)})),Ye=Je.map(_e=>_e&&_e.value?{value:_e.value,label:_e.label||_e.value}:{value:_e,label:_s(`vxe.export.modes.${_e}`)});U.eachTree(Ke,(_e,at,tt,ue,se)=>{(_e.children&&_e.children.length||eG(_e))&&(_e.checked=ye?ye.some(he=>{if(hS(he))return _e.id===he.id;if(U.isString(he))return _e.field===he;{const ze=he.id||he.colId,Xe=he.type,st=he.field;if(ze)return _e.id===ze;if(st&&Xe)return _e.field===st&&_e.type===Xe;if(st)return _e.field===st;if(Xe)return _e.type===Xe}return!1}):_e.visible,_e.halfChecked=!1,_e.disabled=se&&se.disabled||(Ve?!Ve({column:_e}):!1))}),Object.assign(ae,{columns:Ke,typeList:Me,modeList:Ye,hasFooter:Ee,hasMerge:Te,hasTree:pe,isPrint:z,hasColgroup:Z,visible:!0}),Object.assign(ie,{mode:Ce.length?"selected":"current"},De);const{filename:lt,sheetName:vt,mode:ft,type:pt}=ie;return lt&&(U.isFunction(lt)?ie.filename=lt({options:De,$table:e,$grid:h}):ie.filename=`${lt}`),vt&&(U.isFunction(vt)?ie.sheetName=vt({options:De,$table:e,$grid:h}):ie.sheetName=`${vt}`),Ye.some(_e=>_e.value===ft)||(ie.mode=Ye[0].value),Me.some(_e=>_e.value===pt)||(ie.type=Me[0].value),W.export=!0,a.nextTick()},P=()=>Ze.modal?Ze.modal.close("VXE_EXPORT_MODAL"):Promise.resolve(),R={exportData(L){const{treeConfig:z}=t,{isGroup:F,tableGroupColumn:G}=n,{tableFullColumn:$,afterFullData:W}=r,j=l.value,J=o.value,Z=Object.assign({isHeader:!0,isFooter:!0,isColgroup:!0,download:!0,type:"csv",mode:"current"},j,L),{filename:X,sheetName:ae,type:ie,mode:K,columns:ne,original:pe,columnFilterMethod:le,beforeExportMethod:Ce,includeFields:be,excludeFields:Ee}=Z;let Te=[];const De=ne&&ne.length?ne:null,Fe=Object.assign({},Z,{filename:"",sheetName:""});!De&&!le&&(Fe.columnFilterMethod=({column:Ve})=>Ee&&U.includes(Ee,Ve.field)?!1:be?!!U.includes(be,Ve.field):pe?Ve.field:eG(Ve)),De?(Fe._isCustomColumn=!0,Te=U.searchTree(U.mapTree(De,Ve=>{let Ke;if(Ve){if(hS(Ve))Ke=Ve;else if(U.isString(Ve))Ke=e.getColumnByField(Ve);else{const ye=Ve.id||Ve.colId,Me=Ve.type,Ye=Ve.field;ye?Ke=e.getColumnById(ye):Ye&&Me?Ke=$.find(lt=>lt.field===Ye&<.type===Me):Ye?Ke=e.getColumnByField(Ye):Me&&(Ke=$.find(lt=>lt.type===Me))}return Ke||{}}},{children:"childNodes",mapChildren:"_children"}),(Ve,Ke)=>hS(Ve)&&(!le||le({column:Ve,$columnIndex:Ke})),{children:"_children",mapChildren:"childNodes",original:!0})):Te=U.searchTree(F?G:$,(Ve,Ke)=>Ve.visible&&(!le||le({column:Ve,$columnIndex:Ke})),{children:"children",mapChildren:"childNodes",original:!0});const Je=[];if(U.eachTree(Te,Ve=>{Ve.children&&Ve.children.length||Je.push(Ve)},{children:"childNodes"}),Fe.columns=Je,Fe.colgroups=swt(Te),X&&(U.isFunction(X)?Fe.filename=X({options:Z,$table:e,$grid:h}):Fe.filename=`${X}`),Fe.filename||(Fe.filename=_s(Fe.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[U.toDateString(Date.now(),"yyyyMMddHHmmss")])),ae&&(U.isFunction(ae)?Fe.sheetName=ae({options:Z,$table:e,$grid:h}):Fe.sheetName=`${ae}`),Fe.sheetName||(Fe.sheetName=document.title||""),!Fe.exportMethod&&!U.includes(U.keys(j._typeMaps),ie)){Wr("vxe.error.notType",[ie]);const Ve={status:!1};return Promise.reject(Ve)}if(Fe.print||Ce&&Ce({options:Fe,$table:e,$grid:h}),!Fe.data)if(Fe.data=[],K==="selected"){const Ve=e.getCheckboxRecords();["html","pdf"].indexOf(ie)>-1&&z?Z.data=U.searchTree(e.getTableData().fullData,Ke=>e.findRowIndexOf(Ve,Ke)>-1,Object.assign({},J,{data:"_row"})):Z.data=Ve}else if(K==="all"){if(h&&!Fe.remote){const Ve=h.reactData,{computeProxyOpts:Ke}=h.getComputeMaps(),ye=Ke.value,{sortData:Me}=Ve,{beforeQueryAll:Ye,afterQueryAll:lt,ajax:vt={}}=ye,ft=ye.response||ye.props||{},pt=vt.queryAll,_e=vt.queryAllSuccess,at=vt.queryAllError;if(pt){const tt={$table:e,$grid:h,sort:Me.length?Me[0]:{},sorts:Me,filters:Ve.filterData,form:Ve.formData,options:Fe};return Promise.resolve((Ye||pt)(tt)).then(ue=>{const se=ft.list;return Fe.data=(se?U.isFunction(se)?se({data:ue,$grid:h}):U.get(ue,se):ue)||[],lt&<(tt),_e&&_e(Object.assign(Object.assign({},tt),{response:ue})),B(Fe)}).catch(ue=>{at&&at(Object.assign(Object.assign({},tt),{response:ue}))})}}}else K==="current"&&(Fe.data=W);return B(Fe)},importByFile(L,z){const F=Object.assign({},z),{beforeImportMethod:G}=F;return G&&G({options:F,$table:e}),M(L,F)},importData(L){const z=s.value,F=Object.assign({types:U.keys(z._typeMaps)},z,L),{beforeImportMethod:G,afterImportMethod:$}=F;return G&&G({options:F,$table:e}),Ze.readFile(F).catch(W=>($&&$({status:!1,options:F,$table:e}),Promise.reject(W))).then(W=>{const{file:j}=W;return M(j,F)})},saveFile(L){return Ze.saveFile(L)},readFile(L){return Ze.readFile(L)},print(L){const z=i.value,F=Object.assign({original:!1},z,L,{type:"html",download:!1,remote:!1,print:!0}),{sheetName:G}=F;let $="";G&&(U.isFunction(G)?$=G({options:F,$table:e,$grid:h}):$=`${G}`),$||($=document.title||"");const W=F.beforePrintMethod,j=F.html||F.content;return new Promise((J,Z)=>{Ze.print?J(j?Ze.print({title:$,html:j,customStyle:F.style,beforeMethod:W?({html:X})=>W({html:X,content:X,options:F,$table:e}):void 0}):R.exportData(F).then(({content:X})=>Ze.print({title:$,html:X,customStyle:F.style,beforeMethod:W?({html:ae})=>W({html:ae,content:ae,options:F,$table:e}):void 0}))):Z({status:!1})})},getPrintHtml(L){const z=i.value,F=Object.assign({original:!1},z,L,{type:"html",download:!1,remote:!1,print:!0});return e.exportData(F).then(({content:G})=>({html:G}))},closeImport(){return Ze.modal?Ze.modal.close("VXE_IMPORT_MODAL"):Promise.resolve()},openImport(L){const{treeConfig:z,importConfig:F}=t,{initStore:G,importStore:$,importParams:W}=n,j=s.value,J=Object.assign({mode:"insertTop",message:!0,types:U.keys(j._typeMaps),modes:["insertTop","covering"]},j,L),Z=J.types||[],X=J.modes||[];if(!!z){J.message&&Ze.modal&&Ze.modal.message({content:_s("vxe.error.treeNotImp"),status:"error"});return}F||Wr("vxe.error.reqProp",["import-config"]);const ie=Z.map(ne=>({value:ne,label:_s(`vxe.export.types.${ne}`)})),K=X.map(ne=>ne&&ne.value?{value:ne.value,label:ne.label||ne.value}:{value:ne,label:_s(`vxe.import.modes.${ne}`)});Object.assign($,{file:null,type:"",filename:"",modeList:K,typeList:ie,visible:!0}),Object.assign(W,J),K.some(ne=>ne.value===W.mode)||(W.mode=K[0].value),G.import=!0},closeExport:P,openExport(L){const z=l.value,F=Object.assign({message:!0,types:U.keys(z._typeMaps)},z,L);O(F)},closePrint:P,openPrint(L){const z=i.value,F=Object.assign({message:!0},z,L);O(F,!0)}};return R},setupGrid(e){return e.extendTableMethods(mwt)}});const{hooks:gwt}=Ze;function ywt(e,t){let n=0,r=0;const o=!gv.firefox&&Bp(e,"vxe-checkbox--label");if(o){const i=getComputedStyle(e);n-=U.toNumber(i.paddingTop),r-=U.toNumber(i.paddingLeft)}for(;e&&e!==t;)if(n+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent,o){const i=getComputedStyle(e);n-=U.toNumber(i.paddingTop),r-=U.toNumber(i.paddingLeft)}return{offsetTop:n,offsetLeft:r}}gwt.add("tableKeyboardModule",{setupTable(e){const{props:t,reactData:n,internalData:r}=e,{refElem:o}=e.getRefMaps(),{computeEditOpts:i,computeCheckboxOpts:l,computeMouseOpts:s,computeTreeOpts:u}=e.getComputeMaps();function c(h,v,m,g,y,C){let b=0,w=[],S=0;const x=C>0,{scrollYLoad:k}=n,{afterFullData:_,scrollYStore:T}=r;if(k){x?S=y+C:S=g.height-y+Math.abs(C);const E=e.getVTRowIndex(v.row);x?w=_.slice(E,E+Math.ceil(S/T.rowHeight)):w=_.slice(E-Math.floor(S/T.rowHeight),E+1)}else{x?S=h.clientY-g.y:S=g.y-h.clientY+g.height;const E=x?"next":"previous";for(;m&&b<S;){const A=e.getRowNode(m);A&&(w.push(A.item),b+=m.offsetHeight,m=m[`${E}ElementSibling`])}}return w}const d=(h,v)=>{const{column:m,cell:g}=v;if(m.type==="checkbox"){const y=o.value,{elemStore:C}=r,b=h.clientX,w=h.clientY,S=Mo(C[`${m.fixed||"main"}-body-wrapper`]||C["main-body-wrapper"]);if(!S)return;const x=S.querySelector(".vxe-table--checkbox-range"),k=document.onmousemove,_=document.onmouseup,T=g.parentElement,E=e.getCheckboxRecords();let A=[];const D=1,B=ywt(h.target,S),N=B.offsetTop+h.offsetY,M=B.offsetLeft+h.offsetX,O=S.scrollTop,P=T.offsetHeight,R=T.getBoundingClientRect(),L=w-R.y;let z=null,F=!1,G=1;const $=(Z,X)=>{e.dispatchEvent(`checkbox-range-${Z}`,{records:e.getCheckboxRecords(),reserves:e.getCheckboxReserveRecords()},X)},W=Z=>{const{clientX:X,clientY:ae}=Z,ie=X-b,K=ae-w+(S.scrollTop-O);let ne=Math.abs(K),pe=Math.abs(ie),le=N,Ce=M;K<D?(le+=K,le<D&&(le=D,ne=N)):ne=Math.min(ne,S.scrollHeight-N-D),ie<D?(Ce+=ie,pe>M&&(Ce=D,pe=M)):pe=Math.min(pe,S.clientWidth-M-D),x.style.height=`${ne}px`,x.style.width=`${pe}px`,x.style.left=`${Ce}px`,x.style.top=`${le}px`,x.style.display="block";const be=c(Z,v,T,R,L,K<D?-ne:ne);ne>10&&be.length!==A.length&&(A=be,Z.ctrlKey?be.forEach(Ee=>{e.handleBatchSelectRows([Ee],E.indexOf(Ee)===-1)}):(e.setAllCheckboxRow(!1),e.handleCheckedCheckboxRow(be,!0,!1)),$("change",Z))},j=()=>{clearTimeout(z),z=null},J=Z=>{j(),z=setTimeout(()=>{if(z){const{scrollLeft:X,scrollTop:ae,clientHeight:ie,scrollHeight:K}=S,ne=Math.ceil(G*50/P);F?ae+ie<K?(e.scrollTo(X,ae+ne),J(Z),W(Z)):j():ae?(e.scrollTo(X,ae-ne),J(Z),W(Z)):j()}},50)};Is(y,"drag--range"),document.onmousemove=Z=>{Z.preventDefault(),Z.stopPropagation();const{clientY:X}=Z,{boundingTop:ae}=pS(S);X<ae?(F=!1,G=ae-X,z||J(Z)):X>ae+S.clientHeight?(F=!0,G=X-ae-S.clientHeight,z||J(Z)):z&&j(),W(Z)},document.onmouseup=Z=>{j(),Ei(y,"drag--range"),x.removeAttribute("style"),document.onmousemove=k,document.onmouseup=_,$("end",Z)},$("start",h)}};return{moveTabSelected(h,v,m){const{editConfig:g}=t,{afterFullData:y,visibleColumn:C}=r,b=i.value;let w,S,x;const k=Object.assign({},h),_=e.getVTRowIndex(k.row),T=e.getVTColumnIndex(k.column);m.preventDefault(),v?T<=0?_>0&&(S=_-1,w=y[S],x=C.length-1):x=T-1:T>=C.length-1?_<y.length-1&&(S=_+1,w=y[S],x=0):x=T+1;const E=C[x];E&&(w?(k.rowIndex=S,k.row=w):k.rowIndex=_,k.columnIndex=x,k.column=E,k.cell=e.getCellElement(k.row,k.column),g?(b.trigger==="click"||b.trigger==="dblclick")&&(b.mode==="row"?e.handleEdit(k,m):e.scrollToRow(k.row,k.column).then(()=>e.handleSelected(k,m))):e.scrollToRow(k.row,k.column).then(()=>e.handleSelected(k,m)))},moveCurrentRow(h,v,m){const{treeConfig:g}=t,{currentRow:y}=n,{afterFullData:C}=r,b=u.value,w=b.children||b.childrenField;let S;if(m.preventDefault(),y)if(g){const{index:x,items:k}=U.findTree(C,_=>_===y,{children:w});h&&x>0?S=k[x-1]:v&&x<k.length-1&&(S=k[x+1])}else{const x=e.getVTRowIndex(y);h&&x>0?S=C[x-1]:v&&x<C.length-1&&(S=C[x+1])}else S=C[0];if(S){const x={$table:e,row:S,rowIndex:e.getRowIndex(S),$rowIndex:e.getVMRowIndex(S)};e.scrollToRow(S).then(()=>e.triggerCurrentRowEvent(m,x))}},moveSelected(h,v,m,g,y,C){const{afterFullData:b,visibleColumn:w}=r,S=Object.assign({},h),x=e.getVTRowIndex(S.row),k=e.getVTColumnIndex(S.column);C.preventDefault(),m&&x>0?(S.rowIndex=x-1,S.row=b[S.rowIndex]):y&&x<b.length-1?(S.rowIndex=x+1,S.row=b[S.rowIndex]):v&&k?(S.columnIndex=k-1,S.column=w[S.columnIndex]):g&&k<w.length-1&&(S.columnIndex=k+1,S.column=w[S.columnIndex]),e.scrollToRow(S.row,S.column).then(()=>{S.cell=e.getCellElement(S.row,S.column),e.handleSelected(S,C)})},handleCellMousedownEvent:(h,v)=>{const{editConfig:m,checkboxConfig:g,mouseConfig:y}=t,C=l.value,b=s.value,w=i.value;if(y&&b.area&&e.handleMousedownCellAreaEvent)return e.handleMousedownCellAreaEvent(h,v);g&&C.range&&d(h,v),y&&b.selected&&(!m||w.mode==="cell")&&e.handleSelected(v,h)}}}});const{getConfig:bwt,validators:Cwt,hooks:wwt}=Ze;class py{constructor(t){Object.assign(this,{$options:t,required:t.required,min:t.min,max:t.max,type:t.type,pattern:t.pattern,validator:t.validator,trigger:t.trigger,maxWidth:t.maxWidth})}get content(){return au(this.$options.content||this.$options.message)}get message(){return this.content}}const Swt=["fullValidate","validate","fullValidateField","validateField","clearValidate"];wwt.add("tableValidatorModule",{setupTable(e){const{props:t,reactData:n,internalData:r}=e,{refValidTooltip:o}=e.getRefMaps(),{computeValidOpts:i,computeTreeOpts:l,computeEditOpts:s}=e.getComputeMaps();let u={},c={},d;const f=m=>new Promise(g=>{i.value.autoPos===!1?(e.dispatchEvent("valid-error",m,null),g()):e.handleEdit(m,{type:"valid-error",trigger:"call"}).then(()=>{g(c.showValidTooltip(m))})}),p=m=>{if(i.value.msgMode==="single"){const y=Object.keys(m),C={};if(y.length){const b=y[0];C[b]=m[b]}return C}return m},h=(m,g,y,C)=>{const b={},{editRules:w,treeConfig:S}=t,{afterFullData:x}=r,k=l.value,_=k.children||k.childrenField,T=i.value;let E;m===!0?E=x:m&&(U.isFunction(m)?y=m:E=U.isArray(m)?m:[m]),E||(e.getInsertRecords?E=e.getInsertRecords().concat(e.getUpdateRecords()):E=[]);const A=[];r._lastCallTime=Date.now(),d=!1,u.clearValidate();const D={};if(w){const B=g&&g.length?g:e.getColumns(),N=M=>{if(C||!d){const O=[];B.forEach(P=>{const R=U.isString(P)?P:P.field;(C||!d)&&U.has(w,R)&&O.push(c.validCellRules("all",M,P).catch(({rule:L,rules:z})=>{const F={rule:L,rules:z,rowIndex:e.getRowIndex(M),row:M,columnIndex:e.getColumnIndex(P),column:P,field:R,$table:e};if(b[R]||(b[R]=[]),D[`${ct(e,M)}:${P.id}`]={column:P,row:M,rule:L,content:L.content},b[R].push(F),!C)return d=!0,Promise.reject(F)}))}),A.push(Promise.all(O))}};return S?U.eachTree(E,N,{children:_}):E.forEach(N),Promise.all(A).then(()=>{const M=Object.keys(b);return n.validErrorMaps=p(D),a.nextTick().then(()=>{if(M.length)return Promise.reject(b[M[0]][0]);y&&y()})}).catch(M=>new Promise((O,P)=>{const R=()=>{a.nextTick(()=>{y?(y(b),O()):bwt().validToReject==="obsolete"?P(b):O(b)})},L=()=>{M.cell=e.getCellElement(M.row,M.column),pCt(M.cell),f(M).then(R)};if(T.autoPos===!1)R();else{const z=M.row,F=M.column;e.scrollToRow(z,F).then(L)}}))}else n.validErrorMaps={};return a.nextTick().then(()=>{y&&y()})};u={fullValidate(m,g){return h(m,null,g,!0)},validate(m,g){return h(m,null,g)},fullValidateField(m,g){const y=(U.isArray(g)?g:g?[g]:[]).map(C=>na(e,C));return y.length?h(m,y,null,!0):a.nextTick()},validateField(m,g){const y=(U.isArray(g)?g:g?[g]:[]).map(C=>na(e,C));return y.length?h(m,y,null):a.nextTick()},clearValidate(m,g){const{validErrorMaps:y}=n,C=o.value,b=i.value,w=U.isArray(m)?m:m?[m]:[],S=(U.isArray(g)?g:g?[g]:[]).map(k=>na(e,k));let x={};if(C&&C.reactData.visible&&C.close(),b.msgMode==="single")return n.validErrorMaps={},a.nextTick();if(w.length&&S.length)x=Object.assign({},y),w.forEach(k=>{S.forEach(_=>{const T=`${ct(e,k)}:${_.id}`;x[T]&&delete x[T]})});else if(w.length){const k=w.map(_=>`${ct(e,_)}`);U.each(y,(_,T)=>{k.indexOf(T.split(":")[0])>-1&&(x[T]=_)})}else if(S.length){const k=S.map(_=>`${_.id}`);U.each(y,(_,T)=>{k.indexOf(T.split(":")[1])>-1&&(x[T]=_)})}return n.validErrorMaps=x,a.nextTick()}};const v=(m,g)=>{const{type:y,min:C,max:b,pattern:w}=m,S=y==="number",x=S?U.toNumber(g):U.getSize(g);return!!(S&&isNaN(g)||!U.eqNull(C)&&x<U.toNumber(C)||!U.eqNull(b)&&x>U.toNumber(b)||w&&!(U.isRegExp(w)?w:new RegExp(w)).test(g))};return c={validCellRules(m,g,y,C){const{editRules:b}=t,{field:w}=y,S=[],x=[];if(w&&b){const k=U.get(b,w);if(k){const _=U.isUndefined(C)?U.get(g,w):C;k.forEach(T=>{const{type:E,trigger:A,required:D,validator:B}=T;if(m==="all"||!A||m===A)if(B){const N={cellValue:_,rule:T,rules:k,row:g,rowIndex:e.getRowIndex(g),column:y,columnIndex:e.getColumnIndex(y),field:y.field,$table:e,$grid:e.xegrid};let M;if(U.isString(B)){const O=Cwt.get(B);if(O){const P=O.tableCellValidatorMethod||O.cellValidatorMethod;P&&(M=P(N))}}else M=B(N);M&&(U.isError(M)?(d=!0,S.push(new py({type:"custom",trigger:A,content:M.message,rule:new py(T)}))):M.catch&&x.push(M.catch(O=>{d=!0,S.push(new py({type:"custom",trigger:A,content:O&&O.message?O.message:T.content||T.message,rule:new py(T)}))})))}else{const N=E==="array",M=U.isArray(_);let O=!0;N||M?O=!M||!_.length:U.isString(_)?O=Os(_.trim()):O=Os(_),(D?O||v(T,_):!O&&v(T,_))&&(d=!0,S.push(new py(T)))}})}}return Promise.all(x).then(()=>{if(S.length){const k={rules:S,rule:S[0]};return Promise.reject(k)}})},hasCellRules(m,g,y){const{editRules:C}=t,{field:b}=y;if(b&&C){const w=U.get(C,b);return w&&!!U.find(w,S=>m==="all"||!S.trigger||m===S.trigger)}return!1},triggerValidate(m){const{editConfig:g,editRules:y}=t,{editStore:C}=n,{actived:b}=C,w=s.value,S=i.value;if(y&&S.msgMode==="single"&&(n.validErrorMaps={}),g&&y&&b.row){const{row:x,column:k,cell:_}=b.args;if(c.hasCellRules(m,x,k))return c.validCellRules(m,x,k).then(()=>{w.mode==="row"&&u.clearValidate(x,k)}).catch(({rule:T})=>{if(!T.trigger||m===T.trigger){const E={rule:T,row:x,column:k,cell:_};return c.showValidTooltip(E),Promise.reject(E)}return Promise.resolve()})}return Promise.resolve()},showValidTooltip(m){const{height:g}=t,{tableData:y,validStore:C,validErrorMaps:b}=n,{rule:w,row:S,column:x,cell:k}=m,_=i.value,T=o.value,E=w.content;return C.visible=!0,_.msgMode==="single"?n.validErrorMaps={[`${ct(e,S)}:${x.id}`]:{column:x,row:S,rule:w,content:E}}:n.validErrorMaps=Object.assign({},b,{[`${ct(e,S)}:${x.id}`]:{column:x,row:S,rule:w,content:E}}),e.dispatchEvent("valid-error",m,null),T&&T&&(_.message==="tooltip"||_.message==="default"&&!g&&y.length<2)?T.open(k,E):a.nextTick()}},Object.assign(Object.assign({},u),c)},setupGrid(e){return e.extendTableMethods(Swt)}});const xwt=["openCustom","closeCustom","saveCustom","cancelCustom","resetCustom","toggleCustomAllCheckbox","setCustomAllCheckbox"];Ze.hooks.add("tableCustomModule",{setupTable(e){const{reactData:t,internalData:n}=e,{computeCustomOpts:r}=e.getComputeMaps(),{refElem:o}=e.getRefMaps(),i=e.xegrid,l=()=>{const{customStore:y}=t,C=o.value;let b=0;C&&(b=C.clientHeight-28),y.maxHeight=Math.max(88,b)},s=()=>{const{initStore:y,customStore:C}=t;return C.visible=!0,y.custom=!0,u(),v(),l(),a.nextTick().then(()=>l())},u=()=>{const{customStore:y}=t,{collectColumn:C}=n;if(y.visible){const b={},w={},S={};U.eachTree(C,x=>{const k=x.getKey();x.renderFixed=x.fixed,x.renderVisible=x.visible,x.renderResizeWidth=x.renderWidth,b[k]=x.renderSortNumber,w[k]=x.fixed,S[k]=x.visible}),y.oldSortMaps=b,y.oldFixedMaps=w,y.oldVisibleMaps=S,t.customColumnList=C.slice(0)}},c=()=>{const{customStore:y}=t,C=r.value;return y.visible&&(y.visible=!1,C.immediate||e.handleCustom()),a.nextTick()},d=()=>{const{customColumnList:y}=t,C=r.value,{allowVisible:b,allowSort:w,allowFixed:S,allowResizable:x}=C;return U.eachTree(y,(k,_,T,E,A)=>{if(A)k.fixed=A.fixed;else{if(w){const D=_+1;k.renderSortNumber=D}S&&(k.fixed=k.renderFixed)}x&&k.renderVisible&&(!k.children||k.children.length)&&k.renderResizeWidth!==k.renderWidth&&(k.resizeWidth=k.renderResizeWidth,k.renderWidth=k.renderResizeWidth),b&&(k.visible=k.renderVisible)}),t.isCustomStatus=!0,t.isDragColMove=!0,setTimeout(()=>{t.isDragColMove=!1},1e3),e.saveCustomStore("confirm")},f=()=>{const{customColumnList:y,customStore:C}=t,{oldSortMaps:b,oldFixedMaps:w,oldVisibleMaps:S}=C,x=r.value,{allowVisible:k,allowSort:_,allowFixed:T,allowResizable:E}=x;return U.eachTree(y,A=>{const D=A.getKey(),B=!!S[D],N=w[D]||"";k&&(A.renderVisible=B,A.visible=B),T&&(A.renderFixed=N,A.fixed=N),_&&(A.renderSortNumber=b[D]||0),E&&(A.renderResizeWidth=A.renderWidth)},{children:"children"}),a.nextTick()},p=y=>{const{customStore:C}=t,{customColumnList:b}=t,w=r.value,{checkMethod:S,visibleMethod:x}=w,k=!!y;return w.immediate?(U.eachTree(b,_=>{x&&!x({column:_})||S&&!S({column:_})||(_.visible=k,_.renderVisible=k,_.halfVisible=!1)}),C.isAll=k,t.isCustomStatus=!0,e.handleCustom(),e.saveCustomStore("update:visible")):(U.eachTree(b,_=>{x&&!x({column:_})||S&&!S({column:_})||(_.renderVisible=k,_.halfVisible=!1)}),C.isAll=k),e.checkCustomStatus(),a.nextTick()},h={openCustom:s,closeCustom:c,saveCustom:d,cancelCustom:f,resetCustom(y){const{collectColumn:C}=n,b=r.value,{checkMethod:w}=b,S=Object.assign({visible:!0,resizable:y===!0,fixed:y===!0,sort:y===!0},y);return U.eachTree(C,x=>{S.resizable&&(x.resizeWidth=0),S.fixed&&(x.fixed=x.defaultFixed),S.sort&&(x.renderSortNumber=x.sortNumber),(!w||w({column:x}))&&(x.visible=x.defaultVisible),x.renderResizeWidth=x.renderWidth}),t.isCustomStatus=!1,e.saveCustomStore("reset"),e.handleCustom()},toggleCustomAllCheckbox(){const{customStore:y}=t,C=!y.isAll;return p(C)},setCustomAllCheckbox:p},v=()=>{const{customStore:y}=t,{collectColumn:C}=n,b=r.value,{checkMethod:w}=b;y.isAll=C.every(S=>(w?!w({column:S}):!1)||S.renderVisible),y.isIndeterminate=!y.isAll&&C.some(S=>(!w||w({column:S}))&&(S.renderVisible||S.halfVisible))},m=(y,C)=>{(i||e).dispatchEvent("custom",{type:y},C)},g={checkCustomStatus:v,emitCustomEvent:m,triggerCustomEvent(y){const{customStore:C}=e.reactData;C.visible?(c(),m("close",y)):(C.btnEl=y.target,s(),m("open",y))},customOpenEvent(y){const{customStore:C}=t;C.visible||(C.activeBtn=!0,C.btnEl=y.target,e.openCustom(),e.emitCustomEvent("open",y))},customCloseEvent(y){const{customStore:C}=t;C.visible&&(C.activeBtn=!1,e.closeCustom(),e.emitCustomEvent("close",y))},handleUpdateCustomColumn:u};return Object.assign(Object.assign({},h),g)},setupGrid(e){return e.extendTableMethods(xwt)}});const{getConfig:b1,renderer:kwt,getI18n:vB}=Ze,zoe="modelValue",$oe={};function Ts(e,t,n){return U.eqNull(e)?U.eqNull(t)?n:t:e}function Ewt(e,t){return e&&t.valueFormat?U.toStringDate(e,t.valueFormat):e}function _wt(e,t,n){const{dateConfig:r={}}=t;return U.toDateString(Ewt(e,t),r.labelFormat||n)}function V2(e,t){return _wt(e,t,vB(`vxe.input.date.labelFormat.${t.type||"date"}`))}function Twt(e){return`vxe-${e.replace("$","")}`}function ki({name:e}){return a.resolveComponent(e)}function YE({name:e}){return a.resolveComponent(Twt(e))}function Hoe(e,t,n){const{$panel:r}=e;r.changeOption({},t,n)}function jE(e){let{name:t,attrs:n}=e;return t==="input"&&(n=Object.assign({type:"text"},n)),n}function Woe(e){const{name:t,immediate:n,props:r}=e;if(!n){if(t==="VxeInput"||t==="$input"){const{type:o}=r||{};return!(!o||o==="text"||o==="number"||o==="integer"||o==="float")}return!(t==="input"||t==="textarea"||t==="$textarea")}return n}function jl(e,t,n,r){return U.assign({immediate:Woe(e)},$oe,r,e.props,{[zoe]:n})}function Qx(e,t,n,r){return U.assign({},$oe,r,e.props,{[zoe]:n})}function KE(e,t){return t.$type==="cell"||Woe(e)}function As(e,t,n){const{placeholder:r}=e;return[a.h("span",{class:"vxe-cell--label"},r&&voe(n)?[a.h("span",{class:"vxe-cell--placeholder"},fa(au(r),1))]:fa(n,1))]}function Goe(e,t,n,r){const{events:o}=e,i=Ioe(e),l=Roe(e),s=l===i,u={};return o&&U.objectEach(o,(c,d)=>{u[Pv(d)]=function(...f){c(t,...f)}}),n&&(u[Pv(i)]=function(c){n(c),s&&r&&r(c),o&&o[i]&&o[i](t,c)}),!s&&r&&(u[Pv(l)]=function(...c){r(...c),o&&o[l]&&o[l](t,...c)}),u}function mC(e,t,n,r){const{events:o}=e,i=Ioe(e),l=Roe(e),s={};return U.objectEach(o,(u,c)=>{s[Pv(c)]=function(...d){u(t,...d)}}),n&&(s[Pv(i)]=function(u){n(u),o&&o[i]&&o[i](t,u)}),r&&(s[Pv(l)]=function(...u){r(...u),o&&o[l]&&o[l](t,...u)}),s}function Vl(e,t){const{$table:n,row:r,column:o}=t,{name:i}=e,{model:l}=o,s=KE(e,t);return mC(e,t,u=>{l.update=!0,l.value=u,s&&Rs(r,o,u)},u=>{if(!s&&["VxeInput","VxeNumberInput","VxeTextarea","$input","$textarea"].includes(i)){const c=u.value;l.update=!0,l.value=c,n.updateStatus(t,c)}else n.updateStatus(t)})}function Jx(e,t,n){return mC(e,t,r=>{n.data=r},()=>{Hoe(t,!U.eqNull(n.data),n)})}function Uoe(e,t){const{$table:n,row:r,column:o}=t,{model:i}=o;return Goe(e,t,l=>{const s=l.target.value;KE(e,t)?Rs(r,o,s):(i.update=!0,i.value=s)},l=>{const s=l.target.value;n.updateStatus(t,s)})}function Yoe(e,t,n){return Goe(e,t,r=>{n.data=r.target.value},()=>{Hoe(t,!U.eqNull(n.data),n)})}function F2(e,t){const{row:n,column:r}=t,{name:o}=e,i=KE(e,t)?ba(n,r):r.model.value;return[a.h(o,Object.assign(Object.assign(Object.assign({class:`vxe-default-${o}`},jE(e)),{value:i}),Uoe(e,t)))]}function Awt(e,t){return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,null)),mC(e,t)))]}function Ko(e,t){const{row:n,column:r}=t,o=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,o)),Vl(e,t)))]}function aG(e,t){const{options:n}=e,{row:r,column:o}=t,i=ba(r,o);return[a.h(ki(e),Object.assign(Object.assign({options:n},jl(e,t,i)),Vl(e,t)))]}function C1(e,t){const{row:n,column:r}=t,o=ba(n,r);return[a.h(YE(e),Object.assign(Object.assign({},jl(e,t,o)),Vl(e,t)))]}function joe(e,t){return[a.h(a.resolveComponent("vxe-button"),Object.assign(Object.assign({},jl(e,t,null)),mC(e,t)))]}function Dwt(e,t){return e.children.map(n=>joe(n,t)[0])}function Koe(e,t,n){const{optionGroups:r,optionGroupProps:o={}}=e,i=o.options||"options",l=o.label||"label";return r.map((s,u)=>a.h("optgroup",{key:u,label:s[l]},n(s[i],e,t)))}function ek(e,t,n){const{optionProps:r={}}=t,{row:o,column:i}=n,l=r.label||"label",s=r.value||"value",u=r.disabled||"disabled",c=KE(t,n)?ba(o,i):i.model.value;return e.map((d,f)=>a.h("option",{key:f,value:d[s],disabled:d[u],selected:d[s]==c},d[l]))}function Mwt(e,t){const{column:n}=t,{name:r}=e,o=jE(e);return n.filters.map((i,l)=>a.h(r,Object.assign(Object.assign(Object.assign({key:l,class:`vxe-default-${r}`},o),{value:i.data}),Yoe(e,t,i))))}function z2(e,t){const{column:n}=t;return n.filters.map((r,o)=>{const i=r.data;return a.h(ki(e),Object.assign(Object.assign({key:o},Qx(e,e,i)),Jx(e,t,r)))})}function Nwt(e,t){const{column:n}=t;return n.filters.map((r,o)=>{const i=r.data;return a.h(YE(e),Object.assign(Object.assign({key:o},Qx(e,e,i)),Jx(e,t,r)))})}function w1({option:e,row:t,column:n}){const{data:r}=e;return U.get(t,n.field)==r}function S1({option:e,row:t,column:n}){const{data:r}=e,o=U.get(t,n.field);return U.toValueString(o).indexOf(r)>-1}function oG(e,t){return[a.h("select",Object.assign(Object.assign({class:"vxe-default-select"},jE(e)),Uoe(e,t)),e.optionGroups?Koe(e,t,ek):ek(e.options,e,t))]}function iG(e,t){const{row:n,column:r}=t,{options:o,optionProps:i,optionGroups:l,optionGroupProps:s}=e,u=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,u,{options:o,optionProps:i,optionGroups:l,optionGroupProps:s})),Vl(e,t)))]}function lG(e,t){const{row:n,column:r}=t,{options:o,optionProps:i}=e,l=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,l,{options:o,optionProps:i})),Vl(e,t)))]}function sG(e,t){const{row:n,column:r}=t,{options:o,optionProps:i,optionGroups:l,optionGroupProps:s}=e,u=ba(n,r);return[a.h(YE(e),Object.assign(Object.assign({},jl(e,t,u,{options:o,optionProps:i,optionGroups:l,optionGroupProps:s})),Vl(e,t)))]}function vS(e,{row:t,column:n}){const{options:r,optionGroups:o,optionProps:i={},optionGroupProps:l={}}=e,s=U.get(t,n.field);let u;const c=i.label||"label",d=i.value||"value";return s!=null?U.map(U.isArray(s)?s:[s],o?f=>{const p=l.options||"options";for(let h=0;h<o.length&&(u=U.find(o[h][p],v=>v[d]==f),!u);h++);return u?u[c]:f}:f=>(u=U.find(r,p=>p[d]==f),u?u[c]:f)).join(", "):""}function $2(e){const{row:t,column:n,options:r}=e;return r.original?ba(t,n):vS(n.editRender||n.cellRender,e)}function mB(e,{row:t,column:n}){const{options:r,optionProps:o={}}=e,i=U.get(t,n.field),l=o.label||"label",s=o.value||"value",u=o.children||"children";if(i!=null){const c={};return U.eachTree(r,d=>{c[U.get(d,s)]=d},{children:u}),U.map(U.isArray(i)?i:[i],d=>{const f=c[d];return f&&U.get(f,l)}).join(", ")}return""}function uG(e){const{row:t,column:n,options:r}=e;return r.original?ba(t,n):mB(n.editRender||n.cellRender,e)}kwt.mixin({input:{tableAutoFocus:"input",renderTableEdit:F2,renderTableDefault:F2,renderTableFilter:Mwt,tableFilterDefaultMethod:S1},textarea:{tableAutoFocus:"textarea",renderTableEdit:F2},select:{renderTableEdit:oG,renderTableDefault:oG,renderTableCell(e,t){return As(e,t,vS(e,t))},renderTableFilter(e,t){const{column:n}=t;return n.filters.map((r,o)=>a.h("select",Object.assign(Object.assign({key:o,class:"vxe-default-select"},jE(e)),Yoe(e,t,r)),e.optionGroups?Koe(e,t,ek):ek(e.options,e,t)))},tableFilterDefaultMethod:w1,tableExportMethod:$2},VxeInput:{tableAutoFocus:"input",renderTableEdit:Ko,renderTableCell(e,t){const{props:n={}}=e,{row:r,column:o}=t,i=b1().input||{},l=n.digits||i.digits||2;let s=U.get(r,o.field);if(s)switch(n.type){case"date":case"week":case"month":case"quarter":case"year":s=V2(s,n);break;case"float":s=U.toFixed(U.floor(s,l),l);break}return As(e,t,s)},renderTableDefault:Ko,renderTableFilter:z2,tableFilterDefaultMethod:S1},VxeNumberInput:{tableAutoFocus:"input",renderTableEdit:Ko,renderTableCell(e,t){const{props:n={}}=e,{row:r,column:o}=t,{type:i}=n;let l=U.get(r,o.field);if(l){const s=b1().numberInput||{};if(i==="float"){const u=Ts(n.autoFill,s.autoFill,!0),c=Ts(n.digits,s.digits,1);l=U.toFixed(U.floor(l,c),c),u||(l=U.toNumber(l))}else if(i==="amount"){const u=Ts(n.autoFill,s.autoFill,!0),c=Ts(n.digits,s.digits,2),d=Ts(n.showCurrency,s.showCurrency,!1);if(l=U.commafy(U.toNumber(l),{digits:c}),!u){const[f,p]=l.split(".");if(p){const h=p.replace(/0+$/,"");l=h?[f,".",h].join(""):f}}d&&(l=`${n.currencySymbol||s.currencySymbol||vB("vxe.numberInput.currencySymbol")||""}${l}`)}}return As(e,t,l)},renderTableFooter(e,t){const{props:n={}}=e,{row:r,column:o,_columnIndex:i}=t,{type:l}=n,s=U.isArray(r)?r[i]:U.get(r,o.field);if(U.isNumber(s)){const u=b1().numberInput||{};if(l==="float"){const c=Ts(n.autoFill,u.autoFill,!0),d=Ts(n.digits,u.digits,1);let f=U.toFixed(U.floor(s,d),d);return c||(f=U.toNumber(f)),f}else if(l==="amount"){const c=Ts(n.autoFill,u.autoFill,!0),d=Ts(n.digits,u.digits,2),f=Ts(n.showCurrency,u.showCurrency,!1);let p=U.commafy(U.toNumber(s),{digits:d});if(!c){const[h,v]=p.split(".");if(v){const m=v.replace(/0+$/,"");p=m?[h,".",m].join(""):h}}return f&&(p=`${n.currencySymbol||u.currencySymbol||vB("vxe.numberInput.currencySymbol")||""}${p}`),p}}return au(s,1)},renderTableDefault:Ko,renderTableFilter:z2,tableFilterDefaultMethod:S1,tableExportMethod(e){const{row:t,column:n}=e;return U.get(t,n.field)}},VxeDatePicker:{tableAutoFocus:"input",renderTableEdit:Ko,renderTableCell(e,t){const{props:n={}}=e,{row:r,column:o}=t;let i=U.get(r,o.field);return i&&n.type!=="time"&&(i=V2(i,n)),As(e,t,i)},renderTableDefault:Ko,renderTableFilter:z2,tableFilterDefaultMethod:w1},VxeTextarea:{tableAutoFocus:"textarea",renderTableEdit:Ko,renderTableCell(e,t){const{row:n,column:r}=t,o=U.get(n,r.field);return As(e,t,o)}},VxeButton:{renderTableDefault:Awt},VxeButtonGroup:{renderTableDefault(e,t){const{options:n}=e;return[a.h(ki(e),Object.assign(Object.assign({options:n},jl(e,t,null)),mC(e,t)))]}},VxeSelect:{tableAutoFocus:"input",renderTableEdit:iG,renderTableDefault:iG,renderTableCell(e,t){return As(e,t,vS(e,t))},renderTableFilter(e,t){const{column:n}=t,{options:r,optionProps:o,optionGroups:i,optionGroupProps:l}=e;return n.filters.map((s,u)=>{const c=s.data;return a.h(ki(e),Object.assign(Object.assign({key:u},Qx(e,t,c,{options:r,optionProps:o,optionGroups:i,optionGroupProps:l})),Jx(e,t,s)))})},tableFilterDefaultMethod:w1,tableExportMethod:$2},VxeTreeSelect:{tableAutoFocus:"input",renderTableEdit:lG,renderTableCell(e,t){return As(e,t,mB(e,t))},tableExportMethod:uG},VxeTableSelect:{tableAutoFocus:"input",renderTableEdit:lG,renderTableCell(e,t){return As(e,t,mB(e,t))},tableExportMethod:uG},VxeColorPicker:{tableAutoFocus:"input",renderTableEdit(e,t){const{row:n,column:r}=t,{options:o}=e,i=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,i,{colors:o})),Vl(e,t)))]},renderTableCell(e,t){const{row:n,column:r}=t,o=U.get(n,r.field);return a.h("span",{class:"vxe-color-picker--readonly"},[a.h("div",{class:"vxe-color-picker--readonly-color",style:{backgroundColor:o}})])}},VxeIconPicker:{tableAutoFocus:"input",renderTableEdit(e,t){const{row:n,column:r}=t,{options:o}=e,i=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign({},jl(e,t,i,{icons:o})),Vl(e,t)))]},renderTableCell(e,t){const{row:n,column:r}=t,o=U.get(n,r.field);return a.h("i",{class:o})}},VxeRadioGroup:{renderTableDefault:aG},VxeCheckboxGroup:{renderTableDefault:aG},VxeSwitch:{tableAutoFocus:"button",renderTableEdit:Ko,renderTableDefault:Ko},VxeUpload:{renderTableEdit:Ko,renderTableCell:Ko,renderTableDefault:Ko},VxeImage:{renderTableDefault(e,t){const{row:n,column:r}=t,{props:o}=e,i=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign(Object.assign({},o),{src:i}),Vl(e,t)))]}},VxeImageGroup:{renderTableDefault(e,t){const{row:n,column:r}=t,{props:o}=e,i=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign(Object.assign({},o),{urlList:i}),Vl(e,t)))]}},VxeTextEllipsis:{renderTableDefault(e,t){const{row:n,column:r}=t,{props:o}=e,i=ba(n,r);return[a.h(ki(e),Object.assign(Object.assign(Object.assign({},o),{content:i}),Vl(e,t)))]}},VxeRate:{renderTableDefault:Ko},VxeSlider:{renderTableDefault:Ko},$input:{tableAutoFocus:".vxe-input--inner",renderTableEdit:C1,renderTableCell(e,t){var n;const{props:r={}}=e,{row:o,column:i}=t,l=r.digits||((n=b1().input)===null||n===void 0?void 0:n.digits)||2;let s=U.get(o,i.field);if(s)switch(r.type){case"date":case"week":case"month":case"year":s=V2(s,r);break;case"float":s=U.toFixed(U.floor(s,l),l);break}return As(e,t,s)},renderTableDefault:C1,renderTableFilter:Nwt,tableFilterDefaultMethod:S1},$textarea:{tableAutoFocus:".vxe-textarea--inner"},$button:{renderTableDefault:joe},$buttons:{renderTableDefault:Dwt},$select:{tableAutoFocus:".vxe-input--inner",renderTableEdit:sG,renderTableDefault:sG,renderTableCell(e,t){return As(e,t,vS(e,t))},renderTableFilter(e,t){const{column:n}=t,{options:r,optionProps:o,optionGroups:i,optionGroupProps:l}=e;return n.filters.map((s,u)=>{const c=s.data;return a.h(YE(e),Object.assign(Object.assign({key:u},Qx(e,t,c,{options:r,optionProps:o,optionGroups:i,optionGroupProps:l})),Jx(e,t,s)))})},tableFilterDefaultMethod:w1,tableExportMethod:$2},$radio:{tableAutoFocus:".vxe-radio--input"},$checkbox:{tableAutoFocus:".vxe-checkbox--input"},$switch:{tableAutoFocus:".vxe-switch--button",renderTableEdit:C1,renderTableDefault:C1}});const Bwt=Object.assign({},Vv,{install(e){e.component(Vv.name,Vv)}}),Owt={useCellView:jCt};Ze.dynamicApp&&Ze.dynamicApp.component(Vv.name,Vv);Ze.component(Vv);Ze.tableHandle=Owt;const{getConfig:Dl,getIcon:Rc,getI18n:Yh,renderer:cG,commands:dG,createEvent:Iwt,useFns:Rwt}=Ze,Fv=a.defineComponent({name:"VxeToolbar",props:{loading:Boolean,refresh:[Boolean,Object],import:[Boolean,Object],export:[Boolean,Object],print:[Boolean,Object],zoom:[Boolean,Object],custom:[Boolean,Object],buttons:{type:Array,default:()=>Dl().toolbar.buttons},tools:{type:Array,default:()=>Dl().toolbar.tools},perfect:{type:Boolean,default:()=>Dl().toolbar.perfect},size:{type:String,default:()=>Dl().toolbar.size||Dl().size},className:[String,Function]},emits:["button-click","tool-click"],setup(e,t){const{slots:n,emit:r}=t,o=U.uniqueId(),i=Ze.getComponent("VxeButton"),{computeSize:l}=Rwt.useSize(e),s=a.reactive({isRefresh:!1,connectFlag:0,columns:[]}),u={connectTable:null},c=a.ref(),d={refElem:c},f={xID:o,props:e,context:t,reactData:s,internalData:u,getRefMaps:()=>d};let p={};const h=a.inject("$xeGrid",null),v=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.refresh,!0),e.refresh)),m=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.import,!0),e.import)),g=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.export,!0),e.export)),y=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.print,!0),e.print)),C=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.zoom,!0),e.zoom)),b=a.computed(()=>Object.assign({},U.clone(Dl().toolbar.custom,!0),e.custom)),w=a.computed(()=>{const{connectTable:X}=u,ae=X;if((s.connectFlag||ae)&&ae){const{computeCustomOpts:ie}=ae.getComputeMaps();return ie.value}return{trigger:""}}),S=a.computed(()=>w.value.trigger),x=()=>{const{connectTable:X}=u;if(X)return!0;Wr("vxe.error.barUnableLink")},k=({$event:X})=>{const{connectTable:ae}=u,ie=ae;ie&&(ie.triggerCustomEvent?ie.triggerCustomEvent(X):Wr("vxe.error.reqModule",["VxeTableCustomModule"]))},_=({$event:X})=>{const{connectTable:ae}=u,ie=ae;ie?ie.customOpenEvent(X):Wr("vxe.error.reqModule",["VxeTableCustomModule"])},T=({$event:X})=>{const{connectTable:ae}=u,ie=ae;if(ie){const{customStore:K}=ie.reactData;K.activeBtn=!1,setTimeout(()=>{!K.activeBtn&&!K.activeWrapper&&ie.customCloseEvent(X)},350)}},E=({$event:X})=>{const{isRefresh:ae}=s,ie=v.value;if(!ae){const K=ie.queryMethod||ie.query;if(K){s.isRefresh=!0;try{Promise.resolve(K({})).catch(ne=>ne).then(()=>{s.isRefresh=!1})}catch{s.isRefresh=!1}}else h&&(s.isRefresh=!0,h.triggerToolbarCommitEvent({code:ie.code||"reload"},X).catch(ne=>ne).then(()=>{s.isRefresh=!1}))}},A=({$event:X})=>{h&&h.triggerZoomEvent(X)},D=(X,ae)=>{const{connectTable:ie}=u,K=ie,{code:ne}=ae;if(ne)if(h)h.triggerToolbarBtnEvent(ae,X);else{const pe=dG.get(ne),le={code:ne,button:ae,$table:K,$grid:h,$event:X};if(pe){const Ce=pe.tableCommandMethod||pe.commandMethod;Ce&&Ce(le)}f.dispatchEvent("button-click",le,X)}},B=(X,ae)=>{const{connectTable:ie}=u,K=ie,{code:ne}=ae;if(ne)if(h)h.triggerToolbarTolEvent(ae,X);else{const pe=dG.get(ne),le={code:ne,tool:ae,$table:K,$grid:h,$event:X};if(pe){const Ce=pe.tableCommandMethod||pe.commandMethod;Ce&&Ce(le)}f.dispatchEvent("tool-click",le,X)}},N=()=>{if(x()){const{connectTable:X}=u,ae=X;ae&&ae.openImport()}},M=()=>{if(x()){const{connectTable:X}=u,ae=X;ae&&ae.openExport()}},O=()=>{if(x()){const{connectTable:X}=u,ae=X;ae&&ae.openPrint()}};p={dispatchEvent:(X,ae,ie)=>{r(X,Iwt(ie,{$toolbar:f},ae))},syncUpdate(X){u.connectTable=X.$table,s.columns=X.collectColumn,s.connectFlag++}},Object.assign(f,p);const R=(X,ae)=>{const{dropdowns:ie}=X,K=[];return ie?ie.map((ne,pe)=>ne.visible===!1?a.createCommentVNode():i?a.h(i,{key:pe,disabled:ne.disabled,loading:ne.loading,type:ne.type,mode:ne.mode,icon:ne.icon,circle:ne.circle,round:ne.round,status:ne.status,content:ne.name,title:ne.title,routerLink:ne.routerLink,permissionCode:ne.permissionCode,prefixTooltip:ne.prefixTooltip,suffixTooltip:ne.suffixTooltip,onClick:({$event:le})=>ae?D(le,ne):B(le,ne)}):a.createCommentVNode()):K},L=()=>{const{buttons:X}=e,{connectTable:ae}=u,ie=ae,K=n.buttonPrefix||n["button-prefix"],ne=n.buttonSuffix||n["button-suffix"],pe=[];return K&&pe.push(...Ya(K({buttons:X||[],$grid:h,$table:ie}))),X&&X.forEach((le,Ce)=>{const{dropdowns:be,buttonRender:Ee}=le;if(le.visible!==!1){const Te=Ee?cG.get(Ee.name):null;if(Ee&&Te&&Te.renderToolbarButton){const De=Te.toolbarButtonClassName,Fe={$grid:h,$table:ie,button:le};pe.push(a.h("span",{key:`br${le.code||Ce}`,class:["vxe-button--item",De?U.isFunction(De)?De(Fe):De:""]},Ya(Te.renderToolbarButton(Ee,Fe))))}else i&&pe.push(a.h(i,{key:`bd${le.code||Ce}`,disabled:le.disabled,loading:le.loading,type:le.type,mode:le.mode,icon:le.icon,circle:le.circle,round:le.round,status:le.status,content:le.name,title:le.title,routerLink:le.routerLink,permissionCode:le.permissionCode,prefixTooltip:le.prefixTooltip,suffixTooltip:le.suffixTooltip,destroyOnClose:le.destroyOnClose,placement:le.placement,transfer:le.transfer,onClick:({$event:De})=>D(De,le)},be&&be.length?{dropdowns:()=>R(le,!0)}:{}))}}),ne&&pe.push(...Ya(ne({buttons:X||[],$grid:h,$table:ie}))),pe},z=()=>{const{tools:X}=e,{connectTable:ae}=u,ie=ae,K=n.toolPrefix||n["tool-prefix"],ne=n.toolSuffix||n["tool-suffix"],pe=[];return K&&pe.push(...Ya(K({tools:X||[],$grid:h,$table:ie}))),X&&X.forEach((le,Ce)=>{const{dropdowns:be,toolRender:Ee}=le;if(le.visible!==!1){const Te=Ee?Ee.name:null,De=Ee?cG.get(Te):null;if(Ee&&De&&De.renderToolbarTool){const Fe=De.toolbarToolClassName,Je={$grid:h,$table:ie,tool:le};pe.push(a.h("span",{key:Te,class:["vxe-tool--item",Fe?U.isFunction(Fe)?Fe(Je):Fe:""]},Ya(De.renderToolbarTool(Ee,Je))))}else i&&pe.push(a.h(i,{key:Ce,disabled:le.disabled,loading:le.loading,type:le.type,mode:le.mode,icon:le.icon,circle:le.circle,round:le.round,status:le.status,content:le.name,title:le.title,routerLink:le.routerLink,permissionCode:le.permissionCode,prefixTooltip:le.prefixTooltip,suffixTooltip:le.suffixTooltip,destroyOnClose:le.destroyOnClose,placement:le.placement,transfer:le.transfer,onClick:({$event:Fe})=>B(Fe,le)},be&&be.length?{dropdowns:()=>R(le,!1)}:{}))}}),ne&&pe.push(...Ya(ne({tools:X||[],$grid:h,$table:ie}))),pe},F=()=>{const X=m.value;return i?a.h(i,{key:"import",circle:!0,icon:X.icon||Rc().TOOLBAR_TOOLS_IMPORT,title:Yh("vxe.toolbar.import"),onClick:N}):a.createCommentVNode()},G=()=>{const X=g.value;return i?a.h(i,{key:"export",circle:!0,icon:X.icon||Rc().TOOLBAR_TOOLS_EXPORT,title:Yh("vxe.toolbar.export"),onClick:M}):a.createCommentVNode()},$=()=>{const X=y.value;return i?a.h(i,{key:"print",circle:!0,icon:X.icon||Rc().TOOLBAR_TOOLS_PRINT,title:Yh("vxe.toolbar.print"),onClick:O}):a.createCommentVNode()},W=()=>{const X=v.value;return i?a.h(i,{key:"refresh",circle:!0,icon:s.isRefresh?X.iconLoading||Rc().TOOLBAR_TOOLS_REFRESH_LOADING:X.icon||Rc().TOOLBAR_TOOLS_REFRESH,title:Yh("vxe.toolbar.refresh"),onClick:E}):a.createCommentVNode()},j=()=>{const X=C.value;return h&&i?a.h(i,{key:"zoom",circle:!0,icon:h.isMaximized()?X.iconOut||Rc().TOOLBAR_TOOLS_MINIMIZE:X.iconIn||Rc().TOOLBAR_TOOLS_FULLSCREEN,title:Yh(`vxe.toolbar.zoom${h.isMaximized()?"Out":"In"}`),onClick:A}):a.createCommentVNode()},J=()=>{const X=b.value,ae=S.value,ie={};return ae==="manual"||(ae==="hover"?(ie.onMouseenter=_,ie.onMouseleave=T):ie.onClick=k),i?a.h(i,Object.assign({key:"custom",circle:!0,icon:X.icon||Rc().TOOLBAR_TOOLS_CUSTOM,title:Yh("vxe.toolbar.custom"),className:"vxe-toolbar-custom-target"},ie)):a.createCommentVNode()},Z=()=>{const{perfect:X,loading:ae,refresh:ie,zoom:K,custom:ne,className:pe}=e,{connectTable:le}=u,Ce=l.value,be=n.tools,Ee=n.buttons,Te=le;return a.h("div",{ref:c,class:["vxe-toolbar",pe?U.isFunction(pe)?pe({$toolbar:f}):pe:"",{[`size--${Ce}`]:Ce,"is--perfect":X,"is--loading":ae}]},[a.h("div",{class:"vxe-buttons--wrapper"},Ee?Ee({$grid:h,$table:Te}):L()),a.h("div",{class:"vxe-tools--wrapper"},be?be({$grid:h,$table:Te}):z()),a.h("div",{class:"vxe-tools--operate"},[e.import?F():a.createCommentVNode(),e.export?G():a.createCommentVNode(),e.print?$():a.createCommentVNode(),ie?W():a.createCommentVNode(),K&&h?j():a.createCommentVNode(),ne?J():a.createCommentVNode()])])};return f.renderVN=Z,a.nextTick(()=>{const{refresh:X}=e,ae=v.value,ie=ae.queryMethod||ae.query;X&&!h&&!ie&&lv("vxe.error.notFunc",["queryMethod"]),b.value}),f},render(){return this.renderVN()}}),Lwt=Object.assign({},Fv,{install(e){e.component(Fv.name,Fv)}});Ze.dynamicApp&&Ze.dynamicApp.component(Fv.name,Fv);Ze.component(Fv);const{getConfig:Du,getI18n:jh,commands:Pwt,hooks:Vwt,useFns:Fwt,createEvent:zwt,globalEvents:H2,GLOBAL_EVENT_KEYS:$wt,renderEmptyElement:fG}=Ze,Hwt=Object.keys(xP),pG=["clearAll","syncData","updateData","loadData","reloadData","reloadRow","loadColumn","reloadColumn","getRowNode","getColumnNode","getRowIndex","getVTRowIndex","getVMRowIndex","getColumnIndex","getVTColumnIndex","getVMColumnIndex","setRow","createData","createRow","revertData","clearData","isInsertByRow","isUpdateByRow","getColumns","getColumnById","getColumnByField","getTableColumn","getFullColumns","getData","getCheckboxRecords","getParentRow","getTreeParentRow","getRowSeq","getRowById","getRowid","getTableData","getFullData","setColumnFixed","clearColumnFixed","setColumnWidth","getColumnWidth","hideColumn","showColumn","resetColumn","refreshColumn","refreshScroll","recalculate","closeTooltip","isAllCheckboxChecked","isAllCheckboxIndeterminate","getCheckboxIndeterminateRecords","setCheckboxRow","setCheckboxRowKey","isCheckedByCheckboxRow","isCheckedByCheckboxRowKey","isIndeterminateByCheckboxRow","isIndeterminateByCheckboxRowKey","toggleCheckboxRow","setAllCheckboxRow","getRadioReserveRecord","clearRadioReserve","getCheckboxReserveRecords","clearCheckboxReserve","toggleAllCheckboxRow","clearCheckboxRow","setCurrentRow","isCheckedByRadioRow","isCheckedByRadioRowKey","setRadioRow","setRadioRowKey","clearCurrentRow","clearRadioRow","getCurrentRecord","getRadioRecord","getCurrentColumn","setCurrentColumn","clearCurrentColumn","setPendingRow","togglePendingRow","getPendingRecords","clearPendingRow","sort","setSort","clearSort","isSort","getSortColumns","closeFilter","isFilter","isActiveFilterByColumn","isRowExpandLoaded","clearRowExpandLoaded","reloadRowExpand","reloadRowExpand","toggleRowExpand","setAllRowExpand","setRowExpand","isExpandByRow","isRowExpandByRow","clearRowExpand","clearRowExpandReserve","getRowExpandRecords","getTreeExpandRecords","isTreeExpandLoaded","clearTreeExpandLoaded","reloadTreeExpand","reloadTreeChilds","toggleTreeExpand","setAllTreeExpand","setTreeExpand","isTreeExpandByRow","clearTreeExpand","clearTreeExpandReserve","getScroll","scrollTo","scrollToRow","scrollToColumn","clearScroll","updateFooter","updateStatus","setMergeCells","removeInsertRow","removeMergeCells","getMergeCells","clearMergeCells","setMergeFooterItems","removeMergeFooterItems","getMergeFooterItems","clearMergeFooterItems","getCustomStoreData","openTooltip","getCellLabel","getCellElement","focus","blur","connect"],Wwt=[...kP,"page-change","form-submit","form-submit-invalid","form-reset","form-collapse","form-toggle-collapse","proxy-query","proxy-delete","proxy-save","toolbar-button-click","toolbar-tool-click","zoom"],zv=a.defineComponent({name:"VxeGrid",props:Object.assign(Object.assign({},xP),{layouts:Array,columns:Array,pagerConfig:Object,proxyConfig:Object,toolbarConfig:Object,formConfig:Object,zoomConfig:Object,size:{type:String,default:()=>Du().grid.size||Du().size}}),emits:Wwt,setup(e,t){var n;const{slots:r,emit:o}=t,i=U.uniqueId(),l=Ze.getComponent("VxeForm"),s=Ze.getComponent("VxePager"),u=[["Form"],["Toolbar","Top","Table","Bottom","Pager"]],{computeSize:c}=Fwt.useSize(e),d=a.reactive({tableLoading:!1,proxyInited:!1,isZMax:!1,tableData:[],filterData:[],formData:{},sortData:[],tZindex:0,tablePage:{total:0,pageSize:((n=Du().pager)===null||n===void 0?void 0:n.pageSize)||10,currentPage:1}}),f=a.ref(),p=a.ref(),h=a.ref(),v=a.ref(),m=a.ref(),g=a.ref(),y=a.ref(),C=a.ref(),b=a.ref(),w=a.ref(),S=se=>{const ee={};return se.forEach(he=>{ee[he]=(...ze)=>{const Xe=p.value;if(Xe&&Xe[he])return Xe[he](...ze)}}),ee},x=S(pG);pG.forEach(se=>{x[se]=(...ee)=>{const he=p.value;if(he&&he[se])return he&&he[se](...ee)}});const k=a.computed(()=>U.merge({},U.clone(Du().grid.proxyConfig,!0),e.proxyConfig)),_=a.computed(()=>{const se=k.value;return U.isBoolean(se.message)?se.message:se.showResponseMsg}),T=a.computed(()=>k.value.showActiveMsg),E=a.computed(()=>Object.assign({},Du().grid.pagerConfig,e.pagerConfig)),A=a.computed(()=>Object.assign({},Du().grid.formConfig,e.formConfig)),D=a.computed(()=>Object.assign({},Du().grid.toolbarConfig,e.toolbarConfig)),B=a.computed(()=>Object.assign({},Du().grid.zoomConfig,e.zoomConfig)),N=a.computed(()=>{const{height:se,maxHeight:ee}=e,{isZMax:he,tZindex:ze}=d,Xe={};return he?Xe.zIndex=ze:(se&&(Xe.height=se==="auto"||se==="100%"?"100%":BW(se)),ee&&(Xe.maxHeight=ee==="auto"||ee==="100%"?"100%":BW(ee))),Xe}),M=a.computed(()=>{const se={},ee=e;return Hwt.forEach(he=>{se[he]=ee[he]}),se}),O=a.computed(()=>{const{seqConfig:se,pagerConfig:ee,loading:he,editConfig:ze,proxyConfig:Xe}=e,{isZMax:st,tableLoading:Mt,tablePage:Ft,tableData:ke}=d,Se=M.value,$e=k.value,ve=E.value,we=Object.assign({},Se);return st&&(Se.maxHeight?we.maxHeight="100%":we.height="100%"),Xe&&dn($e)&&(we.loading=he||Mt,we.data=ke,ee&&$e.seq&&dn(ve)&&(we.seqConfig=Object.assign({},se,{startIndex:(Ft.currentPage-1)*Ft.pageSize}))),ze&&(we.editConfig=Object.assign({},ze)),we}),P=a.computed(()=>{const{layouts:se}=e;let ee=[];se&&se.length?ee=se:ee=Du().grid.layouts||u;let he=[],ze=[],Xe=[];return ee.length&&(U.isArray(ee[0])?(he=ee[0],ze=ee[1]||[],Xe=ee[2]||[]):ze=ee),{headKeys:he,bodyKeys:ze,footKeys:Xe}}),R=a.computed(()=>{const se=E.value;return`${se.currentPage}${se.pageSize}`}),L={refElem:f,refTable:p,refForm:h,refToolbar:v,refPager:m},z={computeProxyOpts:k,computePagerOpts:E,computeFormOpts:A,computeToolbarOpts:D,computeZoomOpts:B},F={xID:i,props:e,context:t,reactData:d,getRefMaps:()=>L,getComputeMaps:()=>z},G=()=>{const se=D.value;e.toolbarConfig&&dn(se)&&a.nextTick(()=>{const ee=p.value,he=v.value;ee&&he&&ee.connect(he)})},$=()=>{const{proxyConfig:se}=e,{formData:ee}=d,he=k.value,ze=A.value;return se&&dn(he)&&he.form?ee:ze.data},W=()=>{const{tablePage:se}=d,{pagerConfig:ee}=e,he=E.value,{currentPage:ze,pageSize:Xe}=he;ee&&dn(he)&&(ze&&(se.currentPage=ze),Xe&&(se.pageSize=Xe))},j=se=>{const ee=T.value,he=p.value,ze=he.getCheckboxRecords();ze.length?(he.togglePendingRow(ze),x.clearCheckboxRow()):ee&&Ze.modal&&Ze.modal.message({id:se,content:jh("vxe.grid.selectOneRecord"),status:"warning"})},J=(se,ee)=>{const he=k.value,Xe=(he.response||he.props||{}).message;let st;return se&&Xe&&(st=U.isFunction(Xe)?Xe({data:se,$grid:F}):U.get(se,Xe)),st||jh(ee)},Z=(se,ee,he)=>{const ze=T.value,Xe=x.getCheckboxRecords();if(ze)if(Xe.length){if(Ze.modal)return Ze.modal.confirm({id:`cfm_${se}`,content:jh(ee),escClosable:!0}).then(st=>{if(st==="confirm")return he()})}else Ze.modal&&Ze.modal.message({id:`msg_${se}`,content:jh("vxe.grid.selectOneRecord"),status:"warning"});else Xe.length&&he();return Promise.resolve()},X=se=>{const{proxyConfig:ee}=e,{tablePage:he}=d,{$event:ze,currentPage:Xe,pageSize:st}=se,Mt=k.value;he.currentPage=Xe,he.pageSize=st,_e.dispatchEvent("page-change",se,ze),ee&&dn(Mt)&&_e.commitProxy("query").then(Ft=>{_e.dispatchEvent("proxy-query",Ft,ze)})},ae=se=>{const ee=p.value,{proxyConfig:he}=e,{computeSortOpts:ze}=ee.getComputeMaps(),Xe=k.value;ze.value.remote&&(d.sortData=se.sortList,he&&dn(Xe)&&(d.tablePage.currentPage=1,_e.commitProxy("query").then(Mt=>{_e.dispatchEvent("proxy-query",Mt,se.$event)}))),_e.dispatchEvent("sort-change",se,se.$event)},ie=se=>{const ee=p.value,{proxyConfig:he}=e,{computeFilterOpts:ze}=ee.getComputeMaps(),Xe=k.value;ze.value.remote&&(d.filterData=se.filterList,he&&dn(Xe)&&(d.tablePage.currentPage=1,_e.commitProxy("query").then(Mt=>{_e.dispatchEvent("proxy-query",Mt,se.$event)}))),_e.dispatchEvent("filter-change",se,se.$event)},K=se=>{const{proxyConfig:ee}=e,he=k.value;ee&&dn(he)&&_e.commitProxy("reload").then(ze=>{_e.dispatchEvent("proxy-query",Object.assign(Object.assign({},ze),{isReload:!0}),se.$event)}),_e.dispatchEvent("form-submit",se,se.$event)},ne=se=>{const{proxyConfig:ee}=e,{$event:he}=se,ze=k.value,Xe=p.value;ee&&dn(ze)&&(Xe.clearScroll(),_e.commitProxy("reload").then(st=>{_e.dispatchEvent("proxy-query",Object.assign(Object.assign({},st),{isReload:!0}),he)})),_e.dispatchEvent("form-reset",se,he)},pe=se=>{_e.dispatchEvent("form-submit-invalid",se,se.$event)},le=se=>{const{$event:ee}=se;a.nextTick(()=>x.recalculate(!0)),_e.dispatchEvent("form-toggle-collapse",se,ee),_e.dispatchEvent("form-collapse",se,ee)},Ce=se=>{const{isZMax:ee}=d;return(se?!ee:ee)&&(d.isZMax=!ee,d.tZindex<yoe()&&(d.tZindex=goe())),a.nextTick().then(()=>x.recalculate(!0)).then(()=>d.isZMax)},be=(se,ee)=>{const he=se[ee];if(he)if(U.isString(he)){if(r[he])return r[he]}else return he;return null},Ee=()=>{const{formConfig:se,proxyConfig:ee}=e,{formData:he}=d,ze=k.value,Xe=A.value;if(se&&dn(Xe)||r.form){let st=[];if(r.form)st=r.form({$grid:F});else if(Xe.items){const Mt={};if(!Xe.inited){Xe.inited=!0;const Ft=ze.beforeItem;ze&&Ft&&Xe.items.forEach(ke=>{Ft({$grid:F,item:ke})})}Xe.items.forEach(Ft=>{U.each(Ft.slots,ke=>{U.isFunction(ke)||r[ke]&&(Mt[ke]=r[ke])})}),l&&st.push(a.h(l,Object.assign(Object.assign({ref:h},Object.assign({},Xe,{data:ee&&dn(ze)&&ze.form?he:Xe.data})),{onSubmit:K,onReset:ne,onSubmitInvalid:pe,onCollapse:le}),Mt))}return a.h("div",{ref:g,key:"form",class:"vxe-grid--form-wrapper"},st)}return a.createCommentVNode()},Te=()=>{const{toolbarConfig:se}=e,ee=D.value;if(se&&dn(ee)||r.toolbar){let he=[];if(r.toolbar)he=r.toolbar({$grid:F});else{const ze=ee.slots;let Xe,st;const Mt={};ze&&(Xe=be(ze,"buttons"),st=be(ze,"tools"),Xe&&(Mt.buttons=Xe),st&&(Mt.tools=st)),he.push(a.h(Lwt,Object.assign({ref:v},ee),Mt))}return a.h("div",{ref:y,key:"toolbar",class:"vxe-grid--toolbar-wrapper"},he)}return a.createCommentVNode()},De=()=>r.top?a.h("div",{ref:C,key:"top",class:"vxe-grid--top-wrapper"},r.top({$grid:F})):a.createCommentVNode(),Fe=()=>{const se=r.left;return se?a.h("div",{class:"vxe-grid--left-wrapper"},se({$grid:F})):a.createCommentVNode()},Je=()=>{const se=r.right;return se?a.h("div",{class:"vxe-grid--right-wrapper"},se({$grid:F})):a.createCommentVNode()},Ve=()=>{const{proxyConfig:se}=e,ee=O.value,he=k.value,ze=Object.assign({},lt),Xe=r.empty,st=r.loading,Mt=r.rowDragIcon||r["row-drag-icon"],Ft=r.columnDragIcon||r["column-drag-icon"];se&&dn(he)&&(he.sort&&(ze.onSortChange=ae),he.filter&&(ze.onFilterChange=ie));const ke={};return Xe&&(ke.empty=Xe),st&&(ke.loading=st),Mt&&(ke.rowDragIcon=Mt),Ft&&(ke.columnDragIcon=Ft),a.h("div",{class:"vxe-grid--table-wrapper"},[a.h(Bwt,Object.assign(Object.assign({ref:p},ee),ze),ke)])},Ke=()=>r.bottom?a.h("div",{ref:b,key:"bottom",class:"vxe-grid--bottom-wrapper"},r.bottom({$grid:F})):a.createCommentVNode(),ye=()=>{const{proxyConfig:se,pagerConfig:ee}=e,he=k.value,ze=E.value;if(ee&&dn(ze)||r.pager){let Xe=[];if(r.pager)Xe=r.pager({$grid:F});else{const st=ze.slots,Mt={};let Ft,ke;st&&(Ft=be(st,"left"),ke=be(st,"right"),Ft&&(Mt.left=Ft),ke&&(Mt.right=ke)),s&&Xe.push(a.h(s,Object.assign(Object.assign(Object.assign({ref:m},ze),se&&dn(he)?d.tablePage:{}),{onPageChange:X}),Mt))}return a.h("div",{ref:w,key:"pager",class:"vxe-grid--pager-wrapper"},Xe)}return a.createCommentVNode()},Me=se=>{const ee=[];return se.forEach(he=>{switch(he){case"Form":ee.push(Ee());break;case"Toolbar":ee.push(Te());break;case"Top":ee.push(De());break;case"Table":ee.push(a.h("div",{key:"table",class:"vxe-grid--table-container"},[Fe(),Ve(),Je()]));break;case"Bottom":ee.push(Ke());break;case"Pager":ee.push(ye());break;default:Wr("vxe.error.notProp",[`layouts -> ${he}`]);break}}),ee},Ye=()=>{const se=P.value,{headKeys:ee,bodyKeys:he,footKeys:ze}=se,Xe=r.asideLeft||r["aside-left"],st=r.asideRight||r["aside-right"];return[a.h("div",{class:"vxe-grid--layout-header-wrapper"},Me(ee)),a.h("div",{class:"vxe-grid--layout-body-wrapper"},[Xe?a.h("div",{class:"vxe-grid--layout-aside-left-wrapper"},Xe({})):fG(F),a.h("div",{class:"vxe-grid--layout-body-content-wrapper"},Me(he)),st?a.h("div",{class:"vxe-grid--layout-aside-right-wrapper"},st({})):fG(F)]),a.h("div",{class:"vxe-grid--layout-footer-wrapper"},Me(ze))]},lt={};kP.forEach(se=>{const ee=U.camelCase(`on-${se}`);lt[ee]=(...he)=>o(se,...he)});const vt=()=>{const{proxyConfig:se,formConfig:ee}=e,{proxyInited:he}=d,ze=k.value,Xe=A.value;if(se&&dn(ze)){if(ee&&dn(Xe)&&ze.form&&Xe.items){const st={};Xe.items.forEach(Mt=>{const{field:Ft,itemRender:ke}=Mt;if(Ft){let Se=null;if(ke){const{defaultValue:$e}=ke;U.isFunction($e)?Se=$e({item:Mt}):U.isUndefined($e)||(Se=$e)}st[Ft]=Se}}),d.formData=st}he||(d.proxyInited=!0,ze.autoLoad!==!1&&a.nextTick().then(()=>_e.commitProxy("_init")).then(st=>{_e.dispatchEvent("proxy-query",Object.assign(Object.assign({},st),{isInited:!0}),new Event("init"))}))}},ft=se=>{const ee=B.value;H2.hasKey(se,$wt.ESCAPE)&&d.isZMax&&ee.escRestore!==!1&&at.triggerZoomEvent(se)},_e={dispatchEvent:(se,ee,he)=>{o(se,zwt(he,{$grid:F},ee))},commitProxy(se,...ee){const{toolbarConfig:he,pagerConfig:ze,editRules:Xe,validConfig:st}=e,{tablePage:Mt}=d,Ft=T.value,ke=_.value,Se=k.value,$e=E.value,ve=D.value,{beforeQuery:we,afterQuery:He,beforeDelete:We,afterDelete:et,beforeSave:xt,afterSave:Xt,ajax:$t={}}=Se,En=Se.response||Se.props||{},Ut=p.value,or=$();let Zn=null,Pe=null;if(U.isString(se)){const{buttons:te}=ve,mn=he&&dn(ve)&&te?U.findTree(te,xn=>xn.code===se,{children:"dropdowns"}):null;Zn=mn?mn.item:null,Pe=se}else Zn=se,Pe=Zn.code;const yt=Zn?Zn.params:null;switch(Pe){case"insert":return Ut.insert({});case"insert_edit":return Ut.insert({}).then(({row:te})=>Ut.setEditRow(te));case"insert_actived":return Ut.insert({}).then(({row:te})=>Ut.setEditRow(te));case"mark_cancel":j(Pe);break;case"remove":return Z(Pe,"vxe.grid.removeSelectRecord",()=>Ut.removeCheckboxRow());case"import":Ut.importData(yt);break;case"open_import":Ut.openImport(yt);break;case"export":Ut.exportData(yt);break;case"open_export":Ut.openExport(yt);break;case"reset_custom":return Ut.resetCustom(!0);case"_init":case"reload":case"query":{const te=$t.query,mn=$t.querySuccess,xn=$t.queryError;if(te){const On=Pe==="_init",ir=Pe==="reload";let lr=[],An=[],Yn={};if(ze&&((On||ir)&&(Mt.currentPage=1),dn($e)&&(Yn=Object.assign({},Mt))),On){let mt=null;if(Ut){const{computeSortOpts:Et}=Ut.getComputeMaps();mt=Et.value.defaultSort}mt&&(U.isArray(mt)||(mt=[mt]),lr=mt.map(Et=>({field:Et.field,property:Et.field,order:Et.order}))),Ut&&(An=Ut.getCheckedFilters())}else Ut&&(ir?Ut.clearAll():(lr=Ut.getSortColumns(),An=Ut.getCheckedFilters()));const Ue={code:Pe,button:Zn,isInited:On,isReload:ir,$grid:F,page:Yn,sort:lr.length?lr[0]:{},sorts:lr,filters:An,form:or,options:te};return d.sortData=lr,d.filterData=An,d.tableLoading=!0,Promise.resolve((we||te)(Ue,...ee)).then(mt=>{if(d.tableLoading=!1,mt)if(ze&&dn($e)){const Et=En.total,Yt=(U.isFunction(Et)?Et({data:mt,$grid:F}):U.get(mt,Et||"page.total"))||0;Mt.total=U.toNumber(Yt);const pr=En.result;d.tableData=(U.isFunction(pr)?pr({data:mt,$grid:F}):U.get(mt,pr||"result"))||[];const xa=Math.max(Math.ceil(Yt/Mt.pageSize),1);Mt.currentPage>xa&&(Mt.currentPage=xa)}else{const Et=En.list;d.tableData=(Et?U.isFunction(Et)?Et({data:mt,$grid:F}):U.get(mt,Et):mt)||[]}else d.tableData=[];return He&&He(Ue,...ee),mn&&mn(Object.assign(Object.assign({},Ue),{response:mt})),{status:!0}}).catch(mt=>(d.tableLoading=!1,xn&&xn(Object.assign(Object.assign({},Ue),{response:mt})),{status:!1}))}break}case"delete":{const te=$t.delete,mn=$t.deleteSuccess,xn=$t.deleteError;if(te){const On=x.getCheckboxRecords(),ir=On.filter(Yn=>!Ut.isInsertByRow(Yn)),An={$grid:F,code:Pe,button:Zn,body:{removeRecords:ir},form:or,options:te};if(On.length)return Z(Pe,"vxe.grid.deleteSelectRecord",()=>ir.length?(d.tableLoading=!0,Promise.resolve((We||te)(An,...ee)).then(Yn=>(d.tableLoading=!1,Ut.setPendingRow(ir,!1),ke&&Ze.modal&&Ze.modal.message({content:J(Yn,"vxe.grid.delSuccess"),status:"success"}),et?et(An,...ee):_e.commitProxy("query"),mn&&mn(Object.assign(Object.assign({},An),{response:Yn})),{status:!0})).catch(Yn=>(d.tableLoading=!1,ke&&Ze.modal&&Ze.modal.message({id:Pe,content:J(Yn,"vxe.grid.operError"),status:"error"}),xn&&xn(Object.assign(Object.assign({},An),{response:Yn})),{status:!1}))):Ut.remove(On));Ft&&Ze.modal&&Ze.modal.message({id:Pe,content:jh("vxe.grid.selectOneRecord"),status:"warning"})}break}case"save":{const te=$t.save,mn=$t.saveSuccess,xn=$t.saveError;if(te){const On=Ut.getRecordset(),{insertRecords:ir,removeRecords:lr,updateRecords:An,pendingRecords:Yn}=On,Ue={$grid:F,code:Pe,button:Zn,body:On,form:or,options:te};ir.length&&(On.pendingRecords=Yn.filter(Et=>Ut.findRowIndexOf(ir,Et)===-1)),Yn.length&&(On.insertRecords=ir.filter(Et=>Ut.findRowIndexOf(Yn,Et)===-1));let mt=Promise.resolve();return Xe&&(mt=Ut[st&&st.msgMode==="full"?"fullValidate":"validate"](On.insertRecords.concat(An))),mt.then(Et=>{if(!Et){if(On.insertRecords.length||lr.length||An.length||On.pendingRecords.length)return d.tableLoading=!0,Promise.resolve((xt||te)(Ue,...ee)).then(Yt=>(d.tableLoading=!1,Ut.clearPendingRow(),ke&&Ze.modal&&Ze.modal.message({content:J(Yt,"vxe.grid.saveSuccess"),status:"success"}),Xt?Xt(Ue,...ee):_e.commitProxy("query"),mn&&mn(Object.assign(Object.assign({},Ue),{response:Yt})),{status:!0})).catch(Yt=>(d.tableLoading=!1,ke&&Ze.modal&&Ze.modal.message({id:Pe,content:J(Yt,"vxe.grid.operError"),status:"error"}),xn&&xn(Object.assign(Object.assign({},Ue),{response:Yt})),{status:!1}));Ft&&Ze.modal&&Ze.modal.message({id:Pe,content:jh("vxe.grid.dataUnchanged"),status:"info"})}})}break}default:{const te=Pwt.get(Pe);if(te){const mn=te.tableCommandMethod||te.commandMethod;mn&&mn({code:Pe,button:Zn,$grid:F,$table:Ut},...ee)}}}return a.nextTick()},zoom(){return d.isZMax?_e.revert():_e.maximize()},isMaximized(){return d.isZMax},maximize(){return Ce(!0)},revert(){return Ce()},getFormData:$,getFormItems(se){const ee=A.value,{formConfig:he}=e,{items:ze}=ee,Xe=[];return U.eachTree(he&&dn(ee)&&ze?ze:[],st=>{Xe.push(st)},{children:"children"}),U.isUndefined(se)?Xe:Xe[se]},getProxyInfo(){const se=p.value;if(e.proxyConfig){const{sortData:ee}=d;return{data:d.tableData,filter:d.filterData,form:$(),sort:ee.length?ee[0]:{},sorts:ee,pager:d.tablePage,pendingRecords:se?se.getPendingRecords():[]}}return null}},at={extendTableMethods:S,callSlot(se,ee){return se&&(U.isString(se)&&(se=r[se]||null),U.isFunction(se))?Ya(se(ee)):[]},getExcludeHeight(){const{height:se}=e,{isZMax:ee}=d,he=f.value,ze=g.value,Xe=y.value,st=C.value,Mt=b.value,Ft=w.value;return(ee||!(se==="auto"||se==="100%")?0:hB(he.parentNode))+hB(he)+dy(ze)+dy(Xe)+dy(st)+dy(Mt)+dy(Ft)},getParentHeight(){const se=f.value;return se?(d.isZMax?UE().visibleHeight:U.toNumber(getComputedStyle(se.parentNode).height))-at.getExcludeHeight():0},triggerToolbarCommitEvent(se,ee){const{code:he}=se;return _e.commitProxy(se,ee).then(ze=>{he&&ze&&ze.status&&["query","reload","delete","save"].includes(he)&&_e.dispatchEvent(he==="delete"||he==="save"?`proxy-${he}`:"proxy-query",Object.assign(Object.assign({},ze),{isReload:he==="reload"}),ee)})},triggerToolbarBtnEvent(se,ee){at.triggerToolbarCommitEvent(se,ee),_e.dispatchEvent("toolbar-button-click",{code:se.code,button:se},ee)},triggerToolbarTolEvent(se,ee){at.triggerToolbarCommitEvent(se,ee),_e.dispatchEvent("toolbar-tool-click",{code:se.code,tool:se},ee)},triggerZoomEvent(se){_e.zoom(),_e.dispatchEvent("zoom",{type:d.isZMax?"max":"revert"},se)}};Object.assign(F,x,_e,at);const tt=a.ref(0);a.watch(()=>e.columns?e.columns.length:-1,()=>{tt.value++}),a.watch(()=>e.columns,()=>{tt.value++}),a.watch(tt,()=>{a.nextTick(()=>F.loadColumn(e.columns||[]))}),a.watch(()=>e.toolbarConfig,()=>{G()}),a.watch(R,()=>{W()}),a.watch(()=>e.proxyConfig,()=>{vt()}),Vwt.forEach(se=>{const{setupGrid:ee}=se;if(ee){const he=ee(F);he&&U.isObject(he)&&Object.assign(F,he)}}),W(),a.onMounted(()=>{a.nextTick(()=>{const{columns:se}=e;se&&se.length&&F.loadColumn(se),G(),vt()}),H2.on(F,"keydown",ft)}),a.onUnmounted(()=>{H2.off(F,"keydown")});const ue=()=>{const se=c.value,ee=N.value;return a.h("div",{ref:f,class:["vxe-grid",{[`size--${se}`]:se,"is--animat":!!e.animat,"is--round":e.round,"is--maximize":d.isZMax,"is--loading":e.loading||d.tableLoading}],style:ee},Ye())};return F.renderVN=ue,a.provide("$xeGrid",F),F},render(){return this.renderVN()}}),Gwt=Object.assign({},zv,{install(e){e.component(zv.name,zv)}});Ze.dynamicApp&&Ze.dynamicApp.component(zv.name,zv);Ze.component(zv);const Uwt={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',notProp:'不支持的参数 "{0}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"{0} 像素"},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{search:"搜索",loadingText:"加载中",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消"},filter:{search:"搜索"},custom:{cstmTitle:"列设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击并拖动图标可以调整列的排序",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列(最多 {0} 列)",fixedLeft:"左侧",fixedUnset:"不设置",fixedRight:"右侧"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开层级",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"当前列:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"当前列:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}};if(!Ze.hasLanguage("zh-CN")){const e="zh-CN";Ze.setI18n(e,Uwt),Ze.setLanguage(e)}Ze.setTheme("light");const Ywt=a.defineComponent({name:"GDatatable"}),jwt=a.defineComponent({...Ywt,props:{description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},textSize:{type:String,default:"sm"},dbOptions:{type:Object,default:{}}},setup(e,{expose:t}){a.useCssVars(f=>({"3b17d635":l.value}));const n=a.ref({}),r=e,o=a.ref(null),i=a.ref(!1);r.options.columns=r.dbOptions.columns,n.value={...r.options,data:[]};const l=a.computed(()=>{if(r.textSize=="lg")return"18px";if(r.textSize=="md")return"16px";if(r.textSize=="sm")return"14px";if(r.textSize=="xs")return"12px"}),s=a.ref();a.ref({});const u=async f=>{if(Ir(f)){i.value=!0;return}else i.value=!1;n.value.data=[...f]},c=async f=>{var p;if(Un(f)){await f.loadData();let h=f.mergeData();await u(h),o.value=f.onDataUpdate(()=>{const v=f.mergeData();u(v)})}else if(Vn(f))await u(f.sourceData),o.value=f.onDataUpdate(()=>{u(f.sourceData)});else{const h=(p=r.dbOptions)==null?void 0:p.dataField;let v=await Xn(f,h);u(v);return}};a.onMounted(()=>{c(r.dbOptions.data)}),a.onUnmounted(()=>{o.value&&(o.value(),o.value=null)}),t({props:r,datatableRef:s});const d=qn(r.dbOptions);return(f,p)=>{const h=a.resolveComponent("el-empty");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.withDirectives(a.createElementVNode("div",{class:"g-datatable",onContextmenu:p[0]||(p[0]=(...v)=>a.unref(d)&&a.unref(d)(...v))},[a.createVNode(a.unref(Gwt),a.mergeProps(f.$attrs,n.value,{ref_key:"datatableRef",ref:s}),{default:a.withCtx(()=>[a.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},16)],544),[[a.vShow,!i.value]]),i.value?a.renderSlot(f.$slots,"empty",{key:0,class:"empty"},()=>[a.createVNode(h,a.mergeProps(f.$attrs,{description:e.description,image:a.unref(It)().name=="white-blue"?a.unref(Cl):a.unref(It)().name=="white-green"?a.unref(wl):a.unref(It)().name=="black-gold"?a.unref(Sl):"","image-size":200}),null,16,["description","image"])],!0):a.createCommentVNode("",!0)],64)}}}),Kwt=ar(jwt,[["__scopeId","data-v-9bc43748"]]),Xoe=Dt(Kwt);/**!
|