@yinuo-ngm/server 1.0.5 → 1.0.6
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/package.json +1 -1
- package/www/browser/{chunk-X7DKZB43.js → chunk-2PBA7FNM.js} +2 -2
- package/www/browser/chunk-35COW2FA.js +1 -0
- package/www/browser/{chunk-IGJYBE5M.js → chunk-3N7T4ZJF.js} +1 -1
- package/www/browser/{chunk-6ZXMOHQD.js → chunk-5IUYSJVD.js} +1 -1
- package/www/browser/{chunk-CF64VPDQ.js → chunk-5MHC25IS.js} +1 -1
- package/www/browser/chunk-7U5ZOE34.js +1 -0
- package/www/browser/{chunk-GKOCPXFS.js → chunk-A2SBXP7A.js} +1 -1
- package/www/browser/chunk-CJISJEP3.js +1 -0
- package/www/browser/chunk-CPA2B3DD.js +1 -0
- package/www/browser/{chunk-TN5O5PXP.js → chunk-DUC7XBYN.js} +1 -1
- package/www/browser/{chunk-UIDFNBD4.js → chunk-DV7BEQJD.js} +1 -1
- package/www/browser/{chunk-ZGEEPU7F.js → chunk-EAYGWAZB.js} +1 -1
- package/www/browser/{chunk-GNFBCMLE.js → chunk-EC33AXSR.js} +1 -1
- package/www/browser/{chunk-K6ZRTM2Q.js → chunk-FL6BUQ4M.js} +1 -1
- package/www/browser/{chunk-A6CKMRBS.js → chunk-FPDGZ3ZC.js} +1 -1
- package/www/browser/{chunk-ECWYTW7Q.js → chunk-IXHH6ENJ.js} +1 -1
- package/www/browser/chunk-KKLLU6U7.js +3 -0
- package/www/browser/chunk-MN4WB67T.js +1 -0
- package/www/browser/{chunk-ZJKBRM7K.js → chunk-POZS3PD3.js} +1 -1
- package/www/browser/{chunk-J43J3F2V.js → chunk-PTMJ422K.js} +6 -6
- package/www/browser/{chunk-HT3VTKOZ.js → chunk-PYGKDDJK.js} +1 -1
- package/www/browser/{chunk-34QRY4VA.js → chunk-ROB7EMN5.js} +13 -13
- package/www/browser/chunk-TLFV3T3W.js +1 -0
- package/www/browser/chunk-U7FBNFSB.js +1 -0
- package/www/browser/chunk-UWKUE7CZ.js +11 -0
- package/www/browser/{chunk-R7E5ZK2M.js → chunk-V6LX42JA.js} +1 -1
- package/www/browser/dark.css +1 -1
- package/www/browser/default.css +1 -1
- package/www/browser/index.html +1 -1
- package/www/browser/main-IIW5QQA5.js +29 -0
- package/www/browser/chunk-5RKAWOOJ.js +0 -1
- package/www/browser/chunk-ACZLOZZH.js +0 -1
- package/www/browser/chunk-C3KAVW4L.js +0 -1
- package/www/browser/chunk-CKWTUTVS.js +0 -1
- package/www/browser/chunk-QC33YQSO.js +0 -11
- package/www/browser/chunk-U76AMP2X.js +0 -3
- package/www/browser/main-F763G7F7.js +0 -29
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as no,b as io,c as oo,d as ro,e as ao}from"./chunk-ECWYTW7Q.js";import{a as Di,b as Ni,c as Ii}from"./chunk-GNFBCMLE.js";import{b as Zi,c as Yt,d as qt,e as zt,f as Ki,g as to}from"./chunk-5RKAWOOJ.js";import"./chunk-SIVPP74B.js";import{a as Ji,b as eo}from"./chunk-ZJKBRM7K.js";import{a as Zt,b as bt}from"./chunk-IGJYBE5M.js";import"./chunk-HZ73CM45.js";import{a as Ie,b as le,c as Hi,d as Qi}from"./chunk-CF64VPDQ.js";import{a as Qt,c as Xt,d as Xi,e as Ui,f as Ut}from"./chunk-TN5O5PXP.js";import{a as Nn,b as Ee,c as _e,d as Oe,f as ji,g as Bi}from"./chunk-34QRY4VA.js";import{b as $i,c as Yi,d as qi}from"./chunk-GKOCPXFS.js";import"./chunk-SNCDDYQR.js";import{B as Xe,C as Gt,D as _t,E as $t,F as Ht,H as Ct,I as Ue,h as Ai,k as Wt,l as Ri,n as Wi,q as Vi,r as Li,t as Gi,v as Vt,w as Lt,x as gt}from"./chunk-A6CKMRBS.js";import{Cb as He,Eb as Qe,F as bi,G as vi,H as ue,La as wi,M as E,N as w,O as Ve,P as Le,T as Ti,U as xi,V as Z,W as Ne,Wa as At,Y as ne,Z as H,a as kn,b as _i,ba as yi,c as wn,f as Dn,ga as Si,h as Ci,ha as Pi,i as Bt,ia as Mi,ib as Fe,kb as Ce,la as ki,lb as Ei,nb as Oi,ob as ze,pb as Fi,sb as Q,u as zi,vb as Rt,w as ot,x as rt,xb as je,yb as ht,z as te,zb as be}from"./chunk-J43J3F2V.js";import"./chunk-HFZLJHYR.js";import{B as wt,d as De,f as fi,i as I,v as hi,y as ft,z as gi}from"./chunk-53YRDYLS.js";import{$b as re,A as xn,Ac as ei,Ca as Be,Cc as ti,Dc as B,Eb as y,Ec as Re,Fb as we,Fc as K,Gb as $e,Gc as mt,Ha as pe,Hc as ni,Ic as p,Jc as G,Kb as S,Kc as me,L as Je,Lb as Kn,M as et,Mc as A,N as Gn,Nc as R,Oa as Te,Oc as W,Pc as ii,Q as $n,Qc as oi,Ra as tt,Rc as ri,Sa as Ot,T as Hn,Tb as xe,U as Qn,Uc as ai,Vb as T,Vc as ut,W as Et,Wc as kt,Xa as Zn,Xb as x,Yb as jt,Yc as si,Zb as pt,Zc as li,_b as oe,_c as ci,a as ve,ac as m,ad as $,b as Tn,bc as a,c as Wn,ca as St,cc as s,da as Xn,dc as h,ea as yn,f as ct,fd as ee,g as Ke,gd as pi,hc as ae,ic as se,jc as Sn,jd as di,kc as P,l as Ge,la as Un,ld as Pn,ma as Yn,mb as l,mc as Jn,na as ke,o as Vn,od as mi,p as Ln,pa as qn,pd as ui,qc as v,r as ce,ra as f,rb as k,rd as We,s as j,sb as nt,tc as c,u as xt,uc as Mt,vb as it,vc as dt,vd as J,wc as Ae,wd as Mn,xa as C,xc as de,ya as z,yb as Ft,yc as V,z as yt,za as Pt,zc as L}from"./chunk-SJG2JCPL.js";function Oo(t,o){if(t&1&&(ae(0),h(1,"nz-icon",1),se()),t&2){let e=o.$implicit;l(),m("nzType",e)}}var Fo=["nz-tab-body",""];function jo(t,o){}function Bo(t,o){if(t&1&&(ae(0),h(1,"nz-icon",1),se()),t&2){let e=o.$implicit;l(),m("nzType",e)}}var Ao=()=>({minWidth:"46px"}),Ro=()=>({visible:!1});function Wo(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=c().$implicit;l(),me(" ",e.tab.label," ")}}function Vo(t,o){if(t&1){let e=P();a(0,"li",7),v("click",function(){let i=C(e).$implicit,r=c(2);return z(r.onSelect(i))})("contextmenu",function(i){let r=C(e).$implicit,d=c(2);return z(d.onContextmenu(r,i))}),S(1,Wo,2,1,"ng-container",8),s()}if(t&2){let e=o.$implicit;K("ant-tabs-dropdown-menu-item-disabled",e.disabled),m("nzSelected",e.active)("nzDisabled",e.disabled),l(),m("nzStringTemplateOutlet",e.tab.label)("nzStringTemplateOutletContext",ut(6,Ro))}}function Lo(t,o){if(t&1&&(a(0,"ul",4),oe(1,Vo,2,7,"li",6,pt),s()),t&2){let e=c();l(),re(e.items)}}function Go(t,o){if(t&1){let e=P();a(0,"button",9),v("click",function(){C(e);let i=c();return z(i.addClicked.emit())}),s()}if(t&2){let e=c();m("addIcon",e.addIcon)}}var $o=["navWrap"],Ho=["navList"],Qo=["*"];function Xo(t,o){}function Uo(t,o){if(t&1&&(a(0,"div",2),S(1,Xo,0,0,"ng-template",8),s()),t&2){let e=c();l(),m("ngTemplateOutlet",e.startExtraContent().templateRef)}}function Yo(t,o){if(t&1){let e=P();a(0,"button",9),v("click",function(){C(e);let i=c();return z(i.addClicked.emit())}),s()}if(t&2){let e=c();m("addIcon",e.addIcon),xe("tabindex",-1)}}function qo(t,o){}function Zo(t,o){if(t&1&&(a(0,"div",2),S(1,qo,0,0,"ng-template",8),s()),t&2){let e=c();l(),m("ngTemplateOutlet",e.endExtraContent().templateRef)}}function Ko(t,o){}function Jo(t,o){if(t&1&&(a(0,"div",2),S(1,Ko,0,0,"ng-template",8),s()),t&2){let e=c();l(),m("ngTemplateOutlet",e.extraTemplate)}}var er=["contentTemplate"],tr=[[["","nz-tab-link",""]],"*"],nr=["[nz-tab-link]","*"];function ir(t,o){t&1&&dt(0)}function or(t,o){t&1&&dt(0,1)}var rr=()=>({visible:!0});function ar(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=c().$implicit;l(),me(" ",e.label," ")}}function sr(t,o){if(t&1){let e=P();a(0,"button",10),v("click",function(i){C(e);let r=c().$index,d=c(2);return z(d.onClose(r,i))}),s()}if(t&2){let e=c().$implicit;m("closeIcon",e.nzCloseIcon)}}function lr(t,o){if(t&1){let e=P();a(0,"div",6),v("click",function(i){let r=C(e),d=r.$implicit,M=r.$index,O=c(2);return z(O.clickNavItem(d,M,i))})("contextmenu",function(i){let r=C(e).$implicit,d=c(2);return z(d.contextmenuNavItem(r,i))}),a(1,"button",7),S(2,ar,2,1,"ng-container",8),T(3,sr,1,1,"button",9),s()()}if(t&2){let e=o.$implicit,n=o.$index,i=c(2);Re("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),K("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",e.nzDisabled),l(),m("id",i.getTabContentId(n))("disabled",e.nzDisabled)("tab",e)("active",i.nzSelectedIndex===n),xe("tabIndex",i.getTabIndex(e,n))("aria-disabled",e.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),l(),m("nzStringTemplateOutlet",e.label)("nzStringTemplateOutletContext",ut(19,rr)),l(),x(e.nzClosable&&i.closable&&!e.nzDisabled?3:-1)}}function cr(t,o){if(t&1){let e=P();a(0,"nz-tabs-nav",4),v("tabScroll",function(i){C(e);let r=c();return z(r.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){C(e);let r=c();return z(r.setSelectedIndex(i))})("addClicked",function(){C(e);let i=c();return z(i.onAdd())}),oe(1,lr,4,20,"div",5,pt),s()}if(t&2){let e=c();mt(e.nzTabBarStyle),m("selectedIndex",e.nzSelectedIndex||0)("inkBarAnimated",e.inkBarAnimated)("addable",e.addable)("addIcon",e.nzAddIcon)("hideBar",e.nzHideAll)("position",e.position)("extraTemplate",e.nzTabBarExtraContent)("extraContents",e.extraContents()),l(),re(e.tabs)}}function pr(t,o){}function dr(t,o){if(t&1&&S(0,pr,0,0,"ng-template",11),t&2){c();let e=B(4);m("ngTemplateOutlet",e)}}function mr(t,o){}function ur(t,o){if(t&1&&S(0,mr,0,0,"ng-template",11),t&2){c(2);let e=B(4);m("ngTemplateOutlet",e)}}function fr(t,o){if(t&1&&T(0,ur,1,1,null,11),t&2){let e=c().$index,n=c(2);x(n.nzSelectedIndex===e?0:-1)}}function hr(t,o){}function gr(t,o){if(t&1&&S(0,hr,0,0,"ng-template",11),t&2){c(2);let e=B(4);m("ngTemplateOutlet",e)}}function _r(t,o){if(t&1&&T(0,gr,1,1,null,11),t&2){let e=c(),n=e.$implicit,i=e.$index,r=c(2);x(r.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function Cr(t,o){if(t&1&&h(0,"div",12),t&2){let e=c(),n=e.$implicit,i=e.$index,r=c(2);m("id",r.getTabContentId(i))("active",r.nzSelectedIndex===i)("content",n.content)("animated",r.tabPaneAnimated),xe("aria-labelledby",r.getTabContentId(i))}}function zr(t,o){if(t&1&&(T(0,dr,1,1,null,11)(1,fr,1,1)(2,_r,1,1),S(3,Cr,1,5,"ng-template",null,0,$)),t&2){let e=o.$implicit,n=c(2);x(e.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function br(t,o){if(t&1&&oe(0,zr,5,1,null,null,pt),t&2){let e=c();re(e.tabs)}}var In=class{index;tab},Jt=(()=>{class t{addIcon="plus";element=f(tt).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Oo,2,1,"ng-container",0),n&2&&m("nzStringTemplateOutlet",i.addIcon)},dependencies:[Le,Ve,w,E],encapsulation:2})}return t})(),so=(()=>{class t{position=Pn("end",{alias:"nzTabBarExtraContent"});templateRef=f(it);static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return t})(),vr=(()=>{class t{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(Jn("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),xe("tabindex",i.active?0:-1)("aria-hidden",!i.active),Re("overflow-y",i.animated?i.active?null:"none":null),K("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Fo,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,jo,0,0,"ng-template",0),n&2&&m("ngTemplateOutlet",i.content)},dependencies:[De],encapsulation:2,data:{animation:[wi]},changeDetection:0})}return t})(),fo=(()=>{class t{closeIcon="close";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Bo,2,1,"ng-container",0),n&2&&m("nzStringTemplateOutlet",i.closeIcon)},dependencies:[Le,Ve,w,E],encapsulation:2})}return t})(),Tr=(()=>{class t{templateRef=f(it,{host:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return t})(),ho=(()=>{class t{elementRef=f(tt);routerLink=f(gi,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return t})(),go=(()=>{class t{disabled=!1;tab;active=!1;elementRef=f(tt);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",J],tab:"tab",active:[2,"active","active",J]}})}return t})(),En=(()=>{class t{items=[];addable=!1;addIcon="plus";addClicked=new k;selected=new k;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=f(We);element=f(tt).nativeElement;onSelect(e){e.disabled||(e.tab.nzClick.emit(),this.selected.emit(e))}onContextmenu(e,n){e.disabled||e.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(e){e||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&K("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",J],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let r=P();a(0,"button",2,0),v("nzVisibleChange",function(M){return C(r),z(i.menuVisChange(M))})("mouseenter",function(){return C(r),z(i.showItems())}),h(2,"nz-icon",3),s(),a(3,"nz-dropdown-menu",null,1),T(5,Lo,3,0,"ul",4),s(),T(6,Go,1,1,"button",5)}if(n&2){let r=B(4);m("nzDropdownMenu",r)("nzOverlayStyle",ut(5,Ao))("nzMatchWidthElement",null),l(5),x(i.menuOpened?5:-1),l(),x(i.addable?6:-1)}},dependencies:[w,E,Le,Ve,Jt,Gi,Vi,Wi,Ri,Li],encapsulation:2,changeDetection:0})}return t})(),xr=.1,lo=.01,Kt=20,co=.995**Kt,yr=(()=>{class t{ngZone=f(nt);destroyRef=f(Be);el=f(tt).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new k;tabScroll=new k;ngOnInit(){let e=ot(this.el,"wheel"),n=ot(this.el,"touchstart"),i=ot(this.el,"touchmove"),r=ot(this.el,"touchend");this.subscribeWrap("wheel",e,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",r,this.onTouchEnd)}subscribeWrap(e,n,i){return n.pipe(te(this.destroyRef)).subscribe(r=>{this.tabScroll.emit({type:e,event:r}),r.defaultPrevented||i(r)})}onTouchEnd=e=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let r=n.x/i,d=n.y/i,M=Math.abs(r),O=Math.abs(d);if(Math.max(M,O)<xr)return;let X=r,Y=d;this.motion=window.setInterval(()=>{if(Math.abs(X)<lo&&Math.abs(Y)<lo){window.clearInterval(this.motion);return}X*=co,Y*=co,this.onOffset(X*Kt,Y*Kt,e)},Kt)}};onTouchMove=e=>{if(!this.touchPosition)return;e.preventDefault();let{screenX:n,screenY:i}=e.touches[0],r=n-this.touchPosition.x,d=i-this.touchPosition.y;this.onOffset(r,d,e);let M=Date.now();this.lastTimeDiff=M-this.lastTimestamp,this.lastTimestamp=M,this.lastOffset={x:r,y:d},this.touchPosition={x:n,y:i}};onTouchStart=e=>{let{screenX:n,screenY:i}=e.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=e=>{let{deltaX:n,deltaY:i}=e,r,d=Math.abs(n),M=Math.abs(i);d===M?r=this.lastWheelDirection==="x"?n:i:d>M?(r=n,this.lastWheelDirection="x"):(r=i,this.lastWheelDirection="y");let O=Date.now(),X=Math.abs(r);(O-this.lastWheelTimestamp>100||X-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-r,-r,e),(e.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=O,this.lastMixedWheel=X};onOffset(e,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:e,y:n,event:i})})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return t})(),po=(()=>{class t{ngZone=f(nt);el=f(tt).nativeElement;position="horizontal";animated=!0;animationMode=f(Zn,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(e){this.ngZone.runOutsideAngular(()=>{At(()=>this.setStyles(e))})}setStyles(e){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(e),this.el.style.width=this.getElementWidth(e)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(e),this.el.style.height=this.getElementHeight(e))}getLeftPosition(e){return e?`${e.offsetLeft||0}px`:"0"}getElementWidth(e){return e?`${e.offsetWidth||0}px`:"0"}getTopPosition(e){return e?`${e.offsetTop||0}px`:"0"}getElementHeight(e){return e?`${e.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&K("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return t})(),Sr=typeof At<"u"?Ln:Vn,mo=150,On=(()=>{class t{cdr=f(We);ngZone=f(nt);viewportRuler=f(ki);nzResizeObserver=f(Ki);dir=f(rt);destroyRef=f(Be);indexFocused=new k;selectFocusedIndex=new k;addClicked=new k;tabScroll=new k;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Pn.required();startExtraContent=ee(()=>this.extraContents().find(e=>e.position()==="start"));endExtraContent=ee(()=>this.extraContents().find(e=>e.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=wn(e);this._selectedIndex!==n&&(this._selectedIndex=e,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(e))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(e){!this.isValidIndex(e)||this.focusIndex===e||!this.keyManager||this.keyManager.setActiveItem(e)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let e=this.dir?this.dir.change.asObservable():xt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new Mi(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),At(i),Je(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(te(this.destroyRef),Gn(16,Sr)).subscribe(()=>{i()}),Je(e,n,this.items.changes).pipe(te(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(te(this.destroyRef)).subscribe(r=>{this.indexFocused.emit(r),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(e){let n=this.items.toArray().findIndex(i=>i===e);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(e)))}onOffsetChange(e){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&e.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&e.x<0))return;e.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+e.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&e.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&e.y<0))return;e.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+e.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(e){let n=this.navWrapRef.nativeElement.contains(e.target);if(!(Pi(e)||!n))switch(e.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(e);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(e)}}isValidIndex(e){if(!this.items)return!0;let n=this.items?this.items.toArray()[e]:null;return!!n&&!n.disabled}scrollToTab(e){if(!this.items.find(i=>i===e))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let r=n[0].left+n[0].width-e.left-e.width;r<this.transformX?i=r:r+e.width>this.transformX+this.wrapperWidth&&(i=r+e.width-this.wrapperWidth)}else e.left<-this.transformX?i=-e.left:e.left+e.width>-this.transformX+this.wrapperWidth&&(i=-(e.left+e.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;e.top<-this.transformY?i=-e.top:e.top+e.height>-this.transformY+this.wrapperHeight&&(i=-(e.top+e.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},mo)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},mo)})}setTransform(e,n){this.navListRef.nativeElement.style.transform=`translate(${e}px, ${n}px)`}clampTransformX(e){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,e),0):Math.min(Math.max(n,e),0)}clampTransformY(e){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,e),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let e=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let e={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(e.right=this.transformX>0,e.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(e.left=this.transformX<0,e.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(e.top=this.transformY<0,e.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(e).forEach(i=>{let r=`ant-tabs-nav-wrap-ping-${i}`;e[i]?n.classList.add(r):n.classList.remove(r)})}setVisibleRange(){let e,n,i,r,d,M,O=this.items.toArray(),X={width:0,height:0,left:0,top:0,right:0},Y=D=>{let ie,st=O[D]||X;return n==="right"?ie=O[0].left+O[0].width-O[D].left-O[D].width:ie=st[n],ie};this.position==="horizontal"?(e="width",r=this.wrapperWidth,d=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),M=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(e="height",r=this.wrapperHeight,d=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),M=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let ye=r;if(d+M>r&&(ye=r-M),!O.length){this.hiddenItems=[],this.cdr.markForCheck();return}let q=O.length,Tt=q;for(let D=0;D<q;D+=1){let ie=Y(D),st=O[D]||X;if(ie+st[e]>i+ye){Tt=D-1;break}}let g=0;for(let D=q-1;D>=0;D-=1)if(Y(D)<i){g=D+1;break}let u=O.slice(0,g),b=O.slice(Tt+1);this.hiddenItems=[...u,...b],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(e){let{position:n}=e;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,r){if(n&1&&Ae(r,go,5),n&2){let d;V(d=L())&&(i.items=d)}},viewQuery:function(n,i){if(n&1&&(de($o,7),de(Ho,7),de(En,7),de(Jt,5),de(po,7)),n&2){let r;V(r=L())&&(i.navWrapRef=r.first),V(r=L())&&(i.navListRef=r.first),V(r=L())&&(i.operationRef=r.first),V(r=L())&&(i.addBtnRef=r.first),V(r=L())&&(i.inkBar=r.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&v("keydown",function(d){return i.handleKeydown(d)})},inputs:{position:"position",addable:[2,"addable","addable",J],hideBar:[2,"hideBar","hideBar",J],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[Te],ngContentSelectors:Qo,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let r=P();Mt(),T(0,Uo,2,1,"div",2),a(1,"div",3,0)(3,"div",4,1),v("offsetChange",function(M){return C(r),z(i.onOffsetChange(M))})("tabScroll",function(M){return C(r),z(i.tabScroll.emit(M))}),dt(5),T(6,Yo,1,2,"button",5),h(7,"div",6),s()(),a(8,"nz-tab-nav-operation",7),v("addClicked",function(){return C(r),z(i.addClicked.emit())})("selected",function(M){return C(r),z(i.onSelectedFromMenu(M))}),s(),T(9,Zo,2,1,"div",2)(10,Jo,2,1,"div",2)}n&2&&(x(i.startExtraContent()?0:-1),l(),K("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),l(5),x(i.showAddButton?6:-1),l(),m("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),l(),m("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),l(),x(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[yr,Jt,po,En,De],encapsulation:2,changeDetection:0})}return t})(),Fn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return t})(),_o=new qn(""),jn=(()=>{class t{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new k;nzDeselect=new k;nzClick=new k;nzContextmenu=new k;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=f(_o);stateChanges=new Ge;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(e){let{nzTitle:n,nzDisabled:i,nzForceRender:r}=e;(n||i||r)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(e){this.isActive=e,e&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-tab"]],contentQueries:function(n,i,r){if(n&1&&(Ae(r,Tr,5),Ae(r,Fn,5,it),Ae(r,ho,5)),n&2){let d;V(d=L())&&(i.nzTabLinkTemplateDirective=d.first),V(d=L())&&(i.template=d.first),V(d=L())&&(i.linkDirective=d.first)}},viewQuery:function(n,i){if(n&1&&de(er,7),n&2){let r;V(r=L())&&(i.contentTemplate=r.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",J],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",J],nzForceRender:[2,"nzForceRender","nzForceRender",J]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[Te],ngContentSelectors:nr,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(Mt(tr),Kn(0,ir,1,0,"ng-template",null,0,$)(2,or,1,0,"ng-template",null,1,$))},encapsulation:2,changeDetection:0})}return t})(),Pr="tabs",Mr=0,Bn=(()=>{var q;let t,o=[],e=[],n,i=[],r=[],d,M=[],O=[],X,Y=[],ye=[];return q=class{_nzModuleName=Pr;nzConfigService=f(bi);ngZone=f(nt);cdr=f(We);directionality=f(rt);destroyRef=f(Be);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(g){this.indexToSelect=wn(g,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=j(this,o,"line");nzSize=(j(this,e),j(this,i,"default"));nzAnimated=(j(this,r),j(this,M,!0));nzTabBarGutter=(j(this,O),j(this,Y,void 0));nzHideAdd=(j(this,ye),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new k(!0);nzSelectedIndexChange=new k;nzTabListScroll=new k;nzClose=new k;nzAdd=new k;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new Ot;tabLinks=new Ot;tabNavBarRef;tabs=new Ot;extraContents=mi(so);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Ke.EMPTY;canDeactivateSubscription=Ke.EMPTY;router=f(ft,{optional:!0});constructor(){this.tabSetId=Mr++,f(di)==="nz-tabset"&&_i(`${kn} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(te(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(te(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let u=this.tabs.toArray();for(let b=0;b<u.length;b++)if(u[b].isActive){this.indexToSelect=this.selectedIndex=b;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let g=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==g){let u=this.selectedIndex==null;u||this.nzSelectChange.emit(this.createChangeEvent(g)),Promise.resolve().then(()=>{this.tabs.forEach((b,D)=>b.setActive(D===g)),u||this.nzSelectedIndexChange.emit(g)})}this.tabs.forEach((u,b)=>{u.position=b-g,this.selectedIndex!=null&&u.position===0&&!u.origin&&(u.origin=g-this.selectedIndex)}),this.selectedIndex!==g&&(this.selectedIndex=g,this.cdr.markForCheck())}onClose(g,u){u.preventDefault(),u.stopPropagation(),this.nzClose.emit({index:g})}onAdd(){this.nzAdd.emit()}clampTabIndex(g){return Math.min(this.tabs.length-1,Math.max(g||0,0))}createChangeEvent(g){let u=new In;return u.index=g,this.tabs&&this.tabs.length&&(u.tab=this.tabs.toArray()[g],this.tabs.forEach((b,D)=>{D!==g&&b.nzDeselect.emit()}),u.tab.nzSelect.emit()),u}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=Je(...this.tabs.map(g=>g.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(St(this.allTabs)).subscribe(g=>{this.tabs.reset(g.filter(u=>u.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(g,u){return typeof this.nzCanDeactivate=="function"?zi(this.nzCanDeactivate(g,u)).pipe(Et(),te(this.destroyRef)):xt(!0)}clickNavItem(g,u,b){g.nzDisabled||(g.nzClick.emit(),this.isRouterLinkClickEvent(u,b)||this.setSelectedIndex(u))}isRouterLinkClickEvent(g,u){let b=u.target;return this.nzLinkRouter?!!this.tabs.toArray()[g]?.linkDirective?.elementRef.nativeElement.contains(b):!1}contextmenuNavItem(g,u){g.nzDisabled||g.nzContextmenu.emit(u)}setSelectedIndex(g){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,g).subscribe(u=>{u&&(this.nzSelectedIndex=g,this.tabNavBarRef.focusIndex=g,this.cdr.markForCheck())})}getTabIndex(g,u){return g.nzDisabled?null:this.selectedIndex===u?0:-1}getTabContentId(g){return`nz-tabs-${this.tabSetId}-tab-${g}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${kn} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);Je(this.router.events.pipe(et(g=>g instanceof hi)),this.tabLinks.changes).pipe(St(!0),Hn(0),te(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let g=this.findShouldActiveTabIndex();g!==this.selectedIndex&&this.setSelectedIndex(g),Promise.resolve().then(()=>this.nzHideAll=g===-1)}}findShouldActiveTabIndex(){let g=this.tabs.toArray(),u=this.isLinkActive(this.router);return g.findIndex(b=>{let D=b.linkDirective;return D?u(D.routerLink):!1})}isLinkActive(g){return u=>u?!!g?.isActive(u.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ue()],n=[ue()],d=[ue()],X=[ue()],ce(null,null,t,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:u=>"nzType"in u,get:u=>u.nzType,set:(u,b)=>{u.nzType=b}},metadata:g},o,e),ce(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:u=>"nzSize"in u,get:u=>u.nzSize,set:(u,b)=>{u.nzSize=b}},metadata:g},i,r),ce(null,null,d,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:u=>"nzAnimated"in u,get:u=>u.nzAnimated,set:(u,b)=>{u.nzAnimated=b}},metadata:g},M,O),ce(null,null,X,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:u=>"nzTabBarGutter"in u,get:u=>u.nzTabBarGutter,set:(u,b)=>{u.nzTabBarGutter=b}},metadata:g},Y,ye),g&&Object.defineProperty(q,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),ct(q,"\u0275fac",function(u){return new(u||q)}),ct(q,"\u0275cmp",y({type:q,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(u,b,D){if(u&1&&(ei(D,b.extraContents,so,4),Ae(D,jn,5),Ae(D,ho,5)),u&2){ti();let ie;V(ie=L())&&(b.allTabs=ie),V(ie=L())&&(b.tabLinks=ie)}},viewQuery:function(u,b){if(u&1&&de(On,5),u&2){let D;V(D=L())&&(b.tabNavBarRef=D.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(u,b){u&2&&K("ant-tabs-card",b.nzType==="card"||b.nzType==="editable-card")("ant-tabs-editable",b.nzType==="editable-card")("ant-tabs-editable-card",b.nzType==="editable-card")("ant-tabs-centered",b.nzCentered)("ant-tabs-rtl",b.dir==="rtl")("ant-tabs-top",b.nzTabPosition==="top")("ant-tabs-bottom",b.nzTabPosition==="bottom")("ant-tabs-left",b.nzTabPosition==="left")("ant-tabs-right",b.nzTabPosition==="right")("ant-tabs-default",b.nzSize==="default")("ant-tabs-small",b.nzSize==="small")("ant-tabs-large",b.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",J],nzCentered:[2,"nzCentered","nzCentered",J],nzHideAll:[2,"nzHideAll","nzHideAll",J],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",J],nzLinkExact:[2,"nzLinkExact","nzLinkExact",J],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",J]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[ai([{provide:_o,useExisting:Un(()=>q)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(u,b){u&1&&(T(0,cr,3,10,"nz-tabs-nav",1),a(1,"div",2)(2,"div",3),T(3,br,2,0),s()()),u&2&&(x(b.tabs.length||b.addable?0:-1),l(2),K("ant-tabs-content-top",b.nzTabPosition==="top")("ant-tabs-content-bottom",b.nzTabPosition==="bottom")("ant-tabs-content-left",b.nzTabPosition==="left")("ant-tabs-content-right",b.nzTabPosition==="right")("ant-tabs-content-animated",b.tabPaneAnimated),l(),x(b.nzHideAll?-1:3))},dependencies:[On,De,go,Si,yi,Le,Ve,fo,vr],encapsulation:2})),q})();var Co=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[Bn,On,En,Jt,fo]})}return t})();var wr=t=>({$implicit:t});function Dr(t,o){if(t&1&&h(0,"nz-icon",3),t&2){let e=c(3);m("nzType",e.icon)}}function Nr(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=o.$implicit,n=c(4);l(),me(" ",e(n.nzPercent)," ")}}function Ir(t,o){if(t&1&&S(0,Nr,2,1,"ng-container",4),t&2){let e=c(3);m("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",kt(2,wr,e.nzPercent))}}function Er(t,o){if(t&1&&(a(0,"span",2),T(1,Dr,1,1,"nz-icon",3)(2,Ir,1,4,"ng-container"),s()),t&2){let e=c(2);l(),x((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2)}}function Or(t,o){if(t&1&&T(0,Er,3,1,"span",2),t&2){let e=c();x(e.nzShowInfo?0:-1)}}function Fr(t,o){if(t&1&&h(0,"div",8),t&2){let e=o.$implicit;mt(e)}}function jr(t,o){}function Br(t,o){if(t&1&&(a(0,"div",5),oe(1,Fr,1,2,"div",6,jt),S(3,jr,0,0,"ng-template",7),s()),t&2){let e=c(2),n=B(1);l(),re(e.steps),l(2),m("ngTemplateOutlet",n)}}function Ar(t,o){if(t&1&&h(0,"div",13),t&2){let e=c(3);Re("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px")}}function Rr(t,o){}function Wr(t,o){if(t&1&&(a(0,"div",9)(1,"div",10),h(2,"div",11),T(3,Ar,1,6,"div",12),s()(),S(4,Rr,0,0,"ng-template",7)),t&2){let e=c(2),n=B(1);l(2),Re("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),l(),x(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),l(),m("ngTemplateOutlet",n)}}function Vr(t,o){if(t&1&&(a(0,"div"),T(1,Br,4,1,"div",5)(2,Wr,5,12),s()),t&2){let e=c();l(),x(e.isSteps?1:2)}}function Lr(t,o){if(t&1&&(Pt(),h(0,"stop")),t&2){let e=o.$implicit;xe("offset",e.offset)("stop-color",e.color)}}function Gr(t,o){if(t&1&&(Pt(),a(0,"defs")(1,"linearGradient",17),oe(2,Lr,1,2,":svg:stop",null,jt),s()()),t&2){let e=c(2);l(),m("id","gradient-"+e.gradientId),l(),re(e.circleGradient)}}function $r(t,o){if(t&1&&(Pt(),h(0,"path",18)),t&2){let e=o.$implicit,n=c(2);mt(e.strokePathStyle),xe("d",n.pathString)("stroke-linecap",n.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",n.nzPercent?n.strokeWidth:0)}}function Hr(t,o){}function Qr(t,o){if(t&1&&(a(0,"div",10),Pt(),a(1,"svg",14),T(2,Gr,4,1,":svg:defs"),h(3,"path",15),oe(4,$r,1,6,":svg:path",16,jt),s(),S(6,Hr,0,0,"ng-template",7),s()),t&2){let e=c(),n=B(1);Re("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),K("ant-progress-circle-gradient",e.isGradient),l(2),x(e.isGradient?2:-1),l(),mt(e.trailPathStyle),xe("stroke-width",e.strokeWidth)("d",e.pathString),l(),re(e.progressCirclePath),l(2),m("ngTemplateOutlet",n)}}function Xr(t){return+t.replace("%","")}var bo=t=>{let o=[];return Object.keys(t).forEach(e=>{let n=t[e],i=Xr(e);isNaN(i)||o.push({key:i,value:n})}),o=o.sort((e,n)=>e.key-n.key),o},Ur=t=>bo(t).map(({key:o,value:e})=>({offset:`${o}%`,color:e})),Yr=t=>{let r=t,{from:o="#1890ff",to:e="#1890ff",direction:n="to right"}=r,i=Wn(r,["from","to","direction"]);if(Object.keys(i).length!==0){let d=bo(i).map(({key:M,value:O})=>`${O} ${M}%`).join(", ");return`linear-gradient(${n}, ${d})`}return`linear-gradient(${n}, ${o}, ${e})`},qr=0,zo="progress",Zr=new Map([["success","check"],["exception","close"]]),Kr=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),Jr=t=>`${t}%`,An=(()=>{var Se;let t,o=[],e=[],n,i=[],r=[],d,M=[],O=[],X,Y=[],ye=[],q,Tt=[],g=[],u,b=[],D=[],ie,st=[],Rn=[];return Se=class{_nzModuleName=zo;cdr=f(We);directionality=f(rt);destroyRef=f(Be);nzShowInfo=j(this,o,!0);nzWidth=(j(this,e),132);nzStrokeColor=j(this,i,void 0);nzSize=(j(this,r),j(this,M,"default"));nzFormat=j(this,O);nzSuccessPercent;nzPercent=0;nzStrokeWidth=j(this,Y,void 0);nzGapDegree=(j(this,ye),j(this,Tt,void 0));nzStatus=j(this,g);nzType="line";nzGapPosition=j(this,b,"top");nzStrokeLinecap=(j(this,D),j(this,st,"round"));nzSteps=(j(this,Rn),0);steps=[];lineGradient=null;isGradient=!1;isSteps=!1;gradientId=qr++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;dir="ltr";get formatter(){return this.nzFormat||Jr}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){vi(zo,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()})}ngOnChanges(F){let{nzSteps:_,nzGapPosition:N,nzStrokeLinecap:Pe,nzStrokeColor:ge,nzGapDegree:qe,nzType:lt,nzStatus:Ze,nzPercent:Me,nzSuccessPercent:It,nzStrokeWidth:bn}=F;Ze&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(Me||It)&&(parseInt(this.nzPercent.toString(),10)>=100?(Dn(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(Ze||Me||It||ge)&&this.updateIcon(),ge&&this.setStrokeColor(),(N||Pe||qe||lt||Me||ge||ge)&&this.getCirclePaths(),(Me||_||bn)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){this.directionality.change?.pipe(te(this.destroyRef)).subscribe(F=>{this.dir=F,this.cdr.detectChanges()}),this.dir=this.directionality.value}updateIcon(){let F=Zr.get(this.status);this.icon=F?F+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){let F=Math.floor(this.nzSteps*(this.nzPercent/100)),_=this.nzSize==="small"?2:14,N=[];for(let Pe=0;Pe<this.nzSteps;Pe++){let ge;Pe<=F-1&&(ge=this.nzStrokeColor);let qe={backgroundColor:`${ge}`,width:`${_}px`,height:`${this.strokeWidth}px`};N.push(qe)}this.steps=N}getCirclePaths(){if(!this.isCircleStyle)return;let F=Dn(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],_=50-this.strokeWidth/2,N=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),Pe=Math.PI*2*_,ge=this.nzGapDegree||(this.nzType==="circle"?0:75),qe=0,lt=-_,Ze=0,Me=_*-2;switch(N){case"left":qe=-_,lt=0,Ze=_*2,Me=0;break;case"right":qe=_,lt=0,Ze=_*-2,Me=0;break;case"bottom":lt=_,Me=_*2;break;default:}this.pathString=`M 50,50 m ${qe},${lt}
|
|
2
|
-
a ${_},${_} 0 1 1 ${Ze},${-Me}
|
|
3
|
-
a ${_},${_} 0 1 1 ${-Ze},${Me}`,this.trailPathStyle={strokeDasharray:`${Pe-ge}px ${Pe}px`,strokeDashoffset:`-${ge/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=F.map((It,bn)=>{let vn=F.length===2&&bn===0;return{stroke:this.isGradient&&!vn?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:vn?Kr.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(It||0)/100*(Pe-ge)}px ${Pe}px`,strokeDashoffset:`-${ge/2}px`}}}).reverse()}setStrokeColor(){let F=this.nzStrokeColor,_=this.isGradient=!!F&&typeof F!="string";_&&!this.isCircleStyle?this.lineGradient=Yr(F):_&&this.isCircleStyle?this.circleGradient=Ur(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[])}},(()=>{let F=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ue()],n=[ue()],d=[ue()],X=[ue()],q=[ue()],u=[ue()],ie=[ue()],ce(null,null,t,{kind:"field",name:"nzShowInfo",static:!1,private:!1,access:{has:_=>"nzShowInfo"in _,get:_=>_.nzShowInfo,set:(_,N)=>{_.nzShowInfo=N}},metadata:F},o,e),ce(null,null,n,{kind:"field",name:"nzStrokeColor",static:!1,private:!1,access:{has:_=>"nzStrokeColor"in _,get:_=>_.nzStrokeColor,set:(_,N)=>{_.nzStrokeColor=N}},metadata:F},i,r),ce(null,null,d,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:_=>"nzSize"in _,get:_=>_.nzSize,set:(_,N)=>{_.nzSize=N}},metadata:F},M,O),ce(null,null,X,{kind:"field",name:"nzStrokeWidth",static:!1,private:!1,access:{has:_=>"nzStrokeWidth"in _,get:_=>_.nzStrokeWidth,set:(_,N)=>{_.nzStrokeWidth=N}},metadata:F},Y,ye),ce(null,null,q,{kind:"field",name:"nzGapDegree",static:!1,private:!1,access:{has:_=>"nzGapDegree"in _,get:_=>_.nzGapDegree,set:(_,N)=>{_.nzGapDegree=N}},metadata:F},Tt,g),ce(null,null,u,{kind:"field",name:"nzGapPosition",static:!1,private:!1,access:{has:_=>"nzGapPosition"in _,get:_=>_.nzGapPosition,set:(_,N)=>{_.nzGapPosition=N}},metadata:F},b,D),ce(null,null,ie,{kind:"field",name:"nzStrokeLinecap",static:!1,private:!1,access:{has:_=>"nzStrokeLinecap"in _,get:_=>_.nzStrokeLinecap,set:(_,N)=>{_.nzStrokeLinecap=N}},metadata:F},st,Rn),F&&Object.defineProperty(Se,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:F})})(),ct(Se,"\u0275fac",function(_){return new(_||Se)}),ct(Se,"\u0275cmp",y({type:Se,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",Bt],nzPercent:[2,"nzPercent","nzPercent",Mn],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",Bt],nzGapDegree:[2,"nzGapDegree","nzGapDegree",Bt],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",Mn]},exportAs:["nzProgress"],features:[Te],decls:5,vars:18,consts:[["progressInfoTemplate",""],[1,"ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient"],[1,"ant-progress-text"],[3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-progress-steps-outer"],[1,"ant-progress-steps-item",3,"style"],[3,"ngTemplateOutlet"],[1,"ant-progress-steps-item"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],[1,"ant-progress-success-bg",3,"width","border-radius","height"],[1,"ant-progress-success-bg"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail"],["fill-opacity","0",1,"ant-progress-circle-path",3,"style"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],["fill-opacity","0",1,"ant-progress-circle-path"]],template:function(_,N){_&1&&(S(0,Or,1,1,"ng-template",null,0,$),a(2,"div"),T(3,Vr,3,1,"div"),T(4,Qr,7,14,"div",1),s()),_&2&&(l(2),ni("ant-progress ant-progress-status-"+N.status),K("ant-progress-line",N.nzType==="line")("ant-progress-small",N.nzSize==="small")("ant-progress-default",N.nzSize==="default")("ant-progress-show-info",N.nzShowInfo)("ant-progress-circle",N.isCircleStyle)("ant-progress-steps",N.isSteps)("ant-progress-rtl",N.dir==="rtl"),l(),x(N.nzType==="line"?3:-1),l(),x(N.isCircleStyle?4:-1))},dependencies:[w,E,Le,Ve,De],encapsulation:2,changeDetection:0})),Se})(),vo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[An]})}return t})();var ta=["processDotTemplate"],na=["itemContainer"],ia=(t,o,e)=>({$implicit:t,status:o,index:e});function oa(t,o){t&1&&h(0,"div",3)}function ra(t,o){if(t&1&&(a(0,"div",11),h(1,"nz-progress",12),s()),t&2){let e=c(2);l(),m("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4)}}function aa(t,o){t&1&&(a(0,"span",5),h(1,"nz-icon",13),s())}function sa(t,o){t&1&&(a(0,"span",5),h(1,"nz-icon",14),s())}function la(t,o){if(t&1&&(a(0,"span",5),p(1),s()),t&2){let e=c(2);l(),me(" ",e.index+1," ")}}function ca(t,o){if(t&1&&(ae(0),h(1,"nz-icon",15),se()),t&2){let e=o.$implicit;l(),m("nzType",e)}}function pa(t,o){if(t&1&&(a(0,"span",5),S(1,ca,2,1,"ng-container",8),s()),t&2){let e=c(2);l(),m("nzStringTemplateOutlet",e.nzIcon)}}function da(t,o){if(t&1&&(T(0,ra,2,4,"div",11),T(1,aa,2,0,"span",5),T(2,sa,2,0,"span",5),T(3,la,2,1,"span",5),T(4,pa,2,1,"span",5)),t&2){let e=c();x(e.showProgress?0:-1),l(),x(e.nzStatus==="finish"&&!e.nzIcon?1:-1),l(),x(e.nzStatus==="error"?2:-1),l(),x((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),l(),x(e.nzIcon?4:-1)}}function ma(t,o){t&1&&h(0,"span",17)}function ua(t,o){}function fa(t,o){if(t&1&&(a(0,"span",5),S(1,ma,1,0,"ng-template",null,1,$)(3,ua,0,0,"ng-template",16),s()),t&2){let e=B(2),n=c();l(3),m("ngTemplateOutlet",n.customProcessTemplate||e)("ngTemplateOutletContext",si(2,ia,e,n.nzStatus,n.index))}}function ha(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=c();l(),G(e.nzTitle)}}function ga(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=c(2);l(),G(e.nzSubtitle)}}function _a(t,o){if(t&1&&(a(0,"div",9),S(1,ga,2,1,"ng-container",8),s()),t&2){let e=c();l(),m("nzStringTemplateOutlet",e.nzSubtitle)}}function Ca(t,o){if(t&1&&(ae(0),p(1),se()),t&2){let e=c();l(),G(e.nzDescription)}}var za=["*"],en=(()=>{class t{cdr=f(We);destroyRef=f(Be);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=!1;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=!0}isCustomStatus=!1;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof it||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e}oldAPIIcon=!0;_icon;customProcessTemplate;direction="horizontal";index=0;last=!1;outStatus="process";showProcessDot=!1;clickable=!1;clickOutsideAngular$=new Ge;nullProcessFormat=()=>null;get showProgress(){return this.nzPercentage!==null&&!this.nzIcon&&this.nzStatus==="process"&&this.nzPercentage>=0&&this.nzPercentage<=100}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait")}_currentIndex=0;ngOnInit(){ot(this.itemContainer.nativeElement,"click").pipe(et(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),te(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index)})}enable(){this.nzDisabled=!1,this.cdr.markForCheck()}disable(){this.nzDisabled=!0,this.cdr.markForCheck()}markForCheck(){this.cdr.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-step"]],viewQuery:function(n,i){if(n&1&&(de(ta,5),de(na,7)),n&2){let r;V(r=L())&&(i.processDotTemplate=r.first),V(r=L())&&(i.itemContainer=r.first)}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(n,i){n&2&&K("ant-steps-item-wait",i.nzStatus==="wait")("ant-steps-item-process",i.nzStatus==="process")("ant-steps-item-finish",i.nzStatus==="finish")("ant-steps-item-error",i.nzStatus==="error")("ant-steps-item-active",i.currentIndex===i.index)("ant-steps-item-disabled",i.nzDisabled)("ant-steps-item-custom",!!i.nzIcon)("ant-steps-next-error",i.outStatus==="error"&&i.currentIndex===i.index+1)},inputs:{nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription",nzDisabled:[2,"nzDisabled","nzDisabled",J],nzPercentage:"nzPercentage",nzSize:"nzSize",nzStatus:"nzStatus",nzIcon:"nzIcon"},exportAs:["nzStep"],decls:12,vars:8,consts:[["itemContainer",""],["processDotTemplate",""],[1,"ant-steps-item-container",3,"tabindex"],[1,"ant-steps-item-tail"],[1,"ant-steps-item-icon"],[1,"ant-steps-icon"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],[1,"ant-steps-item-subtitle"],[1,"ant-steps-item-description"],[1,"ant-steps-progress-icon"],["nzType","circle",3,"nzPercent","nzWidth","nzFormat","nzStrokeWidth"],["nzType","check"],["nzType","close"],[3,"nzType"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"]],template:function(n,i){n&1&&(a(0,"div",2,0),T(2,oa,1,0,"div",3),a(3,"div",4),T(4,da,5,5),T(5,fa,4,6,"span",5),s(),a(6,"div",6)(7,"div",7),S(8,ha,2,1,"ng-container",8),T(9,_a,2,1,"div",9),s(),a(10,"div",10),S(11,Ca,2,1,"ng-container",8),s()()()),n&2&&(m("tabindex",i.clickable&&!i.nzDisabled?0:null),xe("role",i.clickable&&!i.nzDisabled?"button":null),l(2),x(i.last?-1:2),l(2),x(i.showProcessDot?-1:4),l(),x(i.showProcessDot?5:-1),l(3),m("nzStringTemplateOutlet",i.nzTitle),l(),x(i.nzSubtitle?9:-1),l(2),m("nzStringTemplateOutlet",i.nzDescription))},dependencies:[vo,An,w,E,Le,Ve,De],encapsulation:2,changeDetection:0})}return t})(),To=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=f(We);ngZone=f(nt);directionality=f(rt);destroyRef=f(Be);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof it?(this.showProcessDot=!0,this.customProcessDotTemplate=e):this.showProcessDot=Ci(e),this.updateChildrenSteps()}nzIndexChange=new k;indexChangeSubscription=Ke.EMPTY;showProcessDot=!1;showProgress=!1;customProcessDotTemplate;dir="ltr";ngOnChanges(e){let{nzStartIndex:n,nzDirection:i,nzStatus:r,nzCurrent:d,nzSize:M}=e;(n||i||r||d||M)&&this.updateChildrenSteps()}ngOnInit(){this.directionality.change?.pipe(te(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateChildrenSteps()}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(St(null),te(this.destroyRef)).subscribe(()=>{this.updateHostProgressClass(),this.updateChildrenSteps()})}updateHostProgressClass(){this.steps&&!this.showProcessDot&&(this.showProgress=!!this.steps.toArray().find(e=>e.nzPercentage!==null))}updateChildrenSteps(){if(this.steps){let e=this.steps.length;this.steps.toArray().forEach((n,i)=>{Promise.resolve().then(()=>{n.nzSize=this.nzSize,n.outStatus=this.nzStatus,n.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(n.customProcessTemplate=this.customProcessDotTemplate),n.clickable=this.nzIndexChange.observers.length>0,n.direction=this.nzDirection,n.index=i+this.nzStartIndex,n.currentIndex=this.nzCurrent,n.last=e===i+1,n.markForCheck()})}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=Je(...this.steps.map(n=>n.clickOutsideAngular$)).pipe(te(this.destroyRef)).subscribe(n=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(n))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["nz-steps"]],contentQueries:function(n,i,r){if(n&1&&Ae(r,en,4),n&2){let d;V(d=L())&&(i.steps=d)}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(n,i){n&2&&K("ant-steps-horizontal",i.nzDirection==="horizontal")("ant-steps-vertical",i.nzDirection==="vertical")("ant-steps-label-horizontal",i.nzDirection==="horizontal")("ant-steps-label-vertical",(i.showProcessDot||i.nzLabelPlacement==="vertical")&&i.nzDirection==="horizontal")("ant-steps-dot",i.showProcessDot)("ant-steps-small",i.nzSize==="small")("ant-steps-navigation",i.nzType==="navigation")("ant-steps-rtl",i.dir==="rtl")("ant-steps-with-progress",i.showProgress)},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[Te],ngContentSelectors:za,decls:1,vars:0,template:function(n,i){n&1&&(Mt(),dt(0))},encapsulation:2,changeDetection:0})}return t})(),xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[en]})}return t})();var Ta=()=>({padding:"8px"});function xa(t,o){if(t&1){let e=P();a(0,"button",13),v("click",function(){C(e);let i=c();return z(i.copy())}),h(1,"nz-icon",14),s()}if(t&2){let e=c();m("nz-tooltip",e.copyied?"\u5DF2\u590D\u5236":"\u590D\u5236")}}function ya(t,o){if(t&1&&(a(0,"div",9)(1,"nz-tag",15),p(2),s()()),t&2){let e=c();l(2),me("\u63A8\u8350\uFF1A",e.draft.detected==null?null:e.draft.detected.recommendedScript)}}function Sa(t,o){t&1&&(a(0,"div",10),p(1," \u26A0\uFE0F \u8986\u76D6\u5DF2\u5B58\u5728\u76EE\u5F55 "),s())}function Pa(t,o){if(t&1){let e=P();a(0,"button",16),v("click",function(){C(e);let i=c();return z(i.isDrawerOpen=!i.isDrawerOpen)}),h(1,"nz-icon",17),p(2," \u65E5\u5FD7\u8F93\u51FA "),s()}}function Ma(t,o){t&1&&(ae(0),h(1,"app-terminal-view"),se()),t&2&&(l(),Re("height",100,"%"))}var tn=class t{draft;chunk="";clipboard=f(to);term;isDrawerOpen=!1;isCreating=ui(!1);copyied=!1;ngOnChanges(o){o.chunk&&o.chunk.currentValue&&this.term&&this.term.write(this.chunk),o.isCreating&&o.isCreating.currentValue===!0&&(this.isDrawerOpen=!0)}copy(){let o=this.draft.repoUrl||"";this.clipboard.copy(o),this.copyied=!0,setTimeout(()=>{this.copyied=!1},2e3)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-create-summary-aside"]],viewQuery:function(e,n){if(e&1&&de(Nn,5),e&2){let i;V(i=L())&&(n.term=i.first)}},inputs:{draft:"draft",chunk:"chunk",isCreating:[1,"isCreating"]},outputs:{isCreating:"isCreatingChange"},features:[Te],decls:44,vars:16,consts:[["logActions",""],["nzTitle","\u6458\u8981","nzSize","small",3,"nzExtra"],[1,"item"],[1,"k"],[1,"v"],[1,"v","mono"],[1,"v",3,"nz-tooltip"],["nz-button","","nzType","text","nzSize","small",3,"nz-tooltip"],[1,"sep"],[1,"tag"],[1,"warn"],["nzTitle","\u65E5\u5FD7","nzPlacement","right",3,"nzOnClose","nzVisible","nzWidth","nzBodyStyle"],[4,"nzDrawerContent"],["nz-button","","nzType","text","nzSize","small",3,"click","nz-tooltip"],["nzType","copy","nzTheme","outline"],["nzColor","blue"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","desktop","nzTheme","outline"]],template:function(e,n){if(e&1){let i=P();a(0,"nz-card",1)(1,"div",2)(2,"span",3),p(3,"\u540D\u79F0"),s(),a(4,"span",4),p(5),s()(),a(6,"div",2)(7,"span",3),p(8,"\u8DEF\u5F84"),s(),a(9,"span",5),p(10),s()(),a(11,"div",2)(12,"span",3),p(13,"\u5305\u7BA1\u7406\u5668"),s(),a(14,"span",4),p(15),s()(),a(16,"div",2)(17,"span",3),p(18,"Git \u8FDC\u7A0B\u4ED3\u5E93"),s(),a(19,"span",6),p(20),s(),T(21,xa,2,1,"button",7),s(),h(22,"div",8),a(23,"div",2)(24,"span",3),p(25,"\u6846\u67B6"),s(),a(26,"span",4),p(27),s()(),a(28,"div",2)(29,"span",3),p(30,"\u811A\u672C\u547D\u4EE4"),s(),a(31,"span",4),p(32),s()(),a(33,"div",2)(34,"span",3),p(35,"Git"),s(),a(36,"span",4),p(37),s()(),T(38,ya,3,1,"div",9),T(39,Sa,2,0,"div",10),s(),S(40,Pa,3,0,"ng-template",null,0,$),a(42,"nz-drawer",11),v("nzOnClose",function(){return C(i),z(n.isDrawerOpen=!1)}),S(43,Ma,2,2,"ng-container",12),s()}if(e&2){let i=B(41);m("nzExtra",i),l(5),G(n.draft.name||"-"),l(5),G(n.draft.rootPath||"-"),l(5),G(n.draft.packageManager),l(4),m("nz-tooltip",n.draft.repoUrl||""),l(),G(n.draft.repoUrl||"-"),l(),x(n.draft.repoUrl?21:-1),l(6),G((n.draft.detected==null?null:n.draft.detected.framework)||"-"),l(5),G((n.draft.detected==null?null:n.draft.detected.scriptsCount)??"-"),l(5),G(n.draft.detected!=null&&n.draft.detected.hasGit?"Yes":"No"),l(),x(n.draft.detected!=null&&n.draft.detected.recommendedScript?38:-1),l(),x(n.draft.overwriteIfExists?39:-1),l(3),m("nzVisible",n.isDrawerOpen)("nzWidth",720)("nzBodyStyle",ut(15,Ta))}},dependencies:[I,le,Ie,bt,Zt,Qe,He,w,E,H,ne,Z,Nn,Ii,Ni,Di],styles:[".item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 0;align-items:center}.k[_ngcontent-%COMP%]{opacity:.7;width:90px;font-size:14px}.v[_ngcontent-%COMP%]{text-align:right;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;word-break:break-all}.sep[_ngcontent-%COMP%]{height:1px;background:#0000000f;margin:10px 0}.tag[_ngcontent-%COMP%]{margin-top:8px;text-align:right}.warn[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#d46b08}"],changeDetection:0})};function Ia(t,o){t&1&&h(0,"nz-empty",6)}function Ea(t,o){if(t&1&&(a(0,"nz-tag",17),p(1),li(2,"titlecase"),s()),t&2){let e=c().$implicit,n=ri(4);m("nzColor",n==="angular"?"#dd0031":n==="vue"?"#42b883":"#108ee9"),l(),me(" ",ci(2,2,e.kind)," ")}}function Oa(t,o){if(t&1&&(a(0,"div",14)(1,"div",15)(2,"div",16),p(3),s(),ii(4),T(5,Ea,3,4,"nz-tag",17),s()()),t&2){let e=o.$implicit;m("nzValue",e.path),l(2),m("nz-tooltip",e.path),l(),G(e.path),l();let n=oi(e.kind);l(),x(n?5:-1)}}function Fa(t,o){if(t&1){let e=P();a(0,"nz-radio-group",13),W("ngModelChange",function(i){C(e);let r=c();return R(r.selectedPath,i)||(r.selectedPath=i),z(i)}),oe(1,Oa,6,5,"div",14,pt),s()}if(t&2){let e=c();A("ngModel",e.selectedPath),l(),re(e.filtered())}}var on=class t{constructor(o){this.modalRef=o}data=f(Vt);keyword=pe("");selectedPath=pe(null);ngOnInit(){let{candidates:o,defaultPicked:e}=this.data,n=e&&o.includes(e)?e:o[0]??"";this.selectedPath.set(n?.path??null)}filtered=ee(()=>{let o=(this.keyword()||"").trim().toLowerCase(),e=this.data.candidates??[];return o?e.filter(n=>n.path.toLowerCase().includes(o)):e});cancel(){this.modalRef.close(null)}ok(){let o=this.selectedPath();o&&this.modalRef.close({pickedRoot:o})}static \u0275fac=function(e){return new(e||t)(Ft(Lt))};static \u0275cmp=y({type:t,selectors:[["app-pick-workspace-modal"]],decls:17,vars:3,consts:[[1,"wrap"],[1,"hint"],[1,"toolbar"],["nz-input","","placeholder","\u8FC7\u6EE4\u8DEF\u5F84\uFF08\u5173\u952E\u5B57\uFF09",3,"ngModelChange","ngModel"],["nzType","search","nzTheme","outline","nzSuffix",""],[1,"list"],["nzNotFoundContent","\u6CA1\u6709\u5339\u914D\u7684\u76EE\u5F55"],["nzSize","large",3,"ngModel"],[1,"actions"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","",1,"item",3,"nzValue"],[1,"path"],["nzTooltipPlacement","top",1,"value",3,"nz-tooltip"],["nzMode","default",3,"nzColor"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),p(2," \u68C0\u6D4B\u5230\u8BE5\u4ED3\u5E93\u53EF\u80FD\u5305\u542B\u591A\u4E2A\u524D\u7AEF\u5DE5\u4F5C\u533A\uFF08Angular / Vue \u7B49\uFF09\u3002\u8BF7\u9009\u62E9\u4E00\u4E2A\u76EE\u5F55\u7EE7\u7EED\u5BFC\u5165\uFF1A "),s(),a(3,"div",2)(4,"nz-input-wrapper")(5,"input",3),W("ngModelChange",function(r){return R(n.keyword,r)||(n.keyword=r),r}),s(),h(6,"nz-icon",4),s()(),a(7,"div",5),T(8,Ia,1,0,"nz-empty",6)(9,Fa,3,1,"nz-radio-group",7),s(),a(10,"div",8)(11,"button",9),v("click",function(){return n.cancel()}),h(12,"nz-icon",10),p(13," \u53D6\u6D88 "),s(),a(14,"button",11),v("click",function(){return n.ok()}),h(15,"nz-icon",12),p(16," \u9009\u4E2D\u5E76\u7EE7\u7EED "),s()()()),e&2&&(l(5),A("ngModel",n.keyword),l(3),x(n.filtered().length===0?8:9),l(6),m("disabled",!n.selectedPath()))},dependencies:[I,Q,Fe,Ce,ze,Xe,be,je,ht,zt,qt,Yt,H,ne,Z,Ne,w,E,Xt,Qt,bt,Zt,Qe,He,fi],styles:[".wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.hint[_ngcontent-%COMP%]{opacity:.85}.toolbar[_ngcontent-%COMP%]{margin-top:4px}nz-radio-group[_ngcontent-%COMP%]{width:100%}.list[_ngcontent-%COMP%]{height:240px;overflow:auto;padding:8px;border:var(--app-border-color);border-radius:8px}.item[_ngcontent-%COMP%]{display:flex;gap:8px;padding:12px;border-radius:8px;margin:0;width:100%}.item[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.item[_ngcontent-%COMP%] .ant-radio+span{display:flex;gap:12px;align-items:center;flex:1 1 auto;width:0;padding:0}.path[_ngcontent-%COMP%]{display:flex;gap:12px;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;width:0;overflow:hidden}.path[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;width:0;overflow:hidden}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}"]})};function Ba(t,o){t&1&&(a(0,"span",4),p(1,"\u8BE5\u8DEF\u5F84\u5DF2\u5B58\u5728"),s())}function Aa(t,o){if(t&1){let e=P();a(0,"input",15),W("ngModelChange",function(i){C(e);let r=c();return R(r.draft.initialCommitMessage,i)||(r.draft.initialCommitMessage=i),z(i)}),s()}if(t&2){let e=c();A("ngModel",e.draft.initialCommitMessage)}}var sn=class t{draft;draftChange=new k;pathCheck$=new Ge;pathExists=!1;fsApi=f(Ai);ngOnInit(){this.computeRootPath(),this.pathCheck$.pipe($n(200),Qn(),Xn(o=>o?this.fsApi.pathExists(o):xt(!1))).subscribe(o=>{this.emit(),this.pathExists=o})}recalcRoot(){this.computeRootPath(),this.pathCheck$.next(this.draft.rootPath)}computeRootPath(){let o=(this.draft.parentDir??"").replace(/[\\/]+$/,""),e=(this.draft.name??"").trim();this.draft.rootPath=o&&e?`${o}/${e}`.replaceAll("\\","/"):o}emit(){this.draftChange.emit(ve({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-step-basic"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:40,vars:8,consts:[["nzTitle","\u57FA\u7840\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nz-input","","name","name","placeholder","\u8F93\u5165\u9879\u76EE\u540D",3,"ngModelChange","ngModel"],[1,"hint"],[2,"margin-left","8px","color","#ff4d4f"],["name","pm",3,"ngModelChange","ngModel"],["nzValue","auto","nzLabel","\u9ED8\u8BA4"],["nzValue","npm","nzLabel","npm"],["nzValue","pnpm","nzLabel","pnpm"],["nzValue","yarn","nzLabel","yarn"],[1,"switch-row"],["name","overwrite",3,"ngModelChange","ngModel"],["name","skip",3,"ngModelChange","ngModel"],["name","initGit",3,"ngModelChange","ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(a(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label"),p(4,"\u9879\u76EE\u6587\u4EF6\u5939"),s(),a(5,"nz-form-control")(6,"input",2),W("ngModelChange",function(r){return R(n.draft.name,r)||(n.draft.name=r),r}),v("ngModelChange",function(){return n.recalcRoot()}),s(),a(7,"div",3),p(8),T(9,Ba,2,0,"span",4),s()()(),a(10,"nz-form-item")(11,"nz-form-label"),p(12,"\u5305\u7BA1\u7406\u5668"),s(),a(13,"nz-form-control")(14,"nz-select",5),W("ngModelChange",function(r){return R(n.draft.packageManager,r)||(n.draft.packageManager=r),r}),h(15,"nz-option",6)(16,"nz-option",7)(17,"nz-option",8)(18,"nz-option",9),s()()(),a(19,"nz-form-item")(20,"nz-form-label"),p(21,"\u66F4\u591A\u9009\u9879"),s(),a(22,"nz-form-control")(23,"div",10)(24,"span"),p(25,"\u82E5\u76EE\u6807\u6587\u4EF6\u5939\u5DF2\u5B58\u5728\u5219\u8986\u76D6"),s(),a(26,"nz-switch",11),W("ngModelChange",function(r){return R(n.draft.overwriteIfExists,r)||(n.draft.overwriteIfExists=r),r}),v("ngModelChange",function(){return n.emit()}),s()(),a(27,"div",10)(28,"span"),p(29,"\u65E0\u65B0\u624B\u6307\u5F15\u7684\u811A\u624B\u67B6\u9879\u76EE"),s(),a(30,"nz-switch",12),W("ngModelChange",function(r){return R(n.draft.skipOnboarding,r)||(n.draft.skipOnboarding=r),r}),s()()()(),a(31,"nz-form-item")(32,"nz-form-label"),p(33,"Git"),s(),a(34,"nz-form-control")(35,"div",10)(36,"span"),p(37,"\u521D\u59CB\u5316 git \u4ED3\u5E93\uFF08\u5EFA\u8BAE\uFF09"),s(),a(38,"nz-switch",13),W("ngModelChange",function(r){return R(n.draft.initGit,r)||(n.draft.initGit=r),r}),s()(),T(39,Aa,1,1,"input",14),s()()()()),e&2&&(l(6),A("ngModel",n.draft.name),l(2),me(" ",n.draft.rootPath," "),l(),x(n.pathExists?9:-1),l(5),A("ngModel",n.draft.packageManager),l(12),A("ngModel",n.draft.overwriteIfExists),l(4),A("ngModel",n.draft.skipOnboarding),l(8),A("ngModel",n.draft.initGit),l(),x(n.draft.initGit?39:-1))},dependencies:[I,Q,Fi,Fe,Ce,Ei,ze,Oi,ao,_e,Ee,io,no,ro,oo,be,je,H,Ut,Xi,Ui,_t,Gt,le,Ie,Qe,w,Xe],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.switch-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px}.switch-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var ln=class t{draft;draftChange=new k;emit(){this.draftChange.emit(ve({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-step-config"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:12,vars:2,consts:[["nzTitle","\u521B\u5EFA\u540E\u9ED8\u8BA4\u884C\u4E3A"],[1,"row"],[1,"label"],[3,"ngModelChange","ngModel"],[1,"row","col"],["nz-input","","placeholder","\u4F8B\u5982\uFF1Adev / start",3,"ngModelChange","ngModel"],[1,"hint"]],template:function(e,n){e&1&&(a(0,"nz-card",0)(1,"div",1)(2,"div",2),p(3,"\u7F6E\u9876\u6536\u85CF"),s(),a(4,"nz-switch",3),W("ngModelChange",function(r){return R(n.draft.pinFavorite,r)||(n.draft.pinFavorite=r),r}),v("ngModelChange",function(){return n.emit()}),s()(),h(5,"div",4),a(6,"div",4)(7,"div",2),p(8,"\u9ED8\u8BA4\u4EFB\u52A1\uFF08\u53EF\u9009\uFF09"),s(),a(9,"input",5),W("ngModelChange",function(r){return R(n.draft.defaultTaskName,r)||(n.draft.defaultTaskName=r),r}),v("ngModelChange",function(){return n.emit()}),s(),a(10,"div",6),p(11,"\u5EFA\u8BAE\u586B\u8BC6\u522B\u5230\u7684 dev \u6216 start"),s()()()),e&2&&(l(4),A("ngModel",n.draft.pinFavorite),l(5),A("ngModel",n.draft.defaultTaskName))},dependencies:[I,Q,Fe,Ce,ze,le,Ie,zt,_t,Gt,be,je],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.row.col[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}.label[_ngcontent-%COMP%]{font-weight:500}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.7}"]})};var cn=class t{draft;draftChange=new k;emit(){this.draftChange.emit(ve({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-step-features"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:1,vars:0,consts:[["nzTitle","\u529F\u80FD\u5F00\u5173\uFF08Project Scope\uFF09"]],template:function(e,n){e&1&&h(0,"nz-card",0)},dependencies:[I,Q,le,Ie,_t],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.label[_ngcontent-%COMP%]{font-weight:500}"]})};var pn=class t{nzModalData=f(Vt);isModalVisible=!1;isSaving=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-git-import-modal-component"]],decls:8,vars:1,consts:[[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165Git\u4ED3\u5E93\u5730\u5740","autofocus","",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","github","nzTheme","outline"],[1,"hint"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"label",1),p(2,"URL"),s(),a(3,"nz-input-wrapper")(4,"input",2),W("ngModelChange",function(r){return R(n.nzModalData.cloneUrl,r)||(n.nzModalData.cloneUrl=r),r}),s(),h(5,"nz-icon",3),s(),a(6,"div",4),p(7," Git \u4ED3\u5E93\u5730\u5740, \u5982 'username/repo'. \u53EF\u4EE5\u4F7F\u7528\u524D\u7F00\u5982 'gitlab:' \u6216 'bitbucket:'. "),s()()),e&2&&(l(4),A("ngModel",n.nzModalData.cloneUrl))},dependencies:[I,Q,Fe,Ce,ze,w,E,Xe,be,je,ht,Rt,Ut,H,Z],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}"]})};function Ra(t,o){if(t&1){let e=P();a(0,"button",10),v("click",function(){C(e);let i=c();return z(i.requestDetect.emit())}),h(1,"nz-icon",11),s()}}var dn=class t{draft;draftChange=new k;requestDetect=new k;modal=f(gt);emit(){this.draftChange.emit(ve({},this.draft))}presetChange(o){if(this.draft.preset=o,o==="git"){this.openImportGitModal();return}else this.draft.repoUrl=void 0,this.emit()}openImportGitModal(){let o=this.modal.create({nzTitle:"\u4ECE Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE",nzMaskClosable:!1,nzContent:pn,nzCentered:!0,nzWidth:"580px",nzClosable:!1,nzData:{cloneUrl:"",isSaving:!1},nzFooter:[{label:"\u53D6\u6D88",type:"default",onClick:()=>{o.close(),this.draft.repoUrl=void 0,this.draft.preset="angular",this.emit()}},{label:"\u5BFC\u5165",type:"primary",onClick:e=>{let n=e.nzModalData.cloneUrl,i=e.nzModalData.isSaving;!n||!n.trim()||i||(e.nzModalData.isSaving=!0,this.draft.repoUrl=n.trim(),e.nzModalData.isSaving=!1,this.emit(),o.close())},disabled:e=>{let n=e?.nzModalData.cloneUrl;return!n||!n.trim()},loading:e=>e?.nzModalData.isSaving===!0}]})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-step-preset"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange",requestDetect:"requestDetect"},decls:19,vars:2,consts:[["reloadExtraTpl",""],["nzTitle","\u9009\u62E9\u4E00\u5957\u9884\u8BBE",3,"nzExtra"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","","nzValue","angular"],["for","angular"],[1,"hint"],["nz-radio","","nzValue","vue3"],["for","vue3"],["nz-radio","","nzValue","git"],["for","git"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","reload","nzTheme","outline"]],template:function(e,n){if(e&1){let i=P();a(0,"nz-card",1),S(1,Ra,2,0,"ng-template",null,0,$),a(3,"nz-radio-group",2),W("ngModelChange",function(d){return C(i),R(n.draft.preset,d)||(n.draft.preset=d),z(d)}),v("ngModelChange",function(d){return C(i),z(n.presetChange(d))}),a(4,"div",3)(5,"label",4),p(6,"Angular"),s(),a(7,"div",5),p(8," \u9002\u7528\u4E8E\u4F7F\u7528 Angular \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Angular CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),s()(),a(9,"div",6)(10,"label",7),p(11,"Vue 3"),s(),a(12,"div",5),p(13," \u9002\u7528\u4E8E\u4F7F\u7528 Vue 3 \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Vite \u548C Vue CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),s()(),a(14,"div",8)(15,"label",9),p(16,"Git\u5BFC\u5165"),s(),a(17,"div",5),p(18," \u4ECE\u73B0\u6709\u7684 Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE\uFF0C\u81EA\u52A8\u8BC6\u522B\u9879\u76EE\u7ED3\u6784\u548C\u914D\u7F6E\u3002 "),s()()()()}if(e&2){let i=B(2);m("nzExtra",i),l(3),A("ngModel",n.draft.preset)}},dependencies:[I,Q,Ce,ze,le,Ie,Zi,H,ne,Z,bt,w,E,zt,qt,Yt],styles:[".kv[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.k[_ngcontent-%COMP%]{opacity:.7;display:inline-block;width:120px}.opt[_ngcontent-%COMP%]{margin-top:10px}nz-radio-group[_ngcontent-%COMP%]{width:100%}[nz-radio][_ngcontent-%COMP%]{display:block;padding:12px;border-radius:8px;width:100%;margin:0}[nz-radio][_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.hint[_ngcontent-%COMP%]{margin-left:24px;font-size:12px;opacity:.75}"]})};function So(){return{preset:"angular",name:"",parentDir:"",rootPath:"",packageManager:"auto",overwriteIfExists:!1,skipOnboarding:!0,initGit:!0,initialCommitMessage:"",importScriptsAsTasks:!0,importMakefileTasks:!1,importDockerComposeTasks:!1,generateCommonTasks:!0,pinFavorite:!1,defaultTaskName:"",cliFramework:"angular",cliTool:"@angular/cli",cliArgs:[]}}function Wa(t,o){if(t&1){let e=P();a(0,"app-step-basic",15),v("draftChange",function(i){C(e);let r=c();return z(r.setDraft(i))}),s()}if(t&2){let e=c();m("draft",e.draft())}}function Va(t,o){if(t&1){let e=P();a(0,"app-step-preset",16),v("draftChange",function(i){C(e);let r=c();return z(r.setDraft(i))})("requestDetect",function(){C(e);let i=c();return z(i.detectNow())}),s()}if(t&2){let e=c();m("draft",e.draft())}}function La(t,o){if(t&1){let e=P();a(0,"app-step-features",15),v("draftChange",function(i){C(e);let r=c();return z(r.setDraft(i))}),s()}if(t&2){let e=c();m("draft",e.draft())}}function Ga(t,o){if(t&1){let e=P();a(0,"app-step-config",15),v("draftChange",function(i){C(e);let r=c();return z(r.setDraft(i))}),s()}if(t&2){let e=c();m("draft",e.draft())}}function $a(t,o){if(t&1){let e=P();a(0,"button",17),v("click",function(){C(e);let i=c();return z(i.cancel())}),h(1,"nz-icon",18),p(2," \u53D6\u6D88 "),s()}}function Ha(t,o){if(t&1){let e=P();a(0,"button",17),v("click",function(){C(e);let i=c();return z(i.prev())}),h(1,"nz-icon",19),p(2," \u4E0A\u4E00\u6B65 "),s()}}function Qa(t,o){if(t&1){let e=P();a(0,"button",20),v("click",function(){C(e);let i=c();return z(i.create())}),h(1,"nz-icon",21),p(2," \u521B\u5EFA\u9879\u76EE "),s()}if(t&2){let e=c();m("disabled",e.creating())}}function Xa(t,o){if(t&1){let e=P();a(0,"button",20),v("click",function(){C(e);let i=c();return z(i.next())}),p(1," \u4E0B\u4E00\u6B65 "),h(2,"nz-icon",22),s()}if(t&2){let e=c();m("disabled",!e.canNext()||!e.canGoNext())}}var mn=class t{step=pe(0);draft=pe(So());creating=pe(!1);output=pe("");isDrawerOpen=pe(!1);fs=f(Wt);parentDir=this.fs.currentPath();modalRef=f(Lt);api=f(Ht);modal=f(gt);notify=f(Ct);taskStream=f(Hi);projectState=f(Ue);router=f(ft);sub=new Ke;ngOnInit(){let o=this.draft(),e=this.parentDir;this.draft.set(Tn(ve({},o),{rootPath:"",parentDir:e,name:""}))}detectNow(){let o=this.draft();o.rootPath?.trim()&&this.api.detect(o.rootPath).subscribe(e=>{let n=e.scripts??[],i={framework:e.framework??"unknown",hasPackageJson:!!e.hasPackageJson,scriptsCount:n.length,hasGit:!!e.hasGit,lockFile:e.lockFile??"unknown",recommendedScript:n.includes("dev")?"dev":n.includes("start")?"start":"",hasMakefile:!!e.hasMakefile,hasDockerCompose:!!e.hasDockerCompose},r=n.length>0,d=!!e.hasMakefile,M=!!e.hasDockerCompose;this.draft.set(Tn(ve({},o),{detected:i,importScriptsAsTasks:r,importMakefileTasks:d&&o.importMakefileTasks,importDockerComposeTasks:M&&o.importDockerComposeTasks,defaultTaskName:i.recommendedScript||o.defaultTaskName}))})}async create(){let o=this.draft();if(!o.rootPath?.trim()||!o.name?.trim()){this.notify.error("\u8BF7\u5148\u5B8C\u5584\u9879\u76EE\u4FE1\u606F");return}if(this.creating())return;let e="\u786E\u8BA4\u521B\u5EFA\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${o.rootPath}\uFF0C\u786E\u5B9A\u8981\u521B\u5EFA\u8BE5\u9879\u76EE\u5417\uFF1F`,i="\u786E\u8BA4\u521B\u5EFA",r=!1;o.overwriteIfExists&&(e="\u786E\u8BA4\u8986\u76D6\u5DF2\u5B58\u5728\u7684\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${o.rootPath}\uFF0C\u521B\u5EFA\u65F6\u4F1A\u8986\u76D6\u539F\u6709\u6570\u636E\uFF0C\u4E14\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u7EE7\u7EED\u5417\uFF1F`,i="\u786E\u8BA4\u8986\u76D6",r=!0);let d=this.modal.confirm({nzTitle:e,nzContent:n,nzOkText:i,nzCancelText:"\u53D6\u6D88",nzOkDanger:r,nzCentered:!0,nzOnOk:async()=>{this.doCreate(o),d.close()}})}async doCreate(o){this.creating.set(!0),this.taskStream.ensureConnected();let e=new Ge;try{let n=o.preset==="git"?this.api.bootstrapByGit(o):this.api.bootstrapByCli(o),{taskId:i}=await yt(n);this.taskStream.subscribeTask(i,3e3),this.sub.add(this.taskStream.output$(i).subscribe(Y=>{let ye=Y.payload.text??"";this.output.set(ye)}));let r=await this.waitForTaskEvent(i,["bootstrapDone","bootstrapFailed","bootstrapNeedPickRoot"],600*1e3,e);if(r.type==="bootstrapDone"){let Y=r.payload;this.notify.success("\u9879\u76EE\u521B\u5EFA\u5B8C\u6210"),this.projectState.getProjects(Y.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"]);return}if(r.type==="bootstrapFailed"){let Y=r.payload;this.notify.error(`\u9879\u76EE\u521B\u5EFA\u5931\u8D25\uFF1A${Y?.reason??"unknown error"}`);return}let M=r.payload?.candidates??[];if(!M.length){this.notify.error("\u9879\u76EE\u5BFC\u5165\u5931\u8D25\uFF1A\u672A\u627E\u5230\u53EF\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55");return}let O=await this.pickWorkspaceRootByModal(M);if(!O){this.modal.info({nzTitle:"\u63D0\u793A",nzContent:"\u60A8\u672A\u9009\u62E9\u4EFB\u4F55\u76EE\u5F55\uFF0C\u9879\u76EE\u5BFC\u5165\u5DF2\u53D6\u6D88\u3002\u53EF\u901A\u8FC7\u201C\u5BFC\u5165\u201D\u529F\u80FD\u91CD\u65B0\u624B\u52A8\u5BFC\u5165\u3002",nzCancelText:null,nzOkText:"\u6211\u77E5\u9053\u4E86",nzOnOk:()=>{this.modalRef.close()}});return}let X=await yt(this.api.bootstrapPickRoot({taskId:i,pickedRoot:O}).pipe(xn(60*1e3),yn(e)));if(!X.ok){this.notify.error(X.reason??"\u9879\u76EE\u5BFC\u5165\u5931\u8D25");return}this.notify.success("\u9879\u76EE\u5BFC\u5165\u5B8C\u6210"),this.projectState.getProjects(X.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"])}catch(n){let i=n?.name==="TimeoutError"?"\u521B\u5EFA\u8D85\u65F6\uFF1A\u811A\u624B\u67B6/\u514B\u9686\u53EF\u80FD\u5361\u4F4F\u4E86\uFF0C\u8BF7\u67E5\u770B\u4EFB\u52A1\u65E5\u5FD7":n?.error?.message||n?.message||"\u521B\u5EFA\u5931\u8D25";console.error("\u521B\u5EFA\u9879\u76EE\u5931\u8D25",n),this.notify.error(i)}finally{e.next(),e.complete(),this.creating.set(!1)}}async waitForTaskEvent(o,e,n,i){let r=new Set(e);return await yt(this.taskStream.events$().pipe(et(d=>d?.payload?.taskId===o),et(d=>r.has(d.type)),Et(),xn(n),yn(i)))}setDraft(o){this.draft.set(o)}canNext(){let o=this.step(),e=this.draft();return o===0?!(!e.name?.trim()||!e.parentDir?.trim()||!e.rootPath?.trim()):o===1?!!e.rootPath?.trim():!0}async next(){let o=this.step();if(o===0&&await this.api.checkPathExists(this.draft().rootPath)&&!this.draft().overwriteIfExists){this.notify.error("\u8BE5\u8DEF\u5F84\u4E0D\u53EF\u7528\u6216\u5DF2\u5B58\u5728\u91CD\u590D\u9879\u76EE");return}let e=Math.min(3,o+1);this.step.set(e)}prev(){this.step.set(Math.max(0,this.step()-1))}canGoNext(){let o=this.step();return o===0?!0:o===1?this.isManual():o===2}isManual(){return this.draft().preset==="manual"}canCreateHere(){let o=this.step();return this.isManual()&&o===3||!this.isManual()&&o===1}cancel(){this.modal.confirm({nzTitle:"\u53D6\u6D88\u521B\u5EFA\u9879\u76EE",nzContent:"\u786E\u5B9A\u8981\u53D6\u6D88\u521B\u5EFA\u5417",nzOkDanger:!0,nzOkText:"\u53D6\u6D88\u521B\u5EFA",nzCancelText:"\u4E0D",nzCentered:!0,nzOnOk:()=>{this.modalRef.close()}})}async pickWorkspaceRootByModal(o){let e=this.modal.create({nzTitle:"\u9009\u62E9\u8981\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55",nzContent:on,nzData:{candidates:o,defaultPicked:o[0]},nzFooter:null,nzCentered:!0,nzMaskClosable:!1,nzClosable:!0,nzWidth:720});return(await yt(e.afterClose))?.pickedRoot??null}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-project-create-modal"]],decls:20,vars:9,consts:[["nz-col","","nzSpan","24",1,"modal-container"],[3,"nzCurrent"],["nzTitle","\u8BE6\u60C5"],["nzTitle","\u9884\u8BBE"],["nzTitle","\u529F\u80FD"],["nzTitle","\u914D\u7F6E"],[1,"content"],["nzTip","\u6B63\u5728\u521B\u5EFA\u9879\u76EE...",3,"nzSpinning"],[1,"main"],[3,"draft"],[1,"actions"],["nz-button",""],["nz-button","","nzType","primary",3,"disabled"],[1,"aside"],[3,"isCreatingChange","draft","isCreating","chunk"],[3,"draftChange","draft"],[3,"draftChange","requestDetect","draft"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nzType","arrow-left","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzType","arrow-right","nzTheme","outline"]],template:function(e,n){if(e&1&&(a(0,"div",0)(1,"nz-steps",1),h(2,"nz-step",2)(3,"nz-step",3)(4,"nz-step",4)(5,"nz-step",5),s(),a(6,"div",6)(7,"nz-spin",7)(8,"div",8),T(9,Wa,1,1,"app-step-basic",9)(10,Va,1,1,"app-step-preset",9)(11,La,1,1,"app-step-features",9)(12,Ga,1,1,"app-step-config",9),a(13,"div",10),T(14,$a,3,0,"button",11),T(15,Ha,3,0,"button",11),T(16,Qa,3,1,"button",12)(17,Xa,3,1,"button",12),s()()(),a(18,"div",13)(19,"app-create-summary-aside",14),W("isCreatingChange",function(r){return R(n.creating,r)||(n.creating=r),r}),s()()()()),e&2){let i;l(),m("nzCurrent",n.step()),l(6),m("nzSpinning",n.creating()),l(2),x((i=n.step())===0?9:i===1?10:i===2?11:i===3?12:-1),l(5),x(n.step()===0?14:-1),l(),x(n.step()>0?15:-1),l(),x(n.canCreateHere()?16:17),l(3),m("draft",n.draft()),A("isCreating",n.creating),m("chunk",n.output())}},dependencies:[I,Q,Xe,le,Oe,_e,xo,To,en,H,ne,Z,Ne,be,w,E,eo,Ji,sn,dn,cn,ln,tn],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 360px;gap:16px;margin-top:16px}.main[_ngcontent-%COMP%]{min-height:420px}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.aside[_ngcontent-%COMP%]{position:sticky;top:16px;height:fit-content}"]})};var un=class t{constructor(o){this.modal=o}goCreate(){let o=this.modal.create({nzTitle:"\u521B\u5EFA\u65B0\u9879\u76EE",nzFooter:null,nzMaskClosable:!1,nzClosable:!1,nzContent:mn,nzWidth:"1020px",nzCentered:!0}),e=o.getContentComponent();o.afterClose.subscribe(n=>{n?.ok})}static \u0275fac=function(e){return new(e||t)(Ft(gt))};static \u0275cmp=y({type:t,selectors:[["app-project-create"]],decls:7,vars:0,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar"],["nz-button","","nzType","primary","nzSize","large",3,"click"],["nzType","plus","nzTheme","outline"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),h(2,"app-fs-explorer"),s(),a(3,"div",2)(4,"button",3),v("click",function(){return n.goCreate()}),h(5,"nz-icon",4),p(6," \u5728\u6B64\u521B\u5EFA\u65B0\u9879\u76EE "),s()()())},dependencies:[I,H,ne,Z,Ne,Oe,_e,Ee,$t,w,E],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var vt=class t{fs=f(Wt);projectApi=f(Ht);projectState=f(Ue);active=pe(!1);checking=pe(!1);result=pe(null);canImport=ee(()=>this.result()?.ok===!0);warnings=ee(()=>this.result()?.warnings??[]);reason=ee(()=>this.result()?.reason??"");currentPath=ee(()=>this.fs.currentPath()||this.fs.path());_seq=0;notify=f(Ct);constructor(){pi(()=>{if(!this.active())return;let o=this.currentPath();o&&this.check(o)})}enter(){this.active.set(!0)}leave(){this.active.set(!1),this.result.set(null)}check(o){let e=++this._seq;this.checking.set(!0),this.result.set(null),this.projectApi.checkImport(o).subscribe({next:n=>{e===this._seq&&this.result.set(n)},error:n=>{e===this._seq&&this.result.set({ok:!1,root:o,reason:n?.message||"check failed"})},complete:()=>{e===this._seq&&this.checking.set(!1)}})}import(o){let e=this.currentPath();if(!e||!this.canImport())return;let n=e.replace(/[\\\/]+$/,"").split(/[\\\/]/).pop()||"New Project";this.projectApi.importByPath({root:e,name:o||n,syncTasks:!0}).subscribe({next:i=>{this.projectState.getProjects(),this.projectState.setCurrentProjectById(i.id),this.check(e),this.notify.success("\u9879\u76EE\u5BFC\u5165\u6210\u529F")}})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac,providedIn:"root"})};var fn=class t{importState=f(vt);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-project-import"]],decls:7,vars:1,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar","center"],["nz-button","","nzSize","large","nzType","primary",3,"click","disabled"],["nzType","import","nzTheme","outline"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),h(2,"app-fs-explorer"),s(),a(3,"div",2)(4,"button",3),v("click",function(){return n.importState.import()}),h(5,"nz-icon",4),p(6," \u5BFC\u5165\u8FD9\u4E2A\u6587\u4EF6\u5939 "),s()()()),e&2&&(l(4),m("disabled",n.importState.checking()||!n.importState.canImport()))},dependencies:[I,Q,Oe,_e,Ee,H,ne,Z,Ne,w,E,$t],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var Ua=(t,o)=>o.spec.id;function Ya(t,o){if(t&1){let e=P();a(0,"div",8)(1,"div",9),v("click",function(){let i=C(e).$implicit,r=c();return z(r.openTask(i))}),a(2,"div",10),h(3,"nz-icon",11),s(),a(4,"div",12)(5,"div",13)(6,"span"),p(7),s()(),a(8,"div",14)(9,"span"),p(10),s()()()(),a(11,"button",15),v("click",function(i){let r=C(e).$implicit,d=c();return i.stopPropagation(),z(d.toggleTask(r))}),h(12,"nz-icon",16),s()()}if(t&2){let e=o.$implicit,n=c();m("nzTooltipTitle",n.getTaskDescription(e)),l(7),G(e.spec.name),l(3),G(n.getTaskDescription(e)),l(2),m("nzType",n.getTaskActionIcon(e))}}var hn=class t{projectId;projectState=f(Ue);router=f(ft);state=f(Qi);tasks=ee(()=>this.projectId?this.state.rowsViewOf(this.projectId)():[]);async ngOnChanges(){this.projectId&&await this.state.ensureProjectLoaded(this.projectId)}toggleTask(o){o.runtime?.status==="running"?this.state.stopSelected():this.state.startSelected(),this.openTask(o)}async openTask(o){this.state.select(o.spec.id),await this.router.navigate(["/tasks"]),this.projectState.setCurrentProjectById(o.spec.projectId)}getTaskName(o){return o.spec.name||o.spec.id}getTaskDescription(o){let e=o.runtime?.status;return o.runtime?this.computedStatusText(e):o.spec.description||""}getTaskActionIcon(o){let e=o.runtime?.status;return e==="running"||e==="stopping"?"pause-circle":"play-circle"}computedStatusText(o){switch(o){case"running":return"\u8FD0\u884C\u4E2D";case"stopping":return"\u505C\u6B62\u4E2D";case"success":return"\u6210\u529F";case"failed":return"\u9519\u8BEF";case"stopped":return"\u5DF2\u505C\u6B62";default:return"\u7A7A\u95F2"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-project-item-popover"]],inputs:{projectId:"projectId"},features:[Te],decls:11,vars:0,consts:[[1,"dropdown-content"],[1,"pane-toolbar"],[1,"icon"],["nzType","inbox","nzTheme","outline"],[1,"title"],["nz-button","","type","button","nzType","text"],["nzType","close","nzTheme","outline"],[1,"tasks"],["nz-tooltip","","nzTooltipPlacement","right",1,"task-item",3,"nzTooltipTitle"],[1,"item-content",3,"click"],[1,"item-logo"],["nzType","code","nzTheme","outline"],[1,"list-item-info"],[1,"name"],[1,"description"],["nz-button","","nzType","text","type","button",3,"click"],["nzTheme","outline",3,"nzType"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),h(3,"nz-icon",3),s(),a(4,"div",4),p(5,"\u4EFB\u52A1"),s(),a(6,"button",5),h(7,"nz-icon",6),s()(),a(8,"div",7),oe(9,Ya,13,4,"div",8,Ua),s()()),e&2&&(l(9),re(n.tasks()))},dependencies:[I,w,E,H,ne,Z,Qe,He,wt],styles:[".dropdown-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:6px 6px 6px 16px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:18px;margin-right:6px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%]{width:320px;max-height:360px;overflow:hidden auto}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]:hover{background:#f5f5f5}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex:100% 1 1;width:0;gap:16px;cursor:pointer}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-logo[_ngcontent-%COMP%]{font-size:42px;margin-right:16px;flex:auto 0 0;display:inline-flex;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:24px}"]})};function qa(t,o){if(t&1){let e=P();a(0,"button",20),v("click",function(){C(e);let i=c();return z(i.openPageUrl(i.project==null?null:i.project.repoPageUrl))}),h(1,"nz-icon",21),s()}}function Za(t,o){if(t&1&&h(0,"app-project-item-popover",22),t&2){let e=c();m("projectId",e.project==null?null:e.project.id)}}var gn=class t{taskRuntime=f($i);notify=f(Ct);project=null;open=!1;selectProject=new k;toggleFavorite=new k;editProject=new k;openInEditor=new k;deleteProject=new k;tasksRunningCount=ee(()=>{let o=this.project?.id?.trim();return o?this.taskRuntime.runningCountSignal(o)():0});hasTasksRunning=ee(()=>this.tasksRunningCount()>0);taskBadgeTip=ee(()=>{let o=this.tasksRunningCount();return o>0?`${o} \u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C`:"\u4EFB\u52A1"});del(){if(this.hasTasksRunning()){this.notify.warn("\u5F53\u524D\u9879\u76EE\u6709\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\uFF0C\u8BF7\u5148\u505C\u6B62\u8FD9\u4E9B\u4EFB\u52A1\u540E\u518D\u5220\u9664\u9879\u76EE\u3002");return}this.deleteProject.emit()}openPageUrl(o){o&&window.open(o,"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-project-item"]],inputs:{project:"project",open:"open"},outputs:{selectProject:"selectProject",toggleFavorite:"toggleFavorite",editProject:"editProject",openInEditor:"openInEditor",deleteProject:"deleteProject"},decls:28,vars:10,consts:[["contentTemplate",""],["nz-row","",1,"project-item"],["nz-col","","nzSpan","24",1,"content"],[1,"favorite"],["nz-button","","nzType","primary",3,"click"],["nzType","star",3,"nzTheme"],[1,"info",3,"click"],[1,"list-item-info"],[1,"name"],["nz-popover","","nzPopoverTrigger","click","nzPopoverPlacement","right",1,"task-popover-trigger",3,"click","nzPopoverContent","nzPopoverOverlayClassName"],[3,"nzStatus","nz-tooltip"],[1,"root-path"],[1,"actions"],["nzSize","large"],["nzType","code","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u7F16\u8F91",3,"click"],["nzType","edit","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740"],["nz-button","","nzType","primary","nz-tooltip","\u5220\u9664",3,"click"],["nzType","delete","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740",3,"click"],["nzType","global","nzTheme","outline"],[3,"projectId"]],template:function(e,n){if(e&1){let i=P();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),v("click",function(d){return C(i),d.stopPropagation(),z(n.toggleFavorite.emit())}),h(4,"nz-icon",5),s()(),a(5,"div",6),v("click",function(){return C(i),z(n.selectProject.emit())}),a(6,"div",7)(7,"div",8)(8,"span"),p(9),s(),a(10,"span",9),v("click",function(d){return C(i),z(d.stopPropagation())}),h(11,"nz-badge",10),s()(),a(12,"div",11)(13,"span"),p(14),s()()()(),a(15,"div",12)(16,"nz-space",13)(17,"button",4),v("click",function(){return C(i),z(n.openInEditor.emit())}),h(18,"nz-icon",14),a(19,"span"),p(20,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),s()(),a(21,"button",15),v("click",function(){return C(i),z(n.editProject.emit())}),h(22,"nz-icon",16),s(),T(23,qa,2,0,"button",17),a(24,"button",18),v("click",function(){return C(i),z(n.del())}),h(25,"nz-icon",19),s()()()()(),S(26,Za,1,1,"ng-template",null,0,$)}if(e&2){let i=B(27);K("open",n.open),l(4),m("nzTheme",n.project!=null&&n.project.isFavorite?"fill":"outline"),l(5),G(n.project==null?null:n.project.name),l(),m("nzPopoverContent",i)("nzPopoverOverlayClassName","project-item-popover"),l(),m("nzStatus",n.hasTasksRunning()?"processing":"default")("nz-tooltip",n.taskBadgeTip()),l(3),G(n.project==null?null:n.project.root),l(9),x(n.project!=null&&n.project.repoPageUrl?23:-1)}},dependencies:[I,Q,Oe,_e,Ee,H,ne,Z,Ne,w,E,Bi,ji,qi,Yi,xi,Ti,hn,He],styles:['.project-item[_ngcontent-%COMP%]{border-radius:4px;padding:0;margin:8px 0;transition:all .3s;cursor:pointer}.project-item.open[_ngcontent-%COMP%], .project-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #0000001a;background:var(--app-primary-3)}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:16px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto;grid-template-areas:"icon info actions";grid-gap:16px;align-items:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .favorite[_ngcontent-%COMP%]{grid-area:icon;display:flex;align-items:center;justify-content:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{grid-area:info;-webkit-user-select:none;user-select:none}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:auto 0 0}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;cursor:pointer}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%] nz-badge[_ngcontent-%COMP%]{font-size:18px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .root-path[_ngcontent-%COMP%]{flex:auto 0 0;opacity:.7;font-size:14px}']})};var Po=t=>({$implicit:t}),Ka=(t,o)=>o.id;function Ja(t,o){t&1&&Sn(0)}function es(t,o){if(t&1&&(a(0,"div",6)(1,"h2"),p(2,"\u6536\u85CF\u7684\u9879\u76EE"),s()(),S(3,Ja,1,0,"ng-container",7)),t&2){let e=c(),n=B(11);l(3),m("ngTemplateOutlet",n)("ngTemplateOutletContext",kt(2,Po,e.projectState.favoriteProjects()))}}function ts(t,o){t&1&&(a(0,"div",6)(1,"h2"),p(2,"\u66F4\u591A\u9879\u76EE"),s()())}function ns(t,o){t&1&&Sn(0)}function is(t,o){t&1&&(a(0,"div",8),h(1,"nz-empty",9),s())}function os(t,o){if(t&1){let e=P();a(0,"app-project-item",12),v("selectProject",function(){let i=C(e).$implicit,r=c(2);return z(r.projectState.selectProject(i))})("toggleFavorite",function(){let i=C(e).$implicit,r=c(2);return z(r.projectState.toggleFavorite(i.id))})("openInEditor",function(){let i=C(e).$implicit,r=c(2);return z(r.projectState.openInEditor(i.id))})("editProject",function(){let i=C(e).$implicit,r=c(2);return z(r.projectState.openEditModal(i))})("deleteProject",function(){let i=C(e).$implicit,r=c(2);return z(r.projectState.deleteProject(i.id))}),s()}if(t&2){let e=o.$implicit,n=c(2);m("project",e)("project",e)("open",n.projectState.isOpen(e))}}function rs(t,o){if(t&1&&(a(0,"div",10),oe(1,os,1,3,"app-project-item",11,Ka),s()),t&2){let e=o.$implicit;l(),re(e)}}var _n=class t{projectState=f(Ue);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-project-list"]],decls:12,vars:8,consts:[["itemsTpl",""],["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"col"],["nz-col","",1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","\u641C\u7D22\u9879\u76EE",3,"ngModelChange","ngModel"],[1,"header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"no-projects"],["nzNotFoundImage","simple","nzNotFoundContent","\u6682\u65E0\u9879\u76EE\uFF0C\u5FEB\u53BB\u521B\u5EFA\u6216\u5BFC\u5165\u7B2C\u4E00\u4E2A\u9879\u76EE\u5427\uFF01"],[1,"content"],[3,"project","open"],[3,"selectProject","toggleFavorite","openInEditor","editProject","deleteProject","project","open"]],template:function(e,n){if(e&1){let i=P();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"nz-input-wrapper"),h(4,"nz-icon",4),a(5,"input",5),v("ngModelChange",function(d){return C(i),z(n.projectState.keyword.set(d))}),s()()(),T(6,es,4,4),T(7,ts,3,0,"div",6),S(8,ns,1,0,"ng-container",7),T(9,is,2,0,"div",8),s(),S(10,rs,3,0,"ng-template",null,0,$),s()}if(e&2){let i=B(11);l(5),m("ngModel",n.projectState.keyword()),l(),x(n.projectState.favoriteProjects().length>0?6:-1),l(),x(n.projectState.favoriteProjects().length>0?7:-1),l(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",kt(6,Po,n.projectState.moreProjects())),l(),x(n.projectState.projects().length===0?9:-1)}},dependencies:[I,De,Q,Fe,Ce,ze,le,Oe,_e,Ee,gn,Xt,Qt,be,je,ht,Rt,w,E],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden}.page[_ngcontent-%COMP%]{height:100%;overflow-y:auto}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:12px}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:25%;min-width:200px}.page[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.header[_ngcontent-%COMP%]{padding:12px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:600}"]})};function as(t,o){t&1&&(h(0,"nz-icon",8),p(1," \u9879\u76EE "))}function ss(t,o){t&1&&h(0,"app-project-list")}function ls(t,o){t&1&&(h(0,"nz-icon",9),p(1," \u521B\u5EFA "))}function cs(t,o){t&1&&h(0,"app-project-create")}function ps(t,o){t&1&&(h(0,"nz-icon",10),p(1," \u5BFC\u5165 "))}function ds(t,o){t&1&&h(0,"app-project-import")}var Cn=class t{importState=f(vt);selectedIndex=0;tabIndexChange(o){o===2?this.importState.active.set(!0):this.importState.active.set(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-projects"]],decls:17,vars:4,consts:[["projectTitleTemplate",""],["addTitleTemplate",""],["importTitleTemplate",""],[1,"page"],[1,"header"],["nzCentered","",1,"tabs-container",3,"nzSelectedIndexChange","nzSelectedIndex"],[3,"nzTitle"],["nz-tab",""],["nzType","unordered-list","nzTheme","outline"],["nzType","plus-square","nzTheme","outline"],["nzType","import","nzTheme","outline"]],template:function(e,n){if(e&1){let i=P();a(0,"div",3)(1,"div",4)(2,"h2"),p(3,"\u9879\u76EE\u7BA1\u7406"),s()(),a(4,"nz-tabs",5),W("nzSelectedIndexChange",function(d){return C(i),R(n.selectedIndex,d)||(n.selectedIndex=d),z(d)}),v("nzSelectedIndexChange",function(d){return C(i),z(n.tabIndexChange(d))}),a(5,"nz-tab",6),S(6,as,2,0,"ng-template",null,0,$)(8,ss,1,0,"ng-template",7),s(),a(9,"nz-tab",6),S(10,ls,2,0,"ng-template",null,1,$)(12,cs,1,0,"ng-template",7),s(),a(13,"nz-tab",6),S(14,ps,2,0,"ng-template",null,2,$)(16,ds,1,0,"ng-template",7),s()()()}if(e&2){let i=B(7),r=B(11),d=B(15);l(4),A("nzSelectedIndex",n.selectedIndex),l(),m("nzTitle",i),l(4),m("nzTitle",r),l(4),m("nzTitle",d)}},dependencies:[I,Co,Bn,jn,Fn,w,E,_n,un,fn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:16px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}nz-tabs.tabs-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content{height:100%}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content .ant-tabs-tabpane{height:100%}.toolbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1}.current[_ngcontent-%COMP%]{margin:10px 0;opacity:.75}"]})};var ms=[{path:"",component:Cn}],zn=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[wt.forChild(ms),wt]})};var Mo=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=we({type:t});static \u0275inj=ke({imports:[I,zn]})};export{Mo as ProjectsModule};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{a as Mn,b as bn,c as xn,d as wn,e as Sn,f as V}from"./chunk-UIDFNBD4.js";import{a as nn,b as on,c as rn}from"./chunk-GNFBCMLE.js";import{a as Pn,b as Nn,c as Tn}from"./chunk-IGJYBE5M.js";import"./chunk-HZ73CM45.js";import{a as vn,b as be,c as yn,d as zn}from"./chunk-GKOCPXFS.js";import{b as Me}from"./chunk-SNCDDYQR.js";import{A as hn,B as ze,C as Cn,D as _n,I as ee,a as Yt,b as qt,l as Z,m as mn,n as Q,o as dn,p as un,q as R,r as J,s as ve,t as ye,u as K,y as fn,z as gn}from"./chunk-A6CKMRBS.js";import{A as Zt,Cb as Ce,Eb as _e,L as Qt,M as S,N as b,O as Jt,P as Kt,T as en,U as tn,V as k,W as ue,Y as B,Z as A,a as Gt,ib as an,kb as fe,ob as ge,sb as he,vb as ln,x as Xt,xb as sn,yb as cn,z as Ue,zb as pn}from"./chunk-J43J3F2V.js";import"./chunk-HFZLJHYR.js";import{A as $t,B as F,d as pe,g as Lt,h as Ft,i as L,j as kt,l as Bt,m as At,r as Rt,s as Vt,u as Wt,v as me,w as Ht,x as Ut,y as G,z as de}from"./chunk-53YRDYLS.js";import{$b as E,$c as He,Aa as re,Ba as lt,Bc as xt,Ca as st,Cc as wt,Dc as N,Eb as _,Fa as ct,Fb as vt,Fc as I,Ha as M,Ia as pt,Ic as m,Jc as T,Kb as P,Kc as j,M as q,Mc as St,Nc as Pt,Oc as Nt,Pb as yt,Ra as mt,Tb as zt,Ub as Mt,Uc as Tt,Vb as v,Vc as ce,Wc as Ve,Xa as dt,Xb as y,Zb as bt,Zc as ne,_b as O,_c as We,ac as d,ad as X,bc as r,ca as et,cc as l,cd as Dt,dc as p,fd as D,gd as oe,hc as U,ic as $,ja as tt,jc as Re,kb as ut,kc as z,la as nt,ma as w,mb as s,md as Ot,na as ot,pa as it,pd as Et,qa as ie,qb as ft,qc as C,ra as f,rd as It,sa as rt,sb as gt,ta as at,tc as c,uc as le,vc as se,vd as jt,wb as ht,xa as g,xb as Ct,ya as h,yb as ae,z as Ke,zb as _t}from"./chunk-SJG2JCPL.js";function qn(t){let n=t;return 5}var Dn=["zh",[["\u4E0A\u5348","\u4E0B\u5348"]],void 0,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],void 0,[["\u516C\u5143\u524D","\u516C\u5143"]],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",void 0,"y\u5E74M\u6708d\u65E5EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CNY:["\xA5"],ILR:["ILS"],JPY:["JP\xA5","\xA5"],KRW:["\uFFE6","\u20A9"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",qn];var Xn="@",Zn=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=f(re);loadingSchedulerFn=f(Qn,{optional:!0});_engine;constructor(e,o,i,a,u){this.doc=e,this.delegate=o,this.zone=i,this.animationType=a,this.moduleImpl=u}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-HEKO7RQP.js").then(i=>i),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(i=>{throw new tt(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:a})=>{this._engine=i(this.animationType,this.doc);let u=new a(this.delegate,this._engine,this.zone);return this.delegate=u,u})}createRenderer(e,o){let i=this.delegate.createRenderer(e,o);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let a=new $e(i);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(u=>{let H=u.createRenderer(e,o);a.use(H),this.scheduler??=this.injector.get(pt,null,{optional:!0}),this.scheduler?.notify(10)}).catch(u=>{a.use(i)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(o){_t()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),$e=class{delegate;replay=[];\u0275type=1;constructor(n){this.delegate=n}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,o,i){this.delegate.insertBefore(n,e,o,i)}removeChild(n,e,o,i){this.delegate.removeChild(n,e,o,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,o,i){this.delegate.setAttribute(n,e,o,i)}removeAttribute(n,e,o){this.delegate.removeAttribute(n,e,o)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,o,i){this.delegate.setStyle(n,e,o,i)}removeStyle(n,e,o){this.delegate.removeStyle(n,e,o)}setProperty(n,e,o){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(n,e,o)),this.delegate.setProperty(n,e,o)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,o,i){return this.shouldReplay(e)&&this.replay.push(a=>a.listen(n,e,o,i)),this.delegate.listen(n,e,o,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(Xn)}},Qn=new it("");function On(t="animations"){return ft("NgAsyncAnimations"),rt([{provide:ht,useFactory:(n,e,o)=>new Zn(n,e,o,t),deps:[lt,Bt,gt]},{provide:dt,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var xe=class t{currentTheme="default";constructor(){}reverseTheme(n){return n==="dark"?"default":"dark"}removeUnusedTheme(n){document.documentElement.classList.remove(n);let e=document.getElementById(n);e&&document.head.removeChild(e)}loadCss(n,e){return new Promise((o,i)=>{let a=document.createElement("link");a.rel="stylesheet",a.href=n,a.id=e,a.onload=o,a.onerror=i,document.head.append(a)})}loadTheme(n=!0){let e=this.currentTheme;return n&&document.documentElement.classList.add(e),new Promise((o,i)=>{this.loadCss(`${e}.css`,e).then(a=>{n||document.documentElement.classList.add(e),this.removeUnusedTheme(this.reverseTheme(e)),o(a)},a=>i(a))})}toggleTheme(){return this.currentTheme=this.reverseTheme(this.currentTheme),this.loadTheme(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var En={provide:yt,useFactory:t=>()=>t.loadTheme(),deps:[xe],multi:!0};var In=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("./chunk-K6ZRTM2Q.js").then(t=>t.DashboardModule)},{path:"tasks",loadChildren:()=>import("./chunk-ZGEEPU7F.js").then(t=>t.TasksModule)},{path:"projects",loadChildren:()=>import("./chunk-U76AMP2X.js").then(t=>t.ProjectsModule)},{path:"settings",loadChildren:()=>import("./chunk-V27A2EK4.js").then(t=>t.SettingModule)},{path:"configuration",loadChildren:()=>import("./chunk-QC33YQSO.js").then(t=>t.ConfigurationModule)},{path:"dependencies",loadChildren:()=>import("./chunk-R7E5ZK2M.js").then(t=>t.DependenciesModule)},{path:"about",loadChildren:()=>import("./chunk-CKWTUTVS.js").then(t=>t.AboutRoutingModule)},{path:"**",redirectTo:"dashboard"}];kt(Dn);var jn={providers:[En,ct(),Dt(),$t(In),qt(Yt),On(),at(ze),Rt(Vt([Tn]))]};var Ge=["*"];function Jn(t,n){}function Kn(t,n){if(t&1&&(r(0,"span",1),P(1,Jn,0,0,"ng-template",2),p(2,"nz-icon",3),l()),t&2){let e=c(),o=N(4);d("nzDropdownMenu",e.nzOverlay),s(),d("ngTemplateOutlet",o)}}function eo(t,n){}function to(t,n){if(t&1&&P(0,eo,0,0,"ng-template",2),t&2){c();let e=N(4);d("ngTemplateOutlet",e)}}function no(t,n){if(t&1&&(U(0),m(1),$()),t&2){let e=c(2);s(),j(" ",e.nzBreadCrumbComponent.nzSeparator," ")}}function oo(t,n){if(t&1&&(r(0,"nz-breadcrumb-separator"),P(1,no,2,1,"ng-container",4),l()),t&2){let e=c();s(),d("nzStringTemplateOutlet",e.nzBreadCrumbComponent.nzSeparator)}}function io(t,n){t&1&&(r(0,"span",5),se(1),l())}var ro=(t,n)=>n.url;function ao(t,n){if(t&1){let e=z();r(0,"nz-breadcrumb-item")(1,"a",0),C("click",function(i){let a=g(e).$implicit,u=c(2);return h(u.navigate(a.url,i))}),m(2),l()()}if(t&2){let e=n.$implicit;s(),zt("href",e.url,ut),s(),T(e.label)}}function lo(t,n){if(t&1&&O(0,ao,3,2,"nz-breadcrumb-item",null,ro),t&2){let e=c();E(e.breadcrumbs)}}var we=class{},so=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-separator"]],hostAttrs:[1,"ant-breadcrumb-separator"],exportAs:["nzBreadcrumbSeparator"],ngContentSelectors:Ge,decls:1,vars:0,template:function(o,i){o&1&&(le(),se(0))},encapsulation:2})}return t})(),Fn=(()=>{class t{nzBreadCrumbComponent=f(we);nzOverlay;static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:Ge,decls:5,vars:2,consts:[["noMenuTpl",""],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nzType","down"],[4,"nzStringTemplateOutlet"],[1,"ant-breadcrumb-link"]],template:function(o,i){o&1&&(le(),v(0,Kn,3,2,"span",1)(1,to,1,1,null,2),v(2,oo,2,1,"nz-breadcrumb-separator"),P(3,io,2,0,"ng-template",null,0,X)),o&2&&(y(i.nzOverlay?0:1),s(2),y(i.nzBreadCrumbComponent.nzSeparator?2:-1))},dependencies:[pe,so,K,J,b,S,Kt,Jt],encapsulation:2,changeDetection:0})}return t})(),co=(()=>{class t{injector=f(re);cdr=f(It);elementRef=f(mt);renderer=f(Ct);directionality=f(Xt);destroyRef=f(st);nzAutoGenerate=!1;nzSeparator="/";nzRouteLabel="breadcrumb";nzRouteLabelFn=e=>e;nzRouteFn=e=>e;breadcrumbs=[];dir="ltr";ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe(Ue(this.destroyRef)).subscribe(e=>{this.dir=e,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}navigate(e,o){o.preventDefault(),this.injector.get(G).navigateByUrl(e)}registerRouterChange(){try{let e=this.injector.get(G),o=this.injector.get(Ht);e.events.pipe(q(i=>i instanceof me),Ue(this.destroyRef),et(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(o.root),this.cdr.markForCheck()})}catch{throw new Error(`${Gt} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(e,o="",i=[]){let a=e.children;if(a.length===0)return i;for(let u of a)if(u.outlet===Wt){let H=u.snapshot.url.map(te=>te.path).filter(te=>te).join("/"),Qe=H?`${o}/${H}`:o,Je=this.nzRouteLabelFn(u.snapshot.data[this.nzRouteLabel]),Yn=this.nzRouteFn(Qe);if(H&&Je){let te={label:Je,params:u.snapshot.params,url:Yn};i.push(te)}return this.getBreadcrumbs(u,Qe,i)}return i}prepareComponentForRtl(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:[2,"nzAutoGenerate","nzAutoGenerate",jt],nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn",nzRouteFn:"nzRouteFn"},exportAs:["nzBreadcrumb"],features:[Tt([{provide:we,useExisting:nt(()=>t)}])],ngContentSelectors:Ge,decls:2,vars:1,consts:[[3,"click"]],template:function(o,i){o&1&&(le(),se(0),v(1,lo,2,0)),o&2&&(s(),y(i.nzAutoGenerate&&i.breadcrumbs.length?1:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0})}return t})(),kn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=vt({type:t});static \u0275inj=ot({imports:[co,Fn]})}return t})();function po(t){return t.op==="syslog.tail"}function mo(t){return t.op==="syslog.append"}function Ye(t,n){return n?!(n.scope!==void 0&&t?.scope!==n.scope||n.level!==void 0&&t?.level!==n.level||n.source!==void 0&&t?.source!==n.source||n.refId!==void 0&&t?.refId!==n.refId):!0}var Se=class t{constructor(n){this.ws=n;this.msgSub=this.ws.messages().pipe(q(e=>po(e)||mo(e))).subscribe(e=>this.onWsMessage(e)),this.wsStateSub=this.ws.stateChanges().subscribe(e=>{let o=this.lastWsState==="open",i=e==="open";!o&&i&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded()),o&&!i&&(this.subSentForCurrentConnection=!1),this.lastWsState=e})}msgSub;wsStateSub;enabled=M(!1);filter=M({});logs=M([]);unread=M(0);drawerOpen=M(!1);capacity=2e3;tail=300;subSentForCurrentConnection=!1;lastWsState="idle";setDrawerOpen(n){this.drawerOpen.set(n),n&&this.unread.set(0)}setFilter(n){this.filter.set(n??{});let e=this.logs();if(!e.length)return;let o=e.filter(i=>Ye(i,this.filter()));this.logs.set(o.slice(-this.capacity))}enable(n=300){let e=Math.max(0,Math.min(5e3,n|0));if(this.tail=e,this.enabled()){this.ws.isOpen()&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded());return}this.enabled.set(!0),this.ws.connect(),this.sendSubIfNeeded()}disable(){this.enabled.set(!1),this.subSentForCurrentConnection=!1}markRead(){this.unread.set(0)}clear(){this.logs.set([]),this.unread.set(0)}sendSubIfNeeded(){this.enabled()&&this.ws.isOpen()&&(this.subSentForCurrentConnection||(this.ws.send({op:"sub",topic:"syslog",tail:this.tail}),this.subSentForCurrentConnection=!0))}onWsMessage(n){let e=this.filter();if(n.op==="syslog.tail"){let u=(n.entries??[]).filter(H=>Ye(H,e));this.logs.set(u.slice(-this.capacity));return}let o=n.entry;if(!Ye(o,e))return;let i=this.logs(),a=i.length>=this.capacity?i.slice(1):i.slice();a.push(o),this.logs.set(a),this.drawerOpen()||this.unread.set(this.unread()+1)}static \u0275fac=function(e){return new(e||t)(ie(Me))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var fo=["logBox"],go=()=>({padding:"0px",overflow:"hidden"});function ho(t,n){if(t&1&&(r(0,"nz-tag",12),m(1),ne(2,"uppercase"),l(),r(3,"div",13),m(4),l(),r(5,"div",14),m(6),ne(7,"date"),l()),t&2){let e,o,i,a,u=c();d("nzColor",u.getColor((e=u.lastLine())==null?null:e.level)),s(),j(" ",We(2,4,(o=u.lastLine())==null?null:o.level)," "),s(3),T((i=u.lastLine())==null?null:i.text),s(2),T(He(7,6,(a=u.lastLine())==null?null:a.ts,"yyyy-MM-dd HH:mm:ss"))}}function Co(t,n){t&1&&(r(0,"nz-tag",15),m(1,"INFO"),l(),r(2,"div",13),m(3,"\u6682\u65E0\u65E5\u5FD7"),l(),r(4,"div",14),m(5,"--"),l())}function _o(t,n){if(t&1&&m(0),t&2){let e=c().$implicit;j(" ",e.data==null?null:e.data.icon," ")}}function vo(t,n){if(t&1&&(r(0,"div",18)(1,"nz-tag",12),m(2),ne(3,"uppercase"),l(),r(4,"span",14),m(5),ne(6,"date"),l(),r(7,"span",19),v(8,_o,1,1),m(9),l()()),t&2){let e=n.$implicit,o=c(2);I("err",e.level==="error")("warn",e.level==="warn")("info",e.level==="info")("debug",e.level==="debug")("success",e.level==="success"),s(),d("nzColor",o.getColor(e.level)),s(),j(" ",We(3,15,e.level)," "),s(3),T(He(6,17,e.ts,"yyyy-MM-dd HH:mm:ss")),s(3),y(e.data!=null&&e.data.icon?8:-1),s(),j(" ",e.text," ")}}function yo(t,n){if(t&1&&(U(0),r(1,"div",16,1),O(3,vo,10,20,"div",17,Mt().trackByLine,!0),l(),$()),t&2){let e=c();s(3),E(e.lines())}}function zo(t,n){if(t&1){let e=z();r(0,"nz-space",20)(1,"button",21),C("click",function(){g(e);let i=c();return h(i.clearLog())}),p(2,"nz-icon",22),l(),r(3,"button",23),C("click",function(){g(e);let i=c();return h(i.toBottom())}),p(4,"nz-icon",24),l()()}}var Pe=class t{sysLogStream=f(Se);projectState=f(ee);logBox=Ot("logBox");autoFollow=M(!0);isOpen=M(!1);curProjectPath=D(()=>this.projectState.currentProject()?.root||"");lines=D(()=>this.sysLogStream.logs());lastLine=D(()=>{let n=this.sysLogStream.logs();return n.length?n[n.length-1]:null});unread=D(()=>this.sysLogStream.unread());constructor(){oe(()=>{this.sysLogStream.setDrawerOpen(this.isOpen()),this.isOpen()&&queueMicrotask(()=>this.toBottom())}),oe(()=>{this.lines(),this.isOpen()&&this.autoFollow()&&queueMicrotask(()=>this.toBottom())})}ngOnInit(){this.sysLogStream.enable(300)}openLog(){this.isOpen.set(!0)}closeLog(){this.isOpen.set(!1)}clearLog(){this.sysLogStream.clear()}toBottom(){let n=this.logBox()?.nativeElement;n&&(n.scrollTop=n.scrollHeight)}trackByLine=(n,e)=>`${e.ts}-${e.refId??""}-${e.text}`;getColor(n){if(!n)return"#000000";switch(n){case"success":return"#22c55e";case"info":return"#18bdfd";case"debug":return"#94a3b8";case"error":return"#ef4444";case"warn":return"#f59e0b";default:return"#000000"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["app-system-log"]],viewQuery:function(e,o){e&1&&xt(o.logBox,fo,5),e&2&&wt()},decls:16,vars:9,consts:[["extra",""],["logBox",""],[1,"status-bar"],[1,"project-path"],[1,"home"],["nzType","home","nzTheme","outline",1,"icon"],[1,"pos-path"],["nzType","folder","nzTheme","outline",1,"icon"],["nz-tooltip","\u6253\u5F00\u65E5\u5FD7",1,"last-log",3,"click"],["nzType","profile","nzTheme","outline",1,"icon"],["nzTitle","\u65E5\u5FD7","nzPlacement","bottom",3,"nzOnClose","nzVisible","nzMaskClosable","nzMask","nzExtra","nzHeight","nzBodyStyle"],[4,"nzDrawerContent"],[1,"level-tag",3,"nzColor"],[1,"info"],[1,"time"],["nzColor","default"],[1,"log"],[1,"line",3,"err","warn","info","debug","success"],[1,"line"],[1,"msg"],["nzAlign","center"],["nz-button","","nzType","text","nz-tooltip","\u6E05\u7A7A\u65E5\u5FD7",3,"click"],["nzType","clear","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","\u6EDA\u52A8\u5230\u5E95\u90E8",3,"click"],["nzType","vertical-align-bottom","nzTheme","outline"]],template:function(e,o){if(e&1){let i=z();r(0,"div",2)(1,"div",3)(2,"div",4),p(3,"nz-icon",5),l(),r(4,"div",6),p(5,"nz-icon",7),r(6,"span"),m(7),l()()(),r(8,"div",8),C("click",function(){return g(i),h(o.openLog())}),p(9,"nz-icon",9),v(10,ho,8,9)(11,Co,6,0),l()(),r(12,"nz-drawer",10),C("nzOnClose",function(){return g(i),h(o.closeLog())}),P(13,yo,5,0,"ng-container",11),l(),P(14,zo,5,0,"ng-template",null,0,X)}if(e&2){let i=N(15);s(7),j(" ",o.curProjectPath()," "),s(3),y(o.lastLine()?10:11),s(2),d("nzVisible",o.isOpen())("nzMaskClosable",!1)("nzMask",!1)("nzExtra",i)("nzHeight",300)("nzBodyStyle",ce(8,go))}},dependencies:[L,Nn,Pn,rn,on,nn,A,B,k,tn,en,b,S,_e,Ce,Lt,Ft],styles:["[_nghost-%COMP%]{display:block;position:relative;z-index:3;flex:0 0 auto}.status-bar[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;width:100%;-webkit-user-select:none;user-select:none}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;padding:0 8px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]{cursor:pointer;flex:1;display:flex;align-items:center;padding:0 12px;gap:8px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.75;font-size:14px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]:hover{background:#f5f7fa}.icon[_ngcontent-%COMP%]{margin-right:8px;font-size:16px;display:inline-flex}.log[_ngcontent-%COMP%]{height:100%;overflow:auto;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;line-height:18px}.line[_ngcontent-%COMP%]{display:flex;gap:12px;padding:2px 0;align-items:center}.line[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.65;font-variant-numeric:tabular-nums}.line[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.line.err[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:600}.line.warn[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:500}.level-tag[_ngcontent-%COMP%]{font-size:12px;padding:0 4px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;min-width:58px;border-radius:4px}"],changeDetection:0})};var Ne=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-footer"]],decls:2,vars:0,template:function(e,o){e&1&&(r(0,"nz-footer"),p(1,"app-system-log"),l())},dependencies:[V,bn,Pe],styles:["nz-footer[_ngcontent-%COMP%]{padding:0;align-items:center;display:flex}app-system-log[_ngcontent-%COMP%]{width:100%}"]})};var Te=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-header"]],decls:4,vars:0,consts:[[1,"app-header"],["nzType","disconnect","nzTheme","outline"]],template:function(e,o){e&1&&(r(0,"nz-header",0),p(1,"nz-icon",1),r(2,"span"),m(3,"\u8FDE\u63A5\u5DF2\u65AD\u5F00"),l()())},dependencies:[L,V,xn,b,S],styles:["nz-header.app-header[_ngcontent-%COMP%]{padding:0;width:100%;position:relative;height:48px;line-height:48px;background:var(--header-error-background);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;gap:8px}"],changeDetection:0})};var De=class t{isCollapsed=M(!1);static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Oe=class t{currentMenu=M(null);router=f(G);menus=[{title:"\u4EEA\u8868\u76D8",path:"/dashboard",icon:"dashboard",level:1},{title:"\u4F9D\u8D56",path:"/dependencies",icon:"codepen",level:1},{title:"\u4EFB\u52A1",path:"/tasks",icon:"schedule",level:1,taskCountBadge:!0},{title:"\u914D\u7F6E",path:"/configuration",icon:"setting",level:1}];constructor(){this.syncByUrl(this.router.url),this.router.events.pipe(q(n=>n instanceof me)).subscribe(n=>this.syncByUrl(n.urlAfterRedirects))}isActive(n){return this.router.isActive(n,{paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"})}getMenus(){return this.menus}clickMenu(n){n.path&&this.router.navigateByUrl(n.path),this.currentMenu.set(n)}syncByUrl(n){let e=this.normalizeUrl(n),o=this.findBestMatch(this.menus,e);this.currentMenu.set(o)}normalizeUrl(n){return n.split("?")[0].split("#")[0]}findBestMatch(n,e){let o=this.flatten(n).filter(a=>!!a.path),i=null;for(let a of o){let u=a.path;(e===u||e.startsWith(u+"/"))&&(!i||u.length>i.path.length)&&(i=a)}return i}flatten(n){let e=[];for(let o of n)e.push(o),o.children?.length&&e.push(...this.flatten(o.children));return e}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ee=class t{api=f(vn);runtimeStore=f(be);async initActiveSnapshot(){let n=await Ke(this.api.active());for(let e of n??[])this.runtimeStore.setRuntime(e)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var An=t=>({$implicit:t});function Mo(t,n){t&1&&Re(0)}function bo(t,n){if(t&1&&p(0,"nz-icon",6),t&2){let e=c(2).$implicit;d("nzType",e.icon)}}function xo(t,n){t&1&&p(0,"nz-badge",7)}function wo(t,n){if(t&1){let e=z();r(0,"li",5),C("click",function(){g(e);let i=c().$implicit,a=c(2);return h(a.menuService.clickMenu(i))}),v(1,bo,1,1,"nz-icon",6),r(2,"span"),m(3),l(),v(4,xo,1,0,"nz-badge",7),l()}if(t&2){let e=c().$implicit,o=c(2);d("nzPaddingLeft",e.level*24)("nzDisabled",e.disabled)("nzSelected",o.menuService.isActive(e.path))("nz-tooltip",e.taskCountBadge===!0&&o.runningTaskCount()>0?o.runningTaskCount()+"\u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C":null),s(),y(e.icon?1:-1),s(2),T(e.title),s(),y(e.taskCountBadge===!0&&o.runningTaskCount()>0?4:-1)}}function So(t,n){t&1&&Re(0)}function Po(t,n){if(t&1&&(r(0,"li",4)(1,"ul"),P(2,So,1,0,"ng-container",2),l()()),t&2){let e=c().$implicit;c(2);let o=N(3);d("nzPaddingLeft",e.level*24)("nzOpen",e.open)("nzTitle",e.title)("nzIcon",e.icon)("nzDisabled",e.disabled),s(2),d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ve(7,An,e.children))}}function No(t,n){if(t&1&&v(0,wo,5,7,"li",3)(1,Po,3,9,"li",4),t&2){let e=n.$implicit;y(e.children?1:0)}}function To(t,n){if(t&1&&O(0,No,2,1,null,null,bt),t&2){let e=n.$implicit;E(e)}}var Ie=class t{isCollapsed=!1;menus=[];menuService=f(Oe);taskBootstrap=f(Ee);runtimeStore=f(be);runningTaskCount=D(()=>this.runtimeStore.totalRunningCountSignal()());ngOnInit(){this.menus=this.menuService.getMenus(),this.taskBootstrap.initActiveSnapshot()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-menu"]],inputs:{isCollapsed:"isCollapsed"},decls:4,vars:5,consts:[["menuTpl",""],["nz-menu","","nzMode","inline",3,"nzInlineCollapsed"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-menu-item","","nzTooltipPlacement","right",3,"nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nz-submenu","",3,"nzPaddingLeft","nzOpen","nzTitle","nzIcon","nzDisabled"],["nz-menu-item","","nzTooltipPlacement","right",3,"click","nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nzTheme","outline",2,"font-size","18px",3,"nzType"],["nzStatus","processing",2,"margin-left","12px"]],template:function(e,o){if(e&1&&(r(0,"ul",1),P(1,Mo,1,0,"ng-container",2)(2,To,2,0,"ng-template",null,0,X),l()),e&2){let i=N(3);d("nzInlineCollapsed",o.isCollapsed),s(),d("ngTemplateOutlet",i)("ngTemplateOutletContext",Ve(3,An,o.menus))}},dependencies:[pe,R,Q,Z,mn,b,S,F,_e,Ce,zn,yn],encapsulation:2})};function Eo(t,n){if(t&1){let e=z();r(0,"div",3)(1,"label",4),m(2,"\u540D\u79F0"),l(),r(3,"nz-input-wrapper")(4,"input",5),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().name=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l(),p(5,"nz-icon",6),l(),r(6,"div",7),m(7,"\u8F93\u5165\u65B0\u540D\u79F0\uFF0C\u5C06\u540C\u6B65\u66F4\u65B0\u9879\u76EE\u663E\u793A\u540D\u79F0\uFF08\u4E0D\u4F1A\u91CD\u547D\u540D\u78C1\u76D8\u76EE\u5F55\uFF09\u3002"),l(),r(8,"label",4),m(9,"\u4ED3\u5E93\u7F51\u9875\u5730\u5740"),l(),r(10,"nz-input-wrapper")(11,"input",8),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().repoPageUrl=i)}),l(),p(12,"nz-icon",9),l(),r(13,"label",4),m(14,"\u63CF\u8FF0"),l(),r(15,"nz-input-wrapper")(16,"textarea",10),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().description=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l()()()}if(t&2){let e=c(2);s(4),d("ngModel",e.editingProject().name),s(7),d("ngModel",e.editingProject().repoPageUrl),s(5),d("ngModel",e.editingProject().description)}}function Io(t,n){if(t&1&&(U(0),v(1,Eo,17,3,"div",3),$()),t&2){let e=c();s(),y(e.editingProject()?1:-1)}}function jo(t,n){if(t&1){let e=z();U(0),r(1,"button",11),C("click",function(){g(e);let i=c();return h(i.projectState.closeEditModal())}),m(2,"\u53D6\u6D88"),l(),r(3,"button",12),C("click",function(){g(e);let i=c();return h(i.projectState.confirmEditProject())}),m(4," \u786E\u5B9A "),l(),$()}if(t&2){let e=c();s(3),d("disabled",!e.projectState.editingProject().name.trim()||e.projectState.isEditSaving())("nzLoading",e.projectState.isEditSaving())}}var je=class t{projectState=f(ee);editingProject=this.projectState.editingProject;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["app-project-edit-modal"]],decls:3,vars:3,consts:[["nzTitle","\u7F16\u8F91\u9879\u76EE",3,"nzOnCancel","nzClosable","nzMaskClosable","nzVisible"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u65B0\u540D\u79F0","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],[1,"hint"],["nz-input","","placeholder","\u4ED3\u5E93\u7F51\u9875\u5730\u5740",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","global","nzTheme","outline"],["nz-input","","rows","3","placeholder","\u8BF7\u8F93\u5165\u65B0\u63CF\u8FF0",2,"resize","none",3,"ngModelChange","keydown.enter","ngModel"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled","nzLoading"]],template:function(e,o){e&1&&(r(0,"nz-modal",0),C("nzOnCancel",function(){return o.projectState.closeEditModal()}),P(1,Io,2,1,"ng-container",1)(2,jo,5,2,"ng-container",2),l()),e&2&&d("nzClosable",!1)("nzMaskClosable",!1)("nzVisible",o.projectState.isEditModalVisible())},dependencies:[L,he,an,fe,ge,pn,sn,cn,ln,A,B,k,ue,ze,hn,gn,fn,b,S],styles:[".modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}"]})};var Lo=()=>({width:"100%"}),Rn=(t,n)=>n.id;function Fo(t,n){t&1&&p(0,"nz-icon",2)}function ko(t,n){if(t&1){let e=z();r(0,"li",7),p(1,"nz-icon",11),r(2,"span"),m(3,"\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF"),l(),r(4,"nz-switch",12),C("ngModelChange",function(){let i;g(e);let a=c();return h(a.projectState.toggleFavorite((i=a.projectState.currentProject())==null?null:i.id))}),l()(),r(5,"li",13),C("click",function(){let i;g(e);let a=c();return h(a.projectState.openInEditor((i=a.projectState.currentProject())==null?null:i.id))}),p(6,"nz-icon",14),r(7,"span"),m(8,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),l()(),r(9,"li",13),C("click",function(){g(e);let i=c();return h(i.projectState.openEditModal(i.projectState.currentProject()))}),p(10,"nz-icon",15),r(11,"span"),m(12,"\u7F16\u8F91\u9879\u76EE"),l()()}if(t&2){let e,o,i,a=c();s(),d("nzTheme",(e=a.projectState.currentProject())!=null&&e.isFavorite?"fill":"outline"),s(3),d("nzDisabled",!((o=a.projectState.currentProject())!=null&&o.id))("ngModel",(i=a.projectState.currentProject())==null?null:i.isFavorite)}}function Bo(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",16),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(3),T(e.name)}}function Ao(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",11),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(),d("nzTheme",e.isFavorite?"fill":"outline"),s(2),T(e.name)}}var Le=class t{constructor(n){this.projectState=n}isCollapsed=Et(!1);curProjectName=D(()=>{let n=this.projectState.currentProject()?.name||"\u8BF7\u9009\u62E9\u9879\u76EE";return this.isCollapsed()?n?.charAt(0).toUpperCase():n});ngOnInit(){this.projectState.getProjects()}static \u0275fac=function(e){return new(e||t)(ae(ee))};static \u0275cmp=_({type:t,selectors:[["ngm-project-nav"]],inputs:{isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},decls:23,vars:9,consts:[["menu","nzDropdownMenu"],["nz-button","","nzType","primary","nzSize","large","nz-dropdown","","nzTrigger","click",1,"project-quick-dropdown",3,"nzDropdownMenu","nzPlacement","nzOverlayStyle"],["nzType","down"],[2,"width","100%"],["nz-menu",""],["nz-menu-divider",""],["nz-menu-group","","nzTitle","\u6536\u85CF\u7684\u9879\u76EE"],["nz-menu-item","",1,"item"],["nz-menu-group","","nzTitle","\u6700\u8FD1\u4F7F\u7528"],["routerLink","/projects"],["nzType","project"],["nzType","star",3,"nzTheme"],[2,"margin-left","6px",3,"ngModelChange","nzDisabled","ngModel"],["nz-menu-item","",1,"item",3,"click"],["nzType","code"],["nzType","edit"],["nzType","star","nzTheme","fill"]],template:function(e,o){if(e&1&&(r(0,"button",1)(1,"span"),m(2),l(),v(3,Fo,1,0,"nz-icon",2),l(),r(4,"nz-dropdown-menu",3,0)(6,"ul",4),v(7,ko,13,3),p(8,"li",5)(9,"li",6),O(10,Bo,4,1,"li",7,Rn),p(12,"li",5)(13,"li",8),O(14,Ao,4,2,"li",7,Rn),p(16,"li",5),r(17,"li",7)(18,"a",9),p(19,"nz-icon",10),r(20,"span"),m(21,"\u9879\u76EE\u7BA1\u7406"),l()()()()(),p(22,"app-project-edit-modal")),e&2){let i=N(5);I("collapsed",o.isCollapsed()),d("nzDropdownMenu",i)("nzPlacement","bottomCenter")("nzOverlayStyle",ce(8,Lo)),s(2),T(o.curProjectName()),s(),y(o.isCollapsed()?-1:3),s(4),y(o.projectState.currentProject()?7:-1),s(3),E(o.projectState.favoriteProjects()),s(4),E(o.projectState.recentProjects())}},dependencies:[L,he,fe,ge,K,Q,Z,un,dn,J,ye,ve,R,b,S,_n,Cn,A,B,k,ue,F,de,je],styles:["[_nghost-%COMP%]{display:flex;padding:16px}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%]{flex:1;width:100%;display:flex;align-items:center;gap:8px;justify-content:center;border-radius:20px;font-weight:500}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px;overflow:hidden}.item[_ngcontent-%COMP%] .ant-menu-title-content span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};var Fe=class t{router=f(G);state=f(De);isCollapsed=this.state.isCollapsed;constructor(){}isActive(n){return this.router.url.startsWith(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-sidebar"]],hostVars:4,hostBindings:function(e,o){e&2&&I("collapsed",o.isCollapsed())("ant-layout-sider",!0)},decls:20,vars:5,consts:[["menu","nzDropdownMenu"],["nzCollapsible","","nzWidth","256px","nzBreakpoint","md",1,"menu-sidebar",3,"nzCollapsedChange","nzCollapsed","nzTrigger"],[1,"header"],[3,"isCollapsed"],[1,"content"],["nz-button","","nzType","link","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click",1,"more-btn",3,"nzDropdownMenu"],["nzType","more"],["nz-menu",""],["nz-menu-item","",1,"item"],["routerLink","/projects"],["nzType","project","nzTheme","outline"],["routerLink","/about"],["nzType","info-circle","nzTheme","outline"]],template:function(e,o){if(e&1){let i=z();r(0,"nz-sider",1),Nt("nzCollapsedChange",function(u){return g(i),Pt(o.isCollapsed,u)||(o.isCollapsed=u),h(u)}),r(1,"div",2),p(2,"ngm-project-nav",3),l(),r(3,"div",4),p(4,"ngm-menu",3),r(5,"button",5),p(6,"nz-icon",6),l()()(),r(7,"nz-dropdown-menu",null,0)(9,"ul",7)(10,"li",8)(11,"a",9),p(12,"nz-icon",10),r(13,"span"),m(14,"\u9879\u76EE\u7BA1\u7406"),l()()(),r(15,"li",8)(16,"a",11),p(17,"nz-icon",12),r(18,"span"),m(19,"\u5173\u4E8E"),l()()()()()}if(e&2){let i=N(8);St("nzCollapsed",o.isCollapsed),d("nzTrigger",null),s(2),d("isCollapsed",o.isCollapsed()),s(2),d("isCollapsed",o.isCollapsed()),s(),d("nzDropdownMenu",i)}},dependencies:[V,wn,b,S,R,Q,Z,Ie,Le,A,B,k,K,J,ye,ve,F,de],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}[_nghost-%COMP%]{display:block;box-sizing:border-box;position:relative;z-index:10;box-shadow:2px 0 6px #00152959;width:256px;transition:all .2s;flex:0 0 auto}.collapsed[_nghost-%COMP%]{width:80px}.menu-sidebar[_ngcontent-%COMP%]{height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-layout-sider-children{display:flex;flex-direction:column;height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-menu-inline{border-right:none}.menu-sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;height:0;display:flex;flex-direction:column}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ngm-menu[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:12px;flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-2)}.sidebar-logo[_ngcontent-%COMP%]{position:relative;height:64px;padding-left:24px;overflow:hidden;line-height:64px;transition:all .3s}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;height:32px;width:32px;vertical-align:middle}.sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 20px;font-weight:600;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};function Ro(t,n){if(t&1){let e=z();r(0,"div",4),C("transitionend",function(i){g(e);let a=c();return h(a.onWrapTransitionEnd(i))}),r(1,"div",5),C("animationend",function(i){g(e);let a=c();return h(a.onInnerAnimationEnd(i))}),p(2,"ngm-header"),l()()}if(t&2){let e=c();I("leaving",e.leaving()),s(),I("leaving",e.leaving())}}var ke=class t{ws=f(Me);constructor(){this.ws.connect(),oe(()=>this.syncVisible())}wsState=Zt(this.ws.stateChanges(),{initialValue:"idle"});shouldShow=D(()=>this.wsState()!=="open");visible=M(!1);leaving=M(!1);SHOW_DELAY_MS=200;showTimer;removed=!1;syncVisible(){if(this.shouldShow()){if(this.removed=!1,this.visible()){this.leaving.set(!1);return}this.startShowDelay();return}this.clearShowDelay(),this.visible()&&!this.leaving()&&this.leaving.set(!0)}startShowDelay(){this.showTimer||(this.showTimer=setTimeout(()=>{this.showTimer=void 0,this.shouldShow()&&(this.visible.set(!0),this.leaving.set(!1),this.removed=!1)},this.SHOW_DELAY_MS))}clearShowDelay(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=void 0)}onInnerAnimationEnd(n){}onWrapTransitionEnd(n){n.propertyName==="height"&&(this.removed||!this.shouldShow()&&this.leaving()&&(this.removed=!0,this.visible.set(!1),this.leaving.set(!1)))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-layout"]],decls:9,vars:1,consts:[[1,"app-layout"],[1,"ws-banner-wrap",3,"leaving"],[1,"app-content"],[1,"inner-content"],[1,"ws-banner-wrap",3,"transitionend"],[1,"ws-banner-inner",3,"animationend"]],template:function(e,o){e&1&&(r(0,"nz-layout",0),v(1,Ro,3,4,"div",1),r(2,"nz-layout",2),p(3,"ngm-sidebar"),r(4,"nz-layout")(5,"nz-content")(6,"div",3),p(7,"router-outlet"),l()()()(),p(8,"ngm-footer"),l()),e&2&&(s(),y(o.visible()?1:-1))},dependencies:[F,Ut,V,Sn,Mn,kn,b,R,Fe,Te,Ne],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#fff}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#141414}[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%]{height:100vh;width:100%}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%] ngm-header[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .app-content[_ngcontent-%COMP%]{flex-direction:row}[_nghost-%COMP%] nz-content[_ngcontent-%COMP%] .inner-content[_ngcontent-%COMP%]{border-radius:8px;height:100%}[_nghost-%COMP%] nz-footer[_ngcontent-%COMP%]{text-align:center}.ws-banner-wrap[_ngcontent-%COMP%]{height:48px;overflow:hidden;transition:height .35s ease}.ws-banner-wrap.leaving[_ngcontent-%COMP%]{height:0}.ws-banner-inner[_ngcontent-%COMP%]{height:48px;display:flex;align-items:stretch}.ws-banner-inner.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeOutUpSoft .35s ease forwards}@keyframes _ngcontent-%COMP%_fadeOutUpSoft{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-30%)}}"]})};var Wn=`
|
|
2
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path d="M435.8 536.2H512V353z" fill="#DD0031"/>
|
|
4
|
-
<path d="M400.9 616.8l-52.4 130.8h-97.2L512 163V64L94.9 212.7l63.6 551.5L512 960V616.8z" fill="#DD0031"/>
|
|
5
|
-
<path d="M512 353v183.2h76.2z" fill="#C3002F"/>
|
|
6
|
-
<path d="M512 64v99l259.8 584.6h-97.2l-52.4-130.8H512V960l353.5-195.8 63.6-551.5z" fill="#C3002F"/>
|
|
7
|
-
</svg>
|
|
8
|
-
`,Hn=`
|
|
9
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<path d="M615.6 123.6h165.5L512 589.7 242.9 123.6H63.5L512 900.4l448.5-776.9z" fill="#41B883"/>
|
|
11
|
-
<path d="M781.1 123.6H615.6L512 303 408.4 123.6H242.9L512 589.7z" fill="#34495E"/>
|
|
12
|
-
</svg>
|
|
13
|
-
`,Un=`
|
|
14
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
-
<svg t="1767603739899" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9231" width="200" height="200">
|
|
16
|
-
<path d="M512 511.8m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z" fill="#61DAFB" p-id="9232"></path>
|
|
17
|
-
<path d="M960.5 511.8c0-62.8-73.8-117.2-188.5-150.1 28.9-115.8 18.7-206.9-35.7-238.3-54.5-31.4-138.5 5.3-224.3 88.2-85.8-82.9-169.8-119.6-224.3-88.2-54.4 31.4-64.6 122.6-35.7 238.3C137.3 394.6 63.5 449 63.5 511.8S137.3 629 252 661.9c-28.9 115.7-18.7 206.9 35.7 238.3 13.4 7.8 28.6 11.6 45.2 11.6 39.7 0 87.8-21.8 140-64.2 13-10.6 26.1-22.6 39.1-35.2 13 12.6 26.1 24.6 39.1 35.2 52.2 42.4 100.2 64.2 140 64.2 16.6 0 31.8-3.8 45.2-11.6 54.4-31.4 64.6-122.5 35.7-238.3 114.7-32.9 188.5-87.3 188.5-150.1zM716.8 157.2c35.3 20.4 42.7 94.3 17.6 194.8-36.7-8.4-76.7-14.7-119.3-18.6-24.7-34.9-50.2-66.4-75.8-94 59.2-57.3 114.2-88.4 152-88.4 9.6-0.1 18.2 2 25.5 6.2zM637 584c-13.8 24-28.4 47-43.3 69-26.1 2-53.3 3.1-81.7 3.1-28.3 0-55.5-1.1-81.6-3.1-15-22-29.5-45.1-43.3-69-14.1-24.5-26.7-48.6-38.1-72.2 11.4-23.6 24-47.7 38.1-72.2 14.1-24.5 28.7-47.4 43.4-69.1 26.1-2 53.3-3.1 81.6-3.1 28.3 0 55.5 1.1 81.6 3.1 14.7 21.6 29.3 44.6 43.4 69 14.1 24.5 26.7 48.6 38.1 72.2-11.5 23.7-24.1 47.8-38.2 72.3z m58.8-26.4c11.2 26.6 20.4 52.1 28 76.5-24.9 5.6-51.7 10.4-80.3 14 9.3-14.5 18.4-29.3 27.3-44.6 8.8-15.4 17.1-30.7 25-45.9zM512 756.5c-17.7-19.2-35.1-40.1-52.2-62.6 17.1 0.8 34.5 1.3 52.2 1.3 17.7 0 35.1-0.5 52.2-1.3-17.1 22.5-34.5 43.4-52.2 62.6zM380.5 648.1c-28.6-3.6-55.3-8.4-80.3-14 7.6-24.4 16.8-49.9 28-76.5 7.9 15.2 16.1 30.5 25 45.9 8.9 15.2 18 30 27.3 44.6zM328.2 466c-11.2-26.6-20.4-52.1-28-76.5 24.9-5.6 51.6-10.4 80.2-14-9.2 14.4-18.4 29.2-27.2 44.6-8.8 15.4-17.1 30.7-25 45.9zM512 267.1c17.3 18.7 34.8 39.8 52.1 62.7-17.1-0.8-34.4-1.3-52.1-1.3-17.7 0-35 0.5-52.1 1.3 17.3-22.9 34.8-44 52.1-62.7z m158.7 153c-8.9-15.3-18-30.1-27.2-44.6 28.6 3.6 55.3 8.4 80.2 14-7.6 24.4-16.8 49.9-28 76.5-7.8-15.2-16.1-30.5-25-45.9zM307.2 157.2c7.2-4.2 15.8-6.2 25.6-6.2 37.8 0 92.7 31.1 151.9 88.4-25.6 27.6-51.1 59.2-75.8 94-42.5 3.9-82.6 10.2-119.3 18.6-25.1-100.6-17.6-174.5 17.6-194.8zM102.5 511.8c0-40.8 60.3-84.2 160-112.6 11.1 36 25.6 73.8 43.5 112.6-17.8 38.8-32.4 76.6-43.5 112.6-99.7-28.4-160-71.9-160-112.6z m345.8 305.5c-59.7 48.5-111.1 66.4-141.1 49.2-35.3-20.4-42.7-94.3-17.6-194.8 36.7 8.4 76.7 14.7 119.3 18.6 24.4 34.5 49.9 66.1 75.8 94.2-12.1 11.7-24.2 22.9-36.4 32.8z m268.5 49.2c-29.9 17.3-81.4-0.6-141.1-49.2-12.1-9.9-24.3-21.1-36.5-32.8 26-28.1 51.4-59.7 75.8-94.2 42.5-3.9 82.6-10.2 119.3-18.7 25.2 100.6 17.7 174.5-17.5 194.9z m44.8-242.1c-11.1-36-25.6-73.8-43.5-112.6 17.8-38.8 32.4-76.6 43.5-112.6 99.7 28.5 160 71.9 160 112.6-0.1 40.7-60.4 84.2-160 112.6z" fill="#61DAFB" p-id="9233"></path></svg>
|
|
18
|
-
</svg>
|
|
19
|
-
`,$n=`
|
|
20
|
-
<svg t="1767598826450" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8231" width="200" height="200">
|
|
21
|
-
<path d="M875.2 262.3L546.7 72.7c-20.7-11.8-48.3-11.8-69 0L148.8 262.3c-21.5 12.2-34.5 34.9-34.5 59.7v379.2c0 24.8 13.4 47.9 34.5 60.1l86.1 49.5c41.8 20.7 56.8 20.7 75.9 20.7 62.1 0 97.4-37.8 97.4-102.7V354.4c0-5.3-4.1-9.3-9.3-9.3h-41.4c-5.3 0-9.3 4.1-9.3 9.3v374.3c0 28.8-30 57.7-78.8 33.3l-90.1-52c-3.2-2-5.3-5.3-5.3-8.9V321.9c0-3.7 2-7.3 5.3-8.9l328.1-190c3.2-1.6 7.3-1.6 10.2 0l328.5 189.6c3.2 1.6 5.3 5.3 5.3 8.9v379.2c0 3.7-2 7.3-4.9 8.9L517.9 899.3c-2.8 1.6-7.3 1.6-10.2 0l-84.4-49.9c-2.4-1.2-5.7-1.6-8.1-0.4-23.1 13.4-27.6 15-49.5 22.7-5.7 1.6-13.4 4.9 2.8 14.2l109.6 65c10.6 6.1 22.3 9.3 34.5 9.3 11.8-0.4 24-3.2 34.1-9.7l328.5-189.6c21.1-12.2 34.5-34.9 34.5-59.7V321.9c0-24.3-13.4-47.5-34.5-59.6z" fill="#689F63" p-id="8232"></path>
|
|
22
|
-
<path d="M614.1 641.1c-86.9 0-106-21.9-112.5-65-0.8-4.9-4.5-8.1-9.3-8.1h-42.6c-5.3 0-9.3 4.1-9.3 9.3 0 55.2 30 121.4 173.8 121.4l-0.4-0.4c103.9 0 163.6-41 163.6-112.5 0-70.6-47.9-89.7-149-103.1-101.9-13.4-112.5-20.3-112.5-44.3 0-19.5 8.9-45.9 84.4-45.9 67.8 0 92.6 14.6 102.7 60.1 1.2 4.1 4.9 7.3 9.3 7.3H755c2.4 0 5.3-0.8 6.9-2.8 1.6-2 2.8-4.5 2.4-7.3-6.9-78.4-58.9-114.9-164-114.9-93.4 0-149.4 39.4-149.4 105.6 0 71.9 55.6 91.8 145.8 100.7 107.6 10.6 116.1 26.4 116.1 47.5 0 36.5-29.3 52.4-98.7 52.4z" fill="#689F63" p-id="8233"></path>
|
|
23
|
-
</svg>
|
|
24
|
-
`,Gn=`
|
|
25
|
-
<svg t="1768726164973" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4725" width="200" height="200">
|
|
26
|
-
<path d="M332.72493 412.535453l171.001167-98.72725a13.830826 13.830826 0 0 1 13.83424 0l171.007994 98.72725a13.841066 13.841066 0 0 1 6.915413 11.9808v197.4545a13.858133 13.858133 0 0 1-6.918826 11.980799l-171.004581 98.72725a13.830826 13.830826 0 0 1-13.83424 0l-171.001167-98.72725a13.841066 13.841066 0 0 1-6.915413-11.980799V424.516253a13.847893 13.847893 0 0 1 6.915413-11.9808" fill="#7986CB" p-id="4726"></path>
|
|
27
|
-
<path d="M955.265709 502.476783L750.950409 147.036155c-7.420586-12.8512-21.128533-22.330026-35.969705-22.330026H306.329624c-14.844586 0-28.555946 9.478826-35.976532 22.330026L66.037792 501.701957c-7.420586 12.854613-7.420586 29.081599 0 41.932798L270.353092 896.170637c7.420586 12.8512 21.131946 19.421866 35.976532 19.421866h408.65108c14.83776 0 28.552532-6.372693 35.969705-19.227306l204.3153-353.109322c7.427413-12.847786 7.427413-27.921066 0-40.768852m-169.181861 170.922661c0 5.2224-3.14368 10.059093-7.676586 12.673706l-260.249592 150.152529a14.80704 14.80704 0 0 1-14.725119 0l-260.450978-150.152529c-4.52608-2.614613-7.693653-7.44448-7.693653-12.673706v-300.30847c0-5.229226 3.119787-10.059093 7.649279-12.677119l260.242765-150.152529a14.779733 14.779733 0 0 1 14.71488 0l260.471458 150.152529c4.529493 2.618027 7.717546 7.447893 7.717546 12.677119z" fill="#3F51B5" p-id="4727"></path>
|
|
28
|
-
</svg>
|
|
29
|
-
`;var Be=class t{constructor(n){this.icons=n}inited=!1;init(){this.inited||(this.inited=!0,this.icons.addIconLiteral("proj:angular",Wn),this.icons.addIconLiteral("proj:vue",Hn),this.icons.addIconLiteral("proj:react",Un),this.icons.addIconLiteral("proj:node",$n),this.icons.addIconLiteral("proj:eslint",Gn))}static \u0275fac=function(e){return new(e||t)(ie(Qt))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ae=class t{constructor(n){n.init()}static \u0275fac=function(e){return new(e||t)(ae(Be))};static \u0275cmp=_({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,o){e&1&&p(0,"ngm-layout")},dependencies:[ke],styles:["[_nghost-%COMP%]{display:block;height:100vh}"]})};At(Ae,jn).catch(t=>console.error(t));
|