@yinuo-ngm/server 1.0.10 → 1.0.12

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.
Files changed (30) hide show
  1. package/LICENSE +15 -0
  2. package/lib/plugins/error-handler.plugin.js +2 -0
  3. package/lib/routes/api-client/collection.routes.js +18 -2
  4. package/lib/routes/dashboard.routes.js +5 -1
  5. package/lib/routes/project.routes.js +1 -1
  6. package/package.json +2 -2
  7. package/www/browser/{chunk-V6LX42JA.js → chunk-37KQ3UTB.js} +1 -1
  8. package/www/browser/chunk-3LDMO67C.js +1 -0
  9. package/www/browser/{chunk-FL6BUQ4M.js → chunk-3MAJTMXX.js} +1 -1
  10. package/www/browser/{chunk-PYGKDDJK.js → chunk-3PWCJ3D5.js} +1 -1
  11. package/www/browser/{chunk-UWKUE7CZ.js → chunk-AZV6AWGC.js} +1 -1
  12. package/www/browser/{chunk-DV7BEQJD.js → chunk-CO7S3LZV.js} +1 -1
  13. package/www/browser/{chunk-DUC7XBYN.js → chunk-DJJC6FPO.js} +1 -1
  14. package/www/browser/{chunk-FPDGZ3ZC.js → chunk-EP45FT55.js} +3 -3
  15. package/www/browser/{chunk-7U5ZOE34.js → chunk-FNLA2MNI.js} +1 -1
  16. package/www/browser/{chunk-IXHH6ENJ.js → chunk-G73D24UX.js} +1 -1
  17. package/www/browser/{chunk-5IUYSJVD.js → chunk-GCKL62DR.js} +1 -1
  18. package/www/browser/{chunk-MN4WB67T.js → chunk-HCBKQAGF.js} +1 -1
  19. package/www/browser/{chunk-EAYGWAZB.js → chunk-IMQG3SAE.js} +1 -1
  20. package/www/browser/{chunk-3N7T4ZJF.js → chunk-J2JNFWJN.js} +1 -1
  21. package/www/browser/{chunk-TLFV3T3W.js → chunk-MD6RDGU4.js} +1 -1
  22. package/www/browser/{chunk-5MHC25IS.js → chunk-OUE23ZE4.js} +1 -1
  23. package/www/browser/{chunk-A2SBXP7A.js → chunk-W6TCGG53.js} +1 -1
  24. package/www/browser/{chunk-KKLLU6U7.js → chunk-XN5C33GH.js} +1 -1
  25. package/www/browser/chunk-YVSVIACA.js +4 -0
  26. package/www/browser/index.html +1 -1
  27. package/www/browser/main-V3VSEZ7K.js +29 -0
  28. package/www/browser/chunk-2PBA7FNM.js +0 -4
  29. package/www/browser/chunk-U7FBNFSB.js +0 -1
  30. package/www/browser/main-IIW5QQA5.js +0 -29
