@yinuo-ngm/server 1.0.16 → 1.0.18

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 (118) hide show
  1. package/lib/app.js +3 -15
  2. package/lib/common/editor.js +2 -2
  3. package/lib/env.d.ts +1 -0
  4. package/lib/env.js +1 -0
  5. package/lib/plugins/error-handler.plugin.d.ts +2 -2
  6. package/lib/plugins/error-handler.plugin.js +97 -93
  7. package/lib/plugins/ws/topics/nginx.ws.js +2 -1
  8. package/lib/plugins/ws/topics/svn.ws.d.ts +2 -1
  9. package/lib/plugins/ws/topics/svn.ws.js +3 -2
  10. package/lib/plugins/ws/topics/syslog.ws.d.ts +1 -1
  11. package/lib/plugins/ws/topics/task.ws.d.ts +2 -1
  12. package/lib/plugins/ws/topics/task.ws.js +2 -1
  13. package/lib/plugins/ws/ws.context.d.ts +1 -1
  14. package/lib/plugins/ws/ws.plugin.js +4 -3
  15. package/lib/plugins/ws/ws.router.d.ts +2 -2
  16. package/lib/plugins/ws/ws.router.js +8 -7
  17. package/lib/routes/api-client/collection.routes.js +8 -6
  18. package/lib/routes/api-client/env.routes.js +4 -3
  19. package/lib/routes/api-client/history.routes.js +3 -2
  20. package/lib/routes/api-client/hub-token.routes.js +11 -11
  21. package/lib/routes/api-client/request.routes.js +7 -6
  22. package/lib/routes/api-client/send.routes.js +3 -2
  23. package/lib/routes/config.routes.js +5 -5
  24. package/lib/routes/hub.routes.js +10 -10
  25. package/lib/routes/nginx/nginx-lifecycle.routes.js +4 -0
  26. package/lib/routes/nginx/nginx-route.context.js +23 -7
  27. package/lib/routes/nginx/nginx-server.routes.js +158 -6
  28. package/lib/routes/node-version.routes.js +7 -7
  29. package/lib/routes/project.routes.js +9 -9
  30. package/lib/routes/rss.routes.js +3 -3
  31. package/lib/routes/sprite-browse.routes.js +2 -1
  32. package/lib/routes/sprite.routes.js +3 -3
  33. package/lib/routes/static-files.routes.js +7 -7
  34. package/lib/routes/svn.routes.js +5 -3
  35. package/lib/routes/system.routes.js +20 -1
  36. package/lib/routes/task.routes.js +4 -4
  37. package/package.json +13 -6
  38. package/www/3rdpartylicenses.txt +52 -52
  39. package/www/browser/chunk-2L7NUOMX.js +2 -0
  40. package/www/browser/chunk-2NZJ7CN2.js +20 -0
  41. package/www/browser/{chunk-SPRWNZHF.js → chunk-3CM4SKDO.js} +2 -2
  42. package/www/browser/{chunk-EEVPZGEY.js → chunk-3I7BQCXS.js} +1 -1
  43. package/www/browser/{chunk-DXF7BVK5.js → chunk-3M56F2S2.js} +1 -1
  44. package/www/browser/chunk-3OHBKMAA.js +1 -0
  45. package/www/browser/{chunk-4KETC6EB.js → chunk-3XNNQFWR.js} +1 -1
  46. package/www/browser/chunk-4BRW6LCZ.js +4 -0
  47. package/www/browser/{chunk-HGONFYP6.js → chunk-4LBSLURA.js} +1 -1
  48. package/www/browser/{chunk-BYEU6KGP.js → chunk-4X42HB6N.js} +1 -1
  49. package/www/browser/chunk-5DYX4DUX.js +11 -0
  50. package/www/browser/chunk-6SYVDN5L.js +1 -0
  51. package/www/browser/{chunk-XJ5KZQNN.js → chunk-6YYNHZ2A.js} +1 -1
  52. package/www/browser/{chunk-G2W3B7TJ.js → chunk-75W3GVSO.js} +1 -1
  53. package/www/browser/{chunk-76TVIB33.js → chunk-7U44RF5F.js} +1 -1
  54. package/www/browser/{chunk-WD4IAQR3.js → chunk-AELTP6YN.js} +1 -1
  55. package/www/browser/chunk-AMXRL4GR.js +1 -0
  56. package/www/browser/chunk-AV2ZODEH.js +1 -0
  57. package/www/browser/chunk-AZ6SIMYH.js +1 -0
  58. package/www/browser/chunk-B3C35ET3.js +2 -0
  59. package/www/browser/chunk-BTQIUVTQ.js +1 -0
  60. package/www/browser/chunk-CN5J4WNO.js +1 -0
  61. package/www/browser/{chunk-N4LRZJBP.js → chunk-D2ODDESN.js} +1 -1
  62. package/www/browser/{chunk-O2EYEF7J.js → chunk-DE6E23ET.js} +1 -1
  63. package/www/browser/{chunk-SVQWPHF5.js → chunk-DIJPUYIA.js} +1 -1
  64. package/www/browser/{chunk-SYCNSLAW.js → chunk-DLGJD6YU.js} +4 -4
  65. package/www/browser/{chunk-JHMEKUZ5.js → chunk-EEDA5U4V.js} +1 -1
  66. package/www/browser/chunk-FK6Z4HLL.js +1 -0
  67. package/www/browser/chunk-FL6GDGHW.js +1 -0
  68. package/www/browser/{chunk-HRXCR3IN.js → chunk-FXCG34QS.js} +1 -1
  69. package/www/browser/{chunk-UJOHBN2Y.js → chunk-H2USFIYR.js} +1 -1
  70. package/www/browser/chunk-H5HGMOE6.js +1 -0
  71. package/www/browser/chunk-HB3HECPD.js +1 -0
  72. package/www/browser/{chunk-INL2PELS.js → chunk-HDNG236Q.js} +1 -1
  73. package/www/browser/{chunk-WF2QTF5L.js → chunk-HJTXXSMC.js} +1 -1
  74. package/www/browser/{chunk-LQ5OXSW7.js → chunk-HUMCWAKJ.js} +1 -1
  75. package/www/browser/chunk-IKB3EQCP.js +2 -0
  76. package/www/browser/{chunk-TMX5TTV3.js → chunk-K7PESFPY.js} +1 -1
  77. package/www/browser/{chunk-T3KK7ZXB.js → chunk-KRYMOHYF.js} +1 -1
  78. package/www/browser/{chunk-SQQNR223.js → chunk-M4QRBV3K.js} +1 -1
  79. package/www/browser/chunk-N2PELLMM.js +30 -0
  80. package/www/browser/{chunk-ACAZUX6C.js → chunk-ONXBYGIG.js} +1 -1
  81. package/www/browser/{chunk-JZULA5JV.js → chunk-OSBDR36P.js} +1 -1
  82. package/www/browser/chunk-OZCK4XVV.js +1 -0
  83. package/www/browser/{chunk-GDWS2L66.js → chunk-QJP5F735.js} +1 -1
  84. package/www/browser/{chunk-2X3MRS27.js → chunk-RGOYDY7H.js} +1 -1
  85. package/www/browser/{chunk-B6MBYCXI.js → chunk-UJKK4A7Y.js} +1 -1
  86. package/www/browser/{chunk-ZNTJRLVH.js → chunk-WD2EKZQC.js} +1 -1
  87. package/www/browser/{chunk-L5D75AMV.js → chunk-WUA5JFDD.js} +1 -1
  88. package/www/browser/chunk-XLFHB7RS.js +3 -0
  89. package/www/browser/{chunk-JU3TEDBV.js → chunk-YNW4HEJO.js} +1 -1
  90. package/www/browser/{chunk-RW2JPJV7.js → chunk-ZTDLWBW5.js} +1 -1
  91. package/www/browser/index.html +1 -1
  92. package/www/browser/main-N64WJCHX.js +34 -0
  93. package/www/browser/chunk-2BZRE4G7.js +0 -1
  94. package/www/browser/chunk-5T5KA5PG.js +0 -1
  95. package/www/browser/chunk-6CGHNKJI.js +0 -1
  96. package/www/browser/chunk-7J24TP36.js +0 -1
  97. package/www/browser/chunk-CZ5AZ3VW.js +0 -1
  98. package/www/browser/chunk-DW7F5PEA.js +0 -1
  99. package/www/browser/chunk-HHBPULJW.js +0 -2
  100. package/www/browser/chunk-KVFR7GFV.js +0 -20
  101. package/www/browser/chunk-L7TMCSHV.js +0 -1
  102. package/www/browser/chunk-MVQTKINJ.js +0 -1
  103. package/www/browser/chunk-OMDHJIUB.js +0 -1
  104. package/www/browser/chunk-OWUAAOHW.js +0 -2
  105. package/www/browser/chunk-PIK5YPIB.js +0 -1
  106. package/www/browser/chunk-RHLQRQDK.js +0 -9
  107. package/www/browser/chunk-S3SJ4VVM.js +0 -11
  108. package/www/browser/chunk-SIVPP74B.js +0 -0
  109. package/www/browser/chunk-UFY3FLDK.js +0 -1
  110. package/www/browser/chunk-UQGCUFNM.js +0 -1
  111. package/www/browser/chunk-UXXWRMM6.js +0 -1
  112. package/www/browser/chunk-UZRJGJTD.js +0 -2
  113. package/www/browser/chunk-WI67LAOV.js +0 -4
  114. package/www/browser/chunk-WNCM6QKB.js +0 -1
  115. package/www/browser/chunk-YETDFSQE.js +0 -1
  116. package/www/browser/chunk-YMTC5GZK.js +0 -1
  117. package/www/browser/chunk-YVZHJ76K.js +0 -1
  118. package/www/browser/main-6LN5C22E.js +0 -34
