@knoflows/engine 0.1.0-alpha.16 → 0.1.0-alpha.17

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 (47) hide show
  1. package/dist/engine.js +19 -19
  2. package/package.json +3 -3
  3. package/static/assets/i18n/en.json +1 -0
  4. package/static/assets/i18n/es.json +1 -0
  5. package/static/{chunk-NZ-CPWJ2.js → chunk-9iLiX6s9.js} +1 -1
  6. package/static/{chunk-CecXf-CU.js → chunk-B1ctXsPE.js} +1 -1
  7. package/static/{chunk-bCuvpgQS.js → chunk-BCVM7LpT.js} +1 -1
  8. package/static/{chunk-B2Xol2Un.js → chunk-BDJQdoLK.js} +1 -1
  9. package/static/{chunk-DfcFBVF4.js → chunk-BHl7Qe4I.js} +1 -1
  10. package/static/{chunk-Bgl02GNl.js → chunk-BIvdnqHD.js} +1 -1
  11. package/static/{chunk-HUIPNwd9.js → chunk-BKICOySu.js} +1 -1
  12. package/static/{chunk-Dv5GyY6h.js → chunk-BifCfczc.js} +1 -1
  13. package/static/{chunk-BhF-m2HP.js → chunk-BjQMmcp2.js} +1 -1
  14. package/static/{chunk-Dp4H7MY0.js → chunk-Bwjn3y5m.js} +1 -1
  15. package/static/{chunk-C0HCwfa5.js → chunk-C73FUXq8.js} +1 -1
  16. package/static/{chunk-9U0WIegY.js → chunk-C9wrgS_q.js} +1 -1
  17. package/static/{chunk-BhTujCrk.js → chunk-CID_DKHO.js} +1 -1
  18. package/static/{chunk-CeywzbyD.js → chunk-CN3wKZOB.js} +1 -1
  19. package/static/{chunk-Cg2E0vnT.js → chunk-CQOTdAZb.js} +1 -1
  20. package/static/{chunk-Fwpw-z7T.js → chunk-CaN6B9M_.js} +1 -1
  21. package/static/{chunk-iE460Kz5.js → chunk-ChofVXdQ.js} +1 -1
  22. package/static/{chunk-DGC4TkAL.js → chunk-CuMWfPIh.js} +1 -1
  23. package/static/{chunk-Bu6_39Nh.js → chunk-CvXwIrKe.js} +1 -1
  24. package/static/{chunk-DUkiyf7y.js → chunk-D-NkClC5.js} +1 -1
  25. package/static/{chunk-Th9whP36.js → chunk-D8gvcRpT.js} +1 -1
  26. package/static/{chunk-B7WkIFy0.js → chunk-DEGtd3B-.js} +1 -1
  27. package/static/{chunk-Edaw7VGW.js → chunk-DEfYLuNM.js} +1 -1
  28. package/static/{chunk-CRv0PDB7.js → chunk-DFJPjl29.js} +1 -1
  29. package/static/{chunk-B0kZCuEt.js → chunk-DH_EwOze.js} +1 -1
  30. package/static/{chunk-CenXuPs5.js → chunk-DMO51-bi.js} +1 -1
  31. package/static/{chunk-z2vvQAle.js → chunk-DPfPY82u.js} +1 -1
  32. package/static/{chunk-DYzSLsNo.js → chunk-DVfH_gtr.js} +1 -1
  33. package/static/{chunk-CRdEWPUM.js → chunk-DaXqAFL1.js} +1 -1
  34. package/static/{chunk-C2BVYtVN.js → chunk-Darhf4Mc.js} +2 -2
  35. package/static/{chunk-BW9BdLk-.js → chunk-Dbi2Cgba.js} +1 -1
  36. package/static/chunk-DkiTgkyJ.js +5 -0
  37. package/static/{chunk-yoe_30RI.js → chunk-GVGHSEm1.js} +1 -1
  38. package/static/{chunk-C7h8oMzu.js → chunk-JnLpFByq.js} +1 -1
  39. package/static/{chunk-DZJZYEZl.js → chunk-LeZgxxmQ.js} +1 -1
  40. package/static/{chunk-FOJfn_t9.js → chunk-b67RbqkY.js} +1 -1
  41. package/static/{chunk-DtQtDE8q.js → chunk-mzNzLBkE.js} +1 -1
  42. package/static/chunk-oT_2rlWK.js +1 -0
  43. package/static/{chunk-CsQ_HDGC.js → chunk-ov4Fshx3.js} +1 -1
  44. package/static/index.html +1 -1
  45. package/static/{main-CHQMTVIP.js → main-CL3L2RPE.js} +1 -1
  46. package/static/chunk-DixyYfV_.js +0 -1
  47. package/static/chunk-p6dftaf8.js +0 -5