@@ -1,5 +1,5 @@
1
- import{$ as Oa,Aa as Ua,Ab as sr,Ba as qt,Bb as cr,Ca as at,Cb as dr,Da as $t,Ea as Ka,F as xe,Fa as Wa,Fb as pr,G as Vt,Ga as qa,H as Ht,Hb as mr,I as Bt,J as Ut,Ja as $a,K as ft,Ka as Gt,M as ge,N as fe,Na as Ga,O as ce,P as de,Pa as rt,Qa as J,Ra as Za,Sa as Zt,Ta as Qa,V as vt,W as qe,Wa as Ja,X as Ea,Xa,Y as yt,Z as _t,_ as Ia,_a as er,aa as Aa,b as Lt,c as ba,ca as Na,d as Ye,ea as ja,f as xn,gb as tr,ha as Kt,i as Ma,jb as nr,ka as wn,l as wa,la as Ra,lb as ar,m as Fa,n as zn,o as bn,p as Mn,pa as kt,pb as rr,qa as Wt,ra as La,sa as nt,ta as Fn,ua as Va,va as Ha,vb as ir,w as tt,wa as Ba,x as Q,xa as Pt,yb as or,z as C,za as En,zb as lr}from"./chunk-PTMJ422K.js";import{c as za,d as Dn,f as gt,g as Tn,h as Yn}from"./chunk-HFZLJHYR.js";import{d as Pn,i as Da,o as Sn,q as Ta,v as Ya,y as xa,z as Cn}from"./chunk-53YRDYLS.js";import{$b as Oe,Aa as ye,Ab as Be,B as V,Ba as mt,C as Ve,Ca as K,D as ca,Dc as We,Eb as w,Ec as he,Fb as ne,Fc as j,G as da,Gb as W,Gc as Te,Ha as N,Hb as ut,Hc as se,I as wt,Ib as Ue,Ic as E,Jb as vn,Jc as et,K as pa,Kb as F,Kc as ke,L as ie,Lc as Pa,M as U,Mc as Ot,N as Ft,Nc as At,Oa as oe,Oc as Nt,Pa as ht,Ra as re,S as be,Sc as Sa,Tb as Ee,U as Et,Uc as ue,Vb as x,Xa as ga,Xb as z,Xc as jt,Yb as ya,Zb as It,Zc as _n,_b as Ie,_c as kn,a as Z,ac as g,ad as Ca,b as pt,bc as h,c as ia,ca as He,cc as u,da as Je,dc as f,ea as Me,ec as _a,f as Ze,fc as ka,fd as Pe,g as Le,ga as ma,hc as $,i as un,ic as G,jb as we,kc as M,l as y,la as ha,m as B,ma as b,mb as d,mc as Xe,na as te,p as oa,pa as ae,q as la,qa as gn,qc as S,r as Mt,ra as s,rb as D,rc as yn,rd as q,s as Qe,sa as ua,sb as Ce,tc as p,ub as fa,uc as Ke,vb as me,vc as De,vd as P,wb as fn,wc as _e,wd as Rt,xa as _,xb as Fe,xc as le,y as sa,ya as k,yb as va,yc as R,zc as L}from"./chunk-SJG2JCPL.js";var Qt=class extends Error{constructor(e,t,a,i){super(t);this.code=e;this.details=a;this.requestId=i;this.name="ApiBizError"}};function Jt(){return V(r=>{if(r.ok)return r.data;throw new Qt(r.error.code,r.error.message,r.error.details,r.meta?.requestId)})}var it=class r{http=s(Ta);get(n,e){return this.http.get(n,{params:e}).pipe(Jt())}post(n,e,t){return this.http.post(n,e,{params:t}).pipe(Jt())}delete(n,e){return this.http.delete(n,{params:e}).pipe(Jt())}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var ot=class r{api=s(it);ls(n,e=!1){let t=new Sn().set("path",n).set("showSystem",e?"1":"0");return this.api.get("/api/fs/ls",t)}mkdir(n,e){return this.api.post("/api/fs/mkdir",{path:n,name:e})}pathExists(n){let e=new Sn().set("path",n);return this.api.get("/api/fs/path-exists",e).pipe(V(t=>t.exists))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var $e={project:{currentProjectId:"ngm:project:currentProjectId"},fs:{explorer:{lastPath:"ngm:fs:explorer:lastPath",favorites:"ngm:fs:explorer:favorites"}},dashboard:{layout:"ngm:dashboard:layout"}};var In=class r{get(n){let e=localStorage.getItem(n);if(e==null)return null;try{return JSON.parse(e)}catch{return e}}set(n,e){localStorage.setItem(n,JSON.stringify(e))}remove(n){localStorage.removeItem(n)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})},lt=class r{constructor(n){this.driver=n}get(n,e){return this.driver.get(n)??e}getNullable(n){return this.driver.get(n)}set(n,e){this.driver.set(n,e)}remove(n){this.driver.remove(n)}static \u0275fac=function(e){return new(e||r)(gn(In))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var Xt=class r{fsApi=s(ot);localState=s(lt);path=N("D:\\");currentPath=N("");entries=N([]);reloading=N(!1);isEditingPath=N(!1);showSystemFolders=N(!1);isCreateFolderModalVisible=N(!1);newFolderName=N("");segments=Pe(()=>{let n=this.currentPath()||this.path()||"";return this.buildSegments(n)});isRoot=Pe(()=>{let n=(this.currentPath()||this.path()||"").trim();if(!n||/^\\\\[^\\]+\\[^\\]+$/.test(n.replaceAll("/","\\")))return!0;let e=n.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(e)?!0:n.replaceAll("\\","/")==="/"});canUp=Pe(()=>!this.reloading()&&!this.isRoot());favorites=N(this.normalizeFavorites(this.localState.get($e.fs.explorer.favorites,[])));isCurFavorited=Pe(()=>{let n=this.normalizePath(this.currentPath()||this.path()||"");return n?this.favorites().some(e=>e.path===n):!1});toggleFavoriteCurrent(){let n=this.normalizePath(this.currentPath()||this.path()||"");if(!n)return;let e=this.favorites(),t=e.findIndex(i=>i.path===n),a;t>=0?a=e.slice(0,t).concat(e.slice(t+1)):a=[{path:n,label:this.buildFavoriteLabel(n),createdAt:Date.now()},...e],a=this.normalizeFavorites(a),this.favorites.set(a),this.persistFavorites(a)}openFavorite(n){n?.path&&(this.path.set(n.path),this.load())}removeFavorite(n){let e=this.normalizeFavorites(this.favorites().filter(t=>t.path!==n.path));this.favorites.set(e),this.persistFavorites(e)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(n){this.localState.set($e.fs.explorer.favorites,n)}normalizeFavorites(n){let e=new Map;for(let t of n||[]){let a=this.normalizePath(t?.path||"");a&&e.set(a,{path:a,label:String(t?.label||this.buildFavoriteLabel(a)).trim(),createdAt:Number(t?.createdAt||Date.now())})}return Array.from(e.values()).sort((t,a)=>a.createdAt-t.createdAt)}buildFavoriteLabel(n){let e=n.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(e))return e.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(e))return e;if(/^\\\\/.test(e)){let i=e.split("\\").filter(Boolean);return i[i.length-1]||e}let t=n.replaceAll("\\","/");if(t==="/")return"/";let a=t.split("/").filter(Boolean);return a[a.length-1]||t}load(n=!1){let e=(this.path()||"").trim();if(!e)return;let t=(this.currentPath()||"").trim();if(t&&this.normalizePath(t)===this.normalizePath(e)&&this.entries().length&&!n){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(e,this.showSystemFolders()).subscribe({next:a=>{this.currentPath.set(a.path),this.entries.set(a.entries),this.path.set(a.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(n=>!n),this.load()}editPath(){this.isEditingPath.update(n=>!n)}open(n){n.type==="dir"&&(this.path.set(n.fullPath),this.load())}up(){if(!this.canUp())return;let n=(this.currentPath()||this.path()||"").trim();if(!n)return;let e=this.normalizePath(n),t=e.replaceAll("/","\\"),a=/^\\\\[^\\]+\\[^\\]+/.test(t),i=/^[a-zA-Z]:\\/.test(t),l=a||i?"\\":"/";if(a){let T=t.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!T)return;let Y=`\\\\${T[1]}\\${T[2]}`;if(t===Y)return;let I=t.lastIndexOf("\\"),O=I<=Y.length?Y:t.slice(0,I);if(this.normalizePath(O)===this.normalizePath(this.currentPath()))return;this.path.set(O),this.load();return}if(i){let T=t.lastIndexOf("\\");if(T<=2){let I=`${t.slice(0,2)}\\`;if(this.normalizePath(I)===this.normalizePath(this.currentPath()))return;this.path.set(I),this.load();return}let Y=t.slice(0,T);if(this.normalizePath(Y)===this.normalizePath(this.currentPath()))return;this.path.set(Y),this.load();return}let c=e.replaceAll("\\","/");if(c==="/")return;let m=c.lastIndexOf("/"),v=m<=0?"/":c.slice(0,m);this.normalizePath(v)!==this.normalizePath(this.currentPath())&&(this.path.set(v),this.load())}jumpTo(n){n.disabled||(this.path.set(n.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let n=(this.newFolderName()||"").trim();if(!n)return;let e=this.currentPath()||this.path();this.fsApi.mkdir(e,n).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(n){let e=(n||"").trim();if(!e)return[];let t=/^[a-zA-Z]:[\\/]/.test(e)||/^[a-zA-Z]:$/.test(e),a=t?"\\":"/",i=t?e.replaceAll("/","\\"):e.replaceAll("\\","/"),o=t?i.slice(0,2):"/",l=i;if(t){let Y=i.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);Y&&(o=Y[1],l=Y[2]||"")}else l=i.startsWith("/")?i.slice(1):i;let c=l.split(t?/[\\]+/:/[\/]+/).filter(Boolean),m=[],v=t?`${o}\\`:"/";m.push({key:"root",label:o,fullPath:v,disabled:c.length===0});let T=v;for(let Y=0;Y<c.length;Y++){let I=c[Y];T=T.endsWith(a)?T+I:T+a+I;let O=Y===c.length-1,ze=O?T:T+a;m.push({key:`${Y}-${I}`,label:I,fullPath:ze,disabled:O})}return m}normalizePath(n){let e=(n||"").trim();if(!e)return"";let t=/^\\\\[^\\]+\\[^\\]+/.test(e.replaceAll("/","\\")),a=/^[a-zA-Z]:([\\/]|$)/.test(e),i=t||a,o=i?e.replaceAll("/","\\"):e.replaceAll("\\","/");if(a){let l=o.slice(0,2);if(o===l||o===`${l}\\`)return`${l}\\`}return!i&&o==="/"?"/":(o=o.replace(/[\\\/]+$/,""),o)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var Di=["nz-menu-item",""],ur=["*"],Ti=["nz-submenu-inline-child",""];function Yi(r,n){}var xi=["nz-submenu-none-inline-child",""];function zi(r,n){}var bi=["nz-submenu-title",""];function Mi(r,n){if(r&1&&f(0,"nz-icon",0),r&2){let e=p();g("nzType",e.nzIcon)}}function wi(r,n){if(r&1&&($(0),h(1,"span",4),E(2),u(),G()),r&2){let e=p();d(2),et(e.nzTitle)}}function Fi(r,n){r&1&&f(0,"nz-icon",5)}function Ei(r,n){r&1&&f(0,"nz-icon",6)}function Ii(r,n){if(r&1&&(h(0,"span",2),x(1,Fi,1,0,"nz-icon",5)(2,Ei,1,0,"nz-icon",6),u()),r&2){let e,t=p();d(),z((e=t.dir)==="rtl"?1:2)}}function Oi(r,n){r&1&&f(0,"span",3)}var Ai=["nz-submenu",""],Ni=[[["","title",""]],"*"],ji=["[title]","*"];function Ri(r,n){r&1&&De(0)}function Li(r,n){if(r&1&&f(0,"div",3),r&2){let e=p(),t=We(6);g("mode",e.mode)("nzOpen",e.nzOpen)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("menuClass",e.nzMenuClassName)("templateOutlet",t)}}function Vi(r,n){if(r&1){let e=M();h(0,"div",6),S("subMenuMouseState",function(a){_(e);let i=p(2);return k(i.setMouseEnterState(a))}),u()}if(r&2){let e=p(2),t=We(6);g("theme",e.theme)("mode",e.mode)("nzOpen",e.nzOpen)("position",e.position)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("nzTriggerSubMenuAction",e.nzTriggerSubMenuAction)("templateOutlet",t)("menuClass",e.nzMenuClassName)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}function Hi(r,n){if(r&1){let e=M();F(0,Vi,1,11,"ng-template",5),S("positionChange",function(a){_(e);let i=p();return k(i.onPositionChange(a))})("overlayOutsideClick",function(){_(e);let a=p();return k(a.setMouseEnterState(!1))})}if(r&2){let e=p(),t=We(1);g("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayWidth",e.triggerWidth)("cdkConnectedOverlayOpen",e.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Bi(r,n){r&1&&De(0,1)}var Ui=["titleElement"],Ki=["nz-menu-group",""],Wi=["*",[["","title",""]]],qi=["*","[title]"];function $i(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p();d(),et(e.nzTitle)}}function Gi(r,n){r&1&&De(0,1)}var Se=(()=>{class r{descendantMenuItemClick$=new y;childMenuItemClick$=new y;theme$=new B("light");mode$=new B("vertical");inlineIndent$=new B(24);isChildSubMenuOpen$=new B(!1);onDescendantMenuItemClick(e){this.descendantMenuItemClick$.next(e)}onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setMode(e){this.mode$.next(e)}setTheme(e){this.theme$.next(e)}setInlineIndent(e){this.inlineIndent$.next(e)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),ve=new ae(""),gr=new ae(""),On=(()=>{class r{nzMenuService=s(Se);nzHostSubmenuService=s(r,{optional:!0,skipSelf:!0});mode$=this.nzMenuService.mode$.pipe(V(e=>e==="inline"?"inline":e==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal"));level=1;isMenuInsideDropDown=s(ve);isCurrentSubMenuOpen$=new B(!1);isChildSubMenuOpen$=new B(!1);isMouseEnterTitleOrOverlay$=new y;childMenuItemClick$=new y;onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setOpenStateWithoutDebounce(e){this.isCurrentSubMenuOpen$.next(e)}setMouseEnterTitleOrOverlayState(e){this.isMouseEnterTitleOrOverlay$.next(e)}constructor(){this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let e=this.childMenuItemClick$.pipe(ca(()=>this.mode$),U(i=>i!=="inline"||this.isMenuInsideDropDown),V(()=>!1)),t=ie(this.isMouseEnterTitleOrOverlay$,e);Ve([this.isChildSubMenuOpen$,t]).pipe(V(([i,o])=>i||o),Ft(150)).pipe(Et(),C()).subscribe(i=>{this.setOpenStateWithoutDebounce(i),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(i):this.nzMenuService.isChildSubMenuOpen$.next(i)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),tn=(()=>{class r{nzMenuService=s(Se);destroyRef=s(K);cdr=s(q);nzSubmenuService=s(On,{optional:!0});directionality=s(Q);routerLink=s(Cn,{optional:!0});router=s(xa,{optional:!0});isMenuInsideDropDown=s(ve);level=this.nzSubmenuService?this.nzSubmenuService.level+1:1;selected$=new y;inlinePaddingLeft=null;dir="ltr";nzPaddingLeft;nzDisabled=!1;nzSelected=!1;nzDanger=!1;nzMatchRouterExact=!1;nzMatchRouter=!1;listOfRouterLink;clickMenuItem(e){if(this.nzDisabled){e.preventDefault(),e.stopPropagation();return}this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this)}setSelectedState(e){this.nzSelected=e,this.selected$.next(e)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let e=this.hasActiveLinks();this.nzSelected!==e&&(this.nzSelected=e,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.routerLink&&e(this.routerLink)||this.listOfRouterLink.some(e)}isLinkActive(e){return t=>e.isActive(t.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(){this.router?.events.pipe(C(),U(e=>e instanceof Ya)).subscribe(()=>this.updateRouterActive())}ngOnInit(){Ve([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.inlinePaddingLeft=e==="inline"?this.level*t:null}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(C(this.destroyRef)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(e){let{nzSelected:t}=e;t&&this.setSelectedState(this.nzSelected)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-menu-item",""]],contentQueries:function(t,a,i){if(t&1&&_e(i,Cn,5),t&2){let o;R(o=L())&&(a.listOfRouterLink=o)}},hostVars:20,hostBindings:function(t,a){t&1&&S("click",function(o){return a.clickMenuItem(o)}),t&2&&(he("padding-left",a.dir==="rtl"?null:a.nzPaddingLeft||a.inlinePaddingLeft,"px")("padding-right",a.dir==="rtl"?a.nzPaddingLeft||a.inlinePaddingLeft:null,"px"),j("ant-dropdown-menu-item",a.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",a.isMenuInsideDropDown&&a.nzSelected)("ant-dropdown-menu-item-danger",a.isMenuInsideDropDown&&a.nzDanger)("ant-dropdown-menu-item-disabled",a.isMenuInsideDropDown&&a.nzDisabled)("ant-menu-item",!a.isMenuInsideDropDown)("ant-menu-item-selected",!a.isMenuInsideDropDown&&a.nzSelected)("ant-menu-item-danger",!a.isMenuInsideDropDown&&a.nzDanger)("ant-menu-item-disabled",!a.isMenuInsideDropDown&&a.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",Ma],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzSelected:[2,"nzSelected","nzSelected",P],nzDanger:[2,"nzDanger","nzDanger",P],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",P],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",P]},exportAs:["nzMenuItem"],features:[oe],attrs:Di,ngContentSelectors:ur,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(t,a){t&1&&(Ke(),_a(0,"span",0),De(1),ka())},encapsulation:2,changeDetection:0})}return r})(),Zi=(()=>{class r{elementRef=s(re);renderer=s(Fe);directionality=s(Q);destroyRef=s(K);templateOutlet=null;menuClass="";mode="vertical";nzOpen=!1;listOfCacheClassName=[];expandState="collapsed";dir="ltr";calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngOnChanges(e){let{mode:t,nzOpen:a,menuClass:i}=e;(t||a)&&this.calcMotionState(),i&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.forEach(o=>{o&&this.renderer.removeClass(this.elementRef.nativeElement,o)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.forEach(o=>{o&&this.renderer.addClass(this.elementRef.nativeElement,o)})))}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(t,a){t&2&&(Xe("@collapseMotion",a.expandState),j("ant-menu-rtl",a.dir==="rtl"))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[oe],attrs:Ti,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,a){t&1&&F(0,Yi,0,0,"ng-template",0),t&2&&g("ngTemplateOutlet",a.templateOutlet)},dependencies:[Pn],encapsulation:2,data:{animation:[qa]},changeDetection:0})}return r})(),Qi=(()=>{class r{directionality=s(Q);destroyRef=s(K);menuClass="";theme="light";templateOutlet=null;isMenuInsideDropDown=!1;mode="vertical";nzTriggerSubMenuAction="hover";position="right";nzDisabled=!1;nzOpen=!1;subMenuMouseState=new D;expandState="collapsed";dir="ltr";setMouseState(e){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(e)}calcMotionState(){this.nzOpen?this.mode==="horizontal"?this.expandState="bottom":this.mode==="vertical"&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngOnChanges(e){let{mode:t,nzOpen:a}=e;(t||a)&&this.calcMotionState()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(t,a){t&1&&S("mouseenter",function(){return a.setMouseState(!0)})("mouseleave",function(){return a.setMouseState(!1)}),t&2&&(Xe("@slideMotion",a.expandState)("@zoomBigMotion",a.expandState),j("ant-menu-light",a.theme==="light")("ant-menu-dark",a.theme==="dark")("ant-menu-submenu-placement-bottom",a.mode==="horizontal")("ant-menu-submenu-placement-right",a.mode==="vertical"&&a.position==="right")("ant-menu-submenu-placement-left",a.mode==="vertical"&&a.position==="left")("ant-menu-submenu-rtl",a.dir==="rtl"))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[oe],attrs:xi,decls:2,vars:17,consts:[[3,"ngTemplateOutlet"]],template:function(t,a){t&1&&(h(0,"div"),F(1,zi,0,0,"ng-template",0),u()),t&2&&(se(a.menuClass),j("ant-dropdown-menu",a.isMenuInsideDropDown)("ant-menu",!a.isMenuInsideDropDown)("ant-dropdown-menu-vertical",a.isMenuInsideDropDown)("ant-menu-vertical",!a.isMenuInsideDropDown)("ant-dropdown-menu-sub",a.isMenuInsideDropDown)("ant-menu-sub",!a.isMenuInsideDropDown)("ant-menu-rtl",a.dir==="rtl"),d(),g("ngTemplateOutlet",a.templateOutlet))},dependencies:[Pn],encapsulation:2,data:{animation:[Ga,Gt]},changeDetection:0})}return r})(),fr=(()=>{class r{destroyRef=s(K);cdr=s(q);directionality=s(Q);nzIcon=null;nzTitle=null;isMenuInsideDropDown=!1;nzDisabled=!1;paddingLeft=null;mode="vertical";nzTriggerSubMenuAction="hover";toggleSubMenu=new D;subMenuMouseState=new D;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()})}setMouseState(e){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(e)}clickTitle(){(this.mode==="inline"||this.nzTriggerSubMenuAction==="click")&&!this.nzDisabled&&(this.subMenuMouseState.next(!0),this.toggleSubMenu.emit())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(t,a){t&1&&S("click",function(){return a.clickTitle()})("mouseenter",function(){return a.setMouseState(!0)})("mouseleave",function(){return a.setMouseState(!1)}),t&2&&(he("padding-left",a.dir==="rtl"?null:a.paddingLeft,"px")("padding-right",a.dir==="rtl"?a.paddingLeft:null,"px"),j("ant-dropdown-menu-submenu-title",a.isMenuInsideDropDown)("ant-menu-submenu-title",!a.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:bi,ngContentSelectors:ur,decls:5,vars:3,consts:[[3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(t,a){t&1&&(Ke(),x(0,Mi,1,1,"nz-icon",0),F(1,wi,3,1,"ng-container",1),De(2),x(3,Ii,3,1,"span",2)(4,Oi,1,0,"span",3)),t&2&&(z(a.nzIcon?0:-1),d(),g("nzStringTemplateOutlet",a.nzTitle),d(2),z(a.isMenuInsideDropDown?3:4))},dependencies:[fe,ge,de,ce],encapsulation:2,changeDetection:0})}return r})(),hr=[J.rightTop,J.right,J.rightBottom,J.leftTop,J.left,J.leftBottom],Ji=[J.bottomLeft,J.bottomRight,J.topRight,J.topLeft],vr=(()=>{class r{nzSubmenuService=s(On);isMenuInsideDropDown=s(ve);noAnimation=s(rt,{optional:!0,host:!0});directionality=s(Q);destroyRef=s(K);nzMenuService=s(Se);cdr=s(q);platform=s(Bt);nzMenuClassName="";nzPaddingLeft=null;nzTitle=null;nzIcon=null;nzTriggerSubMenuAction="hover";nzOpen=!1;nzDisabled=!1;nzPlacement="bottomLeft";nzOpenChange=new D;cdkOverlayOrigin=null;listOfNzSubMenuComponent=null;listOfNzMenuItemDirective=null;level=this.nzSubmenuService.level;position="right";triggerWidth=null;theme="light";mode="vertical";inlinePaddingLeft=null;overlayPositions=hr;isSelected=!1;isActive=!1;dir="ltr";setOpenStateWithoutDebounce(e){this.nzSubmenuService.setOpenStateWithoutDebounce(e)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(e){this.isActive=e,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(e)}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(e){let t=Zt(e);t==="rightTop"||t==="rightBottom"||t==="right"?this.position="right":(t==="leftTop"||t==="leftBottom"||t==="left")&&(this.position="left")}ngOnInit(){this.nzMenuService.theme$.pipe(C(this.destroyRef)).subscribe(e=>{this.theme=e,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(C(this.destroyRef)).subscribe(e=>{this.mode=e,e==="horizontal"?this.overlayPositions=[J[this.nzPlacement],...Ji]:e==="vertical"&&(this.overlayPositions=hr),this.cdr.markForCheck()}),Ve([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.inlinePaddingLeft=e==="inline"?this.level*t:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(C(this.destroyRef)).subscribe(e=>{this.isActive=e,e!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=e,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();let e=this.listOfNzMenuItemDirective,t=e.changes,a=ie(t,...e.map(i=>i.selected$));t.pipe(He(e),Je(()=>a),He(!0),V(()=>e.some(i=>i.nzSelected)),C(this.destroyRef)).subscribe(i=>{this.isSelected=i,this.cdr.markForCheck()})}ngOnChanges(e){let{nzOpen:t}=e;t&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu",""]],contentQueries:function(t,a,i){if(t&1&&(_e(i,r,5),_e(i,tn,5)),t&2){let o;R(o=L())&&(a.listOfNzSubMenuComponent=o),R(o=L())&&(a.listOfNzMenuItemDirective=o)}},viewQuery:function(t,a){if(t&1&&le($t,7,re),t&2){let i;R(i=L())&&(a.cdkOverlayOrigin=i.first)}},hostVars:34,hostBindings:function(t,a){t&2&&j("ant-dropdown-menu-submenu",a.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",a.isMenuInsideDropDown&&a.nzDisabled)("ant-dropdown-menu-submenu-open",a.isMenuInsideDropDown&&a.nzOpen)("ant-dropdown-menu-submenu-selected",a.isMenuInsideDropDown&&a.isSelected)("ant-dropdown-menu-submenu-vertical",a.isMenuInsideDropDown&&a.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",a.isMenuInsideDropDown&&a.mode==="horizontal")("ant-dropdown-menu-submenu-inline",a.isMenuInsideDropDown&&a.mode==="inline")("ant-dropdown-menu-submenu-active",a.isMenuInsideDropDown&&a.isActive)("ant-menu-submenu",!a.isMenuInsideDropDown)("ant-menu-submenu-disabled",!a.isMenuInsideDropDown&&a.nzDisabled)("ant-menu-submenu-open",!a.isMenuInsideDropDown&&a.nzOpen)("ant-menu-submenu-selected",!a.isMenuInsideDropDown&&a.isSelected)("ant-menu-submenu-vertical",!a.isMenuInsideDropDown&&a.mode==="vertical")("ant-menu-submenu-horizontal",!a.isMenuInsideDropDown&&a.mode==="horizontal")("ant-menu-submenu-inline",!a.isMenuInsideDropDown&&a.mode==="inline")("ant-menu-submenu-active",!a.isMenuInsideDropDown&&a.isActive)("ant-menu-submenu-rtl",a.dir==="rtl")},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",nzOpen:[2,"nzOpen","nzOpen",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[ue([On]),oe],attrs:Ai,ngContentSelectors:ji,decls:7,vars:9,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","nzTriggerSubMenuAction"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","overlayOutsideClick","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","nzTriggerSubMenuAction","templateOutlet","menuClass","nzNoAnimation"]],template:function(t,a){if(t&1){let i=M();Ke(Ni),h(0,"div",2,0),S("subMenuMouseState",function(l){return _(i),k(a.setMouseEnterState(l))})("toggleSubMenu",function(){return _(i),k(a.toggleSubMenu())}),x(2,Ri,1,0),u(),x(3,Li,1,6,"div",3)(4,Hi,1,5,null,4),F(5,Bi,1,0,"ng-template",null,1,Ca)}t&2&&(g("nzIcon",a.nzIcon)("nzTitle",a.nzTitle)("mode",a.mode)("nzDisabled",a.nzDisabled)("isMenuInsideDropDown",a.isMenuInsideDropDown)("paddingLeft",a.nzPaddingLeft||a.inlinePaddingLeft)("nzTriggerSubMenuAction",a.nzTriggerSubMenuAction),d(2),z(a.nzTitle?-1:2),d(),z(a.mode==="inline"?3:4))},dependencies:[fr,Zi,rt,Qi,Wa,Ka,$t],encapsulation:2,changeDetection:0})}return r})();function Xi(){let r=s(Se,{skipSelf:!0,optional:!0}),n=s(gr);return r??n}function eo(){return s(ve,{skipSelf:!0,optional:!0})??!1}var yr=(()=>{class r{nzMenuService=s(Se);destroyRef=s(K);cdr=s(q);directionality=s(Q);listOfNzMenuItemDirective;isMenuInsideDropDown=s(ve);listOfNzSubMenuComponent;nzInlineIndent=24;nzTheme="light";nzMode="vertical";nzInlineCollapsed=!1;nzSelectable=!this.isMenuInsideDropDown;nzClick=new D;actualMode="vertical";dir="ltr";inlineCollapsed$=new B(this.nzInlineCollapsed);mode$=new B(this.nzMode);listOfOpenedNzSubMenuComponent=[];setInlineCollapsed(e){this.nzInlineCollapsed=e,this.inlineCollapsed$.next(e)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(e=>e.nzOpen),this.listOfNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){Ve([this.inlineCollapsed$,this.mode$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.actualMode=e?"vertical":t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(C(this.destroyRef)).subscribe(e=>{this.nzClick.emit(e),this.nzSelectable&&!e.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(t=>t.setSelectedState(t===e))}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(C(this.destroyRef)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(e){let{nzInlineCollapsed:t,nzInlineIndent:a,nzTheme:i,nzMode:o}=e;t&&this.inlineCollapsed$.next(this.nzInlineCollapsed),a&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),i&&this.nzMenuService.setTheme(this.nzTheme),o&&(this.mode$.next(this.nzMode),!o.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(l=>l.setOpenStateWithoutDebounce(!1)))}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-menu",""]],contentQueries:function(t,a,i){if(t&1&&(_e(i,tn,5),_e(i,vr,5)),t&2){let o;R(o=L())&&(a.listOfNzMenuItemDirective=o),R(o=L())&&(a.listOfNzSubMenuComponent=o)}},hostVars:34,hostBindings:function(t,a){t&2&&j("ant-dropdown-menu",a.isMenuInsideDropDown)("ant-dropdown-menu-root",a.isMenuInsideDropDown)("ant-dropdown-menu-light",a.isMenuInsideDropDown&&a.nzTheme==="light")("ant-dropdown-menu-dark",a.isMenuInsideDropDown&&a.nzTheme==="dark")("ant-dropdown-menu-vertical",a.isMenuInsideDropDown&&a.actualMode==="vertical")("ant-dropdown-menu-horizontal",a.isMenuInsideDropDown&&a.actualMode==="horizontal")("ant-dropdown-menu-inline",a.isMenuInsideDropDown&&a.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",a.isMenuInsideDropDown&&a.nzInlineCollapsed)("ant-menu",!a.isMenuInsideDropDown)("ant-menu-root",!a.isMenuInsideDropDown)("ant-menu-light",!a.isMenuInsideDropDown&&a.nzTheme==="light")("ant-menu-dark",!a.isMenuInsideDropDown&&a.nzTheme==="dark")("ant-menu-vertical",!a.isMenuInsideDropDown&&a.actualMode==="vertical")("ant-menu-horizontal",!a.isMenuInsideDropDown&&a.actualMode==="horizontal")("ant-menu-inline",!a.isMenuInsideDropDown&&a.actualMode==="inline")("ant-menu-inline-collapsed",!a.isMenuInsideDropDown&&a.nzInlineCollapsed)("ant-menu-rtl",a.dir==="rtl")},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",P],nzSelectable:[2,"nzSelectable","nzSelectable",P]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[ue([{provide:gr,useClass:Se},{provide:Se,useFactory:Xi},{provide:ve,useFactory:eo}]),oe]})}return r})();function to(){return s(ve,{optional:!0,skipSelf:!0})??!1}var no=(()=>{class r{renderer=s(Fe);isMenuInsideDropDown=s(ve);nzTitle;titleElement;ngAfterViewInit(){let e=this.titleElement.nativeElement.nextElementSibling;if(e){let t=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(e,t)}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-menu-group",""]],viewQuery:function(t,a){if(t&1&&le(Ui,5),t&2){let i;R(i=L())&&(a.titleElement=i.first)}},hostVars:4,hostBindings:function(t,a){t&2&&j("ant-menu-item-group",!a.isMenuInsideDropDown)("ant-dropdown-menu-item-group",a.isMenuInsideDropDown)},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[ue([{provide:ve,useFactory:to}])],attrs:Ki,ngContentSelectors:qi,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(t,a){t&1&&(Ke(Wi),h(0,"div",null,0),F(2,$i,2,1,"ng-container",1),x(3,Gi,1,0),u(),De(4)),t&2&&(j("ant-menu-item-group-title",!a.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",a.isMenuInsideDropDown),d(2),g("nzStringTemplateOutlet",a.nzTitle),d(),z(a.nzTitle?-1:3))},dependencies:[de,ce],encapsulation:2,changeDetection:0})}return r})(),Us=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"]})}return r})(),nn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[vr,no,fr]})}return r})();var ro=["*"];function io(r,n){r&1&&f(0,"div",1)}function oo(r,n){if(r&1){let e=M();h(0,"div",0),S("@slideMotion.done",function(a){_(e);let i=p();return k(i.onAnimationEvent(a))})("mouseenter",function(){_(e);let a=p();return k(a.setMouseState(!0))})("mouseleave",function(){_(e);let a=p();return k(a.setMouseState(!1))}),x(1,io,1,0,"div",1),De(2),u()}if(r&2){let e=p();Te(e.nzOverlayStyle),se(e.nzOverlayClassName),j("ant-dropdown-rtl",e.dir==="rtl")("ant-dropdown-show-arrow",e.nzArrow)("ant-dropdown-placement-bottomLeft",e.placement==="bottomLeft")("ant-dropdown-placement-bottomRight",e.placement==="bottomRight")("ant-dropdown-placement-bottom",e.placement==="bottom")("ant-dropdown-placement-topLeft",e.placement==="topLeft")("ant-dropdown-placement-topRight",e.placement==="topRight")("ant-dropdown-placement-top",e.placement==="top"),g("@slideMotion",void 0)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation),d(),z(e.nzArrow?1:-1)}}var lo="dropDown",so=["bottomLeft","bottomRight","topRight","topLeft"],Nn=r=>r==="topCenter"?"top":r==="bottomCenter"?"bottom":r,_r=(()=>{var t;let r,n=[],e=[];return t=class{nzConfigService=s(xe);renderer=s(Fe);viewContainerRef=s(Be);platform=s(Bt);destroyRef=s(K);_nzModuleName=lo;elementRef=s(re);injector=s(ye);portal;overlayRef=null;inputVisible$=new B(!1);nzTrigger$=new B("hover");overlayClose$=new y;nzDropdownMenu=null;nzTrigger="hover";nzMatchWidthElement=null;nzBackdrop=Qe(this,n,!1);nzClickHide=(Qe(this,e),!0);nzDisabled=!1;nzVisible=!1;nzArrow=!1;nzOverlayClassName="";nzOverlayStyle={};nzPlacement="bottomLeft";nzVisibleChange=new D;constructor(){this.destroyRef.onDestroy(()=>{this.overlayRef?.dispose(),this.overlayRef=null})}setDropdownMenuValue(i,o){this.nzDropdownMenu?.setValue(i,o)}ngAfterViewInit(){if(this.nzDropdownMenu){let i=this.elementRef.nativeElement,o=ie(wt(i,"mouseenter").pipe(V(()=>!0)),wt(i,"mouseleave").pipe(V(()=>!1))),l=this.nzDropdownMenu.mouseState$,c=ie(l,o),m=wt(i,"click").pipe(V(()=>!this.nzVisible)),v=this.nzTrigger$.pipe(Je(O=>O==="hover"?c:O==="click"?m:la)),T=this.nzDropdownMenu.descendantMenuItemClick$.pipe(U(()=>this.nzClickHide),V(()=>!1)),Y=ie(v,T,this.overlayClose$).pipe(U(()=>!this.nzDisabled)),I=ie(this.inputVisible$,Y);Ve([I,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(V(([O,ze])=>O||ze),Ft(150),Et(),U(()=>this.platform.isBrowser),C(this.destroyRef)).subscribe(O=>{let H=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:i).getBoundingClientRect().width;if(this.nzVisible!==O&&this.nzVisibleChange.emit(O),this.nzVisible=O,O){let Re=Ua(this.injector,this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");if(Re.positionChanges.pipe(U(()=>!!this.overlayRef),V(A=>Zt(A)),C(this.destroyRef)).subscribe(A=>{A&&this.setDropdownMenuValue("placement",Nn(A))}),!this.overlayRef)this.overlayRef=at(this.injector,{positionStrategy:Re,minWidth:H,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:Ba(this.injector)}),ie(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(U(A=>!this.elementRef.nativeElement.contains(A.target))),this.overlayRef.keydownEvents().pipe(U(A=>A.keyCode===27&&!Kt(A)))).pipe(C(this.destroyRef)).subscribe(()=>{this.overlayClose$.next(!1)});else{let A=this.overlayRef.getConfig();A.minWidth=H}let Ge=[this.nzPlacement,...so].map(A=>this.nzArrow?Qa(J[A],Za[A]):J[A]);Re.withPositions(Ge),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new Wt(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.setDropdownMenuValue("nzArrow",this.nzArrow),this.setDropdownMenuValue("placement",Nn(this.nzPlacement)),this.overlayRef.attach(this.portal)}else this.overlayRef?.detach()}),this.nzDropdownMenu.animationStateChange$.pipe(C(this.destroyRef)).subscribe(O=>{O.toState==="void"&&(this.overlayRef?.dispose(),this.overlayRef=null)})}}ngOnChanges(i){let{nzVisible:o,nzDisabled:l,nzOverlayClassName:c,nzOverlayStyle:m,nzTrigger:v,nzArrow:T,nzPlacement:Y}=i;if(v&&this.nzTrigger$.next(this.nzTrigger),o&&this.inputVisible$.next(this.nzVisible),l){let I=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(I,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(I,"disabled")}c&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),m&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),T&&this.setDropdownMenuValue("nzArrow",this.nzArrow),Y&&this.setDropdownMenuValue("placement",Nn(this.nzPlacement))}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[Ht()],Mt(null,null,r,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,l)=>{o.nzBackdrop=l}},metadata:i},n,e),i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),Ze(t,"\u0275fac",function(o){return new(o||t)}),Ze(t,"\u0275dir",W({type:t,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",P],nzClickHide:[2,"nzClickHide","nzClickHide",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzVisible:[2,"nzVisible","nzVisible",P],nzArrow:[2,"nzArrow","nzArrow",P],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[oe]})),t})(),co=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();var kr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-button","","nz-dropdown",""]]})}return r})(),Pr=(()=>{class r{cdr=s(q);elementRef=s(re);renderer=s(Fe);viewContainerRef=s(Be);directionality=s(Q);destroyRef=s(K);noAnimation=s(rt,{host:!0,optional:!0});nzMenuService=s(Se);isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;mouseState$=new B(!1);animationStateChange$=new D;templateRef;nzOverlayClassName="";nzOverlayStyle={};nzArrow=!1;placement="bottomLeft";dir="ltr";onAnimationEvent(e){this.animationStateChange$.emit(e)}setMouseState(e){this.mouseState$.next(e)}setValue(e,t){this[e]=t,this.cdr.markForCheck()}ngOnInit(){this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-dropdown-menu"]],viewQuery:function(t,a){if(t&1&&le(me,7),t&2){let i;R(i=L())&&(a.templateRef=i.first)}},exportAs:["nzDropdownMenu"],features:[ue([Se,{provide:ve,useValue:!0}])],ngContentSelectors:ro,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","nzNoAnimation"],[1,"ant-dropdown-arrow"]],template:function(t,a){t&1&&(Ke(),F(0,oo,3,24,"ng-template"))},dependencies:[rt],encapsulation:2,data:{animation:[Gt]},changeDetection:0})}return r})(),Sr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[co,nn]})}return r})(),vc=[new Pt({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new Pt({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new Pt({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new Pt({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})];var mo={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",selectNone:"Clear all data"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Form:{optional:"(optional)"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Image:{preview:"Preview"},CronExpression:{cronError:"Invalid cron expression",second:"second",minute:"minute",hour:"hour",day:"day",month:"month",week:"week"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},CheckList:{checkList:"Check List",checkListFinish:"You have successfully completed the list!",checkListClose:"Close",checkListFooter:"Check list is no longer required",checkListCheck:"Do you want to close the list?",ok:"OK",cancel:"Cancel",checkListCheckOther:"No longer required to show"}},ho={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},DatePicker:{lang:{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"],locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},timePickerLocale:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]}},TimePicker:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},Calendar:{lang:{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"],locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},timePickerLocale:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]}},global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectNone:"\u6E05\u7A7A\u6240\u6709"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Form:{optional:"(\u53EF\u9009)"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Image:{preview:"\u9884\u89C8"},CronExpression:{cronError:"cron \u8868\u8FBE\u5F0F\u4E0D\u5408\u6CD5",second:"\u79D2",minute:"\u5206\u949F",hour:"\u5C0F\u65F6",day:"\u65E5",month:"\u6708",week:"\u5468"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},CheckList:{checkList:"\u4EFB\u52A1\u6E05\u5355",checkListFinish:"\u4F60\u5DF2\u6210\u529F\u5B8C\u6210\u4EFB\u52A1\u6E05\u5355\uFF01",checkListClose:"\u5173\u95ED",checkListFooter:"\u4E0D\u9700\u8981\u64CD\u4F5C\u6307\u5F15",checkListCheck:"\u4F60\u8981\u5173\u95ED\u64CD\u4F5C\u6E05\u5355\u5417",ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",checkListCheckOther:"\u4EE5\u540E\u4E0D\u518D\u9700\u8981\u64CD\u4F5C\u6E05\u5355"}},Rn=new ae("");function Tc(r){return ua([typeof r=="function"?{provide:Rn,useFactory:r}:{provide:Rn,useValue:r}])}var uo=new ae(""),an=(()=>{class r{_locale;_change=new B(this._locale);dateLocale;get localeChange(){return this._change.asObservable()}constructor(){this.setLocale(s(Rn,{optional:!0})||ho),this.setDateLocale(s(uo,{optional:!0}))}translate(e,t){let a=this._getObjectPath(this._locale,e);return typeof a=="string"?(t&&Object.keys(t).forEach(i=>a=a.replace(new RegExp(`%${i}%`,"g"),t[i])),a):e}setLocale(e){this._locale&&this._locale.locale===e.locale||(this._locale=e,this._change.next(e))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(e){this.dateLocale=e}getDateLocale(){return this.dateLocale}getLocaleData(e,t){let a=e?this._getObjectPath(this._locale,e):this._locale;return!a&&!t&&Lt(`Missing translations for "${e}" in language "${this._locale.locale}".
1
+ import{$ as Oa,Aa as Ua,Ab as sr,Ba as $t,Bb as cr,Ca as at,Cb as dr,Da as Gt,Ea as Ka,F as xe,Fa as Wa,Fb as pr,G as Ht,Ga as qa,H as Bt,Hb as mr,I as Ut,J as Kt,Ja as $a,K as ft,Ka as Zt,M as ge,N as fe,Na as Ga,O as ce,P as de,Pa as rt,Qa as J,Ra as Za,Sa as Qt,Ta as Qa,V as vt,W as qe,Wa as Ja,X as Ea,Xa,Y as yt,Z as _t,_ as Ia,_a as er,aa as Aa,b as Vt,c as ba,ca as Na,d as Ye,ea as ja,f as zn,gb as tr,ha as Wt,i as Ma,jb as nr,ka as Fn,l as wa,la as Ra,lb as ar,m as Fa,n as bn,o as Mn,p as wn,pa as kt,pb as rr,qa as qt,ra as La,sa as nt,ta as En,ua as Va,va as Ha,vb as ir,w as tt,wa as Ba,x as Q,xa as Pt,yb as or,z as C,za as In,zb as lr}from"./chunk-PTMJ422K.js";import{c as za,d as Tn,f as gt,g as Yn,h as xn}from"./chunk-HFZLJHYR.js";import{d as Sn,i as Ta,o as Cn,q as Ya,v as xa,y as Lt,z as Dn}from"./chunk-53YRDYLS.js";import{$b as Oe,Aa as ye,Ab as Be,B as V,Ba as mt,C as Ve,Ca as K,D as da,Dc as We,Eb as w,Ec as he,Fb as ne,Fc as j,G as pa,Gb as W,Gc as Te,Ha as N,Hb as ut,Hc as se,I as wt,Ib as Ue,Ic as E,Jb as yn,Jc as et,K as ma,Kb as F,Kc as ke,L as ie,Lc as Sa,M as U,Mc as Ot,N as Ft,Nc as At,Oa as oe,Oc as Nt,Pa as ht,Ra as re,S as be,Sc as Ca,Tb as Ee,U as Et,Uc as ue,Vb as x,Xa as fa,Xb as z,Xc as jt,Yb as _a,Zb as It,Zc as kn,_b as Ie,_c as Pn,a as Z,ac as g,ad as Da,b as pt,bc as h,c as oa,ca as He,cc as u,da as Je,dc as f,ea as Me,ec as ka,f as Ze,fc as Pa,fd as Pe,g as Le,ga as ha,hc as $,i as gn,ic as G,jb as we,kc as M,l as y,la as ua,m as B,ma as b,mb as d,mc as Xe,na as te,p as la,pa as ae,q as sa,qa as fn,qc as S,r as Mt,ra as s,rb as D,rc as _n,rd as q,s as Qe,sa as ga,sb as Ce,tc as p,ub as va,uc as Ke,vb as me,vc as De,vd as P,wb as vn,wc as _e,wd as Rt,xa as _,xb as Fe,xc as le,y as ca,ya as k,yb as ya,yc as R,zc as L}from"./chunk-SJG2JCPL.js";var Jt=class extends Error{constructor(e,t,a,i){super(t);this.code=e;this.details=a;this.requestId=i;this.name="ApiBizError"}};function Xt(){return V(r=>{if(r.ok)return r.data;throw new Jt(r.error.code,r.error.message,r.error.details,r.meta?.requestId)})}var it=class r{http=s(Ya);get(n,e){return this.http.get(n,{params:e}).pipe(Xt())}post(n,e,t){return this.http.post(n,e,{params:t}).pipe(Xt())}delete(n,e){return this.http.delete(n,{params:e}).pipe(Xt())}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var ot=class r{api=s(it);ls(n,e=!1){let t=new Cn().set("path",n).set("showSystem",e?"1":"0");return this.api.get("/api/fs/ls",t)}mkdir(n,e){return this.api.post("/api/fs/mkdir",{path:n,name:e})}pathExists(n){let e=new Cn().set("path",n);return this.api.get("/api/fs/path-exists",e).pipe(V(t=>t.exists))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var $e={project:{currentProjectId:"ngm:project:currentProjectId"},fs:{explorer:{lastPath:"ngm:fs:explorer:lastPath",favorites:"ngm:fs:explorer:favorites"}},dashboard:{layout:"ngm:dashboard:layout"}};var On=class r{get(n){let e=localStorage.getItem(n);if(e==null)return null;try{return JSON.parse(e)}catch{return e}}set(n,e){localStorage.setItem(n,JSON.stringify(e))}remove(n){localStorage.removeItem(n)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})},lt=class r{constructor(n){this.driver=n}get(n,e){return this.driver.get(n)??e}getNullable(n){return this.driver.get(n)}set(n,e){this.driver.set(n,e)}remove(n){this.driver.remove(n)}static \u0275fac=function(e){return new(e||r)(fn(On))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var en=class r{fsApi=s(ot);localState=s(lt);path=N("D:\\");currentPath=N("");entries=N([]);reloading=N(!1);isEditingPath=N(!1);showSystemFolders=N(!1);isCreateFolderModalVisible=N(!1);newFolderName=N("");segments=Pe(()=>{let n=this.currentPath()||this.path()||"";return this.buildSegments(n)});isRoot=Pe(()=>{let n=(this.currentPath()||this.path()||"").trim();if(!n||/^\\\\[^\\]+\\[^\\]+$/.test(n.replaceAll("/","\\")))return!0;let e=n.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(e)?!0:n.replaceAll("\\","/")==="/"});canUp=Pe(()=>!this.reloading()&&!this.isRoot());favorites=N(this.normalizeFavorites(this.localState.get($e.fs.explorer.favorites,[])));isCurFavorited=Pe(()=>{let n=this.normalizePath(this.currentPath()||this.path()||"");return n?this.favorites().some(e=>e.path===n):!1});toggleFavoriteCurrent(){let n=this.normalizePath(this.currentPath()||this.path()||"");if(!n)return;let e=this.favorites(),t=e.findIndex(i=>i.path===n),a;t>=0?a=e.slice(0,t).concat(e.slice(t+1)):a=[{path:n,label:this.buildFavoriteLabel(n),createdAt:Date.now()},...e],a=this.normalizeFavorites(a),this.favorites.set(a),this.persistFavorites(a)}openFavorite(n){n?.path&&(this.path.set(n.path),this.load())}removeFavorite(n){let e=this.normalizeFavorites(this.favorites().filter(t=>t.path!==n.path));this.favorites.set(e),this.persistFavorites(e)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(n){this.localState.set($e.fs.explorer.favorites,n)}normalizeFavorites(n){let e=new Map;for(let t of n||[]){let a=this.normalizePath(t?.path||"");a&&e.set(a,{path:a,label:String(t?.label||this.buildFavoriteLabel(a)).trim(),createdAt:Number(t?.createdAt||Date.now())})}return Array.from(e.values()).sort((t,a)=>a.createdAt-t.createdAt)}buildFavoriteLabel(n){let e=n.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(e))return e.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(e))return e;if(/^\\\\/.test(e)){let i=e.split("\\").filter(Boolean);return i[i.length-1]||e}let t=n.replaceAll("\\","/");if(t==="/")return"/";let a=t.split("/").filter(Boolean);return a[a.length-1]||t}load(n=!1){let e=(this.path()||"").trim();if(!e)return;let t=(this.currentPath()||"").trim();if(t&&this.normalizePath(t)===this.normalizePath(e)&&this.entries().length&&!n){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(e,this.showSystemFolders()).subscribe({next:a=>{this.currentPath.set(a.path),this.entries.set(a.entries),this.path.set(a.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(n=>!n),this.load()}editPath(){this.isEditingPath.update(n=>!n)}open(n){n.type==="dir"&&(this.path.set(n.fullPath),this.load())}up(){if(!this.canUp())return;let n=(this.currentPath()||this.path()||"").trim();if(!n)return;let e=this.normalizePath(n),t=e.replaceAll("/","\\"),a=/^\\\\[^\\]+\\[^\\]+/.test(t),i=/^[a-zA-Z]:\\/.test(t),l=a||i?"\\":"/";if(a){let T=t.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!T)return;let Y=`\\\\${T[1]}\\${T[2]}`;if(t===Y)return;let I=t.lastIndexOf("\\"),O=I<=Y.length?Y:t.slice(0,I);if(this.normalizePath(O)===this.normalizePath(this.currentPath()))return;this.path.set(O),this.load();return}if(i){let T=t.lastIndexOf("\\");if(T<=2){let I=`${t.slice(0,2)}\\`;if(this.normalizePath(I)===this.normalizePath(this.currentPath()))return;this.path.set(I),this.load();return}let Y=t.slice(0,T);if(this.normalizePath(Y)===this.normalizePath(this.currentPath()))return;this.path.set(Y),this.load();return}let c=e.replaceAll("\\","/");if(c==="/")return;let m=c.lastIndexOf("/"),v=m<=0?"/":c.slice(0,m);this.normalizePath(v)!==this.normalizePath(this.currentPath())&&(this.path.set(v),this.load())}jumpTo(n){n.disabled||(this.path.set(n.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let n=(this.newFolderName()||"").trim();if(!n)return;let e=this.currentPath()||this.path();this.fsApi.mkdir(e,n).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(n){let e=(n||"").trim();if(!e)return[];let t=/^[a-zA-Z]:[\\/]/.test(e)||/^[a-zA-Z]:$/.test(e),a=t?"\\":"/",i=t?e.replaceAll("/","\\"):e.replaceAll("\\","/"),o=t?i.slice(0,2):"/",l=i;if(t){let Y=i.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);Y&&(o=Y[1],l=Y[2]||"")}else l=i.startsWith("/")?i.slice(1):i;let c=l.split(t?/[\\]+/:/[\/]+/).filter(Boolean),m=[],v=t?`${o}\\`:"/";m.push({key:"root",label:o,fullPath:v,disabled:c.length===0});let T=v;for(let Y=0;Y<c.length;Y++){let I=c[Y];T=T.endsWith(a)?T+I:T+a+I;let O=Y===c.length-1,ze=O?T:T+a;m.push({key:`${Y}-${I}`,label:I,fullPath:ze,disabled:O})}return m}normalizePath(n){let e=(n||"").trim();if(!e)return"";let t=/^\\\\[^\\]+\\[^\\]+/.test(e.replaceAll("/","\\")),a=/^[a-zA-Z]:([\\/]|$)/.test(e),i=t||a,o=i?e.replaceAll("/","\\"):e.replaceAll("\\","/");if(a){let l=o.slice(0,2);if(o===l||o===`${l}\\`)return`${l}\\`}return!i&&o==="/"?"/":(o=o.replace(/[\\\/]+$/,""),o)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var Di=["nz-menu-item",""],ur=["*"],Ti=["nz-submenu-inline-child",""];function Yi(r,n){}var xi=["nz-submenu-none-inline-child",""];function zi(r,n){}var bi=["nz-submenu-title",""];function Mi(r,n){if(r&1&&f(0,"nz-icon",0),r&2){let e=p();g("nzType",e.nzIcon)}}function wi(r,n){if(r&1&&($(0),h(1,"span",4),E(2),u(),G()),r&2){let e=p();d(2),et(e.nzTitle)}}function Fi(r,n){r&1&&f(0,"nz-icon",5)}function Ei(r,n){r&1&&f(0,"nz-icon",6)}function Ii(r,n){if(r&1&&(h(0,"span",2),x(1,Fi,1,0,"nz-icon",5)(2,Ei,1,0,"nz-icon",6),u()),r&2){let e,t=p();d(),z((e=t.dir)==="rtl"?1:2)}}function Oi(r,n){r&1&&f(0,"span",3)}var Ai=["nz-submenu",""],Ni=[[["","title",""]],"*"],ji=["[title]","*"];function Ri(r,n){r&1&&De(0)}function Li(r,n){if(r&1&&f(0,"div",3),r&2){let e=p(),t=We(6);g("mode",e.mode)("nzOpen",e.nzOpen)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("menuClass",e.nzMenuClassName)("templateOutlet",t)}}function Vi(r,n){if(r&1){let e=M();h(0,"div",6),S("subMenuMouseState",function(a){_(e);let i=p(2);return k(i.setMouseEnterState(a))}),u()}if(r&2){let e=p(2),t=We(6);g("theme",e.theme)("mode",e.mode)("nzOpen",e.nzOpen)("position",e.position)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("nzTriggerSubMenuAction",e.nzTriggerSubMenuAction)("templateOutlet",t)("menuClass",e.nzMenuClassName)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}function Hi(r,n){if(r&1){let e=M();F(0,Vi,1,11,"ng-template",5),S("positionChange",function(a){_(e);let i=p();return k(i.onPositionChange(a))})("overlayOutsideClick",function(){_(e);let a=p();return k(a.setMouseEnterState(!1))})}if(r&2){let e=p(),t=We(1);g("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayWidth",e.triggerWidth)("cdkConnectedOverlayOpen",e.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Bi(r,n){r&1&&De(0,1)}var Ui=["titleElement"],Ki=["nz-menu-group",""],Wi=["*",[["","title",""]]],qi=["*","[title]"];function $i(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p();d(),et(e.nzTitle)}}function Gi(r,n){r&1&&De(0,1)}var Se=(()=>{class r{descendantMenuItemClick$=new y;childMenuItemClick$=new y;theme$=new B("light");mode$=new B("vertical");inlineIndent$=new B(24);isChildSubMenuOpen$=new B(!1);onDescendantMenuItemClick(e){this.descendantMenuItemClick$.next(e)}onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setMode(e){this.mode$.next(e)}setTheme(e){this.theme$.next(e)}setInlineIndent(e){this.inlineIndent$.next(e)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),ve=new ae(""),gr=new ae(""),An=(()=>{class r{nzMenuService=s(Se);nzHostSubmenuService=s(r,{optional:!0,skipSelf:!0});mode$=this.nzMenuService.mode$.pipe(V(e=>e==="inline"?"inline":e==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal"));level=1;isMenuInsideDropDown=s(ve);isCurrentSubMenuOpen$=new B(!1);isChildSubMenuOpen$=new B(!1);isMouseEnterTitleOrOverlay$=new y;childMenuItemClick$=new y;onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setOpenStateWithoutDebounce(e){this.isCurrentSubMenuOpen$.next(e)}setMouseEnterTitleOrOverlayState(e){this.isMouseEnterTitleOrOverlay$.next(e)}constructor(){this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let e=this.childMenuItemClick$.pipe(da(()=>this.mode$),U(i=>i!=="inline"||this.isMenuInsideDropDown),V(()=>!1)),t=ie(this.isMouseEnterTitleOrOverlay$,e);Ve([this.isChildSubMenuOpen$,t]).pipe(V(([i,o])=>i||o),Ft(150)).pipe(Et(),C()).subscribe(i=>{this.setOpenStateWithoutDebounce(i),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(i):this.nzMenuService.isChildSubMenuOpen$.next(i)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),nn=(()=>{class r{nzMenuService=s(Se);destroyRef=s(K);cdr=s(q);nzSubmenuService=s(An,{optional:!0});directionality=s(Q);routerLink=s(Dn,{optional:!0});router=s(Lt,{optional:!0});isMenuInsideDropDown=s(ve);level=this.nzSubmenuService?this.nzSubmenuService.level+1:1;selected$=new y;inlinePaddingLeft=null;dir="ltr";nzPaddingLeft;nzDisabled=!1;nzSelected=!1;nzDanger=!1;nzMatchRouterExact=!1;nzMatchRouter=!1;listOfRouterLink;clickMenuItem(e){if(this.nzDisabled){e.preventDefault(),e.stopPropagation();return}this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this)}setSelectedState(e){this.nzSelected=e,this.selected$.next(e)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let e=this.hasActiveLinks();this.nzSelected!==e&&(this.nzSelected=e,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.routerLink&&e(this.routerLink)||this.listOfRouterLink.some(e)}isLinkActive(e){return t=>e.isActive(t.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(){this.router?.events.pipe(C(),U(e=>e instanceof xa)).subscribe(()=>this.updateRouterActive())}ngOnInit(){Ve([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.inlinePaddingLeft=e==="inline"?this.level*t:null}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(C(this.destroyRef)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(e){let{nzSelected:t}=e;t&&this.setSelectedState(this.nzSelected)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-menu-item",""]],contentQueries:function(t,a,i){if(t&1&&_e(i,Dn,5),t&2){let o;R(o=L())&&(a.listOfRouterLink=o)}},hostVars:20,hostBindings:function(t,a){t&1&&S("click",function(o){return a.clickMenuItem(o)}),t&2&&(he("padding-left",a.dir==="rtl"?null:a.nzPaddingLeft||a.inlinePaddingLeft,"px")("padding-right",a.dir==="rtl"?a.nzPaddingLeft||a.inlinePaddingLeft:null,"px"),j("ant-dropdown-menu-item",a.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",a.isMenuInsideDropDown&&a.nzSelected)("ant-dropdown-menu-item-danger",a.isMenuInsideDropDown&&a.nzDanger)("ant-dropdown-menu-item-disabled",a.isMenuInsideDropDown&&a.nzDisabled)("ant-menu-item",!a.isMenuInsideDropDown)("ant-menu-item-selected",!a.isMenuInsideDropDown&&a.nzSelected)("ant-menu-item-danger",!a.isMenuInsideDropDown&&a.nzDanger)("ant-menu-item-disabled",!a.isMenuInsideDropDown&&a.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",Ma],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzSelected:[2,"nzSelected","nzSelected",P],nzDanger:[2,"nzDanger","nzDanger",P],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",P],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",P]},exportAs:["nzMenuItem"],features:[oe],attrs:Di,ngContentSelectors:ur,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(t,a){t&1&&(Ke(),ka(0,"span",0),De(1),Pa())},encapsulation:2,changeDetection:0})}return r})(),Zi=(()=>{class r{elementRef=s(re);renderer=s(Fe);directionality=s(Q);destroyRef=s(K);templateOutlet=null;menuClass="";mode="vertical";nzOpen=!1;listOfCacheClassName=[];expandState="collapsed";dir="ltr";calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngOnChanges(e){let{mode:t,nzOpen:a,menuClass:i}=e;(t||a)&&this.calcMotionState(),i&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.forEach(o=>{o&&this.renderer.removeClass(this.elementRef.nativeElement,o)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.forEach(o=>{o&&this.renderer.addClass(this.elementRef.nativeElement,o)})))}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(t,a){t&2&&(Xe("@collapseMotion",a.expandState),j("ant-menu-rtl",a.dir==="rtl"))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[oe],attrs:Ti,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,a){t&1&&F(0,Yi,0,0,"ng-template",0),t&2&&g("ngTemplateOutlet",a.templateOutlet)},dependencies:[Sn],encapsulation:2,data:{animation:[qa]},changeDetection:0})}return r})(),Qi=(()=>{class r{directionality=s(Q);destroyRef=s(K);menuClass="";theme="light";templateOutlet=null;isMenuInsideDropDown=!1;mode="vertical";nzTriggerSubMenuAction="hover";position="right";nzDisabled=!1;nzOpen=!1;subMenuMouseState=new D;expandState="collapsed";dir="ltr";setMouseState(e){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(e)}calcMotionState(){this.nzOpen?this.mode==="horizontal"?this.expandState="bottom":this.mode==="vertical"&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e})}ngOnChanges(e){let{mode:t,nzOpen:a}=e;(t||a)&&this.calcMotionState()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(t,a){t&1&&S("mouseenter",function(){return a.setMouseState(!0)})("mouseleave",function(){return a.setMouseState(!1)}),t&2&&(Xe("@slideMotion",a.expandState)("@zoomBigMotion",a.expandState),j("ant-menu-light",a.theme==="light")("ant-menu-dark",a.theme==="dark")("ant-menu-submenu-placement-bottom",a.mode==="horizontal")("ant-menu-submenu-placement-right",a.mode==="vertical"&&a.position==="right")("ant-menu-submenu-placement-left",a.mode==="vertical"&&a.position==="left")("ant-menu-submenu-rtl",a.dir==="rtl"))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[oe],attrs:xi,decls:2,vars:17,consts:[[3,"ngTemplateOutlet"]],template:function(t,a){t&1&&(h(0,"div"),F(1,zi,0,0,"ng-template",0),u()),t&2&&(se(a.menuClass),j("ant-dropdown-menu",a.isMenuInsideDropDown)("ant-menu",!a.isMenuInsideDropDown)("ant-dropdown-menu-vertical",a.isMenuInsideDropDown)("ant-menu-vertical",!a.isMenuInsideDropDown)("ant-dropdown-menu-sub",a.isMenuInsideDropDown)("ant-menu-sub",!a.isMenuInsideDropDown)("ant-menu-rtl",a.dir==="rtl"),d(),g("ngTemplateOutlet",a.templateOutlet))},dependencies:[Sn],encapsulation:2,data:{animation:[Ga,Zt]},changeDetection:0})}return r})(),fr=(()=>{class r{destroyRef=s(K);cdr=s(q);directionality=s(Q);nzIcon=null;nzTitle=null;isMenuInsideDropDown=!1;nzDisabled=!1;paddingLeft=null;mode="vertical";nzTriggerSubMenuAction="hover";toggleSubMenu=new D;subMenuMouseState=new D;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()})}setMouseState(e){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(e)}clickTitle(){(this.mode==="inline"||this.nzTriggerSubMenuAction==="click")&&!this.nzDisabled&&(this.subMenuMouseState.next(!0),this.toggleSubMenu.emit())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(t,a){t&1&&S("click",function(){return a.clickTitle()})("mouseenter",function(){return a.setMouseState(!0)})("mouseleave",function(){return a.setMouseState(!1)}),t&2&&(he("padding-left",a.dir==="rtl"?null:a.paddingLeft,"px")("padding-right",a.dir==="rtl"?a.paddingLeft:null,"px"),j("ant-dropdown-menu-submenu-title",a.isMenuInsideDropDown)("ant-menu-submenu-title",!a.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:bi,ngContentSelectors:ur,decls:5,vars:3,consts:[[3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(t,a){t&1&&(Ke(),x(0,Mi,1,1,"nz-icon",0),F(1,wi,3,1,"ng-container",1),De(2),x(3,Ii,3,1,"span",2)(4,Oi,1,0,"span",3)),t&2&&(z(a.nzIcon?0:-1),d(),g("nzStringTemplateOutlet",a.nzTitle),d(2),z(a.isMenuInsideDropDown?3:4))},dependencies:[fe,ge,de,ce],encapsulation:2,changeDetection:0})}return r})(),hr=[J.rightTop,J.right,J.rightBottom,J.leftTop,J.left,J.leftBottom],Ji=[J.bottomLeft,J.bottomRight,J.topRight,J.topLeft],vr=(()=>{class r{nzSubmenuService=s(An);isMenuInsideDropDown=s(ve);noAnimation=s(rt,{optional:!0,host:!0});directionality=s(Q);destroyRef=s(K);nzMenuService=s(Se);cdr=s(q);platform=s(Ut);nzMenuClassName="";nzPaddingLeft=null;nzTitle=null;nzIcon=null;nzTriggerSubMenuAction="hover";nzOpen=!1;nzDisabled=!1;nzPlacement="bottomLeft";nzOpenChange=new D;cdkOverlayOrigin=null;listOfNzSubMenuComponent=null;listOfNzMenuItemDirective=null;level=this.nzSubmenuService.level;position="right";triggerWidth=null;theme="light";mode="vertical";inlinePaddingLeft=null;overlayPositions=hr;isSelected=!1;isActive=!1;dir="ltr";setOpenStateWithoutDebounce(e){this.nzSubmenuService.setOpenStateWithoutDebounce(e)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(e){this.isActive=e,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(e)}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(e){let t=Qt(e);t==="rightTop"||t==="rightBottom"||t==="right"?this.position="right":(t==="leftTop"||t==="leftBottom"||t==="left")&&(this.position="left")}ngOnInit(){this.nzMenuService.theme$.pipe(C(this.destroyRef)).subscribe(e=>{this.theme=e,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(C(this.destroyRef)).subscribe(e=>{this.mode=e,e==="horizontal"?this.overlayPositions=[J[this.nzPlacement],...Ji]:e==="vertical"&&(this.overlayPositions=hr),this.cdr.markForCheck()}),Ve([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.inlinePaddingLeft=e==="inline"?this.level*t:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(C(this.destroyRef)).subscribe(e=>{this.isActive=e,e!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=e,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();let e=this.listOfNzMenuItemDirective,t=e.changes,a=ie(t,...e.map(i=>i.selected$));t.pipe(He(e),Je(()=>a),He(!0),V(()=>e.some(i=>i.nzSelected)),C(this.destroyRef)).subscribe(i=>{this.isSelected=i,this.cdr.markForCheck()})}ngOnChanges(e){let{nzOpen:t}=e;t&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-submenu",""]],contentQueries:function(t,a,i){if(t&1&&(_e(i,r,5),_e(i,nn,5)),t&2){let o;R(o=L())&&(a.listOfNzSubMenuComponent=o),R(o=L())&&(a.listOfNzMenuItemDirective=o)}},viewQuery:function(t,a){if(t&1&&le(Gt,7,re),t&2){let i;R(i=L())&&(a.cdkOverlayOrigin=i.first)}},hostVars:34,hostBindings:function(t,a){t&2&&j("ant-dropdown-menu-submenu",a.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",a.isMenuInsideDropDown&&a.nzDisabled)("ant-dropdown-menu-submenu-open",a.isMenuInsideDropDown&&a.nzOpen)("ant-dropdown-menu-submenu-selected",a.isMenuInsideDropDown&&a.isSelected)("ant-dropdown-menu-submenu-vertical",a.isMenuInsideDropDown&&a.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",a.isMenuInsideDropDown&&a.mode==="horizontal")("ant-dropdown-menu-submenu-inline",a.isMenuInsideDropDown&&a.mode==="inline")("ant-dropdown-menu-submenu-active",a.isMenuInsideDropDown&&a.isActive)("ant-menu-submenu",!a.isMenuInsideDropDown)("ant-menu-submenu-disabled",!a.isMenuInsideDropDown&&a.nzDisabled)("ant-menu-submenu-open",!a.isMenuInsideDropDown&&a.nzOpen)("ant-menu-submenu-selected",!a.isMenuInsideDropDown&&a.isSelected)("ant-menu-submenu-vertical",!a.isMenuInsideDropDown&&a.mode==="vertical")("ant-menu-submenu-horizontal",!a.isMenuInsideDropDown&&a.mode==="horizontal")("ant-menu-submenu-inline",!a.isMenuInsideDropDown&&a.mode==="inline")("ant-menu-submenu-active",!a.isMenuInsideDropDown&&a.isActive)("ant-menu-submenu-rtl",a.dir==="rtl")},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",nzOpen:[2,"nzOpen","nzOpen",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[ue([An]),oe],attrs:Ai,ngContentSelectors:ji,decls:7,vars:9,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","nzTriggerSubMenuAction"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","overlayOutsideClick","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","nzTriggerSubMenuAction","templateOutlet","menuClass","nzNoAnimation"]],template:function(t,a){if(t&1){let i=M();Ke(Ni),h(0,"div",2,0),S("subMenuMouseState",function(l){return _(i),k(a.setMouseEnterState(l))})("toggleSubMenu",function(){return _(i),k(a.toggleSubMenu())}),x(2,Ri,1,0),u(),x(3,Li,1,6,"div",3)(4,Hi,1,5,null,4),F(5,Bi,1,0,"ng-template",null,1,Da)}t&2&&(g("nzIcon",a.nzIcon)("nzTitle",a.nzTitle)("mode",a.mode)("nzDisabled",a.nzDisabled)("isMenuInsideDropDown",a.isMenuInsideDropDown)("paddingLeft",a.nzPaddingLeft||a.inlinePaddingLeft)("nzTriggerSubMenuAction",a.nzTriggerSubMenuAction),d(2),z(a.nzTitle?-1:2),d(),z(a.mode==="inline"?3:4))},dependencies:[fr,Zi,rt,Qi,Wa,Ka,Gt],encapsulation:2,changeDetection:0})}return r})();function Xi(){let r=s(Se,{skipSelf:!0,optional:!0}),n=s(gr);return r??n}function eo(){return s(ve,{skipSelf:!0,optional:!0})??!1}var yr=(()=>{class r{nzMenuService=s(Se);destroyRef=s(K);cdr=s(q);directionality=s(Q);listOfNzMenuItemDirective;isMenuInsideDropDown=s(ve);listOfNzSubMenuComponent;nzInlineIndent=24;nzTheme="light";nzMode="vertical";nzInlineCollapsed=!1;nzSelectable=!this.isMenuInsideDropDown;nzClick=new D;actualMode="vertical";dir="ltr";inlineCollapsed$=new B(this.nzInlineCollapsed);mode$=new B(this.nzMode);listOfOpenedNzSubMenuComponent=[];setInlineCollapsed(e){this.nzInlineCollapsed=e,this.inlineCollapsed$.next(e)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(e=>e.nzOpen),this.listOfNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){Ve([this.inlineCollapsed$,this.mode$]).pipe(C(this.destroyRef)).subscribe(([e,t])=>{this.actualMode=e?"vertical":t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(C(this.destroyRef)).subscribe(e=>{this.nzClick.emit(e),this.nzSelectable&&!e.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(t=>t.setSelectedState(t===e))}),this.dir=this.directionality.value,this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(C(this.destroyRef)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(e){let{nzInlineCollapsed:t,nzInlineIndent:a,nzTheme:i,nzMode:o}=e;t&&this.inlineCollapsed$.next(this.nzInlineCollapsed),a&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),i&&this.nzMenuService.setTheme(this.nzTheme),o&&(this.mode$.next(this.nzMode),!o.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(l=>l.setOpenStateWithoutDebounce(!1)))}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-menu",""]],contentQueries:function(t,a,i){if(t&1&&(_e(i,nn,5),_e(i,vr,5)),t&2){let o;R(o=L())&&(a.listOfNzMenuItemDirective=o),R(o=L())&&(a.listOfNzSubMenuComponent=o)}},hostVars:34,hostBindings:function(t,a){t&2&&j("ant-dropdown-menu",a.isMenuInsideDropDown)("ant-dropdown-menu-root",a.isMenuInsideDropDown)("ant-dropdown-menu-light",a.isMenuInsideDropDown&&a.nzTheme==="light")("ant-dropdown-menu-dark",a.isMenuInsideDropDown&&a.nzTheme==="dark")("ant-dropdown-menu-vertical",a.isMenuInsideDropDown&&a.actualMode==="vertical")("ant-dropdown-menu-horizontal",a.isMenuInsideDropDown&&a.actualMode==="horizontal")("ant-dropdown-menu-inline",a.isMenuInsideDropDown&&a.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",a.isMenuInsideDropDown&&a.nzInlineCollapsed)("ant-menu",!a.isMenuInsideDropDown)("ant-menu-root",!a.isMenuInsideDropDown)("ant-menu-light",!a.isMenuInsideDropDown&&a.nzTheme==="light")("ant-menu-dark",!a.isMenuInsideDropDown&&a.nzTheme==="dark")("ant-menu-vertical",!a.isMenuInsideDropDown&&a.actualMode==="vertical")("ant-menu-horizontal",!a.isMenuInsideDropDown&&a.actualMode==="horizontal")("ant-menu-inline",!a.isMenuInsideDropDown&&a.actualMode==="inline")("ant-menu-inline-collapsed",!a.isMenuInsideDropDown&&a.nzInlineCollapsed)("ant-menu-rtl",a.dir==="rtl")},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",P],nzSelectable:[2,"nzSelectable","nzSelectable",P]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[ue([{provide:gr,useClass:Se},{provide:Se,useFactory:Xi},{provide:ve,useFactory:eo}]),oe]})}return r})();function to(){return s(ve,{optional:!0,skipSelf:!0})??!1}var no=(()=>{class r{renderer=s(Fe);isMenuInsideDropDown=s(ve);nzTitle;titleElement;ngAfterViewInit(){let e=this.titleElement.nativeElement.nextElementSibling;if(e){let t=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(e,t)}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["","nz-menu-group",""]],viewQuery:function(t,a){if(t&1&&le(Ui,5),t&2){let i;R(i=L())&&(a.titleElement=i.first)}},hostVars:4,hostBindings:function(t,a){t&2&&j("ant-menu-item-group",!a.isMenuInsideDropDown)("ant-dropdown-menu-item-group",a.isMenuInsideDropDown)},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[ue([{provide:ve,useFactory:to}])],attrs:Ki,ngContentSelectors:qi,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(t,a){t&1&&(Ke(Wi),h(0,"div",null,0),F(2,$i,2,1,"ng-container",1),x(3,Gi,1,0),u(),De(4)),t&2&&(j("ant-menu-item-group-title",!a.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",a.isMenuInsideDropDown),d(2),g("nzStringTemplateOutlet",a.nzTitle),d(),z(a.nzTitle?-1:3))},dependencies:[de,ce],encapsulation:2,changeDetection:0})}return r})(),Us=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"]})}return r})(),an=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[vr,no,fr]})}return r})();var ro=["*"];function io(r,n){r&1&&f(0,"div",1)}function oo(r,n){if(r&1){let e=M();h(0,"div",0),S("@slideMotion.done",function(a){_(e);let i=p();return k(i.onAnimationEvent(a))})("mouseenter",function(){_(e);let a=p();return k(a.setMouseState(!0))})("mouseleave",function(){_(e);let a=p();return k(a.setMouseState(!1))}),x(1,io,1,0,"div",1),De(2),u()}if(r&2){let e=p();Te(e.nzOverlayStyle),se(e.nzOverlayClassName),j("ant-dropdown-rtl",e.dir==="rtl")("ant-dropdown-show-arrow",e.nzArrow)("ant-dropdown-placement-bottomLeft",e.placement==="bottomLeft")("ant-dropdown-placement-bottomRight",e.placement==="bottomRight")("ant-dropdown-placement-bottom",e.placement==="bottom")("ant-dropdown-placement-topLeft",e.placement==="topLeft")("ant-dropdown-placement-topRight",e.placement==="topRight")("ant-dropdown-placement-top",e.placement==="top"),g("@slideMotion",void 0)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation),d(),z(e.nzArrow?1:-1)}}var lo="dropDown",so=["bottomLeft","bottomRight","topRight","topLeft"],jn=r=>r==="topCenter"?"top":r==="bottomCenter"?"bottom":r,_r=(()=>{var t;let r,n=[],e=[];return t=class{nzConfigService=s(xe);renderer=s(Fe);viewContainerRef=s(Be);platform=s(Ut);destroyRef=s(K);_nzModuleName=lo;elementRef=s(re);injector=s(ye);portal;overlayRef=null;inputVisible$=new B(!1);nzTrigger$=new B("hover");overlayClose$=new y;nzDropdownMenu=null;nzTrigger="hover";nzMatchWidthElement=null;nzBackdrop=Qe(this,n,!1);nzClickHide=(Qe(this,e),!0);nzDisabled=!1;nzVisible=!1;nzArrow=!1;nzOverlayClassName="";nzOverlayStyle={};nzPlacement="bottomLeft";nzVisibleChange=new D;constructor(){this.destroyRef.onDestroy(()=>{this.overlayRef?.dispose(),this.overlayRef=null})}setDropdownMenuValue(i,o){this.nzDropdownMenu?.setValue(i,o)}ngAfterViewInit(){if(this.nzDropdownMenu){let i=this.elementRef.nativeElement,o=ie(wt(i,"mouseenter").pipe(V(()=>!0)),wt(i,"mouseleave").pipe(V(()=>!1))),l=this.nzDropdownMenu.mouseState$,c=ie(l,o),m=wt(i,"click").pipe(V(()=>!this.nzVisible)),v=this.nzTrigger$.pipe(Je(O=>O==="hover"?c:O==="click"?m:sa)),T=this.nzDropdownMenu.descendantMenuItemClick$.pipe(U(()=>this.nzClickHide),V(()=>!1)),Y=ie(v,T,this.overlayClose$).pipe(U(()=>!this.nzDisabled)),I=ie(this.inputVisible$,Y);Ve([I,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(V(([O,ze])=>O||ze),Ft(150),Et(),U(()=>this.platform.isBrowser),C(this.destroyRef)).subscribe(O=>{let H=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:i).getBoundingClientRect().width;if(this.nzVisible!==O&&this.nzVisibleChange.emit(O),this.nzVisible=O,O){let Re=Ua(this.injector,this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");if(Re.positionChanges.pipe(U(()=>!!this.overlayRef),V(A=>Qt(A)),C(this.destroyRef)).subscribe(A=>{A&&this.setDropdownMenuValue("placement",jn(A))}),!this.overlayRef)this.overlayRef=at(this.injector,{positionStrategy:Re,minWidth:H,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:Ba(this.injector)}),ie(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(U(A=>!this.elementRef.nativeElement.contains(A.target))),this.overlayRef.keydownEvents().pipe(U(A=>A.keyCode===27&&!Wt(A)))).pipe(C(this.destroyRef)).subscribe(()=>{this.overlayClose$.next(!1)});else{let A=this.overlayRef.getConfig();A.minWidth=H}let Ge=[this.nzPlacement,...so].map(A=>this.nzArrow?Qa(J[A],Za[A]):J[A]);Re.withPositions(Ge),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new qt(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.setDropdownMenuValue("nzArrow",this.nzArrow),this.setDropdownMenuValue("placement",jn(this.nzPlacement)),this.overlayRef.attach(this.portal)}else this.overlayRef?.detach()}),this.nzDropdownMenu.animationStateChange$.pipe(C(this.destroyRef)).subscribe(O=>{O.toState==="void"&&(this.overlayRef?.dispose(),this.overlayRef=null)})}}ngOnChanges(i){let{nzVisible:o,nzDisabled:l,nzOverlayClassName:c,nzOverlayStyle:m,nzTrigger:v,nzArrow:T,nzPlacement:Y}=i;if(v&&this.nzTrigger$.next(this.nzTrigger),o&&this.inputVisible$.next(this.nzVisible),l){let I=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(I,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(I,"disabled")}c&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),m&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),T&&this.setDropdownMenuValue("nzArrow",this.nzArrow),Y&&this.setDropdownMenuValue("placement",jn(this.nzPlacement))}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[Bt()],Mt(null,null,r,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,l)=>{o.nzBackdrop=l}},metadata:i},n,e),i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),Ze(t,"\u0275fac",function(o){return new(o||t)}),Ze(t,"\u0275dir",W({type:t,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",P],nzClickHide:[2,"nzClickHide","nzClickHide",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzVisible:[2,"nzVisible","nzVisible",P],nzArrow:[2,"nzArrow","nzArrow",P],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[oe]})),t})(),co=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();var kr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nz-button","","nz-dropdown",""]]})}return r})(),Pr=(()=>{class r{cdr=s(q);elementRef=s(re);renderer=s(Fe);viewContainerRef=s(Be);directionality=s(Q);destroyRef=s(K);noAnimation=s(rt,{host:!0,optional:!0});nzMenuService=s(Se);isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;mouseState$=new B(!1);animationStateChange$=new D;templateRef;nzOverlayClassName="";nzOverlayStyle={};nzArrow=!1;placement="bottomLeft";dir="ltr";onAnimationEvent(e){this.animationStateChange$.emit(e)}setMouseState(e){this.mouseState$.next(e)}setValue(e,t){this[e]=t,this.cdr.markForCheck()}ngOnInit(){this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-dropdown-menu"]],viewQuery:function(t,a){if(t&1&&le(me,7),t&2){let i;R(i=L())&&(a.templateRef=i.first)}},exportAs:["nzDropdownMenu"],features:[ue([Se,{provide:ve,useValue:!0}])],ngContentSelectors:ro,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","nzNoAnimation"],[1,"ant-dropdown-arrow"]],template:function(t,a){t&1&&(Ke(),F(0,oo,3,24,"ng-template"))},dependencies:[rt],encapsulation:2,data:{animation:[Zt]},changeDetection:0})}return r})(),Sr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[co,an]})}return r})(),vc=[new Pt({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new Pt({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new Pt({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new Pt({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})];var mo={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",selectNone:"Clear all data"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Form:{optional:"(optional)"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Image:{preview:"Preview"},CronExpression:{cronError:"Invalid cron expression",second:"second",minute:"minute",hour:"hour",day:"day",month:"month",week:"week"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},CheckList:{checkList:"Check List",checkListFinish:"You have successfully completed the list!",checkListClose:"Close",checkListFooter:"Check list is no longer required",checkListCheck:"Do you want to close the list?",ok:"OK",cancel:"Cancel",checkListCheckOther:"No longer required to show"}},ho={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},DatePicker:{lang:{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"],locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},timePickerLocale:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]}},TimePicker:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},Calendar:{lang:{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"],locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},timePickerLocale:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]}},global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectNone:"\u6E05\u7A7A\u6240\u6709"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Form:{optional:"(\u53EF\u9009)"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Image:{preview:"\u9884\u89C8"},CronExpression:{cronError:"cron \u8868\u8FBE\u5F0F\u4E0D\u5408\u6CD5",second:"\u79D2",minute:"\u5206\u949F",hour:"\u5C0F\u65F6",day:"\u65E5",month:"\u6708",week:"\u5468"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},CheckList:{checkList:"\u4EFB\u52A1\u6E05\u5355",checkListFinish:"\u4F60\u5DF2\u6210\u529F\u5B8C\u6210\u4EFB\u52A1\u6E05\u5355\uFF01",checkListClose:"\u5173\u95ED",checkListFooter:"\u4E0D\u9700\u8981\u64CD\u4F5C\u6307\u5F15",checkListCheck:"\u4F60\u8981\u5173\u95ED\u64CD\u4F5C\u6E05\u5355\u5417",ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",checkListCheckOther:"\u4EE5\u540E\u4E0D\u518D\u9700\u8981\u64CD\u4F5C\u6E05\u5355"}},Ln=new ae("");function Tc(r){return ga([typeof r=="function"?{provide:Ln,useFactory:r}:{provide:Ln,useValue:r}])}var uo=new ae(""),rn=(()=>{class r{_locale;_change=new B(this._locale);dateLocale;get localeChange(){return this._change.asObservable()}constructor(){this.setLocale(s(Ln,{optional:!0})||ho),this.setDateLocale(s(uo,{optional:!0}))}translate(e,t){let a=this._getObjectPath(this._locale,e);return typeof a=="string"?(t&&Object.keys(t).forEach(i=>a=a.replace(new RegExp(`%${i}%`,"g"),t[i])),a):e}setLocale(e){this._locale&&this._locale.locale===e.locale||(this._locale=e,this._change.next(e))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(e){this.dateLocale=e}getDateLocale(){return this.dateLocale}getLocaleData(e,t){let a=e?this._getObjectPath(this._locale,e):this._locale;return!a&&!t&&Vt(`Missing translations for "${e}" in language "${this._locale.locale}".
2
2
  You can use "NzI18nService.setLocale" as a temporary fix.
3
3
  Welcome to submit a pull request to help us optimize the translations!
4
- https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),a||t||this._getObjectPath(mo,e)||{}}_getObjectPath(e,t){let a=e,i=t.split("."),o=i.length,l=0;for(;a&&l<o;)a=a[i[l++]];return l===o?a:null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Yc=(()=>{class r{_locale=s(an);transform(e,t){return this._locale.translate(e,t)}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=ut({name:"nzI18n",type:r,pure:!0})}return r})(),xc=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();var Cr=class r{static formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(n,e=0,t="B",a){if(!(bn(n)&&bn(e)&&e%1===0&&e>=0))return n;let i=n,o=t;for(;o!=="B";)i*=1024,o=r.formats[o].prev;if(a){let l=r.formats[a],c=Mn(r.calculateResult(l,i),e);return r.formatResult(c,a)}for(let l in r.formats)if(r.formats.hasOwnProperty(l)){let c=r.formats[l];if(i<c.max){let m=Mn(r.calculateResult(c,i),e);return r.formatResult(m,l)}}}static formatResult(n,e){return`${n} ${e}`}static calculateResult(n,e){let t=n.prev?r.formats[n.prev]:void 0;return t?e/t.max:e}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=ut({name:"nzBytes",type:r,pure:!0})},Ln=(()=>{class r{transform(e,t="px"){return typeof e=="number"?`${e}${t}`:e}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=ut({name:"nzToCssUnit",type:r,pure:!0})}return r})();var Vn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();function Un(r){let n=r.cloneNode(!0),e=n.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();n.removeAttribute("id");for(let a=0;a<e.length;a++)e[a].removeAttribute("id");return t==="canvas"?Yr(r,n):(t==="input"||t==="select"||t==="textarea")&&Tr(r,n),Dr("canvas",r,n,Yr),Dr("input, textarea, select",r,n,Tr),n}function Dr(r,n,e,t){let a=n.querySelectorAll(r);if(a.length){let i=e.querySelectorAll(r);for(let o=0;o<a.length;o++)t(a[o],i[o])}}var fo=0;function Tr(r,n){n.type!=="file"&&(n.value=r.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${fo++}`)}function Yr(r,n){let e=n.getContext("2d");if(e)try{e.drawImage(r,0,0)}catch{}}function Qn(r){let n=r.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function Kn(r,n,e){let{top:t,bottom:a,left:i,right:o}=r;return e>=t&&e<=a&&n>=i&&n<=o}function vo(r,n){let e=n.left<r.left,t=n.left+n.width>r.right,a=n.top<r.top,i=n.top+n.height>r.bottom;return e||t||a||i}function Dt(r,n,e){r.top+=n,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function xr(r,n,e,t){let{top:a,right:i,bottom:o,left:l,width:c,height:m}=r,v=c*n,T=m*n;return t>a-T&&t<o+T&&e>l-v&&e<i+v}var rn=class{_document;positions=new Map;constructor(n){this._document=n}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Qn(e)})})}handleScroll(n){let e=ft(n),t=this.positions.get(e);if(!t)return null;let a=t.scrollPosition,i,o;if(e===this._document){let m=this.getViewportScrollPosition();i=m.top,o=m.left}else i=e.scrollTop,o=e.scrollLeft;let l=a.top-i,c=a.left-o;return this.positions.forEach((m,v)=>{m.clientRect&&e!==v&&e.contains(v)&&Dt(m.clientRect,l,c)}),a.top=i,a.left=o,{top:l,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function jr(r,n){let e=r.rootNodes;if(e.length===1&&e[0].nodeType===n.ELEMENT_NODE)return e[0];let t=n.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function Jn(r,n,e){for(let t in n)if(n.hasOwnProperty(t)){let a=n[t];a?r.setProperty(t,a,e?.has(t)?"important":""):r.removeProperty(t)}return r}function st(r,n){let e=n?"":"none";Jn(r.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zr(r,n,e){Jn(r.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function on(r,n){return n&&n!="none"?r+" "+n:r}function br(r,n){r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,r.style.transform=Tt(n.left,n.top)}function Tt(r,n){return`translate3d(${Math.round(r)}px, ${Math.round(n)}px, 0)`}function Mr(r){let n=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*n}function yo(r){let n=getComputedStyle(r),e=Hn(n,"transition-property"),t=e.find(l=>l==="transform"||l==="all");if(!t)return 0;let a=e.indexOf(t),i=Hn(n,"transition-duration"),o=Hn(n,"transition-delay");return Mr(i[a])+Mr(o[a])}function Hn(r,n){return r.getPropertyValue(n).split(",").map(t=>t.trim())}var _o=new Set(["position"]),Wn=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(n,e,t,a,i,o,l,c,m,v){this._document=n,this._rootElement=e,this._direction=t,this._initialDomRect=a,this._previewTemplate=i,this._previewClass=o,this._pickupPositionOnPage=l,this._initialTransform=c,this._zIndex=m,this._renderer=v}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),wr(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return yo(this._preview)}addEventListener(n,e){return this._renderer.listen(this._preview,n,e)}_createPreview(){let n=this._previewTemplate,e=this._previewClass,t=n?n.template:null,a;if(t&&n){let i=n.matchSize?this._initialDomRect:null,o=n.viewContainer.createEmbeddedView(t,n.context);o.detectChanges(),a=jr(o,this._document),this._previewEmbeddedView=o,n.matchSize?br(a,i):a.style.transform=Tt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=Un(this._rootElement),br(a,this._initialDomRect),this._initialTransform&&(a.style.transform=this._initialTransform);return Jn(a.style,{"pointer-events":"none",margin:wr(a)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},_o),st(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("popover","manual"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(i=>a.classList.add(i)):a.classList.add(e)),a}};function wr(r){return"showPopover"in r}var ko={passive:!0},Fr={passive:!1},Po={passive:!1,capture:!0},So=800,Er="cdk-drag-placeholder",Ir=new Set(["position"]),qn=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=N(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new y;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Le.EMPTY;_pointerUpSubscription=Le.EMPTY;_scrollSubscription=Le.EMPTY;_resizeSubscription=Le.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(e=>st(e,n)))}_disabled=!1;beforeStarted=new y;started=new y;released=new y;ended=new y;entered=new y;exited=new y;dropped=new y;moved=this._moveEvents;data;constrainPosition;constructor(n,e,t,a,i,o,l){this._config=e,this._document=t,this._ngZone=a,this._viewportRuler=i,this._dragDropRegistry=o,this._renderer=l,this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new rn(t),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(t=>Ye(t)),this._handles.forEach(t=>st(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let e=Ye(n);if(e!==this._rootElement){this._removeRootElementListeners();let t=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"mousedown",this._pointerDown,Fr),t.listen(e,"touchstart",this._pointerDown,ko),t.listen(e,"dragstart",this._nativeDragStart,Fr)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Ye(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&vo(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),t=0,a=0;e.left<n.left?t=n.left-e.left:e.right>n.right&&(t=n.right-e.right),e.top<n.top?a=n.top-e.top:e.bottom>n.bottom&&(a=n.bottom-e.bottom);let i=this._activeTransform.x,o=this._activeTransform.y,l=i+t,c=o+a;this._rootElement.style.transform=Tt(l,c),this._activeTransform={x:l,y:c},this._passiveTransform={x:l,y:c}}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),st(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),st(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let e=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let a=Math.abs(e.x-this._pickupPositionOnPage.x),i=Math.abs(e.y-this._pickupPositionOnPage.y);if(a+i>=this._config.dragStartThreshold){let l=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),c=this._dropContainer;if(!l){this._endDragSequence(n);return}(!c||!c.isDragging()&&!c.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let a=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=t.x-a.x+this._passiveTransform.x,i.y=t.y-a.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:n,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){St(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Co,Po)}),t){let a=this._rootElement,i=a.parentNode,o=this._placeholder=this._createPlaceholderElement(),l=this._marker=this._marker||this._document.createComment("");i.insertBefore(l,a),this._initialTransform=a.style.transform||"",this._preview=new Wn(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,e)),zr(a,!1,Ir),this._document.body.appendChild(i.replaceChild(o,a)),this.started.next({source:this,event:n}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),a=St(e),i=!a&&e.button!==0,o=this._rootElement,l=ft(e),c=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+So>Date.now(),m=a?Oa(e):Ia(e);if(l&&l.draggable&&e.type==="mousedown"&&e.preventDefault(),t||i||c||m)return;if(this._handles.length){let Y=o.style;this._rootElementTapHighlight=Y.webkitTapHighlightColor||"",Y.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Y=>this._updateOnScroll(Y)),this._boundaryElement&&(this._boundaryRect=Qn(this._boundaryElement));let v=this._previewTemplate;this._pickupPositionInElement=v&&v.template&&!v.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);let T=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:T.x,y:T.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){zr(this._rootElement,!0,Ir),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(n),i=this._getDragDistance(a),o=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:i,dropPoint:a,event:n}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:i,dropPoint:a,event:n}),e.drop(this,t,this._initialIndex,this._initialContainer,o,i,a,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:t,y:a}){let i=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),l=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(i,this._dropContainer,l),this._dropContainer=i,this._dropContainer.enter(this,n,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let a=l=>{(!l||this._preview&&ft(l)===this._preview.element&&l.propertyName==="transform")&&(o(),t(),clearTimeout(i))},i=setTimeout(a,e*1.5),o=this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,e=n?n.template:null,t;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),t=jr(this._placeholderRef,this._document)):t=Un(this._rootElement),t.style.pointerEvents="none",t.classList.add(Er),t}_getPointerPositionInElement(n,e,t){let a=e===this._rootElement?null:e,i=a?a.getBoundingClientRect():n,o=St(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition(),c=o.pageX-i.left-l.left,m=o.pageY-i.top-l.top;return{x:i.left-n.left+c,y:i.top-n.top+m}}_getPointerPositionOnPage(n){let e=this._getViewportScrollPosition(),t=St(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,a=t.pageX-e.left,i=t.pageY-e.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let l=this._ownerSVGElement.createSVGPoint();return l.x=a,l.y=i,l.matrixTransform(o.inverse())}}return{x:a,y:i}}_getConstrainedPointerPosition(n){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:a}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||e==="x"?a=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,l=this._boundaryRect,{width:c,height:m}=this._getPreviewRect(),v=l.top+o,T=l.bottom-(m-o),Y=l.left+i,I=l.right-(c-i);t=Or(t,Y,I),a=Or(a,v,T)}return{x:t,y:a}}_updatePointerDirectionDelta(n){let{x:e,y:t}=n,a=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-i.x),l=Math.abs(t-i.y);return o>this._config.pointerDirectionChangeThreshold&&(a.x=e>i.x?1:-1,i.x=e),l>this._config.pointerDirectionChangeThreshold&&(a.y=t>i.y?1:-1,i.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,st(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,e){let t=1/this.scale,a=Tt(n*t,e*t),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=on(a,this._initialTransform)}_applyPreviewTransform(n,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,a=Tt(n,e);this._preview.setTransform(on(a,t))}_getDragDistance(n){let e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(n===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(a.width===0&&a.height===0||t.width===0&&t.height===0)return;let i=a.left-t.left,o=t.right-a.right,l=a.top-t.top,c=t.bottom-a.bottom;a.width>t.width?(i>0&&(n+=i),o>0&&(n-=o)):n=0,a.height>t.height?(l>0&&(e+=l),c>0&&(e-=c)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){let e=this.dragStartDelay;return typeof e=="number"?e:St(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){let e=this._parentPositions.handleScroll(n);if(e){let t=ft(n);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Dt(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Ut(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){let t=this._previewContainer||"global";if(t==="parent")return n;if(t==="global"){let a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return Ye(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}_conditionallyInsertAnchor(n,e,t){if(n===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let a=this._anchor??=Un(this._placeholder);a.classList.remove(Er),a.classList.add("cdk-drag-anchor"),a.style.transform="",t?t.before(a):Ye(e.element).appendChild(a)}}};function Or(r,n,e){return Math.max(n,Math.min(e,r))}function St(r){return r.type[0]==="t"}function Co(r){r.preventDefault()}function Rr(r,n,e){let t=Ar(n,r.length-1),a=Ar(e,r.length-1);if(t===a)return;let i=r[t],o=a<t?-1:1;for(let l=t;l!==a;l+=o)r[l]=r[l+o];r[a]=i}function Ar(r,n){return Math.max(0,Math.min(n,r))}var ln=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(n){this._dragDropRegistry=n}_previousSwap={drag:null,delta:0,overlaps:!1};start(n){this.withItems(n)}sort(n,e,t,a){let i=this._itemPositions,o=this._getItemIndexFromPointerPosition(n,e,t,a);if(o===-1&&i.length>0)return null;let l=this.orientation==="horizontal",c=i.findIndex(H=>H.drag===n),m=i[o],v=i[c].clientRect,T=m.clientRect,Y=c>o?1:-1,I=this._getItemOffsetPx(v,T,Y),O=this._getSiblingOffsetPx(c,i,Y),ze=i.slice();return Rr(i,c,o),i.forEach((H,Re)=>{if(ze[Re]===H)return;let Ge=H.drag===n,A=Ge?I:O,zt=Ge?n.getPlaceholderElement():H.drag.getRootElement();H.offset+=A;let bt=Math.round(H.offset*(1/H.drag.scale));l?(zt.style.transform=on(`translate3d(${bt}px, 0, 0)`,H.initialTransform),Dt(H.clientRect,0,A)):(zt.style.transform=on(`translate3d(0, ${bt}px, 0)`,H.initialTransform),Dt(H.clientRect,A,0))}),this._previousSwap.overlaps=Kn(T,e,t),this._previousSwap.drag=m.drag,this._previousSwap.delta=l?a.x:a.y,{previousIndex:c,currentIndex:o}}enter(n,e,t,a){let i=a==null||a<0?this._getItemIndexFromPointerPosition(n,e,t):a,o=this._activeDraggables,l=o.indexOf(n),c=n.getPlaceholderElement(),m=o[i];if(m===n&&(m=o[i+1]),!m&&(i==null||i===-1||i<o.length-1)&&this._shouldEnterAsFirstChild(e,t)&&(m=o[0]),l>-1&&o.splice(l,1),m&&!this._dragDropRegistry.isDragging(m)){let v=m.getRootElement();v.parentElement.insertBefore(c,v),o.splice(i,0,n)}else this._element.appendChild(c),o.push(n);c.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let e=n.getRootElement();if(e){let t=this._itemPositions.find(a=>a.drag===n)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return this._getVisualItemPositions().findIndex(e=>e.drag===n)}getItemAtIndex(n){return this._getVisualItemPositions()[n]?.drag||null}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:t})=>{Dt(t,n,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Qn(t)}}).sort((e,t)=>n?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(n,e,t){let a=this.orientation==="horizontal",i=a?e.left-n.left:e.top-n.top;return t===-1&&(i+=a?e.width-n.width:e.height-n.height),i}_getSiblingOffsetPx(n,e,t){let a=this.orientation==="horizontal",i=e[n].clientRect,o=e[n+t*-1],l=i[a?"width":"height"]*t;if(o){let c=a?"left":"top",m=a?"right":"bottom";t===-1?l-=o.clientRect[c]-i[m]:l+=i[c]-o.clientRect[m]}return l}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,a=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let o=t[t.length-1].clientRect;return a?n>=o.right:e>=o.bottom}else{let o=t[0].clientRect;return a?n<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(n,e,t,a){let i=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:l,clientRect:c})=>{if(l===n)return!1;if(a){let m=i?a.x:a.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&m===this._previousSwap.delta)return!1}return i?e>=Math.floor(c.left)&&e<Math.floor(c.right):t>=Math.floor(c.top)&&t<Math.floor(c.bottom)});return o===-1||!this._sortPredicate(o,n)?-1:o}},$n=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(n,e){this._document=n,this._dragDropRegistry=e}start(n){let e=this._element.childNodes;this._relatedNodes=[];for(let t=0;t<e.length;t++){let a=e[t];this._relatedNodes.push([a,a.nextSibling])}this.withItems(n)}sort(n,e,t,a){let i=this._getItemIndexFromPointerPosition(n,e,t),o=this._previousSwap;if(i===-1||this._activeItems[i]===n)return null;let l=this._activeItems[i];if(o.drag===l&&o.overlaps&&o.deltaX===a.x&&o.deltaY===a.y)return null;let c=this.getItemIndex(n),m=n.getPlaceholderElement(),v=l.getRootElement();i>c?v.after(m):v.before(m),Rr(this._activeItems,c,i);let T=this._getRootNode().elementFromPoint(e,t);return o.deltaX=a.x,o.deltaY=a.y,o.drag=l,o.overlaps=v===T||v.contains(T),{previousIndex:c,currentIndex:i}}enter(n,e,t,a){let i=this._activeItems.indexOf(n);i>-1&&this._activeItems.splice(i,1);let o=a==null||a<0?this._getItemIndexFromPointerPosition(n,e,t):a;o===-1&&(o=this._getClosestItemIndexToPointer(n,e,t));let l=this._activeItems[o];l&&!this._dragDropRegistry.isDragging(l)?(this._activeItems.splice(o,0,n),l.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[a,i]=this._relatedNodes[t];a.parentNode===n&&a.nextSibling!==i&&(i===null?n.appendChild(a):i.parentNode===n&&n.insertBefore(a,i))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}getItemAtIndex(n){return this._activeItems[n]||null}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,e,t){let a=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),i=a?this._activeItems.findIndex(o=>{let l=o.getRootElement();return a===l||l.contains(a)}):-1;return i===-1||!this._sortPredicate(i,n)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=Ut(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let a=1/0,i=-1;for(let o=0;o<this._activeItems.length;o++){let l=this._activeItems[o];if(l!==n){let{x:c,y:m}=l.getRootElement().getBoundingClientRect(),v=Math.hypot(e-c,t-m);v<a&&(a=v,i=o)}}return i}},Nr=.05,Lr=.05,pe=(function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r})(pe||{}),ee=(function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r})(ee||{}),Gn=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new y;entered=new y;exited=new y;dropped=new y;sorted=new y;receivingStarted=new y;receivingStopped=new y;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Le.EMPTY;_verticalScrollDirection=pe.NONE;_horizontalScrollDirection=ee.NONE;_scrollNode;_stopScrollTimers=new y;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,e,t,a,i){this._dragDropRegistry=e,this._ngZone=a,this._viewportRuler=i;let o=this.element=Ye(n);this._document=t,this.withOrientation("vertical").withElementContainer(o),e.registerDropContainer(this),this._parentPositions=new rn(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,t,a){this._draggingStarted(),a==null&&this.sortingDisabled&&(a=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,t,a,i,o,l,c={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:i,distance:o,dropPoint:l,event:c})}withItems(n){let e=this._draggables;return this._draggables=n,n.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>n.indexOf(a)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof ln&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new $n(this._document,this._dragDropRegistry);else{let e=new ln(this._dragDropRegistry);e.direction=this._direction,e.orientation=n,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(n){let e=this._container;return this._scrollableElements=n.indexOf(e)===-1?[e,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let e=Ye(this.element),t=this._scrollableElements.indexOf(this._container),a=this._scrollableElements.indexOf(n);return t>-1&&this._scrollableElements.splice(t,1),a>-1&&this._scrollableElements.splice(a,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,t,a){if(this.sortingDisabled||!this._domRect||!xr(this._domRect,Nr,e,t))return;let i=this._sortStrategy.sort(n,e,t,a);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let t,a=pe.NONE,i=ee.NONE;if(this._parentPositions.positions.forEach((o,l)=>{l===this._document||!o.clientRect||t||xr(o.clientRect,Nr,n,e)&&([a,i]=Do(l,o.clientRect,this._direction,n,e),(a||i)&&(t=l))}),!a&&!i){let{width:o,height:l}=this._viewportRuler.getViewportSize(),c={width:o,height:l,top:0,right:o,bottom:l,left:0};a=Vr(c,e),i=Hr(c,n),t=window}t&&(a!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=i,this._scrollNode=t,(a||i)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),pa(0,oa).pipe(Me(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===pe.UP?n.scrollBy(0,-e):this._verticalScrollDirection===pe.DOWN&&n.scrollBy(0,e),this._horizontalScrollDirection===ee.LEFT?n.scrollBy(-e,0):this._horizontalScrollDirection===ee.RIGHT&&n.scrollBy(e,0)})};_isOverContainer(n,e){return this._domRect!=null&&Kn(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,t){return this._siblings.find(a=>a._canReceive(n,e,t))}_canReceive(n,e,t){if(!this._domRect||!Kn(this._domRect,e,t)||!this.enterPredicate(n,this))return!1;let a=this._getShadowRoot().elementFromPoint(e,t);return a?a===this._container||this._container.contains(a):!1}_startReceiving(n,e){let t=this._activeSiblings;!t.has(n)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=Ut(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}};function Vr(r,n){let{top:e,bottom:t,height:a}=r,i=a*Lr;return n>=e-i&&n<=e+i?pe.UP:n>=t-i&&n<=t+i?pe.DOWN:pe.NONE}function Hr(r,n){let{left:e,right:t,width:a}=r,i=a*Lr;return n>=e-i&&n<=e+i?ee.LEFT:n>=t-i&&n<=t+i?ee.RIGHT:ee.NONE}function Do(r,n,e,t,a){let i=Vr(n,a),o=Hr(n,t),l=pe.NONE,c=ee.NONE;if(i){let m=r.scrollTop;i===pe.UP?m>0&&(l=pe.UP):r.scrollHeight-m>r.clientHeight&&(l=pe.DOWN)}if(o){let m=r.scrollLeft;e==="rtl"?o===ee.RIGHT?m<0&&(c=ee.RIGHT):r.scrollWidth+m>r.clientWidth&&(c=ee.LEFT):o===ee.LEFT?m>0&&(c=ee.LEFT):r.scrollWidth-m>r.clientWidth&&(c=ee.RIGHT)}return[l,c]}var Ct={capture:!0},Bn={passive:!1,capture:!0},To=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,a){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
5
- `],encapsulation:2,changeDetection:0})}return r})(),Xn=(()=>{class r{_ngZone=s(Ce);_document=s(mt);_styleLoader=s(Na);_renderer=s(fn).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new y;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=N([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new y;pointerUp=new y;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Bn)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(To),this._activeDragInstances.update(a=>[...a,e]),this._activeDragInstances().length===1)){let a=t.type.startsWith("touch"),i=l=>this.pointerUp.next(l),o=[["scroll",l=>this._scroll.next(l),Ct],["selectstart",this._preventDefaultWhileDragging,Bn]];a?o.push(["touchend",i,Ct],["touchcancel",i,Ct]):o.push(["mouseup",i,Ct]),a||o.push(["mousemove",l=>this.pointerMove.next(l),Bn]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([l,c,m])=>this._renderer.listen(this._document,l,c,m))})}}stopDragging(e){this._activeDragInstances.update(t=>{let a=t.indexOf(e);return a>-1?(t.splice(a,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new un(a=>this._ngZone.runOutsideAngular(()=>{let i=this._renderer.listen(e,"scroll",o=>{this._activeDragInstances().length&&a.next(o)},Ct);return()=>{i()}}))),ie(...t)}registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Yo={dragStartThreshold:5,pointerDirectionChangeThreshold:5},xo=(()=>{class r{_document=s(mt);_ngZone=s(Ce);_viewportRuler=s(Ra);_dragDropRegistry=s(Xn);_renderer=s(fn).createRenderer(null,null);constructor(){}createDrag(e,t=Yo){return new qn(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Gn(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Zn=new ae("CDK_DRAG_PARENT");var Br=new ae("CdkDragHandle"),Ur=(()=>{class r{element=s(re);_parentDrag=s(Zn,{optional:!0,skipSelf:!0});_dragDropRegistry=s(Xn);_stateChanges=new y;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let t=this._dragDropRegistry.getDragDirectiveForNode(e);if(t){this._parentDrag=t,t._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",P]},features:[ue([{provide:Br,useExisting:r}])]})}return r})(),zo=new ae("CDK_DRAG_CONFIG"),bo=new ae("CdkDropList"),Kr=(()=>{class r{element=s(re);dropContainer=s(bo,{optional:!0,skipSelf:!0});_ngZone=s(Ce);_viewContainerRef=s(Be);_dir=s(Q,{optional:!0});_changeDetectorRef=s(q);_selfHandle=s(Br,{optional:!0,self:!0});_parentDrag=s(Zn,{optional:!0,skipSelf:!0});_dragDropRegistry=s(Xn);_destroyed=new y;_handles=new B([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new D;released=new D;ended=new D;entered=new D;exited=new D;dropped=new D;moved=new un(e=>{let t=this._dragRef.moved.pipe(V(a=>({source:this,pointerPosition:a.pointerPosition,event:a.event,delta:a.delta,distance:a.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=s(ye);constructor(){let e=this.dropContainer,t=s(zo,{optional:!0}),a=s(xo);this._dragRef=a.createDrag(this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(Me(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){fa(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,a=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),a=t.indexOf(e);a>-1&&(t.splice(a,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Ye(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,a=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof a=="object"&&a?a:ba(a),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(be(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let a=this._dragDropRegistry.getDragDirectiveForNode(t);if(a){e.withParent(a._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:a,constrainPosition:i,previewClass:o,boundaryElement:l,draggingDisabled:c,rootElementSelector:m,previewContainer:v}=e;this.disabled=c??!1,this.dragStartDelay=a||0,this.lockAxis=t||null,i&&(this.constrainPosition=i),o&&(this.previewClass=o),l&&(this.boundaryElement=l),m&&(this.rootElementSelector=m),v&&(this.previewContainer=v)}_setupHandlesListener(){this._handles.pipe(ma(e=>{let t=e.map(a=>a.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Je(e=>ie(...e.map(t=>t._stateChanges.pipe(He(t))))),Me(this._destroyed)).subscribe(e=>{let t=this._dragRef,a=e.element.nativeElement;e.disabled?t.disableHandle(a):t.enableHandle(a)})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,a){t&2&&j("cdk-drag-disabled",a.disabled)("cdk-drag-dragging",a._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",P],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Rt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ue([{provide:Zn,useExisting:r}]),oe]})}return r})();var Fo=["nz-modal-close",""];function Eo(r,n){if(r&1&&($(0),f(1,"nz-icon",2),G()),r&2){let e=n.$implicit;d(),g("nzType",e)}}var Zr=["modalElement"];function Io(r,n){if(r&1){let e=M();h(0,"button",16),S("click",function(){_(e);let a=p();return k(a.onCloseClick())}),u()}}function Oo(r,n){if(r&1&&($(0),f(1,"span",12),G()),r&2){let e=p();d(),g("innerHTML",e.config.nzTitle,we)}}function Ao(r,n){}function No(r,n){if(r&1&&f(0,"div",12),r&2){let e=p();g("innerHTML",e.config.nzContent,we)}}function jo(r,n){if(r&1){let e=M();h(0,"button",17),S("click",function(){_(e);let a=p();return k(a.onCancel())}),E(1),u()}if(r&2){let e=p();g("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),d(),ke(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function Ro(r,n){if(r&1){let e=M();h(0,"button",18),S("click",function(){_(e);let a=p();return k(a.onOk())}),E(1),u()}if(r&2){let e=p();g("nzType",e.config.nzOkType)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled)("nzDanger",e.config.nzOkDanger),Ee("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),d(),ke(" ",e.config.nzOkText||e.locale.okText," ")}}var Lo=["nz-modal-footer",""],Vo=(r,n)=>({$implicit:r,modalRef:n});function Ho(r,n){if(r&1){let e=M();h(0,"button",3),S("click",function(){let a=_(e).$implicit,i=p(4);return k(i.onButtonClick(a))}),E(1),u()}if(r&2){let e=n.$implicit,t=p(4);g("hidden",!t.getButtonCallableProp(e,"show"))("nzLoading",t.getButtonCallableProp(e,"loading"))("disabled",t.getButtonCallableProp(e,"disabled"))("nzType",e.type)("nzDanger",e.danger)("nzShape",e.shape)("nzSize",e.size)("nzGhost",e.ghost),d(),ke(" ",e.label," ")}}function Bo(r,n){if(r&1&&Ie(0,Ho,2,9,"button",2,It),r&2){let e=p(3);Oe(e.buttons)}}function Uo(r,n){if(r&1&&f(0,"div",1),r&2){let e=p(3);g("innerHTML",e.config.nzFooter,we)}}function Ko(r,n){if(r&1&&($(0),x(1,Bo,2,0)(2,Uo,1,1,"div",1),G()),r&2){let e=p(2);d(),z(e.buttonsFooter?1:2)}}function Wo(r,n){if(r&1&&F(0,Ko,3,1,"ng-container",0),r&2){let e=p();g("nzStringTemplateOutlet",e.config.nzFooter)("nzStringTemplateOutletContext",jt(2,Vo,e.config.nzData,e.modalRef))}}function qo(r,n){if(r&1){let e=M();h(0,"button",6),S("click",function(){_(e);let a=p(2);return k(a.onCancel())}),E(1),u()}if(r&2){let e=p(2);g("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),d(),ke(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function $o(r,n){if(r&1){let e=M();h(0,"button",7),S("click",function(){_(e);let a=p(2);return k(a.onOk())}),E(1),u()}if(r&2){let e=p(2);g("nzType",e.config.nzOkType)("nzDanger",e.config.nzOkDanger)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),d(),ke(" ",e.config.nzOkText||e.locale.okText," ")}}function Go(r,n){if(r&1&&(x(0,qo,2,4,"button",4),x(1,$o,2,6,"button",5)),r&2){let e=p();z(e.config.nzCancelText!==null?0:-1),d(),z(e.config.nzOkText!==null?1:-1)}}var Zo=["nz-modal-title",""];function Qo(r,n){if(r&1&&($(0),f(1,"div",2),G()),r&2){let e=p();d(),g("innerHTML",e.config.nzTitle,we)}}function Jo(r,n){if(r&1){let e=M();h(0,"button",9),S("click",function(){_(e);let a=p();return k(a.onCloseClick())}),u()}}function Xo(r,n){if(r&1&&f(0,"div",10),r&2){let e=p();he("cursor",e.config.nzDraggable?"move":"auto")}}function el(r,n){}function tl(r,n){if(r&1&&f(0,"div",7),r&2){let e=p();g("innerHTML",e.config.nzContent,we)}}function nl(r,n){if(r&1){let e=M();h(0,"div",11),S("cancelTriggered",function(){_(e);let a=p();return k(a.onCloseClick())})("okTriggered",function(){_(e);let a=p();return k(a.onOkClick())}),u()}if(r&2){let e=p();g("modalRef",e.modalRef)}}var Wr=()=>{},je=class{nzCentered=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzDraggable=!1;nzNoAnimation=!1;nzAutofocus="auto";nzMask;nzMaskClosable;nzKeyboard=!0;nzZIndex=1e3;nzWidth=520;nzCloseIcon="close";nzOkType="primary";nzOkDanger=!1;nzModalType="default";nzOnCancel=Wr;nzOnOk=Wr;nzData;nzMaskStyle;nzBodyStyle;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzFooter;nzCancelText;nzOkText;nzContent;nzCloseOnNavigation;nzViewContainerRef;nzAfterOpen;nzAfterClose;nzIconType="question-circle";nzDirection},Ae={enter:"ant-zoom-enter",enterActive:"ant-zoom-enter-active",leave:"ant-zoom-leave",leaveActive:"ant-zoom-leave-active"},ct={enter:"ant-fade-enter",enterActive:"ant-fade-enter-active",leave:"ant-fade-leave",leaveActive:"ant-fade-leave-active"},sn="ant-modal-mask",cn="modal",al=new ae(""),Qr={modalContainer:za("modalContainer",[Tn("void, exit",gt({})),Tn("enter",gt({})),Yn("* => enter",Dn(".24s",gt({}))),Yn("* => void, * => exit",Dn(".2s",gt({})))])},ea=(()=>{class r{config=s(je);static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["nzModalCloseBuiltin"],attrs:Fo,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-close-icon",3,"nzType"]],template:function(t,a){t&1&&(h(0,"span",0),F(1,Eo,2,1,"ng-container",1),u()),t&2&&(d(),g("nzStringTemplateOutlet",a.config.nzCloseIcon))},dependencies:[fe,ge,de,ce],encapsulation:2,changeDetection:0})}return r})();function rl(r,n){return Z(Z({},n),r)}function xt(r,n,e){return typeof r>"u"?typeof n>"u"?e:n:r}function qr(r){let{nzCentered:n,nzMask:e,nzMaskClosable:t,nzClosable:a,nzOkLoading:i,nzOkDisabled:o,nzCancelDisabled:l,nzCancelLoading:c,nzKeyboard:m,nzNoAnimation:v,nzDraggable:T,nzContent:Y,nzFooter:I,nzZIndex:O,nzWidth:ze,nzWrapClassName:H,nzClassName:Re,nzStyle:Ge,nzTitle:A,nzCloseIcon:zt,nzMaskStyle:bt,nzBodyStyle:ci,nzOkText:di,nzCancelText:pi,nzOkType:mi,nzOkDanger:hi,nzIconType:ui,nzModalType:gi,nzOnOk:fi,nzOnCancel:vi,nzAfterOpen:yi,nzAfterClose:_i,nzCloseOnNavigation:ki,nzAutofocus:Pi}=r;return{nzCentered:n,nzMask:e,nzMaskClosable:t,nzDraggable:T,nzClosable:a,nzOkLoading:i,nzOkDisabled:o,nzCancelDisabled:l,nzCancelLoading:c,nzKeyboard:m,nzNoAnimation:v,nzContent:Y,nzFooter:I,nzZIndex:O,nzWidth:ze,nzWrapClassName:H,nzClassName:Re,nzStyle:Ge,nzTitle:A,nzCloseIcon:zt,nzMaskStyle:bt,nzBodyStyle:ci,nzOkText:di,nzCancelText:pi,nzOkType:mi,nzOkDanger:hi,nzIconType:ui,nzModalType:gi,nzOnOk:fi,nzOnCancel:vi,nzAfterOpen:yi,nzAfterClose:_i,nzCloseOnNavigation:ki,nzAutofocus:Pi}}function $r(){throw Error("Attempting to attach modal content after content is already attached")}var Jr=(()=>{class r extends La{document=s(mt);cdr=s(q);config=s(je);ngZone=s(Ce);host=s(re);focusTrapFactory=s(ja);render=s(Fe);overlayRef=s(En);nzConfigService=s(xe);animationType=s(ga,{optional:!0});destroyRef=s(K);portalOutlet;modalElementRef;animationStateChanged=new D;containerClick=new D;cancelTriggered=new D;okTriggered=new D;state="enter";modalRef;isStringContent=!1;dir="ltr";elementFocusedBeforeModalWasOpened=null;focusTrap;mouseDown=!1;oldMaskStyle=null;get showMask(){let e=this.nzConfigService.getConfigForComponent(cn)||{};return!!xt(this.config.nzMask,e.nzMask,!0)}get maskClosable(){let e=this.nzConfigService.getConfigForComponent(cn)||{};return!!xt(this.config.nzMaskClosable,e.nzMaskClosable,!0)}constructor(){super(),this.dir=this.overlayRef.getDirection(),this.isStringContent=typeof this.config.nzContent=="string",Vt(cn,()=>this.updateMaskClassname()),this.destroyRef.onDestroy(()=>{this.setMaskExitAnimationClass(!0)})}onContainerClick(e){e.target===e.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(e){return this.portalOutlet.hasAttached()&&$r(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this.portalOutlet.hasAttached()&&$r(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(e)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||this.animationType==="NoopAnimations"}setModalTransformOrigin(){let e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){let t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),a=Fa(this.elementFocusedBeforeModalWasOpened),i=a.left+t.width/2,o=a.top+t.height/2,l=`${i-e.offsetLeft}px ${o-e.offsetTop}px 0px`;this.render.setStyle(e,"transform-origin",l)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Xa(()=>this.host.nativeElement.focus())))}trapFocus(){let e=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{let t=this.document.activeElement;t!==e&&!e.contains(t)&&e.focus()}}restoreFocus(){let e=this.elementFocusedBeforeModalWasOpened;if(e&&typeof e.focus=="function"){let t=this.document.activeElement,a=this.host.nativeElement;(!t||t===this.document.body||t===a||a.contains(t))&&e.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();let e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add(Ae.enter),e.classList.add(Ae.enterActive),t&&(t.classList.add(ct.enter),t.classList.add(ct.enterActive))}setExitAnimationClass(){let e=this.modalElementRef.nativeElement;e.classList.add(Ae.leave),e.classList.add(Ae.leaveActive),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(e=!1){let t=this.overlayRef.backdropElement;if(t){if(this.animationDisabled()||e){t.classList.remove(sn);return}t.classList.add(ct.leave),t.classList.add(ct.leaveActive)}}cleanAnimationClass(){if(this.animationDisabled())return;let e=this.overlayRef.backdropElement,t=this.modalElementRef.nativeElement;e&&(e.classList.remove(ct.enter),e.classList.remove(ct.enterActive)),t.classList.remove(Ae.enter),t.classList.remove(Ae.enterActive),t.classList.remove(Ae.leave),t.classList.remove(Ae.leaveActive)}setZIndexForBackdrop(){let e=this.overlayRef.backdropElement;e&&xn(this.config.nzZIndex)&&this.render.setStyle(e,"z-index",this.config.nzZIndex)}bindBackdropStyle(){let e=this.overlayRef.backdropElement;if(e){if(this.oldMaskStyle){let t=this.oldMaskStyle;Object.keys(t).forEach(a=>{this.render.removeStyle(e,a)}),this.oldMaskStyle=null}if(this.setZIndexForBackdrop(),typeof this.config.nzMaskStyle=="object"&&Object.keys(this.config.nzMaskStyle).length){let t=Z({},this.config.nzMaskStyle);Object.keys(t).forEach(a=>{this.render.setStyle(e,a,t[a])}),this.oldMaskStyle=t}}}updateMaskClassname(){let e=this.overlayRef.backdropElement;e&&(this.showMask?e.classList.add(sn):e.classList.remove(sn))}onAnimationDone(e){e.toState==="enter"?this.trapFocus():e.toState==="exit"&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(e)}onAnimationStart(e){e.toState==="enter"?(this.setEnterAnimationClass(),this.bindBackdropStyle()):e.toState==="exit"&&this.setExitAnimationClass(),this.animationStateChanged.emit(e)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}setupMouseListeners(e){tt(this.host.nativeElement,"mouseup").pipe(C(this.destroyRef)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),tt(e.nativeElement,"mousedown").pipe(C(this.destroyRef)).subscribe(()=>{this.mouseDown=!0})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,features:[Ue]})}return r})(),Xr=(()=>{class r extends Jr{i18n=s(an);set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}cancelTriggered=new D;okTriggered=new D;locale;constructor(){super(),this.i18n.localeChange.pipe(C()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,a){if(t&1&&(le(nt,7),le(Zr,7)),t&2){let i;R(i=L())&&(a._portalOutlet=i.first),R(i=L())&&(a._modalElementRef=i.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,a){t&1&&(yn("@modalContainer.start",function(o){return a.onAnimationStart(o)})("@modalContainer.done",function(o){return a.onAnimationDone(o)}),S("click",function(o){return a.onContainerClick(o)})),t&2&&(Xe("@.disabled",a.config.nzNoAnimation)("@modalContainer",a.state),se(a.config.nzWrapClassName?"ant-modal-wrap "+a.config.nzWrapClassName:"ant-modal-wrap"),he("z-index",a.config.nzZIndex),j("ant-modal-wrap-rtl",a.dir==="rtl")("ant-modal-centered",a.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[vn([wn]),Ue],decls:17,vars:16,consts:[["modalElement",""],["role","document",1,"ant-modal"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],[3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(t,a){t&1&&(h(0,"div",1,0),_n(2,"nzToCssUnit"),h(3,"div",2),x(4,Io,1,0,"button",3),h(5,"div",4)(6,"div",5)(7,"div",6),f(8,"nz-icon",7),h(9,"span",8),F(10,Oo,2,1,"ng-container",9),u(),h(11,"div",10),F(12,Ao,0,0,"ng-template",11),x(13,No,1,1,"div",12),u()(),h(14,"div",13),x(15,jo,2,4,"button",14),x(16,Ro,2,6,"button",15),u()()()()()),t&2&&(Te(a.config.nzStyle),se(a.config.nzClassName),he("width",kn(2,14,a.config==null?null:a.config.nzWidth)),d(4),z(a.config.nzClosable?4:-1),d(),Te(a.config.nzBodyStyle),d(3),g("nzType",a.config.nzIconType),d(2),g("nzStringTemplateOutlet",a.config.nzTitle),d(3),z(a.isStringContent?13:-1),d(2),z(a.config.nzCancelText!==null?15:-1),d(),z(a.config.nzOkText!==null?16:-1))},dependencies:[Vn,fe,ge,ea,de,ce,Fn,nt,_t,yt,vt,qe,Ln],encapsulation:2,data:{animation:[Qr.modalContainer]}})}return r})(),ei=(()=>{class r{i18n=s(an);config=s(je);buttonsFooter=!1;buttons=[];locale;cancelTriggered=new D;okTriggered=new D;modalRef;constructor(){Array.isArray(this.config.nzFooter)&&(this.buttonsFooter=!0,this.buttons=this.config.nzFooter.map(il)),this.i18n.localeChange.pipe(C()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(e,t){let a=e[t],i=this.modalRef.getContentComponent();return typeof a=="function"?a.apply(e,i&&[i]):a}onButtonClick(e){if(!this.getButtonCallableProp(e,"loading")){let a=this.getButtonCallableProp(e,"onClick");e.autoLoading&&zn(a)&&(e.loading=!0,a.then(()=>e.loading=!1).catch(i=>{throw e.loading=!1,i}))}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalFooterBuiltin"],attrs:Lo,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(t,a){t&1&&x(0,Wo,1,5,"ng-container")(1,Go,2,2),t&2&&z(a.config.nzFooter?0:1)},dependencies:[de,ce,_t,yt,vt,qe],encapsulation:2})}return r})();function il(r){return Z({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},r)}var ti=(()=>{class r{config=s(je);static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["nzModalTitleBuiltin"],attrs:Zo,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,a){t&1&&(h(0,"div",0),F(1,Qo,2,1,"ng-container",1),u()),t&2&&(d(),g("nzStringTemplateOutlet",a.config.nzTitle))},dependencies:[de,ce],encapsulation:2,changeDetection:0})}return r})(),ni=(()=>{class r extends Jr{set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275cmp=w({type:r,selectors:[["nz-modal-container"]],viewQuery:function(t,a){if(t&1&&(le(nt,7),le(Zr,7)),t&2){let i;R(i=L())&&(a._portalOutlet=i.first),R(i=L())&&(a._modalElementRef=i.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,a){t&1&&(yn("@modalContainer.start",function(o){return a.onAnimationStart(o)})("@modalContainer.done",function(o){return a.onAnimationDone(o)}),S("click",function(o){return a.onContainerClick(o)})),t&2&&(Xe("@.disabled",a.config.nzNoAnimation)("@modalContainer",a.state),se(a.config.nzWrapClassName?"ant-modal-wrap "+a.config.nzWrapClassName:"ant-modal-wrap"),he("z-index",a.config.nzZIndex),j("ant-modal-wrap-rtl",a.dir==="rtl")("ant-modal-centered",a.config.nzCentered))},exportAs:["nzModalContainer"],features:[vn([wn]),Ue],decls:10,vars:15,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(t,a){t&1&&(h(0,"div",1,0),_n(2,"nzToCssUnit"),h(3,"div",2),x(4,Jo,1,0,"button",3),x(5,Xo,1,2,"div",4),h(6,"div",5),F(7,el,0,0,"ng-template",6),x(8,tl,1,1,"div",7),u(),x(9,nl,1,1,"div",8),u()()),t&2&&(Te(a.config.nzStyle),se(a.config.nzClassName),he("width",kn(2,13,a.config==null?null:a.config.nzWidth)),g("cdkDragDisabled",!a.config.nzDraggable),d(4),z(a.config.nzClosable?4:-1),d(),z(a.config.nzTitle?5:-1),d(),Te(a.config.nzBodyStyle),d(2),z(a.isStringContent?8:-1),d(),z(a.config.nzFooter!==null?9:-1))},dependencies:[ea,ti,Fn,nt,ei,Vn,Kr,Ur,Ln],encapsulation:2,data:{animation:[Qr.modalContainer]}})}return r})(),Yt={OPEN:0,CLOSING:1,CLOSED:2},Ne={CANCEL:"cancel",OK:"ok"},dt=class{overlayRef;config;containerInstance;componentInstance=null;componentRef=null;result;state=Yt.OPEN;afterClose=new y;afterOpen=new y;closeTimeout;destroy$=new y;constructor(n,e,t){this.overlayRef=n,this.config=e,this.containerInstance=t,t.animationStateChanged.pipe(U(a=>a.phaseName==="done"&&a.toState==="enter"),be(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),e.nzAfterOpen instanceof D&&e.nzAfterOpen.emit()}),t.animationStateChanged.pipe(U(a=>a.phaseName==="done"&&a.toState==="exit"),be(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),t.containerClick.pipe(Me(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger(Ne.CANCEL)}),n.keydownEvents().pipe(U(a=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&a.keyCode===27&&!Kt(a))).subscribe(a=>{a.preventDefault(),this.trigger(Ne.CANCEL)}),t.cancelTriggered.pipe(Me(this.destroy$)).subscribe(()=>this.trigger(Ne.CANCEL)),t.okTriggered.pipe(Me(this.destroy$)).subscribe(()=>this.trigger(Ne.OK)),n.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),e.nzAfterClose instanceof D&&e.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(n){this.close(n)}triggerOk(){return this.trigger(Ne.OK)}triggerCancel(){return this.trigger(Ne.CANCEL)}close(n){this.state===Yt.OPEN&&(this.result=n,this.containerInstance.animationStateChanged.pipe(U(e=>e.phaseName==="start"),be(1)).subscribe(e=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},e.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=Yt.CLOSING)}updateConfig(n){Object.assign(this.config,n),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}async trigger(n){if(this.state===Yt.CLOSING)return;let e={[Ne.OK]:{trigger:this.config.nzOnOk,loadingKey:"nzOkLoading"},[Ne.CANCEL]:{trigger:this.config.nzOnCancel,loadingKey:"nzCancelLoading"}},{trigger:t,loadingKey:a}=e[n];if(!this.config[a]){if(t instanceof D)t.emit(this.getContentComponent());else if(typeof t=="function"){let i=t(this.getContentComponent());if(zn(i)){this.config[a]=!0;let o=!1;try{o=await i}finally{this.config[a]=!1,this.closeWhitResult(o)}}else this.closeWhitResult(i)}}}closeWhitResult(n){n!==!1&&this.close(n)}_finishDialogClose(){this.state=Yt.CLOSED,this.overlayRef.dispose(),this.destroy$.next()}},dn=(()=>{class r{injector=s(ye);nzConfigService=s(xe);directionality=s(Q);parentModal=s(r,{skipSelf:!0,optional:!0});openModalsAtThisLevel=[];afterAllClosedAtThisLevel=new y;get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){let e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel}afterAllClose=da(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(He(void 0)));create(e){return this.open(e.nzContent,e)}closeAll(){this.closeModals(this.openModals)}confirm(e={},t="confirm"){return"nzFooter"in e&&Lt(`The Confirm-Modal doesn't support "nzFooter", this property will be ignored.`),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=!1),e.nzModalType="confirm",e.nzClassName=`ant-modal-confirm ant-modal-confirm-${t} ${e.nzClassName||""}`,this.create(e)}info(e={}){return this.confirmFactory(e,"info")}success(e={}){return this.confirmFactory(e,"success")}error(e={}){return this.confirmFactory(e,"error")}warning(e={}){return this.confirmFactory(e,"warning")}open(e,t){let a=rl(t||{},new je),i=this.createOverlay(a),o=this.attachModalContainer(i,a),l=this.attachModalContent(e,o,i,a);return o.modalRef=l,Ja(i,t?.nzZIndex),this.openModals.push(l),l.afterClose.subscribe(()=>this.removeOpenModal(l)),l}removeOpenModal(e){let t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next())}closeModals(e){let t=e.length;for(;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(e){let t=this.nzConfigService.getConfigForComponent(cn)||{};return at(this.injector,{hasBackdrop:!0,scrollStrategy:Va(this.injector),backdropClass:xt(e.nzMask,t.nzMask,!0)?sn:"",positionStrategy:qt(this.injector),disposeOnNavigation:xt(e.nzCloseOnNavigation,t.nzCloseOnNavigation,!0),direction:xt(e.nzDirection,t.nzDirection,this.directionality.value)})}attachModalContainer(e,t){let a=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector,i=ye.create({parent:a||this.injector,providers:[{provide:En,useValue:e},{provide:je,useValue:t}]}),o=t.nzModalType==="confirm"?Xr:ni,l=new kt(o,t.nzViewContainerRef,i);return e.attach(l).instance}attachModalContent(e,t,a,i){let o=new dt(a,i,t);if(e instanceof me)t.attachTemplatePortal(new Wt(e,null,{$implicit:i.nzData,modalRef:o}));else if(xn(e)&&typeof e!="string"){let l=this.createInjector(o,i),c=t.attachComponentPortal(new kt(e,i.nzViewContainerRef,l));o.componentRef=c,o.componentInstance=c.instance}else t.attachStringContent();return o}createInjector(e,t){let a=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector;return ye.create({parent:a||this.injector,providers:[{provide:dt,useValue:e},{provide:al,useValue:t.nzData}]})}confirmFactory(e={},t){let a={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"};return"nzIconType"in e||(e.nzIconType=a[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),ta=(()=>{class r{templateRef=s(me);static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]})}return r})(),na=(()=>{class r{templateRef=s(me);nzModalRef=s(dt,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzFooter:this.templateRef})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]})}return r})(),ol=(()=>{class r{templateRef=s(me);nzModalRef=s(dt,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzTitle:this.templateRef})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]})}return r})(),ai=(()=>{class r{cdr=s(q);modal=s(dn);viewContainerRef=s(Be);destroyRef=s(K);nzMask;nzMaskClosable;nzCloseOnNavigation;nzVisible=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzKeyboard=!0;nzNoAnimation=!1;nzCentered=!1;nzDraggable=!1;nzContent;nzFooter;nzZIndex=1e3;nzWidth=520;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzCloseIcon="close";nzMaskStyle;nzBodyStyle;nzOkText;nzCancelText;nzOkType="primary";nzOkDanger=!1;nzIconType="question-circle";nzModalType="default";nzAutofocus="auto";nzOnOk=new D;nzOnCancel=new D;nzAfterOpen=new D;nzAfterClose=new D;nzVisibleChange=new D;set modalTitle(e){e&&this.setTitleWithTemplate(e)}contentFromContentChild;set modalFooter(e){e&&this.setFooterWithTemplate(e)}modalRef=null;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(){this.destroyRef.onDestroy(()=>{this.modalRef?._finishDialogClose()})}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){let e=this.getConfig();this.modalRef=this.modal.create(e),this.modalRef.afterClose.asObservable().pipe(C(this.destroyRef)).subscribe(()=>{this.close()})}}close(e){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(e),this.modalRef=null)}destroy(e){this.close(e)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(e){this.nzTitle=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(e){this.nzFooter=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){let e=qr(this);return e.nzViewContainerRef=this.viewContainerRef,e.nzContent=this.nzContent||this.contentFromContentChild,e}ngOnChanges(e){let i=e,{nzVisible:t}=i,a=ia(i,["nzVisible"]);Object.keys(a).length&&this.modalRef&&this.modalRef.updateConfig(qr(this)),t&&(this.nzVisible?this.open():this.close())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-modal"]],contentQueries:function(t,a,i){if(t&1&&(_e(i,ol,7,me),_e(i,ta,7,me),_e(i,na,7,me)),t&2){let o;R(o=L())&&(a.modalTitle=o.first),R(o=L())&&(a.contentFromContentChild=o.first),R(o=L())&&(a.modalFooter=o.first)}},inputs:{nzMask:[2,"nzMask","nzMask",P],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",P],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",P],nzVisible:[2,"nzVisible","nzVisible",P],nzClosable:[2,"nzClosable","nzClosable",P],nzOkLoading:[2,"nzOkLoading","nzOkLoading",P],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",P],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",P],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",P],nzKeyboard:[2,"nzKeyboard","nzKeyboard",P],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",P],nzCentered:[2,"nzCentered","nzCentered",P],nzDraggable:[2,"nzDraggable","nzDraggable",P],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",Rt],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",P],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[oe],decls:0,vars:0,template:function(t,a){},encapsulation:2,changeDetection:0})}return r})(),ri=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({providers:[dn],imports:[ea,ei,ti,ni,Xr]})}return r})();var ml=["switchElement"];function hl(r,n){r&1&&f(0,"nz-icon",3)}function ul(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p(2);d(),et(e.nzCheckedChildren)}}function gl(r,n){if(r&1&&F(0,ul,2,1,"ng-container",6),r&2){let e=p();g("nzStringTemplateOutlet",e.nzCheckedChildren)}}function fl(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p(2);d(),et(e.nzUnCheckedChildren)}}function vl(r,n){if(r&1&&F(0,fl,2,1,"ng-container",6),r&2){let e=p();g("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}var yl="switch",aa=(()=>{var t;let r,n=[],e=[];return t=class{_nzModuleName=yl;nzConfigService=s(xe);el=s(re).nativeElement;ngZone=s(Ce);cdr=s(q);focusMonitor=s(Aa);directionality=s(Q);destroyRef=s(K);isChecked=!1;onChange=()=>{};onTouched=()=>{};switchElement;nzLoading=!1;nzDisabled=!1;nzControl=!1;nzCheckedChildren=null;nzUnCheckedChildren=null;nzSize=Qe(this,n,"default");nzId=(Qe(this,e),null);dir="ltr";isNzDisableFirstChange=!0;updateValue(i){this.isChecked!==i&&(this.isChecked=i,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.switchElement.nativeElement)})}ngOnInit(){this.directionality.change.pipe(C(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value,tt(this.el,"click").pipe(C(this.destroyRef)).subscribe(i=>{i.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),tt(this.switchElement.nativeElement,"keydown").pipe(C(this.destroyRef)).subscribe(i=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;let{keyCode:o}=i;o!==37&&o!==39&&o!==32&&o!==13||(i.preventDefault(),this.ngZone.run(()=>{o===37?this.updateValue(!1):o===39?this.updateValue(!0):(o===32||o===13)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe(C(this.destroyRef)).subscribe(i=>{i||Promise.resolve().then(()=>this.onTouched())})}writeValue(i){this.isChecked=i,this.cdr.markForCheck()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[Ht()],Mt(null,null,r,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,l)=>{o.nzSize=l}},metadata:i},n,e),i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),Ze(t,"\u0275fac",function(o){return new(o||t)}),Ze(t,"\u0275cmp",w({type:t,selectors:[["nz-switch"]],viewQuery:function(o,l){if(o&1&&le(ml,7),o&2){let c;R(c=L())&&(l.switchElement=c.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzControl:[2,"nzControl","nzControl",P],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[ue([{provide:tr,useExisting:ha(()=>t),multi:!0}])],decls:8,vars:15,consts:[["switchElement",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nzType","loading",1,"ant-switch-loading-icon"],[1,"ant-switch-inner"],[1,"ant-click-animating-node"],[4,"nzStringTemplateOutlet"]],template:function(o,l){o&1&&(h(0,"button",1,0)(2,"span",2),x(3,hl,1,0,"nz-icon",3),u(),h(4,"span",4),x(5,gl,1,1,"ng-container")(6,vl,1,1,"ng-container"),u(),f(7,"div",5),u()),o&2&&(j("ant-switch-checked",l.isChecked)("ant-switch-loading",l.nzLoading)("ant-switch-disabled",l.nzDisabled)("ant-switch-small",l.nzSize==="small")("ant-switch-rtl",l.dir==="rtl"),g("disabled",l.nzDisabled)("nzWaveExtraNode",!0),Ee("id",l.nzId),d(3),z(l.nzLoading?3:-1),d(2),z(l.isChecked?5:6))},dependencies:[Ea,qe,fe,ge,de,ce],encapsulation:2,changeDetection:0})),t})(),ii=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[aa]})}return r})();var kl=(r,n)=>n.path,Pl=(r,n)=>n.key;function Sl(r,n){if(r&1){let e=M();h(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),Nt("ngModelChange",function(a){_(e);let i=p();return At(i.fs.path,a)||(i.fs.path=a),k(a)}),S("keyup.enter",function(){_(e);let a=p();return k(a.fs.load())}),u(),h(3,"button",28),f(4,"nz-icon",29),u()()()}if(r&2){let e=p();d(2),Ot("ngModel",e.fs.path)}}function Cl(r,n){if(r&1){let e=M();h(0,"div",31)(1,"button",32),S("click",function(){let a=_(e).$implicit,i=p(2);return k(i.fs.jumpTo(a))}),E(2),u()()}if(r&2){let e=n.$implicit;d(2),ke(" ",e.label," ")}}function Dl(r,n){if(r&1){let e=M();h(0,"div",7)(1,"div",30),Ie(2,Cl,3,1,"div",31,Pl),u(),h(4,"button",32),S("click",function(){_(e);let a=p();return k(a.fs.editPath())}),f(5,"nz-icon",33),u()()}if(r&2){let e=p();d(2),Oe(e.fs.segments())}}function Tl(r,n){if(r&1&&f(0,"nz-icon",38),r&2){let e=p().$implicit;g("nzType","proj:"+e.projectKind)}}function Yl(r,n){if(r&1){let e=M();h(0,"div",34),S("click",function(){let a=_(e).$implicit,i=p();return k(i.fs.open(a))}),h(1,"div",35),f(2,"span",36),u(),h(3,"div",37),E(4),x(5,Tl,1,1,"nz-icon",38),u()()}if(r&2){let e=n.$implicit;d(2),g("nzType",e.type==="dir"?"folder":"file"),d(),g("title",Sa(e.name)),d(),ke(" ",e.name," "),d(),z(e.projectKind&&e.projectKind!="unknown"?5:-1)}}function xl(r,n){if(r&1){let e=M();h(0,"li",19),f(1,"nz-icon",39),h(2,"button",40),S("click",function(){let a=_(e).$implicit,i=p();return k(i.fs.openFavorite(a))}),E(3),u()()}if(r&2){let e=n.$implicit;d(2),g("nz-tooltip",e.path),d(),ke(" ",e.label," ")}}function zl(r,n){if(r&1){let e=M();$(0),h(1,"div",41)(2,"label"),E(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),u(),h(4,"nz-input-wrapper")(5,"input",42),Nt("ngModelChange",function(a){_(e);let i=p();return At(i.fs.newFolderName,a)||(i.fs.newFolderName=a),k(a)}),u(),f(6,"nz-icon",43)(7,"nz-icon",44),u(),h(8,"div",45),E(9),u()(),G()}if(r&2){let e=p();d(5),Ot("ngModel",e.fs.newFolderName),d(4),Pa("",e.fs.currentPath(),"",e.fs.newFolderName())}}function bl(r,n){if(r&1){let e=M();$(0),h(1,"button",46),S("click",function(){_(e);let a=p();return k(a.fs.isCreateFolderModalVisible.set(!1))}),E(2,"\u53D6\u6D88"),u(),h(3,"button",47),S("click",function(){_(e);let a=p();return k(a.fs.confirmCreateFolder())}),f(4,"nz-icon",48),E(5," \u521B\u5EFA "),u(),G()}if(r&2){let e=p();d(3),g("disabled",!e.fs.newFolderName().trim())}}var oi=class r{constructor(n){this.fs=n}ngOnInit(){this.fs.load()}static \u0275fac=function(e){return new(e||r)(va(Xt))};static \u0275cmp=w({type:r,selectors:[["app-fs-explorer"]],decls:35,vars:10,consts:[["collectMenu","nzDropdownMenu"],["moreMenu","nzDropdownMenu"],[1,"page"],[1,"toolbar"],["nz-button","","nz-tooltip","\u4E0A\u4E00\u5C42",3,"click","disabled"],["nzType","up","nzTheme","outline"],[1,"path-edit"],[1,"current-path"],["nz-button","","nzType","primary","nz-tooltip","\u5237\u65B0",3,"click","nzLoading"],["nzTheme","outline",3,"nzType"],["nz-button","","nz-tooltip","\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF",3,"click"],["nzType","star",3,"nzTheme"],["nz-button","","nz-tooltip","\u6536\u85CF\u7684\u6587\u4EF6\u5939","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","caret-down","nzTheme","outline"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click","nz-tooltip","\u66F4\u591A\u64CD\u4F5C",3,"nzDropdownMenu"],["nzType","more","nzTheme","outline"],[1,"folders"],[1,"folder-item"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"],["nzType","folder-add","nzTheme","fill",2,"font-size","16px"],["nzType","eye","nzTheme","fill",2,"font-size","16px"],[2,"margin-left","8px",3,"ngModel"],["nzTitle","\u65B0\u5EFA\u6587\u4EF6\u5939",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-input","","nzSize","small","placeholder","\u8F93\u5165\u6587\u4EF6\u5939\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5982 D:\\work \u6216 /Users/xx",3,"ngModelChange","keyup.enter","ngModel"],["nzInputSuffix","","nz-button","","nzType","link"],["nzInputSuffix","","nzType","edit","nzTheme","outline"],[1,"path-value"],[1,"path-part"],["nz-button","","nzType","link",3,"click"],["nzType","edit","nzTheme","outline"],[1,"folder-item",3,"click"],[1,"icon"],["nz-icon","",3,"nzType"],[1,"name",3,"title"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],["nzType","folder","nzTheme","fill"],["nz-button","","nzType","link",3,"click","nz-tooltip"],[1,"modal-body"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],["nzInputSuffix","","nzType","question-circle","nzTheme","outline","nz-tooltip","\u4F60\u53EF\u4EE5\u4F7F\u7528\u8DEF\u5F84\u5206\u9694\u7B26\u6765\u521B\u5EFA\u5D4C\u5957\u7684\u6587\u4EF6\u5939","nzTooltipTrigger","hover","nzTooltipPlacement","right"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","folder-add","nzTheme","fill"]],template:function(e,t){if(e&1){let a=M();h(0,"div",2)(1,"div",3)(2,"button",4),S("click",function(){return _(a),k(t.fs.up())}),f(3,"nz-icon",5),u(),x(4,Sl,5,1,"div",6)(5,Dl,6,0,"div",7),h(6,"button",8),S("click",function(){return _(a),k(t.fs.load(!0))}),f(7,"nz-icon",9),u(),h(8,"button",10),S("click",function(){return _(a),k(t.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),u(),h(10,"button",12),f(11,"nz-icon",13),u(),h(12,"button",14),f(13,"nz-icon",15),u()(),h(14,"div",16),Ie(15,Yl,6,5,"div",17,ya),u()(),h(17,"nz-dropdown-menu",null,0)(19,"ul",18),Ie(20,xl,4,2,"li",19,kl),u()(),h(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),S("click",function(){return _(a),k(t.fs.openCreateFolderModal())}),f(26,"nz-icon",21),E(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),u(),h(28,"li",20),S("click",function(){return _(a),k(t.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),E(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),u()()(),h(32,"nz-modal",24),Nt("nzVisibleChange",function(o){return _(a),At(t.fs.isCreateFolderModalVisible,o)||(t.fs.isCreateFolderModalVisible=o),k(o)}),S("nzOnCancel",function(){return _(a),k(t.fs.isCreateFolderModalVisible.set(!1))}),F(33,zl,10,3,"ng-container",25)(34,bl,6,1,"ng-container",26),u()}if(e&2){let a=We(18),i=We(23);d(2),g("disabled",!t.fs.canUp()),d(2),z(t.fs.isEditingPath()?4:5),d(2),g("nzLoading",t.fs.reloading()),d(),g("nzType",t.fs.reloading()?"loading":"reload"),d(2),g("nzTheme",t.fs.isCurFavorited()?"fill":"outline"),d(),g("nzDropdownMenu",a),d(2),g("nzDropdownMenu",i),d(3),Oe(t.fs.entries()),d(5),Oe(t.fs.favorites()),d(11),g("ngModel",t.fs.showSystemFolders()),d(),Ot("nzVisible",t.fs.isCreateFolderModalVisible),g("nzMaskClosable",!1)}},dependencies:[Da,ir,nr,ar,rr,dr,sr,cr,or,lr,_t,yt,vt,qe,fe,ge,mr,pr,Sr,yr,tn,_r,Pr,kr,nn,ii,aa,ri,ai,na,ta],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:16px 0;flex:0 0 auto}.folders[_ngcontent-%COMP%]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;position:relative}.current-path[_ngcontent-%COMP%]{min-width:0;flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;height:34px}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%] .path-part[_ngcontent-%COMP%]{flex:auto 0 0;border-left-width:2px;border-left-style:solid}.path-edit[_ngcontent-%COMP%]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;border:none;outline:none}.folder-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0 4px;flex:auto 0 0}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:100% 1 1;display:inline-flex;align-items:center;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;margin-left:4px}.modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}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%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.default [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000000d9}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#fff}html.default [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.dark [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffd9}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#141414}html.dark [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}"]})};var pn=class r{api=s(it);fs=s(ot);async checkPathExists(n){return await sa(this.fs.pathExists(n))}detect(n){return this.api.post("/api/projects/detect",{rootPath:n})}async pickFolder(){return null}bootstrapByCli(n){return this.api.post("/api/projects/bootstrap/cli",{parentDir:n.parentDir,name:n.name,rootPath:n.rootPath,packageManager:n.packageManager,overwriteIfExists:n.overwriteIfExists,skipOnboarding:n.skipOnboarding,initGit:n.initGit,initialCommitMessage:n.initialCommitMessage,cliFramework:n.cliFramework,cliTool:n.cliTool,cliArgs:n.cliArgs??[]})}bootstrapPickRoot(n){return this.api.post("/api/projects/bootstrap/pickRoot",n)}bootstrapByGit(n){return this.api.post("/api/projects/bootstrap/git",{repoUrl:n.repoUrl,parentDir:n.parentDir,name:n.name,rootPath:n.rootPath,overwriteIfExists:n.overwriteIfExists,initGit:n.initGit,initialCommitMessage:n.initialCommitMessage,packageManager:n.packageManager,skipOnboarding:n.skipOnboarding??!0})}list(){return this.api.get("/api/projects/list")}get(n){return this.api.get(`/api/projects/getInfo/${n}`)}check(n){return this.api.post("/api/projects/check",{rootPath:n})}createByPath(n){return this.api.post("/api/projects/create",n)}checkImport(n){return this.api.post("/api/projects/checkImport",{root:n})}importByPath(n){return this.api.post("/api/projects/import",n)}delete(n){return this.api.delete(`/api/projects/delete/${n}`)}update(n,e){return this.api.post(`/api/projects/update/${n}`,e)}setFavorite(n,e){return this.api.post(`/api/projects/favorite/${n}`,{isFavorite:e})}toggleFavorite(n){return this.api.post(`/api/projects/favorite/${n}/toggle`,{})}setLastOpened(n,e){return this.api.post(`/api/projects/lastOpened/${n}`,{timestamp:e})}openInEditor(n,e="code"){return this.api.post(`/api/projects/openInEditor/${n}`,{editor:e})}edit(n,e){return this.api.post(`/api/projects/edit/${n}`,e)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var Ml=(r,n)=>({$implicit:r,data:n});function wl(r,n){r&1&&f(0,"nz-icon",3)}function Fl(r,n){r&1&&f(0,"nz-icon",4)}function El(r,n){r&1&&f(0,"nz-icon",5)}function Il(r,n){r&1&&f(0,"nz-icon",6)}function Ol(r,n){r&1&&f(0,"nz-icon",7)}function Al(r,n){if(r&1&&($(0),f(1,"span",9),G()),r&2){let e=p();d(),g("innerHTML",e.instance.content,we)}}function Nl(r,n){if(r&1){let e=M();h(0,"nz-message",2),S("destroyed",function(a){_(e);let i=p();return k(i.remove(a.id,a.userAction))}),u()}if(r&2){let e=n.$implicit;g("instance",e)}}var jl=0,ra=class{container;nzSingletonService=s(er);injector=s(ye);remove(n){this.container&&(n?this.container.remove(n):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${jl++}`}withContainer(n){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let t=at(this.injector,{hasBackdrop:!1,scrollStrategy:Ha(),positionStrategy:qt(this.injector)}),a=new kt(n,null,this.injector),i=t.attach(a),o=t.hostElement;return o.style.zIndex="1010",e||(this.container=e=i.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),t.dispose()})),e}},Rl=(()=>{class r{config;instances=[];_afterAllInstancesRemoved=new y;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=s(q);nzConfigService=s(xe);constructor(){this.subscribeConfigChange()}create(e){let t=this.onCreate(e);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,t],this.readyInstances(),t}remove(e,t=!1){this.instances.map((a,i)=>({index:i,instance:a})).filter(({instance:a})=>a.messageId===e).forEach(({index:a,instance:i})=>{this.instances.splice(a,1),this.instances=[...this.instances],this.onRemove(i,t),this.readyInstances()}),this.instances.length||this.onAllInstancesRemoved()}removeAll(){this.instances.forEach(e=>this.onRemove(e,!1)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved()}onCreate(e){return e.options=this.mergeOptions(e.options),e.onClose=new y,e}onRemove(e,t){e.onClose.next(t),e.onClose.complete()}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(e){let{nzDuration:t,nzAnimate:a,nzPauseOnHover:i}=this.config;return Z({nzDuration:t,nzAnimate:a,nzPauseOnHover:i},e)}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r})}return r})(),Ll=(()=>{class r{cdr=s(q);destroyRef=s(K);animationStateChanged=new y;options;autoClose;closeTimer;userAction=!1;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()})}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(U(e=>e.phaseName==="done"&&e.toState==="leave"),be(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(e=!1){this.userAction=e,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:e})},200)):this.destroyed.next({id:this.instance.messageId,userAction:e})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0)}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r})}return r})(),Vl=(()=>{class r extends Ll{instance;destroyed=new D;index;static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275cmp=w({type:r,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[Ue],decls:9,vars:13,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(t,a){if(t&1&&(h(0,"div",0),S("@moveUpMotion.done",function(o){return a.animationStateChanged.next(o)})("mouseenter",function(){return a.onEnter()})("mouseleave",function(){return a.onLeave()}),h(1,"div",1)(2,"div",2),x(3,wl,1,0,"nz-icon",3)(4,Fl,1,0,"nz-icon",4)(5,El,1,0,"nz-icon",5)(6,Il,1,0,"nz-icon",6)(7,Ol,1,0,"nz-icon",7),F(8,Al,2,1,"ng-container",8),u()()()),t&2){let i;Te(a.instance.options==null?null:a.instance.options.nzStyle),se(a.instance.options==null?null:a.instance.options.nzClass),g("@moveUpMotion",a.instance.state),d(2),se("ant-message-"+a.instance.type),d(),z((i=a.instance.type)==="success"?3:i==="info"?4:i==="warning"?5:i==="error"?6:i==="loading"?7:-1),d(5),g("nzStringTemplateOutlet",a.instance.content)("nzStringTemplateOutletContext",jt(10,Ml,a,a.instance.options==null?null:a.instance.options.nzData))}},dependencies:[fe,ge,de,ce],encapsulation:2,data:{animation:[$a]},changeDetection:0})}return r})(),mn="message",Hl={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"},Bl=(()=>{class r extends Rl{dir=this.nzConfigService.getConfigForComponent(mn)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig()}subscribeConfigChange(){Vt(mn,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(mn)?.nzDirection||this.dir})}updateConfig(){this.config=Z(Z(Z({},Hl),this.config),this.nzConfigService.getConfigForComponent(mn)),this.top=wa(this.config.nzTop),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[Ue],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(t,a){t&1&&(h(0,"div",0),Ie(1,Nl,1,1,"nz-message",1,It),u()),t&2&&(he("top",a.top),j("ant-message-rtl",a.dir==="rtl"),d(),Oe(a.instances))},dependencies:[Vl],encapsulation:2,changeDetection:0})}return r})(),li=(()=>{class r extends ra{componentPrefix="message-";success(e,t){return this.createInstance({type:"success",content:e},t)}error(e,t){return this.createInstance({type:"error",content:e},t)}info(e,t){return this.createInstance({type:"info",content:e},t)}warning(e,t){return this.createInstance({type:"warning",content:e},t)}loading(e,t){return this.createInstance({type:"loading",content:e},t)}create(e,t,a){return this.createInstance({type:e,content:t},a)}createInstance(e,t){return this.container=this.withContainer(Bl),this.container.create(pt(Z({},e),{createdAt:new Date,messageId:this.getInstanceId(),options:t}))}static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var hn=class r{msg=s(li);error(n,e){this.msg.error(n)}warn(n){this.msg.warning(n)}info(n){this.msg.info(n)}success(n){this.msg.success(n)}banner(n,e){}totast(n,e){}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var si=class r{modal=s(dn);notify=s(hn);projectService=s(pn);ls=s(lt);currentProjectId=N(null);currentProject=N(null);projects=N([]);keyword=N("");isEditModalVisible=N(!1);isEditSaving=N(!1);editingProject=N(null);filteredProjects=Pe(()=>{let n=this.keyword().trim().toLowerCase();return n?this.projects().filter(e=>e.name.toLowerCase().includes(n)):this.projects()});favoriteProjects=Pe(()=>this.filteredProjects().filter(n=>n.isFavorite));moreProjects=Pe(()=>this.filteredProjects().filter(n=>!n.isFavorite));recentProjects=Pe(()=>this.projects().slice().sort((n,e)=>{let t=new Date(n.lastOpened||0).getTime();return new Date(e.lastOpened||0).getTime()-t}).slice(0,5));selectProject(n){this.setCurrentProject(n);let e=Date.now();this.projects.update(t=>t.map(a=>a.id===n.id?pt(Z({},a),{lastOpened:e}):a)),this.currentProject.update(t=>t&&pt(Z({},t),{lastOpened:e})),this.projectService.setLastOpened(n.id,e).subscribe()}patchProject(n){this.projects.update(e=>e.map(t=>t.id===n.id?n:t)),this.currentProjectId()===n.id&&this.currentProject.set(n)}openInEditor(n){this.projectService.openInEditor(n).subscribe({next:()=>{console.log("Opened project in editor:",n),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(n){this.projectService.toggleFavorite(n).subscribe(e=>{this.patchProject(e)})}getProjects(n){this.projectService.list().subscribe(e=>{if(this.projects.set(e),!e.length){this.setCurrentProject(null);return}if(n)this.setCurrentProjectById(n);else{let t=this.ls.getNullable($e.project.currentProjectId),a=t?e.find(i=>i.id===t):null;if(a){this.setCurrentProject(a);return}this.currentProjectId()||this.setCurrentProject(e[0])}})}getProjectById(n){return this.projects().find(e=>e.id===n)||null}setCurrentProject(n){this.currentProject.set(n);let e=n?n.id:null;this.currentProjectId.set(e),e?this.ls.set($e.project.currentProjectId,e):this.ls.remove($e.project.currentProjectId)}setCurrentProjectById(n){let e=this.projects().find(t=>t.id===n)||null;this.setCurrentProject(e)}isOpen(n){return this.currentProjectId()===n.id}openEditModal(n){this.editingProject.set({id:n.id,name:n.name??"",repoPageUrl:n.repoPageUrl??"",description:n.description??""}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditSaving()||(this.isEditModalVisible.set(!1),this.editingProject.set(null))}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:n,name:e,description:t,repoPageUrl:a}=this.editingProject();if(!n){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!e)return;let i=t?.trim(),o=a?.trim(),l=this.getProjectById(n);if(l&&l.name===e&&l.description===i&&l.repoPageUrl===o){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(n,{name:e,description:i,repoPageUrl:o}).subscribe({next:c=>{this.isEditSaving.set(!1),this.patchProject(c),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.closeEditModal()},error:c=>{this.notify.error(c?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)},complete:()=>{this.isEditSaving.set(!1)}})}deleteProject(n){this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664\u8BE5\u9879\u76EE\u5417\uFF1F",nzContent:"\u5220\u9664\u9879\u76EE\u53EA\u4F1A\u79FB\u9664\u9879\u76EE\u8BB0\u5F55\uFF0C\u4E0D\u4F1A\u5220\u9664\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u5939\u3002\u5982\u9700\u5220\u9664\u78C1\u76D8\u6587\u4EF6\uFF0C\u8BF7\u624B\u52A8\u64CD\u4F5C\u3002",nzOkText:"\u5220\u9664",nzCancelText:"\u53D6\u6D88",nzOkDanger:!0,nzOnOk:()=>{this.projectService.delete(n).subscribe({next:()=>{if(this.projects.update(e=>e.filter(t=>t.id!==n)),this.currentProjectId()===n){let e=this.projects()[0]||null;this.setCurrentProject(e),e||this.notify.info("\u5F53\u524D\u6CA1\u6709\u9879\u76EE\uFF0C\u8BF7\u5148\u521B\u5EFA\u6216\u5BFC\u5165\u9879\u76EE")}this.notify.success("\u9879\u76EE\u5DF2\u5220\u9664")}})}})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};export{ho as a,Tc as b,an as c,Yc as d,xc as e,Qt as f,it as g,ot as h,$e as i,lt as j,Xt as k,tn as l,vr as m,yr as n,no as o,Us as p,nn as q,_r as r,kr as s,Pr as t,Sr as u,al as v,dt as w,dn as x,ta as y,na as z,ai as A,ri as B,aa as C,ii as D,oi as E,pn as F,li as G,hn as H,si as I};
4
+ https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),a||t||this._getObjectPath(mo,e)||{}}_getObjectPath(e,t){let a=e,i=t.split("."),o=i.length,l=0;for(;a&&l<o;)a=a[i[l++]];return l===o?a:null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Yc=(()=>{class r{_locale=s(rn);transform(e,t){return this._locale.translate(e,t)}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=ut({name:"nzI18n",type:r,pure:!0})}return r})(),xc=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();var Cr=class r{static formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(n,e=0,t="B",a){if(!(Mn(n)&&Mn(e)&&e%1===0&&e>=0))return n;let i=n,o=t;for(;o!=="B";)i*=1024,o=r.formats[o].prev;if(a){let l=r.formats[a],c=wn(r.calculateResult(l,i),e);return r.formatResult(c,a)}for(let l in r.formats)if(r.formats.hasOwnProperty(l)){let c=r.formats[l];if(i<c.max){let m=wn(r.calculateResult(c,i),e);return r.formatResult(m,l)}}}static formatResult(n,e){return`${n} ${e}`}static calculateResult(n,e){let t=n.prev?r.formats[n.prev]:void 0;return t?e/t.max:e}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=ut({name:"nzBytes",type:r,pure:!0})},Vn=(()=>{class r{transform(e,t="px"){return typeof e=="number"?`${e}${t}`:e}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=ut({name:"nzToCssUnit",type:r,pure:!0})}return r})();var Hn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({})}return r})();function Kn(r){let n=r.cloneNode(!0),e=n.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();n.removeAttribute("id");for(let a=0;a<e.length;a++)e[a].removeAttribute("id");return t==="canvas"?Yr(r,n):(t==="input"||t==="select"||t==="textarea")&&Tr(r,n),Dr("canvas",r,n,Yr),Dr("input, textarea, select",r,n,Tr),n}function Dr(r,n,e,t){let a=n.querySelectorAll(r);if(a.length){let i=e.querySelectorAll(r);for(let o=0;o<a.length;o++)t(a[o],i[o])}}var fo=0;function Tr(r,n){n.type!=="file"&&(n.value=r.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${fo++}`)}function Yr(r,n){let e=n.getContext("2d");if(e)try{e.drawImage(r,0,0)}catch{}}function Jn(r){let n=r.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function Wn(r,n,e){let{top:t,bottom:a,left:i,right:o}=r;return e>=t&&e<=a&&n>=i&&n<=o}function vo(r,n){let e=n.left<r.left,t=n.left+n.width>r.right,a=n.top<r.top,i=n.top+n.height>r.bottom;return e||t||a||i}function Dt(r,n,e){r.top+=n,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function xr(r,n,e,t){let{top:a,right:i,bottom:o,left:l,width:c,height:m}=r,v=c*n,T=m*n;return t>a-T&&t<o+T&&e>l-v&&e<i+v}var on=class{_document;positions=new Map;constructor(n){this._document=n}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Jn(e)})})}handleScroll(n){let e=ft(n),t=this.positions.get(e);if(!t)return null;let a=t.scrollPosition,i,o;if(e===this._document){let m=this.getViewportScrollPosition();i=m.top,o=m.left}else i=e.scrollTop,o=e.scrollLeft;let l=a.top-i,c=a.left-o;return this.positions.forEach((m,v)=>{m.clientRect&&e!==v&&e.contains(v)&&Dt(m.clientRect,l,c)}),a.top=i,a.left=o,{top:l,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function jr(r,n){let e=r.rootNodes;if(e.length===1&&e[0].nodeType===n.ELEMENT_NODE)return e[0];let t=n.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function Xn(r,n,e){for(let t in n)if(n.hasOwnProperty(t)){let a=n[t];a?r.setProperty(t,a,e?.has(t)?"important":""):r.removeProperty(t)}return r}function st(r,n){let e=n?"":"none";Xn(r.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zr(r,n,e){Xn(r.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function ln(r,n){return n&&n!="none"?r+" "+n:r}function br(r,n){r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,r.style.transform=Tt(n.left,n.top)}function Tt(r,n){return`translate3d(${Math.round(r)}px, ${Math.round(n)}px, 0)`}function Mr(r){let n=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*n}function yo(r){let n=getComputedStyle(r),e=Bn(n,"transition-property"),t=e.find(l=>l==="transform"||l==="all");if(!t)return 0;let a=e.indexOf(t),i=Bn(n,"transition-duration"),o=Bn(n,"transition-delay");return Mr(i[a])+Mr(o[a])}function Bn(r,n){return r.getPropertyValue(n).split(",").map(t=>t.trim())}var _o=new Set(["position"]),qn=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(n,e,t,a,i,o,l,c,m,v){this._document=n,this._rootElement=e,this._direction=t,this._initialDomRect=a,this._previewTemplate=i,this._previewClass=o,this._pickupPositionOnPage=l,this._initialTransform=c,this._zIndex=m,this._renderer=v}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),wr(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return yo(this._preview)}addEventListener(n,e){return this._renderer.listen(this._preview,n,e)}_createPreview(){let n=this._previewTemplate,e=this._previewClass,t=n?n.template:null,a;if(t&&n){let i=n.matchSize?this._initialDomRect:null,o=n.viewContainer.createEmbeddedView(t,n.context);o.detectChanges(),a=jr(o,this._document),this._previewEmbeddedView=o,n.matchSize?br(a,i):a.style.transform=Tt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=Kn(this._rootElement),br(a,this._initialDomRect),this._initialTransform&&(a.style.transform=this._initialTransform);return Xn(a.style,{"pointer-events":"none",margin:wr(a)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},_o),st(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("popover","manual"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(i=>a.classList.add(i)):a.classList.add(e)),a}};function wr(r){return"showPopover"in r}var ko={passive:!0},Fr={passive:!1},Po={passive:!1,capture:!0},So=800,Er="cdk-drag-placeholder",Ir=new Set(["position"]),$n=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=N(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new y;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Le.EMPTY;_pointerUpSubscription=Le.EMPTY;_scrollSubscription=Le.EMPTY;_resizeSubscription=Le.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(e=>st(e,n)))}_disabled=!1;beforeStarted=new y;started=new y;released=new y;ended=new y;entered=new y;exited=new y;dropped=new y;moved=this._moveEvents;data;constrainPosition;constructor(n,e,t,a,i,o,l){this._config=e,this._document=t,this._ngZone=a,this._viewportRuler=i,this._dragDropRegistry=o,this._renderer=l,this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new on(t),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(t=>Ye(t)),this._handles.forEach(t=>st(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let e=Ye(n);if(e!==this._rootElement){this._removeRootElementListeners();let t=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"mousedown",this._pointerDown,Fr),t.listen(e,"touchstart",this._pointerDown,ko),t.listen(e,"dragstart",this._nativeDragStart,Fr)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Ye(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&vo(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),t=0,a=0;e.left<n.left?t=n.left-e.left:e.right>n.right&&(t=n.right-e.right),e.top<n.top?a=n.top-e.top:e.bottom>n.bottom&&(a=n.bottom-e.bottom);let i=this._activeTransform.x,o=this._activeTransform.y,l=i+t,c=o+a;this._rootElement.style.transform=Tt(l,c),this._activeTransform={x:l,y:c},this._passiveTransform={x:l,y:c}}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),st(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),st(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let e=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let a=Math.abs(e.x-this._pickupPositionOnPage.x),i=Math.abs(e.y-this._pickupPositionOnPage.y);if(a+i>=this._config.dragStartThreshold){let l=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),c=this._dropContainer;if(!l){this._endDragSequence(n);return}(!c||!c.isDragging()&&!c.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let a=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=t.x-a.x+this._passiveTransform.x,i.y=t.y-a.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:n,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){St(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Co,Po)}),t){let a=this._rootElement,i=a.parentNode,o=this._placeholder=this._createPlaceholderElement(),l=this._marker=this._marker||this._document.createComment("");i.insertBefore(l,a),this._initialTransform=a.style.transform||"",this._preview=new qn(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,e)),zr(a,!1,Ir),this._document.body.appendChild(i.replaceChild(o,a)),this.started.next({source:this,event:n}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),a=St(e),i=!a&&e.button!==0,o=this._rootElement,l=ft(e),c=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+So>Date.now(),m=a?Oa(e):Ia(e);if(l&&l.draggable&&e.type==="mousedown"&&e.preventDefault(),t||i||c||m)return;if(this._handles.length){let Y=o.style;this._rootElementTapHighlight=Y.webkitTapHighlightColor||"",Y.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Y=>this._updateOnScroll(Y)),this._boundaryElement&&(this._boundaryRect=Jn(this._boundaryElement));let v=this._previewTemplate;this._pickupPositionInElement=v&&v.template&&!v.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);let T=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:T.x,y:T.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){zr(this._rootElement,!0,Ir),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(n),i=this._getDragDistance(a),o=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:i,dropPoint:a,event:n}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:i,dropPoint:a,event:n}),e.drop(this,t,this._initialIndex,this._initialContainer,o,i,a,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:t,y:a}){let i=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),l=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(i,this._dropContainer,l),this._dropContainer=i,this._dropContainer.enter(this,n,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let a=l=>{(!l||this._preview&&ft(l)===this._preview.element&&l.propertyName==="transform")&&(o(),t(),clearTimeout(i))},i=setTimeout(a,e*1.5),o=this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,e=n?n.template:null,t;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),t=jr(this._placeholderRef,this._document)):t=Kn(this._rootElement),t.style.pointerEvents="none",t.classList.add(Er),t}_getPointerPositionInElement(n,e,t){let a=e===this._rootElement?null:e,i=a?a.getBoundingClientRect():n,o=St(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition(),c=o.pageX-i.left-l.left,m=o.pageY-i.top-l.top;return{x:i.left-n.left+c,y:i.top-n.top+m}}_getPointerPositionOnPage(n){let e=this._getViewportScrollPosition(),t=St(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,a=t.pageX-e.left,i=t.pageY-e.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let l=this._ownerSVGElement.createSVGPoint();return l.x=a,l.y=i,l.matrixTransform(o.inverse())}}return{x:a,y:i}}_getConstrainedPointerPosition(n){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:a}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||e==="x"?a=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,l=this._boundaryRect,{width:c,height:m}=this._getPreviewRect(),v=l.top+o,T=l.bottom-(m-o),Y=l.left+i,I=l.right-(c-i);t=Or(t,Y,I),a=Or(a,v,T)}return{x:t,y:a}}_updatePointerDirectionDelta(n){let{x:e,y:t}=n,a=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-i.x),l=Math.abs(t-i.y);return o>this._config.pointerDirectionChangeThreshold&&(a.x=e>i.x?1:-1,i.x=e),l>this._config.pointerDirectionChangeThreshold&&(a.y=t>i.y?1:-1,i.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,st(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,e){let t=1/this.scale,a=Tt(n*t,e*t),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=ln(a,this._initialTransform)}_applyPreviewTransform(n,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,a=Tt(n,e);this._preview.setTransform(ln(a,t))}_getDragDistance(n){let e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(n===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(a.width===0&&a.height===0||t.width===0&&t.height===0)return;let i=a.left-t.left,o=t.right-a.right,l=a.top-t.top,c=t.bottom-a.bottom;a.width>t.width?(i>0&&(n+=i),o>0&&(n-=o)):n=0,a.height>t.height?(l>0&&(e+=l),c>0&&(e-=c)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){let e=this.dragStartDelay;return typeof e=="number"?e:St(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){let e=this._parentPositions.handleScroll(n);if(e){let t=ft(n);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Dt(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Kt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){let t=this._previewContainer||"global";if(t==="parent")return n;if(t==="global"){let a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return Ye(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}_conditionallyInsertAnchor(n,e,t){if(n===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let a=this._anchor??=Kn(this._placeholder);a.classList.remove(Er),a.classList.add("cdk-drag-anchor"),a.style.transform="",t?t.before(a):Ye(e.element).appendChild(a)}}};function Or(r,n,e){return Math.max(n,Math.min(e,r))}function St(r){return r.type[0]==="t"}function Co(r){r.preventDefault()}function Rr(r,n,e){let t=Ar(n,r.length-1),a=Ar(e,r.length-1);if(t===a)return;let i=r[t],o=a<t?-1:1;for(let l=t;l!==a;l+=o)r[l]=r[l+o];r[a]=i}function Ar(r,n){return Math.max(0,Math.min(n,r))}var sn=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(n){this._dragDropRegistry=n}_previousSwap={drag:null,delta:0,overlaps:!1};start(n){this.withItems(n)}sort(n,e,t,a){let i=this._itemPositions,o=this._getItemIndexFromPointerPosition(n,e,t,a);if(o===-1&&i.length>0)return null;let l=this.orientation==="horizontal",c=i.findIndex(H=>H.drag===n),m=i[o],v=i[c].clientRect,T=m.clientRect,Y=c>o?1:-1,I=this._getItemOffsetPx(v,T,Y),O=this._getSiblingOffsetPx(c,i,Y),ze=i.slice();return Rr(i,c,o),i.forEach((H,Re)=>{if(ze[Re]===H)return;let Ge=H.drag===n,A=Ge?I:O,zt=Ge?n.getPlaceholderElement():H.drag.getRootElement();H.offset+=A;let bt=Math.round(H.offset*(1/H.drag.scale));l?(zt.style.transform=ln(`translate3d(${bt}px, 0, 0)`,H.initialTransform),Dt(H.clientRect,0,A)):(zt.style.transform=ln(`translate3d(0, ${bt}px, 0)`,H.initialTransform),Dt(H.clientRect,A,0))}),this._previousSwap.overlaps=Wn(T,e,t),this._previousSwap.drag=m.drag,this._previousSwap.delta=l?a.x:a.y,{previousIndex:c,currentIndex:o}}enter(n,e,t,a){let i=a==null||a<0?this._getItemIndexFromPointerPosition(n,e,t):a,o=this._activeDraggables,l=o.indexOf(n),c=n.getPlaceholderElement(),m=o[i];if(m===n&&(m=o[i+1]),!m&&(i==null||i===-1||i<o.length-1)&&this._shouldEnterAsFirstChild(e,t)&&(m=o[0]),l>-1&&o.splice(l,1),m&&!this._dragDropRegistry.isDragging(m)){let v=m.getRootElement();v.parentElement.insertBefore(c,v),o.splice(i,0,n)}else this._element.appendChild(c),o.push(n);c.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let e=n.getRootElement();if(e){let t=this._itemPositions.find(a=>a.drag===n)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return this._getVisualItemPositions().findIndex(e=>e.drag===n)}getItemAtIndex(n){return this._getVisualItemPositions()[n]?.drag||null}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:t})=>{Dt(t,n,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Jn(t)}}).sort((e,t)=>n?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(n,e,t){let a=this.orientation==="horizontal",i=a?e.left-n.left:e.top-n.top;return t===-1&&(i+=a?e.width-n.width:e.height-n.height),i}_getSiblingOffsetPx(n,e,t){let a=this.orientation==="horizontal",i=e[n].clientRect,o=e[n+t*-1],l=i[a?"width":"height"]*t;if(o){let c=a?"left":"top",m=a?"right":"bottom";t===-1?l-=o.clientRect[c]-i[m]:l+=i[c]-o.clientRect[m]}return l}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,a=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let o=t[t.length-1].clientRect;return a?n>=o.right:e>=o.bottom}else{let o=t[0].clientRect;return a?n<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(n,e,t,a){let i=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:l,clientRect:c})=>{if(l===n)return!1;if(a){let m=i?a.x:a.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&m===this._previousSwap.delta)return!1}return i?e>=Math.floor(c.left)&&e<Math.floor(c.right):t>=Math.floor(c.top)&&t<Math.floor(c.bottom)});return o===-1||!this._sortPredicate(o,n)?-1:o}},Gn=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(n,e){this._document=n,this._dragDropRegistry=e}start(n){let e=this._element.childNodes;this._relatedNodes=[];for(let t=0;t<e.length;t++){let a=e[t];this._relatedNodes.push([a,a.nextSibling])}this.withItems(n)}sort(n,e,t,a){let i=this._getItemIndexFromPointerPosition(n,e,t),o=this._previousSwap;if(i===-1||this._activeItems[i]===n)return null;let l=this._activeItems[i];if(o.drag===l&&o.overlaps&&o.deltaX===a.x&&o.deltaY===a.y)return null;let c=this.getItemIndex(n),m=n.getPlaceholderElement(),v=l.getRootElement();i>c?v.after(m):v.before(m),Rr(this._activeItems,c,i);let T=this._getRootNode().elementFromPoint(e,t);return o.deltaX=a.x,o.deltaY=a.y,o.drag=l,o.overlaps=v===T||v.contains(T),{previousIndex:c,currentIndex:i}}enter(n,e,t,a){let i=this._activeItems.indexOf(n);i>-1&&this._activeItems.splice(i,1);let o=a==null||a<0?this._getItemIndexFromPointerPosition(n,e,t):a;o===-1&&(o=this._getClosestItemIndexToPointer(n,e,t));let l=this._activeItems[o];l&&!this._dragDropRegistry.isDragging(l)?(this._activeItems.splice(o,0,n),l.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[a,i]=this._relatedNodes[t];a.parentNode===n&&a.nextSibling!==i&&(i===null?n.appendChild(a):i.parentNode===n&&n.insertBefore(a,i))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}getItemAtIndex(n){return this._activeItems[n]||null}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,e,t){let a=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),i=a?this._activeItems.findIndex(o=>{let l=o.getRootElement();return a===l||l.contains(a)}):-1;return i===-1||!this._sortPredicate(i,n)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=Kt(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let a=1/0,i=-1;for(let o=0;o<this._activeItems.length;o++){let l=this._activeItems[o];if(l!==n){let{x:c,y:m}=l.getRootElement().getBoundingClientRect(),v=Math.hypot(e-c,t-m);v<a&&(a=v,i=o)}}return i}},Nr=.05,Lr=.05,pe=(function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r})(pe||{}),ee=(function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r})(ee||{}),Zn=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new y;entered=new y;exited=new y;dropped=new y;sorted=new y;receivingStarted=new y;receivingStopped=new y;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Le.EMPTY;_verticalScrollDirection=pe.NONE;_horizontalScrollDirection=ee.NONE;_scrollNode;_stopScrollTimers=new y;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,e,t,a,i){this._dragDropRegistry=e,this._ngZone=a,this._viewportRuler=i;let o=this.element=Ye(n);this._document=t,this.withOrientation("vertical").withElementContainer(o),e.registerDropContainer(this),this._parentPositions=new on(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,t,a){this._draggingStarted(),a==null&&this.sortingDisabled&&(a=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,t,a,i,o,l,c={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:i,distance:o,dropPoint:l,event:c})}withItems(n){let e=this._draggables;return this._draggables=n,n.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>n.indexOf(a)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof sn&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new Gn(this._document,this._dragDropRegistry);else{let e=new sn(this._dragDropRegistry);e.direction=this._direction,e.orientation=n,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(n){let e=this._container;return this._scrollableElements=n.indexOf(e)===-1?[e,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let e=Ye(this.element),t=this._scrollableElements.indexOf(this._container),a=this._scrollableElements.indexOf(n);return t>-1&&this._scrollableElements.splice(t,1),a>-1&&this._scrollableElements.splice(a,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,t,a){if(this.sortingDisabled||!this._domRect||!xr(this._domRect,Nr,e,t))return;let i=this._sortStrategy.sort(n,e,t,a);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let t,a=pe.NONE,i=ee.NONE;if(this._parentPositions.positions.forEach((o,l)=>{l===this._document||!o.clientRect||t||xr(o.clientRect,Nr,n,e)&&([a,i]=Do(l,o.clientRect,this._direction,n,e),(a||i)&&(t=l))}),!a&&!i){let{width:o,height:l}=this._viewportRuler.getViewportSize(),c={width:o,height:l,top:0,right:o,bottom:l,left:0};a=Vr(c,e),i=Hr(c,n),t=window}t&&(a!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=i,this._scrollNode=t,(a||i)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),ma(0,la).pipe(Me(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===pe.UP?n.scrollBy(0,-e):this._verticalScrollDirection===pe.DOWN&&n.scrollBy(0,e),this._horizontalScrollDirection===ee.LEFT?n.scrollBy(-e,0):this._horizontalScrollDirection===ee.RIGHT&&n.scrollBy(e,0)})};_isOverContainer(n,e){return this._domRect!=null&&Wn(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,t){return this._siblings.find(a=>a._canReceive(n,e,t))}_canReceive(n,e,t){if(!this._domRect||!Wn(this._domRect,e,t)||!this.enterPredicate(n,this))return!1;let a=this._getShadowRoot().elementFromPoint(e,t);return a?a===this._container||this._container.contains(a):!1}_startReceiving(n,e){let t=this._activeSiblings;!t.has(n)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=Kt(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}};function Vr(r,n){let{top:e,bottom:t,height:a}=r,i=a*Lr;return n>=e-i&&n<=e+i?pe.UP:n>=t-i&&n<=t+i?pe.DOWN:pe.NONE}function Hr(r,n){let{left:e,right:t,width:a}=r,i=a*Lr;return n>=e-i&&n<=e+i?ee.LEFT:n>=t-i&&n<=t+i?ee.RIGHT:ee.NONE}function Do(r,n,e,t,a){let i=Vr(n,a),o=Hr(n,t),l=pe.NONE,c=ee.NONE;if(i){let m=r.scrollTop;i===pe.UP?m>0&&(l=pe.UP):r.scrollHeight-m>r.clientHeight&&(l=pe.DOWN)}if(o){let m=r.scrollLeft;e==="rtl"?o===ee.RIGHT?m<0&&(c=ee.RIGHT):r.scrollWidth+m>r.clientWidth&&(c=ee.LEFT):o===ee.LEFT?m>0&&(c=ee.LEFT):r.scrollWidth-m>r.clientWidth&&(c=ee.RIGHT)}return[l,c]}var Ct={capture:!0},Un={passive:!1,capture:!0},To=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,a){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
5
+ `],encapsulation:2,changeDetection:0})}return r})(),ea=(()=>{class r{_ngZone=s(Ce);_document=s(mt);_styleLoader=s(Na);_renderer=s(vn).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new y;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=N([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new y;pointerUp=new y;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Un)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(To),this._activeDragInstances.update(a=>[...a,e]),this._activeDragInstances().length===1)){let a=t.type.startsWith("touch"),i=l=>this.pointerUp.next(l),o=[["scroll",l=>this._scroll.next(l),Ct],["selectstart",this._preventDefaultWhileDragging,Un]];a?o.push(["touchend",i,Ct],["touchcancel",i,Ct]):o.push(["mouseup",i,Ct]),a||o.push(["mousemove",l=>this.pointerMove.next(l),Un]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([l,c,m])=>this._renderer.listen(this._document,l,c,m))})}}stopDragging(e){this._activeDragInstances.update(t=>{let a=t.indexOf(e);return a>-1?(t.splice(a,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new gn(a=>this._ngZone.runOutsideAngular(()=>{let i=this._renderer.listen(e,"scroll",o=>{this._activeDragInstances().length&&a.next(o)},Ct);return()=>{i()}}))),ie(...t)}registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Yo={dragStartThreshold:5,pointerDirectionChangeThreshold:5},xo=(()=>{class r{_document=s(mt);_ngZone=s(Ce);_viewportRuler=s(Ra);_dragDropRegistry=s(ea);_renderer=s(vn).createRenderer(null,null);constructor(){}createDrag(e,t=Yo){return new $n(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Zn(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Qn=new ae("CDK_DRAG_PARENT");var Br=new ae("CdkDragHandle"),Ur=(()=>{class r{element=s(re);_parentDrag=s(Qn,{optional:!0,skipSelf:!0});_dragDropRegistry=s(ea);_stateChanges=new y;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let t=this._dragDropRegistry.getDragDirectiveForNode(e);if(t){this._parentDrag=t,t._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",P]},features:[ue([{provide:Br,useExisting:r}])]})}return r})(),zo=new ae("CDK_DRAG_CONFIG"),bo=new ae("CdkDropList"),Kr=(()=>{class r{element=s(re);dropContainer=s(bo,{optional:!0,skipSelf:!0});_ngZone=s(Ce);_viewContainerRef=s(Be);_dir=s(Q,{optional:!0});_changeDetectorRef=s(q);_selfHandle=s(Br,{optional:!0,self:!0});_parentDrag=s(Qn,{optional:!0,skipSelf:!0});_dragDropRegistry=s(ea);_destroyed=new y;_handles=new B([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new D;released=new D;ended=new D;entered=new D;exited=new D;dropped=new D;moved=new gn(e=>{let t=this._dragRef.moved.pipe(V(a=>({source:this,pointerPosition:a.pointerPosition,event:a.event,delta:a.delta,distance:a.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=s(ye);constructor(){let e=this.dropContainer,t=s(zo,{optional:!0}),a=s(xo);this._dragRef=a.createDrag(this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(Me(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){va(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,a=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),a=t.indexOf(e);a>-1&&(t.splice(a,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Ye(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,a=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof a=="object"&&a?a:ba(a),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(be(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let a=this._dragDropRegistry.getDragDirectiveForNode(t);if(a){e.withParent(a._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:a,constrainPosition:i,previewClass:o,boundaryElement:l,draggingDisabled:c,rootElementSelector:m,previewContainer:v}=e;this.disabled=c??!1,this.dragStartDelay=a||0,this.lockAxis=t||null,i&&(this.constrainPosition=i),o&&(this.previewClass=o),l&&(this.boundaryElement=l),m&&(this.rootElementSelector=m),v&&(this.previewContainer=v)}_setupHandlesListener(){this._handles.pipe(ha(e=>{let t=e.map(a=>a.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Je(e=>ie(...e.map(t=>t._stateChanges.pipe(He(t))))),Me(this._destroyed)).subscribe(e=>{let t=this._dragRef,a=e.element.nativeElement;e.disabled?t.disableHandle(a):t.enableHandle(a)})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,a){t&2&&j("cdk-drag-disabled",a.disabled)("cdk-drag-dragging",a._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",P],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Rt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ue([{provide:Qn,useExisting:r}]),oe]})}return r})();var Fo=["nz-modal-close",""];function Eo(r,n){if(r&1&&($(0),f(1,"nz-icon",2),G()),r&2){let e=n.$implicit;d(),g("nzType",e)}}var Zr=["modalElement"];function Io(r,n){if(r&1){let e=M();h(0,"button",16),S("click",function(){_(e);let a=p();return k(a.onCloseClick())}),u()}}function Oo(r,n){if(r&1&&($(0),f(1,"span",12),G()),r&2){let e=p();d(),g("innerHTML",e.config.nzTitle,we)}}function Ao(r,n){}function No(r,n){if(r&1&&f(0,"div",12),r&2){let e=p();g("innerHTML",e.config.nzContent,we)}}function jo(r,n){if(r&1){let e=M();h(0,"button",17),S("click",function(){_(e);let a=p();return k(a.onCancel())}),E(1),u()}if(r&2){let e=p();g("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),d(),ke(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function Ro(r,n){if(r&1){let e=M();h(0,"button",18),S("click",function(){_(e);let a=p();return k(a.onOk())}),E(1),u()}if(r&2){let e=p();g("nzType",e.config.nzOkType)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled)("nzDanger",e.config.nzOkDanger),Ee("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),d(),ke(" ",e.config.nzOkText||e.locale.okText," ")}}var Lo=["nz-modal-footer",""],Vo=(r,n)=>({$implicit:r,modalRef:n});function Ho(r,n){if(r&1){let e=M();h(0,"button",3),S("click",function(){let a=_(e).$implicit,i=p(4);return k(i.onButtonClick(a))}),E(1),u()}if(r&2){let e=n.$implicit,t=p(4);g("hidden",!t.getButtonCallableProp(e,"show"))("nzLoading",t.getButtonCallableProp(e,"loading"))("disabled",t.getButtonCallableProp(e,"disabled"))("nzType",e.type)("nzDanger",e.danger)("nzShape",e.shape)("nzSize",e.size)("nzGhost",e.ghost),d(),ke(" ",e.label," ")}}function Bo(r,n){if(r&1&&Ie(0,Ho,2,9,"button",2,It),r&2){let e=p(3);Oe(e.buttons)}}function Uo(r,n){if(r&1&&f(0,"div",1),r&2){let e=p(3);g("innerHTML",e.config.nzFooter,we)}}function Ko(r,n){if(r&1&&($(0),x(1,Bo,2,0)(2,Uo,1,1,"div",1),G()),r&2){let e=p(2);d(),z(e.buttonsFooter?1:2)}}function Wo(r,n){if(r&1&&F(0,Ko,3,1,"ng-container",0),r&2){let e=p();g("nzStringTemplateOutlet",e.config.nzFooter)("nzStringTemplateOutletContext",jt(2,Vo,e.config.nzData,e.modalRef))}}function qo(r,n){if(r&1){let e=M();h(0,"button",6),S("click",function(){_(e);let a=p(2);return k(a.onCancel())}),E(1),u()}if(r&2){let e=p(2);g("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),d(),ke(" ",e.config.nzCancelText||e.locale.cancelText," ")}}function $o(r,n){if(r&1){let e=M();h(0,"button",7),S("click",function(){_(e);let a=p(2);return k(a.onOk())}),E(1),u()}if(r&2){let e=p(2);g("nzType",e.config.nzOkType)("nzDanger",e.config.nzOkDanger)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled),Ee("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),d(),ke(" ",e.config.nzOkText||e.locale.okText," ")}}function Go(r,n){if(r&1&&(x(0,qo,2,4,"button",4),x(1,$o,2,6,"button",5)),r&2){let e=p();z(e.config.nzCancelText!==null?0:-1),d(),z(e.config.nzOkText!==null?1:-1)}}var Zo=["nz-modal-title",""];function Qo(r,n){if(r&1&&($(0),f(1,"div",2),G()),r&2){let e=p();d(),g("innerHTML",e.config.nzTitle,we)}}function Jo(r,n){if(r&1){let e=M();h(0,"button",9),S("click",function(){_(e);let a=p();return k(a.onCloseClick())}),u()}}function Xo(r,n){if(r&1&&f(0,"div",10),r&2){let e=p();he("cursor",e.config.nzDraggable?"move":"auto")}}function el(r,n){}function tl(r,n){if(r&1&&f(0,"div",7),r&2){let e=p();g("innerHTML",e.config.nzContent,we)}}function nl(r,n){if(r&1){let e=M();h(0,"div",11),S("cancelTriggered",function(){_(e);let a=p();return k(a.onCloseClick())})("okTriggered",function(){_(e);let a=p();return k(a.onOkClick())}),u()}if(r&2){let e=p();g("modalRef",e.modalRef)}}var Wr=()=>{},je=class{nzCentered=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzDraggable=!1;nzNoAnimation=!1;nzAutofocus="auto";nzMask;nzMaskClosable;nzKeyboard=!0;nzZIndex=1e3;nzWidth=520;nzCloseIcon="close";nzOkType="primary";nzOkDanger=!1;nzModalType="default";nzOnCancel=Wr;nzOnOk=Wr;nzData;nzMaskStyle;nzBodyStyle;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzFooter;nzCancelText;nzOkText;nzContent;nzCloseOnNavigation;nzViewContainerRef;nzAfterOpen;nzAfterClose;nzIconType="question-circle";nzDirection},Ae={enter:"ant-zoom-enter",enterActive:"ant-zoom-enter-active",leave:"ant-zoom-leave",leaveActive:"ant-zoom-leave-active"},ct={enter:"ant-fade-enter",enterActive:"ant-fade-enter-active",leave:"ant-fade-leave",leaveActive:"ant-fade-leave-active"},cn="ant-modal-mask",dn="modal",al=new ae(""),Qr={modalContainer:za("modalContainer",[Yn("void, exit",gt({})),Yn("enter",gt({})),xn("* => enter",Tn(".24s",gt({}))),xn("* => void, * => exit",Tn(".2s",gt({})))])},ta=(()=>{class r{config=s(je);static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["nzModalCloseBuiltin"],attrs:Fo,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-close-icon",3,"nzType"]],template:function(t,a){t&1&&(h(0,"span",0),F(1,Eo,2,1,"ng-container",1),u()),t&2&&(d(),g("nzStringTemplateOutlet",a.config.nzCloseIcon))},dependencies:[fe,ge,de,ce],encapsulation:2,changeDetection:0})}return r})();function rl(r,n){return Z(Z({},n),r)}function xt(r,n,e){return typeof r>"u"?typeof n>"u"?e:n:r}function qr(r){let{nzCentered:n,nzMask:e,nzMaskClosable:t,nzClosable:a,nzOkLoading:i,nzOkDisabled:o,nzCancelDisabled:l,nzCancelLoading:c,nzKeyboard:m,nzNoAnimation:v,nzDraggable:T,nzContent:Y,nzFooter:I,nzZIndex:O,nzWidth:ze,nzWrapClassName:H,nzClassName:Re,nzStyle:Ge,nzTitle:A,nzCloseIcon:zt,nzMaskStyle:bt,nzBodyStyle:ci,nzOkText:di,nzCancelText:pi,nzOkType:mi,nzOkDanger:hi,nzIconType:ui,nzModalType:gi,nzOnOk:fi,nzOnCancel:vi,nzAfterOpen:yi,nzAfterClose:_i,nzCloseOnNavigation:ki,nzAutofocus:Pi}=r;return{nzCentered:n,nzMask:e,nzMaskClosable:t,nzDraggable:T,nzClosable:a,nzOkLoading:i,nzOkDisabled:o,nzCancelDisabled:l,nzCancelLoading:c,nzKeyboard:m,nzNoAnimation:v,nzContent:Y,nzFooter:I,nzZIndex:O,nzWidth:ze,nzWrapClassName:H,nzClassName:Re,nzStyle:Ge,nzTitle:A,nzCloseIcon:zt,nzMaskStyle:bt,nzBodyStyle:ci,nzOkText:di,nzCancelText:pi,nzOkType:mi,nzOkDanger:hi,nzIconType:ui,nzModalType:gi,nzOnOk:fi,nzOnCancel:vi,nzAfterOpen:yi,nzAfterClose:_i,nzCloseOnNavigation:ki,nzAutofocus:Pi}}function $r(){throw Error("Attempting to attach modal content after content is already attached")}var Jr=(()=>{class r extends La{document=s(mt);cdr=s(q);config=s(je);ngZone=s(Ce);host=s(re);focusTrapFactory=s(ja);render=s(Fe);overlayRef=s(In);nzConfigService=s(xe);animationType=s(fa,{optional:!0});destroyRef=s(K);portalOutlet;modalElementRef;animationStateChanged=new D;containerClick=new D;cancelTriggered=new D;okTriggered=new D;state="enter";modalRef;isStringContent=!1;dir="ltr";elementFocusedBeforeModalWasOpened=null;focusTrap;mouseDown=!1;oldMaskStyle=null;get showMask(){let e=this.nzConfigService.getConfigForComponent(dn)||{};return!!xt(this.config.nzMask,e.nzMask,!0)}get maskClosable(){let e=this.nzConfigService.getConfigForComponent(dn)||{};return!!xt(this.config.nzMaskClosable,e.nzMaskClosable,!0)}constructor(){super(),this.dir=this.overlayRef.getDirection(),this.isStringContent=typeof this.config.nzContent=="string",Ht(dn,()=>this.updateMaskClassname()),this.destroyRef.onDestroy(()=>{this.setMaskExitAnimationClass(!0)})}onContainerClick(e){e.target===e.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(e){return this.portalOutlet.hasAttached()&&$r(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this.portalOutlet.hasAttached()&&$r(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(e)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||this.animationType==="NoopAnimations"}setModalTransformOrigin(){let e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){let t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),a=Fa(this.elementFocusedBeforeModalWasOpened),i=a.left+t.width/2,o=a.top+t.height/2,l=`${i-e.offsetLeft}px ${o-e.offsetTop}px 0px`;this.render.setStyle(e,"transform-origin",l)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Xa(()=>this.host.nativeElement.focus())))}trapFocus(){let e=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{let t=this.document.activeElement;t!==e&&!e.contains(t)&&e.focus()}}restoreFocus(){let e=this.elementFocusedBeforeModalWasOpened;if(e&&typeof e.focus=="function"){let t=this.document.activeElement,a=this.host.nativeElement;(!t||t===this.document.body||t===a||a.contains(t))&&e.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();let e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add(Ae.enter),e.classList.add(Ae.enterActive),t&&(t.classList.add(ct.enter),t.classList.add(ct.enterActive))}setExitAnimationClass(){let e=this.modalElementRef.nativeElement;e.classList.add(Ae.leave),e.classList.add(Ae.leaveActive),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(e=!1){let t=this.overlayRef.backdropElement;if(t){if(this.animationDisabled()||e){t.classList.remove(cn);return}t.classList.add(ct.leave),t.classList.add(ct.leaveActive)}}cleanAnimationClass(){if(this.animationDisabled())return;let e=this.overlayRef.backdropElement,t=this.modalElementRef.nativeElement;e&&(e.classList.remove(ct.enter),e.classList.remove(ct.enterActive)),t.classList.remove(Ae.enter),t.classList.remove(Ae.enterActive),t.classList.remove(Ae.leave),t.classList.remove(Ae.leaveActive)}setZIndexForBackdrop(){let e=this.overlayRef.backdropElement;e&&zn(this.config.nzZIndex)&&this.render.setStyle(e,"z-index",this.config.nzZIndex)}bindBackdropStyle(){let e=this.overlayRef.backdropElement;if(e){if(this.oldMaskStyle){let t=this.oldMaskStyle;Object.keys(t).forEach(a=>{this.render.removeStyle(e,a)}),this.oldMaskStyle=null}if(this.setZIndexForBackdrop(),typeof this.config.nzMaskStyle=="object"&&Object.keys(this.config.nzMaskStyle).length){let t=Z({},this.config.nzMaskStyle);Object.keys(t).forEach(a=>{this.render.setStyle(e,a,t[a])}),this.oldMaskStyle=t}}}updateMaskClassname(){let e=this.overlayRef.backdropElement;e&&(this.showMask?e.classList.add(cn):e.classList.remove(cn))}onAnimationDone(e){e.toState==="enter"?this.trapFocus():e.toState==="exit"&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(e)}onAnimationStart(e){e.toState==="enter"?(this.setEnterAnimationClass(),this.bindBackdropStyle()):e.toState==="exit"&&this.setExitAnimationClass(),this.animationStateChanged.emit(e)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}setupMouseListeners(e){tt(this.host.nativeElement,"mouseup").pipe(C(this.destroyRef)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),tt(e.nativeElement,"mousedown").pipe(C(this.destroyRef)).subscribe(()=>{this.mouseDown=!0})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,features:[Ue]})}return r})(),Xr=(()=>{class r extends Jr{i18n=s(rn);set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}cancelTriggered=new D;okTriggered=new D;locale;constructor(){super(),this.i18n.localeChange.pipe(C()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,a){if(t&1&&(le(nt,7),le(Zr,7)),t&2){let i;R(i=L())&&(a._portalOutlet=i.first),R(i=L())&&(a._modalElementRef=i.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,a){t&1&&(_n("@modalContainer.start",function(o){return a.onAnimationStart(o)})("@modalContainer.done",function(o){return a.onAnimationDone(o)}),S("click",function(o){return a.onContainerClick(o)})),t&2&&(Xe("@.disabled",a.config.nzNoAnimation)("@modalContainer",a.state),se(a.config.nzWrapClassName?"ant-modal-wrap "+a.config.nzWrapClassName:"ant-modal-wrap"),he("z-index",a.config.nzZIndex),j("ant-modal-wrap-rtl",a.dir==="rtl")("ant-modal-centered",a.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[yn([Fn]),Ue],decls:17,vars:16,consts:[["modalElement",""],["role","document",1,"ant-modal"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],[3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(t,a){t&1&&(h(0,"div",1,0),kn(2,"nzToCssUnit"),h(3,"div",2),x(4,Io,1,0,"button",3),h(5,"div",4)(6,"div",5)(7,"div",6),f(8,"nz-icon",7),h(9,"span",8),F(10,Oo,2,1,"ng-container",9),u(),h(11,"div",10),F(12,Ao,0,0,"ng-template",11),x(13,No,1,1,"div",12),u()(),h(14,"div",13),x(15,jo,2,4,"button",14),x(16,Ro,2,6,"button",15),u()()()()()),t&2&&(Te(a.config.nzStyle),se(a.config.nzClassName),he("width",Pn(2,14,a.config==null?null:a.config.nzWidth)),d(4),z(a.config.nzClosable?4:-1),d(),Te(a.config.nzBodyStyle),d(3),g("nzType",a.config.nzIconType),d(2),g("nzStringTemplateOutlet",a.config.nzTitle),d(3),z(a.isStringContent?13:-1),d(2),z(a.config.nzCancelText!==null?15:-1),d(),z(a.config.nzOkText!==null?16:-1))},dependencies:[Hn,fe,ge,ta,de,ce,En,nt,_t,yt,vt,qe,Vn],encapsulation:2,data:{animation:[Qr.modalContainer]}})}return r})(),ei=(()=>{class r{i18n=s(rn);config=s(je);buttonsFooter=!1;buttons=[];locale;cancelTriggered=new D;okTriggered=new D;modalRef;constructor(){Array.isArray(this.config.nzFooter)&&(this.buttonsFooter=!0,this.buttons=this.config.nzFooter.map(il)),this.i18n.localeChange.pipe(C()).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(e,t){let a=e[t],i=this.modalRef.getContentComponent();return typeof a=="function"?a.apply(e,i&&[i]):a}onButtonClick(e){if(!this.getButtonCallableProp(e,"loading")){let a=this.getButtonCallableProp(e,"onClick");e.autoLoading&&bn(a)&&(e.loading=!0,a.then(()=>e.loading=!1).catch(i=>{throw e.loading=!1,i}))}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalFooterBuiltin"],attrs:Lo,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(t,a){t&1&&x(0,Wo,1,5,"ng-container")(1,Go,2,2),t&2&&z(a.config.nzFooter?0:1)},dependencies:[de,ce,_t,yt,vt,qe],encapsulation:2})}return r})();function il(r){return Z({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},r)}var ti=(()=>{class r{config=s(je);static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["nzModalTitleBuiltin"],attrs:Zo,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,a){t&1&&(h(0,"div",0),F(1,Qo,2,1,"ng-container",1),u()),t&2&&(d(),g("nzStringTemplateOutlet",a.config.nzTitle))},dependencies:[de,ce],encapsulation:2,changeDetection:0})}return r})(),ni=(()=>{class r extends Jr{set _portalOutlet(e){this.portalOutlet=e}set _modalElementRef(e){this.modalElementRef=e}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275cmp=w({type:r,selectors:[["nz-modal-container"]],viewQuery:function(t,a){if(t&1&&(le(nt,7),le(Zr,7)),t&2){let i;R(i=L())&&(a._portalOutlet=i.first),R(i=L())&&(a._modalElementRef=i.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,a){t&1&&(_n("@modalContainer.start",function(o){return a.onAnimationStart(o)})("@modalContainer.done",function(o){return a.onAnimationDone(o)}),S("click",function(o){return a.onContainerClick(o)})),t&2&&(Xe("@.disabled",a.config.nzNoAnimation)("@modalContainer",a.state),se(a.config.nzWrapClassName?"ant-modal-wrap "+a.config.nzWrapClassName:"ant-modal-wrap"),he("z-index",a.config.nzZIndex),j("ant-modal-wrap-rtl",a.dir==="rtl")("ant-modal-centered",a.config.nzCentered))},exportAs:["nzModalContainer"],features:[yn([Fn]),Ue],decls:10,vars:15,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(t,a){t&1&&(h(0,"div",1,0),kn(2,"nzToCssUnit"),h(3,"div",2),x(4,Jo,1,0,"button",3),x(5,Xo,1,2,"div",4),h(6,"div",5),F(7,el,0,0,"ng-template",6),x(8,tl,1,1,"div",7),u(),x(9,nl,1,1,"div",8),u()()),t&2&&(Te(a.config.nzStyle),se(a.config.nzClassName),he("width",Pn(2,13,a.config==null?null:a.config.nzWidth)),g("cdkDragDisabled",!a.config.nzDraggable),d(4),z(a.config.nzClosable?4:-1),d(),z(a.config.nzTitle?5:-1),d(),Te(a.config.nzBodyStyle),d(2),z(a.isStringContent?8:-1),d(),z(a.config.nzFooter!==null?9:-1))},dependencies:[ta,ti,En,nt,ei,Hn,Kr,Ur,Vn],encapsulation:2,data:{animation:[Qr.modalContainer]}})}return r})(),Yt={OPEN:0,CLOSING:1,CLOSED:2},Ne={CANCEL:"cancel",OK:"ok"},dt=class{overlayRef;config;containerInstance;componentInstance=null;componentRef=null;result;state=Yt.OPEN;afterClose=new y;afterOpen=new y;closeTimeout;destroy$=new y;constructor(n,e,t){this.overlayRef=n,this.config=e,this.containerInstance=t,t.animationStateChanged.pipe(U(a=>a.phaseName==="done"&&a.toState==="enter"),be(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),e.nzAfterOpen instanceof D&&e.nzAfterOpen.emit()}),t.animationStateChanged.pipe(U(a=>a.phaseName==="done"&&a.toState==="exit"),be(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),t.containerClick.pipe(Me(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger(Ne.CANCEL)}),n.keydownEvents().pipe(U(a=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&a.keyCode===27&&!Wt(a))).subscribe(a=>{a.preventDefault(),this.trigger(Ne.CANCEL)}),t.cancelTriggered.pipe(Me(this.destroy$)).subscribe(()=>this.trigger(Ne.CANCEL)),t.okTriggered.pipe(Me(this.destroy$)).subscribe(()=>this.trigger(Ne.OK)),n.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),e.nzAfterClose instanceof D&&e.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(n){this.close(n)}triggerOk(){return this.trigger(Ne.OK)}triggerCancel(){return this.trigger(Ne.CANCEL)}close(n){this.state===Yt.OPEN&&(this.result=n,this.containerInstance.animationStateChanged.pipe(U(e=>e.phaseName==="start"),be(1)).subscribe(e=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},e.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=Yt.CLOSING)}updateConfig(n){Object.assign(this.config,n),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}async trigger(n){if(this.state===Yt.CLOSING)return;let e={[Ne.OK]:{trigger:this.config.nzOnOk,loadingKey:"nzOkLoading"},[Ne.CANCEL]:{trigger:this.config.nzOnCancel,loadingKey:"nzCancelLoading"}},{trigger:t,loadingKey:a}=e[n];if(!this.config[a]){if(t instanceof D)t.emit(this.getContentComponent());else if(typeof t=="function"){let i=t(this.getContentComponent());if(bn(i)){this.config[a]=!0;let o=!1;try{o=await i}finally{this.config[a]=!1,this.closeWhitResult(o)}}else this.closeWhitResult(i)}}}closeWhitResult(n){n!==!1&&this.close(n)}_finishDialogClose(){this.state=Yt.CLOSED,this.overlayRef.dispose(),this.destroy$.next()}},pn=(()=>{class r{injector=s(ye);nzConfigService=s(xe);directionality=s(Q);parentModal=s(r,{skipSelf:!0,optional:!0});openModalsAtThisLevel=[];afterAllClosedAtThisLevel=new y;get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){let e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel}afterAllClose=pa(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(He(void 0)));create(e){return this.open(e.nzContent,e)}closeAll(){this.closeModals(this.openModals)}confirm(e={},t="confirm"){return"nzFooter"in e&&Vt(`The Confirm-Modal doesn't support "nzFooter", this property will be ignored.`),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=!1),e.nzModalType="confirm",e.nzClassName=`ant-modal-confirm ant-modal-confirm-${t} ${e.nzClassName||""}`,this.create(e)}info(e={}){return this.confirmFactory(e,"info")}success(e={}){return this.confirmFactory(e,"success")}error(e={}){return this.confirmFactory(e,"error")}warning(e={}){return this.confirmFactory(e,"warning")}open(e,t){let a=rl(t||{},new je),i=this.createOverlay(a),o=this.attachModalContainer(i,a),l=this.attachModalContent(e,o,i,a);return o.modalRef=l,Ja(i,t?.nzZIndex),this.openModals.push(l),l.afterClose.subscribe(()=>this.removeOpenModal(l)),l}removeOpenModal(e){let t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next())}closeModals(e){let t=e.length;for(;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(e){let t=this.nzConfigService.getConfigForComponent(dn)||{};return at(this.injector,{hasBackdrop:!0,scrollStrategy:Va(this.injector),backdropClass:xt(e.nzMask,t.nzMask,!0)?cn:"",positionStrategy:$t(this.injector),disposeOnNavigation:xt(e.nzCloseOnNavigation,t.nzCloseOnNavigation,!0),direction:xt(e.nzDirection,t.nzDirection,this.directionality.value)})}attachModalContainer(e,t){let a=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector,i=ye.create({parent:a||this.injector,providers:[{provide:In,useValue:e},{provide:je,useValue:t}]}),o=t.nzModalType==="confirm"?Xr:ni,l=new kt(o,t.nzViewContainerRef,i);return e.attach(l).instance}attachModalContent(e,t,a,i){let o=new dt(a,i,t);if(e instanceof me)t.attachTemplatePortal(new qt(e,null,{$implicit:i.nzData,modalRef:o}));else if(zn(e)&&typeof e!="string"){let l=this.createInjector(o,i),c=t.attachComponentPortal(new kt(e,i.nzViewContainerRef,l));o.componentRef=c,o.componentInstance=c.instance}else t.attachStringContent();return o}createInjector(e,t){let a=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector;return ye.create({parent:a||this.injector,providers:[{provide:dt,useValue:e},{provide:al,useValue:t.nzData}]})}confirmFactory(e={},t){let a={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"};return"nzIconType"in e||(e.nzIconType=a[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static \u0275fac=function(t){return new(t||r)};static \u0275prov=b({token:r,factory:r.\u0275fac})}return r})(),na=(()=>{class r{templateRef=s(me);static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]})}return r})(),aa=(()=>{class r{templateRef=s(me);nzModalRef=s(dt,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzFooter:this.templateRef})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]})}return r})(),ol=(()=>{class r{templateRef=s(me);nzModalRef=s(dt,{optional:!0});constructor(){this.nzModalRef?.updateConfig({nzTitle:this.templateRef})}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]})}return r})(),ai=(()=>{class r{cdr=s(q);modal=s(pn);viewContainerRef=s(Be);destroyRef=s(K);nzMask;nzMaskClosable;nzCloseOnNavigation;nzVisible=!1;nzClosable=!0;nzOkLoading=!1;nzOkDisabled=!1;nzCancelDisabled=!1;nzCancelLoading=!1;nzKeyboard=!0;nzNoAnimation=!1;nzCentered=!1;nzDraggable=!1;nzContent;nzFooter;nzZIndex=1e3;nzWidth=520;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzCloseIcon="close";nzMaskStyle;nzBodyStyle;nzOkText;nzCancelText;nzOkType="primary";nzOkDanger=!1;nzIconType="question-circle";nzModalType="default";nzAutofocus="auto";nzOnOk=new D;nzOnCancel=new D;nzAfterOpen=new D;nzAfterClose=new D;nzVisibleChange=new D;set modalTitle(e){e&&this.setTitleWithTemplate(e)}contentFromContentChild;set modalFooter(e){e&&this.setFooterWithTemplate(e)}modalRef=null;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(){this.destroyRef.onDestroy(()=>{this.modalRef?._finishDialogClose()})}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){let e=this.getConfig();this.modalRef=this.modal.create(e),this.modalRef.afterClose.asObservable().pipe(C(this.destroyRef)).subscribe(()=>{this.close()})}}close(e){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(e),this.modalRef=null)}destroy(e){this.close(e)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(e){this.nzTitle=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(e){this.nzFooter=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){let e=qr(this);return e.nzViewContainerRef=this.viewContainerRef,e.nzContent=this.nzContent||this.contentFromContentChild,e}ngOnChanges(e){let i=e,{nzVisible:t}=i,a=oa(i,["nzVisible"]);Object.keys(a).length&&this.modalRef&&this.modalRef.updateConfig(qr(this)),t&&(this.nzVisible?this.open():this.close())}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-modal"]],contentQueries:function(t,a,i){if(t&1&&(_e(i,ol,7,me),_e(i,na,7,me),_e(i,aa,7,me)),t&2){let o;R(o=L())&&(a.modalTitle=o.first),R(o=L())&&(a.contentFromContentChild=o.first),R(o=L())&&(a.modalFooter=o.first)}},inputs:{nzMask:[2,"nzMask","nzMask",P],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",P],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",P],nzVisible:[2,"nzVisible","nzVisible",P],nzClosable:[2,"nzClosable","nzClosable",P],nzOkLoading:[2,"nzOkLoading","nzOkLoading",P],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",P],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",P],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",P],nzKeyboard:[2,"nzKeyboard","nzKeyboard",P],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",P],nzCentered:[2,"nzCentered","nzCentered",P],nzDraggable:[2,"nzDraggable","nzDraggable",P],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",Rt],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",P],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[oe],decls:0,vars:0,template:function(t,a){},encapsulation:2,changeDetection:0})}return r})(),ri=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({providers:[pn],imports:[ta,ei,ti,ni,Xr]})}return r})();var ml=["switchElement"];function hl(r,n){r&1&&f(0,"nz-icon",3)}function ul(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p(2);d(),et(e.nzCheckedChildren)}}function gl(r,n){if(r&1&&F(0,ul,2,1,"ng-container",6),r&2){let e=p();g("nzStringTemplateOutlet",e.nzCheckedChildren)}}function fl(r,n){if(r&1&&($(0),E(1),G()),r&2){let e=p(2);d(),et(e.nzUnCheckedChildren)}}function vl(r,n){if(r&1&&F(0,fl,2,1,"ng-container",6),r&2){let e=p();g("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}var yl="switch",ra=(()=>{var t;let r,n=[],e=[];return t=class{_nzModuleName=yl;nzConfigService=s(xe);el=s(re).nativeElement;ngZone=s(Ce);cdr=s(q);focusMonitor=s(Aa);directionality=s(Q);destroyRef=s(K);isChecked=!1;onChange=()=>{};onTouched=()=>{};switchElement;nzLoading=!1;nzDisabled=!1;nzControl=!1;nzCheckedChildren=null;nzUnCheckedChildren=null;nzSize=Qe(this,n,"default");nzId=(Qe(this,e),null);dir="ltr";isNzDisableFirstChange=!0;updateValue(i){this.isChecked!==i&&(this.isChecked=i,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.switchElement.nativeElement)})}ngOnInit(){this.directionality.change.pipe(C(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value,tt(this.el,"click").pipe(C(this.destroyRef)).subscribe(i=>{i.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),tt(this.switchElement.nativeElement,"keydown").pipe(C(this.destroyRef)).subscribe(i=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;let{keyCode:o}=i;o!==37&&o!==39&&o!==32&&o!==13||(i.preventDefault(),this.ngZone.run(()=>{o===37?this.updateValue(!1):o===39?this.updateValue(!0):(o===32||o===13)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe(C(this.destroyRef)).subscribe(i=>{i||Promise.resolve().then(()=>this.onTouched())})}writeValue(i){this.isChecked=i,this.cdr.markForCheck()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[Bt()],Mt(null,null,r,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,l)=>{o.nzSize=l}},metadata:i},n,e),i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),Ze(t,"\u0275fac",function(o){return new(o||t)}),Ze(t,"\u0275cmp",w({type:t,selectors:[["nz-switch"]],viewQuery:function(o,l){if(o&1&&le(ml,7),o&2){let c;R(c=L())&&(l.switchElement=c.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",P],nzDisabled:[2,"nzDisabled","nzDisabled",P],nzControl:[2,"nzControl","nzControl",P],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[ue([{provide:tr,useExisting:ua(()=>t),multi:!0}])],decls:8,vars:15,consts:[["switchElement",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nzType","loading",1,"ant-switch-loading-icon"],[1,"ant-switch-inner"],[1,"ant-click-animating-node"],[4,"nzStringTemplateOutlet"]],template:function(o,l){o&1&&(h(0,"button",1,0)(2,"span",2),x(3,hl,1,0,"nz-icon",3),u(),h(4,"span",4),x(5,gl,1,1,"ng-container")(6,vl,1,1,"ng-container"),u(),f(7,"div",5),u()),o&2&&(j("ant-switch-checked",l.isChecked)("ant-switch-loading",l.nzLoading)("ant-switch-disabled",l.nzDisabled)("ant-switch-small",l.nzSize==="small")("ant-switch-rtl",l.dir==="rtl"),g("disabled",l.nzDisabled)("nzWaveExtraNode",!0),Ee("id",l.nzId),d(3),z(l.nzLoading?3:-1),d(2),z(l.isChecked?5:6))},dependencies:[Ea,qe,fe,ge,de,ce],encapsulation:2,changeDetection:0})),t})(),ii=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=te({imports:[ra]})}return r})();var kl=(r,n)=>n.path,Pl=(r,n)=>n.key;function Sl(r,n){if(r&1){let e=M();h(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),Nt("ngModelChange",function(a){_(e);let i=p();return At(i.fs.path,a)||(i.fs.path=a),k(a)}),S("keyup.enter",function(){_(e);let a=p();return k(a.fs.load())}),u(),h(3,"button",28),f(4,"nz-icon",29),u()()()}if(r&2){let e=p();d(2),Ot("ngModel",e.fs.path)}}function Cl(r,n){if(r&1){let e=M();h(0,"div",31)(1,"button",32),S("click",function(){let a=_(e).$implicit,i=p(2);return k(i.fs.jumpTo(a))}),E(2),u()()}if(r&2){let e=n.$implicit;d(2),ke(" ",e.label," ")}}function Dl(r,n){if(r&1){let e=M();h(0,"div",7)(1,"div",30),Ie(2,Cl,3,1,"div",31,Pl),u(),h(4,"button",32),S("click",function(){_(e);let a=p();return k(a.fs.editPath())}),f(5,"nz-icon",33),u()()}if(r&2){let e=p();d(2),Oe(e.fs.segments())}}function Tl(r,n){if(r&1&&f(0,"nz-icon",38),r&2){let e=p().$implicit;g("nzType","proj:"+e.projectKind)}}function Yl(r,n){if(r&1){let e=M();h(0,"div",34),S("click",function(){let a=_(e).$implicit,i=p();return k(i.fs.open(a))}),h(1,"div",35),f(2,"span",36),u(),h(3,"div",37),E(4),x(5,Tl,1,1,"nz-icon",38),u()()}if(r&2){let e=n.$implicit;d(2),g("nzType",e.type==="dir"?"folder":"file"),d(),g("title",Ca(e.name)),d(),ke(" ",e.name," "),d(),z(e.projectKind&&e.projectKind!="unknown"?5:-1)}}function xl(r,n){if(r&1){let e=M();h(0,"li",19),f(1,"nz-icon",39),h(2,"button",40),S("click",function(){let a=_(e).$implicit,i=p();return k(i.fs.openFavorite(a))}),E(3),u()()}if(r&2){let e=n.$implicit;d(2),g("nz-tooltip",e.path),d(),ke(" ",e.label," ")}}function zl(r,n){if(r&1){let e=M();$(0),h(1,"div",41)(2,"label"),E(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),u(),h(4,"nz-input-wrapper")(5,"input",42),Nt("ngModelChange",function(a){_(e);let i=p();return At(i.fs.newFolderName,a)||(i.fs.newFolderName=a),k(a)}),u(),f(6,"nz-icon",43)(7,"nz-icon",44),u(),h(8,"div",45),E(9),u()(),G()}if(r&2){let e=p();d(5),Ot("ngModel",e.fs.newFolderName),d(4),Sa("",e.fs.currentPath(),"",e.fs.newFolderName())}}function bl(r,n){if(r&1){let e=M();$(0),h(1,"button",46),S("click",function(){_(e);let a=p();return k(a.fs.isCreateFolderModalVisible.set(!1))}),E(2,"\u53D6\u6D88"),u(),h(3,"button",47),S("click",function(){_(e);let a=p();return k(a.fs.confirmCreateFolder())}),f(4,"nz-icon",48),E(5," \u521B\u5EFA "),u(),G()}if(r&2){let e=p();d(3),g("disabled",!e.fs.newFolderName().trim())}}var oi=class r{constructor(n){this.fs=n}ngOnInit(){this.fs.load()}static \u0275fac=function(e){return new(e||r)(ya(en))};static \u0275cmp=w({type:r,selectors:[["app-fs-explorer"]],decls:35,vars:10,consts:[["collectMenu","nzDropdownMenu"],["moreMenu","nzDropdownMenu"],[1,"page"],[1,"toolbar"],["nz-button","","nz-tooltip","\u4E0A\u4E00\u5C42",3,"click","disabled"],["nzType","up","nzTheme","outline"],[1,"path-edit"],[1,"current-path"],["nz-button","","nzType","primary","nz-tooltip","\u5237\u65B0",3,"click","nzLoading"],["nzTheme","outline",3,"nzType"],["nz-button","","nz-tooltip","\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF",3,"click"],["nzType","star",3,"nzTheme"],["nz-button","","nz-tooltip","\u6536\u85CF\u7684\u6587\u4EF6\u5939","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","caret-down","nzTheme","outline"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click","nz-tooltip","\u66F4\u591A\u64CD\u4F5C",3,"nzDropdownMenu"],["nzType","more","nzTheme","outline"],[1,"folders"],[1,"folder-item"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"],["nzType","folder-add","nzTheme","fill",2,"font-size","16px"],["nzType","eye","nzTheme","fill",2,"font-size","16px"],[2,"margin-left","8px",3,"ngModel"],["nzTitle","\u65B0\u5EFA\u6587\u4EF6\u5939",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-input","","nzSize","small","placeholder","\u8F93\u5165\u6587\u4EF6\u5939\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5982 D:\\work \u6216 /Users/xx",3,"ngModelChange","keyup.enter","ngModel"],["nzInputSuffix","","nz-button","","nzType","link"],["nzInputSuffix","","nzType","edit","nzTheme","outline"],[1,"path-value"],[1,"path-part"],["nz-button","","nzType","link",3,"click"],["nzType","edit","nzTheme","outline"],[1,"folder-item",3,"click"],[1,"icon"],["nz-icon","",3,"nzType"],[1,"name",3,"title"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],["nzType","folder","nzTheme","fill"],["nz-button","","nzType","link",3,"click","nz-tooltip"],[1,"modal-body"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],["nzInputSuffix","","nzType","question-circle","nzTheme","outline","nz-tooltip","\u4F60\u53EF\u4EE5\u4F7F\u7528\u8DEF\u5F84\u5206\u9694\u7B26\u6765\u521B\u5EFA\u5D4C\u5957\u7684\u6587\u4EF6\u5939","nzTooltipTrigger","hover","nzTooltipPlacement","right"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","folder-add","nzTheme","fill"]],template:function(e,t){if(e&1){let a=M();h(0,"div",2)(1,"div",3)(2,"button",4),S("click",function(){return _(a),k(t.fs.up())}),f(3,"nz-icon",5),u(),x(4,Sl,5,1,"div",6)(5,Dl,6,0,"div",7),h(6,"button",8),S("click",function(){return _(a),k(t.fs.load(!0))}),f(7,"nz-icon",9),u(),h(8,"button",10),S("click",function(){return _(a),k(t.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),u(),h(10,"button",12),f(11,"nz-icon",13),u(),h(12,"button",14),f(13,"nz-icon",15),u()(),h(14,"div",16),Ie(15,Yl,6,5,"div",17,_a),u()(),h(17,"nz-dropdown-menu",null,0)(19,"ul",18),Ie(20,xl,4,2,"li",19,kl),u()(),h(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),S("click",function(){return _(a),k(t.fs.openCreateFolderModal())}),f(26,"nz-icon",21),E(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),u(),h(28,"li",20),S("click",function(){return _(a),k(t.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),E(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),u()()(),h(32,"nz-modal",24),Nt("nzVisibleChange",function(o){return _(a),At(t.fs.isCreateFolderModalVisible,o)||(t.fs.isCreateFolderModalVisible=o),k(o)}),S("nzOnCancel",function(){return _(a),k(t.fs.isCreateFolderModalVisible.set(!1))}),F(33,zl,10,3,"ng-container",25)(34,bl,6,1,"ng-container",26),u()}if(e&2){let a=We(18),i=We(23);d(2),g("disabled",!t.fs.canUp()),d(2),z(t.fs.isEditingPath()?4:5),d(2),g("nzLoading",t.fs.reloading()),d(),g("nzType",t.fs.reloading()?"loading":"reload"),d(2),g("nzTheme",t.fs.isCurFavorited()?"fill":"outline"),d(),g("nzDropdownMenu",a),d(2),g("nzDropdownMenu",i),d(3),Oe(t.fs.entries()),d(5),Oe(t.fs.favorites()),d(11),g("ngModel",t.fs.showSystemFolders()),d(),Ot("nzVisible",t.fs.isCreateFolderModalVisible),g("nzMaskClosable",!1)}},dependencies:[Ta,ir,nr,ar,rr,dr,sr,cr,or,lr,_t,yt,vt,qe,fe,ge,mr,pr,Sr,yr,nn,_r,Pr,kr,an,ii,ra,ri,ai,aa,na],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:16px 0;flex:0 0 auto}.folders[_ngcontent-%COMP%]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;position:relative}.current-path[_ngcontent-%COMP%]{min-width:0;flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;height:34px}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%] .path-part[_ngcontent-%COMP%]{flex:auto 0 0;border-left-width:2px;border-left-style:solid}.path-edit[_ngcontent-%COMP%]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;border:none;outline:none}.folder-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0 4px;flex:auto 0 0}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:100% 1 1;display:inline-flex;align-items:center;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;margin-left:4px}.modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}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%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.default [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000000d9}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#fff}html.default [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.dark [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffd9}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#141414}html.dark [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}"]})};var mn=class r{api=s(it);fs=s(ot);async checkPathExists(n){return await ca(this.fs.pathExists(n))}detect(n){return this.api.post("/api/projects/detect",{rootPath:n})}async pickFolder(){return null}bootstrapByCli(n){return this.api.post("/api/projects/bootstrap/cli",{parentDir:n.parentDir,name:n.name,rootPath:n.rootPath,packageManager:n.packageManager,overwriteIfExists:n.overwriteIfExists,skipOnboarding:n.skipOnboarding,initGit:n.initGit,initialCommitMessage:n.initialCommitMessage,cliFramework:n.cliFramework,cliTool:n.cliTool,cliArgs:n.cliArgs??[]})}bootstrapPickRoot(n){return this.api.post("/api/projects/bootstrap/pickRoot",n)}bootstrapByGit(n){return this.api.post("/api/projects/bootstrap/git",{repoUrl:n.repoUrl,parentDir:n.parentDir,name:n.name,rootPath:n.rootPath,overwriteIfExists:n.overwriteIfExists,initGit:n.initGit,initialCommitMessage:n.initialCommitMessage,packageManager:n.packageManager,skipOnboarding:n.skipOnboarding??!0})}list(){return this.api.get("/api/projects/list")}get(n){return this.api.get(`/api/projects/getInfo/${n}`)}check(n){return this.api.post("/api/projects/check",{rootPath:n})}createByPath(n){return this.api.post("/api/projects/create",n)}checkImport(n){return this.api.post("/api/projects/checkImport",{root:n})}importByPath(n){return this.api.post("/api/projects/import",n)}delete(n){return this.api.delete(`/api/projects/delete/${n}`)}update(n,e){return this.api.post(`/api/projects/update/${n}`,e)}setFavorite(n,e){return this.api.post(`/api/projects/favorite/${n}`,{isFavorite:e})}toggleFavorite(n){return this.api.post(`/api/projects/favorite/${n}/toggle`,{})}setLastOpened(n,e){return this.api.post(`/api/projects/lastOpened/${n}`,{timestamp:e})}openInEditor(n,e="code"){return this.api.post(`/api/projects/openInEditor/${n}`,{editor:e})}edit(n,e){return this.api.post(`/api/projects/edit/${n}`,e)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var Ml=(r,n)=>({$implicit:r,data:n});function wl(r,n){r&1&&f(0,"nz-icon",3)}function Fl(r,n){r&1&&f(0,"nz-icon",4)}function El(r,n){r&1&&f(0,"nz-icon",5)}function Il(r,n){r&1&&f(0,"nz-icon",6)}function Ol(r,n){r&1&&f(0,"nz-icon",7)}function Al(r,n){if(r&1&&($(0),f(1,"span",9),G()),r&2){let e=p();d(),g("innerHTML",e.instance.content,we)}}function Nl(r,n){if(r&1){let e=M();h(0,"nz-message",2),S("destroyed",function(a){_(e);let i=p();return k(i.remove(a.id,a.userAction))}),u()}if(r&2){let e=n.$implicit;g("instance",e)}}var jl=0,ia=class{container;nzSingletonService=s(er);injector=s(ye);remove(n){this.container&&(n?this.container.remove(n):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${jl++}`}withContainer(n){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let t=at(this.injector,{hasBackdrop:!1,scrollStrategy:Ha(),positionStrategy:$t(this.injector)}),a=new kt(n,null,this.injector),i=t.attach(a),o=t.hostElement;return o.style.zIndex="1010",e||(this.container=e=i.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),t.dispose()})),e}},Rl=(()=>{class r{config;instances=[];_afterAllInstancesRemoved=new y;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=s(q);nzConfigService=s(xe);constructor(){this.subscribeConfigChange()}create(e){let t=this.onCreate(e);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,t],this.readyInstances(),t}remove(e,t=!1){this.instances.map((a,i)=>({index:i,instance:a})).filter(({instance:a})=>a.messageId===e).forEach(({index:a,instance:i})=>{this.instances.splice(a,1),this.instances=[...this.instances],this.onRemove(i,t),this.readyInstances()}),this.instances.length||this.onAllInstancesRemoved()}removeAll(){this.instances.forEach(e=>this.onRemove(e,!1)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved()}onCreate(e){return e.options=this.mergeOptions(e.options),e.onClose=new y,e}onRemove(e,t){e.onClose.next(t),e.onClose.complete()}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(e){let{nzDuration:t,nzAnimate:a,nzPauseOnHover:i}=this.config;return Z({nzDuration:t,nzAnimate:a,nzPauseOnHover:i},e)}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r})}return r})(),Ll=(()=>{class r{cdr=s(q);destroyRef=s(K);animationStateChanged=new y;options;autoClose;closeTimer;userAction=!1;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()})}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(U(e=>e.phaseName==="done"&&e.toState==="leave"),be(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(e=!1){this.userAction=e,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:e})},200)):this.destroyed.next({id:this.instance.messageId,userAction:e})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0)}static \u0275fac=function(t){return new(t||r)};static \u0275dir=W({type:r})}return r})(),Vl=(()=>{class r extends Ll{instance;destroyed=new D;index;static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275cmp=w({type:r,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[Ue],decls:9,vars:13,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(t,a){if(t&1&&(h(0,"div",0),S("@moveUpMotion.done",function(o){return a.animationStateChanged.next(o)})("mouseenter",function(){return a.onEnter()})("mouseleave",function(){return a.onLeave()}),h(1,"div",1)(2,"div",2),x(3,wl,1,0,"nz-icon",3)(4,Fl,1,0,"nz-icon",4)(5,El,1,0,"nz-icon",5)(6,Il,1,0,"nz-icon",6)(7,Ol,1,0,"nz-icon",7),F(8,Al,2,1,"ng-container",8),u()()()),t&2){let i;Te(a.instance.options==null?null:a.instance.options.nzStyle),se(a.instance.options==null?null:a.instance.options.nzClass),g("@moveUpMotion",a.instance.state),d(2),se("ant-message-"+a.instance.type),d(),z((i=a.instance.type)==="success"?3:i==="info"?4:i==="warning"?5:i==="error"?6:i==="loading"?7:-1),d(5),g("nzStringTemplateOutlet",a.instance.content)("nzStringTemplateOutletContext",jt(10,Ml,a,a.instance.options==null?null:a.instance.options.nzData))}},dependencies:[fe,ge,de,ce],encapsulation:2,data:{animation:[$a]},changeDetection:0})}return r})(),hn="message",Hl={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"},Bl=(()=>{class r extends Rl{dir=this.nzConfigService.getConfigForComponent(hn)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig()}subscribeConfigChange(){Ht(hn,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(hn)?.nzDirection||this.dir})}updateConfig(){this.config=Z(Z(Z({},Hl),this.config),this.nzConfigService.getConfigForComponent(hn)),this.top=wa(this.config.nzTop),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=w({type:r,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[Ue],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(t,a){t&1&&(h(0,"div",0),Ie(1,Nl,1,1,"nz-message",1,It),u()),t&2&&(he("top",a.top),j("ant-message-rtl",a.dir==="rtl"),d(),Oe(a.instances))},dependencies:[Vl],encapsulation:2,changeDetection:0})}return r})(),li=(()=>{class r extends ia{componentPrefix="message-";success(e,t){return this.createInstance({type:"success",content:e},t)}error(e,t){return this.createInstance({type:"error",content:e},t)}info(e,t){return this.createInstance({type:"info",content:e},t)}warning(e,t){return this.createInstance({type:"warning",content:e},t)}loading(e,t){return this.createInstance({type:"loading",content:e},t)}create(e,t,a){return this.createInstance({type:e,content:t},a)}createInstance(e,t){return this.container=this.withContainer(Bl),this.container.create(pt(Z({},e),{createdAt:new Date,messageId:this.getInstanceId(),options:t}))}static \u0275fac=(()=>{let e;return function(a){return(e||(e=ht(r)))(a||r)}})();static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var un=class r{msg=s(li);error(n,e){this.msg.error(n)}warn(n){this.msg.warning(n)}info(n){this.msg.info(n)}success(n){this.msg.success(n)}banner(n,e){}totast(n,e){}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};var si=class r{modal=s(pn);notify=s(un);projectService=s(mn);ls=s(lt);router=s(Lt);currentProjectId=N(null);currentProject=N(null);projects=N([]);keyword=N("");isEditModalVisible=N(!1);isEditSaving=N(!1);editingProject=N(null);filteredProjects=Pe(()=>{let n=this.keyword().trim().toLowerCase();return n?this.projects().filter(e=>e.name.toLowerCase().includes(n)):this.projects()});favoriteProjects=Pe(()=>this.filteredProjects().filter(n=>n.isFavorite));moreProjects=Pe(()=>this.filteredProjects().filter(n=>!n.isFavorite));recentProjects=Pe(()=>this.projects().slice().sort((n,e)=>{let t=new Date(n.lastOpened||0).getTime();return new Date(e.lastOpened||0).getTime()-t}).slice(0,5));selectProject(n){this.setCurrentProject(n);let e=Date.now();this.projects.update(t=>t.map(a=>a.id===n.id?pt(Z({},a),{lastOpened:e}):a)),this.currentProject.update(t=>t&&pt(Z({},t),{lastOpened:e})),this.projectService.setLastOpened(n.id,e).subscribe(),this.router.navigate(["/dashboard"])}patchProject(n){this.projects.update(e=>e.map(t=>t.id===n.id?n:t)),this.currentProjectId()===n.id&&this.currentProject.set(n)}openInEditor(n){this.projectService.openInEditor(n).subscribe({next:()=>{console.log("Opened project in editor:",n),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(n){this.projectService.toggleFavorite(n).subscribe(e=>{this.patchProject(e)})}getProjects(n){this.projectService.list().subscribe(e=>{if(this.projects.set(e),!e.length){this.setCurrentProject(null);return}if(n)this.setCurrentProjectById(n);else{let t=this.ls.getNullable($e.project.currentProjectId),a=t?e.find(i=>i.id===t):null;if(a){this.setCurrentProject(a);return}this.currentProjectId()||this.setCurrentProject(e[0])}})}getProjectById(n){return this.projects().find(e=>e.id===n)||null}setCurrentProject(n){this.currentProject.set(n);let e=n?n.id:null;this.currentProjectId.set(e),e?this.ls.set($e.project.currentProjectId,e):this.ls.remove($e.project.currentProjectId)}setCurrentProjectById(n){let e=this.projects().find(t=>t.id===n)||null;this.setCurrentProject(e)}isOpen(n){return this.currentProjectId()===n.id}openEditModal(n){this.editingProject.set({id:n.id,name:n.name??"",repoPageUrl:n.repoPageUrl??"",description:n.description??""}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditSaving()||(this.isEditModalVisible.set(!1),this.editingProject.set(null))}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:n,name:e,description:t,repoPageUrl:a}=this.editingProject();if(!n){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!e)return;let i=t?.trim(),o=a?.trim(),l=this.getProjectById(n);if(l&&l.name===e&&l.description===i&&l.repoPageUrl===o){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(n,{name:e,description:i,repoPageUrl:o}).subscribe({next:c=>{this.isEditSaving.set(!1),this.patchProject(c),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.closeEditModal()},error:c=>{this.notify.error(c?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)},complete:()=>{this.isEditSaving.set(!1)}})}deleteProject(n){this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664\u8BE5\u9879\u76EE\u5417\uFF1F",nzContent:"\u5220\u9664\u9879\u76EE\u53EA\u4F1A\u79FB\u9664\u9879\u76EE\u8BB0\u5F55\uFF0C\u4E0D\u4F1A\u5220\u9664\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u5939\u3002\u5982\u9700\u5220\u9664\u78C1\u76D8\u6587\u4EF6\uFF0C\u8BF7\u624B\u52A8\u64CD\u4F5C\u3002",nzOkText:"\u5220\u9664",nzCancelText:"\u53D6\u6D88",nzOkDanger:!0,nzOnOk:()=>{this.projectService.delete(n).subscribe({next:()=>{if(this.projects.update(e=>e.filter(t=>t.id!==n)),this.currentProjectId()===n){let e=this.projects()[0]||null;this.setCurrentProject(e),e||this.notify.info("\u5F53\u524D\u6CA1\u6709\u9879\u76EE\uFF0C\u8BF7\u5148\u521B\u5EFA\u6216\u5BFC\u5165\u9879\u76EE")}this.notify.success("\u9879\u76EE\u5DF2\u5220\u9664")}})}})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})};export{ho as a,Tc as b,rn as c,Yc as d,xc as e,Jt as f,it as g,ot as h,en as i,nn as j,vr as k,yr as l,no as m,Us as n,an as o,_r as p,kr as q,Pr as r,Sr as s,al as t,dt as u,pn as v,na as w,aa as x,ai as y,ri as z,ra as A,ii as B,oi as C,mn as D,li as E,un as F,si as G};