@@ -0,0 +1,11 @@
1
+ import{j as on}from"./chunk-AMXRL4GR.js";import{f as nn}from"./chunk-ZTDLWBW5.js";import{e as sn}from"./chunk-DIJPUYIA.js";import{a as rn,b as Ie}from"./chunk-QJP5F735.js";import{a as an}from"./chunk-UJKK4A7Y.js";import"./chunk-75W3GVSO.js";import"./chunk-OZCK4XVV.js";import"./chunk-AELTP6YN.js";import{f as tn}from"./chunk-FXCG34QS.js";import{d as De,e as Ne,f as Se}from"./chunk-3XNNQFWR.js";import{e as Kt,g as Jt,h as Gt}from"./chunk-YNW4HEJO.js";import{g as $t,h as At,i as Lt,k as Qt,l as Wt}from"./chunk-4X42HB6N.js";import{d as Xt,k as Yt,m as en,o as yn}from"./chunk-2NZJ7CN2.js";import{Fb as Me,Ga as ee,Ha as $,Hb as re,Ia as et,Ja as tt,L as B,Lb as se,Na as Ft,Oa as Rt,Pa as ze,Qa as ve,Sa as Ee,Ta as be,Vb as le,Wa as Te,Wb as Ut,Xb as we,_b as Zt,a as Ot,ac as ce,c as Pt,cc as Ht,dc as Z,gb as jt,gc as nt,hb as Bt,ic as me,la as Xe,ma as Vt,ra as Ye,ta as kt,tb as qt,va as ae}from"./chunk-3CM4SKDO.js";import"./chunk-HFZLJHYR.js";import{h as Ge}from"./chunk-WUA5JFDD.js";import{i as It,n as O}from"./chunk-KRYMOHYF.js";import{$b as N,Ac as U,Ba as Ct,Bb as xt,Ca as gt,Da as _e,Ec as Mt,Fb as w,Fc as ye,Gb as Q,Gc as de,Ha as I,Hb as zt,Jc as m,Kc as V,Lb as J,Lc as F,Oa as Ue,Oc as Ze,Pc as He,Qc as Ke,Ra as he,Ub as vt,Wb as y,X as ut,Yb as x,Yc as Y,Zb as Et,Zc as wt,a as H,ac as S,b as K,bc as f,cc as s,dc as l,dd as Dt,e as hn,ea as qe,ec as T,f as We,g as dt,ic as G,id as j,jc as X,jd as Nt,lc as v,m as mt,na as ft,nb as p,oa as L,od as Je,r as ie,rc as C,s as P,sa as u,sb as b,tb as _t,uc as r,ud as xe,vb as ht,vc as bt,wc as Tt,ya as _,yb as yt,yc as W,yd as oe,z as ge,za as h,zc as q,zd as St}from"./chunk-4BRW6LCZ.js";var it=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=zt({type:t,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(i,o){i&2&&ye("border","0")("background","transparent")("padding","0")("line-height","inherit")}})}return t})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({})}return t})();function vn(t,n){if(t&1&&(G(0),T(1,"nz-icon",2),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}var En=["textarea"];function bn(t,n){if(t&1){let e=v();s(0,"textarea",2,0),C("blur",function(){_(e);let o=r();return h(o.confirm())}),l(),s(2,"button",3),C("click",function(){_(e);let o=r();return h(o.confirm())}),T(3,"nz-icon",4),l()}}function Tn(t,n){if(t&1&&(G(0),T(1,"nz-icon",7),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}function Mn(t,n){if(t&1){let e=v();s(0,"button",5),C("click",function(){_(e);let o=r();return h(o.onClick())}),J(1,Tn,2,1,"ng-container",6),l()}if(t&2){let e=r();f("nzTooltipTitle",e.tooltip===null?null:e.tooltip||(e.locale==null?null:e.locale.edit)),p(),f("nzStringTemplateOutlet",e.icon)}}var wn=["ellipsisContainer"],Dn=["expandable"],Nn=["contentTemplate"],Sn=["*"],In=t=>({content:t});function On(t,n){t&1&&Tt(0)}function Pn(t,n){if(t&1&&(y(0,On,1,0),m(1)),t&2){let e=n.content;x(e?-1:0),p(),F(" ",e," ")}}function Vn(t,n){}function kn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Fn(t,n){if(t&1&&(J(0,Vn,0,0,"ng-template",5),y(1,kn,1,1)),t&2){let e=r(2),i=Mt(1);f("ngTemplateOutlet",i)("ngTemplateOutletContext",wt(3,In,e.nzContent)),p(),x(e.nzSuffix?1:-1)}}function Rn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.ellipsisStr," ")}}function jn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Bn(t,n){if(t&1){let e=v();s(0,"a",7,2),C("click",function(){_(e);let o=r(3);return h(o.onExpand())}),m(2),l()}if(t&2){let e=r(3);p(2),F(" ",e.locale==null?null:e.locale.expand," ")}}function $n(t,n){if(t&1&&(T(0,"span",null,1),y(2,Rn,1,1),y(3,jn,1,1),y(4,Bn,3,1,"a",6)),t&2){let e=r(2);p(2),x(e.isEllipsis?2:-1),p(),x(e.nzSuffix?3:-1),p(),x(e.nzExpandable&&e.isEllipsis?4:-1)}}function An(t,n){if(t&1&&y(0,Fn,2,5)(1,$n,5,3),t&2){let e=r();x(e.expanded||!e.hasOperationsWithEllipsis&&e.nzEllipsisRows===1&&!e.hasEllipsisObservers||e.canCssEllipsis||e.nzSuffix&&e.expanded?0:1)}}function Ln(t,n){if(t&1){let e=v();s(0,"nz-text-edit",8),C("endEditing",function(o){_(e);let a=r();return h(a.onEndEditing(o))})("startEditing",function(){_(e);let o=r();return h(o.onStartEditing())}),l()}if(t&2){let e=r();f("text",e.nzContent)("icon",e.nzEditIcon)("tooltip",e.nzEditTooltip)}}function Qn(t,n){if(t&1){let e=v();s(0,"nz-text-copy",9),C("textCopy",function(o){_(e);let a=r();return h(a.onTextCopy(o))}),l()}if(t&2){let e=r();f("text",e.copyText)("tooltips",e.nzCopyTooltips)("icons",e.nzCopyIcons)}}var at=(()=>{class t{cdr=u(xe);clipboard=u(an);i18n=u(Te);destroyRef=u(_e);copied=!1;copyId;locale;nativeElement=u(he).nativeElement;copyTooltip=null;copedTooltip=null;copyIcon="copy";copedIcon="check";text;tooltips;icons=["copy","check"];textCopy=new b;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.copyId)})}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(e){let{tooltips:i,icons:o}=e;i&&this.updateTooltips(),o&&this.updateIcons()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();let e=this.text;this.textCopy.emit(e),this.clipboard.copy(e),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(this.tooltips===null)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){let[e,i]=this.tooltips;this.copyTooltip=e||this.locale?.copy,this.copedTooltip=i||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){let[e,i]=this.icons;this.copyIcon=e,this.copedIcon=i,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[Ue],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&(s(0,"button",0),C("click",function(){return o.onClick()}),J(1,vn,2,1,"ng-container",1),l()),i&2&&(de("ant-typography-copy-success",o.copied),f("nzTooltipTitle",o.copied?o.copedTooltip:o.copyTooltip),p(),f("nzStringTemplateOutlet",o.copied?o.copedIcon:o.copyIcon))},dependencies:[me,nt,ot,it,$,ee,tt,et],encapsulation:2,changeDetection:0})}return t})(),rt=(()=>{class t{ngZone=u(_t);cdr=u(xe);i18n=u(Te);destroyRef=u(_e);editing=!1;locale;text;icon="edit";tooltip;startEditing=new b;endEditing=new b(!0);set textarea(e){this.textarea$.next(e)}autosizeDirective;beforeText;currentText;nativeElement=u(he).nativeElement;textarea$=new mt(null);injector=u(Ct);ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"keydown")),B(this.destroyRef)).subscribe(e=>{e.keyCode!==27&&e.keyCode!==13||this.ngZone.run(()=>{e.keyCode===27?this.onCancel():this.onEnter(e),this.cdr.markForCheck()})}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"input")),B(this.destroyRef)).subscribe(e=>{this.currentText=e.target.value})}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onEnter(e){e.stopPropagation(),e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){let{injector:e}=this;ht(()=>{this.textarea$.pipe(ut(i=>i!=null),B(this.destroyRef)).subscribe(i=>{i.nativeElement.focus(),i.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-edit"]],viewQuery:function(i,o){if(i&1&&(W(En,5),W(we,5)),i&2){let a;q(a=U())&&(o.textarea=a.first),q(a=U())&&(o.autosizeDirective=a.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:1,consts:[["textarea",""],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&y(0,bn,4,0)(1,Mn,2,2,"button",1),i&2&&x(o.editing?0:1)},dependencies:[Z,ce,we,ot,it,$,ee,me,nt,tt,et],encapsulation:2,changeDetection:0})}return t})(),Wn="typography",qn="ant-typography-expand",Un=(()=>{var k;let t,n=[],e=[],i,o=[],a=[],E,D=[],z=[],R,fe=[],Ce=[],lt,ct=[],pt=[];return k=class{_nzModuleName=Wn;nzConfigService=u(kt);el=u(he).nativeElement;cdr=u(xe);viewContainerRef=u(xt);renderer=u(yt);platform=u(Pt);i18n=u(Te);resizeService=u(qt);directionality=u(Ot);document=u(gt);destroyRef=u(_e);nzCopyable=!1;nzEditable=!1;nzDisabled=!1;nzExpandable=!1;nzEllipsis=!1;nzCopyTooltips=P(this,n,void 0);nzCopyIcons=(P(this,e),P(this,o,["copy","check"]));nzEditTooltip=(P(this,a),P(this,D,void 0));nzEditIcon=(P(this,z),P(this,fe,"edit"));nzContent=P(this,Ce);nzEllipsisRows=P(this,ct,1);nzType=P(this,pt);nzCopyText;nzSuffix;nzContentChange=new b;nzCopy=new b;nzExpandChange=new b;nzOnEllipsis=new b;textEditRef;textCopyRef;ellipsisContainer;expandableBtn;contentTemplate;locale;expandableBtnElementCache=null;editing=!1;ellipsisText;cssEllipsis=!1;isEllipsis=!0;expanded=!1;ellipsisStr="...";dir="ltr";get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}viewInit=!1;requestId=-1;windowResizeSubscription=dt.EMPTY;get copyText(){return typeof this.nzCopyText=="string"?this.nzCopyText:this.nzContent}constructor(){this.destroyRef.onDestroy(()=>{this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()})}onTextCopy(g){this.nzCopy.emit(g)}onStartEditing(){this.editing=!0}onEndEditing(g){this.editing=!1,this.nzContentChange.emit(g),this.nzContent===g&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers?!1:this.nzEllipsisRows===1?Xe("textOverflow"):Xe("webkitLineClamp")}renderOnNextFrame(){Bt(this.requestId),!(!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser)&&(this.requestId=jt(()=>this.syncEllipsis()))}getOriginContentViewRef(){let g=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return g.detectChanges(),{viewRef:g,removeView:()=>this.viewContainerRef.remove(this.viewContainerRef.indexOf(g))}}syncEllipsis(){if(this.cssEllipsis)return;let{viewRef:g,removeView:d}=this.getOriginContentViewRef(),c=[this.textCopyRef,this.textEditRef].filter(ne=>ne&&ne.nativeElement).map(ne=>ne.nativeElement),M=this.getExpandableBtnElement();M&&c.push(M);let{contentNodes:Le,text:Qe,ellipsis:pe}=Vt(this.el,this.nzEllipsisRows,g.rootNodes,c,this.ellipsisStr,this.nzSuffix);d(),this.ellipsisText=Qe,pe!==this.isEllipsis&&(this.isEllipsis=pe,this.nzOnEllipsis.emit(pe));let te=this.ellipsisContainer.nativeElement;for(;te.firstChild;)this.renderer.removeChild(te,te.firstChild);Le.forEach(ne=>{this.renderer.appendChild(te,ne.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){let g=this.locale?this.locale.expand:"",d=this.expandableBtnElementCache;if(!d||d.innerText===g){let c=this.document.createElement("a");c.className=qn,c.innerText=g,this.expandableBtnElementCache=c}return this.expandableBtnElementCache}else return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.connect().pipe(B(this.destroyRef)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe(B(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(g){let{nzCopyable:d,nzEditable:c,nzExpandable:M,nzEllipsis:Le,nzContent:Qe,nzEllipsisRows:pe,nzSuffix:te}=g;(d||c||M||Le||Qe||pe||te)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ae()],i=[ae()],E=[ae()],R=[ae()],lt=[ae()],ie(null,null,t,{kind:"field",name:"nzCopyTooltips",static:!1,private:!1,access:{has:d=>"nzCopyTooltips"in d,get:d=>d.nzCopyTooltips,set:(d,c)=>{d.nzCopyTooltips=c}},metadata:g},n,e),ie(null,null,i,{kind:"field",name:"nzCopyIcons",static:!1,private:!1,access:{has:d=>"nzCopyIcons"in d,get:d=>d.nzCopyIcons,set:(d,c)=>{d.nzCopyIcons=c}},metadata:g},o,a),ie(null,null,E,{kind:"field",name:"nzEditTooltip",static:!1,private:!1,access:{has:d=>"nzEditTooltip"in d,get:d=>d.nzEditTooltip,set:(d,c)=>{d.nzEditTooltip=c}},metadata:g},D,z),ie(null,null,R,{kind:"field",name:"nzEditIcon",static:!1,private:!1,access:{has:d=>"nzEditIcon"in d,get:d=>d.nzEditIcon,set:(d,c)=>{d.nzEditIcon=c}},metadata:g},fe,Ce),ie(null,null,lt,{kind:"field",name:"nzEllipsisRows",static:!1,private:!1,access:{has:d=>"nzEllipsisRows"in d,get:d=>d.nzEllipsisRows,set:(d,c)=>{d.nzEllipsisRows=c}},metadata:g},ct,pt),g&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),We(k,"\u0275fac",function(d){return new(d||k)}),We(k,"\u0275cmp",w({type:k,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(d,c){if(d&1&&(W(rt,5),W(at,5),W(wn,5),W(Dn,5),W(Nn,5)),d&2){let M;q(M=U())&&(c.textEditRef=M.first),q(M=U())&&(c.textCopyRef=M.first),q(M=U())&&(c.ellipsisContainer=M.first),q(M=U())&&(c.expandableBtn=M.first),q(M=U())&&(c.contentTemplate=M.first)}},hostVars:26,hostBindings:function(d,c){d&2&&(ye("-webkit-line-clamp",c.canCssEllipsis&&c.nzEllipsisRows>1?c.nzEllipsisRows:null),de("ant-typography",!c.editing)("ant-typography-rtl",c.dir==="rtl")("ant-typography-edit-content",c.editing)("ant-typography-secondary",c.nzType==="secondary")("ant-typography-warning",c.nzType==="warning")("ant-typography-danger",c.nzType==="danger")("ant-typography-success",c.nzType==="success")("ant-typography-disabled",c.nzDisabled)("ant-typography-ellipsis",c.nzEllipsis&&!c.expanded)("ant-typography-single-line",c.nzEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-single-line",c.canCssEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-multiple-line",c.canCssEllipsis&&c.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",oe],nzEditable:[2,"nzEditable","nzEditable",oe],nzDisabled:[2,"nzDisabled","nzDisabled",oe],nzExpandable:[2,"nzExpandable","nzExpandable",oe],nzEllipsis:[2,"nzEllipsis","nzEllipsis",oe],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",St],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[Ue],ngContentSelectors:Sn,decls:5,vars:3,consts:[["contentTemplate",""],["ellipsisContainer",""],["expandable",""],[3,"text","icon","tooltip"],[3,"text","tooltips","icons"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-typography-expand"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(d,c){d&1&&(bt(),J(0,Pn,2,2,"ng-template",null,0,Dt),y(2,An,2,1),y(3,Ln,1,3,"nz-text-edit",3),y(4,Qn,1,3,"nz-text-copy",4)),d&2&&(p(2),x(c.editing?-1:2),p(),x(c.nzEditable?3:-1),p(),x(c.nzCopyable&&!c.editing?4:-1))},dependencies:[It,rt,at],encapsulation:2,changeDetection:0})),k})(),pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Un,at,rt]})}return t})();var ue=hn(yn());function Jn(t,n){if(t&1){let e=v();s(0,"div",0)(1,"span",1),m(2,"\u6709\u672A\u4FDD\u5B58\u66F4\u6539"),l(),s(3,"button",2),C("click",function(){_(e);let o=r();return h(o.diff.emit())}),m(4,"Diff"),l(),s(5,"button",2),C("click",function(){_(e);let o=r();return h(o.reset.emit())}),m(6,"\u91CD\u7F6E"),l(),s(7,"button",3),C("click",function(){_(e);let o=r();return h(o.save.emit())}),m(8,"\u4FDD\u5B58"),l()()}}var Oe=class t{dirty=!1;diff=new b;reset=new b;save=new b;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-change-bar-component"]],inputs:{dirty:"dirty"},outputs:{diff:"diff",reset:"reset",save:"save"},decls:1,vars:1,consts:[[1,"change-bar"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,i){e&1&&y(0,Jn,9,0,"div",0),e&2&&x(i.dirty?0:-1)},dependencies:[O,be,Ee,ze,ve],styles:[".change-bar[_ngcontent-%COMP%]{width:100%;padding:10px 20px;display:flex;justify-content:flex-end;align-items:center;gap:10px;box-shadow:0 -2px 8px #0000000f;background:var(--app-component-bg);border:1px solid var(--app-border-color)}.hint[_ngcontent-%COMP%]{margin-right:auto;opacity:.75}"]})};var Gn=(t,n)=>n.id;function Xn(t,n){if(t&1){let e=v();s(0,"div",6),C("click",function(){let o=_(e).$implicit,a=r();return h(a.selectDomain(o))}),s(1,"div",7)(2,"div",8),T(3,"nz-icon",9),l(),s(4,"div",10)(5,"div",11),m(6),l(),s(7,"div",12),m(8),l()()()()}if(t&2){let e=n.$implicit,i=r();de("active",e.id===i.activeDomainId()),p(3),f("nzType",e.icon||"setting"),p(3),V(e.label),p(2),V(e.description)}}var Ve=class t{keyword=I("");nodes=Je([]);activeDomainId=Je("");domainSelect=new b;selectDomain(n){this.domainSelect.emit(n.id)}filtered=j(()=>{let n=this.keyword().trim().toLowerCase();return n?this.nodes().map(e=>K(H({},e),{children:(e.children??[]).filter(i=>(i.label??"").toLowerCase().includes(n)||(i.relPath??"").toLowerCase().includes(n))})).filter(e=>(e.children?.length??0)>0):this.nodes()});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-nav-component"]],inputs:{nodes:[1,"nodes"],activeDomainId:[1,"activeDomainId"]},outputs:{domainSelect:"domainSelect"},decls:8,vars:1,consts:[[1,"list"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","",3,"ngModelChange","ngModel"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],[1,"row"],[1,"icon"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],[1,"info"],[1,"name"],[1,"description"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),T(3,"nz-icon",2),s(4,"input",3),C("ngModelChange",function(a){return i.keyword.set(a)}),l()()(),s(5,"div",4),N(6,Xn,9,5,"div",5,Gn),l()()),e&2&&(p(4),f("ngModel",i.keyword()),p(2),S(i.filtered()))},dependencies:[O,le,Me,re,se,Z,ce,Ht,Zt,$,ee],styles:[".list[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;height:0;display:flex;flex-direction:column;gap:8px;padding:8px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%]{background:var(--app-primary-2)}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function ke(t,n){return n.split(".").reduce((e,i)=>e?e[i]:void 0,t)}function mn(t,n,e){let i=n.split("."),o=i.pop(),a=t;for(let E of i)a[E]??={},a=a[E];a[o]=e}function un(t){return t.sort((n,e)=>(n.domain?.nav?.order??0)-(e.domain?.nav?.order??0)).map(n=>({id:n.domain.id,type:"domain",label:n.domain.label,icon:n.domain.icon,description:n.domain.description,children:(n.docs??[]).map(e=>({id:e.spec.id,type:"doc",label:e.spec.title,docId:e.spec.id,relPath:e.chosen?.relPath,codec:e.chosen?.codec,exists:e.exists}))}))}var fn=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function Fe(t,n,e,i=""){if(e===void 0)return[];if(!fn(e))return[{scope:t,target:n,path:i||"/",value:e}];let o=[],a=Object.keys(e);if(a.length===0)return o.push({scope:t,target:n,path:i||"/",value:{}}),o;for(let E of a){let D=i?`${i}.${E}`:E,z=e[E];fn(z)?o.push(...Fe(t,n,z,D)):o.push({scope:t,target:n,path:D,value:z})}return o}var Cn=(t,n)=>n.value,ei=(t,n)=>n.key;function ti(t,n){if(t&1&&(s(0,"div",3),m(1),l()),t&2){let e=r();p(),F(" ",e.item.desc," ")}}function ni(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function ii(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function oi(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r();p(),V(e.value)}}function ai(t,n){if(t&1&&(s(0,"nz-space",6),T(1,"nz-icon",9),s(2,"span"),m(3),l()()),t&2){let e=r();p(3),V(e.value)}}function ri(t,n){if(t&1){let e=v();s(0,"nz-switch",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function si(t,n){if(t&1&&T(0,"nz-option",11),t&2){let e=n.$implicit;f("nzValue",e.value)("nzLabel",e.label)}}function li(t,n){if(t&1){let e=v();s(0,"nz-select",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),N(1,si,1,2,"nz-option",11,Cn),l()}if(t&2){let e=r();f("ngModel",e.value),p(),S(e.options)}}function ci(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r().$index;p(),V(e+1)}}function pi(t,n){t&1&&T(0,"nz-icon",12)}function di(t,n){if(t&1&&(T(0,"nz-icon",9),s(1,"span"),m(2),l(),y(3,pi,1,0,"nz-icon",12)),t&2){let e=n.$implicit,i=r().$implicit,o=r(3);p(2),F(" ",i==null?null:i[e.key]," "),p(),x(e!==o.arrayFields()[o.arrayFields().length-1]?3:-1)}}function mi(t,n){if(t&1&&(s(0,"nz-space"),y(1,ci,2,1,"span"),N(2,di,4,2,null,null,ei),l()),t&2){let e=r(3);p(),x(e.arrayValue().length>1?1:-1),p(),S(e.arrayFields())}}function ui(t,n){if(t&1&&N(0,mi,4,1,"nz-space",null,Et),t&2){let e=r(2);S(e.arrayValue())}}function fi(t,n){t&1&&(s(0,"span"),m(1,"\u6570\u7EC4\u7C7B\u578B\u914D\u7F6E\u9879\uFF0C\u6682\u4E0D\u652F\u6301\u8868\u5355\u7F16\u8F91"),l())}function Ci(t,n){if(t&1&&y(0,ui,2,0)(1,fi,2,0,"span"),t&2){let e=r();x(e.isArrayObjectEditor()?0:1)}}function gi(t,n){if(t&1&&(s(0,"nz-space")(1,"span",2),m(2),l(),s(3,"span",14),m(4),l()()),t&2){let e=n.$implicit;p(2),F("",e.label,":"),p(2),V(e.value)}}function _i(t,n){if(t&1&&(s(0,"div",13),N(1,gi,5,2,"nz-space",null,Cn),l()),t&2){let e=r(2);p(),S(e.objectKv())}}function hi(t,n){if(t&1&&y(0,_i,3,0,"div",13),t&2){let e=r();x(e.isObjectEditor()?0:-1)}}var Re=class t{item;value;valueChange=new b;options=[];emit(n){this.valueChange.emit(n)}isObjectEditor(){return this.item?.type==="object"}objectKv(){let n=this.value??{};return Object.values(n).map((e,i)=>typeof e=="string"?{label:Object.keys(n)[i],value:e}:{label:Object.keys(n)[i],value:JSON.stringify(e)})}isArrayObjectEditor(){return this.item?.type==="array"&&this.item?.item?.type==="object"&&Array.isArray(this.item?.item?.fields)&&this.item.item.fields.length>0}arrayFields(){return this.item?.item?.fields??[]}arrayValue(){return Array.isArray(this.value)?this.value:[]}addRow(){let n=this.arrayFields(),e={};for(let o of n)o.key&&(e[o.key]=o.default??"");let i=[...this.arrayValue(),e];this.emit(i)}removeRow(n){let i=this.arrayValue().filter((o,a)=>a!==n);this.emit(i)}updateCell(n,e,i){let a=this.arrayValue().map((E,D)=>D!==n?E:K(H({},E??{}),{[e]:i}));this.emit(a)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-item-component"]],inputs:{item:"item",value:"value",options:"options"},outputs:{valueChange:"valueChange"},decls:14,vars:3,consts:[[1,"config-item"],[1,"meta"],[1,"label"],[1,"desc"],[1,"control"],["nz-input","",3,"ngModel"],["nzAlign","center"],[3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],["nzType","file","nzTheme","fill"],[3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nzType","arrow-right","nzTheme","outline"],[1,"kv"],[1,"value"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3),l(),y(4,ti,2,1,"div",3),l(),s(5,"div",4),y(6,ni,1,1,"input",5)(7,ii,1,1,"input",5)(8,oi,2,1,"span")(9,ai,4,1,"nz-space",6)(10,ri,1,1,"nz-switch",7)(11,li,3,1,"nz-select",7)(12,Ci,2,1)(13,hi,1,1),l()()),e&2){let o;p(3),V(i.item.label),p(),x(i.item.desc?4:-1),p(2),x((o=i.item.type)==="input"?6:o==="path"?7:o==="string"?8:o==="file"?9:o==="boolean"?10:o==="select"?11:o==="array"?12:o==="object"?13:-1)}},dependencies:[O,le,Me,re,se,$,ee,Ie,rn,Z,ce,Se,De,Ne,Rt,Ft,on],styles:[".config-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.config-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-2)}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;opacity:.75}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:4px;opacity:.55}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%]{min-width:200px;max-width:600px;width:60%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] input[nz-input][_ngcontent-%COMP%], .config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] .kv[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}"]})};var st=()=>[],yi=(t,n)=>n.id,gn=(t,n)=>n.key;function xi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(5);return h(E.onValueChange(o,a))}),l()}if(t&2){let e=n.$implicit,i=r(2).$implicit,o=r(3);f("item",e)("options",e.options||o.options[e.optionsRef==null?null:e.optionsRef.key]||Y(3,st))("value",o.getChild(e,i))}}function zi(t,n){if(t&1&&N(0,xi,1,4,"app-config-item-component",4,gn),t&2){let e=r().$implicit;S(e.children)}}function vi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(3);return h(E.onValueChange(o,a))}),l(),y(1,zi,2,0)}if(t&2){let e=n.$implicit,i=r(3);f("item",e)("options",e.options||i.options[e.optionsRef==null?null:e.optionsRef.key]||Y(4,st))("value",i.get(e)),p(),x(e.children!=null&&e.children.length?1:-1)}}function Ei(t,n){if(t&1&&(s(0,"section",1)(1,"h3",2),m(2),l(),N(3,vi,2,5,null,null,gn),l()),t&2){let e=n.$implicit;vt("id",e.id),p(2),V(e.label),p(),S(e.items)}}function bi(t,n){if(t&1&&N(0,Ei,5,2,"section",1,yi),t&2){let e=r().schema.sections||Y(0,st);S(e)}}function Ti(t,n){t&1&&(s(0,"div",0),m(1," \u8BE5\u914D\u7F6E\u6682\u4E0D\u652F\u6301\u8868\u5355\u6A21\u5F0F\uFF08\u53EF\u5207\u6362 Raw / \u6216\u7A0D\u540E\u5B9E\u73B0 provider\uFF09 "),l())}var je=class t{schema;vm;options={};vmChange=new b;get(n){let e=ke(this.vm,n.key);return e??n.default}getChild(n,e){let i=this.get(e);if(i==null||i==="")return n.default;let o=this.resolveDynamicPath(n.key,e.key,i),a=ke(this.vm,o);return a??n.default}onValueChange(n,e){let i=this.resolvePathForWrite(e);this.update(i,n)}resolvePathForWrite(n){let e=n.key||"",i=e.match(/<([^>]+)>/);if(!i)return e;let o=i[1],a=ke(this.vm,o);return this.resolveDynamicPath(e,o,a)}resolveDynamicPath(n,e,i){let o=`<${e}>`;return n.replace(o,String(i??""))}update(n,e){let i=structuredClone(this.vm);mn(i,n,e),this.vmChange.emit(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-section-component"]],inputs:{schema:"schema",vm:"vm",options:"options"},outputs:{vmChange:"vmChange"},decls:2,vars:1,consts:[[1,"empty"],[1,"section"],[1,"section-title"],[3,"valueChange","item","options","value"],[3,"item","options","value"]],template:function(e,i){e&1&&y(0,bi,2,1)(1,Ti,2,0,"div",0),e&2&&x(i.schema?0:1)},dependencies:[O,Re],styles:[".section[_ngcontent-%COMP%]{padding:0}.section[_ngcontent-%COMP%]:last-child{border-bottom:none}.section-title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:24px;opacity:.85;font-weight:500;padding:0 16px}.empty[_ngcontent-%COMP%]{padding:12px 14px}"]})};var Be=class t{api=u(Yt);getCatalog(n){return this.api.get(`/api/config/catalog/${n}`)}openInEditor(n,e){return this.api.post(`/api/config/openInEditor/${n}/${encodeURIComponent(e)}`,{})}writeDomainSchema(n,e,i){return this.api.post(`/api/config/writeSchema/${n}/${e}`,{vm:i})}getDomainSchemas(n,e){return this.api.get(`/api/config/getDomainSchema/${n}/${e}`)}diffDomainSchema(n,e,i){return this.api.post(`/api/config/diffSchema/${n}/${e}`,{vm:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mi=["class","component"],wi=()=>({}),Di=()=>[],Ni=(t,n)=>n.docId;function Si(t,n){if(t&1&&T(0,"nz-option",13),t&2){let e=n.$implicit;f("nzLabel",e.title)("nzValue",e.docId)}}function Ii(t,n){if(t&1){let e=v();G(0),s(1,"div",11)(2,"label"),m(3,"\u9009\u62E9\u914D\u7F6E\u6587\u4EF6"),l(),s(4,"nz-select",12),Ke("ngModelChange",function(o){_(e);let a=r();return He(a.selectedDocId,o)||(a.selectedDocId=o),h(o)}),N(5,Si,1,2,"nz-option",13,Ni),l()(),X()}if(t&2){let e=r();p(4),Ze("ngModel",e.selectedDocId),p(),S(e.activeDocsMeta()||Y(1,Di))}}function Oi(t,n){if(t&1){let e=v();G(0),s(1,"button",14),C("click",function(){_(e);let o=r();return h(o.openConfig())}),m(2," \u6253\u5F00\u914D\u7F6E\u6587\u4EF6 "),l(),X()}if(t&2){let e=r();p(),f("disabled",!e.selectedDocId())}}var $e=class t{api=u(Be);projectContext=u(en);msg=u(Xt);modal=u($t);projectId=j(()=>this.projectContext.currentProjectId()||"");loading=I(!1);isModalVisible=I(!1);catalog=I(null);navNodes=j(()=>un(this.catalog()??[]));activeDomainId=I(null);selectedDocId=I(null);docStates=I({});domainSchema=I(null);domainVM=I(null);baselineDomainVM=I(null);activeDomain=j(()=>{let n=this.activeDomainId();return(this.catalog()??[]).find(e=>e.domain.id===n)??null});activeDocs=j(()=>this.activeDomain()?.docs??[]);activeDocsMeta=j(()=>{let n=this.activeDomain();return n?(n.docs??[]).map(e=>({docId:e.spec.id,title:e.spec.title,exists:e.exists,relPath:e.chosen?.relPath,codec:e.chosen?.codec})):[]});domainDirty=j(()=>{let n=this.baselineDomainVM(),e=this.domainVM();return!n||!e?!1:!ue.isEqual(n,e)});constructor(){Nt(()=>{this.projectId()&&this.getCatalog()})}getCatalog(){let n=this.projectId();n&&(this.loading.set(!0),this.api.getCatalog(n).subscribe({next:e=>{this.catalog.set(e);let i=e[0]?.domain?.id??"";i&&(this.activeDomainId.set(i),this.loadDomainSchema(i))},error:e=>{console.error(e),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u76EE\u5F55\u5931\u8D25")},complete:()=>this.loading.set(!1)}))}onDomainSelect(n){this.activeDomainId.set(n),n==="angular"?this.loadDomainSchema(n):this.domainVM.set(null)}async loadDomainSchema(n){let e=this.projectId();if(e){this.loading.set(!0);try{let i=await ge(this.api.getDomainSchemas(e,n));this.domainSchema.set(i),this.domainVM.set(i.vm),this.baselineDomainVM.set(ue.cloneDeep(i.vm))}catch(i){console.error(i),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u6A21\u578B\u5931\u8D25"),this.domainVM.set(null),this.baselineDomainVM.set(null)}finally{this.loading.set(!1)}}}async onDiff(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{let o=await ge(this.api.diffDomainSchema(n,e,i)),a=o?.docPatch??{},E=o?.filePatch??[],D=[];for(let[z,R]of Object.entries(a))D.push(...Fe("doc",z,R));for(let z of E)D.push(...Fe("file",z.relPath,z.patch));if(D.length===0){this.msg.info("\u6CA1\u6709\u53EF\u5199\u56DE\u7684\u53D8\u66F4");return}D.sort((z,R)=>{if(z.scope!==R.scope)return z.scope.localeCompare(R.scope);let fe=`${z.target}:${z.path}`,Ce=`${R.target}:${R.path}`;return fe.localeCompare(Ce)}),this.modal.create({nzTitle:"\u53D8\u66F4",nzContent:`
2
+ <div style="max-height:60vh; overflow:auto;">
3
+ ${D.map(z=>`
4
+ <div style="padding:8px 0; border-bottom:1px solid #f0f0f0;">
5
+ <div style="font-weight:600;">[${z.scope}] ${z.target}</div>
6
+ <div style="opacity:.85; margin-top:4px;">${z.path}</div>
7
+ <pre style="margin:6px 0;">after : ${this.safeStringify(z.value)}</pre>
8
+ </div>
9
+ `).join("")}
10
+ </div>
11
+ `,nzFooter:null,nzWidth:900})}catch(o){console.error(o),this.msg.error("\u751F\u6210 Diff \u5931\u8D25")}finally{this.loading.set(!1)}}}safeStringify(n){try{return JSON.stringify(n,null,2)}catch{return String(n)}}onReset(){let n=this.baselineDomainVM();n&&(this.domainVM.set(ue.cloneDeep(n)),this.msg.success("\u5DF2\u91CD\u7F6E\u4E3A\u672A\u4FEE\u6539\u72B6\u6001"))}onRawChange(n){let e=this.docStates(),i=e[n.docId];if(!i)return;let o=i.baselineRaw??"",a=n.raw!==o;this.docStates.set(K(H({},e),{[n.docId]:K(H({},i),{raw:n.raw,dirty:a})}))}onValuesChange(n){}async saveActive(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{await ge(this.api.writeDomainSchema(n,e,i)),this.msg.success("\u4FDD\u5B58\u6210\u529F"),await this.loadDomainSchema(e)}catch(o){console.error(o),this.msg.error("\u4FDD\u5B58\u5931\u8D25")}finally{this.loading.set(!1)}}}openConfig(){if(!this.selectedDocId()){this.msg.warning("\u8BF7\u5148\u9009\u62E9\u914D\u7F6E\u6587\u4EF6");return}this.api.openInEditor(this.projectId(),this.selectedDocId()).subscribe(n=>{this.msg.success("\u5DF2\u5728\u9ED8\u8BA4\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u8BE5\u914D\u7F6E\u6587\u4EF6"),this.isModalVisible.set(!1)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-project-conf",8,"component"]],attrs:Mi,decls:13,vars:11,consts:[[3,"title","loading"],["ngProjectAs","actions",5,["actions"]],["nz-button","","nzType","primary",3,"click"],[1,"panel"],[3,"domainSelect","nodes","activeDomainId"],[1,"content"],[3,"vmChange","schema","vm","options"],[3,"diff","reset","save","dirty"],["nzTitle","\u914D\u7F6E",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],["nzPlaceHolder","\u8BF7\u9009\u62E9\u914D\u7F6E\u6587\u4EF6",2,"width","100%",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nz-button","","nzType","primary",3,"click","disabled"]],template:function(e,i){if(e&1&&(s(0,"app-page-layout",0),G(1,1),s(2,"button",2),C("click",function(){return i.isModalVisible.set(!0)}),m(3,"\u6253\u5F00\u914D\u7F6E\u6587\u4EF6"),l(),T(4,"app-ng-devtool"),X(),s(5,"div",3)(6,"app-config-nav-component",4),C("domainSelect",function(a){return i.onDomainSelect(a)}),l(),s(7,"div",5)(8,"app-config-section-component",6),C("vmChange",function(a){return i.domainVM.set(a)}),l(),s(9,"app-config-change-bar-component",7),C("diff",function(){return i.onDiff()})("reset",function(){return i.onReset()})("save",function(){return i.saveActive()}),l()()()(),s(10,"nz-modal",8),Ke("nzVisibleChange",function(a){return He(i.isModalVisible,a)||(i.isModalVisible=a),a}),C("nzOnCancel",function(){return i.isModalVisible.set(!1)}),J(11,Ii,7,2,"ng-container",9)(12,Oi,3,1,"ng-container",10),l()),e&2){let o,a;f("title","\u9879\u76EE\u914D\u7F6E")("loading",i.loading()),p(6),f("nodes",i.navNodes())("activeDomainId",i.activeDomainId()??""),p(2),f("schema",(o=i.domainSchema())==null?null:o.schema)("vm",i.domainVM())("options",((a=i.domainSchema())==null?null:a.options)??Y(10,wi)),p(),f("dirty",i.domainDirty()),p(),Ze("nzVisible",i.isModalVisible),f("nzMaskClosable",!1)}},dependencies:[O,le,re,se,Ut,nn,tn,sn,Z,Se,De,Ne,Ie,be,Ee,ze,ve,pn,Jt,me,Gt,$,Ve,Oe,Wt,Qt,Lt,At,je,Kt],styles:[".panel[_ngcontent-%COMP%]{border-radius:10px;box-shadow:0 2px 8px #0000000f;display:flex}.panel[_ngcontent-%COMP%] app-config-nav-component[_ngcontent-%COMP%]{flex:0 0 300px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;padding:8px 16px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-section-component[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-change-bar-component[_ngcontent-%COMP%]{flex:0 0 auto;position:sticky;bottom:0}"]})};var Pi=[{path:"",component:$e}],Ae=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Ge.forChild(Pi),Ge]})};var _n=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[O,Ae]})};export{_n as ConfigurationModule};
@@ -0,0 +1 @@
1
+ import{a as Ae,b as Be}from"./chunk-QJP5F735.js";import{a as Te,c as Oe,f as Se,g as De,h as Ne,i as Ve,j as Ie}from"./chunk-FXCG34QS.js";import{g as me,h as ue,i as fe,k as he,l as ge}from"./chunk-4X42HB6N.js";import{e as Ee,i as Y,j as je,k as I,m as ke}from"./chunk-2NZJ7CN2.js";import{$b as Pe,Fb as _e,Ga as se,Ha as ae,Hb as ve,Lb as Ce,Pa as le,Qa as pe,Sa as ce,Ta as de,Vb as be,_b as xe,ac as ze,cc as Fe,dc as ye,gc as Me,ic as we}from"./chunk-3CM4SKDO.js";import{e as oe}from"./chunk-WUA5JFDD.js";import{n as re,u as Z}from"./chunk-KRYMOHYF.js";import{$b as T,B as q,Ec as H,Fb as X,Ha as g,Jc as y,Lb as ee,Lc as S,Mc as ie,Oc as D,Pc as N,Qc as V,Uc as ne,Wb as L,Yb as W,Zb as te,a as R,ac as O,b as $,bc as C,cc as s,dc as a,ec as f,ic as K,id as z,jc as G,lc as w,na as E,nb as l,rc as b,sa as v,uc as _,y as J,ya as m,za as u,zb as Q}from"./chunk-4BRW6LCZ.js";var j=class r{api=v(I);ls(e,t=!1){let i=new Z().set("path",e).set("showSystem",t?"1":"0");return this.api.get("/api/fs/ls",i)}mkdir(e,t){return this.api.post("/api/fs/mkdir",{path:e,name:t})}pathExists(e){let t=new Z().set("path",e);return this.api.get("/api/fs/path-exists",t).pipe(q(i=>i.exists))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var B=class r{fsApi=v(j);localState=v(je);path=g("D:\\");currentPath=g("");entries=g([]);reloading=g(!1);isEditingPath=g(!1);showSystemFolders=g(!1);isCreateFolderModalVisible=g(!1);newFolderName=g("");segments=z(()=>{let e=this.currentPath()||this.path()||"";return this.buildSegments(e)});isRoot=z(()=>{let e=(this.currentPath()||this.path()||"").trim();if(!e||/^\\\\[^\\]+\\[^\\]+$/.test(e.replaceAll("/","\\")))return!0;let t=e.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(t)?!0:e.replaceAll("\\","/")==="/"});canUp=z(()=>!this.reloading()&&!this.isRoot());favorites=g(this.normalizeFavorites(this.localState.get(Y.fs.explorer.favorites,[])));isCurFavorited=z(()=>{let e=this.normalizePath(this.currentPath()||this.path()||"");return e?this.favorites().some(t=>t.path===e):!1});toggleFavoriteCurrent(){let e=this.normalizePath(this.currentPath()||this.path()||"");if(!e)return;let t=this.favorites(),i=t.findIndex(o=>o.path===e),n;i>=0?n=t.slice(0,i).concat(t.slice(i+1)):n=[{path:e,label:this.buildFavoriteLabel(e),createdAt:Date.now()},...t],n=this.normalizeFavorites(n),this.favorites.set(n),this.persistFavorites(n)}openFavorite(e){e?.path&&(this.path.set(e.path),this.load())}removeFavorite(e){let t=this.normalizeFavorites(this.favorites().filter(i=>i.path!==e.path));this.favorites.set(t),this.persistFavorites(t)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(e){this.localState.set(Y.fs.explorer.favorites,e)}normalizeFavorites(e){let t=new Map;for(let i of e||[]){let n=this.normalizePath(i?.path||"");n&&t.set(n,{path:n,label:String(i?.label||this.buildFavoriteLabel(n)).trim(),createdAt:Number(i?.createdAt||Date.now())})}return Array.from(t.values()).sort((i,n)=>n.createdAt-i.createdAt)}buildFavoriteLabel(e){let t=e.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(t))return t.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(t))return t;if(/^\\\\/.test(t)){let o=t.split("\\").filter(Boolean);return o[o.length-1]||t}let i=e.replaceAll("\\","/");if(i==="/")return"/";let n=i.split("/").filter(Boolean);return n[n.length-1]||i}load(e=!1){let t=(this.path()||"").trim();if(!t)return;let i=(this.currentPath()||"").trim();if(i&&this.normalizePath(i)===this.normalizePath(t)&&this.entries().length&&!e){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(t,this.showSystemFolders()).subscribe({next:n=>{this.currentPath.set(n.path),this.entries.set(n.entries),this.path.set(n.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(e=>!e),this.load()}editPath(){this.isEditingPath.update(e=>!e)}open(e){e.type==="dir"&&(this.path.set(e.fullPath),this.load())}up(){if(!this.canUp())return;let e=(this.currentPath()||this.path()||"").trim();if(!e)return;let t=this.normalizePath(e),i=t.replaceAll("/","\\"),n=/^\\\\[^\\]+\\[^\\]+/.test(i),o=/^[a-zA-Z]:\\/.test(i),P=n||o?"\\":"/";if(n){let d=i.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!d)return;let p=`\\\\${d[1]}\\${d[2]}`;if(i===p)return;let F=i.lastIndexOf("\\"),k=F<=p.length?p:i.slice(0,F);if(this.normalizePath(k)===this.normalizePath(this.currentPath()))return;this.path.set(k),this.load();return}if(o){let d=i.lastIndexOf("\\");if(d<=2){let F=`${i.slice(0,2)}\\`;if(this.normalizePath(F)===this.normalizePath(this.currentPath()))return;this.path.set(F),this.load();return}let p=i.slice(0,d);if(this.normalizePath(p)===this.normalizePath(this.currentPath()))return;this.path.set(p),this.load();return}let h=t.replaceAll("\\","/");if(h==="/")return;let x=h.lastIndexOf("/"),M=x<=0?"/":h.slice(0,x);this.normalizePath(M)!==this.normalizePath(this.currentPath())&&(this.path.set(M),this.load())}jumpTo(e){e.disabled||(this.path.set(e.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let e=(this.newFolderName()||"").trim();if(!e)return;let t=this.currentPath()||this.path();this.fsApi.mkdir(t,e).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(e){let t=(e||"").trim();if(!t)return[];let i=/^[a-zA-Z]:[\\/]/.test(t)||/^[a-zA-Z]:$/.test(t),n=i?"\\":"/",o=i?t.replaceAll("/","\\"):t.replaceAll("\\","/"),c=i?o.slice(0,2):"/",P=o;if(i){let p=o.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);p&&(c=p[1],P=p[2]||"")}else P=o.startsWith("/")?o.slice(1):o;let h=P.split(i?/[\\]+/:/[\/]+/).filter(Boolean),x=[],M=i?`${c}\\`:"/";x.push({key:"root",label:c,fullPath:M,disabled:h.length===0});let d=M;for(let p=0;p<h.length;p++){let F=h[p];d=d.endsWith(n)?d+F:d+n+F;let k=p===h.length-1,$e=k?d:d+n;x.push({key:`${p}-${F}`,label:F,fullPath:$e,disabled:k})}return x}normalizePath(e){let t=(e||"").trim();if(!t)return"";let i=/^\\\\[^\\]+\\[^\\]+/.test(t.replaceAll("/","\\")),n=/^[a-zA-Z]:([\\/]|$)/.test(t),o=i||n,c=o?t.replaceAll("/","\\"):t.replaceAll("\\","/");if(n){let P=c.slice(0,2);if(c===P||c===`${P}\\`)return`${P}\\`}return!o&&c==="/"?"/":(c=c.replace(/[\\\/]+$/,""),c)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var We=(r,e)=>e.path,Ke=(r,e)=>e.key;function Ge(r,e){if(r&1){let t=w();s(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),V("ngModelChange",function(n){m(t);let o=_();return N(o.fs.path,n)||(o.fs.path=n),u(n)}),b("keyup.enter",function(){m(t);let n=_();return u(n.fs.load())}),a(),s(3,"button",28),f(4,"nz-icon",29),a()()()}if(r&2){let t=_();l(2),D("ngModel",t.fs.path)}}function He(r,e){if(r&1){let t=w();s(0,"div",31)(1,"button",32),b("click",function(){let n=m(t).$implicit,o=_(2);return u(o.fs.jumpTo(n))}),y(2),a()()}if(r&2){let t=e.$implicit;l(2),S(" ",t.label," ")}}function Ze(r,e){if(r&1){let t=w();s(0,"div",7)(1,"div",30),T(2,He,3,1,"div",31,Ke),a(),s(4,"button",32),b("click",function(){m(t);let n=_();return u(n.fs.editPath())}),f(5,"nz-icon",33),a()()}if(r&2){let t=_();l(2),O(t.fs.segments())}}function Ye(r,e){if(r&1&&f(0,"nz-icon",38),r&2){let t=_().$implicit;C("nzType","proj:"+t.projectKind)}}function Je(r,e){if(r&1){let t=w();s(0,"div",34),b("click",function(){let n=m(t).$implicit,o=_();return u(o.fs.open(n))}),s(1,"div",35),f(2,"span",36),a(),s(3,"div",37),y(4),L(5,Ye,1,1,"nz-icon",38),a()()}if(r&2){let t=e.$implicit;l(2),C("nzType",t.type==="dir"?"folder":"file"),l(),C("title",ne(t.name)),l(),S(" ",t.name," "),l(),W(t.projectKind&&t.projectKind!="unknown"?5:-1)}}function qe(r,e){if(r&1){let t=w();s(0,"li",19),f(1,"nz-icon",39),s(2,"button",40),b("click",function(){let n=m(t).$implicit,o=_();return u(o.fs.openFavorite(n))}),y(3),a()()}if(r&2){let t=e.$implicit;l(2),C("nz-tooltip",t.path),l(),S(" ",t.label," ")}}function Qe(r,e){if(r&1){let t=w();K(0),s(1,"div",41)(2,"label"),y(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),a(),s(4,"nz-input-wrapper")(5,"input",42),V("ngModelChange",function(n){m(t);let o=_();return N(o.fs.newFolderName,n)||(o.fs.newFolderName=n),u(n)}),a(),f(6,"nz-icon",43)(7,"nz-icon",44),a(),s(8,"div",45),y(9),a()(),G()}if(r&2){let t=_();l(5),D("ngModel",t.fs.newFolderName),l(4),ie("",t.fs.currentPath(),"",t.fs.newFolderName())}}function Xe(r,e){if(r&1){let t=w();K(0),s(1,"button",46),b("click",function(){m(t);let n=_();return u(n.fs.isCreateFolderModalVisible.set(!1))}),y(2,"\u53D6\u6D88"),a(),s(3,"button",47),b("click",function(){m(t);let n=_();return u(n.fs.confirmCreateFolder())}),f(4,"nz-icon",48),y(5," \u521B\u5EFA "),a(),G()}if(r&2){let t=_();l(3),C("disabled",!t.fs.newFolderName().trim())}}var Ue=class r{constructor(e){this.fs=e}ngOnInit(){this.fs.load()}static \u0275fac=function(t){return new(t||r)(Q(B))};static \u0275cmp=X({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(t,i){if(t&1){let n=w();s(0,"div",2)(1,"div",3)(2,"button",4),b("click",function(){return m(n),u(i.fs.up())}),f(3,"nz-icon",5),a(),L(4,Ge,5,1,"div",6)(5,Ze,6,0,"div",7),s(6,"button",8),b("click",function(){return m(n),u(i.fs.load(!0))}),f(7,"nz-icon",9),a(),s(8,"button",10),b("click",function(){return m(n),u(i.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),a(),s(10,"button",12),f(11,"nz-icon",13),a(),s(12,"button",14),f(13,"nz-icon",15),a()(),s(14,"div",16),T(15,Je,6,5,"div",17,te),a()(),s(17,"nz-dropdown-menu",null,0)(19,"ul",18),T(20,qe,4,2,"li",19,We),a()(),s(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),b("click",function(){return m(n),u(i.fs.openCreateFolderModal())}),f(26,"nz-icon",21),y(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),a(),s(28,"li",20),b("click",function(){return m(n),u(i.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),y(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),a()()(),s(32,"nz-modal",24),V("nzVisibleChange",function(c){return m(n),N(i.fs.isCreateFolderModalVisible,c)||(i.fs.isCreateFolderModalVisible=c),u(c)}),b("nzOnCancel",function(){return m(n),u(i.fs.isCreateFolderModalVisible.set(!1))}),ee(33,Qe,10,3,"ng-container",25)(34,Xe,6,1,"ng-container",26),a()}if(t&2){let n=H(18),o=H(23);l(2),C("disabled",!i.fs.canUp()),l(2),W(i.fs.isEditingPath()?4:5),l(2),C("nzLoading",i.fs.reloading()),l(),C("nzType",i.fs.reloading()?"loading":"reload"),l(2),C("nzTheme",i.fs.isCurFavorited()?"fill":"outline"),l(),C("nzDropdownMenu",n),l(2),C("nzDropdownMenu",o),l(3),O(i.fs.entries()),l(5),O(i.fs.favorites()),l(11),C("ngModel",i.fs.showSystemFolders()),l(),D("nzVisible",i.fs.isCreateFolderModalVisible),C("nzMaskClosable",!1)}},dependencies:[re,be,_e,ve,Ce,ye,ze,Fe,xe,Pe,de,ce,le,pe,ae,se,we,Me,Ie,Oe,Te,De,Ve,Ne,Se,Be,Ae,ge,he,fe,ue],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 U=class r{api=v(I);fs=v(j);async checkPathExists(e){return await J(this.fs.pathExists(e))}detect(e){return this.api.post("/api/projects/detect",{rootPath:e})}async pickFolder(){return null}bootstrapByCli(e){return this.api.post("/api/projects/bootstrap/cli",{parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,packageManager:e.packageManager,overwriteIfExists:e.overwriteIfExists,skipOnboarding:e.skipOnboarding,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,cliFramework:e.cliFramework,cliTool:e.cliTool,cliArgs:e.cliArgs??[]})}bootstrapPickRoot(e){return this.api.post("/api/projects/bootstrap/pickRoot",e)}bootstrapByGit(e){return this.api.post("/api/projects/bootstrap/git",{repoUrl:e.repoUrl,parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,overwriteIfExists:e.overwriteIfExists,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,packageManager:e.packageManager,skipOnboarding:e.skipOnboarding??!0})}getProjectMembers(e){return this.api.hubRequestWithPrjId({projectId:e,path:"/members"})}list(){return this.api.get("/api/projects/list")}get(e){return this.api.get(`/api/projects/getInfo/${e}`)}check(e){return this.api.post("/api/projects/check",{rootPath:e})}createByPath(e){return this.api.post("/api/projects/create",e)}checkImport(e){return this.api.post("/api/projects/checkImport",{root:e})}importByPath(e){return this.api.post("/api/projects/import",e)}delete(e){return this.api.delete(`/api/projects/delete/${e}`)}update(e,t){return this.api.post(`/api/projects/update/${e}`,t)}setFavorite(e,t){return this.api.post(`/api/projects/favorite/${e}`,{isFavorite:t})}toggleFavorite(e){return this.api.post(`/api/projects/favorite/${e}/toggle`,{})}setLastOpened(e,t){return this.api.post(`/api/projects/lastOpened/${e}`,{timestamp:t})}openInEditor(e,t="code"){return this.api.post(`/api/projects/openInEditor/${e}`,{editor:t})}edit(e,t){return this.api.post(`/api/projects/edit/${e}`,t)}updateAssets(e,t){return this.api.post(`/api/projects/updateAssets/${e}`,{assets:t})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};var Re=class r{modal=v(me);notify=v(Ee);projectService=v(U);projectContext=v(ke);router=v(oe);projects=z(()=>this.projectContext.projects());keyword=g("");isEditModalVisible=g(!1);isEditSaving=g(!1);editingProject=g(null);filteredProjects=z(()=>{let e=this.keyword().trim().toLowerCase();return e?this.projects().filter(t=>t.name.toLowerCase().includes(e)):this.projects()});favoriteProjects=z(()=>this.filteredProjects().filter(e=>e.isFavorite));moreProjects=z(()=>this.filteredProjects().filter(e=>!e.isFavorite));recentProjects=z(()=>this.projects().slice().sort((e,t)=>{let i=new Date(e.lastOpened||0).getTime();return new Date(t.lastOpened||0).getTime()-i}).slice(0,5));selectProject(e){this.projectContext.setCurrentProject(e);let t=Date.now();this.projectContext.patchProject($(R({},e),{lastOpened:t})),this.projectService.setLastOpened(e.id,t).subscribe(),this.router.navigate(["/dashboard"])}openInEditor(e){this.projectService.openInEditor(e).subscribe({next:()=>{console.log("Opened project in editor:",e),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(e){this.projectService.toggleFavorite(e).subscribe(t=>{this.projectContext.patchProject(t)})}getProjects(e){this.projectContext.loadProjects(e).subscribe()}setCurrentProjectById(e){this.projectContext.setCurrentProjectById(e)}isOpen(e){return this.projectContext.isOpen(e)}openEditModal(e){let t=e.env??{};this.editingProject.set({id:e.id,name:e.name??"",repoPageUrl:e.repoPageUrl??"",description:e.description??"",hubV2:{baseUrl:t.NGM_HUB_V2_BASE_URL||"http://192.168.1.31:7008",projectKey:t.NGM_HUB_V2_PROJECT_KEY||"",token:t.NGM_HUB_V2_TOKEN||""}}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditModalVisible.set(!1),this.editingProject.set(null)}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:e,name:t,description:i,repoPageUrl:n,hubV2:o}=this.editingProject();if(!e){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!t)return;let c=i?.trim(),P=n?.trim(),h={baseUrl:o.baseUrl.trim(),projectKey:o.projectKey.trim(),token:o.token.trim()},x=this.projectContext.getProjectById(e),M=x?.env??{};if(x&&x.name===t&&x.description===c&&x.repoPageUrl===P&&(M.NGM_HUB_V2_BASE_URL??"")===h.baseUrl&&(M.NGM_HUB_V2_PROJECT_KEY??"")===h.projectKey&&(M.NGM_HUB_V2_TOKEN??"")===h.token){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(e,{name:t,description:c,repoPageUrl:P}).subscribe({next:()=>{let d=$(R({},x?.env??{}),{NGM_HUB_V2_BASE_URL:h.baseUrl,NGM_HUB_V2_PROJECT_KEY:h.projectKey,NGM_HUB_V2_TOKEN:h.token});this.projectService.update(e,{env:d}).subscribe({next:p=>{this.projectContext.patchProject(p),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.isEditSaving.set(!1),this.closeEditModal()},error:p=>{this.notify.error(p?.message||"\u9879\u76EE\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25"),this.isEditSaving.set(!1)}})},error:d=>{this.notify.error(d?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)}})}deleteProject(e){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(e).subscribe({next:()=>{this.projectContext.removeProject(e),this.projectContext.currentProject()||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(t){return new(t||r)};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})};export{j as a,B as b,Ue as c,U as d,Re as e};
@@ -1 +1 @@
1
- import{Ha as C,Ia as x}from"./chunk-SPRWNZHF.js";import{Fb as z,Gb as l,Gc as T,Jc as D,Kc as g,Lb as s,Wb as p,Yb as m,bc as c,cc as v,dc as f,ic as u,jc as h,nb as a,oa as d,uc as o,xd as r}from"./chunk-WI67LAOV.js";function S(e,y){if(e&1&&(u(0),D(1),h()),e&2){let i=o(2);a(),g(i.nzText)}}function _(e,y){if(e&1&&(v(0,"span",0),s(1,S,2,1,"ng-container",1),f()),e&2){let i=o();a(),c("nzStringTemplateOutlet",i.nzText)}}var N=(()=>{class e{nzText;nzType="horizontal";nzOrientation="center";nzVariant="solid";nzSize;nzDashed=!1;nzPlain=!1;static \u0275fac=function(t){return new(t||e)};static \u0275cmp=z({type:e,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:22,hostBindings:function(t,n){t&2&&T("ant-divider-horizontal",n.nzType==="horizontal")("ant-divider-vertical",n.nzType==="vertical")("ant-divider-with-text",n.nzText)("ant-divider-plain",n.nzPlain)("ant-divider-with-text-left",n.nzText&&n.nzOrientation==="left")("ant-divider-with-text-right",n.nzText&&n.nzOrientation==="right")("ant-divider-with-text-center",n.nzText&&n.nzOrientation==="center")("ant-divider-dashed",n.nzDashed||n.nzVariant==="dashed")("ant-divider-dotted",n.nzVariant==="dotted")("ant-divider-sm",n.nzSize==="small")("ant-divider-md",n.nzSize==="middle")},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzVariant:"nzVariant",nzSize:"nzSize",nzDashed:[2,"nzDashed","nzDashed",r],nzPlain:[2,"nzPlain","nzPlain",r]},exportAs:["nzDivider"],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(t,n){t&1&&p(0,_,2,1,"span",0),t&2&&m(n.nzText?0:-1)},dependencies:[x,C],encapsulation:2,changeDetection:0})}return e})(),j=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=l({type:e});static \u0275inj=d({imports:[N]})}return e})();export{N as a,j as b};
1
+ import{Ia as C,Ja as x}from"./chunk-3CM4SKDO.js";import{Fb as z,Gb as l,Gc as T,Jc as D,Kc as g,Lb as s,Wb as p,Yb as m,bc as c,cc as v,dc as f,ic as u,jc as h,nb as a,oa as d,uc as o,yd as r}from"./chunk-4BRW6LCZ.js";function S(e,y){if(e&1&&(u(0),D(1),h()),e&2){let i=o(2);a(),g(i.nzText)}}function _(e,y){if(e&1&&(v(0,"span",0),s(1,S,2,1,"ng-container",1),f()),e&2){let i=o();a(),c("nzStringTemplateOutlet",i.nzText)}}var N=(()=>{class e{nzText;nzType="horizontal";nzOrientation="center";nzVariant="solid";nzSize;nzDashed=!1;nzPlain=!1;static \u0275fac=function(t){return new(t||e)};static \u0275cmp=z({type:e,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:22,hostBindings:function(t,n){t&2&&T("ant-divider-horizontal",n.nzType==="horizontal")("ant-divider-vertical",n.nzType==="vertical")("ant-divider-with-text",n.nzText)("ant-divider-plain",n.nzPlain)("ant-divider-with-text-left",n.nzText&&n.nzOrientation==="left")("ant-divider-with-text-right",n.nzText&&n.nzOrientation==="right")("ant-divider-with-text-center",n.nzText&&n.nzOrientation==="center")("ant-divider-dashed",n.nzDashed||n.nzVariant==="dashed")("ant-divider-dotted",n.nzVariant==="dotted")("ant-divider-sm",n.nzSize==="small")("ant-divider-md",n.nzSize==="middle")},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzVariant:"nzVariant",nzSize:"nzSize",nzDashed:[2,"nzDashed","nzDashed",r],nzPlain:[2,"nzPlain","nzPlain",r]},exportAs:["nzDivider"],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(t,n){t&1&&p(0,_,2,1,"span",0),t&2&&m(n.nzText?0:-1)},dependencies:[x,C],encapsulation:2,changeDetection:0})}return e})(),j=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=l({type:e});static \u0275inj=d({imports:[N]})}return e})();export{N as a,j as b};
@@ -1 +1 @@
1
- import{Bb as C,L as o,_a as O,a as R,ra as P,yb as T}from"./chunk-SPRWNZHF.js";import{Ac as j,Da as l,Fb as c,Gb as w,Gc as a,Oa as F,Ra as N,Ub as E,Wc as b,fc as p,gc as f,hc as M,l as y,ma as u,mc as A,n as d,na as k,nb as h,oa as S,sa as s,tb as B,td as g,vc as m,wc as z,xd as r,yc as V,zc as $}from"./chunk-WI67LAOV.js";var I=["*"],G=["inputElement"],Q=["nz-radio",""],D=(()=>{class n{selected$=new d(1);touched$=new y;disabled$=new d(1);name$=new d(1);touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac})}return n})(),se=(()=>{class n{cdr=s(g);nzRadioService=s(D);directionality=s(R);destroyRef=s(l);value=null;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};nzDisabled=!1;nzButtonStyle="outline";nzSize="default";nzName=null;dir="ltr";ngOnInit(){this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{this.value!==e&&(this.value=e,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(o(this.destroyRef)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDisabled:t,nzName:i}=e;t&&this.nzRadioService.setDisabled(this.nzDisabled),i&&this.nzRadioService.setName(this.nzName)}writeValue(e){this.value=e,this.nzRadioService.select(e),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(t,i){t&2&&a("ant-radio-group-large",i.nzSize==="large")("ant-radio-group-small",i.nzSize==="small")("ant-radio-group-solid",i.nzButtonStyle==="solid")("ant-radio-group-rtl",i.dir==="rtl")},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",r],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[b([D,{provide:C,useExisting:u(()=>n),multi:!0}]),F],ngContentSelectors:I,decls:1,vars:0,template:function(t,i){t&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),oe=(()=>{class n{directionality=s(R);nzRadioService=s(D,{optional:!0});ngZone=s(B);elementRef=s(N);cdr=s(g);focusMonitor=s(O);destroyRef=s(l);nzFormStatusService=s(T,{optional:!0});isNgModel=!1;isNzDisableFirstChange=!0;isChecked=!1;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=!1;nzAutoFocus=!1;isRadioButton=!1;dir="ltr";focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef)})}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(o(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(o(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{let t=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&t!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(o(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setupClickListener(){P(this.elementRef.nativeElement,"click").pipe(o(this.destroyRef)).subscribe(e=>{e.stopPropagation(),e.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(t,i){if(t&1&&V(G,7),t&2){let v;$(v=j())&&(i.inputElement=v.first)}},hostVars:18,hostBindings:function(t,i){t&2&&a("ant-radio-wrapper-in-form-item",!!i.nzFormStatusService)("ant-radio-wrapper",!i.isRadioButton)("ant-radio-button-wrapper",i.isRadioButton)("ant-radio-wrapper-checked",i.isChecked&&!i.isRadioButton)("ant-radio-button-wrapper-checked",i.isChecked&&i.isRadioButton)("ant-radio-wrapper-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button-wrapper-disabled",i.nzDisabled&&i.isRadioButton)("ant-radio-wrapper-rtl",!i.isRadioButton&&i.dir==="rtl")("ant-radio-button-wrapper-rtl",i.isRadioButton&&i.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",r],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",r],isRadioButton:[2,"nz-radio-button","isRadioButton",r]},exportAs:["nzRadio"],features:[b([{provide:C,useExisting:u(()=>n),multi:!0}])],attrs:Q,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(t,i){t&1&&(m(),p(0,"span"),M(1,"input",1,0)(3,"span"),f(),p(4,"span"),z(5),f()),t&2&&(a("ant-radio",!i.isRadioButton)("ant-radio-checked",i.isChecked&&!i.isRadioButton)("ant-radio-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button",i.isRadioButton)("ant-radio-button-checked",i.isChecked&&i.isRadioButton)("ant-radio-button-disabled",i.nzDisabled&&i.isRadioButton),h(),a("ant-radio-input",!i.isRadioButton)("ant-radio-button-input",i.isRadioButton),A("disabled",i.nzDisabled)("checked",i.isChecked),E("autofocus",i.nzAutoFocus?"autofocus":null)("name",i.name),h(2),a("ant-radio-inner",!i.isRadioButton)("ant-radio-button-inner",i.isRadioButton))},encapsulation:2,changeDetection:0})}return n})(),ae=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=S({})}return n})();export{se as a,oe as b,ae as c};
1
+ import{$a as O,Cb as C,L as o,a as R,ra as P,zb as T}from"./chunk-3CM4SKDO.js";import{Ac as j,Da as l,Fb as c,Gb as w,Gc as a,Oa as F,Ra as N,Ub as E,Xc as b,fc as p,gc as f,hc as M,l as y,ma as u,mc as A,n as d,na as k,nb as h,oa as S,sa as s,tb as B,ud as g,vc as m,wc as z,yc as V,yd as r,zc as $}from"./chunk-4BRW6LCZ.js";var I=["*"],G=["inputElement"],Q=["nz-radio",""],D=(()=>{class n{selected$=new d(1);touched$=new y;disabled$=new d(1);name$=new d(1);touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac})}return n})(),se=(()=>{class n{cdr=s(g);nzRadioService=s(D);directionality=s(R);destroyRef=s(l);value=null;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};nzDisabled=!1;nzButtonStyle="outline";nzSize="default";nzName=null;dir="ltr";ngOnInit(){this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{this.value!==e&&(this.value=e,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(o(this.destroyRef)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDisabled:t,nzName:i}=e;t&&this.nzRadioService.setDisabled(this.nzDisabled),i&&this.nzRadioService.setName(this.nzName)}writeValue(e){this.value=e,this.nzRadioService.select(e),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(t,i){t&2&&a("ant-radio-group-large",i.nzSize==="large")("ant-radio-group-small",i.nzSize==="small")("ant-radio-group-solid",i.nzButtonStyle==="solid")("ant-radio-group-rtl",i.dir==="rtl")},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",r],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[b([D,{provide:C,useExisting:u(()=>n),multi:!0}]),F],ngContentSelectors:I,decls:1,vars:0,template:function(t,i){t&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),oe=(()=>{class n{directionality=s(R);nzRadioService=s(D,{optional:!0});ngZone=s(B);elementRef=s(N);cdr=s(g);focusMonitor=s(O);destroyRef=s(l);nzFormStatusService=s(T,{optional:!0});isNgModel=!1;isNzDisableFirstChange=!0;isChecked=!1;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=!1;nzAutoFocus=!1;isRadioButton=!1;dir="ltr";focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef)})}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(o(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(o(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{let t=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&t!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(o(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setupClickListener(){P(this.elementRef.nativeElement,"click").pipe(o(this.destroyRef)).subscribe(e=>{e.stopPropagation(),e.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(t,i){if(t&1&&V(G,7),t&2){let v;$(v=j())&&(i.inputElement=v.first)}},hostVars:18,hostBindings:function(t,i){t&2&&a("ant-radio-wrapper-in-form-item",!!i.nzFormStatusService)("ant-radio-wrapper",!i.isRadioButton)("ant-radio-button-wrapper",i.isRadioButton)("ant-radio-wrapper-checked",i.isChecked&&!i.isRadioButton)("ant-radio-button-wrapper-checked",i.isChecked&&i.isRadioButton)("ant-radio-wrapper-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button-wrapper-disabled",i.nzDisabled&&i.isRadioButton)("ant-radio-wrapper-rtl",!i.isRadioButton&&i.dir==="rtl")("ant-radio-button-wrapper-rtl",i.isRadioButton&&i.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",r],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",r],isRadioButton:[2,"nz-radio-button","isRadioButton",r]},exportAs:["nzRadio"],features:[b([{provide:C,useExisting:u(()=>n),multi:!0}])],attrs:Q,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(t,i){t&1&&(m(),p(0,"span"),M(1,"input",1,0)(3,"span"),f(),p(4,"span"),z(5),f()),t&2&&(a("ant-radio",!i.isRadioButton)("ant-radio-checked",i.isChecked&&!i.isRadioButton)("ant-radio-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button",i.isRadioButton)("ant-radio-button-checked",i.isChecked&&i.isRadioButton)("ant-radio-button-disabled",i.nzDisabled&&i.isRadioButton),h(),a("ant-radio-input",!i.isRadioButton)("ant-radio-button-input",i.isRadioButton),A("disabled",i.nzDisabled)("checked",i.isChecked),E("autofocus",i.nzAutoFocus?"autofocus":null)("name",i.name),h(2),a("ant-radio-inner",!i.isRadioButton)("ant-radio-button-inner",i.isRadioButton))},encapsulation:2,changeDetection:0})}return n})(),ae=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=S({})}return n})();export{se as a,oe as b,ae as c};
@@ -1,4 +1,4 @@
1
- import{M as je}from"./chunk-SPRWNZHF.js";import{A as Me,p as E,w as Ne}from"./chunk-T3KK7ZXB.js";import{B as ue,Bb as $e,Fb as K,Gb as Ae,Gc as Pe,J as de,Jc as Ce,Kc as Le,L as ge,Oa as Se,Ra as Re,T as fe,V as me,Wa as Te,a as f,b as O,ba as ke,ea as xe,fa as be,fc as Oe,gc as _e,hd as De,ib as Q,l as D,na as we,nb as Ee,oa as ye,qa as _,ra as R,sb as N,tc as ze,u as pe,vc as Ie,wc as ve,zb as M}from"./chunk-WI67LAOV.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=J();function We(r){A=r}var C={exec:()=>null};function g(r,e=""){let i=typeof r=="string"?r:r.source,n={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),n},getRegex:()=>new RegExp(i,e)};return n}var lt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},at=/^(?:[ \t]*(?:\n|$))+/,ot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ke=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ut=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ne).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),mt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),re={blockquote:mt,code:ot,def:dt,fences:ct,heading:ht,hr:L,html:ft,lheading:Ke,list:gt,newline:at,paragraph:Xe,table:C,text:ut},Be=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),kt=O(f({},re),{lheading:pt,table:Be,paragraph:g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),xt=O(f({},re),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ee).replace("hr",L).replace("heading",` *#{1,6} *[^
1
+ import{M as je}from"./chunk-3CM4SKDO.js";import{A as Me,p as E,w as Ne}from"./chunk-KRYMOHYF.js";import{B as ue,Bb as $e,Fb as K,Gb as Ae,Gc as Pe,J as de,Jc as Ce,Kc as Le,L as ge,Oa as Se,Ra as Re,T as fe,V as me,Wa as Te,a as f,b as O,ba as ke,ea as xe,fa as be,fc as Oe,gc as _e,ib as Q,id as De,l as D,na as we,nb as Ee,oa as ye,qa as _,ra as R,sb as N,tc as ze,u as pe,vc as Ie,wc as ve,zb as M}from"./chunk-4BRW6LCZ.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=J();function We(r){A=r}var C={exec:()=>null};function g(r,e=""){let i=typeof r=="string"?r:r.source,n={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),n},getRegex:()=>new RegExp(i,e)};return n}var lt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},at=/^(?:[ \t]*(?:\n|$))+/,ot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ke=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ut=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ne).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),mt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),re={blockquote:mt,code:ot,def:dt,fences:ct,heading:ht,hr:L,html:ft,lheading:Ke,list:gt,newline:at,paragraph:Xe,table:C,text:ut},Be=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),kt=O(f({},re),{lheading:pt,table:Be,paragraph:g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),xt=O(f({},re),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ee).replace("hr",L).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Ke).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),bt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ge=/^( {2,}|\\)\n(?!\s*$)/,yt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,H=/[\p{P}\p{S}]/u,ie=/[\s\p{P}\p{S}]/u,Ve=/[^\s\p{P}\p{S}]/u,St=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ie).getRegex(),Je=/(?!~)[\p{P}\p{S}]/u,Rt=/(?!~)[\s\p{P}\p{S}]/u,Tt=/(?:[^\s\p{P}\p{S}]|~)/u,Et=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",lt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ye=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$t=g(Ye,"u").replace(/punct/g,H).getRegex(),At=g(Ye,"u").replace(/punct/g,Je).getRegex(),et="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ot=g(et,"gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),_t=g(et,"gu").replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,Rt).replace(/punct/g,Je).getRegex(),zt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),It=g(/\\(punct)/,"gu").replace(/punct/g,H).getRegex(),vt=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pt=g(ne).replace("(?:-->|$)","-->").getRegex(),Ct=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),B=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lt=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",B).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",B).replace("ref",te).getRegex(),nt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),Dt=g("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",nt).getRegex(),Fe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:C,anyPunctuation:It,autolink:vt,blockSkip:Et,br:Ge,code:wt,del:C,emStrongLDelim:$t,emStrongRDelimAst:Ot,emStrongRDelimUnd:zt,escape:bt,link:Lt,nolink:nt,punctuation:St,reflink:tt,reflinkSearch:Dt,tag:Ct,text:yt,url:C},Nt=O(f({},se),{link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",B).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B).getRegex()}),X=O(f({},se),{emStrongRDelimAst:_t,emStrongLDelim:At,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fe).getRegex()}),Mt=O(f({},X),{br:g(Ge).replace("{2,}","*").getRegex(),text:g(X.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),j={normal:re,gfm:kt,pedantic:xt},I={normal:se,gfm:X,breaks:Mt,pedantic:Nt},jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qe=r=>jt[r];function S(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,qe)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,qe);return r}function He(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function Ze(r,e){let i=r.replace(b.findPipe,(l,s,o)=>{let a=!1,h=s;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),n=i.split(b.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;t<n.length;t++)n[t]=n[t].trim().replace(b.slashPipe,"|");return n}function v(r,e,i){let n=r.length;if(n===0)return"";let t=0;for(;t<n;){let l=r.charAt(n-t-1);if(l===e&&!i)t++;else if(l!==e&&i)t++;else break}return r.slice(0,n-t)}function Bt(r,e){if(r.indexOf(e[1])===-1)return-1;let i=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])i++;else if(r[n]===e[1]&&(i--,i<0))return n;return i>0?-2:-1}function Ue(r,e,i,n,t){let l=e.href,s=e.title||null,o=r[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let a={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,a}function Ft(r,e,i){let n=r.match(i.other.indentCodeCompensation);if(n===null)return e;let t=n[1];return e.split(`
3
3
  `).map(l=>{let s=l.match(i.other.beginningSpace);if(s===null)return l;let[o]=s;return o.length>=t.length?l.slice(t.length):l}).join(`
4
4
  `)}var F=class{options;rules;lexer;constructor(r){this.options=r||A}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:v(i,`
@@ -1 +1 @@
1
- import{L as C,a as G,ta as H,ua as Z}from"./chunk-SPRWNZHF.js";import{i as W}from"./chunk-T3KK7ZXB.js";import{Da as M,Ec as k,Fb as w,Gb as E,Gc as z,Ha as O,Jc as A,Kc as P,Lb as S,Oa as j,V as I,Wb as d,Yb as m,bc as R,cc as s,cd as B,da as N,dc as p,ea as _,ec as F,f,i as y,m as v,n as x,nb as l,oa as T,r as b,s as g,sa as c,td as U,u as D,uc as u,vc as L,wc as $,xd as h,yd as V}from"./chunk-WI67LAOV.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
1
+ import{L as C,a as G,ua as H,va as Z}from"./chunk-3CM4SKDO.js";import{i as W}from"./chunk-KRYMOHYF.js";import{Da as M,Ec as k,Fb as w,Gb as E,Gc as z,Ha as O,Jc as A,Kc as P,Lb as S,Oa as j,V as I,Wb as d,Yb as m,bc as R,cc as s,da as N,dc as p,dd as B,ea as _,ec as F,f,i as y,m as v,n as x,nb as l,oa as T,r as b,s as g,sa as c,u as D,uc as u,ud as U,vc as L,wc as $,yd as h,zd as V}from"./chunk-4BRW6LCZ.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
@@ -0,0 +1 @@
1
+ import{b as sn}from"./chunk-75W3GVSO.js";import{a as it,b as ot,c as Tt}from"./chunk-OZCK4XVV.js";import{a as cn}from"./chunk-AELTP6YN.js";import{a as St,c as xt,g as He,i as bt,j as nt}from"./chunk-FXCG34QS.js";import{b as nn,c as on,d as an,e as ln,f as rn}from"./chunk-3XNNQFWR.js";import{Ga as ke,Ha as Me,Hb as Re,Ia as Jt,Ja as Xt,L as _,Lb as Ee,Pa as Yt,Qa as qt,Sa as Zt,T as Qt,Ta as Ut,V as Ct,Vb as $e,Wa as tt,_ as _t,a as Ie,c as Vt,j as Bt,l as At,n as We,na as Ht,o as Lt,q as Wt,ra as et,ta as Qe,tb as Kt,ua as jt,va as X,vb as Gt,wb as en,yb as tn}from"./chunk-3CM4SKDO.js";import{i as G,j as gt}from"./chunk-KRYMOHYF.js";import{$b as _e,Ac as L,B as Z,C as ae,D as Je,Da as U,Ec as V,Fb as R,Fc as Te,Gb as Ze,Gc as E,Hb as ze,Hc as Ae,Jc as K,Kc as ye,L as be,Lb as k,Lc as we,M as Be,Oa as J,Q as mt,Ra as te,U as Xe,Ub as se,V as Ye,Vb as Nt,Wb as S,Xb as It,Xc as Et,Yb as x,Zb as zt,_b as kt,_c as Le,a as pt,ac as Se,ad as Fe,b as ht,bc as d,bd as Ne,ca as Dt,cc as m,da as me,dc as u,dd as ie,ea as ee,ec as F,f as re,hc as Mt,ic as Ue,jc as Ke,kc as ft,l as Ce,lc as B,m as q,mc as Rt,n as Q,na as ut,nb as c,oa as qe,od as $t,q as je,r as j,rc as N,s as w,sa as p,sb as D,tb as Pe,u as Pt,uc as r,ud as fe,vc as ce,wb as Ft,wc as oe,xc as De,ya as O,yb as ue,yc as ne,yd as v,za as P,zc as A,zd as Ge}from"./chunk-4BRW6LCZ.js";var Dn=["nz-pagination-item",""],Fn=(t,a)=>({$implicit:t,page:a});function Nn(t,a){if(t&1&&(m(0,"a"),K(1),u()),t&2){let e=r().page;c(),ye(e)}}function In(t,a){t&1&&F(0,"nz-icon",4)}function kn(t,a){t&1&&F(0,"nz-icon",5)}function Mn(t,a){if(t&1&&(m(0,"button",2),S(1,In,1,0,"nz-icon",4)(2,kn,1,0,"nz-icon",5),u()),t&2){let e=r(2);d("disabled",e.disabled),se("title",e.locale.prev_page),c(),x(e.direction==="rtl"?1:2)}}function Rn(t,a){t&1&&F(0,"nz-icon",5)}function En(t,a){t&1&&F(0,"nz-icon",4)}function $n(t,a){if(t&1&&(m(0,"button",2),S(1,Rn,1,0,"nz-icon",5)(2,En,1,0,"nz-icon",4),u()),t&2){let e=r(2);d("disabled",e.disabled),se("title",e.locale.next_page),c(),x(e.direction==="rtl"?1:2)}}function Vn(t,a){t&1&&F(0,"nz-icon",8)}function Bn(t,a){t&1&&F(0,"nz-icon",9)}function An(t,a){if(t&1&&S(0,Vn,1,0,"nz-icon",8)(1,Bn,1,0,"nz-icon",9),t&2){let e=r(3);x(e.direction==="rtl"?0:1)}}function Ln(t,a){t&1&&F(0,"nz-icon",9)}function Wn(t,a){t&1&&F(0,"nz-icon",8)}function Qn(t,a){if(t&1&&S(0,Ln,1,0,"nz-icon",9)(1,Wn,1,0,"nz-icon",8),t&2){let e=r(3);x(e.direction==="rtl"?0:1)}}function Hn(t,a){if(t&1&&(m(0,"a",3)(1,"div",6),S(2,An,2,1)(3,Qn,2,1),m(4,"span",7),K(5,"\u2022\u2022\u2022"),u()()()),t&2){let e,n=r().$implicit;c(2),x((e=n)==="prev_5"?2:e==="next_5"?3:-1)}}function jn(t,a){if(t&1&&S(0,Nn,2,1,"a")(1,Mn,3,3,"button",2)(2,$n,3,3,"button",2)(3,Hn,6,1,"a",3),t&2){let e,n=a.$implicit;x((e=n)==="page"?0:e==="prev"?1:e==="next"?2:3)}}function Jn(t,a){}var Xn=["nz-pagination-options",""],Yn=(t,a)=>a.value;function qn(t,a){if(t&1&&F(0,"nz-option",3),t&2){let e=a.$implicit;d("nzLabel",e.label)("nzValue",e.value)}}function Zn(t,a){if(t&1){let e=B();m(0,"nz-select",2),N("ngModelChange",function(i){O(e);let o=r();return P(o.onPageSizeChange(i))}),_e(1,qn,1,2,"nz-option",3,Yn),u()}if(t&2){let e=r();d("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),c(),Se(e.listOfPageSizeOption)}}function Un(t,a){if(t&1){let e=B();m(0,"div",1),K(1),m(2,"input",4),N("keydown.enter",function(i){O(e);let o=r();return P(o.jumpToPageViaInput(i))}),u(),K(3),u()}if(t&2){let e=r();c(),we(" ",e.locale.jump_to," "),c(),d("disabled",e.disabled),c(),we(" ",e.locale.page," ")}}var dn=["containerTemplate"],Kn=(t,a)=>({$implicit:t,range:a});function Gn(t,a){}function ei(t,a){if(t&1&&(m(0,"li",1),k(1,Gn,0,0,"ng-template",4),u()),t&2){let e=r(2);c(),d("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",Le(2,Kn,e.total,e.ranges))}}function ti(t,a){if(t&1){let e=B();m(0,"li",5),N("gotoIndex",function(i){O(e);let o=r(2);return P(o.jumpPage(i))})("diffIndex",function(i){O(e);let o=r(2);return P(o.jumpDiff(i))}),u()}if(t&2){let e=a.$implicit,n=r(2);d("locale",n.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",n.itemRender)("active",n.pageIndex===e.index)("direction",n.dir)}}function ni(t,a){if(t&1){let e=B();m(0,"li",6),N("pageIndexChange",function(i){O(e);let o=r(2);return P(o.onPageIndexChange(i))})("pageSizeChange",function(i){O(e);let o=r(2);return P(o.onPageSizeChange(i))}),u()}if(t&2){let e=r(2);d("total",e.total)("locale",e.locale)("disabled",e.disabled)("nzSize",e.nzSize)("showSizeChanger",e.showSizeChanger)("showQuickJumper",e.showQuickJumper)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}}function ii(t,a){if(t&1&&(m(0,"ul"),S(1,ei,2,5,"li",1),_e(2,ti,1,7,"li",2,Nt().trackByPageItem,!0),S(4,ni,1,9,"li",3),u()),t&2){let e=r();c(),x(e.showTotal?1:-1),c(),Se(e.listOfPageItem),c(2),x(e.showQuickJumper||e.showSizeChanger?4:-1)}}function oi(t,a){if(t&1){let e=B();m(0,"ul")(1,"li",1),N("click",function(){O(e);let i=r();return P(i.prePage())}),u(),m(2,"li",2)(3,"input",3),N("keydown.enter",function(i){O(e);let o=r();return P(o.jumpToPageViaInput(i))}),u(),m(4,"span",4),K(5,"/"),u(),K(6),u(),m(7,"li",5),N("click",function(){O(e);let i=r();return P(i.nextPage())}),u()()}if(t&2){let e=r();c(),d("locale",e.locale)("disabled",e.isFirstIndex)("direction",e.dir)("itemRender",e.itemRender),se("title",e.locale.prev_page),c(),se("title",e.pageIndex+"/"+e.lastIndex),c(),d("disabled",e.disabled)("value",e.pageIndex),c(3),we(" ",e.lastIndex," "),c(),d("locale",e.locale)("disabled",e.isLastIndex)("direction",e.dir)("itemRender",e.itemRender),se("title",e.locale==null?null:e.locale.next_page)}}function ai(t,a){}function li(t,a){if(t&1&&k(0,ai,0,0,"ng-template",4),t&2){r(2);let e=V(2);d("ngTemplateOutlet",e.template)}}function ri(t,a){}function si(t,a){if(t&1&&k(0,ri,0,0,"ng-template",4),t&2){r(2);let e=V(4);d("ngTemplateOutlet",e.template)}}function ci(t,a){if(t&1&&S(0,li,1,1,null,4)(1,si,1,1,null,4),t&2){let e=r();x(e.nzSimple?0:1)}}var yt=(()=>{class t{active=!1;locale;index=null;disabled=!1;direction="ltr";type=null;itemRender=null;diffIndex=new D;gotoIndex=new D;title=null;clickItem(){this.disabled||(this.type==="page"?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(e){let{locale:n,index:i,type:o}=e;(n||i||o)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,i){n&1&&N("click",function(){return i.clickItem()}),n&2&&(se("title",i.title),E("ant-pagination-prev",i.type==="prev")("ant-pagination-next",i.type==="next")("ant-pagination-item",i.type==="page")("ant-pagination-jump-prev",i.type==="prev_5")("ant-pagination-jump-prev-custom-icon",i.type==="prev_5")("ant-pagination-jump-next",i.type==="next_5")("ant-pagination-jump-next-custom-icon",i.type==="next_5")("ant-pagination-disabled",i.disabled)("ant-pagination-item-active",i.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[J],attrs:Dn,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nzType","right"],["nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nzType","double-right",1,"ant-pagination-item-link-icon"],["nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(n,i){if(n&1&&k(0,jn,4,1,"ng-template",null,0,ie)(2,Jn,0,0,"ng-template",1),n&2){let o=V(1);c(2),d("ngTemplateOutlet",i.itemRender||o)("ngTemplateOutletContext",Le(2,Fn,i.type,i.index))}},dependencies:[Me,ke,G],encapsulation:2,changeDetection:0})}return t})(),pn=(()=>{class t{nzSize="default";disabled=!1;showSizeChanger=!1;showQuickJumper=!1;locale;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[];pageIndexChange=new D;pageSizeChange=new D;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e)}jumpToPageViaInput(e){let n=e.target,i=Math.floor(_t(n.value,this.pageIndex));this.pageIndexChange.next(i),n.value=""}ngOnChanges(e){let{pageSize:n,pageSizeOptions:i,locale:o}=e;(n||i||o)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(l=>({value:l,label:`${l} ${this.locale.items_per_page}`})))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],attrs:Xn,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(n,i){n&1&&(S(0,Zn,3,3,"nz-select",0),S(1,Un,4,3,"div",1)),n&2&&(x(i.showSizeChanger?0:-1),c(),x(i.showQuickJumper?1:-1))},dependencies:[rn,an,ln,$e,Re,Ee],encapsulation:2,changeDetection:0})}return t})(),hn=(()=>{class t{cdr=p(fe);directionality=p(Ie);destroyRef=p(U);template;nzSize="default";itemRender=null;showTotal=null;disabled=!1;locale;showSizeChanger=!1;showQuickJumper=!1;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[10,20,30,40];pageIndexChange=new D;pageSizeChange=new D;ranges=[0,0];listOfPageItem=[];dir="ltr";constructor(){let e=p(te).nativeElement,n=p(ue);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(_(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpPage(e){this.onPageIndexChange(e)}jumpDiff(e){this.jumpPage(this.pageIndex+e)}trackByPageItem(e,n){return`${n.type}-${n.index}`}onPageIndexChange(e){this.pageIndexChange.next(e)}onPageSizeChange(e){this.pageSizeChange.next(e)}getLastIndex(e,n){return Math.ceil(e/n)}buildIndexes(){let e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)}getListOfPageItem(e,n){let i=l=>{let s={type:"prev",disabled:e===1},z={type:"next",disabled:e===n};return[s,...l,z]},o=(l,s)=>{let z=[];for(let y=l;y<=s;y++)z.push({index:y,type:"page"});return z};return n<=9?i(o(1,n)):i(((s,z)=>{let y=[],I={type:"prev_5"},$={type:"next_5"},Y=o(1,1),de=o(n,n);if(s<5)y=[...o(2,s===4?6:5),$];else if(s<z-3)y=[I,...o(s-2,s+2),$];else{let le=s===z-3?z-5:z-4;y=[I,...o(le,z-1)]}return[...Y,...y,...de]})(e,n))}ngOnChanges(e){let{pageIndex:n,pageSize:i,total:o}=e;(n||i||o)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-pagination-default"]],viewQuery:function(n,i){if(n&1&&ne(dn,7),n&2){let o;A(o=L())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-pagination-rtl",i.dir==="rtl")},inputs:{nzSize:"nzSize",itemRender:"itemRender",showTotal:"showTotal",disabled:"disabled",locale:"locale",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],[1,"ant-pagination-total-text"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-pagination-item","",3,"gotoIndex","diffIndex","locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"pageIndexChange","pageSizeChange","total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"]],template:function(n,i){n&1&&k(0,ii,5,2,"ng-template",null,0,ie)},dependencies:[G,yt,pn],encapsulation:2,changeDetection:0})}return t})(),mn=(()=>{class t{cdr=p(fe);directionality=p(Ie);destroyRef=p(U);template;itemRender=null;disabled=!1;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new D;lastIndex=0;isFirstIndex=!1;isLastIndex=!1;dir="ltr";constructor(){let e=p(te).nativeElement,n=p(ue);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(_(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpToPageViaInput(e){let n=e.target,i=_t(n.value,this.pageIndex);this.onPageIndexChange(i),n.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(e){this.pageIndexChange.next(e)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(e){let{pageIndex:n,total:i,pageSize:o}=e;(n||i||o)&&this.updateBindingValue()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-pagination-simple"]],viewQuery:function(n,i){if(n&1&&ne(dn,7),n&2){let o;A(o=L())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-pagination-rtl",i.dir==="rtl")},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(n,i){n&1&&k(0,oi,8,14,"ng-template",null,0,ie)},dependencies:[yt],encapsulation:2,changeDetection:0})}return t})(),di="pagination",wt=(()=>{var W;let t,a=[],e=[],n,i=[],o=[],l,s=[],z=[],y,I=[],$=[],Y,de=[],le=[];return W=class{_nzModuleName=di;i18n=p(tt);cdr=p(fe);breakpointService=p(tn);nzConfigService=p(Qe);directionality=p(Ie);destroyRef=p(U);nzPageSizeChange=new D;nzPageIndexChange=new D;nzShowTotal=null;nzItemRender=null;nzSize=w(this,a,"default");nzPageSizeOptions=(w(this,e),w(this,i,[10,20,30,40]));nzShowSizeChanger=(w(this,o),w(this,s,!1));nzShowQuickJumper=(w(this,z),w(this,I,!1));nzSimple=(w(this,$),w(this,de,!1));nzDisabled=(w(this,le),!1);nzResponsive=!1;nzHideOnSinglePage=!1;nzTotal=0;nzPageIndex=1;nzPageSize=10;nzAlign=$t("start");showPagination=!0;locale;size="default";dir="ltr";total$=new Q(1);validatePageIndex(b,f){return b>f?f:b<1?1:b}onPageIndexChange(b){let f=this.getLastIndex(this.nzTotal,this.nzPageSize),g=this.validatePageIndex(b,f);g!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=g,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(b){this.nzPageSize=b,this.nzPageSizeChange.emit(b);let f=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>f&&this.onPageIndexChange(f)}onTotalChange(b){let f=this.getLastIndex(b,this.nzPageSize);this.nzPageIndex>f&&Promise.resolve().then(()=>{this.onPageIndexChange(f),this.cdr.markForCheck()})}getLastIndex(b,f){return Math.ceil(b/f)}ngOnInit(){this.i18n.localeChange.pipe(_(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe(_(this.destroyRef)).subscribe(b=>{this.onTotalChange(b)}),this.breakpointService.subscribe(en).pipe(_(this.destroyRef)).subscribe(b=>{this.nzResponsive&&(this.size=b===Gt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe(_(this.destroyRef)).subscribe(b=>{this.dir=b,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(b){let{nzHideOnSinglePage:f,nzTotal:g,nzPageSize:ge,nzSize:H}=b;g&&this.total$.next(this.nzTotal),(f||g||ge)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),H&&(this.size=H.currentValue)}},(()=>{let b=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],n=[X()],l=[X()],y=[X()],Y=[X()],j(null,null,t,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:f=>"nzSize"in f,get:f=>f.nzSize,set:(f,g)=>{f.nzSize=g}},metadata:b},a,e),j(null,null,n,{kind:"field",name:"nzPageSizeOptions",static:!1,private:!1,access:{has:f=>"nzPageSizeOptions"in f,get:f=>f.nzPageSizeOptions,set:(f,g)=>{f.nzPageSizeOptions=g}},metadata:b},i,o),j(null,null,l,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:f=>"nzShowSizeChanger"in f,get:f=>f.nzShowSizeChanger,set:(f,g)=>{f.nzShowSizeChanger=g}},metadata:b},s,z),j(null,null,y,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:f=>"nzShowQuickJumper"in f,get:f=>f.nzShowQuickJumper,set:(f,g)=>{f.nzShowQuickJumper=g}},metadata:b},I,$),j(null,null,Y,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:f=>"nzSimple"in f,get:f=>f.nzSimple,set:(f,g)=>{f.nzSimple=g}},metadata:b},de,le),b&&Object.defineProperty(W,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b})})(),re(W,"\u0275fac",function(f){return new(f||W)}),re(W,"\u0275cmp",R({type:W,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:14,hostBindings:function(f,g){f&2&&E("ant-pagination-simple",g.nzSimple)("ant-pagination-disabled",g.nzDisabled)("ant-pagination-mini",!g.nzSimple&&g.size==="small")("ant-pagination-rtl",g.dir==="rtl")("ant-pagination-start",g.nzAlign()==="start")("ant-pagination-center",g.nzAlign()==="center")("ant-pagination-end",g.nzAlign()==="end")},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",v],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",v],nzSimple:[2,"nzSimple","nzSimple",v],nzDisabled:[2,"nzDisabled","nzDisabled",v],nzResponsive:[2,"nzResponsive","nzResponsive",v],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",v],nzTotal:[2,"nzTotal","nzTotal",Ge],nzPageIndex:[2,"nzPageIndex","nzPageIndex",Ge],nzPageSize:[2,"nzPageSize","nzPageSize",Ge],nzAlign:[1,"nzAlign"]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[J],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(f,g){if(f&1){let ge=B();S(0,ci,2,1),m(1,"nz-pagination-simple",2,0),N("pageIndexChange",function(Ve){return O(ge),P(g.onPageIndexChange(Ve))}),u(),m(3,"nz-pagination-default",3,1),N("pageIndexChange",function(Ve){return O(ge),P(g.onPageIndexChange(Ve))})("pageSizeChange",function(Ve){return O(ge),P(g.onPageSizeChange(Ve))}),u()}f&2&&(x(g.showPagination?0:-1),c(),d("disabled",g.nzDisabled)("itemRender",g.nzItemRender)("locale",g.locale)("pageSize",g.nzPageSize)("total",g.nzTotal)("pageIndex",g.nzPageIndex),c(2),d("nzSize",g.size)("itemRender",g.nzItemRender)("showTotal",g.nzShowTotal)("disabled",g.nzDisabled)("locale",g.locale)("showSizeChanger",g.nzShowSizeChanger)("showQuickJumper",g.nzShowQuickJumper)("total",g.nzTotal)("pageIndex",g.nzPageIndex)("pageSize",g.nzPageSize)("pageSizeOptions",g.nzPageSizeOptions))},dependencies:[G,mn,hn],encapsulation:2,changeDetection:0})),W})(),un=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t});static \u0275inj=qe({imports:[wt,mn,pn,yt,hn]})}return t})();var xe=["*"],hi=(t,a)=>a.value;function mi(t,a){}function ui(t,a){if(t&1){let e=B();m(0,"label",14),N("ngModelChange",function(){O(e);let i=r().$implicit,o=r(2);return P(o.check(i))}),u()}if(t&2){let e=r().$implicit;d("ngModel",e.checked)}}function zi(t,a){if(t&1){let e=B();m(0,"label",15),N("ngModelChange",function(){O(e);let i=r().$implicit,o=r(2);return P(o.check(i))}),u()}if(t&2){let e=r().$implicit;d("ngModel",e.checked)}}function fi(t,a){if(t&1){let e=B();m(0,"li",11),N("click",function(){let i=O(e).$implicit,o=r(2);return P(o.check(i))}),S(1,ui,1,1,"label",12)(2,zi,1,1,"label",13),m(3,"span"),K(4),u()()}if(t&2){let e=a.$implicit,n=r(2);d("nzSelected",e.checked),c(),x(n.filterMultiple?2:1),c(3),ye(e.text)}}function gi(t,a){if(t&1){let e=B();m(0,"nz-filter-trigger",3),N("nzVisibleChange",function(i){O(e);let o=r();return P(o.onVisibleChange(i))}),F(1,"nz-icon",4),u(),m(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),_e(6,fi,5,3,"li",7,hi),u(),m(8,"div",8)(9,"button",9),N("click",function(){O(e);let i=r();return P(i.reset())}),K(10),u(),m(11,"button",10),N("click",function(){O(e);let i=r();return P(i.confirm())}),K(12),u()()()()}if(t&2){let e=V(3),n=r();d("nzVisible",n.isVisible)("nzActive",n.isChecked)("nzDropdownMenu",e),c(6),Se(n.listOfParsedFilter),c(3),d("disabled",!n.isChecked),c(),we(" ",n.locale.filterReset," "),c(2),ye(n.locale.filterConfirm)}}function Ci(t,a){if(t&1&&ft(0,2),t&2){let e=r();d("ngTemplateOutlet",e.extraTemplate)}}function _i(t,a){if(t&1){let e=B();m(0,"label",3),N("ngModelChange",function(i){O(e);let o=r();return P(o.onCheckedChange(i))}),u()}if(t&2){let e=r();E("ant-table-selection-select-all-custom",e.showRowSelection),d("ngModel",e.checked)("nzDisabled",e.disabled)("nzIndeterminate",e.indeterminate),se("aria-label",e.label)}}function Si(t,a){if(t&1){let e=B();m(0,"li",8),N("click",function(){let i=O(e).$implicit;return P(i.onSelect())}),K(1),u()}if(t&2){let e=a.$implicit;c(),we(" ",e.text," ")}}function xi(t,a){if(t&1&&(m(0,"div",2)(1,"span",4),F(2,"nz-icon",5),u(),m(3,"nz-dropdown-menu",null,0)(5,"ul",6),_e(6,Si,2,1,"li",7,kt),u()()()),t&2){let e=V(4),n=r();c(),d("nzDropdownMenu",e),c(5),Se(n.listOfSelections)}}function bi(t,a){}function Ti(t,a){if(t&1&&F(0,"nz-icon",6),t&2){let e=r();E("active",e.sortOrder==="ascend")}}function yi(t,a){if(t&1&&F(0,"nz-icon",7),t&2){let e=r();E("active",e.sortOrder==="descend")}}var wi=["nzChecked",""];function vi(t,a){}function Oi(t,a){if(t&1&&k(0,vi,0,0,"ng-template",2),t&2){let e=r(2);d("ngTemplateOutlet",e.nzExpandIcon)}}function Pi(t,a){if(t&1){let e=B();m(0,"button",4),N("expandChange",function(i){O(e);let o=r(2);return P(o.onExpandChange(i))}),u()}if(t&2){let e=r(2);d("expand",e.nzExpand)("spaceMode",!e.nzShowExpand)}}function Di(t,a){if(t&1&&(F(0,"nz-row-indent",1),S(1,Oi,1,1,null,2)(2,Pi,1,2,"button",3)),t&2){let e=r();d("indentSize",e.nzIndentSize),c(),x(e.nzExpandIcon?1:2)}}function Fi(t,a){if(t&1){let e=B();m(0,"label",5),N("ngModelChange",function(i){O(e);let o=r();return P(o.onCheckedChange(i))}),u()}if(t&2){let e=r();d("nzDisabled",e.nzDisabled)("ngModel",e.nzChecked)("nzIndeterminate",e.nzIndeterminate),se("aria-label",e.nzLabel)}}var Ni=["nzColumnKey",""],Ii=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],ki=["[nz-th-extra]","nz-filter-trigger","*"];function Mi(t,a){if(t&1){let e=B();m(0,"nz-table-filter",6),N("filterChange",function(i){O(e);let o=r();return P(o.onFilterValueChange(i))}),u()}if(t&2){let e=r(),n=V(3),i=V(5);d("contentTemplate",n)("extraTemplate",i)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters)}}function Ri(t,a){if(t&1&&ft(0,5),t&2){r();let e=V(3);d("ngTemplateOutlet",e)}}function Ei(t,a){}function $i(t,a){if(t&1&&k(0,Ei,0,0,"ng-template",5),t&2){let e=r(),n=V(7),i=V(9);d("ngTemplateOutlet",e.nzShowSort?n:i)}}function Vi(t,a){t&1&&(oe(0),oe(1,1))}function Bi(t,a){if(t&1&&F(0,"nz-table-sorters",7),t&2){let e=r(),n=V(9);d("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",n)}}function Ai(t,a){t&1&&oe(0,2)}var Li=["nzSelections",""],Wi=["nz-table-content",""];function Qi(t,a){if(t&1&&F(0,"col"),t&2){let e=a.$implicit;Te("width",e)("min-width",e)}}function Hi(t,a){if(t&1&&(m(0,"colgroup"),_e(1,Qi,1,4,"col",3,zt),u()),t&2){let e=r();c(),Se(e.listOfColWidth)}}function ji(t,a){}function Ji(t,a){if(t&1&&(m(0,"thead",0),k(1,ji,0,0,"ng-template",1),u()),t&2){let e=r();c(),d("ngTemplateOutlet",e.theadTemplate)}}function Xi(t,a){}function Yi(t,a){}function qi(t,a){if(t&1&&(m(0,"tfoot",2),k(1,Yi,0,0,"ng-template",1),u()),t&2){let e=r();c(),d("ngTemplateOutlet",e.tfootTemplate)}}var fn=["tdElement"],Zi=["nz-table-fixed-row",""];function Ui(t,a){}function Ki(t,a){if(t&1&&(m(0,"div",5),Fe(1,"async"),k(2,Ui,0,0,"ng-template",4),u()),t&2){let e=r(),n=V(6);Te("width",Ne(1,3,e.hostWidth$),"px"),c(2),d("ngTemplateOutlet",n)}}function Gi(t,a){}function eo(t,a){if(t&1&&k(0,Gi,0,0,"ng-template",4),t&2){r();let e=V(6);d("ngTemplateOutlet",e)}}function to(t,a){t&1&&oe(0)}var no=["nz-table-measure-row",""];function io(t,a){t&1&&Mt(0,"td",1,0)}function oo(t,a){if(t&1){let e=B();m(0,"tr",2),N("listOfAutoWidth",function(i){O(e);let o=r(2);return P(o.onListOfAutoWidthChange(i))}),u()}if(t&2){let e=r();d("listOfMeasureColumn",e)}}function ao(t,a){if(t&1&&S(0,oo,1,1,"tr",1),t&2){let e=r();x(e.isInsideTable&&a.length?0:-1)}}function lo(t,a){if(t&1&&(m(0,"tr",0),F(1,"nz-embed-empty",3),Fe(2,"async"),u()),t&2){let e=r();c(),d("specificContent",Ne(2,1,e.noResult$))}}var ro=["tableHeaderElement"],so=["tableBodyElement"],co=["tableFootElement"],po=(t,a)=>({$implicit:t,index:a});function ho(t,a){if(t&1&&(m(0,"div",9,1),F(2,"table",10),u()),t&2){let e=r(2);Ae(e.bodyStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate)}}function mo(t,a){}function uo(t,a){if(t&1&&(Ue(0),k(1,mo,0,0,"ng-template",14),Ke()),t&2){let e=a.$implicit,n=a.index,i=r(3);c(),d("ngTemplateOutlet",i.virtualTemplate)("ngTemplateOutletContext",Le(2,po,e,n))}}function zo(t,a){if(t&1&&(m(0,"cdk-virtual-scroll-viewport",11,1)(2,"table",12)(3,"tbody"),k(4,uo,2,5,"ng-container",13),u()()()),t&2){let e=r(2);Te("height",e.data.length?e.scrollY:e.noDataVirtualHeight),d("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),c(2),d("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy)}}function fo(t,a){if(t&1&&(m(0,"div",15,2),F(2,"table",16),u()),t&2){let e=r(2);Ae(e.headerStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("tfootTemplate",e.tfootTemplate)}}function go(t,a){if(t&1&&(m(0,"div",4,0),F(2,"table",5),u(),S(3,ho,3,5,"div",6)(4,zo,5,9,"cdk-virtual-scroll-viewport",7),S(5,fo,3,5,"div",8)),t&2){let e=r();Ae(e.headerStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootFixed==="top"?e.tfootTemplate:null),c(),x(e.virtualTemplate?4:3),c(2),x(e.tfootFixed==="bottom"?5:-1)}}function Co(t,a){if(t&1&&(m(0,"div",17,1),F(2,"table",18),u()),t&2){let e=r();Ae(e.bodyStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)("tfootTemplate",e.tfootTemplate)}}function _o(t,a){if(t&1&&(Ue(0),K(1),Ke()),t&2){let e=r();c(),ye(e.title)}}function So(t,a){if(t&1&&(Ue(0),K(1),Ke()),t&2){let e=r();c(),ye(e.footer)}}function xo(t,a){}function bo(t,a){if(t&1&&k(0,xo,0,0,"ng-template",4),t&2){r();let e=V(10);d("ngTemplateOutlet",e)}}function To(t,a){if(t&1&&F(0,"nz-table-title-footer",6),t&2){let e=r();d("title",e.nzTitle)}}function yo(t,a){if(t&1&&F(0,"nz-table-inner-scroll",7),t&2){let e=r(),n=V(3),i=V(12);d("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",i)("listOfColWidth",e.listOfAutoColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootTemplate)("tfootFixed",e.tfootFixed)("verticalScrollBarWidth",e.verticalScrollBarWidth)("virtualTemplate",e.nzVirtualScrollDirective?e.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",e.nzVirtualItemSize)("virtualMaxBufferPx",e.nzVirtualMaxBufferPx)("virtualMinBufferPx",e.nzVirtualMinBufferPx)("tableMainElement",n)("virtualForTrackBy",e.nzVirtualForTrackBy)("noDataVirtualHeight",e.noDataVirtualHeight)}}function wo(t,a){if(t&1&&F(0,"nz-table-inner-default",8),t&2){let e=r(),n=V(12);d("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",n)("tfootTemplate",e.tfootTemplate)}}function vo(t,a){if(t&1&&F(0,"nz-table-title-footer",9),t&2){let e=r();d("footer",e.nzFooter)}}function Oo(t,a){}function Po(t,a){if(t&1&&k(0,Oo,0,0,"ng-template",4),t&2){r();let e=V(10);d("ngTemplateOutlet",e)}}function Do(t,a){if(t&1){let e=B();m(0,"nz-pagination",11),N("nzPageSizeChange",function(i){O(e);let o=r(2);return P(o.onPageSizeChange(i))})("nzPageIndexChange",function(i){O(e);let o=r(2);return P(o.onPageIndexChange(i))}),u()}if(t&2){let e=r(2);d("hidden",!e.showPagination)("nzShowSizeChanger",e.nzShowSizeChanger)("nzPageSizeOptions",e.nzPageSizeOptions)("nzItemRender",e.nzItemRender)("nzShowQuickJumper",e.nzShowQuickJumper)("nzHideOnSinglePage",e.nzHideOnSinglePage)("nzShowTotal",e.nzShowTotal)("nzSize",e.nzPaginationType==="small"?"small":e.nzSize==="default"?"default":"small")("nzPageSize",e.nzPageSize)("nzTotal",e.nzTotal)("nzSimple",e.nzSimple)("nzPageIndex",e.nzPageIndex)}}function Fo(t,a){if(t&1&&S(0,Do,1,12,"nz-pagination",10),t&2){let e=r();x(e.nzShowPagination&&e.data.length?0:-1)}}function No(t,a){t&1&&oe(0)}var Io=["contentTemplate"];function ko(t,a){t&1&&oe(0)}function Mo(t,a){}function Ro(t,a){if(t&1&&k(0,Mo,0,0,"ng-template",1),t&2){r();let e=V(1);d("ngTemplateOutlet",e)}}var Eo="filterTrigger",gn=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=Eo;nzConfigService=p(Qe);cdr=p(fe);destroyRef=p(U);nzActive=!1;nzDropdownMenu;nzVisible=!1;nzBackdrop=w(this,a,!1);nzVisibleChange=(w(this,e),new D);nzDropdown;onVisibleChange(o){this.nzVisible=o,this.nzVisibleChange.next(o)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){et(this.nzDropdown.nativeElement,"click").pipe(_(this.destroyRef)).subscribe(o=>o.stopPropagation())}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],j(null,null,t,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:l=>"nzBackdrop"in l,get:l=>l.nzBackdrop,set:(l,s)=>{l.nzBackdrop=s}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),re(n,"\u0275fac",function(l){return new(l||n)}),re(n,"\u0275cmp",R({type:n,selectors:[["nz-filter-trigger"]],viewQuery:function(l,s){if(l&1&&ne(He,7,te),l&2){let z;A(z=L())&&(s.nzDropdown=z.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",v]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(l,s){l&1&&(ce(),m(0,"span",0),N("nzVisibleChange",function(y){return s.onVisibleChange(y)}),oe(1),u()),l&2&&(E("active",s.nzActive)("ant-table-filter-open",s.nzVisible),d("nzBackdrop",s.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",s.nzDropdownMenu)("nzVisible",s.nzVisible))},dependencies:[nt,He],encapsulation:2,changeDetection:0})),n})(),Cn=(()=>{class t{cdr=p(fe);i18n=p(tt);destroyRef=p(U);contentTemplate=null;customFilter=!1;extraTemplate=null;filterMultiple=!0;listOfFilter=[];filterChange=new D;locale;isChecked=!1;isVisible=!1;listOfParsedFilter=[];listOfChecked=[];check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(n=>n===e?ht(pt({},n),{checked:!e.checked}):n),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(n=>ht(pt({},n),{checked:n===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value):this.emitFilterData()}emitFilterData(){let e=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value);Qt(this.listOfChecked,e)||(this.filterMultiple?this.filterChange.emit(e):this.filterChange.emit(e.length>0?e[0]:null))}parseListOfFilter(e,n){return e.map(i=>{let o=n?!1:!!i.byDefault;return{text:i.text,value:i.value,checked:o}})}getCheckedStatus(e){return e.some(n=>n.checked)}ngOnInit(){this.i18n.localeChange.pipe(_(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(e){let{listOfFilter:n}=e;n&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[J],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(n,i){n&1&&(m(0,"span",1),k(1,mi,0,0,"ng-template",2),u(),S(2,gi,13,6)(3,Ci,1,1,"ng-container",2)),n&2&&(c(),d("ngTemplateOutlet",i.contentTemplate),c(),x(i.customFilter?3:2))},dependencies:[G,gn,Me,ke,nt,xt,St,bt,sn,ot,it,$e,Re,Ee,Ut,Zt,Yt,qt],encapsulation:2,changeDetection:0})}return t})(),$o=(()=>{class t{expand=!1;spaceMode=!1;expandChange=new D;onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(n,i){n&1&&N("click",function(){return i.onHostClick()}),n&2&&(Rt("type","button"),E("ant-table-row-expand-icon-expanded",!i.spaceMode&&i.expand===!0)("ant-table-row-expand-icon-collapsed",!i.spaceMode&&i.expand===!1)("ant-table-row-expand-icon-spaced",i.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}})}return t})(),Vo=(()=>{class t{indentSize=0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(n,i){n&2&&Te("padding-left",i.indentSize,"px")},inputs:{indentSize:"indentSize"}})}return t})(),_n=(()=>{class t{listOfSelections=[];checked=!1;disabled=!1;indeterminate=!1;label=null;showCheckbox=!1;showRowSelection=!1;checkedChange=new D;onCheckedChange(e){this.checked=e,this.checkedChange.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(n,i){n&1&&(S(0,_i,1,6,"label",1),S(1,xi,8,1,"div",2)),n&2&&(x(i.showCheckbox?0:-1),c(),x(i.showRowSelection?1:-1))},dependencies:[$e,Re,Ee,ot,it,nt,xt,St,He,bt,Me,ke],encapsulation:2,changeDetection:0})}return t})(),Sn=(()=>{class t{sortDirections=["ascend","descend",null];sortOrder=null;contentTemplate=null;isUp=!1;isDown=!1;ngOnChanges(e){let{sortDirections:n}=e;n&&(this.isUp=this.sortDirections.indexOf("ascend")!==-1,this.isDown=this.sortDirections.indexOf("descend")!==-1)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[J],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nzType","caret-up",1,"ant-table-column-sorter-up",3,"active"],["nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nzType","caret-up",1,"ant-table-column-sorter-up"],["nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,i){n&1&&(m(0,"span",0),k(1,bi,0,0,"ng-template",1),u(),m(2,"span",2)(3,"span",3),S(4,Ti,1,2,"nz-icon",4),S(5,yi,1,2,"nz-icon",5),u()()),n&2&&(c(),d("ngTemplateOutlet",i.contentTemplate),c(),E("ant-table-column-sorter-full",i.isDown&&i.isUp),c(2),x(i.isUp?4:-1),c(),x(i.isDown?5:-1))},dependencies:[Me,ke,G],encapsulation:2,changeDetection:0})}return t})(),Bo=(()=>{class t{renderer=p(ue);el=p(te).nativeElement;nzRight=!1;nzLeft=!1;colspan=null;colSpan=null;changes$=new Ce;isAutoLeft=!1;isAutoRight=!1;isFixedLeft=!1;isFixedRight=!1;isFixed=!1;setAutoLeftWidth(e){this.renderer.setStyle(this.el,"left",e)}setAutoRightWidth(e){this.renderer.setStyle(this.el,"right",e)}setIsFirstRight(e){this.setFixClass(e,"ant-table-cell-fix-right-first")}setIsLastLeft(e){this.setFixClass(e,"ant-table-cell-fix-left-last")}setFixClass(e,n){this.renderer.removeClass(this.el,n),e&&this.renderer.addClass(this.el,n)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=this.nzLeft===""||this.nzLeft===!0,this.isAutoRight=this.nzRight===""||this.nzRight===!0,this.isFixedLeft=this.nzLeft!==!1,this.isFixedRight=this.nzRight!==!1,this.isFixed=this.isFixedLeft||this.isFixedRight;let e=n=>typeof n=="string"&&n!==""?n:null;this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,i){n&2&&(Te("position",i.isFixed?"sticky":null),E("ant-table-cell-fix-right",i.isFixedRight)("ant-table-cell-fix-left",i.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[J]})}return t})(),ve=(()=>{class t{theadTemplate$=new Q(1);tfootTemplate$=new Q(1);tfootFixed$=new Q(1);hasFixLeft$=new Q(1);hasFixRight$=new Q(1);hostWidth$=new Q(1);columnCount$=new Q(1);showEmpty$=new Q(1);noResult$=new Q(1);listOfThWidthConfigPx$=new q([]);tableWidthConfigPx$=new q([]);manualWidthConfigPx$=ae([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(Z(([e,n])=>e.length?e:n));listOfAutoWidthPx$=new Q(1);listOfListOfThWidthPx$=be(this.manualWidthConfigPx$,ae([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(Z(([e,n])=>e.length===n.length?e.map((i,o)=>i==="0px"?n[o]||null:n[o]||i):n)));listOfMeasureColumn$=new Q(1);listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(Z(e=>e.map(n=>parseInt(n,10))));enableAutoMeasure$=new Q(1);setTheadTemplate(e){this.theadTemplate$.next(e)}setTfootTemplate(e){this.tfootTemplate$.next(e)}setTfootFixed(e){this.tfootFixed$.next(e)}setHasFixLeft(e){this.hasFixLeft$.next(e)}setHasFixRight(e){this.hasFixRight$.next(e)}setTableWidthConfig(e){this.tableWidthConfigPx$.next(e)}setListOfTh(e){let n=0;e.forEach(o=>{n+=o.colspan&&+o.colspan||o.colSpan&&+o.colSpan||1});let i=e.map(o=>o.nzWidth);this.columnCount$.next(n),this.listOfThWidthConfigPx$.next(i)}setListOfMeasureColumn(e){let n=[];e.forEach(i=>{let o=i.colspan&&+i.colspan||i.colSpan&&+i.colSpan||1;for(let l=0;l<o;l++)n.push(`measure_key_${l}`)}),this.listOfMeasureColumn$.next(n)}setListOfAutoWidth(e){this.listOfAutoWidthPx$.next(e.map(n=>`${n}px`))}setShowEmpty(e){this.showEmpty$.next(e)}setNoResult(e){this.noResult$.next(e)}setScroll(e,n){let i=!!(e||n);i||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ut({token:t,factory:t.\u0275fac})}return t})(),cl=(()=>{class t{isInsideTable=!!p(ve,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th",9,"nz-disable-th"],["td",9,"nz-disable-td"]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-cell",i.isInsideTable)}})}return t})(),vt=(()=>{class t{destroyRef=p(U);pageIndex$=new q(1);frontPagination$=new q(!0);pageSize$=new q(10);listOfData$=new q([]);listOfCustomColumn$=new q([]);pageIndexDistinct$=this.pageIndex$.pipe(Ye());pageSizeDistinct$=this.pageSize$.pipe(Ye());listOfCalcOperator$=new q([]);queryParams$=ae([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(mt(0),Dt(1),Z(([e,n,i])=>({pageIndex:e,pageSize:n,sort:i.filter(o=>o.sortFn).map(o=>({key:o.key,value:o.sortOrder})),filter:i.filter(o=>o.filterFn).map(o=>({key:o.key,value:o.filterValue}))})));listOfDataAfterCalc$=ae([this.listOfData$,this.listOfCalcOperator$]).pipe(Z(([e,n])=>{let i=[...e],o=n.filter(s=>{let{filterValue:z,filterFn:y}=s;return!(z==null||Array.isArray(z)&&z.length===0)&&typeof y=="function"});for(let s of o){let{filterFn:z,filterValue:y}=s;i=i.filter(I=>z(y,I))}let l=n.filter(s=>s.sortOrder!==null&&typeof s.sortFn=="function").sort((s,z)=>+z.sortPriority-+s.sortPriority);return n.length&&i.sort((s,z)=>{for(let y of l){let{sortFn:I,sortOrder:$}=y;if(I&&$){let Y=I(s,z,$);if(Y!==0)return $==="ascend"?Y:-Y}}return 0}),i}));listOfFrontEndCurrentPageData$=ae([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(_(this.destroyRef),Be(e=>{let[n,i,o]=e,l=Math.ceil(o.length/i)||1;return n<=l}),Z(([e,n,i])=>i.slice((e-1)*n,e*n)));listOfCurrentPageData$=this.frontPagination$.pipe(ee(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$));total$=this.frontPagination$.pipe(ee(e=>e?this.listOfDataAfterCalc$:this.listOfData$),Z(e=>e.length),Ye());updatePageSize(e){this.pageSize$.next(e)}updateFrontPagination(e){this.frontPagination$.next(e)}updatePageIndex(e){this.pageIndex$.next(e)}updateListOfData(e){this.listOfData$.next(e)}updateListOfCustomColumn(e){this.listOfCustomColumn$.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ut({token:t,factory:t.\u0275fac})}return t})();var Ao=(()=>{class t{nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzIndentSize=0;nzShowExpand=!1;nzShowCheckbox=!1;nzExpand=!1;nzExpandIcon=null;nzCheckedChange=new D;nzExpandChange=new D;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}onExpandChange(e){this.nzExpand=e,this.nzExpandChange.emit(e)}ngOnChanges(e){let n=z=>z&&z.firstChange&&z.currentValue!==void 0,{nzExpand:i,nzChecked:o,nzShowExpand:l,nzShowCheckbox:s}=e;l&&(this.isNzShowExpandChanged=!0),s&&(this.isNzShowCheckboxChanged=!0),n(i)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),n(o)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(n,i){n&2&&E("ant-table-cell-with-append",i.nzShowExpand||i.nzIndentSize>0)("ant-table-selection-column",i.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",v],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",v],nzExpand:[2,"nzExpand","nzExpand",v],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[J],attrs:wi,ngContentSelectors:xe,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(n,i){n&1&&(ce(),S(0,Di,3,2),S(1,Fi,1,4,"label",0),oe(2)),n&2&&(x(i.nzShowExpand||i.nzIndentSize>0?0:-1),c(),x(i.nzShowCheckbox?1:-1))},dependencies:[Vo,$o,G,ot,it,$e,Re,Ee],encapsulation:2,changeDetection:0})}return t})(),Lo="table",xn=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=Lo;nzConfigService=p(Qe);el=p(te).nativeElement;destroyRef=p(U);cdr=p(fe);ngZone=p(Pe);manualClickOrder$=new Ce;calcOperatorChange$=new Ce;nzFilterValue=null;sortOrder=null;sortDirections=["ascend","descend",null];sortOrderChange$=new Ce;isNzShowSortChanged=!1;isNzShowFilterChanged=!1;nzColumnKey;nzFilterMultiple=!0;nzSortOrder=null;nzSortPriority=!1;nzSortDirections=w(this,a,["ascend","descend",null]);nzFilters=(w(this,e),[]);nzSortFn=null;nzFilterFn=null;nzShowSort=!1;nzShowFilter=!1;nzCustomFilter=!1;nzCheckedChange=new D;nzSortOrderChange=new D;nzFilterChange=new D;getNextSortDirection(o,l){let s=o.indexOf(l);return s===o.length-1?o[0]:o[s+1]}setSortOrder(o){this.sortOrderChange$.next(o)}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null)}onFilterValueChange(o){this.nzFilterChange.emit(o),this.nzFilterValue=o,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){et(this.el,"click").pipe(Be(()=>this.nzShowSort),_(this.destroyRef)).subscribe(()=>{let o=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(o),this.manualClickOrder$.next(this)})}),this.sortOrderChange$.pipe(_(this.destroyRef)).subscribe(o=>{this.sortOrder!==o&&(this.sortOrder=o,this.nzSortOrderChange.emit(o)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(o){let{nzSortDirections:l,nzFilters:s,nzSortOrder:z,nzSortFn:y,nzFilterFn:I,nzSortPriority:$,nzFilterMultiple:Y,nzShowSort:de,nzShowFilter:le}=o;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),z&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),de&&(this.isNzShowSortChanged=!0),le&&(this.isNzShowFilterChanged=!0);let W=pe=>pe&&pe.firstChange&&pe.currentValue!==void 0;if((W(z)||W(y))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),W(s)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(s||Y)&&this.nzShowFilter){let pe=this.nzFilters.filter(b=>b.byDefault).map(b=>b.value);this.nzFilterValue=this.nzFilterMultiple?pe:pe[0]||null}(y||I||$||s)&&this.updateCalcOperator()}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],j(null,null,t,{kind:"field",name:"nzSortDirections",static:!1,private:!1,access:{has:l=>"nzSortDirections"in l,get:l=>l.nzSortDirections,set:(l,s)=>{l.nzSortDirections=s}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),re(n,"\u0275fac",function(l){return new(l||n)}),re(n,"\u0275cmp",R({type:n,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(l,s){l&2&&E("ant-table-column-has-sorters",s.nzShowSort)("ant-table-column-sort",s.sortOrder==="descend"||s.sortOrder==="ascend")},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",v],nzShowFilter:[2,"nzShowFilter","nzShowFilter",v],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",v]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[J],attrs:Ni,ngContentSelectors:ki,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(l,s){l&1&&(ce(Ii),S(0,Mi,1,5,"nz-table-filter",4)(1,Ri,1,1,"ng-container",5),k(2,$i,1,1,"ng-template",null,0,ie)(4,Vi,2,0,"ng-template",null,1,ie)(6,Bi,1,3,"ng-template",null,2,ie)(8,Ai,1,0,"ng-template",null,3,ie)),l&2&&x(s.nzShowFilter||s.nzCustomFilter?0:1)},dependencies:[Cn,G,Sn],encapsulation:2,changeDetection:0})),n})(),Wo=(()=>{class t{renderer=p(ue);el=p(te).nativeElement;changes$=new Ce;nzWidth=null;colspan=null;colSpan=null;rowspan=null;rowSpan=null;ngOnChanges(e){let{nzWidth:n,colspan:i,rowspan:o,colSpan:l,rowSpan:s}=e;if(i||l){let z=this.colspan||this.colSpan;Ct(z)?this.renderer.removeAttribute(this.el,"colspan"):this.renderer.setAttribute(this.el,"colspan",`${z}`)}if(o||s){let z=this.rowspan||this.rowSpan;Ct(z)?this.renderer.removeAttribute(this.el,"rowspan"):this.renderer.setAttribute(this.el,"rowspan",`${z}`)}(n||i)&&this.changes$.next()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[J]})}return t})(),Qo=(()=>{class t{nzSelections=[];nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzShowCheckbox=!1;nzShowRowSelection=!1;nzCheckedChange=new D;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}ngOnChanges(e){let n=z=>z&&z.firstChange&&z.currentValue!==void 0,{nzChecked:i,nzSelections:o,nzShowExpand:l,nzShowCheckbox:s}=e;l&&(this.isNzShowExpandChanged=!0),s&&(this.isNzShowCheckboxChanged=!0),n(o)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),n(i)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",v],nzDisabled:[2,"nzDisabled","nzDisabled",v],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",v],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",v]},outputs:{nzCheckedChange:"nzCheckedChange"},features:[J],attrs:Li,ngContentSelectors:xe,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(n,i){n&1&&(ce(),m(0,"nz-table-selection",0),N("checkedChange",function(l){return i.onCheckedChange(l)}),u(),oe(1)),n&2&&d("checked",i.nzChecked)("disabled",i.nzDisabled)("indeterminate",i.nzIndeterminate)("label",i.nzLabel)("listOfSelections",i.nzSelections)("showCheckbox",i.nzShowCheckbox)("showRowSelection",i.nzShowRowSelection)},dependencies:[_n],encapsulation:2,changeDetection:0})}return t})();var dl=(()=>{class t{nzEllipsis=!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th","nzEllipsis",""],["td","nzEllipsis",""]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-cell-ellipsis",i.nzEllipsis)},inputs:{nzEllipsis:[2,"nzEllipsis","nzEllipsis",v]}})}return t})();var bn=(()=>{class t{tableLayout="auto";theadTemplate=null;contentTemplate=null;tfootTemplate=null;listOfColWidth=[];scrollX=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,i){n&2&&(Te("table-layout",i.tableLayout)("width",i.scrollX)("min-width",i.scrollX?"100%":null),E("ant-table-fixed",i.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Wi,ngContentSelectors:xe,decls:5,vars:4,consts:[[1,"ant-table-thead"],[3,"ngTemplateOutlet"],[1,"ant-table-summary"],[3,"width","minWidth"]],template:function(n,i){n&1&&(ce(),S(0,Hi,3,0,"colgroup"),S(1,Ji,2,1,"thead",0),k(2,Xi,0,0,"ng-template",1),oe(3),S(4,qi,2,1,"tfoot",2)),n&2&&(x(i.listOfColWidth.length>0?0:-1),c(),x(i.theadTemplate?1:-1),c(),d("ngTemplateOutlet",i.contentTemplate),c(2),x(i.tfootTemplate?4:-1))},dependencies:[G],encapsulation:2,changeDetection:0})}return t})(),Ho=(()=>{class t{nzTableStyleService=p(ve);renderer=p(ue);destroyRef=p(U);tdElement;hostWidth$=new q(null);enableAutoMeasure$=new q(!1);ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:e,hostWidth$:n}=this.nzTableStyleService;e.pipe(_(this.destroyRef)).subscribe(this.enableAutoMeasure$),n.pipe(_(this.destroyRef)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(_(this.destroyRef)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${e}`)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,i){if(n&1&&ne(fn,7),n&2){let o;A(o=L())&&(i.tdElement=o.first)}},attrs:Zi,ngContentSelectors:xe,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(n,i){n&1&&(ce(),m(0,"td",2,0),S(2,Ki,3,5,"div",3),Fe(3,"async"),It(4,eo,1,1,null,4),u(),k(5,to,1,0,"ng-template",null,1,ie)),n&2&&(c(2),x(Ne(3,1,i.enableAutoMeasure$)?2:4))},dependencies:[G,gt],encapsulation:2,changeDetection:0})}return t})(),jo=(()=>{class t{tableLayout="auto";listOfColWidth=[];theadTemplate=null;contentTemplate=null;tfootTemplate=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate"},decls:2,vars:5,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate","tfootTemplate"]],template:function(n,i){n&1&&(m(0,"div",0),F(1,"table",1),u()),n&2&&(c(),d("contentTemplate",i.contentTemplate)("tableLayout",i.tableLayout)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate)("tfootTemplate",i.tfootTemplate))},dependencies:[bn],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{nzResizeObserver=p(Tt);ngZone=p(Pe);destroyRef=p(U);listOfMeasureColumn=[];listOfAutoWidth=new D;listOfTdElement;ngAfterViewInit(){this.listOfTdElement.changes.pipe(me(this.listOfTdElement)).pipe(ee(e=>ae(e.toArray().map(n=>this.nzResizeObserver.observe(n).pipe(Z(([i])=>{let{width:o}=i.target.getBoundingClientRect();return Math.floor(o)}))))),mt(16),_(this.destroyRef)).subscribe(e=>{this.ngZone instanceof Pe&&Pe.isInAngularZone()?this.listOfAutoWidth.next(e):this.ngZone.run(()=>this.listOfAutoWidth.next(e))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,i){if(n&1&&ne(fn,5),n&2){let o;A(o=L())&&(i.listOfTdElement=o)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:no,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(n,i){n&1&&_e(0,io,2,0,"td",1,zt),n&2&&Se(i.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return t})(),Tn=(()=>{class t{showEmpty$=new q(!1);noResult$=new q(void 0);listOfMeasureColumn$=new q([]);nzTableStyleService=p(ve,{optional:!0});isInsideTable=!!this.nzTableStyleService;constructor(){if(this.nzTableStyleService){let{showEmpty$:e,noResult$:n,listOfMeasureColumn$:i}=this.nzTableStyleService;n.pipe(_()).subscribe(this.noResult$),i.pipe(_()).subscribe(this.listOfMeasureColumn$),e.pipe(_()).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(e){this.nzTableStyleService?.setListOfAutoWidth(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-tbody",i.isInsideTable)},ngContentSelectors:xe,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(n,i){if(n&1&&(ce(),S(0,ao,1,1),Fe(1,"async"),oe(2),S(3,lo,3,3,"tr",0),Fe(4,"async")),n&2){let o;x((o=Ne(1,2,i.listOfMeasureColumn$))?0:-1,o),c(3),x(Ne(4,4,i.showEmpty$)?3:-1)}},dependencies:[Jo,Ho,on,nn,gt],encapsulation:2,changeDetection:0})}return t})(),Ot=(()=>{class t{renderer=p(ue);ngZone=p(Pe);platform=p(Vt);resizeService=p(Kt);destroyRef=p(U);data=[];scrollX=null;scrollY=null;contentTemplate=null;widthConfig=[];listOfColWidth=[];theadTemplate=null;tfootTemplate=null;tfootFixed=null;virtualTemplate=null;virtualItemSize=0;virtualMaxBufferPx=200;virtualMinBufferPx=100;tableMainElement;virtualForTrackBy=e=>e;tableHeaderElement;tableBodyElement;tableFootElement;cdkVirtualScrollViewport;headerStyleMap={};bodyStyleMap={};verticalScrollBarWidth=0;noDataVirtualHeight="182px";data$=new Ce;scroll$=new Ce;setScrollPositionClassName(e=!1){let{scrollWidth:n,scrollLeft:i,clientWidth:o}=this.tableBodyElement.nativeElement,l="ant-table-ping-left",s="ant-table-ping-right";n===o&&n!==0||e?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.removeClass(this.tableMainElement,s)):i===0?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,s)):n===i+o?(this.renderer.removeClass(this.tableMainElement,s),this.renderer.addClass(this.tableMainElement,l)):(this.renderer.addClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,s))}constructor(){this.destroyRef.onDestroy(()=>{this.setScrollPositionClassName(!0)})}ngOnChanges(e){let{scrollX:n,scrollY:i,data:o}=e;if(n||i){let l=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&l?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())}o&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){if(this.platform.isBrowser){let e=this.scroll$.pipe(me(null),Xe(0),ee(()=>et(this.tableBodyElement.nativeElement,"scroll").pipe(me(!0)))),n=this.resizeService.connect();be(e,n,this.data$,this.scroll$).pipe(me(!0),Xe(0),_(this.destroyRef)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(Be(()=>!!this.scrollY)).subscribe(()=>{this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft,this.tableFootElement&&(this.tableFootElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,i){if(n&1&&(ne(ro,5,te),ne(so,5,te),ne(co,5,te),ne(We,5,We)),n&2){let o;A(o=L())&&(i.tableHeaderElement=o.first),A(o=L())&&(i.tableBodyElement=o.first),A(o=L())&&(i.tableFootElement=o.first),A(o=L())&&(i.cdkVirtualScrollViewport=o.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",tfootTemplate:"tfootTemplate",tfootFixed:"tfootFixed",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",noDataVirtualHeight:"noDataVirtualHeight"},features:[J],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],["tableFootElement",""],[1,"ant-table-content",3,"style"],[1,"ant-table-header","nz-table-hide-scrollbar"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","tfootTemplate"],["cdkScrollable","",1,"ant-table-body",3,"style"],[3,"itemSize","maxBufferPx","minBufferPx","height"],[1,"ant-table-summary",3,"style"],["cdkScrollable","",1,"ant-table-body"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-summary"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","tfootTemplate"],[1,"ant-table-content"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"]],template:function(n,i){n&1&&S(0,go,6,8)(1,Co,3,7,"div",3),n&2&&x(i.scrollY?0:1)},dependencies:[bn,Wt,At,Bt,Lt,We,G,Tn],encapsulation:2,changeDetection:0})}return t})(),Xo=(()=>{class t{templateRef=p(Ft);static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]})}return t})(),yn=(()=>{class t{title=null;footer=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,i){n&2&&E("ant-table-title",i.title!==null)("ant-table-footer",i.footer!==null)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&k(0,_o,2,1,"ng-container",0)(1,So,2,1,"ng-container",0),n&2&&(d("nzStringTemplateOutlet",i.title),c(),d("nzStringTemplateOutlet",i.footer))},dependencies:[Xt,Jt],encapsulation:2,changeDetection:0})}return t})(),zn="table",Yo=(()=>{var H;let t,a=[],e=[],n,i=[],o=[],l,s=[],z=[],y,I=[],$=[],Y,de=[],le=[],W,pe=[],b=[],f,g=[],ge=[];return H=class{_nzModuleName=zn;elementRef=p(te);nzResizeObserver=p(Tt);cdr=p(fe);nzTableStyleService=p(ve);nzTableDataService=p(vt);directionality=p(Ie);destroyRef=p(U);nzTableLayout="auto";nzShowTotal=null;nzItemRender=null;nzTitle=null;nzFooter=null;nzNoResult=void 0;nzPageSizeOptions=[10,20,30,40,50];nzVirtualItemSize=0;nzVirtualMaxBufferPx=200;nzVirtualMinBufferPx=100;nzVirtualForTrackBy=M=>M;nzLoadingDelay=0;nzPageIndex=1;nzPageSize=10;nzTotal=0;nzWidthConfig=[];nzData=[];nzCustomColumn=[];nzPaginationPosition="bottom";nzScroll={x:null,y:null};noDataVirtualHeight="182px";nzPaginationType="default";nzFrontPagination=!0;nzTemplateMode=!1;nzShowPagination=!0;nzLoading=!1;nzOuterBordered=!1;nzLoadingIndicator=w(this,a,null);nzBordered=(w(this,e),w(this,i,!1));nzSize=(w(this,o),w(this,s,"default"));nzShowSizeChanger=(w(this,z),w(this,I,!1));nzHideOnSinglePage=(w(this,$),w(this,de,!1));nzShowQuickJumper=(w(this,le),w(this,pe,!1));nzSimple=(w(this,b),w(this,g,!1));nzPageSizeChange=(w(this,ge),new D);nzPageIndexChange=new D;nzQueryParams=new D;nzCurrentPageDataChange=new D;nzCustomColumnChange=new D;data=[];cdkVirtualScrollViewport;scrollX=null;scrollY=null;theadTemplate=null;tfootTemplate=null;tfootFixed=null;listOfAutoColWidth=[];listOfManualColWidth=[];hasFixLeft=!1;hasFixRight=!1;showPagination=!0;templateMode$=new q(!1);dir="ltr";nzVirtualScrollDirective;nzTableInnerScrollComponent;verticalScrollBarWidth=0;onPageSizeChange(M){this.nzTableDataService.updatePageSize(M)}onPageIndexChange(M){this.nzTableDataService.updatePageIndex(M)}constructor(){jt(zn,()=>this.cdr.markForCheck())}ngOnInit(){let{pageIndexDistinct$:M,pageSizeDistinct$:h,listOfCurrentPageData$:C,total$:he,queryParams$:Oe,listOfCustomColumn$:at}=this.nzTableDataService,{theadTemplate$:lt,tfootTemplate$:rt,tfootFixed$:st,hasFixLeft$:ct,hasFixRight$:wn}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe(_(this.destroyRef)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),Oe.pipe(_(this.destroyRef)).subscribe(this.nzQueryParams),M.pipe(_(this.destroyRef)).subscribe(T=>{T!==this.nzPageIndex&&(this.nzPageIndex=T,this.nzPageIndexChange.next(T))}),h.pipe(_(this.destroyRef)).subscribe(T=>{T!==this.nzPageSize&&(this.nzPageSize=T,this.nzPageSizeChange.next(T))}),he.pipe(_(this.destroyRef),Be(T=>this.nzFrontPagination&&T!==this.nzTotal)).subscribe(T=>{this.nzTotal=T,this.cdr.markForCheck()}),C.pipe(_(this.destroyRef)).subscribe(T=>{this.data=T,this.nzCurrentPageDataChange.next(T),this.cdr.markForCheck()}),at.pipe(_(this.destroyRef)).subscribe(T=>{this.nzCustomColumn=T,this.nzCustomColumnChange.next(T),this.cdr.markForCheck()}),lt.pipe(_(this.destroyRef)).subscribe(T=>{this.theadTemplate=T,this.cdr.markForCheck()}),ae([rt,st]).pipe(_(this.destroyRef)).subscribe(([T,dt])=>{this.tfootTemplate=T,this.tfootFixed=dt,this.cdr.markForCheck()}),ct.pipe(_(this.destroyRef)).subscribe(T=>{this.hasFixLeft=T,this.cdr.markForCheck()}),wn.pipe(_(this.destroyRef)).subscribe(T=>{this.hasFixRight=T,this.cdr.markForCheck()}),ae([he,this.templateMode$]).pipe(Z(([T,dt])=>T===0&&!dt),_(this.destroyRef)).subscribe(T=>{this.nzTableStyleService.setShowEmpty(T)}),this.verticalScrollBarWidth=Ht("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(_(this.destroyRef)).subscribe(T=>{this.listOfAutoColWidth=T,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(_(this.destroyRef)).subscribe(T=>{this.listOfManualColWidth=T,this.cdr.markForCheck()})}ngOnChanges(M){let{nzScroll:h,nzPageIndex:C,nzPageSize:he,nzFrontPagination:Oe,nzData:at,nzCustomColumn:lt,nzWidthConfig:rt,nzNoResult:st,nzTemplateMode:ct}=M;C&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),he&&this.nzTableDataService.updatePageSize(this.nzPageSize),at&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),lt&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Oe&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),h&&this.setScrollOnChanges(),rt&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),ct&&this.templateMode$.next(this.nzTemplateMode),st&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(Z(([M])=>{let{width:h}=M.target.getBoundingClientRect(),C=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(h-C)}),_(this.destroyRef)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}},(()=>{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],n=[X()],l=[X()],y=[X()],Y=[X()],W=[X()],f=[X()],j(null,null,t,{kind:"field",name:"nzLoadingIndicator",static:!1,private:!1,access:{has:h=>"nzLoadingIndicator"in h,get:h=>h.nzLoadingIndicator,set:(h,C)=>{h.nzLoadingIndicator=C}},metadata:M},a,e),j(null,null,n,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:h=>"nzBordered"in h,get:h=>h.nzBordered,set:(h,C)=>{h.nzBordered=C}},metadata:M},i,o),j(null,null,l,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:h=>"nzSize"in h,get:h=>h.nzSize,set:(h,C)=>{h.nzSize=C}},metadata:M},s,z),j(null,null,y,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:h=>"nzShowSizeChanger"in h,get:h=>h.nzShowSizeChanger,set:(h,C)=>{h.nzShowSizeChanger=C}},metadata:M},I,$),j(null,null,Y,{kind:"field",name:"nzHideOnSinglePage",static:!1,private:!1,access:{has:h=>"nzHideOnSinglePage"in h,get:h=>h.nzHideOnSinglePage,set:(h,C)=>{h.nzHideOnSinglePage=C}},metadata:M},de,le),j(null,null,W,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:h=>"nzShowQuickJumper"in h,get:h=>h.nzShowQuickJumper,set:(h,C)=>{h.nzShowQuickJumper=C}},metadata:M},pe,b),j(null,null,f,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:h=>"nzSimple"in h,get:h=>h.nzSimple,set:(h,C)=>{h.nzSimple=C}},metadata:M},g,ge),M&&Object.defineProperty(H,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:M})})(),re(H,"\u0275fac",function(h){return new(h||H)}),re(H,"\u0275cmp",R({type:H,selectors:[["nz-table"]],contentQueries:function(h,C,he){if(h&1&&De(he,Xo,5),h&2){let Oe;A(Oe=L())&&(C.nzVirtualScrollDirective=Oe.first)}},viewQuery:function(h,C){if(h&1&&ne(Ot,5),h&2){let he;A(he=L())&&(C.nzTableInnerScrollComponent=he.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(h,C){h&2&&E("ant-table-wrapper-rtl",C.dir==="rtl")("ant-table-custom-column",C.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",v],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",v],nzShowPagination:[2,"nzShowPagination","nzShowPagination",v],nzLoading:[2,"nzLoading","nzLoading",v],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",v],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",v],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",v],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",v],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",v],nzSimple:[2,"nzSimple","nzSimple",v]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[Et([ve,vt]),J],ngContentSelectors:xe,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","tfootTemplate","tfootFixed","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(h,C){h&1&&(ce(),m(0,"nz-spin",3),S(1,bo,1,1,null,4),m(2,"div",5,0),S(4,To,1,1,"nz-table-title-footer",6),S(5,yo,1,16,"nz-table-inner-scroll",7)(6,wo,1,5,"nz-table-inner-default",8),S(7,vo,1,1,"nz-table-title-footer",9),u(),S(8,Po,1,1,null,4),u(),k(9,Fo,1,1,"ng-template",null,1,ie)(11,No,1,0,"ng-template",null,2,ie)),h&2&&(d("nzDelay",C.nzLoadingDelay)("nzSpinning",C.nzLoading)("nzIndicator",C.nzLoadingIndicator),c(),x(C.nzPaginationPosition==="both"||C.nzPaginationPosition==="top"?1:-1),c(),E("ant-table-rtl",C.dir==="rtl")("ant-table-fixed-header",C.nzData.length&&C.scrollY)("ant-table-fixed-column",C.scrollX)("ant-table-has-fix-left",C.hasFixLeft)("ant-table-has-fix-right",C.hasFixRight)("ant-table-bordered",C.nzBordered)("nz-table-out-bordered",C.nzOuterBordered&&!C.nzBordered)("ant-table-middle",C.nzSize==="middle")("ant-table-small",C.nzSize==="small"),c(2),x(C.nzTitle?4:-1),c(),x(C.scrollY||C.scrollX?5:6),c(2),x(C.nzFooter?7:-1),c(),x(C.nzPaginationPosition==="both"||C.nzPaginationPosition==="bottom"?8:-1))},dependencies:[cn,G,yn,Ot,jo,un,wt],encapsulation:2,changeDetection:0})),H})();var qo=(()=>{class t{destroyRef=p(U);listOfNzThDirective;listOfCellFixedDirective;listOfFixedColumns$=new Q(1);listOfColumns$=new Q(1);listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(ee(e=>be(this.listOfFixedColumns$,...e.map(n=>n.changes$)).pipe(Je(()=>this.listOfFixedColumns$))),_(this.destroyRef));listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Z(e=>e.filter(n=>n.nzLeft!==!1)));listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Z(e=>e.filter(n=>n.nzRight!==!1)));listOfColumnsChanges$=this.listOfColumns$.pipe(ee(e=>be(this.listOfColumns$,...e.map(n=>n.changes$)).pipe(Je(()=>this.listOfColumns$))),_(this.destroyRef));nzTableStyleService=p(ve,{optional:!0});isInsideTable=!!this.nzTableStyleService;ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(me(this.listOfCellFixedDirective),_(this.destroyRef)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(me(this.listOfNzThDirective),_(this.destroyRef)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(e=>{e.forEach(n=>n.setIsLastLeft(n===e[e.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(e=>{e.forEach(n=>n.setIsFirstRight(n===e[0]))}),ae([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(_(this.destroyRef)).subscribe(([e,n])=>{n.forEach((i,o)=>{if(i.isAutoLeft){let s=n.slice(0,o).reduce((y,I)=>y+(I.colspan||I.colSpan||1),0),z=e.slice(0,s).reduce((y,I)=>y+I,0);i.setAutoLeftWidth(`${z}px`)}})}),ae([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(_(this.destroyRef)).subscribe(([e,n])=>{n.forEach((i,o)=>{let l=n[n.length-o-1];if(l.isAutoRight){let z=n.slice(n.length-o,n.length).reduce((I,$)=>I+($.colspan||$.colSpan||1),0),y=e.slice(e.length-z,e.length).reduce((I,$)=>I+$,0);l.setAutoRightWidth(`${y}px`)}})}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["tr",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,i,o){if(n&1&&(De(o,Wo,4),De(o,Bo,4)),n&2){let l;A(l=L())&&(i.listOfNzThDirective=l),A(l=L())&&(i.listOfCellFixedDirective=l)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-row",i.isInsideTable)}})}return t})(),pl=(()=>{class t{nzTableStyleService=p(ve,{optional:!0});nzTableDataService=p(vt,{optional:!0});destroyRef=p(U);el=p(te).nativeElement;renderer=p(ue);isInsideTable=!!this.nzTableStyleService;templateRef;listOfNzTrDirective;listOfNzThAddOnComponent;nzSortOrderChange=new D;ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){let e=this.listOfNzTrDirective.changes.pipe(me(this.listOfNzTrDirective),Z(l=>l&&l.first),_(this.destroyRef)),n=e.pipe(ee(l=>l?l.listOfColumnsChanges$:je));n.subscribe(l=>this.nzTableStyleService.setListOfTh(l)),this.nzTableStyleService.enableAutoMeasure$.pipe(ee(l=>l?n:Pt([]))).pipe(_(this.destroyRef)).subscribe(l=>this.nzTableStyleService.setListOfMeasureColumn(l));let i=e.pipe(ee(l=>l?l.listOfFixedLeftColumnChanges$:je)),o=e.pipe(ee(l=>l?l.listOfFixedRightColumnChanges$:je));i.subscribe(l=>{this.nzTableStyleService.setHasFixLeft(l.length!==0)}),o.subscribe(l=>{this.nzTableStyleService.setHasFixRight(l.length!==0)})}if(this.nzTableDataService){let e=this.listOfNzThAddOnComponent.changes.pipe(me(this.listOfNzThAddOnComponent));e.pipe(ee(()=>be(...this.listOfNzThAddOnComponent.map(o=>o.manualClickOrder$))),_(this.destroyRef)).subscribe(o=>{let l={key:o.nzColumnKey,value:o.sortOrder};this.nzSortOrderChange.emit(l),o.nzSortFn&&o.nzSortPriority===!1&&this.listOfNzThAddOnComponent.filter(s=>s!==o).forEach(s=>s.clearSortOrder())}),e.pipe(ee(o=>be(e,...o.map(l=>l.calcOperatorChange$)).pipe(Je(()=>e))),Z(o=>o.filter(l=>!!l.nzSortFn||!!l.nzFilterFn).map(l=>{let{nzSortFn:s,sortOrder:z,nzFilterFn:y,nzFilterValue:I,nzSortPriority:$,nzColumnKey:Y}=l;return{key:Y,sortFn:s,sortPriority:$,sortOrder:z,filterFn:y,filterValue:I}})),Xe(0),_(this.destroyRef)).subscribe(o=>{this.nzTableDataService?.listOfCalcOperator$.next(o)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.el),this.el)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,i,o){if(n&1&&(De(o,qo,5),De(o,xn,5)),n&2){let l;A(l=L())&&(i.listOfNzTrDirective=l),A(l=L())&&(i.listOfNzThAddOnComponent=l)}},viewQuery:function(n,i){if(n&1&&ne(Io,7),n&2){let o;A(o=L())&&(i.templateRef=o.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:xe,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(ce(),k(0,ko,1,0,"ng-template",null,0,ie),S(2,Ro,1,1,null,1)),n&2&&(c(2),x(i.isInsideTable?-1:2))},dependencies:[G],encapsulation:2,changeDetection:0})}return t})();var hl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t});static \u0275inj=qe({imports:[Yo,xn,Ao,Tn,yn,Ot,Sn,Cn,_n,gn,Qo]})}return t})();export{wt as a,un as b,cl as c,Wo as d,dl as e,Tn as f,Yo as g,qo as h,pl as i,hl as j};
@@ -0,0 +1 @@
1
+ import{a as I,b as E,c as p,f as i,g as v,h as R,o as H}from"./chunk-2NZJ7CN2.js";import{v as w}from"./chunk-KRYMOHYF.js";import{J as f,O as m,e as u,l as h,m as d,na as l,ra as b,sa as g,tb as S,v as o}from"./chunk-4BRW6LCZ.js";var O=class e{constructor(r){this.zone=r}ws;url=i.production===!0?`ws:${window.location.host}/ws`:"ws://127.0.0.1:3210/ws";pending=[];state$=new d("idle");inbound$=new h;reconnectAttempt=0;manualClose=!1;opening=!1;reconnectSub;stateChanges(){return this.state$.asObservable()}messages(){return this.inbound$.asObservable()}connect(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.manualClose=!1,this.open())}close(){this.manualClose=!0,this.cancelReconnect(),this.stopHeartbeat(),this.ws?.close(),this.ws=void 0,this.opening=!1,this.state$.next("closed")}send(r){let s=JSON.stringify(r);this.ws?.readyState===WebSocket.OPEN?this.ws.send(s):this.pending.push(r)}isOpen(){return this.state$.value==="open"}open(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.opening=!0,this.state$.next("connecting"),this.cancelReconnect(),this.zone.runOutsideAngular(()=>{let r=new WebSocket(this.url);this.ws=r,r.onopen=()=>{this.reconnectAttempt=0,this.opening=!1,this.cancelReconnect(),this.pending.splice(0).forEach(n=>this.send(n)),this.zone.run(()=>this.state$.next("open")),this.startHeartbeat()},r.onmessage=s=>{let n;try{n=JSON.parse(s.data)}catch{return}this.zone.run(()=>this.inbound$.next(n))},r.onerror=()=>{this.zone.run(()=>this.state$.next("error"));try{r.close()}catch{}},r.onclose=()=>{this.opening=!1,this.ws=void 0,this.stopHeartbeat(),this.zone.run(()=>this.state$.next("closed")),this.manualClose||this.scheduleReconnect()}}))}heartbeatTimer;startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.send({op:"ping"})},2e4)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0)}scheduleReconnect(){if(this.reconnectSub)return;this.reconnectAttempt++;let r=Math.min(1e3*Math.pow(2,this.reconnectAttempt),15e3);this.reconnectSub=f(r).subscribe(()=>{this.reconnectSub=void 0,!this.manualClose&&this.open()})}cancelReconnect(){this.reconnectSub?.unsubscribe(),this.reconnectSub=void 0}static \u0275fac=function(s){return new(s||e)(b(S))};static \u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"})};var a=u(I());var N=u(H());function c(e){return typeof e=="object"&&e!==null}function W(e){if(c(e.error)){let r=e.error.error,s=c(r)?r:void 0,n=p(e.error.code);if(n!==void 0)return n;let t=p(s?.code);if(t!==void 0)return t}return e.status===0?E.HTTP_ERROR:e.status===401?a.GlobalErrorCodes.UNAUTHORIZED:a.GlobalErrorCodes.INTERNAL_ERROR}function T(e){if(c(e.error)){let r=e.error.error,n=(c(r)?r:void 0)?.message;if(typeof n=="string"&&n.trim())return n;let t=e.error.message;if(typeof t=="string"&&t.trim())return t}return typeof e.message=="string"&&e.message.trim()?e.message:"\u8BF7\u6C42\u5931\u8D25"}var X=(e,r)=>{let s=g(v),n=N.uniqueId("req-");return e=e.clone({setHeaders:{"X-Request-Id":n}}),r(e).pipe(m(t=>{if(i.production||console.error(`[HTTP][${n}] Error:`,t),t instanceof R)return s.dispatch(t.code,t.message,t.details),o(()=>t);if(t instanceof w){let C=W(t),y=T(t);return s.dispatch(C,y,t.error),o(()=>t)}let x=t instanceof Error?t.message:"\u672A\u77E5\u9519\u8BEF";return s.dispatch(a.GlobalErrorCodes.INTERNAL_ERROR,x,t),o(()=>t)}))};export{O as a,X as b};
@@ -0,0 +1 @@
1
+ import{a as Y,b as Z,c as $,d as ee,e as te}from"./chunk-DIJPUYIA.js";import{d as Q,e as U,f as X}from"./chunk-3XNNQFWR.js";import{b as P,c as W,e as H}from"./chunk-YNW4HEJO.js";import"./chunk-AV2ZODEH.js";import{k as J}from"./chunk-2NZJ7CN2.js";import{Fb as A,Hb as L,Ib as I,Kb as V,Lb as j,Mb as O,Pa as w,Qa as D,Sa as T,Ta as x,Tb as K,Vb as R,ac as q,dc as G}from"./chunk-3CM4SKDO.js";import"./chunk-HFZLJHYR.js";import"./chunk-WUA5JFDD.js";import{n as B}from"./chunk-KRYMOHYF.js";import{$b as M,Fb as F,Gc as E,Ha as b,Jc as u,Kc as S,Oc as p,Pc as c,Qc as d,Wb as h,Yb as z,ac as _,bc as m,cc as o,dc as a,ec as k,na as C,nb as s,rc as v,sa as g,uc as N,z as y}from"./chunk-4BRW6LCZ.js";var f=class i{api=g(J);submit(r){return this.api.post("/api/hub/feedback",r)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})};var oe=["class","component"],ae=(i,r)=>r.value;function re(i,r){if(i&1&&k(0,"nz-option",5),i&2){let t=r.$implicit;m("nzLabel",t.label)("nzValue",t.value)}}function se(i,r){if(i&1&&(o(0,"p",11),u(1),a()),i&2){let t=N();E("error",t.submitType()==="error"),s(),S(t.submitMessage())}}var ne=class i{feedbackApi=g(f);version="0.1.12";categoryOptions=[{label:"\u95EE\u9898\u53CD\u9988",value:"bug"},{label:"\u529F\u80FD\u5EFA\u8BAE",value:"suggestion"},{label:"\u65B0\u529F\u80FD\u9700\u6C42",value:"feature"},{label:"\u5176\u4ED6",value:"other"}];category="suggestion";title="";content="";contact="";submitting=b(!1);submitMessage=b("");submitType=b("success");async submitFeedback(){let r=this.title.trim(),t=this.content.trim(),e=this.contact.trim();if(!r){this.submitType.set("error"),this.submitMessage.set("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!t){this.submitType.set("error"),this.submitMessage.set("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}this.submitting.set(!0),this.submitMessage.set("");try{await y(this.feedbackApi.submit({projectKey:"prj_kmf73us77x0r1z4b3g76soc5",category:this.category,title:r,content:t,contact:e||void 0,clientName:"ng-manager-webapp",clientVersion:"0.1.12",osInfo:typeof navigator>"u"?"unknown":navigator.userAgent})),this.submitType.set("success"),this.submitMessage.set("\u53CD\u9988\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u4F60\u7684\u5EFA\u8BAE\u3002"),this.title="",this.content="",this.contact="",this.category="suggestion"}catch(l){this.submitType.set("error"),this.submitMessage.set(l?.message||"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002")}finally{this.submitting.set(!1)}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=F({type:i,selectors:[["app-feedback",8,"component"]],attrs:oe,decls:30,vars:15,consts:[[3,"title"],[1,"feedback-block"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],["nzRequired",""],["name","category",3,"ngModelChange","ngModel","disabled"],[3,"nzLabel","nzValue"],["nz-input","","name","title","placeholder","\u8BF7\u7B80\u8981\u63CF\u8FF0\u4F60\u7684\u95EE\u9898\u6216\u5EFA\u8BAE",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-input","","name","content","rows","5","placeholder","\u8BF7\u8865\u5145\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u4FBF\u4E8E\u6211\u4EEC\u5B9A\u4F4D\u95EE\u9898",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-input","","name","contact","placeholder","\u90AE\u7BB1\u3001IM \u6216\u5176\u4ED6\u8054\u7CFB\u65B9\u5F0F\uFF08\u9009\u586B\uFF09",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-button","","nzType","primary",3,"nzLoading","disabled"],[1,"submit-tip",3,"error"],[1,"submit-tip"]],template:function(t,e){t&1&&(o(0,"app-page-layout",0)(1,"div",1)(2,"h3"),u(3,"\u7528\u6237\u53CD\u9988"),a(),o(4,"form",2),v("ngSubmit",function(){return e.submitFeedback()}),o(5,"nz-form-item")(6,"nz-form-label",3),u(7,"\u53CD\u9988\u7C7B\u578B"),a(),o(8,"nz-form-control")(9,"nz-select",4),d("ngModelChange",function(n){return c(e.category,n)||(e.category=n),n}),M(10,re,1,2,"nz-option",5,ae),a()()(),o(12,"nz-form-item")(13,"nz-form-label",3),u(14,"\u6807\u9898"),a(),o(15,"nz-form-control")(16,"input",6),d("ngModelChange",function(n){return c(e.title,n)||(e.title=n),n}),a()()(),o(17,"nz-form-item")(18,"nz-form-label",3),u(19,"\u5185\u5BB9"),a(),o(20,"nz-form-control")(21,"textarea",7),d("ngModelChange",function(n){return c(e.content,n)||(e.content=n),n}),a()()(),o(22,"nz-form-item")(23,"nz-form-label"),u(24,"\u8054\u7CFB\u65B9\u5F0F"),a(),o(25,"nz-form-control")(26,"input",8),d("ngModelChange",function(n){return c(e.contact,n)||(e.contact=n),n}),a()()(),o(27,"button",9),u(28," \u63D0\u4EA4\u53CD\u9988 "),a()(),h(29,se,2,3,"p",10),a()()),t&2&&(m("title","\u7528\u6237\u53CD\u9988"),s(9),p("ngModel",e.category),m("disabled",e.submitting()),s(),_(e.categoryOptions),s(6),p("ngModel",e.title),m("maxlength",120)("disabled",e.submitting()),s(5),p("ngModel",e.content),m("maxlength",5e3)("disabled",e.submitting()),s(5),p("ngModel",e.contact),m("maxlength",120)("disabled",e.submitting()),s(),m("nzLoading",e.submitting())("disabled",e.submitting()),s(2),z(e.submitMessage()?29:-1))},dependencies:[B,R,O,A,L,I,K,j,V,te,W,P,Z,Y,ee,$,G,q,X,Q,U,x,T,w,D,H],styles:[".feedback-block[_ngcontent-%COMP%]{margin-top:24px;padding-top:16px;border-top:1px solid #f0f0f0;max-width:720px}.submit-tip[_ngcontent-%COMP%]{margin-top:12px;color:#389e0d}.submit-tip.error[_ngcontent-%COMP%]{color:#cf1322}"]})};export{ne as FeedbackComponent};