@@ -1,4 +1,4 @@
1
- import {N as Nt,K as Ke}from'./chunk-Edaw7VGW.js';import {G as Gn,u as un}from'./chunk-Dp4H7MY0.js';import {a as ai$1,z}from'./chunk-B2Xol2Un.js';import {f}from'./chunk-CeywzbyD.js';import {L as Lt}from'./chunk-CecXf-CU.js';import {x,h,b,I,w,T,_,k,E,v,D,H,A as A$1,C as C$1,P,J}from'./chunk-9U0WIegY.js';import {b as bg,J as J_,p as py,f as fy,M as M_,T as T_}from'./chunk-C2BVYtVN.js';import {W as W$1,I as I$1}from'./chunk-iE460Kz5.js';import'./chunk-BhTujCrk.js';import'./chunk-Cg2E0vnT.js';import {C,a as C1,R as J1,$,V as Ve,b as at$1,S as p,q as qo,U as Uw,u as ue,T as id,W as qw,c as bi$1,Z as ZE,d as $8,X as M5,v as v3,Y as pf,a0 as bd,a1 as sp$1,a2 as fp$1,a3 as Ah,a4 as Th,K as Kt,j as _i$1,l as _D,J as Jc$1,o as gI,M as MD,a5 as q0,a6 as U0,s,r as r$1,I as Iw,P as Pw,L as Lh,p as Fw,H as HD,G as FD,m as mh,n as uh,w as lh,D as ch,a7 as KE,a8 as fu,a9 as Z0,aa as oe$1,ab as Oe,ac as Er$1,ad as jr$1,ae as Le$1,af as H$1,ag as Ql$1,ah as zg,ai as ly,aj as $D,ak as UD,al as Sh,am as Ih,an as WD,ao as GD,ap as re$1,aq as el$1,ar as sn,as as st,at as Ee$1,au as w5,av as K0,aw as rh,ax as Eh,ay as n6,z as rl$1,O as Fu,Q as ju,az as jw,E as Aw,x as xD,B as AD,aA as mT,aB as yT,aC as zt$1,aD as Nr$1,aE as J0,aF as $r$1,aG as lw,aH as QD,aI as kw,aJ as tl$1,aK as nl$1,aL as Fh,aM as Yl$1,t as t$1,aN as Yu,aO as SD,aP as Mh,aQ as aw,aR as xw,aS as v$1,aT as Vw,aU as vv}from'./main-CHQMTVIP.js';var Ds=t=>({$implicit:t});function Ps(t,n){if(t&1&&uh(0,"nz-icon",3),t&2){let e=HD(3);lh("nzType",e.icon);}}function As(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=n.$implicit,i=HD(4);gI(),rl$1(" ",e(i.nzPercent)," ");}}function Ms(t,n){if(t&1&&rh(0,As,2,1,"ng-container",4),t&2){let e=HD(3);lh("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Aw(2,Ds,e.nzPercent));}}function Os(t,n){if(t&1&&(_i$1(0,"span",2),_D(1,Ps,1,1,"nz-icon",3)(2,Ms,1,4,"ng-container"),Jc$1()),t&2){let e=HD(2);gI(),MD((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2);}}function Ns(t,n){if(t&1&&_D(0,Os,3,1,"span",2),t&2){let e=HD();MD(e.nzShowInfo?0:-1);}}function Ls(t,n){if(t&1&&uh(0,"div",8),t&2){let e=n.$implicit;aw(e);}}function js(t,n){}function $s(t,n){if(t&1&&(_i$1(0,"div",5),xD(1,Ls,1,2,"div",6,SD),rh(3,js,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(2),i=QD(1);gI(),AD(e.steps),gI(2),lh("ngTemplateOutlet",i);}}function Ws(t,n){if(t&1&&uh(0,"div",13),t&2){let e=HD(3);Mh("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px");}}function Fs(t,n){}function Bs(t,n){if(t&1&&(_i$1(0,"div",9)(1,"div",10),uh(2,"div",11),_D(3,Ws,1,6,"div",12),Jc$1()(),rh(4,Fs,0,0,"ng-template",7)),t&2){let e=HD(2),i=QD(1);gI(2),Mh("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),gI(),MD(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),gI(),lh("ngTemplateOutlet",i);}}function Js(t,n){if(t&1&&(_i$1(0,"div"),_D(1,$s,4,1,"div",5)(2,Bs,5,12),Jc$1()),t&2){let e=HD();gI(),MD(e.isSteps?1:2);}}function Vs(t,n){if(t&1&&(Yu(),uh(0,"stop")),t&2){let e=n.$implicit;ch("offset",e.offset)("stop-color",e.color);}}function Gs(t,n){if(t&1&&(Yu(),_i$1(0,"defs")(1,"linearGradient",17),xD(2,Vs,1,2,":svg:stop",null,SD),Jc$1()()),t&2){let e=HD(2);gI(),lh("id","gradient-"+e.gradientId),gI(),AD(e.circleGradient);}}function Us(t,n){if(t&1&&(Yu(),uh(0,"path",18)),t&2){let e=n.$implicit,i=HD(2);aw(e.strokePathStyle),ch("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0);}}function qs(t,n){}function Hs(t,n){if(t&1&&(_i$1(0,"div",10),Yu(),_i$1(1,"svg",14),_D(2,Gs,4,1,":svg:defs"),uh(3,"path",15),xD(4,Us,1,6,":svg:path",16,SD),Jc$1(),rh(6,qs,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(),i=QD(1);Mh("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),Sh("ant-progress-circle-gradient",e.isGradient),gI(2),MD(e.isGradient?2:-1),gI(),aw(e.trailPathStyle),ch("stroke-width",e.strokeWidth)("d",e.pathString),gI(),AD(e.progressCirclePath),gI(2),lh("ngTemplateOutlet",i);}}function Qs(t){return +t.replace("%","")}var sr=t=>{let n=[];return Object.keys(t).forEach(e=>{let i=t[e],o=Qs(e);isNaN(o)||n.push({key:o,value:i});}),n=n.sort((e,i)=>e.key-i.key),n},Ys=t=>sr(t).map(({key:n,value:e})=>({offset:`${n}%`,color:e})),Zs=t=>{let r=t,{from:n="#1890ff",to:e="#1890ff",direction:i="to right"}=r,o=t$1(r,["from","to","direction"]);if(Object.keys(o).length!==0){let a=sr(o).map(({key:l,value:h})=>`${h} ${l}%`).join(", ");return `linear-gradient(${i}, ${a})`}return `linear-gradient(${i}, ${n}, ${e})`},Xs=0,or="progress",Ks=new Map([["success","check"],["exception","close"]]),ea=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),ta=t=>`${t}%`,ai=(()=>{let t,n=[],e=[],i,o=[],r=[],a,l=[],h=[],g,v=[],S=[],P,te=[],$=[],se,Re=[],we=[],ye,Ke=[],Je=[];return class si{static{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Yl$1()],i=[Yl$1()],a=[Yl$1()],g=[Yl$1()],P=[Yl$1()],se=[Yl$1()],ye=[Yl$1()],mT(null,null,t,{kind:"field",name:"nzShowInfo",static:false,private:false,access:{has:b=>"nzShowInfo"in b,get:b=>b.nzShowInfo,set:(b,L)=>{b.nzShowInfo=L;}},metadata:M},n,e),mT(null,null,i,{kind:"field",name:"nzStrokeColor",static:false,private:false,access:{has:b=>"nzStrokeColor"in b,get:b=>b.nzStrokeColor,set:(b,L)=>{b.nzStrokeColor=L;}},metadata:M},o,r),mT(null,null,a,{kind:"field",name:"nzSize",static:false,private:false,access:{has:b=>"nzSize"in b,get:b=>b.nzSize,set:(b,L)=>{b.nzSize=L;}},metadata:M},l,h),mT(null,null,g,{kind:"field",name:"nzStrokeWidth",static:false,private:false,access:{has:b=>"nzStrokeWidth"in b,get:b=>b.nzStrokeWidth,set:(b,L)=>{b.nzStrokeWidth=L;}},metadata:M},v,S),mT(null,null,P,{kind:"field",name:"nzGapDegree",static:false,private:false,access:{has:b=>"nzGapDegree"in b,get:b=>b.nzGapDegree,set:(b,L)=>{b.nzGapDegree=L;}},metadata:M},te,$),mT(null,null,se,{kind:"field",name:"nzGapPosition",static:false,private:false,access:{has:b=>"nzGapPosition"in b,get:b=>b.nzGapPosition,set:(b,L)=>{b.nzGapPosition=L;}},metadata:M},Re,we),mT(null,null,ye,{kind:"field",name:"nzStrokeLinecap",static:false,private:false,access:{has:b=>"nzStrokeLinecap"in b,get:b=>b.nzStrokeLinecap,set:(b,L)=>{b.nzStrokeLinecap=L;}},metadata:M},Ke,Je),M&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:M});}_nzModuleName=or;cdr=C(Z0);dir=C(Oe).valueSignal;nzShowInfo=yT(this,n,true);nzWidth=(yT(this,e),132);nzStrokeColor=yT(this,o,void 0);nzSize=(yT(this,r),yT(this,l,"default"));nzFormat=yT(this,h);nzSuccessPercent;nzPercent=0;nzStrokeWidth=yT(this,v,void 0);nzGapDegree=(yT(this,S),yT(this,te,void 0));nzStatus=yT(this,$);nzType="line";nzGapPosition=yT(this,Re,"top");nzStrokeLinecap=(yT(this,we),yT(this,Ke,"round"));nzSteps=(yT(this,Je),0);steps=[];lineGradient=null;isGradient=false;isSteps=false;gradientId=Xs++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;get formatter(){return this.nzFormat||ta}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){zt$1(or,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths();});}ngOnChanges(M){let{nzSteps:b,nzGapPosition:L,nzStrokeLinecap:fe,nzStrokeColor:B,nzGapDegree:de,nzType:De,nzStatus:Pe,nzPercent:ae,nzSuccessPercent:et,nzStrokeWidth:Ae}=M;Pe&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ae||et)&&(parseInt(this.nzPercent.toString(),10)>=100?(Nr$1(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(Pe||ae||et||B)&&this.updateIcon(),B&&this.setStrokeColor(),(L||fe||de||De||ae||B||B)&&this.getCirclePaths(),(ae||b||Ae)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps());}updateIcon(){let M=Ks.get(this.status);this.icon=M?M+(this.isCircleStyle?"-o":"-circle-fill"):"";}getSteps(){let M=Math.floor(this.nzSteps*(this.nzPercent/100)),b=this.nzSize==="small"?2:14,L=[];for(let fe=0;fe<this.nzSteps;fe++){let B;fe<=M-1&&(B=this.nzStrokeColor);let de={backgroundColor:`${B}`,width:`${b}px`,height:`${this.strokeWidth}px`};L.push(de);}this.steps=L;}getCirclePaths(){if(!this.isCircleStyle)return;let M=Nr$1(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],b=50-this.strokeWidth/2,L=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),fe=Math.PI*2*b,B=this.nzGapDegree||(this.nzType==="circle"?0:75),de=0,De=-b,Pe=0,ae=b*-2;switch(L){case "left":de=-b,De=0,Pe=b*2,ae=0;break;case "right":de=b,De=0,Pe=b*-2,ae=0;break;case "bottom":De=b,ae=b*2;break;}this.pathString=`M 50,50 m ${de},${De}
1
+ import {N as Nt,K as Ke}from'./chunk-DEfYLuNM.js';import {G as Gn,u as un}from'./chunk-Bwjn3y5m.js';import {a as ai$1,z}from'./chunk-BDJQdoLK.js';import {f}from'./chunk-CN3wKZOB.js';import {L as Lt}from'./chunk-B1ctXsPE.js';import {x,h,b,I,w,T,_,k,E,v,D,H,A as A$1,C as C$1,P,J}from'./chunk-C9wrgS_q.js';import {b as bg,J as J_,p as py,f as fy,M as M_,T as T_}from'./chunk-Darhf4Mc.js';import {W as W$1,I as I$1}from'./chunk-ChofVXdQ.js';import'./chunk-CID_DKHO.js';import'./chunk-CQOTdAZb.js';import {C,a as C1,R as J1,$,V as Ve,b as at$1,S as p,q as qo,U as Uw,u as ue,T as id,W as qw,c as bi$1,Z as ZE,d as $8,X as M5,v as v3,Y as pf,a0 as bd,a1 as sp$1,a2 as fp$1,a3 as Ah,a4 as Th,K as Kt,j as _i$1,l as _D,J as Jc$1,o as gI,M as MD,a5 as q0,a6 as U0,s,r as r$1,I as Iw,P as Pw,L as Lh,p as Fw,H as HD,G as FD,m as mh,n as uh,w as lh,D as ch,a7 as KE,a8 as fu,a9 as Z0,aa as oe$1,ab as Oe,ac as Er$1,ad as jr$1,ae as Le$1,af as H$1,ag as Ql$1,ah as zg,ai as ly,aj as $D,ak as UD,al as Sh,am as Ih,an as WD,ao as GD,ap as re$1,aq as el$1,ar as sn,as as st,at as Ee$1,au as w5,av as K0,aw as rh,ax as Eh,ay as n6,z as rl$1,O as Fu,Q as ju,az as jw,E as Aw,x as xD,B as AD,aA as mT,aB as yT,aC as zt$1,aD as Nr$1,aE as J0,aF as $r$1,aG as lw,aH as QD,aI as kw,aJ as tl$1,aK as nl$1,aL as Fh,aM as Yl$1,t as t$1,aN as Yu,aO as SD,aP as Mh,aQ as aw,aR as xw,aS as v$1,aT as Vw,aU as vv}from'./main-CL3L2RPE.js';var Ds=t=>({$implicit:t});function Ps(t,n){if(t&1&&uh(0,"nz-icon",3),t&2){let e=HD(3);lh("nzType",e.icon);}}function As(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=n.$implicit,i=HD(4);gI(),rl$1(" ",e(i.nzPercent)," ");}}function Ms(t,n){if(t&1&&rh(0,As,2,1,"ng-container",4),t&2){let e=HD(3);lh("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Aw(2,Ds,e.nzPercent));}}function Os(t,n){if(t&1&&(_i$1(0,"span",2),_D(1,Ps,1,1,"nz-icon",3)(2,Ms,1,4,"ng-container"),Jc$1()),t&2){let e=HD(2);gI(),MD((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2);}}function Ns(t,n){if(t&1&&_D(0,Os,3,1,"span",2),t&2){let e=HD();MD(e.nzShowInfo?0:-1);}}function Ls(t,n){if(t&1&&uh(0,"div",8),t&2){let e=n.$implicit;aw(e);}}function js(t,n){}function $s(t,n){if(t&1&&(_i$1(0,"div",5),xD(1,Ls,1,2,"div",6,SD),rh(3,js,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(2),i=QD(1);gI(),AD(e.steps),gI(2),lh("ngTemplateOutlet",i);}}function Ws(t,n){if(t&1&&uh(0,"div",13),t&2){let e=HD(3);Mh("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px");}}function Fs(t,n){}function Bs(t,n){if(t&1&&(_i$1(0,"div",9)(1,"div",10),uh(2,"div",11),_D(3,Ws,1,6,"div",12),Jc$1()(),rh(4,Fs,0,0,"ng-template",7)),t&2){let e=HD(2),i=QD(1);gI(2),Mh("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),gI(),MD(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),gI(),lh("ngTemplateOutlet",i);}}function Js(t,n){if(t&1&&(_i$1(0,"div"),_D(1,$s,4,1,"div",5)(2,Bs,5,12),Jc$1()),t&2){let e=HD();gI(),MD(e.isSteps?1:2);}}function Vs(t,n){if(t&1&&(Yu(),uh(0,"stop")),t&2){let e=n.$implicit;ch("offset",e.offset)("stop-color",e.color);}}function Gs(t,n){if(t&1&&(Yu(),_i$1(0,"defs")(1,"linearGradient",17),xD(2,Vs,1,2,":svg:stop",null,SD),Jc$1()()),t&2){let e=HD(2);gI(),lh("id","gradient-"+e.gradientId),gI(),AD(e.circleGradient);}}function Us(t,n){if(t&1&&(Yu(),uh(0,"path",18)),t&2){let e=n.$implicit,i=HD(2);aw(e.strokePathStyle),ch("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0);}}function qs(t,n){}function Hs(t,n){if(t&1&&(_i$1(0,"div",10),Yu(),_i$1(1,"svg",14),_D(2,Gs,4,1,":svg:defs"),uh(3,"path",15),xD(4,Us,1,6,":svg:path",16,SD),Jc$1(),rh(6,qs,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(),i=QD(1);Mh("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),Sh("ant-progress-circle-gradient",e.isGradient),gI(2),MD(e.isGradient?2:-1),gI(),aw(e.trailPathStyle),ch("stroke-width",e.strokeWidth)("d",e.pathString),gI(),AD(e.progressCirclePath),gI(2),lh("ngTemplateOutlet",i);}}function Qs(t){return +t.replace("%","")}var sr=t=>{let n=[];return Object.keys(t).forEach(e=>{let i=t[e],o=Qs(e);isNaN(o)||n.push({key:o,value:i});}),n=n.sort((e,i)=>e.key-i.key),n},Ys=t=>sr(t).map(({key:n,value:e})=>({offset:`${n}%`,color:e})),Zs=t=>{let r=t,{from:n="#1890ff",to:e="#1890ff",direction:i="to right"}=r,o=t$1(r,["from","to","direction"]);if(Object.keys(o).length!==0){let a=sr(o).map(({key:l,value:h})=>`${h} ${l}%`).join(", ");return `linear-gradient(${i}, ${a})`}return `linear-gradient(${i}, ${n}, ${e})`},Xs=0,or="progress",Ks=new Map([["success","check"],["exception","close"]]),ea=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),ta=t=>`${t}%`,ai=(()=>{let t,n=[],e=[],i,o=[],r=[],a,l=[],h=[],g,v=[],S=[],P,te=[],$=[],se,Re=[],we=[],ye,Ke=[],Je=[];return class si{static{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Yl$1()],i=[Yl$1()],a=[Yl$1()],g=[Yl$1()],P=[Yl$1()],se=[Yl$1()],ye=[Yl$1()],mT(null,null,t,{kind:"field",name:"nzShowInfo",static:false,private:false,access:{has:b=>"nzShowInfo"in b,get:b=>b.nzShowInfo,set:(b,L)=>{b.nzShowInfo=L;}},metadata:M},n,e),mT(null,null,i,{kind:"field",name:"nzStrokeColor",static:false,private:false,access:{has:b=>"nzStrokeColor"in b,get:b=>b.nzStrokeColor,set:(b,L)=>{b.nzStrokeColor=L;}},metadata:M},o,r),mT(null,null,a,{kind:"field",name:"nzSize",static:false,private:false,access:{has:b=>"nzSize"in b,get:b=>b.nzSize,set:(b,L)=>{b.nzSize=L;}},metadata:M},l,h),mT(null,null,g,{kind:"field",name:"nzStrokeWidth",static:false,private:false,access:{has:b=>"nzStrokeWidth"in b,get:b=>b.nzStrokeWidth,set:(b,L)=>{b.nzStrokeWidth=L;}},metadata:M},v,S),mT(null,null,P,{kind:"field",name:"nzGapDegree",static:false,private:false,access:{has:b=>"nzGapDegree"in b,get:b=>b.nzGapDegree,set:(b,L)=>{b.nzGapDegree=L;}},metadata:M},te,$),mT(null,null,se,{kind:"field",name:"nzGapPosition",static:false,private:false,access:{has:b=>"nzGapPosition"in b,get:b=>b.nzGapPosition,set:(b,L)=>{b.nzGapPosition=L;}},metadata:M},Re,we),mT(null,null,ye,{kind:"field",name:"nzStrokeLinecap",static:false,private:false,access:{has:b=>"nzStrokeLinecap"in b,get:b=>b.nzStrokeLinecap,set:(b,L)=>{b.nzStrokeLinecap=L;}},metadata:M},Ke,Je),M&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:M});}_nzModuleName=or;cdr=C(Z0);dir=C(Oe).valueSignal;nzShowInfo=yT(this,n,true);nzWidth=(yT(this,e),132);nzStrokeColor=yT(this,o,void 0);nzSize=(yT(this,r),yT(this,l,"default"));nzFormat=yT(this,h);nzSuccessPercent;nzPercent=0;nzStrokeWidth=yT(this,v,void 0);nzGapDegree=(yT(this,S),yT(this,te,void 0));nzStatus=yT(this,$);nzType="line";nzGapPosition=yT(this,Re,"top");nzStrokeLinecap=(yT(this,we),yT(this,Ke,"round"));nzSteps=(yT(this,Je),0);steps=[];lineGradient=null;isGradient=false;isSteps=false;gradientId=Xs++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;get formatter(){return this.nzFormat||ta}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){zt$1(or,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths();});}ngOnChanges(M){let{nzSteps:b,nzGapPosition:L,nzStrokeLinecap:fe,nzStrokeColor:B,nzGapDegree:de,nzType:De,nzStatus:Pe,nzPercent:ae,nzSuccessPercent:et,nzStrokeWidth:Ae}=M;Pe&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ae||et)&&(parseInt(this.nzPercent.toString(),10)>=100?(Nr$1(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(Pe||ae||et||B)&&this.updateIcon(),B&&this.setStrokeColor(),(L||fe||de||De||ae||B||B)&&this.getCirclePaths(),(ae||b||Ae)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps());}updateIcon(){let M=Ks.get(this.status);this.icon=M?M+(this.isCircleStyle?"-o":"-circle-fill"):"";}getSteps(){let M=Math.floor(this.nzSteps*(this.nzPercent/100)),b=this.nzSize==="small"?2:14,L=[];for(let fe=0;fe<this.nzSteps;fe++){let B;fe<=M-1&&(B=this.nzStrokeColor);let de={backgroundColor:`${B}`,width:`${b}px`,height:`${this.strokeWidth}px`};L.push(de);}this.steps=L;}getCirclePaths(){if(!this.isCircleStyle)return;let M=Nr$1(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],b=50-this.strokeWidth/2,L=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),fe=Math.PI*2*b,B=this.nzGapDegree||(this.nzType==="circle"?0:75),de=0,De=-b,Pe=0,ae=b*-2;switch(L){case "left":de=-b,De=0,Pe=b*2,ae=0;break;case "right":de=b,De=0,Pe=b*-2,ae=0;break;case "bottom":De=b,ae=b*2;break;}this.pathString=`M 50,50 m ${de},${De}
2
2
  a ${b},${b} 0 1 1 ${Pe},${-ae}
3
3
  a ${b},${b} 0 1 1 ${-Pe},${ae}`,this.trailPathStyle={strokeDasharray:`${fe-B}px ${fe}px`,strokeDashoffset:`-${B/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=M.map((et,Ae)=>{let Dt=M.length===2&&Ae===0;return {stroke:this.isGradient&&!Dt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Dt?ea.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(et||0)/100*(fe-B)}px ${fe}px`,strokeDashoffset:`-${B/2}px`}}}).reverse();}setStrokeColor(){let M=this.nzStrokeColor,b=this.isGradient=!!M&&typeof M!="string";b&&!this.isCircleStyle?this.lineGradient=Zs(M):b&&this.isCircleStyle?this.circleGradient=Ys(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[]);}static \u0275fac=function(b){return new(b||si)};static \u0275cmp=ZE({type:si,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",$r$1],nzPercent:[2,"nzPercent","nzPercent",J0],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",$r$1],nzGapDegree:[2,"nzGapDegree","nzGapDegree",$r$1],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",J0]},exportAs:["nzProgress"],features:[ly],decls:5,vars:18,consts:[["progressInfoTemplate",""],[1,"ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient"],[1,"ant-progress-text"],[3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-progress-steps-outer"],[1,"ant-progress-steps-item",3,"style"],[3,"ngTemplateOutlet"],[1,"ant-progress-steps-item"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],[1,"ant-progress-success-bg",3,"width","border-radius","height"],[1,"ant-progress-success-bg"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail"],["fill-opacity","0",1,"ant-progress-circle-path",3,"style"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],["fill-opacity","0",1,"ant-progress-circle-path"]],template:function(b,L){b&1&&(rh(0,Ns,1,1,"ng-template",null,0,Vw),_i$1(2,"div"),_D(3,Js,3,1,"div"),_D(4,Hs,7,14,"div",1),Jc$1()),b&2&&(gI(2),lw("ant-progress ant-progress-status-"+L.status),Sh("ant-progress-line",L.nzType==="line")("ant-progress-small",L.nzSize==="small")("ant-progress-default",L.nzSize==="default")("ant-progress-show-info",L.nzShowInfo)("ant-progress-circle",L.isCircleStyle)("ant-progress-steps",L.isSteps)("ant-progress-rtl",L.dir()==="rtl"),gI(),MD(L.nzType==="line"?3:-1),gI(),MD(L.isCircleStyle?4:-1));},dependencies:[Ah,Th,st,Ee$1,w5],encapsulation:2})}})(),ar=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[ai]})}return t})();var ia=["processDotTemplate"],oa=["itemContainer"],ra=(t,n,e)=>({$implicit:t,status:n,index:e});function sa(t,n){t&1&&uh(0,"div",3);}function aa(t,n){if(t&1&&(_i$1(0,"div",11),uh(1,"nz-progress",12),Jc$1()),t&2){let e=HD(2);gI(),lh("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4);}}function la(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",13),Jc$1());}function ca(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",14),Jc$1());}function pa(t,n){if(t&1&&(_i$1(0,"span",5),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),rl$1(" ",e.index+1," ");}}function da(t,n){if(t&1&&(tl$1(0),uh(1,"nz-icon",15),nl$1()),t&2){let e=n.$implicit;gI(),lh("nzType",e);}}function ua(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,da,2,1,"ng-container",8),Jc$1()),t&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function ma(t,n){if(t&1&&(_D(0,aa,2,4,"div",11),_D(1,la,2,0,"span",5),_D(2,ca,2,0,"span",5),_D(3,pa,2,1,"span",5),_D(4,ua,2,1,"span",5)),t&2){let e=HD();MD(e.showProgress?0:-1),gI(),MD(e.nzStatus==="finish"&&!e.nzIcon?1:-1),gI(),MD(e.nzStatus==="error"?2:-1),gI(),MD((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),gI(),MD(e.nzIcon?4:-1);}}function fa(t,n){t&1&&uh(0,"span",17);}function ha(t,n){}function _a(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,fa,1,0,"ng-template",null,1,Vw)(3,ha,0,0,"ng-template",16),Jc$1()),t&2){let e=QD(2),i=HD();gI(3),lh("ngTemplateOutlet",i.customProcessTemplate||e)("ngTemplateOutletContext",kw(2,ra,e,i.nzStatus,i.index));}}function ga(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzTitle);}}function xa(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD(2);gI(),Lh(e.nzSubtitle);}}function ba(t,n){if(t&1&&(_i$1(0,"div",9),rh(1,xa,2,1,"ng-container",8),Jc$1()),t&2){let e=HD();gI(),lh("nzStringTemplateOutlet",e.nzSubtitle);}}function Ca(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzDescription);}}var Sa=["*"],Rn=(()=>{class t{cdr=C(Z0);destroyRef=C(at$1);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=false;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=true;}isCustomStatus=false;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Er$1||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e;}oldAPIIcon=true;_icon;customProcessTemplate;direction="horizontal";index=0;last=false;outStatus="process";showProcessDot=false;clickable=false;clickOutsideAngular$=new re$1;nullProcessFormat=()=>null;get showProgress(){return this.nzPercentage!==null&&!this.nzIcon&&this.nzStatus==="process"&&this.nzPercentage>=0&&this.nzPercentage<=100}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait");}_currentIndex=0;ngOnInit(){el$1(this.itemContainer.nativeElement,"click").pipe(sn(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),ue(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index);});}enable(){this.nzDisabled=false,this.cdr.markForCheck();}disable(){this.nzDisabled=true,this.cdr.markForCheck();}markForCheck(){this.cdr.markForCheck();}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-step"]],viewQuery:function(i,o){if(i&1&&Eh(ia,5)(oa,7),i&2){let r;WD(r=GD())&&(o.processDotTemplate=r.first),WD(r=GD())&&(o.itemContainer=r.first);}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(i,o){i&2&&Sh("ant-steps-item-wait",o.nzStatus==="wait")("ant-steps-item-process",o.nzStatus==="process")("ant-steps-item-finish",o.nzStatus==="finish")("ant-steps-item-error",o.nzStatus==="error")("ant-steps-item-active",o.currentIndex===o.index)("ant-steps-item-disabled",o.nzDisabled)("ant-steps-item-custom",!!o.nzIcon)("ant-steps-next-error",o.outStatus==="error"&&o.currentIndex===o.index+1);},inputs:{nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription",nzDisabled:[2,"nzDisabled","nzDisabled",K0],nzPercentage:"nzPercentage",nzSize:"nzSize",nzStatus:"nzStatus",nzIcon:"nzIcon"},exportAs:["nzStep"],decls:12,vars:8,consts:[["itemContainer",""],["processDotTemplate",""],[1,"ant-steps-item-container",3,"tabindex"],[1,"ant-steps-item-tail"],[1,"ant-steps-item-icon"],[1,"ant-steps-icon"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],[1,"ant-steps-item-subtitle"],[1,"ant-steps-item-description"],[1,"ant-steps-progress-icon"],["nzType","circle",3,"nzPercent","nzWidth","nzFormat","nzStrokeWidth"],["nzType","check"],["nzType","close"],[3,"nzType"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"]],template:function(i,o){i&1&&(_i$1(0,"div",2,0),_D(2,sa,1,0,"div",3),_i$1(3,"div",4),_D(4,ma,5,5),_D(5,_a,4,6,"span",5),Jc$1(),_i$1(6,"div",6)(7,"div",7),rh(8,ga,2,1,"ng-container",8),_D(9,ba,2,1,"div",9),Jc$1(),_i$1(10,"div",10),rh(11,Ca,2,1,"ng-container",8),Jc$1()()()),i&2&&(lh("tabindex",o.clickable&&!o.nzDisabled?0:null),ch("role",o.clickable&&!o.nzDisabled?"button":null),gI(2),MD(o.last?-1:2),gI(2),MD(o.showProcessDot?-1:4),gI(),MD(o.showProcessDot?5:-1),gI(3),lh("nzStringTemplateOutlet",o.nzTitle),gI(),MD(o.nzSubtitle?9:-1),gI(2),lh("nzStringTemplateOutlet",o.nzDescription));},dependencies:[ar,ai,Ah,Th,st,Ee$1,w5],encapsulation:2})}return t})(),lr=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=C(Z0);ngZone=C(oe$1);dir=C(Oe).valueSignal;destroyRef=C(at$1);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Er$1?(this.showProcessDot=true,this.customProcessDotTemplate=e):this.showProcessDot=jr$1(e),this.updateChildrenSteps();}nzIndexChange=new Le$1;indexChangeSubscription=H$1.EMPTY;showProcessDot=false;showProgress=false;customProcessDotTemplate;ngOnChanges(e){let{nzStartIndex:i,nzDirection:o,nzStatus:r,nzCurrent:a,nzSize:l}=e;(i||o||r||a||l)&&this.updateChildrenSteps();}ngOnInit(){this.updateChildrenSteps();}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(Ql$1(null),ue(this.destroyRef)).subscribe(()=>{this.updateHostProgressClass(),this.updateChildrenSteps();});}updateHostProgressClass(){this.steps&&!this.showProcessDot&&(this.showProgress=!!this.steps.toArray().find(e=>e.nzPercentage!==null));}updateChildrenSteps(){if(this.steps){let e=this.steps.length;this.steps.toArray().forEach((i,o)=>{Promise.resolve().then(()=>{i.nzSize=this.nzSize,i.outStatus=this.nzStatus,i.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(i.customProcessTemplate=this.customProcessDotTemplate),i.clickable=this.nzIndexChange.observers.length>0,i.direction=this.nzDirection,i.index=o+this.nzStartIndex,i.currentIndex=this.nzCurrent,i.last=e===o+1,i.markForCheck();});}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=zg(...this.steps.map(i=>i.clickOutsideAngular$)).pipe(ue(this.destroyRef)).subscribe(i=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(i));});}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-steps"]],contentQueries:function(i,o,r){if(i&1&&Ih(r,Rn,4),i&2){let a;WD(a=GD())&&(o.steps=a);}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(i,o){i&2&&Sh("ant-steps-horizontal",o.nzDirection==="horizontal")("ant-steps-vertical",o.nzDirection==="vertical")("ant-steps-label-horizontal",o.nzDirection==="horizontal")("ant-steps-label-vertical",(o.showProcessDot||o.nzLabelPlacement==="vertical")&&o.nzDirection==="horizontal")("ant-steps-dot",o.showProcessDot)("ant-steps-small",o.nzSize==="small")("ant-steps-navigation",o.nzType==="navigation")("ant-steps-rtl",o.dir()==="rtl")("ant-steps-with-progress",o.showProgress);},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[ly],ngContentSelectors:Sa,decls:1,vars:0,template:function(i,o){i&1&&($D(),UD(0));},encapsulation:2})}return t})(),cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[Rn]})}return t})();function pr(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function wa(t){if(Array.isArray(t))return t}function ya(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,o,r,a,l=[],h=true,g=false;try{if(r=(e=e.call(t)).next,n!==0)for(;!(h=(i=r.call(e)).done)&&(l.push(i.value),l.length!==n);h=!0);}catch(v){g=true,o=v;}finally{try{if(!h&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw o}}return l}}function va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ta(t,n){return wa(t)||ya(t,n)||za(t,n)||va()}function za(t,n){if(t){if(typeof t=="string")return pr(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?pr(t,n):void 0}}var vr=Object.entries,dr=Object.setPrototypeOf,Ea=Object.isFrozen,Ia=Object.getPrototypeOf,Ra=Object.getOwnPropertyDescriptor,oe=Object.freeze,re=Object.seal,zt=Object.create,Tr=typeof Reflect<"u"&&Reflect,fi=Tr.apply,hi=Tr.construct;oe||(oe=function(n){return n});re||(re=function(n){return n});fi||(fi=function(n,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),r=2;r<i;r++)o[r-2]=arguments[r];return n.apply(e,o)});hi||(hi=function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new n(...i)});var lt=ne(Array.prototype.forEach),Da=ne(Array.prototype.lastIndexOf),ur=ne(Array.prototype.pop),Wt=ne(Array.prototype.push),Pa=ne(Array.prototype.splice),Et=Array.isArray,Jt=ne(String.prototype.toLowerCase),li=ne(String.prototype.toString),mr=ne(String.prototype.match),Ft=ne(String.prototype.replace),fr=ne(String.prototype.indexOf),Aa=ne(String.prototype.trim),Ma=ne(Number.prototype.toString),Oa=ne(Boolean.prototype.toString),hr=typeof BigInt>"u"?null:ne(BigInt.prototype.toString),_r=typeof Symbol>"u"?null:ne(Symbol.prototype.toString),be=ne(Object.prototype.hasOwnProperty),Bt=ne(Object.prototype.toString),ce=ne(RegExp.prototype.test),at=Na(TypeError);function ne(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return fi(t,n,i)}}function Na(t){return function(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return hi(t,e)}}function W(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jt;if(dr&&dr(t,null),!Et(n))return t;let i=n.length;for(;i--;){let o=n[i];if(typeof o=="string"){let r=e(o);r!==o&&(Ea(n)||(n[i]=r),o=r);}t[o]=true;}return t}function La(t){for(let n=0;n<t.length;n++)be(t,n)||(t[n]=null);return t}function Se(t){let n=zt(null);for(let i of vr(t)){var e=Ta(i,2);let o=e[0],r=e[1];be(t,o)&&(Et(r)?n[o]=La(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=Se(r):n[o]=r);}return n}function ja(t){switch(typeof t){case "string":return t;case "number":return Ma(t);case "boolean":return Oa(t);case "bigint":return hr?hr(t):"0";case "symbol":return _r?_r(t):"Symbol()";case "undefined":return Bt(t);case "function":case "object":{if(t===null)return Bt(t);let n=t,e=ve(n,"toString");if(typeof e=="function"){let i=e(n);return typeof i=="string"?i:Bt(i)}return Bt(t)}default:return Bt(t)}}function ve(t,n){for(;t!==null;){let i=Ra(t,n);if(i){if(i.get)return ne(i.get);if(typeof i.value=="function")return ne(i.value)}t=Ia(t);}function e(){return null}return e}function $a(t){try{return ce(t,""),!0}catch(n){return false}}var gr=oe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ci=oe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pi=oe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wa=oe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),di=oe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fa=oe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xr=oe(["#text"]),br=oe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ui=oe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cr=oe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dn=oe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ba=re(/{{[\w\W]*|^[\w\W]*}}/g),Ja=re(/<%[\w\W]*|^[\w\W]*%>/g),Va=re(/\${[\w\W]*/g),Ga=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ua=re(/^aria-[\-\w]+$/),Sr=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qa=re(/^(?:\w+script|data):/i),Ha=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qa=re(/^html$/i),Ya=re(/^[a-z][.\w]*(-[.\w]+)+$/i),kr=re(/<[/\w!]/g),wr=re(/<[/\w]/g),Za=re(/<\/no(script|embed|frames)/i),Xa=re(/\/>/i),Ce={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Ka=oe(W({},zr)),el=(function(){let t={};return lt(zr,n=>{t[n]=re(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"));}),oe(t)})(),tl=function(){return typeof window>"u"?null:window},nl=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));let r="dompurify"+(i?"#"+i:"");try{return n.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},yr=function(){return {afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ze=function(n,e,i,o){return be(n,e)&&Et(n[e])?W(o.base?Se(o.base):{},n[e],o.transform):i},mi=function(n,e,i){let o=be(n,e)?n[e]:void 0;return o&&typeof o=="object"?Se(o):i()};function Er(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tl(),n=x=>Er(x);if(n.version="3.4.15",n.removed=[],!t||!t.document||t.document.nodeType!==Ce.document||!t.Element)return n.isSupported=false,n;let e=t.document,i=e,o=i.currentScript;t.DocumentFragment;let r=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,g=t.NamedNodeMap;g===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let v=t.DOMParser,S=t.trustedTypes,P=l.prototype,te=ve(P,"cloneNode"),$=ve(P,"remove"),se=ve(P,"removeAttributeNode"),Re=ve(P,"nextSibling"),we=ve(P,"childNodes"),ye=ve(P,"parentNode"),Ke=ve(P,"shadowRoot"),Je=ve(P,"attributes"),Te=a&&a.prototype?ve(a.prototype,"nodeType"):null,M=a&&a.prototype?ve(a.prototype,"nodeName"):null,b=a&&a.prototype?ve(a.prototype,"ownerDocument"):null,L=function(s){return Te?Te(s):s.nodeType},fe=function(s){return M?M(s):s.nodeName};if(typeof r=="function"){let x=e.createElement("template");x.content&&x.content.ownerDocument&&(e=x.content.ownerDocument);}let B,de="",De,Pe=false,ae=0,et=function(){if(ae>0)throw at('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ae=function(s){et(),ae++;try{return B.createHTML(s)}finally{ae--;}},Dt=function(s){et(),ae++;try{return B.createScriptURL(s)}finally{ae--;}},is=function(){return Pe||(De=nl(S,o),Pe=true),De},Qt=e,Ln=Qt.implementation,Ei=Qt.createNodeIterator,os=Qt.createDocumentFragment,rs=Qt.getElementsByTagName,ss=i.importNode,U=yr();n.isSupported=typeof vr=="function"&&typeof ye=="function"&&Ln&&Ln.createHTMLDocument!==void 0;let as=Ba,ls=Ja,cs=Va,ps=Ga,ds=Ua,us=qa,Ii=Ha,ms=Ya,Ri=Sr,q=null,jn=W({},[...gr,...ci,...pi,...di,...xr]),H=null,$n=W({},[...br,...ui,...Cr,...Dn]),Me=Object.seal(zt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),Pt=null,Di=null,Ve=Object.seal(zt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}})),Pi=true,Wn=true,Ai=false,Mi=true,Ge=false,tt=true,nt=false,Fn=false,Yt=null,Zt=null,Bn=false,ut=false,Xt=false,Kt=false,Oi=true,Ni=false,Li="user-content-",Jn=true,Vn=false,mt={},ft=null,ji=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),$i=null,Wi=W({},["audio","video","img","source","image","track"]),Fi=null,Bi=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),en="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml",ht=Oe,Gn=false,Un=null,fs=W({},[en,tn,Oe],li),Ji=oe(["mi","mo","mn","ms","mtext"]),qn=W({},Ji),Vi=oe(["annotation-xml"]),Hn=W({},Vi),hs=W({},["title","style","font","a","script"]),At=null,_s=["application/xhtml+xml","text/html"],gs="text/html",ee=null,_t=null,xs=e.createElement("form"),Gi=function(s){return s instanceof RegExp||s instanceof Function},Qn=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===s)return;(!s||typeof s!="object")&&(s={}),s=Se(s),At=_s.indexOf(s.PARSER_MEDIA_TYPE)===-1?gs:s.PARSER_MEDIA_TYPE,ee=At==="application/xhtml+xml"?li:Jt,q=Ze(s,"ALLOWED_TAGS",jn,{transform:ee}),H=Ze(s,"ALLOWED_ATTR",$n,{transform:ee}),Un=Ze(s,"ALLOWED_NAMESPACES",fs,{transform:li}),Fi=Ze(s,"ADD_URI_SAFE_ATTR",Bi,{transform:ee,base:Bi}),$i=Ze(s,"ADD_DATA_URI_TAGS",Wi,{transform:ee,base:Wi}),ft=Ze(s,"FORBID_CONTENTS",ji,{transform:ee}),Pt=Ze(s,"FORBID_TAGS",Se({}),{transform:ee}),Di=Ze(s,"FORBID_ATTR",Se({}),{transform:ee}),mt=be(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?Se(s.USE_PROFILES):s.USE_PROFILES:false,Pi=s.ALLOW_ARIA_ATTR!==false,Wn=s.ALLOW_DATA_ATTR!==false,Ai=s.ALLOW_UNKNOWN_PROTOCOLS||false,Mi=s.ALLOW_SELF_CLOSE_IN_ATTR!==false,Ge=s.SAFE_FOR_TEMPLATES||false,tt=s.SAFE_FOR_XML!==false,nt=s.WHOLE_DOCUMENT||false,ut=s.RETURN_DOM||false,Xt=s.RETURN_DOM_FRAGMENT||false,Kt=s.RETURN_TRUSTED_TYPE||false,Bn=s.FORCE_BODY||false,Oi=s.SANITIZE_DOM!==false,Ni=s.SANITIZE_NAMED_PROPS||false,Jn=s.KEEP_CONTENT!==false,Vn=s.IN_PLACE||false,Ri=$a(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:Sr,ht=typeof s.NAMESPACE=="string"?s.NAMESPACE:Oe,qn=mi(s,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ji)),Hn=mi(s,"HTML_INTEGRATION_POINTS",()=>W({},Vi));let p=mi(s,"CUSTOM_ELEMENT_HANDLING",()=>zt(null));if(Me=zt(null),be(p,"tagNameCheck")&&Gi(p.tagNameCheck)&&(Me.tagNameCheck=p.tagNameCheck),be(p,"attributeNameCheck")&&Gi(p.attributeNameCheck)&&(Me.attributeNameCheck=p.attributeNameCheck),be(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),re(Me),Ge&&(Wn=false),Xt&&(ut=true),mt&&(q=W({},xr),H=zt(null),mt.html===true&&(W(q,gr),W(H,br)),mt.svg===true&&(W(q,ci),W(H,ui),W(H,Dn)),mt.svgFilters===true&&(W(q,pi),W(H,ui),W(H,Dn)),mt.mathMl===true&&(W(q,di),W(H,Cr),W(H,Dn))),Ve.tagCheck=null,Ve.attributeCheck=null,be(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?Ve.tagCheck=s.ADD_TAGS:Et(s.ADD_TAGS)&&(q===jn&&(q=Se(q)),W(q,s.ADD_TAGS,ee))),be(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?Ve.attributeCheck=s.ADD_ATTR:Et(s.ADD_ATTR)&&(H===$n&&(H=Se(H)),W(H,s.ADD_ATTR,ee))),be(s,"ADD_FORBID_CONTENTS")&&Et(s.ADD_FORBID_CONTENTS)&&(ft===ji&&(ft=Se(ft)),W(ft,s.ADD_FORBID_CONTENTS,ee)),Jn&&(q["#text"]=true),nt&&W(q,["html","head","body"]),q.table&&(W(q,["tbody"]),delete Pt.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let f=B;B=s.TRUSTED_TYPES_POLICY;try{de=Ae("");}catch(C){throw B=f,C}}else s.TRUSTED_TYPES_POLICY===null?(B=void 0,de=""):(B===void 0&&(B=is()),B&&typeof de=="string"&&(de=Ae("")));oe&&oe(s),_t=s;},Ui=W({},[...ci,...pi,...Wa]),qi=W({},[...di,...Fa]),bs=function(s,p,f){return p.namespaceURI===Oe?s==="svg":p.namespaceURI===en?s==="svg"&&(f==="annotation-xml"||qn[f]):!!Ui[s]},Cs=function(s,p,f){return p.namespaceURI===Oe?s==="math":p.namespaceURI===tn?s==="math"&&Hn[f]:!!qi[s]},Ss=function(s,p,f){return p.namespaceURI===tn&&!Hn[f]||p.namespaceURI===en&&!qn[f]?false:!qi[s]&&(hs[s]||!Ui[s])},ks=function(s){let p=ye(s);(!p||!p.tagName)&&(p={namespaceURI:ht,tagName:"template"});let f=Jt(s.tagName),C=Jt(p.tagName);return Un[s.namespaceURI]?s.namespaceURI===tn?bs(f,p,C):s.namespaceURI===en?Cs(f,p,C):s.namespaceURI===Oe?Ss(f,p,C):!!(At==="application/xhtml+xml"&&Un[s.namespaceURI]):false},Ue=function(s){Wt(n.removed,{element:s});try{ye(s).removeChild(s);}catch(p){if($(s),!ye(s))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hi=function(s,p,f){try{se(s,p);}catch(C){try{s.removeAttribute(f);}catch(w){}}},nn=function(s){on(s);let p=we(s);if(p){let C=[];lt(p,w=>{Wt(C,w);}),lt(C,w=>{try{$(w);}catch(R){}});}let f=Je(s);if(f)for(let C=f.length-1;C>=0;--C){let w=f[C],R=w&&w.name;typeof R=="string"&&Hi(s,w,R);}},it=function(s,p,f){if(!f)try{f=p.getAttributeNode(s);}catch(C){f=null;}Wt(n.removed,{attribute:f||null,from:p});try{f?se(p,f):p.removeAttribute(s);}catch(C){try{p.removeAttribute(s);}catch(w){}}if(s==="is")if(ut||Xt)try{Ue(p);}catch(C){}else try{p.setAttribute(s,"");}catch(C){}},ws=function(s){let p=Je(s);if(p)for(let f=p.length-1;f>=0;--f){let C=p[f],w=C&&C.name;typeof w!="string"||H[ee(w)]||Hi(s,C,w);}},on=function(s){let p=[s];for(;p.length>0;){let f=p.pop();L(f)===Ce.element&&ws(f);let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Qi=function(s,p){return tt?s==="patchsrc"?true:s==="for"&&p!=="label"&&p!=="output":false},ys=function(s){if(!tt)return;let p=[s];for(;p.length>0;){let f=p.pop(),C=L(f);if(C===Ce.processingInstruction||C===Ce.comment&&ce(wr,f.data)){try{$(f);}catch(R){}continue}if(C===Ce.element){let R=f,J=ee(fe(f));try{R.hasAttribute&&R.hasAttribute("patchsrc")&&R.removeAttribute("patchsrc"),R.hasAttribute&&R.hasAttribute("for")&&Qi("for",J)&&R.removeAttribute("for");}catch(X){}}let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Yi=function(s){let p=null,f=null;if(Bn)s="<remove></remove>"+s;else {let R=mr(s,/^[\r\n\t ]+/);f=R&&R[0];}At==="application/xhtml+xml"&&ht===Oe&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let C=B?Ae(s):s;if(ht===Oe)try{p=new v().parseFromString(C,At);}catch(R){}if(!p||!p.documentElement){p=Ln.createDocument(ht,"template",null);try{p.documentElement.innerHTML=Gn?de:C;}catch(R){}}let w=p.body||p.documentElement;return s&&f&&w.insertBefore(e.createTextNode(f),w.childNodes[0]||null),ht===Oe?rs.call(p,nt?"html":"body")[0]:nt?p.documentElement:w},Zi=function(s){let p=b?b(s):s.ownerDocument;return Ei.call(p||s,s,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},rn=function(s){return s=Ft(s,as," "),s=Ft(s,ls," "),s=Ft(s,cs," "),s},Yn=function(s){var p;s.normalize();let f=b?b(s):s.ownerDocument,C=Ei.call(f||s,s,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),w=C.nextNode();for(;w;)w.data=rn(w.data),w=C.nextNode();let R=(p=s.querySelectorAll)===null||p===void 0?void 0:p.call(s,"template");R&&lt(R,J=>{gt(J.content)&&Yn(J.content);});},sn=function(s){let p=M?M(s):null;return typeof p!="string"||ee(p)!=="form"?false:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==Je(s)||typeof s.removeAttribute!="function"||typeof s.removeAttributeNode!="function"||typeof s.getAttributeNode!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==Te(s)||s.childNodes!==we(s)},gt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return Te(s)===Ce.documentFragment}catch(p){return false}},Mt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return typeof Te(s)=="number"}catch(p){return false}};function Ne(x,s,p){x.length!==0&&lt(x,f=>{f.call(n,s,p,_t);});}let vs=function(s,p){return !!(tt&&s.hasChildNodes()&&!Mt(s.firstElementChild)&&ce(kr,s.textContent)&&ce(kr,s.innerHTML)||tt&&s.namespaceURI===Oe&&Ka[p]&&(Mt(s.firstElementChild)||typeof s.textContent=="string"&&ce(el[p],s.textContent))||s.nodeType===Ce.processingInstruction||tt&&s.nodeType===Ce.comment&&ce(wr,s.data))},an=function(s,p){if(s instanceof RegExp)return ce(s,p);if(s instanceof Function){for(var f=arguments.length,C=new Array(f>2?f-2:0),w=2;w<f;w++)C[w-2]=arguments[w];return !!s(p,...C)}return false},Ts=function(s,p,f){if(!Pt[p]&&no(p)&&an(Me.tagNameCheck,p))return false;if(Jn&&!ft[p]){let C=ye(s),w=we(s);if(w&&C){let R=w.length;for(let J=R-1;J>=0;--J){let X=s===f?te(w[J],true):w[J];C.insertBefore(X,Re(s));}}}return Ue(s),true},Xi=function(s,p,f,C){return s.length===0?p:p===f||p===C?Se(p):p},Ki=function(s,p){return s===p||ye(s)!==null?false:(Vn&&on(s),true)},eo=function(s,p){if(Ne(U.beforeSanitizeElements,s,null),Ki(s,p))return true;if(sn(s))return Ue(s),true;let f=ee(fe(s));if(q=Xi(U.uponSanitizeElement,q,jn,Yt),Ne(U.uponSanitizeElement,s,{tagName:f,allowedTags:q}),Ki(s,p))return true;if(vs(s,f))return Ue(s),true;if(Pt[f]||!(Ve.tagCheck instanceof Function&&Ve.tagCheck(f))&&!q[f]){let w=Ts(s,f,p);return w===false&&Ne(U.afterSanitizeElements,s,null),w}if(L(s)===Ce.element&&!ks(s)||(f==="noscript"||f==="noembed"||f==="noframes")&&ce(Za,s.innerHTML))return Ue(s),true;if(Ge&&s.nodeType===Ce.text){let w=rn(s.textContent);s.textContent!==w&&(Wt(n.removed,{element:s.cloneNode()}),s.textContent=w);}return Ne(U.afterSanitizeElements,s,null),false},to=function(s,p,f){if(Di[p]||Qi(p,s)||Oi&&(p==="id"||p==="name")&&(f in e||f in xs))return false;let C=H[p]||Ve.attributeCheck instanceof Function&&Ve.attributeCheck(p,s);return Wn&&ce(ps,p)||Pi&&ce(ds,p)?true:C?Fi[p]||ce(Ri,Ft(f,Ii,""))||(p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&fr(f,"data:")===0&&$i[s]||Ai&&!ce(us,Ft(f,Ii,""))?true:!f:no(s)&&an(Me.tagNameCheck,s)&&an(Me.attributeNameCheck,p,s)||p==="is"&&Me.allowCustomizedBuiltInElements&&an(Me.tagNameCheck,f)},zs=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),no=function(s){return !zs[Jt(s)]&&ce(ms,s)},Es=function(s,p,f,C){if(B&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!f)switch(S.getAttributeType(s,p)){case "TrustedHTML":return Ae(C);case "TrustedScriptURL":return Dt(C)}return C},Is=function(s,p,f,C){try{return f?s.setAttributeNS(f,p,C):s.setAttribute(p,C),sn(s)?(Ue(s),!1):!0}catch(w){return it(p,s),false}},io=function(s){Ne(U.beforeSanitizeAttributes,s,null);let p=s.attributes;if(!p||sn(s))return;H=Xi(U.uponSanitizeAttribute,H,$n,Zt);let f={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:H,forceKeepAttr:void 0},C=p.length,w=ee(s.nodeName);for(;C--;){let R=p[C],J=R.name,X=R.namespaceURI,he=R.value,_e=ee(J),Xn=he,ue=J==="value"?Xn:Aa(Xn),oo=false;if(f.attrName=_e,f.attrValue=ue,f.keepAttr=true,f.forceKeepAttr=void 0,Ne(U.uponSanitizeAttribute,s,f),ue=f.attrValue,Ni&&(_e==="id"||_e==="name")&&fr(ue,Li)!==0&&(it(J,s,R),ue=Li+ue,oo=true),tt&&ce(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ue)){it(J,s,R);continue}if(_e==="attributename"&&mr(ue,"href")){it(J,s,R);continue}if(!f.forceKeepAttr){if(!f.keepAttr){it(J,s,R);continue}if(!Mi&&ce(Xa,ue)){it(J,s,R);continue}if(Ge&&(ue=rn(ue)),!to(w,_e,ue)){it(J,s,R);continue}ue=Es(w,_e,X,ue),ue!==Xn&&Is(s,J,X,ue)&&oo&&ur(n.removed);}}Ne(U.afterSanitizeAttributes,s,null);},ln=function(s){let p=null,f=Zi(s);for(Ne(U.beforeSanitizeShadowDOM,s,null);p=f.nextNode();)if(Ne(U.uponSanitizeShadowNode,p,null),eo(p,s),io(p),gt(p.content)&&ln(p.content),L(p)===Ce.element){let C=Ke(p);gt(C)&&(Zn(C),ln(C));}Ne(U.afterSanitizeShadowDOM,s,null);},Zn=function(s){let p=[{node:s,shadow:null}];for(;p.length>0;){let f=p.pop();if(f.shadow){ln(f.shadow);continue}let C=f.node,R=L(C)===Ce.element,J=we(C);if(J)for(let X=J.length-1;X>=0;--X)p.push({node:J[X],shadow:null});if(R){let X=M?M(C):null;if(typeof X=="string"&&ee(X)==="template"){let he=C.content;gt(he)&&p.push({node:he,shadow:null});}}if(R){let X=Ke(C);gt(X)&&p.push({node:null,shadow:X},{node:X,shadow:null});}}};return n.sanitize=function(x){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,f=null,C=null,w=null;if(Gn=!x,Gn&&(x="<!-->"),typeof x!="string"&&!Mt(x)&&(x=ja(x),typeof x!="string"))throw at("dirty is not a string, aborting");if(!n.isSupported)return x;Fn?(q=Yt,H=Zt):Qn(s),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(q=Se(q)),U.uponSanitizeAttribute.length>0&&(H=Se(H)),n.removed=[];let R=Vn&&typeof x!="string"&&Mt(x);if(R){ys(x);let he=fe(x);if(typeof he=="string"){let _e=ee(he);if(!q[_e]||Pt[_e])throw nn(x),at("root node is forbidden and cannot be sanitized in-place")}if(sn(x))throw nn(x),at("root node is clobbered and cannot be sanitized in-place");try{Zn(x);}catch(_e){throw nn(x),_e}}else if(Mt(x))p=Yi("<!---->"),f=p.ownerDocument.importNode(x,true),f.nodeType===Ce.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?p=f:p.appendChild(f),Zn(p);else {if(!ut&&!Ge&&!nt&&x.indexOf("<")===-1)return B&&Kt?Ae(x):x;if(p=Yi(x),!p)return ut?null:Kt?de:""}p&&Bn&&Ue(p.firstChild);let J=R?x:p;try{let he=Zi(J);for(;C=he.nextNode();)eo(C,J),io(C),gt(C.content)&&ln(C.content);}catch(he){throw R&&(nn(x),lt(n.removed,_e=>{_e.element&&on(_e.element);})),he}if(R)return lt(n.removed,he=>{he.element&&on(he.element);}),Ge&&Yn(x),x;if(ut){if(Ge&&Yn(p),Xt)for(w=os.call(p.ownerDocument);p.firstChild;)w.appendChild(p.firstChild);else w=p;return (H.shadowroot||H.shadowrootmode)&&(w=ss.call(i,w,true)),w}let X=nt?p.outerHTML:p.innerHTML;return nt&&q["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ce(Qa,p.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
@@ -1 +1 @@
1
- import {a7 as KE,a8 as fu,aA as mT,C,a9 as Z0,b$ as Gm,ab as Oe,aB as yT,ae as Le$1,aC as zt,Z as ZE,a3 as Ah,a4 as Th,as as st,at as Ee,c0 as Mn,ai as ly,av as K0,l as _D,M as MD,aM as Yl,G as FD,j as _i,c1 as tc,J as Jc,H as HD,al as Sh,w as lh,o as gI,aw as rh,m as mh,n as uh,aJ as tl,I as Iw,aK as nl,L as Lh,O as Fu,Q as ju,c2 as ph}from'./main-CHQMTVIP.js';function X(n,i){n&1&&ph(0);}function $(n,i){if(n&1&&rh(0,X,1,0,"ng-container",7),n&2){let e=HD(3);lh("nzStringTemplateOutlet",e.nzIcon);}}function nn(n,i){if(n&1&&uh(0,"nz-icon",6),n&2){let e=HD(3);lh("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme);}}function en(n,i){if(n&1&&(_i(0,"div",2),_D(1,$,1,1,"ng-container")(2,nn,1,2,"nz-icon",6),Jc()),n&2){let e=HD(2);gI(),MD(e.nzIcon?1:2);}}function tn(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(4);gI(),Lh(e.nzMessage);}}function on(n,i){if(n&1&&(_i(0,"span",8),rh(1,tn,2,1,"ng-container",7),Jc()),n&2){let e=HD(3);gI(),lh("nzStringTemplateOutlet",e.nzMessage);}}function an(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(4);gI(),Lh(e.nzDescription);}}function rn(n,i){if(n&1&&(_i(0,"span",9),rh(1,an,2,1,"ng-container",7),Jc()),n&2){let e=HD(3);gI(),lh("nzStringTemplateOutlet",e.nzDescription);}}function ln(n,i){if(n&1&&(_i(0,"div",3),_D(1,on,2,1,"span",8),_D(2,rn,2,1,"span",9),Jc()),n&2){let e=HD(2);gI(),MD(e.nzMessage?1:-1),gI(),MD(e.nzDescription?2:-1);}}function cn(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(3);gI(),Lh(e.nzAction);}}function sn(n,i){if(n&1&&(_i(0,"div",4),rh(1,cn,2,1,"ng-container",7),Jc()),n&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzAction);}}function dn(n,i){if(n&1&&(tl(0),_i(1,"span",12),Iw(2),Jc(),nl()),n&2){let e=HD(4);gI(2),Lh(e.nzCloseText);}}function mn(n,i){if(n&1&&rh(0,dn,3,1,"ng-container",7),n&2){let e=HD(3);lh("nzStringTemplateOutlet",e.nzCloseText);}}function pn(n,i){n&1&&uh(0,"nz-icon",11);}function _n(n,i){if(n&1){let e=FD();_i(0,"button",10),mh("click",function(){Fu(e);let z=HD(2);return ju(z.closeAlert())}),_D(1,mn,1,1,"ng-container")(2,pn,1,0,"nz-icon",11),Jc();}if(n&2){let e=HD(2);gI(),MD(e.nzCloseText?1:2);}}function zn(n,i){if(n&1){let e=FD();_i(0,"div",1),tc(function(z){Fu(e);let T=HD();return ju(T.onLeaveAnimationDone(z))}),_D(1,en,3,1,"div",2),_D(2,ln,3,2,"div",3),_D(3,sn,2,1,"div",4),_D(4,_n,3,1,"button",5),Jc();}if(n&2){let e=HD();Sh("ant-alert-rtl",e.dir()==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),lh("nzNoAnimation",e.nzNoAnimation),gI(),MD(e.nzShowIcon?1:-1),gI(),MD(e.nzMessage||e.nzDescription?2:-1),gI(),MD(e.nzAction?3:-1),gI(),MD(e.nzCloseable||e.nzCloseText?4:-1);}}var Z="alert",un=(()=>{let n,i=[],e=[],_,z=[],T=[];return class D{static{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Yl()],_=[Yl()],mT(null,null,n,{kind:"field",name:"nzCloseable",static:false,private:false,access:{has:t=>"nzCloseable"in t,get:t=>t.nzCloseable,set:(t,l)=>{t.nzCloseable=l;}},metadata:r},i,e),mT(null,null,_,{kind:"field",name:"nzShowIcon",static:false,private:false,access:{has:t=>"nzShowIcon"in t,get:t=>t.nzShowIcon,set:(t,l)=>{t.nzShowIcon=l;}},metadata:r},z,T),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:r});}cdr=C(Z0);animationType=C(Gm,{optional:true});dir=C(Oe).valueSignal;_nzModuleName=Z;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=yT(this,i,false);nzShowIcon=(yT(this,e),yT(this,z,false));nzBanner=(yT(this,T),false);nzNoAnimation=false;nzIcon=null;nzOnClose=new Le$1;closed=false;iconTheme="fill";inferredIconType="info-circle";isTypeSet=false;isShowIconSet=false;constructor(){zt(Z,()=>this.cdr.markForCheck());}closeAlert(){this.closed=true,(this.nzNoAnimation||this.animationType==="NoopAnimations")&&this.nzOnClose.emit(true);}onLeaveAnimationDone(r){let t=r.target;if(this.nzNoAnimation||this.animationType==="NoopAnimations"){r.animationComplete();return}t.classList.add("ant-alert-motion-leave","ant-alert-motion-leave-active");let l=()=>{t.removeEventListener("transitionend",l),this.nzOnClose.emit(true),r.animationComplete();};t.addEventListener("transitionend",l);}ngOnChanges(r){let{nzShowIcon:t,nzDescription:l,nzType:J,nzBanner:K}=r;if(t&&(this.isShowIconSet=true),J)switch(this.isTypeSet=true,this.nzType){case "error":this.inferredIconType="close-circle";break;case "success":this.inferredIconType="check-circle";break;case "info":this.inferredIconType="info-circle";break;case "warning":this.inferredIconType="exclamation-circle";break}l&&(this.iconTheme=this.nzDescription?"outline":"fill"),K&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=true));}static \u0275fac=function(t){return new(t||D)};static \u0275cmp=ZE({type:D,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",K0],nzShowIcon:[2,"nzShowIcon","nzShowIcon",K0],nzBanner:[2,"nzBanner","nzBanner",K0],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",K0],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[ly],decls:1,vars:1,consts:[[1,"ant-alert",3,"nzNoAnimation","ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert",3,"nzNoAnimation"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(t,l){t&1&&_D(0,zn,5,23,"div",0),t&2&&MD(l.closed?-1:0);},dependencies:[Ah,Th,st,Ee,Mn],encapsulation:2})}})(),Gn=(()=>{class n{static \u0275fac=function(_){return new(_||n)};static \u0275mod=KE({type:n});static \u0275inj=fu({imports:[un]})}return n})();export{Gn as G,un as u};
1
+ import {a7 as KE,a8 as fu,aA as mT,C,a9 as Z0,b$ as Gm,ab as Oe,aB as yT,ae as Le$1,aC as zt,Z as ZE,a3 as Ah,a4 as Th,as as st,at as Ee,c0 as Mn,ai as ly,av as K0,l as _D,M as MD,aM as Yl,G as FD,j as _i,c1 as tc,J as Jc,H as HD,al as Sh,w as lh,o as gI,aw as rh,m as mh,n as uh,aJ as tl,I as Iw,aK as nl,L as Lh,O as Fu,Q as ju,c2 as ph}from'./main-CL3L2RPE.js';function X(n,i){n&1&&ph(0);}function $(n,i){if(n&1&&rh(0,X,1,0,"ng-container",7),n&2){let e=HD(3);lh("nzStringTemplateOutlet",e.nzIcon);}}function nn(n,i){if(n&1&&uh(0,"nz-icon",6),n&2){let e=HD(3);lh("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme);}}function en(n,i){if(n&1&&(_i(0,"div",2),_D(1,$,1,1,"ng-container")(2,nn,1,2,"nz-icon",6),Jc()),n&2){let e=HD(2);gI(),MD(e.nzIcon?1:2);}}function tn(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(4);gI(),Lh(e.nzMessage);}}function on(n,i){if(n&1&&(_i(0,"span",8),rh(1,tn,2,1,"ng-container",7),Jc()),n&2){let e=HD(3);gI(),lh("nzStringTemplateOutlet",e.nzMessage);}}function an(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(4);gI(),Lh(e.nzDescription);}}function rn(n,i){if(n&1&&(_i(0,"span",9),rh(1,an,2,1,"ng-container",7),Jc()),n&2){let e=HD(3);gI(),lh("nzStringTemplateOutlet",e.nzDescription);}}function ln(n,i){if(n&1&&(_i(0,"div",3),_D(1,on,2,1,"span",8),_D(2,rn,2,1,"span",9),Jc()),n&2){let e=HD(2);gI(),MD(e.nzMessage?1:-1),gI(),MD(e.nzDescription?2:-1);}}function cn(n,i){if(n&1&&(tl(0),Iw(1),nl()),n&2){let e=HD(3);gI(),Lh(e.nzAction);}}function sn(n,i){if(n&1&&(_i(0,"div",4),rh(1,cn,2,1,"ng-container",7),Jc()),n&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzAction);}}function dn(n,i){if(n&1&&(tl(0),_i(1,"span",12),Iw(2),Jc(),nl()),n&2){let e=HD(4);gI(2),Lh(e.nzCloseText);}}function mn(n,i){if(n&1&&rh(0,dn,3,1,"ng-container",7),n&2){let e=HD(3);lh("nzStringTemplateOutlet",e.nzCloseText);}}function pn(n,i){n&1&&uh(0,"nz-icon",11);}function _n(n,i){if(n&1){let e=FD();_i(0,"button",10),mh("click",function(){Fu(e);let z=HD(2);return ju(z.closeAlert())}),_D(1,mn,1,1,"ng-container")(2,pn,1,0,"nz-icon",11),Jc();}if(n&2){let e=HD(2);gI(),MD(e.nzCloseText?1:2);}}function zn(n,i){if(n&1){let e=FD();_i(0,"div",1),tc(function(z){Fu(e);let T=HD();return ju(T.onLeaveAnimationDone(z))}),_D(1,en,3,1,"div",2),_D(2,ln,3,2,"div",3),_D(3,sn,2,1,"div",4),_D(4,_n,3,1,"button",5),Jc();}if(n&2){let e=HD();Sh("ant-alert-rtl",e.dir()==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),lh("nzNoAnimation",e.nzNoAnimation),gI(),MD(e.nzShowIcon?1:-1),gI(),MD(e.nzMessage||e.nzDescription?2:-1),gI(),MD(e.nzAction?3:-1),gI(),MD(e.nzCloseable||e.nzCloseText?4:-1);}}var Z="alert",un=(()=>{let n,i=[],e=[],_,z=[],T=[];return class D{static{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Yl()],_=[Yl()],mT(null,null,n,{kind:"field",name:"nzCloseable",static:false,private:false,access:{has:t=>"nzCloseable"in t,get:t=>t.nzCloseable,set:(t,l)=>{t.nzCloseable=l;}},metadata:r},i,e),mT(null,null,_,{kind:"field",name:"nzShowIcon",static:false,private:false,access:{has:t=>"nzShowIcon"in t,get:t=>t.nzShowIcon,set:(t,l)=>{t.nzShowIcon=l;}},metadata:r},z,T),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:r});}cdr=C(Z0);animationType=C(Gm,{optional:true});dir=C(Oe).valueSignal;_nzModuleName=Z;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=yT(this,i,false);nzShowIcon=(yT(this,e),yT(this,z,false));nzBanner=(yT(this,T),false);nzNoAnimation=false;nzIcon=null;nzOnClose=new Le$1;closed=false;iconTheme="fill";inferredIconType="info-circle";isTypeSet=false;isShowIconSet=false;constructor(){zt(Z,()=>this.cdr.markForCheck());}closeAlert(){this.closed=true,(this.nzNoAnimation||this.animationType==="NoopAnimations")&&this.nzOnClose.emit(true);}onLeaveAnimationDone(r){let t=r.target;if(this.nzNoAnimation||this.animationType==="NoopAnimations"){r.animationComplete();return}t.classList.add("ant-alert-motion-leave","ant-alert-motion-leave-active");let l=()=>{t.removeEventListener("transitionend",l),this.nzOnClose.emit(true),r.animationComplete();};t.addEventListener("transitionend",l);}ngOnChanges(r){let{nzShowIcon:t,nzDescription:l,nzType:J,nzBanner:K}=r;if(t&&(this.isShowIconSet=true),J)switch(this.isTypeSet=true,this.nzType){case "error":this.inferredIconType="close-circle";break;case "success":this.inferredIconType="check-circle";break;case "info":this.inferredIconType="info-circle";break;case "warning":this.inferredIconType="exclamation-circle";break}l&&(this.iconTheme=this.nzDescription?"outline":"fill"),K&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=true));}static \u0275fac=function(t){return new(t||D)};static \u0275cmp=ZE({type:D,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",K0],nzShowIcon:[2,"nzShowIcon","nzShowIcon",K0],nzBanner:[2,"nzBanner","nzBanner",K0],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",K0],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[ly],decls:1,vars:1,consts:[[1,"ant-alert",3,"nzNoAnimation","ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert",3,"nzNoAnimation"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(t,l){t&1&&_D(0,zn,5,23,"div",0),t&2&&MD(l.closed?-1:0);},dependencies:[Ah,Th,st,Ee,Mn],encapsulation:2})}})(),Gn=(()=>{class n{static \u0275fac=function(_){return new(_||n)};static \u0275mod=KE({type:n});static \u0275inj=fu({imports:[un]})}return n})();export{Gn as G,un as u};
@@ -1 +1 @@
1
- import {C,b0 as jn,V as Ve,bK as W0,a5 as q0,Z as ZE,e as al,bb as er,f as rl,g as $i,Y as pf,a0 as bd,a1 as sp,a2 as fp,b1 as ts,j as _i,m as mh,J as Jc,k as iE,I as Iw,o as gI,w as lh,y as aE,z as rl$1,b as at,b3 as Wn,q as qo,U as Uw,u as ue,r as r$1,c as bi,d as $8,K as Kt,P as Pw,x as xD,l as _D,p as Fw,B as AD,M as MD,b4 as N2,aV as ix,bU as M1,b5 as cx,i as ie,L as Lh,H as HD,D as ch,G as FD,al as Sh,aL as Fh,O as Fu,Q as ju}from'./main-CHQMTVIP.js';import {a as ai,z}from'./chunk-B2Xol2Un.js';var fe=(()=>{class t{constructor(){this.http=C(N2),this.baseUrl=`${ix.apiBaseUrl}/filesystem`;}browse(e,i){let n=new M1;return e!=null&&e.trim()!==""&&(n=n.set("path",e.trim())),i?.mode&&(n=n.set("mode",i.mode)),i?.extensions&&i.extensions.length>0&&(n=n.set("extensions",i.extensions.join(","))),this.http.get(`${this.baseUrl}/browse`,{params:n}).pipe(cx())}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function L(t){if(!t)return [];if(/^[A-Za-z]:/.test(t)){let r=t.includes("\\")?"\\":"/",h=`${t.slice(0,2)}${r}`,_=t.slice(2).replace(/^[\\/]+/,"").split(/[\\/]/).filter(Boolean),R=[{label:t.slice(0,2),path:h}],f=h;for(let O of _)f=f.endsWith(r)?f+O:f+r+O,R.push({label:O,path:f});return R}if(t.startsWith("/")){let r=t.split("/").filter(Boolean),h=[{label:"/",path:"/"}],z="";for(let _ of r)z+=`/${_}`,h.push({label:_,path:z});return h}let o=t.includes("\\")?"\\":"/",e=t.split(/[\\/]/).filter(Boolean),i=[],n="";for(let r of e)n=n?n+o+r:r,i.push({label:r,path:n});return i}function j(t){let o=L(t);return o.length<2?null:o[o.length-2].path}var be=(t,o)=>o.path;function xe(t,o){if(t&1){let e=FD();_i(0,"button",7),mh("click",function(){Fu(e);let n=HD().$implicit,r=HD();return ju(r.loadDir(n.path))}),Iw(1),Jc(),_i(2,"span",8),Iw(3,"/"),Jc();}if(t&2){let e=HD().$implicit;ch("data-testid","file-browser-crumb-"+e.label),gI(),rl$1(" ",e.label," ");}}function we(t,o){if(t&1&&(_i(0,"span",6),Iw(1),Jc()),t&2){let e=HD().$implicit;ch("data-testid","file-browser-crumb-"+e.label),gI(),Lh(e.label);}}function De(t,o){if(t&1&&_D(0,xe,4,2)(1,we,2,2,"span",6),t&2){let e=o.$index,i=o.$count;MD(e!==i-1?0:1);}}function ve(t,o){t&1&&(_i(0,"p",3),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function ye(t,o){if(t&1&&(_i(0,"p",4),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.error());}}function Me(t,o){if(t&1){let e=FD();_i(0,"li")(1,"button",9),mh("click",function(){let n=Fu(e),r=HD(2);return ju(r.loadDir(n))}),Iw(2," ../ "),Jc()();}}function ke(t,o){if(t&1){let e=FD();_i(0,"li")(1,"button",10),mh("click",function(){let n=Fu(e).$implicit,r=HD(2);return ju(r.onEntry(n))}),Iw(2),Jc()();}if(t&2){let e=o.$implicit,i=HD(2);gI(),Sh("dir",e.isDirectory)("selected",i.isSelected(e)),ch("data-testid","file-browser-entry-"+e.name),gI(),Fh(" ",e.name,"",e.isDirectory?"/":""," ");}}function Fe(t,o){if(t&1&&(_i(0,"ul",5),_D(1,Me,3,0,"li"),xD(2,ke,3,7,"li",null,be),Jc()),t&2){let e,i=HD();gI(),MD((e=i.parentDir())?1:-1,e),gI(),AD(i.entries());}}var ge=(()=>{class t{constructor(){this.filesystem=C(fe),this.transloco=C(Ve),this.destroyRef=C(at),this.modalData=C(Wn,{optional:true}),this.path=W0(this.modalData?.path??""),this.mode=q0(this.modalData?.mode??"files"),this.extensions=q0(this.modalData?.extensions??[]),this.currentDir=qo(""),this.entries=qo([]),this.loading=qo(false),this.error=qo(null),this.crumbs=Uw(()=>L(this.currentDir())),this.parentDir=Uw(()=>j(this.currentDir()));}ngOnInit(){this.openAround(this.path());}isSelected(e){return this.mode()==="directories"?e.isDirectory&&e.path===this.path():!e.isDirectory&&e.path===this.path()}onEntry(e){if(e.isDirectory){this.loadDir(e.path);return}this.mode()==="files"&&this.path.set(e.path);}loadDir(e){this.loading.set(true),this.error.set(null),this.filesystem.browse(e,this.browseFilter()).pipe(ue(this.destroyRef)).subscribe({next:i=>this.applyListing(i),error:i=>{this.loading.set(false),this.error.set(this.errorMessage(i,this.transloco.translate("file-browser.loadFailed")));}});}browseFilter(){let e=this.extensions();return r$1({mode:this.mode()},e.length>0?{extensions:e}:{})}openAround(e){let i=e.trim();if(!i){this.loadDir(void 0);return}this.loading.set(true),this.error.set(null),this.filesystem.browse(i,this.browseFilter()).pipe(ue(this.destroyRef)).subscribe({next:n=>this.applyListing(n),error:()=>this.loadDir(j(i)??void 0)});}applyListing(e){this.currentDir.set(e.path),this.entries.set(e.entries),this.mode()==="directories"&&this.path.set(e.path),this.loading.set(false),this.error.set(null);}errorMessage(e,i){return e instanceof bi||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-file-browser"]],inputs:{path:[1,"path"],mode:[1,"mode"],extensions:[1,"extensions"]},outputs:{path:"pathChange"},decls:10,vars:4,consts:[["data-testid","file-browser",1,"file-browser"],["data-testid","file-browser-selected",1,"selected"],["data-testid","file-browser-breadcrumbs",1,"crumbs"],["data-testid","file-browser-loading"],["data-testid","file-browser-error",1,"error"],["data-testid","file-browser-entries",1,"entries"],[1,"current"],["nz-button","","nzType","link","type","button",3,"click"],["aria-hidden","true",1,"sep"],["type","button","data-testid","file-browser-up",1,"entry","dir",3,"click"],["type","button",1,"entry",3,"click"]],template:function(i,n){i&1&&(_i(0,"div",0)(1,"p",1),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"nav",2),xD(5,De,2,1,null,null,be),Jc(),_D(7,ve,3,3,"p",3)(8,ye,2,1,"p",4)(9,Fe,4,1,"ul",5),Jc()),i&2&&(gI(2),rl$1(" ",n.path()||Fw(3,2,n.mode()==="directories"?"file-browser.emptySelectionDirectory":"file-browser.emptySelection")," "),gI(3),AD(n.crumbs()),gI(2),MD(n.loading()?7:n.error()?8:9));},dependencies:[$8,pf,bd,sp,Kt],styles:[".file-browser[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.45rem}.selected[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:#44403c;overflow-wrap:anywhere;word-break:break-word}.crumbs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem;font-size:.85rem}.crumbs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-inline:.15rem;height:auto}.sep[_ngcontent-%COMP%]{color:#a8a29e}.current[_ngcontent-%COMP%]{color:#1c1917;font-weight:600}.entries[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.2rem 0;max-height:20rem;overflow:auto;border:1px solid #e7e5e4;background:#fff}.entry[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;border:0;background:transparent;padding:.3rem .6rem;cursor:pointer;font:inherit;color:inherit}.entry[_ngcontent-%COMP%]:hover{background:#f5f5f4}.entry.dir[_ngcontent-%COMP%]{font-weight:600}.entry.selected[_ngcontent-%COMP%]{background:#e7e5e4}.error[_ngcontent-%COMP%]{margin:0;color:#9f1239}"]});}}return t})();var ot=(()=>{class t{constructor(){this.modal=C(jn),this.transloco=C(Ve),this.path=W0(""),this.mode=q0("files"),this.extensions=q0([]),this.placeholder=q0(void 0),this.browseLabel=q0(void 0);}placeholderText(){return this.placeholder()||this.transloco.translate(this.mode()==="directories"?"path-picker.placeholderDirectory":"path-picker.placeholderFile")}browseButtonText(){return this.browseLabel()||this.transloco.translate("path-picker.browse")}openBrowse(){let e=this.mode(),i=this.modal.create({nzTitle:this.transloco.translate(e==="directories"?"path-picker.modalTitleDirectory":"path-picker.modalTitleFile"),nzContent:ge,nzData:{path:this.path(),mode:e,extensions:this.extensions()},nzWidth:640,nzOkText:this.transloco.translate(e==="directories"?"file-browser.useFolder":"path-picker.selectFile"),nzCancelText:this.transloco.translate("common.cancel"),nzOnOk:()=>{let n=i.getContentComponent();this.path.set(n.path());}});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-path-picker"]],inputs:{path:[1,"path"],mode:[1,"mode"],extensions:[1,"extensions"],placeholder:[1,"placeholder"],browseLabel:[1,"browseLabel"]},outputs:{path:"pathChange"},decls:4,vars:3,consts:[["data-testid","path-picker",1,"path-picker"],["nz-input","","data-testid","path-picker-input",3,"ngModelChange","placeholder","ngModel"],["nz-button","","type","button","data-testid","path-picker-browse",3,"click"]],template:function(i,n){i&1&&(_i(0,"div",0)(1,"input",1),mh("ngModelChange",function(h){return n.path.set(h)}),Jc(),iE(),_i(2,"button",2),mh("click",function(){return n.openBrowse()}),Iw(3),Jc()()),i&2&&(gI(),lh("placeholder",n.placeholderText())("ngModel",n.path()),aE(),gI(2),rl$1(" ",n.browseButtonText()," "));},dependencies:[al,er,rl,$i,pf,bd,sp,fp,ai,z,ts],styles:[".path-picker[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.path-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;min-width:0}"]});}}return t})();export{ot as o};
1
+ import {C,b0 as jn,V as Ve,bK as W0,a5 as q0,Z as ZE,e as al,bb as er,f as rl,g as $i,Y as pf,a0 as bd,a1 as sp,a2 as fp,b1 as ts,j as _i,m as mh,J as Jc,k as iE,I as Iw,o as gI,w as lh,y as aE,z as rl$1,b as at,b3 as Wn,q as qo,U as Uw,u as ue,r as r$1,c as bi,d as $8,K as Kt,P as Pw,x as xD,l as _D,p as Fw,B as AD,M as MD,b4 as N2,aV as ix,bU as M1,b5 as cx,i as ie,L as Lh,H as HD,D as ch,G as FD,al as Sh,aL as Fh,O as Fu,Q as ju}from'./main-CL3L2RPE.js';import {a as ai,z}from'./chunk-BDJQdoLK.js';var fe=(()=>{class t{constructor(){this.http=C(N2),this.baseUrl=`${ix.apiBaseUrl}/filesystem`;}browse(e,i){let n=new M1;return e!=null&&e.trim()!==""&&(n=n.set("path",e.trim())),i?.mode&&(n=n.set("mode",i.mode)),i?.extensions&&i.extensions.length>0&&(n=n.set("extensions",i.extensions.join(","))),this.http.get(`${this.baseUrl}/browse`,{params:n}).pipe(cx())}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function L(t){if(!t)return [];if(/^[A-Za-z]:/.test(t)){let r=t.includes("\\")?"\\":"/",h=`${t.slice(0,2)}${r}`,_=t.slice(2).replace(/^[\\/]+/,"").split(/[\\/]/).filter(Boolean),R=[{label:t.slice(0,2),path:h}],f=h;for(let O of _)f=f.endsWith(r)?f+O:f+r+O,R.push({label:O,path:f});return R}if(t.startsWith("/")){let r=t.split("/").filter(Boolean),h=[{label:"/",path:"/"}],z="";for(let _ of r)z+=`/${_}`,h.push({label:_,path:z});return h}let o=t.includes("\\")?"\\":"/",e=t.split(/[\\/]/).filter(Boolean),i=[],n="";for(let r of e)n=n?n+o+r:r,i.push({label:r,path:n});return i}function j(t){let o=L(t);return o.length<2?null:o[o.length-2].path}var be=(t,o)=>o.path;function xe(t,o){if(t&1){let e=FD();_i(0,"button",7),mh("click",function(){Fu(e);let n=HD().$implicit,r=HD();return ju(r.loadDir(n.path))}),Iw(1),Jc(),_i(2,"span",8),Iw(3,"/"),Jc();}if(t&2){let e=HD().$implicit;ch("data-testid","file-browser-crumb-"+e.label),gI(),rl$1(" ",e.label," ");}}function we(t,o){if(t&1&&(_i(0,"span",6),Iw(1),Jc()),t&2){let e=HD().$implicit;ch("data-testid","file-browser-crumb-"+e.label),gI(),Lh(e.label);}}function De(t,o){if(t&1&&_D(0,xe,4,2)(1,we,2,2,"span",6),t&2){let e=o.$index,i=o.$count;MD(e!==i-1?0:1);}}function ve(t,o){t&1&&(_i(0,"p",3),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function ye(t,o){if(t&1&&(_i(0,"p",4),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.error());}}function Me(t,o){if(t&1){let e=FD();_i(0,"li")(1,"button",9),mh("click",function(){let n=Fu(e),r=HD(2);return ju(r.loadDir(n))}),Iw(2," ../ "),Jc()();}}function ke(t,o){if(t&1){let e=FD();_i(0,"li")(1,"button",10),mh("click",function(){let n=Fu(e).$implicit,r=HD(2);return ju(r.onEntry(n))}),Iw(2),Jc()();}if(t&2){let e=o.$implicit,i=HD(2);gI(),Sh("dir",e.isDirectory)("selected",i.isSelected(e)),ch("data-testid","file-browser-entry-"+e.name),gI(),Fh(" ",e.name,"",e.isDirectory?"/":""," ");}}function Fe(t,o){if(t&1&&(_i(0,"ul",5),_D(1,Me,3,0,"li"),xD(2,ke,3,7,"li",null,be),Jc()),t&2){let e,i=HD();gI(),MD((e=i.parentDir())?1:-1,e),gI(),AD(i.entries());}}var ge=(()=>{class t{constructor(){this.filesystem=C(fe),this.transloco=C(Ve),this.destroyRef=C(at),this.modalData=C(Wn,{optional:true}),this.path=W0(this.modalData?.path??""),this.mode=q0(this.modalData?.mode??"files"),this.extensions=q0(this.modalData?.extensions??[]),this.currentDir=qo(""),this.entries=qo([]),this.loading=qo(false),this.error=qo(null),this.crumbs=Uw(()=>L(this.currentDir())),this.parentDir=Uw(()=>j(this.currentDir()));}ngOnInit(){this.openAround(this.path());}isSelected(e){return this.mode()==="directories"?e.isDirectory&&e.path===this.path():!e.isDirectory&&e.path===this.path()}onEntry(e){if(e.isDirectory){this.loadDir(e.path);return}this.mode()==="files"&&this.path.set(e.path);}loadDir(e){this.loading.set(true),this.error.set(null),this.filesystem.browse(e,this.browseFilter()).pipe(ue(this.destroyRef)).subscribe({next:i=>this.applyListing(i),error:i=>{this.loading.set(false),this.error.set(this.errorMessage(i,this.transloco.translate("file-browser.loadFailed")));}});}browseFilter(){let e=this.extensions();return r$1({mode:this.mode()},e.length>0?{extensions:e}:{})}openAround(e){let i=e.trim();if(!i){this.loadDir(void 0);return}this.loading.set(true),this.error.set(null),this.filesystem.browse(i,this.browseFilter()).pipe(ue(this.destroyRef)).subscribe({next:n=>this.applyListing(n),error:()=>this.loadDir(j(i)??void 0)});}applyListing(e){this.currentDir.set(e.path),this.entries.set(e.entries),this.mode()==="directories"&&this.path.set(e.path),this.loading.set(false),this.error.set(null);}errorMessage(e,i){return e instanceof bi||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-file-browser"]],inputs:{path:[1,"path"],mode:[1,"mode"],extensions:[1,"extensions"]},outputs:{path:"pathChange"},decls:10,vars:4,consts:[["data-testid","file-browser",1,"file-browser"],["data-testid","file-browser-selected",1,"selected"],["data-testid","file-browser-breadcrumbs",1,"crumbs"],["data-testid","file-browser-loading"],["data-testid","file-browser-error",1,"error"],["data-testid","file-browser-entries",1,"entries"],[1,"current"],["nz-button","","nzType","link","type","button",3,"click"],["aria-hidden","true",1,"sep"],["type","button","data-testid","file-browser-up",1,"entry","dir",3,"click"],["type","button",1,"entry",3,"click"]],template:function(i,n){i&1&&(_i(0,"div",0)(1,"p",1),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"nav",2),xD(5,De,2,1,null,null,be),Jc(),_D(7,ve,3,3,"p",3)(8,ye,2,1,"p",4)(9,Fe,4,1,"ul",5),Jc()),i&2&&(gI(2),rl$1(" ",n.path()||Fw(3,2,n.mode()==="directories"?"file-browser.emptySelectionDirectory":"file-browser.emptySelection")," "),gI(3),AD(n.crumbs()),gI(2),MD(n.loading()?7:n.error()?8:9));},dependencies:[$8,pf,bd,sp,Kt],styles:[".file-browser[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.45rem}.selected[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:#44403c;overflow-wrap:anywhere;word-break:break-word}.crumbs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem;font-size:.85rem}.crumbs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-inline:.15rem;height:auto}.sep[_ngcontent-%COMP%]{color:#a8a29e}.current[_ngcontent-%COMP%]{color:#1c1917;font-weight:600}.entries[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.2rem 0;max-height:20rem;overflow:auto;border:1px solid #e7e5e4;background:#fff}.entry[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;border:0;background:transparent;padding:.3rem .6rem;cursor:pointer;font:inherit;color:inherit}.entry[_ngcontent-%COMP%]:hover{background:#f5f5f4}.entry.dir[_ngcontent-%COMP%]{font-weight:600}.entry.selected[_ngcontent-%COMP%]{background:#e7e5e4}.error[_ngcontent-%COMP%]{margin:0;color:#9f1239}"]});}}return t})();var ot=(()=>{class t{constructor(){this.modal=C(jn),this.transloco=C(Ve),this.path=W0(""),this.mode=q0("files"),this.extensions=q0([]),this.placeholder=q0(void 0),this.browseLabel=q0(void 0);}placeholderText(){return this.placeholder()||this.transloco.translate(this.mode()==="directories"?"path-picker.placeholderDirectory":"path-picker.placeholderFile")}browseButtonText(){return this.browseLabel()||this.transloco.translate("path-picker.browse")}openBrowse(){let e=this.mode(),i=this.modal.create({nzTitle:this.transloco.translate(e==="directories"?"path-picker.modalTitleDirectory":"path-picker.modalTitleFile"),nzContent:ge,nzData:{path:this.path(),mode:e,extensions:this.extensions()},nzWidth:640,nzOkText:this.transloco.translate(e==="directories"?"file-browser.useFolder":"path-picker.selectFile"),nzCancelText:this.transloco.translate("common.cancel"),nzOnOk:()=>{let n=i.getContentComponent();this.path.set(n.path());}});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-path-picker"]],inputs:{path:[1,"path"],mode:[1,"mode"],extensions:[1,"extensions"],placeholder:[1,"placeholder"],browseLabel:[1,"browseLabel"]},outputs:{path:"pathChange"},decls:4,vars:3,consts:[["data-testid","path-picker",1,"path-picker"],["nz-input","","data-testid","path-picker-input",3,"ngModelChange","placeholder","ngModel"],["nz-button","","type","button","data-testid","path-picker-browse",3,"click"]],template:function(i,n){i&1&&(_i(0,"div",0)(1,"input",1),mh("ngModelChange",function(h){return n.path.set(h)}),Jc(),iE(),_i(2,"button",2),mh("click",function(){return n.openBrowse()}),Iw(3),Jc()()),i&2&&(gI(),lh("placeholder",n.placeholderText())("ngModel",n.path()),aE(),gI(2),rl$1(" ",n.browseButtonText()," "));},dependencies:[al,er,rl,$i,pf,bd,sp,fp,ai,z,ts],styles:[".path-picker[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.path-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;min-width:0}"]});}}return t})();export{ot as o};
@@ -1 +1 @@
1
- import {U as Uy}from'./chunk-C2BVYtVN.js';function p(t){switch(t){case "completed":return "success";case "failed":return "error";case "waiting_for_human":case "waiting_for_children":return "info";case "pending":case "cancelled":return "muted";case "planning":case "implementing":case "testing":return "primary"}}function d(t){switch(t){case "completed":return "success";case "failed":return "error";case "completed_with_issues":case "cancelled":return "warning";default:return null}}function m(t){switch(t){case "completed":return "success";case "failed":return "error";case "queued":case "waiting_for_children":return "info";case "running":return "primary";case "pending":case "skipped":return "muted"}}function a(t,e){if(!(!t||e==="dark"))switch(t){case "success":return "success";case "warning":return "warning";case "error":return "error";case "info":case "primary":case "muted":return}}function f(t,e){return !t||e!=="dark"&&!(t==="info"||t==="primary"||t==="muted")?"":`knoflows-tag-${t}`}function x(t,e){return f(p(t),e)}function h(t,e){return a(p(t),e)}function y(t,e){return f(d(t),e)}function S(t,e){return a(d(t),e)}function T(t,e){return f(m(t),e)}function _(t,e){return a(m(t),e)}var g=new Set(["completed","failed","cancelled"]);function C(t){return t==="agent"||t==="shell"||t==="git"||t==="provider_action"}function w(t){return g.has(t)}function I(t){let e=t.stepHistory.find(r=>r.status==="running");if(e)return e;let n=t.stepHistory.find(r=>r.status==="queued");if(n)return n;if((t.status==="waiting_for_human"||t.status==="waiting_for_children")&&t.currentStepExecutionId){let r=t.stepHistory.find(i=>i.id===t.currentStepExecutionId);if(r)return r}return w(t.status)&&t.stepHistory.length>0?t.stepHistory[t.stepHistory.length-1]??null:null}function k(t,e){let n=new Map;for(let r of e)n.set(r.stepDefinitionId,r);return t.map(r=>{let i=n.get(r.id)??null;return {definition:r,execution:i,reached:i!=null}})}function O(t){if(!t)return null;if(t.mode==="single"){let n=t.subject;return `${n.id} \xB7 ${n.title}`}let e=t.subjects.length;if(e===0)return null;if(e===1){let n=t.subjects[0];return `${n.id} \xB7 ${n.title}`}return `${e} subjects`}function b(t){let e=t.workflowSnapshot?.name??t.workflowId;return t.subjectContext?t.subjectContext.mode==="single"?`${e} \u2014 ${t.subjectContext.subject.title}`:`${e} \u2014 ${t.subjectContext.subjects.length} items`:e}function v(t,e,n,r){let i=t.findIndex(s=>s.id===n);if(!(i<0))for(let s=i-1;s>=0;s-=1){let o=t[s];if(o.type!=="agent")continue;let c=e.find(u=>u.stepDefinitionId===o.id);if(c?.output!==void 0)return c.output;if(Object.prototype.hasOwnProperty.call(r.context,o.id))return r.context[o.id]}}function D(t){let e=t.waitingEvent;if(e&&e.questions.length>0)return e.questions;let n=e?.data??t.selectedOutput??t.priorOutput,r=Uy(t.interaction,n);return r.length>0?r:e?.data!=null?[JSON.stringify(e.data,null,2)]:[]}function E(t){return t.waitingEvent?.data??t.selectedOutput??t.priorOutput}function H(t){if(!t||typeof t!="object")return [];let e=t.questions;if(!Array.isArray(e))return [];let n=new Set,r=[];return e.forEach((i,s)=>{let o="",c="";if(typeof i=="string")c=i.trim();else if(i&&typeof i=="object"){let u=i;typeof u.prompt=="string"&&(c=u.prompt.trim()),typeof u.id=="string"&&(o=u.id.trim());}if(c){if(!o){let u=`q${s+1}`;for(;n.has(u);)u=`${u}_${s}`;o=u;}n.add(o),r.push({id:o,prompt:c});}}),r}function A(t,e){return t.every(n=>(e[n.id]??"").trim()!=="")}function P(t,e,n){let r={};for(let s of t)r[s.id]=(e[s.id]??"").trim();let i=n.trim();return i&&(r.additionalComments=i),r}function J(t,e){let n=e.trim();return n?{approved:t,comment:n}:{approved:t}}export{A,C,D,E,H,I,J,O,P,S,T,_,b,h,k,v,w,x,y};
1
+ import {U as Uy}from'./chunk-Darhf4Mc.js';function p(t){switch(t){case "completed":return "success";case "failed":return "error";case "waiting_for_human":case "waiting_for_children":return "info";case "pending":case "cancelled":return "muted";case "planning":case "implementing":case "testing":return "primary"}}function d(t){switch(t){case "completed":return "success";case "failed":return "error";case "completed_with_issues":case "cancelled":return "warning";default:return null}}function m(t){switch(t){case "completed":return "success";case "failed":return "error";case "queued":case "waiting_for_children":return "info";case "running":return "primary";case "pending":case "skipped":return "muted"}}function a(t,e){if(!(!t||e==="dark"))switch(t){case "success":return "success";case "warning":return "warning";case "error":return "error";case "info":case "primary":case "muted":return}}function f(t,e){return !t||e!=="dark"&&!(t==="info"||t==="primary"||t==="muted")?"":`knoflows-tag-${t}`}function x(t,e){return f(p(t),e)}function h(t,e){return a(p(t),e)}function y(t,e){return f(d(t),e)}function S(t,e){return a(d(t),e)}function T(t,e){return f(m(t),e)}function _(t,e){return a(m(t),e)}var g=new Set(["completed","failed","cancelled"]);function C(t){return t==="agent"||t==="shell"||t==="git"||t==="provider_action"}function w(t){return g.has(t)}function I(t){let e=t.stepHistory.find(r=>r.status==="running");if(e)return e;let n=t.stepHistory.find(r=>r.status==="queued");if(n)return n;if((t.status==="waiting_for_human"||t.status==="waiting_for_children")&&t.currentStepExecutionId){let r=t.stepHistory.find(i=>i.id===t.currentStepExecutionId);if(r)return r}return w(t.status)&&t.stepHistory.length>0?t.stepHistory[t.stepHistory.length-1]??null:null}function k(t,e){let n=new Map;for(let r of e)n.set(r.stepDefinitionId,r);return t.map(r=>{let i=n.get(r.id)??null;return {definition:r,execution:i,reached:i!=null}})}function O(t){if(!t)return null;if(t.mode==="single"){let n=t.subject;return `${n.id} \xB7 ${n.title}`}let e=t.subjects.length;if(e===0)return null;if(e===1){let n=t.subjects[0];return `${n.id} \xB7 ${n.title}`}return `${e} subjects`}function b(t){let e=t.workflowSnapshot?.name??t.workflowId;return t.subjectContext?t.subjectContext.mode==="single"?`${e} \u2014 ${t.subjectContext.subject.title}`:`${e} \u2014 ${t.subjectContext.subjects.length} items`:e}function v(t,e,n,r){let i=t.findIndex(s=>s.id===n);if(!(i<0))for(let s=i-1;s>=0;s-=1){let o=t[s];if(o.type!=="agent")continue;let c=e.find(u=>u.stepDefinitionId===o.id);if(c?.output!==void 0)return c.output;if(Object.prototype.hasOwnProperty.call(r.context,o.id))return r.context[o.id]}}function D(t){let e=t.waitingEvent;if(e&&e.questions.length>0)return e.questions;let n=e?.data??t.selectedOutput??t.priorOutput,r=Uy(t.interaction,n);return r.length>0?r:e?.data!=null?[JSON.stringify(e.data,null,2)]:[]}function E(t){return t.waitingEvent?.data??t.selectedOutput??t.priorOutput}function H(t){if(!t||typeof t!="object")return [];let e=t.questions;if(!Array.isArray(e))return [];let n=new Set,r=[];return e.forEach((i,s)=>{let o="",c="";if(typeof i=="string")c=i.trim();else if(i&&typeof i=="object"){let u=i;typeof u.prompt=="string"&&(c=u.prompt.trim()),typeof u.id=="string"&&(o=u.id.trim());}if(c){if(!o){let u=`q${s+1}`;for(;n.has(u);)u=`${u}_${s}`;o=u;}n.add(o),r.push({id:o,prompt:c});}}),r}function A(t,e){return t.every(n=>(e[n.id]??"").trim()!=="")}function P(t,e,n){let r={};for(let s of t)r[s.id]=(e[s.id]??"").trim();let i=n.trim();return i&&(r.additionalComments=i),r}function J(t,e){let n=e.trim();return n?{approved:t,comment:n}:{approved:t}}export{A,C,D,E,H,I,J,O,P,S,T,_,b,h,k,v,w,x,y};