PageSourceSearch

https://ng-alain-doc.surge.sh/main-YYZC7LXB.js

js ng-alain-doc.surge.sh collected 2026-10-03 14:56:07 UTC 912,497 bytes, 569 lines download raw bytes

1import{$a as ff,$c as wy,$i as _O,$o as l4e,$r as Ul,$t as Jge,A as CM,Aa as d2,Ac as uo$2,An as Mm$1,Ao as iV,At as HM,Ba as eI,Bc as vi$1,Bn as O$1,Bo as jl,Br as T1e,Bt as IV,C as Be,Ca as by,Cc as u5,Ci as X$2,Cl as zN,Cn as M,Co as ht$1,Cr as S,Cs as oM,Ct as Gi,D as By,Da as cb,Dc as ug$1,Di as Xf,Dl as zx,Do as i5,Dr as SB,Ds as on,Dt as H$2,E as Bo,Ea as cV,Ec as ue$1,Ei as Xe,En as MV,Eo as i4,Es as om$1,Et as Gw,F as DO,Fa as dg$1,Fc as vO,Fn as N1e,Fo as j1e,Fr as Se$1,Fs as pe$1,Ft as Hu$1,G as E2e,Gc as w2e,Gi as Zl$1,Gr as Te$1,Gs as qo$1,Ha as ee$3,Hc as vr$3,Hi as Ze,Hn as O1e,Ho as ju$1,Hr as TDe,Hs as qMe,Ht as Il,I as DS,Ia as dn$2,Ii as Yl,In as NA,Io as j5,Ir as Sr$3,Is as pf,It as Hy,Ja as f2e,Jc as we$2,Jo as ka$1,Jr as Tz,Js as r2e,Jt as J5,K as E4,Ka as et$1,Kc as wL,Ki as Zp$1,Kn as Oc$1,Ko as kN,Kr as Tge,Ks as qt$3,L as Dd$1,La as dw,Lc as vc$1,Ln as NM,Lo as jDe,Ls as pi$1,M as Cd$1,Ma as d4e,Mc as uw,Mi as Xs,Mn as Mu$1,Mo as is,Mr as Sa$1,Ms as pL,Mt as Hge,N as D2e,Na as d5,Nc as v2e,Ni as Y1e,Nn as Mx,Nr as Sd$1,Ns as pO,Nt as Hn$2,O as C$1,Oa as cs,Oc as ui,On as Md$1,Oo as iM,Or as SM,Os as p2e,Ot as H1e,Pa as df,Pc as v5,Pi as YDe,Po as j,Pr as Sde,Ps as pa$3,Pt as Hp$1,Qa as fO,Qc as wx,Qi as _M,Qn as P$2,Qr as Ue$1,Qs as rn$3,Qt as Je$2,R as Dp,Ra as e2e,Rc as ve$1,Rn as Ni$2,Ro as ja$2,Rr as Sw,Rs as po$1,Sa as bwe,Si as Wye,Sl as zDe,Sn as Lu$1,So as hse,Sr as Ry,Ss as o5,T as Bn$1,Ta as cT,Tn as MO,To as i3,Tr as S2e,Ts as oe$2,Tt as Gt$2,Ua as er$1,Uc as vt,Ui as Zge,Ur as TO,Us as qe$1,Ut as Io$1,V as Dw,Va as ec$1,Vc as vo$1,Vi as Zc$1,Vo as jn$1,Vr as T2e,Vs as q1e,Vt as Ia$1,W as E1e,Wa as ere,Wc as w,Wi as Zi,Wo as kB,Wr as TS,Ws as ql$1,Wt as It$2,X as EP,Xa as f5,Xc as wo$1,Xi as _2e,Xn as Oo$1,Xo as ko$1,Xs as re$1,Xt as JL,Y as EO,Yc as wn$1,Yn as Oi,Yo as kc,Yr as U$2,Ys as rc,Yt as J9,Za as fB,Zc as ws,Zn as Op,Zo as l1,Zs as rm$1,Zt as Ja$1,_a as bc,_c as tn$2,_i as Wi,_l as yt$1,_n as L5e,_o as hO,_s as nn$1,_t as G$1,a as $d$1,aa as _t$1,ac as s4,ai as VA,al as xn$2,an as Jt$1,ar as Pa$1,as as m5,b as B1e,ba as bn$3,bi as Wr$2,bl as z0,bn as Lo,bo as hi$1,br as Ri,bs as o2e,bt as GV,c as $t,ca as a3,cc as sb,ci as Vge,cl as xz,cn as Kc$2,cr as QS,cs as mO,ct as FM,d as A1,di as W$1,dl as yc$1,dn as Kge,do as gt$1,dr as Qge,ds as mn$3,ea as _T,ei as Uo$2,en as Jk,es as li,et as Er$1,fa as an$3,fc as st$2,fi as W1e,fl as ye$1,fn as Kn,fo as gy,fr as Ql$1,fs as mo$1,ft as Fn,g as Ai,gc as ti,gi as We$2,gl as yn$1,gn as L1e,go as hI,gr as Qw,gs as ne,gt as Fy,h as Ac$2,ha as b$1,hc as ta$2,hi as W_,ho as h2e,hs as n_e,ht as Fx,i as $De,ia as _m$1,ic as s3,ii as V5,il as xi$1,in as Js,io as g$1,ir as PV,it as F$2,j as Ca$1,jc as ur$2,ji as Xr$3,jn as Mt$2,jo as ie$1,jr as SV,js as pI,jt as HV,k as C2e,ka as ct$2,kc as un$1,kn as Me$3,kr as SP,l as $ye,la as aE,lc as se$1,li as Vn$1,ll as y2e,ln as Kce,lo as gi$1,lr as Qc$2,ls as me$1,lt as Fa$1,m as Aa$1,ma as ax,mc as t_$1,mi as WM,ml as yi$2,mn as Kt$1,mr as Qp$1,ms as n2e,mt as Ft$1,n as $1e,na as _de,nc as rx,ni as V$2,nl as xB,nn as Jne,no as fo,nr as PMe,ns as lo$1,o as $e$2,ol as xr$2,on as K1e,oo as gB,os as mB,ot as F1e,p as AA,pa as as,pc as t2e,pi as WDe,pl as yf,pn as Kr$3,po as h,pr as Qn$1,ps as mt$2,pt as Fr$1,q as EDe,qa as ew,qc as wV,qi as Zr$2,qn as Od$1,qo as kO,qr as Tm$1,qs as qw,r as $D,ra as _i$1,rc as s2e,ri as V1e,rl as xde,rn as Jr$3,ro as fx,rs as lse,rt as Ex,s as $o$2,sa as a2e,sc as sV,si as Ve,sl as xx,so as gO,sr as Pd$1,st as FA,t as $$2,ta as _d$2,tc as rt$1,tl as x2e,tn as Jn$1,tr as PB,ts as ln$3,tt as Et,u as A,ua as aV,uc as sr$2,ui as Vx,un as Ke,uo as go$1,ur as Qe$1,us as mi$2,ut as Fe$1,v as Ap,va as be$1,vc as tre,vi as Wl,vl as yx,vn as LA,vo as he$1,vr as R5,vs as no,w as Bge,wa as c2e,wi as X5,wl as zO,wn as M2e,wo as i2e,ws as oN,wt as Gn,xa as bt,xc as u2,xi as Wt$1,xl as z1e,xn as Lt$1,xr as Rt$2,xs as o3,xt as Ge,y as B$2,ya as bi$1,yc as ts,yi as Wo$2,yl as z$2,yn as LL,yo as hf,yr as Rb,yt as G5,z as Dt$4,za as e9e,zi as Z5,zn as Nn$2,zo as je$1,zr as T$1,zs as pt$1,zt as IN}from"./chunk-Bix55avy.js";import"./chunk-B6DEdUMt.js";import{n as Wt$2,t as Dt$5}from"./chunk-BQHyAFCm.js";import{$ as zu$1,B as lu$1,E as Xs$1,G as os,H as nn$2,J as xr$3,L as is$1,O as Ya$1,P as fr$2,Q as yr$3,R as jn$2,S as Tr$2,T as Wa$1,_ as Mr,a as Cc,b as Pi$
11,c as Dr,d as Fi,f as Gl$1,g as Li,h as Le$2,j as _c$1,k as Ys,m as Ka$1,n as Ba$1,o as Cr$2,p as He$2,r as Bi,s as Da$2,t as At$1,x as Rc$2}from"./chunk-3aQ3WiqM.js";import{a as _n$2,c as kn$2,d as pn$3,f as sn$3,i as We$3,l as ln$4,n as Hn$3,o as bn$4,r as So$1,s as cn$2,t as Bn$2,u as nt$1}from"./chunk-bq9s7eY5.js";import{a as Tt$1,c as ki$1,d as zi$1,i as Ti$2,l as mt$3,n as F$3,o as ft$1,r as Qt$2,s as ht$2,u as ut$1}from"./chunk-BzdOXOVs.js";import{a as dr$2,c as nr$2,d as yn$2,i as ci$1,l as or$2,n as Ja$2,o as er$2,r as ai,s as ki$2,t as Ai$1,u as tr$1}from"./chunk-BEuoOxL9.js";import{a as ct$3,c as ut$2,i as Pe$2,n as He$3,o as dt$1,r as Kt$2,s as je$2,t as Et$1}from"./chunk-uiqTrtWh.js";import{n as _n$3,t as Sn$2}from"./chunk-CgBXRMDB.js";import{a as bt$1,i as St,n as Nt$1,r as Rt$3,t as Dt$6}from"./chunk-lfgHJYvd.js";var an$2=Fx(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.regexpCode=B.getEsmExportName=B.getProperty=B.safeStringify=B.stringify=B.strConcat=B.addCodeArg=B.str=B._=B.nil=B._Code=B.Name=B.IDENTIFIER=B._CodeOrName=void 0;var nn=class{};B._CodeOrName=nn;B.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ut=class extends nn{constructor(e){if(super(),!B.IDENTIFIER.test(e))throw new Error(`CodeGen: name must be a valid identifier`);this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};B.Name=Ut;var Le=class extends nn{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,``)}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ut&&(r[n.str]=(r[n.str]||0)+1),r),{})}};B._Code=Le;B.nil=new Le(``);function bl(t,...e){let r=[t[0]],n=0;for(;n<e.length;)mo(r,e[n]),r.push(t[++n]);return new Le(r)}B._=bl;var fo=new Le(`+`);function Sl(t,...e){let r=[on(t[0])],n=0;for(;n<e.length;)r.push(fo),mo(r,e[n]),r.push(fo,on(t[++n]));return Nu(r),new Le(r)}B.str=Sl;function mo(t,e){e instanceof Le?t.push(...e._items):e instanceof Ut?t.push(e):t.push(Vu(e))}B.addCodeArg=mo;function Nu(t){let e=1;for(;e<t.length-1;){if(t[e]===fo){let r=Du(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]=`+`}e++}}function Du(t,e){if(e===`""`)return t;if(t===`""`)return e;if(typeof t==`string`)return e instanceof Ut||t[t.length-1]!==`"`?void 0:typeof e!=`string`?`${t.slice(0,-1)}${e}"`:e[0]===`"`?t.slice(0,-1)+e.slice(1):void 0;if(typeof e==`string`&&e[0]===`"`&&!(t instanceof Ut))return`"${t}${e.slice(1)}`}function Mu(t,e){return e.emptyStr()?t:t.emptyStr()?e:Sl`${t}${e}`}B.strConcat=Mu;function Vu(t){return typeof t==`number`||typeof t==`boolean`||t===null?t:on(Array.isArray(t)?t.join(`,`):t)}function Ou(t){return new Le(on(t))}B.stringify=Ou;function on(t){return JSON.stringify(t).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}B.safeStringify=on;function ku(t){return typeof t==`string`&&B.IDENTIFIER.test(t)?new Le(`.${t}`):bl`[${t}]`}B.getProperty=ku;function Au(t){if(typeof t==`string`&&B.IDENTIFIER.test(t))return new Le(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}B.getEsmExportName=Au;function Ru(t){return new Le(t.toString())}B.regexpCode=Ru});var yo$1=Fx(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.ValueScope=Oe.ValueScopeName=Oe.Scope=Oe.varKinds=Oe.UsedValueState=void 0;var Ve=an$2(),po=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},gi;(function(t){t[t.Started=0]=`Started`,t[t.Completed=1]=`Completed`})(gi||(Oe.UsedValueState=gi={}));Oe.varKinds={const:new Ve.Name(`const`),let:new Ve.Name(`let`),var:new Ve.Name(`var`)};var _i=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Ve.Name?e:this.name(e)}name(e){return new Ve.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Oe.Scope=_i;var vi=class extends Ve.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Ve._)`.${new Ve.Name(r)}[${n}]`}};Oe.ValueScopeName=vi;var ju=(0,Ve._)`\n`,ho=class extends _i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts=W$1(g$1({},e),{_n:e.lines?ju:Ve.nil})}get(){return this._scope}name(e){return new vi(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error(`CodeGen: ref must be passed in value`);let i=this.toName(e),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,s=this._values[o];if(s){let d=s.get(a);if(d)return d}else s=this._values[o]=new Map;s.set(a,i);let l=this._scope[o]||(this._scope[o]=[]),c=l.length;return l[c]=r.ref,i.setValue(r,{property:o,itemIndex:c}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ve._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let o=Ve.nil;for(let a in e){let s=e[a];if(!s)continue;let l=n[a]=n[a]||new Map;
1s.forEach(c=>{if(l.has(c))return;l.set(c,gi.Started);let d=r(c);if(d){let f=this.opts.es5?Oe.varKinds.var:Oe.varKinds.const;o=(0,Ve._)`${o}${f} ${c} = ${d};${this.opts._n}`}else if(d=i?.(c))o=(0,Ve._)`${o}${d}${this.opts._n}`;else throw new po(c);l.set(c,gi.Completed)})}return o}};Oe.ValueScope=ho});var k=Fx(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.or=A.and=A.not=A.CodeGen=A.operators=A.varKinds=A.ValueScopeName=A.ValueScope=A.Scope=A.Name=A.regexpCode=A.stringify=A.getProperty=A.nil=A.strConcat=A.str=A._=void 0;var W=an$2(),Xe=yo$1(),Tt=an$2();Object.defineProperty(A,"_",{enumerable:!0,get:function(){return Tt._}});Object.defineProperty(A,"str",{enumerable:!0,get:function(){return Tt.str}});Object.defineProperty(A,"strConcat",{enumerable:!0,get:function(){return Tt.strConcat}});Object.defineProperty(A,"nil",{enumerable:!0,get:function(){return Tt.nil}});Object.defineProperty(A,"getProperty",{enumerable:!0,get:function(){return Tt.getProperty}});Object.defineProperty(A,"stringify",{enumerable:!0,get:function(){return Tt.stringify}});Object.defineProperty(A,"regexpCode",{enumerable:!0,get:function(){return Tt.regexpCode}});Object.defineProperty(A,"Name",{enumerable:!0,get:function(){return Tt.Name}});var wi=yo$1();Object.defineProperty(A,"Scope",{enumerable:!0,get:function(){return wi.Scope}});Object.defineProperty(A,"ValueScope",{enumerable:!0,get:function(){return wi.ValueScope}});Object.defineProperty(A,"ValueScopeName",{enumerable:!0,get:function(){return wi.ValueScopeName}});Object.defineProperty(A,"varKinds",{enumerable:!0,get:function(){return wi.varKinds}});A.operators={GT:new W._Code(`>`),GTE:new W._Code(`>=`),LT:new W._Code(`<`),LTE:new W._Code(`<=`),EQ:new W._Code(`===`),NEQ:new W._Code(`!==`),NOT:new W._Code(`!`),OR:new W._Code(`||`),AND:new W._Code(`&&`),ADD:new W._Code(`+`)};var Ct=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},go=class extends Ct{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?Xe.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=wr(this.rhs,e,r)),this}get names(){return this.rhs instanceof W._CodeOrName?this.rhs.names:{}}},bi=class extends Ct{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof W.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=wr(this.rhs,e,r),this}get names(){return Ci(this.lhs instanceof W.Name?{}:g$1({},this.lhs.names),this.rhs)}},_o=class extends bi{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},vo=class extends Ct{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bo=class extends Ct{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},So=class extends Ct{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Co=class extends Ct{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=wr(this.code,e,r),this}get names(){return this.code instanceof W._CodeOrName?this.code.names:{}}},sn=class extends Ct{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(e,r)||(Wu(e,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Gt(e,r.names),{})}},wt=class extends sn{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},wo=class extends sn{},Cr=class extends wt{};Cr.kind=`else`;var Ht=class t extends wt{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+=`else `+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Cr(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Cl(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=wr(this.condition,e,r),this}get names(){let e=super.names;return Ci(e,this.condition),this.else&&Gt(e,this.else.names),e}};Ht.kind=`if`;var Bt=class extends wt{};Bt.kind=`for`;var zo=class extends Bt{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=wr(this.iteration,e,r),this}get names(){return Gt(super.names,this.iteration.names)}},$o=class extends Bt{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?Xe.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){return Ci(Ci(super.names,this.from),this.to)}},Si=class extends Bt{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=wr(this.iterable,e,r),this}get names(){return Gt(super.names,this.iterable.names)}},ln=class extends wt{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};ln.kind=`func`;var dn=class extends sn{render(e){return`return `+super.render(e)}};dn.kind=`return`;var xo=class extends wt{render(e){let r=`try`+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;
1return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Gt(e,this.catch.names),this.finally&&Gt(e,this.finally.names),e}},cn=class extends wt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};cn.kind=`catch`;var un=class extends wt{render(e){return`finally`+super.render(e)}};un.kind=`finally`;var Fo=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts=W$1(g$1({},r),{_n:r.lines?`
2`:``}),this._extScope=e,this._scope=new Xe.Scope({parent:e}),this._nodes=[new wo]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new go(e,o,n)),o}const(e,r,n){return this._def(Xe.varKinds.const,e,r,n)}let(e,r,n){return this._def(Xe.varKinds.let,e,r,n)}var(e,r,n){return this._def(Xe.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new bi(e,r,n))}add(e,r){return this._leafNode(new _o(e,A.operators.ADD,r))}code(e){return typeof e==`function`?e():e!==W.nil&&this._leafNode(new Co(e)),this}object(...e){let r=[`{`];for(let[n,i]of e)r.length>1&&r.push(`,`),r.push(n),(n!==i||this.opts.es5)&&(r.push(`:`),(0,W.addCodeArg)(r,i));return r.push(`}`),new W._Code(r)}if(e,r,n){if(this._blockNode(new Ht(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new Ht(e))}else(){return this._elseNode(new Cr)}endIf(){return this._endBlockNode(Ht,Cr)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new zo(e),r)}forRange(e,r,n,i,o=this.opts.es5?Xe.varKinds.var:Xe.varKinds.let){let a=this._scope.toName(e);return this._for(new $o(o,a,r,n),()=>i(a))}forOf(e,r,n,i=Xe.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let a=r instanceof W.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,W._)`${a}.length`,s=>{this.var(o,(0,W._)`${a}[${s}]`),n(o)})}return this._for(new Si(`of`,i,o,r),()=>n(o))}forIn(e,r,n,i=this.opts.es5?Xe.varKinds.var:Xe.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,W._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new Si(`in`,i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Bt)}label(e){return this._leafNode(new vo(e))}break(e){return this._leafNode(new bo(e))}return(e){let r=new dn;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error(`CodeGen: "return" should have one node`);return this._endBlockNode(dn)}try(e,r,n){if(!r&&!n)throw new Error(`CodeGen: "try" without "catch" and "finally"`);let i=new xo;if(this._blockNode(i),this.code(e),r){let o=this.name(`e`);this._currNode=i.catch=new cn(o),r(o)}return n&&(this._currNode=i.finally=new un,this.code(n)),this._endBlockNode(cn,un)}throw(e){return this._leafNode(new So(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=W.nil,n,i){return this._blockNode(new ln(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ln)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ht))throw new Error(`CodeGen: "else" without "if"`);return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};A.CodeGen=Fo;function Gt(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Ci(t,e){return e instanceof W._CodeOrName?Gt(t,e.names):t}function wr(t,e,r){if(t instanceof W.Name)return n(t);if(!i(t))return t;return new W._Code(t._items.reduce((o,a)=>(a instanceof W.Name&&(a=n(a)),a instanceof W._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||e[o.str]!==1?o:(delete e[o.str],a)}function i(o){return o instanceof W._Code&&o._items.some(a=>a instanceof W.Name&&e[a.str]===1&&r[a.str]!==void 0)}}function Wu(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Cl(t){return typeof t==`boolean`||typeof t==`number`||t===null?!t:(0,W._)`!${Eo(t)}`}
2A.not=Cl;var qu=wl(A.operators.AND);function Lu(...t){return t.reduce(qu)}A.and=Lu;var Uu=wl(A.operators.OR);function Hu(...t){return t.reduce(Uu)}A.or=Hu;function wl(t){return(e,r)=>e===W.nil?r:r===W.nil?e:(0,W._)`${Eo(e)} ${t} ${Eo(r)}`}function Eo(t){return t instanceof W.Name?t:(0,W._)`(${t})`}});var q$1=Fx(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var ie=k(),Bu=an$2();function Gu(t){let e={};for(let r of t)e[r]=!0;return e}R.toHash=Gu;function Ku(t,e){return typeof e==`boolean`?e:Object.keys(e).length===0?!0:(xl(t,e),!Fl(e,t.self.RULES.all))}R.alwaysValidSchema=Ku;function xl(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e==`boolean`)return;let i=n.RULES.keywords;for(let o in e)i[o]||Il(t,`unknown keyword: "${o}"`)}R.checkUnknownRules=xl;function Fl(t,e){if(typeof t==`boolean`)return!t;for(let r in t)if(e[r])return!0;return!1}R.schemaHasRules=Fl;function Ju(t,e){if(typeof t==`boolean`)return!t;for(let r in t)if(r!==`$ref`&&e.all[r])return!0;return!1}R.schemaHasRulesButRef=Ju;function Xu({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,ie._)`${r}`}return(0,ie._)`${t}${e}${(0,ie.getProperty)(n)}`}R.schemaRefOrVal=Xu;function Zu(t){return El(decodeURIComponent(t))}R.unescapeFragment=Zu;function Qu(t){return encodeURIComponent(Io(t))}R.escapeFragment=Qu;function Io(t){return typeof t==`number`?`${t}`:t.replace(/~/g,`~0`).replace(/\//g,`~1`)}R.escapeJsonPointer=Io;function El(t){return t.replace(/~1/g,`/`).replace(/~0/g,`~`)}R.unescapeJsonPointer=El;function Yu(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}R.eachItem=Yu;function zl({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,o,a,s)=>{let l=a===void 0?o:a instanceof ie.Name?(o instanceof ie.Name?t(i,o,a):e(i,o,a),a):o instanceof ie.Name?(e(i,a,o),o):r(o,a);return s===ie.Name&&!(l instanceof ie.Name)?n(i,l):l}}R.mergeEvaluated={props:zl({mergeNames:(t,e,r)=>t.if((0,ie._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,ie._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,ie._)`${r} || {}`).code((0,ie._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,ie._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,ie._)`${r} || {}`),To(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:g$1(g$1({},t),e),resultToName:Pl}),items:zl({mergeNames:(t,e,r)=>t.if((0,ie._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,ie._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,ie._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,ie._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var(`items`,e)})};function Pl(t,e){if(e===!0)return t.var(`props`,!0);let r=t.var(`props`,(0,ie._)`{}`);return e!==void 0&&To(t,r,e),r}R.evaluatedPropsToName=Pl;function To(t,e,r){Object.keys(r).forEach(n=>t.assign((0,ie._)`${e}${(0,ie.getProperty)(n)}`,!0))}R.setEvaluated=To;var $l={};function ef(t,e){return t.scopeValue(`func`,{ref:e,code:$l[e.code]||($l[e.code]=new Bu._Code(e.code))})}R.useFunc=ef;var Po;(function(t){t[t.Num=0]=`Num`,t[t.Str=1]=`Str`})(Po||(R.Type=Po={}));function tf(t,e,r){if(t instanceof ie.Name){let n=e===Po.Num;return r?n?(0,ie._)`"[" + ${t} + "]"`:(0,ie._)`"['" + ${t} + "']"`:n?(0,ie._)`"/" + ${t}`:(0,ie._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ie.getProperty)(t).toString():`/`+Io(t)}R.getErrorPath=tf;function Il(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}R.checkStrictMode=Il});var zt$1=Fx(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var we=k();No.default={data:new we.Name(`data`),valCxt:new we.Name(`valCxt`),instancePath:new we.Name(`instancePath`),parentData:new we.Name(`parentData`),parentDataProperty:new we.Name(`parentDataProperty`),rootData:new we.Name(`rootData`),dynamicAnchors:new we.Name(`dynamicAnchors`),vErrors:new we.Name(`vErrors`),errors:new we.Name(`errors`),this:new we.Name(`this`),self:new we.Name(`self`),scope:new we.Name(`scope`),json:new we.Name(`json`),jsonPos:new we.Name(`jsonPos`),jsonLen:new we.Name(`jsonLen`),jsonPart:new we.Name(`jsonPart`)}});var fn=Fx(ze=>{"use strict";
2Object.defineProperty(ze,"__esModule",{value:!0});ze.extendErrors=ze.resetErrorsCount=ze.reportExtraError=ze.reportError=ze.keyword$DataError=ze.keywordError=void 0;var L=k(),zi=q$1(),Pe=zt$1();ze.keywordError={message:({keyword:t})=>(0,L.str)`must pass "${t}" keyword validation`};ze.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,L.str)`"${t}" keyword must be ${e} ($data)`:(0,L.str)`"${t}" keyword is invalid ($data)`};function nf(t,e=ze.keywordError,r,n){let{it:i}=t,{gen:o,compositeRule:a,allErrors:s}=i,l=Dl(t,e,r);n??(a||s)?Tl(o,l):Nl(i,(0,L._)`[${l}]`)}ze.reportError=nf;function of(t,e=ze.keywordError,r){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n;Tl(i,Dl(t,e,r)),o||a||Nl(n,Pe.default.vErrors)}ze.reportExtraError=of;function af(t,e){t.assign(Pe.default.errors,e),t.if((0,L._)`${Pe.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,L._)`${Pe.default.vErrors}.length`,e),()=>t.assign(Pe.default.vErrors,null)))}ze.resetErrorsCount=af;function sf({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error(`ajv implementation error`);let a=t.name(`err`);t.forRange(`i`,i,Pe.default.errors,s=>{t.const(a,(0,L._)`${Pe.default.vErrors}[${s}]`),t.if((0,L._)`${a}.instancePath === undefined`,()=>t.assign((0,L._)`${a}.instancePath`,(0,L.strConcat)(Pe.default.instancePath,o.errorPath))),t.assign((0,L._)`${a}.schemaPath`,(0,L.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,L._)`${a}.schema`,r),t.assign((0,L._)`${a}.data`,n))})}ze.extendErrors=sf;function Tl(t,e){let r=t.const(`err`,e);t.if((0,L._)`${Pe.default.vErrors} === null`,()=>t.assign(Pe.default.vErrors,(0,L._)`[${r}]`),(0,L._)`${Pe.default.vErrors}.push(${r})`),t.code((0,L._)`${Pe.default.errors}++`)}function Nl(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,L._)`new ${t.ValidationError}(${e})`):(r.assign((0,L._)`${n}.errors`,e),r.return(!1))}var Kt={keyword:new L.Name(`keyword`),schemaPath:new L.Name(`schemaPath`),params:new L.Name(`params`),propertyName:new L.Name(`propertyName`),message:new L.Name(`message`),schema:new L.Name(`schema`),parentSchema:new L.Name(`parentSchema`)};function Dl(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,L._)`{}`:lf(t,e,r)}function lf(t,e,r={}){let{gen:n,it:i}=t,o=[df(i,r),cf(t,r)];return uf(t,e,o),n.object(...o)}function df({errorPath:t},{instancePath:e}){let r=e?(0,L.str)`${t}${(0,zi.getErrorPath)(e,zi.Type.Str)}`:t;return[Pe.default.instancePath,(0,L.strConcat)(Pe.default.instancePath,r)]}function cf({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,L.str)`${e}/${t}`;return r&&(i=(0,L.str)`${i}${(0,zi.getErrorPath)(r,zi.Type.Str)}`),[Kt.schemaPath,i]}function uf(t,{params:e,message:r},n){let{keyword:i,data:o,schemaValue:a,it:s}=t,{opts:l,propertyName:c,topSchemaRef:d,schemaPath:f}=s;n.push([Kt.keyword,i],[Kt.params,typeof e==`function`?e(t):e||(0,L._)`{}`]),l.messages&&n.push([Kt.message,typeof r==`function`?r(t):r]),l.verbose&&n.push([Kt.schema,a],[Kt.parentSchema,(0,L._)`${d}${f}`],[Pe.default.data,o]),c&&n.push([Kt.propertyName,c])}});var Vl=Fx(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.boolOrEmptySchema=zr.topBoolOrEmptySchema=void 0;var ff=fn(),mf=k(),pf=zt$1(),hf={message:`boolean schema is false`};function yf(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Ml(t,!1):typeof r==`object`&&r.$async===!0?e.return(pf.default.data):(e.assign((0,mf._)`${n}.errors`,null),e.return(!0))}zr.topBoolOrEmptySchema=yf;function gf(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Ml(t)):r.var(e,!0)}zr.boolOrEmptySchema=gf;function Ml(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:`false schema`,data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,ff.reportError)(i,hf,void 0,e)}});var Do$1=Fx($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getRules=$r.isJSONType=void 0;var vf=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function bf(t){return typeof t==`string`&&vf.has(t)}$r.isJSONType=bf;function Sf(){let t={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:W$1(g$1({},t),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}$r.getRules=Sf});
2var Mo$1=Fx(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.shouldUseRule=Nt.shouldUseGroup=Nt.schemaHasRulesForType=void 0;function Cf({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Ol(t,n)}Nt.schemaHasRulesForType=Cf;function Ol(t,e){return e.rules.some(r=>kl(t,r))}Nt.shouldUseGroup=Ol;function kl(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Nt.shouldUseRule=kl});var mn$2=Fx($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.reportTypeError=$e.checkDataTypes=$e.checkDataType=$e.coerceAndCheckDataType=$e.getJSONTypes=$e.getSchemaTypes=$e.DataType=void 0;var wf=Do$1(),zf=Mo$1(),$f=fn(),O=k(),Al=q$1(),xr;(function(t){t[t.Correct=0]=`Correct`,t[t.Wrong=1]=`Wrong`})(xr||($e.DataType=xr={}));function xf(t){let e=Rl(t.type);if(e.includes(`null`)){if(t.nullable===!1)throw new Error(`type: null contradicts nullable: false`)}else{if(!e.length&&t.nullable!==void 0)throw new Error(`"nullable" cannot be used without "type"`);t.nullable===!0&&e.push(`null`)}return e}$e.getSchemaTypes=xf;function Rl(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(wf.isJSONType))return e;throw new Error(`type must be JSONType or JSONType[]: `+e.join(`,`))}$e.getJSONTypes=Rl;function Ff(t,e){let{gen:r,data:n,opts:i}=t,o=Ef(e,i.coerceTypes),a=e.length>0&&!(o.length===0&&e.length===1&&(0,zf.schemaHasRulesForType)(t,e[0]));if(a){let s=Oo(e,n,i.strictNumbers,xr.Wrong);r.if(s,()=>{o.length?Pf(t,e,o):ko(t)})}return a}$e.coerceAndCheckDataType=Ff;var jl=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function Ef(t,e){return e?t.filter(r=>jl.has(r)||e===`array`&&r===`array`):[]}function Pf(t,e,r){let{gen:n,data:i,opts:o}=t,a=n.let(`dataType`,(0,O._)`typeof ${i}`),s=n.let(`coerced`,(0,O._)`undefined`);o.coerceTypes===`array`&&n.if((0,O._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,O._)`${i}[0]`).assign(a,(0,O._)`typeof ${i}`).if(Oo(e,i,o.strictNumbers),()=>n.assign(s,i))),n.if((0,O._)`${s} !== undefined`);for(let c of r)(jl.has(c)||c===`array`&&o.coerceTypes===`array`)&&l(c);n.else(),ko(t),n.endIf(),n.if((0,O._)`${s} !== undefined`,()=>{n.assign(i,s),If(t,s)});function l(c){switch(c){case`string`:n.elseIf((0,O._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,O._)`"" + ${i}`).elseIf((0,O._)`${i} === null`).assign(s,(0,O._)`""`);return;case`number`:n.elseIf((0,O._)`${a} == "boolean" || ${i} === null
3              || (${a} == "string" && ${i} && ${i} == +${i})`).assign(s,(0,O._)`+${i}`);return;case`integer`:n.elseIf((0,O._)`${a} === "boolean" || ${i} === null
4              || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(s,(0,O._)`+${i}`);return;case`boolean`:n.elseIf((0,O._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(s,!1).elseIf((0,O._)`${i} === "true" || ${i} === 1`).assign(s,!0);return;case`null`:n.elseIf((0,O._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(s,null);return;case`array`:n.elseIf((0,O._)`${a} === "string" || ${a} === "number"
5              || ${a} === "boolean" || ${i} === null`).assign(s,(0,O._)`[${i}]`)}}}function If({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,O._)`${e} !== undefined`,()=>t.assign((0,O._)`${e}[${r}]`,n))}function Vo(t,e,r,n=xr.Correct){let i=n===xr.Correct?O.operators.EQ:O.operators.NEQ,o;switch(t){case`null`:return(0,O._)`${e} ${i} null`;case`array`:o=(0,O._)`Array.isArray(${e})`;break;case`object`:o=(0,O._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case`integer`:o=a((0,O._)`!(${e} % 1) && !isNaN(${e})`);break;case`number`:o=a();break;default:return(0,O._)`typeof ${e} ${i} ${t}`}return n===xr.Correct?o:(0,O.not)(o);function a(s=O.nil){return(0,O.and)((0,O._)`typeof ${e} == "number"`,s,r?(0,O._)`isFinite(${e})`:O.nil)}}$e.checkDataType=Vo;function Oo(t,e,r,n){if(t.length===1)return Vo(t[0],e,r,n);let i,o=(0,Al.toHash)(t);if(o.array&&o.object){let a=(0,O._)`typeof ${e} != "object"`;i=o.null?a:(0,O._)`!${e} || ${a}`,delete o.null,delete o.array,delete o.object}else i=O.nil;o.number&&delete o.integer;for(let a in o)i=(0,O.and)(i,Vo(a,e,r,n));return i}$e.checkDataTypes=Oo;var Tf={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t==`string`?(0,O._)`{type: ${t}}`:(0,O._)`{type: ${e}}`};function ko(t){let e=Nf(t);(0,$f.reportError)(e,Tf)}$e.reportTypeError=ko;function Nf(t){let{gen:e,data:r,schema:n}=t,i=(0,Al.schemaRefOrVal)(t,n,`type`);return{gen:e,keyword:`type`,data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var ql=Fx($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.assignDefaults=void 0;var Fr=k(),Df=q$1();function Mf(t,e){let{properties:r,items:n}=t.schema;if(e===`object`&&r)for(let i in r)Wl(t,i,r[i].default);
5else e===`array`&&Array.isArray(n)&&n.forEach((i,o)=>Wl(t,o,i.default))}$i.assignDefaults=Mf;function Wl(t,e,r){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(r===void 0)return;let s=(0,Fr._)`${o}${(0,Fr.getProperty)(e)}`;if(i){(0,Df.checkStrictMode)(t,`default is ignored for: ${s}`);return}let l=(0,Fr._)`${s} === undefined`;a.useDefaults===`empty`&&(l=(0,Fr._)`${l} || ${s} === null || ${s} === ""`),n.if(l,(0,Fr._)`${s} = ${(0,Fr.stringify)(r)}`)}});var Ue=Fx(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.validateUnion=ee.validateArray=ee.usePattern=ee.callValidateCode=ee.schemaProperties=ee.allSchemaProperties=ee.noPropertyInData=ee.propertyInData=ee.isOwnProperty=ee.hasPropFunc=ee.reportMissingProp=ee.checkMissingProp=ee.checkReportMissingProp=void 0;var ae=k(),Ao=q$1(),Dt=zt$1(),Vf=q$1();function Of(t,e){let{gen:r,data:n,it:i}=t;r.if(jo(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ae._)`${e}`},!0),t.error()})}ee.checkReportMissingProp=Of;function kf({gen:t,data:e,it:{opts:r}},n,i){return(0,ae.or)(...n.map(o=>(0,ae.and)(jo(t,e,o,r.ownProperties),(0,ae._)`${i} = ${o}`)))}ee.checkMissingProp=kf;function Af(t,e){t.setParams({missingProperty:e},!0),t.error()}ee.reportMissingProp=Af;function Ll(t){return t.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,ae._)`Object.prototype.hasOwnProperty`})}ee.hasPropFunc=Ll;function Ro(t,e,r){return(0,ae._)`${Ll(t)}.call(${e}, ${r})`}ee.isOwnProperty=Ro;function Rf(t,e,r,n){let i=(0,ae._)`${e}${(0,ae.getProperty)(r)} !== undefined`;return n?(0,ae._)`${i} && ${Ro(t,e,r)}`:i}ee.propertyInData=Rf;function jo(t,e,r,n){let i=(0,ae._)`${e}${(0,ae.getProperty)(r)} === undefined`;return n?(0,ae.or)(i,(0,ae.not)(Ro(t,e,r))):i}ee.noPropertyInData=jo;function Ul(t){return t?Object.keys(t).filter(e=>e!==`__proto__`):[]}ee.allSchemaProperties=Ul;function jf(t,e){return Ul(e).filter(r=>!(0,Ao.alwaysValidSchema)(t,e[r]))}ee.schemaProperties=jf;function Wf({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},s,l,c){let d=c?(0,ae._)`${t}, ${e}, ${n}${i}`:e,f=[[Dt.default.instancePath,(0,ae.strConcat)(Dt.default.instancePath,o)],[Dt.default.parentData,a.parentData],[Dt.default.parentDataProperty,a.parentDataProperty],[Dt.default.rootData,Dt.default.rootData]];a.opts.dynamicRef&&f.push([Dt.default.dynamicAnchors,Dt.default.dynamicAnchors]);let _=(0,ae._)`${d}, ${r.object(...f)}`;return l!==ae.nil?(0,ae._)`${s}.call(${l}, ${_})`:(0,ae._)`${s}(${_})`}ee.callValidateCode=Wf;var qf=(0,ae._)`new RegExp`;function Lf({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?`u`:``,{regExp:i}=e.code,o=i(r,n);return t.scopeValue(`pattern`,{key:o.toString(),ref:o,code:(0,ae._)`${i.code===`new RegExp`?qf:(0,Vf.useFunc)(t,i)}(${r}, ${n})`})}ee.usePattern=Lf;function Uf(t){let{gen:e,data:r,keyword:n,it:i}=t,o=e.name(`valid`);if(i.allErrors){let s=e.let(`valid`,!0);return a(()=>e.assign(s,!1)),s}return e.var(o,!0),a(()=>e.break()),o;function a(s){let l=e.const(`len`,(0,ae._)`${r}.length`);e.forRange(`i`,0,l,c=>{t.subschema({keyword:n,dataProp:c,dataPropType:Ao.Type.Num},o),e.if((0,ae.not)(o),s)})}}ee.validateArray=Uf;function Hf(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error(`ajv implementation error`);if(r.some(l=>(0,Ao.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let a=e.let(`valid`,!1),s=e.name(`_valid`);e.block(()=>r.forEach((l,c)=>{let d=t.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);e.assign(a,(0,ae._)`${a} || ${s}`),t.mergeValidEvaluated(d,s)||e.if((0,ae.not)(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}ee.validateUnion=Hf});var Gl=Fx(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.validateKeywordUsage=pt.validSchemaType=pt.funcKeywordCode=pt.macroKeywordCode=void 0;var Ie=k(),Jt=zt$1(),Bf=Ue(),Gf=fn();function Kf(t,e){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=t,s=e.macro.call(a.self,i,o,a),l=Bl(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let c=r.name(`valid`);t.subschema({schema:s,schemaPath:Ie.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}pt.macroKeywordCode=Kf;function Jf(t,e){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:s,it:l}=t;Zf(l,e);let d=Bl(n,i,!s&&e.compile?e.compile.call(l.self,o,a,l):e.validate),f=n.let(`valid`);t.block$data(f,_),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function _(){if(e.errors===!1)u(),e.modifying&&Hl(t),y(()=>t.error());else{let b=e.async?m():h();e.modifying&&Hl(t),y(()=>Xf(t,b))}}function m(){let b=n.let(`ruleErrs`,null);return n.try(()=>u((0,Ie._)`await `),N=>n.assign(f,!1).if((0,Ie._)`${N} instanceof ${l.ValidationError}`,()=>n.assign(b,(0,Ie._)`${N}.errors`),()=>n.throw(N))),b}function h(){let b=(0,Ie._)`${d}.errors`;return n.assign(b,null),u(Ie.nil),b}function u(b=e.async?(0,Ie._)`await `:Ie.nil){let N=l.opts.passContext?Jt.default.this:Jt.default.self,D=!(`compile`in e&&!s||e.schema===!1);n.assign(f,(0,Ie._)`${b}${(0,Bf.callValidateCode)(t,d,N,D)}`,e.modifying)}function y(b){var N;n.if((0,Ie.not)((N=e.valid)!==null&&N!==void 0?N:f),b)}}pt.funcKeywordCode=Jf;function Hl(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Ie._)`${n.parentData}[${n.parentDataProperty}]`))}function Xf(t,e){let{gen:r}=t;r.if((0,Ie._)`Array.isArray(${e})`,()=>{r.assign(Jt.default.vErrors,(0,Ie._)`${Jt.default.vErrors} === null ? ${e} : ${Jt.default.vErrors}.concat(${e})`).assign(Jt.default.errors,(0,Ie._)`${Jt.default.vErrors}.length`),(0,Gf.extendErrors)(t)},()=>t.error())}function Zf({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error(`async keyword in sync schema`)}function Bl(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,Ie.stringify)(r)})}function Qf(t,e,r=!1){return!e.length||e.some(n=>n===`array`?Array.isArray(t):n===`object`?t&&typeof t==`object`&&!Array.isArray(t):typeof t==n||r&&typeof t>`u`)}pt.validSchemaType=Qf;function Yf({schema:t,opts:e,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error(`ajv implementation error`);let a=i.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(t,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(t[o])){let l=`keyword "${o}
5" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema===`log`)r.logger.error(l);else throw new Error(l)}}pt.validateKeywordUsage=Yf});var Jl=Fx(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.extendSubschemaMode=Mt.extendSubschemaData=Mt.getSubschema=void 0;var ht=k(),Kl=q$1();function em(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(e!==void 0&&n!==void 0)throw new Error(`both "keyword" and "schema" passed, only one allowed`);if(e!==void 0){let s=t.schema[e];return r===void 0?{schema:s,schemaPath:(0,ht._)`${t.schemaPath}${(0,ht.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:s[r],schemaPath:(0,ht._)`${t.schemaPath}${(0,ht.getProperty)(e)}${(0,ht.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Kl.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error(`either "keyword" or "schema" must be passed`)}Mt.getSubschema=em;function tm(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:s}=e;if(r!==void 0){let{errorPath:c,dataPathArr:d,opts:f}=e;l(s.let(`data`,(0,ht._)`${e.data}${(0,ht.getProperty)(r)}`,!0)),t.errorPath=(0,ht.str)`${c}${(0,Kl.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,ht._)`${r}`,t.dataPathArr=[...d,t.parentDataProperty]}if(i!==void 0)l(i instanceof ht.Name?i:s.let(`data`,i,!0)),a!==void 0&&(t.propertyName=a);o&&(t.dataTypes=o);function l(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}Mt.extendSubschemaData=tm;function rm(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}Mt.extendSubschemaMode=rm});var Wo$1=Fx((pb,Xl)=>{"use strict";Xl.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e==`object`&&typeof r==`object`){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}});var Ql=Fx((hb,Zl)=>{"use strict";var Vt=Zl.exports=function(t,e,r){typeof e==`function`&&(r=e,e={}),r=e.cb||r;var n=typeof r==`function`?r:r.pre||function(){},i=r.post||function(){};xi(e,n,i,t,``,t)};Vt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Vt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Vt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Vt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function xi(t,e,r,n,i,o,a,s,l,c){if(n&&typeof n==`object`&&!Array.isArray(n)){e(n,i,o,a,s,l,c);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Vt.arrayKeywords)for(var _=0;_<f.length;_++)xi(t,e,r,f[_],i+`/`+d+`/`+_,o,i,d,n,_)}else if(d in Vt.propsKeywords){if(f&&typeof f==`object`)for(var m in f)xi(t,e,r,f[m],i+`/`+d+`/`+nm(m),o,i,d,n,m)}else(d in Vt.keywords||t.allKeys&&!(d in Vt.skipKeywords))&&xi(t,e,r,f,i+`/`+d,o,i,d,n)}r(n,i,o,a,s,l,c)}}function nm(t){return t.replace(/~/g,`~0`).replace(/\//g,`~1`)}});var pn$2=Fx(ke=>{"use strict";
5Object.defineProperty(ke,"__esModule",{value:!0});ke.getSchemaRefs=ke.resolveUrl=ke.normalizeId=ke._getFullPath=ke.getFullPath=ke.inlineRef=void 0;var im=q$1(),om=Wo$1(),am=Ql(),sm=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function lm(t,e=!0){return typeof t==`boolean`?!0:e===!0?!qo(t):e?Yl(t)<=e:!1}ke.inlineRef=lm;var dm=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function qo(t){for(let e in t){if(dm.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(qo)||typeof r==`object`&&qo(r))return!0}return!1}function Yl(t){let e=0;for(let r in t){if(r===`$ref`)return 1/0;if(e++,!sm.has(r)&&(typeof t[r]==`object`&&(0,im.eachItem)(t[r],n=>e+=Yl(n)),e===1/0))return 1/0}return e}function ed(t,e=``,r){r!==!1&&(e=Er(e));return td(t,t.parse(e))}ke.getFullPath=ed;function td(t,e){return t.serialize(e).split(`#`)[0]+`#`}ke._getFullPath=td;var cm=/#\/?$/;function Er(t){return t?t.replace(cm,``):``}ke.normalizeId=Er;function um(t,e,r){return r=Er(r),t.resolve(e,r)}ke.resolveUrl=um;var fm=/^[a-z_][-a-z0-9._]*$/i;function mm(t,e){if(typeof t==`boolean`)return{};let{schemaId:r,uriResolver:n}=this.opts,i=Er(t[r]||e),o={"":i},a=ed(n,i,!1),s={},l=new Set;return am(t,{allKeys:!0},(f,_,m,h)=>{if(h===void 0)return;let u=a+_,y=o[h];typeof f[r]==`string`&&(y=b.call(this,f[r])),N.call(this,f.$anchor),N.call(this,f.$dynamicAnchor),o[_]=y;function b(D){let Z=this.opts.uriResolver.resolve;if(D=Er(y?Z(y,D):D),l.has(D))throw d(D);l.add(D);let M=this.refs[D];return typeof M==`string`&&(M=this.refs[M]),typeof M==`object`?c(f,M.schema,D):D!==Er(u)&&(D[0]===`#`?(c(f,s[D],D),s[D]=f):this.refs[D]=u),D}
5function N(D){if(typeof D==`string`){if(!fm.test(D))throw new Error(`invalid anchor "${D}"`);b.call(this,`#${D}`)}}}),s;function c(f,_,m){if(_!==void 0&&!om(f,_))throw d(m)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}ke.getSchemaRefs=mm});var gn=Fx(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.getData=Ot.KeywordCxt=Ot.validateFunctionCode=void 0;var ad=Vl(),rd=mn$2(),Uo=Mo$1(),Fi=mn$2(),pm=ql(),yn=Gl(),Lo=Jl(),$=k(),T=zt$1(),hm=pn$2(),$t=q$1(),hn=fn();function ym(t){if(dd(t)&&(cd(t),ld(t))){vm(t);return}sd(t,()=>(0,ad.topBoolOrEmptySchema)(t))}Ot.validateFunctionCode=ym;function sd({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},o){i.code.es5?t.func(e,(0,$._)`${T.default.data}, ${T.default.valCxt}`,n.$async,()=>{t.code((0,$._)`"use strict"; ${nd(r,i)}`),_m(t,i),t.code(o)}):t.func(e,(0,$._)`${T.default.data}, ${gm(i)}`,n.$async,()=>t.code(nd(r,i)).code(o))}function gm(t){return(0,$._)`{${T.default.instancePath}="", ${T.default.parentData}, ${T.default.parentDataProperty}, ${T.default.rootData}=${T.default.data}${t.dynamicRef?(0,$._)`, ${T.default.dynamicAnchors}={}`:$.nil}}={}`}function _m(t,e){t.if(T.default.valCxt,()=>{t.var(T.default.instancePath,(0,$._)`${T.default.valCxt}.${T.default.instancePath}`),t.var(T.default.parentData,(0,$._)`${T.default.valCxt}.${T.default.parentData}`),t.var(T.default.parentDataProperty,(0,$._)`${T.default.valCxt}.${T.default.parentDataProperty}`),t.var(T.default.rootData,(0,$._)`${T.default.valCxt}.${T.default.rootData}`),e.dynamicRef&&t.var(T.default.dynamicAnchors,(0,$._)`${T.default.valCxt}.${T.default.dynamicAnchors}`)},()=>{t.var(T.default.instancePath,(0,$._)`""`),t.var(T.default.parentData,(0,$._)`undefined`),t.var(T.default.parentDataProperty,(0,$._)`undefined`),t.var(T.default.rootData,T.default.data),e.dynamicRef&&t.var(T.default.dynamicAnchors,(0,$._)`{}`)})}function vm(t){let{schema:e,opts:r,gen:n}=t;sd(t,()=>{r.$comment&&e.$comment&&fd(t),zm(t),n.let(T.default.vErrors,null),n.let(T.default.errors,0),r.unevaluated&&bm(t),ud(t),Fm(t)})}function bm(t){let{gen:e,validateName:r}=t;t.evaluated=e.const(`evaluated`,(0,$._)`${r}.evaluated`),e.if((0,$._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,$._)`${t.evaluated}.props`,(0,$._)`undefined`)),e.if((0,$._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,$._)`${t.evaluated}.items`,(0,$._)`undefined`))}function nd(t,e){let r=typeof t==`object`&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,$._)`/*# sourceURL=${r} */`:$.nil}function Sm(t,e){if(dd(t)&&(cd(t),ld(t))){Cm(t,e);return}(0,ad.boolOrEmptySchema)(t,e)}function ld({schema:t,self:e}){if(typeof t==`boolean`)return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function dd(t){return typeof t.schema!=`boolean`}function Cm(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&fd(t),$m(t),xm(t);let o=n.const(`_errs`,T.default.errors);ud(t,o),n.var(e,(0,$._)`${o} === ${T.default.errors}`)}function cd(t){(0,$t.checkUnknownRules)(t),wm(t)}function ud(t,e){if(t.opts.jtd)return id(t,[],!1,e);let r=(0,rd.getSchemaTypes)(t.schema);id(t,r,!(0,rd.coerceAndCheckDataType)(t,r),e)}function wm(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,$t.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function zm(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,$t.checkStrictMode)(t,`default is ignored in the schema root`)}function $m(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,hm.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function xm(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error(`async schema in sync schema`)}function fd({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)t.code((0,$._)`${T.default.self}.logger.log(${o})`);else if(typeof i.$comment==`function`){let a=(0,$.str)`${n}/$comment`,s=t.scopeValue(`root`,{ref:e.root});t.code((0,$._)`${T.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function Fm(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=t;r.$async?e.if((0,$._)`${T.default.errors} === 0`,()=>e.return(T.default.data),()=>e.throw((0,$._)`new ${i}(${T.default.vErrors})`)):(e.assign((0,$._)`${n}.errors`,T.default.vErrors),o.unevaluated&&Em(t),e.return((0,$._)`${T.default.errors} === 0`))}function Em({gen:t,evaluated:e,props:r,items:n}){r instanceof $.Name&&t.assign((0,$._)`${e}.props`,r),n instanceof $.Name&&t.assign((0,$._)`${e}.items`,n)}function id(t,e,r,n){let{gen:i,schema:o,data:a,allErrors:s,opts:l,self:c}=t,{RULES:d}=c;if(o.$ref&&(l.ignoreKeywordsWithRef||!(0,$t.schemaHasRulesButRef)(o,d))){i.block(()=>pd(t,`$ref`,d.all.$ref.definition));return}l.jtd||Pm(t,e),i.block(()=>{for(let _ of d.rules)f(_);f(d.post)});function f(_){(0,Uo.shouldUseGroup)(o,_)&&(_.type?(i.if((0,Fi.checkDataType)(_.type,a,l.strictNumbers)),od(t,_),e.length===1&&e[0]===_.type&&r&&(i.else(),(0,Fi.reportTypeError)(t)),i.endIf()):od(t,_),s||i.if((0,$._)`${T.default.errors} === ${n||0}`))}}function od(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,pm.assignDefaults)(t,e.type),r.block(()=>{for(let o of e.rules)(0,Uo.shouldUseRule)(n,o)&&pd(t,o.keyword,o.definition,e.type)})}function Pm(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Im(t,e),t.opts.allowUnionTypes||Tm(t,e),Nm(t,t.dataTypes))}function Im(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{md(t.dataTypes,r)||Ho(t,`type "${r}" not allowed by context "${t.dataTypes.join(`,`)}"`)}),Mm(t,e)}}function Tm(t,e){e.length>1&&!(e.length===2&&e.includes(`null`))&&Ho(t,`use allowUnionTypes to allow union type keyword`)}function Nm(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i==`object`&&(0,Uo.shouldUseRule)(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Dm(e,a))&&Ho(t,`missing type "${o.join(`,`)}" for keyword "${n}"`)}}}function Dm(t,e){return t.includes(e)||e===`number`&&t.includes(`integer`)}function md(t,e){return t.includes(e)||e===`integer`&&t.includes(`number`)}function Mm(t,e){let r=[];for(let n of t.dataTypes)md(e,n)?r.push(n):e.includes(`integer`)&&n===`number`&&r.push(`integer`);t.dataTypes=r}function Ho(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,$t.checkStrictMode)(t,e,t.opts.strictTypes)}var Ei=class{constructor(e,r,n){if((0,yn.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,$t.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const(`vSchema`,hd(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,yn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);(`code`in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,T.default.errors))}result(e,r,n){this.failResult((0,$.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,$.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,$._)`${r} !== undefined && (${(0,$.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?hn.reportExtraError:hn.reportError)(this,this.def.error,r)}$dataError(){(0,hn.reportError)(this,this.def.$dataError||hn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error(`add "trackErrors" to keyword definition`);(0,hn.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=$.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=$.nil,r=$.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,$.or)((0,$._)`${i} === undefined`,r)),e!==$.nil&&n.assign(e,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==$.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,$.or)(a(),s());function a(){if(n.length){if(!(r instanceof $.Name))throw new Error(`ajv implementation error`);let l=Array.isArray(n)?n:[n];return(0,$._)`${(0,Fi.checkDataTypes)(l,r,o.opts.strictNumbers,Fi.DataType.Wrong)}`}return $.nil}function s(){if(i.validateSchema){let l=e.scopeValue(`validate$data`,{ref:i.validateSchema});return(0,$._)`!${l}(${r})`}return $.nil}}subschema(e,r){let n=(0,Lo.getSubschema)(this.it,e);(0,Lo.extendSubschemaData)(n,this.it,e),(0,Lo.extendSubschemaMode)(n,e);let i=W$1(g$1(g$1({},this.it),n),{items:void 0,props:void 0});return Sm(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=$t.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=$t.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,$.Name)),!0}};Ot.KeywordCxt=Ei;function pd(t,e,r,n){let i=new Ei(t,r,e);`code`in r?r.code(i,n):i.$data&&r.validate?(0,yn.funcKeywordCode)(i,r):`macro`in r?(0,yn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,yn.funcKeywordCode)(i,r)}var Vm=/^\/(?:[^~]|~0|~1)*$/,Om=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hd(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,o;if(t===``)return T.default.rootData;if(t[0]===`/`){if(!Vm.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=T.default.rootData}else{let c=Om.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+c[1];if(i=c[2],i===`#`){if(d>=e)throw new Error(l(`property/index`,d));return n[e-d]}if(d>e)throw new Error(l(`data`,d));if(o=r[e-d],!i)return o}let a=o,s=i.split(`/`);for(let c of s)c&&(o=(0,$._)`${o}${(0,$.getProperty)((0,$t.unescapeJsonPointer)(c))}`,a=(0,$._)`${a} && ${o}`);return a;function l(c,d){return`Cannot access ${c} ${d} levels up, current level is ${e}`}}Ot.getData=hd});var Pi=Fx(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});
5var Bo=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}};Go.default=Bo});var _n$1=Fx(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});var Ko=pn$2(),Jo=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ko.resolveUrl)(e,r,n),this.missingSchema=(0,Ko.normalizeId)((0,Ko.getFullPath)(e,this.missingRef))}};Xo.default=Jo});var Ti$1=Fx(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.resolveSchema=He.getCompilingSchema=He.resolveRef=He.compileSchema=He.SchemaEnv=void 0;var Ze=k(),km=Pi(),Xt=zt$1(),Qe=pn$2(),yd=q$1(),Am=gn(),Pr=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema==`object`&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Qe.normalizeId)(n?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};He.SchemaEnv=Pr;function Qo(t){let e=gd.call(this,t);if(e)return e;let r=(0,Qe.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ze.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),s;t.$async&&(s=a.scopeValue(`Error`,{ref:km.default,code:(0,Ze._)`require("ajv/dist/runtime/validation_error").default`}));let l=a.scopeName(`validate`);t.validateName=l;let c={gen:a,allErrors:this.opts.allErrors,data:Xt.default.data,parentData:Xt.default.parentData,parentDataProperty:Xt.default.parentDataProperty,dataNames:[Xt.default.data],dataPathArr:[Ze.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue(`schema`,this.opts.code.source===!0?{ref:t.schema,code:(0,Ze.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:s,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Ze.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,Ze._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),(0,Am.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);let f=a.toString();d=`${a.scopeRefs(Xt.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let m=new Function(`${Xt.default.self}`,`${Xt.default.scope}`,d)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:h,items:u}=c;m.evaluated={props:h instanceof Ze.Name?void 0:h,items:u instanceof Ze.Name?void 0:u,dynamicProps:h instanceof Ze.Name,dynamicItems:u instanceof Ze.Name},m.source&&(m.source.evaluated=(0,Ze.stringify)(m.evaluated))}return t.validate=m,t}catch(f){throw delete t.validate,delete t.validateName,d&&this.logger.error(`Error compiling schema, function code:`,d),f}finally{this._compilations.delete(t)}}He.compileSchema=Qo;function Rm(t,e,r){var n;r=(0,Qe.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let o=qm.call(this,t,r);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(o=new Pr({schema:a,schemaId:s,root:t,baseId:e}))}if(o!==void 0)return t.refs[r]=jm.call(this,o)}He.resolveRef=Rm;function jm(t){return(0,Qe.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Qo.call(this,t)}function gd(t){for(let e of this._compilations)if(Wm(e,t))return e}He.getCompilingSchema=gd;function Wm(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function qm(t,e){let r;for(;typeof(r=this.refs[e])==`string`;)e=r;return r||this.schemas[e]||Ii.call(this,t,e)}function Ii(t,e){let r=this.opts.uriResolver.parse(e),n=(0,Qe._getFullPath)(this.opts.uriResolver,r),i=(0,Qe.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return Zo.call(this,r,t);let o=(0,Qe.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a==`string`){let s=Ii.call(this,t,a);return typeof s?.schema!=`object`?void 0:Zo.call(this,r,s)}
5if(typeof a?.schema==`object`){if(a.validate||Qo.call(this,a),o===(0,Qe.normalizeId)(e)){let{schema:s}=a,{schemaId:l}=this.opts,c=s[l];return c&&(i=(0,Qe.resolveUrl)(this.opts.uriResolver,i,c)),new Pr({schema:s,schemaId:l,root:t,baseId:i})}return Zo.call(this,r,a)}}He.resolveSchema=Ii;var Lm=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function Zo(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!==`/`)return;for(let s of t.fragment.slice(1).split(`/`)){if(typeof r==`boolean`)return;let l=r[(0,yd.unescapeFragment)(s)];if(l===void 0)return;r=l;let c=typeof r==`object`&&r[this.opts.schemaId];!Lm.has(s)&&c&&(e=(0,Qe.resolveUrl)(this.opts.uriResolver,e,c))}let o;if(typeof r!=`boolean`&&r.$ref&&!(0,yd.schemaHasRulesButRef)(r,this.RULES)){let s=(0,Qe.resolveUrl)(this.opts.uriResolver,e,r.$ref);o=Ii.call(this,n,s)}let{schemaId:a}=this.opts;if(o=o||new Pr({schema:r,schemaId:a,root:n,baseId:e}),o.schema!==o.root.schema)return o}});var _d$1=Fx((Cb,Um)=>{Um.exports={$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON AnySchema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}});var ia$2=Fx((wb,$d)=>{"use strict";var Hm=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ea=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Bm=RegExp.prototype.test.bind(/^\d*$/u),Zt=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ta=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),bd=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),ra=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),Gm=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),Ae=new Array(256);{let t=`0123456789ABCDEF`;for(let e=0;e<256;e++)Ae[e]=`%`+t[e>>4]+t[e&15]}function xe(t){return t<2048?Ae[192|t>>6]+Ae[128|t&63]:t<65536?Ae[224|t>>12]+Ae[128|t>>6&63]+Ae[128|t&63]:Ae[240|t>>18]+Ae[128|t>>12&63]+Ae[128|t>>6&63]+Ae[128|t&63]}function Km(t){let e=``,r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return``;e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return``;e+=t[n]}return e}var Jm=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),Xm=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),Zm=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),Qm=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Ym(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(!Zm(t[e])){if(t[e]===`%`&&e+2<t.length&&Zt(t.slice(e+1,e+3))){e+=2;continue}return!1}return!0}function vd(t){let e=-1,r=0,n=-1,i=0;for(let s=0;s<t.length;s++)t[s]===`0`?(n===-1&&(n=s),i++,i>r&&(r=i,e=n)):(n=-1,i=0);if(r<2)return t.join(`:`);let o=t.slice(0,e).join(`:`),a=t.slice(e+r).join(`:`);return o+`::`+a}function ep(t){let e=t.indexOf(`::`);if(e!==-1&&t.indexOf(`::`,e+1)!==-1)return;let r=e===-1?t.split(`:`):t.slice(0,e).split(`:`),n=e===-1?[]:t.slice(e+2).split(`:`);e!==-1&&(r.length===1&&r[0]===``&&(r.length=0),n.length===1&&n[0]===``&&(n.length=0));let i=r.concat(n),o=0;for(let s=0;s<i.length;s++){let l=i[s];if(l===``)return;if(l.indexOf(`.`)!==-1){if(s!==i.length-1||e!==-1&&n.length===0||!ea(l))return;o+=2;continue}if(!Jm(l))return;i[s]=parseInt(l,16).toString(16),o++}if(e===-1)return o!==8?void 0:vd(i);if(o>=8)return;let a=i.slice(0,r.length);for(let s=o;s<8;s++)a.push(`0`);for(let s=r.length;s<i.length;s++)a.push(i[s]);return vd(a)}function Yo(t){let e=t[0]===`[`&&t[t.length-1]===`]`;if((t[0]===`[`||t[t.length-1]===`]`)&&!e)return{host:t,isIPV6:!1,error:!0};let n=e?t.slice(1,-1):t;if(e&&Xm(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(tp(n,`:`)<2)return{host:t,isIPV6:!1,error:e};let i=``,o=n.indexOf(`%`);if(o!==-1){let s=n.slice(o,o+3).toLowerCase()===`%25`?3:1;if(i=n.slice(o+s),!Ym(i))return{host:t,isIPV6:!1,error:!0};n=n.slice(0,o)}let a=ep(n);return a===void 0?{host:t,isIPV6:!1,error:!0}:{host:a+(i?`%`+i:``),escapedHost:a+(i?`%25`+i:``),isIPV6:!0}}function tp(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function rp(t){let e=t,r=[],n=-1,i=0;for(;i=e.length;){if(i===1){if(e===`.`)break;
5if(e===`/`){r.push(`/`);break}else{r.push(e);break}}else if(i===2){if(e[0]===`.`){if(e[1]===`.`)break;if(e[1]===`/`){e=e.slice(2);continue}}else if(e[0]===`/`&&(e[1]===`.`||e[1]===`/`)){r.push(`/`);break}}else if(i===3&&e===`/..`){r.length!==0&&r.pop(),r.push(`/`);break}if(e[0]===`.`){if(e[1]===`.`){if(e[2]===`/`){e=e.slice(3);continue}}else if(e[1]===`/`){e=e.slice(2);continue}}else if(e[0]===`/`&&e[1]===`.`){if(e[2]===`/`){e=e.slice(2);continue}else if(e[2]===`.`&&e[3]===`/`){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf(`/`,1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join(``)}var np={"@":`%40`,"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`},ip=/[@/?#:]/g,op=/[@/?#]/g;function Sd(t,e){let r=e?op:ip;return r.lastIndex=0,t.replace(r,n=>np[n])}function Cd(t,e=!1){if(t.indexOf(`%`)===-1)return t;let r=``;for(let n=0;n<t.length;n++){if(t[n]===`%`&&n+2<t.length){let i=t.slice(n+1,n+3);if(Zt(i)){let o=i.toUpperCase(),a=String.fromCharCode(parseInt(o,16));e&&ta(a)?r+=a:r+=`%`+o,n+=2;continue}}r+=t[n]}return r}function ap(t){let e=``;for(let r=0;r<t.length;r++){let n=t[r];if(n===`%`&&r+2<t.length){let i=t.slice(r+1,r+3);if(Zt(i)){let o=i.toUpperCase(),a=String.fromCharCode(parseInt(o,16));a!==`.`&&ta(a)?e+=a:e+=`%`+o,r+=2;continue}}if(bd(n))e+=n;else{let i=t.charCodeAt(r);if(i<128)e+=zd(i)?n:Ae[i];else if(i<55296||i>57343)e+=xe(i);else if(i<=56319&&r+1<t.length){let o=t.charCodeAt(r+1);o>=56320&&o<=57343?(e+=xe(65536+(i-55296<<10)+(o-56320)),r++):e+=xe(65533)}else e+=xe(65533)}}return e}function sp(t,e=!1){let r=``,n=e&&t[0]!==`/`;for(let i=0;i<t.length;i++){let o=t[i];if(o===`%`&&i+2<t.length){let a=t.slice(i+1,i+3);if(Zt(a)){r+=`%`+a.toUpperCase(),i+=2;continue}}if(o===`/`&&(n=!1),bd(o)&&(o!==`:`||!n))r+=o;else{let a=t.charCodeAt(i);if(a<128)r+=Ae[a];else if(a<55296||a>57343)r+=xe(a);else if(a<=56319&&i+1<t.length){let s=t.charCodeAt(i+1);s>=56320&&s<=57343?(r+=xe(65536+(a-55296<<10)+(s-56320)),i++):r+=xe(65533)}else r+=xe(65533)}}return r}function na(t,e){let r=``;for(let n=0;n<t.length;n++){let i=t[n];if(i===`%`&&n+2<t.length){let o=t.slice(n+1,n+3);if(Zt(o)){r+=`%`+o.toUpperCase(),n+=2;continue}}if(e(i))r+=i;else{let o=t.charCodeAt(n);if(o<128)r+=Ae[o];else if(o<55296||o>57343)r+=xe(o);else if(o<=56319&&n+1<t.length){let a=t.charCodeAt(n+1);a>=56320&&a<=57343?(r+=xe(65536+(o-55296<<10)+(a-56320)),n++):r+=xe(65533)}else r+=xe(65533)}}return r}function wd(t){return na(t,Gm)}function lp(t){return na(t,ra)}function dp(t){return na(t,ra)}function zd(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===42||t===43||t===45||t===46||t===47||t===64||t===95}function cp(t){let e=``;for(let r=0;r<t.length;r++){let n=t[r];if(n===`%`&&r+2<t.length){let i=t.slice(r+1,r+3);if(Zt(i)){let o=i.toUpperCase(),a=String.fromCharCode(parseInt(o,16));ta(a)?e+=a:e+=`%`+o,r+=2;continue}}if(ra(n))e+=n;else{let i=t.charCodeAt(r);if(i<128)e+=zd(i)?n:Ae[i];else if(i<55296||i>57343)e+=xe(i);else if(i<=56319&&r+1<t.length){let o=t.charCodeAt(r+1);o>=56320&&o<=57343?(e+=xe(65536+(i-55296<<10)+(o-56320)),r++):e+=xe(65533)}else e+=xe(65533)}}return e}function up(t){let e=``;for(let r=0;r<t.length;r++){if(t[r]===`%`&&r+2<t.length){let n=t.slice(r+1,r+3);if(Zt(n)){e+=`%`+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function fp(t){let e=[];
5if(t.userinfo!==void 0&&(e.push(wd(t.userinfo)),e.push(`@`)),t.host!==void 0){let r=t.host;if(!ea(r)){let n=Yo(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=Cd(r,!0),n=Yo(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=Sd(r,!1)}e.push(r)}if(typeof t.port==`number`||typeof t.port==`string`){let r=String(t.port);if(!Bm(r))throw new TypeError(`URI port is malformed.`);e.push(`:`),e.push(r)}return e.length?e.join(``):void 0}$d.exports={nonSimpleDomain:Qm,recomposeAuthority:fp,reescapeHostDelimiters:Sd,normalizePercentEncoding:Cd,normalizePathEncoding:ap,serializePathEncoding:sp,normalizeQueryFragmentEncoding:cp,encodeUserinfo:wd,encodeQuery:lp,encodeFragment:dp,escapePreservingEscapes:up,removeDotSegments:rp,isIPv4:ea,isUUID:Hm,normalizeIPv6:Yo,stringArrayToHexStripped:Km}});var Id$1=Fx((zb,Pd)=>{"use strict";var{isUUID:mp}=ia$2(),pp=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,hp=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function yp(t){return hp.indexOf(t)!==-1}function oa(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]===`w`||t.scheme[0]===`W`)&&(t.scheme[1]===`s`||t.scheme[1]===`S`)&&(t.scheme[2]===`s`||t.scheme[2]===`S`):!1}function xd(t){return t.host||(t.error=t.error||`HTTP URIs must have a host.`),t}function Fd(t){let e=String(t.scheme).toLowerCase()===`https`;return(t.port===(e?443:80)||t.port===``)&&(t.port=void 0),t.path||(t.path=`/`),t}function gp(t){return t.secure=oa(t),t.resourceName=(t.path||`/`)+(t.query?`?`+t.query:``),t.path=void 0,t.query=void 0,t}function _p(t){if((t.port===(oa(t)?443:80)||t.port===``)&&(t.port=void 0),typeof t.secure==`boolean`&&(t.scheme=t.secure?`wss`:`ws`,t.secure=void 0),t.resourceName){let e=t.resourceName.indexOf(`?`),r=e===-1?t.resourceName:t.resourceName.slice(0,e);t.path=r&&r!==`/`?r:void 0,t.query=e===-1?void 0:t.resourceName.slice(e+1),t.resourceName=void 0}return t.fragment=void 0,t}function vp(t,e){if(!t.path)return t.error=`URN can not be parsed`,t;let r=t.path.match(pp);if(r&&r[0]===t.path){let n=e.scheme||t.scheme||`urn`;t.nid=r[1].toLowerCase(),t.nss=r[2];let o=aa(`${n}:${e.nid||t.nid}`);t.path=void 0,o&&(t=o.parse(t,e))}else t.error=t.error||`URN can not be parsed.`;return t}function bp(t,e){if(t.nid===void 0)throw new Error(`URN without nid cannot be serialized`);let r=e.scheme||t.scheme||`urn`,n=t.nid.toLowerCase(),o=aa(`${r}:${e.nid||n}`);o&&(t=o.serialize(t,e));let a=t,s=t.nss;return a.path=`${n||e.nid}:${s}`,e.skipEscape=!0,a}function Sp(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!mp(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function Cp(t){let e=t;return e.nss=(t.uuid||``).toLowerCase(),e}var Ed={scheme:`http`,domainHost:!0,parse:xd,serialize:Fd},wp={scheme:`https`,domainHost:Ed.domainHost,parse:xd,serialize:Fd},Ni={scheme:`ws`,domainHost:!0,parse:gp,serialize:_p},Di={http:Ed,https:wp,ws:Ni,wss:{scheme:`wss`,domainHost:Ni.domainHost,parse:Ni.parse,serialize:Ni.serialize},urn:{scheme:`urn`,parse:vp,serialize:bp,skipNormalize:!0},"urn:uuid":{scheme:`urn:uuid`,parse:Sp,serialize:Cp,skipNormalize:!0}};Object.setPrototypeOf(Di,null);function aa(t){return t&&(Di[t]||Di[t.toLowerCase()])||void 0}Pd.exports={wsIsSecure:oa,SCHEMES:Di,isValidSchemeName:yp,getSchemeHandler:aa}});var Ld$1=Fx(($b,Oi)=>{"use strict";var{normalizeIPv6:Vd,removeDotSegments:bn,recomposeAuthority:Fp,normalizePercentEncoding:sa,normalizePathEncoding:Ep,serializePathEncoding:Td,normalizeQueryFragmentEncoding:Nd,encodeQuery:Pp,encodeFragment:Ip,reescapeHostDelimiters:Tp,isIPv4:Od,nonSimpleDomain:Np}=ia$2(),{SCHEMES:kd,getSchemeHandler:la}=Id$1(),Ad=/^[A-Za-z][A-Za-z0-9+.-]*$/u,Rd=`URI scheme is malformed.`;function Dd(t){let e=unescape(String(t));if(!Ad.test(e))throw new TypeError(Rd);return e}function Dp(t,e){return typeof t==`string`?t=Wp(t,e):typeof t==`object`&&(t=Vi(Qt(t,e),e)),t}function Mp(t,e,r){let n=r?Object.assign({scheme:`null`},r):{scheme:`null`},{parsed:i,malformedAuthorityOrPort:o,malformedPercentEncoding:a,malformedSchemeSpecific:s,malformedHost:l,malformedScheme:c}=Mi(t,n),{parsed:d,malformedAuthorityOrPort:f,malformedPercentEncoding:_,malformedSchemeSpecific:m,malformedHost:h,malformedScheme:u}=Mi(e,n);if(o||f||a||_||s||m||l||h||c||u)throw new Error(i.error||d.error||`URI is malformed.`);let y=jd(i,d,n,!0),b=la(r&&r.scheme||y.scheme),N=y.host,D=N!==void 0&&N!==``&&(Od(N)||Vd(N).isIPV6);Wd(y,r||{},b,D);let Z=N&&N.indexOf(`%`)!==-1&&!new RegExp(`\\P{ASCII}`,`u`).test(N);if(y.error&&!Z)throw new Error(y.error);return n.skipEscape=!0,Qt(y,n)}
5function jd(t,e,r,n){let i={};return n||(t=Vi(Qt(t,r),r),e=Vi(Qt(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=bn(e.path||``),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=bn(e.path||``),i.query=e.query):(e.path?(e.path[0]===`/`?i.path=bn(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path=`/`+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf(`/`)+1)+e.path:i.path=e.path,i.path=bn(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function Vp(t,e,r){let n=Md(t,r),i=Md(e,r);return n!==void 0&&i!==void 0&&n===i}function Qt(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:``},n=Object.assign({},e),i=[];r.scheme&&(r.scheme=Dd(r.scheme));let o=la(n.scheme||r.scheme);o&&o.serialize&&o.serialize(r,n);let a=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,s=!n.skipEscape&&r.scheme===void 0&&!a;r.path!==void 0&&(n.skipEscape?r.path=sa(r.path):r.path=Td(r.path,s)),n.reference!==`suffix`&&r.scheme&&(r.scheme=Dd(r.scheme),i.push(r.scheme,`:`));let l=Fp(r);if(l!==void 0&&(n.reference!==`suffix`&&i.push(`//`),i.push(l),r.path&&r.path[0]!==`/`&&i.push(`/`)),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=bn(c)),s&&(c=Td(c,!0)),l===void 0&&c[0]===`/`&&c[1]===`/`&&(c=`/%2F`+c.slice(2)),i.push(c)}return r.query!==void 0&&i.push(`?`,Pp(r.query)),r.fragment!==void 0&&i.push(`#`,Ip(r.fragment)),i.join(``)}var Op=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,kp=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,Ap=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function Rp(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!==`/`)return`URI path must start with "/" when authority is present.`;if(typeof t.port==`number`&&(t.port<0||t.port>65535))return`URI port is malformed.`}function vn(t){if(t===void 0)return!1;let e=t.indexOf(`%`);for(;e!==-1;){if(e+2>=t.length||!/^[\da-f]{2}$/iu.test(t.slice(e+1,e+3)))return!0;e=t.indexOf(`%`,e+3)}return!1}function da(t){return t[0]===`[`&&t[t.length-1]===`]`}function jp(t){let e=t[4];return vn(t[3])||e!==void 0&&!da(e)&&vn(e)||vn(t[6])||vn(t[7])||vn(t[8])}function Wd(t,e,r,n){if(!e.unicodeSupport&&(!r||!r.unicodeSupport)&&t.host&&!da(t.host)&&(e.domainHost||r&&r.domainHost)&&n===!1&&Np(t.host))try{t.host=new URL(`http://`+t.host).hostname}catch(i){return t.error=t.error||`Host's domain name can not be converted to ASCII: `+i,!0}return!1}function Mi(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},i=!1,o=!1,a=!1,s=!1,l=!1,c=!1,d=!1;r.reference===`suffix`&&(r.scheme?t=r.scheme+`:`+t:t=`//`+t);let f=t.match(kp);f!==null&&f[1].indexOf(`\\`)!==-1&&(n.error=`URI authority must not contain a literal backslash.`,i=!0);let _=t.match(Ap);if(_!==null){let h=_[1],u=h.replace(/[\t\n\r]/g,``);u.length>=2&&(u.slice(0,2)!==`//`?(n.error=n.error||`URI authority must not contain a literal backslash.`,i=!0):h.length!==u.length&&(n.error=n.error||`URI authority introducer must not contain whitespace.`,i=!0))}let m=t.match(Op);if(m){if(n.scheme=m[1],n.userinfo=m[3],n.host=m[4],n.port=parseInt(m[5],10),n.path=m[6]||``,n.query=m[7],n.fragment=m[8],n.scheme!==void 0){let y=unescape(n.scheme);Ad.test(y)?n.scheme=y.toLowerCase():(n.error=n.error||Rd,c=!0)}o=jp(m),o&&(n.error=n.error||`URI contains malformed percent-encoding.`),isNaN(n.port)&&(n.port=m[5]);let h=Rp(n,m);if(h!==void 0&&(n.error=n.error||h,i=!0),n.host)if(Od(n.host)===!1){let b=da(n.host),N=n.host.indexOf(`[`)!==-1||n.host.indexOf(`]`)!==-1,D=Vd(n.host);d=D.isIPV6||D.isIPVFuture===!0,l=N&&(!b||D.error===!0),n.host=d?D.host:D.host.toLowerCase(),l&&(n.error=n.error||`URI host is malformed.`,i=!0)}else d=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference=`same-document`:n.scheme===void 0?n.reference=`relative`:n.fragment===void 0?n.reference=`absolute`:n.reference=`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==n.reference&&(n.error=n.error||`URI is not a `+r.reference+` reference.`);let u=la(r.scheme||n.scheme);if(l||(s=Wd(n,r,u,d)),t.indexOf(`%`)!==-1&&n.host!==void 0&&!l){let y=d?n.host:sa(n.host,!0);d||(y=sa(y.toLowerCase())),n.host=Tp(y,d)}(!u||u&&!u.skipNormalize)&&(n.path&&(n.path=Ep(n.path)),n.query&&(n.query=Nd(n.query)),n.fragment&&(n.fragment=Nd(n.fragment))),u&&u.parse&&(u.parse(n,r),u===kd.urn&&n.nid===void 0&&(a=!0))}else n.error=n.error||`URI can not be parsed.`;return{parsed:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:c}}function Vi(t,e){return Mi(t,e).parsed}function Wp(t,e){return qd(t,e).normalized}function qd(t,e){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:s}=Mi(t,e);return{normalized:n||i||o||a||s?t:Qt(r,e),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:s}}function Md(t,e){if(typeof t!=`string`&&typeof t!=`object`)return;let r;try{r=typeof t==`string`?t:Qt(t,e)}catch{return}let{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:l}=qd(r,e);return i||o||a||s||l?void 0:n}var ca={SCHEMES:kd,normalize:Dp,resolve:Mp,resolveComponent:jd,equal:Vp,serialize:Qt,parse:Vi};Oi.exports=ca;Oi.exports.default=ca;Oi.exports.fastUri=ca});var Hd$1=Fx(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var Ud=Ld$1();Ud.code=`require("ajv/dist/runtime/uri").default`;ua.default=Ud});var Yd$1=Fx(_e=>{"use strict";
5Object.defineProperty(_e,"__esModule",{value:!0});_e.CodeGen=_e.Name=_e.nil=_e.stringify=_e.str=_e._=_e.KeywordCxt=void 0;var qp=gn();Object.defineProperty(_e,"KeywordCxt",{enumerable:!0,get:function(){return qp.KeywordCxt}});var Ir=k();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return Ir._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return Ir.str}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return Ir.stringify}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return Ir.nil}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return Ir.Name}});Object.defineProperty(_e,"CodeGen",{enumerable:!0,get:function(){return Ir.CodeGen}});var Lp=Pi(),Xd=_n$1(),Up=Do$1(),Sn=Ti$1(),Hp=k(),Cn=pn$2(),ki=mn$2(),ma=q$1(),Bd=_d$1(),Bp=Hd$1(),Zd=(t,e)=>new RegExp(t,e);Zd.code=`new RegExp`;var Gp=[`removeAdditional`,`useDefaults`,`coerceTypes`],Kp=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),Jp={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},Xp={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`},Gd=200;function Zp(t){var e,r,n,i,o,a,s,l,c,d,f,_,m,h,u,y,b,N,D,Z,M,tt,vt,ro,no;let Zr=t.strict,io=(e=t.code)===null||e===void 0?void 0:e.optimize,ps=io===!0||io===void 0?1:io||0,hs=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Zd,wu=(i=t.uriResolver)!==null&&i!==void 0?i:Bp.default;return{strictSchema:(a=(o=t.strictSchema)!==null&&o!==void 0?o:Zr)!==null&&a!==void 0?a:!0,strictNumbers:(l=(s=t.strictNumbers)!==null&&s!==void 0?s:Zr)!==null&&l!==void 0?l:!0,strictTypes:(d=(c=t.strictTypes)!==null&&c!==void 0?c:Zr)!==null&&d!==void 0?d:`log`,strictTuples:(_=(f=t.strictTuples)!==null&&f!==void 0?f:Zr)!==null&&_!==void 0?_:`log`,strictRequired:(h=(m=t.strictRequired)!==null&&m!==void 0?m:Zr)!==null&&h!==void 0?h:!1,code:t.code?W$1(g$1({},t.code),{optimize:ps,regExp:hs}):{optimize:ps,regExp:hs},loopRequired:(u=t.loopRequired)!==null&&u!==void 0?u:Gd,loopEnum:(y=t.loopEnum)!==null&&y!==void 0?y:Gd,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(N=t.messages)!==null&&N!==void 0?N:!0,inlineRefs:(D=t.inlineRefs)!==null&&D!==void 0?D:!0,schemaId:(Z=t.schemaId)!==null&&Z!==void 0?Z:`$id`,addUsedSchema:(M=t.addUsedSchema)!==null&&M!==void 0?M:!0,validateSchema:(tt=t.validateSchema)!==null&&tt!==void 0?tt:!0,validateFormats:(vt=t.validateFormats)!==null&&vt!==void 0?vt:!0,unicodeRegExp:(ro=t.unicodeRegExp)!==null&&ro!==void 0?ro:!0,int32range:(no=t.int32range)!==null&&no!==void 0?no:!0,uriResolver:wu}}var wn=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts=g$1(g$1({},e),Zp(e));let{es5:r,lines:n}=this.opts.code;this.scope=new Hp.ValueScope({scope:{},prefixes:Kp,es5:r,lines:n}),this.logger=nh(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,Up.getRules)(),Kd.call(this,Jp,e,`NOT SUPPORTED`),Kd.call(this,Xp,e,`DEPRECATED`,`warn`),this._metaOpts=th.call(this),e.formats&&Yp.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&eh.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),Qp.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=Bd;n===`id`&&(i=g$1({},Bd),i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[r]||e:void 0}validate(e,r){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return`$async`in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!=`function`)throw new Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return i.call(this,e,r);
5async function i(d,f){await o.call(this,d.$schema);let _=this._addSchema(d,f);return _.validate||a.call(this,_)}async function o(d){d&&!this.getSchema(d)&&await i.call(this,{$ref:d},!0)}async function a(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof Xd.default))throw f;return s.call(this,f),await l.call(this,f.missingSchema),a.call(this,d)}}function s({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function l(d){let f=await c.call(this,d);this.refs[d]||await o.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function c(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,n,i);return this}let o;if(typeof e==`object`){let{schemaId:a}=this.opts;if(o=e[a],o!==void 0&&typeof o!=`string`)throw new Error(`schema ${a} must be string`)}return r=(0,Cn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw new Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let i=this.validate(n,e);if(!i&&r){let o=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(o);else throw new Error(o)}return i}getSchema(e){let r;for(;typeof(r=Jd.call(this,e))==`string`;)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Sn.SchemaEnv({schema:{},schemaId:n});if(r=Sn.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let r=Jd.call(this,e);return typeof r==`object`&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Cn.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e==`string`)n=e,typeof r==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),r.keyword=n);else if(typeof e==`object`&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error(`addKeywords: keyword must be string or non-empty array`)}else throw new Error(`invalid addKeywords parameters`);if(oh.call(this,n,r),!r)return(0,ma.eachItem)(n,o=>fa.call(this,o)),this;sh.call(this,r);let i=W$1(g$1({},r),{type:(0,ki.getJSONTypes)(r.type),schemaType:(0,ki.getJSONTypes)(r.schemaType)});return(0,ma.eachItem)(n,i.type.length===0?o=>fa.call(this,o,i):o=>i.type.forEach(a=>fa.call(this,o,i,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r==`object`?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r==`string`&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let o=i.split(`/`).slice(1),a=e;for(let s of o)a=a[s];for(let s in n){let l=n[s];if(typeof l!=`object`)continue;let{$data:c}=l.definition,d=a[s];c&&d&&(a[s]=Qd(d))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i==`string`?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e==`object`)a=e[s];else{if(this.opts.jtd)throw new Error(`schema must be object`);if(typeof e!=`boolean`)throw new Error(`schema must be object or boolean`)}let l=this._cache.get(e);if(l!==void 0)return l;n=(0,Cn.normalizeId)(a||n);let c=Cn.getSchemaRefs.call(this,e,n);return l=new Sn.SchemaEnv({schema:e,schemaId:s,meta:r,baseId:n,localRefs:c}),this._cache.set(l.schema,l),o&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=l),i&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Sn.compileSchema.call(this,e),!e.validate)throw new Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Sn.compileSchema.call(this,e)}finally{this.opts=r}}};wn.ValidationError=Lp.default;wn.MissingRefError=Xd.default;_e.default=wn;function Kd(t,e,r,n=`error`){for(let i in t){let o=i;o in e&&this.logger[n](`${r}: option ${i}. ${t[o]}`)}}function Jd(t){return t=(0,Cn.normalizeId)(t),this.schemas[t]||this.refs[t]}function Qp(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Yp(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function eh(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function th(){let t=g$1({},this.opts);for(let e of Gp)delete t[e];return t}var rh={log(){},warn(){},error(){}};function nh(t){if(t===!1)return rh;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error(`logger must implement log, warn and error methods`)}var ih=/^[a-z_$][a-z0-9_$:-]*$/i;function oh(t,e){let{RULES:r}=this;if((0,ma.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!ih.test(n))throw new Error(`Keyword ${n}
5 has invalid name`)}),!!e&&e.$data&&!(`code`in e||`validate`in e))throw new Error(`$data keyword must have "code" or "validate" function`)}function fa(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error(`keyword with "post" flag cannot have "type"`);let{RULES:o}=this,a=i?o.post:o.rules.find(({type:l})=>l===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!e)return;let s={keyword:t,definition:W$1(g$1({},e),{type:(0,ki.getJSONTypes)(e.type),schemaType:(0,ki.getJSONTypes)(e.schemaType)})};e.before?ah.call(this,a,s,e.before):a.rules.push(s),o.all[t]=s,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function ah(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function sh(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Qd(e)),t.validateSchema=this.compile(e,!0))}var lh={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function Qd(t){return{anyOf:[t,lh]}}});var ec=Fx(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.default={keyword:`id`,code(){throw new Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}});var ic=Fx(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.callRef=Yt.getValidate=void 0;var ch=_n$1(),tc=Ue(),Re=k(),Tr=zt$1(),rc=Ti$1(),Ai=q$1(),uh={keyword:`$ref`,schemaType:`string`,code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:s,self:l}=n,{root:c}=o;if((r===`#`||r===`#/`)&&i===c.baseId)return f();let d=rc.resolveRef.call(l,c,i,r);if(d===void 0)throw new ch.default(n.opts.uriResolver,i,r);if(d instanceof rc.SchemaEnv)return _(d);return m(d);function f(){if(o===c)return Ri(t,a,o,o.$async);let h=e.scopeValue(`root`,{ref:c});return Ri(t,(0,Re._)`${h}.validate`,c,c.$async)}function _(h){Ri(t,nc(t,h),h,h.$async)}function m(h){let u=e.scopeValue(`schema`,s.code.source===!0?{ref:h,code:(0,Re.stringify)(h)}:{ref:h}),y=e.name(`valid`),b=t.subschema({schema:h,dataTypes:[],schemaPath:Re.nil,topSchemaRef:u,errSchemaPath:r},y);t.mergeEvaluated(b),t.ok(y)}}};function nc(t,e){let{gen:r}=t;return e.validate?r.scopeValue(`validate`,{ref:e.validate}):(0,Re._)`${r.scopeValue(`wrapper`,{ref:e})}.validate`}Yt.getValidate=nc;function Ri(t,e,r,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:s,opts:l}=o,c=l.passContext?Tr.default.this:Re.nil;n?d():f();function d(){if(!s.$async)throw new Error(`async schema referenced by sync schema`);let h=i.let(`valid`);i.try(()=>{i.code((0,Re._)`await ${(0,tc.callValidateCode)(t,e,c)}`),m(e),a||i.assign(h,!0)},u=>{i.if((0,Re._)`!(${u} instanceof ${o.ValidationError})`,()=>i.throw(u)),_(u),a||i.assign(h,!1)}),t.ok(h)}function f(){t.result((0,tc.callValidateCode)(t,e,c),()=>m(e),()=>_(e))}function _(h){let u=(0,Re._)`${h}.errors`;i.assign(Tr.default.vErrors,(0,Re._)`${Tr.default.vErrors} === null ? ${u} : ${Tr.default.vErrors}.concat(${u})`),i.assign(Tr.default.errors,(0,Re._)`${Tr.default.vErrors}.length`)}function m(h){var u;if(!o.opts.unevaluated)return;let y=(u=r?.validate)===null||u===void 0?void 0:u.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=Ai.mergeEvaluated.props(i,y.props,o.props));else{let b=i.var(`props`,(0,Re._)`${h}.evaluated.props`);o.props=Ai.mergeEvaluated.props(i,b,o.props,Re.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=Ai.mergeEvaluated.items(i,y.items,o.items));else{let b=i.var(`items`,(0,Re._)`${h}.evaluated.items`);o.items=Ai.mergeEvaluated.items(i,b,o.items,Re.Name)}}}Yt.callRef=Ri;Yt.default=uh});var oc=Fx(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var fh=ec(),mh=ic();ha.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,fh.default,mh.default]});var ac=Fx(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var ji=k(),kt=ji.operators,Wi={maximum:{okStr:`<=`,ok:kt.LTE,fail:kt.GT},minimum:{okStr:`>=`,ok:kt.GTE,fail:kt.LT},exclusiveMaximum:{okStr:`<`,ok:kt.LT,fail:kt.GTE},exclusiveMinimum:{okStr:`>`,ok:kt.GT,fail:kt.LTE}};ya.default={keyword:Object.keys(Wi),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:t,schemaCode:e})=>(0,ji.str)`must be ${Wi[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ji._)`{comparison: ${Wi[t].okStr}, limit: ${e}}`}
5,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,ji._)`${r} ${Wi[e].fail} ${n} || isNaN(${r})`)}}});var sc=Fx(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var zn=k();ga.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:t})=>(0,zn.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,zn._)`{multipleOf: ${t}}`},code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=e.let(`res`),s=o?(0,zn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,zn._)`${a} !== parseInt(${a})`;t.fail$data((0,zn._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}}});var dc=Fx(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});function lc(t){let e=t.length,r=0,n=0,i;for(;n<e;)r++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<e&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return r}_a.default=lc;lc.code=`require("ajv/dist/runtime/ucs2length").default`});var cc=Fx(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var er=k(),vh=q$1(),bh=dc();va.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:t,schemaCode:e}){let r=t===`maxLength`?`more`:`fewer`;return(0,er.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,er._)`{limit: ${t}}`},code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,o=e===`maxLength`?er.operators.GT:er.operators.LT,a=i.opts.unicode===!1?(0,er._)`${r}.length`:(0,er._)`${(0,vh.useFunc)(t.gen,bh.default)}(${r})`;t.fail$data((0,er._)`${a} ${o} ${n}`)}}});var uc=Fx(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var wh=Ue(),zh=q$1(),Nr=k();ba.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:t})=>(0,Nr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Nr._)`{pattern: ${t}}`},code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:a}=t,s=a.opts.unicodeRegExp?`u`:``;if(n){let{regExp:l}=a.opts.code,c=l.code===`new RegExp`?(0,Nr._)`new RegExp`:(0,zh.useFunc)(e,l),d=e.let(`valid`);e.try(()=>e.assign(d,(0,Nr._)`${c}(${o}, ${s}).test(${r})`),()=>e.assign(d,!1)),t.fail$data((0,Nr._)`!${d}`)}else{let l=(0,wh.usePattern)(t,i);t.fail$data((0,Nr._)`!${l}.test(${r})`)}}}});var fc=Fx(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var $n=k();Sa.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:t,schemaCode:e}){let r=t===`maxProperties`?`more`:`fewer`;return(0,$n.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,$n._)`{limit: ${t}}`},code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e===`maxProperties`?$n.operators.GT:$n.operators.LT;t.fail$data((0,$n._)`Object.keys(${r}).length ${i} ${n}`)}}});var mc=Fx(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var xn=Ue(),Fn=k(),Ph=q$1();Ca.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:t}})=>(0,Fn.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Fn._)`{missingProperty: ${t}}`},code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:o,it:a}=t,{opts:s}=a;if(!o&&r.length===0)return;let l=r.length>=s.loopRequired;if(a.allErrors?c():d(),s.strictRequired){let m=t.parentSchema.properties,{definedProperties:h}=t.it;for(let u of r)if(m?.[u]===void 0&&!h.has(u)){let b=`required property "${u}" is not defined at "${a.schemaEnv.baseId+a.errSchemaPath}" (strictRequired)`;(0,Ph.checkStrictMode)(a,b,a.opts.strictRequired)}}function c(){if(l||o)t.block$data(Fn.nil,f);else for(let m of r)(0,xn.checkReportMissingProp)(t,m)}function d(){let m=e.let(`missing`);if(l||o){let h=e.let(`valid`,!0);t.block$data(h,()=>_(m,h)),t.ok(h)}else e.if((0,xn.checkMissingProp)(t,r,m)),(0,xn.reportMissingProp)(t,m),e.else()}function f(){e.forOf(`prop`,n,m=>{t.setParams({missingProperty:m}),e.if((0,xn.noPropertyInData)(e,i,m,s.ownProperties),()=>t.error())})}function _(m,h){t.setParams({missingProperty:m}),e.forOf(m,n,()=>{e.assign(h,(0,xn.propertyInData)(e,i,m,s.ownProperties)),e.if((0,Fn.not)(h),()=>{t.error(),e.break()})},Fn.nil)}}}});var pc=Fx(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var En=k();wa.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:t,schemaCode:e}){let r=t===`maxItems`?`more`:`fewer`;return(0,En.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,En._)`{limit: ${t}}`},code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e===`maxItems`?En.operators.GT:En.operators.LT;t.fail$data((0,En._)`${r}.length ${i} ${n}`)}}});var qi=Fx(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var hc=Wo$1();hc.code=`require("ajv/dist/runtime/equal").default`;za.default=hc}
5);var yc=Fx(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var $a=mn$2(),ve=k(),Mh=q$1(),Vh=qi();xa.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:t,j:e}})=>(0,ve.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,ve._)`{i: ${t}, j: ${e}}`},code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:s}=t;if(!n&&!i)return;let l=e.let(`valid`),c=o.items?(0,$a.getSchemaTypes)(o.items):[];t.block$data(l,d,(0,ve._)`${a} === false`),t.ok(l);function d(){let h=e.let(`i`,(0,ve._)`${r}.length`),u=e.let(`j`);t.setParams({i:h,j:u}),e.assign(l,!0),e.if((0,ve._)`${h} > 1`,()=>(f()?_:m)(h,u))}function f(){return c.length>0&&!c.some(h=>h===`object`||h===`array`)}function _(h,u){let y=e.name(`item`),b=(0,$a.checkDataTypes)(c,y,s.opts.strictNumbers,$a.DataType.Wrong),N=e.const(`indices`,(0,ve._)`{}`);e.for((0,ve._)`;${h}--;`,()=>{e.let(y,(0,ve._)`${r}[${h}]`),e.if(b,(0,ve._)`continue`),c.length>1&&e.if((0,ve._)`typeof ${y} == "string"`,(0,ve._)`${y} += "_"`),e.if((0,ve._)`typeof ${N}[${y}] == "number"`,()=>{e.assign(u,(0,ve._)`${N}[${y}]`),t.error(),e.assign(l,!1).break()}).code((0,ve._)`${N}[${y}] = ${h}`)})}function m(h,u){let y=(0,Mh.useFunc)(e,Vh.default),b=e.name(`outer`);e.label(b).for((0,ve._)`;${h}--;`,()=>e.for((0,ve._)`${u} = ${h}; ${u}--;`,()=>e.if((0,ve._)`${y}(${r}[${h}], ${r}[${u}])`,()=>{t.error(),e.assign(l,!1).break(b)})))}}}});var gc=Fx(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Fa=k(),Ah=q$1(),Rh=qi();Ea.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:t})=>(0,Fa._)`{allowedValue: ${t}}`},code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:o}=t;n||o&&typeof o==`object`?t.fail$data((0,Fa._)`!${(0,Ah.useFunc)(e,Rh.default)}(${r}, ${i})`):t.fail((0,Fa._)`${o} !== ${r}`)}}});var _c=Fx(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Pn=k(),qh=q$1(),Lh=qi();Pa.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:t})=>(0,Pn._)`{allowedValues: ${t}}`},code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:a}=t;if(!n&&i.length===0)throw new Error(`enum must have non-empty array`);let s=i.length>=a.opts.loopEnum,l,c=()=>l??(l=(0,qh.useFunc)(e,Lh.default)),d;if(s||n)d=e.let(`valid`),t.block$data(d,f);else{if(!Array.isArray(i))throw new Error(`ajv implementation error`);let m=e.const(`vSchema`,o);d=(0,Pn.or)(...i.map((h,u)=>_(m,u)))}t.pass(d);function f(){e.assign(d,!1),e.forOf(`v`,o,m=>e.if((0,Pn._)`${c()}(${r}, ${m})`,()=>e.assign(d,!0).break()))}function _(m,h){let u=i[h];return typeof u==`object`&&u!==null?(0,Pn._)`${c()}(${r}, ${m}[${h}])`:(0,Pn._)`${r} === ${u}`}}}});var vc=Fx(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var Bh=ac(),Gh=sc(),Kh=cc(),Jh=uc(),Xh=fc(),Zh=mc(),Qh=pc(),Yh=yc(),ey=gc(),ty=_c();Ia.default=[Bh.default,Gh.default,Kh.default,Jh.default,Xh.default,Zh.default,Qh.default,Yh.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},ey.default,ty.default]});var Na$1=Fx(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateAdditionalItems=void 0;var tr=k(),Ta=q$1(),iy={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:t}})=>(0,tr.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,tr._)`{limit: ${t}}`},code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Ta.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}bc(t,n)}};function bc(t,e){let{gen:r,schema:n,data:i,keyword:o,it:a}=t;a.items=!0;let s=r.const(`len`,(0,tr._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,tr._)`${s} <= ${e.length}`);else if(typeof n==`object`&&!(0,Ta.alwaysValidSchema)(a,n)){let c=r.var(`valid`,(0,tr._)`${s} <= ${e.length}`);r.if((0,tr.not)(c),()=>l(c)),t.ok(c)}function l(c){r.forRange(`i`,e.length,s,d=>{t.subschema({keyword:o,dataProp:d,dataPropType:Ta.Type.Num},c),a.allErrors||r.if((0,tr.not)(c),()=>r.break())})}}In.validateAdditionalItems=bc;In.default=iy});
5var Da$1=Fx(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.validateTuple=void 0;var Sc=k(),Li=q$1(),oy=Ue(),ay={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return Cc(t,`additionalItems`,e);r.items=!0,!(0,Li.alwaysValidSchema)(r,e)&&t.ok((0,oy.validateArray)(t))}};function Cc(t,e,r=t.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:s}=t;d(i),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=Li.mergeEvaluated.items(n,r.length,s.items));let l=n.name(`valid`),c=n.const(`len`,(0,Sc._)`${o}.length`);r.forEach((f,_)=>{(0,Li.alwaysValidSchema)(s,f)||(n.if((0,Sc._)`${c} > ${_}`,()=>t.subschema({keyword:a,schemaProp:_,dataProp:_},l)),t.ok(l))});function d(f){let{opts:_,errSchemaPath:m}=s,h=r.length,u=h===f.minItems&&(h===f.maxItems||f[e]===!1);if(_.strictTuples&&!u){let y=`"${a}" is ${h}-tuple, but minItems or maxItems/${e} are not specified or different at path "${m}"`;(0,Li.checkStrictMode)(s,y,_.strictTuples)}}}Tn.validateTuple=Cc;Tn.default=ay});var wc=Fx(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var sy=Da$1();Ma.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:t=>(0,sy.validateTuple)(t,`items`)}});var $c$1=Fx(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var zc=k(),dy=q$1(),cy=Ue(),uy=Na$1();Va.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:t}})=>(0,zc.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,zc._)`{limit: ${t}}`},code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,dy.alwaysValidSchema)(n,e)&&(i?(0,uy.validateAdditionalItems)(t,i):t.ok((0,cy.validateArray)(t)))}}});var xc=Fx(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Be=k(),Ui=q$1();Oa.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:t,max:e}})=>e===void 0?(0,Be.str)`must contain at least ${t} valid item(s)`:(0,Be.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Be._)`{minContains: ${t}}`:(0,Be._)`{minContains: ${t}, maxContains: ${e}}`},code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t,a,s,{minContains:l,maxContains:c}=n;o.opts.next?(a=l===void 0?1:l,s=c):a=1;let d=e.const(`len`,(0,Be._)`${i}.length`);if(t.setParams({min:a,max:s}),s===void 0&&a===0){(0,Ui.checkStrictMode)(o,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(s!==void 0&&a>s){(0,Ui.checkStrictMode)(o,`"minContains" > "maxContains" is always invalid`),t.fail();return}if((0,Ui.alwaysValidSchema)(o,r)){let u=(0,Be._)`${d} >= ${a}`;s!==void 0&&(u=(0,Be._)`${u} && ${d} <= ${s}`),t.pass(u);return}o.items=!0;let f=e.name(`valid`);s===void 0&&a===1?m(f,()=>e.if(f,()=>e.break())):a===0?(e.let(f,!0),s!==void 0&&e.if((0,Be._)`${i}.length > 0`,_)):(e.let(f,!1),_()),t.result(f,()=>t.reset());function _(){let u=e.name(`_valid`),y=e.let(`count`,0);m(u,()=>e.if(u,()=>h(y)))}function m(u,y){e.forRange(`i`,0,d,b=>{t.subschema({keyword:`contains`,dataProp:b,dataPropType:Ui.Type.Num,compositeRule:!0},u),y()})}function h(u){e.code((0,Be._)`${u}++`),s===void 0?e.if((0,Be._)`${u} >= ${a}`,()=>e.assign(f,!0).break()):(e.if((0,Be._)`${u} > ${s}`,()=>e.assign(f,!1).break()),a===1?e.assign(f,!0):e.if((0,Be._)`${u} >= ${a}`,()=>e.assign(f,!0)))}}}});var Pc$1=Fx(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var ka=k(),yy=q$1(),Nn=Ue();yt.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?`property`:`properties`;return(0,ka.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,ka._)`{property: ${t},
6    missingProperty: ${n},
7    depsCount: ${e},
8    deps: ${r}}`};var gy={keyword:`dependencies`,type:`object`,schemaType:`object`,error:yt.error,code(t){let[e,r]=_y(t);Fc(t,e),Ec(t,r)}};function _y({schema:t}){let e={},r={};for(let n in t){if(n===`__proto__`)continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function Fc(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let o=r.let(`missing`);for(let a in e){let s=e[a];if(s.length===0)continue;let l=(0,Nn.propertyInData)(r,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:s.length,deps:s.join(`, `)}),i.allErrors?r.if(l,()=>{for(let c of s)(0,Nn.checkReportMissingProp)(t,c)}
8):(r.if((0,ka._)`${l} && (${(0,Nn.checkMissingProp)(t,s,o)})`),(0,Nn.reportMissingProp)(t,o),r.else())}}yt.validatePropertyDeps=Fc;function Ec(t,e=t.schema){let{gen:r,data:n,keyword:i,it:o}=t,a=r.name(`valid`);for(let s in e)(0,yy.alwaysValidSchema)(o,e[s])||(r.if((0,Nn.propertyInData)(r,n,s,o.opts.ownProperties),()=>{let l=t.subschema({keyword:i,schemaProp:s},a);t.mergeValidEvaluated(l,a)},()=>r.var(a,!0)),t.ok(a))}yt.validateSchemaDeps=Ec;yt.default=gy});var Tc=Fx(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ic=k(),vy=q$1();Aa.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:t})=>(0,Ic._)`{propertyName: ${t.propertyName}}`},code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,vy.alwaysValidSchema)(i,r))return;let o=e.name(`valid`);e.forIn(`key`,n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:`propertyNames`,data:a,dataTypes:[`string`],propertyName:a,compositeRule:!0},o),e.if((0,Ic.not)(o),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(o)}}});var ja$1=Fx(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Hi=Ue(),Ye=k(),Cy=zt$1(),Bi=q$1();Ra.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:t})=>(0,Ye._)`{additionalProperty: ${t.additionalProperty}}`},code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=t;if(!o)throw new Error(`ajv implementation error`);let{allErrors:s,opts:l}=a;if(a.props=!0,l.removeAdditional!==`all`&&(0,Bi.alwaysValidSchema)(a,r))return;let c=(0,Hi.allSchemaProperties)(n.properties),d=(0,Hi.allSchemaProperties)(n.patternProperties);f(),t.ok((0,Ye._)`${o} === ${Cy.default.errors}`);function f(){e.forIn(`key`,i,y=>{!c.length&&!d.length?h(y):e.if(_(y),()=>h(y))})}function _(y){let b;if(c.length>8){let N=(0,Bi.schemaRefOrVal)(a,n.properties,`properties`);b=(0,Hi.isOwnProperty)(e,N,y)}else c.length?b=(0,Ye.or)(...c.map(N=>(0,Ye._)`${y} === ${N}`)):b=Ye.nil;return d.length&&(b=(0,Ye.or)(b,...d.map(N=>(0,Ye._)`${(0,Hi.usePattern)(t,N)}.test(${y})`))),(0,Ye.not)(b)}function m(y){e.code((0,Ye._)`delete ${i}[${y}]`)}function h(y){if(l.removeAdditional===`all`||l.removeAdditional&&r===!1){m(y);return}if(r===!1){t.setParams({additionalProperty:y}),t.error(),s||e.break();return}if(typeof r==`object`&&!(0,Bi.alwaysValidSchema)(a,r)){let b=e.name(`valid`);l.removeAdditional===`failing`?(u(y,b,!1),e.if((0,Ye.not)(b),()=>{t.reset(),m(y)})):(u(y,b),s||e.if((0,Ye.not)(b),()=>e.break()))}}function u(y,b,N){let D={keyword:`additionalProperties`,dataProp:y,dataPropType:Bi.Type.Str};N===!1&&Object.assign(D,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(D,b)}}}});var Mc=Fx(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var $y=gn(),Nc=Ue(),Wa=q$1(),Dc=ja$1();qa.default={keyword:`properties`,type:`object`,schemaType:`object`,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional===`all`&&n.additionalProperties===void 0&&Dc.default.code(new $y.KeywordCxt(o,Dc.default,`additionalProperties`));let a=(0,Nc.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Wa.mergeEvaluated.props(e,(0,Wa.toHash)(a),o.props));let s=a.filter(f=>!(0,Wa.alwaysValidSchema)(o,r[f]));if(s.length===0)return;let l=e.name(`valid`);for(let f of s)c(f)?d(f):(e.if((0,Nc.propertyInData)(e,i,f,o.opts.ownProperties)),d(f),o.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(l);function c(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function d(f){t.subschema({keyword:`properties`,schemaProp:f,dataProp:f},l)}}}});var Ac$1=Fx(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var Vc=Ue(),Gi=k(),Oc=q$1(),kc=q$1();La.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:o}=t,{opts:a}=o,s=(0,Vc.allSchemaProperties)(r),l=s.filter(u=>(0,Oc.alwaysValidSchema)(o,r[u]));if(s.length===0||l.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;let c=a.strictSchema&&!a.allowMatchingProperties&&i.properties,d=e.name(`valid`);o.props!==!0&&!(o.props instanceof Gi.Name)&&(o.props=(0,kc.evaluatedPropsToName)(e,o.props));let{props:f}=o;_();function _(){for(let u of s)c&&m(u),o.allErrors?h(u):(e.var(d,!0),h(u),e.if(d))}function m(u){for(let y in c)new RegExp(u).test(y)&&(0,Oc.checkStrictMode)(o,`property ${y} matches pattern ${u} (use allowMatchingProperties)`)}function h(u){e.forIn(`key`,n,y=>{e.if((0,Gi._)`${(0,Vc.usePattern)(t,u)}.test(${y})`,()=>{let b=l.includes(u);b||t.subschema({keyword:`patternProperties`,schemaProp:u,dataProp:y,dataPropType:kc.Type.Str},d),o.opts.unevaluated&&f!==!0?e.assign((0,Gi._)`${f}[${y}]`,!0):!b&&!o.allErrors&&e.if((0,Gi.not)(d),()=>e.break())})})}}}});var Rc$1=Fx(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Ey=q$1();
8Ua.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,Ey.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name(`valid`);t.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:`must NOT be valid`}}});var jc$1=Fx(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:Ue().validateUnion,error:{message:`must match a schema in anyOf`}}});var Wc$1=Fx(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Ki=k(),Ny=q$1();Ba.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:t})=>(0,Ki._)`{passingSchemas: ${t.passing}}`},code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error(`ajv implementation error`);if(i.opts.discriminator&&n.discriminator)return;let o=r,a=e.let(`valid`,!1),s=e.let(`passing`,null),l=e.name(`_valid`);t.setParams({passing:s}),e.block(c),t.result(a,()=>t.reset(),()=>t.error(!0));function c(){o.forEach((d,f)=>{let _;(0,Ny.alwaysValidSchema)(i,d)?e.var(l,!0):_=t.subschema({keyword:`oneOf`,schemaProp:f,compositeRule:!0},l),f>0&&e.if((0,Ki._)`${l} && ${a}`).assign(a,!1).assign(s,(0,Ki._)`[${s}, ${f}]`).else(),e.if(l,()=>{e.assign(a,!0),e.assign(s,f),_&&t.mergeEvaluated(_,Ki.Name)})})}}}});var qc=Fx(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Vy=q$1();Ga.default={keyword:`allOf`,schemaType:`array`,code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error(`ajv implementation error`);let i=e.name(`valid`);r.forEach((o,a)=>{if((0,Vy.alwaysValidSchema)(n,o))return;let s=t.subschema({keyword:`allOf`,schemaProp:a},i);t.ok(i),t.mergeEvaluated(s)})}}});var Hc$1=Fx(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Ji=k(),Uc=q$1(),Ay={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:t})=>(0,Ji.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Ji._)`{failingKeyword: ${t.ifClause}}`},code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Uc.checkStrictMode)(n,`"if" without "then" and "else" is ignored`);let i=Lc(n,`then`),o=Lc(n,`else`);if(!i&&!o)return;let a=e.let(`valid`,!0),s=e.name(`_valid`);if(l(),t.reset(),i&&o){let d=e.let(`ifClause`);t.setParams({ifClause:d}),e.if(s,c(`then`,d),c(`else`,d))}else i?e.if(s,c(`then`)):e.if((0,Ji.not)(s),c(`else`));t.pass(a,()=>t.error(!0));function l(){let d=t.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},s);t.mergeEvaluated(d)}function c(d,f){return()=>{let _=t.subschema({keyword:d},s);e.assign(a,s),t.mergeValidEvaluated(_,a),f?e.assign(f,(0,Ji._)`${d}`):t.setParams({ifClause:d})}}}};function Lc(t,e){let r=t.schema[e];return r!==void 0&&!(0,Uc.alwaysValidSchema)(t,r)}Ka.default=Ay});var Bc$1=Fx(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var Ry=q$1();Ja.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,Ry.checkStrictMode)(r,`"${t}" without "if" is ignored`)}}});var Gc=Fx(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Wy=Na$1(),qy=wc(),Ly=Da$1(),Uy=$c$1(),Hy=xc(),By=Pc$1(),Gy=Tc(),Ky=ja$1(),Jy=Mc(),Xy=Ac$1(),Zy=Rc$1(),Qy=jc$1(),Yy=Wc$1(),e0=qc(),t0=Hc$1(),r0=Bc$1();function n0(t=!1){let e=[Zy.default,Qy.default,Yy.default,e0.default,t0.default,r0.default,Gy.default,Ky.default,By.default,Jy.default,Xy.default];return t?e.push(qy.default,Uy.default):e.push(Wy.default,Ly.default),e.push(Hy.default),e}Xa.default=n0});var Kc$1=Fx(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var fe=k();Za.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:t})=>(0,fe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,fe._)`{format: ${t}}`},code(t,e){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:s}=t,{opts:l,errSchemaPath:c,schemaEnv:d,self:f}=s;if(!l.validateFormats)return;i?_():m();function _(){let h=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),u=r.const(`fDef`,(0,fe._)`${h}[${a}]`),y=r.let(`fType`),b=r.let(`format`);r.if((0,fe._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`,()=>r.assign(y,(0,fe._)`${u}.type || "string"`).assign(b,(0,fe._)`${u}.validate`),()=>r.assign(y,(0,fe._)`"string"`).assign(b,u)),t.fail$data((0,fe.or)(N(),D()));function N(){return l.strictSchema===!1?fe.nil:(0,fe._)`${a} && !${b}`}function D(){let Z=d.$async?(0,fe._)`(${u}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,fe._)`${b}(${n})`,M=(0,fe._)`(typeof ${b} == "function" ? ${Z} : ${b}.test(${n}))`;return(0,fe._)`${b} && ${b} !== true && ${y} === ${e} && !${M}`}}function m(){let h=f.formats[o];if(!h){N();return}if(h===!0)return;let[u,y,b]=D(h);u===e&&t.pass(Z());function N(){if(l.strictSchema===!1){f.logger.warn(M());return}throw new Error(M());function M(){return`unknown format "${o}" ignored in schema at path "${c}"`}}function D(M){let tt=M instanceof RegExp?(0,fe.regexpCode)(M):l.code.formats?(0,fe._)`${l.code.formats}
8${(0,fe.getProperty)(o)}`:void 0,vt=r.scopeValue(`formats`,{key:o,ref:M,code:tt});return typeof M==`object`&&!(M instanceof RegExp)?[M.type||`string`,M.validate,(0,fe._)`${vt}.validate`]:[`string`,M,vt]}function Z(){if(typeof h==`object`&&!(h instanceof RegExp)&&h.async){if(!d.$async)throw new Error(`async format in sync schema`);return(0,fe._)`await ${b}(${n})`}return typeof y==`function`?(0,fe._)`${b}(${n})`:(0,fe._)`${b}.test(${n})`}}}}});var Jc$1=Fx(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=[Kc$1().default]});var Xc$1=Fx(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.contentVocabulary=Dr.metadataVocabulary=void 0;Dr.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`];Dr.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]});var Qc$1=Fx(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var l0=oc(),d0=vc(),c0=Gc(),u0=Jc$1(),Zc=Xc$1();Ya.default=[l0.default,d0.default,(0,c0.default)(),u0.default,Zc.metadataVocabulary,Zc.contentVocabulary]});var eu$1=Fx(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DiscrError=void 0;var Yc;(function(t){t.Tag=`tag`,t.Mapping=`mapping`})(Yc||(Xi.DiscrError=Yc={}))});var ru$1=Fx(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var Mr=k(),es=eu$1(),tu=Ti$1(),m0=_n$1(),p0=q$1();ts.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:t,tagName:e}})=>t===es.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Mr._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:o}=t,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error(`discriminator: requires discriminator option`);let s=n.propertyName;if(typeof s!=`string`)throw new Error(`discriminator: requires propertyName`);if(n.mapping)throw new Error(`discriminator: mapping is not supported`);if(!a)throw new Error(`discriminator: requires oneOf keyword`);let l=e.let(`valid`,!1),c=e.const(`tag`,(0,Mr._)`${r}${(0,Mr.getProperty)(s)}`);e.if((0,Mr._)`typeof ${c} == "string"`,()=>d(),()=>t.error(!1,{discrError:es.DiscrError.Tag,tag:c,tagName:s})),t.ok(l);function d(){let m=_();e.if(!1);for(let h in m)e.elseIf((0,Mr._)`${c} === ${h}`),e.assign(l,f(m[h]));e.else(),t.error(!1,{discrError:es.DiscrError.Mapping,tag:c,tagName:s}),e.endIf()}function f(m){let h=e.name(`valid`),u=t.subschema({keyword:`oneOf`,schemaProp:m},h);return t.mergeEvaluated(u,Mr.Name),h}function _(){var m;let h={},u=b(i),y=!0;for(let Z=0;Z<a.length;Z++){let M=a[Z];if(M?.$ref&&!(0,p0.schemaHasRulesButRef)(M,o.self.RULES)){let vt=M.$ref;if(M=tu.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,vt),M instanceof tu.SchemaEnv&&(M=M.schema),M===void 0)throw new m0.default(o.opts.uriResolver,o.baseId,vt)}let tt=(m=M?.properties)===null||m===void 0?void 0:m[s];if(typeof tt!=`object`)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);y=y&&(u||b(M)),N(tt,Z)}if(!y)throw new Error(`discriminator: "${s}" must be required`);return h;function b({required:Z}){return Array.isArray(Z)&&Z.includes(s)}function N(Z,M){if(Z.const)D(Z.const,M);else if(Z.enum)for(let tt of Z.enum)D(tt,M);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function D(Z,M){if(typeof Z!=`string`||Z in h)throw new Error(`discriminator: "${s}" values must be unique strings`);h[Z]=M}}}}});var nu=Fx((pS,g0)=>{g0.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}});var ns=Fx((se,rs)=>{"use strict";
8Object.defineProperty(se,"__esModule",{value:!0});se.MissingRefError=se.ValidationError=se.CodeGen=se.Name=se.nil=se.stringify=se.str=se._=se.KeywordCxt=se.Ajv=void 0;var _0=Yd$1(),v0=Qc$1(),b0=ru$1(),iu=nu(),S0=[`/properties`],Zi=`http://json-schema.org/draft-07/schema`,Vr=class extends _0.default{_addVocabularies(){super._addVocabularies(),v0.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(b0.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(iu,S0):iu;this.addMetaSchema(e,Zi,!1),this.refs[`http://json-schema.org/schema`]=Zi}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Zi)?Zi:void 0)}};se.Ajv=Vr;rs.exports=se=Vr;rs.exports.Ajv=Vr;Object.defineProperty(se,"__esModule",{value:!0});se.default=Vr;var C0=gn();Object.defineProperty(se,"KeywordCxt",{enumerable:!0,get:function(){return C0.KeywordCxt}});var Or=k();Object.defineProperty(se,"_",{enumerable:!0,get:function(){return Or._}});Object.defineProperty(se,"str",{enumerable:!0,get:function(){return Or.str}});Object.defineProperty(se,"stringify",{enumerable:!0,get:function(){return Or.stringify}});Object.defineProperty(se,"nil",{enumerable:!0,get:function(){return Or.nil}});Object.defineProperty(se,"Name",{enumerable:!0,get:function(){return Or.Name}});Object.defineProperty(se,"CodeGen",{enumerable:!0,get:function(){return Or.CodeGen}});var w0=Pi();Object.defineProperty(se,"ValidationError",{enumerable:!0,get:function(){return w0.default}});var z0=_n$1();Object.defineProperty(se,"MissingRefError",{enumerable:!0,get:function(){return z0.default}})});var fu$1=Fx(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.formatNames=_t.fastFormats=_t.fullFormats=void 0;function gt(t,e){return{validate:t,compare:e}}_t.fullFormats={date:gt(lu,ss),time:gt(os(!0),ls),"date-time":gt(ou(!0),cu),"iso-time":gt(os(),du),"iso-date-time":gt(ou(),uu),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:I0,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k0,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:T0,int32:{type:`number`,validate:M0},int64:{type:`number`,validate:V0},float:{type:`number`,validate:su},double:{type:`number`,validate:su},password:!0,binary:!0};_t.fastFormats=W$1(g$1({},_t.fullFormats),{date:gt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,ss),time:gt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,ls),"date-time":gt(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cu),"iso-time":gt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,du),"iso-date-time":gt(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,uu),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});_t.formatNames=Object.keys(_t.fullFormats);function $0(t){return t%4===0&&(t%100!==0||t%400===0)}var x0=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,F0=[0,31,28,31,30,31,30,31,31,30,31,30,31];function lu(t){let e=x0.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&$0(r)?29:F0[n])}function ss(t,e){if(t&&e)return t>e?1:t<e?-1:0}var is=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function os(t){return function(r){let n=is.exec(r);if(!n)return!1;let i=+n[1],o=+n[2],a=+n[3],s=n[4],l=n[5]===`-`?-1:1,c=+(n[6]||0),d=+(n[7]||0);if(c>23||d>59||t&&!s)return!1;if(i<=23&&o<=59&&a<60)return!0;let f=o-d*l,_=i-c*l-(f<0?1:0);return(_===23||_===-1)&&(f===59||f===-1)&&a<61}}function ls(t,e){if(!(t&&e))return;let r=new Date(`2020-01-01T`+t).valueOf(),n=new Date(`2020-01-01T`+e).valueOf();if(r&&n)return r-n}function du(t,e){if(!(t&&e))return;let r=is.exec(t),n=is.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t<e?-1:0}var as=/t|\s/i;function ou(t){let e=os(t);return function(n){let i=n.split(as);return i.length===2&&lu(i[0])&&e(i[1])}}function cu(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),n=new Date(e).valueOf();if(r&&n)return r-n}function uu(t,e){if(!(t&&e))return;let[r,n]=t.split(as),[i,o]=e.split(as),a=ss(r,i);if(a!==void 0)return a||ls(n,o)}var E0=/\/|:/,P0=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2}
8)*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function I0(t){return E0.test(t)&&P0.test(t)}var au=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T0(t){return au.lastIndex=0,au.test(t)}var N0=-(2**31),D0=2**31-1;function M0(t){return Number.isInteger(t)&&t<=D0&&t>=N0}function V0(t){return Number.isInteger(t)}function su(){return!0}var O0=/[^\\]\\Z/;function k0(t){if(O0.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var mu$1=Fx(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.formatLimitDefinition=void 0;var A0=ns(),et=k(),At=et.operators,Qi={formatMaximum:{okStr:`<=`,ok:At.LTE,fail:At.GT},formatMinimum:{okStr:`>=`,ok:At.GTE,fail:At.LT},formatExclusiveMaximum:{okStr:`<`,ok:At.LT,fail:At.GTE},formatExclusiveMinimum:{okStr:`>`,ok:At.GT,fail:At.LTE}};kr.formatLimitDefinition={keyword:Object.keys(Qi),type:`string`,schemaType:`string`,$data:!0,error:{message:({keyword:t,schemaCode:e})=>(0,et.str)`should be ${Qi[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,et._)`{comparison: ${Qi[t].okStr}, limit: ${e}}`},code(t){let{gen:e,data:r,schemaCode:n,keyword:i,it:o}=t,{opts:a,self:s}=o;if(!a.validateFormats)return;let l=new A0.KeywordCxt(o,s.RULES.all.format.definition,`format`);l.$data?c():d();function c(){let _=e.scopeValue(`formats`,{ref:s.formats,code:a.code.formats}),m=e.const(`fmt`,(0,et._)`${_}[${l.schemaCode}]`);t.fail$data((0,et.or)((0,et._)`typeof ${m} != "object"`,(0,et._)`${m} instanceof RegExp`,(0,et._)`typeof ${m}.compare != "function"`,f(m)))}function d(){let _=l.schema,m=s.formats[_];if(!m||m===!0)return;if(typeof m!=`object`||m instanceof RegExp||typeof m.compare!=`function`)throw new Error(`"${i}": format "${_}" does not define "compare" function`);let h=e.scopeValue(`formats`,{key:_,ref:m,code:a.code.formats?(0,et._)`${a.code.formats}${(0,et.getProperty)(_)}`:void 0});t.fail$data(f(h))}function f(_){return(0,et._)`${_}.compare(${r}, ${n}) ${Qi[i].fail} 0`}},dependencies:[`format`]};var j0=t=>(t.addKeyword(kr.formatLimitDefinition),t);kr.default=j0});var gu$1=Fx((Dn,yu)=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});var Ar=fu$1(),W0=mu$1(),ds=k(),pu=new ds.Name(`fullFormats`),q0=new ds.Name(`fastFormats`),cs=(t,e={keywords:!0})=>{if(Array.isArray(e))return hu(t,e,Ar.fullFormats,pu),t;let[r,n]=e.mode===`fast`?[Ar.fastFormats,q0]:[Ar.fullFormats,pu];return hu(t,e.formats||Ar.formatNames,r,n),e.keywords&&(0,W0.default)(t),t};cs.get=(t,e=`full`)=>{let n=(e===`fast`?Ar.fastFormats:Ar.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function hu(t,e,r,n){var i,o;(i=(o=t.opts.code).formats)!==null&&i!==void 0||(o.formats=(0,ds._)`require("ajv-formats/dist/formats").${n}`);for(let a of e)t.addFormat(a,r[a])}yu.exports=Dn=cs;Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=cs});var zu={formatMap:{"date-time":{widget:`date`,showTime:!0,format:`yyyy-MM-dd'T'HH:mm:ss.SSSxxx`},date:{widget:`date`,format:`yyyy-MM-dd`},"full-date":{widget:`date`,format:`yyyy-MM-dd`},time:{widget:`time`,format:`HH:mm:ss.SSSxxx`},"full-time":{widget:`time`},week:{widget:`date`,mode:`week`,format:`yyyy-ww`},month:{widget:`date`,mode:`month`,format:`yyyy-MM`},uri:{widget:`upload`},email:{widget:`autocomplete`,type:`email`},color:{widget:`string`,type:`color`},"":{widget:`string`}},ingoreKeywords:[`type`,`enum`],liveValidate:!0,autocomplete:null,firstVisual:!1,onlyVisual:!1,errors:{},ui:{},button:{submit_type:`primary`,reset_type:`default`},uiDateStringFormat:`yyyy-MM-dd HH:mm:ss`,uiDateNumberFormat:`T`,uiTimeStringFormat:`HH:mm:ss`,uiTimeNumberFormat:`T`,uiEmailSuffixes:[`qq.com`,`163.com`,`gmail.com`,`126.com`,`aliyun.com`],delay:!1,expandable:!1};function yr$2(t){return t.merge(`sf`,zu)}var hl$1=new WeakMap;var yl$1=new WeakSet;function lo(t){if(t===null||typeof t!=`object`||yl$1.has(t))return t;let e=hl$1.get(t);if(e)return e;let r=new Map,n=(a,s)=>{let l=r.get(a);return l||(l=G$1(s),r.set(a,l)),l},i=t,o=new Proxy(t,{get(a,s,l){if(typeof s!=`string`)return Reflect.get(a,s,l);let c=r.get(s);if(c)return c();let d=Reflect.get(a,s,l);return typeof d==`function`?d:n(s,d)()},set(a,s,l,c){if(typeof s!=`string`)return Reflect.set(a,s,l,c);let d=i[s],f=Reflect.set(a,s,l,c);return f&&n(s,d).set(l),f},deleteProperty(a,s){if(typeof s!=`string`)return Reflect.deleteProperty(a,s);let l=Reflect.deleteProperty(a,s);return l&&r.get(s)?.set(void 0),l}}
8);return hl$1.set(t,o),yl$1.add(o),o}function uo$1(t){return t==null}function Ee$2(t,e){return t==null?e:`${t}`!=`false`}function $u$1(t,e){let r=/^#\/definitions\/(.*)$/.exec(t);if(r&&r[1]){let n=r[1].split(`/`),i=e;for(let o of n)if(o=o.replace(/~1/g,`/`).replace(/~0/g,`~`),Object.prototype.hasOwnProperty.call(i,o))i=i[o];else throw new Error(`Could not find a definition for ${t}.`);return i}throw new Error(`Could not find a definition for ${t}.`)}function tn$1(t,e={}){if(Object.prototype.hasOwnProperty.call(t,`$ref`)){let n=$u$1(t.$ref,e),r=t,{$ref:i}=r,o=cs(r,[`$ref`]);return tn$1(g$1(g$1({},n),o),e)}return t}function _l$1(t,e){let r=(n,i)=>{xu$1(n,i),Object.keys(n.properties).forEach(o=>{let a=n.properties[o],s=`$${o}`;a.items&&r(a.items,i[s].$items),a.properties&&r(a,i[s])})};r(t,e)}function xu$1(t,e){if(!(Object.prototype.hasOwnProperty.call(t,`if`)&&Object.prototype.hasOwnProperty.call(t,`then`)))return null;if(!t.if.properties)throw new Error(`if: does not contain 'properties'`);let r=Object.keys(t.properties),n=Object.keys(t.if.properties);co(r,n),co(r,t.then.required),t.required=t.required.concat(t.then.required);let i=Object.prototype.hasOwnProperty.call(t,`else`);i&&(co(r,t.else.required),t.required=t.required.concat(t.else.required));let o={},a={};return n.forEach(s=>{let l=t.if.properties[s].enum;o[s]=l,i&&(a[s]=c=>!l.includes(c))}),t.then.required.forEach(s=>e[`$${s}`].visibleIf=o),i&&t.else.required.forEach(s=>e[`$${s}`].visibleIf=a),t}function co(t,e){e.forEach(r=>{if(!t.includes(r))throw new Error(`if: properties does not contain '${r}'`)})}function vl$1(t,e){if(!Array.isArray(e))return t;let r=d=>d.reduce((f,_)=>(f[_]=!0,f),{}),n=d=>`property [${d.join(`', '`)}]`,i=r(t),o=r(e),a=e.filter(d=>d!==`*`&&!i[d]);if(a.length)throw new Error(`ui schema order list contains extraneous ${n(a)}`);let s=t.filter(d=>!o[d]),l=e.indexOf(`*`);if(l===-1){if(s.length)throw new Error(`ui schema order list does not contain ${n(s)}`);return e}if(l!==e.lastIndexOf(`*`))throw new Error(`ui schema order list contains more than one wildcard item`);let c=[...e];return c.splice(l,1,...s),c}function Fu$1(t,e,r){return uo$1(t)||!Array.isArray(t)||t.length===0?[]:(typeof t[0]!=`object`&&(t=t.map(n=>({label:n,value:n}))),e&&(Array.isArray(e)||(e=[e]),t.forEach(n=>{~e.indexOf(n.value)&&(n.checked=!0)})),r&&t.forEach(n=>n.disabled=!0),t)}function gl$1(t,e,r){return Fu$1(wL(t??[]),e,r)}function _r$2(t,e,r,n){return typeof e.asyncData==`function`?e.asyncData(n).pipe(P$2(i=>gl$1(i,r,t.readOnly))):S(gl$1(t.enum,r,t.readOnly))}var rn$2=class{constructor(e,r,n,i,o,a,s,l){this.injector=e;this._options=l;this.schema=lo(n),this.ui=lo(i),this.schemaValidator=r.createValidatorFn(n,{ingoreKeywords:this.ui.ingoreKeywords,debug:i.debug}),this.formData=o??n.default,this._parent=a,a?this._root=a.root:this._root=this,this.path=s}injector;_options;_valueChanges=new se$1({path:null,pathValue:null,value:null});_errorsChanges=new se$1(null);_visibilityChanges=new se$1(!0);_root;_parent;_objErrors=new Map;_cleanValue=!1;schemaValidator;schema;ui;formData;widget;path;propertyId;_value$=G$1(null);_errors$=G$1(null);_visible$=G$1(!0);_valid$=Fe$1(()=>{let e=this._errors$();return e===null||e.length===0});get _value(){return this._value$()}set _value(e){this._value$.set(e)}get valueChanges(){return this._valueChanges}get errorsChanges(){return this._errorsChanges}get type(){return this.schema.type}get parent(){return this._parent}get root(){return this._root}get value(){return this._value$()}get errors(){return this._errors$()}get visible(){return this._visible$()}get valid(){return this._valid$()}get options(){return this._options}updateValueAndValidity(e){e=g$1({onlySelf:!1,emitValidator:!0,emitValueEvent:!0,updateValue:null},e),this._updateValue(),e.emitValueEvent&&(e.updatePath=e.updatePath??this.path??``,this.valueChanges.next({value:this.value,path:e.updatePath,pathValue:e.updateValue}),e.updateValue=e.updateValue==null?this.value:e.updateValue),e.emitValidator&&this.ui.liveValidate===!0&&this._runValidation(),this.parent&&!e.onlySelf&&this.parent.updateValueAndValidity(W$1(g$1({},e),{emitValidator:!1}))}searchProperty(e){let r=this,n,i=null;if(e[0]===`/`)n=this.findRoot(),i=n.getProperty(e.substring(1));else for(;i===null&&r.parent!==null;)r=n=r.parent,i=n.getProperty(e);return i}findRoot(){let e=this;for(;e.parent!==null;)e=e.parent;return e}isEmptyData(e){return uo$1(e)?!0:this.type===`string`?`${e}`.length===0:!1}_runValidation(){let e,r=this.isEmptyData(this._value$());r&&this.ui._required?e=[{keyword:`required`}]:r?e=[]:e=this.schemaValidator(this._value$())??[];
8let n=this.ui.validator;if(typeof n==`function`){let i=n(this.value,this,this.findRoot());if(i instanceof T$1){i.subscribe(o=>{this.setCustomErrors(e,o)});return}this.setCustomErrors(e,i);return}this._errors$.set(e),this.setErrors(e)}setCustomErrors(e,r){let n=Array.isArray(r)&&r.length>0;n&&r.forEach(o=>{if(!o.message)throw new Error(`The custom validator must contain a 'message' attribute to viewed error text`);o.keyword=null});let i=n?e.concat(...r):e;this._errors$.set(i),this.setErrors(i)}setErrors(e=[],r=!0){let n=Array.isArray(e)?e:[e];if(r&&n&&!this.ui.onlyVisual){let i=this._localeError();n=n.map(o=>{let a=o.keyword==null&&o.message?o.message:(this.ui.errors??{})[o.keyword]??this._options.errors[o.keyword]??i[o.keyword]??``;return a&&typeof a==`function`&&(a=a(o)),a&&(~a.indexOf(`{`)&&o.params&&(a=a.replace(/{([.a-zA-Z0-9]+)}/g,(s,l)=>o.params[l]??``)),o.message=a),o})}this._errors$.set(n),this._errorsChanges.next(n),this._parent?.setParentAndPlatErrors(n.length?n:this._collectChildErrors(),this)}_localeError(){return this.widget?this.widget.l.error??{}:this.injector.get(s4,null)?.getData(`sf`)?.error??{}}setParentAndPlatErrors(e,r){this._objErrors.set(r,e),this._refreshObjErrors()}_refreshObjErrors(){let e=this._collectChildErrors();this._errors$.set(e),this._errorsChanges.next(e),this._parent?.setParentAndPlatErrors(e,this)}_collectChildErrors(){let e=[];return this._objErrors.forEach((r,n)=>{n.visible&&e.push(...r)}),e}setVisible(e){return this._visible$.set(e),this._visibilityChanges.next(e),e&&Rt$2(()=>{this.resetValue(this.value,!0)},{injector:this.injector}),this}_bindVisibility(){let e=this.ui.visibleIf;if(typeof e==`object`&&Object.keys(e).length===0)this.setVisible(!1);else if(e!=null){let r=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let i=this.searchProperty(n);if(i){let o=i.valueChanges.pipe(P$2(l=>{let c=e[n];if(typeof c==`function`){let d=c(l.value,i);if(typeof d==`object`){let f=g$1({show:!1,required:!1},d),_=this.parent?.schema.required;if(_&&this.propertyId){let m=_.findIndex(h=>h===this.propertyId);f.required?m===-1&&_.push(this.propertyId):m!==-1&&_.splice(m,1),this.parent.schema.required=[..._],this.ui._required=f.required}return f.show}return d}return c.indexOf(`$ANY$`)!==-1?l.value&&l.value.length>0:c.indexOf(l.value)!==-1})),a=i._visibilityChanges,s=sr$2([o,a]).pipe(P$2(l=>l[0]&&l[1]));r.push(s)}}sr$2(r).pipe(P$2(n=>this.ui.visibleIfLogical===`and`?n.every(i=>i):n.some(i=>i)),Vn$1()).subscribe(n=>this.setVisible(n))}}updateFeedback(e=``){this.ui.feedback=e,this.widget?.injector.get(Sde).formStatusChanges.next({status:e,hasFeedback:!!e})}};var ft=class t extends rn$2{_properties$=G$1(null);get properties(){return this._properties$()}set properties(e){this._properties$.set(e)}getProperty(e){let r=e.indexOf(`/`),n=r!==-1?e.substring(0,r):e,i=this.properties[n];if(i!==null&&r!==-1&&i instanceof t){let o=e.substring(r+1);i=i.getProperty(o)}return i}forEachChild(e){for(let r in this.properties)if(Object.prototype.hasOwnProperty.call(this.properties,r)){let n=this.properties[r];e(n,r)}}forEachChildRecursive(e){this.forEachChild(r=>{e(r),r instanceof t&&r.forEachChildRecursive(e)})}_bindVisibility(){super._bindVisibility(),this._bindVisibilityRecursive()}_bindVisibilityRecursive(){this.forEachChildRecursive(e=>{e._bindVisibility()})}isRoot(){return this===this.root}};var vr$2=class extends ft{constructor(r,n,i,o,a,s,l,c,d){super(r,i,o,a,s,l,c,d);this.formPropertyFactory=n;this.properties=[]}formPropertyFactory;getProperty(r){let n=r.indexOf(`/`),i=+(n!==-1?r.substring(0,n):r),o=this.properties;if(isNaN(i)||i>=o.length)return;let a=r.substring(n+1);return o[i].getProperty(a)}setValue(r,n){this.properties=[],this._objErrors.clear(),this.resetProperties(r),this.updateValueAndValidity({onlySelf:n,emitValueEvent:!0})}resetValue(r,n){this._value=r??this.schema.default??[],this.setValue(this._value,n)}_hasValue(){return!0}_updateValue(){let r=[];this.forEachChild(n=>{n.visible&&r.push(g$1(g$1({},this.root._cleanValue?null:n.formData),n.value))}),this._value=r}addProperty(r){let n=this.formPropertyFactory.createProperty(wL(this.schema.items),wL(this.ui.$items),r,this);return this.properties=[...this.properties,n],n}resetProperties(r){for(let n of r)this.addProperty(n).resetValue(n,!0)}add(r){let n=this.addProperty(r);return n.resetValue(r,!1),n}remove(r){let n=[...this.properties],[i]=n.splice(r,1);
8n.forEach((o,a)=>{o.path=[o.parent.path,a].join(`/`)}),this._objErrors.delete(i),this.properties=n,n.length===0?this.updateValueAndValidity():(this.updateValueAndValidity({emitValidator:!1,emitValueEvent:!1}),this._refreshObjErrors())}};var It$1=class extends rn$2{setValue(e,r){this._value=e,this.updateValueAndValidity({onlySelf:r,emitValueEvent:!0})}resetValue(e,r){e??=this.schema.default!==void 0?this.schema.default:this.fallbackValue(),this._value=e,this.updateValueAndValidity({onlySelf:r,emitValueEvent:!0}),this.widget&&this.widget.reset(e)}_hasValue(){return this.fallbackValue()!==this.value}_updateValue(){}};var mi$1=class extends It$1{fallbackValue(){return null}};var pi=class extends It$1{fallbackValue(){return null}setValue(e,r){typeof e==`string`&&(e.length?e=e.indexOf(`.`)>-1?parseFloat(e):parseInt(e,10):e=void 0),this._value=e,this.updateValueAndValidity({onlySelf:r,emitValueEvent:!0})}};var hi=class extends ft{constructor(r,n,i,o,a,s,l,c,d){super(r,i,o,a,s,l,c,d);this.formPropertyFactory=n;this.createProperties()}formPropertyFactory;_propertiesId=[];get propertiesId(){return this._propertiesId}createProperties(){this.properties={},this._propertiesId=[];let r;try{r=vl$1(Object.keys(this.schema.properties),this.ui.order)}catch(n){console.error(`Invalid ${this.schema.title??`root`} object field configuration:`,n)}r.forEach(n=>{this.properties[n]=this.formPropertyFactory.createProperty(this.schema.properties[n],this.ui[`$${n}`],(this.formData??{})[n],this,n),this._propertiesId.push(n)})}setValue(r,n){let i=this.properties;for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&i[o]&&i[o].setValue(r[o],!0);this.updateValueAndValidity({onlySelf:n,emitValueEvent:!0})}resetValue(r,n){r=r??this.schema.default??{};let i=this.properties;for(let o in this.schema.properties)Object.prototype.hasOwnProperty.call(this.schema.properties,o)&&i[o].resetValue(r[o],!0);this.updateValueAndValidity({onlySelf:n,emitValueEvent:!0})}_hasValue(){return this.value!=null&&!!Object.keys(this.value).length}_updateValue(){let r={};this.forEachChild((n,i)=>{n.visible&&n._hasValue()&&(r[i]=n.value)}),this._value=r}};var yi$1=class extends It$1{fallbackValue(){return null}setValue(e,r){this._value=e,this.updateValueAndValidity({onlySelf:r,emitValueEvent:!0})}};var br$2=class{constructor(e,r,n){this.injector=e;this.schemaValidatorFactory=r;this.options=yr$2(n)}injector;schemaValidatorFactory;options;createProperty(e,r,n,i=null,o){let a,s=``;if(i)switch(s+=i.path,i.parent!==null&&(s+=`/`),i.type){case`object`:s+=o;break;case`array`:s+=i.properties.length;break;default:throw new Error(`Instanciation of a FormProperty with an unknown parent type: ${i.type}`)}else s=`/`;if(e.$ref){let l=tn$1(e,i.root.schema.definitions);a=this.createProperty(l,r,n,i,s)}else switch((o&&i.schema.required.indexOf(o.split(`/`).pop())!==-1||r.showRequired===!0)&&(r._required=!0),e.title??=o,(e.type===`string`||e.type===`number`)&&!e.format&&!r.format?r.widget===`date`?r._format=e.type===`string`?this.options.uiDateStringFormat:this.options.uiDateNumberFormat:r.widget===`time`&&(r._format=e.type===`string`?this.options.uiTimeStringFormat:this.options.uiTimeNumberFormat):r._format=r.format,e.type){case`integer`:case`number`:a=new pi(this.injector,this.schemaValidatorFactory,e,r,n,i,s,this.options);break;case`string`:a=new yi$1(this.injector,this.schemaValidatorFactory,e,r,n,i,s,this.options);break;case`boolean`:a=new mi$1(this.injector,this.schemaValidatorFactory,e,r,n,i,s,this.options);break;case`object`:a=new hi(this.injector,this,this.schemaValidatorFactory,e,r,n,i,s,this.options);break;case`array`:a=new vr$2(this.injector,this,this.schemaValidatorFactory,e,r,n,i,s,this.options);break;default:throw new TypeError(`Undefined type ${e.type}`)}return a.propertyId=o,a instanceof ft&&this.initializeRoot(a),a}initializeRoot(e){e._bindVisibility()}};var qt$2=class t{el=h($$2).nativeElement;render=h(We$2);_inited=!1;num=pe$1(0,{alias:`fixed-label`,transform:e=>Oo$1(e,0)});init(){let e=this.num();if(!this._inited||e<=0)return;let r=this.el,n=r.querySelector(`.ant-row`)??r;this.render.addClass(n,`sf__fixed`);let i=n.querySelector(`.ant-form-item-label`),o=n.querySelector(`.ant-form-item-control-wrapper,.ant-form-item-control`),a=`${e}px`;i?(this.render.setStyle(i,`flex`,`0 0 ${a}`),this.render.setStyle(o,`max-width`,`calc(100% - ${a})`)):this.render.setStyle(o,`margin-left`,a)}ngAfterViewInit(){this._inited=!0,this.init()}ngOnChanges(){this._inited&&this.init()}static ɵfac=function(r){return new(r||t)};static ɵdir=j({type:t,selectors:[[``,`fixed-label`,``]],inputs:{num:[1,`fixed-label`,`num`]},features:[Te$1]})};var Lt=class{onDestroy;constructor(){this.onDestroy=new C$1}destroy(){this.onDestroy.next(!0)}};var mt$1=class{_widgets={};defaultWidget;get widgets(){return this._widgets}setDefault(e){this.defaultWidget=e}register(e,r){this._widgets[e]=r}has(e){return Object.prototype.hasOwnProperty.call(this._widgets,e)}getType(e){return this.has(e)?this._widgets[e]:this.defaultWidget}};var Sr$2=class t{registry=h(mt$1);createWidget(e,r){this.registry.has(r);let n=this.registry.getType(r);return e.createComponent(n)}static ɵfac=function(r){return new(r||t)};static ɵprov=w({token:t,factory:t.ɵfac})};var Eu=[`target`];function Pu$1(t,e){}function Iu$1(t,e){t&1&&Xs(0)}var Tu$1=0;var Je$1=class t{widgetFactory=h(Sr$2);terminator=h(Lt);destroy$=new C$1;widget=null;formProperty=pe$1.required();footer=pe$1(null);container=sb(`target`,{read:Dt$4});constructor(){Jt$1(e=>{let r=this.container(),n=this.formProperty();if(!r||!n)return;let i=this.widgetFactory.createWidget(r,n.ui.widget??n.schema.type);this.onWidgetInstanciated(i.instance),e(()=>i.destroy())})}onWidgetInstanciated(e){this.widget=e;let r=`_sf-${Tu$1++}`,n=this.formProperty().ui;this.widget.formProperty=this.formProperty(),this.widget.schema=this.formProperty().schema,this.widget.ui=n,this.widget.id=r,this.formProperty().widget=e}ngOnInit(){this.terminator.onDestroy.subscribe(()=>this.ngOnDestroy())}ngOnDestroy(){let{destroy$:e}=this;e.next(),e.complete()}static ɵfac=function(r){return new(r||t)};static ɵcmp=Se$1({type:t,selectors:[[`sf-item`]],viewQuery:function(r,n){r&1&&_d$2(n.container,Eu,5,Dt$4),r&2&&Sd$1()},hostAttrs:[1,`sf__item`],hostVars:2,hostBindings:function(r,n){r&2&&Ze(`sf__collapse-item`,n.formProperty().ui?.collapse)},inputs:{formProperty:[1,`formProperty`],footer:[1,`footer`]},exportAs:[`sfItem`],features:[Ft$1([Sde])],decls:3,vars:1,consts:[[`target`,``],[4,`ngTemplateOutlet`]],template:function(r,n){r&1&&qe$1(0,Pu$1,0,0,`ng-template`,null,0,ql$1)(2,Iu$1,1,0,`ng-container`,1),r&2&&(A(2),ie$1(`ngTemplateOutlet`,n.footer()))},dependencies:[ka$1],encapsulation:2})};var _u$1=Vx(ns());var vu$1=Vx(gu$1());var xt$2=class t{static ɵfac=function(r){return new(r||t)};static ɵprov=w({token:t,factory:t.ɵfac})};var Rr$1=class t extends xt$2{ngZone=h(B$2);cogSrv=h(ln$3);ajv;options;constructor(){if(super(),!(typeof document==`object`&&document))return;this.options=yr$2(this.cogSrv);let e=this.options.ajv??{};this.ngZone.runOutsideAngular(()=>{this.ajv=new _u$1.default(W$1(g$1({allErrors:!0,loopEnum:50},e),{formats:g$1({"data-url":/^data:([a-z]+\/[a-z0-9-+.]+)?;name=(.*);base64,(.*)$/,color:dr$2.color,mobile:dr$2.mobile,"id-card":dr$2.idCard},e.formats)})),(0,vu$1.default)(this.ajv)})}createValidatorFn(e,r){let n=[...this.options.ingoreKeywords,...r.ingoreKeywords??[]];return i=>{try{this.ngZone.runOutsideAngular(()=>this.ajv.validate(e,i))}catch{}let o=this.ajv.errors;return this.options&&n&&o&&(o=o.filter(a=>n.indexOf(a.keyword)===-1)),o}}static ɵfac=function(r){return new(r||t)};static ɵprov=w({token:t,factory:t.ɵfac})};var B0=[`*`];function G0(t,e){t&1&&Wt$1(0)}function K0(t,e){if(t&1&&pt$1(0,`nz-icon`,11),t&2){let r=F$2(5);ie$1(`nzType`,r._btn.submit_icon.type)(`nzTheme`,r._btn.submit_icon.theme)(`nzTwotoneColor`,r._btn.submit_icon.twoToneColor)(`nzIconfont`,r._btn.submit_icon.iconfont)}}function J0(t,e){if(t&1&&pt$1(0,`nz-icon`,11),t&2){F$2();let r=pO(1);ie$1(`nzType`,r.type)(`nzTheme`,r.theme)(`nzTwotoneColor`,r.twoToneColor)(`nzIconfont`,r.iconfont)}}function X0(t,e){if(t&1){let r=on();oe$2(0,`button`,14),je$1(`click`,function(){gt$1(r);let i=F$2(5);return vt(i.reset(!0))}),By(1),ve$1(2,J0,1,4,`nz-icon`,11),an$3(3),he$1()}if(t&2){F$2(3);let r=pO(0),n=F$2(2);ie$1(`nzType`,n._btn.reset_type)(`nzSize`,r.size)(`disabled`,n.loading()),A();let i=fO(n._btn.reset_icon);A(),ye$1(i?2:-1),A(),Io$1(` `,n._btn.reset,` `)}}function Z0(t,e){if(t&1){let r=on();oe$2(0,`button`,15),je$1(`click`,function(){gt$1(r);let i=F$2(5);return vt(i.expanded.update(o=>!o))}),an$3(1),he$1()}if(t&2){let r=F$2(5);$t(`aria-expanded`,r.expanded()),A(),Io$1(` `,r.expanded()?r.locale.collapse:r.locale.expand,` `)}}function Q0(t,e){if(t&1&&(oe$2(0,`button`,10),ve$1(1,K0,1,4,`nz-icon`,11),an$3(2),he$1(),ve$1(3,X0,4,6,`button`,12),ve$1(4,Z0,2,2,`button`,13)),t&2){F$2(2);let r=pO(0),n=F$2(2);ie$1(`nzType`,n._btn.submit_type)(`nzSize`,r.size)(`nzLoading`,n.loading())(`disabled`,n.liveValidate()&&!n.valid),A(),ye$1(n._btn.submit_icon?1:-1),A(),Io$1(` `,n._btn.submit,` `),A(),ye$1(n._btn.reset?3:-1),A(),ye$1(n.expandable()&&n._hasCollapse()?4:-1)}}function Y0(t,e){}function eg(t,e){if(t&1&&qe$1(0,Y0,0,0,`ng-template`,4),t&2){F$2(4);let r=Wl(1);ie$1(`ngTemplateOutlet`,r)}}function tg(t,e){if(t&1&&(oe$2(0,`nz-form-item`,6)(1,`div`,7)(2,`div`,8)(3,`div`,9),ve$1(4,Q0,5,8)(5,eg,1,1,null,4),he$1()()()()),t&2){F$2();let r=pO(0),n=F$2(2);Lt$1(r.class),ie$1(`fixed-label`,r.spanLabelFixed),A(),ie$1(`nzSpan`,n.btnGrid.span)(`nzOffset`,n.btnGrid.offset)(`nzXs`,n.btnGrid.xs)(`
8nzSm`,n.btnGrid.sm)(`nzMd`,n.btnGrid.md)(`nzLg`,n.btnGrid.lg)(`nzXl`,n.btnGrid.xl)(`nzXXl`,n.btnGrid.xxl),A(3),ye$1(n.button()?4:5)}}function rg(t,e){if(t&1&&(By(0),ve$1(1,tg,6,12,`nz-form-item`,5)),t&2){let r=fO(F$2(2)._btn.render);A(),ye$1(r?1:-1)}}function ng(t,e){}function ig(t,e){if(t&1&&qe$1(0,ng,0,0,`ng-template`,4),t&2){F$2(2);let r=Wl(1);ie$1(`ngTemplateOutlet`,r)}}function og(t,e){if(t&1&&ve$1(0,rg,2,2)(1,ig,1,1,null,4),t&2){let r=F$2();ye$1(r.button()!==`none`?0:1)}}function ag(t,e){if(t&1&&pt$1(0,`sf-item`,3),t&2){let r=F$2(),n=Wl(3);ie$1(`formProperty`,r.rootProperty)(`footer`,n)}}function sg(t,e,r){return new br$2(t,e,r)}var Rt$1=class t{formPropertyFactory=h(br$2);terminator=h(Lt);dom=h(Aa$1);localeSrv=h(s4);aclSrv=h(Zr$2);i18nSrv=h(Kr$3);platform=h(Me$3);cogSrv=h(ln$3);options=yr$2(this.cogSrv);_renders=new Map;_item;_defUi;_inited=!1;_rendered=!1;_silent=!1;_runSilently(e){let r=this._silent;this._silent=!0;try{e()}finally{this._silent=r}}_formData;_schema;_ui;expandable=pe$1(!1,{transform:H$2});expanded=Jne(!1);_valid$=G$1(!0);get _valid(){return this._valid$()}set _valid(e){this._valid$.set(e)}get valid(){return this._valid$()}_locale$=G$1({});get locale(){return this._locale$()}set locale(e){this._locale$.set(e)}_rootProperty$=G$1(null);get rootProperty(){return this._rootProperty$()}set rootProperty(e){this._rootProperty$.set(e)}_btn$=G$1(null);get _btn(){return this._btn$()}set _btn(e){this._btn$.set(e)}_hasCollapse=G$1(!1);get btnGrid(){return this._btn.render.grid}layoutInput=pe$1(void 0,{alias:`layout`});layout=yf({source:()=>this.layoutInput(),computation:(e,r)=>e??r?.value??`horizontal`});schemaInput=pe$1(void 0,{alias:`schema`});_schemaValue$=yf({source:()=>this.schemaInput(),computation:e=>e});uiInput=pe$1(void 0,{alias:`ui`});_uiValue$=yf({source:()=>this.uiInput(),computation:e=>e});formData=pe$1();button=pe$1({});liveValidateInput=pe$1(void 0,{alias:`liveValidate`});liveValidate=yf({source:()=>this.liveValidateInput(),computation:(e,r)=>e===void 0?r?.value??!!this.options.liveValidate:H$2(e)});autocompleteInput=pe$1(void 0,{alias:`autocomplete`});autocomplete=Fe$1(()=>this.autocompleteInput()??this.options.autocomplete);firstVisualInput=pe$1(void 0,{alias:`firstVisual`});firstVisual=yf({source:()=>this.firstVisualInput(),computation:(e,r)=>e===void 0?r?.value??!!this.options.firstVisual:H$2(e)});onlyVisual=pe$1(!1,{transform:H$2});compact=pe$1(!1,{transform:H$2});mode=pe$1(void 0);_applyMode(e){switch(e){case`search`:this.layout.set(`inline`),this.firstVisual.set(!1),this.liveValidate.set(!1),this._btn&&(this._btn.submit=this._btn.search);break;case`edit`:this.layout.set(`horizontal`),this.firstVisual.set(!1),this.liveValidate.set(!0),this._btn&&(this._btn.submit=this._btn.edit)}}loading=pe$1(!1,{transform:H$2});disabled=pe$1(!1,{transform:H$2});noColon=pe$1(!1,{transform:H$2});cleanValue=pe$1(!1,{transform:H$2});delayInput=pe$1(void 0,{alias:`delay`});delay=yf({source:()=>this.delayInput(),computation:(e,r)=>e===void 0?r?.value??!!this.options.delay:H$2(e)});formValueChange=Zl$1();formChange=Zl$1();formSubmit=Zl$1();formReset=Zl$1();formError=Zl$1();get value(){return this._item}getProperty(e){return this.rootProperty?.searchProperty(e)}getValue(e){return this.getProperty(e)?.value}setValue(e,r){let n=this.getProperty(e);if(!n)throw new Error(`Invalid path: ${e}`);return n.resetValue(r,!1),this}setDisabled(e,r){let n=this.getProperty(e);if(!n)throw new Error(`Invalid path: ${e}`);return n.schema.readOnly=r,this}setRequired(e,r){let n=this.getProperty(e);if(!n)throw new Error(`Invalid path: ${e}`);let i=e.split(`/`).pop(),o=n.parent?.schema.required??[],a=o.findIndex(s=>s===i);return r?a===-1&&o.push(i):a!==-1&&o.splice(a,1),n.parent.schema.required=[...o],n.ui._required=r,this.validator({onlyRoot:!1}),this}updateFeedback(e,r=``){return this.getProperty(e)?.updateFeedback(r),this}onSubmit(e){e.preventDefault(),e.stopPropagation(),this.liveValidate()||this.validator(),this.valid&&this.formSubmit.emit(this.value)}constructor(){this.localeSrv.change.pipe(be$1()).subscribe(()=>{this.locale=this.localeSrv.getData(`sf`),this._inited&&(this.validator({emitError:!1,onlyRoot:!1}),this.coverButtonProperty())}),ti(this.aclSrv.change,this.i18nSrv.change).pipe(ne(()=>this._inited),be$1()).subscribe(()=>this.refreshSchema())}fanyi(e){return this.i18nSrv.fanyi(e)??e}inheritUI(e){[`optionalHelp`].filter(r=>
8!!this._defUi[r]).forEach(r=>e[r]=g$1(g$1({},this._defUi[r]),e[r]))}coverProperty(){let e=this.layout()===`horizontal`,r=wL(this._schemaValue$()),{definitions:n}=r;this._hasCollapse.set(!1);let i=(o,a,s,l,c)=>{Array.isArray(o.required)||(o.required=[]),Object.keys(o.properties).forEach(d=>{let _=`$`+d,m=tn$1(o.properties[d],n),h=g$1(g$1({},m.ui),s[_]),u=g$1(g$1(g$1(g$1(W$1(g$1(g$1({},this._defUi),l),{visibleIf:void 0,hidden:void 0,optional:void 0,optionalHelp:void 0,widget:m.type}),m.format&&this.options.formatMap[m.format]),typeof m.ui==`string`?{widget:m.ui}:null),!m.format&&!m.ui&&Array.isArray(m.enum)&&m.enum.length>0?{widget:`select`}:null),h);if(Object.keys(u).filter(y=>y.startsWith(`$`)).forEach(y=>delete u[y]),e?l.spanLabelFixed?h.spanLabelFixed||(u.spanLabelFixed=l.spanLabelFixed):(u.spanLabel||(u.spanLabel=typeof l.spanLabel>`u`?5:l.spanLabel),u.spanControl||(u.spanControl=typeof l.spanControl>`u`?19:l.spanControl),u.offsetControl||(u.offsetControl=typeof l.offsetControl>`u`?null:l.offsetControl)):(u.spanLabel=null,u.spanControl=null,u.offsetControl=null),this.layout()===`inline`&&delete u.grid,this.layout()!==`horizontal`&&(u.spanLabelFixed=null),u.spanLabelFixed!=null&&u.spanLabelFixed>0&&(u.spanLabel=null,u.spanControl=null),u.widget===`date`&&u.end!=null){let y=o.properties[u.end];y?y.ui=W$1(g$1({},y.ui),{widget:u.widget,hidden:!0}):u.end=null}if(this.inheritUI(u),u.optionalHelp){typeof u.optionalHelp==`string`&&(u.optionalHelp={text:u.optionalHelp});let y=u.optionalHelp=g$1({text:``,icon:`question-circle`,placement:`top`,trigger:`hover`,mouseEnterDelay:.15,mouseLeaveDelay:.1},u.optionalHelp);y.i18n&&(y.text=this.fanyi(y.i18n)),y.text||(u.optionalHelp=void 0)}if(u.i18n&&(m.title=this.fanyi(u.i18n)),u.descriptionI18n&&(m.description=this.fanyi(u.descriptionI18n)),m.description&&(u._description=this.dom.bypassSecurityTrustHtml(m.description)),u.hidden=typeof u.hidden==`boolean`?u.hidden:!1,u.hidden===!1&&u.acl&&this.aclSrv&&!this.aclSrv.can(u.acl)&&(u.hidden=!0),u.collapse&&this._hasCollapse.set(!0),c[_]=u,delete m.ui,u.hidden===!0){let y=o.required.indexOf(d);y!==-1&&o.required.splice(y,1)}m.items&&(u.$items=g$1(g$1(g$1({},m.items.ui),s[_]),u.$items),i(m.items,m.items,s[_]?.$items??{},u.$items,u.$items),delete m.items.ui),m.properties&&Object.keys(m.properties).length&&i(m,o,s[_]??{},u,u)})};this._uiValue$()??this._uiValue$.set({}),this._defUi=g$1(g$1(g$1({onlyVisual:this.options.onlyVisual,size:this.options.size,liveValidate:this.liveValidate()},this.options.ui),r.ui),this._uiValue$()[`*`]),this.onlyVisual()===!0&&(this._defUi.onlyVisual=!0),this.layout()===`inline`&&delete this._defUi.grid,this._ui=g$1({},this._defUi),i(r,r,this._uiValue$(),this._uiValue$(),this._ui),_l$1(r,this._ui),this._schema=r,delete r.ui,this._ui,this._ui}coverButtonProperty(){this._btn=g$1(g$1(g$1({render:{size:`default`}},this.locale),this.options.button),this.button());let e=Object.keys(this._ui).find(n=>n.startsWith(`$`)),r=this._btn.render;if(this.layout()===`horizontal`){let n=e?this._ui[e]:this._defUi;r.grid||(r.grid={offset:n.spanLabel,span:n.spanControl}),r.spanLabelFixed??=n.spanLabelFixed,!r.class&&typeof n.spanLabelFixed==`number`&&n.spanLabelFixed>0&&(r.class=`text-center`)}else r.grid={};this.mode()&&this._applyMode(this.mode()),this._ui,this._btn}ngOnInit(){this.platform.isBrowser&&(this.validator(),this._inited=!0)}ngAfterViewInit(){this._rendered=!0}ngOnChanges(e){if(!this.platform.isBrowser)return;e.mode&&this._applyMode(this.mode());let r=[`disabled`,`loading`];Object.keys(e).every(n=>r.includes(n))||this.delay()||this.refreshSchema()}_addTpl(e,r){this._inited&&(this._renders.has(e)||(this._renders.set(e,r),this.attachCustomRender()))}attachCustomRender(){this._renders.forEach((e,r)=>{let n=this.rootProperty?.searchProperty(r);n!=null&&(n.ui._render=e)})}validator(e={emitError:!0,onlyRoot:!0}){if(this.rootProperty==null||!this.platform.isBrowser)return!1;let r=i=>{i._runValidation(),i instanceof ft&&i.properties&&(Array.isArray(i.properties)?i.properties.forEach(o=>r(o)):Object.keys(i.properties).forEach(o=>r(i.properties[o])))};e.onlyRoot?this.rootProperty._runValidation():r(this.rootProperty);let n=this.rootProperty.errors;
8return this._valid=!(n&&n.length),e.emitError&&!this._valid&&this.formError.emit(n),this._valid}refreshSchema(e,r){if(!this.platform.isBrowser)return this;e&&this._schemaValue$.set(e),r&&this._uiValue$.set(r);let n=this._schemaValue$();if(!n||typeof n.properties>`u`)throw new Error(`Invalid Schema`);if(n.ui&&typeof n.ui==`string`)throw new Error(`Don't support string with root ui property`);n.type=`object`,this._formData=g$1({},this.formData()),this._inited&&this.terminator.destroy(),this.cleanRootSub(),this.coverProperty(),this.coverButtonProperty(),this.rootProperty=this.formPropertyFactory.createProperty(this._schema,this._ui,this.formData()),this.rootProperty._cleanValue=this.cleanValue(),this.attachCustomRender(),this.reset();let i=this.rootProperty,o=a=>g$1(g$1({},this.cleanValue()?null:this.formData()),a);return this._item=o(i.value),i.valueChanges.pipe(ws(1)).subscribe(a=>{this._item=o(a.value),!this._silent&&(this.formChange.emit(this._item),this.formValueChange.emit({value:this._item,path:a.path,pathValue:a.pathValue}))}),this.rootProperty.errorsChanges.subscribe(a=>{this._valid=!(a&&a.length),this.formError.emit(a)}),this}reset(e=!1){return this.rootProperty==null||!this.platform.isBrowser?this:(this.rootProperty.resetValue(this.formData(),!1),e&&this.formReset.emit(this.value),this)}cleanRootSub(){this.rootProperty&&(this.rootProperty.errorsChanges.unsubscribe(),this.rootProperty.valueChanges.unsubscribe())}ngOnDestroy(){this.cleanRootSub(),this.terminator.destroy()}static ɵfac=function(r){return new(r||t)};static ɵcmp=Se$1({type:t,selectors:[[`sf`],[``,`sf`,``]],hostAttrs:[1,`sf`],hostVars:16,hostBindings:function(r,n){r&2&&Ze(`sf__inline`,n.layout()===`inline`)(`sf__horizontal`,n.layout()===`horizontal`)(`sf__search`,n.mode()===`search`)(`sf__edit`,n.mode()===`edit`)(`sf__no-error`,n.onlyVisual())(`sf__no-colon`,n.noColon())(`sf__compact`,n.compact())(`sf__collapse`,n.expandable()&&!n.expanded())},inputs:{expandable:[1,`expandable`],expanded:[1,`expanded`],layoutInput:[1,`layout`,`layoutInput`],schemaInput:[1,`schema`,`schemaInput`],uiInput:[1,`ui`,`uiInput`],formData:[1,`formData`],button:[1,`button`],liveValidateInput:[1,`liveValidate`,`liveValidateInput`],autocompleteInput:[1,`autocomplete`,`autocompleteInput`],firstVisualInput:[1,`firstVisual`,`firstVisualInput`],onlyVisual:[1,`onlyVisual`],compact:[1,`compact`],mode:[1,`mode`],loading:[1,`loading`],disabled:[1,`disabled`],noColon:[1,`noColon`],cleanValue:[1,`cleanValue`],delayInput:[1,`delay`,`delayInput`]},outputs:{expanded:`expandedChange`,formValueChange:`formValueChange`,formChange:`formChange`,formSubmit:`formSubmit`,formReset:`formReset`,formError:`formError`},exportAs:[`sf`],features:[Ft$1([Sr$2,{provide:br$2,useFactory:sg,deps:[U$2,xt$2,ln$3]},Lt]),Te$1],ngContentSelectors:B0,decls:6,vars:3,consts:[[`con`,``],[`btnTpl`,``],[`nz-form`,``,`ngNoForm`,``,`novalidate`,``,3,`submit`,`nzLayout`],[3,`formProperty`,`footer`],[3,`ngTemplateOutlet`],[1,`sf-btns`,3,`class`,`fixed-label`],[1,`sf-btns`,3,`fixed-label`],[`nz-col`,``,1,`ant-form-item-control`,3,`nzSpan`,`nzOffset`,`nzXs`,`nzSm`,`nzMd`,`nzLg`,`nzXl`,`nzXXl`],[1,`ant-form-item-control-input`],[1,`ant-form-item-control-input-content`],[`type`,`submit`,`nz-button`,``,`data-type`,`submit`,3,`nzType`,`nzSize`,`nzLoading`,`disabled`],[3,`nzType`,`nzTheme`,`nzTwotoneColor`,`nzIconfont`],[`type`,`button`,`nz-button`,``,`data-type`,`reset`,3,`nzType`,`nzSize`,`disabled`],[`type`,`button`,`nz-button`,``,`nzType`,`text`,`data-type`,`expand`],[`type`,`button`,`nz-button`,``,`data-type`,`reset`,3,`click`,`nzType`,`nzSize`,`disabled`],[`type`,`button`,`nz-button`,``,`nzType`,`text`,`data-type`,`expand`,3,`click`]],template:function(r,n){r&1&&(yn$1(),qe$1(0,G0,1,0,`ng-template`,null,0,ql$1)(2,og,2,1,`ng-template`,null,1,ql$1),oe$2(4,`form`,2),je$1(`submit`,function(o){return n.onSubmit(o)}),ve$1(5,ag,1,2,`sf-item`,3),he$1()),r&2&&(A(4),ie$1(`nzLayout`,n.layout()),$t(`autocomplete`,n.autocomplete()),A(),ye$1(n.rootProperty?5:-1))},dependencies:[ka$1,v5,a3,f5,m5,Qt$2,sn$3,We$3,ht$2,ft$1,cn$2,xr$2,Gt$2,Je$1,qt$2],encapsulation:2})};var lg=[`*`];function dg(t,e){if(t&1&&pt$1(0,`nz-icon`,9),t&2){F$2(4);let r=pO(1);ie$1(`nzTooltipTitle`,r.text)(`nzTooltipPlacement`,r.placement)(`nzTooltipTrigger`,r.trigger)(`nzTooltipColor`,r.bgColor)(`nzTooltipOverlayClassName`,r.overlayClassName)(`nzTooltipOverlayStyle`,r.overlayStyle)(`nzTooltipMouseEnterDelay`,r.mouseEnterDelay)(`nzTooltipMouseLeaveDelay`,r.mouseLeaveDelay)(`nzType`,r.icon)}}function cg(t,e){if(t&1&&(oe$2(0,`span`,8),an$3(1),ve$1(2,dg,1,9,`nz-icon`,9),he$1()),t&2){F$2(3);let r=pO(0),n=pO(1);A(),Io$1(` `,r.optional,` `),A(),ye$1(n?2:-1)}}function ug(t,e){if(t&1&&(oe$2(0,`label`)(1,`span`,7),an$3(2),he$1(),ve$1(3,cg,3,2,`span`,8),he$1()),t&2){let r=F$2(2),n=pO(0),i=pO(1);Ze(`ant-form-item-required`,n._required),$t(`for`,r.id()),A(2),vr$3(r.t()),A(),ye$1(n.optional||i?3:-1)}}function fg(t,e){if(t&1&&(oe$2(0,`div`,0),ve$1(1,ug,4,5,`label`,6),he$1()),t&2){let r=F$2(),n=pO(0);ie$1(`nzSpan`,n.spanLabel),A(),ye$1(r.t()?1:-1)}}function mg(t,e){if(t&1){let r=on();oe$2(0,`div`,4),hi$1(function(){gt$1(r);let i=F$2();return vt(i.nzValidateAnimationLeave())}),ui(function(){gt$1(r);let i=F$2();return vt(i.nzValidateAnimationEnter())}),oe$2(1,`div`,10),an$3(2),he$1()()}if(t&2){let r=F$2();A(2),Io$1(` `,r.error(),` `)}}function pg(t,e){if(t&1&&pt$1(0,`div`,5),t&2){F$2();let r=pO(0);ie$1(`innerHTML`,r._description,Sa$1)}}var le$2=class t{statusSrv=h(Sde);id=pe$1();schema=pe$1.required();ui=pe$1.required();showError=pe$1();error=pe$1();showTitle=pe$1();title=pe$1(null);_showTitle=Fe$1(()=>!!this.showTitle());t=Fe$1(()=>{let e=this.title();return e===null?this.schema().title:e});oh=Fe$1(()=>this.ui().optionalHelp);nzValidateAnimationEnter=Ni$2(()=>`ant-form-validate_animation-enter`);nzValidateAnimationLeave=Ni$2(()=>`ant-form-validate_animation-leave`);constructor(){Jt$1(()=>{let e=this.ui().feedback??``,r=!!this.error();this.statusSrv.formStatusChanges.next({status:e||(r?`error`:``),hasFeedback:!!e})})}static ɵfac=function(r){return new(r||t)};static ɵcmp=Se$1({type:t,selectors:[[`sf-item-wrap`]],inputs:{id:[1,`id`],schema:[1,`schema`],ui:[1,`ui`],showError:[1,`showError`],error:[1,`error`],showTitle:[1,`showTitle`],title:[1,`title`]},ngContentSelectors:lg,decls:10,vars:23,consts:[[`nz-col`,``,1,`ant-form-item-label`,3,`nzSpan`],[`nz-col`,``,1,`ant-form-item-control`,3,`nzSpan`,`nzOffset`],[1,`ant-form-item-control-input`],[1,`ant-form-item-control-input-content`],[1,`ant-form-item-explain`,`ant-form-item-explain-connected`],[1,`ant-form-item-extra`,3,`innerHTML`],[3,`ant-form-item-required`],[1,`sf__label-text`],[1,`sf__optional`],[`nz-tooltip`,``,3,`nzTooltipTitle`,`nzTooltipPlacement`,`nzTooltipTrigger`,`nzTooltipColor`,`nzTooltipOverlayClassName`,`nzTooltipOverlayStyle`,`nzTooltipMouseEnterDelay`,`nzTooltipMouseLeaveDelay`,`nzType`],[`role`,`alert`,1,`ant-form-item-explain-error`]],template:function(r,n){if(r&1&&(yn$1(),By(0)(1),oe$2(2,`nz-form-item`),ve$1(3,fg,2,2,`div`,0),oe$2(4,`div`,1)(5,`div`,2)(6,`div`,3),Wt$1(7),he$1()(),ve$1(8,mg,3,1,`div`,4),ve$1(9,pg,1,1,`div`,5),he$1()()),r&2){let i=fO(n.ui());A(),fO(n.oh()),A(),It$2(`width`,i.width,`px`),Ze(`ant-form-item-has-error`,n.showError())(`ant-form-item-with-help`,n.showError())(`ant-form-item-has-success`,i.feedback===`success`)(`ant-form-item-has-warning`,i.feedback===`warning`)(`ant-form-item-has-error`,i.feedback===`error`)(`ant-form-item-is-validating`,i.feedback===`validating`)(`ant-form-item-has-feedback`,i.feedback),A(),ye$1(n._showTitle()?3:-1),A(),ie$1(`nzSpan`,i.spanControl)(`nzOffset`,i.offsetControl),A(4),ye$1(!i.onlyVisual&&n.showError()?8:-1),A(),ye$1(n.schema().description?9:-1)}},dependencies:[Qt$2,sn$3,We$3,ft$1,cn$2,xr$2,Gt$2,Xs$1,Ys],encapsulation:2})};var fs=class t{table=h(Rt$1);templateRef=h(yt$1);path=pe$1.required({alias:`sf-template`});ngOnInit(){let e=this.path();this.table._addTpl(e.startsWith(`/`)?e:`/`+e,this.templateRef)}static ɵfac=function(r){return new(r||t)};static ɵdir=j({type:t,selectors:[[``,`sf-template`,``]],inputs:{path:[1,`sf-template`,`path`]}})};var Vn=class t{cdr=h(Qe$1);destroyRef=h(re$1);injector=h(U$2);sfItemComp=h(Je$1);
8sfComp=h(Rt$1);_formProperty$=G$1(null);_schema$=G$1(null);_ui$=G$1(null);_id$=G$1(``);_error$=G$1(void 0);_showError$=G$1(!1);get formProperty(){return this._formProperty$()}set formProperty(e){this._formProperty$.set(e)}get schema(){return this._schema$()}set schema(e){this._schema$.set(e)}get ui(){return this._ui$()}set ui(e){this._ui$.set(e)}get id(){return this._id$()}set id(e){this._id$.set(e)}get error(){return this._error$()}set error(e){this._error$.set(e)}get showError(){return this._showError$()}set showError(e){this._showError$.set(e)}get cls(){return this.ui.class??``}get disabled(){return!!(this.schema.readOnly===!0||this.sfComp.disabled())}get l(){return this.formProperty.root.widget.sfComp.locale}get oh(){return this.ui.optionalHelp}get dom(){return this.injector.get(Aa$1)}get cleanValue(){return this.sfComp.cleanValue()}displayError=!0;ngAfterViewInit(){this.displayError&&this.formProperty.errorsChanges.pipe(be$1(this.destroyRef)).subscribe(e=>{if(e==null)return;this.ui,this.formProperty.path;let r=this.sfComp?.firstVisual();(r||!r&&this.sfComp?._rendered)&&(this.showError=e.length>0,this.error=this.showError?e[0].message:``,this.cdr.detectChanges())}),this.afterViewInit(),this.sfComp._runSilently(()=>this.reset(this.formProperty.value))}setValue(e){this.formProperty.setValue(e,!1),this.ui,this.formProperty.path,this.formProperty}get value(){return this.formProperty.value}static ɵfac=function(r){return new(r||t)};static ɵdir=j({type:t,hostVars:2,hostBindings:function(r,n){r&2&&Lt$1(n.cls)}})};var de$1=class t extends Vn{reset(e){}afterViewInit(){}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵdir=j({type:t,features:[tn$2]})};var eo$1=class t extends Vn{displayError=!1;reset(e){}afterViewInit(){}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵdir=j({type:t,features:[tn$2]})};var to$1=class t extends Vn{displayError=!1;reset(e){}afterViewInit(){}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵdir=j({type:t,features:[tn$2]})};function yg(t,e){if(t&1&&pt$1(0,`nz-icon`,7),t&2){let r=F$2(2);ie$1(`nzTooltipTitle`,r.oh.text)(`nzTooltipPlacement`,r.oh.placement)(`nzTooltipTrigger`,r.oh.trigger)(`nzTooltipOverlayClassName`,r.oh.overlayClassName)(`nzTooltipOverlayStyle`,r.oh.overlayStyle)(`nzTooltipMouseEnterDelay`,r.oh.mouseEnterDelay)(`nzTooltipMouseLeaveDelay`,r.oh.mouseLeaveDelay)(`nzType`,r.oh.icon)}}function gg(t,e){if(t&1){let r=on();oe$2(0,`div`,0)(1,`label`),an$3(2),oe$2(3,`span`,6),an$3(4),ve$1(5,yg,1,8,`nz-icon`,7),he$1()(),oe$2(6,`div`,8)(7,`button`,9),je$1(`click`,function(){gt$1(r);let i=F$2();return vt(i.addItem())}),he$1()()()}if(t&2){let r=F$2();ie$1(`nzSpan`,r.ui.spanLabel),A(),Ze(`ant-form-item-required`,r.ui.required),A(),Io$1(` `,r.schema.title,` `),A(2),Io$1(` `,r.ui.optional,` `),A(),ye$1(r.oh?5:-1),A(2),ie$1(`nzType`,r.addType)(`disabled`,r.addDisabled)(`innerHTML`,r.addTitle,Sa$1)}}function _g(t,e){if(t&1){let r=on();oe$2(0,`span`,13),je$1(`click`,function(){gt$1(r);let i=F$2(2).$index,o=F$2();return vt(o.removeItem(i))}),pt$1(1,`nz-icon`,14),he$1()}if(t&2){let r=F$2(3);$t(`title`,r.removeTitle)}}function vg(t,e){if(t&1&&(oe$2(0,`div`,10)(1,`nz-card`),pt$1(2,`sf-item`,11),ve$1(3,_g,2,1,`span`,12),he$1()()),t&2){let r=F$2(),n=r.$implicit,i=r.$index,o=F$2();ie$1(`nzSpan`,o.arraySpan),$t(`data-index`,i),A(2),ie$1(`formProperty`,n),A(),ye$1(o.showRemove?3:-1)}}function bg(t,e){if(t&1&&ve$1(0,vg,4,4,`div`,10),t&2){let r=e.$implicit;ye$1(r.visible&&!r.ui.hidden?0:-1)}}function Sg(t,e){if(t&1&&(oe$2(0,`div`,4),an$3(1),he$1()),t&2){let r=F$2();A(),vr$3(r.error)}}function Cg(t,e){if(t&1&&pt$1(0,`div`,5),t&2){let r=F$2();ie$1(`innerHTML`,r.ui._description,Sa$1)}}var jr$2=class t extends eo$1{addTitle;addType;removeTitle;arraySpan=8;get addDisabled(){return this.disabled||this.schema.maxItems!=null&&this.formProperty.properties.length>=this.schema.maxItems}get showRemove(){return!(this.disabled||!this.removeTitle||this.schema.minItems!=null&&this.formProperty.properties.length<=this.schema.minItems)}ngOnInit(){let{grid:e,addTitle:r,addType:n,removable:i,removeTitle:o}=this.ui;e&&e.arraySpan&&(this.arraySpan=e.arraySpan),this.addTitle=this.dom.bypassSecurityTrustHtml(r??this.l.addText),this.addType=n??`dashed`,this.removeTitle=i===!1?null:o??this.l.removeText}
8reValid(e){this.formProperty.updateValueAndValidity(g$1({onlySelf:!1,emitValueEvent:!1,emitValidator:!0},e))}addItem(){let e=this.formProperty.add({});this.reValid(),this.ui.add?.(e)}removeItem(e){let r=this.formProperty.properties[e].path;this.formProperty.remove(e),this.reValid({updatePath:r,emitValueEvent:!0}),this.ui.remove?.(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-array`]],hostVars:2,hostBindings:function(r,n){r&2&&Ze(`sf__array`,!0)},features:[tn$2],decls:9,vars:9,consts:[[`nz-col`,``,1,`ant-form-item-label`,3,`nzSpan`],[`nz-col`,``,1,`ant-form-item-control-wrapper`,3,`nzSpan`,`nzOffset`],[1,`ant-form-item-control`],[`nz-row`,``,1,`sf__array-container`],[1,`ant-form-explain`],[1,`ant-form-extra`,3,`innerHTML`],[1,`sf__optional`],[`nz-tooltip`,``,3,`nzTooltipTitle`,`nzTooltipPlacement`,`nzTooltipTrigger`,`nzTooltipOverlayClassName`,`nzTooltipOverlayStyle`,`nzTooltipMouseEnterDelay`,`nzTooltipMouseLeaveDelay`,`nzType`],[1,`sf__array-add`],[`type`,`button`,`nz-button`,``,3,`click`,`nzType`,`disabled`,`innerHTML`],[`nz-col`,``,1,`sf__array-item`,3,`nzSpan`],[3,`formProperty`],[1,`sf__array-remove`],[1,`sf__array-remove`,3,`click`],[`nzType`,`delete`]],template:function(r,n){r&1&&(oe$2(0,`nz-form-item`),ve$1(1,gg,8,9,`div`,0),oe$2(2,`div`,1)(3,`div`,2)(4,`div`,3),Yl(5,bg,1,1,null,null,jl),he$1(),ve$1(7,Sg,2,1,`div`,4),ve$1(8,Cg,1,1,`div`,5),he$1()()()),r&2&&(Ze(`ant-form-item-with-help`,n.showError),A(),ye$1(n.schema.title?1:-1),A(),ie$1(`nzSpan`,n.ui.spanControl)(`nzOffset`,n.ui.offsetControl),A(),Ze(`has-error`,n.showError),A(2),Ul(n.formProperty.properties),A(2),ye$1(!n.ui.onlyVisual&&n.showError?7:-1),A(),ye$1(n.schema.description?8:-1))},dependencies:[v5,a3,f5,m5,Wt$2,Dt$5,Qt$2,sn$3,We$3,ft$1,cn$2,xr$2,Gt$2,Xs$1,Ys,Je$1],encapsulation:2})};var wg=()=>({standalone:!0});var Wr$1=class t extends de$1{static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-boolean`]],features:[tn$2],decls:2,vars:15,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzId`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzCheckedChildren`,`nzUnCheckedChildren`,`nzLoading`]],template:function(r,n){r&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-switch`,1),hI(),je$1(`ngModelChange`,function(o){return n.setValue(o)}),he$1()()),r&2&&(ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,n.error)(`showTitle`,n.schema.title),A(),ie$1(`nzId`,n.id)(`ngModel`,n.value)(`ngModelOptions`,MO(14,wg))(`nzDisabled`,n.disabled)(`nzSize`,n.ui.size)(`nzCheckedChildren`,n.ui.checkedChildren)(`nzUnCheckedChildren`,n.ui.unCheckedChildren)(`nzLoading`,n.ui.loading),pI())},dependencies:[fr$2,jn$2,Fi,Kt$2,He$3,le$2],encapsulation:2})};var On$2=()=>({standalone:!0});function zg(t,e){if(t&1){let r=on();oe$2(0,`label`,3),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2(2);return hO(o.allChecked,i)||(o.allChecked=i),vt(i)}),je$1(`ngModelChange`,function(){gt$1(r);let i=F$2(2);return vt(i.onAllChecked())}),an$3(1),he$1()}if(t&2){let r=F$2(2);Fy(`ngModel`,r.allChecked),ie$1(`ngModelOptions`,MO(4,On$2))(`nzIndeterminate`,r.indeterminate()),pI(),A(),Io$1(` `,r.ui.checkAllText??r.l.checkAllText,` `)}}function $g(t,e){if(t&1&&ve$1(0,zg,2,5,`label`,2),t&2){let r=F$2();ye$1(r.ui.checkAll?0:-1)}}function xg(t,e){if(t&1&&pt$1(0,`nz-icon`,7),t&2){let r=F$2(3);ie$1(`nzTooltipTitle`,r.oh.text)(`nzTooltipPlacement`,r.oh.placement)(`nzTooltipTrigger`,r.oh.trigger)(`nzTooltipOverlayClassName`,r.oh.overlayClassName)(`nzTooltipOverlayStyle`,r.oh.overlayStyle)(`nzTooltipMouseEnterDelay`,r.oh.mouseEnterDelay)(`nzTooltipMouseLeaveDelay`,r.oh.mouseLeaveDelay)(`nzType`,r.oh.icon)}}function Fg(t,e){if(t&1){let r=on();oe$2(0,`label`,5),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2(2);return vt(o._setValue(i))}),an$3(1),oe$2(2,`span`,6),an$3(3),ve$1(4,xg,1,8,`nz-icon`,7),he$1()()}if(t&2){let r=F$2(2);ie$1(`nzDisabled`,r.disabled)(`ngModel`,r.value)(`ngModelOptions`,MO(6,On$2)),pI(),A(),Io$1(` `,r.schema.title,` `),A(2),Io$1(` `,r.ui.optional,` `),A(),ye$1(r.oh?4:-1)}}function Eg(t,e){}function Pg(t,e){if(t&1){let r=on();qe$1(0,Eg,0,0,`ng-template`,9),oe$2(1,`nz-checkbox-group`,10),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2(3);return vt(o.groupInGridChange(i))}),he$1()}if(t&2){let r=F$2(3),n=Wl(3),i=pO(0);ie$1(`ngTemplateOutlet`,n),A(),ie$1(`nzDisabled`,r.disabled)(`ngModel`,r.value)(`ngModelOptions`,MO(5,O
8n$2))(`nzOptions`,i),pI()}}function Ig(t,e){}function Tg(t,e){if(t&1&&(oe$2(0,`div`,13),qe$1(1,Ig,0,0,`ng-template`,9),he$1()),t&2){F$2(4);let r=Wl(3),n=pO(1);ie$1(`nzSpan`,n),A(),ie$1(`ngTemplateOutlet`,r)}}function Ng(t,e){if(t&1&&(oe$2(0,`div`,13)(1,`label`,14),hI(),an$3(2),he$1()()),t&2){let r=e.$implicit,n=F$2(4),i=pO(1);ie$1(`nzSpan`,i),A(),ie$1(`nzValue`,r.value)(`ngModel`,r.checked)(`ngModelOptions`,MO(6,On$2))(`nzDisabled`,n.disabled||r.disabled),pI(),A(),Io$1(` `,r.label,` `)}}function Dg(t,e){if(t&1){let r=on();oe$2(0,`nz-checkbox-group`,11),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2(3);return vt(o.groupInGridChange(i))}),oe$2(1,`div`,12),ve$1(2,Tg,2,2,`div`,13),Yl(3,Ng,3,7,`div`,13,EP),he$1()()}if(t&2){let r=F$2(3),n=pO(0);ie$1(`ngModel`,r.value)(`ngModelOptions`,MO(3,On$2)),pI(),A(2),ye$1(r.ui.checkAll?2:-1),A(),Ul(n)}}function Mg(t,e){if(t&1&&ve$1(0,Pg,2,6)(1,Dg,5,4,`nz-checkbox-group`,8),t&2){F$2(2);let r=pO(1);ye$1(r===0?0:1)}}function Vg(t,e){if(t&1&&ve$1(0,Fg,5,7,`label`,4)(1,Mg,2,1),t&2){F$2();let r=pO(0);ye$1(r.length===0?0:1)}}var qr$1=class t extends de$1{data=G$1([]);allChecked=G$1(!1);indeterminate=G$1(!1);grid_span=G$1(0);labelTitle=G$1(``);inited=G$1(!1);reset(e){this.inited.set(!1),_r$2(this.schema,this.ui,e).subscribe(r=>{this.data.set(r),this.allChecked.set(!1),this.indeterminate.set(!1),this.labelTitle.set(r.length===0?``:this.schema.title);let{span:n}=this.ui;this.grid_span.set(n&&n>0?n:0),this.updateAllChecked(),this.inited.set(!0)})}_setValue(e){this.setValue(e),this.notifyChange(e)}notifySet(){let e=this.data().filter(r=>r.checked);this.updateAllChecked().setValue(e.map(r=>r.value)),this.notifyChange(e)}groupInGridChange(e){this.data().forEach(r=>r.checked=e.indexOf(r.value)!==-1),this.bumpData(),this.notifySet()}onAllChecked(){this.data().forEach(e=>e.checked=this.allChecked()),this.bumpData(),this.notifySet()}updateAllChecked(){return this.data().every(e=>e.checked!==!0)?(this.allChecked.set(!1),this.indeterminate.set(!1)):this.data().every(e=>e.checked===!0)?(this.allChecked.set(!0),this.indeterminate.set(!1)):this.indeterminate.set(!0),this}bumpData(){this.data.set([...this.data()])}notifyChange(e){this.ui.change?.(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-checkbox`]],features:[tn$2],decls:6,vars:10,consts:[[`all`,``],[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`,`title`],[`nz-checkbox`,``,1,`sf__checkbox-all`,`mr-sm`,3,`ngModel`,`ngModelOptions`,`nzIndeterminate`],[`nz-checkbox`,``,1,`sf__checkbox-all`,`mr-sm`,3,`ngModelChange`,`ngModel`,`ngModelOptions`,`nzIndeterminate`],[`nz-checkbox`,``,3,`nzDisabled`,`ngModel`,`ngModelOptions`],[`nz-checkbox`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`,`ngModelOptions`],[1,`sf__optional`],[`nz-tooltip`,``,3,`nzTooltipTitle`,`nzTooltipPlacement`,`nzTooltipTrigger`,`nzTooltipOverlayClassName`,`nzTooltipOverlayStyle`,`nzTooltipMouseEnterDelay`,`nzTooltipMouseLeaveDelay`,`nzType`],[1,`sf__checkbox-list`,3,`ngModel`,`ngModelOptions`],[3,`ngTemplateOutlet`],[3,`ngModelChange`,`nzDisabled`,`ngModel`,`ngModelOptions`,`nzOptions`],[1,`sf__checkbox-list`,3,`ngModelChange`,`ngModel`,`ngModelOptions`],[`nz-row`,``],[`nz-col`,``,3,`nzSpan`],[`nz-checkbox`,``,3,`nzValue`,`ngModel`,`ngModelOptions`,`nzDisabled`]],template:function(r,n){r&1&&(By(0)(1),qe$1(2,$g,1,1,`ng-template`,null,0,ql$1),oe$2(4,`sf-item-wrap`,1),ve$1(5,Vg,2,1),he$1()),r&2&&(fO(n.data()),A(),fO(n.grid_span()),A(3),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,n.error)(`showTitle`,!0)(`title`,n.labelTitle()),A(),ye$1(n.inited()?5:-1))},dependencies:[fr$2,jn$2,Fi,ka$1,Et$1,je$2,Pe$2,cn$2,sn$3,We$3,xr$2,Gt$2,Xs$1,Ys,le$2],encapsulation:2})};var Og=(t,e,r)=>({$implicit:t,schema:e,ui:r});function kg(t,e){}var Lr$1=class t extends de$1{static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-custom`]],features:[tn$2],decls:2,vars:12,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(r,n){r&1&&(oe$2(0,`sf-item-wrap`,0),qe$1(1,kg,0,0,`ng-template`,1),he$1()),r&2&&(ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,
8n.error)(`showTitle`,n.schema.title),A(),ie$1(`ngTemplateOutlet`,n.ui._render)(`ngTemplateOutletContext`,DO(8,Og,n,n.schema,n.ui)))},dependencies:[ka$1,le$2],encapsulation:2})};var kn$1=()=>({standalone:!0});function Ag(t,e){if(t&1){let r=on();oe$2(0,`nz-year-picker`,5),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2();return hO(o.displayValue,i)||(o.displayValue=i),vt(i)}),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o._change(i))})(`nzOnOpenChange`,function(i){gt$1(r);let o=F$2();return vt(o._openChange(i))}),he$1()}if(t&2){let r=F$2();Lt$1(r.ui.className),ie$1(`nzId`,r.id)(`nzDisabled`,r.disabled)(`nzSize`,r.ui.size)(`nzAutoFocus`,r.ui.autoFocus)(`nzFormat`,r.displayFormat),Fy(`ngModel`,r.displayValue),ie$1(`ngModelOptions`,MO(18,kn$1))(`nzAllowClear`,r.i.allowClear)(`nzDisabledDate`,r.ui.disabledDate)(`nzLocale`,r.ui.locale)(`nzPlaceHolder`,r.ui.placeholder)(`nzPopupStyle`,r.ui.popupStyle)(`nzDropdownClassName`,r.ui.dropdownClassName)(`nzRenderExtraFooter`,r.ui.renderExtraFooter)(`nzInputReadOnly`,r.ui.inputReadOnly)(`nzInline`,r.ui.inline),pI()}}function Rg(t,e){if(t&1){let r=on();oe$2(0,`nz-month-picker`,5),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2();return hO(o.displayValue,i)||(o.displayValue=i),vt(i)}),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o._change(i))})(`nzOnOpenChange`,function(i){gt$1(r);let o=F$2();return vt(o._openChange(i))}),he$1()}if(t&2){let r=F$2();Lt$1(r.ui.className),ie$1(`nzId`,r.id)(`nzDisabled`,r.disabled)(`nzSize`,r.ui.size)(`nzAutoFocus`,r.ui.autoFocus)(`nzFormat`,r.displayFormat),Fy(`ngModel`,r.dis
8playValue),ie$1(`ngModelOptions`,MO(18,kn$1))(`nzAllowClear`,r.i.allowClear)(`nzDisabledDate`,r.ui.disabledDate)(`nzLocale`,r.ui.locale)(`nzPlaceHolder`,r.ui.placeholder)(`nzPopupStyle`,r.ui.popupStyle)(`nzDropdownClassName`,r.ui.dropdownClassName)(`nzRenderExtraFooter`,r.ui.renderExtraFooter)(`nzInputReadOnly`,r.ui.inputReadOnly)(`nzInline`,r.ui.inline),pI()}}function jg(t,e){if(t&1){let r=on();oe$2(0,`nz-week-picker`,6),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2();return hO(o.displayValue,i)||(o.displayValue=i),vt(i)}),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o._change(i))})(`nzOnOpenChange`,function(i){gt$1(r);let o=F$2();return vt(o._openChange(i))}),he$1()}if(t&2){let r=F$2();Lt$1(r.ui.className),ie$1(`nzId`,r.id)(`nzDisabled`,r.disabled)(`nzSize`,r.ui.size)(`nzAutoFocus`,r.ui.autoFocus)(`nzFormat`,r.displayFormat),Fy(`ngModel`,r.displayValue),ie$1(`ngModelOptions`,MO(17,kn$1))(`nzAllowClear`,r.i.allowClear)(`nzDisabledDate`,r.ui.disabledDate)(`nzLocale`,r.ui.locale)(`nzPlaceHolder`,r.ui.placeholder)(`nzPopupStyle`,r.ui.popupStyle)(`nzDropdownClassName`,r.ui.dropdownClassName)(`nzInputReadOnly`,r.ui.inputReadOnly)(`nzInline`,r.ui.inline),pI()}}function Wg(t,e){if(t&1){let r=on();oe$2(0,`nz-range-picker`,7),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2();return hO(o.displayValue,i)||(o.displayValue=i),vt(i)}),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o._change(i))})(`nzOnOpenChange`,function(i){gt$1(r);let o=F$2();return vt(o._openChange(i))})(`nzOnOk`,function(i){gt$1(r);let o=F$2();return vt(o._ok(i))}),he$1()}if(t&2){let r=F$2(),n=pO(0);Lt$1(r.ui.className),ie$1(`nzId`,r.id)(`nzDisabled`,r.disabled)(`nzSize`,r.ui.size)(`nzAutoFocus`,r.ui.autoFocus)(`nzFormat`,r.displayFormat),Fy(`ngModel`,r.dis
8playValue),ie$1(`ngModelOptions`,MO(24,kn$1))(`nzAllowClear`,r.i.allowClear)(`nzDisabledDate`,r.ui.disabledDate)(`nzLocale`,r.ui.locale)(`nzPlaceHolder`,r.ui.placeholder)(`nzPopupStyle`,r.ui.popupStyle)(`nzDropdownClassName`,r.ui.dropdownClassName)(`nzDisabledTime`,r.ui.disabledTime)(`nzRenderExtraFooter`,r.ui.renderExtraFooter)(`nzRanges`,r.ui.ranges)(`nzShowTime`,r.ui.showTime)(`nzSeparator`,r.ui.separator)(`nzShowWeekNumber`,n)(`nzMode`,r.ui.rangeMode)(`nzInputReadOnly`,r.ui.inputReadOnly)(`nzInline`,r.ui.inline),pI()}}function qg(t,e){if(t&1){let r=on();oe$2(0,`nz-date-picker`,8),hI(),Hy(`ngModelChange`,function(i){gt$1(r);let o=F$2();return hO(o.displayValue,i)||(o.displayValue=i),vt(i)}),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o._change(i))})(`nzOnOpenChange`,function(i){gt$1(r);let o=F$2();return vt(o._openChange(i))})(`nzOnOk`,function(i){gt$1(r);let o=F$2();return vt(o._ok(i))}),he$1()}if(t&2){let r=F$2(),n=pO(0);Lt$1(r.ui.className),ie$1(`nzId`,r.id)(`nzDisabled`,r.disabled)(`nzSize`,r.ui.size)(`nzAutoFocus`,r.ui.autoFocus)(`nzFormat`,r.displayFormat),Fy(`ngModel`,r.dis
8playValue),ie$1(`ngModelOptions`,MO(22,kn$1))(`nzAllowClear`,r.i.allowClear)(`nzDisabledDate`,r.ui.disabledDate)(`nzLocale`,r.ui.locale)(`nzPlaceHolder`,r.ui.placeholder)(`nzPopupStyle`,r.ui.popupStyle)(`nzDropdownClassName`,r.ui.dropdownClassName)(`nzDisabledTime`,r.ui.disabledTime)(`nzRenderExtraFooter`,r.ui.renderExtraFooter)(`nzShowTime`,r.ui.showTime)(`nzShowToday`,r.i.showToday)(`nzShowWeekNumber`,n)(`nzInputReadOnly`,r.ui.inputReadOnly)(`nzInline`,r.ui.inline),pI()}}var Ur$1=class t extends de$1{startFormat;endFormat;flatRange=!1;mode;displayValue=G$1(null);displayFormat;i;ngOnInit(){let{mode:e,end:r,displayFormat:n,allowClear:i,showToday:o}=this.ui;if(this.mode=e??`date`,this.flatRange=r!=null,this.startFormat=this.ui._format,this.flatRange){this.mode=`range`;let a=this.endProperty.ui;this.endFormat=a.format?a._format:this.startFormat}if(n)this.displayFormat=n;else switch(this.mode){case`year`:this.displayFormat=`yyyy`;break;case`month`:this.displayFormat=`yyyy-MM`;break;case`week`:this.displayFormat=`yyyy-ww`}this.i={allowClear:Ee$2(i,!0),showToday:Ee$2(o,!0)}}reset(e){let r={formatString:this.startFormat,defaultValue:null};if(Array.isArray(e)?e=e.map(i=>mB(i,r)):e=mB(e,r),this.flatRange){let i=mB(this.endProperty.formData,{formatString:this.endFormat??this.startFormat,defaultValue:null});this.displayValue.set(e==null||i==null?[]:[e,i])}else this.displayValue.set(e);let n=this.displayValue();n!=null&&(!Array.isArray(n)||n.length>=2)&&queueMicrotask(()=>this.sfComp._runSilently(()=>this._change(this.displayValue(),!1)))}_change(e,r=!0){if(r&&this.ui.change&&this.ui.change(e),e==null||Array.isArray(e)&&e.length<2){this.setValue(null),this.setEnd(null);return}let n=Array.isArray(e)?[Uo$2(e[0],this.startFormat),Uo$2(e[1],this.endFormat??this.startFormat)]:Uo$2(e,this.startFormat);this.flatRange?(this.setValue(n[0]),this.setEnd(n[1])):this.setValue(n)}_openChange(e){this.ui.onOpenChange?.(e)}_ok(e){this.ui.onOk?.(e)}get endProperty(){return this.formProperty.parent.properties[this.ui.end]}setEnd(e){this.flatRange&&(this.endProperty.setValue(e,!0),this.endProperty.updateValueAndValidity())}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-date`]],features:[tn$2],decls:7,vars:8,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`class`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzRenderExtraFooter`,`nzInputReadOnly`,`nzInline`],[3,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`class`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzInputReadOnly`,`nzInline`],[3,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`class`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzDisabledTime`,`nzRenderExtraFooter`,`nzRanges`,`nzShowTime`,`nzSeparator`,`nzShowWeekNumber`,`nzMode`,`nzInputReadOnly`,`nzInline`],[3,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`class`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzDisabledTime`,`nzRenderExtraFooter`,`nzShowTime`,`nzShowToday`,`nzShowWeekNumber`,`nzInputReadOnly`,`nzInline`],[3,`ngModelChange`,`nzOnOpenChange`,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzRenderExtraFooter`,`nzInputReadOnly`,`nzInline`],[3,`ngModelChange`,`nzOnOpenChange`,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzInputReadOnly`,`nzInline`],[3,`ngModelChange`,`nzOnOpenChange`,`nzOnOk`,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzDisabledTime`,`nzRenderExtraFooter`,`nzRanges`,`nzShowTime`,`nzSeparator`,`nzShowWeekNumber`,`nzMode`,`nzInputReadOnly`,`nzInline`],[3,`ngModelChange`,`nzOnOpenChange`,`nzOnOk`,`nzId`,`nzDisabled`,`nzSize`,`nzAutoFocus`,`nzFormat`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`nzDisabledDate`,`nzLocale`,`nzPlaceHolder`,`nzPopupStyle`,`nzDropdownClassName`,`nzDisabledTime`,`nzRenderExtraFooter`,`nzShowTime`,`nzShowToday`,`nzShowWeekNumber`,`nzInputReadOnly`,`nzInline`]],template:function(r,n){if(r&1&&(By(0),oe$2(1,`sf-item-wrap`,0),ve$1(2,Ag,1,19,`nz-year-picker`,1)(3,Rg,1,19,`nz-month-picker`,1)(4,jg,1,18,`nz-week-picker`,2)(5,Wg,1,25,`nz-range-picker`,3)(6,qg,1,23,`nz-date-picker`,4),he$1()),r&2){let i;fO(n.ui.showWeekNumber??!1),A(),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,
8n.error)(`showTitle`,n.schema.title),A(),ye$1((i=n.mode)===`year`?2:i===`month`?3:i===`week`?4:i===`range`?5:6)}},dependencies:[fr$2,jn$2,Fi,nr$2,yn$2,Ai$1,Ja$2,tr$1,er$2,le$2],encapsulation:2})};var Lg=()=>({standalone:!0});var nr$1=class t extends de$1{min=Number.MIN_SAFE_INTEGER;max=Number.MAX_SAFE_INTEGER;step;formatter;parser;width=``;ngOnInit(){let{minimum:e,exclusiveMinimum:r,maximum:n,exclusiveMaximum:i,multipleOf:o,type:a}=this.schema;this.step=o??1,typeof e<`u`&&(this.min=r?e+this.step:e),typeof n<`u`&&(this.max=i?n-this.step:n),a===`integer`&&(this.min=Math.trunc(this.min),this.max=Math.trunc(this.max),this.step=Math.trunc(this.step));let s=this.ui;s.prefix!=null&&(s.formatter=l=>l==null?``:`${s.prefix} ${l}`,s.parser=l=>+l.replace(`${s.prefix} `,``)),s.unit!=null&&(s.formatter=l=>l==null?``:`${l} ${s.unit}`,s.parser=l=>+l.replace(` ${s.unit}`,``)),s.formatter&&(this.formatter=s.formatter),s.parser&&(this.parser=s.parser),this.width=typeof s.widgetWidth==`number`?`${s.widgetWidth}px`:s.widgetWidth??`90px`}_setValue(e){this.setValue(this.schema.type===`integer`?Math.floor(e):e),this.ui.change?.(this.value)}focus(){this.ui.focus?.()}blur(){this.ui.blur?.()}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-number`]],features:[tn$2],decls:2,vars:28,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzFocus`,`nzBlur`,`nzId`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzVariant`,`nzMin`,`nzMax`,`nzStep`,`nzFormatter`,`nzParser`,`nzPrecision`,`nzPlaceHolder`,`nzChangeOnWheel`,`nzAutoFocus`,`nzAddonBefore`,`nzAddonAfter`]],template:function(r,n){r&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-input-number`,1),hI(),je$1(`ngModelChange`,function(o){return n._setValue(o)})(`nzFocus`,function(){return n.focus()})(`nzBlur`,function(){return n.blur()}),he$1()()),r&2&&(ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,n.error)(`showTitle`,n.schema.title),A(),It$2(`width`,n.width),Ze(`ant-input-number__hide-step`,n.ui.hideStep),ie$1(`nzId`,n.id)(`ngModel`,n.value)(`ngModelOptions`,MO(27,Lg))(`nzDisabled`,n.disabled)(`nzSize`,n.ui.size)(`nzVariant`,n.ui.variant??`outlined`)(`nzMin`,n.min)(`nzMax`,n.max)(`nzStep`,n.step)(`nzFormatter`,n.formatter)(`nzParser`,n.parser)(`nzPrecision`,n.ui.precision??null)(`nzPlaceHolder`,n.ui.placeholder??``)(`nzChangeOnWheel`,n.ui.changeOnWheel??!0)(`nzAutoFocus`,n.ui.autofocus)(`nzAddonBefore`,n.ui.addOnBefore)(`nzAddonAfter`,n.ui.addOnAfter),pI())},dependencies:[fr$2,jn$2,Fi,Rc$2,os,le$2],encapsulation:2})};var Ug=()=>[];var Hg=()=>({$implicit:!0});function Bg(t,e){if(t&1&&(oe$2(0,`div`,4),an$3(1),he$1()),t&2){let r=F$2(2);A(),vr$3(r.title)}}function Gg(t,e){if(t&1&&(oe$2(0,`div`,6),pt$1(1,`sf-item`,7),he$1()),t&2){let r=F$2().$implicit;ie$1(`nzSpan`,r.grid.span)(`nzOffset`,r.grid.offset)(`nzXs`,r.grid.xs)(`nzSm`,r.grid.sm)(`nzMd`,r.grid.md)(`nzLg`,r.grid.lg)(`nzXl`,r.grid.xl)(`nzXXl`,r.grid.xxl),A(),ie$1(`formProperty`,r.property)(`fixed-label`,r.spanLabelFixed)}}function Kg(t,e){if(t&1&&ve$1(0,Gg,2,10,`div`,6),t&2){let r=e.$implicit;ye$1(r.property.visible&&r.show?0:-1)}}function Jg(t,e){if(t&1&&(oe$2(0,`div`,5),Yl(1,Kg,1,1,null,null,EP),he$1()),t&2){let r=F$2(2);ie$1(`nzGutter`,r.grid.gutter),A(),Ul(r.list)}}function Xg(t,e){if(t&1&&pt$1(0,`sf-item`,7),t&2){let r=F$2().$implicit;ie$1(`formProperty`,r.property)(`fixed-label`,r.spanLabelFixed)}}function Zg(t,e){if(t&1&&ve$1(0,Xg,1,2,`sf-item`,7),t&2){let r=e.$implicit;ye$1(r.property.visible&&r.show?0:-1)}}function Qg(t,e){if(t&1&&Yl(0,Zg,1,1,null,null,EP),t&2){let r=F$2(2);Ul(r.list)}}function Yg(t,e){if(t&1&&(ve$1(0,Bg,2,1,`div`,4),ve$1(1,Jg,3,1,`div`,5)(2,Qg,2,0)),t&2){let r=e.$implicit,n=F$2();ye$1(!r&&n.title?0:-1),A(),ye$1(n.grid?1:2)}}function e_(t,e){if(t&1&&pt$1(0,`nz-icon`,11),t&2){F$2(3);let r=pO(0);ie$1(`nzType`,r?`down`:`up`)}}function t_(t,e){if(t&1&&pt$1(0,`nz-icon`,13),t&2){let r=F$2(4);ie$1(`nzTooltipTitle`,r.oh.text)(`nzTooltipPlacement`,r.oh.placement)(`nzTooltipTrigger`,r.oh.trigger)(`nzTooltipColor`,r.oh.bgColor)(`nzTooltipOverlayClassName`,r.oh.overlayClassName)(`nzTooltipOverlayStyle`,r.oh.overlayStyle)(`nzTooltipMouseEnterDelay`,r.oh.mouseEnterDelay)(`nzTooltipMouseLeaveDelay`,r.oh.mouseLeaveDelay)(`nzType`,r.oh.icon)}}function r_(t,e){if(t&1&&(oe$2(0,`span`,12),an$3(1),ve$1(2,t_,1,9,`nz-icon`,13),he$1()),t&2){let r=F$2(3);A(),Io$1(` `,r.ui.optional,` `),A(),ye$1(r.oh?2:-1)}}function n_(t,e){if(t&1){let r=on();oe$2(0,`div`,10),je$1(`click`,function(){gt$1(r);let i=F$2(2);return vt(i.changeExpand())}),ve$1(1,e_,1,1,`nz-icon`,11),an$3(2),ve$1(3,r_,3,2,`span`,12),he$1()}if(t&2){let r=F$2(2);Ze(`point`,r.showExpand),A(),ye$1(r.showExpand?1:-1),A(),Io$1(` `,r.title,` `),A(),ye$1(r.ui.optional||r.oh?3:-1)}}function i_(t,e){}function o_(t,e){if(t&1&&(oe$2(0,`nz-card`,8),qe$1(1,n_,4,5,`ng-template`,null,1,ql$1)(3,i_,0,0,`ng-template`,9),he$1()),t&2){let r=Wl(2),n=F$2(),i=Wl(2),o=pO(0);Ze(`sf__object-card-fold`,!o),ie$1(`nzTitle`,r)(`nzExtra`,n.ui.cardExtra)(`nzSize`,n.ui.cardSize??`small`)(`nzActions`,n.ui.cardActions??MO(10,Ug))(`nzBodyStyle`,n.ui.cardBodyStyle)(`nzBordered`,n.ui.cardBordered??!0),A(3),ie$1(`ngTemplateOutlet`,i)(`ngTemplateOutletContext`,MO(11,Hg))}}function a_(t,e){}function s_(t,e){if(t&1&&qe$1(0,a_,0,0,`ng-template`,3),t&2){F$2();let r=Wl(2);ie$1(`ngTemplateOutlet`,r)}}var Hr$1=class t extends to$1{grid;type=`default`;list=[];title;showExpand=!0;expand=G$1(!0);ngOnInit(){let{formProperty:e,ui:r}=this,{grid:n,showTitle:i,type:o}=r;this.showExpand=Ee$2(r.showExpand,!0),this.expand.set(Ee$2(r.expand,!0)),this.type=o??`default`,(this.type===`card`||!e.isRoot()&&!(e.parent instanceof vr$2)&&i===!0)&&(this.title=this.schema.title),this.grid=n;let a=[];for(let s of e.propertiesId){let l=e.properties[s],c={property:l,grid:l.ui.grid??n??{},spanLabelFixed:l.ui.spanLabelFixed,show:l.ui.hidden===!1};a.push(c)}this.list=a}changeExpand(){this.showExpand&&this.expand.set(!this.expand())}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-object`]],features:[tn$2],decls:5,vars:2,consts:[[`default`,``],[`cardTitleTpl`,``],[1,`sf__object-card`,3,`nzTitle`,`nzExtra`,`nzSize`,`nzActions`,`nzBodyStyle`,`nzBordered`,`sf__object-card-fold`],[3,`ngTemplateOutlet`],[1,`sf__title`],[`nz-row`,``,3,`nzGutter`],[`nz-col`,``,3,`nzSpan`,`nzOffset`,`nzXs`,`nzSm`,`nzMd`,`nzLg`,`nzXl`,`nzXXl`],[3,`formProperty`,`fixed-label`],[1,`sf__object-card`,3,`nzTitle`,`nzExtra`,`nzSize`,`nzActions`,`nzBodyStyle`,`nzBordered`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`click`],[1,`mr-xs`,`text-xs`,3,`nzType`],[1,`sf__optional`],[`nz-tooltip`,``,3,`nzTooltipTitle`,`nzTooltipPlacement`,`nzTooltipTrigger`,`nzTooltipColor`,`nzTooltipOverlayClassName`,`nzTooltipOverlayStyle`,`nzTooltipMouseEnterDelay`,`nzTooltipMouseLeaveDelay`,`nzType`]],template:function(r,n){r&1&&(By(0),qe$1(1,Yg,3,2,`ng-template`,null,0,ql$1),ve$1(3,o_,4,12,`nz-card`,2)(4,s_,1,1,null,3)),r&2&&(fO(n.expand()),A(3),ye$1(n.type===`card`?3:4))},dependencies:[ka$1,Wt$2,Dt$5,cn$2,sn$3,We$3,xr$2,Gt$2,Xs$1,Ys,Je$1,qt$2],encapsulation:2})};var l_=()=>({standalone:!0});function d_(t,e){if(t&1&&(oe$2(0,`label`,2),pt$1(1,`span`,3),he$1()),t&2){let r=e.$implicit,n=F$2(2);ie$1(`nzValue`,r.value)(`nzDisabled`,n.disabled||r.disabled),A(),ie$1(`innerHTML`,r.label,S
8a$1)}}function c_(t,e){if(t&1&&Yl(0,d_,2,3,`label`,2,EP),t&2){F$2();let r=pO(0);Ul(r)}}function u_(t,e){if(t&1&&(oe$2(0,`label`,4),pt$1(1,`span`,3),he$1()),t&2){let r=e.$implicit,n=F$2(2);ie$1(`nzValue`,r.value)(`nzDisabled`,n.disabled||r.disabled),A(),ie$1(`innerHTML`,r.label,Sa$1)}}function f_(t,e){if(t&1&&Yl(0,u_,2,3,`label`,4,EP),t&2){F$2();let r=pO(0);Ul(r)}}var Br$1=class t extends de$1{data=G$1([]);styleType=G$1(!1);reset(e){this.styleType.set((this.ui.styleType??`default`)==="default"),_r$2(this.schema,this.ui,e).subscribe(r=>{this.data.set(r)})}_setValue(e){this.setValue(e),this.ui.change?.(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-radio`]],features:[tn$2],decls:5,vars:14,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzSize`,`nzName`,`ngModel`,`ngModelOptions`,`nzButtonStyle`],[`nz-radio`,``,3,`nzValue`,`nzDisabled`],[3,`innerHTML`],[`nz-radio-button`,``,3,`nzValue`,`nzDisabled`]],template:function(r,n){r&1&&(By(0),oe$2(1,`sf-item-wrap`,0)(2,`nz-radio-group`,1),hI(),je$1(`ngModelChange`,function(o){return n._setValue(o)}),ve$1(3,c_,2,0)(4,f_,2,0),he$1()()),r&2&&(fO(n.data()),A(),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,n.error)(`showTitle`,n.schema.title),A(),ie$1(`nzSize`,n.ui.size)(`nzName`,n.id)(`ngModel`,n.value)(`ngModelOptions`,MO(13,l_))(`nzButtonStyle`,n.ui.buttonStyle??`outline`),pI(),A(),ye$1(n.styleType()?3:4))},dependencies:[fr$2,jn$2,Fi,ut$2,ct$3,dt$1,le$2],encapsulation:2})};var m_=()=>({standalone:!0});function p_(t,e){if(t&1&&pt$1(0,`nz-option`,3),t&2){let r=e.$implicit;ie$1(`nzLabel`,r.label)(`nzValue`,r.value)(`nzHide`,r.hide)(`nzDisabled`,r.disabled)}}function h_(t,e){if(t&1&&Yl(0,p_,1,4,`nz-option`,3,EP),t&2){F$2();let r=pO(0);Ul(r)}}function y_(t,e){if(t&1&&pt$1(0,`nz-option`,5),t&2){let r=e.$implicit;ie$1(`nzLabel`,r.label)(`nzValue`,r.value)(`nzDisabled`,r.disabled)(`nzHide`,r.hide)}}function g_(t,e){if(t&1&&(oe$2(0,`nz-option-group`,4),Yl(1,y_,1,4,`nz-option`,5,EP),he$1()),t&2){let r=e.$implicit;ie$1(`nzLabel`,r.label),A(),Ul(r.children)}}function __(t,e){if(t&1&&Yl(0,g_,3,1,`nz-option-group`,4,EP),t&2){F$2();let r=pO(0);Ul(r)}}function v_(t,e){if(t&1&&(oe$2(0,`nz-option`,2),pt$1(1,`nz-icon`,6),an$3(2),he$1()),t&2){let r=F$2();A(2),Io$1(` `,r.ui.searchLoadingText,` `)}}var Gr$2=class t extends de$1{search$=new C$1;i;data=G$1([]);_value=G$1(void 0);loading=G$1(!1);hasGroup=G$1(!1);checkGroup(e){this.hasGroup.set((e??[]).filter(r=>r.group===!0).length>0)}ngOnInit(){let{autoClearSearchValue:e,autoFocus:r,dropdownMatchSelectWidth:n,serverSearch:i,maxMultipleCount:o,mode:a,showSearch:s,tokenSeparators:l,maxTagCount:c,compareWith:d,optionHeightPx:f,optionOverflowSize:_,showArrow:m}=this.ui;this.i={autoClearSearchValue:Ee$2(e,!0),autoFocus:Ee$2(r,!1),dropdownMatchSelectWidth:Ee$2(n,!0),serverSearch:Ee$2(i,!1),maxMultipleCount:o??1/0,mode:a??`default`,showSearch:Ee$2(s,!0),tokenSeparators:l??[],maxTagCount:c??1/0,optionHeightPx:f??32,optionOverflowSize:_??8,showArrow:Ee$2(m,!0),compareWith:d??((u,y)=>u===y)};let h=this.ui.onSearch;h&&this.search$.pipe(Be(this.sfItemComp.destroy$),Vn$1(),Hn$2(this.ui.searchDebounceTime??300),Ve(u=>h(u)),mo$1(()=>[])).subscribe(u=>{this.data.set(u),this.checkGroup(u),this.loading.set(!1)})}reset(e){let r=this.ui.onSearch;_r$2(this.schema,this.ui,e).subscribe(n=>{this._value.set(e),r??this.data.set(n),this.checkGroup(n)}),e&&r!=null&&this.search$.next(e)}change(e){this.ui.change?.(e,this.getOrgData(e)),this.setValue(e??this.ui.clearValue)}getOrgData(e){let r=this.injector.get(mt$3);return Array.isArray(e)?e.map(n=>r.findTree(this.data(),i=>i.value===n)):r.findTree(this.data(),n=>n.value===e)}openChange(e){this.ui.openChange?.(e)}scrollToBottom(){this.ui.scrollToBottom?.()}onSearch(e){this.ui.onSearch&&(this.loading.set(!0),this.search$.next(e))}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-select`]],features:[tn$2],decls:6,vars:42,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzOpenChange`,`nzOnSearch`,`nzScrollToBottom`,`nzId`,`nzDisabled`,`ngModel`,`ngModelOptions`,`nzSize`,`nzPlaceHolder`,`nzNotFoundContent`,`nzDropdownClassName`,`nzAllowClear`,`nzDropdownStyle`,`nzCustomTemplate`,`nzSuffixIcon`,`nzRemoveIcon`,`nzClearIcon`,`nzMenuItemSelectedIcon`,`nzMaxTagPlaceholder`,`nzDropdownRender`,`nzAutoClearSearchValue`,`nzVariant`,`nzAutoFocus`,`nzDropdownMatchSelectWidth`,`nzServerSearch`,`nzMaxMultipleCount`,`nzMode`,`nzShowSearch`,`nzShowArrow`,`nzTokenSeparators`,`nzMaxTagCount`,`compareWith`,`nzOptionHeightPx`,`nzOptionOverflowSize`],[`nzDisabled`,``,`nzCustomContent`,``],[3,`nzLabel`,`nzValue`,`nzHide`,`nzDisabled`],[3,`nzLabel`],[3,`nzLabel`,`nzValue`,`nzDisabled`,`nzHide`],[`nzType`,`loading`]],template:function(r,n){if(r&1){let i=on();By(0),oe$2(1,`sf-item-wrap`,0)(2,`nz-select`,1),hI(),Hy(`ngModelChange`,function(a){return gt$1(i),hO(n._value,a)||(n._value=a),vt(a)}),je$1(`ngModelChange`,function(a){return n.change(a)})(`nzOpenChange`,function(a){return n.openChange(a)})(`nzOnSearch`,function(a){return n.onSearch(a)})(`nzScrollToBottom`,function(){return n.scrollToBottom()}),ve$1(3,h_,2,0),ve$1(4,__,2,0),ve$1(5,v_,3,1,`nz-option`,2),he$1()()}if(r&2){fO(n.data());let i=n.loading();A(),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,
8n.error)(`showTitle`,n.schema.title),A(),ie$1(`nzId`,n.id)(`nzDisabled`,n.disabled),Fy(`ngModel`,n._value),ie$1(`ngModelOptions`,MO(41,m_))(`nzSize`,n.ui.size)(`nzPlaceHolder`,n.ui.placeholder)(`nzNotFoundContent`,n.ui.notFoundContent)(`nzDropdownClassName`,n.ui.dropdownClassName)(`nzAllowClear`,n.ui.allowClear)(`nzDropdownStyle`,n.ui.dropdownStyle)(`nzCustomTemplate`,n.ui.customTemplate)(`nzSuffixIcon`,n.ui.suffixIcon)(`nzRemoveIcon`,n.ui.removeIcon)(`nzClearIcon`,n.ui.clearIcon)(`nzMenuItemSelectedIcon`,n.ui.menuItemSelectedIcon)(`nzMaxTagPlaceholder`,n.ui.maxTagPlaceholder)(`nzDropdownRender`,n.ui.dropdownRender)(`nzAutoClearSearchValue`,n.i.autoClearSearchValue)(`nzVariant`,n.ui.variant??`outlined`)(`nzAutoFocus`,n.i.autoFocus)(`nzDropdownMatchSelectWidth`,n.i.dropdownMatchSelectWidth)(`nzServerSearch`,n.i.serverSearch)(`nzMaxMultipleCount`,n.i.maxMultipleCount)(`nzMode`,n.i.mode)(`nzShowSearch`,n.i.showSearch)(`nzShowArrow`,n.i.showArrow)(`nzTokenSeparators`,n.i.tokenSeparators)(`nzMaxTagCount`,n.i.maxTagCount)(`compareWith`,n.i.compareWith)(`nzOptionHeightPx`,n.i.optionHeightPx)(`nzOptionOverflowSize`,n.i.optionOverflowSize),pI(),A(),ye$1(!i&&!n.hasGroup()?3:-1),A(),ye$1(!i&&n.hasGroup()?4:-1),A(),ye$1(i?5:-1)}},dependencies:[fr$2,jn$2,Fi,xr$2,Gt$2,Gl$1,Ba$1,Wa$1,Li,le$2],encapsulation:2})};var Su$1=()=>({standalone:!0});function S_(t,e){if(t&1){let r=on();oe$2(0,`nz-input-wrapper`,1)(1,`input`,3),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o.change(i))})(`keyup.enter`,function(i){gt$1(r);let o=F$2();return vt(o.enter(i))})(`focus`,function(i){gt$1(r);let o=F$2();return vt(o.focus(i))})(`blur`,function(i){gt$1(r);let o=F$2();return vt(o.blur(i))}),he$1()()}if(t&2){let r=F$2(),n=pO(0),i=pO(1);ie$1(`nzAddonBefore`,r.ui.addOnBefore)(`nzAddonAfter`,r.ui.addOnAfter)(`nzPrefix`,r.ui.prefix)(`nzSuffix`,r.ui.suffix)(`nzAllowClear`,r.ui.allowClear),A(),ie$1(`disabled`,r.disabled)(`nzSize`,r.ui.size)(`nzVariant`,r.ui.variant??`outlined`)(`ngModel`,r.value)(`ngModelOptions`,MO(17,Su$1)),$t(`id`,r.id)(`disabled`,r.disabled)(`maxLength`,n)(`type`,i)(`placeholder`,r.ui.placeholder)(`autocomplete`,r.ui.autocomplete)(`autoFocus`,r.ui.autofocus),pI()}}function C_(t,e){if(t&1){let r=on();oe$2(0,`input`,3),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o.change(i))})(`keyup.enter`,function(i){gt$1(r);let o=F$2();return vt(o.enter(i))})(`focus`,function(i){gt$1(r);let o=F$2();return vt(o.focus(i))})(`blur`,function(i){gt$1(r);let o=F$2();return vt(o.blur(i))}),he$1()}if(t&2){let r=F$2(),n=pO(0),i=pO(1);ie$1(`disabled`,r.disabled)(`nzSize`,r.ui.size)(`nzVariant`,r.ui.variant)(`ngModel`,r.value)(`ngModelOptions`,MO(12,Su$1)),$t(`id`,r.id)(`disabled`,r.disabled)(`maxLength`,n)(`type`,i)(`placeholder`,r.ui.placeholder)(`autocomplete`,r.ui.autocomplete)(`autoFocus`,r.ui.autofocus),pI()}}var ir$2=class t extends de$1{type;change$=null;ngOnInit(){let{addOnAfter:e,addOnAfterIcon:r,addOnBefore:n,addOnBeforeIcon:i,prefix:o,prefixIcon:a,suffix:s,suffixIcon:l,allowClear:c,autofocus:d}=this.ui;this.type=e||n||r||i||o||a||s||l?`addon`:``,c===!0&&this.type===``&&(this.type=`addon`),d===!0&&fo(20).pipe(Be(this.sfItemComp.destroy$),$e$2(1)).subscribe(()=>{this.injector.get($$2).nativeElement.querySelector(`#${this.id}`).focus()}),this.initChange()}reset(e){!e&&this.schema.format===`color`&&this.setValue(`#000000`)}initChange(){let e=this.ui.changeDebounceTime,r=this.ui.change;if(e==null||e<=0||r==null)return;this.change$=new se$1(this.value);let n=this.change$.asObservable().pipe(Hn$2(e),Be(this.sfItemComp.destroy$));this.ui.changeMap!=null&&(n=n.pipe(Ve(this.ui.changeMap))),n.subscribe(i=>r(i))}change(e){if(this.setValue(e),this.change$!=null){this.change$.next(e);return}this.ui.change?.(e)}focus(e){this.ui.focus?.(e)}blur(e){this.ui.blur?.(e)}enter(e){this.ui.enter?.(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-string`]],features:[tn$2],decls:5,vars:9,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzAddonBefore`,`nzAddonAfter`,`nzPrefix`,`nzSuffix`,`nzAllowClear`],[`nz-input`,``,3,`disabled`,`nzSize`,`nzVariant`,`ngModel`,`ngModelOptions`],[`nz-input`,``,3,`ngModelChange`,`keyup.enter`,`focus`,`blur`,`disabled`,`nzSize`,`nzVariant`,`ngModel`,`ngModelOptions`]],template:function(r,n){r&1&&(By(0)(1),oe$2(2,`sf-item-wrap`,0),ve$1(3,S_,2,18,`nz-input-wrapper`,1)(4,C_,1,13,`input`,2),he$1()),r&2&&(fO(n.schema.maxLength??null),A(),fO(n.ui.type??`text`),A(),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,
8n.error)(`showTitle`,n.schema.title),A(),ye$1(n.type===`addon`?3:4))},dependencies:[fr$2,At$1,jn$2,Fi,_c$1,He$2,is$1,le$2],encapsulation:2})};function w_(t,e){if(t&1&&pt$1(0,`span`,1),t&2){F$2();let r=pO(0);ie$1(`innerHTML`,r,Sa$1)}}function z_(t,e){if(t&1&&pt$1(0,`span`,2),t&2){F$2();let r=pO(0);ie$1(`innerText`,r)}}var Kr$2=class t extends de$1{text=G$1(``);ngOnInit(){this.ui._required=!1,this.ui.html=Ee$2(this.ui.html,!0)}reset(e){this.text.set(e??this.ui.defaultText??`-`)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-text`]],features:[tn$2],decls:4,vars:10,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`innerHTML`],[3,`innerText`]],template:function(r,n){r&1&&(By(0),oe$2(1,`sf-item-wrap`,0),ve$1(2,w_,1,1,`span`,1)(3,z_,1,1,`span`,2),he$1()),r&2&&(fO(n.text()),A(),Ze(`sf__text-html`,n.ui.html),ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,n.error)(`showTitle`,n.schema.title),A(),ye$1(n.ui.html?2:3))},dependencies:[le$2],encapsulation:2})};var ms=()=>({standalone:!0});function $_(t,e){if(t&1){let r=on();oe$2(0,`nz-textarea-count`,1)(1,`textarea`,4),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o.change(i))})(`focus`,function(i){gt$1(r);let o=F$2();return vt(o.focus(i))})(`blur`,function(i){gt$1(r);let o=F$2();return vt(o.blur(i))}),an$3(2,`          `),he$1()()}if(t&2){let r=F$2(),n=pO(1),i=pO(2),o=pO(3);ie$1(`nzMaxCharacterCount`,r.ui.maxCharacterCount)(`nzComputeCharacterCount`,r.ui.computeCharacterCount),A(),ie$1(`disabled`,r.disabled)(`nzSize`,r.ui.size)(`ngModel`,r.value)(`ngModelOptions`,MO(13,ms))(`cdkAutosizeMinRows`,n)(`cdkAutosizeMaxRows`,i)(`nzVariant`,o),$t(`id`,r.id)(`disabled`,r.disabled)(`maxLength`,r.schema.maxLength)(`placeholder`,r.ui.placeholder),pI()}}function x_(t,e){if(t&1){let r=on();oe$2(0,`nz-input-wrapper`,2)(1,`textarea`,5),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o.change(i))})(`focus`,function(i){gt$1(r);let o=F$2();return vt(o.focus(i))})(`blur`,function(i){gt$1(r);let o=F$2();return vt(o.blur(i))}),an$3(2,`          `),he$1()()}if(t&2){let r=F$2(),n=pO(3);ie$1(`nzAllowClear`,r.ui.allowClear),A(),ie$1(`disabled`,r.disabled)(`nzSize`,r.ui.size)(`ngModel`,r.value)(`ngModelOptions`,MO(10,ms))(`nzVariant`,n),$t(`id`,r.id)(`disabled`,r.disabled)(`maxLength`,r.schema.maxLength)(`placeholder`,r.ui.placeholder),pI()}}function F_(t,e){if(t&1){let r=on();oe$2(0,`textarea`,4),hI(),je$1(`ngModelChange`,function(i){gt$1(r);let o=F$2();return vt(o.change(i))})(`focus`,function(i){gt$1(r);let o=F$2();return vt(o.focus(i))})(`blur`,function(i){gt$1(r);let o=F$2();return vt(o.blur(i))}),an$3(1,`        `),he$1()}if(t&2){let r=F$2(),n=pO(1),i=pO(2),o=pO(3);ie$1(`disabled`,r.disabled)(`nzSize`,r.ui.size)(`ngModel`,r.value)(`ngModelOptions`,MO(11,ms))(`cdkAutosizeMinRows`,n)(`cdkAutosizeMaxRows`,i)(`nzVariant`,o),$t(`id`,r.id)(`disabled`,r.disabled)(`maxLength`,r.schema.maxLength)(`placeholder`,r.ui.placeholder),pI()}}var Jr$2=class t extends de$1{autosize;ngOnInit(){this.ui.autosize!=null&&(this.autosize=this.ui.autosize),this.ui.computeCharacterCount??(this.ui.computeCharacterCount=e=>e.length)}change(e){this.setValue(e),this.ui.change?.(e)}focus(e){this.ui.focus?.(e)}blur(e){this.ui.blur?.(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=Gn(t)))(n||t)}})();static ɵcmp=Se$1({type:t,selectors:[[`sf-textarea`]],features:[tn$2],decls:7,vars:10,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzMaxCharacterCount`,`nzComputeCharacterCount`],[3,`nzAllowClear`],[`nz-input`,``,`cdkTextareaAutosize`,``,3,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`,`cdkAutosizeMinRows`,`cdkAutosizeMaxRows`,`nzVariant`],[`nz-input`,``,`cdkTextareaAutosize`,``,3,`ngModelChange`,`focus`,`blur`,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`,`cdkAutosizeMinRows`,`cdkAutosizeMaxRows`,`nzVariant`],[`nz-input`,``,3,`ngModelChange`,`focus`,`blur`,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`,`nzVariant`]],template:function(r,n){r&1&&(oe$2(0,`sf-item-wrap`,0),By(1)(2)(3),ve$1(4,$_,3,14,`nz-textarea-count`,1)(5,x_,3,11,`nz-input-wrapper`,2)(6,F_,2,12,`textarea`,3),he$1()),r&2&&(ie$1(`id`,n.id)(`schema`,n.schema)(`ui`,n.ui)(`showError`,n.showError)(`error`,
8n.error)(`showTitle`,n.schema.title),A(),fO(n.autosize?.minRows??1),A(),fO(n.autosize?.maxRows??0),A(),fO(n.ui.variant??`outlined`),A(),ye$1(n.ui.maxCharacterCount?4:n.ui.allowClear?5:6))},dependencies:[zi$1,fr$2,At$1,jn$2,Fi,_c$1,Cc,He$2,is$1,le$2],encapsulation:2})};var Xr$2=class extends mt$1{constructor(){super(),this.register(`object`,Hr$1),this.register(`array`,jr$2),this.register(`text`,Kr$2),this.register(`string`,ir$2),this.register(`number`,nr$1),this.register(`integer`,nr$1),this.register(`date`,Ur$1),this.register(`radio`,Br$1),this.register(`checkbox`,qr$1),this.register(`boolean`,Wr$1),this.register(`textarea`,Jr$2),this.register(`select`,Gr$2),this.register(`custom`,Lr$1),this.setDefault(ir$2)}};var E_=[v5,Wt$2,Et$1,nr$2,Qt$2,cn$2,xr$2,_c$1,Rc$2,fx,ut$2,Gl$1,Kt$2,Xs$1];var P_=[Hr$1,jr$2,ir$2,nr$1,Ur$1,Br$1,qr$1,Wr$1,Jr$2,Gr$2,Lr$1,Kr$2];var Cu$1=class t{static forRoot(){return{ngModule:t,providers:[{provide:xt$2,useClass:Rr$1,deps:[ln$3,B$2]},{provide:mt$1,useClass:Xr$2}]}}static ɵfac=function(r){return new(r||t)};static ɵmod=ee$3({type:t});static ɵinj=X$2({imports:[Rb,fr$2,om$1,E_,Rt$1,le$2,P_]})};function l$(t){let e=[{provide:xt$2,useClass:Rr$1,deps:[ln$3,B$2]},{provide:mt$1,useClass:Xr$2}];return t?.widgets&&e.push(d2(()=>{let r=h(mt$1);t?.widgets?.forEach(n=>r.register(n.KEY,n.type))})),et$1(e)}var Ie$1=(()=>{class u{defaultName=h(ts).getId(`segmented_`);name=G$1(this.defaultName);selected$=new lo$1(1);activated$=new lo$1(1);change$=new C$1;disabled$=new lo$1(1);animating$=new se$1(!1);keydown$=new C$1;_animating=Sw(this.animating$,{initialValue:!1});animationEnabled=TS(()=>!0);showThumb=Fe$1(()=>this.animationEnabled()&&this._animating());constructor(){h(re$1).onDestroy(()=>{this.selected$.complete(),this.activated$.complete(),this.change$.complete(),this.disabled$.complete(),this.animating$.complete(),this.keydown$.complete()})}setName(l){this.name.set(typeof l>`u`?this.defaultName:l)}static ɵfac=function(s){return new(s||u)};static ɵprov=w({token:u,factory:u.ɵfac})}return u})();var ee$2=(()=>{class u{service=h(Ie$1);elementRef=h($$2);destroyRef=h(re$1);templateRef=sb.required(`content`,{read:yt$1});nzValue=pe$1.required();nzIcon=pe$1();nzDisabled=pe$1(!1,{transform:H$2});hasLabel=Fe$1(()=>this.templateRef().createEmbeddedView({}).rootNodes.some(l=>l.textContent.trim().length>0));showThumb=this.service.showThumb;name=this.service.name.asReadonly();isChecked=G$1(!1);parentDisabled=Sw(this.service.disabled$,{initialValue:!1});finalDisabled=Fe$1(()=>this.nzDisabled()||this.parentDisabled());ngOnInit(){this.service.selected$.pipe(Je$2(l=>{this.isChecked.set(!1),l===this.nzValue()&&this.service.activated$.next(this.elementRef.nativeElement)}),Ve(l=>this.service.animationEnabled()?this.service.animating$.pipe(ne(s=>!s),$e$2(1),P$2(()=>l)):S(l)),ne(l=>l===this.nzValue()),be$1(this.destroyRef)).subscribe(()=>this.isChecked.set(!0))}handleClick(){!this.nzDisabled()&&!this.parentDisabled()&&(this.service.selected$.next(this.nzValue()),this.service.change$.next(this.nzValue()))}handleKeydown(l){this.finalDisabled()||(l.keyCode===37||l.keyCode===39||l.keyCode===38||l.keyCode===40)&&this.service.keydown$.next(l)}static ɵfac=function(s){return new(s||u)};static ɵcmp=(function(){let l=[`content`],s=[`*`];function r(e,i){}function d(e,i){if(e&1&&(oe$2(0,`span`),qe$1(1,r,0,0,`ng-template`,3),he$1()),e&2){F$2(2);let a=Wl(5);A(),ie$1(`ngTemplateOutlet`,a)}}function o(e,i){if(e&1&&(oe$2(0,`span`,4),pt$1(1,`nz-icon`,5),he$1(),ve$1(2,d,2,1,`span`)),e&2){let a=F$2();A(),ie$1(`nzType`,i),A(),ye$1(a.hasLabel()?2:-1)}}function h(e,i){}function t(e,i){if(e&1&&qe$1(0,h,0,0,`ng-template`,3),e&2){F$2();let a=Wl(5);ie$1(`ngTemplateOutlet`,a)}}function n(e,i){e&1&&Wt$1(0)}return Se$1({type:u,selectors:[[`label`,`nz-segmented-item`,``],[`label`,`nzSegmentedItem`,``]],viewQuery:function(i,a){i&1&&_d$2(a.templateRef,l,5,yt$1),i&2&&Sd$1()},hostAttrs:[1,`ant-segmented-item`],hostVars:4,hostBindings:function(i,a){i&1&&je$1(`click`,function(){return a.handleClick()})(`keydown`,function(c){return a.handleKeydown(c)}),i&2&&Ze(`ant-segmented-item-selected`,!a.showThumb()&&a.isChecked())(`ant-segmented-item-disabled`,a.finalDisabled())},inputs:{nzValue:[1,`nzValue`],nzIcon:[1,`nzIcon`],nzDisabled:[1,`nzDisabled`]},exportAs:[`nzSegmentedItem`],ngContentSelectors:s,decls:6,vars:5,consts:[[`content`,``],[`type`,`radio`,1,`ant-segmented-item-input`,3,`click`,`disabled`,`checked`],[1,`ant-segmented-item-label`],[3,`ngTemplateOutlet`],[1,`ant-segmented-item-icon`],[3,`nzType`]],template:function(i,a){if(i&1&&(yn$1(),oe$2(0,`input`,1),je$1(`click`,function(c){return c.stopPropagation()}),he$1(),oe$2(1,`div`,2),ve$1(2,o,3,2)(3,t,1,1,null,3),he$1(),qe$1(4,n,1,0,`ng-template`,null,0,ql$1)),i&2){let m;ie$1(`disabled`,a.finalDisabled())(`checked`,a.isChecked()),$t(`name`,a.name()),A(),$t(`aria-selected`,a.isChecked()),A(),ye$1((m=a.nzIcon())?2:3,m)}},dependencies:[xr$2,Gt$2,ka$1],encapsulation:2})})()}return u})();function qt$1(u){return u.map(g=>typeof g==`string`||typeof g==`number`?{label:`${g}`,value:g}:g)}var Ut=`segmented`;var Dt$3=(()=>{let u,g=[],l=[];return class re{static{let r=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;u=[Bo()],uo$2(null,null,u,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:d=>`nzSize`in d,get:d=>d.nzSize,set:(d,o)=>{d.nzSize=o}},metadata:r},g,l),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}_nzModuleName=Ut;service=h(Ie$1);injector=h(U$2);dir=h(Ue$1).valueSignal;nzBlock=!1;nzDisabled=!1;nzOptions=[];nzVertical=!1;nzShape=`default`;nzSize=mn$3(this,g,`default`);nzName=mn$3(this,l);nzValueChange=new O$1;viewItemCmps=ere(ee$2);contentItemCmps=tre(ee$2);renderedItemCmps=Fe$1(()=>this.viewItemCmps().concat(this.contentItemCmps()));isDisabledFirstChange=!0;value;thumbStyle=G$1(null);thumbAnimationEnter=Ni$2(()=>`ant-segmented-thumb-motion-appear-active`);showThumb=this.service.showThumb;normalizedOptions=[];onChange=()=>{};onTouched=()=>{};constructor(){this.service.selected$.pipe(be$1()).subscribe(r=>{this.value=r}),this.service.activated$.pipe(be$1()).subscribe(r=>{this.thumbStyle.update(d=>{let o=this.calcThumbStyle(r);if(d&&o)Er$1(()=>{this.thumbStyle.set(this.getThumbStyle(this.calcThumbStyle(r)??o))});else if(o)return this.getThumbStyle(o);return d})}),this.service.change$.pipe(be$1()).subscribe(r=>{this.nzValueChange.emit(r),this.onChange(r),this.service.animating$.next(!0)}),this.service.keydown$.pipe(ne(()=>!this.nzDisabled),be$1()).subscribe(r=>this.onKeyDown(r)),Rt$2(()=>{Jt$1(()=>{let r=this.renderedItemCmps();r.length&&(this.value===void 0||!r.some(d=>d.nzValue()===this.value))&&this.service.selected$.next(r[0].nzValue())},{injector:this.injector})})}ngOnChanges(r){let{nzName:d,nzOptions:o,nzDisabled:h,nzVertical:t}=r;d&&this.service.setName(this.nzName),o&&(this.normalizedOptions=qt$1(o.currentValue)),h&&this.service.disabled$.next(h.currentValue),t&&!t.firstChange&&Rt$2(()=>{this.service.activated$.pipe($e$2(1)).subscribe(n=>{let e=this.calcThumbStyle(n);e&&this.thumbStyle.set(this.getThumbStyle(e))})},{injector:this.injector})}onOffset(r){let d=this.renderedItemCmps(),o=d.length,h=d.findIndex(e=>e.nzValue()===this.value),t=(h+r+o)%o;for(;d[t].nzDisabled()&&(t=(t+Math.sign(r)+o)%o,t!==h););let n=d[t];
8n&&(this.service.selected$.next(n.nzValue()),this.service.change$.next(n.nzValue()))}onKeyDown(r){switch(r.keyCode){case 38:this.onOffset(-1);break;case 37:this.onOffset(this.dir()===`rtl`?1:-1);break;case 40:this.onOffset(1);break;case 39:this.onOffset(this.dir()===`rtl`?-1:1)}}writeValue(r){this.service.selected$.next(r)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=this.isDisabledFirstChange&&this.nzDisabled||r,this.isDisabledFirstChange=!1}calcThumbStyle(r){if(!r||!r.offsetParent)return null;let d=r.parentElement;if(!d)return null;let o={left:r.offsetLeft,right:d.clientWidth-r.clientWidth-r.offsetLeft,width:r.clientWidth,top:r.offsetTop,bottom:d.clientHeight-r.clientHeight-r.offsetTop,height:r.clientHeight};return this.nzVertical?{left:0,right:0,width:0,top:o.top,bottom:o.bottom,height:o.height}:{left:o.left,right:o.right,width:o.width,top:0,bottom:0,height:0}}getThumbStyle(r){return this.nzVertical?{transform:`translateY(${r.top}px)`,width:`100%`,height:`${r.height}px`}:{transform:`translateX(${this.dir()===`rtl`?-r.right:r.left}px)`,width:`${r.width}px`,height:`100%`}}handleTransitionEnd(r){r.propertyName===`transform`&&this.service.animating$.next(!1)}static ɵfac=function(d){return new(d||re)};static ɵcmp=(function(){let r=[`*`],d=(n,e)=>e.value;function o(n,e){if(n&1){let i=on();oe$2(0,`div`,2),ui(function(){gt$1(i);let m=F$2();return vt(m.thumbAnimationEnter())}),je$1(`transitionend`,function(m){gt$1(i);let c=F$2();return vt(c.handleTransitionEnd(m))}),he$1()}if(n&2){let i=F$2();ko$1(i.thumbStyle())}}function h(n,e){if(n&1&&(oe$2(0,`label`,3),an$3(1),he$1()),n&2){let i=e.$implicit;ie$1(`nzIcon`,i.icon)(`nzValue`,i.value)(`nzDisabled`,i.disabled),A(),Io$1(` `,i.label,` `)}}function t(n,e){if(n&1&&Yl(0,h,2,4,`label`,3,d),n&2){let i=F$2();Ul(i.normalizedOptions)}}return Se$1({type:re,selectors:[[`nz-segmented`]],contentQueries:function(e,i,a){e&1&&Dd$1(a,i.contentItemCmps,ee$2,4),e&2&&Sd$1()},viewQuery:function(e,i){e&1&&_d$2(i.viewItemCmps,ee$2,5),e&2&&Sd$1()},hostAttrs:[`role`,`radiogroup`,`aria-label`,`segmented control`,1,`ant-segmented`],hostVars:15,hostBindings:function(e,i){e&2&&($t(`tabindex`,i.nzDisabled?void 0:0),Ze(`ant-segmented-disabled`,i.nzDisabled)(`ant-segmented-rtl`,i.dir()===`rtl`)(`ant-segmented-lg`,i.nzSize===`large`)(`ant-segmented-sm`,i.nzSize===`small`)(`ant-segmented-block`,i.nzBlock)(`ant-segmented-vertical`,i.nzVertical)(`ant-segmented-shape-round`,i.nzShape===`round`))},inputs:{nzBlock:[2,`nzBlock`,`nzBlock`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzOptions:`nzOptions`,nzVertical:[2,`nzVertical`,`nzVertical`,H$2],nzShape:`nzShape`,nzSize:`nzSize`,nzName:`nzName`},outputs:{nzValueChange:`nzValueChange`},exportAs:[`nzSegmented`],features:[Ft$1([Ie$1,{provide:Le$2,useExisting:ta$2(()=>re),multi:!0}]),Te$1],ngContentSelectors:r,decls:4,vars:1,consts:[[1,`ant-segmented-group`],[1,`ant-segmented-thumb`,3,`style`],[1,`ant-segmented-thumb`,3,`transitionend`],[`nz-segmented-item`,``,3,`nzIcon`,`nzValue`,`nzDisabled`]],template:function(e,i){e&1&&(yn$1(),oe$2(0,`div`,0),ve$1(1,o,1,2,`div`,1),Wt$1(2,0,null,t,2,0),he$1()),e&2&&(A(),ye$1(i.showThumb()?1:-1))},dependencies:[xr$2,Jr$3,ee$2],encapsulation:2})})()}})();var Wt=()=>({standalone:!0});var U$1=class u extends de$1{static KEY=`segmented`;list=G$1([]);reset(g){_r$2(this.schema,this.ui,g).subscribe(l=>{this.list.set(l)})}valueChange(g){let l=this.list();this.ui.valueChange?.({index:g,item:typeof g==`number`?l[g]:l.find(s=>s.value===g)})}static ɵfac=(()=>{let g;return function(s){return(g||(g=Gn(u)))(s||u)}})();static ɵcmp=Se$1({type:u,selectors:[[`sf-segmented`]],features:[tn$2],decls:2,vars:15,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzValueChange`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzBlock`,`nzVertical`,`nzShape`,`nzOptions`]],template:function(l,s){l&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-segmented`,1),hI(),je$1(`ngModelChange`,function(d){return s.setValue(d)}
8)(`nzValueChange`,function(d){return s.valueChange(d)}),he$1()()),l&2&&(ie$1(`id`,s.id)(`schema`,s.schema)(`ui`,s.ui)(`showError`,s.showError)(`error`,s.error)(`showTitle`,s.schema.title),A(),ie$1(`ngModel`,s.value)(`ngModelOptions`,MO(14,Wt))(`nzDisabled`,s.disabled)(`nzSize`,s.ui.size)(`nzBlock`,s.ui.block??!1)(`nzVertical`,s.ui.vertical)(`nzShape`,s.ui.shape??`default`)(`nzOptions`,s.list()),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,Dt$3],encapsulation:2})};function Hn$1(){return{KEY:U$1.KEY,type:U$1}}var P$1;(function(u){u.QrCode=(()=>{class o{version;errorCorrectionLevel;static encodeText(t,n){let e=u.QrSegment.makeSegments(t);return o.encodeSegments(e,n)}static encodeBinary(t,n){let e=u.QrSegment.makeBytes(t);return o.encodeSegments([e],n)}static encodeSegments(t,n,e=1,i=40,a=-1,m=!0){if(!(o.MIN_VERSION<=e&&e<=i&&i<=o.MAX_VERSION)||a<-1||a>7)throw new RangeError(`Invalid value`);let c,z;for(c=e;;c++){let C=o.getNumDataCodewords(c,n)*8,I=d.getTotalBits(t,c);if(I<=C){z=I;break}if(c>=i)throw new RangeError(`Data too long`)}for(let C of[o.Ecc.MEDIUM,o.Ecc.QUARTILE,o.Ecc.HIGH])m&&z<=o.getNumDataCodewords(c,C)*8&&(n=C);let p=[];for(let C of t){l(C.mode.modeBits,4,p),l(C.numChars,C.mode.numCharCountBits(c),p);for(let I of C.getData())p.push(I)}r(p.length==z);let A=o.getNumDataCodewords(c,n)*8;r(p.length<=A),l(0,Math.min(4,A-p.length),p),l(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let C=236;p.length<A;C^=253)l(C,8,p);let T=[];for(;T.length*8<p.length;)T.push(0);return p.forEach((C,I)=>T[I>>>3]|=C<<7-(I&7)),new o(c,n,T,a)}size;mask;modules=[];isFunction=[];constructor(t,n,e,i){if(this.version=t,this.errorCorrectionLevel=n,t<o.MIN_VERSION||t>o.MAX_VERSION)throw new RangeError(`Version value out of range`);if(i<-1||i>7)throw new RangeError(`Mask value out of range`);this.size=t*4+17;let a=[];for(let c=0;c<this.size;c++)a.push(!1);for(let c=0;c<this.size;c++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let m=this.addEccAndInterleave(e);if(this.drawCodewords(m),i==-1){let c=1e9;for(let z=0;z<8;z++){this.applyMask(z),this.drawFormatBits(z);let p=this.getPenaltyScore();p<c&&(i=z,c=p),this.applyMask(z)}}r(i>=0&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(t,n){return t>=0&&t<this.size&&n>=0&&n<this.size&&this.modules[n][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),n=t.length;for(let e=0;e<n;e++)for(let i=0;i<n;i++)e==0&&i==0||e==0&&i==n-1||e==n-1&&i==0||this.drawAlignmentPattern(t[e],t[i]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let n=this.errorCorrectionLevel.formatBits<<3|t,e=n;for(let a=0;a<10;a++)e=e<<1^(e>>>9)*1335;let i=(n<<10|e)^21522;r(i>>>15==0);for(let a=0;a<=5;a++)this.setFunctionModule(8,a,s(i,a));this.setFunctionModule(8,7,s(i,6)),this.setFunctionModule(8,8,s(i,7)),this.setFunctionModule(7,8,s(i,8));for(let a=9;a<15;a++)this.setFunctionModule(14-a,8,s(i,a));for(let a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,s(i,a));for(let a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,s(i,a));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;let n=this.version<<12|t;r(n>>>18==0);for(let e=0;e<18;e++){let i=s(n,e),a=this.size-11+e%3,m=Math.floor(e/3);this.setFunctionModule(a,m,i),this.setFunctionModule(m,a,i)}}drawFinderPattern(t,n){for(let e=-4;e<=4;e++)for(let i=-4;i<=4;i++){let a=Math.max(Math.abs(i),Math.abs(e)),m=t+i,c=n+e;m>=0&&m<this.size&&c>=0&&c<this.size&&this.setFunctionModule(m,c,a!=2&&a!=4)}}drawAlignmentPattern(t,n){for(let e=-2;e<=2;e++)for(let i=-2;i<=2;i++)this.setFunctionModule(t+i,n+e,Math.max(Math.abs(i),Math.abs(e))!=1)}setFunctionModule(t,n,e){this.modules[n][t]=e,this.isFunction[n][t]=!0}addEccAndInterleave(t){let n=this.version,e=this.errorCorrectionLevel;if(t.length!=o.getNumDataCodewords(n,e))throw new RangeError(`Invalid argument`);let i=o.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][n],a=o.ECC_CODEWORDS_PER_BLOCK[e.ordinal][n],m=Math.floor(o.getNumRawDataModules(n)/8),c=i-m%i,z=Math.floor(m/i),p=[],A=o.reedSolomonComputeDivisor(a);for(let C=0,I=0;C<i;C++){let V=t.slice(I,I+z-a+(C<c?0:1));I+=V.length;let At=o.reedSolomonComputeRemainder(V,A);C<c&&V.push(0),p.push(V.concat(At))}let T=[];for(let C=0;C<p[0].length;
8C++)p.forEach((I,V)=>{(C!=z-a||V>=c)&&T.push(I[C])});return r(T.length==m),T}drawCodewords(t){if(t.length!=Math.floor(o.getNumRawDataModules(this.version)/8))throw new RangeError(`Invalid argument`);let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let m=e-a,z=(e+1&2)==0?this.size-1-i:i;!this.isFunction[z][m]&&n<t.length*8&&(this.modules[z][m]=s(t[n>>>3],7-(n&7)),n++)}}r(n==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError(`Mask value out of range`);for(let n=0;n<this.size;n++)for(let e=0;e<this.size;e++){let i;switch(t){case 0:i=(e+n)%2==0;break;case 1:i=n%2==0;break;case 2:i=e%3==0;break;case 3:i=(e+n)%3==0;break;case 4:i=(Math.floor(e/3)+Math.floor(n/2))%2==0;break;case 5:i=e*n%2+e*n%3==0;break;case 6:i=(e*n%2+e*n%3)%2==0;break;case 7:i=((e+n)%2+e*n%3)%2==0;break;default:throw new Error(`Unreachable`)}!this.isFunction[n][e]&&i&&(this.modules[n][e]=!this.modules[n][e])}}getPenaltyScore(){let t=0;for(let a=0;a<this.size;a++){let m=!1,c=0,z=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[a][p]==m?(c++,c==5?t+=o.PENALTY_N1:c>5&&t++):(this.finderPenaltyAddHistory(c,z),m||(t+=this.finderPenaltyCountPatterns(z)*o.PENALTY_N3),m=this.modules[a][p],c=1);t+=this.finderPenaltyTerminateAndCount(m,c,z)*o.PENALTY_N3}for(let a=0;a<this.size;a++){let m=!1,c=0,z=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][a]==m?(c++,c==5?t+=o.PENALTY_N1:c>5&&t++):(this.finderPenaltyAddHistory(c,z),m||(t+=this.finderPenaltyCountPatterns(z)*o.PENALTY_N3),m=this.modules[p][a],c=1);t+=this.finderPenaltyTerminateAndCount(m,c,z)*o.PENALTY_N3}for(let a=0;a<this.size-1;a++)for(let m=0;m<this.size-1;m++){let c=this.modules[a][m];c==this.modules[a][m+1]&&c==this.modules[a+1][m]&&c==this.modules[a+1][m+1]&&(t+=o.PENALTY_N2)}let n=0;for(let a of this.modules)n=a.reduce((m,c)=>m+(c?1:0),n);let e=this.size*this.size,i=Math.ceil(Math.abs(n*20-e*10)/e)-1;return r(i>=0&&i<=9),t+=i*o.PENALTY_N4,r(t>=0&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let t=Math.floor(this.version/7)+2,n=Math.floor((this.version*8+t*3+5)/(t*4-4))*2,e=[6];for(let i=this.size-7;e.length<t;i-=n)e.splice(1,0,i);return e}}static getNumRawDataModules(t){if(t<o.MIN_VERSION||t>o.MAX_VERSION)throw new RangeError(`Version number out of range`);let n=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return r(n>=208&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(o.getNumRawDataModules(t)/8)-o.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*o.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError(`Degree out of range`);let n=[];for(let i=0;i<t-1;i++)n.push(0);n.push(1);let e=1;for(let i=0;i<t;i++){for(let a=0;a<n.length;a++)n[a]=o.reedSolomonMultiply(n[a],e),a+1<n.length&&(n[a]^=n[a+1]);e=o.reedSolomonMultiply(e,2)}return n}static reedSolomonComputeRemainder(t,n){let e=n.map(i=>0);for(let i of t){let a=i^e.shift();e.push(0),n.forEach((m,c)=>e[c]^=o.reedSolomonMultiply(m,a))}return e}static reedSolomonMultiply(t,n){if(t>>>8||n>>>8)throw new RangeError(`Byte out of range`);let e=0;for(let i=7;i>=0;i--)e=e<<1^(e>>>7)*285,e^=(n>>>i&1)*t;return r(e>>>8==0),e}finderPenaltyCountPatterns(t){let n=t[1];r(n<=this.size*3);let e=n>0&&t[2]==n&&t[3]==n*3&&t[4]==n&&t[5]==n;return(e&&t[0]>=n*4&&t[6]>=n?1:0)+(e&&t[6]>=n*4&&t[0]>=n?1:0)}finderPenaltyTerminateAndCount(t,n,e){return t&&(this.finderPenaltyAddHistory(n,e),n=0),n+=this.size,this.finderPenaltyAddHistory(n,e),this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,n){n[0]==0&&(t+=this.size),n.pop(),n.unshift(t)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]}return o}
8)();function l(o,h,t){if(h<0||h>31||o>>>h)throw new RangeError(`Value out of range`);for(let n=h-1;n>=0;n--)t.push(o>>>n&1)}function s(o,h){return(o>>>h&1)!=0}function r(o){if(!o)throw new Error(`Assertion error`)}let d=(()=>{class o{mode;numChars;bitData;static makeBytes(t){let n=[];for(let e of t)l(e,8,n);return new o(o.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!o.isNumeric(t))throw new RangeError(`String contains non-numeric characters`);let n=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);l(parseInt(t.substring(e,e+i),10),i*3+1,n),e+=i}return new o(o.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!o.isAlphanumeric(t))throw new RangeError(`String contains unencodable characters in alphanumeric mode`);let n=[],e=0;for(;e+2<=t.length;e+=2){let i=o.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;i+=o.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),l(i,11,n)}return e<t.length&&l(o.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,n),new o(o.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==``?[]:o.isNumeric(t)?[o.makeNumeric(t)]:o.isAlphanumeric(t)?[o.makeAlphanumeric(t)]:[o.makeBytes(o.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError(`ECI assignment value out of range`);if(t<128)l(t,8,n);else if(t<16384)l(2,2,n),l(t,14,n);else if(t<1e6)l(6,3,n),l(t,21,n);else throw new RangeError(`ECI assignment value out of range`);return new o(o.Mode.ECI,0,n)}static isNumeric(t){return o.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return o.ALPHANUMERIC_REGEX.test(t)}constructor(t,n,e){if(this.mode=t,this.numChars=n,this.bitData=e,n<0)throw new RangeError(`Invalid argument`);this.bitData=e.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,n){let e=0;for(let i of t){let a=i.mode.numCharCountBits(n);if(i.numChars>=1<<a)return 1/0;e+=4+a+i.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);let n=[];for(let e=0;e<t.length;e++)t.charAt(e)!=`%`?n.push(t.charCodeAt(e)):(n.push(parseInt(t.substring(e+1,e+3),16)),e+=2);return n}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+./:-]*$/;static ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`}return o})();u.QrSegment=d})(P$1||(P$1={}));(function(u){(function(l){class s{ordinal;formatBits;static LOW=new s(0,1);static MEDIUM=new s(1,0);static QUARTILE=new s(2,3);static HIGH=new s(3,2);constructor(d,o){this.ordinal=d,this.formatBits=o}}l.Ecc=s})(u.QrCode||(u.QrCode={}))})(P$1||(P$1={}));(function(u){(function(l){class s{modeBits;numBitsCharCount;static NUMERIC=new s(1,[10,12,14]);static ALPHANUMERIC=new s(2,[9,11,13]);static BYTE=new s(4,[8,16,16]);static KANJI=new s(8,[8,10,12]);static ECI=new s(7,[0,0,0]);constructor(d,o){this.modeBits=d,this.numBitsCharCount=o}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}}l.Mode=s})(u.QrSegment||(u.QrSegment={}))})(P$1||(P$1={}));var Ne$1=P$1;var le$1=Ne$1.QrCode.Ecc;var jt={L:le$1.LOW,M:le$1.MEDIUM,Q:le$1.QUARTILE,H:le$1.HIGH};var _t=`M`;var we$1=`#FFFFFF`;var Me$2=`#000000`;var Ht=1;var Qt$1=.1;var Tt=(u,g=0)=>{let l=[];return u.forEach((s,r)=>{let d=null;
8s.forEach((o,h)=>{if(!o&&d!==null){l.push(`M${d+g} ${r+g}h${h-d}v1H${d+g}z`),d=null;return}if(h===s.length-1){if(!o)return;d===null?l.push(`M${h+g},${r+g} h1v1H${h+g}z`):l.push(`M${d+g},${r+g} h${h+1-d}v1H${d+g}z`);return}o&&d===null&&(d=h)})}),l.join(``)};var xt$1=(u,g)=>u.slice().map((l,s)=>s<g.y||s>=g.y+g.h?l:l.map((r,d)=>d<g.x||d>=g.x+g.w?r:!1));var Yt$1=(u,g,l,s)=>{if(s==null)return null;let r=u.length+l*2,d=Math.floor(g*Qt$1),o=r/g,h=(s.width||d)*o,t=(s.height||d)*o,n=s.x==null?u.length/2-h/2:s.x*o,e=s.y==null?u.length/2-t/2:s.y*o,i=s.opacity==null?1:s.opacity,a=null;if(s.excavate){let c=Math.floor(n),z=Math.floor(e);a={x:c,y:z,w:Math.ceil(h+n-c),h:Math.ceil(t+e-z)}}let m=s.crossOrigin;return{x:n,y:e,h:t,w:h,excavation:a,opacity:i,crossOrigin:m}};var Gt$1=u=>Math.max(Math.floor(u),0);var Kt=(()=>{try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})();var Xt$1=(()=>{class u{canvas=sb.required(`canvas`);image=sb(`image`);icon=pe$1(``);margin=pe$1(0);cells=pe$1([]);numCells=pe$1(0);calculatedImageSettings=pe$1(null);size=pe$1(160);color=pe$1(Me$2);bgColor=pe$1(we$1);constructor(){Jt$1(()=>{this.icon(),this.margin(),this.cells(),this.numCells(),this.calculatedImageSettings(),this.size(),this.color(),this.bgColor(),this.canvas()?.nativeElement&&this.render()})}ngAfterViewInit(){this.render()}render(){let l=this.canvas();if(!l)return;let s=l.nativeElement.getContext(`2d`);s&&(this.setupCanvas(s),this.drawQRCode(s),this.handleImageLoading(s))}setupCanvas(l){let s=this.canvas();if(!s)return;let r=window.devicePixelRatio||1;s.nativeElement.height=s.nativeElement.width=this.size()*r,s.nativeElement.style.width=s.nativeElement.style.height=`${this.size()}px`;let d=this.size()/this.numCells()*r;l.scale(d,d),l.fillStyle=this.bgColor(),l.fillRect(0,0,this.numCells(),this.numCells()),l.fillStyle=this.color()}drawQRCode(l){let s=this.getCellsToDraw();this.haveImageToRender()||this.renderQRCode(l,s)}getCellsToDraw(){let l=this.cells(),s=this.calculatedImageSettings();return this.haveImageToRender()&&s&&s.excavation&&(l=xt$1(this.cells(),s.excavation)),l}haveImageToRender(){return this.calculatedImageSettings()!=null&&!!this.image()}renderQRCode(l,s){Kt?l.fill(new Path2D(Tt(s,this.margin()))):s.forEach((r,d)=>{r.forEach((o,h)=>{o&&l.fillRect(h+this.margin(),d+this.margin(),1,1)})})}handleImageLoading(l){if(!this.haveImageToRender())return;let s=this.image();if(!s)return;let r=()=>{this.cleanupImageListeners(r,d),this.onImageLoadSuccess(l)},d=()=>{this.cleanupImageListeners(r,d),this.onImageLoadError(l)};s.nativeElement.addEventListener(`load`,r),s.nativeElement.addEventListener(`error`,d)}onImageLoadSuccess(l){let s=this.getCellsToDraw();this.renderQRCode(l,s);let r=this.calculatedImageSettings(),d=this.image();r&&d&&(l.globalAlpha=r.opacity,l.drawImage(d.nativeElement,r.x+this.margin(),r.y+this.margin(),r.w,r.h))}onImageLoadError(l){let s=this.getCellsToDraw();this.renderQRCode(l,s)}cleanupImageListeners(l,s){let r=this.image();r?.nativeElement&&(r.nativeElement.removeEventListener(`load`,l),r.nativeElement.removeEventListener(`error`,s))}static ɵfac=function(s){return new(s||u)};static ɵcmp=(function(){let l=[`canvas`],s=[`image`];function r(d,o){if(d&1&&Md$1(0,`img`,3,1),d&2){let h=F$2();$t(`src`,h.icon(),J9)}}return Se$1({type:u,selectors:[[`nz-qrcode-canvas`]],viewQuery:function(o,h){o&1&&_d$2(h.canvas,l,5)(h.image,s,5),o&2&&Sd$1(2)},inputs:{icon:[1,`icon`],margin:[1,`margin`],cells:[1,`cells`],numCells:[1,`numCells`],calculatedImageSettings:[1,`calculatedImageSettings`],size:[1,`size`],color:[1,`color`],bgColor:[1,`bgColor`]},exportAs:[`nzQRCodeCanvas`],decls:3,vars:1,consts:[[`canvas`,``],[`image`,``],[`role`,`img`],[`alt`,`QR-Code`,`crossorigin`,`anonymous`,2,`display`,`none`]],template:function(o,h){o&1&&(Md$1(0,`canvas`,2,0),ve$1(2,r,2,1,`img`,3)),o&2&&(A(2),ye$1(h.icon()?2:-1))},styles:[`[_nghost-%COMP%]{display:block;line-height:0}`]})})()}return u})();var Zt=Ne$1.QrSegment;var Jt=(u,g=_t,l,s,r,d,o)=>{let h=en(u,g,l,r),t=Gt$1(d),n=h.getModules().length+t*2,e=Yt$1(h.getModules(),s,t,o);return{cells:h.getModules(),margin:t,numCells:n,calculatedImageSettings:e,qrcode:h}};var en=(u,g=_t,l,s)=>{let d=(Array.isArray(u)?u:[u]).reduce((o,h)=>(o.push(...Zt.makeSegments(h)),o),[]);return Ne$1.QrCode.encodeSegments(d,jt[g],l,void 0,void 0,s)};var tn=(()=>{class u{icon=pe$1(``);color=pe$1(Me$2);bgColor=pe$1(we$1);imageSettings=pe$1();size=pe$1(160);margin=pe$1(0);calculatedImageSettings=pe$1(null);cells=pe$1([]);numCells=pe$1(0);viewBox=``;backgroundPath=``;foregroundPath=``;constructor(){Jt$1(()=>{this.initializeViewBox(),this.generatePaths()})}initializeViewBox(){this.viewBox=`0 0 ${this.numCells()} ${this.numCells()}`,this.backgroundPath=`M0,0 h${this.numCells()}v${this.numCells()}H0z`}generatePaths(){let l=this.getCellsToDraw();this.foregroundPath=Tt(l,this.margin())}getCellsToDraw(){return this.shouldExcavateCells()?xt$1(this.cells(),this.calculatedImageSettings().excavation):this.cells()}shouldExcavateCells(){let l=this.calculatedImageSettings();return l!==null&&!!this.icon()&&l.excavation!==null}shouldShowIcon(){return!!this.icon()&&this.calculatedImageSettings()!=null}getImageX(){return(this.calculatedImageSettings()?.x||0)+this.margin()}getImageY(){return(this.calculatedImageSettings()?.y||0)+this.margin()}static ɵfac=function(s){return new(s||u)};static ɵcmp=(function(){function l(s,r){if(s&1&&(dg$1(),Md$1(0,`image`,2)),s&2){let d=F$2();$t(`href`,d.imageSettings()?.src)(`height`,d.calculatedImageSettings()?.h)(`width`,d.calculatedImageSettings()?.w)(`x`,d.getImageX())(`y`,d.getImageY())(`opacity`,d.calculatedImageSettings()?.opacity)(`crossOrigin`,d.calculatedImageSettings()?.crossOrigin)}}return Se$1({type:u,selectors:[[`nz-qrcode-svg`]],inputs:{icon:[1,`icon`],color:[1,`color`],bgColor:[1,`bgColor`],imageSettings:[1,`imageSettings`],size:[1,`size`],margin:[1,`margin`],calculatedImageSettings:[1,`calculatedImageSettings`],cells:[1,`cells`],numCells:[1,`numCells`]},exportAs:[`nzQRCodeSVG`],decls:4,vars:8,consts:[[`role`,`img`],[`shapeRendering`,`crispEdges`],[`preserveAspectRatio`,`none`]],template:function(r,d){r&1&&(dg$1(),mi$2(0,`svg`,0),Md$1(1,`path`,1)(2,`path`,1),ve$1(3,l,1,7,`:svg:image`,2),gi$1()),r&2&&($t(`height`,d.size())(`width`,d.size())(`viewBox`,d.viewBox),A(),$t(`fill`,d.bgColor())(`d`,d.backgroundPath),A(),$t(`fill`,d.color())(`d`,d.foregroundPath),A(),ye$1(d.shouldShowIcon()?3:-1))},styles:[`[_nghost-%COMP%]{display:block;line-height:0}`]})})()}return u})();var nn=(()=>{class u{i18n=h(sV);locale=Sw(this.i18n.localeChange.pipe(P$2(()=>this.i18n.getLocaleData(`QRCode`))),{requireSync:!0});isBrowser=$d$1(h(ur$2));nzValue=pe$1(``);nzType=pe$1(`canvas`);nzColor=pe$1(Me$2);
8nzBgColor=pe$1(we$1);nzSize=pe$1(160);nzIcon=pe$1(``);nzIconSize=pe$1(40);nzBordered=pe$1(!0);nzStatus=pe$1(`active`);nzLevel=pe$1(`M`);nzStatusRender=pe$1(null);nzBoostLevel=pe$1(!0);nzPadding=pe$1(0);nzRefresh=Zl$1();margin=G$1(0);cells=G$1([]);numCells=G$1(0);calculatedImageSettings=G$1(null);imageSettings=Fe$1(()=>({src:this.nzIcon(),x:void 0,y:void 0,height:this.nzIconSize()??40,width:this.nzIconSize()??40,excavate:!0,crossOrigin:`anonymous`}));constructor(){Jt$1(()=>{this.updateQRCodeData()})}reloadQRCode(){this.updateQRCodeData(),this.nzRefresh.emit(`refresh`)}updateQRCodeData(){let{margin:l,cells:s,numCells:r,calculatedImageSettings:d}=Jt(this.nzValue(),this.nzLevel(),Ht,this.nzSize(),this.nzBoostLevel(),this.nzPadding(),this.imageSettings());this.margin.set(l),this.cells.set(s),this.numCells.set(r),this.calculatedImageSettings.set(d)}static ɵfac=function(s){return new(s||u)};static ɵcmp=(function(){let l=()=>({x:0,y:0,h:0,w:0,excavation:null,opacity:1,crossOrigin:``});function s(a,m){if(a&1&&(nn$1(0),an$3(1),rn$3()),a&2){let c=F$2(2);A(),vr$3(c.nzStatusRender())}}function r(a,m){if(a&1&&(oe$2(0,`div`,0),qe$1(1,s,2,1,`ng-container`,1),he$1()),a&2){let c=F$2();A(),ie$1(`nzStringTemplateOutlet`,c.nzStatusRender())}}function d(a,m){a&1&&pt$1(0,`nz-spin`)}function o(a,m){if(a&1){let c=on();oe$2(0,`div`)(1,`p`,2),an$3(2),he$1(),oe$2(3,`button`,3),je$1(`click`,function(){gt$1(c);let p=F$2(2);return vt(p.reloadQRCode())}),pt$1(4,`nz-icon`,4),oe$2(5,`span`),an$3(6),he$1()()()}if(a&2){let c=F$2(2);A(2),vr$3(c.locale().expired),A(4),vr$3(c.locale().refresh)}}function h(a,m){if(a&1&&(oe$2(0,`div`)(1,`p`,2),an$3(2),he$1()()),a&2){let c=F$2(2);A(2),vr$3(c.locale().scanned)}}function t(a,m){if(a&1&&(oe$2(0,`div`,0),ve$1(1,d,1,0,`nz-spin`)(2,o,7,2,`div`)(3,h,3,1,`div`),he$1()),a&2){let c,z=F$2();A(),ye$1((c=z.nzStatus())===`loading`?1:c===`expired`?2:c===`scanned`?3:-1)}}function n(a,m){if(a&1&&pt$1(0,`nz-qrcode-canvas`,5),a&2){let c=F$2(2);ie$1(`icon`,c.nzIcon())(`margin`,c.margin())(`cells`,c.cells())(`numCells`,c.numCells())(`calculatedImageSettings`,c.calculatedImageSettings())(`size`,c.nzSize())(`color`,c.nzColor())(`bgColor`,c.nzBgColor())}}function e(a,m){if(a&1&&pt$1(0,`nz-qrcode-svg`,6),a&2){let c=F$2(2);ie$1(`color`,c.nzColor())(`bgColor`,c.nzBgColor())(`icon`,c.nzIcon())(`margin`,c.margin())(`cells`,c.cells())(`numCells`,c.numCells())(`imageSettings`,c.imageSettings())(`calculatedImageSettings`,c.calculatedImageSettings()||MO(9,l))(`size`,c.nzSize())}}function i(a,m){if(a&1&&ve$1(0,n,1,8,`nz-qrcode-canvas`,5)(1,e,1,10,`nz-qrcode-svg`,6),a&2){let c,z=F$2();ye$1((c=z.nzType())===`canvas`?0:c===`svg`?1:-1)}}return Se$1({type:u,selectors:[[`nz-qrcode`]],hostAttrs:[1,`ant-qrcode`],hostVars:4,hostBindings:function(m,c){m&2&&(It$2(`background-color`,c.nzBgColor()),Ze(`ant-qrcode-border`,c.nzBordered()))},inputs:{nzValue:[1,`nzValue`],nzType:[1,`nzType`],nzColor:[1,`nzColor`],nzBgColor:[1,`nzBgColor`],nzSize:[1,`nzSize`],nzIcon:[1,`nzIcon`],nzIconSize:[1,`nzIconSize`],nzBordered:[1,`nzBordered`],nzStatus:[1,`nzStatus`],nzLevel:[1,`nzLevel`],nzStatusRender:[1,`nzStatusRender`],nzBoostLevel:[1,`nzBoostLevel`],nzPadding:[1,`nzPadding`]},outputs:{nzRefresh:`nzRefresh`},exportAs:[`nzQRCode`],decls:3,vars:2,consts:[[1,`ant-qrcode-mask`],[4,`nzStringTemplateOutlet`],[1,`ant-qrcode-expired`],[`nz-button`,``,`nzType`,`link`,3,`click`],[`nzType`,`reload`,`nzTheme`,`outline`],[3,`icon`,`margin`,`cells`,`numCells`,`calculatedImageSettings`,`size`,`color`,`bgColor`],[3,`color`,`bgColor`,`icon`,`margin`,`cells`,`numCells`,`imageSettings`,`calculatedImageSettings`,`size`]],template:function(m,c){m&1&&(ve$1(0,r,2,1,`div`,0)(1,t,4,1,`div`,0),ve$1(2,i,2,1)),m&2&&(ye$1(c.nzStatusRender()?0:c.nzStatus()!==`active`?1:-1),A(2),ye$1(c.isBrowser?2:-1))},dependencies:[_n$3,Sn$2,v5,a3,f5,xr$2,Gt$2,er$1,tn,Xt$1],encapsulation:2})})()}return u})();var mi=(()=>{class u{static ɵfac=function(s){return new(s||u)};static ɵmod=ee$3({type:u});static ɵinj=X$2({imports:[nn]})}return u})();var P=new b$1(`NU_MONACO_EDITOR_CONFIG`);function ee$1(o){return et$1([{provide:P,useValue:o}])}var m=null;var V$1=(()=>{class o{el=h($$2);config=h(P,{optional:!0});doc=h(z$2);destroy$=h(re$1);_editor;_resize$=null;_config;_disabled;_disposables=[];height=pe$1(`200px`);delay=pe$1(0,{transform:Oo$1});disabled=pe$1(!1,{transform:H$2});options=pe$1();event=Zl$1();constructor(){this._config=g$1({baseUrl:`https://cdn.jsdelivr.net/npm/monaco-editor/min`,autoFormatTime:100},this.config),Jt$1(()=>{this.setDisabled(this.disabled())}),Jt$1(()=>{let e=this.options();this.height(),this.updateOptions(e)}),Rt$2(()=>{fo(this.delay()).pipe(be$1(this.destroy$)).subscribe(()=>this.init())})}notifyEvent(e,t){this.event.emit(g$1({type:e,editor:this._editor},t))}setDisabled(e){return this._editor?.updateOptions({readOnly:e}),this}init(){typeof window>`u`||(m||(m=new Promise((e,t)=>
8{let i=window;if(i.monaco){e();return}let n=`${this._config.baseUrl}/vs`;/^https?:\/\//.test(n)||(n=`${window.location.origin}/${n.startsWith(`/`)?n.substring(1):n}`);let s=()=>{i.require.config({paths:{vs:n}}),typeof this._config.monacoPreLoad==`function`&&this._config.monacoPreLoad(),i.require([`vs/editor/editor.main`],()=>{typeof this._config.monacoLoad==`function`&&this._config.monacoLoad(i.monaco),e()},()=>{t(`Unable to load editor/editor.main module, please check your network environment.`)})};if(i.require)s();else{let r=this.doc.createElement(`script`);r.type=`text/javascript`,r.src=`${n}/loader.js`,r.onload=s,r.onerror=()=>{t(`Unable to load ${r.src}, please check your network environment.`)},this.doc.getElementsByTagName(`head`)[0].appendChild(r)}}).catch(e=>{throw m=null,e})),m.then(()=>this.initMonaco(this.options(),!0)).catch(e=>this.notifyEvent(`load-error`,{error:e})))}cleanResize(){return this._resize$?.unsubscribe(),this}registerResize(){return this.cleanResize(),this._resize$=Qc$2(window,`resize`).pipe(Hn$2(100)).subscribe(()=>{this._editor?.layout(),this.notifyEvent(`resize`)}),this}
8disposeEditor(){return this._disposables.forEach(e=>e.dispose()),this._disposables.length=0,this._editor?.dispose(),this._editor=void 0,this}updateOptions(e){this._editor&&(this.disposeEditor(),this.initMonaco(e,!1))}ngOnDestroy(){this.cleanResize(),this.disposeEditor()}static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`nu-monaco-base`]],inputs:{height:[1,`height`],delay:[1,`delay`],disabled:[1,`disabled`],options:[1,`options`]},outputs:{event:`event`},decls:0,vars:0,template:function(t,i){},encapsulation:2})}return o})();var _=class{ID=`editor.widget.placeholderHint`;placeholder;editor;node;constructor(a,e){this.placeholder=e,this.editor=a}update(a){this.node!=null&&(this.node.innerHTML=a??this.placeholder??``)}getId(){return this.ID}getDomNode(){if(this.node==null){let a=this.node=document.createElement(`div`);a.classList.add(`monaco-editor-placeholder`),a.style.width=`max-content`,a.style.color=`gray`,a.innerHTML=this.placeholder,a.style.fontStyle=`italic`,this.editor.applyFontInfo(a)}return this.node}getPosition(){return{position:{lineNumber:1,column:1},preference:[monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};var te$1=(()=>{class o extends V$1{_value=``;_placeholderWidget;placeholder=pe$1();model=pe$1();autoFormat=pe$1(!0,{transform:H$2});maxHeight=pe$1(void 0,{transform:Oo$1});minHeight=pe$1(void 0,{transform:Oo$1});get editor(){return this._editor}constructor(){super(),Jt$1(()=>{let e=this.placeholder();this._placeholderWidget?.update(e)}),Jt$1(()=>{this.model()!=null&&this.updateOptions(we$2(()=>this.options()))})}togglePlaceholder(){let e=this.placeholder();if(typeof e!=`string`||e.length<=0||this.editor==null)return;let t=this._placeholderWidget;t??(this._placeholderWidget=t=new _(this.editor,e)),this._value.length>0?this.editor.removeContentWidget(t):this.editor.addContentWidget(t)}onChange=e=>{};onTouched=()=>{};initMonaco(e,t){let i=!!this.model();e=g$1(g$1({},this.config?.defaultOptions),e);let n=this.height()===`auto`;if(n&&(e.scrollBeyondLastLine=!1,e.overviewRulerLanes=0),i){let l=monaco.editor.getModel(this.model().uri||``);if(l)e.model=l,e.model.setValue(this._value);else{let{value:g,language:q,uri:k}=this.model();e.model=monaco.editor.createModel(g||this._value,q,k)}this._value=e.model.getValue()}this._disabled!=null&&(e.readOnly=this._disabled);let s=this._editor=monaco.editor.create(this.el.nativeElement,e);i||s.setValue(this._value),this._disposables.push(s.onDidChangeModelContent(()=>{let l=s.getValue();this._value=l,this.onChange(l),this.togglePlaceholder()})),this._disposables.push(s.onDidBlurEditorWidget(()=>this.onTouched())),this.togglePlaceholder(),this.registerResize(),n&&(this._disposables.push(s.onDidContentSizeChange(()=>this.updateHeight())),this.updateHeight());let r=t?`init`:`re-init`;if(this.autoFormat()){fo(this._config.autoFormatTime).pipe(be$1(this.destroy$),$e$2(1)).subscribe(()=>{this.format()?.then(()=>this.notifyEvent(r))});return}this.notifyEvent(r)}updateHeight(){let e=this.editor;if(e==null)return;let t=g=>g!=null&&Number.isFinite(g),i=e.getContentHeight(),n=this.minHeight(),s=this.maxHeight(),r=t(s)?s:1e3,l=Math.min(i,r);t(n)&&(l=Math.max(l,n)),e.layout({width:e.getLayoutInfo().width,height:l})}format(){let e=this.editor?.getAction(`editor.action.formatDocument`);if(e!=null)return e.run()}writeValue(e){this._value=e||``,this._editor?.setValue(this._value),this.autoFormat()&&this.format()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.setDisabled(e)}static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`nu-monaco-editor`]],hostVars:4,hostBindings:function(t,i){t&2&&It$2(`display`,`block`)(`height`,i.height())},inputs:{placeholder:[1,`placeholder`],model:[1,`model`],autoFormat:[1,`autoFormat`],maxHeight:[1,`maxHeight`],minHeight:[1,`minHeight`]},exportAs:[`nuMonacoEditor`],features:[Ft$1([{provide:Le$2,useExisting:ta$2((()=>o)),multi:!0}]),tn$2],decls:0,vars:0,template:function(t,i){},encapsulation:2})}return o}
8)();function Ln$1(m){return+m.replace(`%`,``)}var ln$2=m=>{let N=[];return Object.keys(m).forEach(e=>{let n=m[e],o=Ln$1(e);isNaN(o)||N.push({key:o,value:n})}),N=N.sort((e,n)=>e.key-n.key),N};var kn=m=>ln$2(m).map(({key:N,value:e})=>({offset:`${N}%`,color:e}));var Un$1=m=>{let a=m,{from:N=`#1890ff`,to:e=`#1890ff`,direction:n=`to right`}=a,o=cs(a,[`from`,`to`,`direction`]);if(Object.keys(o).length!==0)return`linear-gradient(${n}, ${ln$2(o).map(({key:C,value:v})=>`${v} ${C}%`).join(`, `)})`;return`linear-gradient(${n}, ${N}, ${e})`};var On$1=0;var an$1=`progress`;var Dn$2=new Map([[`success`,`check`],[`exception`,`close`]]);var Rn$2=new Map([[`normal`,`#108ee9`],[`exception`,`#ff5500`],[`success`,`#87d068`]]);var Mn$1=m=>`${m}%`;var gt=(()=>{let m,N=[],e=[],n,o=[],a=[],f,C=[],v=[],U,A$1=[],M=[],b,O=[],de=[],me,ue=[],_e=[],fe,ge=[],ze=[];return class ft{static{let T=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;m=[Bo()],n=[Bo()],f=[Bo()],U=[Bo()],b=[Bo()],me=[Bo()],fe=[Bo()],uo$2(null,null,m,{kind:`field`,name:`nzShowInfo`,static:!1,private:!1,access:{has:l=>`nzShowInfo`in l,get:l=>l.nzShowInfo,set:(l,s)=>{l.nzShowInfo=s}},metadata:T},N,e),uo$2(null,null,n,{kind:`field`,name:`nzStrokeColor`,static:!1,private:!1,access:{has:l=>`nzStrokeColor`in l,get:l=>l.nzStrokeColor,set:(l,s)=>{l.nzStrokeColor=s}},metadata:T},o,a),uo$2(null,null,f,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:l=>`nzSize`in l,get:l=>l.nzSize,set:(l,s)=>{l.nzSize=s}},metadata:T},C,v),uo$2(null,null,U,{kind:`field`,name:`nzStrokeWidth`,static:!1,private:!1,access:{has:l=>`nzStrokeWidth`in l,get:l=>l.nzStrokeWidth,set:(l,s)=>{l.nzStrokeWidth=s}},metadata:T},A$1,M),uo$2(null,null,b,{kind:`field`,name:`nzGapDegree`,static:!1,private:!1,access:{has:l=>`nzGapDegree`in l,get:l=>l.nzGapDegree,set:(l,s)=>{l.nzGapDegree=s}},metadata:T},O,de),uo$2(null,null,me,{kind:`field`,name:`nzGapPosition`,static:!1,private:!1,access:{has:l=>`nzGapPosition`in l,get:l=>l.nzGapPosition,set:(l,s)=>{l.nzGapPosition=s}},metadata:T},ue,_e),uo$2(null,null,fe,{kind:`field`,name:`nzStrokeLinecap`,static:!1,private:!1,access:{has:l=>`nzStrokeLinecap`in l,get:l=>l.nzStrokeLinecap,set:(l,s)=>{l.nzStrokeLinecap=s}},metadata:T},ge,ze),T&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:T})}_nzModuleName=an$1;cdr=h(Qe$1);dir=h(Ue$1).valueSignal;nzShowInfo=mn$3(this,N,!0);nzWidth=(mn$3(this,e),132);nzStrokeColor=mn$3(this,o,void 0);nzSize=(mn$3(this,a),mn$3(this,C,`default`));nzFormat=mn$3(this,v);nzSuccessPercent;nzPercent=0;nzStrokeWidth=mn$3(this,A$1,void 0);nzGapDegree=(mn$3(this,M),mn$3(this,O,void 0));nzStatus=mn$3(this,de);nzType=`line`;nzGapPosition=mn$3(this,ue,`top`);nzStrokeLinecap=(mn$3(this,_e),mn$3(this,ge,`round`));nzSteps=(mn$3(this,ze),0);steps=[];lineGradient=null;isGradient=!1;isSteps=!1;gradientId=On$1++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;get formatter(){return this.nzFormat||Mn$1}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(){vc$1(an$1,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()})}ngOnChanges(T){let{nzSteps:l,nzGapPosition:s,nzStrokeLinecap:h,nzStrokeColor:c,nzGapDegree:S,nzType:$,nzStatus:E,nzPercent:V,nzSuccessPercent:te,nzStrokeWidth:le}=T;E&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(V||te)&&(parseInt(this.nzPercent.toString(),10)>=100?(Zp$1(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus=`success`):this.inferredStatus=this.cachedStatus),(E||V||te||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||h||S||$||V||c||c)&&this.getCirclePaths(),(V||l||le)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}updateIcon(){let T=Dn$2.get(this.status);this.icon=T?T+(this.isCircleStyle?`-o`:`-circle-fill`):``}getSteps(){let T=Math.floor(this.nzSteps*(this.nzPercent/100)),l=this.nzSize===`small`?2:14,s=[];for(let h=0;h<this.nzSteps;h++){let c;h<=T-1&&(c=this.nzStrokeColor);let S={backgroundColor:`${c}`,width:`${l}px`,height:`${this.strokeWidth}px`};s.push(S)}this.steps=s}getCirclePaths(){if(!this.isCircleStyle)return;let T=Zp$1(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],l=50-this.strokeWidth/2,s=this.nzGapPosition||(this.nzType===`circle`?`top`:`bottom`),h=Math.PI*2*l,c=this.nzGapDegree||(this.nzType===`circle`?0:75),S=0,$=-l,E=0,V=l*-2;switch(s){case`left`:S=-l,$=0,E=l*2,V=0;break;case`right`:S=l,$=0,E=l*-2,V=0;break;case`bottom`:$=l,V=l*2}this.pathString=`M 50,50 m ${S},${$}
9       a ${l},${l} 0 1 1 ${E},${-V}
10       a ${l},${l} 0 1 1 ${-E},${V}`,this.trailPathStyle={strokeDasharray:`${h-c}px ${h}px`,strokeDashoffset:`-${c/2}px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s`},this.progressCirclePath=T.map((te,le)=>{let se=T.length===2&&le===0;return{stroke:this.isGradient&&!se?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:se?Rn$2.get(`success`):this.nzStrokeColor,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s`,strokeDasharray:`${(te||0)/100*(h-c)}px ${h}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){let T=this.nzStrokeColor,l=this.isGradient=!!T&&typeof T!=`string`;l&&!this.isCircleStyle?this.lineGradient=Un$1(T):l&&this.isCircleStyle?this.circleGradient=kn(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[])}static ɵfac=function(l){return new(l||ft)};static ɵcmp=(function(){let T=_=>({$implicit:_});function l(_,L){if(_&1&&pt$1(0,`nz-icon`,3),_&2){let p=F$2(3);ie$1(`nzType`,p.icon)}}
10function s(_,L){if(_&1&&(nn$1(0),an$3(1),rn$3()),_&2){let p=L.$implicit,W=F$2(4);A(),Io$1(` `,p(W.nzPercent),` `)}}function h(_,L){if(_&1&&qe$1(0,s,2,1,`ng-container`,4),_&2){let p=F$2(3);ie$1(`nzStringTemplateOutlet`,p.formatter)(`nzStringTemplateOutletContext`,ff(2,T,p.nzPercent))}}function c(_,L){if(_&1&&(oe$2(0,`span`,2),ve$1(1,l,1,1,`nz-icon`,3)(2,h,1,4,`ng-container`),he$1()),_&2){let p=F$2(2);A(),ye$1((p.status===`exception`||p.status===`success`)&&!p.nzFormat?1:2)}}function S(_,L){if(_&1&&ve$1(0,c,3,1,`span`,2),_&2){let p=F$2();ye$1(p.nzShowInfo?0:-1)}}function $(_,L){if(_&1&&pt$1(0,`div`,8),_&2){let p=L.$implicit;ko$1(p)}}function E(_,L){}function V(_,L){if(_&1&&(oe$2(0,`div`,5),Yl(1,$,1,2,`div`,6,EP),qe$1(3,E,0,0,`ng-template`,7),he$1()),_&2){let p=F$2(2),W=Wl(1);A(),Ul(p.steps),A(2),ie$1(`ngTemplateOutlet`,W)}}function te(_,L){if(_&1&&pt$1(0,`div`,13),_&2){let p=F$2(3);It$2(`width`,p.nzSuccessPercent,`%`)(`border-radius`,p.nzStrokeLinecap===`round`?`100px`:`0`)(`height`,p.strokeWidth,`px`)}}function le(_,L){}function se(_,L){if(_&1&&(oe$2(0,`div`,9)(1,`div`,10),pt$1(2,`div`,11),ve$1(3,te,1,6,`div`,12),he$1()(),qe$1(4,le,0,0,`ng-template`,7)),_&2){let p=F$2(2),W=Wl(1);A(2),It$2(`width`,p.nzPercent,`%`)(`border-radius`,p.nzStrokeLinecap===`round`?`100px`:`0`)(`background`,p.isGradient?null:p.nzStrokeColor)(`background-image`,p.isGradient?p.lineGradient:null)(`height`,p.strokeWidth,`px`),A(),ye$1(p.nzSuccessPercent||p.nzSuccessPercent===0?3:-1),A(),ie$1(`ngTemplateOutlet`,W)}}function Ye(_,L){if(_&1&&(oe$2(0,`div`),ve$1(1,V,4,1,`div`,5)(2,se,5,12),he$1()),_&2){let p=F$2();A(),ye$1(p.isSteps?1:2)}}function Je(_,L){if(_&1&&(dg$1(),pt$1(0,`stop`)),_&2){let p=L.$implicit;$t(`offset`,p.offset)(`stop-color`,p.color)}}function Ke(_,L){if(_&1&&(dg$1(),oe$2(0,`defs`)(1,`linearGradient`,17),Yl(2,Je,1,2,`:svg:stop`,null,EP),he$1()()),_&2){let p=F$2(2);A(),ie$1(`id`,`gradient-`+p.gradientId),A(),Ul(p.circleGradient)}}function et(_,L){if(_&1&&(dg$1(),pt$1(0,`path`,18)),_&2){let p=L.$implicit,W=F$2(2);ko$1(p.strokePathStyle),$t(`d`,W.pathString)(`stroke-linecap`,W.nzStrokeLinecap)(`stroke`,p.stroke)(`stroke-width`,W.nzPercent?W.strokeWidth:0)}}function tt(_,L){}function nt(_,L){if(_&1&&(oe$2(0,`div`,10),dg$1(),oe$2(1,`svg`,14),ve$1(2,Ke,4,1,`:svg:defs`),pt$1(3,`path`,15),Yl(4,et,1,6,`:svg:path`,16,EP),he$1(),qe$1(6,tt,0,0,`ng-template`,7),he$1()),_&2){let p=F$2(),W=Wl(1);It$2(`width`,p.nzWidth,`px`)(`height`,p.nzWidth,`px`)(`font-size`,p.nzWidth*.15+6,`px`),Ze(`ant-progress-circle-gradient`,p.isGradient),A(2),ye$1(p.isGradient?2:-1),A(),ko$1(p.trailPathStyle),$t(`stroke-width`,p.strokeWidth)(`d`,p.pathString),A(),Ul(p.progressCirclePath),A(2),ie$1(`ngTemplateOutlet`,W)}}return Se$1({type:ft,selectors:[[`nz-progress`]],inputs:{nzShowInfo:`nzShowInfo`,nzWidth:`nzWidth`,nzStrokeColor:`nzStrokeColor`,nzSize:`nzSize`,nzFormat:`nzFormat`,nzSuccessPercent:[2,`nzSuccessPercent`,`nzSuccessPercent`,qw],nzPercent:[2,`nzPercent`,`nzPercent`,Oo$1],nzStrokeWidth:[2,`nzStrokeWidth`,`nzStrokeWidth`,qw],nzGapDegree:[2,`nzGapDegree`,`nzGapDegree`,qw],nzStatus:`nzStatus`,nzType:`nzType`,nzGapPosition:`nzGapPosition`,nzStrokeLinecap:`nzStrokeLinecap`,nzSteps:[2,`nzSteps`,`nzSteps`,Oo$1]},exportAs:[`nzProgress`],features:[Te$1],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(L,p){L&1&&(qe$1(0,S,1,1,`ng-template`,null,0,ql$1),oe$2(2,`div`),ve$1(3,Ye,3,1,`div`),ve$1(4,nt,7,14,`div`,1),he$1()),L&2&&(A(2),Lt$1(`ant-progress ant-progress-status-`+p.status),Ze(`ant-progress-line`,p.nzType===`line`)(`ant-progress-small`,p.nzSize===`small`)(`ant-progress-default`,p.nzSize==="default")(`ant-progress-s
10how-info`,p.nzShowInfo)(`ant-progress-circle`,p.isCircleStyle)(`ant-progress-steps`,p.isSteps)(`ant-progress-rtl`,p.dir()===`rtl`),A(),ye$1(p.nzType===`line`?3:-1),A(),ye$1(p.isCircleStyle?4:-1))},dependencies:[xr$2,Gt$2,Jr$3,er$1,ka$1],encapsulation:2})})()}})();var sn$2=(()=>{class m{static ɵfac=function(n){return new(n||m)};static ɵmod=ee$3({type:m});static ɵinj=X$2({imports:[gt]})}return m})();var En=(()=>{class m{reqs={};destroyed=!1;file;nzId=pe$1();options;onClick(){this.options.disabled||!this.options.openFileDialogOnClick||this.file.nativeElement.click()}onFileDrop(e){if(this.options.disabled||e.type===`dragover`){e.preventDefault();return}if(this.options.directory)this.traverseFileTree(e.dataTransfer.items);else{let n=Array.prototype.slice.call(e.dataTransfer.files).filter(o=>this.attrAccept(o,this.options.accept));n.length&&this.uploadFiles(n)}e.preventDefault()}onChange(e){if(this.options.disabled)return;let n=e.target;this.uploadFiles(n.files),n.value=``}traverseFileTree(e){let n=(o,a)=>{o.isFile?o.file(f=>{this.attrAccept(f,this.options.accept)&&this.uploadFiles([f])}):o.isDirectory&&o.createReader().readEntries(C=>{for(let v of C)n(v,`${a}${o.name}/`)})};for(let o of e)n(o.webkitGetAsEntry(),``)}attrAccept(e,n){if(e&&n){let o=Array.isArray(n)?n:n.split(`,`),a=`${e.name}`,f=`${e.type}`,C=f.replace(/\/.*$/,``);return o.some(v=>{let U=v.trim();return U.charAt(0)===`.`?a.toLowerCase().indexOf(U.toLowerCase(),a.toLowerCase().length-U.toLowerCase().length)!==-1:/\/\*$/.test(U)?C===U.replace(/\/.*$/,``):f===U})}return!0}attachUid(e){return e.uid||(e.uid=Math.random().toString(36).substring(2)),e}uploadFiles(e){let n=S(Array.prototype.slice.call(e));this.options.filters&&this.options.filters.forEach(o=>{n=n.pipe(Ve(a=>{let f=o.fn(a);return f instanceof T$1?f:S(f)}))}),n.subscribe({next:o=>{o.forEach(a=>{this.attachUid(a),this.upload(a,o)})},error:o=>{Sr$3(`Unhandled upload filter error`,o)}})}upload(e,n){if(!this.options.beforeUpload)return this.post(e);let o=this.options.beforeUpload(e,n),a=C=>{let v=Object.prototype.toString.call(C);typeof C!=`boolean`&&(v===`[object File]`||v===`[object Blob]`)?(C.uid=e.uid,this.post(e,C)):C&&this.post(e)},f=C=>{Sr$3(`Unhandled upload beforeUpload error`,C)};if(o instanceof T$1)o.subscribe({next:a,error:f});else if(o instanceof Promise)o.then(a).catch(f);else if(o)return this.post(e)}post(e,n){if(this.destroyed)return;let o=S(n||e),f=this.options,{uid:C}=e,{action:v,data:U,headers:A}=f,M={action:typeof v==`string`?v:``,name:f.name,headers:A,file:e,postFile:e,data:U,withCredentials:f.withCredentials,onProgress:f.onProgress?b=>{f.onProgress(b,e)}:void 0,onSuccess:(b,O)=>{this.clean(C),f.onSuccess(b,e,O)},onError:b=>{this.clean(C),f.onError(b,e)}};if(typeof v==`function`){let b=v(e);b instanceof T$1?o=o.pipe(Ve(()=>b),P$2(O=>(M.action=O,e))):M.action=b}if(typeof U==`function`){let b=U(e);b instanceof T$1?o=o.pipe(Ve(()=>b),P$2(O=>(M.data=O,e))):M.data=b}if(typeof A==`function`){let b=A(e);b instanceof T$1?o=o.pipe(Ve(()=>b),P$2(O=>(M.headers=O,e))):M.headers=b}o.subscribe(b=>{M.postFile=b;let O=(f.customRequest||this.xhr).call(this,M);O instanceof ue$1||Sr$3(`Must return Subscription type in '[nzCustomRequest]' property`),this.reqs[C]=O,f.onStart(e)})}xhr(e){let n=new FormData;e.data&&Object.keys(e.data).map(a=>{n.append(a,e.data[a])}),n.append(e.name,e.postFile),e.headers||(e.headers={}),e.headers[`X-Requested-With`]!==null?e.headers[`X-Requested-With`]=`XMLHttpRequest`:delete e.headers[`X-Requested-With`];let o=new Js(`POST`,e.action,n,{reportProgress:!0,withCredentials:e.withCredentials,headers:new Lo(e.headers)});return this.http.request(o).subscribe({next:a=>{a.type===Pa$1.UploadProgress?(a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a,e.file)):a instanceof l1&&e.onSuccess(a.body,e.file,a)},error:a=>{this.abort(e.file),e.onError(a,e.file)}})}clean(e){let n=this.reqs[e];n instanceof ue$1&&n.unsubscribe(),delete this.reqs[e]}abort(e){e?this.clean(e&&e.uid):Object.keys(this.reqs).forEach(n=>this.clean(n))}http=h(rc,{optional:!0});elementRef=h($$2);destroyRef=h(re$1);constructor(){if(!this.http)throw new Error(`Not found 'HttpClient', You can configure 'HttpClient' with 'provideHttpClient()' in your root module.`);this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.abort()})}ngOnInit(){A1(this.elementRef.nativeElement,`click`).pipe(be$1(this.destroyRef)).subscribe(()=>this.onClick()),A1(this.elementRef.nativeElement,`keydown`).pipe(be$1(this.destroyRef)).subscribe(e=>{this.options.disabled||(e.key===`Enter`||e.keyCode===13)&&this.onClick()})}static ɵfac=function(n){return new(n||m)};static ɵcmp=(function(){let e=[`file`];return Se$1({type:m,selectors:[[``,`nz-upload-btn`,``]],viewQuery:function(a,f){if(a&1&&Kn(e,7),a&2){let C;Ge(C=Ke())&&(f.file=C.first)}},hostAttrs:[1,`ant-upload`],hostVars:4,hostBindings:function(a,f){a&1&&je$1(`drop`,function(v){return f.onFileDrop(v)})(`dragover`,function(v){return f.onFileDrop(v)}),a&2&&($t(`tabindex`,`0`)(`role`,`button`),Ze(`ant-upload-disabled`,f.options.disabled))},inputs:{nzId:[1,`nzId`],options:`options`},exportAs:[`nzUploadBtn`],ngContentSelectors:[`*`],decls:3,vars:7,consts:[[`file`,``],[`type`,`file`,3,`change`,`multiple`]],template:function(a,f){a&1&&(yn$1(),mi$2(0,`input`,1,0),wy(`change`,function(v){return f.onCh
10ange(v)}),gi$1(),Wt$1(2)),a&2&&(It$2(`display`,`none`),by(`multiple`,f.options.multiple),$t(`id`,f.nzId())(`accept`,f.options.accept)(`directory`,f.options.directory?`directory`:null)(`webkitdirectory`,f.options.directory?`webkitdirectory`:null))},encapsulation:2})})()}return m})();var pn$1=m=>!!m&&m.indexOf(`image/`)===0;var cn$1=`ant-upload-list`;var ae$1=200;var mn$1=(()=>{class m{list=[];listType=pe$1(`text`);locale={};set items(e){this.list=e}icons;onPreview;onRemove;onDownload;previewFile;previewIsImage;iconRender=null;document=h(z$2);destroyRef=h(re$1);ngZone=h(B$2);cdr=h(Qe$1);platform=h(Me$3);dir=h(Ue$1).valueSignal;class=Fe$1(()=>{let e=[cn$1,this.generateClass(this.listType())];return this.dir()===`rtl`&&e.push(this.generateClass(`rtl`)),e});showPic=Fe$1(()=>this.listType()===`picture`||this.listType()===`picture-card`);itemAnimationEnter=Ni$2(()=>`ant-upload-${this.showPic()?`animate-inline`:`animate`}-enter`);itemAnimationLeave=Ni$2(()=>`ant-upload-${this.showPic()?`animate-inline`:`animate`}-leave`);genErr(e){return e.response&&typeof e.response==`string`?e.response:e.error&&e.error.statusText||this.locale.uploadError}extname(e){let n=e.split(`/`),a=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(a)||[``])[0]}isImageUrl(e){if(pn$1(e.type))return!0;let n=e.thumbUrl||e.url||``;if(!n)return!1;let o=this.extname(n);return/^data:image\//.test(n)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg)$/i.test(o)?!0:/^data:/.test(n)?!1:!o}getIconType(e){return this.showPic()?e.isUploading||!e.thumbUrl&&!e.url?`uploading`:`thumbnail`:``}previewImage(e){if(!pn$1(e.type)||!this.platform.isBrowser)return S(``);let n=this.document.createElement(`canvas`);n.width=ae$1,n.height=ae$1,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${ae$1}px; height: ${ae$1}px; z-index: 9999; display: none;`,this.document.body.appendChild(n);let o=n.getContext(`2d`),a=new Image,f=URL.createObjectURL(e);return a.src=f,A1(a,`load`).pipe(P$2(()=>{let{width:C,height:v}=a,U=ae$1,A=ae$1,M=0,b=0;C<v?(A=v*(ae$1/C),b=-(A-U)/2):(U=C*(ae$1/v),M=-(U-A)/2);try{o.drawImage(a,M,b,U,A)}catch{}let O=n.toDataURL();return this.document.body.removeChild(n),URL.revokeObjectURL(f),O}))}genThumb(){if(!this.platform.isBrowser)return;let e=window;!this.showPic()||typeof document>`u`||typeof e>`u`||!e.FileReader||!e.File||this.list.filter(n=>n.originFileObj instanceof File&&n.thumbUrl===void 0).forEach(n=>{n.thumbUrl=``;let o=(this.previewFile?this.previewFile(n):this.previewImage(n.originFileObj)).pipe(be$1(this.destroyRef));this.ngZone.runOutsideAngular(()=>{o.subscribe(a=>{this.ngZone.run(()=>{n.thumbUrl=a,this.detectChanges()})})})})}resolveShowIcon(e,n){return e?typeof e==`function`?e(n):e:!1}fixData(){this.list.forEach(e=>{e.isUploading=e.status===`uploading`,e.message=this.genErr(e),e.linkProps=typeof e.linkProps==`string`?JSON.parse(e.linkProps):e.linkProps,e.isImageUrl=this.previewIsImage?this.previewIsImage(e):this.isImageUrl(e),e.iconType=this.getIconType(e),e.showDownload=this.resolveShowIcon(this.icons.showDownloadIcon,e)&&e.status===`done`,e.showRemove=this.resolveShowIcon(this.icons.showRemoveIcon,e),e.showPreview=this.resolveShowIcon(this.icons.showPreviewIcon,e)})}handlePreview(e,n){if(this.onPreview)return n.preventDefault(),this.onPreview(e)}handleRemove(e,n){n.preventDefault(),this.onRemove&&this.onRemove(e)}handleDownload(e){typeof this.onDownload==`function`?this.onDownload(e):e.url&&window.open(e.url)}detectChanges(){this.fixData(),this.cdr.detectChanges()}ngOnChanges(){this.fixData(),this.genThumb()}generateClass(e){return un$1(cn$1,e)}static ɵfac=function(n){return new(n||m)};static ɵcmp=(function(){let e=t=>({$implicit:t}),n=()=>({opacity:.5,"pointer-events":`none`});function o(t,d){}function a(t,d){if(t&1&&(oe$2(0,`div`,16),qe$1(1,o,0,0,`ng-template`,17),he$1()),t&2){let i=F$2(2).$implicit,z=Wl(5);Ze(`ant-upload-list-item-file`,!i.isUploading),A(),ie$1(`ngTemplateOutlet`,z)(`ngTemplateOutletContext`,ff(4,e,i))}}function f(t,d){if(t&1&&pt$1(0,`img`,19),t&2){let i=F$2(3).$implicit;ie$1(`src`,i.thumbUrl||i.url,J9),$t(`alt`,i.name)}}function C(t,d){}function v(t,d){if(t&1&&qe$1(0,C,0,0,`ng-template`,17),t&2){let i=F$2(3).$implicit,z=Wl(5);ie$1(`ngTemplateOutlet`,z)(`ngTemplateOutletContext`,ff(2,e,i))}}function U(t,d){if(t&1){let i=on();oe$2(0,`a`,18),je$1(`click`,function(D){gt$1(i);let B=F$2(2).$implicit,J=F$2();return vt(J.handlePreview(B,D))}),ve$1(1,f,1,2,`img`,19)(2,v,1,4,null,17),he$1()}if(t&2){let i=F$2(2).$implicit;Ze(`ant-upload-list-item-file`,!i.isImageUrl),ie$1(`href`,i.url||i.thumbUrl,J9),A(),ye$1(i.isImageUrl?1:2)}}function A$2(t,d){}function M(t,d){if(t&1&&(oe$2(0,`div`,15),qe$1(1,A$2,0,0,`ng-template`,17),he$1()),t&2){let i=F$2(2).$implicit,z=Wl(5);A(),ie$1(`ngTemplateOutlet`,z)(`ngTemplateOutletContext`,ff(2,e,i))}}function b(t,d){if(t&1&&ve$1(0,a,2,6,`div`,13)(1,U,3,4,`a`,14)(2,M,2,4,`div`,15),t&2){let i,z=F$2().$implicit;ye$1((i=z.iconType)===`uploading`?0:i===`thumbnail`?1:2)}}function O(t,d){t&1&&pt$1(0,`nz-icon`,21)}function de(t,d){if(t&1&&pt$1(0,`nz-icon`,22),t&2){let i=F$2(3).$implicit;ie$1(`nzType`,i.isImageUrl?`picture`:`file`)}}function me(t,d){if(t&1&&ve$1(0,O,1,0,`nz-icon`,21)(1,de,1,1,`nz-icon`,22),t&2){let i=F$2(2).$implicit;ye$1(i.isUploading?0:1)}}function ue(t,d){if(t&1&&an$3(0),t&2){let i=F$2(5);Io$1(` `,i.locale.uploading,` `)}}function _e(t,d){if(t&1&&pt$1(0,`nz-icon`,22),t&2){let i=F$2(3).$implicit;ie$1(`nzType`,i.isImageUrl?`picture`:`file`)}}function fe(t,d){if(t&1&&ve$1(0,ue,1,1)(1,_e,1,1,`nz-icon`,22),t&2){let i=F$2(2).$implicit;ye$1(i.isUploading?0:1)}}function ge(t,d){if(t&1&&pt$1(0,`nz-icon`,20),t&2){let i=F$2(2).$implicit;ie$1(`nzType`,i.isUploading?`loading`:`paper-clip`)}}function ze(t,d){if(t&1&&ve$1(0,me,2,1)(1,fe,2,1)(2,ge,1,1,`nz-icon`,20),t&2){let i;F$2(3);let z=pO(0);ye$1((i=z)===`picture`?0:i===`picture-card`?1:2)}}function Xe(t,d){}function T(t,d){if(t&1&&qe$1(0,Xe,0,0,`ng-template`,17),t&2){let i=F$2().$implicit,z=F$2(2);ie$1(`ngTemplateOutlet`,z.iconRender)(`ngTemplateOutletContext`,ff(2,e,i))}}function l(t,d){if(t&1&&ve$1(0,ze,3,1)(1,T,1,4,null,17),t&2){let i=F$2(2);ye$1(i.iconRender?1:0)}}function s(t,d){}
10function h(t,d){if(t&1&&qe$1(0,s,0,0,`ng-template`,17),t&2){let i=F$2(3).$implicit,z=F$2();ie$1(`ngTemplateOutlet`,z.icons.removeIcon)(`ngTemplateOutletContext`,ff(2,e,i))}}function c(t,d){t&1&&pt$1(0,`nz-icon`,25)}function S(t,d){if(t&1){let i=on();oe$2(0,`button`,24),je$1(`click`,function(D){gt$1(i);let B=F$2(2).$implicit,J=F$2();return vt(J.handleRemove(B,D))}),ve$1(1,h,1,4,null,17)(2,c,1,0,`nz-icon`,25),he$1()}if(t&2){let i=F$2(3);$t(`title`,i.locale.removeFile),A(),ye$1(i.icons.removeIcon?1:2)}}function $(t,d){if(t&1&&ve$1(0,S,3,2,`button`,23),t&2){let i=F$2().$implicit;ye$1(i.showRemove?0:-1)}}function E(t,d){}function V(t,d){if(t&1&&qe$1(0,E,0,0,`ng-template`,17),t&2){let i=F$2(3).$implicit,z=F$2();ie$1(`ngTemplateOutlet`,z.icons.downloadIcon)(`ngTemplateOutletContext`,ff(2,e,i))}}function te(t,d){t&1&&pt$1(0,`nz-icon`,26)}function le(t,d){if(t&1){let i=on();oe$2(0,`button`,24),je$1(`click`,function(){gt$1(i);let D=F$2(2).$implicit,B=F$2();return vt(B.handleDownload(D))}),ve$1(1,V,1,4,null,17)(2,te,1,0,`nz-icon`,26),he$1()}if(t&2){let i=F$2(3);$t(`title`,i.locale.downloadFile),A(),ye$1(i.icons.downloadIcon?1:2)}}function se(t,d){if(t&1&&ve$1(0,le,3,2,`button`,23),t&2){let i=F$2().$implicit;ye$1(i.showDownload?0:-1)}}function Ye(t,d){}function Je(t,d){}function Ke(t,d){if(t&1&&(oe$2(0,`span`,28),qe$1(1,Ye,0,0,`ng-template`,11)(2,Je,0,0,`ng-template`,11),he$1()),t&2){F$2(2);let i=Wl(7),z=Wl(9);F$2();let D=pO(0);Ze(`picture`,D===`picture`),A(),ie$1(`ngTemplateOutlet`,z),A(),ie$1(`ngTemplateOutlet`,i)}}function et(t,d){if(t&1&&ve$1(0,Ke,3,4,`span`,27),t&2){F$2(2);let i=pO(0);ye$1(i!==`picture-card`?0:-1)}}function tt(t,d){}function nt(t,d){if(t&1&&(oe$2(0,`span`,29),qe$1(1,tt,0,0,`ng-template`,17),he$1()),t&2){let i=F$2(2).$implicit,z=F$2();A(),ie$1(`ngTemplateOutlet`,z.icons.extra)(`ngTemplateOutletContext`,ff(2,e,i))}}function _(t,d){if(t&1&&ve$1(0,nt,2,4,`span`,29),t&2){let i=F$2(2);ye$1(i.icons.extra?0:-1)}}function L(t,d){}function p(t,d){if(t&1){let i=on();oe$2(0,`a`,32),je$1(`click`,function(D){gt$1(i);let B=F$2(2).$implicit,J=F$2();return vt(J.handlePreview(B,D))}),an$3(1),qe$1(2,L,0,0,`ng-template`,11),he$1()}if(t&2){let i=F$2(2).$implicit,z=Wl(13);ie$1(`href`,i.url,J9),$t(`title`,i.name)(`download`,i.linkProps&&i.linkProps.download),A(),Io$1(` `,i.name,` `),A(),ie$1(`ngTemplateOutlet`,z)}}function W(t,d){}function un(t,d){if(t&1){let i=on();oe$2(0,`span`,33),je$1(`click`,function(D){gt$1(i);let B=F$2(2).$implicit,J=F$2();return vt(J.handlePreview(B,D))}),an$3(1),qe$1(2,W,0,0,`ng-template`,11),he$1()}if(t&2){let i=F$2(2).$implicit,z=Wl(13);$t(`title`,i.name),A(),Io$1(` `,i.name,` `),A(),ie$1(`ngTemplateOutlet`,z)}}function _n(t,d){}function fn(t,d){if(t&1&&(ve$1(0,p,3,5,`a`,30)(1,un,3,3,`span`,31),qe$1(2,_n,0,0,`ng-template`,11)),t&2){let i=F$2().$implicit,z=Wl(11);ye$1(i.url?0:1),A(2),ie$1(`ngTemplateOutlet`,z)}}function gn(t,d){}function zn(t,d){}function hn(t,d){}function Cn(t,d){if(t&1&&qe$1(0,hn,0,0,`ng-template`,17),t&2){let i=F$2(4).$implicit,z=F$2();ie$1(`ngTemplateOutlet`,z.icons.previewIcon)(`ngTemplateOutletContext`,ff(2,e,i))}}function yn(t,d){t&1&&pt$1(0,`nz-icon`,37)}function xn(t,d){if(t&1){let i=on();oe$2(0,`a`,36),je$1(`click`,function(D){gt$1(i);let B=F$2(3).$implicit,J=F$2();return vt(J.handlePreview(B,D))}),ve$1(1,Cn,1,4,null,17)(2,yn,1,0,`nz-icon`,37),he$1()}if(t&2){let i=F$2(3).$implicit,z=F$2();ko$1(i.url||i.thumbUrl?null:MO(5,n)),ie$1(`href`,i.url||i.thumbUrl,J9),$t(`title`,z.locale.previewFile),A(),ye$1(z.icons.previewIcon?1:2)}}function vn(t,d){}function Tn(t,d){if(t&1&&qe$1(0,vn,0,0,`ng-template`,11),t&2){F$2(3);let i=Wl(9);ie$1(`ngTemplateOutlet`,i)}}function wn(t,d){}function bn(t,d){if(t&1&&(oe$2(0,`span`,34),ve$1(1,xn,3,6,`a`,35),ve$1(2,Tn,1,1,null,11),qe$1(3,wn,0,0,`ng-template`,11),he$1()),t&2){let i=F$2(2).$implicit,z=Wl(7);A(),ye$1(i.showPreview?1:-1),A(),ye$1(i.status===`done`?2:-1),A(),ie$1(`ngTemplateOutlet`,z)}}function Sn(t,d){if(t&1&&ve$1(0,bn,4,3,`span`,34),t&2){F$2(2);let i=pO(0);ye$1(i===`picture-card`?0:-1)}}function In(t,d){if(t&1&&(oe$2(0,`div`,12),pt$1(1,`nz-progress`,38),he$1()),t&2){let i=F$2().$implicit;A(),ie$1(`nzPercent`,i.percent)(`nzShowInfo`,!1)(`nzStrokeWidth`,2)}}
10function Nn(t,d){if(t&1){let i=on();oe$2(0,`div`)(1,`div`,8),hi$1(function(){gt$1(i);let D=F$2();return vt(D.itemAnimationLeave())}),ui(function(){gt$1(i);let D=F$2();return vt(D.itemAnimationEnter())}),qe$1(2,b,3,1,`ng-template`,null,0,ql$1)(4,l,2,1,`ng-template`,null,1,ql$1)(6,$,1,1,`ng-template`,null,2,ql$1)(8,se,1,1,`ng-template`,null,3,ql$1)(10,et,1,1,`ng-template`,null,4,ql$1)(12,_,1,1,`ng-template`,null,5,ql$1)(14,fn,3,2,`ng-template`,null,6,ql$1),oe$2(16,`div`,9)(17,`span`,10),qe$1(18,gn,0,0,`ng-template`,11)(19,zn,0,0,`ng-template`,11),he$1()(),ve$1(20,Sn,1,1)(21,In,2,3,`div`,12),he$1()()}if(t&2){let i=d.$implicit,z=Wl(3),D=Wl(15);F$2();let B=pO(0);Lt$1(hf(`ant-upload-list-`,B,`-container`)),A(),Lt$1(gO(`ant-upload-list-item ant-upload-list-item-`,i.status,` ant-upload-list-item-list-type-`,B)),ie$1(`nzTooltipTitle`,i.status===`error`?i.message:null),$t(`data-key`,i.key),A(17),ie$1(`ngTemplateOutlet`,z),A(),ie$1(`ngTemplateOutlet`,D),A(),ye$1(i.isUploading?21:20)}}return Se$1({type:m,selectors:[[`nz-upload-list`]],hostVars:2,hostBindings:function(d,i){d&2&&Lt$1(i.class())},inputs:{listType:[1,`listType`],locale:`locale`,items:`items`,icons:`icons`,onPreview:`onPreview`,onRemove:`onRemove`,onDownload:`onDownload`,previewFile:`previewFile`,previewIsImage:`previewIsImage`,iconRender:`iconRender`},exportAs:[`nzUploadList`],features:[Te$1],decls:3,vars:1,consts:[[`icon`,``],[`iconNode`,``],[`removeIcon`,``],[`downloadIcon`,``],[`downloadOrDelete`,``],[`extra`,``],[`preview`,``],[3,`class`],[`nz-tooltip`,``,3,`nzTooltipTitle`],[1,`ant-upload-list-item-info`],[1,`ant-upload-span`],[3,`ngTemplateOutlet`],[1,`ant-upload-list-item-progress`],[1,`ant-upload-list-item-thumbnail`,3,`ant-upload-list-item-file`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`ant-upload-list-item-thumbnail`,3,`ant-upload-list-item-file`,`href`],[1,`ant-upload-text-icon`],[1,`ant-upload-list-item-thumbnail`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`ant-upload-list-item-thumbnail`,3,`click`,`href`],[1,`ant-upload-list-item-image`,3,`src`],[3,`nzType`],[`nzType`,`loading`],[`nzTheme`,`twotone`,3,`nzType`],[`type`,`button`,`nz-button`,``,`nzType`,`text`,`nzSize`,`small`,1,`ant-upload-list-item-card-actions-btn`],[`type`,`button`,`nz-button`,``,`nzType`,`text`,`nzSize`,`small`,1,`ant-upload-list-item-card-actions-btn`,3,`click`],[`nzType`,`delete`],[`nzType`,`download`],[1,`ant-upload-list-item-card-actions`,3,`picture`],[1,`ant-upload-list-item-card-actions`],[1,`ant-upload-list-item-extra`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`ant-upload-list-item-name`,3,`href`],[1,`ant-upload-list-item-name`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`ant-upload-list-item-name`,3,`click`,`href`],[1,`ant-upload-list-item-name`,3,`click`],[1,`ant-upload-list-item-actions`],[`target`,`_blank`,`rel`,`noopener noreferrer`,3,`href`,`style`],[`target`,`_blank`,`rel`,`noopener noreferrer`,3,`click`,`href`],[`nzType`,`eye`],[`nzType`,`line`,3,`nzPercent`,`nzShowInfo`,`nzStrokeWidth`]],template:function(d,i){d&1&&(By(0),Yl(1,Nn,22,12,`div`,7,jl)),d&2&&(fO(i.listType()),A(),Ul(i.list))},dependencies:[Xs$1,Ys,ka$1,xr$2,Gt$2,v5,a3,f5,sn$2,gt],encapsulation:2})})()}return m})();var dn$1=`ant-upload`;var An$1=(()=>{class m{static ngAcceptInputType_nzShowUploadList;cdr=h(Qe$1);i18n=h(sV);destroyRef=h(re$1);document=h(z$2);platform=h(Me$3);dir=h(Ue$1).valueSignal;uploadComp;listComp;locale;nzId=pe$1();nzType=`select`;nzLimit=0;nzSize=0;nzFileType;nzAccept;nzAction;nzDirectory=!1;nzOpenFileDialogOnClick=!0;nzBeforeUpload;nzCustomRequest;nzData;nzFilter=[];nzFileList=[];nzDisabled=!1;nzHeaders;nzListType=`text`;nzMultiple=!1;nzName=`file`;_showUploadList=!0;set nzShowUploadList(e){this._showUploadList=typeof e==`boolean`?O1e(e):e}get nzShowUploadList(){return this._showUploadList}nzShowButton=!0;nzWithCredentials=!1;nzRemove;nzPreview;nzPreviewFile;nzPreviewIsImage;nzDownload;nzIconRender=null;nzFileListRender=null;nzMaxCount=pe$1();nzChange=new O$1;nzFileListChange=new O$1;_btnOptions;zipOptions(){typeof this.nzShowUploadList==`boolean`&&this.nzShowUploadList&&(this.nzShowUploadList={showPreviewIcon:!0,showRemoveIcon:!0,showDownloadIcon:!0});let e=this.nzFilter.slice();if(this.nzMultiple&&this.nzLimit>0&&e.findIndex(n=>n.name===`limit`)===-1&&e.push({name:`limit`,fn:n=>n.slice(-this.nzLimit)}),this.nzSize>0&&e.findIndex(n=>n.name===`size`)===-1&&e.push({name:`size`,fn:n=>n.filter(o=>o.size/1024<=this.nzSize)}),this.nzFileType&&this.nzFileType.length>0&&e.findIndex(n=>n.name===`type`)===-1){let n=this.nzFileType.split(`,`);e.push({name:`type`,fn:o=>o.filter(a=>~n.indexOf(a.type))})}return this._btnOptions={disabled:this.nzDisabled,accept:this.nzAccept,action:this.nzAction,directory:this.nzDirectory,openFileDialogOnClick:this.nzOpenFileDialogOnClick,beforeUpload:this.nzBeforeUpload,customRequest:this.nzCustomRequest,data:this.nzData,headers:this.nzHeaders,name:this.nzName,multiple:this.nzMultiple,withCredentials:this.nzWithCredentials,filters:e,onStart:this.onStart,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError},this}fileToObject(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.filename||e.name,size:e.size,type:e.type,uid:e.uid,response:e.response,error:e.error,percent:0,originFileObj:e}}getFileItem(e,n){return n.filter(o=>o.uid===e.uid)[0]}removeFileItem(e,n){return n.filter(o=>o.uid!==e.uid)}onStart=e=>{let n=this.nzMaxCount();this.nzFileList||(this.nzFileList=[]);let o=this.fileToObject(e);o.status=`uploading`,n===1?this.nzFileList=[o]:(!n||n<=0||this.nzFileList.length<n)&&(this.nzFileList=[...this.nzFileList,o]),this.nzFileListChange.emit(this.nzFileList),this.nzChange.emit({file:o,fileList:this.nzFileList,type:`start`}),this.detectChangesList()};onProgress=(e,n)=>{let o=this.nzFileList,a=this.getFileItem(n,o);a&&(a.percent=e.percent,this.nzChange.emit({event:e,file:a,fileList:this.nzFileList,type:`progress`}),this.detectChangesList())};onSuccess=(e,n)=>{let o=this.nzFileList,a=this.getFileItem(n,o);a&&(a.status=`done`,a.response=e,this.nzChange.emit({file:a,fileList:o,type:`success`}),this.detectChangesList())};onError=(e,n)=>{let o=this.nzFileList,a=this.getFileItem(n,o);a&&(a.error=e,a.status=`error`,this.nzChange.emit({file:g$1({},a),fileList:o,type:`error`}),this.detectChangesList())};dragState;fileDrop(e){e.type!==this.dragState&&(this.dragState=e.type,this.setClassMap())}detectChangesList(){this.cdr.detectChanges(),this.listComp?.detectChanges()}onRemove=e=>{this.uploadComp.abort(e),e.status=`removed`;let n=typeof this.nzRemove==`function`?this.nzRemove(e):this.nzRemove==null?!0:this.nzRemove;(n instanceof T$1?n:S(n)).pipe(ne(o=>o)).subscribe(()=>{this.nzFileList=this.removeFileItem(e,this.nzFileList),this.nzChange.emit({file:e,fileList:this.nzFileList,type:`removed`}),this.nzFileListChange.emit(this.nzFileList),this.cdr.detectChanges()})};classList=G$1([]);setClassMap(){let e=[];this.nzType===`drag`?(this.nzFileList.some(n=>n.status===`uploading`)&&e.push(this.generateClass(`drag-uploading`)),this.dragState===`dragover`&&e.push(this.generateClass(`drag-hover`))):e=[this.generateClass(`select-${this.nzListType}`)],this.nzDisabled&&e.push(this.generateClass(`disabled`)),this.classList.set([dn$1,this.generateClass(this.nzType),...e])}ngOnInit(){this.i18n.localeChange.pipe(be$1(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData(`Upload`),this.detectChangesList()})}
10ngAfterViewInit(){this.platform.FIREFOX&&A1(this.document.body,`drop`).pipe(be$1(this.destroyRef)).subscribe(e=>{e.preventDefault(),e.stopPropagation()})}ngOnChanges(){this.zipOptions().setClassMap()}generateClass(e){return un$1(dn$1,e)}static ɵfac=function(n){return new(n||m)};static ɵcmp=(function(){let e=[`uploadComp`],n=[`listComp`],o=[`*`],a=()=>[],f=s=>({$implicit:s});function C(s,h){if(s&1&&pt$1(0,`nz-upload-list`,6,3),s&2){let c=F$2(2);It$2(`display`,c.nzShowUploadList?``:`none`),ie$1(`locale`,c.locale)(`listType`,c.nzListType)(`items`,c.nzFileList||MO(12,a))(`icons`,c.nzShowUploadList)(`iconRender`,c.nzIconRender)(`previewFile`,c.nzPreviewFile)(`previewIsImage`,c.nzPreviewIsImage)(`onPreview`,c.nzPreview)(`onRemove`,c.onRemove)(`onDownload`,c.nzDownload)}}function v(s,h){s&1&&Xs(0)}function U(s,h){if(s&1&&qe$1(0,v,1,0,`ng-container`,7),s&2){let c=F$2(2);ie$1(`ngTemplateOutlet`,c.nzFileListRender)(`ngTemplateOutletContext`,ff(2,f,c.nzFileList))}}function A$3(s,h){if(s&1&&(ve$1(0,C,2,13,`nz-upload-list`,5),ve$1(1,U,1,4,`ng-container`)),s&2){let c=F$2();ye$1(c.locale&&!c.nzFileListRender?0:-1),A(),ye$1(c.nzFileListRender?1:-1)}}function M(s,h){s&1&&Wt$1(0)}function b(s,h){}function O(s,h){if(s&1&&(oe$2(0,`div`)(1,`div`,8,4),qe$1(3,b,0,0,`ng-template`,9),he$1()()),s&2){let c=F$2(),S=Wl(3);Lt$1(c.classList()),It$2(`display`,c.nzShowButton?``:`none`),Ze(`ant-upload-rtl`,c.dir()===`rtl`),A(),ie$1(`options`,c._btnOptions)(`nzId`,c.nzId()),A(2),ie$1(`ngTemplateOutlet`,S)}}function de(s,h){}function me(s,h){}function ue(s,h){if(s&1){let c=on();oe$2(0,`div`,10),je$1(`drop`,function($){gt$1(c);let E=F$2();return vt(E.fileDrop($))})(`dragover`,function($){gt$1(c);let E=F$2();return vt(E.fileDrop($))})(`dragleave`,function($){gt$1(c);let E=F$2();return vt(E.fileDrop($))}),oe$2(1,`div`,11,4)(3,`div`,12),qe$1(4,de,0,0,`ng-template`,9),he$1()()(),qe$1(5,me,0,0,`ng-template`,9)}if(s&2){let c=F$2(),S=Wl(1),$=Wl(3);Lt$1(c.classList()),Ze(`ant-upload-rtl`,c.dir()===`rtl`),A(),ie$1(`options`,c._btnOptions)(`nzId`,c.nzId()),A(3),ie$1(`ngTemplateOutlet`,$),A(),ie$1(`ngTemplateOutlet`,S)}}function _e(s,h){}function fe(s,h){}function ge(s,h){if(s&1&&qe$1(0,_e,0,0,`ng-template`,9)(1,fe,0,0,`ng-template`,9),s&2){F$2(2);let c=Wl(1),S=Wl(5);ie$1(`ngTemplateOutlet`,c),A(),ie$1(`ngTemplateOutlet`,S)}}function ze(s,h){}function Xe(s,h){}function T(s,h){if(s&1&&qe$1(0,ze,0,0,`ng-template`,9)(1,Xe,0,0,`ng-template`,9),s&2){F$2(2);let c=Wl(1),S=Wl(5);ie$1(`ngTemplateOutlet`,S),A(),ie$1(`ngTemplateOutlet`,c)}}function l(s,h){if(s&1&&ve$1(0,ge,2,2)(1,T,2,2),s&2){let c=F$2();ye$1(c.nzListType===`picture-card`?0:1)}}return Se$1({type:m,selectors:[[`nz-upload`]],viewQuery:function(h,c){if(h&1&&Kn(e,5)(n,5),h&2){let S;Ge(S=Ke())&&(c.uploadComp=S.first),Ge(S=Ke())&&(c.listComp=S.first)}},hostVars:2,hostBindings:function(h,c){h&2&&Ze(`ant-upload-picture-card-wrapper`,c.nzListType===`picture-card`)},inputs:{nzId:[1,`nzId`],nzType:`nzType`,nzLimit:[2,`nzLimit`,`nzLimit`,Oo$1],nzSize:[2,`nzSize`,`nzSize`,Oo$1],nzFileType:`nzFileType`,nzAccept:`nzAccept`,nzAction:`nzAction`,nzDirectory:[2,`nzDirectory`,`nzDirectory`,H$2],nzOpenFileDialogOnClick:[2,`nzOpenFileDialogOnClick`,`nzOpenFileDialogOnClick`,H$2],nzBeforeUpload:`nzBeforeUpload`,nzCustomRequest:`nzCustomRequest`,nzData:`nzData`,nzFilter:`nzFilter`,nzFileList:`nzFileList`,nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzHeaders:`nzHeaders`,nzListType:`nzListType`,nzMultiple:[2,`nzMultiple`,`nzMultiple`,H$2],nzName:`nzName`,nzShowUploadList:`nzShowUploadList`,nzShowButton:[2,`nzShowButton`,`nzShowButton`,H$2],nzWithCredentials:[2,`nzWithCredentials`,`nzWithCredentials`,H$2],nzRemove:`nzRemove`,nzPreview:`nzPreview`,nzPreviewFile:`nzPreviewFile`,nzPreviewIsImage:`nzPreviewIsImage`,nzDownload:`nzDownload`,nzIconRender:`nzIconRender`,nzFileListRender:`nzFileListRender`,nzMaxCount:[1,`nzMaxCount`]},outputs:{nzChange:`nzChange`,nzFileListChange:`nzFileListChange`},exportAs:[`nzUpload`],features:[Te$1],ngContentSelectors:o,decls:8,vars:1,consts:[[`list`,``],[`con`,``],[`btn`,``],[`listComp`,``],[`uploadComp`,``],[3,`display`,`locale`,`listType`,`items`,`icons`,`iconRender`,`previewFile`,`previewIsImage`,`onPreview`,`onRemove`,`onDownload`],[3,`locale`,`listType`,`items`,`icons`,`iconRender`,`previewFile`,`previewIsImage`,`onPreview`,`onRemove`,`onDownload`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nz-upload-btn`,``,3,`options`,`nzId`],[3,`ngTemplateOutlet`],[3,`drop`,`dragover`,`dragleave`],[`nz-upload-btn`,``,1,`ant-upload-btn`,3,`options`,`nzId`],[1,`ant-upload-drag-container`]],template:function(h,c){h&1&&(yn$1(),qe$1(0,A$3,2,2,`ng-template`,null,0,ql$1)(2,M,1,0,`ng-template`,null,1,ql$1)(4,O,4,9,`ng-template`,null,2,ql$1),ve$1(6,ue,6,8)(7,l,2,1)),h&2&&(A(6),ye$1(c.nzType===`drag`?6:7))},dependencies:[mn$1,ka$1,En],encapsulation:2})})()}return m})();var Ni$1=(()=>{class m{static ɵfac=function(n){return new(n||m)};static ɵmod=ee$3({type:m});static ɵinj=X$2({imports:[An$1,mn$1]})}return m})();var zt=class m{srv=h(ci$1);transform(N,e){return this.srv.format(N,e)}static ɵfac=function(e){return new(e||m)};static ɵpipe=_t$1({name:`price`,type:m,pure:!0})};var ht=class m{srv=h(ci$1);isCN=h(bi$1).startsWith(`zh`);transform(N,e){let n=this.srv.mega(N,e);return n.value+(this.isCN?n.unitI18n:n.unit)}static ɵfac=function(e){return new(e||m)};static ɵpipe=_t$1({name:`mega`,type:m,pure:!0})};
10var Ct=class m{srv=h(ci$1);transform(N,e){return this.srv.cny(N,e)}static ɵfac=function(e){return new(e||m)};static ɵpipe=_t$1({name:`cny`,type:m,pure:!0})};var yt=class m{transform(N,e){return or$2(N,e)}static ɵfac=function(e){return new(e||m)};static ɵpipe=_t$1({name:`mask`,type:m,pure:!0})};var xt=class m{transform(N,e,...n){return N.filter(o=>e(o,...n))}static ɵfac=function(e){return new(e||m)};static ɵpipe=_t$1({name:`filter`,type:m,pure:!1})};var Dt$2=(()=>{class o{active=!1;locale;index=null;disabled=!1;direction=`ltr`;type=null;itemRender=null;diffIndex=new O$1;gotoIndex=new O$1;title=null;clickItem(){this.disabled||(this.type===`page`?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(e){let{locale:t,index:n,type:a}=e;(t||n||a)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=(v,k)=>({$implicit:v,page:k});function t(v,k){if(v&1&&(oe$2(0,`a`),an$3(1),he$1()),v&2){let w=F$2().page;A(),vr$3(w)}}function n(v,k){v&1&&pt$1(0,`nz-icon`,4)}function a(v,k){v&1&&pt$1(0,`nz-icon`,5)}function i(v,k){if(v&1&&(oe$2(0,`button`,2),ve$1(1,n,1,0,`nz-icon`,4)(2,a,1,0,`nz-icon`,5),he$1()),v&2){let w=F$2(2);ie$1(`disabled`,w.disabled),$t(`title`,w.locale.prev_page),A(),ye$1(w.direction===`rtl`?1:2)}}function l(v,k){v&1&&pt$1(0,`nz-icon`,5)}function r(v,k){v&1&&pt$1(0,`nz-icon`,4)}function c(v,k){if(v&1&&(oe$2(0,`button`,2),ve$1(1,l,1,0,`nz-icon`,5)(2,r,1,0,`nz-icon`,4),he$1()),v&2){let w=F$2(2);ie$1(`disabled`,w.disabled),$t(`title`,w.locale.next_page),A(),ye$1(w.direction===`rtl`?1:2)}}function s(v,k){v&1&&pt$1(0,`nz-icon`,8)}function p(v,k){v&1&&pt$1(0,`nz-icon`,9)}function g(v,k){if(v&1&&ve$1(0,s,1,0,`nz-icon`,8)(1,p,1,0,`nz-icon`,9),v&2){let w=F$2(3);ye$1(w.direction===`rtl`?0:1)}}function z(v,k){v&1&&pt$1(0,`nz-icon`,9)}function S(v,k){v&1&&pt$1(0,`nz-icon`,8)}function h(v,k){if(v&1&&ve$1(0,z,1,0,`nz-icon`,9)(1,S,1,0,`nz-icon`,8),v&2){let w=F$2(3);ye$1(w.direction===`rtl`?0:1)}}function x(v,k){if(v&1&&(oe$2(0,`a`,3)(1,`div`,6),ve$1(2,g,2,1)(3,h,2,1),oe$2(4,`span`,7),an$3(5,`•••`),he$1()()()),v&2){let w,I=F$2().$implicit;A(2),ye$1((w=I)===`prev_5`?2:w===`next_5`?3:-1)}}function b(v,k){if(v&1&&ve$1(0,t,2,1,`a`)(1,i,3,3,`button`,2)(2,c,3,3,`button`,2)(3,x,6,1,`a`,3),v&2){let w,I=k.$implicit;ye$1((w=I)===`page`?0:w===`prev`?1:w===`next`?2:3)}}function B(v,k){}return Se$1({type:o,selectors:[[`li`,`nz-pagination-item`,``]],hostVars:19,hostBindings:function(k,w){k&1&&je$1(`click`,function(){return w.clickItem()}),k&2&&($t(`title`,w.title),Ze(`ant-pagination-prev`,w.type===`prev`)(`ant-pagination-next`,w.type===`next`)(`ant-pagination-item`,w.type===`page`)(`ant-pagination-jump-prev`,w.type===`prev_5`)(`ant-pagination-jump-prev-custom-icon`,w.type===`prev_5`)(`ant-pagination-jump-next`,w.type===`next_5`)(`ant-pagination-jump-next-custom-icon`,w.type===`next_5`)(`ant-pagination-disabled`,w.disabled)(`ant-pagination-item-active`,w.active))},inputs:{active:`active`,locale:`locale`,index:`index`,disabled:`disabled`,direction:`direction`,type:`type`,itemRender:`itemRender`},outputs:{diffIndex:`diffIndex`,gotoIndex:`gotoIndex`},features:[Te$1],decls:3,vars:5,consts:[[`renderItemTemplate`,``],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`type`,`button`,1,`ant-pagination-item-link`,3,`disabled`],[1,`ant-pagination-item-link`],[`nzType`,`right`],[`nzType`,`left`],[1,`ant-pagination-item-container`],[1,`ant-pagination-item-ellipsis`],[`nzType`,`double-right`,1,`ant-pagination-item-link-icon`],[`nzType`,`double-left`,1,`ant-pagination-item-link-icon`]],template:function(k,w){if(k&1&&qe$1(0,b,4,1,`ng-template`,null,0,ql$1)(2,B,0,0,`ng-template`,1),k&2){let I=Wl(1);A(2),ie$1(`ngTemplateOutlet`,w.itemRender||I)(`ngTemplateOutletContext`,pf(2,e,w.type,w.index))}},dependencies:[xr$2,Gt$2,ka$1],encapsulation:2})})()}return o})();var bn$2=(()=>{class o{nzSize=`default`;disabled=!1;showSizeChanger=!1;showQuickJumper=!1;locale;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[];pageIndexChange=new O$1;pageSizeChange=new O$1;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e)}jumpToPageViaInput(e){let t=e.target,n=Math.floor(N1e(t.value,this.pageIndex));this.pageIndexChange.next(n),t.value=``}ngOnChanges(e){let{pageSize:t,pageSizeOptions:n,locale:a}=e;(t||n||a)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(i=>({value:i,label:`${i} ${this.locale.items_per_page}`})))}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=(i,l)=>l.value;function t(i,l){if(i&1&&pt$1(0,`nz-option`,3),i&2){let r=l.$implicit;ie$1(`nzLabel`,r.label)(`nzValue`,r.value)}}function n(i,l){if(i&1){let r=on();oe$2(0,`nz-select`,2),hI(),je$1(`ngModelChange`,function(s){gt$1(r);let p=F$2();return vt(p.onPageSizeChange(s))}),Yl(1,t,1,2,`nz-option`,3,e),he$1()}if(i&2){let r=F$2();ie$1(`nzDisabled`,r.disabled)(`nzSize`,r.nzSize)(`ngModel`,r.pageSize),pI(),A(),Ul(r.listOfPageSizeOption)}}function a(i,l){if(i&1){let r=on();oe$2(0,`div`,1),an$3(1),oe$2(2,`input`,4),je$1(`keydown.enter`,function(s){gt$1(r);let p=F$2();return vt(p.jumpToPageViaInput(s))}),he$1(),an$3(3),he$1()}if(i&2){let r=F$2();A(),Io$1(` `,r.locale.jump_to,` `),A(),ie$1(`disabled`,r.disabled),A(),Io$1(` `,r.locale.page,` `)}}return Se$1({type:o,selectors:[[`li`,`nz-pagination-options`,``]],hostAttrs:[1,`ant-pagination-options`],inputs:{nzSize:`nzSize`,disabled:`disabled`,showSizeChanger:`showSizeChanger`,showQuickJumper:`showQuickJumper`,locale:`locale`,total:`total`,pageIndex:`pageIndex`,pageSize:`pageSize`,pageSizeOptions:`pageSizeOptions`},outputs:{pageIndexChange:`pageIndexChange`,pageSizeChange:`pageSizeChange`},features:[Te$1],decls:2,vars:2,consts:[[1,`ant-pagination-options-size-changer`,3,`nzDisabled`,`nzSize`,`ngModel`],[1,`ant-pagination-options-quick-jumper`],[1,`ant-pagination-options-size-changer`,3,`ngModelChange`,`nzDisabled`,`nzSize`,`ngModel`],[3,`nzLabel`,`nzValue`],[3,`keydown.enter`,`disabled`]],template:function(l,r){l&1&&(ve$1(0,n,3,3,`nz-select`,0),ve$1(1,a,4,3,`div`,1)),l&2&&(ye$1(r.showSizeChanger?0:-1),A(),ye$1(r.showQuickJumper?1:-1))},dependencies:[Gl$1,Ba$1,Wa$1,fr$2,jn$2,Fi],encapsulation:2})})()}return o}
10)();var Sn$1=(()=>{class o{dir=h(Ue$1).valueSignal;template;nzSize=`default`;itemRender=null;showTotal=null;disabled=!1;locale;showSizeChanger=!1;showQuickJumper=!1;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[10,20,30,40];pageIndexChange=new O$1;pageSizeChange=new O$1;ranges=[0,0];listOfPageItem=[];constructor(){let e=h($$2).nativeElement,t=h(We$2);t.removeChild(t.parentNode(e),e)}jumpPage(e){this.onPageIndexChange(e)}jumpDiff(e){this.jumpPage(this.pageIndex+e)}trackByPageItem(e,t){return`${t.type}-${t.index}`}onPageIndexChange(e){this.pageIndexChange.next(e)}onPageSizeChange(e){this.pageSizeChange.next(e)}getLastIndex(e,t){return(t>0?Math.ceil(e/t):0)||1}buildIndexes(){let e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)}getListOfPageItem(e,t){let n=i=>{let l={type:`prev`,disabled:e===1},r={type:`next`,disabled:e===t};return[l,...i,r]},a=(i,l)=>{let r=[];for(let c=i;c<=l;c++)r.push({index:c,type:`page`});return r};return t<=9?n(a(1,t)):n(((l,r)=>{let c=[],s={type:`prev_5`},p={type:`next_5`},g=a(1,1),z=a(t,t);if(l<5)c=[...a(2,l===4?6:5),p];else if(l<r-3)c=[s,...a(l-2,l+2),p];else{let S=l===r-3?r-5:r-4;c=[s,...a(S,r-1)]}return[...g,...c,...z]})(e,t))}ngOnChanges(e){let{pageIndex:t,pageSize:n,total:a}=e;(t||n||a)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`containerTemplate`],t=(c,s)=>({$implicit:c,range:s});function n(c,s){}function a(c,s){if(c&1&&(oe$2(0,`li`,1),qe$1(1,n,0,0,`ng-template`,4),he$1()),c&2){let p=F$2(2);A(),ie$1(`ngTemplateOutlet`,p.showTotal)(`ngTemplateOutletContext`,pf(2,t,p.total,p.ranges))}}function i(c,s){if(c&1){let p=on();oe$2(0,`li`,5),je$1(`gotoIndex`,function(z){gt$1(p);let S=F$2(2);return vt(S.jumpPage(z))})(`diffIndex`,function(z){gt$1(p);let S=F$2(2);return vt(S.jumpDiff(z))}),he$1()}if(c&2){let p=s.$implicit,g=F$2(2);ie$1(`locale`,g.locale)(`type`,p.type)(`index`,p.index)(`disabled`,!!p.disabled)(`itemRender`,g.itemRender)(`active`,g.pageIndex===p.index)(`direction`,g.dir())}}function l(c,s){if(c&1){let p=on();oe$2(0,`li`,6),je$1(`pageIndexChange`,function(z){gt$1(p);let S=F$2(2);return vt(S.onPageIndexChange(z))})(`pageSizeChange`,function(z){gt$1(p);let S=F$2(2);return vt(S.onPageSizeChange(z))}),he$1()}if(c&2){let p=F$2(2);ie$1(`total`,p.total)(`locale`,p.locale)(`disabled`,p.disabled)(`nzSize`,p.nzSize)(`showSizeChanger`,p.showSizeChanger)(`showQuickJumper`,p.showQuickJumper)(`pageIndex`,p.pageIndex)(`pageSize`,p.pageSize)(`pageSizeOptions`,p.pageSizeOptions)}}function r(c,s){if(c&1&&(oe$2(0,`ul`),ve$1(1,a,2,5,`li`,1),Yl(2,i,1,7,`li`,2,SP().trackByPageItem,!0),ve$1(4,l,1,9,`li`,3),he$1()),c&2){let p=F$2();A(),ye$1(p.showTotal?1:-1),A(),Ul(p.listOfPageItem),A(2),ye$1(p.showQuickJumper||p.showSizeChanger?4:-1)}}return Se$1({type:o,selectors:[[`nz-pagination-default`]],viewQuery:function(s,p){if(s&1&&Kn(e,7),s&2){let g;Ge(g=Ke())&&(p.template=g.first)}},hostVars:2,hostBindings:function(s,p){s&2&&Ze(`ant-pagination-rtl`,p.dir()===`rtl`)},inputs:{nzSize:`nzSize`,itemRender:`itemRender`,showTotal:`showTotal`,disabled:`disabled`,locale:`locale`,showSizeChanger:`showSizeChanger`,showQuickJumper:`showQuickJumper`,total:`total`,pageIndex:`pageIndex`,pageSize:`pageSize`,pageSizeOptions:`pageSizeOptions`},outputs:{pageIndexChange:`pageIndexChange`,pageSizeChange:`pageSizeChange`},features:[Te$1],decls:2,vars:0,consts:[[`containerTemplate`,``],[1,`ant-pagination-total-text`],[`nz-pagination-item`,``,3,`locale`,`type`,`index`,`disabled`,`itemRender`,`active`,`direction`],[`nz-pagination-options`,``,3,`total`,`locale`,`disabled`,`nzSize`,`showSizeChanger`,`showQuickJumper`,`pageIndex`,`pageSize`,`pageSizeOptions`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nz-pagination-item`,``,3,`gotoIndex`,`diffIndex`,`locale`,`type`,`index`,`disabled`,`itemRender`,`active`,`direction`],[`nz-pagination-options`,``,3,`pageIndexChange`,`pageSizeChange`,`total`,`locale`,`disabled`,`nzSize`,`showSizeChanger`,`showQuickJumper`,`pageIndex`,`pageSize`,`pageSizeOptions`]],template:function(s,p){s&1&&qe$1(0,r,5,2,`ng-template`,null,0,ql$1)},dependencies:[ka$1,Dt$2,bn$2],encapsulation:2})})()}return o}
10)();var _n=(()=>{class o{dir=h(Ue$1).valueSignal;template;itemRender=null;disabled=!1;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new O$1;lastIndex=0;isFirstIndex=!1;isLastIndex=!1;constructor(){let e=h($$2).nativeElement,t=h(We$2);t.removeChild(t.parentNode(e),e)}jumpToPageViaInput(e){let t=e.target,n=N1e(t.value,this.pageIndex);this.onPageIndexChange(n),t.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(e){this.pageIndexChange.next(e)}updateBindingValue(){let e=this.pageSize>0?Math.ceil(this.total/this.pageSize):0;this.lastIndex=e||1,this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(e){let{pageIndex:t,total:n,pageSize:a}=e;(t||n||a)&&this.updateBindingValue()}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`containerTemplate`];function t(n,a){if(n&1){let i=on();oe$2(0,`ul`)(1,`li`,1),je$1(`click`,function(){gt$1(i);let r=F$2();return vt(r.prePage())}),he$1(),oe$2(2,`li`,2)(3,`input`,3),je$1(`keydown.enter`,function(r){gt$1(i);let c=F$2();return vt(c.jumpToPageViaInput(r))}),he$1(),oe$2(4,`span`,4),an$3(5,`/`),he$1(),an$3(6),he$1(),oe$2(7,`li`,5),je$1(`click`,function(){gt$1(i);let r=F$2();return vt(r.nextPage())}),he$1()()}if(n&2){let i=F$2();A(),ie$1(`locale`,i.locale)(`disabled`,i.isFirstIndex)(`direction`,i.dir())(`itemRender`,i.itemRender),$t(`title`,i.locale.prev_page),A(),$t(`title`,i.pageIndex+`/`+i.lastIndex),A(),ie$1(`disabled`,i.disabled)(`value`,i.pageIndex),A(3),Io$1(` `,i.lastIndex,` `),A(),ie$1(`locale`,i.locale)(`disabled`,i.isLastIndex)(`direction`,i.dir())(`itemRender`,i.itemRender),$t(`title`,i.locale?.next_page)}}return Se$1({type:o,selectors:[[`nz-pagination-simple`]],viewQuery:function(a,i){if(a&1&&Kn(e,7),a&2){let l;Ge(l=Ke())&&(i.template=l.first)}},hostVars:2,hostBindings:function(a,i){a&2&&Ze(`ant-pagination-rtl`,i.dir()===`rtl`)},inputs:{itemRender:`itemRender`,disabled:`disabled`,locale:`locale`,total:`total`,pageIndex:`pageIndex`,pageSize:`pageSize`},outputs:{pageIndexChange:`pageIndexChange`},features:[Te$1],decls:2,vars:0,consts:[[`containerTemplate`,``],[`nz-pagination-item`,``,`type`,`prev`,3,`click`,`locale`,`disabled`,`direction`,`itemRender`],[1,`ant-pagination-simple-pager`],[`size`,`3`,3,`keydown.enter`,`disabled`,`value`],[1,`ant-pagination-slash`],[`nz-pagination-item`,``,`type`,`next`,3,`click`,`locale`,`disabled`,`direction`,`itemRender`]],template:function(a,i){a&1&&qe$1(0,t,8,14,`ng-template`,null,0,ql$1)},dependencies:[Dt$2],encapsulation:2})})()}return o})();var Rn$1=`pagination`;var Ft=(()=>{let o,de=[],e=[],t,n=[],a=[],i,l=[],r=[],c,s=[],p=[],g,z=[],S=[];return class Pt{static{let x=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;o=[Bo()],t=[Bo()],i=[Bo()],c=[Bo()],g=[Bo()],uo$2(null,null,o,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:b=>`nzSize`in b,get:b=>b.nzSize,set:(b,B)=>{b.nzSize=B}},metadata:x},de,e),uo$2(null,null,t,{kind:`field`,name:`nzPageSizeOptions`,static:!1,private:!1,access:{has:b=>`nzPageSizeOptions`in b,get:b=>b.nzPageSizeOptions,set:(b,B)=>{b.nzPageSizeOptions=B}},metadata:x},n,a),uo$2(null,null,i,{kind:`field`,name:`nzShowSizeChanger`,static:!1,private:!1,access:{has:b=>`nzShowSizeChanger`in b,get:b=>b.nzShowSizeChanger,set:(b,B)=>{b.nzShowSizeChanger=B}},metadata:x},l,r),uo$2(null,null,c,{kind:`field`,name:`nzShowQuickJumper`,static:!1,private:!1,access:{has:b=>`nzShowQuickJumper`in b,get:b=>b.nzShowQuickJumper,set:(b,B)=>{b.nzShowQuickJumper=B}},metadata:x},s,p),uo$2(null,null,g,{kind:`field`,name:`nzSimple`,static:!1,private:!1,access:{has:b=>`nzSimple`in b,get:b=>b.nzSimple,set:(b,B)=>{b.nzSimple=B}},metadata:x},z,S),x&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:x})}_nzModuleName=Rn$1;i18n=h(sV);cdr=h(Qe$1);breakpointService=h($De);nzConfigService=h(Xr$3);dir=h(Ue$1).valueSignal;destroyRef=h(re$1);nzPageSizeChange=new O$1;nzPageIndexChange=new O$1;nzShowTotal=null;nzItemRender=null;nzSize=mn$3(this,de,`default`);nzPageSizeOptions=(mn$3(this,e),mn$3(this,n,[10,20,30,40]));nzShowSizeChanger=(mn$3(this,a),mn$3(this,l,!1));nzShowQuickJumper=(mn$3(this,r),mn$3(this,s,!1));nzSimple=(mn$3(this,p),mn$3(this,z,!1));nzDisabled=(mn$3(this,S),!1);nzResponsive=!1;nzHideOnSinglePage=!1;nzTotal=0;nzPageIndex=1;nzPageSize=10;nzAlign=pe$1(`start`);showPagination=!0;locale;size=`default`;total$=new lo$1(1);validatePageIndex(x,b){return x>b?b:x<1?1:x}onPageIndexChange(x){let b=this.getLastIndex(this.nzTotal,this.nzPageSize),B=this.validatePageIndex(x,b);B!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=B,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(x){this.nzPageSize=x,this.nzPageSizeChange.emit(x);let b=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>b&&this.onPageIndexChange(b)}onTotalChange(x){let b=this.getLastIndex(x,this.nzPageSize);this.nzPageIndex>b&&Promise.resolve().then(()=>{this.onPageIndexChange(b),this.cdr.markForCheck()})}getLastIndex(x,b){return(b>0?Math.ceil(x/b):0)||1}ngOnInit(){this.i18n.localeChange.pipe(be$1(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData(`Pagination`),this.cdr.markForCheck()}),this.total$.pipe(be$1(this.destroyRef)).subscribe(x=>{this.onTotalChange(x)}),this.breakpointService.subscribe(kB).pipe(be$1(this.destroyRef)).subscribe(x=>{this.nzResponsive&&(this.size=x===zx.xs?`small`:`default`,this.cdr.markForCheck())})}ngOnChanges(x){let{nzHideOnSinglePage:b,nzTotal:B,nzPageSize:v,nzSize:k}=x;B&&this.total$.next(this.nzTotal),(b||B||v)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),k&&(this.size=k.currentValue)}static ɵfac=function(b){return new(b||Pt)};static ɵcmp=(function(){function x(w,I){}function b(w,I){if(w&1&&qe$1(0,x,0,0,`ng-template`,4),w&2){F$2(2);let d=Wl(2);ie$1(`ngTemplateOutlet`,d.template)}}function B(w,I){}function v(w,I){if(w&1&&qe$1(0,B,0,0,`ng-template`,4),w&2){F$2(2);let d=Wl(4);ie$1(`ngTemplateOutlet`,d.template)}}function k(w,I){if(w&1&&ve$1(0,b,1,1,null,4)(1,v,1,1,null,4),w&2){let d=F$2();ye$1(d.nzSimple?0:1)}}return Se$1({type:Pt,selectors:[[`nz-pagination`]],hostAttrs:[1,`ant-pagination`],hostVars:14,hostBindings:function(I,d){I&2&&Ze(`ant-pagination-simple`,d.nzSimple)(`ant-pagination-disabled`,d.nzDisabled)(`ant-pagination-mini`,!d.nzSimple&&d.size===`small`)(`ant-pagination-rtl`,d.dir()===`rtl`)(`ant-pagination-start`,d.nzAlign()===`start`)(`ant-pagination-center`,d.nzAlign()===`center`)(`ant-pagination-end`,d.nzAlign()===`end`)},inputs:{nzShowTotal:`nzShowTotal`,nzItemRender:`nzItemRender`,nzSize:`nzSize`,nzPageSizeOptions:`nzPageSizeOptions`,nzShowSizeChanger:[2,`nzShowSizeChanger`,`nzShowSizeChanger`,H$2],nzShowQuickJumper:[2,`nzShowQuickJumper`,`nzShowQuickJumper`,H$2],nzSimple:[2,`nzSimple`,`nzSimple`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzResponsive:[2,`nzResponsive`,`nzResponsive`,H$2],nzHideOnSinglePage:[2,`nzHideOnSinglePage`,`nzHideOnSinglePage`,H$2],nzTotal:[2,`nzTotal`,`nzTotal`,Oo$1],nzPageIndex:[2,`nzPageIndex`,`nzPageIndex`,Oo$1],nzPageSize:[2,`nzPageSize`,`nzPageSize`,Oo$1],nzAlign:[1,`nzAlign`]},outputs:{nzPageSizeChange:`nzPageSizeChange`,nzPageIndexChange:`nzPageIndexChange`},exportAs:[`nzPagination`],features:[Te$1],decls:5,vars:18,consts:[[`simplePagination`,``],[`defaultPagination`,``],[3,`pageIndexChange`,`disabled`,`itemRender`,`locale`,`pageSize`,`total`,`pageIndex`],[3,`pageIndexChange`,`pageSizeChange`,`nzSize`,`itemRender`,`showTotal`,`disabled`,`locale`,`showSizeChanger`,`showQuickJumper`,`total`,`pageIndex`,`pageSize`,`pageSizeOptions`],[3,`ngTemplateOutlet`]],template:function(I,d){I&1&&(ve$1(0,k,2,1),oe$2(1,`nz-pagination-simple`,2,0),je$1(`pageIndexChange`,function(pe){return d.onPageIndexChange(pe)}),he$1(),oe$2(3,`nz-pagination-default`,3,1),je$1(`pageIndexChange`,function(pe){return d.onPageIndexChange(pe)})(`pageSizeChange`,function(pe){return d.onPageSizeChange(pe)}),he$1()),I&2&&(ye$1(d.showPagination?0:-1),A(),ie$1(`disabled`,d.nzDisabled)(`itemRender`,d.nzItemRender)(`locale`,d.locale)(`pageSize`,d.nzPageSize)(`total`,d.nzTotal)(`pageIndex`,d.nzPageIndex),A(2),ie$1(`nzSize`,d.size)(`itemRender`,d.nzItemRender)(`showTotal`,d.nzShowTotal)(`disabled`,d.nzDisabled)(`locale`,d.locale)(`showSizeChanger`,d.nzShowSizeChanger)(`showQuickJumper`,d.nzShowQuickJumper)(`total`,d.nzTotal)(`pageIndex`,d.nzPageIndex)(`pageSize`,d.nzPageSize)(`pageSizeOptions`,d.nzPageSizeOptions))},dependencies:[ka$1,_n,Sn$1],encapsulation:2})})()}})();var xn$1=(()=>{class o{static ɵfac=function(t){return new(t||o)};static ɵmod=ee$3({type:o});static ɵinj=X$2({imports:[Ft,_n,bn$2,Dt$2,Sn$1]})}return o}
10)();var $n=`filterTrigger`;var Tn=(()=>{let o,de=[],e=[];return class kt{static{let n=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;o=[Bo()],uo$2(null,null,o,{kind:`field`,name:`nzBackdrop`,static:!1,private:!1,access:{has:a=>`nzBackdrop`in a,get:a=>a.nzBackdrop,set:(a,i)=>{a.nzBackdrop=i}},metadata:n},de,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}_nzModuleName=$n;nzConfigService=h(Xr$3);cdr=h(Qe$1);destroyRef=h(re$1);nzActive=!1;nzDropdownMenu;nzVisible=!1;nzBackdrop=mn$3(this,de,!1);nzVisibleChange=(mn$3(this,e),new O$1);nzDropdown;onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){A1(this.nzDropdown.nativeElement,`click`).pipe(be$1(this.destroyRef)).subscribe(n=>n.stopPropagation())}static ɵfac=function(a){return new(a||kt)};static ɵcmp=(function(){return Se$1({type:kt,selectors:[[`nz-filter-trigger`]],viewQuery:function(i,l){if(i&1&&Kn(bt$1,7,$$2),i&2){let r;Ge(r=Ke())&&(l.nzDropdown=r.first)}},inputs:{nzActive:`nzActive`,nzDropdownMenu:`nzDropdownMenu`,nzVisible:`nzVisible`,nzBackdrop:[2,`nzBackdrop`,`nzBackdrop`,H$2]},outputs:{nzVisibleChange:`nzVisibleChange`},exportAs:[`nzFilterTrigger`],ngContentSelectors:[`*`],decls:2,vars:8,consts:[[`nz-dropdown`,``,`nzTrigger`,`click`,`nzPlacement`,`bottomRight`,1,`ant-table-filter-trigger`,3,`nzVisibleChange`,`nzBackdrop`,`nzClickHide`,`nzDropdownMenu`,`nzVisible`]],template:function(i,l){i&1&&(yn$1(),oe$2(0,`span`,0),je$1(`nzVisibleChange`,function(c){return l.onVisibleChange(c)}),Wt$1(1),he$1()),i&2&&(Ze(`active`,l.nzActive)(`ant-table-filter-open`,l.nzVisible),ie$1(`nzBackdrop`,l.nzBackdrop)(`nzClickHide`,!1)(`nzDropdownMenu`,l.nzDropdownMenu)(`nzVisible`,l.nzVisible))},dependencies:[Rt$3,bt$1],encapsulation:2})})()}})();var wn=(()=>{class o{cdr=h(Qe$1);i18n=h(sV);destroyRef=h(re$1);contentTemplate=null;customFilter=!1;extraTemplate=null;filterMultiple=!0;listOfFilter=[];filterChange=new O$1;locale;isChecked=!1;isVisible=!1;listOfParsedFilter=[];listOfChecked=[];check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(t=>t===e?W$1(g$1({},t),{checked:!e.checked}):t),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(t=>W$1(g$1({},t),{checked:t===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(t=>t.checked).map(t=>t.value):this.emitFilterData()}emitFilterData(){let e=this.listOfParsedFilter.filter(t=>t.checked).map(t=>t.value);E1e(this.listOfChecked,e)||(this.filterMultiple?this.filterChange.emit(e):this.filterChange.emit(e.length>0?e[0]:null))}parseListOfFilter(e,t){return e.map(n=>{let a=t?!1:!!n.byDefault;return{text:n.text,value:n.value,checked:a}})}getCheckedStatus(e){return e.some(t=>t.checked)}ngOnInit(){this.i18n.localeChange.pipe(be$1(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData(`Table`),this.cdr.markForCheck()})}ngOnChanges(e){let{listOfFilter:t}=e;t&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=(c,s)=>s.value;function t(c,s){}function n(c,s){if(c&1){let p=on();oe$2(0,`label`,14),hI(),je$1(`ngModelChange`,function(){gt$1(p);let z=F$2().$implicit,S=F$2(2);return vt(S.check(z))}),he$1()}if(c&2){let p=F$2().$implicit;ie$1(`ngModel`,p.checked),pI()}}function a(c,s){if(c&1){let p=on();oe$2(0,`label`,15),hI(),je$1(`ngModelChange`,function(){gt$1(p);let z=F$2().$implicit,S=F$2(2);return vt(S.check(z))}),he$1()}if(c&2){let p=F$2().$implicit;ie$1(`ngModel`,p.checked),pI()}}
10function i(c,s){if(c&1){let p=on();oe$2(0,`li`,11),je$1(`click`,function(){let z=gt$1(p).$implicit,S=F$2(2);return vt(S.check(z))}),ve$1(1,n,1,1,`label`,12)(2,a,1,1,`label`,13),oe$2(3,`span`),an$3(4),he$1()()}if(c&2){let p=s.$implicit,g=F$2(2);ie$1(`nzSelected`,p.checked),A(),ye$1(g.filterMultiple?2:1),A(3),vr$3(p.text)}}function l(c,s){if(c&1){let p=on();oe$2(0,`nz-filter-trigger`,3),je$1(`nzVisibleChange`,function(z){gt$1(p);let S=F$2();return vt(S.onVisibleChange(z))}),pt$1(1,`nz-icon`,4),he$1(),oe$2(2,`nz-dropdown-menu`,null,0)(4,`div`,5)(5,`ul`,6),Yl(6,i,5,3,`li`,7,e),he$1(),oe$2(8,`div`,8)(9,`button`,9),je$1(`click`,function(){gt$1(p);let z=F$2();return vt(z.reset())}),an$3(10),he$1(),oe$2(11,`button`,10),je$1(`click`,function(){gt$1(p);let z=F$2();return vt(z.confirm())}),an$3(12),he$1()()()()}if(c&2){let p=Wl(3),g=F$2();ie$1(`nzVisible`,g.isVisible)(`nzActive`,g.isChecked)(`nzDropdownMenu`,p),A(6),Ul(g.listOfParsedFilter),A(3),ie$1(`disabled`,!g.isChecked),A(),Io$1(` `,g.locale.filterReset,` `),A(2),vr$3(g.locale.filterConfirm)}}function r(c,s){if(c&1&&Xs(0,2),c&2){let p=F$2();ie$1(`ngTemplateOutlet`,p.extraTemplate)}}return Se$1({type:o,selectors:[[`nz-table-filter`]],hostAttrs:[1,`ant-table-filter-column`],inputs:{contentTemplate:`contentTemplate`,customFilter:`customFilter`,extraTemplate:`extraTemplate`,filterMultiple:`filterMultiple`,listOfFilter:`listOfFilter`},outputs:{filterChange:`filterChange`},features:[Te$1],decls:4,vars:2,consts:[[`filterMenu`,`nzDropdownMenu`],[1,`ant-table-column-title`],[3,`ngTemplateOutlet`],[3,`nzVisibleChange`,`nzVisible`,`nzActive`,`nzDropdownMenu`],[`nzType`,`filter`,`nzTheme`,`fill`],[1,`ant-table-filter-dropdown`],[`nz-menu`,``],[`nz-menu-item`,``,3,`nzSelected`],[1,`ant-table-filter-dropdown-btns`],[`nz-button`,``,`nzType`,`link`,`nzSize`,`small`,3,`click`,`disabled`],[`nz-button`,``,`nzType`,`primary`,`nzSize`,`small`,3,`click`],[`nz-menu-item`,``,3,`click`,`nzSelected`],[`nz-radio`,``,3,`ngModel`],[`nz-checkbox`,``,3,`ngModel`],[`nz-radio`,``,3,`ngModelChange`,`ngModel`],[`nz-checkbox`,``,3,`ngModelChange`,`ngModel`]],template:function(s,p){s&1&&(oe$2(0,`span`,1),qe$1(1,t,0,0,`ng-template`,2),he$1(),ve$1(2,l,13,6)(3,r,1,1,`ng-container`,2)),s&2&&(A(),ie$1(`ngTemplateOutlet`,p.contentTemplate),A(),ye$1(p.customFilter?3:2))},dependencies:[ka$1,Tn,xr$2,Gt$2,Rt$3,TDe,xx,Nt$1,ct$3,Et$1,je$2,fr$2,jn$2,Fi,v5,a3,f5,m5],encapsulation:2})})()}return o})();var An=(()=>{class o{expand=!1;spaceMode=!1;expandChange=new O$1;onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`button`,`nz-row-expand-button`,``]],hostAttrs:[1,`ant-table-row-expand-icon`],hostVars:7,hostBindings:function(t,n){t&1&&je$1(`click`,function(){return n.onHostClick()}),t&2&&(by(`type`,`button`),Ze(`ant-table-row-expand-icon-expanded`,!n.spaceMode&&n.expand===!0)(`ant-table-row-expand-icon-collapsed`,!n.spaceMode&&n.expand===!1)(`ant-table-row-expand-icon-spaced`,n.spaceMode))},inputs:{expand:`expand`,spaceMode:`spaceMode`},outputs:{expandChange:`expandChange`}})}return o})();var Bn=(()=>{class o{indentSize=0;static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`nz-row-indent`]],hostAttrs:[1,`ant-table-row-indent`],hostVars:2,hostBindings:function(t,n){t&2&&It$2(`padding-left`,n.indentSize,`px`)},inputs:{indentSize:`indentSize`}})}return o})();var vn=(()=>{class o{listOfSelections=[];checked=!1;disabled=!1;indeterminate=!1;label=null;showCheckbox=!1;showRowSelection=!1;checkedChange=new O$1;onCheckedChange(e){this.checked=e,this.checkedChange.emit(e)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){function e(a,i){if(a&1){let l=on();oe$2(0,`label`,3),hI(),je$1(`ngModelChange`,function(c){gt$1(l);let s=F$2();return vt(s.onCheckedChange(c))}),he$1()}if(a&2){let l=F$2();Ze(`ant-table-selection-select-all-custom`,l.showRowSelection),ie$1(`ngModel`,l.checked)(`nzDisabled`,l.disabled)(`nzIndeterminate`,l.indeterminate),$t(`aria-label`,l.label),pI()}}function t(a,i){if(a&1){let l=on();oe$2(0,`li`,8),je$1(`click`,function(){let c=gt$1(l).$implicit;return vt(c.onSelect())}),an$3(1),he$1()}if(a&2){let l=i.$implicit;A(),Io$1(` `,l.text,` `)}}function n(a,i){if(a&1&&(oe$2(0,`div`,2)(1,`span`,4),pt$1(2,`nz-icon`,5),he$1(),oe$2(3,`nz-dropdown-menu`,null,0)(5,`ul`,6),Yl(6,t,2,1,`li`,7,jl),he$1()()()),a&2){let l=Wl(4),r=F$2();A(),ie$1(`nzDropdownMenu`,l),A(5),Ul(r.listOfSelections)}}return Se$1({type:o,selectors:[[`nz-table-selection`]],hostAttrs:[1,`ant-table-selection`],inputs:{listOfSelections:`listOfSelections`,checked:`checked`,disabled:`disabled`,indeterminate:`indeterminate`,label:`label`,showCheckbox:`showCheckbox`,showRowSelection:`showRowSelection`},outputs:{checkedChange:`checkedChange`},decls:2,vars:2,consts:[[`selectionMenu`,`nzDropdownMenu`],[`nz-checkbox`,``,3,`ant-table-selection-select-all-custom`,`ngModel`,`nzDisabled`,`nzIndeterminate`],[1,`ant-table-selection-extra`],[`nz-checkbox`,``,3,`ngModelChange`,`ngModel`,`nzDisabled`,`nzIndeterminate`],[`nz-dropdown`,``,`nzPlacement`,`bottomLeft`,1,`ant-table-selection-down`,3,`nzDropdownMenu`],[`nzType`,`down`],[`nz-menu`,``,1,`ant-table-selection-menu`],[`nz-menu-item`,``],[`nz-menu-item`,``,3,`click`]],template:function(i,l){i&1&&(ve$1(0,e,1,6,`label`,1),ve$1(1,n,8,1,`div`,2)),i&2&&(ye$1(l.showCheckbox?0:-1),A(),ye$1(l.showRowSelection?1:-1))},dependencies:[fr$2,jn$2,Fi,Et$1,je$2,Rt$3,TDe,xx,bt$1,Nt$1,xr$2,Gt$2],encapsulation:2})})()}return o}
10)();var On=(()=>{class o{sortDirections=[`ascend`,`descend`,null];sortOrder=null;contentTemplate=null;isUp=!1;isDown=!1;ngOnChanges(e){let{sortDirections:t}=e;t&&(this.isUp=this.sortDirections.indexOf(`ascend`)!==-1,this.isDown=this.sortDirections.indexOf(`descend`)!==-1)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){function e(a,i){}function t(a,i){if(a&1&&pt$1(0,`nz-icon`,6),a&2){let l=F$2();Ze(`active`,l.sortOrder===`ascend`)}}function n(a,i){if(a&1&&pt$1(0,`nz-icon`,7),a&2){let l=F$2();Ze(`active`,l.sortOrder===`descend`)}}return Se$1({type:o,selectors:[[`nz-table-sorters`]],hostAttrs:[1,`ant-table-column-sorters`],inputs:{sortDirections:`sortDirections`,sortOrder:`sortOrder`,contentTemplate:`contentTemplate`},features:[Te$1],decls:6,vars:5,consts:[[1,`ant-table-column-title`],[3,`ngTemplateOutlet`],[1,`ant-table-column-sorter`],[1,`ant-table-column-sorter-inner`],[`nzType`,`caret-up`,1,`ant-table-column-sorter-up`,3,`active`],[`nzType`,`caret-down`,1,`ant-table-column-sorter-down`,3,`active`],[`nzType`,`caret-up`,1,`ant-table-column-sorter-up`],[`nzType`,`caret-down`,1,`ant-table-column-sorter-down`]],template:function(i,l){i&1&&(oe$2(0,`span`,0),qe$1(1,e,0,0,`ng-template`,1),he$1(),oe$2(2,`span`,2)(3,`span`,3),ve$1(4,t,1,2,`nz-icon`,4),ve$1(5,n,1,2,`nz-icon`,5),he$1()()),i&2&&(A(),ie$1(`ngTemplateOutlet`,l.contentTemplate),A(),Ze(`ant-table-column-sorter-full`,l.isDown&&l.isUp),A(2),ye$1(l.isUp?4:-1),A(),ye$1(l.isDown?5:-1))},dependencies:[xr$2,Gt$2,ka$1],encapsulation:2})})()}return o})();var Ln=(()=>{class o{renderer=h(We$2);el=h($$2).nativeElement;nzRight=!1;nzLeft=!1;colspan=null;colSpan=null;changes$=new C$1;isAutoLeft=!1;isAutoRight=!1;isFixedLeft=!1;isFixedRight=!1;isFixed=!1;setAutoLeftWidth(e){this.renderer.setStyle(this.el,`left`,e)}setAutoRightWidth(e){this.renderer.setStyle(this.el,`right`,e)}setIsFirstRight(e){this.setFixClass(e,`ant-table-cell-fix-right-first`)}setIsLastLeft(e){this.setFixClass(e,`ant-table-cell-fix-left-last`)}setFixClass(e,t){this.renderer.removeClass(this.el,t),e&&this.renderer.addClass(this.el,t)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=this.nzLeft===``||this.nzLeft===!0,this.isAutoRight=this.nzRight===``||this.nzRight===!0,this.isFixedLeft=this.nzLeft!==!1,this.isFixedRight=this.nzRight!==!1,this.isFixed=this.isFixedLeft||this.isFixedRight;let e=t=>typeof t==`string`&&t!==``?t:null;this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next()}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`td`,`nzRight`,``],[`th`,`nzRight`,``],[`td`,`nzLeft`,``],[`th`,`nzLeft`,``]],hostVars:6,hostBindings:function(t,n){t&2&&(It$2(`position`,n.isFixed?`sticky`:null),Ze(`ant-table-cell-fix-right`,n.isFixedRight)(`ant-table-cell-fix-left`,n.isFixedLeft))},inputs:{nzRight:`nzRight`,nzLeft:`nzLeft`,colspan:`colspan`,colSpan:`colSpan`},features:[Te$1]})}return o})();var De=(()=>{class o{theadTemplate$=new lo$1(1);tfootTemplate$=new lo$1(1);tfootFixed$=new lo$1(1);hasFixLeft$=new lo$1(1);hasFixRight$=new lo$1(1);hostWidth$=new lo$1(1);columnCount$=new lo$1(1);showEmpty$=new lo$1(1);noResult$=new lo$1(1);listOfThWidthConfigPx$=new se$1([]);tableWidthConfigPx$=new se$1([]);manualWidthConfigPx$=sr$2([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(P$2(([e,t])=>e.length?e:t));listOfAutoWidthPx$=new lo$1(1);listOfListOfThWidthPx$=ti(this.manualWidthConfigPx$,sr$2([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(P$2(([e,t])=>e.length===t.length?e.map((n,a)=>n===`0px`?t[a]||null:t[a]||n):t)));listOfMeasureColumn$=new lo$1(1);listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(P$2(e=>e.map(t=>parseInt(t,10))));enableAutoMeasure$=new lo$1(1);setTheadTemplate(e){this.theadTemplate$.next(e)}setTfootTemplate(e){this.tfootTemplate$.next(e)}setTfootFixed(e){this.tfootFixed$.next(e)}setHasFixLeft(e){this.hasFixLeft$.next(e)}setHasFixRight(e){this.hasFixRight$.next(e)}setTableWidthConfig(e){this.tableWidthConfigPx$.next(e)}setListOfTh(e){let t=0;e.forEach(a=>{t+=a.colspan&&+a.colspan||a.colSpan&&+a.colSpan||1});let n=e.map(a=>a.nzWidth);this.columnCount$.next(t),this.listOfThWidthConfigPx$.next(n)}setListOfMeasureColumn(e){let t=[];e.forEach(n=>{let a=n.colspan&&+n.colspan||n.colSpan&&+n.colSpan||1;for(let i=0;i<a;i++)t.push(`measure_key_${i}`)}),this.listOfMeasureColumn$.next(t)}setListOfAutoWidth(e){this.listOfAutoWidthPx$.next(e.map(t=>`${t}px`))}setShowEmpty(e){this.showEmpty$.next(e)}setNoResult(e){this.noResult$.next(e)}setScroll(e,t){let n=!!(e||t);n||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(n)}static ɵfac=function(t){return new(t||o)};static ɵprov=w({token:o,factory:o.ɵfac})}return o}
10)();var pa$2=(()=>{class o{isInsideTable=!!h(De,{optional:!0});static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`th`,9,`nz-disable-th`],[`td`,9,`nz-disable-td`]],hostVars:2,hostBindings:function(t,n){t&2&&Ze(`ant-table-cell`,n.isInsideTable)}})}return o})();var Mt$1=(()=>{class o{destroyRef=h(re$1);pageIndex$=new se$1(1);frontPagination$=new se$1(!0);pageSize$=new se$1(10);listOfData$=new se$1([]);listOfCustomColumn$=new se$1([]);pageIndexDistinct$=this.pageIndex$.pipe(Vn$1());pageSizeDistinct$=this.pageSize$.pipe(Vn$1());listOfCalcOperator$=new se$1([]);queryParams$=sr$2([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(Hn$2(0),ws(1),P$2(([e,t,n])=>({pageIndex:e,pageSize:t,sort:n.filter(a=>a.sortFn).map(a=>({key:a.key,value:a.sortOrder})),filter:n.filter(a=>a.filterFn).map(a=>({key:a.key,value:a.filterValue}))})));listOfDataAfterCalc$=sr$2([this.listOfData$,this.listOfCalcOperator$]).pipe(P$2(([e,t])=>{let n=[...e],a=t.filter(l=>{let{filterValue:r,filterFn:c}=l;return!(r==null||Array.isArray(r)&&r.length===0)&&typeof c==`function`});for(let l of a){let{filterFn:r,filterValue:c}=l;n=n.filter(s=>r(c,s))}let i=t.filter(l=>l.sortOrder!==null&&typeof l.sortFn==`function`).sort((l,r)=>+r.sortPriority-+l.sortPriority);return t.length&&n.sort((l,r)=>{for(let c of i){let{sortFn:s,sortOrder:p}=c;if(s&&p){let g=s(l,r,p);if(g!==0)return p===`ascend`?g:-g}}return 0}),n}));listOfFrontEndCurrentPageData$=sr$2([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(be$1(this.destroyRef),ne(e=>{let[t,n,a]=e;return t<=(n>0&&Math.ceil(a.length/n)||1)}),P$2(([e,t,n])=>t>0?n.slice((e-1)*t,e*t):n));listOfCurrentPageData$=this.frontPagination$.pipe(Ve(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$));total$=this.frontPagination$.pipe(Ve(e=>e?this.listOfDataAfterCalc$:this.listOfData$),P$2(e=>e.length),Vn$1());updatePageSize(e){this.pageSize$.next(e)}updateFrontPagination(e){this.frontPagination$.next(e)}updatePageIndex(e){this.pageIndex$.next(e)}updateListOfData(e){this.listOfData$.next(e)}updateListOfCustomColumn(e){this.listOfCustomColumn$.next(e)}static ɵfac=function(t){return new(t||o)};static ɵprov=w({token:o,factory:o.ɵfac})}return o})();var Wn=(()=>{class o{nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzIndentSize=0;nzShowExpand=!1;nzShowCheckbox=!1;nzExpand=!1;nzExpandIcon=null;nzCheckedChange=new O$1;nzExpandChange=new O$1;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}onExpandChange(e){this.nzExpand=e,this.nzExpandChange.emit(e)}ngOnChanges(e){let t=r=>r&&r.firstChange&&r.currentValue!==void 0,{nzExpand:n,nzChecked:a,nzShowExpand:i,nzShowCheckbox:l}=e;i&&(this.isNzShowExpandChanged=!0),l&&(this.isNzShowCheckboxChanged=!0),t(n)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),t(a)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`*`];function t(r,c){}function n(r,c){if(r&1&&qe$1(0,t,0,0,`ng-template`,2),r&2){let s=F$2(2);ie$1(`ngTemplateOutlet`,s.nzExpandIcon)}}function a(r,c){if(r&1){let s=on();oe$2(0,`button`,4),je$1(`expandChange`,function(g){gt$1(s);let z=F$2(2);return vt(z.onExpandChange(g))}),he$1()}if(r&2){let s=F$2(2);ie$1(`expand`,s.nzExpand)(`spaceMode`,!s.nzShowExpand)}}function i(r,c){if(r&1&&(pt$1(0,`nz-row-indent`,1),ve$1(1,n,1,1,null,2)(2,a,1,2,`button`,3)),r&2){let s=F$2();ie$1(`indentSize`,s.nzIndentSize),A(),ye$1(s.nzExpandIcon?1:2)}}function l(r,c){if(r&1){let s=on();oe$2(0,`label`,5),hI(),je$1(`ngModelChange`,function(g){gt$1(s);let z=F$2();return vt(z.onCheckedChange(g))}),he$1()}if(r&2){let s=F$2();ie$1(`nzDisabled`,s.nzDisabled)(`ngModel`,s.nzChecked)(`nzIndeterminate`,s.nzIndeterminate),$t(`aria-label`,s.nzLabel),pI()}}return Se$1({type:o,selectors:[[`td`,`nzChecked`,``],[`td`,`nzDisabled`,``],[`td`,`nzIndeterminate`,``],[`td`,`nzIndentSize`,``],[`td`,`nzExpand`,``],[`td`,`nzShowExpand`,``],[`td`,`nzShowCheckbox`,``]],hostVars:4,hostBindings:function(c,s){c&2&&Ze(`ant-table-cell-with-append`,s.nzShowExpand||s.nzIndentSize>0)(`ant-table-selection-column`,s.nzShowCheckbox)}
10,inputs:{nzChecked:`nzChecked`,nzDisabled:`nzDisabled`,nzIndeterminate:`nzIndeterminate`,nzLabel:`nzLabel`,nzIndentSize:`nzIndentSize`,nzShowExpand:[2,`nzShowExpand`,`nzShowExpand`,H$2],nzShowCheckbox:[2,`nzShowCheckbox`,`nzShowCheckbox`,H$2],nzExpand:[2,`nzExpand`,`nzExpand`,H$2],nzExpandIcon:`nzExpandIcon`},outputs:{nzCheckedChange:`nzCheckedChange`,nzExpandChange:`nzExpandChange`},features:[Te$1],ngContentSelectors:e,decls:3,vars:2,consts:[[`nz-checkbox`,``,3,`nzDisabled`,`ngModel`,`nzIndeterminate`],[3,`indentSize`],[3,`ngTemplateOutlet`],[`nz-row-expand-button`,``,3,`expand`,`spaceMode`],[`nz-row-expand-button`,``,3,`expandChange`,`expand`,`spaceMode`],[`nz-checkbox`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`,`nzIndeterminate`]],template:function(c,s){c&1&&(yn$1(),ve$1(0,i,3,2),ve$1(1,l,1,4,`label`,0),Wt$1(2)),c&2&&(ye$1(s.nzShowExpand||s.nzIndentSize>0?0:-1),A(),ye$1(s.nzShowCheckbox?1:-1))},dependencies:[Bn,An,ka$1,Et$1,je$2,fr$2,jn$2,Fi],encapsulation:2})})()}return o})();var Qn=`table`;var In=(()=>{let o,de=[],e=[];return class Et{static{let n=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;o=[Bo()],uo$2(null,null,o,{kind:`field`,name:`nzSortDirections`,static:!1,private:!1,access:{has:a=>`nzSortDirections`in a,get:a=>a.nzSortDirections,set:(a,i)=>{a.nzSortDirections=i}},metadata:n},de,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}_nzModuleName=Qn;nzConfigService=h(Xr$3);el=h($$2).nativeElement;destroyRef=h(re$1);cdr=h(Qe$1);ngZone=h(B$2);manualClickOrder$=new C$1;calcOperatorChange$=new C$1;nzFilterValue=null;sortOrder=null;sortDirections=[`ascend`,`descend`,null];sortOrderChange$=new C$1;isNzShowSortChanged=!1;isNzShowFilterChanged=!1;nzColumnKey;nzFilterMultiple=!0;nzSortOrder=null;nzSortPriority=!1;nzSortDirections=mn$3(this,de,[`ascend`,`descend`,null]);nzFilters=(mn$3(this,e),[]);nzSortFn=null;nzFilterFn=null;nzShowSort=!1;nzShowFilter=!1;nzCustomFilter=!1;nzCheckedChange=new O$1;nzSortOrderChange=new O$1;nzFilterChange=new O$1;getNextSortDirection(n,a){let i=n.indexOf(a);return i===n.length-1?n[0]:n[i+1]}setSortOrder(n){this.sortOrderChange$.next(n)}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null)}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){A1(this.el,`click`).pipe(ne(()=>this.nzShowSort),be$1(this.destroyRef)).subscribe(()=>{let n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(n),this.manualClickOrder$.next(this)})}),this.sortOrderChange$.pipe(be$1(this.destroyRef)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(n){let{nzSortDirections:a,nzFilters:i,nzSortOrder:l,nzSortFn:r,nzFilterFn:c,nzSortPriority:s,nzFilterMultiple:p,nzShowSort:g,nzShowFilter:z}=n;a&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),l&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),g&&(this.isNzShowSortChanged=!0),z&&(this.isNzShowFilterChanged=!0);let S=h=>h&&h.firstChange&&h.currentValue!==void 0;if((S(l)||S(r))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),S(i)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(i||p)&&this.nzShowFilter){let h=this.nzFilters.filter(x=>x.byDefault).map(x=>x.value);this.nzFilterValue=this.nzFilterMultiple?h:h[0]||null}(r||c||s||i)&&this.updateCalcOperator()}static ɵfac=function(a){return new(a||Et)};static ɵcmp=(function(){let n=[[[``,`nz-th-extra`,``]],[[`nz-filter-trigger`]],`*`],a=[`[nz-th-extra]`,`nz-filter-trigger`,`*`];function i(z,S){if(z&1){let h=on();oe$2(0,`nz-table-filter`,6),je$1(`filterChange`,function(b){gt$1(h);let B=F$2();return vt(B.onFilterValueChange(b))}),he$1()}if(z&2){let h=F$2(),x=Wl(3),b=Wl(5);ie$1(`contentTemplate`,x)(`extraTemplate`,b)(`customFilter`,h.nzCustomFilter)(`filterMultiple`,h.nzFilterMultiple)(`listOfFilter`,h.nzFilters)}}function l(z,S){if(z&1&&Xs(0,5),z&2){F$2();let h=Wl(3);ie$1(`ngTemplateOutlet`,h)}}function r(z,S){}function c(z,S){if(z&1&&qe$1(0,r,0,0,`ng-template`,5),z&2){let h=F$2(),x=Wl(7),b=Wl(9);ie$1(`ngTemplateOutlet`,h.nzShowSort?x:b)}}function s(z,S){z&1&&(Wt$1(0),Wt$1(1,1))}function p(z,S){if(z&1&&pt$1(0,`nz-table-sorters`,7),z&2){let h=F$2(),x=Wl(9);ie$1(`sortOrder`,h.sortOrder)(`sortDirections`,h.sortDirections)(`contentTemplate`,x)}}function g(z,S){z&1&&Wt$1(0,2)}return Se$1({type:Et,selectors:[[`th`,`nzColumnKey`,``],[`th`,`nzSortFn`,``],[`th`,`nzSortOrder`,``],[`th`,`nzFilters`,``],[`th`,`nzShowSort`,``],[`th`,`nzShowFilter`,``],[`th`,`nzCustomFilter`,``]],hostVars:4,hostBindings:function(S,h){S&2&&Ze(`ant-table-column-has-sorters`,h.nzShowSort)(`ant-table-column-sort`,h.sortOrder===`descend`||h.sortOrder===`ascend`)},inputs:{nzColumnKey:`nzColumnKey`,nzFilterMultiple:`nzFilterMultiple`,nzSortOrder:`nzSortOrder`,nzSortPriority:`nzSortPriority`,nzSortDirections:`nzSortDirections`,nzFilters:`nzFilters`,nzSortFn:`nzSortFn`,nzFilterFn:`nzFilterFn`,nzShowSort:[2,`nzShowSort`,`nzShowSort`,H$2],nzShowFilter:[2,`nzShowFilter`,`nzShowFilter`,H$2],nzCustomFilter:[2,`nzCustomFilter`,`nzCustomFilter`,H$2]},outputs:{nzCheckedChange:`nzCheckedChange`,nzSortOrderChange:`nzSortOrderChange`,nzFilterChange:`nzFilterChange`},features:[Te$1],ngContentSelectors:a,decls:10,vars:1,consts:[[`notFilterTemplate`,``],[`extraTemplate`,``],[`sortTemplate`,``],[`contentTemplate`,``],[3,`contentTemplate`,`extraTemplate`,`customFilter`,`filterMultiple`,`listOfFilter`],[3,`ngTemplateOutlet`],[3,`filterChange`,`contentTemplate`,`extraTemplate`,`customFilter`,`filterMultiple`,`listOfFilter`],[3,`sortOrder`,`sortDirections`,`contentTemplate`]],template:function(S,h){S&1&&(yn$1(n),ve$1(0,i,1,5,`nz-table-filter`,4)(1,l,1,1,`ng-container`,5),qe$1(2,c,1,1,`ng-template`,null,0,ql$1)(4,s,2,0,`ng-template`,null,1,ql$1)(6,p,1,3,`ng-template`,null,2,ql$1)(8,g,1,0,`ng-template`,null,3,ql$1)),S&2&&ye$1(h.nzShowFilter||h.nzCustomFilter?0:1)},dependencies:[wn,ka$1,On],encapsulation:2})})()}})();var Hn=(()=>{class o{renderer=h(We$2);el=h($$2).nativeElement;changes$=new C$1;nzWidth=null;colspan=null;colSpan=null;rowspan=null;rowSpan=null;ngOnChanges(e){let{nzWidth:t,colspan:n,rowspan:a,colSpan:i,rowSpan:l}=e;if(n||i){let r=this.colspan||this.colSpan;z1e(r)?this.renderer.removeAttribute(this.el,`colspan`):this.renderer.setAttribute(this.el,`colspan`,`${r}`)}if(a||l){let r=this.rowspan||this.rowSpan;z1e(r)?this.renderer.removeAttribute(this.el,`rowspan`):this.renderer.setAttribute(this.el,`rowspan`,`${r}`)}(t||n)&&this.changes$.next()}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`th`]],inputs:{nzWidth:`nzWidth`,colspan:`colspan`,colSpan:`colSpan`,rowspan:`rowspan`,rowSpan:`rowSpan`},features:[Te$1]})}return o}
10)();var jn=(()=>{class o{nzSelections=[];nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzShowCheckbox=!1;nzShowRowSelection=!1;nzCheckedChange=new O$1;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}ngOnChanges(e){let t=r=>r&&r.firstChange&&r.currentValue!==void 0,{nzChecked:n,nzSelections:a,nzShowExpand:i,nzShowCheckbox:l}=e;i&&(this.isNzShowExpandChanged=!0),l&&(this.isNzShowCheckboxChanged=!0),t(a)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),t(n)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){return Se$1({type:o,selectors:[[`th`,`nzSelections`,``],[`th`,`nzChecked`,``],[`th`,`nzShowCheckbox`,``],[`th`,`nzShowRowSelection`,``]],hostAttrs:[1,`ant-table-selection-column`],inputs:{nzSelections:`nzSelections`,nzChecked:[2,`nzChecked`,`nzChecked`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzIndeterminate:`nzIndeterminate`,nzLabel:`nzLabel`,nzShowCheckbox:[2,`nzShowCheckbox`,`nzShowCheckbox`,H$2],nzShowRowSelection:[2,`nzShowRowSelection`,`nzShowRowSelection`,H$2]},outputs:{nzCheckedChange:`nzCheckedChange`},features:[Te$1],ngContentSelectors:[`*`],decls:2,vars:7,consts:[[3,`checkedChange`,`checked`,`disabled`,`indeterminate`,`label`,`listOfSelections`,`showCheckbox`,`showRowSelection`]],template:function(n,a){n&1&&(yn$1(),oe$2(0,`nz-table-selection`,0),je$1(`checkedChange`,function(l){return a.onCheckedChange(l)}),he$1(),Wt$1(1)),n&2&&ie$1(`checked`,a.nzChecked)(`disabled`,a.nzDisabled)(`indeterminate`,a.nzIndeterminate)(`label`,a.nzLabel)(`listOfSelections`,a.nzSelections)(`showCheckbox`,a.nzShowCheckbox)(`showRowSelection`,a.nzShowRowSelection)},dependencies:[vn],encapsulation:2})})()}return o})();var Nn$1=(()=>{class o{tableLayout=`auto`;theadTemplate=null;contentTemplate=null;tfootTemplate=null;listOfColWidth=[];scrollX=null;static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`*`];function t(s,p){if(s&1&&pt$1(0,`col`),s&2){let g=p.$implicit;It$2(`width`,g)(`min-width`,g)}}function n(s,p){if(s&1&&(oe$2(0,`colgroup`),Yl(1,t,1,4,`col`,3,EP),he$1()),s&2){let g=F$2();A(),Ul(g.listOfColWidth)}}function a(s,p){}function i(s,p){if(s&1&&(oe$2(0,`thead`,0),qe$1(1,a,0,0,`ng-template`,1),he$1()),s&2){let g=F$2();A(),ie$1(`ngTemplateOutlet`,g.theadTemplate)}}function l(s,p){}function r(s,p){}function c(s,p){if(s&1&&(oe$2(0,`tfoot`,2),qe$1(1,r,0,0,`ng-template`,1),he$1()),s&2){let g=F$2();A(),ie$1(`ngTemplateOutlet`,g.tfootTemplate)}}return Se$1({type:o,selectors:[[`table`,`nz-table-content`,``]],hostVars:8,hostBindings:function(p,g){p&2&&(It$2(`table-layout`,g.tableLayout)(`width`,g.scrollX)(`min-width`,g.scrollX?`100%`:null),Ze(`ant-table-fixed`,g.scrollX))},inputs:{tableLayout:`tableLayout`,theadTemplate:`theadTemplate`,contentTemplate:`contentTemplate`,tfootTemplate:`tfootTemplate`,listOfColWidth:`listOfColWidth`,scrollX:`scrollX`},ngContentSelectors:e,decls:5,vars:4,consts:[[1,`ant-table-thead`],[3,`ngTemplateOutlet`],[1,`ant-table-summary`],[3,`width`,`minWidth`]],template:function(p,g){p&1&&(yn$1(),ve$1(0,n,3,0,`colgroup`),ve$1(1,i,2,1,`thead`,0),qe$1(2,l,0,0,`ng-template`,1),Wt$1(3),ve$1(4,c,2,1,`tfoot`,2)),p&2&&(ye$1(g.listOfColWidth.length>0?0:-1),A(),ye$1(g.theadTemplate?1:-1),A(),ie$1(`ngTemplateOutlet`,g.contentTemplate),A(2),ye$1(g.tfootTemplate?4:-1))},dependencies:[ka$1],encapsulation:2})})()}return o})();var Xn=(()=>{class o{nzTableStyleService=h(De);renderer=h(We$2);destroyRef=h(re$1);tdElement;hostWidth$=new se$1(null);enableAutoMeasure$=new se$1(!1);ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:e,hostWidth$:t}=this.nzTableStyleService;e.pipe(be$1(this.destroyRef)).subscribe(this.enableAutoMeasure$),t.pipe(be$1(this.destroyRef)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(be$1(this.destroyRef)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,`colspan`,`${e}`)})}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`tdElement`],t=[`*`];function n(c,s){}
10function a(c,s){if(c&1&&(oe$2(0,`div`,5),vi$1(1,`async`),qe$1(2,n,0,0,`ng-template`,4),he$1()),c&2){let p=F$2(),g=Wl(6);It$2(`width`,yi$2(1,3,p.hostWidth$),`px`),A(2),ie$1(`ngTemplateOutlet`,g)}}function i(c,s){}function l(c,s){if(c&1&&qe$1(0,i,0,0,`ng-template`,4),c&2){F$2();let p=Wl(6);ie$1(`ngTemplateOutlet`,p)}}function r(c,s){c&1&&Wt$1(0)}return Se$1({type:o,selectors:[[`tr`,`nz-table-fixed-row`,``],[`tr`,`nzExpand`,``]],viewQuery:function(s,p){if(s&1&&Kn(e,7),s&2){let g;Ge(g=Ke())&&(p.tdElement=g.first)}},ngContentSelectors:t,decls:7,vars:3,consts:[[`tdElement`,``],[`contentTemplate`,``],[1,`nz-disable-td`,`ant-table-cell`],[1,`ant-table-expanded-row-fixed`,2,`position`,`sticky`,`left`,`0`,`overflow`,`hidden`,3,`width`],[3,`ngTemplateOutlet`],[1,`ant-table-expanded-row-fixed`,2,`position`,`sticky`,`left`,`0`,`overflow`,`hidden`]],template:function(s,p){s&1&&(yn$1(),oe$2(0,`td`,2,0),ve$1(2,a,3,5,`div`,3),vi$1(3,`async`),df(4,l,1,1,null,4),he$1(),qe$1(5,r,1,0,`ng-template`,null,1,ql$1)),s&2&&(A(2),ye$1(yi$2(3,1,p.enableAutoMeasure$)?2:4))},dependencies:[ka$1,AA],encapsulation:2})})()}return o})();var Jn=(()=>{class o{tableLayout=`auto`;listOfColWidth=[];theadTemplate=null;contentTemplate=null;tfootTemplate=null;static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`nz-table-inner-default`]],hostAttrs:[1,`ant-table-container`],inputs:{tableLayout:`tableLayout`,listOfColWidth:`listOfColWidth`,theadTemplate:`theadTemplate`,contentTemplate:`contentTemplate`,tfootTemplate:`tfootTemplate`},decls:2,vars:5,consts:[[1,`ant-table-content`],[`nz-table-content`,``,3,`contentTemplate`,`tableLayout`,`listOfColWidth`,`theadTemplate`,`tfootTemplate`]],template:function(t,n){t&1&&(oe$2(0,`div`,0),pt$1(1,`table`,1),he$1()),t&2&&(A(),ie$1(`contentTemplate`,n.contentTemplate)(`tableLayout`,n.tableLayout)(`listOfColWidth`,n.listOfColWidth)(`theadTemplate`,n.theadTemplate)(`tfootTemplate`,n.tfootTemplate))},dependencies:[Nn$1],encapsulation:2})}return o})();var Yn=(()=>{class o{nzResizeObserver=h(n_e);ngZone=h(B$2);destroyRef=h(re$1);listOfMeasureColumn=[];listOfAutoWidth=new O$1;listOfTdElement;ngAfterViewInit(){this.listOfTdElement.changes.pipe(mt$2(this.listOfTdElement)).pipe(Ve(e=>sr$2(e.toArray().map(t=>this.nzResizeObserver.observe(t).pipe(P$2(([n])=>{let{width:a}=n.contentRect;return Math.floor(a)}))))),Hn$2(16),be$1(this.destroyRef)).subscribe(e=>{this.ngZone instanceof B$2&&B$2.isInAngularZone()?this.listOfAutoWidth.next(e):this.ngZone.run(()=>this.listOfAutoWidth.next(e))})}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`tdElement`];function t(n,a){n&1&&Md$1(0,`td`,1,0)}return Se$1({type:o,selectors:[[`tr`,`nz-table-measure-row`,``]],viewQuery:function(a,i){if(a&1&&Kn(e,5),a&2){let l;Ge(l=Ke())&&(i.listOfTdElement=l)}},hostAttrs:[1,`ant-table-measure-now`],inputs:{listOfMeasureColumn:`listOfMeasureColumn`},outputs:{listOfAutoWidth:`listOfAutoWidth`},decls:2,vars:0,consts:[[`tdElement`,``],[1,`nz-disable-td`,2,`padding`,`0`,`border`,`0`,`height`,`0`]],template:function(a,i){a&1&&Yl(0,t,2,0,`td`,1,EP),a&2&&Ul(i.listOfMeasureColumn)},encapsulation:2})})()}return o})();var Pn$1=(()=>{class o{showEmpty$=new se$1(!1);noResult$=new se$1(void 0);listOfMeasureColumn$=new se$1([]);nzTableStyleService=h(De,{optional:!0});isInsideTable=!!this.nzTableStyleService;constructor(){if(this.nzTableStyleService){let{showEmpty$:e,noResult$:t,listOfMeasureColumn$:n}=this.nzTableStyleService;t.pipe(be$1()).subscribe(this.noResult$),n.pipe(be$1()).subscribe(this.listOfMeasureColumn$),e.pipe(be$1()).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(e){this.nzTableStyleService?.setListOfAutoWidth(e)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`*`];function t(i,l){if(i&1){let r=on();oe$2(0,`tr`,2),je$1(`listOfAutoWidth`,function(s){gt$1(r);let p=F$2(2);return vt(p.onListOfAutoWidthChange(s))}),he$1()}if(i&2){let r=F$2();ie$1(`listOfMeasureColumn`,r)}}function n(i,l){if(i&1&&ve$1(0,t,1,1,`tr`,1),i&2){let r=F$2();ye$1(r.isInsideTable&&l.length?0:-1)}}function a(i,l){if(i&1&&(oe$2(0,`tr`,0),pt$1(1,`nz-embed-empty`,3),vi$1(2,`async`),he$1()),i&2){let r=F$2();A(),ie$1(`specificContent`,yi$2(2,1,r.noResult$))}}return Se$1({type:o,selectors:[[`tbody`]],hostVars:2,hostBindings:function(l,r){l&2&&Ze(`ant-table-tbody`,r.isInsideTable)},ngContentSelectors:e,decls:5,vars:6,consts:[[`nz-table-fixed-row`,``,1,`ant-table-placeholder`],[`nz-table-measure-row`,``,3,`listOfMeasureColumn`],[`nz-table-measure-row`,``,3,`listOfAutoWidth`,`listOfMeasureColumn`],[`nzComponentName`,`table`,3,`specificContent`]],template:function(l,r){if(l&1&&(yn$1(),ve$1(0,n,1,1),vi$1(1,`async`),Wt$1(2),ve$1(3,a,3,3,`tr`,0),vi$1(4,`async`)),l&2){let c;ye$1((c=yi$2(1,2,r.listOfMeasureColumn$))?0:-1,c),A(3),ye$1(yi$2(4,4,r.showEmpty$)?3:-1)}},dependencies:[Yn,Xn,yr$3,Pi$1,AA],encapsulation:2})})()}return o}
10)();var Rt=(()=>{class o{renderer=h(We$2);ngZone=h(B$2);platform=h(Me$3);resizeService=h(xB);destroyRef=h(re$1);data=[];scrollX=null;scrollY=null;contentTemplate=null;widthConfig=[];listOfColWidth=[];theadTemplate=null;tfootTemplate=null;tfootFixed=null;virtualTemplate=null;virtualItemSize=0;virtualMaxBufferPx=200;virtualMinBufferPx=100;tableMainElement;virtualForTrackBy=e=>e;tableHeaderElement;tableBodyElement;tableFootElement;cdkVirtualScrollViewport;headerStyleMap={};bodyStyleMap={};verticalScrollBarWidth=0;noDataVirtualHeight=`182px`;data$=new C$1;scroll$=new C$1;setScrollPositionClassName(e=!1){let{scrollWidth:t,scrollLeft:n,clientWidth:a}=this.tableBodyElement.nativeElement,i=`ant-table-ping-left`,l=`ant-table-ping-right`;t===a&&t!==0||e?(this.renderer.removeClass(this.tableMainElement,i),this.renderer.removeClass(this.tableMainElement,l)):n===0?(this.renderer.removeClass(this.tableMainElement,i),this.renderer.addClass(this.tableMainElement,l)):t===n+a?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,i)):(this.renderer.addClass(this.tableMainElement,i),this.renderer.addClass(this.tableMainElement,l))}constructor(){this.destroyRef.onDestroy(()=>{this.setScrollPositionClassName(!0)})}ngOnChanges(e){let{scrollX:t,scrollY:n,data:a}=e;if(t||n){let i=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:`hidden`,overflowY:this.scrollY&&i?`scroll`:`hidden`},this.bodyStyleMap={overflowY:this.scrollY?`scroll`:`hidden`,overflowX:this.scrollX?`auto`:null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())}a&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){if(this.platform.isBrowser){let e=this.scroll$.pipe(mt$2(null),go$1(0),Ve(()=>A1(this.tableBodyElement.nativeElement,`scroll`).pipe(mt$2(!0)))),t=this.resizeService.connect();ti(e,t,this.data$,this.scroll$).pipe(mt$2(!0),go$1(0),be$1(this.destroyRef)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(ne(()=>!!this.scrollY)).subscribe(()=>{this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft,this.tableFootElement&&(this.tableFootElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`tableHeaderElement`],t=[`tableBodyElement`],n=[`tableFootElement`],a=(z,S)=>({$implicit:z,index:S});function i(z,S){if(z&1&&(oe$2(0,`div`,9,1),pt$1(2,`table`,10),he$1()),z&2){let h=F$2(2);ko$1(h.bodyStyleMap),A(2),ie$1(`scrollX`,h.scrollX)(`listOfColWidth`,h.listOfColWidth)(`contentTemplate`,h.contentTemplate)}}function l(z,S){}function r(z,S){if(z&1&&(nn$1(0),qe$1(1,l,0,0,`ng-template`,14),rn$3()),z&2){let h=S.$implicit,x=S.index,b=F$2(3);A(),ie$1(`ngTemplateOutlet`,b.virtualTemplate)(`ngTemplateOutletContext`,pf(2,a,h,x))}}function c(z,S){if(z&1&&(oe$2(0,`cdk-virtual-scroll-viewport`,11,1)(2,`table`,12)(3,`tbody`),qe$1(4,r,2,5,`ng-container`,13),he$1()()()),z&2){let h=F$2(2);It$2(`height`,h.data.length?h.scrollY:h.noDataVirtualHeight),ie$1(`itemSize`,h.virtualItemSize)(`maxBufferPx`,h.virtualMaxBufferPx)(`minBufferPx`,h.virtualMinBufferPx),A(2),ie$1(`scrollX`,h.scrollX)(`listOfColWidth`,h.listOfColWidth),A(2),ie$1(`cdkVirtualForOf`,h.data)(`cdkVirtualForTrackBy`,h.virtualForTrackBy)}}function s(z,S){if(z&1&&(oe$2(0,`div`,15,2),pt$1(2,`table`,16),he$1()),z&2){let h=F$2(2);ko$1(h.headerStyleMap),A(2),ie$1(`scrollX`,h.scrollX)(`listOfColWidth`,h.listOfColWidth)(`tfootTemplate`,h.tfootTemplate)}}function p(z,S){if(z&1&&(oe$2(0,`div`,4,0),pt$1(2,`table`,5),he$1(),ve$1(3,i,3,5,`div`,6)(4,c,5,9,`cdk-virtual-scroll-viewport`,7),ve$1(5,s,3,5,`div`,8)),z&2){let h=F$2();ko$1(h.headerStyleMap),A(2),ie$1(`scrollX`,h.scrollX)(`listOfColWidth`,h.listOfColWidth)(`theadTemplate`,h.theadTemplate)(`tfootTemplate`,h.tfootFixed===`top`?h.tfootTemplate:null),A(),ye$1(h.virtualTemplate?4:3),A(2),ye$1(h.tfootFixed===`bottom`?5:-1)}}function g(z,S){if(z&1&&(oe$2(0,`div`,17,1),pt$1(2,`table`,18),he$1()),z&2){let h=F$2();ko$1(h.bodyStyleMap),A(2),ie$1(`scrollX`,h.scrollX)(`listOfColWidth`,h.listOfColWidth)(`theadTemplate`,h.theadTemplate)(`contentTemplate`,h.contentTemplate)(`tfootTemplate`,h.tfootTemplate)}}return Se$1({type:o,selectors:[[`nz-table-inner-scroll`]],viewQuery:function(S,h){if(S&1&&Kn(e,5,$$2)(t,5,$$2)(n,5,$$2)(IV,5,IV),S&2){let x;Ge(x=Ke())&&(h.tableHeaderElement=x.first),Ge(x=Ke())&&(h.tableBodyElement=x.first),Ge(x=Ke())&&(h.tableFootElement=x.first),Ge(x=Ke())&&(h.cdkVirtualScrollViewport=x.first)}},hostAttrs:[1,`ant-table-container`],inputs:{data:`data`,scrollX:`scrollX`,scrollY:`scrollY`,contentTemplate:`contentTemplate`,widthConfig:`widthConfig`,listOfColWidth:`listOfColWidth`,theadTemplate:`theadTemplate`,tfootTemplate:`tfootTemplate`,tfootFixed:`tfootFixed`,virtualTemplate:`virtualTemplate`,virtualItemSize:`virtualItemSize`,virtualMaxBufferPx:`virtualMaxBufferPx`,virtualMinBufferPx:`virtualMinBufferPx`,tableMainElement:`tableMainElement`,virtualForTrackBy:`virtualForTrackBy`,verticalScrollBarWidth:`verticalScrollBarWidth`,noDataVirtualHeight:`noDataVirtualHeight`},features:[Te$1],decls:2,vars:1,consts:[[`tableHeaderElement`,``],[`tableBodyElement`,``],[`tableFootElement`,``],[1,`ant-table-content`,3,`style`],[1,`ant-table-header`,`nz-table-hide-scrollbar`],[`nz-table-content`,``,`tableLayout`,`fixed`,3,`scrollX`,`listOfColWidth`,`theadTemplate`,`tfootTemplate`],[`cdkScrollable`,``,1,`ant-table-body`,3,`style`],[3,`itemSize`,`maxBufferPx`,`minBufferPx`,`height`],[1,`ant-table-summary`,3,`style`],[`cdkScrollable`,``,1,`ant-table-body`],[`nz-table-content`,``,`tableLayout`,`fixed`,3,`scrollX`,`listOfColWidth`,`contentTemplate`],[3,`itemSize`,`maxBufferPx`,`minBufferPx`],[`nz-table-content`,``,`tableLayout`,`fixed`,3,`scrollX`,`listOfColWidth`],[4,`cdkVirtualFor`,`cdkVirtualForOf`,`cdkVirtualForTrackBy`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ant-table-summary`],[`nz-table-content`,``,`tableLayout`,`fixed`,3,`scrollX`,`listOfColWidth`,`tfootTemplate`],[1,`ant-table-content`],[`nz-table-content`,``,`tableLayout`,`fixed`,3,`scrollX`,`listOfColWidth`,`theadTemplate`,`contentTemplate`,`tfootTemplate`]],template:function(S,h){S&1&&ve$1(0,p,6,8)(1,g,3,7,`div`,3),S&2&&ye$1(h.scrollY?0:1)},dependencies:[Nn$1,j5,Oi,SV,PV,IV,ka$1,Pn$1],encapsulation:2})})()}return o}
10)();var qn=(()=>{class o{templateRef=h(yt$1);static ngTemplateContextGuard(e,t){return!0}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[``,`nz-virtual-scroll`,``]],exportAs:[`nzVirtualScroll`]})}return o})();var Dn$1=(()=>{class o{title=null;footer=null;static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){function e(n,a){if(n&1&&(nn$1(0),an$3(1),rn$3()),n&2){let i=F$2();A(),vr$3(i.title)}}function t(n,a){if(n&1&&(nn$1(0),an$3(1),rn$3()),n&2){let i=F$2();A(),vr$3(i.footer)}}return Se$1({type:o,selectors:[[`nz-table-title-footer`]],hostVars:4,hostBindings:function(a,i){a&2&&Ze(`ant-table-title`,i.title!==null)(`ant-table-footer`,i.footer!==null)},inputs:{title:`title`,footer:`footer`},decls:2,vars:2,consts:[[4,`nzStringTemplateOutlet`]],template:function(a,i){a&1&&qe$1(0,e,2,1,`ng-container`,0)(1,t,2,1,`ng-container`,0),a&2&&(ie$1(`nzStringTemplateOutlet`,i.title),A(),ie$1(`nzStringTemplateOutlet`,i.footer))},dependencies:[Jr$3,er$1],encapsulation:2})})()}return o})();var yn=`table`;var Zn=(()=>{let o,de=[],e=[],t,n=[],a=[],i,l=[],r=[],c,s=[],p=[],g,z=[],S=[],h$2,x=[],b=[],B,v=[],k=[];return class Vt{static{let I=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;o=[Bo()],t=[Bo()],i=[Bo()],c=[Bo()],g=[Bo()],h$2=[Bo()],B=[Bo()],uo$2(null,null,o,{kind:`field`,name:`nzLoadingIndicator`,static:!1,private:!1,access:{has:d=>`nzLoadingIndicator`in d,get:d=>d.nzLoadingIndicator,set:(d,Q)=>{d.nzLoadingIndicator=Q}},metadata:I},de,e),uo$2(null,null,t,{kind:`field`,name:`nzBordered`,static:!1,private:!1,access:{has:d=>`nzBordered`in d,get:d=>d.nzBordered,set:(d,Q)=>{d.nzBordered=Q}},metadata:I},n,a),uo$2(null,null,i,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:d=>`nzSize`in d,get:d=>d.nzSize,set:(d,Q)=>{d.nzSize=Q}},metadata:I},l,r),uo$2(null,null,c,{kind:`field`,name:`nzShowSizeChanger`,static:!1,private:!1,access:{has:d=>`nzShowSizeChanger`in d,get:d=>d.nzShowSizeChanger,set:(d,Q)=>{d.nzShowSizeChanger=Q}},metadata:I},s,p),uo$2(null,null,g,{kind:`field`,name:`nzHideOnSinglePage`,static:!1,private:!1,access:{has:d=>`nzHideOnSinglePage`in d,get:d=>d.nzHideOnSinglePage,set:(d,Q)=>{d.nzHideOnSinglePage=Q}},metadata:I},z,S),uo$2(null,null,h$2,{kind:`field`,name:`nzShowQuickJumper`,static:!1,private:!1,access:{has:d=>`nzShowQuickJumper`in d,get:d=>d.nzShowQuickJumper,set:(d,Q)=>{d.nzShowQuickJumper=Q}},metadata:I},x,b),uo$2(null,null,B,{kind:`field`,name:`nzSimple`,static:!1,private:!1,access:{has:d=>`nzSimple`in d,get:d=>d.nzSimple,set:(d,Q)=>{d.nzSimple=Q}},metadata:I},v,k),I&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:I})}_nzModuleName=yn;elementRef=h($$2);nzResizeObserver=h(n_e);cdr=h(Qe$1);nzTableStyleService=h(De);nzTableDataService=h(Mt$1);dir=h(Ue$1).valueSignal;destroyRef=h(re$1);nzTableLayout=`auto`;nzShowTotal=null;nzItemRender=null;nzTitle=null;nzFooter=null;nzNoResult=void 0;nzPageSizeOptions=[10,20,30,40,50];nzVirtualItemSize=0;nzVirtualMaxBufferPx=200;nzVirtualMinBufferPx=100;nzVirtualForTrackBy=I=>I;nzLoadingDelay=0;nzPageIndex=1;nzPageSize=10;nzTotal=0;nzWidthConfig=[];nzData=[];nzCustomColumn=[];nzPaginationPosition=`bottom`;nzScroll={x:null,y:null};noDataVirtualHeight=`182px`;nzPaginationType=`default`;nzFrontPagination=!0;nzTemplateMode=!1;nzShowPagination=!0;nzLoading=!1;nzOuterBordered=!1;nzLoadingIndicator=mn$3(this,de,null);nzBordered=(mn$3(this,e),mn$3(this,n,!1));nzSize=(mn$3(this,a),mn$3(this,l,`default`));nzShowSizeChanger=(mn$3(this,r),mn$3(this,s,!1));nzHideOnSinglePage=(mn$3(this,p),mn$3(this,z,!1));nzShowQuickJumper=(mn$3(this,S),mn$3(this,x,!1));nzSimple=(mn$3(this,b),mn$3(this,v,!1));nzPageSizeChange=(mn$3(this,k),new O$1);nzPageIndexChange=new O$1;nzQueryParams=new O$1;nzCurrentPageDataChange=new O$1;nzCustomColumnChange=new O$1;data=[];cdkVirtualScrollViewport;scrollX=null;scrollY=null;theadTemplate=null;tfootTemplate=null;tfootFixed=null;listOfAutoColWidth=[];listOfManualColWidth=[];hasFixLeft=!1;hasFixRight=!1;showPagination=!0;templateMode$=new se$1(!1);nzVirtualScrollDirective;
10nzTableInnerScrollComponent;verticalScrollBarWidth=0;onPageSizeChange(I){this.nzTableDataService.updatePageSize(I)}onPageIndexChange(I){this.nzTableDataService.updatePageIndex(I)}constructor(){vc$1(yn,()=>this.cdr.markForCheck())}ngOnInit(){let{pageIndexDistinct$:I,pageSizeDistinct$:d,listOfCurrentPageData$:Q,total$:pe,queryParams$:Le,listOfCustomColumn$:We}=this.nzTableDataService,{theadTemplate$:Qe,tfootTemplate$:He,tfootFixed$:je,hasFixLeft$:Xe,hasFixRight$:zt}=this.nzTableStyleService;Le.pipe(be$1(this.destroyRef)).subscribe(this.nzQueryParams),I.pipe(be$1(this.destroyRef)).subscribe(D=>{D!==this.nzPageIndex&&(this.nzPageIndex=D,this.nzPageIndexChange.next(D))}),d.pipe(be$1(this.destroyRef)).subscribe(D=>{D!==this.nzPageSize&&(this.nzPageSize=D,this.nzPageSizeChange.next(D))}),pe.pipe(be$1(this.destroyRef),ne(D=>this.nzFrontPagination&&D!==this.nzTotal)).subscribe(D=>{this.nzTotal=D,this.cdr.markForCheck()}),Q.pipe(be$1(this.destroyRef)).subscribe(D=>{this.data=D,this.nzCurrentPageDataChange.next(D),this.cdr.markForCheck()}),We.pipe(be$1(this.destroyRef)).subscribe(D=>{this.nzCustomColumn=D,this.nzCustomColumnChange.next(D),this.cdr.markForCheck()}),Qe.pipe(be$1(this.destroyRef)).subscribe(D=>{this.theadTemplate=D,this.cdr.markForCheck()}),sr$2([He,je]).pipe(be$1(this.destroyRef)).subscribe(([D,F])=>{this.tfootTemplate=D,this.tfootFixed=F,this.cdr.markForCheck()}),Xe.pipe(be$1(this.destroyRef)).subscribe(D=>{this.hasFixLeft=D,this.cdr.markForCheck()}),zt.pipe(be$1(this.destroyRef)).subscribe(D=>{this.hasFixRight=D,this.cdr.markForCheck()}),sr$2([pe,this.templateMode$]).pipe(P$2(([D,F])=>D===0&&!F),be$1(this.destroyRef)).subscribe(D=>{this.nzTableStyleService.setShowEmpty(D)}),this.verticalScrollBarWidth=$1e(`vertical`),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(be$1(this.destroyRef)).subscribe(D=>{this.listOfAutoColWidth=D,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(be$1(this.destroyRef)).subscribe(D=>{this.listOfManualColWidth=D,this.cdr.markForCheck()})}ngOnChanges(I){let{nzScroll:d,nzPageIndex:Q,nzPageSize:pe,nzFrontPagination:Le,nzData:We,nzCustomColumn:Qe,nzWidthConfig:He,nzNoResult:je,nzTemplateMode:Xe}=I;Q&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),pe&&this.nzTableDataService.updatePageSize(this.nzPageSize),We&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),Qe&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Le&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),d&&this.setScrollOnChanges(),He&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),Xe&&this.templateMode$.next(this.nzTemplateMode),je&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(P$2(([I])=>{let{width:d}=I.target.getBoundingClientRect(),Q=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(d-Q)}),be$1(this.destroyRef)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}static ɵfac=function(d){return new(d||Vt)};static ɵcmp=(function(){let I=[`*`];function d(F,X){}function Q(F,X){if(F&1&&qe$1(0,d,0,0,`ng-template`,4),F&2){F$2();let m=Wl(10);ie$1(`ngTemplateOutlet`,m)}}function pe(F,X){if(F&1&&pt$1(0,`nz-table-title-footer`,6),F&2){let m=F$2();ie$1(`title`,m.nzTitle)}}function Le(F,X){if(F&1&&pt$1(0,`nz-table-inner-scroll`,7),F&2){let m=F$2(),me=Wl(3),Se=Wl(12);ie$1(`data`,m.data)(`scrollX`,m.scrollX)(`scrollY`,m.scrollY)(`contentTemplate`,Se)(`listOfColWidth`,m.listOfAutoColWidth)(`theadTemplate`,m.theadTemplate)(`tfootTemplate`,m.tfootTemplate)(`tfootFixed`,m.tfootFixed)(`verticalScrollBarWidth`,m.verticalScrollBarWidth)(`virtualTemplate`,m.nz
10VirtualScrollDirective?m.nzVirtualScrollDirective.templateRef:null)(`virtualItemSize`,m.nzVirtualItemSize)(`virtualMaxBufferPx`,m.nzVirtualMaxBufferPx)(`virtualMinBufferPx`,m.nzVirtualMinBufferPx)(`tableMainElement`,me)(`virtualForTrackBy`,m.nzVirtualForTrackBy)(`noDataVirtualHeight`,m.noDataVirtualHeight)}}function We(F,X){if(F&1&&pt$1(0,`nz-table-inner-default`,8),F&2){let m=F$2(),me=Wl(12);ie$1(`tableLayout`,m.nzTableLayout)(`listOfColWidth`,m.listOfManualColWidth)(`theadTemplate`,m.theadTemplate)(`contentTemplate`,me)(`tfootTemplate`,m.tfootTemplate)}}function Qe(F,X){if(F&1&&pt$1(0,`nz-table-title-footer`,9),F&2){let m=F$2();ie$1(`footer`,m.nzFooter)}}function He(F,X){}function je(F,X){if(F&1&&qe$1(0,He,0,0,`ng-template`,4),F&2){F$2();let m=Wl(10);ie$1(`ngTemplateOutlet`,m)}}function Xe(F,X){if(F&1){let m=on();oe$2(0,`nz-pagination`,11),je$1(`nzPageSizeChange`,function(Se){gt$1(m);let ht=F$2(2);return vt(ht.onPageSizeChange(Se))})(`nzPageIndexChange`,function(Se){gt$1(m);let ht=F$2(2);return vt(ht.onPageIndexChange(Se))}),he$1()}if(F&2){let m=F$2(2);ie$1(`hidden`,!m.showPagination)(`nzShowSizeChanger`,m.nzShowSizeChanger)(`nzPageSizeOptions`,m.nzPageSizeOptions)(`nzItemRender`,m.nzItemRender)(`nzShowQuickJumper`,m.nzShowQuickJumper)(`nzHideOnSinglePage`,m.nzHideOnSinglePage)(`nzShowTotal`,m.nzShowTotal)(`nzSize`,m.nzPaginationType===`small`?`small`:m.nzSize==="default"?`default`:`small`)(`nzPageSize`,m.nzPageSize)(`nzTotal`,m.nzTotal)(`nzSimple`,m.nzSimple)(`nzPageIndex`,m.nzPageIndex)}}function zt(F,X){if(F&1&&ve$1(0,Xe,1,12,`nz-pagination`,10),F&2){let m=F$2();ye$1(m.nzShowPagination&&m.data.length?0:-1)}}function D(F,X){F&1&&Wt$1(0)}return Se$1({type:Vt,selectors:[[`nz-table`]],contentQueries:function(X,m,me){if(X&1&&bn$3(me,qn,5),X&2){let Se;Ge(Se=Ke())&&(m.nzVirtualScrollDirective=Se.first)}},viewQuery:function(X,m){if(X&1&&Kn(Rt,5),X&2){let me;Ge(me=Ke())&&(m.nzTableInnerScrollComponent=me.first)}},hostAttrs:[1,`ant-table-wrapper`],hostVars:4,hostBindings:function(X,m){X&2&&Ze(`ant-table-wrapper-rtl`,m.dir()===`rtl`)(`ant-table-custom-column`,m.nzCustomColumn.length)},inputs:{nzTableLayout:`nzTableLayout`,nzShowTotal:`nzShowTotal`,nzItemRender:`nzItemRender`,nzTitle:`nzTitle`,nzFooter:`nzFooter`,nzNoResult:`nzNoResult`,nzPageSizeOptions:`nzPageSizeOptions`,nzVirtualItemSize:`nzVirtualItemSize`,nzVirtualMaxBufferPx:`nzVirtualMaxBufferPx`,nzVirtualMinBufferPx:`nzVirtualMinBufferPx`,nzVirtualForTrackBy:`nzVirtualForTrackBy`,nzLoadingDelay:`nzLoadingDelay`,nzPageIndex:`nzPageIndex`,nzPageSize:`nzPageSize`,nzTotal:`nzTotal`,nzWidthConfig:`nzWidthConfig`,nzData:`nzData`,nzCustomColumn:`nzCustomColumn`,nzPaginationPosition:`nzPaginationPosition`,nzScroll:`nzScroll`,noDataVirtualHeight:`noDataVirtualHeight`,nzPaginationType:`nzPaginationType`,nzFrontPagination:[2,`nzFrontPagination`,`nzFrontPagination`,H$2],nzTemplateMode:[2,`nzTemplateMode`,`nzTemplateMode`,H$2],nzShowPagination:[2,`nzShowPagination`,`nzShowPagination`,H$2],nzLoading:[2,`nzLoading`,`nzLoading`,H$2],nzOuterBordered:[2,`nzOuterBordered`,`nzOuterBordered`,H$2],nzLoadingIndicator:`nzLoadingIndicator`,nzBordered:[2,`nzBordered`,`nzBordered`,H$2],nzSize:`nzSize`,nzShowSizeChanger:[2,`nzShowSizeChanger`,`nzShowSizeChanger`,H$2],nzHideOnSinglePage:[2,`nzHideOnSinglePage`,`nzHideOnSinglePage`,H$2],nzShowQuickJumper:[2,`nzShowQuickJumper`,`nzShowQuickJumper`,H$2],nzSimple:[2,`nzSimple`,`nzSimple`,H$2]},outputs:{nzPageSizeChange:`nzPageSizeChange`,nzPageIndexChange:`nzPageIndexChange`,nzQueryParams:`nzQueryParams`,nzCurrentPageDataChange:`nzCurrentPageDataChange`,nzCustomColumnChange:`nzCustomColumnChange`},exportAs:[`nzTable`],features:[Ft$1([De,Mt$1]),Te$1],ngContentSelectors:I,decls:13,vars:26,consts:[[`tableMainElement`,``],[`paginationTemplate`,``],[`contentTemplate`,``],[3,`nzDelay`,`nzSpinning`,`nzIndicator`],[3,`ngTemplateOutlet`],[1,`ant-table`],[3,`title`],[3,`data`,`scrollX`,`scrollY`,`contentTemplate`,`listOfColWidth`,`theadTemplate`,`tfootTemplate`,`tfootFixed`,`verticalScrollBarWidth`,`virtualTemplate`,`virtualItemSize`,`virtualMaxBufferPx`,`virtualMinBufferPx`,`tableMainElement`,`virtualForTrackBy`,`noDataVirtualHeight`],[3,`tableLayout`,`listOfColWidth`,`theadTemplate`,`contentTemplate`,`tfootTemplate`],[3,`footer`],[1,`ant-table-pagination`,`ant-table-pagination-right`,3,`hidden`,`nzShowSizeChanger`,`nzPageSizeOptions`,`nzItemRender`,`nzShowQuickJumper`,`nzHideOnSinglePage`,`nzShowTotal`,`nzSize`,`nzPageSize`,`nzTotal`,`nzSimple`,`nzPageIndex`],[1,`ant-table-pagination`,`ant-table-pagination-right`,3,`nzPageSizeChange`,`nzPageIndexChange`,`hidden`,`nzShowSizeChanger`,`nzPageSizeOptions`,`nzItemRender`,`nzShowQuickJumper`,`nzHideOnSinglePage`,`nzShowTotal`,`nzSize`,`nzPageSize`,`nzTotal`,`nzSimple`,`nzPageIndex`]],template:function(X,m){X&1&&(yn$1(),oe$2(0,`nz-spin`,3),ve$1(1,Q,1,1,null,4),oe$2(2,`div`,5,0),ve$1(4,pe,1,1,`nz-table-title-footer`,6),ve$1(5,Le,1,16,`nz-table-inner-scroll`,7)(6,We,1,5,`nz-table-inner-default`,8),ve$1(7,Qe,1,1,`nz-table-title-footer`,9),he$1(),ve$1(8,je,1,1,null,4),he$1(),qe$1(9,zt,1,1,`ng-template`,null,1,ql$1)(11,D,1,0,`ng-template`,null,2,ql$1)),X&2&&(ie$1(`nzDelay`,m.nzLoadingDelay)(`nzSpinning`,m.nzLoading)(`nzIndicator`,m.nzLoadingIndicator),A(),ye$1(m.nzPaginationPosition===`both`||m.nzPaginationPosition===`top`?1:-1),A(),Ze(`ant-table-rtl`,m.dir()===`rtl`)(`ant-table-fixed-header`,m.nzData.length&&m.scrollY)(`ant-table-fixed-column`,m.scrollX)(`ant-table-has-fix-left`,m.hasFixLeft)(`ant-table-has-fix-right`,m.hasFixRight)(`ant-table-bordered`,m.nzBordered)(`nz-table-out-bordered`,m.nzOuterBordered&&!m.nzBordered)(`ant-table-middle`,m.nzSize===`middle`)(`ant-table-small`,m.nzSize===`small`),A(2),ye$1(m.nzTitle?4:-1),A(),ye$1(m.scrollY||m.scrollX?5:6),A(2),ye$1(m.nzFooter?7:-1),A(),ye$1(m.nzPaginationPosition===`both`||m.nzPaginationPosition===`bottom`?8:-1))},dependencies:[Sn$2,ka$1,Dn$1,Rt,Jn,xn$1,Ft],encapsulation:2})})()}})();var Un=(()=>{class o{destroyRef=h(re$1);listOfNzThDirective;listOfCellFixedDirective;listOfFixedColumns$=new lo$1(1);listOfColumns$=new lo$1(1);listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(Ve(e=>ti(this.listOfFixedColumns$,...e.map(t=>t.changes$)).pipe(ct$2(()=>this.listOfFixedColumns$))),be$1(this.destroyRef));listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(P$2(e=>e.filter(t=>t.nzLeft!==!1)));listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(P$2(e=>e.filter(t=>t.nzRight!==!1)));listOfColumnsChanges$=this.listOfColumns$.pipe(Ve(e=>ti(this.listOfColumns$,...e.map(t=>t.changes$)).pipe(ct$2(()=>this.listOfColumns$))),be$1(this.destroyRef));nzTableStyleService=h(De,{optional:!0});isInsideTable=!!this.nzTableStyleService;ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(mt$2(this.listOfCellFixedDirective),be$1(this.destroyRef)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(mt$2(this.listOfNzThDirective),be$1(this.destroyRef)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(e=>{e.forEach(t=>t.setIsLastLeft(t===e[e.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(e=>{e.forEach(t=>t.setIsFirstRight(t===e[0]))}),sr$2([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(be$1(this.destroyRef)).subscribe(([e,t])=>{t.forEach((n,a)=>
10{if(n.isAutoLeft){let l=t.slice(0,a).reduce((c,s)=>c+(s.colspan||s.colSpan||1),0),r=e.slice(0,l).reduce((c,s)=>c+s,0);n.setAutoLeftWidth(`${r}px`)}})}),sr$2([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(be$1(this.destroyRef)).subscribe(([e,t])=>{t.forEach((n,a)=>{let i=t[t.length-a-1];if(i.isAutoRight){let r=t.slice(t.length-a,t.length).reduce((s,p)=>s+(p.colspan||p.colSpan||1),0),c=e.slice(e.length-r,e.length).reduce((s,p)=>s+p,0);i.setAutoRightWidth(`${c}px`)}})}))}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`tr`,3,`nz-table-measure-row`,``,3,`nzExpand`,``,3,`nz-table-fixed-row`,``]],contentQueries:function(t,n,a){if(t&1&&bn$3(a,Hn,4)(a,Ln,4),t&2){let i;Ge(i=Ke())&&(n.listOfNzThDirective=i),Ge(i=Ke())&&(n.listOfCellFixedDirective=i)}},hostVars:2,hostBindings:function(t,n){t&2&&Ze(`ant-table-row`,n.isInsideTable)}})}return o})();var ca$2=(()=>{class o{nzTableStyleService=h(De,{optional:!0});nzTableDataService=h(Mt$1,{optional:!0});destroyRef=h(re$1);el=h($$2).nativeElement;renderer=h(We$2);isInsideTable=!!this.nzTableStyleService;templateRef;listOfNzTrDirective;listOfNzThAddOnComponent;nzSortOrderChange=new O$1;ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){let e=this.listOfNzTrDirective.changes.pipe(mt$2(this.listOfNzTrDirective),P$2(i=>i&&i.first),be$1(this.destroyRef)),t=e.pipe(Ve(i=>i?i.listOfColumnsChanges$:bt));t.subscribe(i=>this.nzTableStyleService.setListOfTh(i)),this.nzTableStyleService.enableAutoMeasure$.pipe(Ve(i=>i?t:S([]))).pipe(be$1(this.destroyRef)).subscribe(i=>this.nzTableStyleService.setListOfMeasureColumn(i));let n=e.pipe(Ve(i=>i?i.listOfFixedLeftColumnChanges$:bt)),a=e.pipe(Ve(i=>i?i.listOfFixedRightColumnChanges$:bt));n.subscribe(i=>{this.nzTableStyleService.setHasFixLeft(i.length!==0)}),a.subscribe(i=>{this.nzTableStyleService.setHasFixRight(i.length!==0)})}if(this.nzTableDataService){let e=this.listOfNzThAddOnComponent.changes.pipe(mt$2(this.listOfNzThAddOnComponent));e.pipe(Ve(()=>ti(...this.listOfNzThAddOnComponent.map(a=>a.manualClickOrder$))),be$1(this.destroyRef)).subscribe(a=>{let i={key:a.nzColumnKey,value:a.sortOrder};this.nzSortOrderChange.emit(i),a.nzSortFn&&a.nzSortPriority===!1&&this.listOfNzThAddOnComponent.filter(l=>l!==a).forEach(l=>l.clearSortOrder())}),e.pipe(Ve(a=>ti(e,...a.map(i=>i.calcOperatorChange$)).pipe(ct$2(()=>e))),P$2(a=>a.filter(i=>!!i.nzSortFn||!!i.nzFilterFn).map(i=>{let{nzSortFn:l,sortOrder:r,nzFilterFn:c,nzFilterValue:s,nzSortPriority:p,nzColumnKey:g}=i;return{key:g,sortFn:l,sortPriority:p,sortOrder:r,filterFn:c,filterValue:s}})),go$1(0),be$1(this.destroyRef)).subscribe(a=>{this.nzTableDataService?.listOfCalcOperator$.next(a)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.el),this.el)}static ɵfac=function(t){return new(t||o)};static ɵcmp=(function(){let e=[`contentTemplate`],t=[`*`];function n(l,r){l&1&&Wt$1(0)}function a(l,r){}function i(l,r){if(l&1&&qe$1(0,a,0,0,`ng-template`,1),l&2){F$2();let c=Wl(1);ie$1(`ngTemplateOutlet`,c)}}return Se$1({type:o,selectors:[[`thead`,9,`ant-table-thead`]],contentQueries:function(r,c,s){if(r&1&&bn$3(s,Un,5)(s,In,5),r&2){let p;Ge(p=Ke())&&(c.listOfNzTrDirective=p),Ge(p=Ke())&&(c.listOfNzThAddOnComponent=p)}},viewQuery:function(r,c){if(r&1&&Kn(e,7),r&2){let s;Ge(s=Ke())&&(c.templateRef=s.first)}},outputs:{nzSortOrderChange:`nzSortOrderChange`},ngContentSelectors:t,decls:3,vars:1,consts:[[`contentTemplate`,``],[3,`ngTemplateOutlet`]],template:function(r,c){r&1&&(yn$1(),qe$1(0,n,1,0,`ng-template`,null,0,ql$1),ve$1(2,i,1,1,null,1)),r&2&&(A(2),ye$1(c.isInsideTable?-1:2))},dependencies:[ka$1],encapsulation:2})})()}return o})();var da$2=(()=>{class o{nzExpand=!0;static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[`tr`,`nzExpand`,``]],hostAttrs:[1,`ant-table-expanded-row`],hostVars:1,hostBindings:function(t,n){t&2&&by(`hidden`,!n.nzExpand)},inputs:{nzExpand:[2,`nzExpand`,`nzExpand`,H$2]}})}return o}
10)();var ua$2=(()=>{class o{static ɵfac=function(t){return new(t||o)};static ɵmod=ee$3({type:o});static ɵinj=X$2({imports:[Zn,In,Wn,Pn$1,Dn$1,Rt,On,wn,vn,Tn,jn]})}return o})();var He$1=class i{dateLocale=h(Ja$1,{optional:!0})??void 0;currency=h(ci$1);dom=h(Aa$1);configSrv=h(ln$3);globalOptions=this.configSrv.merge(`cell`,{date:{format:`yyyy-MM-dd HH:mm:ss`},img:{size:32},default:{text:`-`}});widgets={date:{type:`fn`,ref:(t,e)=>({text:yx(t,e.date.format,{locale:this.dateLocale,customFormat:this.configSrv.get(`themePipe`)?.dateFormatCustom})})},mega:{type:`fn`,ref:(t,e)=>{let n=this.currency.mega(t,e.mega);return{text:n.value,unit:n.unitI18n}}},currency:{type:`fn`,ref:(t,e)=>({text:this.currency.format(t,e.currency)})},cny:{type:`fn`,ref:(t,e)=>({text:this.currency.cny(t,e.cny)})},boolean:{type:`fn`,ref:(t,e)=>({text:this.dom.bypassSecurityTrustHtml(gB(t,e.boolean))})},img:{type:`fn`,ref:t=>({text:Array.isArray(t)?t:[t]})}};registerWidget(t,e){this.widgets[t]={type:`widget`,ref:e}}getWidget(t){return this.widgets[t]}genType(t,e){if(e.type!=null)return e.type;let n=typeof t;return n===`number`&&/^[0-9]{13}$/g.test(t)||t instanceof Date||e.date!=null?`date`:e.widget!=null?`widget`:e.mega!=null?`mega`:e.currency!=null?`currency`:e.cny!=null?`cny`:e.img!=null?`img`:e.link!=null?`link`:e.html!=null?`html`:e.badge!=null?`badge`:e.tag!=null?`tag`:e.checkbox!=null?`checkbox`:e.radio!=null?`radio`:e.enum!=null?`enum`:n===`number`?`number`:n===`boolean`||e.boolean!=null?`boolean`:`string`}fixOptions(t){return Lu$1({},this.globalOptions,t)}get(t,e){let n=this.genType(t,g$1({},e)),o=this.fixOptions(e);o.type=n;let r=typeof t==`object`&&typeof t?.getTypeName==`function`&&t?.getTypeName()!=null,a={result:typeof t==`object`&&!r?t:{text:t==null?``:r?t:`${t}`},options:o},s=this.widgets[n];return s?.type===`fn`&&(a.result=s.ref(t,o)),(typeof t==`function`?t(t,o):S(a.result)).pipe(P$2(d=>{a.result=d;let l;switch(n){case`badge`:l=(o.badge?.data??{})[t],a.result=g$1({color:`default`},l);break;case`tag`:l=(o.tag?.data??{})[t],a.result=l;break;case`enum`:a.result={text:(o.enum??{})[t]};break;case`html`:a.safeHtml=o.html?.safe;break;case`string`:r&&(a.safeHtml=`safeHtml`)}return(n===`badge`||n===`tag`)&&l?.tooltip!=null&&(a.options.tooltip=l.tooltip),o.mask!=null&&(a.result.text=or$2(a.result.text,o.mask)),a}))}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac,providedIn:`root`})};function Zl(...i){return et$1([d2(()=>{let t=h(He$1);i.forEach(e=>t.registerWidget(e.KEY,e.type))})])}var po=new b$1(`WINDOW`,{factory:()=>{let{defaultView:i}=h(z$2);if(!i)throw new Error(`Window is not available`);return i}});new b$1("PAGE_VISIBILITY`",{factory:()=>{let i=h(z$2);return Qc$2(i,`visibilitychange`).pipe(mt$2(0),P$2(()=>!i.hidden),Vn$1(),Fr$1())}});var Ho=(()=>{class i{noAnimation=h(as,{host:!0,optional:!0});nzOffset;nzTitle;nzStyle=null;nzDot=!1;nzOverflowCount=99;nzCount;nzSize=`default`;isPresetColor=!1;nzColor;maxNumberArray=[];countArray=[];count=0;countSingleArray=[0,1,2,3,4,5,6,7,8,9];generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split(``).map((e,n)=>`${e}-${n}`)}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(e){let{nzOverflowCount:n,nzCount:o}=e;o&&typeof o.currentValue==`number`&&(this.count=Math.max(0,o.currentValue),this.countArray=this.count.toString().split(``).map(r=>+r)),n&&this.generateMaxNumberArray()}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){function e(s,d){if(s&1&&(oe$2(0,`p`,3),an$3(1),he$1()),s&2){let l=d.$implicit,p=F$2(2).$index,m=F$2(2);Ze(`current`,l===m.countArray[p]),A(),Io$1(` `,l,` `)}}function n(s,d){if(s&1&&Yl(0,e,2,3,`p`,2,jl),s&2){let l=F$2(3);Ul(l.countSingleArray)}}function o(s,d){if(s&1&&(oe$2(0,`span`,1),ve$1(1,n,2,0),he$1()),s&2){let l=d.$index,p=F$2(2);It$2(`transform`,`translateY(`+-p.countArray[l]*100+`%)`),ie$1(`nzNoAnimation`,!!p.noAnimation?.nzNoAnimation?.()),A(),ye$1(!p.nzDot&&p.countArray[l]!==void 0?1:-1)}}function r(s,d){if(s&1&&Yl(0,o,2,4,`span`,0,jl),s&2){let l=F$2();Ul(l.maxNumberArray)}}function a(s,d){if(s&1&&an$3(0),s&2){let l=F$2();Io$1(` `,l.nzOverflowCount,`+ `)}}return Se$1({type:i,selectors:[[`nz-badge-sup`]],hostAttrs:[1,`ant-scroll-number`],hostVars:17,hostBindings:function(d,l){d&2&&($t(`title`,l.nzTitle===null?``:l.nzTitle||l.nzCount),ko$1(l.nzStyle),Lt$1(l.isPresetColor?`ant-badge-status-`+l.nzC
10olor:``),It$2(`right`,l.nzOffset&&l.nzOffset[0]?-l.nzOffset[0]:null,`px`)(`margin-top`,l.nzOffset&&l.nzOffset[1]?l.nzOffset[1]:null,`px`),Ze(`ant-badge-count`,!l.nzDot)(`ant-badge-count-sm`,l.nzSize===`small`)(`ant-badge-dot`,l.nzDot)(`ant-badge-multiple-words`,l.countArray.length>=2))},inputs:{nzOffset:`nzOffset`,nzTitle:`nzTitle`,nzStyle:`nzStyle`,nzDot:`nzDot`,nzOverflowCount:[2,`nzOverflowCount`,`nzOverflowCount`,Oo$1],nzCount:`nzCount`,nzSize:`nzSize`,isPresetColor:[2,`isPresetColor`,`isPresetColor`,H$2],nzColor:`nzColor`},exportAs:[`nzBadgeSup`],features:[Te$1],decls:2,vars:1,consts:[[1,`ant-scroll-number-only`,3,`nzNoAnimation`,`transform`],[1,`ant-scroll-number-only`,3,`nzNoAnimation`],[1,`ant-scroll-number-only-unit`,3,`current`],[1,`ant-scroll-number-only-unit`]],template:function(d,l){d&1&&ve$1(0,r,2,0)(1,a,1,1),d&2&&ye$1(l.count<=l.nzOverflowCount?0:1)},dependencies:[as],encapsulation:2})})()}return i})();var mo=[`pink`,`red`,`yellow`,`orange`,`cyan`,`green`,`blue`,`purple`,`geekblue`,`magenta`,`volcano`,`gold`,`lime`];var Wo=`badge`;var kt=(()=>{let i,t=[],e=[],n,o=[],r=[];return class yn{static{let s=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;i=[Bo()],n=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzOverflowCount`,static:!1,private:!1,access:{has:d=>`nzOverflowCount`in d,get:d=>d.nzOverflowCount,set:(d,l)=>{d.nzOverflowCount=l}},metadata:s},t,e),uo$2(null,null,n,{kind:`field`,name:`nzColor`,static:!1,private:!1,access:{has:d=>`nzColor`in d,get:d=>d.nzColor,set:(d,l)=>{d.nzColor=l}},metadata:s},o,r),s&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})}dir=h(Ue$1).valueSignal;_nzModuleName=Wo;showSup=!1;supAnimationEnter=Ni$2(()=>`ant-badge-zoom-enter`);supAnimationLeave=Ni$2(()=>`ant-badge-zoom-leave`);presetColor=null;nzShowZero=!1;nzShowDot=!0;nzStandalone=!1;nzDot=!1;nzOverflowCount=mn$3(this,t,99);nzColor=(mn$3(this,e),mn$3(this,o,void 0));nzStyle=(mn$3(this,r),null);nzText=null;nzTitle;nzStatus;nzCount;nzOffset;nzSize=`default`;get mergedStyle(){return g$1({backgroundColor:!this.presetColor&&this.nzColor},this.nzStyle??{})}ngOnChanges(s){let{nzColor:d,nzShowDot:l,nzDot:p,nzCount:m,nzShowZero:z}=s;d&&(this.presetColor=this.nzColor&&mo.indexOf(this.nzColor)!==-1?this.nzColor:null),(l||p||m||z)&&(this.showSup=this.nzShowDot&&this.nzDot||typeof this.nzCount==`number`&&(this.nzCount>0||this.nzShowZero))}static ɵfac=function(d){return new(d||yn)};static ɵcmp=(function(){let s=[`*`];function d(z,C){if(z&1&&(nn$1(0),an$3(1),rn$3()),z&2){let u=F$2(2);A(),vr$3(u.nzText)}}function l(z,C){if(z&1&&(pt$1(0,`span`,1),oe$2(1,`span`,2),qe$1(2,d,2,1,`ng-container`,0),he$1()),z&2){let u=F$2();ko$1(u.mergedStyle),Lt$1((u.nzStatus||u.presetColor)&&`ant-badge-status-`+(u.nzStatus||u.presetColor)),A(2),ie$1(`nzStringTemplateOutlet`,u.nzText)}}function p(z,C){if(z&1){let u=on();oe$2(0,`nz-badge-sup`,3),hi$1(function(){gt$1(u);let I=F$2(2);return vt(I.supAnimationLeave())}),ui(function(){gt$1(u);let I=F$2(2);return vt(I.supAnimationEnter())}),he$1()}if(z&2){let u=F$2(2);ie$1(`isPresetColor`,u.nzStatus||u.presetColor)(`nzColor`,u.nzStatus||u.presetColor||u.nzColor)(`nzOffset`,u.nzOffset)(`nzSize`,u.nzSize)(`nzTitle`,u.nzTitle)(`nzStyle`,u.mergedStyle)(`nzDot`,u.nzDot)(`nzCount`,u.nzCount)(`nzOverflowCount`,u.nzOverflowCount)}}function m(z,C){if(z&1&&(nn$1(0),ve$1(1,p,1,9,`nz-badge-sup`,3),rn$3()),z&2){let u=F$2();A(),ye$1(u.showSup?1:-1)}}return Se$1({type:yn,selectors:[[`nz-badge`]],hostAttrs:[1,`ant-badge`],hostVars:6,hostBindings:function(C,u){C&2&&Ze(`ant-badge-status`,u.nzStatus)(`ant-badge-not-a-wrapper`,!!(u.nzStandalone||(u.nzStatus||u.nzColor)&&!u.showSup&&!u.nzCount))(`ant-badge-rtl`,u.dir()===`rtl`)},inputs:{nzShowZero:[2,`nzShowZero`,`nzShowZero`,H$2],nzShowDot:[2,`nzShowDot`,`nzShowDot`,H$2],nzStandalone:[2,`nzStandalone`,`nzStandalone`,H$2],nzDot:[2,`nzDot`,`nzDot`,H$2],nzOverflowCount:`nzOverflowCount`,nzColor:`nzColor`,nzStyle:`nzStyle`,nzText:`nzText`,nzTitle:`nzTitle`,nzStatus:`nzStatus`,nzCount:`nzCount`,nzOffset:`nzOffset`,nzSize:`nzSize`},exportAs:[`nzBadge`],features:[Te$1],ngContentSelectors:s,decls:3,vars:2,consts:[[4,`nzStringTemplateOutlet`],[1,`ant-badge-status-dot`],[1,`ant-badge-status-text`],[3,`isPresetColor`,`nzColor`,`nzOff
10set`,`nzSize`,`nzTitle`,`nzStyle`,`nzDot`,`nzCount`,`nzOverflowCount`]],template:function(C,u){C&1&&(yn$1(),ve$1(0,l,3,5),Wt$1(1),qe$1(2,m,2,1,`ng-container`,0)),C&2&&(ye$1((u.nzStatus||u.nzColor)&&!u.showSup&&!u.nzCount?0:-1),A(2),ie$1(`nzStringTemplateOutlet`,u.nzCount))},dependencies:[Ho,Jr$3,er$1],encapsulation:2})})()}})();var $o$1=(()=>{class i{nzColor;nzPlacement=`end`;nzText=null;presetColor=null;ngOnChanges(e){let{nzColor:n}=e;n&&(this.presetColor=this.nzColor&&mo.indexOf(this.nzColor)!==-1?this.nzColor:null)}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){let e=[`*`];function n(o,r){if(o&1&&(nn$1(0),oe$2(1,`span`,3),an$3(2),he$1(),rn$3()),o&2){let a=F$2();A(2),vr$3(a.nzText)}}return Se$1({type:i,selectors:[[`nz-ribbon`]],hostAttrs:[1,`ant-ribbon-wrapper`],inputs:{nzColor:`nzColor`,nzPlacement:`nzPlacement`,nzText:`nzText`},exportAs:[`nzRibbon`],features:[Te$1],ngContentSelectors:e,decls:4,vars:11,consts:[[1,`ant-ribbon`],[4,`nzStringTemplateOutlet`],[1,`ant-ribbon-corner`],[1,`ant-ribbon-text`]],template:function(r,a){r&1&&(yn$1(),Wt$1(0),oe$2(1,`div`,0),qe$1(2,n,3,1,`ng-container`,1),pt$1(3,`div`,2),he$1()),r&2&&(A(),Lt$1(a.presetColor&&`ant-ribbon-color-`+a.presetColor),It$2(`background-color`,!a.presetColor&&a.nzColor),Ze(`ant-ribbon-placement-end`,a.nzPlacement===`end`)(`ant-ribbon-placement-start`,a.nzPlacement===`start`),A(),ie$1(`nzStringTemplateOutlet`,a.nzText),A(),It$2(`color`,!a.presetColor&&a.nzColor))},dependencies:[Jr$3,er$1],encapsulation:2})})()}return i})();var uo=(()=>{class i{static ɵfac=function(n){return new(n||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({imports:[kt,$o$1]})}return i})();var qo=(()=>{class i{nzScaleStep=null;images=[];addImage(e){this.images.push(e)}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){return Se$1({type:i,selectors:[[`nz-image-group`]],inputs:{nzScaleStep:`nzScaleStep`},exportAs:[`nzImageGroup`],ngContentSelectors:[`*`],decls:1,vars:0,template:function(o,r){o&1&&(yn$1(),Wt$1(0))},encapsulation:2})})()}return i})();var Co=`image`;var Dt$1=class{nzKeyboard=!0;nzNoAnimation=!1;nzMaskClosable=!0;nzCloseOnNavigation=!0;nzZIndex;nzZoom;nzRotate;nzFlipHorizontally;nzFlipVertically;nzScaleStep;nzDirection};function Zo$1(i){let t={};return i.width<=i.clientWidth&&i.height<=i.clientHeight&&(t={x:0,y:0}),(i.width>i.clientWidth||i.height>i.clientHeight)&&(t={x:ho(i.left,i.width,i.clientWidth),y:ho(i.top,i.height,i.clientHeight)}),t}function Uo$1(i){let t=i.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}function Go(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function ho(i,t,e){let n=i+t,o=(t-e)/2,r=null;return t>e?(i>0&&(r=o),i<0&&n<e&&(r=-o)):(i<0||n>e)&&(r=i<0?o:-o),r}var go={x:0,y:0};var xn=.5;var Xo$1=1;var Yo=0;var yo=(()=>{class i{document=h(z$2);ngZone=h(B$2);cdr=h(Qe$1);nzConfigService=h(Xr$3);sanitizer=h(Aa$1);destroyRef=h(re$1);elementRef=h($$2);config=h(Dt$1);_defaultNzZoom=Xo$1;_defaultNzScaleStep=xn;_defaultNzRotate=Yo;isDragging=G$1(!1);images=[];index=0;visible=!0;scaleStepMap=new Map;previewImageTransform=G$1(``);previewImageWrapperTransform=G$1(``);operations=[{icon:`close`,onClick:()=>{this.onClose()},type:`close`},{icon:`zoom-in`,onClick:()=>{this.onZoomIn()},type:`zoomIn`},{icon:`zoom-out`,onClick:()=>{this.onZoomOut()},type:`zoomOut`},{icon:`rotate-right`,onClick:()=>{this.onRotateRight()},type:`rotateRight`},{icon:`rotate-left`,onClick:()=>{this.onRotateLeft()},type:`rotateLeft`},{icon:`swap`,onClick:()=>{this.onHorizontalFlip()},type:`flipHorizontally`},{icon:`swap`,onClick:()=>{this.onVerticalFlip()},type:`flipVertically`,rotate:90}];zoomOutDisabled=!1;position=g$1({},go);previewRef;closeClick=new O$1;imageRef;imagePreviewWrapper;zoom=this.config.nzZoom??this._defaultNzZoom;rotate=this.config.nzRotate??this._defaultNzRotate;scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep;flipHorizontally=this.config.nzFlipHorizontally??!1;flipVertically=this.config.nzFlipVertically??!1;get maskClosable(){let e=this.nzConfigService.getConfigForComponent(Co)||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(){this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){ti(A1(this.imagePreviewWrapper.nativeElement,`mousedown`).pipe(P$2(()=>!0)),A1(this.imagePreviewWrapper.nativeElement,`mouseup`).pipe(P$2(()=>!1))).pipe(be$1(this.destroyRef)).subscribe(e=>this.isDragging.set(e)),A1(this.imagePreviewWrapper.nativeElement,`wheel`).pipe(be$1(this.destroyRef)).subscribe(e=>{this.ngZone.run(()=>this.wheelZoomEventHandler(e))}),A1(this.document,`keydown`).pipe(ne(e=>e.keyCode===27),be$1(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>{this.onClose(),this.markForCheck()})})}setImages(e,n){n&&(this.scaleStepMap=n),this.images=e,this.markForCheck()}switchTo(e){this.index=e,this.markForCheck()}next(){this.index<this.images.length-1&&(this.reset(),this.index++,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}prev(){this.index>0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.visible=!1,this.closeClick.emit()}onZoomIn(){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled()}
10onZoomOut(){if(this.zoom>1){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.zoom<=1&&this.reCenterImage()}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onHorizontalFlip(){this.flipHorizontally=!this.flipHorizontally,this.updatePreviewImageTransform()}onVerticalFlip(){this.flipVertically=!this.flipVertically,this.updatePreviewImageTransform()}wheelZoomEventHandler(e){e.preventDefault(),e.stopPropagation(),this.handlerImageTransformationWhileZoomingWithMouse(e,e.deltaY),this.handleImageScaleWhileZoomingWithMouse(e.deltaY),this.updatePreviewImageWrapperTransform(),this.updatePreviewImageTransform(),this.markForCheck()}onDragEnd(e){this.isDragging.set(!1);let n=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left
10:r,top:a}=Uo$1(this.imageRef.nativeElement),{width:s,height:d}=Go(),l=this.rotate%180!==0,m=Zo$1({width:l?o:n,height:l?n:o,left:r,top:a,clientWidth:s,clientHeight:d});Zp$1(m.x)||Zp$1(m.y)?this.position=g$1(g$1({},this.position),m):!Zp$1(m.x)&&!Zp$1(m.y)&&(this.position={x:e.source.getFreeDragPosition().x,y:e.source.getFreeDragPosition().y})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform.set(`scale3d(${this.zoom*(this.flipHorizontally?-1:1)}, ${this.zoom*(this.flipVertically?-1:1)}, 1) rotate(${this.rotate}deg)`)}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform.set(`translate3d(${this.position.x}px, ${this.position.y}px, 0)`)}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}handlerImageTransformationWhileZoomingWithMouse(e,n){let o,r=this.imageRef.nativeElement,s=getComputedStyle(r).transform.match(/matrix.*\((.+)\)/);s?o=+s[1].split(`, `)[0]:o=this.zoom;let d=(e.clientX-r.getBoundingClientRect().x)/o,l=(e.clientY-r.getBoundingClientRect().y)/o,p=n<0?this.scaleStep/2:-this.scaleStep/2;this.position.x+=-d*p*2+r.offsetWidth*p,this.position.y+=-l*p*2+r.offsetHeight*p}handleImageScaleWhileZoomingWithMouse(e){this.isZoomedInWithMouseWheel(e)?this.onZoomIn():this.onZoomOut(),this.zoom<=1&&this.reCenterImage()}isZoomedInWithMouseWheel(e){return e<0}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=!1,this.flipVertically=!1,this.reCenterImage()}reCenterImage(){this.position=g$1({},go)}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){let e=[`imgRef`],n=[`imagePreviewWrapper`];function o(l,p){if(l&1){let m=on();oe$2(0,`div`,13),je$1(`click`,function(C){gt$1(m);let u=F$2();return vt(u.onSwitchLeft(C))}),pt$1(1,`nz-icon`,14),he$1(),oe$2(2,`div`,15),je$1(`click`,function(C){gt$1(m);let u=F$2();return vt(u.onSwitchRight(C))}),pt$1(3,`nz-icon`,16),he$1()}if(l&2){let m=F$2();Ze(`ant-image-preview-switch-left-disabled`,m.index<=0),A(2),Ze(`ant-image-preview-switch-right-disabled`,m.index>=m.images.length-1)}}function r(l,p){if(l&1&&(oe$2(0,`li`,5),an$3(1),he$1()),l&2){let m=F$2();A(),Ry(``,m.index+1,` / `,m.images.length)}}function a(l,p){if(l&1){let m=on();oe$2(0,`li`,17),je$1(`click`,function(){let C=gt$1(m).$implicit;return vt(C.onClick())}),pt$1(1,`nz-icon`,18),he$1()}if(l&2){let m=p.$implicit,z=F$2();Ze(`ant-image-preview-operations-operation-disabled`,z.zoomOutDisabled&&m.type===`zoomOut`),A(),ie$1(`nzType`,m.icon)(`nzRotate`,m.rotate??0)}}function s(l,p){if(l&1&&pt$1(0,`img`,20,1),l&2){let m=F$2().$implicit,z=F$2();It$2(`width`,m.width)(`height`,m.height)(`transform`,z.previewImageTransform()),$t(`src`,z.sanitizerResourceUrl(m.src),J9)(`srcset`,m.srcset)(`alt`,m.alt)}}function d(l,p){if(l&1&&ve$1(0,s,2,9,`img`,19),l&2){let m=p.$index,z=F$2();ye$1(m===z.index?0:-1)}}return Se$1({type:i,selectors:[[`nz-image-preview`]],viewQuery:function(p,m){if(p&1&&Kn(e,5)(n,7),p&2){let z;Ge(z=Ke())&&(m.imageRef=z.first),Ge(z=Ke())&&(m.imagePreviewWrapper=z.first)}},hostAttrs:[1,`ant-image-preview-root`],hostVars:4,hostBindings:function(p,m){p&2&&(It$2(`z-index`,m.config.nzZIndex),Ze(`ant-image-preview-moving`,m.isDragging()))},exportAs:[`nzImagePreview`],decls:17,vars:5,consts:[[`imagePreviewWrapper`,``],[`imgRef`,``],[1,`ant-image-preview-mask`],[1,`ant-image-preview-operations-wrapper`],[1,`ant-image-preview-operations`],[1,`ant-image-preview-operations-progress`],[1,`ant-image-preview-operations-operation`,3,`ant-image-preview-operations-operation-disabled`],[`tabindex`,`-1`,1,`ant-image-preview-wrap`,3,`click`],[`role`,`dialog`,`aria-modal`,`true`,1,`ant-image-preview`],[`tabindex`,`0`,`aria-hidden`,`true`,1,`ant-image-preview-focus-trap`],[1,`ant-image-preview-content`],[1,`ant-image-preview-body`],[`cdkDrag`,``,1,`ant-image-preview-img-wrapper`,3,`cdkDragEnded`,`cdkDragFreeDragPosition`],[1,`ant-image-preview-switch-left`,3,`click`],[`nzType`,`left`,`nzTheme`,`outline`],[1,`ant-image-preview-switch-right`,3,`click`],[`nzType`,`r
10ight`,`nzTheme`,`outline`],[1,`ant-image-preview-operations-operation`,3,`click`],[`nzTheme`,`outline`,1,`ant-image-preview-operations-icon`,3,`nzType`,`nzRotate`],[`cdkDragHandle`,``,1,`ant-image-preview-img`,3,`width`,`height`,`transform`],[`cdkDragHandle`,``,1,`ant-image-preview-img`]],template:function(p,m){p&1&&(pt$1(0,`div`,2),oe$2(1,`div`,3),ve$1(2,o,4,4),oe$2(3,`ul`,4),ve$1(4,r,2,2,`li`,5),Yl(5,a,2,4,`li`,6,jl),he$1()(),oe$2(7,`div`,7),je$1(`click`,function(C){return m.maskClosable&&C.target===C.currentTarget&&m.onClose()}),oe$2(8,`div`,8),pt$1(9,`div`,9),oe$2(10,`div`,10)(11,`div`,11)(12,`div`,12,0),je$1(`cdkDragEnded`,function(C){return m.onDragEnd(C)}),Yl(14,d,1,1,null,null,jl),he$1()()(),pt$1(16,`div`,9),he$1()()),p&2&&(A(2),ye$1(m.images.length>1?2:-1),A(2),ye$1(m.images.length>1?4:-1),A(),Ul(m.operations),A(7),It$2(`transform`,m.previewImageWrapperTransform()),ie$1(`cdkDragFreeDragPosition`,m.position),A(2),Ul(m.images))},dependencies:[xr$2,Gt$2,rx,ax],encapsulation:2})})()}return i})();var zo=`ant-image-preview`;var Sn={enter:un$1(zo,`fade-motion-enter`),leave:un$1(zo,`fade-motion-leave`)};var Qo$1=`antFadeOut`;var bn$1=class{previewInstance;config;overlayRef;destroy$=new C$1;constructor(t,e,n){this.previewInstance=t,this.config=e,this.overlayRef=n,e.nzKeyboard&&n.keydownEvents().pipe(ne(o=>(o.keyCode===27||o.keyCode===37||o.keyCode===39)&&!kc(o))).subscribe(o=>{o.preventDefault(),o.keyCode===27&&t.onClose(),o.keyCode===37&&this.prev(),o.keyCode===39&&this.next()}),n.detachments().subscribe(()=>this.overlayRef.dispose()),t.closeClick.pipe($e$2(1),Be(this.destroy$)).subscribe(()=>this.close()),this._startEnterAnimation()}get element(){return this.previewInstance.elementRef.nativeElement}get _animationsEnabled(){return!(this.config.nzNoAnimation??!1)}_startEnterAnimation(){this._animationsEnabled&&this.element.classList.add(Sn.enter)}_startLeaveAnimation(){this._animationsEnabled&&(this.element.classList.remove(Sn.enter),this.element.classList.add(Sn.leave))}switchTo(t){this.previewInstance.switchTo(t)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){if(this._animationsEnabled){let t=e=>{e.animationName===Qo$1&&(this.element.removeEventListener(`animationend`,t),this._doClose())};this.element.addEventListener(`animationend`,t),this._startLeaveAnimation()}else this._doClose()}_doClose(){this.destroy$.next(),this.overlayRef.dispose(),this.previewInstance=null}};var rn$1=(()=>{class i{injector=h(U$2);nzConfigService=h(Xr$3);directionality=h(Ue$1);preview(e,n,o){return this.display(e,n,o)}display(e,n,o){let r=g$1(g$1({},new Dt$1),n??{}),a=this.createOverlay(r),s=this.attachPreviewComponent(a,r);s.setImages(e,o);let d=new bn$1(s,r,a);return s.previewRef=d,d}attachPreviewComponent(e,n){let o=U$2.create({parent:this.injector,providers:[{provide:is,useValue:e},{provide:Dt$1,useValue:n}]}),r=new $o$2(yo,null,o);return e.attach(r).instance}createOverlay(e){let n=this.nzConfigService.getConfigForComponent(Co)||{};return Ai(this.injector,{scrollStrategy:Oc$1(this.injector),positionStrategy:Ac$2(this.injector),disposeOnNavigation:e.nzCloseOnNavigation??n.nzCloseOnNavigation??!0,direction:e.nzDirection||n.nzDirection||this.directionality.valueSignal()})}static ɵfac=function(n){return new(n||i)};static ɵprov=w({token:i,factory:i.ɵfac})}return i})();var Ko$1=`image`;var So=(()=>{let i,t=[],e=[],n,o=[],r=[],a,s=[],d=[],l,p=[],m=[];return class vn{static{let C=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;i=[Bo()],n=[Bo()],a=[Bo()],l=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzDisablePreview`,static:!1,private:!1,access:{has:u=>`nzDisablePreview`in u,get:u=>u.nzDisablePreview,set:(u,E)=>{u.nzDisablePreview=E}},metadata:C},t,e),uo$2(null,null,n,{kind:`field`,name:`nzFallback`,static:!1,private:!1,access:{has:u=>`nzFallback`in u,get:u=>u.nzFallback,set:(u,E)=>{u.nzFallback=E}},metadata:C},o,r),uo$2(null,null,a,{kind:`field`,name:`nzPlaceholder`,static:!1,private:!1,access:{has:u=>`nzPlaceholder`in u,get:u=>u.nzPlaceholder,set:(u,E)=>{u.nzPlaceholder=E}},metadata:C},s,d),uo$2(null,null,l,{kind:`field`,name:`nzScaleStep`,static:!1,private:!1,access:{has:u=>`nzScaleStep`in u,get:u=>u.nzScaleStep,set:(u,E)=>{u.nzScaleStep=E}},metadata:C},p,m),C&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:C})}document=h(z$2);nzConfigService=h(Xr$3);elementRef=h($$2);nzImageService=h(rn$1);dir=h(Ue$1).valueSignal;destroyRef=h(re$1);_nzModuleName=Ko$1;nzSrc=``;nzSrcset=``;nzDisablePreview=mn$3(this,t,!1);nzFallback=(mn$3(this,e),mn$3(this,o,null));nzPlaceholder=(mn$3(this,r),mn$3(this,s,null));nzScaleStep=(mn$3(this,d),mn$3(this,p,null));backLoadImage=mn$3(this,m);status=`normal`;backLoadDestroy$=new C$1;parentGroup=h(qo,{optional:!0});get previewable(){return!this.nzDisablePreview&&this.status!==`error`}ngOnInit(){this.backLoad(),this.parentGroup&&this.parentGroup.addImage(this)}onPreview(){if(this.previewable)if(this.parentGroup){let C=this.parentGroup.images.filter(P=>P.previewable),u=C.map(P=>({src:P.nzSrc,srcset:P.nzSrcset})),E=C.findIndex(P=>this===P),I=new Map;
10C.forEach(P=>{I.set(P.nzSrc??P.nzSrcset,P.nzScaleStep??this.parentGroup.nzScaleStep??this.nzScaleStep??xn)}),this.nzImageService.preview(u,{nzDirection:this.dir()},I).switchTo(E)}else{let C=[{src:this.nzSrc,srcset:this.nzSrcset}];this.nzImageService.preview(C,{nzDirection:this.dir(),nzScaleStep:this.nzScaleStep??xn})}}getElement(){return this.elementRef}ngOnChanges(C){let{nzSrc:u}=C;u&&(this.getElement().nativeElement.src=u.currentValue,this.backLoad())}backLoad(){this.backLoadImage=this.document.createElement(`img`),this.backLoadImage.src=this.nzSrc,this.backLoadImage.srcset=this.nzSrcset,this.status=`loading`,this.backLoadDestroy$.next(),this.backLoadDestroy$.complete(),this.backLoadDestroy$=new C$1,this.backLoadImage.complete?(this.status=`normal`,this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset):(this.nzPlaceholder?(this.getElement().nativeElement.src=this.nzPlaceholder,this.getElement().nativeElement.srcset=``):(this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset),Qc$2(this.backLoadImage,`load`).pipe(Be(this.backLoadDestroy$),be$1(this.destroyRef)).subscribe(()=>{this.status=`normal`,this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset}),Qc$2(this.backLoadImage,`error`).pipe(Be(this.backLoadDestroy$),be$1(this.destroyRef)).subscribe(()=>{this.status=`error`,this.nzFallback&&(this.getElement().nativeElement.src=this.nzFallback,this.getElement().nativeElement.srcset=``)}))}static ɵfac=function(u){return new(u||vn)};static ɵdir=j({type:vn,selectors:[[`img`,`nz-image`,``]],hostBindings:function(u,E){u&1&&je$1(`click`,function(){return E.onPreview()})},inputs:{nzSrc:`nzSrc`,nzSrcset:`nzSrcset`,nzDisablePreview:[2,`nzDisablePreview`,`nzDisablePreview`,H$2],nzFallback:`nzFallback`,nzPlaceholder:`nzPlaceholder`,nzScaleStep:`nzScaleStep`},exportAs:[`nzImage`],features:[Te$1]})}})();var To=(()=>{class i{static ɵfac=function(n){return new(n||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({providers:[rn$1],imports:[yo]})}return i})();var an=class i{srv=h(He$1);vcr=h(Dt$4);data=pe$1.required();constructor(){Jt$1(()=>{let t=this.data(),e=t.options.widget,n=this.srv.getWidget(e.key)?.ref;if(n==null)return;this.vcr.clear();let o=this.vcr.createComponent(n);o.instance.data=t})}static ɵfac=function(e){return new(e||i)};static ɵdir=j({type:i,selectors:[[``,`cell-widget-host`,``]],inputs:{data:[1,`data`]}})};function Jo$1(i,t){if(i&1){let e=on();oe$2(0,`label`,9),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return vt(r.value.set(o))}),an$3(1),he$1()}if(i&2){let e=F$2(2);ie$1(`nzDisabled`,e.disabled())(`ngModel`,e.value()),pI(),A(),Io$1(` `,e.safeOpt.checkbox?.label,` `)}}function er(i,t){if(i&1){let e=on();oe$2(0,`label`,10),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return vt(r.value.set(o))}),an$3(1),he$1()}if(i&2){let e=F$2(2);ie$1(`nzDisabled`,e.disabled())(`ngModel`,e.value()),pI(),A(),Io$1(` `,e.safeOpt.radio?.label,` `)}}function tr(i,t){if(i&1){let e=on();oe$2(0,`a`,11),je$1(`click`,function(o){gt$1(e);let r=F$2(2);return vt(r._link(o))}),he$1()}if(i&2){F$2();let e=pO(1),n=F$2();ie$1(`innerHTML`,e,Sa$1),$t(`target`,n.safeOpt.link?.target)(`title`,n.value())}}function nr(i,t){if(i&1&&(oe$2(0,`nz-tag`,7),pt$1(1,`span`,6),he$1()),i&2){F$2();let e=pO(0),n=pO(1);ie$1(`nzColor`,e?.result?.color),A(),ie$1(`innerHTML`,n,Sa$1)}}function ir$1(i,t){if(i&1&&pt$1(0,`nz-badge`,8),i&2){F$2();let e=pO(0),n=pO(1);ie$1(`nzText`,mO(n))(`nzStatus`,e?.result?.color)}}function or$1(i,t){}function rr$1(i,t){if(i&1&&qe$1(0,or$1,0,0,`ng-template`,12),i&2){F$2(2);let e=pO(0);ie$1(`data`,e)}}function ar$1(i,t){if(i&1&&ve$1(0,rr$1,1,1,null,12),i&2){F$2();let e=pO(0);ye$1(e?0:-1)}}function lr$1(i,t){if(i&1){let e=on();oe$2(0,`img`,14),je$1(`click`,function(){let o=gt$1(e).$implicit,r=F$2(3);return vt(r._showImg(o))}),he$1()}if(i&2){let e=t.$implicit,n=F$2(3).safeOpt.img;Ze(`point`,n?.big),$t(`src`,e,J9)(`height`,n?.size)(`width`,n?.size)}}function sr$1(i,t){if(i&1&&Yl(0,lr$1,1,5,`img`,13,EP),i&2){F$2();let e=pO(1);Ul(e)}}function cr$1(i,t){if(i&1&&pt$1(0,`span`,15),i&2){F$2(2);let e=pO(1),n=F$2();
10ie$1(`innerText`,e),$t(`title`,n.value())}}function pr$1(i,t){if(i&1&&pt$1(0,`span`,6),i&2){F$2(2);let e=pO(1),n=F$2();ie$1(`innerHTML`,e,Sa$1),$t(`title`,n.value())}}function mr$1(i,t){if(i&1&&(oe$2(0,`span`,16),an$3(1),he$1()),i&2){let e=F$2(3);A(),vr$3(e._unit())}}function dr$1(i,t){if(i&1&&(ve$1(0,cr$1,1,2,`span`,15)(1,pr$1,1,2,`span`,6),ve$1(2,mr$1,2,1,`span`,16)),i&2){let e=F$2(2);ye$1(e.isText()?0:1),A(2),ye$1(e._unit()?2:-1)}}function ur$1(i,t){if(i&1&&(By(0)(1),ve$1(2,Jo$1,2,3,`label`,4)(3,er,2,3,`label`,5)(4,tr,1,3,`a`,6)(5,nr,2,2,`nz-tag`,7)(6,ir$1,1,3,`nz-badge`,8)(7,ar$1,1,1)(8,sr$1,2,0)(9,dr$1,3,2)),i&2){let e,n=F$2();fO(n._res()),A(),fO(n._text()),A(),ye$1((e=n.safeOpt.type)===`checkbox`?2:e===`radio`?3:e===`link`?4:e===`tag`?5:e===`badge`?6:e===`widget`?7:e===`img`?8:9)}}function fr$1(i,t){if(i&1&&an$3(0),i&2){let e=F$2(2);Io$1(` `,e.safeOpt.default?.text,` `)}}function _r$1(i,t){}function hr$1(i,t){if(i&1&&(oe$2(0,`span`,17),qe$1(1,_r$1,0,0,`ng-template`,3),he$1()),i&2){let e=F$2(3),n=Wl(1);ie$1(`nz-tooltip`,e.safeOpt.tooltip),A(),ie$1(`ngTemplateOutlet`,n)}}function gr$1(i,t){}function zr$1(i,t){if(i&1&&qe$1(0,gr$1,0,0,`ng-template`,3),i&2){F$2(3);let e=Wl(1);ie$1(`ngTemplateOutlet`,e)}}function Cr$1(i,t){if(i&1&&ve$1(0,hr$1,2,2,`span`,17)(1,zr$1,1,1,null,3),i&2){let e=F$2(2);ye$1(e.safeOpt.tooltip?0:1)}}function yr$1(i,t){if(i&1&&ve$1(0,fr$1,1,1)(1,Cr$1,2,1),i&2){let e=F$2();ye$1(e.showDefault()?0:1)}}function Sr$1(i,t){i&1&&pt$1(0,`nz-icon`,2)}function Tr$1(i,t){}function xr$1(i,t){if(i&1&&qe$1(0,Tr$1,0,0,`ng-template`,3),i&2){F$2();let e=Wl(3);ie$1(`ngTemplateOutlet`,e)}}var st$1=class i{srv=h(He$1);router=h(qt$3);renderer=h(We$2);imgSrv=h(rn$1);win=h(po);el=h($$2).nativeElement;d$=h(re$1);_text=G$1(``);_unit=G$1(void 0);_res=G$1(void 0);showDefault=Fe$1(()=>this.value()==this.safeOpt.default?.condition);value=Jne();options=pe$1();loading=pe$1(!1,{transform:H$2});disabled=pe$1(!1,{transform:H$2});get safeOpt(){return this._res()?.options??{}}isText=Fe$1(()=>
10this._res()?.safeHtml===`text`);constructor(){sr$2([Kce(this.loading),Kce(this.disabled)]).pipe(be$1()).subscribe(()=>this.setClass());let t=null;Jt$1(()=>{let e=this.value(),n=this.options();t?.unsubscribe(),t=this.srv.get(e,n).pipe($e$2(1),be$1(this.d$)).subscribe(o=>{this._res.set(o),this._text.set(o.result?.text??``),this._unit.set(o.result?.unit??this.safeOpt?.unit),this.setClass()})})}setClass(){let{el:t,renderer:e}=this,{renderType:n,size:o,type:r}=this.safeOpt;qMe(t,e,{cell:!0,[`cell__${n}`]:n!=null,[`cell__${o}`]:o!=null,"cell__has-unit":this._unit(),"cell__has-default":this.showDefault(),cell__disabled:this.disabled()}),t.setAttribute(`data-type`,`${r}`)}_link(t){if(t.preventDefault(),t.stopPropagation(),this.disabled())return;let e=this.safeOpt.link,n=e?.url;n!=null&&(/https?:\/\//g.test(n)?this.win.open(n,e?.target):this.router.navigateByUrl(n))}_showImg(t){let e=this.safeOpt.img;if(e==null||e.big==null)return;let n=-1,o=this._text().map((r,a)=>(n===-1&&r===t&&(n=a),typeof e.big==`function`?e.big(r):r));this.imgSrv.preview(o.map(r=>({src:r})),e.previewOptions).switchTo(n)}static ɵfac=function(e){return new(e||i)};static ɵcmp=Se$1({type:i,selectors:[[`cell`],[``,`cell`,``]],inputs:{value:[1,`value`],options:[1,`options`],loading:[1,`loading`],disabled:[1,`disabled`]},outputs:{value:`valueChange`},exportAs:[`cell`],decls:6,vars:1,consts:[[`text`,``],[`textWrap`,``],[`nzType`,`loading`],[3,`ngTemplateOutlet`],[`nz-checkbox`,``,3,`nzDisabled`,`ngModel`],[`nz-radio`,``,3,`nzDisabled`,`ngModel`],[3,`innerHTML`],[3,`nzColor`],[3,`nzStatus`,`nzText`],[`nz-checkbox`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`],[`nz-radio`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`],[3,`click`,`innerHTML`],[`cell-widget-host`,``,3,`data`],[1,`img`,3,`point`],[1,`img`,3,`click`],[3,`innerText`],[1,`unit`],[3,`nz-tooltip`]],template:function(e,n){e&1&&(qe$1(0,ur$1,10,3,`ng-template`,null,0,ql$1)(2,yr$1,2,1,`ng-template`,null,1,ql$1),ve$1(4,Sr$1,1,0,`nz-icon`,2)(5,xr$1,1,1,null,3)),e&2&&(A(4),ye$1(n.loading()?4:5))},dependencies:[fr$2,jn$2,Fi,ka$1,je$2,ct$3,Gt$2,Ka$1,kt,Ys,To,an],encapsulation:2})};function vo(i){return typeof i==`number`||/^(\d)+(px)?$/.test(i)}var wo=({src:i})=>i;var ko=`imageExperimental`;var br$1=[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840];(()=>{let i,t=[],e=[],n,o=[],r=[],a,s=[],d=[],l,p=[],m=[],z,C=[],u=[];return class wn{static{let I=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;i=[Bo()],n=[Bo()],a=[Bo()],l=[Bo()],z=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzSrcLoader`,static:!1,private:!1,access:{has:k=>`nzSrcLoader`in k,get:k=>k.nzSrcLoader,set:(k,P)=>{k.nzSrcLoader=P}},metadata:I},t,e),uo$2(null,null,n,{kind:`field`,name:`nzAutoSrcset`,static:!1,private:!1,access:{has:k=>`nzAutoSrcset`in k,get:k=>k.nzAutoSrcset,set:(k,P)=>{k.nzAutoSrcset=P}},metadata:I},o,r),uo$2(null,null,a,{kind:`field`,name:`nzFallback`,static:!1,private:!1,access:{has:k=>`nzFallback`in k,get:k=>k.nzFallback,set:(k,P)=>{k.nzFallback=P}},metadata:I},s,d),uo$2(null,null,l,{kind:`field`,name:`nzPlaceholder`,static:!1,private:!1,access:{has:k=>`nzPlaceholder`in k,get:k=>k.nzPlaceholder,set:(k,P)=>{k.nzPlaceholder=P}},metadata:I},p,m),uo$2(null,null,z,{kind:`field`,name:`nzDisablePreview`,static:!1,private:!1,access:{has:k=>`nzDisablePreview`in k,get:k=>k.nzDisablePreview,set:(k,P)=>{k.nzDisablePreview=P}},metadata:I},C,u),I&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:I})}cdr=h(Qe$1);imagePreloadService=h(WDe);destroyRef=h(re$1);_nzModuleName=ko;nzSrc=``;nzAlt=``;nzWidth=`auto`;nzHeight=`auto`;nzSrcLoader=mn$3(this,t,wo);nzAutoSrcset=(mn$3(this,e),mn$3(this,o,!1));nzPriority=(mn$3(this,r),!1);nzFallback=mn$3(this,s,null);nzPlaceholder=(mn$3(this,d),mn$3(this,p,null));nzDisablePreview=(mn$3(this,m),mn$3(this,C,!1));imageRef=mn$3(this,u);src=``;width=`auto`;height=`auto`;srcset=``;reloadDisposeHandler=()=>{};constructor(){vc$1(ko,()=>{this.composeImageAttrs(),this.cdr.markForCheck()}),this.destroyRef.onDestroy(()=>{this.reloadDisposeHandler()})}ngOnInit(){this.nzPriority&&this.preload()}ngOnChanges(I){let{nzLoader:k,nzSrc:P,nzOptimize:L}=I;(P||k||L)&&this.composeImageAttrs()}preload(){this.reloadDisposeHandler=this.imagePreloadService.addPreload({src:this.src,srcset:this.srcset})}
10optimizable(){return this.nzAutoSrcset?!vo(this.nzWidth)||!vo(this.nzHeight)?(Sr$3(`When using "nzAutoSrcset" you should use a fixed size width and height, for more information please refer to CLS (https://web.dev/cls/) performance metrics`),!1):this.nzSrc.endsWith(`.svg`)?(Sr$3(`SVG does not need to be optimized`),!1):this.nzSrc.startsWith(`data:`)?(Sr$3(`Data URLs cannot be optimized`),!1):!0:!1}composeImageAttrs(){let I=this.getLoader();if(!this.optimizable()){this.src=I({src:this.nzSrc}),this.width=this.nzWidth,this.height=this.nzHeight;return}this.width=typeof this.nzWidth==`number`?this.nzWidth:parseInt(this.nzWidth,10),this.height=typeof this.nzHeight==`number`?this.nzHeight:parseInt(this.nzHeight,10);let k=this.convertWidths(this.width,br$1);this.src=I({src:this.nzSrc,width:k[0]}),this.srcset=k.map((P,L)=>`${I({src:this.nzSrc,width:P})} ${L+1}x`).join(`, `)}getLoader(){return this.nzSrcLoader||wo}convertWidths(I,k){let P=[...k].sort((L,R)=>L-R);return[...new Set([I,I*2].map(L=>P.find(R=>R>=L)||L))]}static ɵfac=function(k){return new(k||wn)};static ɵcmp=(function(){let I=[`imageRef`];return Se$1({type:wn,selectors:[[`nz-image`]],viewQuery:function(P,L){if(P&1&&Kn(I,5),P&2){let R;Ge(R=Ke())&&(L.imageRef=R.first)}},inputs:{nzSrc:`nzSrc`,nzAlt:`nzAlt`,nzWidth:`nzWidth`,nzHeight:`nzHeight`,nzSrcLoader:`nzSrcLoader`,nzAutoSrcset:[2,`nzAutoSrcset`,`nzAutoSrcset`,H$2],nzPriority:[2,`nzPriority`,`nzPriority`,H$2],nzFallback:`nzFallback`,nzPlaceholder:`nzPlaceholder`,nzDisablePreview:[2,`nzDisablePreview`,`nzDisablePreview`,H$2]},exportAs:[`nzImage`],features:[Te$1],decls:2,vars:9,consts:[[`imageRef`,``],[`nz-image`,``,3,`nzSrc`,`nzSrcset`,`nzDisablePreview`,`nzFallback`,`nzPlaceholder`]],template:function(P,L){P&1&&pt$1(0,`img`,1,0),P&2&&(ie$1(`nzSrc`,L.src)(`nzSrcset`,L.srcset)(`nzDisablePreview`,L.nzDisablePreview)(`nzFallback`,L.nzFallback)(`nzPlaceholder`,L.nzPlaceholder),$t(`width`,L.width)(`height`,L.height)(`srcset`,L.srcset)(`alt`,L.nzAlt||null))},dependencies:[So],encapsulation:2})})()}})();var Do=(()=>{class i{static ɵfac=function(n){return new(n||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({})}return i})();var vr$1=[st$1];var No=class i{static ɵfac=function(e){return new(e||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({imports:[Rb,fr$2,Et$1,ut$2,uo,zu$1,Xs$1,xr$2,Do,vr$1]})};var wr=`popconfirm`;var Mo=(()=>{let i=Da$2,t,e=[],n=[],o,r=[],a=[];return class kn extends i{static{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;t=[Bo()],o=[Bo()],uo$2(null,null,t,{kind:`field`,name:`nzPopconfirmBackdrop`,static:!1,private:!1,access:{has:l=>`nzPopconfirmBackdrop`in l,get:l=>l.nzPopconfirmBackdrop,set:(l,p)=>{l.nzPopconfirmBackdrop=p}},metadata:d},e,n),uo$2(null,null,o,{kind:`field`,name:`nzAutofocus`,static:!1,private:!1,access:{has:l=>`nzAutofocus`in l,get:l=>l.nzAutofocus,set:(l,p)=>{l.nzAutofocus=p}},metadata:d},r,a),d&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}_nzModuleName=wr;arrowPointAtCenter;title;titleContext=null;directiveTitle;trigger=`click`;placement=`top`;origin;mouseEnterDelay;mouseLeaveDelay;overlayClassName;overlayStyle;visible;nzBeforeConfirm;nzIcon;nzCondition=!1;nzPopconfirmShowArrow=!0;nzPopconfirmBackdrop=mn$3(this,e,!1);nzAutofocus=(mn$3(this,n),mn$3(this,r,null));nzOkText=(mn$3(this,a),pe$1(null));nzOkType=pe$1(`primary`);nzCancelText=pe$1(null);nzOkButtonProps=pe$1(null);nzCancelButtonProps=pe$1(null);nzOkDisabled=pe$1(!1,{transform:H$2});nzOkDanger=pe$1(!1,{transform:H$2});okButtonProps=Fe$1(()=>W$1(g$1({},this.nzOkButtonProps()),{nzType:this.nzOkButtonProps()?.nzType||this.nzOkType()===`danger`?`primary`:this.nzOkType(),nzDanger:this.nzOkDanger()||this.nzOkButtonProps()?.nzDanger||this.nzOkType()===`danger`,nzDisabled:this.nzOkDisabled()||this.nzOkButtonProps()?.nzDisabled}));cancelButtonProps=Fe$1(()=>g$1({},this.nzCancelButtonProps()));directiveContent=null;content=null;overlayClickable;visibleChange=new O$1;nzOnCancel=new O$1;nzOnConfirm=new O$1;getProxyPropertyMap(){return g$1({nzOkText:[`nzOkText`,()=>
10this.nzOkText],nzCancelText:[`nzCancelText`,()=>this.nzCancelText],nzOkButtonProps:[`nzOkButtonProps`,()=>this.okButtonProps],nzCancelButtonProps:[`nzCancelButtonProps`,()=>this.cancelButtonProps],nzBeforeConfirm:[`nzBeforeConfirm`,()=>this.nzBeforeConfirm],nzCondition:[`nzCondition`,()=>this.nzCondition],nzIcon:[`nzIcon`,()=>this.nzIcon],nzPopconfirmShowArrow:[`nzPopconfirmShowArrow`,()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:[`nzBackdrop`,()=>this.nzPopconfirmBackdrop],nzPopconfirmContext:[`nzTitleContext`,()=>this.titleContext],nzAutoFocus:[`nzAutoFocus`,()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(){super(kr)}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(be$1(this.destroyRef)).subscribe(()=>{this.nzOnCancel.emit()}),this.component.nzOnConfirm.pipe(be$1(this.destroyRef)).subscribe(()=>{this.nzOnConfirm.emit()})}static ɵfac=function(l){return new(l||kn)};static ɵdir=j({type:kn,selectors:[[``,`nz-popconfirm`,``]],hostVars:2,hostBindings:function(l,p){l&2&&Ze(`ant-popover-open`,p.visible)},inputs:{arrowPointAtCenter:[2,`nzPopconfirmArrowPointAtCenter`,`arrowPointAtCenter`,H$2],title:[0,`nzPopconfirmTitle`,`title`],titleContext:[0,`nzPopconfirmTitleContext`,`titleContext`],directiveTitle:[0,`nz-popconfirm`,`directiveTitle`],trigger:[0,`nzPopconfirmTrigger`,`trigger`],placement:[0,`nzPopconfirmPlacement`,`placement`],origin:[0,`nzPopconfirmOrigin`,`origin`],mouseEnterDelay:[0,`nzPopconfirmMouseEnterDelay`,`mouseEnterDelay`],mouseLeaveDelay:[0,`nzPopconfirmMouseLeaveDelay`,`mouseLeaveDelay`],overlayClassName:[0,`nzPopconfirmOverlayClassName`,`overlayClassName`],overlayStyle:[0,`nzPopconfirmOverlayStyle`,`overlayStyle`],visible:[0,`nzPopconfirmVisible`,`visible`],nzBeforeConfirm:`nzBeforeConfirm`,nzIcon:`nzIcon`,nzCondition:[2,`nzCondition`,`nzCondition`,H$2],nzPopconfirmShowArrow:[2,`nzPopconfirmShowArrow`,`nzPopconfirmShowArrow`,H$2],nzPopconfirmBackdrop:`nzPopconfirmBackdrop`,nzAutofocus:`nzAutofocus`,nzOkText:[1,`nzOkText`],nzOkType:[1,`nzOkType`],nzCancelText:[1,`nzCancelText`],nzOkButtonProps:[1,`nzOkButtonProps`],nzCancelButtonProps:[1,`nzCancelButtonProps`],nzOkDisabled:[1,`nzOkDisabled`],nzOkDanger:[1,`nzOkDanger`]},outputs:{visibleChange:`nzPopconfirmVisibleChange`,nzOnCancel:`nzOnCancel`,nzOnConfirm:`nzOnConfirm`},exportAs:[`nzPopconfirm`],features:[tn$2]})}})();var kr=(()=>{class i extends Cr$2{_animationPrefix=`ant-zoom-big`;okBtn;cancelBtn;nzCondition=!1;nzPopconfirmShowArrow=!0;nzIcon;nzAutoFocus=null;nzBeforeConfirm=null;nzOkText=G$1(null);nzCancelText=G$1(null);nzOkButtonProps=G$1({nzType:`primary`});nzCancelButtonProps=G$1(null);nzOnCancel=new C$1;nzOnConfirm=new C$1;_trigger=`click`;elementFocusedBeforeModalWasOpened=null;document=h(z$2);_prefix=`ant-popover`;confirmLoading=!1;constructor(){super(),this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete()})}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show())}hide(){super.hide(),this.restoreFocus()}handleConfirm(){this.nzOnConfirm.next(),super.hide()}onCancel(){this.nzOnCancel.next(),super.hide()}onConfirm(){this.nzBeforeConfirm?(this.confirmLoading=!0,this.cdr.markForCheck(),Qw(this.nzBeforeConfirm()).pipe(vo$1(),ne(Boolean),Kt$1(()=>{this.confirmLoading=!1,this.cdr.markForCheck()})).subscribe(()=>this.handleConfirm())):this.handleConfirm()}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement)}restoreFocus(){this.elementFocusedBeforeModalWasOpened?.focus()}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){let e=[`okBtn`],n=[`cancelBtn`];function o(l,p){l&1&&pt$1(0,`div`,5)}function r(l,p){if(l&1&&(nn$1(0),pt$1(1,`nz-icon`,17),rn$3()),l&2){let m=p.$implicit;A(),ie$1(`nzType`,m||`exclamation-circle`)}}function a(l,p){if(l&1&&(oe$2(0,`span`,10),qe$1(1,r,2,1,`ng-container`,16),he$1()),l&2){let m=F$2(2);A(),ie$1(`nzStringTemplateOutlet`,m.nzIcon)}}function s(l,p){if(l&1&&(nn$1(0),an$3(1),rn$3()),l&2){let m=F$2(2);A(),Io$1(` `,m.nzTitle,` `)}}function d(l,p){if(l&1){let m=on();oe$2(0,`div`,4),hi$1(function(){gt$1(m);let C=F$2();return vt(C.zoomAnimationLeave())}),ui(function(){gt$1(m);let C=F$2();return vt(C.zoomAnimationEnter())}),ve$1(1,o,1,0,`div`,5),oe$2(2,`div`,6)(3,`div`,7)(4,`div`)(5,`div`,8)(6,`div`,9),ve$1(7,a,2,1,`span`,10),oe$2(8,`div`,11),qe$1(9,s,2,1,`ng-container`,12),he$1()(),oe$2(10,`div`,13)(11,`button`,14,1),je$1(`click`,function(){gt$1(m);let C=F$2();return vt(C.onCancel())}),By(13),vi$1(14,`nzI18n`),an$3(15),he$1(),oe$2(16,`button`,15,2),je$1(`click`,function(){gt$1(m);let C=F$2();return vt(C.onConfirm())}),By(18),vi$1(19,`nzI18n`),an$3(20),he$1()()()()()()()}if(l&2){let m=F$2();ko$1(m.nzOverlayStyle),Lt$1(m._classMap),Ze(`ant-popover-rtl`,m.dir()===`rtl`),ie$1(`cdkTrapFocusAutoCapture`,m.nzAutoFocus!==null)(`nzNoAnimation`,!!m.noAnimation?.nzNoAnimation?.()),A(),ye$1(m.nzPopconfirmShowArrow?1:-1),A(6),ye$1(m.nzIcon!==null?7:-1),A(2),ie$1(`nzStringTemplateOutlet`,m.nzTitle)(`nzStringTemplateOutletContext`,m.nzTitleContext),A(2),ie$1(`nzDanger`,m.nzCancelButtonProps()?.nzDanger)(`disabled`,m.
10nzCancelButtonProps()?.nzDisabled),$t(`cdkFocusInitial`,m.nzAutoFocus===`cancel`||null);let z=m.nzCancelText()||yi$2(14,22,`Modal.cancelText`);A(4),Io$1(` `,z,` `),A(),ie$1(`nzType`,m.nzOkButtonProps().nzType)(`nzDanger`,m.nzOkButtonProps().nzDanger)(`nzLoading`,m.confirmLoading)(`disabled`,m.nzOkButtonProps().nzDisabled),$t(`cdkFocusInitial`,m.nzAutoFocus===`ok`||null);let C=m.nzOkText()||yi$2(19,24,`Modal.okText`);A(4),Io$1(` `,C,` `)}}return Se$1({type:i,selectors:[[`nz-popconfirm`]],viewQuery:function(p,m){if(p&1&&Kn(e,5,$$2)(n,5,$$2),p&2){let z;Ge(z=Ke())&&(m.okBtn=z),Ge(z=Ke())&&(m.cancelBtn=z)}},exportAs:[`nzPopconfirmComponent`],features:[tn$2],decls:2,vars:5,consts:[[`overlay`,`cdkConnectedOverlay`],[`cancelBtn`,``],[`okBtn`,``],[`cdkConnectedOverlay`,``,`nzConnectedOverlay`,``,3,`overlayOutsideClick`,`detach`,`positionChange`,`cdkConnectedOverlayHasBackdrop`,`cdkConnectedOverlayOrigin`,`cdkConnectedOverlayPositions`,`cdkConnectedOverlayOpen`,`nzArrowPointAtCenter`],[`cdkTrapFocus`,``,1,`ant-popover`,3,`cdkTrapFocusAutoCapture`,`nzNoAnimation`],[1,`ant-popover-arrow`],[1,`ant-popover-content`],[1,`ant-popover-inner`],[1,`ant-popover-inner-content`],[1,`ant-popover-message`],[1,`ant-popover-message-icon`],[1,`ant-popover-message-title`],[4,`nzStringTemplateOutlet`,`nzStringTemplateOutletContext`],[1,`ant-popover-buttons`],[`nz-button`,``,`nzSize`,`small`,3,`click`,`nzDanger`,`disabled`],[`nz-button`,``,`nzSize`,`small`,3,`click`,`nzType`,`nzDanger`,`nzLoading`,`disabled`],[4,`nzStringTemplateOutlet`],[`nzTheme`,`fill`,3,`nzType`]],template:function(p,m){p&1&&(qe$1(0,d,21,26,`ng-template`,3,0,ql$1),je$1(`overlayOutsideClick`,function(C){return m.onClickOutside(C)})(`detach`,function(){return m.hide()})(`positionChange`,function(C){return m.onPositionChange(C)})),p&2&&ie$1(`cdkConnectedOverlayHasBackdrop`,m.nzBackdrop)(`cdkConnectedOverlayOrigin`,m.origin)(`cdkConnectedOverlayPositions`,m._positions)(`cdkConnectedOverlayOpen`,m._visible)(`nzArrowPointAtCenter`,m.nzArrowPointAtCenter)},dependencies:[X5,i4,e9e,Jge,MV,wV,as,Jr$3,er$1,xr$2,Gt$2,v5,a3,f5,m5,L5e,R5],encapsulation:2})})()}return i})();function Po(i){return Qp$1(i)?i.touches[0]||i.changedTouches[0]:i}var Dn=(()=>{class i{document=h(z$2);ngZone=h(B$2);listeners=new Map;handleMouseDownOutsideAngular$=new C$1;documentMouseUpOutsideAngular$=new C$1;documentMouseMoveOutsideAngular$=new C$1;mouseEnteredOutsideAngular$=new C$1;startResizing(e){let n=Qp$1(e);this.clearListeners();let o=n?`touchmove`:`mousemove`,r=n?`touchend`:`mouseup`,a=d=>{this.documentMouseMoveOutsideAngular$.next(d)},s=d=>{this.documentMouseUpOutsideAngular$.next(d),this.clearListeners()};this.listeners.set(o,a),this.listeners.set(r,s),this.ngZone.runOutsideAngular(()=>{this.listeners.forEach((d,l)=>{this.document.addEventListener(l,d)})})}clearListeners(){this.listeners.forEach((e,n)=>{this.document.removeEventListener(n,e)}),this.listeners.clear()}ngOnDestroy(){this.handleMouseDownOutsideAngular$.complete(),this.documentMouseUpOutsideAngular$.complete(),this.documentMouseMoveOutsideAngular$.complete(),this.mouseEnteredOutsideAngular$.complete(),this.clearListeners()}static ɵfac=function(n){return new(n||i)};static ɵprov=w({token:i,factory:i.ɵfac})}return i})();var Io=(()=>{class i{elementRef=h($$2);renderer=h(We$2);nzResizableService=h(Dn);platform=h(Me$3);ngZone=h(B$2);destroyRef=h(re$1);nzBounds=`parent`;nzMaxHeight;nzMaxWidth;nzMinHeight=40;nzMinWidth=40;nzGridColumnCount=-1;nzMaxColumn=-1;nzMinColumn=-1;nzLockAspectRatio=!1;nzPreview=!1;nzDisabled=!1;nzResize=new O$1;nzResizeEnd=new O$1;nzResizeStart=new O$1;resizing=!1;elRect;currentHandleEvent=null;ghostElement=null;el;sizeCache=null;constructor(){this.nzResizableService.handleMouseDownOutsideAngular$.pipe(be$1()).subscribe(e=>{this.nzDisabled||(this.resizing=!0,this.nzResizableService.startResizing(e.mouseEvent),this.currentHandleEvent=e,this.nzResizeStart.observers.length&&this.ngZone.run(()=>this.nzResizeStart.emit({mouseEvent:e.mouseEvent,direction:e.direction})),this.elRect=this.el.getBoundingClientRect())}),this.nzResizableService.documentMouseUpOutsideAngular$.pipe(be$1(),ne(Boolean)).subscribe(e=>{this.resizing&&(this.resizing=!1,this.nzResizableService.documentMouseUpOutsideAngular$.next(null),this.endResize(e))}),this.nzResizableService.documentMouseMoveOutsideAngular$.pipe(be$1()).subscribe(e=>{this.resizing&&this.resize(e)}
10)}setPosition(){let e=getComputedStyle(this.el).position;(e===`static`||!e)&&this.renderer.setStyle(this.el,`position`,`relative`)}calcSize(e,n,o){let r,a,s,d,l=0,p=0,m=this.nzMinWidth,z=1/0,C=1/0;if(this.nzBounds===`parent`){let u=this.renderer.parentNode(this.el);if(u instanceof HTMLElement){let E=u.getBoundingClientRect();z=E.width,C=E.height}}else if(this.nzBounds===`window`)typeof window<`u`&&(z=window.innerWidth,C=window.innerHeight);else if(this.nzBounds&&this.nzBounds.nativeElement&&this.nzBounds.nativeElement instanceof HTMLElement){let u=this.nzBounds.nativeElement.getBoundingClientRect();z=u.width,C=u.height}return s=W1e(this.nzMaxWidth,z),d=W1e(this.nzMaxHeight,C),this.nzGridColumnCount!==-1&&(p=s/this.nzGridColumnCount,m=this.nzMinColumn!==-1?p*this.nzMinColumn:m,s=this.nzMaxColumn!==-1?p*this.nzMaxColumn:s),o!==-1?/(left|right)/i.test(this.currentHandleEvent.direction)?(r=Math.min(Math.max(e,m),s),a=Math.min(Math.max(r/o,this.nzMinHeight),d),(a>=d||a<=this.nzMinHeight)&&(r=Math.min(Math.max(a*o,m),s))):(a=Math.min(Math.max(n,this.nzMinHeight),d),r=Math.min(Math.max(a*o,m),s),(r>=s||r<=m)&&(a=Math.min(Math.max(r/o,this.nzMinHeight),d))):(r=Math.min(Math.max(e,m),s),a=Math.min(Math.max(n,this.nzMinHeight),d)),this.nzGridColumnCount!==-1&&(l=Math.round(r/p),r=l*p),{col:l,width:r,height:a}}resize(e){let n=this.elRect,o=Po(e),r=Po(this.currentHandleEvent.mouseEvent),a=n.width,s=n.height,d=this.nzLockAspectRatio?a/s:-1;switch(this.currentHandleEvent.direction){case`bottomRight`:a=o.clientX-n.left,s=o.clientY-n.top;break;case`bottomLeft`:a=n.width+r.clientX-o.clientX,s=o.clientY-n.top;break;case`topRight`:a=o.clientX-n.left,s=n.height+r.clientY-o.clientY;break;case`topLeft`:a=n.width+r.clientX-o.clientX,s=n.height+r.clientY-o.clientY;break;case`top`:s=n.height+r.clientY-o.clientY;break;case`right`:a=o.clientX-n.left;break;case`bottom`:s=o.clientY-n.top;break;case`left`:a=n.width+r.clientX-o.clientX}let l=this.calcSize(a,s,d);this.sizeCache=g$1({},l),this.nzResize.observers.length&&this.ngZone.run(()=>{this.nzResize.emit(W$1(g$1({},l),{mouseEvent:e,direction:this.currentHandleEvent.direction}))}),this.nzPreview&&this.previewResize(l)}endResize(e){this.removeGhostElement();let n=this.sizeCache?g$1({},this.sizeCache):{width:this.elRect.width,height:this.elRect.height};this.nzResizeEnd.observers.length&&this.ngZone.run(()=>{this.nzResizeEnd.emit(W$1(g$1({},n),{mouseEvent:e,direction:this.currentHandleEvent.direction}))}),this.sizeCache=null,this.currentHandleEvent=null}previewResize({width:e,height:n}){this.createGhostElement(),this.renderer.setStyle(this.ghostElement,`width`,`${e}px`),this.renderer.setStyle(this.ghostElement,`height`,`${n}px`)}createGhostElement(){this.ghostElement||(this.ghostElement=this.renderer.createElement(`div`),this.renderer.setAttribute(this.ghostElement,`class`,`nz-resizable-preview`)),this.renderer.appendChild(this.el,this.ghostElement)}removeGhostElement(){this.ghostElement&&this.renderer.removeChild(this.el,this.ghostElement)}ngAfterViewInit(){this.platform.isBrowser&&(this.el=this.elementRef.nativeElement,this.setPosition(),A1(this.el,`mouseenter`).pipe(be$1(this.destroyRef)).subscribe(()=>{this.nzResizableService.mouseEnteredOutsideAngular$.next(!0)}),A1(this.el,`mouseleave`).pipe(be$1(this.destroyRef)).subscribe(()=>{this.nzResizableService.mouseEnteredOutsideAngular$.next(!1)}))}ngOnDestroy(){this.ghostElement=null,this.sizeCache=null}static ɵfac=function(n){return new(n||i)};static ɵdir=j({type:i,selectors:[[``,`nz-resizable`,``]],hostAttrs:[1,`nz-resizable`],hostVars:4,hostBindings:function(n,o){n&2&&Ze(`nz-resizable-resizing`,o.resizing)(`nz-resizable-disabled`,o.nzDisabled)},inputs:{nzBounds:`nzBounds`,nzMaxHeight:`nzMaxHeight`,nzMaxWidth:`nzMaxWidth`,nzMinHeight:[2,`nzMinHeight`,`nzMinHeight`,Oo$1],nzMinWidth:[2,`nzMinWidth`,`nzMinWidth`,Oo$1],nzGridColumnCount:[2,`nzGridColumnCount`,`nzGridColumnCount`,Oo$1],nzMaxColumn:[2,`nzMaxColumn`,`nzMaxColumn`,Oo$1],nzMinColumn:[2,`nzMinColumn`,`nzMinColumn`,Oo$1],nzLockAspectRatio:[2,`nzLockAspectRatio`,`nzLockAspectRatio`,H$2],nzPreview:[2,`nzPreview`,`nzPreview`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2]},outputs:{nzResize:`nzResize`,nzResizeEnd:`nzResizeEnd`,nzResizeStart:`nzResizeStart`},exportAs:[`nzResizable`],features:[Ft$1([Dn])]})}return i})();var Nn=class{direction;mouseEvent;constructor(t,e){this.direction=t,this.mouseEvent=e}};var Oo=Hp$1({passive:!0});var Eo=(()=>{class i{nzResizableService=h(Dn);renderer=h(We$2);el=h($$2).nativeElement;destroyRef=h(re$1);nzDirection=`bottomRight`;nzCursorType=`window`;nzMouseDown=new O$1;ngOnInit(){this.nzResizableService.mouseEnteredOutsideAngular$.pipe(be$1(this.destroyRef)).subscribe(e=>{e?this.renderer.addClass(this.el,`nz-resizable-handle-box-hover`):this.renderer.removeClass(this.el,`nz-resizable-handle-box-hover`)}),ti(A1(this.el,`mousedown`,Oo),A1(this.el,`touchstart`,Oo)).pipe(be$1(this.destroyRef)).subscribe(e=>{this.nzResizableService.handleMouseDownOutsideAngular$.next(new Nn(this.nzDirection,e))})}onPointerDown(e){e.target.setPointerCapture(e.pointerId)}onPointerUp(e){e.target.releasePointerCapture(e.pointerId)}static ɵfac=function(n){return new(n||i)};static ɵcmp=(function(){return Se$1({type:i,selectors:[[`nz-resize-handle`],[``,`nz-resize-handle`,``]],hostAttrs:[1,`nz-resizable-handle`],hostVars:20,hostBindings:function(o,r){o&1&&je$1(`pointerdown`,function(s){return r.onPointerDown(s)})(`pointerup`,function(s){return r.onPointerUp(s)}),o&2&&Ze(`nz-resizable-handle-top`,r.nzDirection===`top`)(`nz-resizable-handle-right`,r.nzDirection===`right`)(`nz-resizable-handle-bottom`,r.nzDirection===`bottom`)(`nz-resizable-handle-left`,r.nzDirection===`left`)(`nz-resizable-handle-topRight`,r.nzDirection===`topRight`)(`nz-resizable-handle-bottomRight`,r.nzDirection===`bottomRight`)(`nz-resizable-handle-bottomLeft`,r.nzDirection===`bottomLeft`)(`nz-resizable-handle-topLeft`,r.nzDirection===`topLeft`)(`nz-resizable-handle-cursor-type-grid`,r.nzCursorType===`grid`)(`nz-resizable-handle-cursor-type-window`,r.nzCursorType===`window`)},inputs:{nzDirection:`nzDirection`,nzCursorType:`nzCursorType`},outputs:{nzMouseDown:`nzMouseDown`},exportAs:[`nzResizeHandle`],ngContentSelectors:[`*`],decls:1,vars:0,template:function(o,r){o&1&&(yn$1(),Wt$1(0))},encapsulation:2})})()}return i})();var Ro=(()=>
10{class i{static ɵfac=function(n){return new(n||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({})}return i})();var Je=class i{titles={};rows={};add(t,e,n){this[t===`title`?`titles`:`rows`][e]=n}getTitle(t){return this.titles[t]}getRow(t){return this.rows[t]}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac})};var ln$1=class i{source=h(Je,{host:!0});ref=h(yt$1);id;type;ngOnInit(){this.source.add(this.type,this.id,this.ref)}static ɵfac=function(e){return new(e||i)};static ɵdir=j({type:i,selectors:[[``,`st-row`,``]],inputs:{id:[0,`st-row`,`id`],type:`type`}})};var We$1=class i{_widgets={};get widgets(){return this._widgets}register(t,e){this._widgets[t]=e}has(t){return Object.prototype.hasOwnProperty.call(this._widgets,t)}get(t){return this._widgets[t]}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac,providedIn:`root`})};var Nt=class i{dom=h(Aa$1);rowSource=h(Je,{host:!0});acl=h(Zr$2,{optional:!0});i18nSrv=h(Kr$3,{optional:!0});stWidgetRegistry=h(We$1);cog;setCog(t){this.cog=t}fixPop(t,e){if(t.pop==null||t.pop===!1){t.pop=!1;return}let n=g$1({okType:`primary`},e);typeof t.pop==`string`?n.title=t.pop:typeof t.pop==`object`&&(n=g$1(g$1({},n),t.pop)),typeof n.condition!=`function`&&(n.condition=()=>!1),this.i18nSrv&&(n.titleI18n&&(n.title=this.i18nSrv.fanyi(n.titleI18n)),n.okTextI18n&&(n.okText=this.i18nSrv.fanyi(n.okTextI18n)),n.cancelTextI18n&&(n.cancelText=this.i18nSrv.fanyi(n.cancelTextI18n))),t.pop=n}btnCoerce(t){if(!t)return[];let e=[],{modal:n,drawer:o,pop:r,btnIcon:a}=this.cog;for(let s of t)this.acl&&s.acl&&!this.acl.can(s.acl)||((s.type===`modal`||s.type===`static`)&&(s.modal==null||s.modal.component==null?s.type=`none`:s.modal=g$1(g$1({paramsName:`record`,size:`lg`},n),s.modal)),s.type===`drawer`&&(s.drawer==null||s.drawer.component==null?s.type=`none`:s.drawer=g$1(g$1({paramsName:`record`,size:`lg`},o),s.drawer)),s.type===`del`&&typeof s.pop>`u`&&(s.pop=!0),this.fixPop(s,r),typeof s.icon!=`function`&&(s.icon=g$1(g$1({},a),typeof s.icon==`string`?{type:s.icon}:s.icon)),s.children=Array.isArray(s.children)?this.btnCoerce(s.children):null,s.i18n&&this.i18nSrv&&(s.text=this.i18nSrv.fanyi(s.i18n)),e.push(s));return this.btnCoerceIf(e),e}btnCoerceIf(t){for(let e of t)e.iifBehavior=e.iifBehavior??this.cog.iifBehavior,e.children&&e.children.length>0&&this.btnCoerceIf(e.children)}fixedCoerce(t,e){let n=(r,a)=>r+ +a.width.toString().replace(`px`,``),o=e?50:0;t.filter(r=>r.fixed&&r.fixed===`left`&&r.width).forEach((r,a)=>r._left=`${t.slice(0,a).reduce(n,0)+o}px`),t.filter(r=>r.fixed&&r.fixed===`right`&&r.width).reverse().forEach((r,a)=>r._right=`${a>0?t.slice(-a).reduce(n,0):0}px`)}sortCoerce(t){let e=this.fixSortCoerce(t);return e.reName=g$1(g$1({},this.cog.sortReName),e.reName),e}fixSortCoerce(t){if(typeof t.sort>`u`)return{enabled:!1};let e={};return typeof t.sort==`string`?t.sort===`ascend`||t.sort===`descend`?e.directions=[t.sort,null]:e.key=t.sort:typeof t.sort!=`boolean`?e=t.sort:typeof t.sort==`boolean`&&(e.compare=(n,o)=>n[t.indexKey]-o[t.indexKey]),e.key||(e.key=t.indexKey),Array.isArray(e.directions)||(e.directions=this.cog.sortDirections??[`ascend`,`descend`,null]),e.enabled=!0,e}filterCoerce(t){if(t.filter==null)return null;let e=t.filter;e.type=e.type??`default`,e.showOPArea=e.showOPArea!==!1;let n=`filter`,o=`fill`,r=!0,a;switch(e.type){case`keyword`:n=`search`,o=`outline`;break;case`number`:n=`search`,o=`outline`,e.number=g$1({step:1,min:-1/0,max:1/0},e.number);break;case`date`:n=`calendar`,o=`outline`,e.date=g$1({range:!1,mode:`date`,showToday:!0,showNow:!1},e.date);break;case`custom`:break;default:r=!1}if(r&&(e.menus==null||e.menus.length===0)&&(e.menus=[{value:a}]),e.menus?.length===0)return null;typeof e.multiple>`u`&&(e.multiple=!0),e.confirmText=e.confirmText??this.cog.filterConfirmText,e.clearText=e.clearText??this.cog.filterClearText,e.key=e.key??t.indexKey,e.icon=e.icon??n;let s={type:n,theme:o};return typeof e.icon==`string`?e.icon=W$1(g$1({},s),{type:e.icon}):e.icon=g$1(g$1({},s),e.icon),this.updateDefault(e),this.acl&&(e.menus=e.menus?.filter(d=>this.acl.can(d.acl))),e.menus?.length===0?null:e}restoreRender(t){t.renderTitle&&(t.__renderTitle=typeof t.renderTitle==`string`?this.rowSource.getTitle(t.renderTitle):t.renderTitle),t.render&&(t.__render=typeof t.render==`string`?this.rowSource.getRow(t.render):t.render)}widgetCoerce(t){t.type===`widget`&&(t.widget==null||!this.stWidgetRegistry.has(t.widget.type))&&delete t.type}genHeaders(t){let e=[],n=[],o=(a,s,d=0)=>{e[d]=e[d]??[];let l=s;return a.map(m=>{let z={column:m,colStart:l,hasSubColumns:!1},C=1,u=m.children;return Array.isArray(u)&&u.length>0?(C=o(u,l,d+1).reduce((E,I)=>E+I,0),z.hasSubColumns=!0):n.push(z.column.width??``),`colSpan`in m&&(C=m.colSpan),`rowSpan`in m&&(z.rowSpan=m.rowSpan),z.colSpan=C,z.colEnd=z.colStart+C-1,e[d].push(z),l+=C,C})};o(t,0);let r=e.length;for(let a=0;a<r;
10a+=1)e[a].forEach(s=>{!(`rowSpan`in s)&&!s.hasSubColumns&&(s.rowSpan=r-a)});return{headers:e,headerWidths:r>1?n:null}}cleanCond(t){let e=[],n=wL(t);for(let o of n)typeof o.iif==`function`&&!o.iif(o)||this.acl&&o.acl&&!this.acl.can(o.acl)||(Array.isArray(o.children)&&o.children.length>0&&(o.children=this.cleanCond(o.children)),e.push(o));return e}mergeClass(t){let e=[];t._isTruncate&&e.push(`text-truncate`);let n=t.className;if(!n){let a={number:`text-right`,currency:`text-right`,date:`text-center`}[t.type];a&&e.push(a),t._className=e;return}let o=Array.isArray(n);if(!o&&typeof n==`object`){let a=n;e.forEach(s=>a[s]=!0),t._className=a;return}let r=o?Array.from(n):[n];r.splice(0,0,...e),t._className=[...new Set(r)].filter(a=>!!a)}process(t,e){if(!t||t.length===0)return{columns:[],headers:[],headerWidths:null};let{noIndex:n}=this.cog,o=0,r=0,a=[],s=p=>{p.index&&(Array.isArray(p.index)||(p.index=p.index.toString().split(`.`)),p.indexKey=p.index.join(`.`));let m=(typeof p.title==`string`?{text:p.title}:p.title)??{};return m.i18n&&this.i18nSrv&&(m.text=this.i18nSrv.fanyi(m.i18n)),m.text&&(m._text=this.dom.bypassSecurityTrustHtml(m.text)),p.title=m,p.type===`no`&&(p.noIndex=p.noIndex==null?n:p.noIndex),p.selections??=[],p.type===`checkbox`&&(++o,p.width||(p.width=`${p.selections.length>0?62:50}px`)),this.acl&&(p.selections=p.selections.filter(z=>this.acl.can(z.acl))),p.type===`radio`&&(++r,p.selections=[],p.width||(p.width=`50px`)),p.cell!=null&&(p.type=`cell`),p.type===`yn`&&(p.yn=g$1(g$1({truth:!0},this.cog.yn),p.yn)),p.type===`date`&&(p.dateFormat=p.dateFormat??this.cog.date?.format),(p.type===`link`&&typeof p.click!=`function`||p.type===`badge`&&p.badge==null||p.type===`tag`&&p.tag==null||p.type===`enum`&&p.enum==null)&&(p.type=``),p._isTruncate=!!p.width&&e.widthMode.strictBehavior===`truncate`&&p.type!==`img`,this.mergeClass(p),typeof p.width==`number`&&(p._width=p.width,p.width=`${p.width}px`),p._left=!1,p._right=!1,p.safeType=p.safeType??e.safeType,p._sort=this.sortCoerce(p),p.filter=this.filterCoerce(p),p.buttons=this.btnCoerce(p.buttons),this.widgetCoerce(p),this.restoreRender(p),p.resizable=g$1(g$1({disabled:!0,bounds:`window`,minWidth:60,maxWidth:360,preview:!0},e.resizable),typeof p.resizable==`boolean`?{disabled:!p.resizable}:p.resizable),p},d=p=>{for(let m of p)a.push(s(m)),Array.isArray(m.children)&&d(m.children)},l=this.cleanCond(t);if(d(l),o>1)throw new Error(`[st]: just only one column checkbox`);if(r>1)throw new Error(`[st]: just only one column radio`);return this.fixedCoerce(a,e.expand),g$1({columns:a.filter(p=>!Array.isArray(p.children)||p.children.length===0)},this.genHeaders(l))}restoreAllRender(t){t.forEach(e=>this.restoreRender(e))}updateDefault(t){return t.menus==null?this:(t.type==="default"?t.default=t.menus.findIndex(e=>e.checked)!==-1:t.default=!!t.menus[0].value,this)}cleanFilter(t){let e=t.filter;return e.default=!1,e.type==="default"?e.menus.forEach(n=>n.checked=!1):e.menus[0].value=void 0,this}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac})};var Mt=class i{constructor(t,e,n,o,r,a){this.http=t;this.datePipe=e;this.ynPipe=n;this.numberPipe=o;this.currencySrv=r;this.dom=a}http;datePipe;ynPipe;numberPipe;currencySrv;dom;cog;sortTick=0;setCog(t){this.cog=t}process(t){let e,n=!1,{data:o,res:r,total:a,page:s,pi:d,ps:l,paginator:p,columns:m,headers:z,locale:C}=t,u,E,I,k,P,L=s.show;return typeof o==`string`?(n=!0,e=this.getByRemote(o,t).pipe(P$2(R=>{P=R;let j;if(Array.isArray(R))j=R,u=j.length,E=u,L=!1;else{let le=r.reName;if(typeof le==`function`){let Ee=le(R,{pi:d,ps:l,total:a});j=Ee.list,u=Ee.total}else{j=hse(R,le.list,[]),(j==null||!Array.isArray(j))&&(j=[]);let Ee=le.total&&hse(R,le.total,null);u=Ee==null?a??0:+Ee}}return wL(j)}))):o==null||Array.isArray(o)?e=S(o??[]):e=o,n||(e=e.pipe(P$2(R=>{P=R;let j=wL(R),le=this.getSorterFn(z);return le&&(j=j.sort(le)),j}),P$2(R=>(m.filter(j=>j.filter).forEach(j=>{let le=j.filter,Ee=this.getFilteredData(le);if(Ee.length===0)return;let On=le.fn;typeof On==`function`&&(R=R.filter(Bo=>Ee.some(Lo=>On(Lo,Bo))))}),R)),P$2(R=>{if(p&&s.front){let j=Math.ceil(R.length/l);if(k=Math.max(1,d>j?j:d),u=R.length,s.show===!0)return R.slice((k-1)*l,k*l)}return R}))),typeof r.process==`function`&&(e=e.pipe(P$2(R=>
10r.process(R,P)))),e=e.pipe(P$2(R=>this.optimizeData({result:R,columns:m,rowClassName:t.rowClassName,locale:C}))),e.pipe(P$2(R=>{I=R;let j=u??a,le=E??l;return{pi:k,ps:E,total:u,list:I,statistical:this.genStatistical(m,I,P),pageShow:typeof L>`u`?j>le:L}}))}get(t,e,n){try{let o=e.safeType===`safeHtml`;if(e.format){let l=e.format(t,e,n)??``;return{text:l,_text:o?this.dom.bypassSecurityTrustHtml(l):l,org:l,safeType:e.safeType}}let r=hse(t,e.index,e.default),a=r,s,d;switch(e.type){case`no`:a=this.getNoIndex(t,e,n);break;case`img`:a=r?`<img src="${r}" class="img">`:``;break;case`number`:a=this.numberPipe.transform(r,e.numberDigits);break;case`currency`:a=this.currencySrv.format(r,e.currency?.format);break;case`date`:a=r==null||r===e.default||typeof r==`number`&&r<=0?e.default:this.datePipe.transform(r,e.dateFormat);break;case`yn`:a=this.ynPipe.transform(r===e.yn.truth,e.yn.yes,e.yn.no,e.yn.mode,!1);break;case`enum`:a=e.enum[r];break;case`tag`:case`badge`:{let l=e.type===`tag`?e.tag:e.badge;if(l&&l[a]){let p=l[a];a=p.text,s=p.color,d=p.tooltip}else a=``;break}}return a??=``,{text:a,_text:o?this.dom.bypassSecurityTrustHtml(a):a,org:r,color:s,tooltip:d,safeType:e.safeType,buttons:[]}}catch(o){let r=`INVALID DATA`;return console.error(`Failed to get data`,t,e,o),{text:r,_text:r,org:r,buttons:[],safeType:`text`}}}getByRemote(t,e){let{req:n,page:o,paginator:r,pi:a,ps:s,singleSort:d,multiSort:l,columns:p,headers:m}=e,z=(n.method??`GET`).toUpperCase(),C={},u=n.reName;r&&(n.type===`page`?C={[u.pi]:o.zeroIndexed?a-1:a,[u.ps]:s}:C={[u.skip]:(a-1)*s,[u.limit]:s}),C=g$1(g$1(g$1(g$1({},C),n.params),this.getReqSortMap(d,l,m)),this.getReqFilterMap(p)),e.req.ignoreParamNull==!0&&Object.keys(C).forEach(I=>{C[I]??delete C[I]});let E={params:C,body:n.body,headers:n.headers};return z===`POST`&&n.allInBody===!0&&(E={body:g$1(g$1({},n.body),C),headers:n.headers}),typeof n.process==`function`&&(E=n.process(E)),E.params instanceof Qn$1||(E.params=new Qn$1({fromObject:E.params})),typeof e.customRequest==`function`?e.customRequest({method:z,url:t,options:E}):this.http.request(z,t,E)}getCell(t,e,n){let o=typeof t.onCell==`function`?t.onCell(e,n):null,r=o?.colSpan??1,a=o?.rowSpan??1;return{colSpan:r<=0?null:r,rowSpan:a<=0?null:a}}optimizeData(t){let{result:e,columns:n,rowClassName:o,locale:r}=t;for(let a=0,s=e.length;a<s;a++)e[a]._values=n.map(d=>{let l=this.getCell(d,e[a],a);if(Array.isArray(d.buttons)&&d.buttons.length>0)return{buttons:this.genButtons(d.buttons,e[a],d,r),_text:``,props:l};let p;return typeof d.cell==`function`&&(p=d.cell(e[a],d)),W$1(g$1({},this.get(e[a],d,a)),{props:l,cell:p})}),e[a]._rowClassName=[o?o(e[a],a):null,e[a].className].filter(d=>!!d).join(` `);return e}getNoIndex(t,e,n){return typeof e.noIndex==`function`?e.noIndex(t,e,n):e.noIndex+n}genButtons(t,e,n,o){let r=d=>wL(d).filter(l=>{let p=typeof l.iif==`function`?l.iif(e,l,n):!0,m=l.iifBehavior===`disabled`;if(l._result=p,l._disabled=!p&&m,Array.isArray(l.children))if(l.children.length>0)l.children=r(l.children);else return!1;return p||m}),a=r(t),s=d=>{for(let l of d)l._text=typeof l.text==`function`?l.text(e,l):l.text??``,l._className=typeof l.className==`function`?l.className(e,l):l.className,l._icon=typeof l.icon==`function`?l.icon(e,l):l.icon,l.children?.length&&(l.children=s(l.children));return d};return this.fixMaxMultiple(s(a),n,o)}fixMaxMultiple(t,e,n){let o=e.maxMultipleButton,r=t.length;if(o==null||r<=0)return t;let a=g$1(g$1({},this.cog.maxMultipleButton),typeof o==`number`?{count:o}:o);if(a.count>=r)return t;let s=t.slice(0,a.count);return s.push({_text:a.text??n.more,children:t.slice(a.count)}),s}getValidSort(t){return t.reduce((e,n)=>{let o=n.map(r=>r.column).filter(r=>r._sort&&r._sort.enabled&&r._sort.default).map(r=>r._sort);return e.concat(...o)},[])}getSorterFn(t){let e=this.getValidSort(t);if(e.length===0)return;let n=e[0];if(n.compare!==null&&typeof n.compare==`function`)return(o,r)=>{let a=n.compare(o,r);return a!==0?n.default===`descend`?-a:a:0}}get nextSortTick(){return++this.sortTick}getReqSortMap(t,e,n){let o={},r=this.getValidSort(n);if(e){let l=g$1({key:`sort`,separator:`-`,nameSeparator:`.`,keepEmptyKey:!0,arrayParam:!1},e),p=r.sort((m,z)=>
10m.tick-z.tick).map(m=>m.key+l.nameSeparator+((m.reName??{})[m.default]??m.default));return o={[l.key]:l.arrayParam?p:p.join(l.separator)},p.length===0&&l.keepEmptyKey===!1?{}:o}if(r.length===0)return o;let a=r[0],s=a.key,d=(r[0].reName??{})[a.default]??a.default;return t&&(d=s+(t.nameSeparator??`.`)+d,s=t.key??`sort`),o[s]=d,o}getFilteredData(t){return t.type==="default"?t.menus.filter(e=>e.checked===!0):t.menus.slice(0,1)}getReqFilterMap(t){let e={};return t.filter(n=>n.filter&&n.filter.default===!0).forEach(n=>{let o=n.filter,r=this.getFilteredData(o),a={};o.reName?a=o.reName(o.menus,n):a[o.key]=r.map(s=>s.value).join(`,`),e=g$1(g$1({},e),a)}),e}genStatistical(t,e,n){let o={};return t.forEach((r,a)=>{o[r.key??r.indexKey??a]=r.statistical==null?{}:this.getStatistical(r,a,e,n)}),o}getStatistical(t,e,n,o){let r=t.statistical,a=g$1({digits:2,currency:void 0},typeof r==`string`?{type:r}:r),s={value:0},d=!1;if(typeof a.type==`function`)s=a.type(this.getValues(e,n),t,n,o),d=!0;else switch(a.type){case`count`:s.value=n.length;break;case`distinctCount`:s.value=this.getValues(e,n).filter((l,p,m)=>m.indexOf(l)===p).length;break;case`sum`:s.value=this.toFixed(this.getSum(e,n),a.digits),d=!0;break;case`average`:s.value=this.toFixed(this.getSum(e,n)/n.length,a.digits),d=!0;break;case`max`:s.value=Math.max(...this.getValues(e,n)),d=!0;break;case`min`:s.value=Math.min(...this.getValues(e,n)),d=!0}return a.currency===!0||a.currency==null&&d===!0?s.text=this.currencySrv.format(s.value,t.currency?.format):s.text=String(s.value),s}toFixed(t,e){return isNaN(t)||!isFinite(t)?0:parseFloat(t.toFixed(e))}getValues(t,e){return e.map(n=>n._values[t].org).map(n=>n===``||n==null?0:n)}getSum(t,e){return this.getValues(t,e).reduce((n,o)=>n+=parseFloat(String(o)),0)}static ɵfac=function(e){return new(e||i)(V$2(z0),V$2(_m$1,1),V$2(Tm$1,1),V$2(FA,1),V$2(ci$1),V$2(Aa$1))};static ɵprov=w({token:i,factory:i.ɵfac})};function Ao(i){if(!i)return!1;for(var t=0,e=i.length;t<e;){if(i[t]<=127){t++;continue}if(i[t]>=194&&i[t]<=223)if(i[t+1]>>6===2){t+=2;continue}else return!1;if((i[t]===224&&i[t+1]>=160&&i[t+1]<=191||i[t]===237&&i[t+1]>=128&&i[t+1]<=159)&&i[t+2]>>6===2){t+=3;continue}if((i[t]>=225&&i[t]<=236||i[t]>=238&&i[t]<=239)&&i[t+1]>>6===2&&i[t+2]>>6===2){t+=3;continue}if((i[t]===240&&i[t+1]>=144&&i[t+1]<=191||i[t]>=241&&i[t]<=243&&i[t+1]>>6===2||i[t]===244&&i[t+1]>=128&&i[t+1]<=143)&&i[t+2]>>6===2&&i[t+3]>>6===2){t+=4;continue}return!1}return!0}var ct$1=class i{http=h(rc);lazy=h(Dw);cogSrv=h(ln$3);cog;constructor(){this.cog=this.cogSrv.merge(`xlsx`,{url:`https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js`,modules:[`https://cdn.jsdelivr.net/npm/xlsx/dist/cpexcel.js`]})}init(){return typeof XLSX<`u`?Promise.resolve([]):this.lazy.load([this.cog.url].concat(this.cog.modules))}read(t){let{read:e,utils:{sheet_to_json:n}}=XLSX,o={},r=new Uint8Array(t),a=`array`;if(!Ao(r))try{t=cptable.utils.decode(936,r),a=`string`}catch{}let s=e(t,{type:a});return s.SheetNames.forEach(d=>{let l=s.Sheets[d];o[d]=n(l,{header:1})}),o}import(t){return new Promise((e,n)=>{let o=r=>e(this.read(r));this.init().then(()=>{if(typeof t==`string`){this.http.request(`GET`,t,{responseType:`arraybuffer`}).subscribe({next:a=>o(new Uint8Array(a)),error:a=>n(a)});return}let r=new FileReader;r.onload=a=>o(a.target.result),r.onerror=a=>n(a),r.readAsArrayBuffer(t)}).catch(()=>n(`Unable to load xlsx.js`))})}async export(t){return new Promise((e,n)=>{this.init().then(()=>{t=g$1({format:`xlsx`},t);let{writeFile:o,utils:{book_new:r,aoa_to_sheet:a,book_append_sheet:s}}=XLSX,d=r();Array.isArray(t.sheets)?t.sheets.forEach((p,m)=>{let z=a(p.data);s(d,z,p.name??`Sheet${m+1}`)}):(d.SheetNames=Object.keys(t.sheets),d.Sheets=t.sheets),t.callback&&t.callback(d);let l=t.filename??`export.${t.format}`;o(d,l,g$1({bookType:t.format,bookSST:!1,type:`array`},t.opts)),e({filename:l,wb:d})}).catch(o=>n(o))})}numberToSchema(t){let n=``;do--t,n=String.fromCharCode(65+t%26)+n,t=t/26>>0;while(t>0);return n}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac,providedIn:`root`})};var Pt=class i{xlsxSrv=h(ct$1);_stGet(t,e,n,o){let r={t:`s`,v:``};if(e.format)r.v=e.format(t,e,n);else{let a=t._values?t._values[o].text:hse(t,e.index,``);if(r.v=a,a!=null)switch(e.type){case`currency`:r.t=`n`;break;case`date`:`${a}`.length>0&&(r.t=`d`,r.z=e.dateFormat);break;case`yn`:{let s=e.yn;r.v=a===s.truth?s.yes:s.no;break}}}return r.v=r.v??``,r}genSheet(t){let e={},n=e[t.sheetname??`Sheet1`]={},o=t.data.length,r=t.columens,a=0,s=!1,d=l=>l.exported===!1||!l.index||!(!l.buttons||l.buttons.length===0);for(let[l,p]of r.entries()){if(d(p))continue;!s&&p._width!=null&&(s=!0),++a;let m=this.xlsxSrv.numberToSchema(a);n[`${m}1`]={t:`s`,v:typeof p.title==`object`?p.title.text:p.title};for(let z=0;z<o;z++)n[`${m}${z+2}`]=this._stGet(t.data[z],p,z,l)}return s&&(n[`!cols`]=r.filter(l=>
10!d(l)).map(l=>({wpx:l._width}))),a>0&&o>0&&(n[`!ref`]=`A1:${this.xlsxSrv.numberToSchema(a)}${o+1}`),e}async export(t){let e=this.genSheet(t);return this.xlsxSrv.export({sheets:e,filename:t.filename,callback:t.callback})}static ɵfac=function(e){return new(e||i)};static ɵprov=w({token:i,factory:i.ɵfac})};var Or=(i,t,e)=>({$implicit:i,col:t,handle:e});function Ir(i,t){if(i&1){let e=on();oe$2(0,`div`,4)(1,`input`,10),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2();return hO(r.f.menus[0].value,o)||(r.f.menus[0].value=o),vt(o)}),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.n.emit(o))})(`keyup.enter`,function(){gt$1(e);let o=F$2();return vt(o.confirm())}),he$1()()}if(i&2){let e=F$2();A(),Fy(`ngModel`,e.f.menus[0].value),$t(`placeholder`,e.f.placeholder),pI()}}function Er(i,t){if(i&1){let e=on();oe$2(0,`div`,5)(1,`nz-input-number`,11),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2();return hO(r.f.menus[0].value,o)||(r.f.menus[0].value=o),vt(o)}),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.n.emit(o))}),he$1()()}if(i&2){let e=F$2();A(),Fy(`ngModel`,e.f.menus[0].value),ie$1(`nzMin`,e.f.number.min)(`nzMax`,e.f.number.max)(`nzStep`,e.f.number.step)(`nzPrecision`,e.f.number.precision??null)(`nzPlaceHolder`,e.f.placeholder),pI()}}function Rr(i,t){if(i&1){let e=on();oe$2(0,`nz-range-picker`,13),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return hO(r.f.menus[0].value,o)||(r.f.menus[0].value=o),vt(o)}),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return vt(r.n.emit(o))}),he$1()}if(i&2){let e=F$2(2);ie$1(`nzMode`,e.f.date.mode),Fy(`ngModel`,e.f.menus[0].value),ie$1(`nzShowNow`,e.f.date.showNow)(`nzShowToday`,e.f.date.showToday)(`nzDisabledDate`,e.f.date.disabledDate)(`nzDisabledTime`,e.f.date.disabledTime),pI()}}function Ar(i,t){if(i&1){let e=on();oe$2(0,`nz-date-picker`,13),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return hO(r.f.menus[0].value,o)||(r.f.menus[0].value=o),vt(o)}),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return vt(r.n.emit(o))}),he$1()}if(i&2){let e=F$2(2);ie$1(`nzMode`,e.f.date.mode),Fy(`ngModel`,e.f.menus[0].value),ie$1(`nzShowNow`,e.f.date.showNow)(`nzShowToday`,e.f.date.showToday)(`nzDisabledDate`,e.f.date.disabledDate)(`nzDisabledTime`,e.f.date.disabledTime),pI()}}function Fr(i,t){if(i&1&&(oe$2(0,`div`,6),ve$1(1,Rr,1,6,`nz-range-picker`,12)(2,Ar,1,6,`nz-date-picker`,12),he$1()),i&2){let e=F$2();A(),ye$1(e.f.date.range?1:2)}}function Br(i,t){}function Lr(i,t){if(i&1&&(oe$2(0,`div`,7),qe$1(1,Br,0,0,`ng-template`,14),he$1()),i&2){let e=F$2();A(),ie$1(`ngTemplateOutlet`,e.f.custom)(`ngTemplateOutletContext`,DO(2,Or,e.f,e.col,e))}}function Vr(i,t){if(i&1){let e=on();oe$2(0,`label`,18),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2().$implicit;return hO(r.checked,o)||(r.checked=o),vt(o)}),je$1(`ngModelChange`,function(){gt$1(e);let o=F$2(3);return vt(o.checkboxChange())}),an$3(1),he$1()}if(i&2){let e=F$2().$implicit;Fy(`ngModel`,e.checked),pI(),A(),Io$1(` `,e.text,` `)}}function Hr(i,t){if(i&1){let e=on();oe$2(0,`label`,19),hI(),je$1(`ngModelChange`,function(){gt$1(e);let o=F$2().$implicit,r=F$2(2);return vt(r.radioChange(o))}),an$3(1),he$1()}if(i&2){let e=F$2().$implicit;ie$1(`ngModel`,e.checked),pI(),A(),Io$1(` `,e.text,` `)}}function Wr(i,t){if(i&1&&(oe$2(0,`li`,15),ve$1(1,Vr,2,2,`label`,16)(2,Hr,2,2,`label`,17),he$1()),i&2){let e=F$2(2);A(),ye$1(e.f.multiple?1:2)}}function $r(i,t){if(i&1&&(oe$2(0,`ul`,8),Yl(1,Wr,3,1,`li`,15,EP),he$1()),i&2){let e=F$2();A(),Ul(e.f.menus)}}function jr$1(i,t){if(i&1){let e=on();oe$2(0,`div`,9)(1,`a`,20),je$1(`click`,function(){gt$1(e);let o=F$2();return vt(o.confirm())}),oe$2(2,`span`),an$3(3),he$1()(),oe$2(4,`a`,21),je$1(`click`,function(){gt$1(e);let o=F$2();return vt(o.reset())}),oe$2(5,`span`),an$3(6),he$1()()()}if(i&2){let e=F$2();A(3),vr$3(e.f.confirmText??e.locale.filterConfirm),A(3),vr$3(e.f.clearText??e.locale.filterReset)}}var sn$1=class i{cdr=h(Qe$1);visible=!1;col;locale={};f;n=new O$1;handle=new O$1;get icon(){return this.f.icon}stopPropagation(t){t.stopPropagation()}checkboxChange(){this.n.emit(this.f.menus?.filter(t=>t.checked))}
10radioChange(t){this.f.menus.forEach(e=>e.checked=!1),t.checked=!t.checked,this.n.emit(t)}close(t){t!=null&&this.handle.emit(t),this.visible=!1,this.cdr.detectChanges()}confirm(){return this.handle.emit(!0),this}reset(){return this.handle.emit(!1),this}static ɵfac=function(e){return new(e||i)};static ɵcmp=Se$1({type:i,selectors:[[`st-filter`]],hostVars:6,hostBindings:function(e,n){e&2&&Ze(`ant-table-filter-trigger-container`,!0)(`st__filter`,!0)(`ant-table-filter-trigger-container-open`,n.visible)},inputs:{col:`col`,locale:`locale`,f:`f`},outputs:{n:`n`,handle:`handle`},decls:11,vars:9,consts:[[`filterMenu`,`nzDropdownMenu`],[`nz-dropdown`,``,`nzTrigger`,`click`,`nzOverlayClassName`,`st__filter-wrap`,1,`ant-table-filter-trigger`,3,`nzVisibleChange`,`click`,`nzDropdownMenu`,`nzClickHide`,`nzVisible`],[3,`nzType`,`nzTheme`],[1,`ant-table-filter-dropdown`],[1,`st__filter-keyword`],[1,`p-sm`,`st__filter-number`],[1,`p-sm`,`st__filter-date`],[1,`st__filter-custom`],[`nz-menu`,``],[1,`ant-table-filter-dropdown-btns`],[`type`,`text`,`nz-input`,``,3,`ngModelChange`,`keyup.enter`,`ngModel`],[1,`width-100`,3,`ngModelChange`,`ngModel`,`nzMin`,`nzMax`,`nzStep`,`nzPrecision`,`nzPlaceHolder`],[`nzInline`,``,3,`nzMode`,`ngModel`,`nzShowNow`,`nzShowToday`,`nzDisabledDate`,`nzDisabledTime`],[`nzInline`,``,3,`ngModelChange`,`nzMode`,`ngModel`,`nzShowNow`,`nzShowToday`,`nzDisabledDate`,`nzDisabledTime`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nz-menu-item`,``],[`nz-checkbox`,``,3,`ngModel`],[`nz-radio`,``,3,`ngModel`],[`nz-checkbox`,``,3,`ngModelChange`,`ngModel`],[`nz-radio`,``,3,`ngModelChange`,`ngModel`],[1,`ant-table-filter-dropdown-link`,`confirm`,3,`click`],[1,`ant-table-filter-dropdown-link`,`clear`,3,`click`]],template:function(e,n){if(e&1){let o=on();oe$2(0,`span`,1),Hy(`nzVisibleChange`,function(a){return gt$1(o),hO(n.visible,a)||(n.visible=a),vt(a)}),je$1(`click`,function(a){return n.stopPropagation(a)}),pt$1(1,`nz-icon`,2),he$1(),oe$2(2,`nz-dropdown-menu`,null,0)(4,`div`,3),ve$1(5,Ir,2,2,`div`,4)(6,Er,2,6,`div`,5)(7,Fr,3,1,`div`,6)(8,Lr,2,6,`div`,7)(9,$r,3,0,`ul`,8),ve$1(10,jr$1,7,2,`div`,9),he$1()()}if(e&2){let o,r=Wl(3);Ze(`active`,n.visible??n.f.default),ie$1(`nzDropdownMenu`,r)(`nzClickHide`,!1),Fy(`nzVisible`,n.visible),A(),ie$1(`nzType`,n.icon.type)(`nzTheme`,n.icon.theme),A(4),ye$1((o=n.f.type)===`keyword`?5:o===`number`?6:o===`date`?7:o===`custom`?8:9),A(5),ye$1(n.f.showOPArea?10:-1)}},dependencies:[fr$2,At$1,jn$2,Fi,Rt$3,TDe,xx,bt$1,Nt$1,Gt$2,He$2,os,Ai$1,yn$2,ka$1,zDe,je$2,ct$3],encapsulation:2})};var Ot$1=class i{stWidgetRegistry=h(We$1);viewContainerRef=h(Dt$4);record;column;ngOnInit(){let t=this.column.widget,e=this.stWidgetRegistry.get(t.type);this.viewContainerRef.clear();let n=this.viewContainerRef.createComponent(e),{record:o,column:r}=this,a=t.params?t.params({record:o,column:r}):{record:o};Object.keys(a).forEach(s=>{n.instance[s]=a[s]})}static ɵfac=function(e){return new(e||i)};static ɵdir=j({type:i,selectors:[[``,`st-widget-host`,``]],inputs:{record:`record`,column:`column`}})};var Fo={pi:1,ps:10,size:`default`,responsive:!0,responsiveHideHeaderFooter:!1,req:{type:`page`,method:`GET`,allInBody:!1,lazyLoad:!1,ignoreParamNull:!1,reName:{pi:`pi`,ps:`ps`,skip:`skip`,limit:`limit`}},res:{reName:{list:[`list`],total:[`total`]}},page:{front:!0,zeroIndexed:!1,position:`bottom`,placement:`right`,show:!0,showSize:!1,pageSizes:[10,20,30,40,50],showQuickJumper:!1,total:!0,toTop:!0,toTopOffset:100,itemRender:null,simple:!1},modal:{paramsName:`record`,size:`lg`,exact:!0},drawer:{paramsName:`record`,size:`md`,footer:!0,footerHeight:55},pop:{title:`确认删除吗?`,trigger:`click`,placement:`top`},btnIcon:{theme:`outline`,spin:!1},noIndex:1,expandRowByClick:!1,expandAccordion:!1,widthMode:{type:`default`,strictBehavior:`truncate`},virtualItemSize:54,virtualMaxBufferPx:200,virtualMinBufferPx:100,iifBehavior:`hide`,loadingDelay:0,safeType:`safeHtml`,date:{format:`yyyy-MM-dd HH:mm`},yn:{truth:!0,yes:`是`,mode:`icon`},maxMultipleButton:{text:`更多`,count:2}};var $e$1=i=>({$implicit:i});var qr=(i,t,e)=>({$implicit:i,index:t,column:e});var Zr$1=i=>({$implicit:i,child:!0});var Ur=i=>({$implicit:i,child:!1});function Gr$1(i,t){}function Xr$1(i,t){if(i&1&&(oe$2(0,`span`,6),qe$1(1,Gr$1,0,0,`ng-template`,4),he$1()),i&2){let e=F$2(),n=e.$implicit,o=e.child;F$2();let r=Wl(3);Ze(`d-block`,o)(`width-100`,o),ie$1(`nzTooltipTitle`,n.tooltip),A(),ie$1(`ngTemplateOutlet`,r)(`ngTemplateOutletContext`,ff(7,$e$1,n))}}function Yr(i,t){}function Qr(i,t){if(i&1&&qe$1(0,Yr,0,0,`ng-template`,4),i&2){let e=F$2().$implicit;F$2();let n=Wl(3);ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(2,$e$1,e))}}function Kr$1(i,t){if(i&1&&ve$1(0,Xr$1,2,9,`span`,5)(1,Qr,1,4,null,4),i&2){let e=t.$implicit;ye$1(e.tooltip?0:1)}}function Jr$1(i,t){}function ea$1(i,t){if(i&1){let e=on();oe$2(0,`a`,9),je$1(`nzOnConfirm`,function(){gt$1(e);let o=F$2().$implicit,r=F$2();return vt(r._btn(o))})(`click`,function(o){gt$1(e);let r=F$2(2);return vt(r._stopPropagation(o))}),qe$1(1,Jr$1,0,0,`ng-template`,4),he$1()}if(i&2){let e=F$2().$implicit;F$2();let n=Wl(5),o=e.pop;Lt$1(e._className),ie$1(`nzPopconfirmTitle`,t)(`nzIcon`,o.icon)(`nzCondition`,o.condition(e))(`nzCancelText`,o.cancelText??null)(`nzOkText`,o.okText??null)(`nzOkType`,o.okType??`primary`),A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(10,$e$1,e))}}function ta$1(i,t){}function na$1(i,t){if(i&1){let e=on();oe$2(0,`a`,10),je$1(`click`,function(o){gt$1(e);let r=F$2().$implicit,a=F$2();return vt(a._btn(r,o))}),qe$1(1,ta$1,0,0,`ng-template`,4),he$1()}if(i&2){let e=F$2().$implicit;F$2();let n=Wl(5);Lt$1(e._className),A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(4,$e$1,e))}}function ia$1(i,t){if(i&1&&ve$1(0,ea$1,2,12,`a`,7)(1,na$1,2,6,`a`,8),i&2){let e,n=t.$implicit,o=F$2();ye$1((e=n.pop&&o._popTitle(n))?0:1,e)}}function oa$1(i,t){if(i&1&&pt$1(0,`nz-icon`,12),i&2){F$2();let e=pO(0);ie$1(`nzIconfont`,e.iconfont)}}function ra$1(i,t){if(i&1&&pt$1(0,`nz-icon`,13),i&2){F$2();let e=pO(0);ie$1(`nzType`,e.type)(`nzTheme`,e.theme)(`nzSpin`,e.spin)(`nzTwotoneColor`,e.twoToneColor)}}function aa$1(i,t){if(i&1&&(By(0),ve$1(1,oa$1,1,1,`nz-icon`,12)(2,ra$1,1,4,`nz-icon`,13)),i&2){let e=F$2().$implicit,n=fO(e._icon);A(),ye$1(n.iconfont?1:2)}}function la$1(i,t){if(i&1&&(ve$1(0,aa$1,3,2),pt$1(1,`span`,11)),i&2){let e=t.$implicit;ye$1(e._icon?0:-1),A(),Ze(`pl-xs`,e._icon),ie$1(`innerHTML`,e._text,Sa$1)}}function sa$1(i,t){}function ca$1(i,t){if(i&1&&qe$1(0,sa$1,0,0,`ng-template`,4),i&2){let e=F$2();ie$1(`ngTemplateOutlet`,e.c.__render)(`ngTemplateOutletContext`,DO(2,qr,e.i,e.index,e.c))}}function pa$1(i,t){if(i&1){let e=on();oe$2(0,`label`,20),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2(2);return vt(r._checkbox(o))}),he$1()}if(i&2){let e=F$2(2);ie$1(`nzDisabled`,e.i.disabled)(`ngModel`,e.i.checked),pI()}}function ma$1(i,t){if(i&1){let e=on();oe$2(0,`label`,21),hI(),je$1(`ngModelChange`,function(){gt$1(e);let o=F$2(2);return vt(o._radio())}),he$1()}if(i&2){let e=F$2(2);ie$1(`nzDisabled`,e.i.disabled)(`ngModel`,e.i.checked),pI()}}function da$1(i,t){if(i&1){let e=on();oe$2(0,`a`,22),je$1(`click`,function(o){gt$1(e);let r=F$2(2);return vt(r._link(o))}),he$1()}if(i&2){F$2();let e=pO(0);ie$1(`innerHTML`,e._text,Sa$1),$t(`title`,e.text)}}function ua$1(i,t){if(i&1&&(oe$2(0,`nz-tag`,16),pt$1(1,`span`,11),he$1()),i&2){F$2();let e=pO(0);ie$1(`nzColor`,e.color)(`nz-tooltip`,e.tooltip),A(),ie$1(`innerHTML`,e._text,Sa$1)}}function fa$1(i,t){if(i&1&&pt$1(0,`nz-badge`,17),i&2){F$2();let e=pO(0);ie$1(`nzStatus`,e.color)(`nzText`,e.text)(`nz-tooltip`,e.tooltip)}}function _a(i,t){if(i&1){let e=on();oe$2(0,`cell`,23),je$1(`click`,function(){gt$1(e);let o=F$2(2);return vt(o._client())}),he$1()}if(i&2){F$2();let e=pO(0),n=F$2();
10ie$1(`value`,e.text)(`options`,e.cell??n.c.cell)}}function ha$1(i,t){}function ga(i,t){if(i&1&&qe$1(0,ha$1,0,0,`ng-template`,19),i&2){let e=F$2(2);ie$1(`record`,e.i)(`column`,e.c)}}function za$1(i,t){if(i&1&&pt$1(0,`span`,24),i&2){F$2(2);let e=pO(0),n=F$2();ie$1(`innerText`,e._text),$t(`title`,n.c._isTruncate?e.text:null)}}function Ca(i,t){if(i&1&&pt$1(0,`span`,11),i&2){F$2(2);let e=pO(0),n=F$2();ie$1(`innerHTML`,e._text,Sa$1),$t(`title`,n.c._isTruncate?e.text:null)}}function ya(i,t){if(i&1&&ve$1(0,za$1,1,2,`span`,24)(1,Ca,1,2,`span`,11),i&2){let e=F$2(2);ye$1(e.c.safeType===`text`?0:1)}}function Sa(i,t){i&1&&pt$1(0,`li`,30)}function Ta(i,t){}function xa(i,t){if(i&1&&(oe$2(0,`li`,32),qe$1(1,Ta,0,0,`ng-template`,4),he$1()),i&2){let e=F$2().$implicit;F$2(4);let n=Wl(1);Ze(`st__btn-disabled`,e._disabled),A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(4,Zr$1,e))}}function ba(i,t){if(i&1&&ve$1(0,Sa,1,0,`li`,30)(1,xa,2,6,`li`,31),i&2){let e=t.$implicit;ye$1(e.type===`divider`?0:1)}}function va(i,t){if(i&1&&(oe$2(0,`a`,27),pt$1(1,`span`,11)(2,`nz-icon`,28),he$1(),oe$2(3,`nz-dropdown-menu`,null,3)(5,`ul`,29),Yl(6,ba,2,1,null,null,EP),he$1()()),i&2){let e=Wl(4),n=F$2().$implicit;ie$1(`nzDropdownMenu`,e),A(),ie$1(`innerHTML`,n._text,Sa$1),A(5),Ul(n.children)}}function wa(i,t){}function ka(i,t){if(i&1&&(oe$2(0,`span`),qe$1(1,wa,0,0,`ng-template`,4),he$1()),i&2){let e=F$2().$implicit;F$2(2);let n=Wl(1);Ze(`st__btn-disabled`,e._disabled),A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(4,Ur,e))}}function Da(i,t){i&1&&pt$1(0,`nz-divider`,26)}function Na(i,t){if(i&1&&(ve$1(0,va,8,2)(1,ka,2,6,`span`,25),ve$1(2,Da,1,0,`nz-divider`,26)),i&2){let e=t.$implicit,n=t.$index,o=t.$count;ye$1(e.children&&e.children.length>0?0:1),A(2),ye$1(n!==o-1?2:-1)}}function Ma(i,t){if(i&1&&(By(0),ve$1(1,pa$1,1,2,`label`,14)(2,ma$1,1,2,`label`,15)(3,da$1,1,2,`a`,11)(4,ua$1,2,3,`nz-tag`,16)(5,fa$1,1,3,`nz-badge`,17)(6,_a,1,2,`cell`,18)(7,ga,1,2,null,19)(8,ya,2,1),Yl(9,Na,3,2,null,null,EP)),i&2){let e,n=F$2(),o=fO(n.i._values[n.cIdx]);A(),ye$1((e=n.c.type)===`checkbox`?1:e===`radio`?2:e===`link`?3:e===`tag`?4:e===`badge`?5:e===`cell`?6:e===`widget`?7:8),A(8),Ul(o.buttons)}}var Pa=[`table`];var Oa=[`contextmenuTpl`];var It=(i,t)=>({$implicit:i,index:t});var Ia=()=>({$implicit:!1});var Ea=()=>({$implicit:!0});function Ra(i,t){if(i&1&&pt$1(0,`small`,15),i&2){let e=F$2().$implicit;ie$1(`innerHTML`,e.optional,Sa$1)}}function Aa(i,t){if(i&1&&pt$1(0,`nz-icon`,16),i&2){let e=F$2().$implicit;ie$1(`nzTooltipTitle`,e.optionalHelp)}}function Fa(i,t){if(i&1&&(pt$1(0,`span`,14),ve$1(1,Ra,1,1,`small`,15),ve$1(2,Aa,1,1,`nz-icon`,16)),i&2){let e=t.$implicit;ie$1(`innerHTML`,e._text,Sa$1),A(),ye$1(e.optional?1:-1),A(),ye$1(e.optionalHelp?2:-1)}}function Ba(i,t){if(i&1){let e=on();oe$2(0,`label`,17),hI(),Hy(`ngModelChange`,function(o){gt$1(e);let r=F$2();return hO(r._allChecked,o)||(r._allChecked=o),vt(o)}),je$1(`ngModelChange`,function(){gt$1(e);let o=F$2();return vt(o.checkAll())}),he$1()}if(i&2){let e=t.$implicit,n=F$2();Ze(`ant-table-selection-select-all-custom`,e),ie$1(`nzDisabled`,n._allCheckedDisabled),Fy(`ngModel`,n._allChecked),ie$1(`nzIndeterminate`,n._indeterminate),pI()}}function La(i,t){if(i&1&&pt$1(0,`th`,18),i&2){let e=F$2(),n=e.$implicit,o=e.$count;ie$1(`rowSpan`,o)(`nzLeft`,!!n[0].column._left)}}function Va(i,t){if(i&1){let e=on();oe$2(0,`nz-resize-handle`,22),je$1(`click`,function(o){gt$1(e);let r=F$2(4);return vt(r._stopPropagation(o))}),pt$1(1,`i`),he$1()}}function Ha(i,t){}function Wa(i,t){if(i&1&&qe$1(0,Ha,0,0,`ng-template`,11),i&2){let e=F$2(),n=e.$implicit,o=e.$index,r=pO(0);ie$1(`ngTemplateOutlet`,r.__renderTitle)(`ngTemplateOutletContext`,pf(2,It,n.column,o))}}function $a(i,t){}function ja(i,t){if(i&1&&qe$1(0,$a,0,0,`ng-template`,11),i&2){F$2(6);let e=Wl(3);ie$1(`ngTemplateOutlet`,e)(`ngTemplateOutletContext`,MO(2,Ia))}}function qa(i,t){}function Za(i,t){if(i&1&&(oe$2(0,`div`,24)(1,`div`,27),pt$1(2,`nz-icon`,28),he$1()()),i&2){F$2();let e=Wl(4);A(),ie$1(`nzDropdownMenu`,e)}}function Ua(i,t){if(i&1){let e=on();oe$2(0,`li`,29),je$1(`click`,function(){let o=gt$1(e).$implicit,r=F$2(7);return vt(r._rowSelection(o))}),he$1()}if(i&2){let e=t.$implicit;ie$1(`innerHTML`,e.text,Sa$1)}}function Ga(i,t){if(i&1&&(oe$2(0,`div`,23),qe$1(1,qa,0,0,`ng-template`,11),ve$1(2,Za,3,1,`div`,24),oe$2(3,`nz-dropdown-menu`,null,7)(5,`ul`,25),Yl(6,Ua,1,1,`li`,26,EP),he$1()()()),i&2){F$2(3);let e=pO(0);F$2(3);let n=Wl(3);A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,MO(3,Ea)),A(),ye$1(e.selections.length?2:-1),A(4),Ul(e.selections)}}function Xa(i,t){if(i&1&&ve$1(0,ja,1,3,null,11)(1,Ga,8,4,`div`,23),i&2){F$2(2);let e=pO(0);ye$1(e.selections.length===0?0:1)}}function Ya(i,t){}function Qa(i,t){if(i&1&&qe$1(0,Ya,0,0,`ng-template`,11),i&2){F$2(2);let e=pO(0);F$2(3);let n=Wl(1);ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(2,$e$1,e.title))}}function Ka(i,t){if(i&1&&ve$1(0,Xa,2,1)(1,Qa,1,4,null,11),i&2){F$2();let n=pO(0);ye$1(n.type===`checkbox`?0:1)}}function Ja(i,t){i&1&&Xs(0)}function el(i,t){if(i&1&&qe$1(0,Ja,1,0,`ng-container`,30),i&2){F$2();let e=Wl(7);ie$1(`ngTemplateOutlet`,e)}}function tl(i,t){if(i&1){let e=on();oe$2(0,`st-filter`,31),je$1(`n`,function(o){gt$1(e);let r=F$2(4);return vt(r.handleFilterNotify(o))})(`handle`,function(o){gt$1(e),F$2();let r=pO(0),a=F$2(3);return vt(a._handleFilter(r,o))}),he$1()}if(i&2){let e=F$2().$implicit,n=pO(0),o=F$2(3);ie$1(`col`,e.column)(`f`,n.filter)(`locale`,o.locale())}}function nl(i,t){if(i&1){let e=on();By(0),oe$2(1,`th`,20),je$1(`nzSortOrderChange`,function(o){gt$1(e);let r=pO(0),a=F$2(3);return vt(a.sort(r,o))})(`nzResizeEnd`,function(o){gt$1(e);let r=pO(0),a=F$2(3);return vt(a.colResize(o,r))}),ve$1(2,Va,2,0,`nz-resize-handle`,21),ve$1(3,Wa,1,5,null,11)(4,Ka,2,1),ve$1(5,el,1,1,`ng-container`),qe$1(6,tl,1,3,`ng-template`,null,6,ql$1),he$1()}if(i&2){let e=t.$implicit,n=t.$index,o=t.$count,r=fO(e.column);A(),Lt$1(r._className),Ze(`st__has-filter`,r.filter),ie$1(`colSpan`,e.colSpan)(`rowSpan`,e.rowSpan)(`nzWidth`,r.width)(`nzLeft`,r._left)(`nzRight`,r._right)(`nzShowSort`,r._sort.enabled)(`nzSortDirections`,r._sort.directions)(`nzSortOrder`,r._sort.default)(`nzCustomFilter`,!!r.filter)(`nzDisabled`,n===o-1||r.resizable.disabled)(`nzMaxWidth`,r.resizable.maxWidth)(`nzMinWidth`,r.resizable.minWidth)(`nzBounds`,r.resizable.bounds)(`nzPreview`,r.resizable.preview),$t(`data-col`,r.indexKey)(`data-col-index`,n),A(),ye$1(n!==o-1&&!r.resizable.disabled?2:-1),A(),ye$1(r.__renderTitle?3:4),A(2),ye$1(r.filter?5:-1)}}function il(i,t){if(i&1&&(oe$2(0,`tr`),ve$1(1,La,1,2,`th`,18),Yl(2,nl,8,24,`th`,19,jl),he$1()),i&2){let e=t.$implicit,n=t.$index,o=F$2(2);A(),ye$1(n===0&&o.expand?1:-1),A(),Ul(e)}}function ol(i,t){if(i&1&&(oe$2(0,`thead`),Yl(1,il,4,1,`tr`,null,jl),he$1()),i&2){let e=F$2();A(),Ul(e._headers)}}function rl(i,t){}function al(i,t){if(i&1&&qe$1(0,rl,0,0,`ng-template`,11),i&2){let e=F$2();ie$1(`ngTemplateOutlet`,e.bodyHeader)(`ngTemplateOutletContext`,ff(2,$e$1,e._statistical))}}function ll(i,t){}function sl(i,t){if(i&1){let e=on();oe$2(0,`span`,35),je$1(`click`,function(){gt$1(e);let o=F$2(2).$implicit,r=F$2();
10return vt(r._expandChange(o,!o.expand))}),qe$1(1,ll,0,0,`ng-template`,11),he$1()}if(i&2){let e=F$2(2),n=e.$implicit,o=e.index,r=F$2();A(),ie$1(`ngTemplateOutlet`,r.expandIcon)(`ngTemplateOutletContext`,pf(2,It,n,o))}}function cl(i,t){if(i&1){let e=on();oe$2(0,`td`,34),je$1(`nzExpandChange`,function(o){gt$1(e);let r=F$2().$implicit,a=F$2();return vt(a._expandChange(r,o))})(`click`,function(o){gt$1(e);let r=F$2(2);return vt(r._stopPropagation(o))}),he$1(),qe$1(1,sl,2,5,`ng-template`,null,8,ql$1)}if(i&2){let e=Wl(2),n=F$2().$implicit,o=F$2();ie$1(`nzShowExpand`,o.expand&&n.showExpand!==!1)(`nzExpand`,n.expand)(`nzExpandIcon`,o.expandIcon?e:null)(`nzLeft`,!!o._columns[0]._left)}}function pl(i,t){}function ml(i,t){if(i&1&&(oe$2(0,`span`,38),qe$1(1,pl,0,0,`ng-template`,11),he$1()),i&2){let e=F$2(2).$implicit;F$2(2);let n=Wl(1);A(),ie$1(`ngTemplateOutlet`,n)(`ngTemplateOutletContext`,ff(2,$e$1,e.title))}}function dl(i,t){if(i&1){let e=on();oe$2(0,`td`,37),ve$1(1,ml,2,4,`span`,38),oe$2(2,`st-td`,39),je$1(`n`,function(o){gt$1(e);let r=F$2(3);return vt(r._handleTd(o))}),he$1()()}if(i&2){let e=F$2(),n=e.$implicit,o=e.$index,r=pO(0),a=F$2(),s=a.$implicit,d=a.index,l=F$2();Lt$1(n._className),ie$1(`nzLeft`,n._left)(`nzRight`,n._right),$t(`data-col-index`,o)(`colspan`,r?.colSpan===1?null:r?.colSpan)(`rowspan`,r?.rowSpan===1?null:r?.rowSpan),A(),ye$1(l.responsive?1:-1),A(),ie$1(`data`,l._data)(`i`,s)(`index`,d)(`c`,n)(`cIdx`,o)}}function ul(i,t){if(i&1&&(By(0),ve$1(1,dl,3,13,`td`,36)),i&2){let e=t.$index,n=F$2().$implicit,o=fO(n._values[e].props);A(),ye$1(o?.colSpan>0&&o?.rowSpan>0?1:-1)}}function fl(i,t){}function _l(i,t){if(i&1){let e=on();oe$2(0,`tr`,32),je$1(`click`,function(o){let r=gt$1(e),a=r.$implicit,s=r.index,d=F$2();return vt(d._rowClick(o,a,s,!1))})(`dblclick`,function(o){let r=gt$1(e),a=r.$implicit,s=r.index,d=F$2();return vt(d._rowClick(o,a,s,!0))}),ve$1(1,cl,3,4),Yl(2,ul,2,2,null,null,EP),he$1(),oe$2(4,`tr`,33),qe$1(5,fl,0,0,`ng-template`,11),he$1()}if(i&2){let e=t.$implicit,n=t.index,o=F$2();Lt$1(e._rowClassName),$t(`data-index`,n),A(),ye$1(o.expand?1:-1),A(),Ul(o._columns),A(2),ie$1(`nzExpand`,e.expand),A(),ie$1(`ngTemplateOutlet`,o.expand)(`ngTemplateOutletContext`,pf(7,It,e,n))}}function hl(i,t){}function gl(i,t){if(i&1&&qe$1(0,hl,0,0,`ng-template`,11),i&2){let e=t.$implicit,n=t.index;F$2(2);let o=Wl(10);ie$1(`ngTemplateOutlet`,o)(`ngTemplateOutletContext`,pf(2,It,e,n))}}function zl(i,t){i&1&&qe$1(0,gl,1,5,`ng-template`,12)}function Cl(i,t){}function yl(i,t){if(i&1&&qe$1(0,Cl,0,0,`ng-template`,11),i&2){let e=t.$implicit,n=t.$index;F$2(2);let o=Wl(10);ie$1(`ngTemplateOutlet`,o)(`ngTemplateOutletContext`,pf(2,It,e,n))}}function Sl(i,t){if(i&1&&Yl(0,yl,1,5,null,11,SP().trackBy,!0),i&2){let e=F$2();Ul(e._data)}}function Tl(i,t){}function xl(i,t){if(i&1&&qe$1(0,Tl,0,0,`ng-template`,11),i&2){let e=F$2();ie$1(`ngTemplateOutlet`,e.body)(`ngTemplateOutletContext`,ff(2,$e$1,e._statistical))}}function bl(i,t){if(i&1&&an$3(0),i&2){let e=t.range,n=t.$implicit,o=F$2();vr$3(o.renderTotal(n,e))}}function vl(i,t){if(i&1){let e=on();oe$2(0,`li`,29),je$1(`click`,function(){gt$1(e);let o=F$2().$implicit;return vt(o.fn(o))}),he$1()}if(i&2){let e=F$2().$implicit;ie$1(`innerHTML`,e.text,Sa$1)}}function wl(i,t){if(i&1){let e=on();oe$2(0,`li`,29),je$1(`click`,function(){let o=gt$1(e).$implicit;return vt(o.fn(o))}),he$1()}if(i&2){let e=t.$implicit;ie$1(`innerHTML`,e.text,Sa$1)}}function kl(i,t){if(i&1&&(oe$2(0,`li`,40)(1,`ul`),Yl(2,wl,1,1,`li`,26,EP),he$1()()),i&2){let e=F$2().$implicit;ie$1(`nzTitle`,e.text),A(2),Ul(e.children)}}function Dl(i,t){if(i&1&&ve$1(0,vl,1,1,`li`,26)(1,kl,4,1,`li`,40),i&2){let e=t.$implicit;ye$1(e.children.length===0?0:1)}}var Mn=class i{stComp=h(pt,{host:!0});router=h(qt$3);modalHelper=h(Mm$1);drawerHelper=h(rm$1);c;cIdx;data;i;index;n=new O$1;get routerState(){let{pi:t,ps:e,total:n}=this.stComp;return{pi:t,ps:e,total:n}}report(t){this.n.emit({type:t,item:this.i,col:this.c})}_checkbox(t){this.i.checked=t,this.report(`checkbox`)}_radio(){this.data.filter(t=>!t.disabled).forEach(t=>t.checked=!1),this.i.checked=!0,this.report(`radio`)}_link(t){this._stopPropagation(t);let e=this.c.click(this.i,this.stComp);return typeof e==`string`&&this.router.navigateByUrl(e,{state:this.routerState}),!1}_client(){this.c.click?.(this.i,this.stComp)}_stopPropagation(t){t.preventDefault(),t.stopPropagation()}_popTitle(t){let e=t.pop;if(e==null||e===!1)return null;let n=e.title;return typeof n==`function`?n({item:this.i,btn:t,column:this.c})??null:n??null}_btn(t,e){e?.stopPropagation();let n=this.stComp.cog,o=this.i;if(t.type===`modal`||t.type===`static`){n.modal.pureRecoard===!0&&(o=this.stComp.pureItem(o));let r=t.modal,a={[r.paramsName]:o};this.modalHelper[t.type===`modal`?`create`:`createStatic`](r.component,g$1(g$1({},a),r.params&&r.params(o)),Op({},!0,n.modal,r)).pipe(ne(s=>typeof s<`u`)).subscribe(s=>this.btnCallback(o,t,s));return}else if(t.type===`drawer`){n.drawer.pureRecoard===!0&&(o=this.stComp.pureItem(o));let r=t.drawer,a={[r.paramsName]:o};this.drawerHelper.create(r.title,r.component,g$1(g$1({},a),r.params&&r.params(o)),Op({},!0,n.drawer,r)).pipe(ne(s=>typeof s<`u`)).subscribe(s=>this.btnCallback(o,t,s));return}else if(t.type===`link`){let r=this.btnCallback(o,t);typeof r==`string`&&this.router.navigateByUrl(r,{state:this.routerState});return}this.btnCallback(o,t)}btnCallback(t,e,n){if(e.click)if(typeof e.click==`string`)switch(e.click){case`load`:this.stComp.load();break;case`reload`:this.stComp.reload()}else return e.click(t,n,this.stComp)}static ɵfac=function(e){return new(e||i)};static ɵcmp=Se$1({type:i,selectors:[[`st-td`]],inputs:{c:`c`,cIdx:`cIdx`,data:`data`,i:`i`,index:`index`},outputs:{n:`n`},decls:8,vars:1,consts:[[`btnTpl`,``],[`btnItemTpl`,``],[`btnTextTpl`,``],[`btnMenu`,`nzDropdownMenu`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nz-tooltip`,``,3,`nzTooltipTitle`,`d-block`,`width-100`],[`nz-tooltip`,``,3,`nzTooltipTitle`],[`nz-popconfirm`,``,1,`st__btn-text`,3,`nzPopconfirmTitle`,`nzIcon`,`nzCondition`,`nzCancelText`,`nzOkText`,`nzOkType`,`class`],[1,`st__btn-text`,3,`class`],[`nz-popconfirm`,``,1,`st__btn-text`,3,`nzOnConfirm`,`click`,`nzPopconfirmTitle`,`nzIcon`,`nzCondition`,`nzCancelText`,`nzOkText`,`nzOkType`],[1,`st__btn-text`,3,`click`],[3,`innerHTML`],[3,`nzIconfont`],[3,`nzType`,`nzTheme`,`nzSpin`,`nzTwotoneColor`],[`nz-checkbox`,``,3,`nzDisabled`,`ngModel`],[`nz-radio`,``,3,`nzDisabled`,`ngModel`],[3,`nzColor`,`nz-tooltip`],[3,`nzStatus`,`nzText`,`nz-tooltip`],[3,`value`,`options`],[`st-widget-host`,``,3,`record`,`column`],[`nz-checkbox`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`],[`nz-radio`,``,3,`ngModelChange`,`nzDisabled`,`ngModel`],[3,`click`,`innerHTML`],[3,`click`,`value`,`options`],[3,`innerText`],[3,`st__btn-disabled`],[`nzType`,`vertical`],[`nz-dropdown`,``,`nzOverlayClassName`,`st__btn-sub`,3,`nzDropdownMenu`],[`nzType`,`down`],[`nz-menu`,``],[`nz-menu-divider`,``],[`nz-menu-item`,``,3,`st__btn-disabled`],[`nz-menu-item`,``]],template:function(e,n){e&1&&(qe$1(0,Kr$1,2,1,`ng-template`,null,0,ql$1)(2,ia$1,2,1,`ng-template`,null,1,ql$1)(4,la$1,2,4,`ng-template`,null,2,ql$1),ve$1(6,ca$1,1,6,null,4)(7,Ma,11,2)),e&2&&(A(6),ye$1(n.c.__render?6:7))}
10,dependencies:[fr$2,jn$2,Fi,Ys,ka$1,Mo,Gt$2,je$2,ct$3,Ka$1,kt,st$1,Ot$1,Rt$3,TDe,xx,EDe,bt$1,Dt$6,Nt$1,zDe,Ya$1],encapsulation:2})};var pt=class i{i18nSrv=h(Kr$3);el=h($$2).nativeElement;cdr=h(Qe$1);doc=h(z$2);exportSrv=h(Pt);columnSource=h(Nt);dataSource=h(Mt);cms=h(St,{optional:!0});destroy$=h(re$1);cogSrv=h(ln$3);totalTpl=``;inied=!1;cog;_req;_res;_page;_widthMode;customWidthConfig=!1;_widthConfig=[];locale=h(s4).valueSignal(`st`);_loading=!1;_data=[];_statistical={};_isPagination=!0;_allChecked=!1;_allCheckedDisabled=!1;_indeterminate=!1;_headers=[];_columns=[];contextmenuList=[];orgTable;contextmenuTpl;get req(){return this._req}set req(t){this._req=Op({},!0,this.cog.req,t)}get res(){return this._res}set res(t){let e=this._res=Op({},!0,this.cog.res,t),n=e.reName;typeof n!=`function`&&(Array.isArray(n.list)||(n.list=n.list.split(`.`)),Array.isArray(n.total)||(n.total=n.total.split(`.`))),this._res=e}get page(){return this._page}set page(t){this._page=g$1(g$1({},this.cog.page),t),this.updateTotalTpl()}data;delay=!1;columns;contextmenu;ps=10;pi=1;total=0;loading=null;loadingDelay=0;loadingIndicator=null;bordered=!1;size;scroll={x:null,y:null};drag=pe$1(null,{transform:t=>{let e=typeof t==`object`?t:H$2(t)?{}:null;return e==null?null:(typeof e.dropped!=`function`&&(e.dropped=n=>{QS(this._data,n.previousIndex,n.currentIndex),this.cd()}),e)}});singleSort;_multiSort;get multiSort(){return this._multiSort}set multiSort(t){if(typeof t==`boolean`&&!H$2(t)||typeof t==`object`&&Object.keys(t).length===0){this._multiSort=void 0;return}this._multiSort=g$1({},typeof t==`object`?t:{})}rowClassName;clickRowClassName;set widthMode(t){this._widthMode=g$1(g$1({},this.cog.widthMode),t)}get widthMode(){return this._widthMode}set widthConfig(t){this._widthConfig=t,this.customWidthConfig=t&&t.length>0}_resizable;set resizable(t){this._resizable=typeof t==`object`?t:{disabled:!H$2(t)}}header;showHeader=!0;footer;bodyHeader;body;expandRowByClick=!1;expandAccordion=!1;expand=null;expandIcon=null;noResult;responsive=!0;responsiveHideHeaderFooter;error=new O$1;change=new O$1;virtualScroll=!1;virtualItemSize=54;virtualMaxBufferPx=200;virtualMinBufferPx=100;customRequest;virtualForTrackBy=t=>t;trackBy=(t,e)=>e;get count(){return this._data.length}get list(){return this._data}get noColumns(){return this.columns==null}constructor(){Jt$1(()=>{this.locale(),this._columns.length>0&&(this.updateTotalTpl(),this.cd())}),this.i18nSrv.change.pipe(be$1(),ne(()=>this._columns.length>0)).subscribe(()=>this.refreshColumns()),this.setCog(this.cogSrv.merge(`st`,Fo))}setCog(t){let e=g$1({},t.multiSort);delete t.multiSort,this.cog=t,Object.assign(this,t),e.global!==!1&&(this.multiSort=e),this.columnSource.setCog(t),this.dataSource.setCog(t)}cd(){return this.cdr.detectChanges(),this}refreshData(){return this._data=[...this._data],this.cd()}renderTotal(t,e){return this.totalTpl?this.totalTpl.replace(`{{total}}`,t).replace(`{{range[0]}}`,e[0]).replace(`{{range[1]}}`,e[1]):``}changeEmit(t,e){let n={type:t,pi:this.pi,ps:this.ps,total:this.total};e!=null&&(n[t]=e),this.change.emit(n)}get filteredData(){return this.loadData({paginator:!1}).pipe(P$2(t=>t.list))}updateTotalTpl(){let{total:t}=this.page;typeof t==`string`&&t.length?this.totalTpl=t:H$2(t)?this.totalTpl=this.locale().total:this.totalTpl=``}setLoading(t){this.loading??(this._loading=t,this.cdr.detectChanges())}loadData(t){let{pi:e,ps:n,data:o,req:r,res:a,page:s,total:d,singleSort:l,multiSort:p,rowClassName:m,_columns:z,_headers:C}=this;return this.dataSource.process(g$1({pi:e,ps:n,total:d,data:o,req:r,res:a,page:s,columns:z,headers:C,singleSort:l,multiSort:p,rowClassName:m,paginator:!0,customRequest:this.customRequest??this.cog.customRequest,locale:this.locale()},t)).pipe(be$1(this.destroy$))}loadPageData(){return this.setLoading(!0),this.loadData().pipe(Kt$1(()=>this.setLoading(!1)),mo$1(t=>(this.error.emit({type:`req`,error:t}),Zc$1(()=>t))),P$2(t=>{let e=`undefined`;return typeof t.pi!==e&&(this.pi=t.pi),typeof t.ps!==e&&(this.ps=t.ps),typeof t.total!==e&&(this.total=t.total),typeof t.pageShow!==e&&(this._isPagination=t.pageShow),this._data=t.list??[],this._statistical=t.statistical,this._restoreCheck(),this._refCheck(),this.cdkVirtualScrollViewport!=null&&Promise.resolve().then(()=>this.cdkVirtualScrollViewport?.checkViewportSize()),this.changeEmit(`loaded`,t.list),this}))}clear(t=!0){return t&&this.clearStatus(),this._data=[],this.checkList=[],this.cd()}clearStatus(){return this.clearCheck().clearRadio().clearFilter().clearSort()}load(t=1,e,n){return t!==-1&&(this.pi=t),typeof e<`u`&&(this.req.params=n&&n.merge?g$1(g$1({},this.req.params),e):e),this._change(`pi`,n),this}reload(t,e){return this.load(-1,t,e)}reset(t,e){return this.clearStatus().load(1,t,e),this}_toTop(t){if(!(t??this.page.toTop))return;let e=this.el;e.scrollIntoView(),this.doc.documentElement.scrollTop-=this.page.toTopOffset,this.scroll&&(this.cdkVirtualScrollViewport?this.cdkVirtualScrollViewport.scrollTo({top:0,left:0}):e.querySelector(`.ant-table-body, .ant-table-content`)?.scrollTo(0,0))}_change(t,e){(t===`pi`||t===`ps`&&this.pi<=Math.ceil(this.total/this.ps))&&this.loadPageData().subscribe(()=>
10this._toTop(e?.toTop)),this.changeEmit(t)}closeOtherExpand(t){this.expandAccordion!==!1&&this._data.filter(e=>e!==t).forEach(e=>e.expand=!1)}_rowClick(t,e,n,o){let r=t.target;if(r.nodeName===`INPUT`)return;let{expand:a,expandRowByClick:s}=this;if(a&&e.showExpand!==!1&&s){e.expand=!e.expand,this.closeOtherExpand(e),this.changeEmit(`expand`,e);return}let d={e:t,item:e,index:n};o?this.changeEmit(`dblClick`,d):(this._clickRowClassName(r,e,n),this.changeEmit(`click`,d))}_clickRowClassName(t,e,n){let o=this.clickRowClassName;if(o==null)return;let r=g$1({exclusive:!1},typeof o==`string`?{fn:()=>o}:o),a=r.fn(e,n),s=t.closest(`tr`);r.exclusive&&s.parentElement.querySelectorAll(`tr`).forEach(d=>d.classList.remove(a)),s.classList.contains(a)?s.classList.remove(a):s.classList.add(a)}_expandChange(t,e){t.expand=e,this.closeOtherExpand(t),this.changeEmit(`expand`,t)}_stopPropagation(t){t.stopPropagation()}_refColAndData(){return this._columns.forEach((t,e)=>{this._data.forEach((n,o)=>{let r=n._values;if(t.type===`no`){let a=`${this.dataSource.getNoIndex(n,t,o)}`;r[e]={text:a,_text:a,org:o,safeType:`text`}}r[e].props=this.dataSource.getCell(t,n,o)})}),this.refreshData()}addRow(t,e){return Array.isArray(t)||(t=[t]),this._data.splice(e?.index??0,0,...t),this.optimizeData()._refColAndData()}removeRow(t){if(typeof t==`number`)this._data.splice(t,1);else{Array.isArray(t)||(t=[t]);let e=this._data;for(let n=e.length;n>=0;n--)t.indexOf(e[n])!==-1&&e.splice(n,1)}return this._refCheck()._refColAndData()}setRow(t,e,n){return n=g$1({refreshSchema:!1,emitReload:!1},n),typeof t!=`number`&&(t=this._data.indexOf(t)),this._data[t]=Op(this._data[t],n?.arrayProcessMethod??!1,e),this.optimizeData(),n.refreshSchema?(this.resetColumns({emitReload:n.emitReload}),this):this.refreshData()}sort(t,e){this.multiSort?(t._sort.default=e,t._sort.tick=this.dataSource.nextSortTick):this._headers.forEach(n=>{n.forEach(o=>o.column._sort.default=o.column===t?e:null)}),this.cdr.detectChanges(),this.loadPageData().subscribe(()=>{let n={value:e,map:this.dataSource.getReqSortMap(this.singleSort,this.multiSort,this._headers),column:t};this.changeEmit(`sort`,n)})}clearSort(){return this._headers.forEach(t=>{t.forEach(e=>e.column._sort.default=null)}),this}_handleFilter(t,e){e||this.columnSource.cleanFilter(t),this.pi=1,this.columnSource.updateDefault(t.filter),this.loadPageData().subscribe(()=>this.changeEmit(`filter`,e?t:null))}handleFilterNotify(t){this.changeEmit(`filterChange`,t)}clearFilter(){return this._columns.filter(t=>t.filter&&t.filter.default===!0).forEach(t=>this.columnSource.cleanFilter(t)),this}checkList=[];clearCheck(){return this.checkList=[],this.checkAll(!1)}_refCheck(){let t=this._data.filter(o=>!o.disabled),e=t.filter(o=>o.checked===!0);this._allChecked=e.length>0&&e.length===t.length;let n=t.every(o=>!o.checked);return this._indeterminate=!this._allChecked&&!n,this._allCheckedDisabled=this._data.length===this._data.filter(o=>o.disabled).length,this.cd()}checkAll(t){return t=typeof t>`u`?this._allChecked:t,this._data.filter(e=>!e.disabled).forEach(e=>e.checked=t),this._refCheck()._checkNotify().refreshData()}_rowSelection(t){return t.select(this._data),this._refCheck()._checkNotify()}_checkNotify(){let t=this._data.filter(n=>!n.disabled&&n.checked===!0),e=this.page.checkboxIdMap;if(e!=null){let n=this.list.map(o=>o[e]);this.checkList=this.checkList.filter(o=>n.indexOf(o[e])===-1).concat(t)}else this.checkList=t;return this.changeEmit(`checkbox`,this.checkList),this}_restoreCheck(){let t=this.page.checkboxIdMap;t!=null&&this.list.forEach(e=>e.checked=this.checkList.some(n=>n[t]===e[t]))}clearRadio(){return this._data.filter(t=>t.checked).forEach(t=>t.checked=!1),this.changeEmit(`radio`,null),this.refreshData()}_handleTd(t){switch(t.type){case`checkbox`:this._refCheck()._checkNotify();break;case`radio`:this.changeEmit(`radio`,t.item),this.refreshData()}}export(t,e){let n=Array.isArray(t)?this.dataSource.optimizeData({columns:this._columns,result:t,locale:this.locale()}):this._data;(t===!0?this.filteredData:S(n)).subscribe(o=>this.exportSrv.export(W$1(g$1({columens:this._columns},e),{data:o})))}colResize({width:t},e){e.width=`${t}px`,this.changeEmit(`resize`,e)}onContextmenu(t){if(!this.contextmenu)return;t.preventDefault(),t.stopPropagation();let e=t.target.closest(`[data-col-index]`);if(!e)return;let n=Number(e.dataset.colIndex),o=Number(e.closest(`tr`).dataset.index),r=isNaN(o),a=this.contextmenu({event:t,type:r?`head`:`body`,rowIndex:r?null:o,c
10olIndex:n,data:r?null:this.list[o],column:this._columns[n]});(Fn(a)?a:S(a)).pipe(be$1(this.destroy$),ne(s=>s.length>0)).subscribe(s=>{this.contextmenuList=s.map(d=>(Array.isArray(d.children)||(d.children=[]),d)),this.cdr.detectChanges(),this.cms?.create(t,this.contextmenuTpl)})}get cdkVirtualScrollViewport(){return this.orgTable?.cdkVirtualScrollViewport}_resetColumns(t){return t=g$1({emitReload:!0,preClearData:!1},t),typeof t.columns<`u`&&(this.columns=t.columns),typeof t.pi<`u`&&(this.pi=t.pi),typeof t.ps<`u`&&(this.ps=t.ps),t.emitReload&&(t.preClearData=!0),t.preClearData&&(this._data=[]),this.refreshColumns(),t.emitReload?this.loadPageData():(this.cd(),S(this))}resetColumns(t){return cT(this._resetColumns(t))}refreshColumns(){let t=this.columnSource.process(this.columns,{widthMode:this.widthMode,resizable:this._resizable,safeType:this.cog.safeType,expand:this.expand!=null});return this._columns=t.columns,this._headers=t.headers,this.customWidthConfig===!1&&t.headerWidths!=null&&(this._widthConfig=t.headerWidths),this}optimizeData(){return this._data=this.dataSource.optimizeData({columns:this._columns,result:this._data,rowClassName:this.rowClassName,locale:this.locale()}),this}pureItem(t){if(typeof t==`number`&&(t=this._data[t]),!t)return null;let e=wL(t);return[`_values`,`_rowClassName`].forEach(n=>delete e[n]),e}ngAfterViewInit(){this.delay||this.refreshColumns(),this.req.lazyLoad||this.loadPageData().subscribe(),this.inied=!0}ngOnChanges(t){t.loading&&(this._loading=t.loading.currentValue),this.inied&&(t.columns&&this.refreshColumns().optimizeData(),t.data&&this.loadPageData().subscribe())}static ɵfac=function(e){return new(e||i)};static ɵcmp=Se$1({type:i,selectors:[[`st`]],viewQuery:function(e,n){if(e&1&&Kn(Pa,5)(Oa,5),e&2){let o;Ge(o=Ke())&&(n.orgTable=o.first),Ge(o=Ke())&&(n.contextmenuTpl=o.first)}},hostVars:14,hostBindings:function(e,n){e&2&&Ze(`st`,!0)(`st__p-left`,n.page.placement===`left`)(`st__p-center`,n.page.placement===`center`)(`st__width-strict`,n.widthMode.type===`strict`)(`st__row-class`,n.rowClassName)(`ant-table-rep`,n.responsive)(`ant-table-rep__hide-header-footer`,n.responsiveHideHeaderFooter)},inputs:{req:`req`,res:`res`,page:`page`,data:`data`,delay:`delay`,columns:`columns`,contextmenu:`contextmenu`,ps:[2,`ps`,`ps`,t=>Oo$1(t,10)],pi:[2,`pi`,`pi`,t=>Oo$1(t,1)],total:[2,`total`,`total`,t=>Oo$1(t,0)],loading:`loading`,loadingDelay:[2,`loadingDelay`,`loadingDelay`,Oo$1],loadingIndicator:`loadingIndicator`,bordered:[2,`bordered`,`bordered`,H$2],size:`size`,scroll:`scroll`,drag:[1,`drag`],singleSort:`singleSort`,multiSort:`multiSort`,rowClassName:`rowClassName`,clickRowClassName:`clickRowClassName`,widthMode:`widthMode`,widthConfig:`widthConfig`,resizable:`resizable`,header:`header`,showHeader:[2,`showHeader`,`showHeader`,H$2],footer:`footer`,bodyHeader:`bodyHeader`,body:`body`,expandRowByClick:[2,`expandRowByClick`,`expandRowByClick`,H$2],expandAccordion:[2,`expandAccordion`,`expandAccordion`,H$2],expand:`expand`,expandIcon:`expandIcon`,noResult:`noResult`,responsive:[2,`responsive`,`responsive`,H$2],responsiveHideHeaderFooter:[2,`responsiveHideHeaderFooter`,`responsiveHideHeaderFooter`,H$2],virtualScroll:[2,`virtualScroll`,`virtualScroll`,H$2],virtualItemSize:[2,`virtualItemSize`,`virtualItemSize`,Oo$1],virtualMaxBufferPx:[2,`virtualMaxBufferPx`,`virtualMaxBufferPx`,Oo$1],virtualMinBufferPx:[2,`virtualMinBufferPx`,`virtualMinBufferPx`,Oo$1],customRequest:`customRequest`,virtualForTrackBy:`virtualForTrackBy`,trackBy:`trackBy`},outputs:{error:`error`,change:`change`},exportAs:[`st`],features:[Ft$1([Mt,Je,Nt,Pt,_m$1,Tm$1,FA]),Te$1],decls:21,vars:35,consts:[[`titleTpl`,``],[`chkAllTpl`,``],[`table`,``],[`bodyTpl`,``],[`totalTpl`,``],[`contextmenuTpl`,`nzDropdownMenu`],[`filterTpl`,``],[`selectionMenu`,`nzDropdownMenu`],[`wrapExpandIcon`,``],[3,`nzPageIndexChange`,`nzPageSizeChange`,`contextmenu`,`nzData`,`nzPageIndex`,`nzPageSize`,`nzTotal`,`nzShowPagination`,`nzFrontPagination`,`nzBordered`,`nzSize`,`nzLoading`,`nzLoadingDelay`,`nzLoadingIndicator`,`nzTitle`,`nzFooter`,`nzScroll`,`nzVirtualItemSize`,`nzVirtualMaxBufferPx`,`nzVirtualMinBufferPx`,`nzVirtualForTrackBy`,`nzNoResult`,`nzPageSizeOptions`,`nzShowQuickJumper`,`nzShowSizeChanger`,`nzPaginationPosition`,`nzPaginationType`,`nzItemRender`,`nzSimple`,`nzShowTotal`,`nzWidthConfig`],[`cdkDropList`,``,1,`st__body`,3,`cdkDropListDropped`,`cdkDropListEntered`,`cdkDropListExited`,`cdkDropListSorted`,`cdkDropListDisabled`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nz-virtual-scroll`,``],[`nz-menu`,``,1,`st__contextmenu`],[3,`innerHTML`],[1,`st__head-optional`,3,`innerHTML`],[`nz-tooltip`,``,`nzType`,`question-circle`,1,`st__head-tip`,3,`nzTooltipTitle`],[`nz-checkbox`,``,1,`st__checkall`,3,`ngModelChange`,`nzDisabled`,`ngModel`,`nzIndeterminate`],[`nzWidth`,`50px`,3,`rowSpan`,`nzLeft`],[`nz-resizable`,``,3,`colSpan`,`rowSpan`,`nzWidth`,`nzLeft`,`nzRight`,`class`,`nzShowSort`,`nzSortDirections`,`nzSortOrder`,`nzCustomFilter`,`st__has-filter`,`nzDisabled`,`nzMaxWidth`,`nzMinWidth`,`nzBounds`,`nzPreview`],[`nz-resizable`,``,3,`nzSortOrderChange`,`nzResizeEnd`,`colSpan`,`rowSpan`,`nzWidth`,`nzLeft`,`nzRight`,`nzShowSort`,`nzSortDirections`,`nzSortOrder`,`nzCustomFilter`,`nzDisabled`,`nzMaxWidth`,`nzMinWidth`,`nzBounds`,`nzPreview`],[`nzDirection`,`right`],[`nzDirection`,`right`,3,`click`],[1,`ant-table-selection`],[1,`ant-table-selection-extra`],[`nz-menu`,``,1,`ant-table-selection-menu`],[`nz-menu-item`,``,3,`innerHTML`],[`nz-dropdown`,``,`nzPlacement`,`bottomLeft`,1,`ant-table-selection-down`,`st__checkall-selection`,3,`nzDropdownMenu`],[`nzType`,`down`],[`nz-menu-item`,``,3,`click`,`innerHTML`],[4,`ngTemplateOutlet`],[`nz-th-extra`,``,3,`n`,`handle`,`col`,`f`,`locale`],[`cdkDrag`,``,3,`click`,`dblclick`],[3,`nzExpand`],[`nzWidth`,`50px`,3,`nzExpandChange`,`click`,`nzShowExpand`,`nzExpand`,`nzExpandIcon`,`nzLeft`],[3,`click`],[3,`nzLeft`,`nzRight`,`class`],[3,`nzLeft`,`nzRight`],[1,`ant-table-rep__title`],[3,`n`,`data`,`i`,`index`,`c`,`
10cIdx`],[`nz-submenu`,``,3,`nzTitle`]],template:function(e,n){if(e&1){let o=on();qe$1(0,Fa,3,3,`ng-template`,null,0,ql$1)(2,Ba,1,5,`ng-template`,null,1,ql$1),oe$2(4,`nz-table`,9,2),Hy(`nzPageIndexChange`,function(a){return gt$1(o),hO(n.pi,a)||(n.pi=a),vt(a)}),je$1(`nzPageIndexChange`,function(){return n._change(`pi`)}),Hy(`nzPageSizeChange`,function(a){return gt$1(o),hO(n.ps,a)||(n.ps=a),vt(a)}),je$1(`nzPageSizeChange`,function(){return n._change(`ps`)})(`contextmenu`,function(a){return n.onContextmenu(a)}),ve$1(6,ol,3,0,`thead`),oe$2(7,`tbody`,10),je$1(`cdkDropListDropped`,function(a){return n.drag()?.dropped?.(a)})(`cdkDropListEntered`,function(a){return n.drag()?.entered?.(a)})(`cdkDropListExited`,function(a){return n.drag()?.exited?.(a)})(`cdkDropListSorted`,function(a){return n.drag()?.sorted?.(a)}),ve$1(8,al,1,4,null,11),qe$1(9,_l,6,10,`ng-template`,null,3,ql$1),ve$1(11,zl,1,0,null,12)(12,Sl,2,0),ve$1(13,xl,1,4,null,11),he$1(),qe$1(14,bl,1,1,`ng-template`,null,4,ql$1),he$1(),oe$2(16,`nz-dropdown-menu`,null,5)(18,`ul`,13),Yl(19,Dl,2,1,null,null,EP),he$1()()}if(e&2){let o=Wl(15);A(4),Ze(`st__no-column`,n.noColumns),ie$1(`nzData`,n._data),Fy(`nzPageIndex`,n.pi)(`nzPageSize`,n.ps),ie$1(`nzTotal`,n.total)(`nzShowPagination`,n._isPagination)(`nzFrontPagination`,!1)(`nzBordered`,n.bordered)(`nzSize`,n.size)(`nzLoading`,n.noColumns||n._loading)(`nzLoadingDelay`,n.loadingDelay)(`nzLoadingIndicator`,n.loadingIndicator)(`nzTitle`,n.header)(`nzFooter`,n.footer)(`nzScroll`,n.scroll)(`nzVirtualItemSize`,n.virtualItemSize)(`nzVirtualMaxBufferPx`,n.virtualMaxBufferPx)(`nzVirtualMinBufferPx`,n.virtualMinBufferPx)(`nzVirtualForTrackBy`,n.virtualForTrackBy)(`nzNoResult`,n.noResult)(`nzPageSizeOptions`,n.page.pageSizes)(`nzShowQuickJumper`,n.page.showQuickJumper)(`nzShowSizeChanger`,n.page.showSize)(`nzPaginationPosition`,n.page.position)(`nzPaginationType`,n.page.type)(`nzItemRender`,n.page.itemRender)(`nzSimple`,n.page.simple)(`nzShowTotal`,o)(`nzWidthConfig`,n._widthConfig),A(2),ye$1(n.showHeader?6:-1),A(),ie$1(`cdkDropListDisabled`,n.drag()===null),A(),ye$1(n._loading?-1:8),A(3),ye$1(n.virtualScroll?11:12),A(2),ye$1(n._loading?-1:13),A(6),Ul(n.contextmenuList)}},dependencies:[fr$2,jn$2,Fi,ua$2,Zn,In,pa$2,Hn,Wn,ca$2,Pn$1,Un,qn,Ln,da$2,Xn,Ys,je$2,Ro,Io,Eo,ka$1,Rt$3,TDe,xx,Ex,bt$1,Nt$1,Gt$2,zDe,sn$1,Mn,Wye,$ye,ax],encapsulation:2})};var Pn=class i{static ɵfac=function(e){return new(e||i)};static ɵmod=ee$3({type:i});static ɵinj=X$2({imports:[pt]})};function yu$1(...i){return et$1([d2(()=>{let t=h(We$1);i.forEach(e=>t.register(e.KEY,e.type))})])}var Xt=class{index;tab};var Dt=(()=>{class s{addIcon=`plus`;element=h($$2).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){function t(e,a){if(e&1&&(nn$1(0),pt$1(1,`nz-icon`,1),rn$3()),e&2){let r=a.$implicit;A(),ie$1(`nzType`,r)}}return Se$1({type:s,selectors:[[`nz-tab-add-button`],[`button`,`nz-tab-add-button`,``]],hostAttrs:[`aria-label`,`Add tab`,`type`,`button`,1,`ant-tabs-nav-add`],inputs:{addIcon:`addIcon`},decls:1,vars:1,consts:[[4,`nzStringTemplateOutlet`],[`nzTheme`,`outline`,3,`nzType`]],template:function(a,r){a&1&&qe$1(0,t,2,1,`ng-container`,0),a&2&&ie$1(`nzStringTemplateOutlet`,r.addIcon)},dependencies:[Jr$3,er$1,xr$2,Gt$2],encapsulation:2})})()}return s})();var Me$1=(()=>{class s{position=pe$1(`end`,{alias:`nzTabBarExtraContent`});templateRef=h(yt$1);static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[``,`nzTabBarExtraContent`,``,5,`nz-tabs`]],inputs:{position:[1,`nzTabBarExtraContent`,`position`]}})}return s})();var Qt=`ant-tabs-tabpane`;var G=`ant-tabs-switch`;var sn={"enter-start":[un$1(G,`enter`),un$1(G,`enter-start`)],"enter-active":[un$1(G,`enter`),un$1(G,`enter-active`)],"leave-start":[un$1(G,`leave`),un$1(G,`leave-start`)],"leave-active":[un$1(G,`leave`),un$1(G,`leave-active`)],hidden:[un$1(Qt,`hidden`)],void:[]};var rn=(()=>{class s{elementRef=h($$2);content=pe$1(null);active=pe$1(!1);animated=pe$1(!0);_animationState=G$1(`void`);_animationEnabled=TS(()=>this.animated());class=Fe$1(()=>{let t=[Qt];return this._animationEnabled()?t.push(...sn[this._animationState()]):this.active()||t.pu
10sh(un$1(Qt,`hidden`)),t});constructor(){Jt$1(()=>{this._animationEnabled()&&(this.active()?(we$2(()=>this._animationState.set(`enter-start`)),Er$1(()=>{this._animationState.set(`enter-active`)})):(we$2(()=>this._animationState.set(`leave-start`)),Er$1(()=>{this._animationState.set(`leave-active`)})))})}_onTransitionEnd(t){if(t.target!==this.elementRef.nativeElement)return;let e=this._animationState();e===`enter-active`?this._animationState.set(`void`):e===`leave-active`&&this._animationState.set(`hidden`)}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){function t(e,a){}return Se$1({type:s,selectors:[[``,`nz-tab-body`,``]],hostVars:6,hostBindings:function(a,r){a&1&&je$1(`transitionend`,function(h){return r._onTransitionEnd(h)}),a&2&&($t(`tabindex`,r.active()?0:-1)(`aria-hidden`,!r.active()),Lt$1(r.class()),Ze(`ant-tabs-tabpane-active`,r.active()))},inputs:{content:[1,`content`],active:[1,`active`],animated:[1,`animated`]},exportAs:[`nzTabBody`],decls:1,vars:1,consts:[[3,`ngTemplateOutlet`]],template:function(a,r){a&1&&qe$1(0,t,0,0,`ng-template`,0),a&2&&ie$1(`ngTemplateOutlet`,r.content())},dependencies:[ka$1],encapsulation:2})})()}return s})();var We=(()=>{class s{closeIcon=pe$1(`close`);static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){function t(e,a){if(e&1&&(nn$1(0),pt$1(1,`nz-icon`,1),rn$3()),e&2){let r=a.$implicit;A(),ie$1(`nzType`,r)}}return Se$1({type:s,selectors:[[`nz-tab-close-button`],[`button`,`nz-tab-close-button`,``]],hostAttrs:[`aria-label`,`Close tab`,`type`,`button`,1,`ant-tabs-tab-remove`],inputs:{closeIcon:[1,`closeIcon`]},decls:1,vars:1,consts:[[4,`nzStringTemplateOutlet`],[`nzTheme`,`outline`,3,`nzType`]],template:function(a,r){a&1&&qe$1(0,t,2,1,`ng-container`,0),a&2&&ie$1(`nzStringTemplateOutlet`,r.closeIcon())},dependencies:[Jr$3,er$1,xr$2,Gt$2],encapsulation:2})})()}return s})();var ln=(()=>{class s{templateRef=h(yt$1,{host:!0});static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[`ng-template`,`nzTabLink`,``]],exportAs:[`nzTabLinkTemplate`]})}return s})();var Fe=(()=>{class s{elementRef=h($$2);routerLink=h(ja$2,{self:!0,optional:!0});static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[`a`,`nz-tab-link`,``]],exportAs:[`nzTabLink`]})}return s})();var Pe$1=(()=>{class s{elementRef=h($$2);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;tab;disabled=!1;active=!1;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[``,`nzTabNavItem`,``]],inputs:{tab:`tab`,disabled:[2,`disabled`,`disabled`,H$2],active:[2,`active`,`active`,H$2]}})}return s})();var Yt=(()=>{class s{element=h($$2).nativeElement;items=[];addable=!1;addIcon=`plus`;addClicked=new O$1;selected=new O$1;closeAnimationWaitTimeoutId;menuOpened=G$1(!1);constructor(){h(re$1).onDestroy(()=>{clearTimeout(this.closeAnimationWaitTimeoutId)})}onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,e){t.disabled||t.tab.nzContextmenu.emit(e)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened.set(!0)}menuVisibleChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>this.menuOpened.set(!1),150))}getElementWidth(){return this.element.offsetWidth||0}getElementHeight(){return this.element.offsetHeight||0}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){let t=()=>({minWidth:`46px`}),e=()=>({visible:!1});function a(d,m){if(d&1&&(nn$1(0),an$3(1),rn$3()),d&2){let p=F$2().$implicit;A(),Io$1(` `,p.tab.label,` `)}}function r(d,m){if(d&1){let p=on();oe$2(0,`li`,7),je$1(`click`,function(){let f=gt$1(p).$implicit,i=F$2(2);return vt(i.onSelect(f))})(`contextmenu`,function(f){let i=gt$1(p).$implicit,n=F$2(2);return vt(n.onContextmenu(i,f))}),qe$1(1,a,2,1,`ng-container`,8),he$1()}if(d&2){let p=m.$implicit;Ze(`ant-tabs-dropdown-menu-item-disabled`,p.disabled),ie$1(`nzSelected`,p.active)(`nzDisabled`,p.disabled),A(),ie$1(`nzStringTemplateOutlet`,p.tab.label)(`nzStringTemplateOutletContext`,MO(6,e))}}function C(d,m){if(d&1&&(oe$2(0,`ul`,4),Yl(1,r,2,7,`li`,6,jl),he$1()),d&2){let p=F$2();A(),Ul(p.items)}}function h(d,m){if(d&1){let p=on();oe$2(0,`button`,9),je$1(`click`,function(){gt$1(p);let f=F$2();
10return vt(f.addClicked.emit())}),he$1()}if(d&2){let p=F$2();ie$1(`addIcon`,p.addIcon)}}return Se$1({type:s,selectors:[[`nz-tab-nav-operation`]],hostAttrs:[1,`ant-tabs-nav-operations`],hostVars:2,hostBindings:function(m,p){m&2&&Ze(`ant-tabs-nav-operations-hidden`,p.items.length===0)},inputs:{items:`items`,addable:[2,`addable`,`addable`,H$2],addIcon:`addIcon`},outputs:{addClicked:`addClicked`,selected:`selected`},exportAs:[`nzTabNavOperation`],decls:7,vars:6,consts:[[`dropdownTrigger`,`nzDropdown`],[`menu`,`nzDropdownMenu`],[`nz-dropdown`,``,`type`,`button`,`tabindex`,`-1`,`aria-hidden`,`true`,`nzOverlayClassName`,`nz-tabs-dropdown`,1,`ant-tabs-nav-more`,3,`nzVisibleChange`,`mouseenter`,`nzDropdownMenu`,`nzOverlayStyle`,`nzMatchWidthElement`],[`nzType`,`ellipsis`],[`nz-menu`,``],[`nz-tab-add-button`,``,3,`addIcon`],[`nz-menu-item`,``,1,`ant-tabs-dropdown-menu-item`,3,`ant-tabs-dropdown-menu-item-disabled`,`nzSelected`,`nzDisabled`],[`nz-menu-item`,``,1,`ant-tabs-dropdown-menu-item`,3,`click`,`contextmenu`,`nzSelected`,`nzDisabled`],[4,`nzStringTemplateOutlet`,`nzStringTemplateOutletContext`],[`nz-tab-add-button`,``,3,`click`,`addIcon`]],template:function(m,p){if(m&1&&(oe$2(0,`button`,2,0),je$1(`nzVisibleChange`,function(f){return p.menuVisibleChange(f)})(`mouseenter`,function(){return p.showItems()}),pt$1(2,`nz-icon`,3),he$1(),oe$2(3,`nz-dropdown-menu`,null,1),ve$1(5,C,3,0,`ul`,4),he$1(),ve$1(6,h,1,1,`button`,5)),m&2){let x=Wl(4);ie$1(`nzDropdownMenu`,x)(`nzOverlayStyle`,MO(5,t))(`nzMatchWidthElement`,null),A(5),ye$1(p.menuOpened()?5:-1),A(),ye$1(p.addable?6:-1)}},dependencies:[Rt$3,TDe,xx,bt$1,Nt$1,xr$2,Gt$2,Jr$3,er$1,Dt,zDe],encapsulation:2})})()}return s})();var dn=.1;var Ee$1=.01;var At=20;var Re$1=.995**At;var cn=(()=>{class s{ngZone=h(B$2);destroyRef=h(re$1);el=h($$2).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new O$1;tabScroll=new O$1;constructor(){let t=A1(this.el,`wheel`),e=A1(this.el,`touchstart`),a=A1(this.el,`touchmove`),r=A1(this.el,`touchend`);this.subscribeWrap(`wheel`,t,this.onWheel),this.subscribeWrap(`touchstart`,e,this.onTouchStart),this.subscribeWrap(`touchmove`,a,this.onTouchMove),this.subscribeWrap(`touchend`,r,this.onTouchEnd)}subscribeWrap(t,e,a){return e.pipe(be$1(this.destroyRef)).subscribe(r=>{this.tabScroll.emit({type:t,event:r}),r.defaultPrevented||a(r)})}onTouchEnd=t=>{if(!this.touchPosition)return;let e=this.lastOffset,a=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,e){let r=e.x/a,C=e.y/a;if(Math.max(Math.abs(r),Math.abs(C))<dn)return;let m=r,p=C;this.motion=window.setInterval(()=>{if(Math.abs(m)<Ee$1&&Math.abs(p)<Ee$1){window.clearInterval(this.motion);return}m*=Re$1,p*=Re$1,this.onOffset(m*At,p*At,t)},At)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:e,screenY:a}=t.touches[0],r=e-this.touchPosition.x,C=a-this.touchPosition.y;this.onOffset(r,C,t);let h=Date.now();this.lastTimeDiff=h-this.lastTimestamp,this.lastTimestamp=h,this.lastOffset={x:r,y:C},this.touchPosition={x:e,y:a}};onTouchStart=t=>{let{screenX:e,screenY:a}=t.touches[0];this.touchPosition={x:e,y:a},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:e,deltaY:a}=t,r,C=Math.abs(e),h=Math.abs(a);C===h?r=this.lastWheelDirection===`x`?e:a:C>h?(r=e,this.lastWheelDirection=`x`):(r=a,this.lastWheelDirection=`y`);let d=Date.now(),m=Math.abs(r);(d-this.lastWheelTimestamp>100||m-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-r,-r,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=d,this.lastMixedWheel=m};onOffset(t,e,a){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:e,event:a})})}static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[``,`nzTabScrollList`,``]],outputs:{offsetChange:`offsetChange`,tabScroll:`tabScroll`}})}return s})();var Oe$1=(()=>{class s{ngZone=h(B$2);el=h($$2).nativeElement;directionality=h(Ue$1).valueSignal;position=pe$1(`horizontal`);animated=pe$1(!0);indicator=pe$1();animationEnabled=TS(()=>this.animated());alignToElement(t){this.ngZone.runOutsideAngular(()=>{Er$1(()=>this.setStyles(t))})}setStyles(t){let{size:e,align:a}=this.indicator()||{};this.position()===`horizontal`?(this.el.style.top=``,this.el.style.height=``,this.el.style.width=me$1(e?typeof e==`number`?e:e(t?.offsetWidth??0):t?.offsetWidth??0),this.el.style.left=this.setIndicatorPosition(t,a)):(this.el.style.left=``,this.el.style.width=``,this.el.style.height=me$1(z1e(e)?t?.offsetHeight??0:typeof e==`number`?e:e(t?.offsetHeight??0)),this.el.style.top=this.setIndicatorPosition(t,a))}setIndicatorPosition(t,e=`start`){let a=this.position()===`horizontal`,r=a?t?.offsetLeft??0:t?.offsetTop??0,C=a?t?.offsetWidth??0:t?.offsetHeight??0,h=a?this.el.offsetWidth:this.el.offsetHeight;switch(a&&this.directionality()===`rtl`&&e!==`center`?e===`start`?`end`:`start`:e){case`start`:return me$1(r);case`end`:return me$1(r+C-(h||0));case`center`:return me$1(r+(C-(h||0))/2)}}static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[`nz-tabs-ink-bar`],[``,`nz-tabs-ink-bar`,``]],hostAttrs:[1,`ant-tabs-ink-bar`],hostVars:2,hostBindings:function(e,a){e&2&&Ze(`ant-tabs-ink-bar-animated`,a.animationEnabled())},inputs:{position:[1,`position`],animated:[1,`animated`],indicator:[1,`indicator`]}})}return s})();var pn=typeof Er$1<`u`?Wi:Kc$2;var Le$1=150;var qt=(()=>{class s{cdr=h(Qe$1);ngZone=h(B$2);
10viewportRuler=h(no);nzResizeObserver=h(n_e);directionality=h(Ue$1);destroyRef=h(re$1);dir=this.directionality.valueSignal;indexFocused=new O$1;selectFocusedIndex=new O$1;addClicked=new O$1;tabScroll=new O$1;position=`horizontal`;addable=!1;hideBar=!1;addIcon=`plus`;inkBarAnimated=!0;extraTemplate;extraContents=pe$1.required();indicator=pe$1();startExtraContent=Fe$1(()=>this.extraContents().find(t=>t.position()===`start`));endExtraContent=Fe$1(()=>this.extraContents().find(t=>t.position()===`end`));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=Nn$2(t);this._selectedIndex!==e&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new V5(this.items).withHorizontalOrientation(this.dir()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),Er$1(t),ti(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(be$1(this.destroyRef),po$1(16,pn)).subscribe(()=>t()),ti(this.directionality.change,this.viewportRuler.change(150),this.items.changes).pipe(be$1(this.destroyRef)).subscribe(()=>{Promise.resolve().then(t),this.keyManager.withHorizontalOrientation(this.dir())}),this.keyManager.change.pipe(be$1(this.destroyRef)).subscribe(e=>{this.indexFocused.emit(e),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let e=this.items.toArray().findIndex(a=>a===t);e!==-1&&(this.keyManager.updateActiveItem(e),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position===`horizontal`){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){if(!(kc(t)||!this.navWrapRef.nativeElement.contains(t.target)))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let e=this.items.toArray()[t];return!!e&&!e.disabled}scrollToTab(t){if(!this.items.find(a=>a===t))return;let e=this.items.toArray();if(this.position===`horizontal`){let a=this.transformX;if(this.dir()===`rtl`){let r=e[0].left+e[0].width-t.left-t.width;r<this.transformX?a=r:r+t.width>this.transformX+this.wrapperWidth&&(a=r+t.width-this.wrapperWidth)}else t.left<-this.transformX?a=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(a=-(t.left+t.width-this.wrapperW
10idth));this.transformX=a,this.transformY=0,this.setTransform(a,0)}else{let a=this.transformY;t.top<-this.transformY?a=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(a=-(t.top+t.height-this.wrapperHeight)),this.transformY=a,this.transformX=0,this.setTransform(0,a)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},Le$1)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition=`none`,this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition=``,this.lockAnimationTimeoutId=void 0},Le$1)})}setTransform(t,e){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${e}px)`}clampTransformX(t){let e=this.wrapperWidth-this.scrollListWidth;return this.dir()===`rtl`?Math.max(Math.min(e,t),0):Math.min(Math.max(e,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?.getElementWidth()||0,this.addButtonHeight=this.addBtnRef?.getElementHeight()||0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e&&this.inkBar.alignToElement(e.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},e=this.navWrapRef.nativeElement;this.position===`horizontal`?this.dir()===`rtl`?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(a=>{let r=`ant-tabs-nav-wrap-ping-${a}`;t[a]?e.classList.add(r):e.classList.remove(r)})}setVisibleRange(){let t,e,a,r,C,h,d=this.items.toArray(),m={width:0,height:0,left:0,top:0,right:0},p=S=>{let V,tt=d[S]||m;return e===`right`?V=d[0].left+d[0].width-d[S].left-d[S].width:V=tt[e],V};this.position===`horizontal`?(t=`width`,r=this.wrapperWidth,C=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),h=this.addButtonWidth,a=Math.abs(this.transformX),this.dir()===`rtl`?(e=`right`,this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,e=`left`)):(t=`height`,r=this.wrapperHeight,C=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),h=this.addButtonHeight,e=`top`,a=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let x=r;if(C+h>r&&(x=r-h),!d.length){this.hiddenItems=[],this.cdr.markForCheck();return}let f=d.length,i=f;for(let S=0;S<f;S+=1)if(p(S)+(d[S]||m)[t]>a+x){i=S-1;break}let n=0;for(let S=f-1;S>=0;S-=1)if(p(S)<a){n=S+1;break}let l=d.slice(0,n),v=d.slice(i+1);this.hiddenItems=[...l,...v],this.cdr.markForCheck()}ngOnChanges(t){let{position:e,indicator:a}=t;e&&!e.isFirstChange()&&this.updateScrollListPosition(),(e&&!e.isFirstChange()||a&&!a.isFirstChange())&&(this.alignInkBarToSelectedTab(),this.lockAnimation())}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){let t=[`navWrap`],e=[`navList`],a=[`*`];function r(f,i){}function C(f,i){f&1&&(oe$2(0,`div`,2),qe$1(1,r,0,0,`ng-template`,8),he$1()),f&2&&(A(),ie$1(`ngTemplateOutlet`,i.templateRef))}function h(f,i){if(f&1){let n=on();oe$2(0,`button`,9),je$1(`click`,function(){gt$1(n);let v=F$2();
10return vt(v.addClicked.emit())}),he$1()}if(f&2){let n=F$2();ie$1(`addIcon`,n.addIcon),$t(`tabindex`,-1)}}function d(f,i){}function m(f,i){f&1&&(oe$2(0,`div`,2),qe$1(1,d,0,0,`ng-template`,8),he$1()),f&2&&(A(),ie$1(`ngTemplateOutlet`,i.templateRef))}function p(f,i){}function x(f,i){if(f&1&&(oe$2(0,`div`,2),qe$1(1,p,0,0,`ng-template`,8),he$1()),f&2){let n=F$2();A(),ie$1(`ngTemplateOutlet`,n.extraTemplate)}}return Se$1({type:s,selectors:[[`nz-tabs-nav`]],contentQueries:function(i,n,l){if(i&1&&bn$3(l,Pe$1,5),i&2){let v;Ge(v=Ke())&&(n.items=v)}},viewQuery:function(i,n){if(i&1&&Kn(t,7)(e,7)(Yt,7)(Dt,5)(Oe$1,7),i&2){let l;Ge(l=Ke())&&(n.navWrapRef=l.first),Ge(l=Ke())&&(n.navListRef=l.first),Ge(l=Ke())&&(n.operationRef=l.first),Ge(l=Ke())&&(n.addBtnRef=l.first),Ge(l=Ke())&&(n.inkBar=l.first)}},hostAttrs:[1,`ant-tabs-nav`],hostBindings:function(i,n){i&1&&je$1(`keydown`,function(v){return n.handleKeydown(v)})},inputs:{position:`position`,addable:[2,`addable`,`addable`,H$2],hideBar:[2,`hideBar`,`hideBar`,H$2],addIcon:`addIcon`,inkBarAnimated:`inkBarAnimated`,extraTemplate:`extraTemplate`,extraContents:[1,`extraContents`],indicator:[1,`indicator`],selectedIndex:`selectedIndex`},outputs:{indexFocused:`indexFocused`,selectFocusedIndex:`selectFocusedIndex`,addClicked:`addClicked`,tabScroll:`tabScroll`},exportAs:[`nzTabsNav`],features:[Te$1],ngContentSelectors:a,decls:11,vars:18,consts:[[`navWrap`,``],[`navList`,``],[1,`ant-tabs-extra-content`],[1,`ant-tabs-nav-wrap`],[`nzTabScrollList`,``,`role`,`tablist`,1,`ant-tabs-nav-list`,3,`offsetChange`,`tabScroll`],[`role`,`tab`,`nz-tab-add-button`,``,3,`addIcon`],[`nz-tabs-ink-bar`,``,3,`hidden`,`position`,`animated`,`indicator`],[3,`addClicked`,`selected`,`addIcon`,`addable`,`items`],[3,`ngTemplateOutlet`],[`role`,`tab`,`nz-tab-add-button`,``,3,`click`,`addIcon`]],template:function(i,n){if(i&1&&(yn$1(),ve$1(0,C,2,1,`div`,2),oe$2(1,`div`,3,0)(3,`div`,4,1),je$1(`offsetChange`,function(v){return n.onOffsetChange(v)})(`tabScroll`,function(v){return n.tabScroll.emit(v)}),Wt$1(5),ve$1(6,h,1,2,`button`,5),pt$1(7,`div`,6),he$1()(),oe$2(8,`nz-tab-nav-operation`,7),je$1(`addClicked`,function(){return n.addClicked.emit()})(`selected`,function(v){return n.onSelectedFromMenu(v)}),he$1(),ve$1(9,m,2,1,`div`,2)(10,x,2,1,`div`,2)),i&2){let l,v;ye$1((l=n.startExtraContent())?0:-1,l),A(),Ze(`ant-tabs-nav-wrap-ping-left`,n.pingLeft)(`ant-tabs-nav-wrap-ping-right`,n.pingRight)(`ant-tabs-nav-wrap-ping-top`,n.pingTop)(`ant-tabs-nav-wrap-ping-bottom`,n.pingBottom),A(5),ye$1(n.showAddButton?6:-1),A(),ie$1(`hidden`,n.hideBar)(`position`,n.position)(`animated`,n.inkBarAnimated)(`indicator`,n.indicator()),A(),ie$1(`addIcon`,n.addIcon)(`addable`,n.addable)(`items`,n.hiddenItems),A(),ye$1((v=n.endExtraContent())?9:n.extraTemplate?10:-1,v)}},dependencies:[cn,Dt,Oe$1,Yt,ka$1],encapsulation:2})})()}return s})();var un=(()=>{class s{static ɵfac=function(e){return new(e||s)};static ɵdir=j({type:s,selectors:[[``,`nz-tab`,``]],exportAs:[`nzTab`]})}return s})();var He=new b$1(``);var mn=(()=>{class s{closestTabSet=h(He);nzTitle=``;nzClosable=!1;nzCloseIcon=`close`;nzDisabled=!1;nzForceRender=!1;nzSelect=new O$1;nzDeselect=new O$1;nzClick=new O$1;nzContextmenu=new O$1;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;stateChanges=new C$1;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:e,nzDisabled:a,nzForceRender:r}=t;(e||a||r)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){let t=[`contentTemplate`],e=[[[``,`nz-tab-link`,``]],`*`],a=[`[nz-tab-link]`,`*`];function r(h,d){h&1&&Wt$1(0)}function C(h,d){h&1&&Wt$1(0,1)}return Se$1({type:s,selectors:[[`nz-tab`]],contentQueries:function(d,m,p){if(d&1&&bn$3(p,ln,5)(p,un,5,yt$1)(p,Fe,5),d&2){let x;Ge(x=Ke())&&(m.nzTabLinkTemplateDirective=x.first),Ge(x=Ke())&&(m.template=x.first),Ge(x=Ke())&&(m.linkDirective=x.first)}},viewQuery:function(d,m){if(d&1&&Kn(t,7),d&2){let p;Ge(p=Ke())&&(m.contentTemplate=p.first)}},inputs:{nzTitle:`nzTitle`,nzClosable:[2,`nzClosable`,`nzClosable`,H$2],nzCloseIcon:`nzCloseIcon`,nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzForceRender:[2,`nzForceRender`,`nzForceRender`,H$2]},outputs:{nzSelect:`nzSelect`,nzDeselect:`nzDeselect`,nzClick:`nzClick`,nzContextmenu:`nzContextmenu`},exportAs:[`nzTab`],features:[Te$1],ngContentSelectors:a,decls:4,vars:0,consts:[[`tabLinkTemplate`,``],[`contentTemplate`,``]],template:function(d,m){d&1&&(yn$1(e),gy(0,r,1,0,`ng-template`,null,0,ql$1)(2,C,1,0,`ng-template`,null,1,ql$1))},encapsulation:2})})()}return s})();var bn=0;var hn=(()=>{let s,Gt=[],t=[],e,a=[],r=[],C,h$1=[],d=[],m,p=[],x=[];return class wt{static{let i=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;s=[Bo()],e=[Bo()],C=[Bo()],m=[Bo()],uo$2(null,null,s,{kind:`field`,name:`nzType`,static:!1,private:!1,access:{has:n=>`nzType`in n,get:n=>n.nzType,set:(n,l)=>{n.nzType=l}},metadata:i},Gt,t),uo$2(null,null,e,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:n=>`nzSize`in n,get:n=>n.nzSize,set:(n,l)=>{n.nzSize=l}},metadata:i},a,r),uo$2(null,null,C,{kind:`field`,name:`nzAnimated`,static:!1,private:!1,access:{has:n=>`nzAnimated`in n,get:n=>n.nzAnimated,set:(n,l)=>{n.nzAnimated=l}},metadata:i},h$1,d),uo$2(null,null,m,{kind:`field`,name:`nzTabBarGutter`,static:!1,private:!1,access:{has:n=>`nzTabBarGutter`in n,get:n=>n.nzTabBarGutter,set:(n,l)=>{n.nzTabBarGutter=l}},metadata:i},p,x),i&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}_nzModuleName=`tabs`;dir=h(Ue$1).valueSignal;ngZone=h(B$2);cdr=h(Qe$1);destroyRef=h(re$1);router=h(qt$3,{optional:!0});get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(i){this.indexToSelect=Nn$2(i,null)}nzTabPosition=`top`;nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon=`plus`;nzTabBarStyle=null;nzType=mn$3(this,Gt,`line`);nzSize=(mn$3(this,t),mn$3(this,a,`default`));nzAnimated=(mn$3(this,r),mn$3(this,h$1,!0));nzTabBarGutter=(mn$3(this,d),mn$3(this,p,void 0));nzHideAdd=(mn$3(this,x),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzIndicator=pe$1();nzSelectChange=Zl$1();nzSelectedIndexChange=Zl$1();nzTabListScroll=Zl$1();nzClose=Zl$1();nzAdd=Zl$1();get position(){return[`top`,`bottom`].indexOf(this.nzTabPosition)===-1?`vertical`:`horizontal`}get addable(){return this.nzType===`editable-card`&&!this.nzHideAdd}get closable(){return this.nzType===`editable-card`}get inkBarAnimated(){return this.nzType===`line`&&(typeof this.nzAnimated==`boolean`?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated==`boolean`?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new Ca$1;tabLinks=new Ca$1;tabNavBarRef;tabs=new Ca$1;extraContents=tre(Me$1);tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=ue$1.EMPTY;canDeactivateSubscription=ue$1.EMPTY;constructor(){this.tabSetId=bn++,this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.tabs.changes.pipe(be$1(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let n=this.tabs.toArray();for(let l=0;l<n.length;l++)if(n[l].isActive){this.indexToSelect=this.selectedIndex=l;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()}),this.subscribeToAllTabChanges()}ngAfterContentChecked(){let i=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==i){let n=this.selectedIndex==null;n||this.nzSelectChange.emit(this.createChangeEvent(i)),Promise.resolve().then(()=>
10{this.tabs.forEach((l,v)=>l.setActive(v===i)),n||this.nzSelectedIndexChange.emit(i)})}this.tabs.forEach((n,l)=>{n.position=l-i,this.selectedIndex!=null&&n.position===0&&!n.origin&&(n.origin=i-this.selectedIndex)}),this.selectedIndex!==i&&(this.selectedIndex=i,this.cdr.markForCheck())}onClose(i,n){n.preventDefault(),n.stopPropagation(),this.nzClose.emit({index:i})}onAdd(){this.nzAdd.emit()}clampTabIndex(i){return Math.min(this.tabs.length-1,Math.max(i||0,0))}createChangeEvent(i){let n=new Xt;return n.index=i,this.tabs&&this.tabs.length&&(n.tab=this.tabs.toArray()[i],this.tabs.forEach((l,v)=>{v!==i&&l.nzDeselect.emit()}),n.tab.nzSelect.emit()),n}subscribeToTabLabels(){this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=ti(...this.tabs.map(i=>i.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(mt$2(this.allTabs)).subscribe(i=>{this.tabs.reset(i.filter(n=>n.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(i,n){return typeof this.nzCanDeactivate==`function`?Qw(this.nzCanDeactivate(i,n)).pipe(vo$1(),be$1(this.destroyRef)):S(!0)}clickNavItem(i,n,l){i.nzDisabled||(i.nzClick.emit(),this.isRouterLinkClickEvent(n,l)||this.setSelectedIndex(n))}isRouterLinkClickEvent(i,n){let l=n.target;return this.nzLinkRouter?!!this.tabs.toArray()[i]?.linkDirective?.elementRef.nativeElement.contains(l):!1}contextmenuNavItem(i,n){i.nzDisabled||i.nzContextmenu.emit(n)}setSelectedIndex(i){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,i).subscribe(n=>{n&&(this.nzSelectedIndex=i,this.tabNavBarRef.focusIndex=i,this.cdr.markForCheck())})}getTabIndex(i,n){return i.nzDisabled?null:this.selectedIndex===n?0:-1}getTabContentId(i){return`nz-tabs-${this.tabSetId}-tab-${i}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${LL} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);ti(this.router.events.pipe(ne(i=>i instanceof wn$1)),this.tabLinks.changes).pipe(mt$2(!0),go$1(0),be$1(this.destroyRef)).subscribe(()=>this.updateRouterActive())}}updateRouterActive(){if(this.router?.navigated){let i=this.findShouldActiveTabIndex();i!==this.selectedIndex&&this.setSelectedIndex(i),Promise.resolve().then(()=>{this.nzHideAll=i===-1,this.cdr.markForCheck()})}}findShouldActiveTabIndex(){let i=this.tabs.toArray(),n=this.isLinkActive(this.router);return i.findIndex(l=>{let v=l.linkDirective;return v?n(v.routerLink):!1})}isLinkActive(i){return n=>!i||!n?!1:i.isActive(n.urlTree||``,{paths:this.nzLinkExact?`exact`:`subset`,queryParams:this.nzLinkExact?`exact`:`subset`,fragment:`ignored`,matrixParams:`ignored`})}static ɵfac=function(n){return new(n||wt)};static ɵcmp=(function(){let i=()=>({visible:!0});function n(c,z){if(c&1&&(nn$1(0),an$3(1),rn$3()),c&2){let o=F$2().$implicit;A(),Io$1(` `,o.label,` `)}}function l(c,z){if(c&1){let o=on();oe$2(0,`button`,10),je$1(`click`,function(u){gt$1(o);let I=F$2().$index,et=F$2(2);return vt(et.onClose(I,u))}),he$1()}if(c&2){let o=F$2().$implicit;ie$1(`closeIcon`,o.nzCloseIcon)}}function v(c,z){if(c&1){let o=on();oe$2(0,`div`,6),je$1(`click`,function(u){let I=gt$1(o),et=I.$implicit,Ke=I.$index,Ue=F$2(2);return vt(Ue.clickNavItem(et,Ke,u))})(`contextmenu`,function(u){let I=gt$1(o).$implicit,et=F$2(2);return vt(et.contextmenuNavItem(I,u))}),oe$2(1,`div`,7),qe$1(2,n,2,1,`ng-container`,8),ve$1(3,l,1,1,`button`,9),he$1()()}if(c&2){let o=z.$implicit,T=z.$index,u=F$2(2);It$2(`margin-inline-end`,u.position===`horizontal`?u.nzTabBarGutter:null,`px`)(`margin-bottom`,u.position===`vertical`?u.nzTabBarGutter:null,`px`),Ze(`ant-tabs-tab-active`,u.nzSelectedIndex===T)(`ant-tabs-tab-disabled`,o.nzDisabled),A(),ie$1(`id`,u.getTabContentId(T))(`disabled`,o.nzDisabled)(`tab`,o)(`active`,u.nzSelectedIndex===T),$t(`tabIndex`,u.getTabIndex(o,T))(`aria-disabled`,o.nzDisabled)(`aria-selected`,u.nzSelectedIndex===T&&!u.nzHideAll)(`aria-controls`,u.getTabContentId(T)),A(),ie$1(`nzStringTemplateOutlet`,o.label)(`nzStringTemplateOutletContext`,MO(19,i)),A(),ye$1(o.nzClosable&&u.closable&&!o.nzDisabled?3:-1)}}function S(c,z){if(c&1){let o=on();oe$2(0,`nz-tabs-nav`,4),je$1(`tabScroll`,function(u){gt$1(o);let I=F$2();return vt(I.nzTabListScroll.emit(u))})(`selectFocusedIndex`,function(u){gt$1(o);let I=F$2();return vt(I.setSelectedIndex(u))})(`addClicked`,function(){gt$1(o);let u=F$2();return vt(u.onAdd())}),Yl(1,v,4,20,`div`,5,jl),he$1()}if(c&2){let o=F$2();ko$1(o.nzTabBarStyle),ie$1(`selectedIndex`,o.nzSelectedIndex||0)(`inkBarAnimated`,o.inkBarAnimated)(`addable`,o.addable)(`addIcon`,o.nzAddIcon)(`hideBar`,o.nzHideAll)(`position`,o.position)(`extraTemplate`,o.nzTabBarExtraContent)(`extraContents`,o.extraContents())(`indicator`,o.nzIndicator()),A(),Ul(o.tabs)}}function V(c,z){}function tt(c,z){if(c&1&&qe$1(0,V,0,0,`ng-template`,11),c&2){F$2();let o=Wl(4);ie$1(`ngTemplateOutlet`,o)}}function $e(c,z){}function Ve(c,z){if(c&1&&qe$1(0,$e,0,0,`ng-template`,11),c&2){F$2(2);let o=Wl(4);ie$1(`ngTemplateOutlet`,o)}}function Xe(c,z){if(c&1&&ve$1(0,Ve,1,1,null,11),c&2){let o=F$2().$index,T=F$2(2);ye$1(T.nzSelectedIndex===o?0:-1)}}function Qe(c,z){}function Ye(c,z){if(c&1&&qe$1(0,Qe,0,0,`ng-template`,11),c&2){F$2(2);let o=Wl(4);ie$1(`ngTemplateOutlet`,o)}}function qe(c,z){if(c&1&&ve$1(0,Ye,1,1,null,11),c&2){let o=F$2(),T=o.$implicit,u=o.$index,I=F$2(2);ye$1(I.nzSelectedIndex===u||T.hasBeenActive?0:-1)}}function Ge$1(c,z){if(c&1&&pt$1(0,`div`,12),c&2){let o=F$2(),T=o.$implicit,u=o.$index,I=F$2(2);
10ie$1(`id`,I.getTabContentId(u))(`active`,I.nzSelectedIndex===u)(`content`,T.content)(`animated`,I.tabPaneAnimated),$t(`aria-labelledby`,I.getTabContentId(u))}}function je(c,z){if(c&1&&(ve$1(0,tt,1,1,null,11)(1,Xe,1,1)(2,qe,1,1),qe$1(3,Ge$1,1,5,`ng-template`,null,0,ql$1)),c&2){let o=z.$implicit,T=F$2(2);ye$1(o.nzForceRender?0:T.nzDestroyInactiveTabPane?1:2)}}function Ze$1(c,z){if(c&1&&Yl(0,je,5,1,null,null,jl),c&2){let o=F$2();Ul(o.tabs)}}return Se$1({type:wt,selectors:[[`nz-tabs`]],contentQueries:function(z,o,T){if(z&1&&(Dd$1(T,o.extraContents,Me$1,4),bn$3(T,mn,5)(T,Fe,5)),z&2){Sd$1();let u;Ge(u=Ke())&&(o.allTabs=u),Ge(u=Ke())&&(o.tabLinks=u)}},viewQuery:function(z,o){if(z&1&&Kn(qt,5),z&2){let T;Ge(T=Ke())&&(o.tabNavBarRef=T.first)}},hostAttrs:[1,`ant-tabs`],hostVars:24,hostBindings:function(z,o){z&2&&Ze(`ant-tabs-card`,o.nzType===`card`||o.nzType===`editable-card`)(`ant-tabs-editable`,o.nzType===`editable-card`)(`ant-tabs-editable-card`,o.nzType===`editable-card`)(`ant-tabs-centered`,o.nzCentered)(`ant-tabs-rtl`,o.dir()===`rtl`)(`ant-tabs-top`,o.nzTabPosition===`top`)(`ant-tabs-bottom`,o.nzTabPosition===`bottom`)(`ant-tabs-left`,o.nzTabPosition===`left`)(`ant-tabs-right`,o.nzTabPosition===`right`)(`ant-tabs-default`,o.nzSize==="default")(`ant-tabs-small`,o.nzSize===`small`)(`ant-tabs-large`,o.nzSize===`large`)},inputs:{nzSelectedIndex:`nzSelectedIndex`,nzTabPosition:`nzTabPosition`,nzTabBarExtraContent:`nzTabBarExtraContent`,nzCanDeactivate:`nzCanDeactivate`,nzAddIcon:`nzAddIcon`,nzTabBarStyle:`nzTabBarStyle`,nzType:`nzType`,nzSize:`nzSize`,nzAnimated:`nzAnimated`,nzTabBarGutter:`nzTabBarGutter`,nzHideAdd:[2,`nzHideAdd`,`nzHideAdd`,H$2],nzCentered:[2,`nzCentered`,`nzCentered`,H$2],nzHideAll:[2,`nzHideAll`,`nzHideAll`,H$2],nzLinkRouter:[2,`nzLinkRouter`,`nzLinkRouter`,H$2],nzLinkExact:[2,`nzLinkExact`,`nzLinkExact`,H$2],nzDestroyInactiveTabPane:[2,`nzDestroyInactiveTabPane`,`nzDestroyInactiveTabPane`,H$2],nzIndicator:[1,`nzIndicator`]},outputs:{nzSelectChange:`nzSelectChange`,nzSelectedIndexChange:`nzSelectedIndexChange`,nzTabListScroll:`nzTabListScroll`,nzClose:`nzClose`,nzAdd:`nzAdd`},exportAs:[`nzTabs`],features:[Ft$1([{provide:He,useExisting:ta$2(()=>wt)}])],decls:4,vars:12,consts:[[`tabpaneTmpl`,``],[3,`style`,`selectedIndex`,`inkBarAnimated`,`addable`,`addIcon`,`hideBar`,`position`,`extraTemplate`,`extraContents`,`indicator`],[1,`ant-tabs-content-holder`],[1,`ant-tabs-content`],[3,`tabScroll`,`selectFocusedIndex`,`addClicked`,`selectedIndex`,`inkBarAnimated`,`addable`,`addIcon`,`hideBar`,`position`,`extraTemplate`,`extraContents`,`indicator`],[1,`ant-tabs-tab`,3,`margin-inline-end`,`margin-bottom`,`ant-tabs-tab-active`,`ant-tabs-tab-disabled`],[1,`ant-tabs-tab`,3,`click`,`contextmenu`],[`role`,`tab`,`nzTabNavItem`,``,`cdkMonitorElementFocus`,``,1,`ant-tabs-tab-btn`,3,`id`,`disabled`,`tab`,`active`],[4,`nzStringTemplateOutlet`,`nzStringTemplateOutletContext`],[`type`,`button`,`nz-tab-close-button`,``,3,`closeIcon`],[`type`,`button`,`nz-tab-close-button`,``,3,`click`,`closeIcon`],[3,`ngTemplateOutlet`],[`role`,`tabpanel`,`nz-tab-body`,``,3,`id`,`active`,`content`,`animated`]],template:function(z,o){z&1&&(ve$1(0,S,3,11,`nz-tabs-nav`,1),oe$2(1,`div`,2)(2,`div`,3),ve$1(3,Ze$1,2,0),he$1()()),z&2&&(ye$1(o.tabs.length||o.addable?0:-1),A(2),Ze(`ant-tabs-content-top`,o.nzTabPosition===`top`)(`ant-tabs-content-bottom`,o.nzTabPosition===`bottom`)(`ant-tabs-content-left`,o.nzTabPosition===`left`)(`ant-tabs-content-right`,o.nzTabPosition===`right`)(`ant-tabs-content-animated`,o.tabPaneAnimated),A(),ye$1(o.nzHideAll?-1:3))},dependencies:[qt,ka$1,Pe$1,MV,cV,Jr$3,er$1,We,rn],encapsulation:2})})()}})();var ii=(()=>{class s{static ɵfac=function(e){return new(e||s)};static ɵmod=ee$3({type:s});static ɵinj=X$2({imports:[hn,qt,Yt,Dt,We]})}return s})();var N$1=new b$1(`REUSE_TAB_CACHED_MANAGER`);var H$1=class{list=[];title={};closable={}};var R=new b$1(`REUSE_TAB_STORAGE_KEY`);var x$1=new b$1(`REUSE_TAB_STORAGE_STATE`);var F$1=class{get(e){return JSON.parse(localStorage.getItem(e)??`[]`)??[]}update(e,t){return localStorage.setItem(e,JSON.stringify(t)),!0}remove(e){localStorage.removeItem(e)}};var b=class o{injector=h(U$2);menuService=h(Hu$1);cached=h(N$1);stateKey=h(R);stateSrv=h(x$1);_inited=!1;_max=10;_keepingScroll=!1;_cachedChange=new se$1(null);_router$;removeUrlBuffer=null;positionBuffer={};componentRef;debug=!1;routeParamMatchMode=`strict`;mode=0;excludes=[];storageState=!1;get snapshot(){return this.injector.get(Jn$1).snapshot}get inited(){return this._inited}get curUrl(){return this.getUrl(this.snapshot)}set max(e){this._max=Math.min(Math.max(e,2),100);for(let t=this.cached.list.length;t>this._max;t--)this.cached.list.pop()}set keepingScroll(e){this._keepingScroll=e,this.initScroll()}get keepingScroll(){return this._keepingScroll}keepingScrollContainer;get items(){return this.cached.list}get count(){return this.cached.list.length}get change(){return this._cachedChange.asObservable()}set title(e){let t=this.curUrl;typeof e==`string`&&(e={text:e}),this.cached.title[t]=e,this.di(`update current tag title: `,e),this._cachedChange.next({active:`title`,url:t,title:e,list:this.cached.list})}index(e){return this.cached.list.findIndex(t=>t.url===e)}exists(e){return this.index(e)!==-1}get(e){return e?this.cached.list.find(t=>t.url===e)??null:null}remove(e,t){let n=typeof e==`string`?this.index(e):e,s=n!==-1?this.cached.list[n]:null;return!s||!t&&!s.closable?!1:(this.destroy(s._handle),this.cached.list.splice(n,1),delete this.cached.title[e],!0)}close(e,t=!1){return this.removeUrlBuffer=e,this.remove(e,t),this._cachedChange.next({active:`close`,url:e,list:this.cached.list}),this.di(`close tag`,e),!0}closeRight(e,t=!1){let n=this.index(e);for(let s=this.count-1;s>n;s--)this.remove(s,t);return this.removeUrlBuffer=null,this._cachedChange.next({active:`closeRight`,url:e,list:this.cached.list}),this.di(`close right tages`,e),!0}clear(e=!1){this.cached.list.forEach(t=>{!e&&t.closable&&this.destroy(t._handle)}),this.cached.list=this.cached.list.filter(t=>!e&&!t.closable),this.removeUrlBuffer=null,this._cachedChange.next({active:`clear`,list:this.cached.list}),this.di(`clear all catch`)}move(e,t){let n=this.cached.list.findIndex(i=>i.url===e);if(n===-1)return;let s=this.cached.list.slice();s.splice(t<0?s.length+t:t,0,s.splice(n,1)[0]),this.cached.list=s,this._cachedChange.next({active:`move`,url:e,position:t,list:this.cached.list})}replace(e){let t=this.curUrl;this.injector.get(qt$3).navigateByUrl(e).then(()=>{this.exists(t)?this.close(t,!0):this.removeUrlBuffer=t})}getTitle(e,t){if(this.cached.title[e])return this.cached.title[e];
10if(t&&t.data&&(t.data.titleI18n||t.data.title))return{text:t.data.title,i18n:t.data.titleI18n};let n=this.getMenu(e);return n?{text:n.text,i18n:n.i18n}:{text:e}}clearTitleCached(){this.cached.title={}}set closable(e){let t=this.curUrl;this.cached.closable[t]=e,this.di(`update current tag closable: `,e),this._cachedChange.next({active:`closable`,closable:e,list:this.cached.list})}getClosable(e,t){if(typeof this.cached.closable[e]<`u`)return this.cached.closable[e];if(t&&t.data&&typeof t.data.reuseClosable==`boolean`)return t.data.reuseClosable;let n=this.mode!==2?this.getMenu(e):null;return n&&typeof n.reuseClosable==`boolean`?n.reuseClosable:!0}clearClosableCached(){this.cached.closable={}}getTruthRoute(e){let t=e;for(;t.firstChild;)t=t.firstChild;return t}getUrl(e){let t=this.getTruthRoute(e),n=[];for(;t;)n.push(t.url.join(`/`)),t=t.parent;return`/${n.filter(i=>i).reverse().join(`/`)}`}can(e){let t=this.getUrl(e);if(t===this.removeUrlBuffer)return!1;if(e.data&&typeof e.data.reuse==`boolean`)return e.data.reuse;if(this.mode!==2){let n=this.getMenu(t);if(!n)return!1;if(this.mode===0){if(n.reuse===!1)return!1}else if(!n.reuse||n.reuse!==!0)return!1;return!0}return!this.isExclude(t)}isExclude(e){return this.excludes.findIndex(t=>t.test(e))!==-1}refresh(e){this._cachedChange.next({active:`refresh`,data:e})}destroy(e){e&&e.componentRef&&e.componentRef.destroy&&e.componentRef.destroy()}di(...e){}constructor(){this.cached??={list:[],title:{},closable:{}}}init(){this.initScroll(),this._inited=!0,this.loadState()}loadState(){this.storageState&&(this.cached.list=this.stateSrv.get(this.stateKey).map(e=>W$1(g$1({},e),{title:{text:e.title},url:e.url,position:e.position})),this._cachedChange.next({active:`loadState`}))}getMenu(e){let t=this.menuService.getPathByUrl(e);return!t||t.length===0?null:t.pop()}runHook(e,t,n=`init`){if(typeof t==`number`&&(t=this.cached.list[t]._handle?.componentRef),t==null||!t.instance)return;let s=t.instance,i=s[e];typeof i==`function`&&(e===`_onReuseInit`?i.call(s,n):i.call(s))}hasInValidRoute(e){return!e.routeConfig||!!e.routeConfig.loadChildren||!!e.routeConfig.children}shouldDetach(e){return this.hasInValidRoute(e)?!1:(this.di(`#shouldDetach`,this.can(e),this.getUrl(e)),this.can(e))}saveCache(e,t,n){let s=this.getTruthRoute(e),i=this.getUrl(e),r=this.index(i),f={title:this.getTitle(i,s),url:i,closable:this.getClosable(i,e),_snapshot:e,_handle:t};if(r<0){if(this.items.splice(n??this.items.length,0,f),this.count>this._max){let O=this.items.findIndex(v=>v.url!==i&&v.closable);if(O!==-1){let v=this.items[O];this.remove(O,!1),fo(1).pipe($e$2(1)).subscribe(()=>this._cachedChange.next({active:`close`,url:v.url,list:this.cached.list}))}}}else this.items[r]=f}store(e,t){let n=this.getUrl(e);
10t!=null&&this.saveCache(e,t);let s=this.cached.list,i={title:this.getTitle(n,e),closable:this.getClosable(n,e),position:this.getKeepingScroll(n,e)?this.positionBuffer[n]:null,url:n,_snapshot:e,_handle:t},r=this.index(n),f=s[r]?._handle?.componentRef;t==null&&f!=null&&fo(100).pipe($e$2(1)).subscribe(()=>this.runHook(`_onReuseInit`,f)),s[r]=i,this.removeUrlBuffer=null,this.di(`#store`,`[override]`,n),t&&t.componentRef&&this.runHook(`_onReuseDestroy`,t.componentRef),this._cachedChange.next({active:`override`,item:i,list:s})}shouldAttach(e){if(this.hasInValidRoute(e))return!1;let t=this.getUrl(e),n=this.get(t),s=!!(n&&n._handle);return this.di(`#shouldAttach`,s,t),s||this._cachedChange.next({active:`add`,url:t,list:this.cached.list}),s}retrieve(e){if(this.hasInValidRoute(e))return null;let t=this.getUrl(e),n=this.get(t),s=n&&n._handle;return this.di(`#retrieve`,t,s),s}shouldReuseRoute(e,t){let n=e.routeConfig===t.routeConfig;if(!n)return!1;let s=(e.routeConfig&&e.routeConfig.path)??``;if(s.length>0&&~s.indexOf(`:`)){let i=this.routeParamMatchMode;typeof i==`function`?n=i(e,t):i===`strict`?n=this.getUrl(e)===this.getUrl(t):n=s===((t.routeConfig&&t.routeConfig.path)??``)}return this.di(`=====================`),this.di(`#shouldReuseRoute`,n,`${this.getUrl(t)}=>${this.getUrl(e)}`,e,t),n}getKeepingScroll(e,t){if(t&&t.data&&typeof t.data.keepingScroll==`boolean`)return t.data.keepingScroll;let n=this.mode!==2?this.getMenu(e):null;return n&&typeof n.keepingScroll==`boolean`?n.keepingScroll:this.keepingScroll}get isDisabledInRouter(){return this.injector.get(xi$1,{}).scrollPositionRestoration===`disabled`}get ss(){return this.injector.get(Mx)}initScroll(){this._router$&&this._router$.unsubscribe(),this._router$=this.injector.get(qt$3).events.subscribe(e=>{if(e instanceof _i$1){let t=this.curUrl;this.getKeepingScroll(t,this.getTruthRoute(this.snapshot))?this.positionBuffer[t]=this.ss.getScrollPosition(this.keepingScrollContainer):delete this.positionBuffer[t]}else if(e instanceof wn$1){let t=this.curUrl,n=this.get(t);n&&n.position&&this.getKeepingScroll(t,this.getTruthRoute(this.snapshot))&&(this.isDisabledInRouter?this.ss.scrollToPosition(this.keepingScrollContainer,n.position):setTimeout(()=>this.ss.scrollToPosition(this.keepingScrollContainer,n.position),1))}})}ngOnDestroy(){let{_cachedChange:e,_router$:t}=this;this.clear(),this.cached.list=[],e.complete(),t&&t.unsubscribe()}static ɵfac=function(t){return new(t||o)};static ɵprov=w({token:o,factory:o.ɵfac})};function et(o,e){if(o&1){let t=on();oe$2(0,`li`,5),je$1(`click`,function(s){gt$1(t);let i=F$2();return vt(i.click(s,`refresh`))}),he$1()}if(o&2){let t=F$2();ie$1(`innerHTML`,t.i18n.refresh,Sa$1)}}function tt(o,e){if(o&1){let t=on();oe$2(0,`li`,8),je$1(`click`,function(s){let i=gt$1(t).$implicit,r=F$2(2);return vt(r.click(s,`custom`,i))}),he$1()}if(o&2){let t=e.$implicit,n=F$2(2);ie$1(`nzDisabled`,n.isDisabled(t))(`innerHTML`,t.title,Sa$1),$t(`data-type`,t.id)}}function nt(o,e){if(o&1&&(pt$1(0,`li`,6),Yl(1,tt,1,3,`li`,7,EP)),o&2){let t=F$2();A(),Ul(t.customContextMenu)}}var D$1=class o{locale=h(s4).valueSignal(`reuseTab`);_i18n;set i18n(e){this._i18n=g$1(g$1({},this.locale()),e)}get i18n(){return this._i18n}item;event;customContextMenu;close=new O$1;get includeNonCloseable(){return this.event.ctrlKey}notify(e){this.close.next({type:e,item:this.item,includeNonCloseable:this.includeNonCloseable})}ngOnInit(){this.includeNonCloseable&&(this.item.closable=!0)}click(e,t,n){if(e.preventDefault(),e.stopPropagation(),!(t===`close`&&!this.item.closable)&&!(t===`closeRight`&&this.item.last)){if(n){if(this.isDisabled(n))return;n.fn(this.item,n)}this.notify(t)}}isDisabled(e){return e.disabled?e.disabled(this.item):!1}closeMenu(e){e.type===`click`&&e.button===2||this.notify(null)}static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`reuse-tab-context-menu`]],hostBindings:function(t,n){t&1&&je$1(`click`,function(i){return n.closeMenu(i)},Tz)(`contextmenu`,function(i){return n.closeMenu(i)},Tz)},inputs:{i18n:`i18n`,item:`item`,event:`event`,customContextMenu:`customContextMenu`},outputs:{close:`close`},decls:6,vars:7,consts:[[`nz-menu`,``],[`nz-menu-item`,``,`data-type`,`refresh`,3,`innerHTML`],[`nz-menu-item`,``,`data-type`,`close`,3,`click`,`nzDisabled`,`innerHTML`],[`nz-menu-item`,``,`data-type`,`closeOther`,3,`click`,`innerHTML`],[`nz-menu-item`,``,`data-type`,`closeRight`,3,`click`,`nzDisabled`,`innerHTML`],[`nz-menu-item`,``,`data-type`,`refresh`,3,`click`,`innerHTML`],[`nz-menu-divider`,``],[`nz-menu-item`,``,3,`nzDisabled`,`innerHTML`],[`nz-menu-item`,``,3,`click`,`nzDisabled`,`innerHTML`]],template:function(t,n){t&1&&(oe$2(0,`ul`,0),ve$1(1,et,1,1,`li`,1),oe$2(2,`li`,2),je$1(`click`,function(i){return n.click(i,`close`)}),he$1(),oe$2(3,`li`,3),je$1(`click`,function(i){return n.click(i,`closeOther`)}),he$1(),oe$2(4,`li`,4),je$1(`click`,function(i){return n.click(i,`closeRight`)}),he$1(),ve$1(5,nt,3,0),he$1()),t&2&&(A(),ye$1(n.item.active?1:-1),A(),ie$1(`nzDisabled`,!n.item.closable)(`innerHTML`,n.i18n.close,Sa$1),A(),ie$1(`innerHTML`,n.i18n.closeOther,Sa$1),A(),ie$1(`nzDisabled`,n.item.last)(`innerHTML`,n.i18n.closeRight,Sa$1),A(),ye$1(n.customContextMenu.length>0?5:-1))},dependencies:[TDe,xx],encapsulation:2})};var g=class o{overlay=h(DS);ref=null;i18n;show=new C$1;close=new C$1;remove(){this.ref&&(this.ref.detach(),this.ref.dispose(),this.ref=null)}open(e){this.remove();let{event:t,item:n,customContextMenu:s}=e,{x:i,y:r}=t,f=[new st$2({originX:`start`,originY:`bottom`},{overlayX:`start`,overlayY:`top`}),new st$2({originX:`start`,originY:`top`},{overlayX:`start`,overlayY:`bottom`})],O=this.overlay.position().flexibleConnectedTo({x:i,y:r}).withPositions(f);this.ref=this.overlay.create({positionStrategy:O,panelClass:`reuse-tab__cm`,scrollStrategy:this.overlay.scrollStrategies.close()});let v=this.ref.attach(new $o$2(D$1)),U=v.instance;U.i18n=this.i18n,U.item=g$1({},n),U.customContextMenu=s,U.event=t;let le=new ue$1;le.add(U.close.subscribe(Je=>{this.close.next(Je),this.remove()})),v.onDestroy(()=>le.unsubscribe())}static ɵfac=function(t){return new(t||o)};static ɵprov=w({token:o,factory:o.ɵfac})};var z$1=class o{srv=h(g);set i18n(e){this.srv.i18n=e}change=new O$1;constructor(){this.srv.show.pipe(be$1()).subscribe(e=>this.srv.open(e)),this.srv.close.pipe(be$1()).subscribe(e=>this.change.emit(e))}static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`reuse-tab-context`]],inputs:{i18n:`i18n`},outputs:{change:`change`},decls:0,vars:0,template:function(t,n){},encapsulation:2})};var B$1=class o{srv=h(g);item=pe$1.required({alias:`reuse-tab-context-menu`});customContextMenu=pe$1.required();_onContextMenu(e){this.srv.show.next({event:e,item:this.item(),customContextMenu:this.customContextMenu()}),e.preventDefault(),e.stopPropagation()}static ɵfac=function(t){return new(t||o)};static ɵdir=j({type:o,selectors:[[``,`reuse-tab-context-menu`,``]],hostBindings:function(t,n){t&1&&je$1(`contextmenu`,function(i){return n._onContextMenu(i)})},inputs:{item:[1,`reuse-tab-context-menu`,`item`],customContextMenu:[1,`customContextMenu`]},exportAs:[`reuseTabContextMenu`]})};var it=o=>({$implicit:o});function ot(o,e){return this.trackByFn()(e)}function st(o,e){}function rt(o,e){if(o&1&&qe$1(0,st,0,0,`ng-template`,6),o&2){let t=F$2(2).$implicit,n=F$2();ie$1(`ngTemplateOutlet`,n.titleRender())(`ngTemplateOutletContext`,ff(2,it,t))}}function at(o,e){if(o&1&&an$3(0),o&2){let t=F$2(2).$implicit;Io$1(` `,t.title,` `)}}
10function lt(o,e){if(o&1){let t=on();oe$2(0,`nz-icon`,8),je$1(`click`,function(s){gt$1(t);let i=F$2(2).$index,r=F$2();return vt(r._close(s,i,!1))}),he$1()}}function ut(o,e){if(o&1&&(oe$2(0,`div`,5)(1,`span`),ve$1(2,rt,1,4,null,6)(3,at,1,1),he$1()(),ve$1(4,lt,1,0,`nz-icon`,7)),o&2){let t=F$2().$implicit,n=F$2();ie$1(`reuse-tab-context-menu`,t)(`customContextMenu`,n.customContextMenu()),$t(`title`,t.title),A(),It$2(`max-width`,n.tabMaxWidth(),`px`),Ze(`reuse-tab__name-width`,n.tabMaxWidth()),A(),ye$1(n.titleRender()?2:3),A(2),ye$1(t.closable?4:-1)}}function ct(o,e){if(o&1){let t=on();oe$2(0,`nz-tab`,4),je$1(`nzClick`,function(){let s=gt$1(t).$index,i=F$2();return vt(i._to(s))}),qe$1(1,ut,5,9,`ng-template`,null,0,ql$1),he$1()}if(o&2){let t=Wl(2);ie$1(`nzTitle`,t)}}var X$1=class o{srv=h(b,{optional:!0});router=h(qt$3);route=h(Jn$1);i18nSrv=h(Kr$3);doc=h(z$2);platform=h(Me$3);stateKey=h(R);stateSrv=h(x$1);tabset=sb.required(hn);destroy$=h(re$1);dir=h(Ue$1).valueSignal;list=G$1([]);item;pos=G$1(0);mode=pe$1(0);i18n=pe$1();debug=pe$1(!1,{transform:H$2});max=pe$1(void 0,{transform:Oo$1});tabMaxWidth=pe$1(void 0,{transform:Oo$1});excludes=pe$1();allowClose=pe$1(!0,{transform:H$2});keepingScroll=pe$1(!1,{transform:H$2});storageState=pe$1(!1,{transform:H$2});keepingScrollContainer=pe$1();customContextMenu=pe$1([]);tabBarExtraContent=pe$1();tabBarGutter=pe$1();tabBarStyle=pe$1(null);tabType=pe$1(`line`);routeParamMatchMode=pe$1(`strict`);disabled=pe$1(!1,{transform:H$2});titleRender=pe$1();canClose=pe$1();trackByFn=pe$1(e=>e.url);change=Zl$1();close=Zl$1();genTit(e){return e.i18n?this.i18nSrv.fanyi(e.i18n):e.text}get curUrl(){return this.srv.getUrl(this.route.snapshot)}genCurItem(){let e=this.curUrl,t=this.srv.getTruthRoute(this.route.snapshot);return{url:e,title:this.genTit(this.srv.getTitle(e,t)),closable:this.allowClose()&&this.srv.count>0&&this.srv.getClosable(e,t),active:!1,last:!1,index:0}}genList(e){let t=this.srv.items.map((i,r)=>({url:i.url,title:this.genTit(i.title),closable:this.allowClose()&&this.srv.count>0&&this.srv.getClosable(i.url,i._snapshot),position:i.position,index:r,active:!1,last:!1})),n=this.curUrl,s=t.findIndex(i=>i.url===n)===-1;if(e&&e.active===`close`&&e.url===n){s=!1;let i=0,r=this.list().find(f=>f.url===n);r.index===t.length?i=t.length-1:r.index<t.length&&(i=Math.max(0,r.index)),this.router.navigateByUrl(t[i].url)}if(s){let i=this.pos()+1;t.splice(i,0,this.genCurItem()),this.srv.saveCache(this.route.snapshot,null,i)}t.forEach((i,r)=>i.index=r),t.length===1&&(t[0].closable=!1),this.list.set(t),this.updatePos()}updateTitle(e){this.list.update(t=>{let n=t.find(s=>s.url===e.url);return n?(n.title=this.genTit(e.title),[...t]):t})}refresh(e){this.srv.runHook(`_onReuseInit`,this.pos()===e.index?this.srv.componentRef:e.index,`refresh`)}saveState(){!this.srv.inited||!this.storageState()||this.stateSrv?.update(this.stateKey,this.list())}contextMenuChange(e){let t=null;switch(e.type){case`refresh`:this.refresh(e.item);break;case`close`:this._close(null,e.item.index,e.includeNonCloseable);break;case`closeRight`:t=()=>{this.srv.closeRight(e.item.url,e.includeNonCloseable),this.close.emit(null)};break;case`closeOther`:t=()=>{this.srv.clear(e.includeNonCloseable),this.close.emit(null)}}t&&(!e.item.active&&e.item.index<=this.list().find(n=>n.active).index?this._to(e.item.index,t):t())}_to(e,t){e=Math.max(0,Math.min(e,this.list().length-1));let n=this.list()[e];this.router.navigateByUrl(n.url).then(s=>{s&&(this.item=n,this.change.emit(n),t?.())})}_close(e,t,n){e!=null&&(e.preventDefault(),e.stopPropagation());let s=this.list()[t],i=this.canClose();return(i?i({item:s,includeNonCloseable:n}):S(!0)).pipe(ne(r=>r)).subscribe(()=>{this.srv.close(s.url,n),this.close.emit(s)}),!1}activate(e){this.srv!=null&&(this.srv.componentRef={instance:e})}updatePos(){let e=this.srv.getUrl(this.route.snapshot),t=this.list().filter(r=>r.url===e||!this.srv.isExclude(r.url));if(t.length===0)return;let n=t[t.length-1],s=t.find(r=>r.url===e);n.last=!0;let i=s==null?n.index:s.index;t.forEach((r,f)=>r.active=i===f),this.pos.set(i),this.tabset().nzSelectedIndex=i,this.list.set(t),this.saveState()}ngOnInit(){!this.platform.isBrowser||this.srv==null||(this.srv.change.pipe(be$1(this.destroy$)).subscribe(e=>{switch(e?.active){case`title`:this.updateTitle(e);return;case`override`:if(e?.list?.length===this.list.length){this.updatePos();return}}this.genList(e)}),this.i18nSrv.change.pipe(ne(()=>this.srv.inited),be$1(this.destroy$),Hn$2(100)).subscribe(()=>this.genList({active:`title`}
10)),this.srv.init())}ngOnChanges(e){if(!(!this.platform.isBrowser||this.srv==null)){if(e.max&&(this.srv.max=this.max()),e.excludes&&(this.srv.excludes=this.excludes()),e.mode&&(this.srv.mode=this.mode()),e.routeParamMatchMode&&(this.srv.routeParamMatchMode=this.routeParamMatchMode()),e.keepingScroll){this.srv.keepingScroll=this.keepingScroll();let t=this.keepingScrollContainer();this.srv.keepingScrollContainer=typeof t==`string`?this.doc.querySelector(t):t}e.storageState&&(this.srv.storageState=this.storageState()),this.srv.debug=this.debug()}}static ɵfac=function(t){return new(t||o)};static ɵcmp=Se$1({type:o,selectors:[[`reuse-tab`],[``,`reuse-tab`,``]],viewQuery:function(t,n){t&1&&_d$2(n.tabset,hn,5),t&2&&Sd$1()},hostAttrs:[1,`reuse-tab`],hostVars:8,hostBindings:function(t,n){t&2&&Ze(`reuse-tab__line`,n.tabType()===`line`)(`reuse-tab__card`,n.tabType()===`card`)(`reuse-tab__disabled`,n.disabled())(`reuse-tab-rtl`,n.dir()===`rtl`)},inputs:{mode:[1,`mode`],i18n:[1,`i18n`],debug:[1,`debug`],max:[1,`max`],tabMaxWidth:[1,`tabMaxWidth`],excludes:[1,`excludes`],allowClose:[1,`allowClose`],keepingScroll:[1,`keepingScroll`],storageState:[1,`storageState`],keepingScrollContainer:[1,`keepingScrollContainer`],customContextMenu:[1,`customContextMenu`],tabBarExtraContent:[1,`tabBarExtraContent`],tabBarGutter:[1,`tabBarGutter`],tabBarStyle:[1,`tabBarStyle`],tabType:[1,`tabType`],routeParamMatchMode:[1,`routeParamMatchMode`],disabled:[1,`disabled`],titleRender:[1,`titleRender`],canClose:[1,`canClose`],trackByFn:[1,`trackByFn`]},outputs:{change:`change`,close:`close`},exportAs:[`reuseTab`],features:[Ft$1([g]),Te$1],decls:4,vars:7,consts:[[`titleTemplate`,``],[3,`nzSelectedIndex`,`nzAnimated`,`nzType`,`nzTabBarExtraContent`,`nzTabBarGutter`,`nzTabBarStyle`],[3,`nzTitle`],[3,`change`,`i18n`],[3,`nzClick`,`nzTitle`],[1,`reuse-tab__name`,3,`reuse-tab-context-menu`,`customContextMenu`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nzType`,`close`,1,`reuse-tab__op`],[`nzType`,`close`,1,`reuse-tab__op`,3,`click`]],template:function(t,n){t&1&&(oe$2(0,`nz-tabs`,1),Yl(1,ct,3,1,`nz-tab`,2,ot,!0),he$1(),oe$2(3,`reuse-tab-context`,3),je$1(`change`,function(i){return n.contextMenuChange(i)}),he$1()),t&2&&(ie$1(`nzSelectedIndex`,n.pos())(`nzAnimated`,!1)(`nzType`,n.tabType())(`nzTabBarExtraContent`,n.tabBarExtraContent())(`nzTabBarGutter`,n.tabBarGutter())(`nzTabBarStyle`,n.tabBarStyle()),A(),Ul(n.list()),A(2),ie$1(`i18n`,n.i18n()))},dependencies:[ka$1,hn,mn,B$1,z$1,Gt$2],encapsulation:2})};var K$1=class{srv=h(b);shouldDetach(e){return this.srv.shouldDetach(e)}store(e,t){this.srv.store(e,t)}shouldAttach(e){return this.srv.shouldAttach(e)}retrieve(e){return this.srv.retrieve(e)}shouldReuseRoute(e,t){return this.srv.shouldReuseRoute(e,t)}};function Qe(o,e){return{ɵkind:o,ɵproviders:e}}function ci(o){return et$1([b,{provide:R,useValue:o?.storeKey??`_reuse-tab-state`},(o?.cacheManager??dt()).ɵproviders,(o?.store??mt()).ɵproviders,{provide:ew,useClass:K$1,deps:[b]},d2(()=>{let e=h(b);o?.debug&&(e.debug=o.debug),o?.mode&&(e.mode=o.mode),o?.routeParamMatchMode&&(e.routeParamMatchMode=o.routeParamMatchMode),o?.max&&(e.max=o.max),o?.excludes&&(e.excludes=o.excludes)})])}function dt(){return Qe(0,[{provide:N$1,useFactory:()=>new H$1}])}function mt(){return Qe(1,[{provide:x$1,useFactory:()=>new F$1}])}var pe=Fx((Je,N)=>{"use strict";var G=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function m(i,s){if(!r[i]){r[i]={};for(var d=0;d<i.length;d++)r[i][i.charAt(d)]=d}return r[i][s]}var p={compressToBase64:function(i){if(i==null)return``;var s=p._compress(i,6,function(d){return t.charAt(d)});switch(s.length%4){default:case 0:return s;case 1:return s+`===`;case 2:return s+`==`;case 3:return s+`=`}},decompressFromBase64:function(i){return i==null?``:i==``?null:p._decompress(i.length,32,function(s){return m(t,i.charAt(s))})},compressToUTF16:function(i){return i==null?``:p._compress(i,15,function(s){return e(s+32)})+` `},decompressFromUTF16:function(i){return i==null?``:i==``?null:p._decompress(i.length,16384,function(s){return i.charCo
10deAt(s)-32})},compressToUint8Array:function(i){for(var s=p.compress(i),d=new Uint8Array(s.length*2),o=0,l=s.length;o<l;o++){var h=s.charCodeAt(o);d[o*2]=h>>>8,d[o*2+1]=h%256}return d},decompressFromUint8Array:function(i){if(i==null)return p.decompress(i);for(var s=new Array(i.length/2),d=0,o=s.length;d<o;d++)s[d]=i[d*2]*256+i[d*2+1];var l=[];return s.forEach(function(h){l.push(e(h))}),p.decompress(l.join(``))},compressToEncodedURIComponent:function(i){return i==null?``:p._compress(i,6,function(s){return n.charAt(s)})},decompressFromEncodedURIComponent:function(i){return i==null?``:i==``?null:(i=i.replace(/ /g,`+`),p._decompress(i.length,32,function(s){return m(n,i.charAt(s))}))},compress:function(i){return p._compress(i,16,function(s){return e(s)})},_compress:function(i,s,d){if(i==null)return``;var o,l,h={},v={},S=``,k=``,y=``,w=2,j=3,g=2,f=[],a=0,c=0,b=0;for(;b<i.length;b+=1)if(S=i.charAt(b),Object.prototype.hasOwnProperty.call(h,S)||(h[S]=j++,v[S]=!0),k=y+S,Object.prototype.hasOwnProperty.call(h,k))y=k;else{if(Object.prototype.hasOwnProperty.call(v,y)){if(y.charCodeAt(0)<256){for(o=0;o<g;o++)a=a<<1,c==s-1?(c=0,f.push(d(a)),a=0):c++;for(l=y.charCodeAt(0),o=0;o<8;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1}else{for(l=1,o=0;o<g;o++)a=a<<1|l,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=0;for(l=y.charCodeAt(0),o=0;o<16;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete v[y]}else for(l=h[y],o=0;o<g;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1;w--,w==0&&(w=Math.pow(2,g),g++),h[k]=j++,y=String(S)}if(y!==``){if(Object.prototype.hasOwnProperty.call(v,y)){if(y.charCodeAt(0)<256){for(o=0;o<g;o++)a=a<<1,c==s-1?(c=0,f.push(d(a)),a=0):c++;for(l=y.charCodeAt(0),o=0;o<8;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1}else{for(l=1,o=0;o<g;o++)a=a<<1|l,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=0;for(l=y.charCodeAt(0),o=0;o<16;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete v[y]}else for(l=h[y],o=0;o<g;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1;w--,w==0&&(w=Math.pow(2,g),g++)}for(l=2,o=0;o<g;o++)a=a<<1|l&1,c==s-1?(c=0,f.push(d(a)),a=0):c++,l=l>>1;for(;;)if(a=a<<1,c==s-1){f.push(d(a));break}else c++;return f.join(``)},decompress:function(i){return i==null?``:i==``?null:p._decompress(i.length,32768,function(s){return i.charCodeAt(s)})},_decompress:function(i,s,d){var o=[],h=4,v=4,S=3,k=``,y=[],w,j,g,f,a,c,b,u={val:d(0),position:s,index:1};for(w=0;w<3;w+=1)o[w]=w;for(g=0,a=Math.pow(2,2),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;switch(g){case 0:for(g=0,a=Math.pow(2,8),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;b=e(g);break;case 1:for(g=0,a=Math.pow(2,16),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;b=e(g);break;case 2:return``}for(o[3]=b,j=b,y.push(b);;){if(u.index>i)return``;for(g=0,a=Math.pow(2,S),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;switch(b=g){case 0:for(g=0,a=Math.pow(2,8),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;o[v++]=e(g),b=v-1,h--;break;case 1:for(g=0,a=Math.pow(2,16),c=1;c!=a;)f=u.val&u.position,u.position>>=1,u.position==0&&(u.position=s,u.val=d(u.index++)),g|=(f>0?1:0)*c,c<<=1;o[v++]=e(g),b=v-1,h--;break;case 2:return y.join(``)}if(h==0&&(h=Math.pow(2,S),S++),o[b])k=o[b];else if(b===v)k=j+j.charAt(0);else return null;y.push(k),o[v++]=j+k.charAt(0),h--,j=k,h==0&&(h=Math.pow(2,S),S++)}}};return p})();typeof define==`function`&&define.amd?define(function(){return G}):typeof N<`u`&&N!=null?N.exports=G:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return G})});var de=Fx(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.getParameters=void 0;var De=pe();function We(e){return De.compressToBase64(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Be(e){return We(JSON.stringify(e))}P.getParameters=Be});var ue=Fx(R=>{"use strict";R.__esModule=!0;R.getParameters=void 0;R.getParameters=de().getParameters});var ye=Fx((ot,Fe)=>{Fe.exports={name:`delon`,version:`22.1.1`,description:`Delon is a set of essential modules for NG-ALAIN.`,keywords:[`delon`,`ng-alain`,`alain`,`antd`,`ng-zorro-antd`,`angular`],author:`cipchk <[email protected]>`,license:`MIT`,bugs:{url:`https://github.com/ng-alain/ng-alain/issues`},repository:{type:`git`,url:`git+https://github.com/ng-alain/delon.git`},homepage:`https://ng-alain.com`,engines:{node:`^22.22.3 || ^24.15.0 || >=26.0.0`},scripts:{prepare:`husky`,start:`npm run site:gen && ng s -o --hmr`,lint:`npm run lint:ts && npm run lint:style`,"lint:ts":`eslint --cache`,"lint:fix":`eslint --cache --fix`,"lint:style":`npx stylelint 'packages/**/*.less'`,test:`ng test delon --no-progress --no-watch --coverage`,"test:cli":`bash scripts/ci/build-schematics.sh -t -clone`,build:`bash scripts/ci/build.sh`,build_artifacts:`bash scripts/ci/build-artifacts.sh`,analyze:`npm run ng build -- --source-map`,"analyze:view":`source-map-explorer src/
10dist/browser/*.js`,"site:gen":`tsx scripts/site/index.ts init && node scripts/site/link-delon.js && ng-alain-plugin-theme -t=themeCss`,"site:build":`npm run site:gen && ng b site && npm run site:ngsw && npm run site:minify && npm run site:sitemap && npm run site:helper`,"site:helper":`bash scripts/ci/helper.sh`,"site:minify":`node scripts/build/minify.js`,"site:sitemap":`node scripts/build/sitemap.js`,"site:ngsw":`node scripts/build/ngsw.js`,changelog:`npx conventional-changelog -p angular -i CHANGELOG.md --pkg package.json -s`,"pre-publish":`node scripts/publish/publish.js && node scripts/publish/publish-scaffold.js`,"publish:next":`bash scripts/publish/publish.sh -next`,publish:`bash scripts/publish/publish.sh`,"pre-commit":`tsc -p packages/tsconfig.json --noEmit && lint-staged`,"sync-scaffold-version":`node scripts/publish/sync-scaffold-version.js`},dependencies:{"@angular/common":`^22.2.0`,"@angular/compiler":`^22.2.0`,"@angular/core":`^22.2.0`,"@angular/forms":`^22.2.0`,"@angular/platform-browser":`^22.2.0`,"@angular/router":`^22.2.0`,rxjs:`~7.8.0`,tslib:`^2.3.0`,"@angular/cdk":`^22.2.0`,"@angular/elements":`^22.2.0`,"@angular/platform-server":`^22.2.0`,"@angular/service-worker":`^22.2.0`,"@angular/ssr":`^22.2.0`,"@ant-design/icons-angular":`^22.1.1`,"@antv/g2":`^5.4.8`,"@github/hotkey":`^3.1.4`,"@ng-util/monaco-editor":`^22.0.0`,"@stackblitz/sdk":`^1.11.1`,"@webcomponents/custom-elements":`^1.6.0`,ajv:`^8.20.0`,"ajv-formats":`^3.0.1`,codesandbox:`^2.2.3`,"date-fns":`^4.4.0`,echarts:`^6.1.0`,express:`^5.2.1`,extend:`^3.0.2`,"file-saver":`^2.0.5`,global:`^4.4.0`,isutf8:`^4.0.4`,"ng-github-button":`^22.0.0`,"ng-zorro-antd":`^22.1.1`,"ngx-countdown":`^22.0.0`,"ngx-highlight-js":`^22.0.0`,"ngx-tinymce":`^22.0.0`,qrious:`^4.0.2`,"zone.js":`~0.15.0`},devDependencies:{"@angular-devkit/core":`^22.2.0`,"@angular-devkit/schematics":`^22.2.0`,"@angular/build":`^22.2.0`,"@angular/cli":`^22.2.0`,"@angular/compiler-cli":`^22.2.0`,"@commitlint/cli":`^21.2.3`,"@commitlint/config-angular":`^21.2.3`,"@eslint/js":`^10.0.1`,"@eslint/markdown":`^8.0.3`,"@types/node":`^26.6.2`,"@vitest/browser-playwright":`^5.0.2`,"@vitest/coverage-istanbul":`^5.0.2`,"@vitest/coverage-v8":`^5.0.2`,"angular-eslint":`^22.5.0`,eslint:`^10.11.0`,"eslint-plugin-import-x":`^4.17.1`,"eslint-plugin-jsdoc":`^64.5.4`,"eslint-plugin-prettier":`^5.5.6`,"eslint-plugin-unused-imports":`^4.4.1`,husky:`^9.1.7`,"istanbul-lib-instrument":`^6.0.3`,less:`^4.9.1`,"ng-packagr":`^22.2.1`,prettier:`^3.9.9`,"pretty-quick":`^4.2.2`,"readline-sync":`^1.4.10`,typescript:`~6.0.3`,"typescript-eslint":`^8.70.1`,"@faker-js/faker":`^10.6.0`,"@schematics/angular":`^22.2.0`,"@tailwindcss/postcss":`^4.3.3`,"@types/deep-extend":`^0.6.2`,"@types/express":`^5.0.6`,"@types/extend":`^3.0.4`,"@types/file-saver":`^2.0.7`,"@types/fs-extra":`^11.0.4`,"@types/yaml-front-matter":`^4.1.3`,chalk:`^6.0.0`,"conventional-changelog":`^8.1.3`,"fs-extra":`^11.4.1`,glob:`^13.0.6`,"html-minifier-terser":`^7.2.0`,jsdom:`^30.1.1`,"jsonc-parser":`^3.3.1`,"jsonml.js":`^0.1.0`,jszip:`^3.10.2`,"klaw-sync":`^8.0.0`,"less-bundle-promise":`^1.0.11`,"less-plugin-clean-css":`^1.6.0`,"less-plugin-npm-import":`^2.1.0`,"less-vars-to-js":`^1.3.0`,"lint-staged":`^17.6.0`,listr2:`^11.1.0`,marked:`^18.0.14`,"ng-alain-plugin-theme":`^18.0.0`,"ng-alain-sts":`^0.0.2`,parse5:`^8.0.1`,playwright:`^1.63.0`,plyr:`^3.8.4`,postcss:`^8.5.28`,"postcss-less":`^6.0.0`,remark:`^15.0.1`,screenfull:`^6.0.2`,sitemap:`^9.0.1`,slugify:`^1.6.9`,"source-map-explorer":`^2.5.3`,stream:`0.0.3`,stylelint:`^17.15.0`,"stylelint-config-clean-order":`^10.0.0`,"stylelint-config-standard":`^40.0.0`,"stylelint-declaration-block-no-ignored-properties":`^3.0.0`,"stylelint-order":`^8.1.1`,"swagger-typescript-api":`^13.13.0`,tailwindcss:`^4.3.3`,terser:`^5.51.2`,tsx:`^4.23.15`,vitest:`^5.0.2`,"yaml-front-matter":`^4.1.1`},"lint-staged":{"(schematics|scripts|packages)/**/!(tslint-rules|testing)/!(polyfills).{html,ts}":[`eslint --cache`],"packages/**/*.less":[`npm run lint:style`]},packageManager:`[email protected]`}});var ve=`https://stackblitz.com`;var re=[`angular-cli`,`create-react-app`,`html`,`javascript`,`node`,`polymer`,`typescript`,`vue`];var Se=[`project`,`search`,`ports`,`settings`];var ke=[`light`,`dark`];var je=[`editor`,`preview`];var _e=[`accelerometer`,`ambient-light-sensor`,`autoplay`,`battery`,`bluetooth`,`camera`,`clipboard-read`,`clipboard-write`,`display-capture`,`encrypted-media`,`fullscreen`,`gamepad`,`geolocation`,`gyroscope`,`hid`,`idle-detection`,`local-network`,`local-network-access`,`loopback-network`,`magnetometer`,`microphone`,`midi`,`payment`,`picture-in-picture`,`publickey-credentials-get`,`screen-wake-lock`,`serial`,`usb`,`web-share`,`xr-spatial
10-tracking`];var ie={clickToLoad:e=>E(`ctl`,e),devToolsHeight:e=>oe$1(`devtoolsheight`,e),forceEmbedLayout:e=>E(`embed`,e),hideDevTools:e=>E(`hidedevtools`,e),hideExplorer:e=>E(`hideExplorer`,e),hideNavigation:e=>E(`hideNavigation`,e),openFile:e=>T(`file`,e),showSidebar:e=>Ee(`showSidebar`,e),sidebarView:e=>C(`sidebarView`,e,Se),startScript:e=>T(`startScript`,e),terminalHeight:e=>oe$1(`terminalHeight`,e),theme:e=>C(`theme`,e,ke),view:e=>C(`view`,e,je),zenMode:e=>E(`zenMode`,e),organization:e=>`${T(`orgName`,e?.name)}&${T(`orgProvider`,e?.provider)}`,crossOriginIsolated:e=>E(`corp`,e)};function se(e={}){let t=Object.entries(e).map(([n,r])=>r!=null&&ie.hasOwnProperty(n)?ie[n](r):``).filter(Boolean);return t.length?`?${t.join(`&`)}`:``}function E(e,t){return t===!0?`${e}=1`:``}function Ee(e,t){return typeof t==`boolean`?`${e}=${t?`1`:`0`}`:``}function oe$1(e,t){if(typeof t==`number`&&!Number.isNaN(t))return`${e}=${encodeURIComponent(Math.round(Math.min(100,Math.max(0,t))))}`;return``}function C(e,t=``,n=[]){return n.includes(t)?`${e}=${encodeURIComponent(t)}`:``}function T(e,t){return(Array.isArray(t)?t:[t]).filter(r=>typeof r==`string`&&r.trim()!==``).map(r=>`${e}=${encodeURIComponent(r)}`).join(`&`)}function ae(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function q(e,t){return`${W(t)}${e}${se(t)}`}function D(e,t){let n={forceEmbedLayout:!0};return t&&typeof t==`object`&&Object.assign(n,t),`${W(n)}${e}${se(n)}`}function W(e={}){return(typeof e.origin==`string`?e.origin:ve).replace(/\/$/,``)}function B(e,t,n){if(!t||!e||!e.parentNode)throw new Error(`Invalid Element`);e.id&&(t.id=e.id),e.className&&(t.className=e.className),xe(t,n),Ae(e,t,n),e.replaceWith(t)}function U(e){if(typeof e==`string`){let t=document.getElementById(e);if(!t)throw new Error(`Could not find element with id '${e}'`);return t}else if(e instanceof HTMLElement)return e;throw new Error(`Invalid element: ${e}`)}function F(e){return e&&e.newWindow===!1?`_self`:`_blank`}function xe(e,t={}){let n=Object.hasOwnProperty.call(t,`height`)?`${t.height}`:`300`,r=Object.hasOwnProperty.call(t,`width`)?`${t.width}`:void 0;e.setAttribute(`height`,n),r?e.setAttribute(`width`,r):e.setAttribute(`style`,`width:100%;`)}function Ae(e,t,n={}){let r=e.allow?.split(`;`)?.map(p=>p.trim()).filter(Boolean)??[],m=new Set(r.map(p=>p.split(/\s+/)[0]));for(let p of Te())m.has(p)||(r.push(`${p} *`),m.add(p));n.crossOriginIsolated&&!m.has(`cross-origin-isolated`)&&(r.push(`cross-origin-isolated ${W(n)}`),m.add(`cross-origin-isolated`)),r.length>0&&(t.allow=r.join(`; `))}function Te(){let e=new Set(_e);try{let t=document?.featurePolicy;if(t&&typeof t.allowedFeatures==`function`)for(let n of t.allowedFeatures())e.add(n)}catch{}return e.delete(`cross-origin-isolated`),[...e]}var L=class{constructor(t){this.pending={},this.port=t,this.port.onmessage=this.messageListener.bind(this)}request({type:t,payload:n}){return new Promise((r,m)=>{let p=ae();this.pending[p]={resolve:r,reject:m},this.port.postMessage({type:t,payload:W$1(g$1({},n),{__reqid:p})})})}messageListener(t){if(typeof t.data.payload?.__reqid!=`string`)return;let{type:n,payload:r}=t.data,{__reqid:m,__success:p,__error:i}=r;this.pending[m]&&(p?this.pending[m].resolve(this.cleanResult(r)):this.pending[m].reject(i?`${n}: ${i}`:n),delete this.pending[m])}cleanResult(t){let n=g$1({},t);return delete n.__reqid,delete n.__success,delete n.__error,Object.keys(n).length?n:null}};var $$1=class{constructor(t,n){this.editor={openFile:r=>this._rdc.request({type:`SDK_OPEN_FILE`,payload:{path:r}}),setCurrentFile:r=>this._rdc.request({type:`SDK_SET_CURRENT_FILE`,payload:{path:r}}),setTheme:r=>this._rdc.request({type:`SDK_SET_UI_THEME`,payload:{theme:r}}),setView:r=>this._rdc.request({type:`SDK_SET_UI_VIEW`,payload:{view:r}}),showSidebar:(r=!0)=>this._rdc.request({type:`SDK_TOGGLE_SIDEBAR`,payload:{visible:r}})},this.preview={origin:``,getUrl:()=>this._rdc.request({type:`SDK_GET_PREVIEW_URL`,payload:{}}).then(r=>r?.url??null),setUrl:(r=`/`)=>{if(typeof r!=`string`||!r.startsWith(`/`))throw new Error(`Invalid argument: expected a path starting with '/', got '${r}'`);return this._rdc.request({type:`SDK_SET_PREVIEW_URL`,payload:{path:r}})}},this._rdc=new L(t),Object.defineProperty(this.preview,"origin",{value:typeof n.previewOrigin==`string`?n.previewOrigin:null,writable:!1})}applyFsDiff(t){let n=r=>r!==null&&typeof r==`object`;if(!n(t)||!n(t.create))throw new Error(`Invalid diff object: expected diff.create to be an object.`);if(!Array.isArray(t.destroy))throw new Error(`Invalid diff object: expected diff.destroy to be an array.`);return this._rdc.request({type:`SDK_APPLY_FS_DIFF`,payload:t})}getDependencies(){return this._rdc.request({type:`SDK_GET_DEPS_SNAPSHOT`,payload:{}})}getFsSnapshot(){return this._rdc.request({type:`SDK_GET_FS_SNAPSHOT`,payload:{}})}};var O=[];var z=class{constructor(t){this.id=ae(),this.element=t,this.pending=new Promise((n,r)=>{let m=({data:o,ports:l})=>{o?.action===`SDK_INIT_SUCCESS`&&o.id===this.id&&(this.vm=new $$1(l[0],o.payload),n(this.vm),i())},p=()=>{this.element.contentWindow?.postMessage({action:`SDK_INIT`,id:this.id},`*`)};function i(){window.clearInterval(d),window.removeEventListener(`message`,m)}window.addEventListener(`message`,m),p();let s=0,d=window.setInterval(()=>{if(this.vm){i();return}if(s>=20){i(),r(`Timeout: Unable to establish a connection with the StackBlitz VM`),O.forEach((o,l)=>{o.id===this.id&&O.splice(l,1)});return}s++,p()},500)}),O.push(this)}};var Oe=e=>{let t=e instanceof Element?`element`:`id`;return O.find(n=>n[t]===e)??null};function Ie(e,t){let n=document.createElement(`input`);return n.type=`hidden`,n.name=e,n.value=t,n}function Ne(e){return e.replace(/\[/g,`%5B`).replace(/\]/g,`%5D`)}function ce({template:e,title:t,description:n,dependencies:r,files:m,settings:p}){if(!re.includes(e)){let o=re.map(l=>`'${l}'`).join(`, `);console.warn(`Unsupported project.template: must be one of ${o}`)}let i=[],s=(o,l,h=``)=>{i.push(Ie(o,typeof l==`string`?l:h))};s(`project[title]`,t),typeof n==`string`&&n.length>0&&s(`project[description]`,n),s(`project[template]`,e,`javascript`),r&&(e===`node`?console.warn(`Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template.`):s(`project[dependencies]`,JSON.stringify(r))),p&&s(`project[settings]`,JSON.stringify(p)),Object.entries(m).forEach(([o,l])=>{s(`project[files][${Ne(o)}]`,l)}
10);let d=document.createElement(`form`);return d.method=`POST`,d.setAttribute(`style`,`display:none!important;`),d.append(...i),d}function Pe(e,t){let n=ce(e);return n.action=D(`/run`,t),n.id=`sb_run`,`<!doctype html>
11<html>
12<head><title></title></head>
13<body>
14  ${n.outerHTML}
15  <script>document.getElementById('${n.id}').submit();<\/script>
16</body>
17</html>`}function Re(e,t){let n=ce(e);n.action=q(`/run`,t),n.target=F(t),document.body.appendChild(n),n.submit(),document.body.removeChild(n)}function I(e){return e?.contentWindow?(Oe(e)??new z(e)).pending:Promise.reject(`Provided element is not an iframe.`)}function Me(e,t){Re(e,t)}function Ce(e,t){let n=q(`/edit/${e}`,t),r=F(t);window.open(n,r)}function Le(e,t){let n=q(`/github/${e}`,t),r=F(t);window.open(n,r)}function $e(e,t,n){let r=U(e),m=Pe(t,n),p=document.createElement(`iframe`);return B(r,p,n),p.contentDocument?.write(m),I(p)}function ze(e,t,n){let r=U(e),m=document.createElement(`iframe`);return m.src=D(`/edit/${t}`,n),B(r,m,n),I(m)}function qe(e,t,n){let r=U(e),m=document.createElement(`iframe`);return m.src=D(`/github/${t}`,n),B(r,m,n),I(m)}var le={connect:I,embedGithubProject:qe,embedProject:$e,embedProjectId:ze,openGithubProject:Le,openProject:Me,openProjectId:Ce};var be=Vx(ue());var H={$schema:`./node_modules/@angular/cli/lib/config/schema.json`,cli:{analytics:`1e1de97b-a744-405a-8b5a-0397bb3d01ce`},newProjectRoot:`projects`,projects:{demo:{architect:{build:{builder:`@angular/build:application`,configurations:{development:{extractLicenses:!1,namedChunks:!0,optimization:!1,sourceMap:!0},production:{aot:!0,extractLicenses:!0,namedChunks:!1,optimization:!0,outputHashing:`all`,sourceMap:!1}},options:{browser:`src/main.ts`,polyfills:[],assets:[],index:`src/index.html`,outputPath:`dist/demo`,scripts:[],inlineStyleLanguage:`less`,styles:[`src/styles.css`],tsConfig:`tsconfig.json`}},serve:{builder:`@angular/build:dev-server`,configurations:{development:{buildTarget:`::development`},production:{buildTarget:`::production`}},defaultConfiguration:`development`}},prefix:`app`,projectType:`application`,root:``,schematics:{},sourceRoot:`src`}},version:1};var J=`import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
18import {
19  provideHttpClient,
20  withFetch,
21  withInterceptors,
22} from '@angular/common/http';
23import { provideStartup } from './startup.service';
24import {
25  zh_CN as delonLang,
26  AlainProvideLang,
27  provideAlain,
28} from '@delon/theme';
29import { AlainConfig } from '@delon/util/config';
30import { zh_CN as zorroLang } from 'ng-zorro-antd/i18n';
31import { zhCN as dateLang } from 'date-fns/locale';
32import ngLang from '@angular/common/locales/zh';
33import { NzConfig, provideNzConfig } from 'ng-zorro-antd/core/config';
34import { mockInterceptor, provideMockConfig } from '@delon/mock';
35import * as MOCKDATA from '../../_mock';
36import { withAutoCompleteWidget } from '@delon/form/widgets/autocomplete';
37import { withCascaderWidget } from '@delon/form/widgets/cascader';
38// import { withColorWidget } from '@delon/form/widgets/color';
39import { withMentionWidget } from '@delon/form/widgets/mention';
40import { withQrCodeWidget } from '@delon/form/widgets/qr-code';
41import { withRateWidget } from '@delon/form/widgets/rate';
42import { withSegmentedWidget } from '@delon/form/widgets/segmented';
43import { withSliderWidget } from '@delon/form/widgets/slider';
44import { withTagWidget } from '@delon/form/widgets/tag';
45import { withTimeWidget } from '@delon/form/widgets/time';
46import { withTransferWidget } from '@delon/form/widgets/transfer';
47import { withTreeSelectWidget } from '@delon/form/widgets/tree-select';
48import { withUploadWidget } from '@delon/form/widgets/upload';
49import { provideCellWidgets } from '@delon/abc/cell';
50import { provideSTWidgets } from '@delon/abc/st';
51import { provideSFConfig } from '@delon/form';
52import { provideReuseTabConfig } from '@delon/abc/reuse-tab';
53
54const defaultLang: AlainProvideLang = {
55  abbr: 'zh-CN',
56  ng: ngLang,
57  zorro: zorroLang,
58  date: dateLang,
59  delon: delonLang,
60};
61const alainConfig: AlainConfig = {
62  st: { ps: 3 },
63};
64const ngZorroConfig: NzConfig = {};
65
66export const appConfig: ApplicationConfig = {
67  providers: [
68    provideZonelessChangeDetection(),
69    provideHttpClient(withFetch(), withInterceptors([mockInterceptor])),
70    provideAlain({ config: alainConfig, defaultLang }),
71    provideNzConfig(ngZorroConfig),
72    provideMockConfig({ data: MOCKDATA }),
73    provideCellWidgets(),
74    provideSTWidgets(),
75    provideSFConfig({
76      widgets: [
77        withAutoCompleteWidget(),
78        withCascaderWidget(),
79        // withColorWidget(),
80        withMentionWidget(),
81        withQrCodeWidget(),
82        withRateWidget(),
83        withSegmentedWidget(),
84        withSliderWidget(),
85        withTagWidget(),
86        withTimeWidget(),
87        withTransferWidget(),
88        withTreeSelectWidget(),
89        withUploadWidget(),
90        // third
91        // withMonacoEditorWidget(),
92        // withTinymceWidget(),
93      ],
94    }),
95    provideReuseTabConfig(),
96    provideStartup(),
97  ],
98};
99`;var K=e=>`import { bootstrapApplication } from '@angular/platform-browser';
100
101import { ${e} } from './app/app';
102import { appConfig } from './app/app.config';
103
104bootstrapApplication(${e}, appConfig).catch((err) =>
105  console.error(err)
106);
107`;var me=`import { MockStatusError, MockRequest, r } from '@delon/mock';
108import type { NzSafeAny } from 'ng-zorro-antd/core/types';
109// import { faker } from '@faker-js/faker';
110
111export const USERS = {
112  // \u652F\u6301\u503C\u4E3A Object \u548C Array
113  'GET /users': (req: MockRequest) => {
114    const total = req.queryString.total || 100;
115    const res: NzSafeAny = {
116      list: [],
117      total
118    };
119    for (let i = 0; i < +req.queryString.ps; i++) {
120      res.list.push({
121        id: i + 1,
122        type: r(1, 3),
123        picture: {
124          thumbnail: \`https://randomuser.me/api/portraits/thumb/\${r(0, 1) === 0 ? 'men' : 'women'}/\${r(1, 50)}.jpg\`
125        },
126        name: {
127          last: \`last-\${r(1, 10)}\`,
128          first: \`first-\${r(10, 20)}\`
129        },
130        nat: ['CH', 'US', 'DE'][i % 3],
131        gender: ['male', 'female'][i % 2],
132        email: \`aaa\${r(1, 10)}@qq.com\`,
133        phone: \`phone-\${r(1000, 100000)}\`,
134        price: r(10, 10000000),
135        total: r(10, 10000000),
136        website: \`https://\${r(10, 10000000)}.com/\`,
137        disabled: r(1, 100) > 50,
138        registered: new Date()
139      });
140    }
141    return res;
142  },
143  'GET /user/check/': () => false,
144  'GET /user/check/:name': (req: MockRequest) => req.params.name === 'cipchk',
145  // GET POST \u53EF\u7701\u7565
146  // '/users/1': Mock.mock({ id: 1, 'rank|3': '\u2605\u2605\u2605' }),
147  // \u53D1\u9001 Status \u9519\u8BEF
148  '/500': () => {
149    throw new MockStatusError(500);
150  },
151  '/404': () => {
152    throw new MockStatusError(404);
153  },
154  '/user/:id': (req: MockRequest) => {
155    return { id: req.params.id, name: 'detail' };
156  },
157  '/user/:id/edit': (req: MockRequest) => {
158    return { id: req.params.id, name: 'edit' };
159  },
160  '/user/:id/upload': (req: MockRequest) => {
161    return { id: req.params.id, name: 'upload' };
162  }
163};`;var ge={name:`ng-alain`,description:``,tags:[`NG-ALAIN`],version:`0.0.0`,scripts:{ng:`ng`,start:`ng serve`,build:`ng build`,test:`ng test`,lint:`ng lint`,e2e:`ng e2e`},private:!0,dependencies:{"@angular/common":`^21.0.0`,"@angular/compiler":`^21.0.0`,"@angular/core":`^21.0.0`,"@angular/forms":`^21.0.0`,"@angular/platform-browser":`^21.0.0`,"@angular/router":`^21.0.0`,rxjs:`~7.8.0`,tslib:`^2.3.0`,"@delon/theme":`~17.0.3`,"@delon/abc":`~17.0.3`,"@delon/chart":`~17.0.3`,"@delon/acl":`~17.0.3`,"@delon/auth":`~17.0.3`,"@delon/cache":`~17.0.3`,"@delon/mock":`~17.0.3`,"@delon/form":`~17.0.3`,"@delon/util":`~17.0.3`,"ng-zorro-antd":`^17.1.0`,ajv:`^8.12.0`,"ajv-formats":`^2.1.1`,"date-fns":`^2.16.1`,"@angular/cdk":`^17.0.0`}};var fe=`# Angular CLI Template
164
165This template was generated with [Angular CLI](https://github.com/angular/angular-cli).
166
167## Running \`ng\` commands
168
169On the terminal on your bottom right there is a + you can click to open a new tab in it you can write any commands you want with:
170
171\`\`\`
172npm ng <your command>
173npm ng g ng-alain:module news
174npm ng g ng-alain:list list -m=news
175\`\`\`
176
177## QA
178
179**502: Bad Gateway**
180
181The solution is to click refresh on the Browser panel when the terminal displays \`\u2714 Compiled successfully.\`
182`;var V={"sandbox.config.json":JSON.stringify({template:`node`},null,2),".codesandbox/tasks.json":`{
183    // These tasks will run in order when initializing your CodeSandbox project.
184    "setupTasks": [
185      {
186        "name": "Install Dependencies",
187        "command": "npm install"
188      }
189    ],
190
191    // These tasks can be run from CodeSandbox. Running one will open a log in the app.
192    "tasks": {
193      "start": {
194        "name": "start",
195        "command": "npm run start",
196        "runAtStart": true,
197        "preview": {
198          "port": 4200
199        }
200      },
201      "build": {
202        "name": "build",
203        "command": "ng build",
204        "runAtStart": false
205      },
206      "test": {
207        "name": "test",
208        "command": "ng test",
209        "runAtStart": false
210      },
211      "help": {
212        "name": "help",
213        "command": "ng help",
214        "runAtStart": false
215      }
216    }
217  }
218  `,".codesandbox/template.json":`{
219    "title": "Angular",
220    "description": "The quickest way to get started with Angular!",
221    "iconUrl": "https://github.com/codesandbox/sandbox-templates/blob/main/angular/.codesandbox/icon.png?raw=true",
222    "tags": [
223      "angular",
224      "javascript",
225      "typescript"
226    ],
227    "published": true
228  }`,".devcontainer/devcontainer.json":`{
229    "name": "Devcontainer",
230    "image": "ghcr.io/codesandbox/devcontainers/typescript-node:latest"
231  }
232  `,".vscode/extensions.json":`{
233    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
234    "recommendations": ["cipchk.ng-alain-extension-pack"]
235  }
236  `,".vscode/launch.json":`{
237    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
238    "version": "0.2.0",
239    "configurations": [
240      {
241        "name": "ng serve",
242        "type": "chrome",
243        "request": "launch",
244        "preLaunchTask": "npm: start",
245        "url": "http://localhost:4200/"
246      },
247      {
248        "name": "ng test",
249        "type": "chrome",
250        "request": "launch",
251        "preLaunchTask": "npm: test",
252        "url": "http://localhost:9876/debug.html"
253      }
254    ]
255  }
256  `,".vscode/tasks.json":`{
257    // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
258    "version": "2.0.0",
259    "tasks": [
260      {
261        "type": "npm",
262        "script": "start",
263        "isBackground": true,
264        "problemMatcher": {
265          "owner": "typescript",
266          "pattern": "$tsc",
267          "background": {
268            "activeOnStart": true,
269            "beginsPattern": {
270              "regexp": "(.*?)"
271            },
272            "endsPattern": {
273              "regexp": "bundle generation complete"
274            }
275          }
276        }
277      },
278      {
279        "type": "npm",
280        "script": "test",
281        "isBackground": true,
282        "problemMatcher": {
283          "owner": "typescript",
284          "pattern": "$tsc",
285          "background": {
286            "activeOnStart": true,
287            "beginsPattern": {
288              "regexp": "(.*?)"
289            },
290            "endsPattern": {
291              "regexp": "bundle generation complete"
292            }
293          }
294        }
295      }
296    ]
297  }
298  `};var he=e=>`import { APP_INITIALIZER, Injectable, inject, Provider } from '@angular/core';
299import { LazyService } from '@delon/util/other';
300import { VERSION as VERSION_NG } from '@angular/core';
301import { VERSION as VERSION_ALAIN } from '@delon/theme';
302import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
303
304export function provideStartup(): Provider[] {
305  return [
306    StartupService,
307    {
308      provide: APP_INITIALIZER,
309      useFactory: (startupService: StartupService) => () => startupService.load(),
310      deps: [StartupService],
311      multi: true
312    }
313  ];
314}
315
316@Injectable()
317export class StartupService {
318  private lazy = inject(LazyService);
319
320  load(): Promise<any> {
321    const el = document.querySelector('#VERSION');
322    if (el != null) {
323      el.innerHTML = \`
324      VERSIONS: angular(\${VERSION_NG.full}), ng-zorro-antd(\${VERSION_ZORRO.full}), @delon(\${VERSION_ALAIN.full})
325      \`;
326    }
327
328    return new Promise((resolve, reject) => {
329      this.lazy.load([
330        'https://cdnjs.cloudflare.com/ajax/libs/ajv/${e.ajvVersion}/ajv.min.js',
331      ])
332        .then(() => resolve(null));
333    });
334  }
335}
336`;var Z={compileOnSave:!1,compilerOptions:{strict:!0,noImplicitOverride:!0,noPropertyAccessFromIndexSignature:!0,noImplicitReturns:!0,noFallthroughCasesInSwitch:!0,skipLibCheck:!0,isolatedModules:!0,importHelpers:!0,target:`ES2022`,module:`preserve`},angularCompilerOptions:{enableI18nLegacyMessageIdFormat:!1,strictInjectionParameters:!0,strictInputAccessModifiers:!0,typeCheckHostBindings:!0,strictTemplates:!0}};var x=Vx(ye());var we=class e{document=h(z$2);get themePath(){return`node_modules/@delon/theme/${Bn$2()}.css`}
336genPackage(){let t=x.default.dependencies[`@angular/core`],n=ge;n.devDependencies={"@angular/build":`^21.0.0`,"@angular/cli":`^21.0.0`,"@angular/compiler-cli":`^21.0.0`,"@types/node":`^21.19.1`,typescript:`~5.8.2`,"ng-alain":`^21.0.0`};let r=g$1(g$1({},x.default.dependencies),x.default.devDependencies);return[`dependencies`,`devDependencies`].forEach(m=>{Object.keys(n[m]||{}).forEach(p=>{n[m][p]=p.startsWith(`@delon`)||p===`ng-alain`?`${x.default.version}`:r[p]||`*`})}),n.dependencies[`@angular/core`]=t,n}get genStartupService(){return he({ajvVersion:x.default.dependencies.ajv.substring(1)})}get genMock(){return{"_mock/user.ts":me,"_mock/index.ts":`export * from './user';`}}parseCode(t){let n=``,r=``,m=/selector:[ ]?(['|"|`])([^'"`]+)/g.exec(t);m&&(n=m[2]);let p=/export class ([^ {]+)/g.exec(t);return p&&(r=p[1]),{selector:n,componentName:r,html:[`<base href="/">`,`<${n}>loading</${n}>`,`<div id="VERSION" style="position: fixed; bottom: 8px; right: 8px; z-index: 8888;font-size: 11px; color: #aaa;"></div>`].join(`
337`)}}attachStandalone(t){return t}async openOnStackBlitz(t,n){n=this.attachStandalone(n);let r=this.parseCode(n),m=wL(H);m.projects.demo.architect.build.options.styles.splice(0,0,this.themePath);let p=this.genPackage();p.description=t;let i=g$1({"angular.json":`${JSON.stringify(m,null,2)}`,"tsconfig.json":`${JSON.stringify(Z,null,2)}`,"src/index.html":r.html,"src/main.ts":K(r.componentName),"src/app/app.ts":n,"src/app/app.config.ts":J,"src/app/startup.service.ts":this.genStartupService,"src/styles.css":``},this.genMock);i[`package.json`]=`${JSON.stringify(p,null,2)}`;let s={title:`NG-ALAIN`,description:`NG-ZORRO  admin panel front-end framework`,tags:[`ng-alain`,`@delon`,`NG-ZORRO`,`ng-zorro-antd`,`Ant Design`,`Angular`,`ng`],files:i,template:`node`};console.log(s),le.openProject(s,{openFile:`src/app/app.config.ts,src/app/app.ts`})}async openOnCodeSandbox(t,n){n=this.attachStandalone(n);let r=this.parseCode(n),m=this.genMock,p=wL(H);p.projects.demo.architect.build.options.styles.splice(0,0,this.themePath);let i=this.genPackage();i.description=t;let s={"package.json":{content:JSON.stringify(i,null,2),isBinary:!1},"angular.json":{content:`${JSON.stringify(p,null,2)}`,isBinary:!1},"tsconfig.json":{content:`${JSON.stringify(Z,null,2)}`,isBinary:!1},"src/index.html":{content:r.html,isBinary:!1},"src/main.ts":{content:K(r.componentName),isBinary:!1},"src/app/app.config.ts":{content:J,isBinary:!1},"src/app/app.ts":{content:n,isBinary:!1},"src/app/startup.service.ts":{content:this.genStartupService,isBinary:!1},"src/styles.css":{content:``,isBinary:!1},"_mock/user.ts":{content:m[`_mock/user.ts`],isBinary:!1},"_mock/index.ts":{content:m[`_mock/index.ts`],isBinary:!1}};s[`README.md`]={content:fe,isBinary:!1},Object.keys(V).forEach(h=>{s[h]={content:V[h],isBinary:!1}});let d=(0,be.getParameters)({files:s,environment:`server`}),o=this.document.createElement(`form`),l=this.document.createElement(`input`);o.method=`POST`,o.action=`https://codesandbox.io/api/v1/sandboxes/define`,o.target=`_blank`,l.name=`parameters`,l.value=d,o.appendChild(l),this.document.body.append(o),o.submit(),this.document.body.removeChild(o)}static ɵfac=function(n){return new(n||e)};static ɵprov=w({token:e,factory:e.ɵfac,providedIn:`root`})};var N=class e{menu=h(ln$4);path=pe$1.required();full=Fe$1(()=>`${this.menu.group()?.github}/edit/master/${this.path()}`);static ɵfac=function(t){return new(t||e)};static ɵcmp=Se$1({type:e,selectors:[[`edit-button`]],inputs:{path:[1,`path`]},decls:3,vars:4,consts:[[`target`,`_blank`,`nz-tooltip`,``,1,`edit-button`,3,`nzTooltipTitle`],[`nzType`,`edit`]],template:function(t,T){t&1&&(oe$2(0,`a`,0),vi$1(1,`i18n`),pt$1(2,`nz-icon`,1),he$1()),t&2&&(ie$1(`nzTooltipTitle`,yi$2(1,2,`app.content.edit-page`)),$t(`href`,T.full(),J9))},dependencies:[xr$2,Gt$2,Xs$1,Ys,o5],encapsulation:2})};var $=[`*`];var ee=o=>({background:o});var te=o=>({height:o});function oe(o,c){if(o&1&&(oe$2(0,`div`,10),an$3(1),pt$1(2,`edit-button`,11),he$1(),pt$1(3,`div`,12)),o&2){let i=F$2(),e=pO(0);A(),Io$1(` `,i.title(),` `),A(),ie$1(`path`,e.path),A(),ie$1(`innerHTML`,i.summary(),Sa$1)}}var X=class o{i18n=h(Kr$3);msg=h(lu$1);codeSrv=h(we);i18nChange=Sw(this.i18n.change);copied=G$1(!1);theme=Bn$2;item=pe$1.required();type=pe$1(`default`);expand=Jne(!1);title=Fe$1(()=>(this.i18nChange(),this.i18n.get(this.item().title)));summary=Fe$1(()=>(this.i18nChange(),this.i18n.get(this.item().summary)));handle(){this.expand.set(!this.expand())}openOnlineIDE(c=`StackBlitz`){c===`StackBlitz`?this.codeSrv.openOnStackBlitz(this.title(),this.item().code):this.codeSrv.openOnCodeSandbox(this.title(),this.item().code)}onCopy(c){PMe(c).then(()=>{this.msg.success(this.i18n.fanyi(`app.demo.copied`)),this.copied.set(!0),setTimeout(()=>{this.copied.set(!1)},1e3)})}static ɵfac=function(i){return new(i||o)};static ɵcmp=Se$1({type:o,selectors:[[`code-box`]],hostAttrs:[1,`code-box`],hostVars:2,hostBindings:function(i,e){i&2&&Ze(`expand`,e.expand())},inputs:{item:[1,`item`],type:[1,`type`],expand:[1,`expand`]},outputs:{expand:`expandChange`},ngContentSelectors:$,decls:19,vars:34,consts:[[1,`code-box-demo`],[1,`code-box-meta`,`markdown`],[1,`code-box-actions`],[`nz-tooltip`,``,`nzType`,`thu
337nderbolt`,`nzTheme`,`fill`,1,`code-box-code-icon`,3,`click`],[`nz-tooltip`,``,1,`code-box-code-icon`,3,`click`,`nzTooltipTitle`,`nzType`],[`nz-tooltip`,``,1,`code-expand-icon`,3,`nzTooltipTitle`],[`alt`,`expand code`,3,`click`,`src`],[1,`highlight-wrapper`],[1,`highlight`],[1,`hljs`,`language-ts`],[1,`code-box-title`],[3,`path`],[1,`code-box-description`,3,`innerHTML`]],template:function(i,e){if(i&1){let p=on();yn$1(),By(0),oe$2(1,`section`,0)(2,`div`)(3,`div`),Wt$1(4),he$1()()(),oe$2(5,`section`,1),ve$1(6,oe,4,3),oe$2(7,`div`,2)(8,`nz-icon`,3),je$1(`click`,function(){return e.openOnlineIDE()}),he$1(),oe$2(9,`nz-icon`,4),vi$1(10,`i18n`),je$1(`click`,function(){gt$1(p);let a=pO(0);return vt(e.onCopy(a.code))}),he$1(),oe$2(11,`i`,5)(12,`img`,6),je$1(`click`,function(){return e.handle()}),he$1(),oe$2(13,`img`,6),je$1(`click`,function(){return e.handle()}),he$1()()()(),oe$2(14,`section`,7)(15,`div`,8)(16,`pre`,9)(17,`code`),an$3(18),he$1()()()()}if(i&2){let p=fO(e.item());A(),ko$1(ff(30,ee,p.bg)),A(),ko$1(ff(32,te,p.browser+`px`)),Ze(`browser-mockup`,p.browser),A(),Ze(`browser-scroll`,p.browser),A(3),ye$1(e.type()==="default"?6:-1);let l=e.copied(),a=e.expand();A(3),Ze(`ant-tooltip-open`,l),ie$1(`nzTooltipTitle`,yi$2(10,28,`app.demo.copy`))(`nzType`,l?`check`:`snippets`),A(2),ie$1(`nzTooltipTitle`,a?`Hide Code`:`Show Code`),A(),Ze(`code-expand-icon-hide`,a)(`code-expand-icon-show`,!a),ie$1(`src`,e.theme()===`dark`?`https://gw.alipayobjects.com/zos/antfincdn/btT3qDZn1U/wSAkBuJFbdxsosKKpqyq.svg`:`https://gw.alipayobjects.com/zos/rmsportal/wSAkBuJFbdxsosKKpqyq.svg`,J9),A(),Ze(`code-expand-icon-show`,a)(`code-expand-icon-hide`,!a),ie$1(`src`,e.theme()===`dark`?`https://gw.alipayobjects.com/zos/antfincdn/CjZPwcKUG3/OpROPHYqWmrMDBFMZtKF.svg`:`https://gw.alipayobjects.com/zos/rmsportal/OpROPHYqWmrMDBFMZtKF.svg`,J9),A(),Ze(`highlight-wrapper-expand`,a),A(4),vr$3(p.code)}},dependencies:[Xs$1,Ys,xr$2,Gt$2,N,o5],encapsulation:2})};function Oc(n,i,e){let[t,o]=ht$1(e?.in,n,i);return+Et(t,e)==+Et(o,e)}var Ac=new Zi(`22.1.1`);var Fc={slogan:`A front-end solution based on Antd`,"app.header.search":`Search in ng-alain.com`,"app.home.preview":`Preview`,"app.home.start":`Get started`,"app.home.slogan":`Out-of-box UI solution for enterprise applications, let developers focu
337s on business.`,"app.home.feature":`Feature`,"app.home.feature.antd":`Built on the design principles developed by Ant Design`,"app.home.feature.zorro":`Basic component based on NG-ZORRO`,"app.home.feature.delon":`A set of higher-order components, chart, authentication, ACL, cache, mock, testing, etc.`,"app.home.feature.out-of-box":`Out of box`,"app.home.feature.out-of-box.desc":`A complete Angular scaffold for production environments`,"app.home.feature.less":`Simple customization`,"app.home.feature.less.desc":`100 kinds of LESS parameters to customize brand vision`,"app.home.feature.rep":`Responsive`,"app.home.feature.rep.desc":`Support different devices`,"app.home.feature.tool":`Tools`,"app.home.feature.tool.desc":`Includes NG-ALAIN Schematics, VSCODE extension`,"app.home.feature.demo":`Example page`,"app.home.feature.demo.desc":`A lot of example pages can be referenced or used`,"app.home.theme":`Business Theme`,"app.home.theme.pro":`Pro`,"app.home.theme.pro.desc":`An enterprise-class UI design language for web applications`,"app.home.theme.ms":`Microservices`,"app.home.theme.ms.desc":`For microservice development style`,"app.home.theme.yun":`Yun`,"app.home.theme.yun.desc":`Let users focus more on business`,"app.home.theme.data":`Data`,"app.home.theme.data.desc":`Mainly dashboard and large screen data view`,"app.header.menu.home":`Home`,"app.header.menu.docs":`Docs`,"app.header.menu.components":`Components`,"app.header.menu.delon":`Delon Library`,"app.header.menu.auth":`Authentication`,"app.header.menu.acl":`Access Control List`,"app.header.menu.cache":`Cache`,"app.header.menu.chart":`Chart`,"app.header.menu.mock":`Mock`,"app.header.menu.util":`Utils`,"app.header.menu.form":`Dynamic Form`,"app.header.menu.theme":`Theme System`,"app.header.menu.form.validator":`Online Validator`,"app.header.menu.cli":`Cli`,"app.header.menu.tool":`Tools`,"app.header.menu.upgrade":`HTML Upgrade Tool`,"app.header.menu.themes":`Business Theme`,"app.header.lang":`中文`,"app.footer.resources":`Resources`,"app.footer.angular":`中文网`,"app.footer.antd":`ANTD for Angular`,"app.footer.cli":`Scaffold`,"app.footer.antv":`AntV`,"app.footer.community":`Community`,"app.footer.change-log":`Change Log`,"app.footer.faq":`FAQ`,"app.footer.issues":`Issues`,"app.footer.issue-help":`Bug Report`,"app.footer.qqgroup":`QQ Group`,"app.footer.qqgroup.full":`(Full)`,"app.footer.primary-color-changed":`Change primary color successfully!`,"app.content.copy-import-module":`Copy import module code:`,"app.content.edit-page":`Edit this page on GitHub!`,"app.content.edit-demo":`Edit this demo on GitHub!`,"app.content.link.copied":`Copy paragraph link successfully!`,"app.component.examples":`Examples`,"app.component.refer.title":`Usage:`,"app.component.refer.desc":`Learning more to visit: `,"app.component.refer.link":`Using ABC Components Alone`,"app.component.config.title":`General Configuration`,"app.demo.copy":`Copy code`,"app.demo.copied":`Copied!`,"app.demo.code-sandbox":`Edit On CodeSandbox`,"app.demo.code-sandbox-cli":`Using Angular Cli mode`,"app.demo.stackblitz":`Edit On StackBlitz`,"app.theme-btn.default":`Default Theme`,"app.theme-btn.dark":`Dark Theme`,"app.theme-btn.compact":`Compact Theme`,"sf.name":`Name`,"sf.description":`This is description`};var Vc={slogan:`一个基于 Antd 中后台前端解决方案`,"app.header.search":`在 ng-alain.com 中搜索`,"app.home.preview":`预览`,"app.home.start":`开始使用`,"app.home.slogan":`一个基于 Antd 中后台前端解决方案,提供更多通用性业务模块,让开发者更加专注于业务。`,"app.home.feature":`特征`,"app.home.feature.antd":`符合 Ant Design 设计价值观`,"app.home.feature.zorro":`丰富的几十种基础组件`,"app.home.feature.delon":`一组更高阶的业务组件、图表、认证、授权、缓存、Mock、测试等`,"app.home.feature.out-of-box":`开箱即用`,"app.home.feature.out-of-box.desc":`一个完整、可直接用于生产环境的Angular脚手架`,"app.home.feature.less":`简单定制`,"app.home.feature.less.desc":`百种LESS参数定制品牌视觉`,"app.home.feature.rep":`响应式`,"a
337pp.home.feature.rep.desc":`支持不同设备使用`,"app.home.feature.tool":`工具支持`,"app.home.feature.tool.desc":`包含 NG-ALAIN Schematics 、VSCODE插件`,"app.home.feature.demo":`示例页`,"app.home.feature.demo.desc":`大量示例页可直接参考与使用`,"app.home.theme":`商业主题`,"app.home.theme.pro":`Pro`,"app.home.theme.pro.desc":`提炼自企业级中后台产品的交互语言和视觉风格`,"app.home.theme.ms":`微服务`,"app.home.theme.ms.desc":`面向微服务开发风格的主题`,"app.home.theme.yun":`云`,"app.home.theme.yun.desc":`将功能细节化让用户更聚焦业务`,"app.home.theme.data":`数据`,"app.home.theme.data.desc":`以仪表盘、大屏展示为主`,"app.header.menu.home":`首页`,"app.header.menu.docs":`文档`,"app.header.menu.components":`组件`,"app.header.menu.delon":`Delon库`,"app.header.menu.auth":`用户认证`,"app.header.menu.acl":`访问控制列表`,"app.header.menu.cache":`缓存`,"app.header.menu.chart":`图表`,"app.header.menu.mock":`Mock模拟数据`,"app.header.menu.util":`工具集`,"app.header.menu.form":`动态表单`,"app.header.menu.theme":`主题系统`,"app.header.menu.form.validator":`在线校验器`,"app.header.menu.cli":`Cli`,"app.header.menu.tool":`工具`,"app.header.menu.upgrade":`HTML模板升级工具`,"app.header.menu.themes":`商业主题`,"app.header.lang":`English`,"app.footer.resources":`相关资源`,"app.footer.angular":`中文网`,"app.footer.antd":`ANTD Angular版本`,"app.footer.cli":`脚手架`,"app.footer.antv":`数据可视化`,"app.footer.community":`社区`,"app.footer.change-log":`更新记录`,"app.footer.faq":`常见问题`,"app.footer.issues":`讨论列表`,"app.footer.issue-help":`报告 Bug`,"app.footer.qqgroup":`QQ群`,"app.footer.qqgroup.full":`(满)`,"app.footer.primary-color-changed":`修改主题色成功!`,"app.content.copy-import-module":`复制导入模块代码:`,"app.content.edit-page":`在 Github 上编辑此页!`,"app.content.edit-demo":`在 Github 上编辑此示例!`,"app.content.link.copied":`复制段落链接成功!`,"app.component.examples":`代码演示`,"app.component.refer.title":`引用方式:`,"app.component.refer.desc":`详细使用方式请参照:`,"app.component.refer.link":`独立使用 abc 组件`,"app.component.config.title":`支持通用配置`,"app.demo.copy":`复制代码`,"app.demo.copied":`复制成功`,"app.demo.code-sandbox":`在 CodeSandbox 上打开`,"app.demo.code-sandbox-cli":`使用Angular Cli模式`,"app.demo.stackblitz":`在 StackBlitz 中打开`,"app.theme-btn.default":`默认主题`,"app.theme-btn.dark":`暗黑主题`,"app.theme-btn.compact":`紧凑主题`,"sf.name":`名称`,"sf.description":`这是一段描述`};var Uo=class n extends Ap{zorroI18n=h(sV);delonI18n=h(s4);platform=h(Me$3);_langs=[{code:`en-US`,text:`English`},{code:`zh-CN`,text:`中文`}];constructor(){super();let i=this.getBrowserLang()||this.defaultLang;this.use(i,{})}getBrowserLang(){if(!this.platform.isBrowser)return;if(localStorage.lang)return localStorage.lang;let i=window.navigator;if(typeof window>`u`||typeof i>`u`)return;let e=i.languages?i.languages[0]:null;return e=e||i.language||i.browserLanguage||i.userLanguage,e.indexOf(`-`)!==-1&&(e=e.split(`-`)[0]),e.indexOf(`_`)!==-1&&(e=e.split(`_`)[0]),this.getFullLang(e)}use(i,e,t){this.platform.isBrowser&&(localStorage.lang=i),this._currentLang=this.getFullLang(i);let o=this.getFullLang(i)===`en-US`;this._data=o?Fc:Vc,this.zorroI18n.setLocale(o?iV:aV),this.delonI18n.setLocale(o?GV:Ri),t!==!1&&this._change$.next(i)}getLangs(){return this._langs}get defaultLang(){return`zh-CN`}get zone(){return this._currentLang.split(`-`)[0]}get langs(){return[`zh-CN`,`en-US`]}get(i){return i==null?``:typeof i==`string`?i:i[this.currentLang]||i[this.defaultLang]||``}getFullLang(i){let e=this._langs.filter(t=>t.code===i||t.code.split(`-`)[0]===i);return e.length>0?e[0].code:this.defaultLang}getRealUrl(i){let e=i.split(`#`)[0].split(`?`)[0].split(`/`);return e.splice(-1),e.join(`/`)}static ɵfac=function(e){return new(e||n)};static ɵprov=w({token:n,factory:n.ɵfac,providedIn:`root`})};var Pc=[e2e,CM,t2e,n2e,r2e,o2e,_M,SM,i2e,a2e,s2e,c2e,h2e,f2e,NM,p2e,FM,v2e,HM,y2e,WM,C2e,w2e,i5,M2e,D2e,_2e,S2e,x2e,T2e,E2e];function Lc(){return[$o,Cd$1(()=>(i=>()=>i.load())(h($o))())]}var $o=class n{injector=h(U$2);doc=h(z$2);platform=h(Me$3);lazy=h(Dw);iconSrv=h(o3);constructor(){this.iconSrv.addIcon(...Pc)}load(){let i=this.doc.querySelector(`#_slow`);return new Promise(e=>{i&&i.remove(),this.injector.get(iM).suffix=`NG-ALAIN`,this.platform.isBrowser&&setTimeout(()=>this.lazyLoad(),100),e()})}lazyLoad(){let i=this.doc.defaultView;i.hj=i.hj||function(){(i.hj.q=i.hj.q||[]).push(arguments)},i._hjSettings={hjid:920546,hjsv:6},Promise.all([this.lazy.loadScript(`./assets/highlight.pack.js`),this.lazy.loadScript(`https://www.googletagmanager.com/gtag/js?i
337d=UA-120202005-1`)]).then(()=>{let e=i.dataLayer||[];e.push([`js`,new Date]),e.push([`config`,`UA-120202005-1`])})}static ɵfac=function(e){return new(e||n)};static ɵprov=w({token:n,factory:n.ɵfac})};var jo=class n{router=h(qt$3);breakpointObserver=h(Xf);dh=h(rm$1);title=h(iM);menu=h(ln$4);alainVersion=fB.full;zorroVersion=Ac.full;mobile=Hn$3;constructor(){this.breakpointObserver.observe(`only screen and (max-width: 1200px)`).subscribe(e=>{Hn$3.set(e.matches)});let i=lse();this.router.events.subscribe(e=>{e instanceof wn$1&&(i(),this.dh.closeAll(),this.title.setTitle(this.menu.getTitle()))})}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`app-root`]],hostVars:4,hostBindings:function(e,t){e&2&&($t(`ng-alain-version`,t.alainVersion)(`ng-zorro-version`,t.zorroVersion),Ze(`mobile`,t.mobile()))},decls:1,vars:0,template:function(e,t){e&1&&pt$1(0,`router-outlet`)},dependencies:[Dp],encapsulation:2})};function cp(n){return 5}var Rc=[`zh`,[[`上午`,`下午`]],void 0,[[`日`,`一`,`二`,`三`,`四`,`五`,`六`],[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`]],void 0,[[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]],void 0,[[`公元前`,`公元`]],1,[6,0],[`y/M/d`,`y年M月d日`,void 0,`y年M月d日EEEE`],[`HH:mm`,`HH:mm:ss`,`z HH:mm:ss`,`zzzz HH:mm:ss`],[`{1} {0}`,void 0,void 0,void 0],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`CNY`,`¥`,`人民币`,{AUD:[`AU$`,`$`],BYN:[void 0,`р.`],CNY:[`¥`],ILR:[`ILS`],JPY:[`JP¥`,`¥`],PHP:[void 0,`₱`],RUR:[void 0,`р.`],TWD:[`NT$`],USD:[`US$`,`$`],XXX:[]},`ltr`,cp];var jr=`Service workers are disabled or not supported by this browser`;var gi=class{serviceWorker;worker;registration;events;constructor(i,e){if(this.serviceWorker=i,!i)this.worker=this.events=this.registration=new T$1(t=>t.error(new M(5601,!1)));else{let t=null,o=new C$1;this.worker=new T$1(g=>(t!==null&&g.next(t),o.subscribe(x=>g.next(x))));let r=()=>{let{controller:g}=i;g!==null&&(t=g,o.next(t))};i.addEventListener(`controllerchange`,r),r(),this.registration=this.worker.pipe(Ve(()=>i.getRegistration().then(g=>{if(!g)throw new M(5601,!1);return g})));let a=new C$1;this.events=a.asObservable();let d=g=>{let{data:x}=g;x?.type&&a.next(x)};i.addEventListener(`message`,d),e?.get(xn$2,null,{optional:!0})?.onDestroy(()=>{i.removeEventListener(`controllerchange`,r),i.removeEventListener(`message`,d)})}}postMessage(i,e){return new Promise(t=>{this.worker.pipe($e$2(1)).subscribe(o=>{o.postMessage(g$1({action:i},e)),t()})})}postMessageWithOperation(i,e,t){let o=this.waitForOperationCompleted(t),r=this.postMessage(i,e);return Promise.all([r,o]).then(([,a])=>a)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(i){let e;return typeof i==`string`?e=t=>t.type===i:e=t=>i.includes(t.type),this.events.pipe(ne(e))}nextEventOfType(i){return this.eventsOfType(i).pipe($e$2(1))}waitForOperationCompleted(i){return new Promise((e,t)=>{this.eventsOfType(`OPERATION_COMPLETED`).pipe(ne(o=>o.nonce===i),$e$2(1),P$2(o=>{if(o.result!==void 0)return o.result;throw new Error(o.error)})).subscribe({next:e,error:t})})}get isEnabled(){return!!this.serviceWorker}};var Wc=(()=>{class n{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new C$1;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=_T,this.notificationClicks=_T,this.notificationCloses=_T,this.pushSubscriptionChanges=_T,this.subscription=_T;return}this.messages=this.sw.eventsOfType(`PUSH`).pipe(P$2(o=>o.data)),this.notificationClicks=this.sw.eventsOfType(`NOTIFICATION_CLICK`).pipe(P$2(o=>o.data)),this.notificationCloses=this.sw.eventsOfType(`NOTIFICATION_CLOSE`).pipe(P$2(o=>o.data)),this.pushSubscriptionChanges=this.sw.eventsOfType(`PUSH_SUBSCRIPTION_CHANGE`).pipe(P$2(o=>o.data)),this.pushManager=this.sw.registration.pipe(P$2(o=>o.pushManager));let t=this.pushManager.pipe(Ve(o=>o.getSubscription()));this.subscription=new T$1(o=>{let r=t.subscribe(o),a=this.subscriptionChanges.subscribe(o);return()=>{r.unsubscribe(),a.unsubscribe()}})}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(jr));let t={userVisibleOnly:!0},o=this.decodeBase64(e.serverPublicKey.replace(/_/g,`/`).replace(/-/g,`+`)),r=new 
337Uint8Array(new ArrayBuffer(o.length));for(let a=0;a<o.length;a++)r[a]=o.charCodeAt(a);return t.applicationServerKey=r,new Promise((a,d)=>{this.pushManager.pipe(Ve(m=>m.subscribe(t)),$e$2(1)).subscribe({next:m=>{this.subscriptionChanges.next(m),a(m)},error:d})})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));let e=t=>{if(t===null)throw new M(5602,!1);return t.unsubscribe().then(o=>{if(!o)throw new M(5603,!1);this.subscriptionChanges.next(null)})};return new Promise((t,o)=>{this.subscription.pipe($e$2(1),Ve(e)).subscribe({next:t,error:o})})}decodeBase64(e){return atob(e)}static ɵfac=function(t){return new(t||n)(V$2(gi))};static ɵprov=w({token:n,factory:n.ɵfac})}return n})();var Hc=(()=>{class n{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}ongoingCheckForUpdate=null;constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=_T,this.unrecoverable=_T;return}this.versionUpdates=this.sw.eventsOfType([`VERSION_DETECTED`,`VERSION_INSTALLATION_FAILED`,`VERSION_READY`,`NO_NEW_VERSION_DETECTED`]),this.unrecoverable=this.sw.eventsOfType(`UNRECOVERABLE_STATE`)}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(jr));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let e=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation(`CHECK_FOR_UPDATES`,{nonce:e},e).finally(()=>{this.ongoingCheckForUpdate=null}),this.ongoingCheckForUpdate}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new M(5601,!1));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation(`ACTIVATE_UPDATE`,{nonce:e},e)}static ɵfac=function(t){return new(t||n)(V$2(gi))};static ɵprov=w({token:n,factory:n.ɵfac})}return n})();var Uc=new b$1(``);function dp(){let n=h(Ui);if(!(`serviceWorker`in navigator&&n.enabled!==!1))return;let i=h(Uc),e=h(B$2),t=h(xn$2);e.runOutsideAngular(()=>{let o=navigator.serviceWorker,r=()=>o.controller?.postMessage({action:`INITIALIZE`});o.addEventListener(`controllerchange`,r),t.onDestroy(()=>{o.removeEventListener(`controllerchange`,r)})}),e.runOutsideAngular(()=>{let o,{registrationStrategy:r}=n;if(typeof r==`function`)o=new Promise(a=>r().subscribe(()=>a()));else{let[a,...d]=(r||`registerWhenStable:30000`).split(`:`);switch(a){case`registerImmediately`:o=Promise.resolve();break;case`registerWithDelay`:o=Bc(+d[0]||0);break;case`registerWhenStable`:o=Promise.race([t.whenStable(),Bc(+d[0])]);break;default:throw new M(5600,!1)}}o.then(()=>{t.destroyed||navigator.serviceWorker.register(i,{scope:n.scope,updateViaCache:n.updateViaCache,type:n.type}).catch(a=>console.error(jn$1(5604,!1)))})})}function Bc(n){return new Promise(i=>setTimeout(i,n))}function pp(){let n=h(Ui),i=h(U$2);return new gi(n.enabled!==!1?navigator.serviceWorker:void 0,i)}var Ui=class{enabled;updateViaCache;type;scope;registrationStrategy};function up(n,i={}){return et$1([Wc,Hc,{provide:Uc,useValue:n},{provide:Ui,useValue:i},{provide:gi,useFactory:pp},Cd$1(dp)])}var $c=(()=>{class n{static register(e,t={}){return{ngModule:n,providers:[up(e,t)]}}static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({providers:[Wc,Hc]})}return n})();var mp={lessThanXSeconds:{one:`不到 1 秒`,other:`不到 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分钟`,lessThanXMinutes:{one:`不到 1 分钟`,other:`不到 {{count}} 分钟`},xMinutes:{one:`1 分钟`,other:`{{count}} 分钟`},xHours:{one:`1 小时`,other:`{{count}} 小时`},aboutXHours:{one:`大约 1 小时`,other:`大约 {{count}} 小时`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个星期`,other:`大约 {{count}} 个星期`},xWeeks:{one:`1 个星期`,other:`{{count}} 个星期`},aboutXMonths:{one:`大约 1 个月`,other:`大约 {{count}} 个月`},xMonths:{one:`1 个月`,other:`{{count}} 个月`},aboutXYears:{one:`大约 1 年`,other:`大约 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超过 1 年`,other:`超过 {{count}} 年`},almostXYears:{one:`将近 1 年`,other:`将近 {{count}} 年`}};var jc=(n,i,e)=>{let t,o=mp[n];return typeof o==`string`?t=o:i===1?t=o.one:t=o.other.replace(`{{count}}`,String(i)),e?.addSuffix?e.comparison&&e.comparison>0?t+`内`:t+`前`:t};var Kc={date:s3({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:s3({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:s3({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function Yc(n,i,e){let t=`eeee p`;return Oc(n,i,e)?t:n.getTime()>i.getTime()?`'下个'`+t:`'上个'`+t}var zp={lastWeek:Yc,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:Yc,other:`PP p`};var Qc=(n,i,e,t)=>{let o=zp[n];return typeof o==`function`?o(i,e,t):o};var Cp={narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]};var yp={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]};var vp={narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]};var _p={narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]};var Sp={narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}};var bp={narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}};var Tp=(n,i)=>{let e=Number(n);switch(i?.unit){case`date`:return e.toString()+`日`;case`hour`:return e.toString()+`时`;case`minute`:return e.toString()+`分`;case`second`:return e.toString()+`秒`;default:return`第 `+e.toString()}};var Zc={code:`zh-CN`,formatDistance:jc,formatLong:Kc,formatRelative:Qc,localize:{ordinalNumber:Tp,era:yc$1({values:Cp,defaultWidth:`wide`}),quarter:yc$1({values:yp,defaultWidth:`wide`,argumentCallback:n=>n-1}),month:yc$1({values:vp,defaultWidth:`wide`}),day:yc$1({values:_p,defaultWidth:`wide`}),dayPeriod:yc$1({values:Sp,defaultWidth:`wide`,formattingValues:bp,defaultFormattingWidth:`wide`})}
337,match:{ordinalNumber:t_$1({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:n=>parseInt(n,10)}),era:bc({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:bc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:n=>n+1}),month:bc({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},defaultParseWidth:`any`}),day:bc({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:bc({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};var Xc=(()=>{class n{constructor(e){this.doc=e,this.list={},this.cached={},this._notify=new se$1([])}fixPaths(e){return e=e||[],Array.isArray(e)||(e=[e]),e.map(t=>{let o=typeof t==`string`?{path:t}:t;return o.type||(o.type=o.path.endsWith(`.js`)||o.callback?`script`:`style`),o})}monitor(e){let t=this.fixPaths(e),o=[Fr$1(),ne(r=>r.length!==0)];return t.length>0&&o.push(ne(r=>r.length===t.length&&r.every(a=>a.status===`ok`&&t.find(d=>d.path===a.path)))),this._notify.asObservable().pipe(E4.apply(this,o))}clear(){this.list={},this.cached={}}async load(e){return e=this.fixPaths(e),Promise.all(e.map(t=>t.type===`script`?this.loadScript(t.path,{callback:t.callback}):this.loadStyle(t.path))).then(t=>(this._notify.next(t),Promise.resolve(t)))}loadScript(e,t){let{innerContent:o}=g$1({},t);return new Promise(r=>{if(this.list[e]===!0){r(W$1(g$1({},this.cached[e]),{status:`loading`}));return}this.list[e]=!0;let a=g=>{g.status===`ok`&&t?.callback?window[t?.callback]=()=>{d(g)}:d(g)},d=g=>{g.type=`script`,this.cached[e]=g,r(g),this._notify.next([g])},m=this.doc.createElement(`script`);m.type=`text/javascript`,m.src=e,m.charset=`utf-8`,o&&(m.innerHTML=o),m.readyState?m.onreadystatechange=()=>{(m.readyState===`loaded`||m.readyState===`complete`)&&(m.onreadystatechange=null,a({path:e,status:`ok`}))}:m.onload=()=>a({path:e,status:`ok`}),m.onerror=g=>a({path:e,status:`error`,error:g}),this.doc.getElementsByTagName(`head`)[0].appendChild(m)})}loadStyle(e,t){let{rel:o,innerContent:r}=g$1({rel:`stylesheet`},t);return new Promise(a=>{if(this.list[e]===!0){a(this.cached[e]);return}this.list[e]=!0;let d=this.doc.createElement(`link`);d.rel=o,d.type=`text/css`,d.href=e,r&&(d.innerHTML=r),this.doc.getElementsByTagName(`head`)[0].appendChild(d);let m={path:e,status:`ok`,type:`style`};this.cached[e]=m,a(m)})}static{this.ɵfac=function(t){return new(t||n)(V$2(z$2))}}static{this.ɵprov=w({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var Ko=class{baseURL=`./assets/tinymce/`;fileName=`tinymce.min.js`;config;delay};var Jc=!(typeof document==`object`&&document);var nd=(()=>{class n{defConfig=h(Ko,{optional:!0});lazySrv=h(Xc);doc=h(z$2);_instance;value=``;load=G$1(!0);id=`_tinymce-${Math.random().toString(36).substring(2)}`;onChange;onTouched;config=pe$1(null);placeholder=pe$1(``);inline=pe$1(!1,{transform:H$2});disabled=pe$1(!1,{transform:H$2});_disabled=G$1(!1);_loading=G$1(null);_loadingTpl=G$1(null);loading=pe$1(null,{transform:e=>(e instanceof yt$1?(this._loading.set(null),this._loadingTpl.set(e)):this._loading.set(e),e)});delay=pe$1(0,{transform:Oo$1});ready=Zl$1();get instance(){return this._instance}constructor(){Rt$2(()=>{if(Jc)return;if(this.win.tinymce){this.initDelay();return}let{defConfig:e}=this,t=e&&e.baseURL,o=e&&e.fileName,r=(t??`./assets/tinymce/`)+(o??`tinymce.min.js`);this.lazySrv.monitor(r).subscribe(()=>this.initDelay()),this.lazySrv.load(r)}),Jt$1(()=>{let e=this.config();this._instance&&(this.destroy(),e&&this.initDelay())})}get win(){return this.doc.defaultView??window}initDelay(){Jc||setTimeout(()=>this.init(),Math.max(0,this.delay()))}init(){let e=this.win;
337if(!e.tinymce)throw new Error(`tinymce js文件加载失败`);let{defConfig:t,config:o,id:r,inline:a}=this;if(this._instance)return;if(t?.baseURL){let g=`${t.baseURL}`;g.endsWith(`/`)&&(g=g.substring(0,g.length-1)),e.tinymce.baseURL=g}let d=g$1(g$1({},t?.config),o()),m=W$1(g$1(g$1({selector:`#${r}`,inline:a()},t?.config),o()),{setup:g=>{this._instance=g,this.onChange&&g.on(`change keyup`,()=>{this.value=g.getContent(),this.onChange(this.value)}),typeof d.setup==`function`&&d.setup(g)},init_instance_callback:g=>{g&&this.value&&g.setContent(this.value),this.setDisabled(),typeof d.init_instance_callback==`function`&&d.init_instance_callback(g),this.ready.emit(g)}});d.auto_focus&&(m.auto_focus=r),e.tinymce.init(m),this.load.set(!1)}destroy(){this._instance!=null&&(this._instance.off(),this._instance.remove(),this._instance=null)}setDisabled(){if(!this._instance)return;let e=this.disabled()||this._disabled()?`readonly`:`design`,t=this._instance.setMode;typeof t==`function`?t(e):this._instance.mode.set(e)}ngOnDestroy(){this.destroy()}
337writeValue(e){this.value=e??``,this._instance?.setContent(this.value)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled.set(e),this.setDisabled()}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`*`];function t(g,x){if(g&1&&(oe$2(0,`div`),Wt$1(1),he$1()),g&2){let s=F$2();$t(`id`,s.id)}}function o(g,x){if(g&1&&pt$1(0,`textarea`,0),g&2){let s=F$2();$t(`id`,s.id)(`placeholder`,s.placeholder())}}function r(g,x){if(g&1&&an$3(0),g&2){let s=F$2(2);Io$1(` `,s._loading(),` `)}}function a(g,x){}function d(g,x){if(g&1&&qe$1(0,a,0,0,`ng-template`,2),g&2){let s=F$2(2);ie$1(`ngTemplateOutlet`,s._loadingTpl())}}function m(g,x){if(g&1&&(oe$2(0,`div`,1),ve$1(1,r,1,1)(2,d,1,1,null,2),he$1()),g&2){let s=F$2();A(),ye$1(s._loading()?1:2)}}return Se$1({type:n,selectors:[[`tinymce`]],inputs:{config:[1,`config`],placeholder:[1,`placeholder`],inline:[1,`inline`],disabled:[1,`disabled`],loading:[1,`loading`],delay:[1,`delay`]},outputs:{ready:`ready`},exportAs:[`tinymce`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>n),multi:!0}])],ngContentSelectors:e,decls:3,vars:2,consts:[[1,`tinymce-selector`],[1,`loading`],[3,`ngTemplateOutlet`]],template:function(x,s){x&1&&(yn$1(),ve$1(0,t,2,1,`div`)(1,o,1,2,`textarea`,0),ve$1(2,m,3,1,`div`,1)),x&2&&(ye$1(s.inline()?0:1),A(2),ye$1(s.load()?2:-1))},dependencies:[ka$1],styles:[`tinymce .tinymce-selector{display:none}
338`],encapsulation:2})})()}return n})();function id(n){return et$1([{provide:Ko,useValue:n}])}var od=new b$1(``,{providedIn:`root`,factory:()=>{let n=h(U$2);return new T$1(i=>{let e=Rt$2(()=>{i.next(),i.complete()},{injector:n});return()=>e.destroy()})}});var ad=(()=>{class n{nzLabel;static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[[[`nz-auto-option`]]],t=[`nz-auto-option`];function o(r,a){if(r&1&&(nn$1(0),an$3(1),rn$3()),r&2){let d=F$2();A(),vr$3(d.nzLabel)}}return Se$1({type:n,selectors:[[`nz-auto-optgroup`]],inputs:{nzLabel:`nzLabel`},exportAs:[`nzAutoOptgroup`],ngContentSelectors:t,decls:3,vars:1,consts:[[1,`ant-select-item`,`ant-select-item-group`],[4,`nzStringTemplateOutlet`]],template:function(a,d){a&1&&(yn$1(e),oe$2(0,`div`,0),qe$1(1,o,2,1,`ng-container`,1),he$1(),Wt$1(2)),a&2&&(A(),ie$1(`nzStringTemplateOutlet`,d.nzLabel))},dependencies:[Jr$3,er$1],encapsulation:2})})()}return n})();var Kr=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}};var $i=(()=>{class n{ngZone=h(B$2);changeDetectorRef=h(Qe$1);element=h($$2);destroyRef=h(re$1);nzValue;nzLabel;nzDisabled=!1;selectionChange=new O$1;mouseEntered=new O$1;active=!1;selected=!1;nzAutocompleteOptgroupComponent=h(ad,{optional:!0});ngOnInit(){A1(this.element.nativeElement,`mouseenter`).pipe(ne(()=>this.mouseEntered.observers.length>0),be$1(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),A1(this.element.nativeElement,`mousedown`).pipe(be$1(this.destroyRef)).subscribe(e=>e.preventDefault())}select(e=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),e&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){j1e(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(e=!1){this.selectionChange.emit(new Kr(this,e))}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){return Se$1({type:n,selectors:[[`nz-auto-option`]],hostAttrs:[`role`,`menuitem`,1,`ant-select-item`,`ant-select-item-option`],hostVars:10,hostBindings:function(o,r){o&1&&je$1(`click`,function(){return r.selectViaInteraction()}),o&2&&($t(`aria-selected`,r.selected.toString())(`aria-disabled`,r.nzDisabled.toString()),Ze(`ant-select-item-option-grouped`,r.nzAutocompleteOptgroupComponent)(`ant-select-item-option-selected`,r.selected)(`ant-select-item-option-active`,r.active)(`ant-select-item-option-disabled`,r.nzDisabled))},inputs:{nzValue:`nzValue`,nzLabel:`nzLabel`,nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2]},outputs:{selectionChange:`selectionChange`,mouseEntered:`mouseEntered`},exportAs:[`nzAutoOption`],ngContentSelectors:[`*`],decls:2,vars:0,consts:[[1,`ant-select-item-option-content`]],template:function(o,r){o&1&&(yn$1(),mi$2(0,`div`,0),Wt$1(1),gi$1())},encapsulation:2})})()}return n})();function Pp(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var sd=(()=>{class n{injector=h(U$2);ngZone=h(B$2);elementRef=h($$2);
338viewContainerRef=h(Dt$4);destroyRef=h(re$1);document=h(z$2);nzAutocomplete;nzAutocompleteConnectedTo;onChange=()=>{};onTouched=()=>{};panelOpen=!1;get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}overlayRef=null;portal=null;positionStrategy;previousValue=null;selectionChangeSubscription;optionsChangeSubscription;overlayOutsideClickSubscription;constructor(){this.destroyRef.onDestroy(()=>{this.destroyPanel()})}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe(be$1(this.destroyRef)).subscribe(e=>{this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null,e.animationComplete())})}writeValue(e){this.ngZone.runOutsideAngular(()=>{Promise.resolve(null).then(()=>this.setTriggerValue(e))})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){let t=this.elementRef.nativeElement;t.disabled=e,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(e){let t=e.keyCode,o=t===38||t===40;t===27&&e.preventDefault(),this.panelOpen&&(t===27||t===9)?(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel()):this.panelOpen&&t===13?this.nzAutocomplete.showPanel&&(e.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&o&&this.nzAutocomplete.showPanel&&(e.stopPropagation(),e.preventDefault(),t===38?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill())}handleInput(e){let t=e.target,o=this.document,r=t.value;t.type===`number`&&(r=r===``?null:parseFloat(r)),this.previousValue!==r&&(this.previousValue=r,this.onChange(r),this.canOpen()&&o.activeElement===e.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleClick(){this.canOpen()&&!this.panelOpen&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe(Je$2(()=>this.positionStrategy.reapplyLastPosition()),go$1(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(e=>{this.setValueAndClose(e)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe(ne(e=>{let t=e.target;return!this.elementRef.nativeElement.contains(t)&&!this.getConnectedElement().nativeElement.contains(t)})).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw Pp();if(!this.portal&&this.nzAutocomplete.template&&(this.portal=new Wo$2(this.nzAutocomplete.template,this.viewContainerRef)),!this.overlayRef){let e=this.nzAutocomplete.nzWidth||this.getHostWidth(),t=this.nzAutocomplete.nzDropdownMatchSelectWidth;this.overlayRef=Ai(this.injector,{positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:G5(this.injector),minWidth:t?void 0:e,width:t?e:void 0})}this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe(be$1(this.destroyRef)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){if(this.overlayRef){let e=this.nzAutocomplete.nzDropdownMatchSelectWidth,t=this.nzAutocomplete.nzWidth||this.getHostWidth();this.positionStrategy.setOrigin(this.getConnectedElement()),this.overlayRef.updateSize({width:e?t:void 0})}this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayPosition(){return this.positionStrategy=Z5(this.injector,this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions([new st$2({originX:`start`,originY:`bottom`},{overlayX:`start`,overlayY:`top`}),new st$2({originX:`start`,originY:`top`},{overlayX:`start`,overlayY:`bottom`})]).withTransformOriginOn(`.ant-select-dropdown`)}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getConnectedElement(){return this.nzAutocompleteConnectedTo?.elementRef??this.elementRef}resetActiveItem(){let e=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),e!==-1?(this.nzAutocomplete.setActiveItem(e),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(e){let t=e.nzValue;this.setTriggerValue(e.getLabel()),this.onChange(t),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(e){let t=this.nzAutocomplete.getOption(e),o=t?t.getLabel():e;this.elementRef.nativeElement.value=o??``,this.nzAutocomplete.nzBackfill||(this.previousValue=o)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){let e=this.elementRef.nativeElement;return!e.readOnly&&!e.disabled}static ɵfac=function(t){return new(t||n)};static ɵdir=j({type:n,selectors:[[`input`,`nzAutocomplete`,``],[`textarea`,`nzAutocomplete`,``]],hostAttrs:[`autocomplete`,`off`,`aria-autocomplete`,`list`],hostBindings:function(t,o){t&1&&je$1(`focusin`,function(){return o.handleFocus()})(`blur`,function(){return o.handleBlur()})(`input`,function(a){return o.handleInput(a)})(`keydown`,function(a){return o.handleKeydown(a)})(`click`,function(){return o.handleClick()})},inputs:{nzAutocomplete:`nzAutocomplete`,nzAutocompleteConnectedTo:`nzAutocompleteConnectedTo`},exportAs:[`nzAutocompleteTrigger`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>n),multi:!0}])]})}return n})();function Lp(n){return n?.map(i=>typeof i==`number`||typeof i==`string`?{label:i.toString(),value:i.toString()}:i)}var ld=(()=>{class n{cdr=h(Qe$1);destroyRef=h(re$1);afterNextRender$=h(od);noAnimation=h(as,{host:!0,optional:!0});dir=h(Ue$1).valueSignal;nzWidth;nzOverlayClassName=``;nzOverlayStyle={};nzDefaultActiveFirstOption=!0;nzBackfill=!1;nzDropdownMatchSelectWidth=!0;compareWith=(e,t)=>e===t;nzDataSource;selectionChange=new O$1;showPanel=!0;isOpen=!1;activeItem=null;normalizedDataSource=[];animationStateChange=new O$1;get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}fromContentOptions;fromDataSourceOptions;template;panel;
338content;activeItemIndex=-1;selectionChangeSubscription=ue$1.EMPTY;optionMouseEnterSubscription=ue$1.EMPTY;dataSourceChangeSubscription=ue$1.EMPTY;optionSelectionChanges=Gi(()=>this.options?ti(...this.options.map(e=>e.selectionChange)):this.afterNextRender$.pipe(Ve(()=>this.optionSelectionChanges)));optionMouseEnter=Gi(()=>this.options?ti(...this.options.map(e=>e.mouseEntered)):this.afterNextRender$.pipe(Ve(()=>this.optionMouseEnter)));autoCompleteAnimationEnter=Vge();autoCompleteAnimationLeave=Bge();animationEnabled=TS(()=>!this.noAnimation?.nzNoAnimation());constructor(){this.destroyRef.onDestroy(()=>{this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null})}ngOnChanges(e){let{nzDataSource:t}=e;t&&(this.normalizedDataSource=Lp(t.currentValue))}onAnimationEvent(e){let t=e.target;if(!this.animationEnabled()){this.animationStateChange.emit(e),e.animationComplete();return}let o=()=>{t.removeEventListener(`animationend`,o),this.animationStateChange.emit(e),e.animationComplete()};t.addEventListener(`animationend`,o)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}setVisibility(){this.showPanel=!!this.options.length,this.cdr.markForCheck()}setActiveItem(e){let t=this.options.get(e);t&&!t.active?(this.activeItem=t,this.activeItemIndex=e,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.cdr.markForCheck()}setNextItemActive(){let e=this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0;this.setActiveItem(e)}setPreviousItemActive(){let e=this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1;this.setActiveItem(e)}getOptionIndex(e){return this.options.reduce((t,o,r)=>t===-1?this.compareWith(e,o.nzValue)?r:-1:t,-1)}getOption(e){return this.options.find(t=>this.compareWith(e,t.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges();let e=this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes;this.dataSourceChangeSubscription=e.subscribe(t=>{!t.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(e,t=!1){this.options.forEach(o=>{o!==e&&(t&&o.deselect(),o.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(ne(e=>e.isUserInput)).subscribe(e=>{e.source.select(),e.source.setActiveStyles(),this.activeItem=e.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e.source,!0),this.selectionChange.emit(e.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(e=>{e.setActiveStyles(),this.activeItem=e,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e)})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`panel`],t=[`content`],o=[`*`],r=(l,z)=>z.value;function a(l,z){}function d(l,z){l&1&&qe$1(0,a,0,0,`ng-template`)}function m(l,z){l&1&&Wt$1(0)}function g(l,z){if(l&1&&(oe$2(0,`nz-auto-option`,7),an$3(1),he$1()),l&2){let b=z.$implicit;ie$1(`nzValue`,b.value)(`nzLabel`,b.label),A(),Io$1(` `,b.label,` `)}}function x(l,z){if(l&1&&Yl(0,g,2,3,`nz-auto-option`,7,r),l&2){let b=F$2(2);Ul(b.normalizedDataSource)}}function s(l,z){if(l&1){let b=on();oe$2(0,`div`,3,0),hi$1(function(){gt$1(b);let L=F$2();return vt(L.autoCompleteAnimationLeave())}),ui(function(){gt$1(b);let L=F$2();return vt(L.autoCompleteAnimationEnter())}),Il(function(L){gt$1(b);let j=F$2();return vt(j.onAnimationEvent(L))}),oe$2(2,`div`,4)(3,`div`,5),qe$1(4,d,1,0,null,6),he$1()()(),qe$1(5,m,1,0,`ng-template`,null,1,ql$1)(7,x,2,0,`ng-template`,null,2,ql$1)}if(l&2){let b=Wl(6),T=Wl(8),L=F$2();ko$1(L.nzOverlayStyle),Lt$1(L.nzOverlayClassName),Ze(`ant-select-dropdown-hidden`,!L.showPanel)(`ant-select-dropdown-rtl`,L.dir()===`rtl`),ie$1(`nzNoAnimation`,!L.animationEnabled()),A(4),ie$1(`ngTemplateOutlet`,L.nzDataSource?T:b)}}return Se$1({type:n,selectors:[[`nz-autocomplete`]],contentQueries:function(z,b,T){if(z&1&&bn$3(T,$i,5),z&2){let L;Ge(L=Ke())&&(b.fromContentOptions=L)}},viewQuery:function(z,b){if(z&1&&Kn(yt$1,5)(e,5)(t,5)($i,5),z&2){let T;Ge(T=Ke())&&(b.template=T.first),Ge(T=Ke())&&(b.panel=T.first),Ge(T=Ke())&&(b.content=T.first),Ge(T=Ke())&&(b.fromDataSourceOptions=T)}},inputs:{nzWidth:[2,`nzWidth`,`nzWidth`,qw],nzOverlayClassName:`nzOverlayClassName`,nzOverlayStyle:`nzOverlayStyle`,nzDefaultActiveFirstOption:[2,`nzDefaultActiveFirstOption`,`nzDefaultActiveFirstOption`,H$2],nzBackfill:[2,`nzBackfill`,`nzBackfill`,H$2],nzDropdownMatchSelectWidth:[2,`nzDropdownMatchSelectWidth`,`nzDropdownMatchSelectWidth`,H$2],compareWith:`compareWith`,nzDataSource:`nzDataSource`},outputs:{selectionChange:`selectionChange`},exportAs:[`nzAutocomplete`],features:[Te$1],ngContentSelectors:o,decls:1,vars:0,consts:[[`panel`,``],[`contentTemplate`,``],[`optionsTemplate`,``],[1,`ant-select-dropdown`,`ant-select-dropdown-placement-bottomLeft`,3,`nzNoAnimation`],[1,`ant-select-dropdown-content-wrapper`],[1,`ant-select-dropdown-content`],[4,`ngTemplateOutlet`],[3,`nzValue`,`nzLabel`]],template:function(z,b){z&1&&(yn$1(),qe$1(0,s,9,10,`ng-template`))},dependencies:[ka$1,$i,as],encapsulation:2})})()}return n})();var cd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[ad]})}return n})();var Bp=()=>({standalone:!0});var Wp=()=>({});
338function Hp(n,i){if(n&1&&(oe$2(0,`nz-auto-option`,4),an$3(1),he$1()),n&2){let e=i.$implicit;ie$1(`nzValue`,e)(`nzLabel`,e.label)(`nzDisabled`,e.disabled),A(),Io$1(` `,e.label,` `)}}var zi=class n extends de$1{static KEY=`autocomplete`;i=G$1({});list=G$1(null);typing=G$1(``);ngModel=sb.required(Fi);filterOption=G$1((i,e)=>(e.label??``).toLowerCase().indexOf((i??``).toLowerCase())>-1);isAsync=G$1(!1);fixData=G$1([]);updateValue(i){this.typing.set(i.nzLabel);let e=i.nzValue;this.setValue(e.value),this.ui.change?.(i,e)}_setValue(i){let e=i.toString();typeof i!=`string`&&(e=i.value),this.setValue(e)}afterViewInit(){let{backfill:i,defaultActiveFirstOption:e,nzWidth:t,filterOption:o,asyncData:r,compareWith:a}=this.ui;this.i.set({backfill:Ee$2(i,!1),defaultActiveFirstOption:Ee$2(e,!0),width:t??void 0,compareWith:a??((x,s)=>x===s)});let d=o??!0;typeof d==`boolean`&&(d=(x,s)=>s.label.toLowerCase().indexOf((x??``).toLowerCase())>-1),this.filterOption.set(d),this.isAsync.set(!!r);let m=+(this.ui.debounceTime??0),g=Math.max(0,this.isAsync()?Math.max(50,m):m);this.list.set(this.ngModel().valueChanges.pipe(Hn$2(g),mt$2(``),ct$2(x=>this.isAsync()?r(x):this.filterData(x)),P$2(x=>Fu$1(x,null,this.schema.readOnly))))}reset(i){if(this.isAsync()){this.ui.asyncData(i).pipe(Be(this.sfItemComp.destroy$),P$2(e=>Fu$1(e,null,this.schema.readOnly))).subscribe(e=>{this.typing.set(e.find(t=>t.value===this.value)?.label??``)});return}this.typing.set(i),this.ui.type===`email`?this.fixData.set(gl$1(this.schema.enum??this.formProperty.options.uiEmailSuffixes,null,this.schema.readOnly)):this.fixData.set(gl$1(this.schema.enum,i,this.schema.readOnly))}filterData(i){if(this.ui.type===`email`)return this.addEmailSuffix(i);{let e=this.filterOption();return S(this.fixData().filter(t=>e(i,t)))}}addEmailSuffix(i){let e=!i||typeof i!=`string`||i?.indexOf(`@`)!==-1?[]:this.fixData().map(t=>`${i}@${t.label}`);return S(e)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-autocomplete`]],viewQuery:function(e,t){e&1&&_d$2(t.ngModel,Fi,5),e&2&&Sd$1()},features:[tn$2],decls:7,vars:25,consts:[[`auto`,``],[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[`nz-input`,``,`autocomplete`,`off`,3,`ngModelChange`,`nzAutocomplete`,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`],[3,`selectionChange`,`nzBackfill`,`nzDefaultActiveFirstOption`,`nzWidth`,`nzOverlayStyle`,`nzOverlayClassName`,`compareWith`],[3,`nzValue`,`nzLabel`,`nzDisabled`]],template:function(e,t){if(e&1&&(oe$2(0,`sf-item-wrap`,1)(1,`input`,2),hI(),je$1(`ngModelChange`,function(r){return t._setValue(r)}),he$1(),oe$2(2,`nz-autocomplete`,3,0),je$1(`selectionChange`,function(r){return t.updateValue(r)}),Yl(4,Hp,2,4,`nz-auto-option`,4,jl),vi$1(6,`async`),he$1()()),e&2){let o=Wl(3),r=t.i();ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzAutocomplete`,o)(`disabled`,t.disabled)(`nzSize`,t.ui.size)(`ngModel`,t.typing())(`ngModelOptions`,MO(23,Bp)),$t(`id`,t.id)(`disabled`,t.disabled)(`maxLength`,t.schema.maxLength??null)(`placeholder`,t.ui.placeholder),pI(),A(),ie$1(`nzBackfill`,r.backfill)(`nzDefaultActiveFirstOption`,r.defaultActiveFirstOption)(`nzWidth`,r.width)(`nzOverlayStyle`,t.ui.overlayStyle??MO(24,Wp))(`nzOverlayClassName`,t.ui.overlayClassName??``)(`compareWith`,r.compareWith),A(2),Ul(yi$2(6,21,t.list()))}},dependencies:[fr$2,At$1,jn$2,Fi,Cu$1,le$2,_c$1,He$2,cd,ld,$i,sd,AA],encapsulation:2})};function dd(){return{KEY:zi.KEY,type:zi}}var Qo=(()=>{class n{UNIQUE_WRAPPERS=[`##==-open_tag-==##`,`##==-close_tag-==##`];transform(e,t,o,r){if(!t)return e;let a=new RegExp(t.replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$&`),o),d=e.replace(a,`${this.UNIQUE_WRAPPERS[0]}$&${this.UNIQUE_WRAPPERS[1]}`);return K1e(d).replace(new RegExp(this.UNIQUE_WRAPPERS[0],`g`),r?`<span class="${r}">`:`<span>`).replace(new RegExp(this.UNIQUE_WRAPPERS[1],`g`),`</span>`)}static ɵfac=function(t){return new(t||n)};static ɵpipe=_t$1({name:`nzHighlight`,type:n,pure:!0})}return n})();function pd(n){return typeof n!=`boolean`}function jp(n){return n.isLeaf||!n.children||!n.children.length}function Kp(n){return!!n.children&&!!n.children.length&&!n.isLeaf}var Zo=(()=>{class n extends Ti$2{fieldNames={label:`label`,value:`value`};treeNodePostProcessor=e=>{e.key=this.getOptionValue(e),e.title=this.getOptionLabel(e)};getOptionValue(e){return e.origin[this.fieldNames.value||`value`]}getOptionLabel(e){return e.origin[this.fieldNames.label||`label`]}get children(){return this.rootNodes}set children(e){this.rootNodes=e.map(t=>t instanceof F$3?t:new F$3(t,null))}toOptions(e){return e.map(t=>t.origin)}getAncestorNodeList(e){return e?e.parentNode?[...this.getAncestorNodeList(e.parentNode),e]:[e]:[]}conductCheckPaths(e,t){this.checkedNodeList=[],this.halfCheckedNodeList=[];let o=[],r=a=>{a.forEach(d=>{if(e===null)d.isChecked=!!d.origin.checked;else{let m=this.getAncestorNodeList(d).map(g=>this.getOptionValue(g));e.some(g=>E1e(m,g))?(d.isChecked=!0,d.isHalfChecked=!1,o.push(m)):(d.isChecked=!1,d.isHalfChecked=!1)}d.children.length>0&&r(d.children)})};r(this.rootNodes),this.refreshCheckState(t),this.handleMissingNodeList(e,o)}conductSelectedPaths(e){this.selectedNodeList.forEach(r=>r.isSelected=!1),this.selectedNodeList=[];let t=[],o=r=>r.every(a=>{let d=this.getAncestorNodeList(a).map(m=>this.getOptionValue(m));return e.some(m=>E1e(d,m))?(a.isSelected=!0,this.setSelectedNodeList(a),t.push(d),!1):(a.isSelected=!1,a.children.length>0?o(a.children):!0)});o(this.rootNodes),this.handleMissingNodeList(e,t)}handleMissingNodeList(e,t){this.getMissingNodeList(e,t).forEach(r=>{this.setSelectedNodeList(r)})}getMissingNodeList(e,t){return e?e.filter(o=>!t.some(r=>E1e(o,r))).map(o=>this.createMissingNode(o)).filter(Zp$1):[]}createMissingNode(e){if(!e?.length)return null;let t=r=>({[this.fieldNames.value||`value`]:r,[this.fieldNames.label||`label`]:r}),o=new F$3(t(e[0]),null,this);for(let r=1;r<e.length;r++){let a=new F$3(t(e[r]));o.addChildren([a]),o=a}return this.isMultiple?(o.isChecked=!0,o.isHalfChecked=!1):o.isSelected=!0,o}static ɵfac=(()=>{let e;return function(o){return(e||(e=Gn(n)))(o||n)}})();static ɵprov=w({token:n,factory:n.ɵfac})}return n})();var Xo=(()=>{class n{destroyRef=h(re$1);activatedNodes=[];columns=[];inSearchingMode=!1;values=[];$loading=new se$1(!1);$redraw=new C$1;$nodeSelected=new C$1;$quitSearching=new C$1;columnSnapshot=[[]];cascaderComponent;searchOptionPathMap=new Map;constructor(){this.destroyRef.onDestroy(()=>{this.$redraw.complete(),this.$quitSearching.complete(),this.$nodeSelected.complete(),this.$loading.complete(),this.searchOptionPathMap.clear()})}get nzOptions(){return this.cascaderComponent.treeService.toOptions(this.columns[0]||[])}withComponent(e){this.cascaderComponent=e}setNodeActivated(e,t,o=!1,r=!1,a=!0){e.isDisabled||(this.activatedNodes[t]=e,this.trackAncestorActivatedNodes(t),this.dropBehindActivatedNodes(t),Kp(e)?this.setColumnData(e.children,t+1):!e.isLeaf&&a?this.loadChildren(e,t):e.isLeaf&&this.dropBehindColumns(t),o&&e.isSelectable&&this.setNodeSelected(e,t,r),this.$redraw.next())}setNodeSelected(e,t,o=!1){let r=this.cascaderComponent.nzChangeOn,a=(d,m)=>typeof r==`function`?r(d,m):!1;(o||e.isLeaf||this.cascaderComponent.nzChangeOnSelect||a(e.origin,t))&&(e.isSelected=!0,this.cascaderComponent.treeService.setSelectedNodeList(e,o),this.cascaderComponent.updateSelectedNodes(),this.$redraw.next(),this.$nodeSelected.next(e))}setNodeDeactivatedSinceColumn(e){this.dropBehindActivatedNodes(e-1),this.dropBehindColumns(e),this.$redraw.next()}setSearchOptionSelected(e,t=!1){this.setNodeSelected(e,e.level,t),setTimeout(()=>{this.$quitSearching.next(),this.$redraw.next()},200)}clearSearchOptions(){for(let e of this.searchOptionPathMap.keys())e.isDisabled=e.origin.disabled||!1,e.title=this.getOptionLabel(e.origin);this.searchOptionPathMap.clear()}prepareSearchOptions(e){let t=[],o=[],r=(s,l)=>l.some(z=>{let b=this.getOptionLabel(z);return!!b&&b.indexOf(s)!==-1}),a=this.cascaderComponent.nzShowSearch,d=pd(a)&&a.filter?a.filter:r,m=pd(a)&&a.sorter?a.sorter:null,g=(s,l=!1)=>{o.push(s);let z=this.cascaderComponent.treeService.toOptions(o);d(e,z)&&(this.searchOptionPathMap.set(s,z),s.isDisabled=l||s.isDisabled,s.title=z.map(b=>this.getOptionLabel(b)).join(` / `),t.push(s)),o.pop()},x=(s,l=!1)=>{let z=l||s.isDisabled;
338o.push(s),s.children.forEach(b=>{b.isLeaf||x(b,z),(b.isLeaf||!b.children||!b.children.length)&&g(b,z)}),o.pop()};if(!this.columnSnapshot.length){this.columns=[[]];return}this.columnSnapshot[0].forEach(s=>jp(s)?g(s):x(s)),m&&t.sort((s,l)=>m(this.searchOptionPathMap.get(s),this.searchOptionPathMap.get(l),e)),this.columns=[t],this.$redraw.next()}setSearchingMode(e){this.inSearchingMode=e,e?(this.clearSearchOptions(),this.columnSnapshot=[...this.columns],this.activatedNodes=[]):(this.clearSearchOptions(),this.activatedNodes=[],setTimeout(()=>{if(this.columns=[...this.columnSnapshot],this.cascaderComponent.selectedNodes.length){let t=this.cascaderComponent.selectedNodes[0],o=t.level;this.activatedNodes[o]=t,this.trackAncestorActivatedNodes(o),this.trackAncestorColumnData(o)}this.$redraw.next()})),this.$redraw.next()}clear(){this.values=[],this.activatedNodes=[],this.dropBehindColumns(0),this.$redraw.next(),this.$nodeSelected.next(null)}getOptionLabel(e){return e[this.cascaderComponent.nzLabelProperty||`label`]}getOptionValue(e){return e[this.cascaderComponent.nzValueProperty||`value`]}setColumnData(e,t){this.columns[t]=e,this.dropBehindColumns(t)}trackAncestorColumnData(e){if(this.activatedNodes[e]){this.dropBehindColumns(e);for(let o=0;o<e;o++)this.columns[o+1]=this.activatedNodes[o].children}}trackAncestorActivatedNodes(e){for(let t=e-1;t>=0;t--)this.activatedNodes[t]||(this.activatedNodes[t]=this.activatedNodes[t+1].parentNode)}dropBehindActivatedNodes(e){this.activatedNodes=this.activatedNodes.splice(0,e+1)}dropBehindColumns(e){e<this.columns.length-1&&(this.columns=this.columns.slice(0,e+1))}loadChildren(e,t,o){let r=t<0||!Zp$1(e),a=e?.origin||{},d=this.cascaderComponent.nzLoadData;d&&(this.$loading.next(r),e&&(e.isLoading=!0),Qw(d(a,t)).pipe(Kt$1(()=>{e&&(e.isLoading=!1),this.$loading.next(!1),this.$redraw.next()})).subscribe({next:()=>{if(a.children){if(r){let m=this.cascaderComponent.coerceTreeNodes(a.children);this.cascaderComponent.treeService.initTree(m),this.setColumnData(m,0)}else{let m=a.children.map(g=>new F$3(g,e));e.children=m,this.setColumnData(m,t+1)}o?.(a.children)}},error:()=>{e&&(e.isLeaf=!0)}}))}isLoaded(e){return!!this.columns[e]&&this.columns[e].length>0}static ɵfac=function(t){return new(t||n)};static ɵprov=w({token:n,factory:n.ɵfac})}return n})();var Yp=n=>n.join(` / `);var Qp=(()=>{class n{cascaderService=h(Xo);cascaderTreeService=h(Zo);transform(e){let t=this.cascaderTreeService.getAncestorNodeList(e);return Yp(this.cascaderTreeService.toOptions(t).map(a=>this.cascaderService.getOptionLabel(a)))}static ɵfac=function(t){return new(t||n)};static ɵpipe=_t$1({name:`nzDisplayRender`,type:n,pure:!0})}return n})();var qp=(()=>{class n{cascaderService=h(Xo);cascaderTreeService=h(Zo);transform(e){let t=this.cascaderTreeService.getAncestorNodeList(e),o=this.cascaderTreeService.toOptions(t);return{labels:o.map(a=>this.cascaderService.getOptionLabel(a)),selectedOptions:o}}static ɵfac=function(t){return new(t||n)};static ɵpipe=_t$1({name:`nzDisplayRenderContext`,type:n,pure:!0})}return n})();var ud=(()=>{class n{cdr=h(Qe$1);optionTemplate=null;node;activated=!1;highlightText;nzLabelProperty=`label`;columnIndex;expandIcon=``;dir=`ltr`;checkable=!1;check=new O$1;nativeElement=h($$2).nativeElement;ngOnInit(){this.expandIcon===``&&this.dir===`rtl`?this.expandIcon=`left`:this.expandIcon===``&&(this.expandIcon=`right`)}get checked(){return this.node.isChecked}get halfChecked(){return this.node.isHalfChecked}get disabled(){return this.node.isDisabled||this.node.isDisableCheckbox}markForCheck(){this.cdr.markForCheck()}onCheckboxClick(e){e.preventDefault(),e.stopPropagation(),this.checkable&&this.check.emit()}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(s,l)=>({$implicit:s,index:l});function t(s,l){if(s&1){let z=on();oe$2(0,`span`,4),je$1(`click`,function(T){gt$1(z);let L=F$2();return vt(L.onCheckboxClick(T))}),pt$1(1,`span`,5),he$1()}if(s&2){let z=F$2();Ze(`ant-cascader-checkbox-checked`,z.checked)(`ant-cascader-checkbox-indeterminate`,z.halfChecked)(`ant-cascader-checkbox-disabled`,z.disabled)}}function o(s,l){}function r(s,l){if(s&1&&qe$1(0,o,0,0,`ng-template`,1),s&2){let z=F$2();ie$1(`ngTemplateOutlet`,z.optionTemplate)(`ngTemplateOutletContext`,pf(2,e,z.node.origin,z.columnIndex))}}function a(s,l){if(s&1&&(pt$1(0,`div`,2),vi$1(1,`nzHighlight`)),s&2){let z=F$2();ie$1(`innerHTML`,zO(1,1,z.node.title,z.highlightText,`g`,`ant-cascader-menu-item-keyword`),Sa$1)}}function d(s,l){s&1&&pt$1(0,`nz-icon`,6)}function m(s,l){if(s&1&&(nn$1(0),pt$1(1,`nz-icon`,8),rn$3()),s&2){let z=F$2(3);A(),ie$1(`nzType`,z.expandIcon)}}function g(s,l){if(s&1&&qe$1(0,m,2,1,`ng-container`,7),s&2){let z=F$2(2);ie$1(`nzStringTemplateOutlet`,z.expandIcon)}}function x(s,l){if(s&1&&(oe$2(0,`div`,3),ve$1(1,d,1,0,`nz-icon`,6)(2,g,1,1,`ng-container`),he$1()),s&2){let z=F$2();A(),ye$1(z.node.isLoading?1:2)}}return Se$1({type:n,selectors:[[``,`nz-cascader-option`,``]],hostAttrs:[1,`ant-cascader-menu-item`,`ant-cascader-menu-item-expanded`],hostVars:7,hostBindings:function(l,z){l&2&&($t(`title`,z.node.title),Ze(`ant-cascader-menu-item-active`,z.activated)(`ant-cascader-menu-item-expand`,!z.no
338de.isLeaf)(`ant-cascader-menu-item-disabled`,z.node.isDisabled))},inputs:{optionTemplate:`optionTemplate`,node:`node`,activated:`activated`,highlightText:`highlightText`,nzLabelProperty:`nzLabelProperty`,columnIndex:[2,`columnIndex`,`columnIndex`,Oo$1],expandIcon:`expandIcon`,dir:`dir`,checkable:[2,`checkable`,`checkable`,H$2]},outputs:{check:`check`},exportAs:[`nzCascaderOption`],decls:4,vars:3,consts:[[1,`ant-cascader-checkbox`,3,`ant-cascader-checkbox-checked`,`ant-cascader-checkbox-indeterminate`,`ant-cascader-checkbox-disabled`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ant-cascader-menu-item-content`,3,`innerHTML`],[1,`ant-cascader-menu-item-expand-icon`],[1,`ant-cascader-checkbox`,3,`click`],[1,`ant-cascader-checkbox-inner`],[`nzType`,`loading`],[4,`nzStringTemplateOutlet`],[3,`nzType`]],template:function(l,z){l&1&&(ve$1(0,t,2,6,`span`,0),ve$1(1,r,1,5,null,1)(2,a,2,6,`div`,2),ve$1(3,x,3,1,`div`,3)),l&2&&(ye$1(z.checkable?0:-1),A(),ye$1(z.optionTemplate?1:2),A(2),ye$1(!z.node.isLeaf||z.node.children?.length||z.node.isLoading?3:-1))},dependencies:[ka$1,xr$2,Gt$2,Jr$3,er$1,Qo],encapsulation:2})})()}return n})();var md=`cascader`;var Gr=(()=>{let n=ut$1,i,e=[],t=[],o,r=[],a=[],d,m=[],g=[];return class Go extends n{static{let s=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;i=[Bo()],o=[Bo()],d=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzVariant`,static:!1,private:!1,access:{has:l=>`nzVariant`in l,get:l=>l.nzVariant,set:(l,z)=>{l.nzVariant=z}},metadata:s},e,t),uo$2(null,null,o,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:l=>`nzSize`in l,get:l=>l.nzSize,set:(l,z)=>{l.nzSize=z}},metadata:s},r,a),uo$2(null,null,d,{kind:`field`,name:`nzBackdrop`,static:!1,private:!1,access:{has:l=>`nzBackdrop`in l,get:l=>l.nzBackdrop,set:(l,z)=>{l.nzBackdrop=z}},metadata:s},m,g),s&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})}cascaderService=h(Xo);ngZone=h(B$2);cdr=h(Qe$1);i18nService=h(sV);elementRef=h($$2);renderer=h(We$2);dir=h(Ue$1).valueSignal;destroyRef=h(re$1);nzFormStatusService=h(Sde,{optional:!0});noAnimation=h(as,{host:!0,optional:!0});_nzModuleName=md;selectContainer;slideAnimationEnter=Vge(()=>this.placement().startsWith(`top`)?`down`:`up`);slideAnimationLeave=Bge(()=>this.placement().startsWith(`top`)?`down`:`up`);set input(s){this.input$.next(s?.inputElement)}get input(){return this.input$.getValue()}input$=new se$1(void 0);menu;overlay;cascaderItems;nzOpen;nzOptions=[];nzOptionRender=null;nzShowInput=!0;nzShowArrow=!0;nzAllowClear=!0;nzAutoFocus=!1;nzChangeOnSelect=!1;nzDisabled=!1;nzColumnClassName;nzExpandTrigger=`click`;nzValueProperty=`value`;nzLabelProperty=`label`;nzLabelRender=null;nzVariant=mn$3(this,e,void 0);nzNotFoundContent=mn$3(this,t);nzSize=mn$3(this,r,`default`);nzBackdrop=(mn$3(this,a),mn$3(this,m,!1));nzShowSearch=(mn$3(this,g),!1);nzPlaceHolder=``;nzMenuClassName;nzMenuStyle=null;nzMouseLeaveDelay=150;nzMouseEnterDelay=150;nzStatus=``;nzMultiple=!1;nzMaxTagCount=1/0;nzPlacement=`bottomLeft`;nzTriggerAction=[`click`];nzChangeOn;nzLoadData;nzPrefix=null;nzSuffixIcon=`down`;nzExpandIcon=``;nzPopupRender=null;get treeService(){return this.nzTreeService}nzVisibleChange=new O$1;nzOpenChange=Zl$1();nzSelectionChange=new O$1;nzRemoved=new O$1;nzClear=new O$1;prefixCls=`ant-select`;statusCls={};status=``;hasFeedback=!1;shouldShowEmpty=!1;el=this.elementRef.nativeElement;menuOpen=G$1(!1);isLoading=!1;onChange=Function.prototype;onTouched=Function.prototype;positions=[...Kge];dropdownWidthStyle;dropdownHeightStyle=``;isFocused=!1;locale;isComposing=!1;get overlayOrigin(){return this.elementRef}finalSize=Fe$1(()=>this.formSize?.()?this.formSize():this.compactSize?this.compactSize():this.size());finalVariant=Fe$1(()=>this.variant()||this.formVariant?.()||`outlined`);placement=G$1(`bottomLeft`);size=G$1(this.nzSize);variant=G$1(this.nzVariant);formSize=h(i3,{optional:!0});formVariant=h(xde,{optional:!0});compactSize=h(d5,{optional:!0});inputString=``;isOpening=!1;delayMenuTimer;delaySelectTimer;isNzDisableFirstChange=!0;selectedNodes=[];
338get inSearchingMode(){return this.cascaderService.inSearchingMode}set inputValue(s){this.inputString=s,this.toggleSearchingMode(!!s)}get inputValue(){return this.inputString}get hasInput(){return!!this.inputValue}get hasValue(){return this.cascaderService.values&&this.cascaderService.values.length>0}get showLabelRender(){return!this.hasInput&&!!this.selectedNodes.length}get showPlaceholder(){return!(this.hasInput||this.hasValue)}get clearIconVisible(){return this.nzAllowClear&&!this.nzDisabled&&(this.hasValue||this.hasInput)}get isLabelRenderTemplate(){return!!this.nzLabelRender}get openControlled(){return Zp$1(this.nzOpen)}constructor(){super(h(Zo)),this.cascaderService.withComponent(this),this.destroyRef.onDestroy(()=>{this.clearDelayMenuTimer(),this.clearDelaySelectTimer()}),vc$1(md,()=>{this.size.set(this.nzSize),this.cdr.markForCheck()})}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Vn$1((l,z)=>l.status===z.status&&l.hasFeedback===z.hasFeedback),be$1(this.destroyRef)).subscribe(({status:l,hasFeedback:z})=>this.setStatusStyles(l,z));let s=this.cascaderService;s.$redraw.pipe(be$1(this.destroyRef)).subscribe(()=>{this.checkChildren(),this.cdr.detectChanges(),this.reposition(),this.setDropdownStyles()}),s.$loading.pipe(be$1(this.destroyRef)).subscribe(l=>{this.isLoading=l}),s.$nodeSelected.pipe(be$1(this.destroyRef)).subscribe(l=>{l?(!this.nzMultiple&&(l.isLeaf||this.nzChangeOnSelect&&this.nzExpandTrigger===`hover`)&&this.delaySetMenuOpen(!1),this.nzSelectionChange.emit(this.getAncestorOptionList(l)),this.cdr.markForCheck()):(this.emitValue([]),this.nzSelectionChange.emit([]))}),s.$quitSearching.pipe(be$1(this.destroyRef)).subscribe(()=>{this.inputValue=``,this.dropdownWidthStyle=``}),this.i18nService.localeChange.pipe(mt$2(),be$1(this.destroyRef)).subscribe(()=>this.setLocale()),this.size.set(this.nzSize),this.setupSelectionChangeListener(),this.setupChangeListener(),this.setupKeydownListener(),this.setupFocusListener()}ngOnChanges(s){let{nzOpen:l,nzStatus:z,nzSize:b,nzPlacement:T,nzOptions:L,nzVariant:j}=s;if(l&&this.openControlled&&this.setMenuOpen(l.currentValue),L&&this.updateOptions(),z&&this.setStatusStyles(this.nzStatus,this.hasFeedback),b&&this.size.set(b.currentValue),j&&this.variant.set(j.currentValue),T){let{currentValue:H}=T;this.placement.set(H);let S=[`bottomLeft`,`topLeft`,`bottomRight`,`topRight`];H&&S.includes(H)?this.positions=[rt$1[H]]:this.positions=S.map(v=>rt$1[v])}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}writeValue(s){Zp$1(s)?(this.nzMultiple?this.cascaderService.values=T1e(s):this.cascaderService.values=[T1e(s)],this.clearSelectedNodes(),this.updateSelectedNodes(!0,!1)):(this.cascaderService.values=[],this.clearSelectedNodes(),this.selectedNodes=[],this.cascaderService.$redraw.next())}setupSelectionChangeListener(){ti(this.nzSelectionChange,this.nzRemoved,this.nzClear).pipe(be$1(this.destroyRef)).subscribe(()=>{this.updateSelectedNodes(),this.emitValue(this.cascaderService.values),this.cascaderService.$redraw.next()})}delaySetMenuOpen(s,l=100,z=!1){this.clearDelayMenuTimer(),l?(s&&z&&(this.isOpening=!0),this.delayMenuTimer=setTimeout(()=>{this.setMenuOpen(s),this.cdr.detectChanges(),this.clearDelayMenuTimer(),s&&setTimeout(()=>{this.isOpening=!1},100)},l)):this.setMenuOpen(s)}setMenuOpen(s){if(!(this.nzDisabled||this.menuOpen()===s)){if(this.openControlled&&this.nzOpen!==s){this.nzVisibleChange.emit(s),this.nzOpenChange.emit(s);return}s?(this.cascaderService.$redraw.next(),this.updateSelectedNodes(!0),this.scrollToActivatedOptions()):this.inputValue=``,this.menuOpen.set(s),this.nzVisibleChange.emit(s),this.nzOpenChange.emit(s),this.cdr.detectChanges()}}clearDelayMenuTimer(){this.delayMenuTimer&&(clearTimeout(this.delayMenuTimer),this.delayMenuTimer=void 0)}clearSelection(s){s&&(s.preventDefault(),s.stopPropagation()),this.clearSelectedNodes(),this.inputValue=``,this.setMenuOpen(!1),this.cascaderService.clear(),this.nzClear.emit()}clearSelectedNodes(){this.selectedNodes.forEach(s=>{this.removeSelected(s,!1)})}emitValue(s){this.nzMultiple?this.onChange(s):this.onChange(s?.length?s[0]:[])}
338getSubmitValue(){return this.nzMultiple?this.cascaderService.values:this.cascaderService.values?.length?this.cascaderService.values[0]:[]}focus(){this.isFocused||((this.input?.nativeElement||this.el).focus(),this.isFocused=!0)}blur(){this.isFocused&&((this.input?.nativeElement||this.el).blur(),this.isFocused=!1)}handleInputBlur(){this.menuOpen()?this.focus():this.blur()}handleInputFocus(){this.focus()}isComposingChange(s){this.isComposing=s}onTriggerClick(){this.nzDisabled||(this.nzShowSearch&&this.focus(),this.isActionTrigger(`click`)&&this.delaySetMenuOpen(!this.menuOpen(),100),this.onTouched())}onTriggerMouseEnter(){this.nzDisabled||!this.isActionTrigger(`hover`)||this.delaySetMenuOpen(!0,this.nzMouseEnterDelay,!0)}onTriggerMouseLeave(s){if(this.nzDisabled||!this.menuOpen()||this.isOpening||!this.isActionTrigger(`hover`)){s.preventDefault();return}let l=s.relatedTarget,z=this.el,b=this.menu&&this.menu.nativeElement;z.contains(l)||b&&b.contains(l)||this.delaySetMenuOpen(!1,this.nzMouseLeaveDelay)}onOptionMouseEnter(s,l,z){z.preventDefault(),this.nzExpandTrigger===`hover`&&(s.isLeaf?this.cascaderService.setNodeDeactivatedSinceColumn(l):this.delaySetOptionActivated(s,l,!1))}onOptionMouseLeave(s,l,z){z.preventDefault(),this.nzExpandTrigger===`hover`&&!s.isLeaf&&this.clearDelaySelectTimer()}getAncestorOptionList(s){let l=this.treeService.getAncestorNodeList(s);return this.treeService.toOptions(l)}updateSelectedNodes(s=!1,l=!0){let z=this.cascaderService.values,b=this.nzMultiple,T=L=>{this.selectedNodes=[...this.nzMultiple?this.getCheckedNodeList():this.getSelectedNodeList()].sort((j,H)=>{let S=z.indexOf(j.key),v=z.indexOf(H.key);return S!==-1&&v!==-1?S-v:S!==-1?-1:v!==-1?1:0}),L&&(this.cascaderService.values=this.selectedNodes.map(j=>this.getAncestorOptionList(j).map(H=>this.cascaderService.getOptionValue(H)))),this.cascaderService.$redraw.next()};if(s){let L=z[0],j=L?.length?L.length-1:0;this.treeService.fieldNames={value:this.nzValueProperty,label:this.nzLabelProperty},this.treeService.isMultiple=b,this.treeService.isCheckStrictly=!1;let H=()=>{b?this.treeService.conductCheckPaths(z,this.treeService.isCheckStrictly):this.treeService.conductSelectedPaths(z)},S=(v=0)=>{let _=()=>{let N=L?.[v];if(!Zp$1(N)){this.cascaderService.$redraw.next();return}let P=this.cascaderService.columns[v].find(ce=>this.cascaderService.getOptionValue(ce.origin)===N)||null;Zp$1(P)&&(this.cascaderService.setNodeActivated(P,v,!1,b,!1),v<j&&S(v+1)),H(),T(!1)};if(this.cascaderService.isLoaded(v)||!this.nzLoadData)_();else{let N=this.cascaderService.activatedNodes[v-1];this.cascaderService.loadChildren(N,v-1,_)}};if(this.nzLoadData)S();else{let v=this.coerceTreeNodes(this.nzOptions||[]);this.treeService.initTree(v),this.cascaderService.setColumnData(v,0),S()}}T(l)}onOptionClick(s,l,z){z&&z.preventDefault(),!(s&&s.isDisabled)&&(this.el.focus(),this.nzMultiple&&s.isLeaf?this.onOptionCheck(s,l,!0):this.inSearchingMode?this.cascaderService.setSearchOptionSelected(s,this.nzMultiple):this.cascaderService.setNodeActivated(s,l,!this.nzMultiple))}onOptionCheck(s,l,z=!1){!this.nzMultiple||s.isDisabled||s.isDisableCheckbox||(s.isChecked=!s.isChecked,s.isHalfChecked=!1,this.treeService.setCheckedNodeList(s),this.treeService.conduct(s,this.treeService.isCheckStrictly),this.inSearchingMode?this.cascaderService.setSearchOptionSelected(s,!0):z?this.cascaderService.setNodeActivated(s,l,!0,!0):this.cascaderService.setNodeSelected(s,l,!0))}removeSelected(s,l=!0){s.isSelected=!1,s.isChecked=!1,this.nzMultiple&&this.treeService.conduct(s,this.treeService.isCheckStrictly),this.treeService.setSelectedNodeList(s,this.nzMultiple),l&&this.nzRemoved.emit(s.origin)}onClickOutside(s){let l=dn$2(s);this.el.contains(l)||this.closeMenu()}onPositionChange(s){let l=J5(s);this.placement.set(l)}updateOptions(){let s=this.coerceTreeNodes(this.nzOptions||[]);this.treeService.initTree(s),this.cascaderService.setColumnData(s,0),this.updateSelectedNodes(!0),this.inSearchingMode&&(this.cascaderService.setSearchingMode(this.inSearchingMode),this.cascaderService.prepareSearchOptions(this.inputValue))}isActionTrigger(s){return typeof this.nzTriggerAction==`string`?this.nzTriggerAction===s:this.nzTriggerAction.indexOf(s)!==-1}
338onEnter(){let s=Math.max(this.cascaderService.activatedNodes.length-1,0),l=this.cascaderService.activatedNodes[s];l&&!l.isDisabled&&(this.nzMultiple?this.onOptionCheck(l,s,!0):this.inSearchingMode?this.cascaderService.setSearchOptionSelected(l):this.cascaderService.setNodeActivated(l,s,!0))}moveUpOrDown(s){let l=Math.max(this.cascaderService.activatedNodes.length-1,0),z=this.cascaderService.activatedNodes[l],b=this.cascaderService.columns[l]||[],T=b.length,L=-1;for(z?L=b.indexOf(z):L=s?T:-1;L=s?L-1:L+1,!(L<0||L>=T);){let j=b[L];if(!(!j||j.isDisabled||j.isDisableCheckbox)){this.cascaderService.setNodeActivated(j,l);break}}}prevColumn(){this.cascaderService.activatedNodes.length&&(this.cascaderService.activatedNodes.pop(),this.cascaderService.setNodeDeactivatedSinceColumn(this.cascaderService.activatedNodes.length),this.cascaderService.activatedNodes.length||this.setMenuOpen(!1))}nextColumn(){let s=this.cascaderService.activatedNodes.length,l=this.cascaderService.columns[s];if(l&&l.length){let z=l.find(b=>!b.isDisabled&&!b.isDisableCheckbox);z&&this.cascaderService.setNodeActivated(z,s)}}clearDelaySelectTimer(){this.delaySelectTimer&&(clearTimeout(this.delaySelectTimer),this.delaySelectTimer=void 0)}delaySetOptionActivated(s,l,z){this.clearDelaySelectTimer(),this.delaySelectTimer=setTimeout(()=>{this.cascaderService.setNodeActivated(s,l,z,this.nzMultiple),this.delaySelectTimer=void 0},150)}toggleSearchingMode(s){this.inSearchingMode!==s&&this.cascaderService.setSearchingMode(s),this.inSearchingMode&&this.cascaderService.prepareSearchOptions(this.inputValue)}isOptionActivated(s,l){return this.cascaderService.activatedNodes[l]===s}setDisabledState(s){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||s,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.closeMenu(),this.cdr.markForCheck()}closeMenu(){this.blur(),this.clearDelayMenuTimer(),this.setMenuOpen(!1),!this.hasValue&&this.cascaderService.columns.length&&this.cascaderService.dropBehindColumns(0)}reposition(){this.overlay&&this.overlay.overlayRef&&this.menuOpen()&&Promise.resolve().then(()=>{this.overlay.overlayRef.updatePosition(),this.cdr.markForCheck()})}checkChildren(){this.cascaderItems&&this.cascaderItems.forEach(s=>s.markForCheck())}setDropdownStyles(){let s=this.cascaderService.columns[0];this.shouldShowEmpty=this.inSearchingMode&&(!s||!s.length)||!(this.nzOptions&&this.nzOptions.length)&&!this.nzLoadData,this.dropdownHeightStyle=this.shouldShowEmpty?`auto`:``,this.input&&(this.dropdownWidthStyle=this.inSearchingMode||this.shouldShowEmpty?`${this.selectContainer.nativeElement.offsetWidth}px`:``)}setStatusStyles(s,l){this.status=s,this.hasFeedback=l,this.cdr.markForCheck(),this.statusCls=q1e(this.prefixCls,s,l),Object.keys(this.statusCls).forEach(z=>{this.statusCls[z]?this.renderer.addClass(this.elementRef.nativeElement,z):this.renderer.removeClass(this.elementRef.nativeElement,z)})}setLocale(){this.locale=this.i18nService.getLocaleData(`global`),this.cdr.markForCheck()}scrollToActivatedOptions(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.cascaderItems.toArray().filter(s=>s.activated).forEach(s=>{s.nativeElement.scrollIntoView({block:`start`,inline:`nearest`})})})})}setupChangeListener(){this.input$.pipe(Ve(s=>A1(s?.nativeElement,`change`)),be$1(this.destroyRef)).subscribe(s=>s.stopPropagation())}setupFocusListener(){this.input$.pipe(Ve(s=>A1(s?.nativeElement,`focus`)),be$1(this.destroyRef)).subscribe(()=>this.handleInputFocus()),this.input$.pipe(Ve(s=>A1(s?.nativeElement,`blur`)),be$1(this.destroyRef)).subscribe(()=>this.handleInputBlur())}setupKeydownListener(){A1(this.el,`keydown`).pipe(be$1(this.destroyRef)).subscribe(s=>{let l=s.keyCode;if(!(l!==40&&l!==38&&l!==37&&l!==39&&l!==13&&l!==8&&l!==27)){if(!this.menuOpen()&&l!==8&&l!==27)return this.ngZone.run(()=>this.setMenuOpen(!0));this.inSearchingMode&&(l===8||l===37||l===39)||this.menuOpen()&&(s.preventDefault(),this.ngZone.run(()=>{switch(l){case 40:this.moveUpOrDown(!1);break;case 38:this.moveUpOrDown(!0);break;case 37:this.dir()===`rtl`?this.nextColumn():this.prevColumn();break;case 39:this.dir()===`rtl`?this.prevColumn():this.nextColumn();break;case 13:this.onEnter();break;case 8:this.prevColumn()}this.cdr.markForCheck()}))}})}static ɵfac=function(l){return new(l||Go)};static ɵcmp=(function(){let s=[`selectContainer`],l=[`menu`],z=[`*`],b=D=>({$implicit:D});function T(D,Y){if(D&1&&(nn$1(0),an$3(1),rn$3()),D&2){let c=F$2();A(),vr$3(c)}}function L(D,Y){D&1&&(oe$2(0,`div`,5),qe$1(1,T,2,1,`ng-container`,10),he$1()),D&2&&(A(),ie$1(`nzStringTemplateOutlet`,Y))}function j(D,Y){if(D&1){let c=on();oe$2(0,`div`,11)(1,`nz-select-item`,14),vi$1(2,`nzDisplayRender`),vi$1(3,`nzDisplayRenderContext`),je$1(`delete`,function(){let W=gt$1(c).$implicit,se=F$2(3);return vt(se.removeSelected(W))}),he$1()()}if(D&2){let c=Y.$implicit,R=F$2(3);A(),ie$1(`disabled`,R.nzDisabled)(`label`,yi$2(2,4,c))(`contentTemplateOutlet`,R.isLabelRenderTemplate?R.nzLabelRender:null)(`contentTemplateOutletContext`,yi$2(3,6,c))}}function H(D,Y){if(D&1&&(oe$2(0,`div`,11),pt$1(1,`nz-select-item`,15),he$1()),D&2){let c=F$2(3);A(),ie$1(`label`,`+ `+(c.selectedNodes.length-c.nzMaxTagCount)+` ...`)}}function S(D,Y){if(D&1){let c=on();oe$2(0,`div`,7),Yl(1,j,4,8,`div`,11,jl),vi$1(3,`slice`),ve$1(4,H,2,1,`div`,11),oe$2(5,`div`,12)(6,`nz-select-search`,13),je$1(`isComposingChange`,function(W){gt$1(c);let se=F$2(2);return vt(se.isComposingChange(W))})(`valueChange`,function(W){gt$1(c);let se=F$2(2);return vt(se.inputValue=W)}
338),he$1()()()}if(D&2){let c=F$2(2);A(),Ul(EO(3,7,c.selectedNodes,0,c.nzMaxTagCount)),A(3),ye$1(c.selectedNodes.length>c.nzMaxTagCount?4:-1),A(2),ie$1(`showInput`,!!c.nzShowSearch)(`value`,c.inputValue)(`mirrorSync`,!0)(`disabled`,c.nzDisabled)(`autofocus`,c.nzAutoFocus)(`focusTrigger`,c.menuOpen())}}function v(D,Y){if(D&1&&(pt$1(0,`nz-select-item`,16),vi$1(1,`nzDisplayRender`),vi$1(2,`nzDisplayRenderContext`)),D&2){let c=F$2(3);ie$1(`disabled`,c.nzDisabled)(`label`,yi$2(1,4,c.selectedNodes[0]))(`contentTemplateOutlet`,c.isLabelRenderTemplate?c.nzLabelRender:null)(`contentTemplateOutletContext`,yi$2(2,6,c.selectedNodes[0]))}}function _(D,Y){if(D&1){let c=on();oe$2(0,`nz-select-search`,13),je$1(`isComposingChange`,function(W){gt$1(c);let se=F$2(2);return vt(se.isComposingChange(W))})(`valueChange`,function(W){gt$1(c);let se=F$2(2);return vt(se.inputValue=W)}),he$1(),ve$1(1,v,3,8,`nz-select-item`,16)}if(D&2){let c=F$2(2);ie$1(`showInput`,!!c.nzShowSearch)(`value`,c.inputValue)(`mirrorSync`,!1)(`disabled`,c.nzDisabled)(`autofocus`,c.nzAutoFocus)(`focusTrigger`,c.menuOpen()),A(),ye$1(c.showLabelRender?1:-1)}}function N(D,Y){if(D&1&&pt$1(0,`nz-select-placeholder`,17),D&2){let c=F$2(2);It$2(`display`,c.inputValue||c.isComposing?`none`:`block`),ie$1(`placeholder`,c.nzPlaceHolder||c.locale?.placeholder)}}function P(D,Y){if(D&1&&pt$1(0,`nz-icon`,22),D&2){let c=F$2(3);Ze(`ant-cascader-picker-arrow-expand`,c.menuOpen()),ie$1(`nzType`,c.nzSuffixIcon)}}function ce(D,Y){D&1&&pt$1(0,`nz-icon`,20)}function wt(D,Y){if(D&1&&pt$1(0,`nz-form-item-feedback-icon`,21),D&2){let c=F$2(3);ie$1(`status`,c.status)}}function St(D,Y){if(D&1&&(oe$2(0,`span`,18),ve$1(1,P,1,3,`nz-icon`,19)(2,ce,1,0,`nz-icon`,20),ve$1(3,wt,1,1,`nz-form-item-feedback-icon`,21),he$1()),D&2){let c=F$2(2);Ze(`ant-select-arrow-loading`,c.isLoading),A(),ye$1(c.isLoading?2:1),A(2),ye$1(c.hasFeedback&&c.status?3:-1)}}function en(D,Y){if(D&1){let c=on();oe$2(0,`nz-select-clear`,23),je$1(`clear`,function(W){gt$1(c);let se=F$2(2);return vt(se.clearSelection(W))}),he$1()}}function sn(D,Y){if(D&1&&(oe$2(0,`div`,4,1),ve$1(2,L,2,1,`div`,5),oe$2(3,`span`,6),ve$1(4,S,7,11,`div`,7)(5,_,2,7),ve$1(6,N,1,3,`nz-select-placeholder`,8),he$1()(),ve$1(7,St,4,4,`span`,9),ve$1(8,en,1,0,`nz-select-clear`)),D&2){let c,R=F$2();A(2),ye$1((c=R.nzPrefix)?2:-1,c),A(2),ye$1(R.nzMultiple?4:5),A(2),ye$1(R.showPlaceholder?6:-1),A(),ye$1(R.nzShowArrow?7:-1),A(),ye$1(R.clearIconVisible?8:-1)}}function $(D,Y){if(D&1&&Xs(0,25),D&2){let c=F$2(2),R=Wl(4);ie$1(`ngTemplateOutlet`,c.nzPopupRender)(`ngTemplateOutletContext`,ff(2,b,R))}}function pe(D,Y){if(D&1&&Xs(0,26),D&2){F$2(2);let c=Wl(4);ie$1(`ngTemplateOutlet`,c)}}function B(D,Y){if(D&1){let c=on();oe$2(0,`div`,24),hi$1(function(){gt$1(c);let W=F$2();return vt(W.slideAnimationLeave())}),ui(function(){gt$1(c);let W=F$2();return vt(W.slideAnimationEnter())}),je$1(`mouseenter`,function(){gt$1(c);let W=F$2();return vt(W.onTriggerMouseEnter())})(`mouseleave`,function(W){gt$1(c);let se=F$2();return vt(se.onTriggerMouseLeave(W))}),ve$1(1,$,1,4,`ng-container`,25)(2,pe,1,1,`ng-container`,26),he$1()}if(D&2){let c=F$2();Ze(`ant-select-dropdown-placement-bottomLeft`,c.placement()===`bottomLeft`)(`ant-select-dropdown-placement-bottomRight`,c.placement()===`bottomRight`)(`ant-select-dropdown-placement-topLeft`,c.placement()===`topLeft`)(`ant-select-dropdown-placement-topRight`,c.placement()===`topRight`)(`ant-cascader-dropdown-rtl`,c.dir()===`rtl`),ie$1(`nzNoAnimation`,c.noAnimation?.nzNoAnimation?.()),A(),ye$1(c.nzPopupRender?1:2)}}function ne(D,Y){if(D&1&&(oe$2(0,`ul`,29)(1,`li`,30),pt$1(2,`nz-embed-empty`,31),he$1()()),D&2){let c=F$2(2);It$2(`width`,c.dropdownWidthStyle)(`height`,c.dropdownHeightStyle),A(2),ie$1(`specificContent`,c.nzNotFoundContent)}}function ue(D,Y){if(D&1){let c=on();oe$2(0,`li`,35),je$1(`mouseenter`,function(W){let se=gt$1(c).$implicit,En=F$2().$index,Ei=F$2(3);return vt(Ei.onOptionMouseEnter(se,En,W))})(`mouseleave`,function(W){let se=gt$1(c).$implicit,En=F$2().$index,Ei=F$2(3);return vt(Ei.onOptionMouseLeave(se,En,W))})(`click`,function(W){let se=gt$1(c).$implicit,En=F$2().$index,Ei=F$2(3);return vt(Ei.onOptionClick(se,En,W))})(`check`,function(){let W=gt$1(c).$implicit,se=F$2().$index,En=F$2(3);return vt(En.onOptionCheck(W,se))}),he$1()}if(D&2){let c=Y.$implicit,R=F$2().$index,W=F$2(3);
338ie$1(`expandIcon`,W.nzExpandIcon)(`columnIndex`,R)(`nzLabelProperty`,W.nzLabelProperty)(`optionTemplate`,W.nzOptionRender)(`activated`,W.isOptionActivated(c,R))(`highlightText`,W.inSearchingMode?W.inputValue:``)(`node`,c)(`dir`,W.dir())(`checkable`,W.nzMultiple)}}function q(D,Y){if(D&1&&(oe$2(0,`ul`,33),Yl(1,ue,1,9,`li`,34,jl),he$1()),D&2){let c=Y.$implicit,R=F$2(3);Lt$1(R.nzColumnClassName),It$2(`height`,R.dropdownHeightStyle),A(),Ul(c)}}function ot(D,Y){if(D&1&&Yl(0,q,3,4,`ul`,32,jl),D&2){let c=F$2(2);Ul(c.cascaderService.columns)}}function rt(D,Y){if(D&1&&(oe$2(0,`div`,27,2),ve$1(2,ne,3,5,`ul`,28)(3,ot,2,0),he$1()),D&2){let c=F$2();ko$1(c.nzMenuStyle),Lt$1(c.nzMenuClassName),Ze(`ant-cascader-rtl`,c.dir()===`rtl`)(`ant-cascader-menus-hidden`,!c.menuOpen())(`ant-cascader-menu-empty`,c.shouldShowEmpty),A(2),ye$1(c.shouldShowEmpty?2:3)}}return Se$1({type:Go,selectors:[[`nz-cascader`],[``,`nz-cascader`,``]],viewQuery:function(Y,c){if(Y&1&&Kn(s,5)(Bi,5)(l,5)(i4,5)(ud,5),Y&2){let R;Ge(R=Ke())&&(c.selectContainer=R.first),Ge(R=Ke())&&(c.input=R.first),Ge(R=Ke())&&(c.menu=R.first),Ge(R=Ke())&&(c.overlay=R.first),Ge(R=Ke())&&(c.cascaderItems=R)}},hostAttrs:[1,`ant-select`,`ant-cascader`],hostVars:33,hostBindings:function(Y,c){Y&1&&je$1(`click`,function(){return c.onTriggerClick()})(`mouseenter`,function(){return c.onTriggerMouseEnter()})(`mouseleave`,function(W){return c.onTriggerMouseLeave(W)}),Y&2&&($t(`tabIndex`,`0`),Ze(`ant-select-in-form-item`,!!c.nzFormStatusService)(`ant-select-lg`,c.finalSize()===`large`)(`ant-select-sm`,c.finalSize()===`small`)(`ant-select-allow-clear`,c.nzAllowClear)(`ant-select-show-arrow`,c.nzShowArrow)(`ant-select-show-search`,!!c.nzShowSearch)(`ant-select-disabled`,c.nzDisabled)(`ant-select-outlined`,c.finalVariant()===`outlined`)(`ant-select-borderless`,c.finalVariant()===`borderless`)(`ant-select-filled`,c.finalVariant()===`filled`)(`ant-select-underlined`,c.finalVariant()===`underlined`)(`ant-select-open`,c.menuOpen())(`ant-select-focused`,c.isFocused)(`ant-select-multiple`,c.nzMultiple)(`ant-select-single`,!c.nzMultiple)(`ant-select-rtl`,c.dir()===`rtl`))},inputs:{nzOpen:`nzOpen`,nzOptions:`nzOptions`,nzOptionRender:`nzOptionRender`,nzShowInput:[2,`nzShowInput`,`nzShowInput`,H$2],nzShowArrow:[2,`nzShowArrow`,`nzShowArrow`,H$2],nzAllowClear:[2,`nzAllowClear`,`nzAllowClear`,H$2],nzAutoFocus:[2,`nzAutoFocus`,`nzAutoFocus`,H$2],nzChangeOnSelect:[2,`nzChangeOnSelect`,`nzChangeOnSelect`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzColumnClassName:`nzColumnClassName`,nzExpandTrigger:`nzExpandTrigger`,nzValueProperty:`nzValueProperty`,nzLabelProperty:`nzLabelProperty`,nzLabelRender:`nzLabelRender`,nzVariant:`nzVariant`,nzNotFoundContent:`nzNotFoundContent`,nzSize:`nzSize`,nzBackdrop:`nzBackdrop`,nzShowSearch:`nzShowSearch`,nzPlaceHolder:`nzPlaceHolder`,nzMenuClassName:`nzMenuClassName`,nzMenuStyle:`nzMenuStyle`,nzMouseLeaveDelay:[2,`nzMouseLeaveDelay`,`nzMouseLeaveDelay`,Oo$1],nzMouseEnterDelay:[2,`nzMouseEnterDelay`,`nzMouseEnterDelay`,Oo$1],nzStatus:`nzStatus`,nzMultiple:[2,`nzMultiple`,`nzMultiple`,H$2],nzMaxTagCount:`nzMaxTagCount`,nzPlacement:`nzPlacement`,nzTriggerAction:`nzTriggerAction`,nzChangeOn:`nzChangeOn`,nzLoadData:`nzLoadData`,nzPrefix:`nzPrefix`,nzSuffixIcon:`nzSuffixIcon`,nzExpandIcon:`nzExpandIcon`,nzPopupRender:`nzPopupRender`},outputs:{nzVisibleChange:`nzVisibleChange`,nzOpenChange:`nzOpenChange`,nzSelectionChange:`nzSelectionChange`,nzRemoved:`nzRemoved`,nzClear:`nzClear`},exportAs:[`nzCascader`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>Go),multi:!0},{provide:u5,useValue:`select`},Xo,Zo]),pi$1([$D]),tn$2,Te$1],ngContentSelectors:z,decls:5,vars:6,consts:[[`menuTemplate`,``],[`selectContainer`,``],[`menu`,``],[`cdkConnectedOverlay`,``,`nzConnectedOverlay`,``,`cdkConnectedOverlayTransformOriginOn`,`.ant-cascader-dropdown`,3,`overlayOutsideClick`,`detach`,`positionChange`,`cdkConnectedOverlayOffsetY`,`cdkConnectedOverlayHasBackdrop`,`cdkConnectedOverlayOrigin`,`cdkConnectedOverlayPositions`,`cdkConnectedOverlayOpen`],[1,`ant-select-selector`],[1,`ant-select-prefix`],[1,`ant-select-selection-wrap`],[1,`ant-select-selection-overflow`],[3,`placeholder`,`display`],[1,`ant-select-arrow`,3,`ant-select-arrow-loading`],[4,`nzStringTemplateOutlet`],[1,`ant-select-selection-overflow-item`],[1,`ant-select-selection-overflow-item`,`ant-select-selection-overflow-item-suffix`],[3,`isComposingChange`,`valueChange`,`showInput`,`value`,`mirrorSync`,`disabled`,`autofocus`,`focusTrigger`],[`deletable`,``,3,`delete`,`disabled`,`label`,`contentTemplateOutlet`,`contentTemplateOutletContext`],[3,`label`],[3,`disabled`,`label`,`contentTemplateOutlet`,`contentTemplateOutletContext`],[3,`placeholder`],[1,`ant-select-arrow`],[3,`nzType`,`ant-cascader-picker-arrow-expand`],[`nzType`,`loading`],[3,`status`],[3,`nzType`],[3,`clear`],[1,`ant-select-dropdown`,`ant-cascader-dropdown`,3,`mouseenter`,`mouseleave`,`nzNoAnimation`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`ngTemplateOutlet`],[1,`ant-cascader-menus`],[1,`ant-cascader-menu`,3,`width`,`height`],[1,`ant-cascader-menu`],[1,`ant-cascader-menu-item`,`ant-cascader-menu-item-disabled`],[`nzComponentName`,`cascader`,1,`ant-cascader-menu-item-content`,3,`specificContent`],[`role`,`menuitemcheckbox`,1,`ant-cascader-menu`,3,`class`,`height`],[`role`,`menuitemcheckbox`,1,`ant-cascader-menu`],[`nz-cascader-option`,``,3,`expandIcon`,`columnIndex`,`nzLabelProperty`,`optionTemplate`,`activated`,`highlightText`,`node`,`dir`,`checkable`],[`nz-cascader-option`,``,3,`mouseenter`,`mouseleave`,`click`,`check`,`expandIcon`,`columnIndex`,`nzLabelProperty`,`optionTemplate`,`activated`,`highlightText`,`node`,`dir`,`checkable`]],template:function(Y,c){Y&1&&(yn$1(),ve$1(0,sn,9,5),Wt$1(1),qe$1(2,B,3,12,`ng-template`,3),je$1(`overlayOutsideClick`,function(W){return c.onClickOutside(W)})(`detach`,function(){return c.closeMenu()})(`positionChange`,function(W){return c.onPositionChange(W)}),qe$1(3,rt,4,11,`ng-template`,null,0,ql$1)),Y&2&&(ye$1(c.nzShowInput?0:-1),A(2),ie$1(`cdkConnectedOverlayOffsetY`,c.placement().startsWith(`top`)?-4:4)(`cdkConnectedOverlayHasBackdrop`,c.nzBackdrop)(`cdkConnectedOverlayOrigin`,c.overlayOrigin)(`cdkConnectedOverlayPositions`,c.positions)(`cdkConnectedOverlayOpen`,c.menuOpen()))},dependencies:[ka$1,X5,i4,JL,fr$2,xr$2,Gt$2,yr$3,Pi$1,_de,e9e,Jge,as,Mr,xr$3,Tr$2,Bi,ud,er$1,VA,Qp,qp],encapsulation:2})})()}})();var hd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[Gr]})}return n})();var Zp=()=>({standalone:!0});var yi=class n extends de$1{static KEY=`cascader`;clearText;showArrow;showInput;triggerAction=[`click`];data=G$1([]);loadData;ngOnInit(){let{clearText:i,showArrow:e,showInput:t,triggerAction:o,asyncData:r}=this.ui;this.clearText=i??`清除`,this.showArrow=Ee$2(e,!0),this.showInput=Ee$2(t,!0),this.triggerAction=o??[`click`],r&&(this.loadData=(a,d)=>r(a,d,this))}reset(i){_r$2(this.schema,{},i).subscribe(e=>{this.data.set(e)})}_openChange(i){this.ui.openChange?.(i)}_change(i){this.setValue(i??this.ui.clearValue),this.ui.change?.(i)}_selectionChange(i){this.ui.selectionChange?.(i)}_clear(){this.ui.clear?.()}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-cascader`]],features:[tn$2],decls:2,vars:33,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzClear`,`nzOpenChange`,`nzSelectionChange`,`nzDisabled`,`nzSize`,`ngModel`,`ngModelOptions`,`nzOptions`,`nzAllowClear`,`nzAutoFocus`,`nzChangeOn`,`nzChangeOnSelect`,`nzColumnClassName`,`nzExpandTrigger`,`nzMenuClassName`,`nzMenuStyle`,`nzNotFoundContent`,`nzLabelProperty`,`nzValueProperty`,`nzLoadData`,`nzPlaceHolder`,`nzPlacement`,`nzShowArrow`,`nzShowInput`,`nzShowSearch`,`nzMultiple`,`nzTriggerAction`,`nzVariant`,`nzSuffixIcon`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-cascader`,1),hI(),je$1(`ngModelChange`,function(r){return t._change(r)})(`nzClear`,function(){return t._clear()})(`nzOpenChange`,function(r){return t._openChange(r)})(`nzSelectionChange`,function(r){return t._selectionChange(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzDisabled`,t.disabled)(`nzSize`,t.ui.size)(`ngModel`,t.value)(`ngModelOptions`,MO(32,Zp))(`nzOptions`,t.data())(`nzAllowClear`,t.ui.allowClear)(`nzAutoFocus`,t.ui.autoFocus)(`nzChangeOn`,t.ui.changeOn)(`nzChangeOnSelect`,t.ui.changeOnSelect)(`nzColumnClassName`,t.ui.columnClassName)(`nzExpandTrigger`,t.ui.expandTrigger)(`nzMenuClassName`,t.ui.menuClassName)(`nzMenuStyle`,t.ui.menuStyle)(`nzNotFoundContent`,t.ui.notFoundContent)(`nzLabelProperty`,t.ui.labelProperty??`label`)(`nzValueProperty`,t.ui.valueProperty??`value`)(`nzLoadData`,t.loadData)(`nzPlaceHolder`,t.ui.placeholder)(`nzPlacement`,t.ui.placement??`bottomLeft`)(`nzShowArrow`,t.showArrow)(`nzShowInput`,t.showInput)(`nzShowSearch`,t.ui.showSearch)(`nzMultiple`,t.ui.multiple)(`nzTriggerAction`,t.triggerAction)(`nzVariant`,t.ui.variant??`outlined`)(`nzSuffixIcon`,t.ui.suffixIcon),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,hd,Gr],encapsulation:2})};function fd(){return{KEY:yi.KEY,type:yi}}var Xp=()=>({standalone:!0});
338function Jp(n,i){if(n&1&&pt$1(0,`nz-color-block`,1),n&2){let e=F$2(),t=pO(0);ie$1(`nzColor`,e.value)(`nzSize`,t)}}function eu(n,i){if(n&1){let e=on();oe$2(0,`nz-color-picker`,3),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.setValue(o))})(`nzOnChange`,function(o){gt$1(e);let r=F$2();return vt(r._change(o))})(`nzOnFormatChange`,function(o){gt$1(e);let r=F$2();return vt(r._formatChange(o))})(`nzOnClear`,function(){gt$1(e);let o=F$2();return vt(o._clear())}),he$1()}if(n&2){let e=F$2(),t=pO(0);ie$1(`ngModel`,e.value)(`ngModelOptions`,MO(13,Xp))(`nzDisabled`,e.disabled)(`nzSize`,t)(`nzDefaultValue`,e.ui.defaultValue??``)(`nzFormat`,e.ui.format??null)(`nzTrigger`,e.ui.trigger??`click`)(`nzTitle`,e.ui.title??``)(`nzFlipFlop`,e.ui.flipFlop)(`nzShowText`,e.ui.showText)(`nzAllowClear`,e.ui.allowClear)(`nzDisabledAlpha`,e.ui.disabledAlpha)(`nzPresets`,e.ui.presets??null),pI()}}var vi=class n extends de$1{static KEY=`color`;_change(i){this.ui.change?.(i)}_formatChange(i){this.ui.formatChange?.(i)}_clear(){this.setValue(``),this.ui.onClear?.()}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-color`]],features:[tn$2],decls:4,vars:8,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzColor`,`nzSize`],[3,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzDefaultValue`,`nzFormat`,`nzTrigger`,`nzTitle`,`nzFlipFlop`,`nzShowText`,`nzAllowClear`,`nzDisabledAlpha`,`nzPresets`],[3,`ngModelChange`,`nzOnChange`,`nzOnFormatChange`,`nzOnClear`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzDefaultValue`,`nzFormat`,`nzTrigger`,`nzTitle`,`nzFlipFlop`,`nzShowText`,`nzAllowClear`,`nzDisabledAlpha`,`nzPresets`]],template:function(e,t){e&1&&(By(0),oe$2(1,`sf-item-wrap`,0),ve$1(2,Jp,1,2,`nz-color-block`,1)(3,eu,1,14,`nz-color-picker`,2),he$1()),e&2&&(fO(t.ui.size),A(),ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ye$1(t.ui.block?2:3))},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,_n$2,nt$1,bn$4],encapsulation:2})};function gd(){return{KEY:vi.KEY,type:vi}}var tu=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵdir=j({type:n,selectors:[[``,`nzMentionSuggestion`,``]],exportAs:[`nzMentionSuggestion`]})}return n})();var Yi={split:` `};var Jo=(()=>{class n{elementRef=h($$2);ngZone=h(B$2);cdr=h(Qe$1);destroyRef=h(re$1);onFocusin=new O$1;onBlur=new O$1;onInput=new O$1;onKeydown=new O$1;onClick=new O$1;value=G$1(``);disabled=G$1(!1);constructor(){this.destroyRef.onDestroy(()=>{this.completeEvents()}),Rt$2(()=>{this.setupEventListener(`blur`,this.onBlur),this.setupEventListener(`focusin`,this.onFocusin),this.setupEventListener(`input`,this.onInput),this.setupEventListener(`click`,this.onClick),this.setupEventListener(`keydown`,this.onKeydown)})}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(e=null){this.elementRef.nativeElement.focus(),this.elementRef.nativeElement.setSelectionRange(e,e)}insertMention(e){let t=this.elementRef.nativeElement.value,o=`${e.mention}${Yi.split}`,r=[t.slice(0,e.startPos+1),o,t.slice(e.endPos,t.length)].join(``);this.elementRef.nativeElement.value=r,this.focus(e.startPos+o.length+1),this.onChange(r),this.value.set(r)}clear(){this.value.set(``),this.elementRef.nativeElement.value=``,this.onChange(``)}
338writeValue(e){let t=typeof e==`string`?e:``;this.value.set(t),this.elementRef.nativeElement.value=t}onChange=()=>{};onTouched=()=>{};registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}handleBlur(){this.onTouched()}setupEventListener(e,t){A1(this.elementRef.nativeElement,e).pipe(be$1(this.destroyRef)).subscribe(o=>{t.observers.length&&this.ngZone.run(()=>{t.emit(o),this.cdr.markForCheck()})})}static ɵfac=function(t){return new(t||n)};static ɵdir=j({type:n,selectors:[[`input`,`nzMentionTrigger`,``],[`textarea`,`nzMentionTrigger`,``]],hostAttrs:[`autocomplete`,`off`],hostBindings:function(t,o){t&1&&je$1(`blur`,function(){return o.handleBlur()})},outputs:{onFocusin:`onFocusin`,onBlur:`onBlur`,onInput:`onInput`,onKeydown:`onKeydown`,onClick:`onClick`},exportAs:[`nzMentionTrigger`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>n),multi:!0}])]})}return n})();var Zr=(()=>{class n{ngZone=h(B$2);dir=h(Ue$1).valueSignal;cdr=h(Qe$1);injector=h(U$2);viewContainerRef=h(Dt$4);elementRef=h($$2);renderer=h(We$2);destroyRef=h(re$1);nzFormStatusService=h(Sde,{optional:!0});nzValueWith=e=>e;nzPrefix=`@`;nzLoading=!1;nzNotFoundContent=`无匹配结果,轻敲空格完成输入`;nzPlacement=`bottom`;nzSuggestions=[];nzStatus=``;nzVariant=void 0;nzAllowClear=!1;nzClearIcon=null;nzOnSelect=new O$1;nzOnSearchChange=new O$1;nzOnClear=new O$1;suggestionsTemp;items;set suggestionChild(e){e&&(this.suggestionTemplate=e)}trigger=cb.required(Jo);isOpen=!1;filteredSuggestions=[];suggestionTemplate=null;activeIndex=-1;prefixCls=`ant-mentions`;statusCls={};status=``;hasFeedback=!1;focused=G$1(!1);disabled=Fe$1(()=>this.trigger().disabled());hasValue=Fe$1(()=>!!this.trigger()?.value().trim());previousValue=null;cursorMention=null;cursorMentionStart;cursorMentionEnd;overlayRef=null;portal;positionStrategy;overlayOutsideClickSubscription;document=h(z$2);get triggerNativeElement(){return this.trigger().elementRef.nativeElement}get focusItemElement(){let e=this.items?.toArray();return e&&e[this.activeIndex]?e[this.activeIndex].nativeElement:null}formVariant=h(xde,{optional:!0});variant=G$1(this.nzVariant);finalVariant=Fe$1(()=>this.variant()||this.formVariant?.()||`outlined`);constructor(){this.destroyRef.onDestroy(()=>{this.closeDropdown()}),Jt$1(()=>{this.trigger()&&(this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null)})}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Vn$1((e,t)=>e.status===t.status&&e.hasFeedback===t.hasFeedback),be$1(this.destroyRef)).subscribe(({status:e,hasFeedback:t})=>{this.setStatusStyles(e,t)})}ngOnChanges(e){let{nzSuggestions:t,nzStatus:o,nzVariant:r}=e;t&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1)),o&&this.setStatusStyles(this.nzStatus,this.hasFeedback),r&&this.variant.set(r.currentValue)}ngAfterViewInit(){this.items.changes.pipe(mt$2(this.items),Ve(()=>{let e=this.items.toArray();return ti(...e.map(t=>A1(t.nativeElement,`mousedown`)))})).subscribe(e=>{e.preventDefault()})}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger()?F1e(this.trigger().value(),this.nzPrefix):[]}selectSuggestion(e){let t=this.nzValueWith(e);this.trigger().insertMention({mention:t,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(e),this.closeDropdown(),this.activeIndex=-1}clear(){this.closeDropdown(),this.trigger().clear(),this.nzOnClear.emit()}handleInput(e){let t=e.target;this.trigger().onChange(t.value),this.trigger().value.set(t.value),this.resetDropdown()}handleKeydown(e){let t=e.keyCode;if(this.isOpen&&t===13&&this.activeIndex!==-1&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),e.preventDefault();else if(t===37||t===39)this.resetDropdown(),e.stopPropagation();else{if(this.isOpen&&(t===9||t===27)){this.closeDropdown();return}this.isOpen&&t===38&&(this.setPreviousItemActive(),e.preventDefault(),e.stopPropagation()),this.isOpen&&t===40&&(this.setNextItemActive(),e.preventDefault(),e.stopPropagation())}}handleClick(){this.resetDropdown(!1)}bindTriggerEvents(){this.trigger().onFocusin.subscribe(()=>this.focused.set(!0)),this.trigger().onBlur.subscribe(()=>this.focused.set(!1)),this.trigger().onInput.subscribe(e=>this.handleInput(e)),this.trigger().onKeydown.subscribe(e=>this.handleKeydown(e)),this.trigger().onClick.subscribe(()=>this.handleClick())}suggestionsFilter(e,t){let o=e.substring(1);if(this.previousValue===e&&e!==this.cursorMention[0])return;this.previousValue=e,t&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});let r=o.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(a=>this.nzValueWith(a).toLowerCase().includes(r))}resetDropdown(e=!0){if(this.resetCursorMention(),typeof this.cursorMention!=`
338string`||!this.canOpen()){this.closeDropdown();return}this.suggestionsFilter(this.cursorMention,e);let t=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=t>=0?t:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:`smooth`,block:`center`,inline:`nearest`})}canOpen(){let e=this.triggerNativeElement;return!e.readOnly&&!e.disabled}resetCursorMention(){let e=this.triggerNativeElement.value.replace(/[\r\n]/g,Yi.split)||``,t=this.triggerNativeElement.selectionStart,o=typeof this.nzPrefix==`string`?[this.nzPrefix]:this.nzPrefix,r=o.length;for(;r>=0;){let a=e.lastIndexOf(o[r],t),d=e.indexOf(Yi.split,t)>-1?e.indexOf(Yi.split,t):e.length,m=e.substring(a,d);if(a<0||m.includes(o[r],1)||m.includes(Yi.split))this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1;else{this.cursorMention=m,this.cursorMentionStart=a,this.cursorMentionEnd=d;return}r--}}updatePositions(){let e=Y1e(this.triggerNativeElement,this.cursorMentionStart),t=e.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+(this.nzPlacement===`bottom`?e.height-6:-6),o=e.left-this.triggerNativeElement.scrollLeft;this.positionStrategy.withDefaultOffsetX(o).withDefaultOffsetY(t),this.nzPlacement===`bottom`&&this.positionStrategy.withPositions([...Qge]),this.nzPlacement===`top`&&this.positionStrategy.withPositions([...Zge]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){let e=o=>{let r=o.target;return this.isOpen&&r!==this.triggerNativeElement&&!this.overlayRef?.overlayElement.contains(r)},t=new ue$1;return t.add(this.overlayRef.outsidePointerEvents().subscribe(o=>e(o)&&this.closeDropdown())),t.add(A1(this.document,`touchend`).subscribe(o=>e(o)&&this.ngZone.run(()=>this.closeDropdown()))),t}attachOverlay(){this.overlayRef||(this.portal=new Wo$2(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=Ai(this.injector,{positionStrategy:this.getOverlayPosition(),scrollStrategy:G5(this.injector),disposeOnNavigation:!0})),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayPosition(){return this.positionStrategy=Z5(this.injector,this.trigger().elementRef).withPositions([new st$2({originX:`start`,originY:`bottom`},{overlayX:`start`,overlayY:`top`}),new st$2({originX:`start`,originY:`top`},{overlayX:`start`,overlayY:`bottom`})]).withFlexibleDimensions(!1).withPush(!1)}setStatusStyles(e,t){this.status=e,this.hasFeedback=t,this.cdr.markForCheck(),this.statusCls=q1e(this.prefixCls,e,t),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.elementRef.nativeElement,o):this.renderer.removeClass(this.elementRef.nativeElement,o)})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`items`],t=[`*`],o=L=>({$implicit:L});function r(L,j){L&1&&Xs(0)}function a(L,j){if(L&1&&qe$1(0,r,1,0,`ng-container`,9),L&2){let H=F$2().$implicit,S=F$2(2);ie$1(`ngTemplateOutlet`,S.suggestionTemplate)(`ngTemplateOutletContext`,ff(2,o,H))}}function d(L,j){if(L&1&&an$3(0),L&2){let H=F$2().$implicit,S=F$2(2);Io$1(` `,S.nzValueWith(H),` `)}}function m(L,j){if(L&1){let H=on();oe$2(0,`li`,8,1),je$1(`click`,function(){let v=gt$1(H).$implicit,_=F$2(2);return vt(_.selectSuggestion(v))}),ve$1(2,a,1,4,`ng-container`)(3,d,1,1),he$1()}if(L&2){let H=j.$index,S=F$2(2);Ze(`ant-mentions-dropdown-menu-item-active`,H===S.activeIndex)(`ant-mentions-dropdown-menu-item-selected`,H===S.activeIndex),A(2),ye$1(S.suggestionTemplate?2:3)}}function g(L,j){L&1&&(oe$2(0,`span`),pt$1(1,`nz-icon`,10),he$1())}function x(L,j){if(L&1&&(oe$2(0,`span`),pt$1(1,`nz-embed-empty`,11),he$1()),L&2){let H=F$2(3);A(),ie$1(`specificContent`,H.nzNotFoundContent)}}function s(L,j){if(L&1&&(oe$2(0,`li`,7),ve$1(1,g,2,0,`span`)(2,x,2,1,`span`),he$1()),L&2){let H=F$2(2);A(),ye$1(H.nzLoading?1:2)}}
338function l(L,j){if(L&1&&(oe$2(0,`div`,4)(1,`ul`,5),Yl(2,m,4,5,`li`,6,jl,!1,s,3,1,`li`,7),he$1()()),L&2){let H=F$2();A(2),Ul(H.filteredSuggestions)}}function z(L,j){if(L&1&&pt$1(0,`nz-form-item-feedback-icon`,2),L&2){let H=F$2();ie$1(`status`,H.status)}}function b(L,j){L&1&&pt$1(0,`nz-icon`,14)}function T(L,j){if(L&1){let H=on();oe$2(0,`span`,3)(1,`button`,12),je$1(`click`,function(){gt$1(H);let v=F$2();return vt(v.clear())}),qe$1(2,b,1,0,`ng-template`,13),he$1()()}if(L&2){let H=F$2();A(2),ie$1(`nzStringTemplateOutlet`,H.nzClearIcon)}}return Se$1({type:n,selectors:[[`nz-mention`]],contentQueries:function(j,H,S){if(j&1&&(Dd$1(S,H.trigger,Jo,5),bn$3(S,tu,5,yt$1)),j&2){Sd$1();let v;Ge(v=Ke())&&(H.suggestionChild=v.first)}},viewQuery:function(j,H){if(j&1&&Kn(yt$1,5)(e,5,$$2),j&2){let S;Ge(S=Ke())&&(H.suggestionsTemp=S.first),Ge(S=Ke())&&(H.items=S)}},hostAttrs:[1,`ant-mentions`],hostVars:14,hostBindings:function(j,H){j&2&&Ze(`ant-mentions-rtl`,H.dir()===`rtl`)(`ant-mentions-outlined`,H.finalVariant()===`outlined`)(`ant-mentions-borderless`,H.finalVariant()===`borderless`)(`ant-mentions-filled`,H.finalVariant()===`filled`)(`ant-mentions-underlined`,H.finalVariant()===`underlined`)(`ant-mentions-focused`,H.focused())(`ant-mentions-disabled`,H.disabled())},inputs:{nzValueWith:`nzValueWith`,nzPrefix:`nzPrefix`,nzLoading:[2,`nzLoading`,`nzLoading`,H$2],nzNotFoundContent:`nzNotFoundContent`,nzPlacement:`nzPlacement`,nzSuggestions:`nzSuggestions`,nzStatus:`nzStatus`,nzVariant:`nzVariant`,nzAllowClear:[2,`nzAllowClear`,`nzAllowClear`,H$2],nzClearIcon:`nzClearIcon`},outputs:{nzOnSelect:`nzOnSelect`,nzOnSearchChange:`nzOnSearchChange`,nzOnClear:`nzOnClear`},exportAs:[`nzMention`],features:[Te$1],ngContentSelectors:t,decls:5,vars:2,consts:[[`suggestions`,``],[`items`,``],[1,`ant-mentions-suffix`,3,`status`],[1,`ant-mentions-suffix`],[1,`ant-mentions-dropdown`],[`role`,`menu`,`tabindex`,`0`,1,`ant-mentions-dropdown-menu`],[`role`,`menuitem`,`tabindex`,`-1`,1,`ant-mentions-dropdown-menu-item`,3,`ant-mentions-dropdown-menu-item-active`,`ant-mentions-dropdown-menu-item-selected`],[1,`ant-mentions-dropdown-menu-item`,`ant-mentions-dropdown-menu-item-disabled`],[`role`,`menuitem`,`tabindex`,`-1`,1,`ant-mentions-dropdown-menu-item`,3,`click`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`nzType`,`loading`],[`nzComponentName`,`select`,3,`specificContent`],[`type`,`button`,`tabindex`,`-1`,1,`ant-mentions-clear-icon`,3,`click`],[3,`nzStringTemplateOutlet`],[`nzType`,`close-circle`,`nzTheme`,`fill`]],template:function(j,H){j&1&&(yn$1(),Wt$1(0),qe$1(1,l,5,1,`ng-template`,null,0,ql$1),ve$1(3,z,1,1,`nz-form-item-feedback-icon`,2),ve$1(4,T,3,1,`span`,3)),j&2&&(A(3),ye$1(H.hasFeedback&&H.status?3:-1),A(),ye$1(H.nzAllowClear&&H.hasValue()?4:-1))},dependencies:[ka$1,xr$2,Gt$2,yr$3,Pi$1,_de,er$1],encapsulation:2})})()}return n})();var zd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[Zr]})}return n})();var iu=[`mentions`];var Cd=()=>({standalone:!0});function ou(n,i){if(n&1){let e=on();oe$2(0,`textarea`,5),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.setValue(o))}),an$3(1,`          `),he$1()}if(n&2){let e=F$2(),t=pO(0);ie$1(`disabled`,e.disabled)(`nzSize`,e.ui.size)(`ngModel`,e.value)(`ngModelOptions`,MO(10,Cd))(`cdkAutosizeMinRows`,e.i.autosize?.minRows??1)(`cdkAutosizeMaxRows`,e.i.autosize?.maxRows??0),$t(`id`,e.id)(`disabled`,e.disabled)(`maxLength`,t)(`placeholder`,e.ui.placeholder),pI()}}function ru(n,i){if(n&1){let e=on();oe$2(0,`input`,6),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.setValue(o))}),he$1()}if(n&2){let e=F$2(),t=pO(0);ie$1(`disabled`,e.disabled)(`nzSize`,e.ui.size)(`ngModel`,e.value)(`ngModelOptions`,MO(8,Cd)),$t(`id`,e.id)(`disabled`,e.disabled)(`maxLength`,t)(`placeholder`,e.ui.placeholder),pI()}}var _i=class n extends de$1{static KEY=`mention`;mentionChild=sb.required(`mentions`);data=G$1([]);i;loading=G$1(!1);ngOnInit(){let{valueWith:i,notFoundContent:e,placement:t,prefix:o,autosize:r}=this.ui;this.i={valueWith:i??(x=>x.label),notFoundContent:e??`无匹配结果,轻敲空格完成输入`,placement:t??`bottom`,prefix:o??`@`,autosize:typeof r>`u`?!0:this.ui.autosize};let{minimum:a,maximum:d}=this.schema,m=typeof a<`u`?a:-1,g=typeof d<`u`?d:-1;
338!this.ui.validator&&(m!==-1||g!==-1)&&(this.ui.validator=(()=>{let x=this.mentionChild().getMentions().length;return m!==-1&&x<m?[{keyword:`mention`,message:`\u6700\u5C11\u63D0\u53CA ${m} \u6B21`}]:g!==-1&&x>g?[{keyword:`mention`,message:`\u6700\u591A\u63D0\u53CA ${g} \u6B21`}]:null}))}reset(){_r$2(this.schema,this.ui,null).subscribe(i=>{this.data.set(i)})}_select(i){this.ui.select?.(i)}_search(i){typeof this.ui.loadData==`function`&&(this.loading.set(!0),this.ui.loadData(i).pipe(Je$2(()=>this.loading.set(!1)),P$2(e=>Fu$1(e,null,this.schema.readOnly))).subscribe(e=>{this.data.set(e)}))}_clear(){this.setValue(``),this.ui.onClear?.()}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-mention`]],viewQuery:function(e,t){e&1&&_d$2(t.mentionChild,iu,5),e&2&&Sd$1()},features:[tn$2],decls:6,vars:16,consts:[[`mentions`,``],[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzOnSelect`,`nzOnSearchChange`,`nzOnClear`,`nzSuggestions`,`nzValueWith`,`nzLoading`,`nzNotFoundContent`,`nzPlacement`,`nzPrefix`,`nzAllowClear`,`nzVariant`],[`nzMentionTrigger`,``,`nz-input`,``,`cdkTextareaAutosize`,``,3,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`,`cdkAutosizeMinRows`,`cdkAutosizeMaxRows`],[`nzMentionTrigger`,``,`nz-input`,``,`autocomplete`,`off`,3,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`],[`nzMentionTrigger`,``,`nz-input`,``,`cdkTextareaAutosize`,``,3,`ngModelChange`,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`,`cdkAutosizeMinRows`,`cdkAutosizeMaxRows`],[`nzMentionTrigger`,``,`nz-input`,``,`autocomplete`,`off`,3,`ngModelChange`,`disabled`,`nzSize`,`ngModel`,`ngModelOptions`]],template:function(e,t){e&1&&(By(0),oe$2(1,`sf-item-wrap`,1)(2,`nz-mention`,2,0),je$1(`nzOnSelect`,function(r){return t._select(r)})(`nzOnSearchChange`,function(r){return t._search(r)})(`nzOnClear`,function(){return t._clear()}),ve$1(4,ou,2,11,`textarea`,3)(5,ru,1,9,`input`,4),he$1()()),e&2&&(fO(t.schema.maxLength??null),A(),ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzSuggestions`,t.data())(`nzValueWith`,t.i.valueWith)(`nzLoading`,t.loading())(`nzNotFoundContent`,t.i.notFoundContent)(`nzPlacement`,t.i.placement)(`nzPrefix`,t.i.prefix)(`nzAllowClear`,t.ui.allowClear)(`nzVariant`,t.ui.variant??`outlined`),A(2),ye$1(t.ui.inputStyle===`textarea`?4:5))},dependencies:[fr$2,At$1,jn$2,Fi,Cu$1,le$2,_c$1,He$2,zd,Zr,Jo,zi$1],encapsulation:2})};function yd(){return{KEY:_i.KEY,type:_i}}var Si=class n extends de$1{static KEY=`qr-code`;refresh(i){this.setValue(i),this.ui.refresh?.(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-qr-code`]],features:[tn$2],decls:2,vars:18,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzRefresh`,`nzValue`,`nzPadding`,`nzColor`,`nzBgColor`,`nzSize`,`nzIcon`,`nzIconSize`,`nzBordered`,`nzType`,`nzStatus`,`nzLevel`,`nzBoostLevel`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-qrcode`,1),je$1(`nzRefresh`,function(r){return t.refresh(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzValue`,t.value)(`nzPadding`,t.ui.padding??0)(`nzColor`,t.ui.color??`#000`)(`nzBgColor`,t.ui.bgColor??`#FFF`)(`nzSize`,t.ui.qrSize??160)(`nzIcon`,t.ui.icon??``)(`nzIconSize`,t.ui.iconSize??40)(`nzBordered`,t.ui.bordered??!0)(`nzType`,t.ui.type??`canvas`)(`nzStatus`,t.ui.status??`active`)(`nzLevel`,t.ui.level??`M`)(`nzBoostLevel`,t.ui.boostLevel??!0))},dependencies:[fr$2,Cu$1,le$2,mi,nn],encapsulation:2})};function vd(){return{KEY:Si.KEY,type:Si}}var Sd=(()=>{class n{character;index=0;allowHalf=!1;itemHover=new O$1;itemClick=new O$1;hoverRate(e){this.itemHover.next(e&&this.allowHalf)}clickRate(e){this.itemClick.next(e&&this.allowHalf)}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=a=>({$implicit:a});function t(a,d){}function o(a,d){}function r(a,d){a&1&&pt$1(0,`nz-icon`,4)}return Se$1({type:n,selectors:[[``,`nz-rate-item`,``]],inputs:{character:`character`,index:`index`,allowHalf:[2,`allowHalf`,`allowHalf`,H$2]},outputs:{itemHover:`itemHover`,itemClick:`itemClick`},exportAs:[`nzRateItem`],decls:6,vars:8,consts:[[`defaultCharacter`,``],[1,`ant-rate-star-second`,3,`mouseover`,`click`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ant-rate-star-first`,3,`mouseover`,`click`],[`nzType`,`star`,`nzTheme`,`fill`]],template:function(d,m){if(d&1){let g=on();oe$2(0,`div`,1),je$1(`mouseover`,function(s){return gt$1(g),m.hoverRate(!1),vt(s.stopPropagation())})(`click`,function(){return m.clickRate(!1)}),qe$1(1,t,0,0,`ng-template`,2),he$1(),oe$2(2,`div`,3),je$1(`mouseover`,function(s){return gt$1(g),m.hoverRate(!0),vt(s.stopPropagation())})(`click`,function(){return m.clickRate(!0)}),qe$1(3,o,0,0,`ng-template`,2),he$1(),qe$1(4,r,1,0,`ng-template`,null,0,ql$1)}if(d&2){let g=Wl(5);A(),ie$1(`ngTemplateOutlet`,m.character||g)(`ngTemplateOutletContext`,ff(4,e,m.index)),A(2),ie$1(`ngTemplateOutlet`,m.character||g)(`ngTemplateOutletContext`,ff(6,e,m.index))}},dependencies:[ka$1,xr$2,Gt$2],encapsulation:2})})()}return n})();var _d=`rate`;var Xr=(()=>{let n,i=[],e=[],t,o=[],r=[];return class er{static{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;n=[Bo()],t=[Bo()],uo$2(null,null,n,{kind:`field`,name:`nzAllowClear`,static:!1,private:!1,access:{has:m=>`nzAllowClear`in m,get:m=>m.nzAllowClear,set:(m,g)=>{m.nzAllowClear=g}},metadata:d}
338,i,e),uo$2(null,null,t,{kind:`field`,name:`nzAllowHalf`,static:!1,private:!1,access:{has:m=>`nzAllowHalf`in m,get:m=>m.nzAllowHalf,set:(m,g)=>{m.nzAllowHalf=g}},metadata:d},o,r),d&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}_nzModuleName=_d;ngZone=h(B$2);renderer=h(We$2);cdr=h(Qe$1);dir=h(Ue$1).valueSignal;destroyRef=h(re$1);ulElement;nzAllowClear=mn$3(this,i,!0);nzAllowHalf=(mn$3(this,e),mn$3(this,o,!1));nzDisabled=(mn$3(this,r),!1);nzAutoFocus=!1;nzCharacter;nzCount=5;nzTooltips=[];nzOnBlur=new O$1;nzOnFocus=new O$1;nzOnHoverChange=new O$1;nzOnKeyDown=new O$1;classMap={};starArray=[];starStyleArray=[];hasHalf=!1;hoverValue=0;isFocused=!1;_value=0;isNzDisableFirstChange=!0;get nzValue(){return this._value}set nzValue(d){this._value!==d&&(this._value=d,this.hasHalf=!Number.isInteger(d)&&this.nzAllowHalf,this.hoverValue=Math.ceil(d))}constructor(){vc$1(_d,()=>this.cdr.markForCheck())}ngOnChanges(d){let{nzAutoFocus:m,nzCount:g,nzValue:x}=d;if(m&&!m.isFirstChange()){let s=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(s,`autofocus`,`autofocus`):this.renderer.removeAttribute(s,`autofocus`)}g&&this.updateStarArray(),x&&this.updateStarStyle()}ngOnInit(){A1(this.ulElement.nativeElement,`focus`).pipe(be$1(this.destroyRef)).subscribe(d=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(d))}),A1(this.ulElement.nativeElement,`blur`).pipe(be$1(this.destroyRef)).subscribe(d=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(d))})}onItemClick(d,m){if(this.nzDisabled)return;this.hoverValue=d+1;let g=m?d+.5:d+1;this.nzValue===g?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=g,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(d,m){this.nzDisabled||((this.hoverValue!==d+1||m!==this.hasHalf)&&(this.hoverValue=d+1,this.hasHalf=m,this.updateStarStyle()),this.nzOnHoverChange.emit(this.hoverValue))}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(d){let m=this.nzValue;d.keyCode===39&&this.nzValue<this.nzCount?this.nzValue+=this.nzAllowHalf?.5:1:d.keyCode===37&&this.nzValue>0&&(this.nzValue-=this.nzAllowHalf?.5:1),m!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(d),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((d,m)=>m),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(d=>{let m=`ant-rate-star`,g=d+1;return{[`${m}-full`]:g<this.hoverValue||!this.hasHalf&&g===this.hoverValue,[`${m}-half`]:this.hasHalf&&g===this.hoverValue,[`${m}-active`]:this.hasHalf&&g===this.hoverValue,[`${m}-zero`]:g>this.hoverValue,[`${m}-focused`]:this.hasHalf&&g===this.hoverValue&&this.isFocused}})}writeValue(d){this.nzValue=d||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(d){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||d,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(d){this.onChange=d}registerOnTouched(d){this.onTouched=d}onChange=()=>null;onTouched=()=>null;static ɵfac=function(m){return new(m||er)};static ɵcmp=(function(){let d=[`ulElement`];function m(g,x){if(g&1){let s=on();oe$2(0,`li`,3)(1,`div`,4),je$1(`itemHover`,function(z){let b=gt$1(s).$index,T=F$2();return vt(T.onItemHover(b,z))})(`itemClick`,function(z){let b=gt$1(s).$index,T=F$2();return vt(T.onItemClick(b,z))}),he$1()()}if(g&2){let s=x.$index,l=F$2();Lt$1(l.starStyleArray[s]||``),ie$1(`nzTooltipTitle`,l.nzTooltips[s]),A(),ie$1(`allowHalf`,l.nzAllowHalf)(`character`,l.nzCharacter)(`index`,s)}}return Se$1({type:er,selectors:[[`nz-rate`]],viewQuery:function(x,s){if(x&1&&Kn(d,7),x&2){let l;Ge(l=Ke())&&(s.ulElement=l.first)}},inputs:{nzAllowClear:[2,`nzAllowClear`,`nzAllowClear`,H$2],nzAllowHalf:[2,`nzAllowHalf`,`nzAllowHalf`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzAutoFocus:[2,`nzAutoFocus`,`nzAutoFocus`,H$2],nzCharacter:`nzCharacter`,nzCount:[2,`nzCount`,`nzCount`,Oo$1],nzTooltips:`nzTooltips`},outputs:{nzOnBlur:`nzOnBlur`,nzOnFocus:`nzOnFocus`,nzOnHoverChange:`nzOnHoverChange`,nzOnKeyDown:`nzOnKeyDown`},exportAs:[`nzRate`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>er),multi:!0}]),Te$1],decls:4,vars:7,consts:[[`ulElement`,``],[1,`ant-rate`,3,`keydown`,`mouseleave`,`tabindex`],[`nz-tooltip`,``,1,`ant-rate-star`,3,`class`,`nzTooltipTitle`],[`nz-tooltip`,``,1,`ant-rate-star`,3,`nzTooltipTitle`],[`nz-rate-item`,``,3,`itemHover`,`itemClick`,`allowHalf`,`character`,`index`]],template:function(x,s){if(x&1){let l=on();oe$2(0,`ul`,1,0),je$1(`keydown`,function(b){return gt$1(l),s.onKeyDown(b),vt(b.preventDefault())})(`mouseleave`,function(b){return gt$1(l),s.onRateLeave(),vt(b.stopPropagation())}),Yl(2,m,2,6,`li`,2,jl),he$1()}x&2&&(Lt$1(s.classMap),Ze(`ant-rate-disabled`,s.nzDisabled)(`ant-rate-rtl`,
338s.dir()===`rtl`),ie$1(`tabindex`,s.nzDisabled?-1:0),A(2),Ul(s.starArray))},dependencies:[Xs$1,Ys,Sd],encapsulation:2})})()}})();var bd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[Xr,Sd]})}return n})();var su=()=>({standalone:!0});var lu=()=>[];function cu(n,i){if(n&1&&(oe$2(0,`span`,2),an$3(1),he$1()),n&2){let e=F$2();A(),vr$3(e.text)}}var bi=class n extends de$1{static KEY=`rate`;count;allowHalf;allowClear;autoFocus;hasText=!1;get text(){return this.ui.text.replace(`{{value}}`,this.formProperty.value)}hoverChange(i){this.ui.hoverChange?.(i)}ngOnInit(){let{schema:i,ui:e}=this;this.count=i.maximum??5,this.allowHalf=(i.multipleOf??.5)===.5,this.allowClear=Ee$2(e.allowClear,!0),this.autoFocus=Ee$2(e.autoFocus,!1),this.hasText=!!e.text}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-rate`]],features:[tn$2],decls:3,vars:18,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzOnHoverChange`,`nzDisabled`,`ngModel`,`ngModelOptions`,`nzAllowClear`,`nzAllowHalf`,`nzTooltips`,`nzAutoFocus`,`nzCount`,`nzCharacter`],[1,`ant-rate-text`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-rate`,1),hI(),je$1(`ngModelChange`,function(r){return t.setValue(r)})(`nzOnHoverChange`,function(r){return t.hoverChange(r)}),he$1(),ve$1(2,cu,2,1,`span`,2),he$1()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzDisabled`,t.disabled)(`ngModel`,t.value)(`ngModelOptions`,MO(16,su))(`nzAllowClear`,t.allowClear)(`nzAllowHalf`,t.allowHalf)(`nzTooltips`,t.ui.tooltips??MO(17,lu))(`nzAutoFocus`,t.autoFocus)(`nzCount`,t.count)(`nzCharacter`,t.ui.character),pI(),A(),ye$1(t.hasText&&t.formProperty.value?2:-1))},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,bd,Xr],encapsulation:2})};function Td(){return{KEY:bi.KEY,type:bi}}var Jr=(()=>{class n{cdr=h(Qe$1);handleEl;tooltip;vertical;reverse;offset;value;tooltipVisible=`default`;tooltipPlacement;tooltipFormatter;active=!1;dir=`ltr`;dragging;tooltipTitle;style={};ngOnChanges(e){let{offset:t,value:o,active:r,tooltipVisible:a,reverse:d,dir:m}=e;(t||d||m)&&this.updateStyle(),o&&(this.updateTooltipTitle(),this.updateTooltipPosition()),r&&(r.currentValue?this.toggleTooltip(!0):this.toggleTooltip(!1)),a?.currentValue===`always`&&Promise.resolve().then(()=>this.toggleTooltip(!0,!0))}enterHandle=()=>{this.dragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())};leaveHandle=()=>{this.dragging||(this.toggleTooltip(!1),this.cdr.detectChanges())};focus(){this.handleEl?.nativeElement.focus()}toggleTooltip(e,t=!1){!t&&(this.tooltipVisible!=="default"||!this.tooltip)||(e?this.tooltip?.show():this.tooltip?.hide())}updateTooltipTitle(){this.tooltipFormatter?this.tooltipTitle=typeof this.tooltipFormatter==`function`?this.tooltipFormatter(this.value):this.tooltipFormatter:this.tooltipTitle=`${this.value}`}updateTooltipPosition(){this.tooltip&&Promise.resolve().then(()=>this.tooltip?.updatePosition())}updateStyle(){this.vertical?this.style={[this.reverse?`top`:`bottom`]:`${this.offset}%`,[this.reverse?`bottom`:`top`]:`auto`,transform:this.reverse?null:`translateY(+50%)`}:this.style=W$1(g$1({},this.getHorizontalStylePosition()),{transform:`translateX(${this.reverse?this.dir===`rtl`?`-`:`+`:this.dir===`rtl`?`+`:`-`}50%)`}),this.cdr.markForCheck()}getHorizontalStylePosition(){let e=this.reverse?`auto`:`${this.offset}%`,t=this.reverse?`${this.offset}%`:`auto`;return this.dir===`rtl`&&([e,t]=[t,e]),{left:e,right:t}}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`handle`],t=o=>({$implicit:o});return Se$1({type:n,selectors:[[`nz-slider-handle`]],viewQuery:function(r,a){if(r&1&&Kn(e,5)(Ys,5),r&2){let d;Ge(d=Ke())&&(a.handleEl=d.first),Ge(d=Ke())&&(a.tooltip=d.first)}},hostBindings:function(r,a){r&1&&je$1(`mouseenter`,function(){return a.enterHandle()})(`mouseleave`,function(){return a.leaveHandle()})},inputs:{vertical:[2,`vertical`,`vertical`,H$2],reverse:[2,`reverse`,`reverse`,H$2],offset:[2,`offset`,`offset`,qw],value:[2,`value`,`value`,qw],tooltipVisible:`tooltipVisible`,tooltipPlacement:`tooltipPlacement`,tooltipFormatter:`tooltipFormatter`,active:[2,`active`,`active`,H$2],dir:`dir`,dragging:`dragging`},exportAs:[`nzSliderHandle`],features:[Te$1],decls:2,vars:8,consts:[[`handle`,``],[`tabindex`,`0`,`nz-tooltip`,``,1,`ant-slider-handle`,3,`nzTooltipTitle`,`nzTooltipTitleContext`,`nzTooltipTrigger`,`nzTooltipPlacement`]],template:function(r,a){r&1&&pt$1(0,`div`,1,0),r&2&&(ko$1(a.style),ie$1(`nzTooltipTitle`,a.tooltipFormatter===null||a.tooltipVisible===`
338never`?null:a.tooltipTitle)(`nzTooltipTitleContext`,ff(6,t,a.value))(`nzTooltipTrigger`,null)(`nzTooltipPlacement`,a.tooltipPlacement))},dependencies:[Xs$1,Ys],encapsulation:2})})()}return n})();var du=(()=>{class n{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;marks=[];ngOnChanges(e){let{marksArray:t,lowerBound:o,upperBound:r,reverse:a}=e;(t||a)&&this.buildMarks(),(t||o||r||a)&&this.togglePointActive()}buildMarks(){let e=this.max-this.min;this.marks=this.marksArray.map(t=>{let{value:o,offset:r,config:a}=t,d=this.getMarkStyles(o,e,a);return{label:xd(a)?a.label:a,offset:r,style:d,value:o,config:a,active:!1}})}getMarkStyles(e,t,o){let r,a=this.reverse?this.max+this.min-e:e;return this.vertical?r={marginBottom:`-50%`,bottom:`${(a-this.min)/t*100}%`}:r={transform:`translate3d(-50%, 0, 0)`,left:`${(a-this.min)/t*100}%`},xd(o)&&o.style&&(r=g$1(g$1({},r),o.style)),r}togglePointActive(){this.marks&&this.lowerBound!==null&&this.upperBound!==null&&this.marks.forEach(e=>{let t=e.value;e.active=this.included?t<=this.upperBound&&t>=this.lowerBound:t===this.upperBound})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(o,r)=>r.value;function t(o,r){if(o&1&&Md$1(0,`span`,1),o&2){let a=r.$implicit;ko$1(a.style),Ze(`ant-slider-mark-active`,a.active),by(`innerHTML`,a.label,Sa$1)}}return Se$1({type:n,selectors:[[`nz-slider-marks`]],hostAttrs:[1,`ant-slider-mark`],inputs:{lowerBound:`lowerBound`,upperBound:`upperBound`,marksArray:`marksArray`,min:[2,`min`,`min`,Oo$1],max:[2,`max`,`max`,Oo$1],vertical:[2,`vertical`,`vertical`,H$2],included:[2,`included`,`included`,H$2],reverse:[2,`reverse`,`reverse`,H$2]},exportAs:[`nzSliderMarks`],features:[Te$1],decls:2,vars:0,consts:[[1,`ant-slider-mark-text`,3,`ant-slider-mark-active`,`style`,`innerHTML`],[1,`ant-slider-mark-text`,3,`innerHTML`]],template:function(r,a){r&1&&Yl(0,t,1,5,`span`,0,e),r&2&&Ul(a.marks)},encapsulation:2})})()}return n})();function xd(n){return typeof n!=`string`}var pu=(()=>{class n{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;steps=[];ngOnChanges(e){let{marksArray:t,lowerBound:o,upperBound:r,reverse:a}=e;(t||a)&&this.buildSteps(),(t||o||r||a)&&this.togglePointActive()}buildSteps(){let e=this.vertical?`bottom`:`left`;this.steps=this.marksArray.map(t=>{let{value:o,config:r}=t,a=t.offset,d=this.max-this.min;return this.reverse&&(a=(this.max-o)/d*100),{value:o,offset:a,config:r,active:!1,style:{[e]:`${a}%`,transform:this.vertical?`translateY(50%)`:`translateX(-50%)`}}})}togglePointActive(){this.steps&&this.lowerBound!==null&&this.upperBound!==null&&this.steps.forEach(e=>{let t=e.value;e.active=this.included?t<=this.upperBound&&t>=this.lowerBound:t===this.upperBound})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(o,r)=>r.value;function t(o,r){if(o&1&&Md$1(0,`span`,1),o&2){let a=r.$implicit;ko$1(a.style),Ze(`ant-slider-dot-active`,a.active)}}return Se$1({type:n,selectors:[[`nz-slider-step`]],hostAttrs:[1,`ant-slider-step`],inputs:{lowerBound:`lowerBound`,upperBound:`upperBound`,marksArray:`marksArray`,min:[2,`min`,`min`,Oo$1],max:[2,`max`,`max`,Oo$1],vertical:[2,`vertical`,`vertical`,H$2],included:[2,`included`,`included`,H$2],reverse:[2,`reverse`,`reverse`,H$2]},exportAs:[`nzSliderStep`],features:[Te$1],decls:2,vars:0,consts:[[1,`ant-slider-dot`,3,`ant-slider-dot-active`,`style`],[1,`ant-slider-dot`]],template:function(r,a){r&1&&Yl(0,t,1,4,`span`,0,e),r&2&&Ul(a.steps)},encapsulation:2})})()}return n})();var uu=(()=>{class n{offset=0;reverse=!1;dir=`ltr`;length=0;vertical=!1;included=!1;style={};ngOnChanges(){let e=this.included?`visible`:`hidden`;this.vertical?this.style={[this.reverse?`top`:`bottom`]:`${this.offset}%`,[this.reverse?`bottom`:`top`]:`auto`,height:`${this.length}%`,visibility:e}:this.style=W$1(g$1({},this.getHorizontalStylePosition()),{width:`${this.length}%`,visibility:e})}getHorizontalStylePosition(){let e=this.reverse?`auto`:`${this.offset}%`,t=this.reverse?`${this.offset}%`:`auto`;return this.dir===`rtl`&&([e,t]=[t,e]),{left:e,right:t}}static ɵfac=function(t){return new(t||n)};static ɵcmp=Se$1({type:n,selectors:[[`nz-slider-track`]],inputs:{offset:[2,`offset`,`offset`,Oo$1],reverse:[2,`reverse`,`reverse`,H$2],dir:`dir`,length:[2,`length`,`length`,Oo$1],vertical:[2,`vertical`,`vertical`,H$2],included:[2,`included`,`included`,H$2]},exportAs:[`nzSliderTrack`],features:[Te$1],decls:1,vars:2,consts:[[1,`ant-slider-track`]],template:function(t,o){t&1&&Md$1(0,`div`,0),t&2&&ko$1(o.style)},encapsulation:2})}return n})();var ea=(()=>{class n{slider=h($$2);destroyRef=h(re$1);cdr=h(Qe$1);platform=h(Me$3);dir=h(Ue$1).valueSignal;handlerComponents;nzDisabled=!1;nzDots=!1;nzIncluded=!0;nzRange=!1;nzVertical=!1;nzReverse=!1;nzDefaultValue;nzMarks=null;nzMax=100;nzMin=0;nzStep=1;nzTooltipVisible=`default`;nzTooltipPlacement=`top`;nzTipFormatter;nzOnAfterChange=new O$1;value=null;cacheSliderStart=null;cacheSliderLength=null;activeValueIndex=void 0;track={offset:null,length:null};handles=[];marksArray=null;bounds={lower:null,upper:null};dragging=G$1(!1);dragStart$;dragMove$;dragEnd$;dragStart_;dragMove_;dragEnd_;isNzDisableFirstChange=!0;ngOnInit(){this.handles=wd(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),this.getValue()===null?this.setValue(this.formatValue(null)):this.updateTrackAndHandles()}ngOnChanges(e){let{nzDisabled:t,nzMarks:o,nzRange:r}=e;t&&!t.firstChange?this.toggleDragDisabled(t.currentValue):o&&!o.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:r&&!r.firstChange&&(this.handles=wd(r.currentValue?2:1),this.setValue(this.formatValue(null)))}writeValue(e){this.setValue(e,!0)}onValueChange(e){}onTouched(){}registerOnChange(e){this.onValueChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.toggleDragDisabled(this.nzDisabled),this.cdr.markForCheck()}onKeyDown(e){if(this.nzDisabled)return;let t=e.keyCode,o=t===39||t===38,r=t===37||t===40;if(!(o||r))return;e.preventDefault();let a=(r?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1)*(this.dir()===`rtl`?-1:1),d=this.nzRange?this.value[this.activeValueIndex]+a:this.value+a;this.setActiveValue(B1e(d,this.nzMin,this.nzMax)),this.nzOnAfterChange.emit(this.getValue(!0))}onHandleFocusIn(e){this.activeValueIndex=e}setValue(e,t=!1){t?(this.value=this.formatValue(e),this.updateTrackAndHandles()):gu(this.value,e)||(this.value=e,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(e=!1){return e&&this.value&&Ot(this.value)?[...this.value].sort((t,o)=>t-o):this.value}getValueToOffset(e){let t=e;return typeof t>`u`&&(t=this.getValue(!0)),Ot(t)?t.map(o=>this.valueToOffset(o)):this.valueToOffset(t)}setActiveValueIndex(e){let t=this.getValue();if(Ot(t)){let o=null,r,a=-1;t.forEach((d,m)=>{r=Math.abs(e-d),(o===null||r<o)&&(o=r,a=m)}),this.activeValueIndex=a,this.handlerComponents.toArray()[a].focus()}else this.handlerComponents.toArray()[0].focus()}setActiveValue(e){if(Ot(this.value)){let t=[...this.value];t[this.activeValueIndex]=e,this.setValue(t)}else this.setValue(e)}updateTrackAndHandles(){let e=this.getValue(),t=this.getValueToOffset(e),o=this.getValue(!0),r=this.getValueToOffset(o),a=Ot(o)?o:[0,o],d=Ot(r)?[r[0],r[1]-r[0]]:[0,r];
338this.handles.forEach((m,g)=>{m.offset=Ot(t)?t[g]:t,m.value=Ot(e)?e[g]:e||0}),[this.bounds.lower,this.bounds.upper]=a,[this.track.offset,this.track.length]=d,this.cdr.markForCheck()}onDragStart(e){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(e)),this.setActiveValue(this.getLogicalValue(e)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(e){this.setActiveValue(this.getLogicalValue(e)),this.cdr.markForCheck()}getLogicalValue(e){let t=!this.nzVertical&&this.dir()===`rtl`;return this.nzReverse?t?e:this.nzMax-e+this.nzMin:t?this.nzMax-e+this.nzMin:e}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;let e=d=>m=>d.reduce((g,x)=>g[x]||g,m),t=this.slider.nativeElement,o=this.nzVertical?`pageY`:`pageX`,r={start:`mousedown`,move:`mousemove`,end:`mouseup`,pluckKey:[o]},a={start:`touchstart`,move:`touchmove`,end:`touchend`,pluckKey:[`touches`,`0`,o],filter:d=>d instanceof TouchEvent};[r,a].forEach(d=>{let{start:m,move:g,end:x,pluckKey:s,filter:l=()=>!0}=d;d.startPlucked$=Qc$2(t,m).pipe(ne(l),Je$2(L1e),P$2(e(s)),P$2(z=>this.findClosestValue(z))),d.end$=Qc$2(document,x),d.moveResolved$=Qc$2(document,g).pipe(ne(l),Je$2(L1e),P$2(e(s)),Vn$1(),P$2(z=>this.findClosestValue(z)),Vn$1(),Be(d.end$))}),this.dragStart$=ti(r.startPlucked$,a.startPlucked$),this.dragMove$=ti(r.moveResolved$,a.moveResolved$),this.dragEnd$=ti(r.end$,a.end$)}subscribeDrag(e=[`start`,`move`,`end`]){e.indexOf(`start`)!==-1&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.pipe(be$1(this.destroyRef)).subscribe(this.onDragStart.bind(this))),e.indexOf(`move`)!==-1&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.pipe(be$1(this.destroyRef)).subscribe(this.onDragMove.bind(this))),e.indexOf(`end`)!==-1&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.pipe(be$1(this.destroyRef)).subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(e=[`start`,`move`,`end`]){e.includes(`start`)&&(this.dragStart_?.unsubscribe(),this.dragStart_=null),e.includes(`move`)&&(this.dragMove_?.unsubscribe(),this.dragMove_=null),e.includes(`end`)&&(this.dragEnd_?.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(e){let t=[`move`,`end`];e?(this.dragging.set(!0),this.subscribeDrag(t)):(this.dragging.set(!1),this.unsubscribeDrag(t))}toggleDragDisabled(e){e?this.unsubscribeDrag():this.subscribeDrag([`start`])}findClosestValue(e){let t=this.getSliderStartPosition(),o=this.getSliderLength(),r=B1e((e-t)/o,0,1),a=(this.nzMax-this.nzMin)*(this.nzVertical?1-r:r)+this.nzMin,d=this.nzMarks===null?[]:Object.keys(this.nzMarks).map(parseFloat).sort((x,s)=>x-s);if(this.nzStep!==0&&!this.nzDots){let x=Math.round(a/this.nzStep)*this.nzStep;d.push(x)}let m=d.map(x=>Math.abs(a-x)),g=d[m.indexOf(Math.min(...m))];return this.nzStep===0?g:parseFloat(g.toFixed(V1e(this.nzStep)))}valueToOffset(e){return H1e(this.nzMin,this.nzMax,e)}getSliderStartPosition(){if(this.cacheSliderStart!==null)return this.cacheSliderStart;let e=Gw(this.slider.nativeElement);return this.nzVertical?e.top:e.left}getSliderLength(){if(this.cacheSliderLength!==null)return this.cacheSliderLength;let e=this.slider.nativeElement;return this.nzVertical?e.clientHeight:e.clientWidth}cacheSliderProperty(e=!1){this.cacheSliderStart=e?null:this.getSliderStartPosition(),this.cacheSliderLength=e?null:this.getSliderLength()}formatValue(e){return z1e(e)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:hu(e,this.nzRange)?Ot(e)?e.map(t=>B1e(t,this.nzMin,this.nzMax)):B1e(e,this.nzMin,this.nzMax):this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin}showHandleTooltip(e=0){this.handles.forEach((t,o)=>t.active=o===e)}hideAllHandleTooltip(){this.handles.forEach(e=>e.active=!1)}generateMarkItems(e){let t=[];for(let o in e)if(e.hasOwnProperty(o)){let r=e[o],a=typeof o==`number`?o:parseFloat(o);a>=this.nzMin&&a<=this.nzMax&&t.push({value:a,offset:this.valueToOffset(a
338),config:r})}return t.length?t:null}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(a,d)=>d.value;function t(a,d){if(a&1&&pt$1(0,`nz-slider-step`,2),a&2){let m=F$2();ie$1(`vertical`,m.nzVertical)(`min`,m.nzMin)(`max`,m.nzMax)(`lowerBound`,m.bounds.lower)(`upperBound`,m.bounds.upper)(`marksArray`,m.marksArray)(`included`,m.nzIncluded)(`reverse`,m.nzReverse)}}function o(a,d){if(a&1){let m=on();oe$2(0,`nz-slider-handle`,4),je$1(`focusin`,function(){let x=gt$1(m).$index,s=F$2();return vt(s.onHandleFocusIn(x))}),he$1()}if(a&2){let m=d.$implicit,g=F$2();ie$1(`vertical`,g.nzVertical)(`reverse`,g.nzReverse)(`offset`,m.offset)(`value`,m.value)(`active`,m.active)(`tooltipFormatter`,g.nzTipFormatter)(`tooltipVisible`,g.nzTooltipVisible)(`tooltipPlacement`,g.nzTooltipPlacement)(`dragging`,g.dragging())(`dir`,g.dir())}}function r(a,d){if(a&1&&pt$1(0,`nz-slider-marks`,2),a&2){let m=F$2();ie$1(`vertical`,m.nzVertical)(`min`,m.nzMin)(`max`,m.nzMax)(`lowerBound`,m.bounds.lower)(`upperBound`,m.bounds.upper)(`marksArray`,m.marksArray)(`included`,m.nzIncluded)(`reverse`,m.nzReverse)}}return Se$1({type:n,selectors:[[`nz-slider`]],viewQuery:function(d,m){if(d&1&&Kn(Jr,5),d&2){let g;Ge(g=Ke())&&(m.handlerComponents=g)}},hostAttrs:[1,`ant-slider`],hostVars:8,hostBindings:function(d,m){d&1&&je$1(`keydown`,function(x){return m.onKeyDown(x)}),d&2&&Ze(`ant-slider-rtl`,m.dir()===`rtl`)(`ant-slider-disabled`,m.nzDisabled)(`ant-sl
338ider-vertical`,m.nzVertical)(`ant-slider-with-marks`,m.marksArray)},inputs:{nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzDots:[2,`nzDots`,`nzDots`,H$2],nzIncluded:[2,`nzIncluded`,`nzIncluded`,H$2],nzRange:[2,`nzRange`,`nzRange`,H$2],nzVertical:[2,`nzVertical`,`nzVertical`,H$2],nzReverse:[2,`nzReverse`,`nzReverse`,H$2],nzDefaultValue:`nzDefaultValue`,nzMarks:`nzMarks`,nzMax:[2,`nzMax`,`nzMax`,Oo$1],nzMin:[2,`nzMin`,`nzMin`,Oo$1],nzStep:[2,`nzStep`,`nzStep`,qw],nzTooltipVisible:`nzTooltipVisible`,nzTooltipPlacement:`nzTooltipPlacement`,nzTipFormatter:`nzTipFormatter`},outputs:{nzOnAfterChange:`nzOnAfterChange`},exportAs:[`nzSlider`],features:[Ft$1([{provide:Le$2,useExisting:ta$2(()=>n),multi:!0}]),Te$1],decls:6,vars:8,consts:[[1,`ant-slider-rail`],[3,`vertical`,`included`,`offset`,`length`,`reverse`,`dir`],[3,`vertical`,`min`,`max`,`lowerBound`,`upperBound`,`marksArray`,`included`,`reverse`],[3,`vertical`,`reverse`,`offset`,`value`,`active`,`tooltipFormatter`,`tooltipVisible`,`tooltipPlacement`,`dragging`,`dir`],[3,`focusin`,`vertical`,`reverse`,`offset`,`value`,`active`,`tooltipFormatter`,`tooltipVisible`,`tooltipPlacement`,`dragging`,`dir`]],template:function(d,m){d&1&&(pt$1(0,`div`,0)(1,`nz-slider-track`,1),ve$1(2,t,1,8,`nz-slider-step`,2),Yl(3,o,1,10,`nz-slider-handle`,3,e),ve$1(5,r,1,8,`nz-slider-marks`,2)),d&2&&(A(),ie$1(`vertical`,m.nzVertical)(`included`,m.nzIncluded)(`offset`,m.track.offset)(`length`,m.track.length)(`reverse`,m.nzReverse)(`dir`,m.dir()),A(),ye$1(m.marksArray?2:-1),A(),Ul(m.handles),A(2),ye$1(m.marksArray?5:-1))},dependencies:[uu,pu,Jr,du],encapsulation:2})})()}return n})();function mu(){return new Error(`The "nzRange" can't match the "ngModel"'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".`)}function Ot(n){return n instanceof Array?n.length===2:!1}function wd(n){return Array(n).fill(0).map(()=>({offset:null,value:null,active:!1}))}function hu(n,i){return!Ot(n)&&isNaN(n)||Ot(n)&&n.some(e=>isNaN(e))?!1:fu(n,i)}function fu(n,i=!1){if(Ot(n)!==i)throw mu();return!0}function gu(n,i){return typeof n!=typeof i?!1:Ot(n)&&Ot(i)?E1e(n,i):n===i}var Md=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[ea,Jr]})}return n})();var Cu=()=>({standalone:!0});var Ti=class n extends de$1{static KEY=`slider`;min;max;step;marks=null;included;ngOnInit(){let{minimum:i,maximum:e,multipleOf:t}=this.schema;this.min=i??0,this.max=e??100,this.step=this.ui.step===void 0?t??1:this.ui.step;let{marks:o,included:r}=this.ui;this.marks=o??null,this.included=typeof r>`u`?!0:r}_formatter=i=>{let{formatter:e}=this.ui;return e?e(i):`${i}`};_afterChange(i){let{afterChange:e}=this.ui;if(e)return e(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-slider`]],features:[tn$2],decls:2,vars:22,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzOnAfterChange`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzRange`,`nzMin`,`nzMax`,`nzStep`,`nzMarks`,`nzDots`,`nzIncluded`,`nzVertical`,`nzReverse`,`nzTooltipVisible`,`nzTooltipPlacement`,`nzTipFormatter`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-slider`,1),hI(),je$1(`ngModelChange`,function(r){return t.setValue(r)})(`nzOnAfterChange`,function(r){return t._afterChange(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`ngModel`,t.value)(`ngModelOptions`,MO(21,Cu))(`nzDisabled`,t.disabled)(`nzRange`,t.ui.range)(`nzMin`,t.min)(`nzMax`,t.max)(`nzStep`,t.step)(`nzMarks`,t.marks)(`nzDots`,t.ui.dots)(`nzIncluded`,t.included)(`nzVertical`,t.ui.vertical)(`nzReverse`,t.ui.reverse)(`nzTooltipVisible`,t.ui.tooltipVisible)(`nzTooltipPlacement`,t.ui.tooltipPlacement)(`nzTipFormatter`,t._formatter),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,Md,ea],encapsulation:2})};function Nd(){return{KEY:Ti.KEY,type:Ti}}var kd=n=>({$implicit:n});function yu(n,i){if(n&1&&pt$1(0,`nz-icon`,3),n&2){let e=i.$implicit;ie$1(`nzType`,e.type)(`nzTheme`,e.theme)(`nzTwotoneColor`,e.twotoneColor)(`nzRotate`,e.rotate)(`nzIconfont`,e.iconfont)(`nzSpin`,e.spin)}}function vu(n,i){}function _u(n,i){if(n&1&&qe$1(0,vu,0,0,`ng-template`,5),n&2){let e=F$2().$implicit;F$2();let t=Wl(2);ie$1(`ngTemplateOutlet`,t)(`ngTemplateOutletContext`,ff(2,kd,e.prefixIcon))}}function Su(n,i){}function bu(n,i){if(n&1&&qe$1(0,Su,0,0,`ng-template`,5),n&2){let e=F$2().$implicit;F$2();let t=Wl(2);ie$1(`ngTemplateOutlet`,t)(`ngTemplateOutletContext`,ff(2,kd,e.suffixIcon))}}function Tu(n,i){if(n&1){let e=on();oe$2(0,`nz-tag`,4),je$1(`nzOnClose`,function(o){gt$1(e);let r=F$2();return vt(r._close(o))})(`nzCheckedChange`,function(){let o=gt$1(e).$implicit,r=F$2();return vt(r.onChange(o))}),ve$1(1,_u,1,4,null,5),oe$2(2,`span`),an$3(3),he$1(),ve$1(4,bu,1,4,null,5),he$1()}if(n&2){let e=i.$implicit,t=F$2();ie$1(`nzMode`,t.ui.mode??`checkable`)(`nzChecked`,e.checked),A(),ye$1(e.prefixIcon?1:-1),A(2),vr$3(e.label),A(),ye$1(e.suffixIcon?4:-1)}}var xi=class n extends de$1{static KEY=`tag`;data=G$1([]);reset(i){_r$2(this.schema,this.ui,i).subscribe(e=>{this.data.set(e)})}onChange(i){i.checked=!i.checked,this.data.set([...this.data()]),this.updateV
338alue(),this.ui.checkedChange?.(i.checked)}_close(i){this.ui.onClose?.(i)}updateValue(){this.formProperty.setValue(this.data().filter(i=>i.checked).map(i=>i.value),!1)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-tag`]],features:[tn$2],decls:5,vars:6,consts:[[`icon`,``],[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzMode`,`nzChecked`],[3,`nzType`,`nzTheme`,`nzTwotoneColor`,`nzRotate`,`nzIconfont`,`nzSpin`],[3,`nzOnClose`,`nzCheckedChange`,`nzMode`,`nzChecked`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,1),qe$1(1,yu,1,6,`ng-template`,null,0,ql$1),Yl(3,Tu,5,5,`nz-tag`,2,EP),he$1()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(3),Ul(t.data()))},dependencies:[fr$2,ka$1,Cu$1,le$2,zu$1,Ka$1,xr$2,Gt$2],encapsulation:2})};function Dd(){return{KEY:xi.KEY,type:xi}}var xu=()=>({standalone:!0});var wi=class n extends de$1{static KEY=`time`;valueFormat;displayValue=G$1(null);i;ngOnInit(){let i=this.ui;this.valueFormat=i._format;let e={displayFormat:i.displayFormat??`HH:mm:ss`,allowEmpty:Ee$2(i.allowEmpty,!0),clearText:i.clearText??`清除`,defaultOpenValue:i.defaultOpenValue??new Date,hideDisabledOptions:Ee$2(i.hideDisabledOptions,!1),use12Hours:Ee$2(i.use12Hours,!1),hourStep:i.hourStep??1,minuteStep:i.minuteStep??1,secondStep:i.secondStep??1};e.use12Hours&&!i.displayFormat&&(e.displayFormat=`h:mm:ss a`),this.i=e}reset(i){if(i instanceof Date){this.displayValue.set(i);return}let e=i!=null&&i.toString().length?new Date(i):null;e!=null&&e.toString()===`Invalid Date`&&(i.toString().split(`:`).length<=1&&(i+=`:00`),e=new Date(`1970-1-1 ${i}`)),this.displayValue.set(e)}_change(i){if(this.ui.change?.(i),i==null){this.setValue(null);return}if(this.ui.utcEpoch===!0){this.setValue(Date.UTC(1970,0,1,i.getHours(),i.getMinutes(),i.getSeconds()));return}this.setValue(Uo$2(i,this.valueFormat))}_openChange(i){this.ui.openChange?.(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-time`]],features:[tn$2],decls:2,vars:28,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzOpenChange`,`nzId`,`ngModel`,`ngModelOptions`,`nzDisabled`,`nzSize`,`nzFormat`,`nzAllowEmpty`,`nzClearText`,`nzDefaultOpenValue`,`nzDisabledHours`,`nzDisabledMinutes`,`nzDisabledSeconds`,`nzHideDisabledOptions`,`nzUse12Hours`,`nzHourStep`,`nzMinuteStep`,`nzSecondStep`,`nzPopupClassName`,`nzPlaceHolder`,`nzNowText`,`nzOkText`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-time-picker`,1),hI(),Hy(`ngModelChange`,function(r){return hO(t.displayValue,r)||(t.displayValue=r),r}),je$1(`ngModelChange`,function(r){return t._change(r)})(`nzOpenChange`,function(r){return t._openChange(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzId`,t.id),Fy(`ngModel`,t.displayValue),ie$1(`ngModelOptions`,MO(27,xu))(`nzDisabled`,t.disabled)(`nzSize`,t.ui.size)(`nzFormat`,t.i.displayFormat)(`nzAllowEmpty`,t.i.allowEmpty)(`nzClearText`,t.i.clearText)(`nzDefaultOpenValue`,t.i.defaultOpenValue)(`nzDisabledHours`,t.ui.disabledHours)(`nzDisabledMinutes`,t.ui.disabledMinutes)(`nzDisabledSeconds`,t.ui.disabledSeconds)(`nzHideDisabledOptions`,t.i.hideDisabledOptions)(`nzUse12Hours`,t.i.use12Hours)(`nzHourStep`,t.i.hourStep)(`nzMinuteStep`,t.i.minuteStep)(`nzSecondStep`,t.i.secondStep)(`nzPopupClassName`,t.ui.popupClassName)(`nzPlaceHolder`,t.ui.placeholder)(`nzNowText`,t.ui.nowText)(`nzOkText`,t.ui.okText),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,ai,ki$2],encapsulation:2})};function Id(){return{KEY:wi.KEY,type:wi}}var ta=(()=>{class n{cdr=h(Qe$1);direction=`left`;titleText=``;showSelectAll=!0;dataSource=[];itemUnit=``;itemsUnit=``;filter=``;oneWay=!1;disabled=!1;showSearch;searchPlaceholder;notFoundContent;filterOption;renderList=null;render=null;footer=null;handleSelectAll=new O$1;handleSelect=new O$1;filterChange=new O$1;moveToLeft=new O$1;headerCheckbox;checkboxes;stat={checkAll:!1,checkHalf:!1,checkCount:0,shownCount:0,availableCount:0};get validData(){return this.dataSource.filter(e=>!e.hide)}get availableData(){return this.validData.filter(e=>!e.disabled)}onItemSelect=e=>{this.disabled||e.disabled||(e.checked=!e.checked,this.updateCheckStatus(),this.handleSelect.emit(e))};onItemSelectAll=e=>{this.dataSource.forEach(t=>{!t.disabled&&!t.hide&&(t.checked=e)}),this.updateCheckStatus(),this.handleSelectAll.emit(e)};updateCheckStatus(){let e=this.dataSource.filter(t=>!t.disabled).length;this.stat.checkCount=this.dataSource.filter(t=>t.checked&&!t.disabled).length,this.stat.shownCount=this.validData.length,this.stat.availableCount=this.availableData.length,this.stat.checkAll=e>0&&e===this.stat.checkCount,this.stat.checkHalf=this.stat.checkCount>0&&!this.stat.checkAll,this.headerCheckbox&&(this.headerCheckbox.nzChecked=this.stat.checkAll)}handleFilter(e){this.dataSource.forEach(t=>{t.hide=e.length>0&&!this.matchFilter(e,t)}),this.stat.shownCount=this.validData.length,this.stat.availableCount=this.availableData.length,this.filterChange.emit({direction:this.direction,value:e})}deleteItem(e){e.checked=!0,this.handleSelect.emit(e),this.moveToLeft.emit()}matchFilter(e,t){return this.filterOption?this.filterOption(e,t):t.title.includes(e)}markForCheck(){this.updateCheckStatus(),this.cdr.markForCheck()}ngAfterViewInit(){this.checkboxes.changes.pipe(mt$2(this.checkboxes),Ve(()=>{let e=this.checkboxes.toArray();return ti(...e.map(t=>A1(t.nativeElement,`click`)))})).subscribe(e=>{e.stopPropagation()})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`headerCheckbox`],t=[`checkboxes`],o=($,pe,B,ne,ue,q)=>({$implicit:$,direction:pe,disabled:B,onItemSelectAll:ne,onItemSelect:ue,stat:q}),r=$=>({"ant-transfer-list-content-item-disabled":$}),a=$=>({$implicit:$}),d=($,pe)=>pe.key;function m($,pe){if($&1){let B=on();oe$2(0,`label`,10,0),je$1(`nzCheckedChange`,function(ue){gt$1(B);let q=F$2();return vt(q.onItemSelectAll(ue))}),he$1()}if($&2){let B=F$2();ie$1(`nzChecked`,B.stat.checkAll)(`nzIndeterminate`,B.stat.checkHalf)(`nzDisabled`,B.stat.availableCount===0||B.disabled)}}function g($,pe){if($&1&&an$3(0),$&2){let B=F$2();Io$1(` `,(B.stat.checkCount>0?B.stat.checkCount+`/`:``)+B.stat.shownCount,` `)}}function x($,pe){if($&1&&an$3(0),$&2){let B=F$2();Io$1(` `,B.stat.shownCount,` `)}}function s($,pe){if($&1&&(oe$2(0,`span`,5),an$3(1),he$1()),$&2){let B=F$2();A(),vr$3(B.titleText)}}function l($,pe){if($&1){let B=on();oe$2(0,`div`,7)(1,`nz-input-wrapper`,11),pt$1(2,`nz-icon`,12),oe$2(3,`input`,13),hI(),Hy(`ngModelChange`,function(ue){gt$1(B);let q=F$2();return hO(q.filter,ue)||(q.filter=ue),vt(ue)}),je$1(`ngModelChange`,function(ue){gt$1(B);let q=F$2();return vt(q.handleFilter(ue))}),he$1()()()}if($&2){let B=F$2();A(3),ie$1(`placeholder`,B.searchPlaceholder)(`disabled`,B.disabled),Fy(`ngModel`,B.filter),pI()}}function z($,pe){$&1&&Xs(0)}function b($,pe){if($&1&&(oe$2(0,`div`,8),qe$1(1,z,1,0,`ng-container`,14),he$1()),$&2){let B=F$2();A(),ie$1(`ngTemplateOutlet`,B.renderList)(`ngTemplateOutletContext`,_O(2,o,B.validData,B.direction,B.disabled,B.onItemSelectAll,B.onItemSelect,B.stat))}}function T($,pe){if($&1&&an$3(0),$&2){let B=F$2(2).$implicit;Io$1(` `,B.title,` `)}}function L($,pe){}function j($,pe){if($&1&&qe$1(0,L,0,0,`ng-template`,21),$&2){let B=F$2(2).$implicit,ne=F$2(3);ie$1(`ngTemplateOutlet`,ne.render)(`ngTemplateOutletContext`,ff(2,a,B))}}function H($,pe){if($&1){let B=on();oe$2(0,`label`,20,1),je$1(`nzCheckedChange`,function(){gt$1(B);let ue=F$2().$implicit,q=F$2(3);return vt(q.onItemSelect(ue))}),ve$1(2,T,1,1)(3,j,1,4,null,21),he$1()}if($&2){let B=F$2().$implicit,ne=F$2(3);ie$1(`nzChecked`,B.checked)(`nzDisabled`,ne.disabled||B.disabled),A(2),ye$1(ne.render?3:2)}}function S($,pe){if($&1){let B=on();oe$2(0,`span`,22),an$3(1),he$1(),oe$2(2,`div`,23),je$1(`click`,function(){gt$1(B);let ue=F$2(2).$implicit,q=F$2(3);return vt(q.disabled||ue.disabled?null:q.deleteItem(ue))}),pt$1(3,`nz-icon`,24),he$1()}if($&2){let B=F$2(2).$implicit,ne=F$2(3);A(),Io$1(` `,B.title,` `),A(),Lt$1(ff(3,r,ne.disabled||B.disabled))}}function v($,pe){}function _($,pe){if($&1&&qe$1(0,v,0,0,`ng-template`,21),$&2){let B=F$2(2).$implicit,ne=F$2(3);ie$1(`ngTemplateOutlet`,ne.render)(`ngTemplateOutletContext`,ff(2,a,B))}}function N($,pe){if($&1&&ve$1(0,S,4,5)(1,_,1,4,null,21),$&2){let B=F$2(4);ye$1(B.render?1:0)}}function P($,pe){if($&1){let B=on();oe$2(0,`li`,18),je$1(`click`,function(){let ue=gt$1(B).$implicit,q=F$2(3);return vt(q.oneWay?null:q.onItemSelect(ue))}),ve$1(1,H,4,3,`label`,19)(2,N,2,1),he$1()}if($&2){let B=pe.$implicit,ne=F$2(3);Lt$1(ff(3,r,ne.disabled||B.disabled)),A(),ye$1(ne.oneWay?2:1)}}function ce($,pe){if($&1&&(oe$2(0,`ul`,15),Yl(1,P,3,5,`li`,17,d),he$1()),$&2){let B=F$2(2);A(),Ul(B.validData)}}function wt($,pe){if($&1&&(oe$2(0,`div`,16),pt$1(1,`nz-embed-empty`,25),he$1()),$&2){let B=F$2(2);A(),ie$1(`specificContent`,B.notFoundContent)}}function St($,pe){if($&1&&ve$1(0,ce,3,0,`ul`,15)(1,wt,2,1,`div`,16),$&2){let B=F$2();ye$1(B.stat.shownCount>0?0:1)}}function en($,pe){}function sn($,pe){if($&1&&(oe$2(0,`div`,9),qe$1(1,en,0,0,`ng-template`,21),he$1()),$&2){let B=F$2();A(),ie$1(`ngTemplateOutlet`,B.footer)(`ngTemplateOutletContext`,ff(2,a,B.direction))}}return Se$1({type:n,selectors:[[`nz-transfer-list`]],viewQuery:function(pe,B){if(pe&1&&Kn(e,5,je$2)(t,5,$$2),pe&2){let ne;Ge(ne=Ke())&&(B.headerCheckbox=ne.first),Ge(ne=Ke())&&(B.checkboxes=ne)}},hostAttrs:[1,`ant-transfer-list`],hostVars:2,hostBindings:function(pe,B){pe&2&&Ze(`ant-transfer-list-with-footer`,!!B.footer)},inputs:{direction:`direction`,titleText:`titleText`,showSelectAll:`showSelectAll`,dataSource:`dataSource`,itemUnit:`itemUnit`,itemsUnit:`itemsUnit`,filter:`filter`,oneWay:`oneWay`,disabled:[2,`disabled`,`disabled`,H$2],showSearch:[2,`showSearch`,`showSearch`,H$2],searchPlaceholder:`searchPlaceholder`,notFoundContent:`notFoundContent`,filterOption:`filterOption`,renderList:`renderList`,render:`render`,footer
338:`footer`},outputs:{handleSelectAll:`handleSelectAll`,handleSelect:`handleSelect`,filterChange:`filterChange`,moveToLeft:`moveToLeft`},exportAs:[`nzTransferList`],decls:13,vars:9,consts:[[`headerCheckbox`,``],[`checkboxes`,``],[1,`ant-transfer-list-header`],[`nz-checkbox`,``,1,`ant-transfer-list-checkbox`,3,`nzChecked`,`nzIndeterminate`,`nzDisabled`],[1,`ant-transfer-list-header-selected`],[1,`ant-transfer-list-header-title`],[1,`ant-transfer-list-body`],[1,`ant-transfer-list-body-search-wrapper`],[1,`ant-transfer-list-body-customize-wrapper`],[1,`ant-transfer-list-footer`],[`nz-checkbox`,``,1,`ant-transfer-list-checkbox`,3,`nzCheckedChange`,`nzChecked`,`nzIndeterminate`,`nzDisabled`],[`nzAllowClear`,``,1,`ant-transfer-list-search`],[`nzInputPrefix`,``,`nzType`,`search`],[`nz-input`,``,3,`ngModelChange`,`placeholder`,`disabled`,`ngModel`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ant-transfer-list-content`],[1,`ant-transfer-list-body-not-found`],[1,`ant-transfer-list-content-item`,3,`class`],[1,`ant-transfer-list-content-item`,3,`click`],[`nz-checkbox`,``,3,`nzChecked`,`nzDisabled`],[`nz-checkbox`,``,3,`nzCheckedChange`,`nzChecked`,`nzDisabled`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`ant-transfer-list-content-item-text`],[1,`ant-transfer-list-content-item-remove`,3,`click`],[`nzType`,`delete`,`nzTheme`,`outline`],[`nzComponentName`,`transfer`,3,`specificContent`]],template:function(pe,B){pe&1&&(oe$2(0,`div`,2),ve$1(1,m,2,3,`label`,3),oe$2(2,`span`,4)(3,`span`),ve$1(4,g,1,1)(5,x,1,1),an$3(6),he$1()(),ve$1(7,s,2,1,`span`,5),he$1(),oe$2(8,`div`,6),ve$1(9,l,4,3,`div`,7),ve$1(10,b,2,9,`div`,8)(11,St,2,1),he$1(),ve$1(12,sn,2,4,`div`,9)),pe&2&&(A(),ye$1(B.showSelectAll&&!B.oneWay?1:-1),A(3),ye$1(B.oneWay?5:4),A(2),Io$1(` `,B.validData.length>1?B.itemsUnit:B.itemUnit,` `),A(),ye$1(B.titleText?7:-1),A(),Ze(`ant-transfer-list-body-with-search`,B.showSearch),A(),ye$1(B.showSearch?9:-1),A(),ye$1(B.renderList?10:11),A(2),ye$1(B.footer?12:-1))},dependencies:[_c$1,He$2,is$1,nn$2,fr$2,At$1,jn$2,Fi,Et$1,je$2,ka$1,yr$3,Pi$1,xr$2,Gt$2,v5,f5],encapsulation:2})})()}return n})();var na=(()=>{class n{destroyRef=h(re$1);cdr=h(Qe$1);i18n=h(sV);elementRef=h($$2);renderer=h(We$2);dir=h(Ue$1).valueSignal;nzFormStatusService=h(Sde,{optional:!0});lists;locale;leftFilter=``;rightFilter=``;prefixCls=`ant-transfer`;statusCls={};hasFeedback=!1;nzDisabled=!1;nzDataSource=[];nzTitles=[``,``];nzOperations=[];nzListStyle={};nzShowSelectAll=!0;nzItemUnit;nzItemsUnit;nzCanMove=e=>S(e.list);nzRenderList=null;nzRender=null;nzFooter=null;nzShowSearch=!1;nzFilterOption;nzSearchPlaceholder;nzNotFoundContent;nzTargetKeys=[];nzSelectedKeys=[];nzStatus=``;nzOneWay=!1;nzChange=new O$1;nzSearchChange=new O$1;nzSelectChange=new O$1;leftDataSource=[];lastLeftCheckedIndex;rightDataSource=[];lastRightCheckedIndex;isShiftPressed=!1;onTriggerShiftDown(){this.isShiftPressed=!0}onTriggerShiftUp(){this.isShiftPressed=!1}onTriggerMouseDown(e){let t=e.target.closest(`.ant-transfer-list`);e.shiftKey&&t&&e.preventDefault()}splitDataSource(){this.leftDataSource=[],this.rightDataSource=[],this.nzDataSource.forEach(e=>{e.direction===`right`?(e.direction=`right`,this.rightDataSource.push(e)):(e.direction=`left`,this.leftDataSource.push(e))})}getCheckedData(e){return this[e===`left`?`leftDataSource`:`rightDataSource`].filter(t=>t.checked)}handleLeftSelectAll=e=>this.handleSelect(`left`,e);handleRightSelectAll=e=>this.handleSelect(`right`,e);handleLeftSelect=e=>this.handleSelect(`left`,!!e.checked,e);handleRightSelect=e=>this.handleSelect(`right`,!!e.checked,e);handleSelect(e,t,o){if(o){let d=e===`left`?this.leftDataSource:this.rightDataSource,m=d.findIndex(x=>x.key===o.key),g=this[e===`left`?`lastLeftCheckedIndex`:`lastRightCheckedIndex`]??-1;if(this.isShiftPressed&&g>-1){let x=Math.min(g,m),s=Math.max(g,m);for(let l=x;l<=s;l++){let z=d[l];z.disabled||(z.checked=t)}this.markForCheckAllList()}this[e===`left`?`lastLeftCheckedIndex`:`lastRightCheckedIndex`]=m}let r=this.getCheckedData(e),a=r.filter(d=>!d.disabled).length;this.updateOperationStatus(e,a),this.nzSelectChange.emit({direction:e,checked:t,list:r,item:o})}handleFilterChange(e){this.nzSearchChange.emit(e)}leftActive=!1;rightActive=!1;updateOperationStatus(e,t){this[e===`right`?`leftActive`:`rightActive`]=(typeof t>`u`?this.getCheckedData(e).filter(o=>!o.disabled).length:t)>0}moveToLeft=()=>this.moveTo(`left`);moveToRight=()=>this.moveTo(`right`);moveTo(e){let t=e===`left`?`right`:`left`;this.updateOperationStatus(t,0);let r=(e===`left`?this.rightDataSource:this.leftDataSource).filter(a=>a.checked===!0&&!a.disabled);this.nzCanMove({direction:e,list:r}).subscribe({next:a=>this.truthMoveTo(e,a.filter(d=>!!d)),error:()=>r.forEach(a=>a.checked=!1)})}truthMoveTo(e,t){let o=e===`left`?`right`:`left`,r=e===`left`?this.rightDataSource:this.leftDataSource,a=e===`left`?this.leftDataSource:this.rightDataSource;for(let d of t)d.checked=!1,d.hide=!1,d.direction=e,r.splice(r.indexOf(d),1);a.splice(0,0,...t),this.updateOperationStatus(o),this.nzChange.emit({from:o,to:e,list:t}),this.markForCheckAllList()}
338markForCheckAllList(){this.lists&&this.lists.forEach(e=>e.markForCheck())}handleNzTargetKeys(){let e=T1e(this.nzTargetKeys),t=o=>o.hasOwnProperty(`key`);this.leftDataSource.forEach(o=>{t(o)&&e.indexOf(o.key)!==-1&&!o.disabled&&(o.checked=!0)}),this.moveToRight()}handleNzSelectedKeys(){let e=T1e(this.nzSelectedKeys);this.nzDataSource.forEach(o=>{e.indexOf(o.key)!==-1&&(o.checked=!0)});let t=o=>o.disabled===!1&&o.checked===!0;this.rightActive=this.leftDataSource.some(t),this.leftActive=this.rightDataSource.some(t)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Vn$1((e,t)=>e.status===t.status&&e.hasFeedback===t.hasFeedback),be$1(this.destroyRef)).subscribe(({status:e,hasFeedback:t})=>{this.setStatusStyles(e,t)}),this.i18n.localeChange.pipe(be$1(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData(`Transfer`),this.markForCheckAllList()})}ngOnChanges(e){let{nzStatus:t,nzDataSource:o,nzTargetKeys:r,nzSelectedKeys:a}=e;o&&(this.splitDataSource(),this.updateOperationStatus(`left`),this.updateOperationStatus(`right`),this.cdr.detectChanges(),this.markForCheckAllList()),r&&this.handleNzTargetKeys(),a&&this.handleNzSelectedKeys(),t&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}setStatusStyles(e,t){this.hasFeedback=t,this.cdr.markForCheck(),this.statusCls=q1e(this.prefixCls,e,t),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.elementRef.nativeElement,o):this.renderer.removeClass(this.elementRef.nativeElement,o)})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){function e(x,s){if(x&1&&(oe$2(0,`span`),an$3(1),he$1()),x&2){let l=F$2(3);A(),vr$3(l.nzOperations[1])}}function t(x,s){if(x&1){let l=on();oe$2(0,`button`,4),je$1(`click`,function(){gt$1(l);let b=F$2(2);return vt(b.moveToLeft())}),pt$1(1,`nz-icon`,6),ve$1(2,e,2,1,`span`),he$1()}if(x&2){let l=F$2(2);ie$1(`disabled`,l.nzDisabled||!l.leftActive),A(2),ye$1(l.nzOperations[1]?2:-1)}}function o(x,s){if(x&1&&(oe$2(0,`span`),an$3(1),he$1()),x&2){let l=F$2(2);A(),vr$3(l.nzOperations[0])}}function r(x,s){if(x&1){let l=on();oe$2(0,`div`,1),ve$1(1,t,3,2,`button`,3),oe$2(2,`button`,4),je$1(`click`,function(){gt$1(l);let b=F$2();return vt(b.moveToRight())}),pt$1(3,`nz-icon`,5),ve$1(4,o,2,1,`span`),he$1()()}if(x&2){let l=F$2();A(),ye$1(l.nzOneWay?-1:1),A(),ie$1(`disabled`,l.nzDisabled||!l.rightActive),A(2),ye$1(l.nzOperations[0]?4:-1)}}function a(x,s){if(x&1&&(oe$2(0,`span`),an$3(1),he$1()),x&2){let l=F$2(2);A(),vr$3(l.nzOperations[0])}}function d(x,s){if(x&1&&(oe$2(0,`span`),an$3(1),he$1()),x&2){let l=F$2(3);A(),vr$3(l.nzOperations[1])}}function m(x,s){if(x&1){let l=on();oe$2(0,`button`,4),je$1(`click`,function(){gt$1(l);let b=F$2(2);return vt(b.moveToLeft())}),pt$1(1,`nz-icon`,5),ve$1(2,d,2,1,`span`),he$1()}if(x&2){let l=F$2(2);ie$1(`disabled`,l.nzDisabled||!l.leftActive),A(2),ye$1(l.nzOperations[1]?2:-1)}}function g(x,s){if(x&1){let l=on();oe$2(0,`div`,1)(1,`button`,4),je$1(`click`,function(){gt$1(l);let b=F$2();return vt(b.moveToRight())}),pt$1(2,`nz-icon`,6),ve$1(3,a,2,1,`span`),he$1(),ve$1(4,m,3,2,`button`,3),he$1()}if(x&2){let l=F$2();A(),ie$1(`disabled`,l.nzDisabled||!l.rightActive),A(2),ye$1(l.nzOperations[0]?3:-1),A(),ye$1(l.nzOneWay?-1:4)}}return Se$1({type:n,selectors:[[`nz-transfer`]],viewQuery:function(s,l){if(s&1&&Kn(ta,5),s&2){let z;Ge(z=Ke())&&(l.lists=z)}},hostAttrs:[1,`ant-transfer`],hostVars:6,hostBindings:function(s,l){s&1&&je$1(`keydown.shift`,function(){return l.onTriggerShiftDown()},xz)(`keyup.shift`,function(){return l.onTriggerShiftUp()},xz)(`mousedown`,function(b){return l.onTriggerMouseDown(b)}),s&2&&Ze(`ant-transfer-rtl`,l.dir()===`rtl`)(`ant-transfer-disabled`,l.nzDisabled)(`ant-transfer-customize-list`,l.nzRenderList)},inputs:{nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzDataSource:`nzDataSource`,nzTitles:`nzTitles`,nzOperations:`nzOperations`,nzListStyle:`nzListStyle`,nzShowSelectAll:[2,`nzShowSelectAll`,`nzShowSelectAll`,H$2],nzItemUnit:`nzItemUnit`,nzItemsUnit:`nzItemsUnit`,nzCanMove:`nzCanMove`,nzRen
338derList:`nzRenderList`,nzRender:`nzRender`,nzFooter:`nzFooter`,nzShowSearch:[2,`nzShowSearch`,`nzShowSearch`,H$2],nzFilterOption:`nzFilterOption`,nzSearchPlaceholder:`nzSearchPlaceholder`,nzNotFoundContent:`nzNotFoundContent`,nzTargetKeys:`nzTargetKeys`,nzSelectedKeys:`nzSelectedKeys`,nzStatus:`nzStatus`,nzOneWay:[2,`nzOneWay`,`nzOneWay`,H$2]},outputs:{nzChange:`nzChange`,nzSearchChange:`nzSearchChange`,nzSelectChange:`nzSelectChange`},exportAs:[`nzTransfer`],features:[Te$1],decls:4,vars:34,consts:[[`data-direction`,`left`,`direction`,`left`,1,`ant-transfer-list`,3,`filterChange`,`handleSelect`,`handleSelectAll`,`titleText`,`showSelectAll`,`dataSource`,`filter`,`filterOption`,`renderList`,`render`,`disabled`,`showSearch`,`searchPlaceholder`,`notFoundContent`,`itemUnit`,`itemsUnit`,`footer`],[1,`ant-transfer-operation`],[`data-direction`,`right`,`direction`,`right`,1,`ant-transfer-list`,3,`filterChange`,`moveToLeft`,`handleSelect`,`handleSelectAll`,`titleText`,`showSelectAll`,`dataSource`,`filter`,`filterOption`,`renderList`,`render`,`disabled`,`showSearch`,`searchPlaceholder`,`notFoundContent`,`itemUnit`,`itemsUnit`,`footer`,`oneWay`],[`nz-button`,``,`type`,`button`,`nzType`,`primary`,`nzSize`,`small`,3,`disabled`],[`nz-button`,``,`type`,`button`,`nzType`,`primary`,`nzSize`,`small`,3,`click`,`disabled`],[`nzType`,`right`],[`nzType`,`left`]],template:function(s,l){s&1&&(oe$2(0,`nz-transfer-list`,0),je$1(`filterChange`,function(b){return l.handleFilterChange(b)})(`handleSelect`,function(b){return l.handleLeftSelect(b)})(`handleSelectAll`,function(b){return l.handleLeftSelectAll(b)}),he$1(),ve$1(1,r,5,3,`div`,1)(2,g,5,3,`div`,1),oe$2(3,`nz-transfer-list`,2),je$1(`filterChange`,function(b){return l.handleFilterChange(b)})(`moveToLeft`,function(){return l.moveToLeft()})(`handleSelect`,function(b){return l.handleRightSelect(b)})(`handleSelectAll`,function(b){return l.handleRightSelectAll(b)}),he$1()),s&2&&(ko$1(l.nzListStyle),ie$1(`titleText`,l.nzTitles[0])(`showSelectAll`,l.nzShowSelectAll)(`dataSource`,l.leftDataSource)(`filter`,l.leftFilter)(`filterOption`,l.nzFilterOption)(`renderList`,l.nzRenderList&&l.nzRenderList[0])(`render`,l.nzRen
338der)(`disabled`,l.nzDisabled)(`showSearch`,l.nzShowSearch)(`searchPlaceholder`,l.nzSearchPlaceholder||l.locale?.searchPlaceholder)(`notFoundContent`,l.nzNotFoundContent)(`itemUnit`,l.nzItemUnit||l.locale?.itemUnit)(`itemsUnit`,l.nzItemsUnit||l.locale?.itemsUnit)(`footer`,l.nzFooter),A(),ye$1(l.dir()!==`rtl`?1:2),A(2),ko$1(l.nzListStyle),ie$1(`titleText`,l.nzTitles[1])(`showSelectAll`,l.nzShowSelectAll)(`dataSource`,l.rightDataSource)(`filter`,l.rightFilter)(`filterOption`,l.nzFilterOption)(`renderList`,l.nzRenderList&&l.nzRenderList[1])(`render`,l.nzRender)(`disabled`,l.nzDisabled)(`showSearch`,l.nzShowSearch)(`searchPlaceholder`,l.nzSearchPlaceholder||l.locale?.searchPlaceholder)(`notFoundContent`,l.nzNotFoundContent)(`itemUnit`,l.nzItemUnit||l.locale?.itemUnit)(`itemsUnit`,l.nzItemsUnit||l.locale?.itemsUnit)(`footer`,l.nzFooter)(`oneWay`,l.nzOneWay))},dependencies:[ta,xr$2,Gt$2,v5,a3,f5,m5],encapsulation:2})})()}return n})();var Ed=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[na,ta]})}return n})();var Mi=class n extends de$1{static KEY=`transfer`;list=G$1([]);i;_data=G$1([]);ngOnInit(){let{titles:i,operations:e,itemUnit:t,itemsUnit:o}=this.ui;this.i={titles:i??[``,``],operations:e??[``,``],itemUnit:t??`项`,itemsUnit:o??`项`}}reset(i){_r$2(this.schema,this.ui,null).subscribe(e=>{let t=i;Array.isArray(t)||(t=[t]),e.forEach(o=>{~t.indexOf(o.value)&&(o.direction=`right`)}),this.list.set(e),this._data.set(e.filter(o=>o.direction===`right`)),this.notify()})}notify(){this.formProperty.setValue(this._data().map(i=>i.value),!1)}_canMove=i=>this.ui.canMove?this.ui.canMove(i):S(i.list);_change(i){i.to===`right`?this._data.set(this._data().concat(...i.list)):this._data.set(this._data().filter(e=>i.list.indexOf(e)===-1)),this.ui.change?.(i),this.notify()}_searchChange(i){this.ui.searchChange?.(i)}_selectChange(i){this.ui.selectChange?.(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-transfer`]],features:[tn$2],decls:2,vars:20,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzChange`,`nzSearchChange`,`nzSelectChange`,`nzDisabled`,`nzDataSource`,`nzTitles`,`nzOperations`,`nzListStyle`,`nzItemUnit`,`nzItemsUnit`,`nzShowSearch`,`nzShowSelectAll`,`nzFilterOption`,`nzSearchPlaceholder`,`nzNotFoundContent`,`nzOneWay`,`nzCanMove`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-transfer`,1),je$1(`nzChange`,function(r){return t._change(r)})(`nzSearchChange`,function(r){return t._searchChange(r)})(`nzSelectChange`,function(r){return t._selectChange(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzDisabled`,t.disabled)(`nzDataSource`,t.list())(`nzTitles`,t.i.titles)(`nzOperations`,t.i.operations)(`nzListStyle`,t.ui.listStyle)(`nzItemUnit`,t.i.itemUnit)(`nzItemsUnit`,t.i.itemsUnit)(`nzShowSearch`,t.ui.showSearch)(`nzShowSelectAll`,t.ui.showSelectAll)(`nzFilterOption`,t.ui.filterOption)(`nzSearchPlaceholder`,t.ui.searchPlaceholder)(`nzNotFoundContent`,t.ui.notFoundContent)(`nzOneWay`,t.ui.oneWay)(`nzCanMove`,t._canMove))},dependencies:[fr$2,Cu$1,le$2,Ed,na],encapsulation:2})};function Od(){return{KEY:Mi.KEY,type:Mi}}var Mu=(()=>{class n{dropPosition;level=1;direction=`ltr`;style={};cdr=h(Qe$1);ngOnChanges(){this.renderIndicator(this.dropPosition,this.direction)}renderIndicator(e,t=`ltr`){let r=t===`ltr`?`left`:`right`,a=t===`ltr`?`right`:`left`,d={[r]:`4px`,[a]:`0px`};switch(e){case-1:d.top=`-3px`;break;case 1:d.bottom=`-3px`;break;case 0:d.bottom=`-3px`,d[r]=`28px`;break;default:d.display=`none`}this.style=d,this.cdr.markForCheck()}static ɵfac=function(t){return new(t||n)};static ɵcmp=Se$1({type:n,selectors:[[`nz-tree-drop-indicator`]],hostAttrs:[1,`ant-tree-drop-indicator`],hostVars:2,hostBindings:function(t,o){t&2&&ko$1(o.style)},inputs:{dropPosition:`dropPosition`,level:[2,`level`,`level`,Oo$1],direction:`direction`},exportAs:[`nzTreeDropIndicator`],features:[Te$1],decls:0,vars:0,template:function(t,o){},encapsulation:2})}return n})();var Nu=(()=>{class n{nzTreeLevel=0;nzIsStart=[];nzIsEnd=[];nzSelectMode=!1;listOfUnit=[];ngOnChanges(e){let{nzTreeLevel:t}=e;t&&(this.listOfUnit=[...new Array(t.currentValue||0)])}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){function e(t,o){if(t&1&&Md$1(0,`span`),t&2){let r=o.$index,a=F$2();Ze(`ant-tree-indent-unit`,!a.nzSelectMode)(`ant-select-tree-indent-unit`,a.nzSelectMode)(`ant-select-tree-indent-unit-start`,a.nzSelectMode&&a.nzIsStart[r])(`ant-tree-indent-unit-start`,!a.nzSelectMode&&a.nzIsStart[r])(`ant-select-tree-indent-unit-end`,a.nzSelectMode&&a.nzIsEnd[r])(`ant-tree-indent-unit-end`,!a.nzSelectMode&&a.nzIsEnd[r])}}return Se$1({type:n,selectors:[[`nz-tree-indent`]],hostVars:5,hostBindings:function(o,r){o&2&&($t(`aria-hidden`,!0),Ze(`ant-tree-indent`,!r.nzSelectMode)(`ant-select-tree-indent`,r.nzSelectMode))},inputs:{nzTreeLevel:`nzTreeLevel`,nzIsStart:`nzIsStart`,nzIsEnd:`nzIsEnd`,nzSelectMode:`nzSelectMode`},exportAs:[`nzTreeIndent`],features:[Te$1],decls:2,vars:0,consts:[[3,`ant-tree-indent-unit`,`ant-select-tree-indent-unit`,`ant-select-tree-indent-unit-start`,`ant-tree-indent-unit-start`,`ant-select-tree-indent-unit-end`,`ant-tree-indent-unit-end`]],template:function(o,r){o&1&&Yl(0,e,1,12,`span`,0,EP),o&2&&Ul(r.listOfUnit)},encapsulation:2})})()}return n})();var ku=(()=>{class n{nzSelectMode=!1;isChecked;isHalfChecked;isDisabled;isDisableCheckbox;static ɵfac=function(t){return new(t||n)};static ɵcmp=Se$1({type:n,selectors:[[`nz-tree-node-checkbox`,`builtin`,``]],hostVars:16,hostBindings:function(t,o){t&2&&Ze(`ant-select-tree-checkbox`,o.nzSelectMode)(`ant-select-tree-checkbox-checked`,o.nzSelectMode&&o.isChecked)(`ant-select-tree-checkbox-indeterminate`,o.nzSelectMode&&o.isHalfChecked)(`ant-select-tree-checkbox-disabled`,o.nzSelectMode&&(o.isDisabled||o.isDisableCheckbox))(`ant-tree-checkbox`,!o.nzSelectMode)(`ant-tree-checkbox-checked`,!o.nzSelectMode&&o.isChecked)(`ant-tree-checkbox-indeterminate`,!o.nzSelectMode&&o.isHalfChecked)(`ant-tree-checkbox-disabled`,!o.nzSelectMode&&(o.isDisabled||o.isDisableCheckbox))},inputs:{nzSelectMode:`nzSelectMode`,isChecked:[2,`isChecked`,`isChecked`,H$2],isHalfChecked:[2,`isHalfChecked`,`isHalfChecked`,H$2],isDisabled:[2,`isDisabled`,`isDisabled`,H$2],isDisableCheckbox:[2,`isDisableCheckbox`,`isDisableCheckbox`,H$2]},decls:1,vars:4,template:function(t,o){t&1&&Md$1(0,`span`),t&2&&Ze(`ant-tree-checkbox-inner`,!o.nzSelectMode)(`ant-select-tree-checkbox-inner`,o.nzSelectMode)},encapsulation:2})}return n})();var Ad=(()=>{class n{nzShowExpand;nzShowLine;nzExpandedIcon;nzSelectMode=!1;context;isLeaf;isLoading;isExpanded;get isShowLineIcon(){return!this.isLeaf&&!!this.nzShowLine}
338get isShowSwitchIcon(){return!this.isLeaf&&!this.nzShowLine}get isSwitcherOpen(){return!!this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(z,b)=>({$implicit:z,origin:b});function t(z,b){if(z&1&&(nn$1(0),pt$1(1,`nz-icon`,2),rn$3()),z&2){let T=F$2(3);A(),Ze(`ant-select-tree-switcher-icon`,T.nzSelectMode)(`ant-tree-switcher-icon`,!T.nzSelectMode)}}function o(z,b){if(z&1&&qe$1(0,t,2,4,`ng-container`,1),z&2){let T=F$2(2);ie$1(`nzStringTemplateOutlet`,T.nzExpandedIcon)(`nzStringTemplateOutletContext`,pf(2,e,T.context,T.context.origin))}}function r(z,b){z&1&&pt$1(0,`nz-icon`,0),z&2&&ie$1(`nzSpin`,!0)}function a(z,b){if(z&1&&ve$1(0,o,1,5,`ng-container`)(1,r,1,1,`nz-icon`,0),z&2){let T=F$2();ye$1(T.isLoading?1:0)}}function d(z,b){if(z&1&&pt$1(0,`nz-icon`,3),z&2){let T=F$2(4);ie$1(`nzType`,T.isSwitcherOpen?`minus-square`:`plus-square`)}}function m(z,b){z&1&&pt$1(0,`nz-icon`,4)}function g(z,b){if(z&1&&(nn$1(0),ve$1(1,d,1,1,`nz-icon`,3)(2,m,1,0,`nz-icon`,4),rn$3()),z&2){let T=F$2(3);A(),ye$1(T.isShowLineIcon?1:2)}}function x(z,b){if(z&1&&qe$1(0,g,3,1,`ng-container`,1),z&2){let T=F$2(2);ie$1(`nzStringTemplateOutlet`,T.nzExpandedIcon)(`nzStringTemplateOutletContext`,pf(2,e,T.context,T.context.origin))}}function s(z,b){z&1&&pt$1(0,`nz-icon`,0),z&2&&ie$1(`nzSpin`,!0)}function l(z,b){if(z&1&&ve$1(0,x,1,5,`ng-container`)(1,s,1,1,`nz-icon`,0),z&2){let T=F$2();ye$1(T.isLoading?1:0)}}return Se$1({type:n,selectors:[[`nz-tree-node-switcher`]],hostVars:16,hostBindings:function(b,T){b&2&&Ze(`ant-select-tree-switcher`,T.nzSelectMode)(`ant-select-tree-switcher-noop`,T.nzSelectMode&&T.isLeaf)(`ant-select-tree-switcher_open`,T.nzSelectMode&&T.isSwitcherOpen)(`ant-select-tree-switcher_close`,T.nzSelectMode&&T.isSwitcherClose)(`ant-tree-switcher`,!T.nzSelectMode)(`ant-tree-switcher-noop`,!T.nzSelectMode&&T.isLeaf)(`ant-tree-switcher_open`,!T.nzSelectMode&&T.isSwitcherOpen)(`ant-tree-switcher_close`,!T.nzSelectMode&&T.isSwitcherClose)},inputs:{nzShowExpand:[2,`nzShowExpand`,`nzShowExpand`,H$2],nzShowLine:[2,`nzShowLine`,`nzShowLine`,H$2],nzExpandedIcon:`nzExpandedIcon`,nzSelectMode:`nzSelectMode`,context:`context`,isLeaf:[2,`isLeaf`,`isLeaf`,H$2],isLoading:[2,`isLoading`,`isLoading`,H$2],isExpanded:[2,`isExpanded`,`isExpanded`,H$2]},decls:2,vars:2,consts:[[`nzType`,`loading`,1,`ant-tree-switcher-loading-icon`,3,`nzSpin`],[4,`nzStringTemplateOutlet`,`nzStringTemplateOutletContext`],[`nzType`,`caret-down`],[1,`ant-tree-switcher-line-icon`,3,`nzType`],[`nzType`,`file`,1,`ant-tree-switcher-line-icon`]],template:function(b,T){b&1&&(ve$1(0,a,2,1),ve$1(1,l,2,1)),b&2&&(ye$1(T.isShowSwitchIcon?0:-1),A(),ye$1(T.nzShowLine?1:-1))},dependencies:[xr$2,Gt$2,Jr$3,er$1],encapsulation:2})})()}return n})();var Fd=(()=>{class n{cdr=h(Qe$1);searchValue;treeTemplate=null;draggable;showIcon;selectMode=!1;context;icon;title;isLoading;isSelected;isDisabled;isMatched;isExpanded;isLeaf;showIndicator=!0;dragPosition;get canDraggable(){return this.draggable&&!this.isDisabled?!0:null}get matchedValue(){return this.isMatched?this.searchValue:``}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}ngOnChanges(e){let{showIndicator:t,dragPosition:o}=e;(t||o)&&this.cdr.markForCheck()}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=(d,m)=>({$implicit:d,origin:m});function t(d,m){}function o(d,m){if(d&1&&(oe$2(0,`span`)(1,`span`),pt$1(2,`nz-icon`,4),he$1()()),d&2){let g=F$2(2);Ze(`ant-tree-icon__open`,g.isSwitcherOpen)(`ant-tree-icon__close`,g.isSwitcherClose)(`ant-tree-icon_loading`,g.isLoading)(`ant-select-tree-iconEle`,g.selectMode)(`ant-tree-iconEle`,!g.selectMode),A(),Ze(`ant-select-tree-iconEle`,g.selectMode)(`ant-select-tree-icon__customize`,g.selectMode)(`ant-tree-iconEle`,!g.selectMode)(`ant-tree-icon__customize`,!g.selectMode),A(),ie$1(`nzType`,g.icon)}}function r(d,m){if(d&1&&(ve$1(0,o,3,19,`span`,2),pt$1(1,`span`,3),vi$1(2,`nzHighlight`)),d&2){let g=F$2();ye$1(g.icon&&g.showIcon?0:-1),A(),ie$1(`innerHTML`,zO(2,2,g.title,g.matchedValue,`i`,`font-highlight`),Sa$1)}}function a(d,m){if(d&1&&pt$1(0,`nz-tree-drop-indicator`,1),d&2){let g=F$2();ie$1(`dropPosition`,g.dragPosition)(`level`,g.context.level)}}return Se$1({type:n,selectors:[[`nz-tree-node-title`]],hostVars:21,hostBindings:function(m,g){m&2&&($t(`title`,g.title)(`draggable`,g.canDraggable)(`aria-grabbed`,g.canDraggable),Ze(`draggable`,g.canDraggable)(`ant-select-tree-node-content-wrapper`,g.selectMode)(`ant-select-tree-node-content-wrapper-open`,g.selectMode&&g.isSwitcherOpen)(`ant-select-tree-node-content-wrapper-close`,g.selectMode&&g.isSwitcherClose)(`ant-select-tree-node-selected`,g.selectMode&&g.isSelected)(`ant-tree-node-content-wrapper`,!g.selectMode)(`ant-tree-node-content-wrapper-open`,!g.selectMode&&g.isSwitcherOpen)(`ant-tree-node-content-wrapper-close`,!g.selectMode&&g.isSwitcherClose)(`ant-tree-node-selected`,!g.selectMode&&g.isSelected))},inputs:{searchValue:`searchValue`,treeTemplate:`treeTemplate`,draggable:[2,`draggable`,`draggable`,H$2],showIcon:[2,`showIcon`,`showIcon`,H$2],selectMode:`selectMode`,context:`context`,icon:`icon`,title:`title`,isLoading:[2,`isLoading`,`isLoading`,H$2],isSelected:[2,`isSelected`,`isSelected`,H$2],isDisabled:[2,`isDisabled`,`isDisabled`,H$2],isMatched:[2,`isMatched`,`isMatched`,H$2],isExpanded:[2,`isExpanded`,`isExpanded`,H$2],isLeaf:[2,`isLeaf`,`isLeaf`,H$2],showIndicator:`showIndicator`,dragPosition:`dragPosition`},features:[Te$1],decls:3,vars:7,consts:[[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`dropPosition`,`level`],[3,`ant-tree-icon__open`,`ant-tree-icon__close`,`ant-tree-icon_loading`,`ant-select-tree-iconEle`,`ant-tree-iconEle`],[1,`ant-tree-title`,3,`innerHTML`],[3,`nzType`]],template:function(m,g){m&1&&(qe$1(0,t,0,0,`ng-template`,0),ve$1(1,r,3,7),ve$1(2,a,1,2,`nz-tree-drop-indicator`,1)),m&2&&(ie$1(`ngTemplateOutlet`,g.treeTemplate)(`ngTemplateOutletContext`,pf(4,e,g.context,g.context.origin)),A(),ye$1(g.treeTemplate?-1:1),A(),ye$1(g.showIndicator?2:-1))},dependencies:[ka$1,xr$2,Gt$2,Mu,Qo],encapsulation:2})})()}return n})();var Vd=(()=>{class n{nzTreeService=h(Ti$2);ngZone=h(B$2);renderer=h(We$2);el=h($$2).nativeElement;cdr=h(Qe$1);destroyRef=h(re$1);icon=``;title=``;isLoading=!1;isSelected=!1;isDisabled=!1;isMatched=!1;isExpanded;isLeaf;isChecked;isHalfChecked;isDisableCheckbox;isSelectable;canHide;isStart=[];isEnd=[];nzTreeNode;nzShowLine;nzShowExpand;nzCheckable;nzAsyncData;nzHideUnMatched=!1;nzNoAnimation=!1;nzSelectMode=!1;nzShowIcon=!1;nzExpandedIcon;nzTreeTemplate=null;nzBeforeDrop;nzSearchValue=``;nzDraggable=!1;nzClick=new O$1;nzDblClick=new O$1;nzContextMenu=new O$1;nzCheckboxChange=new O$1;nzExpandChange=new O$1;nzOnDragStart=new O$1;nzOnDragEnter=new O$1;nzOnDragOver=new O$1;nzOnDragLeave=new O$1;nzOnDrop=new O$1;nzOnDragEnd=new O$1;destroy$=new C$1;dragPos=2;dragPosClass={0:`drag-over`,1:`drag-over-gap-bottom`,"-1":`drag-over-gap-top`};draggingKey=null;showIndicator=!1;get displayStyle(){return this.nzSearchValue&&this.nzHideUnMatched&&!this.isMatched&&!this.isExpanded&&this.canHide?`none`:``}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}clickExpand(e){e.preventDefault(),!this.isLoading&&!this.isLeaf&&(this.nzAsyncData&&this.nzTreeNode.children.length===0&&!this.isExpanded&&(this.nzTreeNode.isLoading=!0),this.nzTreeNode.setExpanded(!this.isExpanded)),this.nzTreeService.setExpandedNodeList(this.nzTreeNode);let t=this.nzTreeService.formatEvent(`expand`,this.nzTreeNode,e);this.nzExpandChange.emit(t)}clickSelect(e){e.preventDefault(),this.isSelectable&&!this.isDisabled&&(this.nzTreeNode.isSelected=!this.nzTreeNode.isSelected),this.nzTreeService.setSelectedNodeList(this.nzTreeNode);let t=this.nzTreeService.formatEvent(`click`,this.nzTreeNode,e);this.nzClick.emit(t)}dblClick(e){e.preventDefault();let t=this.nzTreeService.formatEvent(`dblclick`,this.nzTreeNode,e);this.nzDblClick.emit(t)}contextMenu(e){let t=this.nzTreeService.formatEvent(`contextmenu`,this.nzTreeNode,e);this.nzContextMenu.emit(t)}clickCheckbox(e){if(e.preventDefault(),this.isDisabled||this.isDisableCheckbox)return;this.nzTreeNode.isChecked=!this.nzTreeNode.isChecked,this.nzTreeNode.isHalfChecked=!1,this.nzTreeService.setCheckedNodeList(this.nzTreeNode);let t=this.nzTreeService.formatEvent(`check`,this.nzTreeNode,e);this.nzCheckboxChange.emit(t)}clearDragClass(){[`drag-over-gap-top`,`drag-over-gap-bottom`,`drag-over`,`drop-target`].forEach(t=>this.renderer.removeClass(this.el,t))}handleDragStart(e){try{e.dataTransfer.setData(`text/plain`,this.nzTreeNode.key)}catch{}this.nzTreeService.setSelectedNode(this.nzTreeNode),this.draggingKey=this.nzTreeNode.key;let t=this.nzTreeService.formatEvent(`dragstart`,this.nzTreeNode,e);this.nzOnDragStart.emit(t)}handleDragEnter(e){e.preventDefault(),this.showIndicator=this.nzTreeNode.key!==this.nzTreeService.getSelectedNode()?.key,this.renderIndicator(2),this.ngZone.run(()=>{let t=this.nzTreeService.formatEvent(`dragenter`,this.nzTreeNode,e);this.nzOnDragEnter.emit(t)})}handleDragOver(e){e.preventDefault();let t=this.nzTreeService.calcDropPosition(e);this.dragPos!==t&&(this.clearDragClass(),this.renderIndicator(t),this.dragPos===0&&this.isLeaf||(this.renderer.addClass(this.el,this.dragPosClass[this.dragPos]),this.renderer.addClass(this.el,`drop-target`)));let o=this.nzTreeService.formatEvent(`dragover`,this.nzTreeNode,e);this.nzOnDragOver.emit(o)}handleDragLeave(e){e.preventDefault(),this.renderIndicator(2),this.clearDragClass();let t=this.nzTreeService.formatEvent(`dragleave`,this.nzTreeNode,e);this.nzOnDragLeave.emit(t)}handleDragDrop(e){e.preventDefault(),e.stopPropagation(),this.ngZone.run(()=>{this.showIndicator=!1,this.clearDragClass();let t=this.nzTreeService.getSelectedNode();if(!t||t&&t.key===this.nzTreeNode.key||this.dragPos===0&&this.isLeaf)return;let o=this.nzTreeService.formatEvent(`drop`,this.nzTreeNode,e),r=this.nzTreeService.formatEvent(`dragend`,this.nzTreeNode,e);this.nzBeforeDrop?this.nzBeforeDrop({dragNode:this.nzTreeService.getSelectedNode(),node:this.nzTreeNode,pos:this.dragPos}).subscribe(a=>{a&&this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(o),this.nzOnDragEnd.emit(r)}):this.nzTreeNode&&(this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(o))})}handleDragEnd(e){e.preventDefault(),this.ngZone.run(()=>
338{if(this.nzBeforeDrop)this.draggingKey=null,this.markForCheck();else{this.draggingKey=null;let t=this.nzTreeService.formatEvent(`dragend`,this.nzTreeNode,e);this.nzOnDragEnd.emit(t)}})}handDragEvent(){this.nzDraggable?(this.destroy$=new C$1,A1(this.el,`dragstart`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragStart(e)),A1(this.el,`dragenter`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragEnter(e)),A1(this.el,`dragover`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragOver(e)),A1(this.el,`dragleave`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragLeave(e)),A1(this.el,`drop`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragDrop(e)),A1(this.el,`dragend`).pipe(Be(this.destroy$)).subscribe(e=>this.handleDragEnd(e))):(this.destroy$.next(),this.destroy$.complete())}markForCheck(){this.cdr.markForCheck()}constructor(){this.destroyRef.onDestroy(()=>{this.destroy$.next(),this.destroy$.complete()})}ngOnInit(){this.nzTreeNode.component=this,A1(this.el,`mousedown`).pipe(be$1(this.destroyRef)).subscribe(e=>{this.nzSelectMode&&e.preventDefault()})}ngOnChanges(e){let{nzDraggable:t}=e;t&&this.handDragEvent()}renderIndicator(e){this.ngZone.run(()=>{this.showIndicator=e!==2,!(this.nzTreeNode.key===this.nzTreeService.getSelectedNode()?.key||e===0&&this.isLeaf)&&(this.dragPos=e,this.cdr.markForCheck())})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){function e(o,r){if(o&1){let a=on();oe$2(0,`nz-tree-node-switcher`,4),je$1(`click`,function(m){gt$1(a);let g=F$2();return vt(g.clickExpand(m))}),he$1()}if(o&2){let a=F$2();ie$1(`nzShowExpand`,a.nzShowExpand)(`nzShowLine`,a.nzShowLine)(`nzExpandedIcon`,a.nzExpandedIcon)(`nzSelectMode`,a.nzSelectMode)(`context`,a.nzTreeNode)(`isLeaf`,a.isLeaf)(`isExpanded`,a.isExpanded)(`isLoading`,a.isLoading)}}function t(o,r){if(o&1){let a=on();oe$2(0,`nz-tree-node-checkbox`,5),je$1(`click`,function(m){gt$1(a);let g=F$2();return vt(g.clickCheckbox(m))}),he$1()}if(o&2){let a=F$2();ie$1(`nzSelectMode`,a.nzSelectMode)(`isChecked`,a.isChecked)(`isHalfChecked`,a.isHalfChecked)(`isDisabled`,a.isDisabled)(`isDisableCheckbox`,a.isDisableCheckbox)}}return Se$1({type:n,selectors:[[`nz-tree-node`,`builtin`,``]],hostVars:36,hostBindings:function(r,a){r&2&&(It$2(`display`,a.displayStyle),Ze(`ant-select-tree-treenode`,a.nzSelectMode)(`ant-select-tree-treenode-disabled`,a.nzSelectMode&&a.isDisabled)(`ant-select-tree-treenode-switcher-open`,a.nzSelectMode&&a.isSwitcherOpen)(`ant-select-tree-treenode-switcher-close`,a.nzSelectMode&&a.isSwitcherClose)(`ant-select-tree-treenode-checkbox-checked`,a.nzSelectMode&&a.isChecked)(`ant-select-tree-treenode-checkbox-indeterminate`,a.nzSelectMode&&a.isHalfChecked)(`ant-select-tree-treenode-selected`,a.nzSelectMode&&a.isSelected)(`ant-select-tree-treenode-loading`,a.nzSelectMode&&a.isLoading)(`ant-tree-treenode`,!a.nzSelectMode)(`ant-tree-treenode-disabled`,!a.nzSelectMode&&a.isDisabled)(`ant-tree-treenode-switcher-open`,!a.nzSelectMode&&a.isSwitcherOpen)(`ant-tree-treenode-switcher-close`,!a.nzSelectMode&&a.isSwitcherClose)(`ant-tree-treenode-checkbox-checked`,!a.nzSelectMode&&a.isChecked)(`ant-tree-treenode-checkbox-indeterminate`,!a.nzSelectMode&&a.isHalfChecked)(`ant-tree-treenode-selected`,!a.nzSelectMode&&a.isSelected)(`ant-tree-treenode-loading`,!a.nzSelectMode&&a.isLoading)(`dragging`,a.draggingKey===a.nzTreeNode.key))},inputs:{icon:`icon`,title:`title`,isLoading:[2,`isLoading`,`isLoading`,H$2],isSelected:[2,`isSelected`,`isSelected`,H$2],isDisabled:[2,`isDisabled`,`isDisabled`,H$2],isMatched:[2,`isMatched`,`isMatched`,H$2],isExpanded:[2,`isExpanded`,`isExpanded`,H$2],isLeaf:[2,`isLeaf`,`isLeaf`,H$2],isChecked:[2,`isChecked`,`isChecked`,H$2],isHalfChecked:[2,`isHalfChecked`,`isHalfChecked`,H$2],isDisableCheckbox:[2,`isDisableCheckbox`,`isDisableCheckbox`,H$2],isSelectable:[2,`isSelectable`,`isSelectable`,H$2],canHide:[2,`canHide`,`canHide`,H$2],isStart:`isStart`,isEnd:`isEnd`,nzTreeNode:`nzTreeNode`,nzShowLine:[2,`nzShowLine`,`nzShowLine`,H$2],nzShowExpand:[2,`nzShowExpand`,`nzShowExpand`,H$2],nzCheckable:[2,`nzCheckable`,`nzCheckable`,H$2],nzAsyncData:[2,`nzAsyncData`,`nzAsyncData`,H$2],nzHideUnMatched:[2,`nzHideUnMatched`,`nzHideUnMatched`,H$2],nzNoAnimation:[2,`nzNoAnimation`,`nzNoAnimation`,H$2],nzSelectMode:[2,`nzSelectMode`,`nzSelectMode`,H$2],nzShowIcon:[2,`nzShowIcon`,`nzShowIcon`,H$2],nzExpandedIcon:`
338nzExpandedIcon`,nzTreeTemplate:`nzTreeTemplate`,nzBeforeDrop:`nzBeforeDrop`,nzSearchValue:`nzSearchValue`,nzDraggable:[2,`nzDraggable`,`nzDraggable`,H$2]},outputs:{nzClick:`nzClick`,nzDblClick:`nzDblClick`,nzContextMenu:`nzContextMenu`,nzCheckboxChange:`nzCheckboxChange`,nzExpandChange:`nzExpandChange`,nzOnDragStart:`nzOnDragStart`,nzOnDragEnter:`nzOnDragEnter`,nzOnDragOver:`nzOnDragOver`,nzOnDragLeave:`nzOnDragLeave`,nzOnDrop:`nzOnDrop`,nzOnDragEnd:`nzOnDragEnd`},exportAs:[`nzTreeBuiltinNode`],features:[Te$1],decls:4,vars:22,consts:[[3,`nzTreeLevel`,`nzSelectMode`,`nzIsStart`,`nzIsEnd`],[3,`nzShowExpand`,`nzShowLine`,`nzExpandedIcon`,`nzSelectMode`,`context`,`isLeaf`,`isExpanded`,`isLoading`],[`builtin`,``,3,`nzSelectMode`,`isChecked`,`isHalfChecked`,`isDisabled`,`isDisableCheckbox`],[3,`dblclick`,`click`,`contextmenu`,`icon`,`title`,`isLoading`,`isSelected`,`isDisabled`,`isMatched`,`isExpanded`,`isLeaf`,`searchValue`,`treeTemplate`,`draggable`,`showIcon`,`selectMode`,`context`,`showIndicator`,`dragPosition`],[3,`click`,`nzShowExpand`,`nzShowLine`,`nzExpandedIcon`,`nzSelectMode`,`context`,`isLeaf`,`isExpanded`,`isLoading`],[`builtin`,``,3,`click`,`nzSelectMode`,`isChecked`,`isHalfChecked`,`isDisabled`,`isDisableCheckbox`]],template:function(r,a){r&1&&(pt$1(0,`nz-tree-indent`,0),ve$1(1,e,1,8,`nz-tree-node-switcher`,1),ve$1(2,t,1,5,`nz-tree-node-checkbox`,2),oe$2(3,`nz-tree-node-title`,3),je$1(`dblclick`,function(m){return a.dblClick(m)})(`click`,function(m){return a.clickSelect(m)})(`contextmenu`,function(m){return a.contextMenu(m)}),he$1()),r&2&&(ie$1(`nzTreeLevel`,a.nzTreeNode.level)(`nzSelectMode`,a.nzSelectMode)(`nzIsStart`,a.isStart)(`nzIsEnd`,a.isEnd),A(),ye$1(a.nzShowExpand?1:-1),A(),ye$1(a.nzCheckable?2:-1),A(),ie$1(`icon`,a.icon)(`title`,a.title)(`isLoading`,a.isLoading)(`isSelected`,a.isSelected)(`isDisabled`,a.isDisabled)(`isMatched`,a.isMatched)(`isExpanded`,a.isExpanded)(`isLeaf`,a.isLeaf)(`searchValue`,a.nzSearchValue)(`treeTemplate`,a.nzTreeTemplate)(`draggable`,a.nzDraggable)(`showIcon`,a.nzShowIcon)(`selectMode`,a.nzSelectMode)(`context`,a.nzTreeNode)(`showIndicator`,a.showIndicator)(`dragPosition`,a.dragPos))},dependencies:[Nu,Ad,ku,Fd],encapsulation:2})})()}return n})();var Pd=(()=>{class n extends Ti$2{static ɵfac=(()=>{let e;return function(o){return(e||(e=Gn(n)))(o||n)}})();static ɵprov=w({token:n,factory:n.ɵfac})}return n})();function Du(){let n=h(ki$1,{skipSelf:!0,optional:!0}),i=h(Pd);return n??i}var Iu=`tree`;var ia=(()=>{let n=ut$1,i,e=[],t=[],o,r=[],a=[],d,m=[],g=[];
338return class tr extends n{static{let s=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;i=[Bo()],o=[Bo()],d=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzShowIcon`,static:!1,private:!1,access:{has:l=>`nzShowIcon`in l,get:l=>l.nzShowIcon,set:(l,z)=>{l.nzShowIcon=z}},metadata:s},e,t),uo$2(null,null,o,{kind:`field`,name:`nzHideUnMatched`,static:!1,private:!1,access:{has:l=>`nzHideUnMatched`in l,get:l=>l.nzHideUnMatched,set:(l,z)=>{l.nzHideUnMatched=z}},metadata:s},r,a),uo$2(null,null,d,{kind:`field`,name:`nzBlockNode`,static:!1,private:!1,access:{has:l=>`nzBlockNode`in l,get:l=>l.nzBlockNode,set:(l,z)=>{l.nzBlockNode=z}},metadata:s},m,g),s&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})}_nzModuleName=Iu;dir=h(Ue$1).valueSignal;cdr=h(Qe$1);destroyRef=h(re$1);nzShowIcon=mn$3(this,e,!1);nzHideUnMatched=(mn$3(this,t),mn$3(this,r,!1));nzBlockNode=(mn$3(this,a),mn$3(this,m,!1));nzExpandAll=(mn$3(this,g),!1);nzSelectMode=!1;nzCheckStrictly=!1;nzShowExpand=!0;nzShowLine=!1;nzCheckable=!1;nzAsyncData=!1;nzDraggable=!1;nzMultiple=!1;nzExpandedIcon;nzVirtualItemSize=28;nzVirtualMaxBufferPx=500;nzVirtualMinBufferPx=28;nzVirtualHeight=null;nzTreeTemplate;nzBeforeDrop;nzData=[];nzExpandedKeys=[];nzSelectedKeys=[];nzCheckedKeys=[];nzSearchValue=``;nzSearchFunc;nzTreeTemplateChild;cdkVirtualScrollViewport;nzFlattenNodes=[];nzExpandedKeysChange=new O$1;nzSelectedKeysChange=new O$1;nzCheckedKeysChange=new O$1;nzSearchValueChange=new O$1;nzClick=new O$1;nzDblClick=new O$1;nzContextMenu=new O$1;nzCheckboxChange=new O$1;nzExpandChange=new O$1;nzOnDragStart=new O$1;nzOnDragEnter=new O$1;nzOnDragOver=new O$1;nzOnDragLeave=new O$1;nzOnDrop=new O$1;nzOnDragEnd=new O$1;HIDDEN_STYLE={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0};HIDDEN_NODE_STYLE={position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`};onChange=()=>null;onTouched=()=>null;writeValue(s){this.handleNzData(s)}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}renderTreeProperties(s){let l=!1,z=!1,{nzData:b,nzExpandedKeys:T,nzSelectedKeys:L,nzCheckedKeys:j,nzCheckStrictly:H,nzExpandAll:S,nzMultiple:v,nzSearchValue:_}=s;S&&(l=!0,z=this.nzExpandAll),v&&(this.nzTreeService.isMultiple=this.nzMultiple),H&&(this.nzTreeService.isCheckStrictly=this.nzCheckStrictly),b&&this.handleNzData(this.nzData),j&&this.handleCheckedKeys(this.nzCheckedKeys),H&&this.handleCheckedKeys(null),(T||S)&&(l=!0,this.handleExpandedKeys(z||this.nzExpandedKeys)),L&&this.handleSelectedKeys(this.nzSelectedKeys,this.nzMultiple),_&&(_.firstChange&&!this.nzSearchValue||(l=!1,this.handleSearchValue(_.currentValue,this.nzSearchFunc),this.nzSearchValueChange.emit(this.nzTreeService.formatEvent(`search`,null,null))));let N=this.getExpandedNodeList().map(ce=>ce.key),P=l?z||this.nzExpandedKeys:N;this.handleFlattenNodes(this.nzTreeService.rootNodes,P)}trackByFlattenNode(s,l){return l.key}handleNzData(s){if(Array.isArray(s)){let l=this.coerceTreeNodes(s);this.nzTreeService.initTree(l)}}handleFlattenNodes(s,l=[]){this.nzTreeService.flattenTreeData(s,l)}handleCheckedKeys(s){this.nzTreeService.conductCheck(s,this.nzCheckStrictly)}handleExpandedKeys(s=[]){this.nzTreeService.conductExpandedKeys(s)}handleSelectedKeys(s,l){this.nzTreeService.conductSelectedKeys(s,l)}handleSearchValue(s,l){let z=Tt$1(this.nzTreeService.rootNodes,!0).map(T=>T.data),b=T=>l?l(T.origin):!!s&&T.title.toLowerCase().includes(s.toLowerCase());z.forEach(T=>{T.isMatched=b(T),T.canHide=!T.isMatched,T.isMatched?this.nzTreeService.expandNodeAllParentBySearch(T):(T.setExpanded(!1),this.nzTreeService.setExpandedNodeList(T)),this.nzTreeService.setMatchedNodeList(T)})}eventTriggerChanged(s){let l=s.node;switch(s.eventName){case`expand`:this.renderTree(),this.nzExpandChange.emit(s);break;case`click`:this.nzClick.emit(s);break;case`dblclick`:this.nzDblClick.emit(s);break;case`contextmenu`:this.nzContextMenu.emit(s);break;case`check`:{this.nzTreeService.setCheckedNodeList(l),this.nzCheckStrictly||this.nzTreeService.conduct(l);let z=this.nzTreeService.formatEvent(`check`,l,s.event);this.nzCheckboxChange.emit(z);let b=this.nzTreeService.getCheckedNodeKeys();this.nzCheckedKeysChange.emit(b);break}case`dragstart`:l.isExpanded&&(l.setExpanded(!l.isExpanded),this.renderTree()),this.nzOnDragStart.emit(s);break;case`dragenter`:{let z=this.nzTreeService.getSelectedNode();z&&z.key!==l.key&&!l.isExpanded&&!l.isLeaf&&(l.setExpanded(!0),this.renderTree()),this.nzOnDragEnter.emit(s);break}case`dragover`:this.nzOnDragOver.emit(s);break;case`dragleave`:this.nzOnDragLeave.emit(s);break;case`dragend`:this.nzOnDragEnd.emit(s);break;case`drop`:this.renderTree(),this.nzOnDrop.emit(s)}}renderTree(){this.handleFlattenNodes(this.nzTreeService.rootNodes,this.getExpandedNodeList().map(s=>s.key)),this.cdr.markForCheck()}constructor(){super(h(Ti$2))}ngOnInit(){this.nzTreeService.flattenNodes$.pipe(be$1(this.destroyRef)).subscribe(s=>{this.nzFlattenNodes=this.nzVirtualHeight&&this.nzHideUnMatched&&this.nzSearchValue?.length>0?s.filter(l=>!l.canHide):s,this.cdr.markForCheck()})}ngOnChanges(s){this.renderTreeProperties(s)}static ɵfac=function(l){return new(l||tr)};static ɵcmp=(function(){let s=[`nzTreeTemplate`],l=()=>[];function z(j,H){if(j&1){let S=on();nn$1(0),oe$2(1,`nz-tree-node`,8),je$1(`nzExpandChange`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzClick`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzDblClick`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzContextMenu`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzCheckboxChange`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragStart`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragEnter`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragOver`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragLeave`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragEnd`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDrop`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))}),he$1(),rn$3()}if(j&2){let S=H.$implicit,v=F$2(2);A(),ie$1(`icon`,S.icon)(`title`,S.title)(`isLoading`,S.isLoading)(`isSelected`,S.isSelected)(`isDisabled`,S.isDisabled)(`isMatched`,S.isMatched)(`isExpanded`,S.isExpanded)(`isLeaf`,S.isLeaf)(`isStart`,S.isStart??MO(28,l))(`isEnd`,S.isEnd??MO(29,l))(`isChecked`,S.isChecked)(`isHalfChecked`,S.isHalfChecked)(`isDisableCheckbox`,S.isDisableCheckbox)(`isSelectable`,S.isSelectable)(`canHide`,S.canHide)(`nzTreeNode`,S)(`nzSelectMode`,v.nzSelectMode)(`nzShowLine`,v.nzShowLine)(`nzExpandedIcon`,v.nzExpandedIcon)(`nzDraggable`,v.nzDraggable)(`nzCheckable`,v.nzCheckable)(`nzShowExpand`,v.nzShowExpand)(`nzAsyncData`,v.nzAsyncData)(`nzSearchValue`,v.nzSearchValue)(`nzHideUnMatched`,v.nzHideUnMatched)(`nzBeforeDrop`,v.nzBeforeDrop)(`nzShowIcon`,v.nzShowIcon)(`nzTreeTemplate`,v.nzTreeTemplate||v.nzTreeTemplateChild)}}function b(j,H){if(j&1&&(oe$2(0,`cdk-virtual-scroll-viewport`,6),qe$1(1,z,2,30,`ng-container`,7),he$1()),j&2){let S=F$2();It$2(`height`,S.nzVirtualHeight),Ze(`ant-select-tree-list-holder-inner`,S.nzSelectMode)(`ant-tree-list-holder-inner`,!S.nzSelectMode),ie$1(`itemSize`,S.nzVirtualItemSize)(`minBufferPx`,S.nzVirtualMinBufferPx)(`maxBufferPx`,S.nzVirtualMaxBufferPx),A(),ie$1(`cdkVirtualForOf`,S.nzFlattenNodes)(`cdkVirtualForTrackBy`,S.trackByFlattenNode)}}function T(j,H){if(j&1){let S=on();oe$2(0,`nz-tree-node`,10),je$1(`nzExpandChange`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzClick`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzDblClick`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzContextMenu`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzCheckboxChange`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragStart`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragEnter`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragOver`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragLeave`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDragEnd`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))})(`nzOnDrop`,function(_){gt$1(S);let N=F$2(2);return vt(N.eventTriggerChanged(_))}),he$1()}if(j&2){let S=H.$implicit,v=F$2(2);ie$1(`icon`,S.icon)(`title`,S.title)(`isLoading`,S.isLoading)(`isSelected`,S.isSelected)(`isDisabled`,S.isDisabled)(`isMatched`,S.isMatched)(`isExpanded`,S.isExpanded)(`isLeaf`,S.isLeaf)(`isStart`,S.isStart??MO(28,l))(`isEnd`,S.isEnd??MO(29,l))(`isChecked`,S.isChecked)(`isHalfChecked`,S.isHalfChecked)(`isDisableCheckbox`,S.isDisableCheckbox)(`isSelectable`,S.isSelectable)(`canHide`,S.canHide)(`nzTreeNode`,S)(`nzSelectMode`,v.nzSelectMode)(`nzShowLine`,v.nzShowLine)(`nzExpandedIcon`,v.nzExpandedIcon)(`nzDraggable`,v.nzDraggable)(`nzCheckable`,v.nzCheckable)(`nzShowExpand`,v.nzShowExpand)(`nzAsyncData`,v.nzAsyncData)(`nzSearchValue`,v.nzSearchValue)(`nzHideUnMatched`,v.nzHideUnMatched)(`nzBeforeDrop`,v.nzBeforeDrop)(`nzShowIcon`,v.nzShowIcon)(`nzTreeTemplate`,v.nzTreeTemplate||v.nzTreeTemplateChild)}}function L(j,H){if(j&1&&(oe$2(0,`div`),Yl(1,T,1,30,`nz-tree-node`,9,SP().trackByFlattenNode,!0),he$1()),j&2){let S=F$2();Ze(`ant-select-tree-list-holder-inner`,S.nzSelectMode)(`ant-tree-list-holder-inner`,!S.nzSelectMode),A(),Ul(S.nzFlattenNodes)}}return Se$1({type:tr,selectors:[[`nz-tree`]],contentQueries:function(H,S,v){if(H&1&&bn$3(v,s,7),H&2){let _;Ge(_=Ke())&&(S.nzTreeTemplateChild=_.first)}}
338,viewQuery:function(H,S){if(H&1&&Kn(IV,5,IV),H&2){let v;Ge(v=Ke())&&(S.cdkVirtualScrollViewport=v.first)}},hostVars:20,hostBindings:function(H,S){H&2&&Ze(`ant-select-tree`,S.nzSelectMode)(`ant-select-tree-show-line`,S.nzSelectMode&&S.nzShowLine)(`ant-select-tree-icon-hide`,S.nzSelectMode&&!S.nzShowIcon)(`ant-select-tree-block-node`,S.nzSelectMode&&S.nzBlockNode)(`ant-tree`,!S.nzSelectMode)(`ant-tree-rtl`,S.dir()===`rtl`)(`ant-tree-show-line`,!S.nzSelectMode&&S.nzShowLine)(`ant-tree-icon-hide`,!S.nzSelectMode&&!S.nzShowIcon)(`ant-tree-block-node`,!S.nzSelectMode&&S.nzBlockNode)(`draggable-tree`,S.nzDraggable)},inputs:{nzShowIcon:[2,`nzShowIcon`,`nzShowIcon`,H$2],nzHideUnMatched:[2,`nzHideUnMatched`,`nzHideUnMatched`,H$2],nzBlockNode:[2,`nzBlockNode`,`nzBlockNode`,H$2],nzExpandAll:[2,`nzExpandAll`,`nzExpandAll`,H$2],nzSelectMode:[2,`nzSelectMode`,`nzSelectMode`,H$2],nzCheckStrictly:[2,`nzCheckStrictly`,`nzCheckStrictly`,H$2],nzShowExpand:[2,`nzShowExpand`,`nzShowExpand`,H$2],nzShowLine:[2,`nzShowLine`,`nzShowLine`,H$2],nzCheckable:[2,`nzCheckable`,`nzCheckable`,H$2],nzAsyncData:[2,`nzAsyncData`,`nzAsyncData`,H$2],nzDraggable:[2,`nzDraggable`,`nzDraggable`,H$2],nzMultiple:[2,`nzMultiple`,`nzMultiple`,H$2],nzExpandedIcon:`nzExpandedIcon`,nzVirtualItemSize:`nzVirtualItemSize`,nzVirtualMaxBufferPx:`nzVirtualMaxBufferPx`,nzVirtualMinBufferPx:`nzVirtualMinBufferPx`,nzVirtualHeight:`nzVirtualHeight`,nzTreeTemplate:`nzTreeTemplate`,nzBeforeDrop:`nzBeforeDrop`,nzData:`nzData`,nzExpandedKeys:`nzExpandedKeys`,nzSelectedKeys:`nzSelectedKeys`,nzCheckedKeys:`nzCheckedKeys`,nzSearchValue:`nzSearchValue`,nzSearchFunc:`nzSearchFunc`},outputs:{nzExpandedKeysChange:`nzExpandedKeysChange`,nzSelectedKeysChange:`nzSelectedKeysChange`,nzCheckedKeysChange:`nzCheckedKeysChange`,nzSearchValueChange:`nzSearchValueChange`,nzClick:`nzClick`,nzDblClick:`nzDblClick`,nzContextMenu:`nzContextMenu`,nzCheckboxChange:`nzCheckboxChange`,nzExpandChange:`nzExpandChange`,nzOnDragStart:`nzOnDragStart`,nzOnDragEnter:`nzOnDragEnter`,nzOnDragOver:`nzOnDragOver`,nzOnDragLeave:`nzOnDragLeave`,
338nzOnDrop:`nzOnDrop`,nzOnDragEnd:`nzOnDragEnd`},exportAs:[`nzTree`],features:[Ft$1([Pd,HV,{provide:Ti$2,useFactory:Du},{provide:Le$2,useExisting:ta$2(()=>tr),multi:!0}]),tn$2,Te$1],decls:8,vars:7,consts:[[1,`ant-tree-treenode`],[1,`ant-tree-indent`],[1,`ant-tree-indent-unit`],[1,`ant-tree-list`,2,`position`,`relative`],[3,`ant-select-tree-list-holder-inner`,`ant-tree-list-holder-inner`,`itemSize`,`minBufferPx`,`maxBufferPx`,`height`],[3,`ant-select-tree-list-holder-inner`,`ant-tree-list-holder-inner`],[3,`itemSize`,`minBufferPx`,`maxBufferPx`],[4,`cdkVirtualFor`,`cdkVirtualForOf`,`cdkVirtualForTrackBy`],[`builtin`,``,3,`nzExpandChange`,`nzClick`,`nzDblClick`,`nzContextMenu`,`nzCheckboxChange`,`nzOnDragStart`,`nzOnDragEnter`,`nzOnDragOver`,`nzOnDragLeave`,`nzOnDragEnd`,`nzOnDrop`,`icon`,`title`,`isLoading`,`isSelected`,`isDisabled`,`isMatched`,`isExpanded`,`isLeaf`,`isStart`,`isEnd`,`isChecked`,`isHalfChecked`,`isDisableCheckbox`,`isSelectable`,`canHide`,`nzTreeNode`,`nzSelectMode`,`nzShowLine`,`nzExpandedIcon`,`nzDraggable`,`nzCheckable`,`nzShowExpand`,`nzAsyncData`,`nzSearchValue`,`nzHideUnMatched`,`nzBeforeDrop`,`nzShowIcon`,`nzTreeTemplate`],[`builtin`,``,`animation-tree-collapse`,``,3,`icon`,`title`,`isLoading`,`isSelected`,`isDisabled`,`isMatched`,`isExpanded`,`isLeaf`,`isStart`,`isEnd`,`isChecked`,`isHalfChecked`,`isDisableCheckbox`,`isSelectable`,`canHide`,`nzTreeNode`,`nzSelectMode`,`nzShowLine`,`nzExpandedIcon`,`nzDraggable`,`nzCheckable`,`nzShowExpand`,`nzAsyncData`,`nzSearchValue`,`nzHideUnMatched`,`nzBeforeDrop`,`nzShowIcon`,`nzTreeTemplate`],[`builtin`,``,`animation-tree-collapse`,``,3,`nzExpandChange`,`nzClick`,`nzDblClick`,`nzContextMenu`,`nzCheckboxChange`,`nzOnDragStart`,`nzOnDragEnter`,`nzOnDragOver`,`nzOnDragLeave`,`nzOnDragEnd`,`nzOnDrop`,`icon`,`title`,`isLoading`,`isSelected`,`isDisabled`,`isMatched`,`isExpanded`,`isLeaf`,`isStart`,`isEnd`,`isChecked`,`isHalfChecked`,`isDisableCheckbox`,`isSelectable`,`canHide`,`nzTreeNode`,`nzSelectMode`,`nzShowLine`,`nzExpandedIcon`,`nzDraggable`,`nzCheckable`,`nzShowExpand`,`nzAsyncData`,`nzSearchValue`,`nzHideUnMatched`,`nzBeforeDrop`,`nzShowIcon`,`nzTreeTemplate`]],template:function(H,S){H&1&&(oe$2(0,`div`),pt$1(1,`input`),he$1(),oe$2(2,`div`,0)(3,`div`,1),pt$1(4,`div`,2),he$1()(),oe$2(5,`div`,3),ve$1(6,b,2,11,`cdk-virtual-scroll-viewport`,4)(7,L,3,4,`div`,5),he$1()),H&2&&(A(),ko$1(S.HIDDEN_STYLE),A(),ko$1(S.HIDDEN_NODE_STYLE),A(3),Ze(`ant-select-tree-list`,S.nzSelectMode),A(),ye$1(S.nzVirtualHeight?6:7))},dependencies:[IV,SV,PV,Hge,Vd],encapsulation:2})})()}})();var Ld=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[ia,Vd,Ad,Fd]})}return n})();var oa=(()=>{class n extends Ti$2{static ɵfac=(()=>{let e;return function(o){return(e||(e=Gn(n)))(o||n)}})();static ɵprov=w({token:n,factory:n.ɵfac})}return n})();var Rd=`treeSelect`;var ra=`ant-select-dropdown ant-select-tree-dropdown`;var aa=(()=>{let n=ut$1,i,e=[],t=[],o,r=[],a=[],d,m=[],g=[],x,s=[],l=[],z,b=[],T=[],L,j=[],H=[];return class nr extends n{static{let v=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;i=[Bo()],o=[Bo()],d=[Bo()],x=[Bo()],z=[Bo()],L=[Bo()],uo$2(null,null,i,{kind:`field`,name:`nzDropdownMatchSelectWidth`,static:!1,private:!1,access:{has:_=>`nzDropdownMatchSelectWidth`in _,get:_=>_.nzDropdownMatchSelectWidth,set:(_,N)=>{_.nzDropdownMatchSelectWidth=N}},metadata:v},e,t),uo$2(null,null,o,{kind:`field`,name:`nzHideUnMatched`,static:!1,private:!1,access:{has:_=>`nzHideUnMatched`in _,get:_=>_.nzHideUnMatched,set:(_,N)=>{_.nzHideUnMatched=N}},metadata:v},r,a),uo$2(null,null,d,{kind:`field`,name:`nzShowIcon`,static:!1,private:!1,access:{has:_=>`nzShowIcon`in _,get:_=>_.nzShowIcon,set:(_,N)=>{_.nzShowIcon=N}},metadata:v},m,g),uo$2(null,null,x,{kind:`field`,name:`nzSize`,static:!1,private:!1,access:{has:_=>`nzSize`in _,get:_=>_.nzSize,set:(_,N)=>{_.nzSize=N}},metadata:v},s,l),uo$2(null,null,z,{kind:`field`,name:`nzVariant`,static:!1,private:!1,access:{has:_=>`nzVariant`in _,get:_=>_.nzVariant,set:(_,N)=>{_.nzVariant=N}},metadata:v},b,T),uo$2(null,null,L,{kind:`field`,name:`nzBackdrop`,static:!1,private:!1,access:{has:_=>`nzBackdrop`in _,get:_=>_.nzBackdrop,set:(_,N)=>{_.nzBackdrop=N}},metadata:v},j,H),v&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v})}_nzModuleName=Rd;renderer=h(We$2);cdr=h(Qe$1);elementRef=h($$2);focusMonitor=h(W_);destroyRef=h(re$1);platform=h(Me$3);nzFormStatusService=h(Sde,{optional:!0});noAnimation=h(as,{host:!0,optional:!0});requestId=-1;slideAnimationEnter=Vge(()=>this.placement().startsWith(`top`)?`down`:`up`);slideAnimationLeave=Bge(()=>this.placement().startsWith(`top`)?`down`:`up`);nzId=null;nzAllowClear=!0;nzShowExpand=!0;
338nzShowLine=!1;nzDropdownMatchSelectWidth=mn$3(this,e,!0);nzCheckable=(mn$3(this,t),!1);nzHideUnMatched=mn$3(this,r,!1);nzShowIcon=(mn$3(this,a),mn$3(this,m,!1));nzShowSearch=(mn$3(this,g),!1);nzDisabled=!1;nzAsyncData=!1;nzMultiple=!1;nzDefaultExpandAll=!1;nzCheckStrictly=!1;nzVirtualItemSize=28;nzVirtualMaxBufferPx=500;nzVirtualMinBufferPx=28;nzVirtualHeight=null;nzExpandedIcon;nzNotFoundContent;nzNodes=[];nzOpen=!1;nzSize=mn$3(this,s,`default`);nzVariant=(mn$3(this,l),mn$3(this,b,void 0));nzPlaceHolder=(mn$3(this,T),``);nzDropdownStyle=null;nzDropdownClassName;nzBackdrop=mn$3(this,j,!1);nzStatus=(mn$3(this,H),``);nzPlacement=``;set nzExpandedKeys(v){this.expandedKeys=v}get nzExpandedKeys(){return this.expandedKeys}nzPrefix=null;nzSuffixIcon=null;nzDisplayWith=v=>v.title;nzMaxTagCount;nzMaxTagPlaceholder=null;nzOpenChange=new O$1;nzCleared=new O$1;nzRemoved=new O$1;nzExpandChange=new O$1;nzTreeClick=new O$1;nzTreeCheckboxChange=new O$1;nzSelectSearchComponent;treeRef;cdkOverlayOrigin;cdkConnectedOverlay;nzTreeTemplate;nzTreeTemplateChild;get treeTemplate(){return this.nzTreeTemplate||this.nzTreeTemplateChild}prefixCls=`ant-select`;statusCls={};status=``;hasFeedback=!1;dropdownClassName=ra;triggerWidth;isComposing=!1;isNotFound=!1;focused=!1;inputValue=``;selectedNodes=[];expandedKeys=[];value=[];dir=h(Ue$1).valueSignal;positions=[];finalSize=Fe$1(()=>this.formSize?.()?this.formSize():this.compactSize?this.compactSize():this.size());finalVariant=Fe$1(()=>this.variant()||this.formVariant?.()||`outlined`);placement=G$1(`bottomLeft`);size=G$1(this.nzSize);variant=G$1(this.nzVariant);formSize=h(i3,{optional:!0});formVariant=h(xde,{optional:!0});compactSize=h(d5,{optional:!0});isNzDisableFirstChange=!0;isComposingChange$=new C$1;searchValueChange$=new C$1;onChange=v=>{};onTouched=()=>{};get placeHolderDisplay(){return this.inputValue||this.isComposing||this.selectedNodes.length?`none`:`block`}get isMultiple(){return this.nzMultiple||this.nzCheckable}constructor(){super(h(oa)),this.destroyRef.onDestroy(()=>{this.closeDropdown()}),vc$1(Rd,()=>{this.size.set(this.nzSize),this.cdr.markForCheck()})}ngOnInit(){this.size.set(this.nzSize),this.nzFormStatusService?.formStatusChanges.pipe(Vn$1((v,_)=>v.status===_.status&&v.hasFeedback===_.hasFeedback),be$1(this.destroyRef)).subscribe(({status:v,hasFeedback:_})=>{this.setStatusStyles(v,_)}),this.subscribeSelectionChange(),this.focusMonitor.monitor(this.elementRef,!0).pipe(be$1(this.destroyRef)).subscribe(v=>{v?(this.focused=!0,this.cdr.markForCheck()):(this.focused=!1,this.cdr.markForCheck(),Promise.resolve().then(()=>{this.onTouched()}))}),sr$2([this.searchValueChange$,this.isComposingChange$.pipe(mt$2(!1))]).pipe(be$1(this.destroyRef)).subscribe(([v,_])=>{this.isComposing=_,_||(this.inputValue=v,this.updatePosition())})}isComposingChange(v){this.isComposingChange$.next(v)}setDisabledState(v){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||v,this.closeDropdown(),this.isNzDisableFirstChange=!1}setStatusStyles(v,_){this.status=v,this.hasFeedback=_,this.cdr.markForCheck(),this.statusCls=q1e(this.prefixCls,v,_),Object.keys(this.statusCls).forEach(N=>{this.statusCls[N]?this.renderer.addClass(this.elementRef.nativeElement,N):this.renderer.removeClass(this.elementRef.nativeElement,N)})}ngOnChanges({nzNodes:v,nzDropdownClassName:_,nzStatus:N,nzPlacement:P,nzSize:ce,nzVariant:wt}){if(v&&this.updateSelectedNodes(!0),_){let St=this.nzDropdownClassName&&this.nzDropdownClassName.trim();this.dropdownClassName=St?`${ra} ${St}`:ra}if(N&&this.setStatusStyles(this.nzStatus,this.hasFeedback),P){let{currentValue:St}=P;this.placement.set(St);let en=[`bottomLeft`,`topLeft`,`bottomRight`,`topRight`];St&&en.includes(St)?this.positions=[rt$1[St]]:this.positions=en.map(sn=>rt$1[sn])}ce&&this.size.set(ce.currentValue),wt&&this.variant.set(wt.currentValue)}writeValue(v){Zp$1(v)?(this.isMultiple&&Array.isArray(v)?this.value=v:this.value=[v],this.clearSelectedNodes(),this.updateSelectedNodes(!0)):(this.value=[],this.clearSelectedNodes(),this.selectedNodes=[]),this.cdr.markForCheck()}registerOnChange(v){this.onChange=v}registerOnTouched(v){this.onTouched=v}onKeydown(v){if(!this.nzDisabled)switch(v.keyCode){case 27:break;case 9:this.closeDropdown();break;default:this.nzOpen||this.openDropdown()}}trigger(){this.nzDisabled||!this.nzDisabled&&this.nzOpen?this.closeDropdown():this.openDropdown()}openDropdown(){this.nzDisabled||(this.nzOpen=!0,this.nzOpenChange.emit(this.nzOpen),this.updateCdkConnectedOverlayStatus(),(this.nzShowSearch||this.isMultiple)&&this.focusOnInput(),this.cdr.markForCheck())}closeDropdown(){Promise.resolve().then(()=>this.onTouched()),this.nzOpen=!1,this.inputValue=``,this.isNotFound=!1,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck()}onKeyDownInput(v){let _=v.keyCode,N=v.target;if(this.isMultiple&&!N.value&&_===8&&(v.preventDefault(),this.selectedNodes.length)){let P=this.selectedNodes[this.selectedNodes.length-1];P&&!P.isDisabled&&this.removeSelected(P)}}onExpandedKeysChange(v){this.nzExpandChange.emit(v),this.expandedKeys=[...v.keys]}setInputValue(v){this.searchValueChange$.next(v)}removeSelected(v,_=!0){v.isSelected=!1,v.isChecked=!1,this.nzCheckable?this.nzTreeService.conduct(v,this.nzCheckStrictly):this.nzTreeService.setSelectedNodeList(v,this.nzMultiple),_&&this.nzRemoved.emit(v)}focusOnInput(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}subscribeSelectionChange(){ti(this.nzTreeClick.pipe(Je$2(v=>{let _=v.node;this.nzCheckable&&!_.isDisabled&&!_.isDisableCheckbox&&(_.isChecked=!_.isChecked,_.isHalfChecked=!1,this.nzCheckStrictly||this.nzTreeService.conduct(_)),this.nzCheckable&&(_.isSelected=!1)}),ne(v=>{let _=v.node;return this.nzCheckable?!_.isDisabled&&!_.isDisableCheckbox:!_.isDisabled&&_.isSelectable})),this.nzCheckable?this.nzTreeCheckboxChange.asObservable():S(),this.nzCleared,this.nzRemoved).pipe(be$1(this.destroyRef)).subscribe(()=>{this.updateSelectedNodes();let v=this.selectedNodes.map(_=>_.key);this.value=[...v],(this.nzShowSearch||this.isMultiple)&&(this.inputValue=``,this.isNotFound=!1),this.isMultiple?(this.onChange(v),this.focusOnInput(),this.updatePosition()):(this.closeDropdown(),this.onChange(v.length?v[0]:null))})}updateSelectedNodes(v=!1){if(v){let _=this.coerceTreeNodes(this.nzNodes);this.nzTreeService.isMultiple=this.isMultiple,this.nzTreeService.isCheckStrictly=this.nzCheckStrictly,this.nzTreeService.initTree(_),this.nzCheckable?this.nzTreeService.conductCheck(this.value,this.nzCheckStrictly):this.nzTreeService.conductSelectedKeys(this.value,this.isMultiple)}this.selectedNodes=[...this.nzCheckable?this.getCheckedNodeList():this.getSelectedNodeList()].sort((_,
338N)=>{let P=this.value.indexOf(_.key),ce=this.value.indexOf(N.key);return P!==-1&&ce!==-1?P-ce:P!==-1?-1:ce!==-1?1:0})}updatePosition(){Er$1(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}onPositionChange(v){let _=J5(v);this.placement.set(_)}onClearSelection(){this.selectedNodes.forEach(v=>{this.removeSelected(v,!1)}),this.nzCleared.emit()}onClickOutside(v){let _=dn$2(v);this.elementRef.nativeElement.contains(_)||this.closeDropdown()}setSearchValues(v){Promise.resolve().then(()=>{this.isNotFound=(this.nzShowSearch||this.isMultiple)&&!!this.inputValue&&v.matchedKeys.length===0})}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.cdkOverlayOrigin.elementRef.nativeElement){let v=this.triggerWidth;Tge(this.requestId),this.requestId=Er$1(()=>{this.triggerWidth=this.cdkOverlayOrigin.elementRef.nativeElement.getBoundingClientRect().width,v!==this.triggerWidth&&this.cdr.detectChanges()})}}clearSelectedNodes(){this.selectedNodes.forEach(v=>{this.removeSelected(v,!1)})}static ɵfac=function(_){return new(_||nr)};static ɵcmp=(function(){let v=[`nzTreeTemplate`],_=[`treeRef`],N=()=>[],P=(D,Y)=>Y.key;function ce(D,Y){if(D&1&&(oe$2(0,`span`,11),pt$1(1,`nz-embed-empty`,12),he$1()),D&2){let c=F$2(2);A(),ie$1(`specificContent`,c.nzNotFoundContent)}}function wt(D,Y){if(D&1){let c=on();oe$2(0,`div`,9),hi$1(function(){gt$1(c);let W=F$2();return vt(W.slideAnimationLeave())}),ui(function(){gt$1(c);let W=F$2();return vt(W.slideAnimationEnter())}),oe$2(1,`nz-tree`,10,1),je$1(`nzExpandChange`,function(W){gt$1(c);let se=F$2();return vt(se.onExpandedKeysChange(W))})(`nzClick`,function(W){gt$1(c);let se=F$2();return vt(se.nzTreeClick.emit(W))})(`nzCheckedKeysChange`,function(){gt$1(c);let W=F$2();return vt(W.updateSelectedNodes())})(`nzSelectedKeysChange`,function(){gt$1(c);let W=F$2();return vt(W.updateSelectedNodes())})(`nzCheckboxChange`,function(W){gt$1(c);let se=F$2();return vt(se.nzTreeCheckboxChange.emit(W))})(`nzSearchValueChange`,function(W){gt$1(c);let se=F$2();return vt(se.setSearchValues(W))}),he$1(),ve$1(3,ce,2,1,`span`,11),he$1()}if(D&2){let c=F$2();ko$1(c.nzDropdownStyle),Lt$1(c.dropdownClassName),Ze(`ant-select-dropdown-placement-bottomLeft`,c.placement()===`bottomLeft`)(`ant-select-dropdown-placement-topLeft`,c.placement()===`topLeft`)(`ant-select-dropdown-placement-bottomRight`,c.placement()===`bottomRight`)(`ant-select-dropdown-placement-topRight`,c.placement()===`topRight`)(`ant-tree-select-dropdown-rtl`,c.dir()===`rtl`),ie$1(`nzNoAnimation`,!!c.noAnimation?.nzNoAnimation?.())(`dir`,c.dir()),A(),ie$1(`hidden`,c.isNotFound)(`nzData`,c.nzNodes)(`nzMultiple`,c.nzMultiple)(`nzSearchValue`,c.inputValue)(`nzHideUnMatched`,c.nzHideUnMatched)(`nzShowIcon`,c.nzShowIcon)(`nzCheckable`,c.nzCheckable)(`nzAsyncData`,c.nzAsyncData)(`nzShowExpand`,c.nzShowExpand)(`nzShowLine`,c.nzShowLine)(`nzExpandedIcon`,c.nzExpandedIcon)(`nzExpandAll`,c.nzDefaultExpandAll)(`nzExpandedKeys`,c.expandedKeys)(`nzCheckedKeys`,c.nzCheckable?c.value:MO(38,N))(`nzSelectedKeys`,c.nzCheckable?MO(39,N):c.value)(`nzTreeTemplate`,c.treeTemplate)(`nzCheckStrictly`,c.nzCheckStrictly)(`nzVirtualItemSize`,c.nzVirtualItemSize)(`nzVirtualMaxBufferPx`,c.nzVirtualMaxBufferPx)(`nzVirtualMinBufferPx`,c.nzVirtualMinBufferPx)(`nzVirtualHeight`,c.nzVirtualHeight),A(2),ye$1(c.nzNodes.length===0||c.isNotFound?3:-1)}}function St(D,Y){if(D&1&&(nn$1(0),an$3(1),rn$3()),D&2){let c=F$2();A(),vr$3(c)}}function en(D,Y){D&1&&(oe$2(0,`div`,4),qe$1(1,St,2,1,`ng-container`,13),he$1()),D&2&&(A(),ie$1(`nzStringTemplateOutlet`,Y))}function sn(D,Y){if(D&1){let c=on();oe$2(0,`div`,14)(1,`nz-select-item`,17),je$1(`delete`,function(){let W=gt$1(c).$implicit,se=F$2(2);return vt(se.removeSelected(W,!0))}),he$1()()}if(D&2){let c=Y.$implicit,R=F$2(2);A(),ie$1(`disabled`,c.isDisabled||R.nzDisabled)(`label`,R.nzDisplayWith(c))}}function $(D,Y){if(D&1&&(oe$2(0,`div`,14),pt$1(1,`nz-select-item`,18),vi$1(2,`slice`),he$1()),D&2){let c=F$2(2);A(),ie$1(`contentTemplateOutlet`,c.nzMaxTagPlaceholder)(`contentTemplateOutletContext`,TO(2,3,c.selectedNodes,c.nzMaxTagCount))(`label`,`+ `+(c.selectedNodes.length-c.nzMaxTagCount)+` ...`)}}function pe(D,Y){if(D&1){let c=on();oe$2(0,`div`,6),Yl(1,sn,2,2,`div`,14,P),vi$1(3,`slice`),ve$1(4,$,3,6,`div`,14),oe$2(5,`div`,15)(6,`nz-select-search`,16),je$1(`keydown`,function(W){gt$1(c);let se=F$2();return vt(se.onKeyDownInput(W))})(`isComposingChange`,function(W){gt$1(c);let se=F$2();return vt(se.isComposingChange(W))})(`valueChange`,function(W){gt$1(c);let se=F$2();return vt(se.setInputValue(W))}),he$1()()()}if(D&2){let c=F$2();A(),Ul(EO(3,7,c.selectedNodes,0,c.nzMaxTagCount)),A(3),ye$1(c.selectedNodes.length>c.nzMaxTagCount?4:-1),A(2),ie$1(`nzId`,c.nzId)(`showInput`,c.nzShowSearch)(`value`,c.inputValue)(`mirrorSync`,!0)(`disabled`,c.nzDisabled)(`focusTrigger`,c.nzOpen)}}function B(D,Y){if(D&1&&pt$1(0,`nz-select-item`,19),D&2){let c=F$2(2);ie$1(`label`,c.nzDisplayWith(c.selectedNodes[0]))}}function ne(D,Y){if(D&1){let c=on();oe$2(0,`nz-select-search`,16),je$1(`keydown`,function(W){gt$1(c);let se=F$2();return vt(se.onKeyDownInput(W))})(`isComposingChange`,function(W){gt$1(c);let se=F$2();return vt(se.isComposingChange(W))})(`valueChange`,function(W){gt$1(c);let se=F$2();return vt(se.setInputValue(W))}),he$1(),ve$1(1,B,1,1,`nz-select-item`,19)}if(D&2){let c=F$2();ie$1(`nzId`,c.nzId)(`showInput`,c.nzShowSearch)(`value`,c.inputValue)(`mirrorSync`,!1)(`disabled`,c.nzDisabled)(`focusTrigger`,c.nzOpen),A(),ye$1(c.selectedNodes.length===1&&!c.isComposing&&c.inputValue===``?1:-1)}}function ue(D,Y){if(D&1&&pt$1(0,`nz-select-placeholder`,20),D&2){let c=F$2();It$2(`display`,c.placeHolderDisplay),ie$1(`placeholder`,c.nzPlaceHolder)}}function q(D,Y){if(D&1&&pt$1(0,`nz-form-item-feedback-icon`,21),D&2){let c=F$2(2);ie$1(`status`,c.status)}}function ot(D,Y){if(D&1&&ve$1(0,q,1,1,`nz-form-item-feedback-icon`,21),D&2){let c=F$2();ye$1(c.hasFeedback&&c.status?0:-1)}}function rt(D,Y){if(D&1){let c=on();oe$2(0,`nz-select-clear`,22),je$1(`clear`,function(){gt$1(c);let W=F$2();return vt(W.onClearSelection())}),he$1()}}return Se$1({type:nr,selectors:[[`nz-tree-select`]],contentQueries:function(Y,c,R){if(Y&1&&bn$3(R,v,7),Y&2){let W;Ge(W=Ke())&&(c.nzTreeTemplateChild=W.first)}},viewQuery:function(Y,c){if(Y&1&&Kn(Bi,5)(_,5)(qo$1,7)(i4,5),Y&2){let R;Ge(R=Ke())&&(c.nzSelectSearchComponent=R.first),Ge(R=Ke())&&(c.treeRef=R.first),Ge(R=Ke())&&(c.cdkOverlayOrigin=R.first),Ge(R=Ke())&&(c.cdkConnectedOverlay=R.first)}},hostAttrs:[1,`ant-select`,`ant-tree-select`],hostVars:32,hostBindings:function(Y,c){Y&1&&je$1(`click`,function(){return c.trigger()})(`keydown`,function(W){return c.onKeydown(W)}),Y&2&&Ze(`ant-select-in-form-item`,!!c.nzFormStatusService)(`ant-select-rtl`,c.dir()===`rtl`)(`ant-select-lg`,c.finalSize()===`large`)(`ant-select-sm`,c.finalSize()===`small`)(`ant-select-disabled`,c.nzDisabled)(`ant-select-single`,!c.isMultiple)(`ant-select-show-arrow`,!c.isMultiple)(`ant-select-show-search`,!c.isMultiple)(`ant-select-outlined`,c.finalVariant()===`outlined`)(`ant-select-borderless`,c.finalVariant()===`borderless`)(`ant-select-filled`,c.finalVariant()===`filled`)(`ant-select-underlined`,c.finalVariant()===`underlined`)(`ant-select-multiple`,c.isMultiple)(`ant-select-allow-clear`,c.nzAllowClear)(`ant-select-open`,c.nzOpen)(`ant-select-focused`,c.nzOpen||c.focused)},inputs:{nzId:`nzId`,nzAllowClear:[2,`nzAllowClear`,`nzAllowClear`,H$2],nzShowExpand:[2,`nzShowExpand`,`nzShowExpand`,H$2],nzShowLine:[2,`nzShowLine`,`nzShowLine`,H$2],nzDropdownMatchSelectWidth:[2,`nzDropdownMatchSelectWidth`,`nzDropdownMatchSelectWidth`,H$2],nzCheckable:[2,`nzCheckable`,`nzCheckable`,H$2],nzHideUnMatched:[2,`nzHideUnMatched`,`nzHideUnMatched`,H$2],nzShowIcon:[2,`nzShowIcon`,`nzShowIcon`,H$2],nzShowSearch:[2,`nzShowSearch`,`nzShowSearch`,H$2],nzDisabled:[2,`nzDisabled`,`nzDisabled`,H$2],nzAsyncData:[2,`nzAsyncData`,`nzAsyncData`,H$2],nzMultiple:[2,`nzMultiple`,`nzMultiple`,H$2],nzDefaultExpandAll:[2,`nzDefaultExpandAll`,`nzDefaultExpandAll`,H$2],nzCheckStrictly:[2,`nzCheckStrictly`,`nzCheckStrictly`,H$2],nzVirtualItemSize:`nzVirtualItemSize`,nz
338VirtualMaxBufferPx:`nzVirtualMaxBufferPx`,nzVirtualMinBufferPx:`nzVirtualMinBufferPx`,nzVirtualHeight:`nzVirtualHeight`,nzExpandedIcon:`nzExpandedIcon`,nzNotFoundContent:`nzNotFoundContent`,nzNodes:`nzNodes`,nzOpen:`nzOpen`,nzSize:`nzSize`,nzVariant:`nzVariant`,nzPlaceHolder:`nzPlaceHolder`,nzDropdownStyle:`nzDropdownStyle`,nzDropdownClassName:`nzDropdownClassName`,nzBackdrop:`nzBackdrop`,nzStatus:`nzStatus`,nzPlacement:`nzPlacement`,nzExpandedKeys:`nzExpandedKeys`,nzPrefix:`nzPrefix`,nzSuffixIcon:`nzSuffixIcon`,nzDisplayWith:`nzDisplayWith`,nzMaxTagCount:[2,`nzMaxTagCount`,`nzMaxTagCount`,Oo$1],nzMaxTagPlaceholder:`nzMaxTagPlaceholder`,nzTreeTemplate:`nzTreeTemplate`},outputs:{nzOpenChange:`nzOpenChange`,nzCleared:`nzCleared`,nzRemoved:`nzRemoved`,nzExpandChange:`nzExpandChange`,nzTreeClick:`nzTreeClick`,nzTreeCheckboxChange:`nzTreeCheckboxChange`},exportAs:[`nzTreeSelect`],features:[Ft$1([oa,{provide:u5,useValue:`select`},{provide:ki$1,useExisting:oa},{provide:Le$2,useExisting:ta$2(()=>nr),multi:!0}]),pi$1([$D]),tn$2,Te$1],decls:11,vars:16,consts:[[`feedbackIconTpl`,``],[`treeRef`,``],[`cdkConnectedOverlay`,``,`nzConnectedOverlay`,``,`cdkConnectedOverlayTransformOriginOn`,`.ant-select-tree-dropdown`,3,`overlayOutsideClick`,`detach`,`positionChange`,`cdkConnectedOverlayOffsetY`,`cdkConnectedOverlayHasBackdrop`,`cdkConnectedOverlayOrigin`,`cdkConnectedOverlayPositions`,`cdkConnectedOverlayOpen`,`cdkConnectedOverlayMinWidth`,`cdkConnectedOverlayWidth`],[`cdkOverlayOrigin`,``,1,`ant-select-selector`],[1,`ant-select-prefix`],[1,`ant-select-selection-wrap`],[1,`ant-select-selection-overflow`],[3,`placeholder`,`display`],[3,`showArrow`,`search`,`suffixIcon`,`feedbackIcon`],[3,`nzNoAnimation`,`dir`],[`nzNoAnimation`,``,`nzSelectMode`,``,`nzBlockNode`,``,3,`nzExpandChange`,`nzClick`,`nzCheckedKeysChange`,`nzSelectedKeysChange`,`nzCheckboxChange`,`nzSearchValueChange`,`hidden`,`nzData`,`nzMultiple`,`nzSearchValue`,`nzHideUnMatched`,`nzShowIcon`,`nzCheckable`,`nzAsyncData`,`nzShowExpand`,`nzShowLine`,`nzExpandedIcon`,`nzExpandAll`,`nzExpandedKeys`,`nzCheckedKeys`,`nzSelectedKeys`,`nzTreeTemplate`,`nzCheckStrictly`,`nzVirtualItemSize`,`nzVirtualMaxBufferPx`,`nzVirtualMinBufferPx`,`nzVirtualHeight`],[1,`ant-select-not-found`],[`nzComponentName`,`tree-select`,3,`specificContent`],[4,`nzStringTemplateOutlet`],[1,`ant-select-selection-overflow-item`],[1,`ant-select-selection-overflow-item`,`ant-select-selection-overflow-item-suffix`],[3,`keydown`,`isComposingChange`,`valueChange`,`nzId`,`showInput`,`value`,`mirrorSync`,`disabled`,`focusTrigger`],[`deletable`,``,`displayLabelInHtml`,``,3,`delete`,`disabled`,`label`],[3,`contentTemplateOutlet`,`contentTemplateOutletContext`,`label`],[`displayLabelInHtml`,``,3,`label`],[3,`placeholder`],[3,`status`],[3,`clear`]],template:function(Y,c){if(Y&1&&(qe$1(0,wt,4,40,`ng-template`,2),je$1(`overlayOutsideClick`,function(W){return c.onClickOutside(W)})(`detach`,function(){return c.closeDropdown()})(`positionChange`,function(W){return c.onPositionChange(W)}),oe$2(1,`div`,3),ve$1(2,en,2,1,`div`,4),oe$2(3,`span`,5),ve$1(4,pe,7,11,`div`,6)(5,ne,2,7),ve$1(6,ue,1,3,`nz-select-placeholder`,7),he$1(),oe$2(7,`nz-select-arrow`,8),qe$1(8,ot,1,1,`ng-template`,null,0,ql$1),he$1(),ve$1(10,rt,1,0,`nz-select-clear`),he$1()),Y&2){let R,W=Wl(9);ie$1(`cdkConnectedOverlayOffsetY`,c.placement().startsWith(`top`)?-4:4)(`cdkConnectedOverlayHasBackdrop`,c.nzBackdrop)(`cdkConnectedOverlayOrigin`,c.cdkOverlayOrigin)(`cdkConnectedOverlayPositions`,c.nzPlacement?c.positions:MO(15,N))(`cdkConnectedOverlayOpen`,c.nzOpen)(`cdkConnectedOverlayMinWidth`,c.nzDropdownMatchSelectWidth?null:c.triggerWidth)(`cdkConnectedOverlayWidth`,c.nzDropdownMatchSelectWidth?c.triggerWidth:null),A(2),ye$1((R=c.nzPrefix)?2:-1,R),A(2),ye$1(c.isMultiple?4:5),A(2),ye$1(c.nzPlaceHolder&&c.selectedNodes.length===0?6:-1),A(),ie$1(`showArrow`,!0)(`search`,c.nzOpen&&c.nzShowSearch)(`suffixIcon`,c.nzSuffixIcon)(`feedbackIcon`,W),A(3),ye$1(c.nzAllowClear&&!c.nzDisabled&&c.selectedNodes.length?10:-1)}},dependencies:[e9e,Jge,i4,as,Ld,ia,yr$3,Pi$1,qo$1,Gl$1,Dr,Mr,xr$3,Tr$2,Bi,_de,er$1,VA],encapsulation:2})})()}})();var Bd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({imports:[aa]})}return n})();var Fu=()=>({standalone:!0});var Ni=class n extends de$1{static KEY=`tree-select`;i;data=G$1([]);asyncData=!1;ngOnInit(){let{ui:i}=this;this.i={allowClear:i.allowClear,showSearch:Ee$2(i.showSearch,!1),dropdownMatchSelectWidth:Ee$2(i.dropdownMatchSelectWidth,!0),multiple:Ee$2(i.multiple,!1),checkable:Ee$2(i.checkable,!1),showIcon:Ee$2(i.showIcon,!1),showExpand:Ee$2(i.showExpand,!0),showLine:Ee$2(i.showLine,!1),checkStrictly:Ee$2(i.checkStrictly,!1),hideUnMatched:Ee$2(i.hideUnMatched,!1),defaultExpandAll:Ee$2(i.defaultExpandAll,!1),displayWith:i.displayWith??(e=>e.title)},this.asyncData=typeof i.expandChange==`function`}reset(i){_r$2(this.schema,this.ui,i).subscribe(e=>{this.data.set(e)})}change(i){this.ui.change?.(i),this.setValue(i??this.ui.clearValue)}openChange(i){this.ui.openChange?.(i)}expandChange(i){let e=this.ui;typeof e.expandChange==`function`&&e.expandChange(i).subscribe(t=>
338{i.node?.clearChildren(),i.node?.addChildren(t)})}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-tree-select`]],features:[tn$2],decls:2,vars:41,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`nzExpandChange`,`nzOpenChange`,`nzId`,`nzAllowClear`,`nzPlaceHolder`,`nzDropdownStyle`,`nzDropdownClassName`,`nzSize`,`nzExpandedKeys`,`nzNotFoundContent`,`nzMaxTagCount`,`nzMaxTagPlaceholder`,`nzTreeTemplate`,`nzDisabled`,`nzShowSearch`,`nzShowIcon`,`nzDropdownMatchSelectWidth`,`nzMultiple`,`nzHideUnMatched`,`nzCheckable`,`nzShowExpand`,`nzShowLine`,`nzCheckStrictly`,`nzAsyncData`,`nzNodes`,`nzDefaultExpandAll`,`nzDisplayWith`,`ngModel`,`ngModelOptions`,`nzVirtualHeight`,`nzVirtualItemSize`,`nzVirtualMaxBufferPx`,`nzVirtualMinBufferPx`,`nzPlacement`,`nzVariant`,`nzSuffixIcon`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-tree-select`,1),hI(),je$1(`ngModelChange`,function(r){return t.change(r)})(`nzExpandChange`,function(r){return t.expandChange(r)})(`nzOpenChange`,function(r){return t.openChange(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzId`,t.id)(`nzAllowClear`,t.i.allowClear)(`nzPlaceHolder`,t.ui.placeholder)(`nzDropdownStyle`,t.ui.dropdownStyle)(`nzDropdownClassName`,t.ui.dropdownClassName)(`nzSize`,t.ui.size)(`nzExpandedKeys`,t.ui.expandedKeys)(`nzNotFoundContent`,t.ui.notFoundContent)(`nzMaxTagCount`,t.ui.maxTagCount)(`nzMaxTagPlaceholder`,t.ui.maxTagPlaceholder??null)(`nzTreeTemplate`,t.ui.treeTemplate)(`nzDisabled`,t.disabled)(`nzShowSearch`,t.i.showSearch)(`nzShowIcon`,t.i.showIcon)(`nzDropdownMatchSelectWidth`,t.i.dropdownMatchSelectWidth)(`nzMultiple`,t.i.multiple)(`nzHideUnMatched`,t.i.hideUnMatched)(`nzCheckable`,t.i.checkable)(`nzShowExpand`,t.i.showExpand)(`nzShowLine`,t.i.showLine)(`nzCheckStrictly`,t.i.checkStrictly)(`nzAsyncData`,t.asyncData)(`nzNodes`,t.data())(`nzDefaultExpandAll`,t.i.defaultExpandAll)(`nzDisplayWith`,t.i.displayWith)(`ngModel`,t.value)(`ngModelOptions`,MO(40,Fu))(`nzVirtualHeight`,t.ui.virtualHeight)(`nzVirtualItemSize`,t.ui.virtualItemSize??28)(`nzVirtualMaxBufferPx`,t.ui.virtualMaxBufferPx??500)(`nzVirtualMinBufferPx`,t.ui.virtualMinBufferPx??28)(`nzPlacement`,t.ui.placement??`bottomLeft`)(`nzVariant`,t.ui.variant??`outlined`)(`nzSuffixIcon`,t.ui.suffixIcon),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,Bd,aa],encapsulation:2})};function Wd(){return{KEY:Ni.KEY,type:Ni}}function Vu(n,i){if(n&1&&pt$1(0,`nz-icon`,3)(1,`div`,4),n&2){let e=F$2();A(),ie$1(`innerHTML`,e.i.text,Sa$1)}}function Pu(n,i){if(n&1&&(oe$2(0,`p`,5),pt$1(1,`nz-icon`,6),he$1(),pt$1(2,`p`,4)(3,`p`,7)),n&2){let e=F$2();A(2),ie$1(`innerHTML`,e.i.text,Sa$1),A(),ie$1(`innerHTML`,e.i.hint,Sa$1)}}function Lu(n,i){if(n&1&&(oe$2(0,`button`,2),pt$1(1,`nz-icon`,8)(2,`span`,9),he$1()),n&2){let e=F$2();A(2),ie$1(`innerHTML`,e.i.text,Sa$1)}}var ki=class n extends de$1{static KEY=`upload`;i;fileList=G$1([]);btnType=``;ngOnInit(){let{type:i,text:e,hint:t,action:o,accept:r,limit:a,maxCount:d,filter:m,fileSize:g,fileType:x,listType:s,multiple:l,name:z,showUploadList:b,withCredentials:T,resReName:L,urlReName:j,beforeUpload:H,customRequest:S,directory:v,openFileDialogOnClick:_,limitFileCount:N}=this.ui,P={type:i??`select`,text:e??`点击上传`,action:o??``,accept:r??``,directory:Ee$2(v,!1),openFileDialogOnClick:Ee$2(_,!0),limit:a==null?0:+a,maxCount:d,filter:m??[],size:g==null?0:+g,fileType:x??``,listType:s??`text`,multiple:Ee$2(l,!1),name:z??`file`,showUploadList:b??!0,withCredentials:Ee$2(T,!1),resReName:(L??``).split(`.`),urlReName:(j??``).split(`.`),beforeUpload:typeof H==`function`?H:null,customRequest:typeof S==`function`?S:null,limitFileCount:N??999};P.listType===`picture-card`&&(this.btnType=`plus`),P.type===`drag`&&(P.listType=null,this.btnType=`drag`,P.text=e??`单击或拖动文件到该区域上传`,P.hint=t??`支持单个或批量,严禁上传公司数据或其他安全文件`),this.i=P}change(i){this.ui.change?.(i),i.type===`success`&&this._setValue(i.fileList)}reset(i){let{fileList:e}=this.ui;(e?S(e):Array.isArray(i)?S(i):_r$2(this.schema,this.ui,null)).subscribe(t=>{this.fileList.set(t),this.formProperty._value=this.pureValue(t),this.formProperty.updateV
338alueAndValidity({onlySelf:!1,emitValueEvent:!1,emitValidator:!1})})}_getValue(i){return hse(i.response,this.i.resReName,i.response)}pureValue(i){i.filter(t=>!t.url).forEach(t=>{t.url=hse(t.response,this.i.urlReName)});let e=i.filter(t=>t.status===`done`).map(t=>this._getValue(t));return this.i.multiple===!0?e:e.pop()}_setValue(i){this.setValue(this.pureValue(i))}handleRemove=()=>(this._setValue(this.fileList()),!0);handlePreview=i=>{if(this.ui.preview){this.ui.preview(i);return}let e=i.thumbUrl??i.url;e&&this.injector.get(rn$1,null)?.preview([{src:e}])};static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-upload`]],features:[tn$2],decls:5,vars:33,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`nzFileListChange`,`nzChange`,`nzType`,`nzFileList`,`nzDisabled`,`nzAction`,`nzDirectory`,`nzOpenFileDialogOnClick`,`nzAccept`,`nzLimit`,`nzMaxCount`,`nzFilter`,`nzSize`,`nzFileType`,`nzHeaders`,`nzData`,`nzListType`,`nzMultiple`,`nzName`,`nzShowUploadList`,`nzWithCredentials`,`nzBeforeUpload`,`nzCustomRequest`,`nzRemove`,`nzPreview`,`nzPreviewFile`,`nzDownload`,`nzShowButton`],[`type`,`button`,`nz-button`,``],[`nzType`,`plus`],[1,`ant-upload-text`,3,`innerHTML`],[1,`ant-upload-drag-icon`],[`nzType`,`inbox`],[1,`ant-upload-hint`,3,`innerHTML`],[`nzType`,`upload`],[3,`innerHTML`]],template:function(e,t){if(e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nz-upload`,1),je$1(`nzFileListChange`,function(r){return t.fileList.set(r)})(`nzChange`,function(r){return t.change(r)}),ve$1(2,Vu,2,1)(3,Pu,4,2)(4,Lu,3,1,`button`,2),he$1()()),e&2){let o,r=t.fileList();ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`nzType`,t.i.type)(`nzFileList`,r)(`nzDisabled`,t.disabled)(`nzAction`,t.i.action)(`nzDirectory`,t.i.directory)(`nzOpenFileDialogOnClick`,t.i.openFileDialogOnClick)(`nzAccept`,t.i.accept)(`nzLimit`,t.i.limit)(`nzMaxCount`,t.i.maxCount)(`nzFilter`,t.i.filter)(`nzSize`,t.i.size)(`nzFileType`,t.i.fileType)(`nzHeaders`,t.ui.headers)(`nzData`,t.ui.data)(`nzListType`,t.i.listType)(`nzMultiple`,t.i.multiple)(`nzName`,t.i.name)(`nzShowUploadList`,t.i.showUploadList)(`nzWithCredentials`,t.i.withCredentials)(`nzBeforeUpload`,t.i.beforeUpload)(`nzCustomRequest`,t.i.customRequest)(`nzRemove`,t.ui.remove??t.handleRemove)(`nzPreview`,t.handlePreview)(`nzPreviewFile`,t.ui.previewFile)(`nzDownload`,t.ui.download)(`nzShowButton`,r.length<t.i.limitFileCount),A(),ye$1((o=t.btnType)===`plus`?2:o===`drag`?3:4)}},dependencies:[fr$2,Cu$1,le$2,Ni$1,An$1,xr$2,Gt$2,v5,a3,f5,m5],encapsulation:2})};function Hd(){return{KEY:ki.KEY,type:ki}}var Ru=()=>({standalone:!0});var Bu=()=>({});var Di=class n extends de$1{static KEY=`monaco-editor`;_change(i){this.setValue(i),this.ui.change?.(i)}_event(i){this.ui.event?.(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-widget-monaco-editor`]],features:[tn$2],decls:2,vars:16,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`event`,`ngModel`,`ngModelOptions`,`options`,`disabled`,`model`,`autoFormat`,`height`,`delay`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`nu-monaco-editor`,1),hI(),je$1(`ngModelChange`,function(r){return t._change(r)})(`event`,function(r){return t._event(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`ngModel`,t.value)(`ngModelOptions`,MO(14,Ru))(`options`,t.ui.options??MO(15,Bu))(`disabled`,t.disabled)(`model`,t.ui.model)(`autoFormat`,t.ui.autoFormat??!0)(`height`,t.ui.height??`200px`)(`delay`,t.ui.delay??0),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,te$1],encapsulation:2})};function Ud(){return{KEY:Di.KEY,type:Di}}var Wu=()=>({standalone:!0});var Ii=class n extends de$1{static KEY=`tinymce`;change(i){this.setValue(i),this.ui.change?.(i)}_ready(i){this.ui.ready?.(i)}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵcmp=Se$1({type:n,selectors:[[`sf-widget-tinymce`]],features:[tn$2],decls:2,vars:13,consts:[[3,`id`,`schema`,`ui`,`showError`,`error`,`showTitle`],[3,`ngModelChange`,`ready`,`ngModel`,`ngModelOptions`,`config`,`inline`,`delay`,`loading`]],template:function(e,t){e&1&&(oe$2(0,`sf-item-wrap`,0)(1,`tinymce`,1),hI(),je$1(`ngModelChange`,function(r){return t.change(r)})(`ready`,function(r){return t._ready(r)}),he$1()()),e&2&&(ie$1(`id`,t.id)(`schema`,t.schema)(`ui`,t.ui)(`showError`,t.showError)(`error`,t.error)(`showTitle`,t.schema.title),A(),ie$1(`ngModel`,t.value)(`ngModelOptions`,MO(12,Wu))(`config`,t.ui.config)(`inline`,t.ui.inline??!1)(`delay`,t.ui.delay??0)(`loading`,t.ui.loading??`Loading...`),pI())},dependencies:[fr$2,jn$2,Fi,Cu$1,le$2,nd],encapsulation:2})};function $d(){return{KEY:Ii.KEY,type:Ii}}var Rn=class{constructor(i,e){this.status=i;this.error=e}status;error;statusText};var jd={delay:300,force:!1,log:!0};var sa=new b$1(`alain-mock-config`);function Kd(n){return et$1([{provide:sa,useValue:n}])}var ir=class n{cogSrv=h(ln$3);options=h(sa,{optional:!0});cached=[];config;constructor(){this.config=this.cogSrv.merge(`mock`,jd),this.setData(this.options?.data)}setData(i){this.applyMock(i)}applyMock(i){this.cached=[];try{this.realApplyMock(i)}catch(e){this.outputError(e)}}
338realApplyMock(i){i&&(Object.keys(i).forEach(e=>{let t=i[e];t&&Object.keys(t).forEach(o=>{let r=t[o];if(!(typeof r==`function`||typeof r==`object`||typeof r==`string`))throw Error(`mock value of [${e}-${o}] should be function or object or string, but got ${typeof r}`);let a=this.genRule(o,r);if([`GET`,`POST`,`PUT`,`HEAD`,`DELETE`,`PATCH`,`OPTIONS`].indexOf(a.method)===-1)throw Error(`method of ${e}-${o} is not valid`);let d=this.cached.find(m=>m.url===a.url&&m.method===a.method);d?d.callback=a.callback:this.cached.push(a)})}),this.cached.sort((e,t)=>(t.martcher??``).toString().length-(e.martcher??``).toString().length))}genRule(i,e){let t=`GET`,o=i;if(i.indexOf(` `)>-1){let d=i.split(` `);t=d[0].toLowerCase(),o=d[1]}let r=null,a=[];if(~o.indexOf(`:`)){a=o.split(`/`).filter(m=>m.startsWith(`:`)).map(m=>m.substring(1));let d=o.split(`/`).map(m=>m.startsWith(`:`)?`([^/]+)`:m).join(`/`);r=new RegExp(`^${d}`,`i`)}else/(\([^)]+\))/i.test(o)&&(r=new RegExp(o,`i`));return{url:o,martcher:r,segments:a,callback:e,method:t.toUpperCase()}}outputError(i){let e=i.message.split(`: `)[0],t=i.stack.split(`
339`).filter(o=>o.trim().indexOf(`at `)!==0).map(o=>o.replace(`${e}: `,``));throw t.splice(1,0,``),console.group(),console.warn(`==========Failed to parse mock config.==========`),console.log(t.join(`
340`)),console.groupEnd(),i}getRule(i,e){i=(i||`GET`).toUpperCase();let t={},o=this.cached.filter(a=>a.method===i&&(a.martcher?a.martcher.test(e):a.url===e));if(o.length===0)return null;let r=o.find(a=>a.url===e)??o[0];return r.martcher&&r.martcher.exec(e).slice(1).map((d,m)=>{t[r.segments[m]]=d}),{url:e,method:r.method,params:t,callback:r.callback}}clearCache(){this.cached=[]}get rules(){return this.cached}ngOnDestroy(){this.clearCache()}static ɵfac=function(e){return new(e||n)};static ɵprov=w({token:n,factory:n.ɵfac,providedIn:`root`})};var Yd=(n,i)=>{let e=h(ir),t=e.config,o=e.getRule(n.method,n.url.split(`?`)[0]);if(!o&&!t.force)return i(n);let r;switch(typeof o.callback){case`function`:{let a={original:n,body:n.body,queryString:{},headers:{},params:o.params},d=n.url.split(`?`);d.length>1&&d[1].split(`&`).forEach(m=>{let g=m.split(`=`),x=g[0],s=g[1];Object.keys(a.queryString).includes(x)?(Array.isArray(a.queryString[x])||(a.queryString[x]=[a.queryString[x]]),a.queryString[x].push(s)):a.queryString[x]=s}),n.params.keys().forEach(m=>a.queryString[m]=n.params.get(m)),n.headers.keys().forEach(m=>a.headers[m]=n.headers.get(m));try{let m=o.callback.call(void 0,a);r=Fn(m)?m:Xe(Promise.resolve(m))}catch(m){r=S(new Ia$1({url:n.url,headers:n.headers,status:m instanceof Rn?m.status:400,statusText:m.statusText??`Unknown Error`,error:m.error}))}break}default:r=S(o.callback)}return r=r.pipe(P$2(a=>a instanceof ec$1?a:new l1({status:200,url:n.url,body:wL(a)})),P$2(a=>{let d=a;return d.body&&(d.body=wL(d.body)),t.log&&(console.log(`%c\u{1F47D}${n.method}->${n.urlWithParams}->request`,`background:#000;color:#bada55`,n),console.log(`%c\u{1F47D}${n.method}->${n.urlWithParams}->response`,`background:#000;color:#bada55`,a)),a}),Ve(a=>a instanceof Ia$1?Zc$1(()=>a):S(a))),r.pipe(go$1(t.delay))};function Gt(n=1,i=100){return Math.floor(Math.random()*(i-n+1)+n)}var la={};PB(la,{CHARTS:()=>Uu,TESTS:()=>ju,UPLOADS:()=>$u,USERS:()=>Hu});var Hu={"GET /users":n=>{let e={list:[],total:n.queryString.total||100},t=+n.queryString.ps||3,o=+n.queryString.pi||1,r=n.queryString.ignoreDisabled===`1`;for(let a=0;a<t;a++)e.list.push({id:t*(o-1)+a+1,type:Gt(1,3),picture:{thumbnail:`https://randomuser.me/api/portraits/thumb/${Gt(0,1)===0?`men`:`women`}/${Gt(1,50)}.jpg`},name:{last:`last-${Gt(1,10)}`,first:`first-${Gt(10,20)}`},nat:[`CH`,`US`,`DE`][a%3],gender:[`male`,`female`][a%2],email:`aaa${Gt(1,10)}@qq.com`,phone:`phone-${Gt(1e3,1e5)}`,price:Gt(10,1e7),total:Gt(10,1e7),website:`https://${Gt(10,1e7)}.com/`,disabled:r?!1:Gt(1,100)>50,registered:new Date});return e},"GET /user/check/":()=>!1,"GET /user/check/:name":n=>n.params.name===`cipchk`,"/500":()=>{throw new Rn(500)},"/404":()=>{throw new Rn(404)},"/user/:id":n=>({id:n.params.id,name:`detail`}),"/user/:id/edit":n=>({id:n.params.id,name:`edit`}),"/user/:id/upload":n=>({id:n.params.id,name:`upload`})};var Uu={"GET /chart":{users:[1,2]}};var $u={"POST /upload":()=>({resource_id:+new Date,url:`https://zos.alipayobjects.com/rmsportal/jkjg
340kEfvpUPVyRjUImniVslZfWPnJuuZ.png`})};var ju={"/test":{ok:!0},"/test/cache-control":()=>new l1({body:`cache-control`,headers:new Lo({"cache-control":`max-age=10`})})};var Qd={production:!0};var Ku={schedule(n,i){let e=setTimeout(n,i);return()=>clearTimeout(e)}};function Yu(n){return n.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}function Qu(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}var ca;function qu(n,i){if(!ca){let e=Element.prototype;ca=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE?ca.call(n,i):!1}function Gu(n){let i={};return n.forEach(({propName:e,templateName:t,transform:o})=>{i[Yu(t)]=[e,o]}),i}function Zu(n,i){return Ql$1(n).inputs}function Xu(n,i){let e=n.childNodes,t=i.map(()=>[]),o=-1;i.some((r,a)=>r===`*`?(o=a,!0):!1);for(let r=0,a=e.length;r<a;++r){let d=e[r],m=Ju(d,i,o);m!==-1&&t[m].push(d)}return t}function Ju(n,i,e){let t=e;return Qu(n)&&i.some((o,r)=>o!==`*`&&qu(n,o)?(t=r,!0):!1),t}var em=10;var da=class{component;componentMirror;inputMap=new Map;constructor(i){this.component=i,this.componentMirror=Ql$1(i);for(let e of this.componentMirror.inputs)this.inputMap.set(e.propName,e.templateName)}create(i){return new pa(this.component,i,this.inputMap)}};var pa=class{component;injector;inputMap;eventEmitters=new lo$1(1);events=this.eventEmitters.pipe(Ve(i=>ti(...i)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(i,e,t){this.component=i,this.injector=e,this.inputMap=t,this.ngZone=this.injector.get(B$2),this.appRef=this.injector.get(xn$2),this.cdScheduler=e.get(wo$1),this.elementZone=typeof Zone>`u`?null:this.ngZone.run(()=>Zone.current)}connect(i){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(i)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Ku.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},em))})}getInputValue(i){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(i):this.componentRef.instance[i])}setInputValue(i,e){if(this.componentRef===null){this.initialInputValues.set(i,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(i)??i,e),Jk(this.componentRef.hostView)&&(eI(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(i){let e=U$2.create({providers:[],parent:this.injector}),t=Xu(i,Ql$1(this.component).ngContentSelectors);this.componentRef=Pd$1(this.component,{environmentInjector:this.injector,elementInjector:e,hostElement:i,projectableNodes:t}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[i,e]of this.initialInputValues)this.setInputValue(i,e);this.initialInputValues.clear()}initializeOutputs(i){let e=Ql$1(this.component).outputs.map(({propName:t,templateName:o})=>{let r=i.instance[t];return new T$1(a=>{let d=r.subscribe(m=>a.next({name:o,value:m}));return()=>d.unsubscribe()})});this.eventEmitters.next(e)}runInZone(i){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(i):i()}};var ua=class extends HTMLElement{ngElementEventsSubscription=null};function qd(n,i){let e=Zu(n),t=i.strategyFactory||new da(n),o=Gu(e);class r extends ua{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let d=this._ngElementStrategy=t.create(this.injector||i.injector);e.forEach(({propName:m,transform:g})=>{if(!Object.hasOwn(this,m))return;let x=this[m];delete this[m],d.setInputValue(m,x,g)})}return this._ngElementStrategy}_ngElementStrategy;constructor(d){super(),this.injector=d}attributeChangedCallback(d,m,g,x){let[s,l]=o[d];this.ngElementStrategy.setInputValue(s,g,l)}connectedCallback(){let d=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),d=!0),this.ngElementStrategy.connect(this),d||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}
340subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(d=>{let m=new CustomEvent(d.name,{detail:d.value});this.dispatchEvent(m)})}}return e.forEach(({propName:a,transform:d,isSignal:m})=>{Object.defineProperty(r.prototype,a,{get(){let g=this.ngElementStrategy.getInputValue(a);return m&&li(g)?g():g},set(g){this.ngElementStrategy.setInputValue(a,g,d)},configurable:!0,enumerable:!0})}),r}var or=class n{router=h(qt$3);element=h($$2);renderer=h(We$2);options=pe$1.required({alias:`matchRouter`});constructor(){this.router.events.pipe(ne(i=>i instanceof wn$1),be$1()).subscribe(()=>this.setCls()),Rt$2(()=>this.setCls())}setCls(){this.router.navigated&&Promise.resolve().then(()=>{let{regex:i,cls:e}=g$1({cls:`ant-menu-item-selected`},this.options());i.test(this.router.url)?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)})}static ɵfac=function(e){return new(e||n)};static ɵdir=j({type:n,selectors:[[``,`matchRouter`,``]],inputs:{options:[1,`matchRouter`,`options`]}})};var rr=class n{constructor(i,e){this.cookieSrv=i;this.msg=e;this.get()}cookieSrv;msg;key=`test-key`;value;get(){this.value=this.cookieSrv.get(this.key)}set(i){this.cookieSrv.put(this.key,(+new Date).toString(),i),this.msg.success(`Success`)}remove(){this.cookieSrv.remove(this.key)}static ɵfac=function(e){return new(e||n)(Mt$2(wx),Mt$2(lu$1))};static ɵcmp=Se$1({type:n,selectors:[[`util-browser-cookie`]],decls:10,vars:1,consts:[[`classs`,`mb-md`],[`nz-button`,``,3,`click`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1),he$1(),oe$2(2,`button`,1),je$1(`click`,function(){return t.get()}),an$3(3,`Get`),he$1(),oe$2(4,`button`,1),je$1(`click`,function(){return t.set()}),an$3(5,`Set`),he$1(),oe$2(6,`button`,1),je$1(`click`,function(){return t.set({expires:10})}),an$3(7,`Set 10s expired`),he$1(),oe$2(8,`button`,1),je$1(`click`,function(){return t.remove()}),an$3(9,`Remove`),he$1()),e&2&&(A(),Io$1(`Result: `,t.value??`NULL`))},dependencies:[v5,a3,f5,m5],encapsulation:2})};var ar=class n{item={id:`util-browser-cookie`,name:`cookie`,title:{"zh-CN":`undefined`},code:`import { Component } from '@angular/core';
341
342import { CookieOptions, CookieService } from '@delon/util/browser';
343import { NzButtonModule } from 'ng-zorro-antd/button';
344import { NzMessageService } from 'ng-zorro-antd/message';
345
346@Component({
347  selector: 'util-browser-cookie',
348  template: \`
349    <p classs="mb-md">Result: {{ value ?? 'NULL' }}</p>
350    <button nz-button (click)="get()">Get</button>
351    <button nz-button (click)="set()">Set</button>
352    <button nz-button (click)="set({ expires: 10 })">Set 10s expired</button>
353    <button nz-button (click)="remove()">Remove</button>
354  \`,
355  imports: [NzButtonModule]
356})
357export class UtilBrowserCookie {
358  key = 'test-key';
359  value?: string;
360
361  constructor(
362    private cookieSrv: CookieService,
363    private msg: NzMessageService
364  ) {
365    this.get();
366  }
367
368  get(): void {
369    this.value = this.cookieSrv.get(this.key)!;
370  }
371
372  set(options?: CookieOptions): void {
373    this.cookieSrv.put(this.key, (+new Date()).toString(), options);
374    this.msg.success(\`Success\`);
375  }
376
377  remove(): void {
378    this.cookieSrv.remove(this.key);
379  }
380}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/browser/demo/cookie.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-browser-cookie-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-browser-cookie`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,rr],encapsulation:2})};var sr=class n{value=100;static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-cny`]],decls:8,vars:5,consts:[[1,`mb-md`],[`nzAddonBefore`,`Value`],[`type`,`text`,`nz-input`,``,3,`ngModelChange`,`ngModel`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1,` {{`),oe$2(2,`span`),an$3(3),he$1(),an$3(4),vi$1(5,`cny`),he$1(),oe$2(6,`nz-input-wrapper`,1)(7,`input`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.value,r)||(t.value=r),r}),he$1()()),e&2&&(A(3),Io$1(` `,t.value,` | cny `),A(),Io$1(`}} = `,yi$2(5,3,t.value),` `),A(3),Fy(`ngModel`,t.value),pI())},dependencies:[_c$1,He$2,is$1,fr$2,At$1,jn$2,Fi,Ct],encapsulation:2})};var lr=class n{item={id:`util-pipes-currency-currency-cny`,name:`currency-cny`,title:{"zh-CN":`undefined`},code:`import { Component } from '@angular/core';
381import { FormsModule } from '@angular/forms';
382
383import { CurrencyCNYPipe } from '@delon/util';
384import { NzInputModule } from 'ng-zorro-antd/input';
385
386@Component({
387  selector: 'util-pipes-currency-currency-cny',
388  template: \`
389    <p class="mb-md">
390      &#123;&#123;<span> {{ value }} | cny </span>&#125;&#125; = {{ value | cny }}
391    </p>
392    <nz-input-wrapper nzAddonBefore="Value">
393      <input type="text" nz-input [(ngModel)]="value" />
394    </nz-input-wrapper>
395  \`,
396  imports: [NzInputModule, FormsModule, CurrencyCNYPipe]
397})
398export class UtilPipesCurrencyCurrencyCny {
399  value = 100;
400}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/pipes/currency/demo/currency-cny.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-cny-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-pipes-currency-currency-cny`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,sr],encapsulation:2})};var tm=n=>({precision:n});var cr=class n{value=123456;precision=1;static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-mega`]],decls:19,vars:16,consts:[[1,`mb-md`],[`nzAddonBefore`,`Value`,1,`mb-md`],[`type`,`text`,`nz-input`,``,3,`ngModelChange`,`ngModel`],[`nzAddonBefore`,`Precision`],[3,`ngModelChange`,`ngModel`,`nzMin`,`nzMax`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1,` {{`),oe$2(2,`span`),an$3(3),he$1(),an$3(4),vi$1(5,`mega`),he$1(),oe$2(6,`p`,0),an$3(7,` {{`),oe$2(8,`span`),an$3(9),oe$2(10,`span`),an$3(11),he$1(),an$3(12,` 大括号 `),he$1(),an$3(13),vi$1(14,`mega`),he$1(),oe$2(15,`nz-input-wrapper`,1)(16,`input`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.value,r)||(t.value=r),r}),he$1()(),oe$2(17,`nz-input-wrapper`,3)(18,`nz-input-number`,4),hI(),Hy(`ngModelChange`,function(r){return hO(t.precision,r)||(t.precision=r),r}),he$1()()),e&2&&(A(3),Io$1(` `,t.value,` | mega `),A(),Io$1(`}} = `,yi$2(5,9,t.value),` `),A(5),Io$1(` `,t.value,` | mega: 大括号 precision: `),A(2),vr$3(t.precision),A(2),Io$1(`}} = `,TO(14,11,t.value,ff(14,tm,t.precision)),` `),A(3),Fy(`ngModel`,t.value),pI(),A(2),Fy(`ngModel`,t.precision),ie$1(`nzMin`,0)(`nzMax`,292),pI())},dependencies:[_c$1,He$2,is$1,Rc$2,os,fr$2,At$1,jn$2,Fi,ht],encapsulation:2})};var dr=class n{item={id:`util-pipes-currency-currency-mega`,name:`currency-mega`,title:{"zh-CN":`undefined`},code:`import { Component } from '@angular/core';
401import { FormsModule } from '@angular/forms';
402
403import { CurrencyMegaPipe } from '@delon/util';
404import { NzInputModule } from 'ng-zorro-antd/input';
405import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
406
407@Component({
408  selector: 'util-pipes-currency-currency-mega',
409  template: \`
410    <p class="mb-md">
411      &#123;&#123;<span> {{ value }} | mega </span>&#125;&#125; = {{ value | mega }}
412    </p>
413    <p class="mb-md">
414      &#123;&#123;<span>
415        {{ value }} | mega: \u5927\u62EC\u53F7 precision: <span>{{ precision }}</span> \u5927\u62EC\u53F7 </span
416      >&#125;&#125; =
417      {{ value | mega: { precision: precision } }}
418    </p>
419    <nz-input-wrapper nzAddonBefore="Value" class="mb-md">
420      <input type="text" nz-input [(ngModel)]="value" />
421    </nz-input-wrapper>
422    <nz-input-wrapper nzAddonBefore="Precision">
423      <nz-input-number [(ngModel)]="precision" [nzMin]="0" [nzMax]="292" />
424    </nz-input-wrapper>
425  \`,
426  imports: [NzInputModule, NzInputNumberModule, FormsModule, CurrencyMegaPipe]
427})
428export class UtilPipesCurrencyCurrencyMega {
429  value = 123456;
430  precision = 1;
431}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/pipes/currency/demo/currency-mega.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-mega-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-pipes-currency-currency-mega`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,cr],encapsulation:2})};var nm=n=>({precision:n});var pr=class n{value=10000.345;precision=2;static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-price`]
431],decls:10,vars:11,consts:[[1,`mb-md`],[`nzAddonBefore`,`Value`,1,`mb-md`],[`type`,`text`,`nz-input`,``,3,`ngModelChange`,`ngModel`],[`nzAddonBefore`,`Precision`],[3,`ngModelChange`,`ngModel`,`nzMin`,`nzMax`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1,` {{`),oe$2(2,`span`),an$3(3),he$1(),an$3(4),vi$1(5,`price`),he$1(),oe$2(6,`nz-input-wrapper`,1)(7,`input`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.value,r)||(t.value=r),r}),he$1()(),oe$2(8,`nz-input-wrapper`,3)(9,`nz-input-number`,4),hI(),Hy(`ngModelChange`,function(r){return hO(t.precision,r)||(t.precision=r),r}),he$1()()),e&2&&(A(3),Io$1(` `,t.value,` | price `),A(),Io$1(`}} = `,TO(5,6,t.value,ff(9,nm,t.precision)),` `),A(3),Fy(`ngModel`,t.value),pI(),A(2),Fy(`ngModel`,t.precision),ie$1(`nzMin`,0)(`nzMax`,292),pI())},dependencies:[_c$1,He$2,is$1,fr$2,At$1,jn$2,Fi,Rc$2,os,zt],encapsulation:2})};var ur=class n{item={id:`util-pipes-currency-currency-price`,name:`currency-price`,title:{"zh-CN":`undefined`},code:`import { Component } from '@angular/core';
432import { FormsModule } from '@angular/forms';
433
434import { CurrencyPricePipe } from '@delon/util';
435import { NzInputModule } from 'ng-zorro-antd/input';
436import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
437
438@Component({
439  selector: 'util-pipes-currency-currency-price',
440  template: \`
441    <p class="mb-md">
442      &#123;&#123;<span> {{ value }} | price </span>&#125;&#125; = {{ value | price: { precision: precision } }}
443    </p>
444    <nz-input-wrapper nzAddonBefore="Value" class="mb-md">
445      <input type="text" nz-input [(ngModel)]="value" />
446    </nz-input-wrapper>
447    <nz-input-wrapper nzAddonBefore="Precision">
448      <nz-input-number [(ngModel)]="precision" [nzMin]="0" [nzMax]="292" />
449    </nz-input-wrapper>
450  \`,
451  imports: [NzInputModule, FormsModule, NzInputNumberModule, CurrencyPricePipe]
452})
453export class UtilPipesCurrencyCurrencyPrice {
454  value = 10000.345;
455  precision = 2;
456}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/pipes/currency/demo/currency-price.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-currency-currency-price-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-pipes-currency-currency-price`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,pr],encapsulation:2})};var mr=class n{list=new Array(10).fill(0).map((i,e)=>({price:e+1}));number=0;matcher=(i,e)=>i.price>e;static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-filter-filter`]],decls:12,vars:11,consts:[[1,`mb-md`],[`nzAddonBefore`,`number`],[3,`ngModelChange`,`ngModel`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1,` {{`),oe$2(2,`span`),an$3(3),vi$1(4,`json`),he$1(),an$3(5),vi$1(6,`filter`),vi$1(7,`json`),he$1(),oe$2(8,`p`,0),an$3(9,`matcher = (item: PriceObject, number: number) => item.price > number;`),he$1(),oe$2(10,`nz-input-wrapper`,1)(11,`nz-input-number`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.number,r)||(t.number=r),r}),he$1()()),e&2&&(A(3),Io$1(` `,yi$2(4,3,t.list),` | filter: matcher `),A(2),Io$1(`}} = `,yi$2(7,9,EO(6,5,t.list,t.matcher,t.number)),` `),A(6),Fy(`ngModel`,t.number),pI())},dependencies:[_c$1,is$1,Rc$2,os,fr$2,jn$2,Fi,LA,xt],encapsulation:2})};var hr=class n{item={id:`util-pipes-filter-filter`,name:`filter`,title:{"zh-CN":`undefined`},code:`import { JsonPipe } from '@angular/common';
457import { Component } from '@angular/core';
458import { FormsModule } from '@angular/forms';
459
460import { FilterPipe } from '@delon/util';
461import { NzInputModule } from 'ng-zorro-antd/input';
462import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
463
464@Component({
465  selector: 'util-pipes-filter-filter',
466  template: \`
467    <p class="mb-md">
468      &#123;&#123;<span> {{ list | json }} | filter: matcher </span>&#125;&#125; =
469      {{ list | filter: matcher : number | json }}
470    </p>
471    <p class="mb-md">matcher = (item: PriceObject, number: number) => item.price > number;</p>
472    <nz-input-wrapper nzAddonBefore="number">
473      <nz-input-number [(ngModel)]="number" />
474    </nz-input-wrapper>
475  \`,
476  imports: [JsonPipe, FilterPipe, NzInputModule, NzInputNumberModule, FormsModule]
477})
478export class UtilPipesFilterFilter {
479  list = new Array(10).fill(0).map((_, idx) => ({ price: idx + 1 }));
480  number = 0;
481  matcher = (item: { price: number }, number: number): boolean => item.price > number;
482}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/pipes/filter/demo/filter.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-filter-filter-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-pipes-filter-filter`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,mr],encapsulation:2})};var fr=class n{value=`123`;maskStr=`(###)`;static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-format-format-mask`]],decls:11,vars:10,consts:[[1,`mb-md`],[`nzAddonBefore`,`Value`,1,`mb-md`],[`type`,`text`,`nz-input`,``,3,`ngModelChange`,`ngModel`],[`nzAddonBefore`,`Mask`]],template:function(e,t){e&1&&(oe$2(0,`p`,0),an$3(1,` {{`),oe$2(2,`span`),an$3(3),vi$1(4,`json`),he$1(),an$3(5),vi$1(6,`mask`),he$1(),oe$2(7,`nz-input-wrapper`,1)(8,`input`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.value,r)||(t.value=r),r}),he$1()(),oe$2(9,`nz-input-wrapper`,3)(10,`input`,2),hI(),Hy(`ngModelChange`,function(r){return hO(t.maskStr,r)||(t.maskStr=r),r}),he$1()()),e&2&&(A(3),Ry(` `,t.value,` | mask: `,yi$2(4,5,t.maskStr),` `),A(2),Io$1(`}} = `,TO(6,7,t.value,t.maskStr),` `),A(3),Fy(`ngModel`,t.value),pI(),A(2),Fy(`ngModel`,t.maskStr),pI())},dependencies:[_c$1,He$2,is$1,fr$2,At$1,jn$2,Fi,LA,yt],encapsulation:2})};var gr=class n{item={id:`util-pipes-format-format-mask`,name:`format-mask`,title:{"zh-CN":`undefined`},code:`import { JsonPipe } from '@angular/common';
483import { Component } from '@angular/core';
484import { FormsModule } from '@angular/forms';
485
486import { FormatMaskPipe } from '@delon/util';
487import { NzInputModule } from 'ng-zorro-antd/input';
488
489@Component({
490  selector: 'util-pipes-format-format-mask',
491  template: \`
492    <p class="mb-md">
493      &#123;&#123;<span> {{ value }} | mask: {{ maskStr | json }}
493 </span>&#125;&#125; = {{ value | mask: maskStr }}
494    </p>
495    <nz-input-wrapper nzAddonBefore="Value" class="mb-md">
496      <input type="text" nz-input [(ngModel)]="value" />
497    </nz-input-wrapper>
498    <nz-input-wrapper nzAddonBefore="Mask">
499      <input type="text" nz-input [(ngModel)]="maskStr" />
500    </nz-input-wrapper>
501  \`,
502  imports: [JsonPipe, FormatMaskPipe, NzInputModule, FormsModule]
503})
504export class UtilPipesFormatFormatMask {
505  value = '123';
506  maskStr = '(###)';
507}`,order:0,type:`example`,summary:{"en-US":``,"zh-CN":``},summary_raw:{"en-US":``,"zh-CN":``},path:`packages/util/pipes/format/demo/format-mask.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`util-pipes-format-format-mask-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`util-pipes-format-format-mask`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,fr],encapsulation:2})};function im(n,i){if(n&1&&(oe$2(0,`tr`)(1,`td`)(2,`span`,2),an$3(3,`Name`),he$1(),an$3(4),he$1(),oe$2(5,`td`)(6,`span`,2),an$3(7,`Age`),he$1(),an$3(8),he$1(),oe$2(9,`td`)(10,`span`,2),an$3(11,`Address`),he$1(),an$3(12),he$1()()),n&2){let e=i.$implicit;A(4),Io$1(` `,e.name,` `),A(4),Io$1(` `,e.age,` `),A(4),Io$1(` `,e.address,` `)}}var zr=class n{dataSet=[{key:`1`,name:`John Brown`,age:32,address:`New York No. 1 Lake Park`},{key:`2`,name:`Jim Green`,age:42,address:`London No. 1 Lake Park`},{key:`3`,name:`Joe Black`,age:32,address:`Sidney No. 1 Lake Park`}];static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`theme-component-styles-table-rep`]],decls:13,vars:1,consts:[[`basicTable`,``],[`nzTitle`,`This is title`,1,`ant-table-rep__hide-header-footer`,3,`nzData`],[1,`ant-table-rep__title`]],template:function(e,t){if(e&1&&(oe$2(0,`nz-table`,1,0)(2,`thead`)(3,`tr`)(4,`th`),an$3(5,`Name`),he$1(),oe$2(6,`th`),an$3(7,`Age`),he$1(),oe$2(8,`th`),an$3(9,`Address`),he$1()()(),oe$2(10,`tbody`),Yl(11,im,13,3,`tr`,null,EP),he$1()()),e&2){let o=Wl(1);ie$1(`nzData`,t.dataSet),A(11),Ul(o.data)}},dependencies:[ua$2,Zn,pa$2,Hn,ca$2,Pn$1,Un],encapsulation:2})};var Cr=class n{item={id:`theme-component-styles-table-rep`,name:`table-rep`,title:{"zh-CN":`基础样例`,"en-US":`Basic Usage`},code:`import { Component } from '@angular/core';
508
509import { NzTableModule } from 'ng-zorro-antd/table';
510
511@Component({
512  selector: 'theme-component-styles-table-rep',
513  template: \`
514    <nz-table #basicTable [nzData]="dataSet" nzTitle="This is title" class="ant-table-rep__hide-header-footer">
515      <thead>
516        <tr>
517          <th>Name</th>
518          <th>Age</th>
519          <th>Address</th>
520        </tr>
521      </thead>
522      <tbody>
523        @for (data of basicTable.data; track $index) {
524        <tr>
525          <td>
526            <span class="ant-table-rep__title">Name</span>
527            {{ data.name }}
528          </td>
529          <td>
530            <span class="ant-table-rep__title">Age</span>
531            {{ data.age }}
532          </td>
533          <td>
534            <span class="ant-table-rep__title">Address</span>
535            {{ data.address }}
536          </td>
537        </tr>
538        }
539      </tbody>
540    </nz-table>
541  \`,
542  imports: [NzTableModule]
543})
544export class ThemeComponentStylesTableRep {
545  dataSet = [
546    {
547      key: '1',
548      name: 'John Brown',
549      age: 32,
550      address: 'New York No. 1 Lake Park'
551    },
552    {
553      key: '2',
554      name: 'Jim Green',
555      age: 42,
556      address: 'London No. 1 Lake Park'
557    },
558    {
559      key: '3',
560      name: 'Joe Black',
561      age: 32,
562      address: 'Sidney No. 1 Lake Park'
563    }
564  ];
565}`,order:0,type:`example`,summary:{"en-US":`<p>Mobile screen view effect.</p>
566`,"zh-CN":`<p>\u5C0F\u5C4F\u5E55\u67E5\u770B\u6548\u679C\u3002</p>
567`},summary_raw:{"en-US":`Mobile screen view effect.
568`,"zh-CN":`\u5C0F\u5C4F\u5E55\u67E5\u770B\u6548\u679C\u3002
569`},path:`packages/theme/docs/demo/table-rep.md`};static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`theme-component-styles-table-rep-index`]],hostAttrs:[1,`d-block`],decls:2,vars:1,consts:[[`type`,`simple`,3,`item`]],template:function(e,t){e&1&&(oe$2(0,`code-box`,0),pt$1(1,`theme-component-styles-table-rep`),he$1()),e&2&&ie$1(`item`,t.item)},dependencies:[X,zr],encapsulation:2})};var ma={"example-cookie-index":{title:{"zh-CN":`undefined`},component:ar},"example-currency-cny-index":{title:{"zh-CN":`undefined`},component:lr},"example-currency-mega-index":{title:{"zh-CN":`undefined`},component:dr},"example-currency-price-index":{title:{"zh-CN":`undefined`},component:ur},"example-filter-index":{title:{"zh-CN":`undefined`},component:hr},"example-format-mask-index":{title:{"zh-CN":`undefined`},component:gr},"example-table-rep-index":{title:{"zh-CN":`基础样例`,"en-US":`Basic Usage`},component:Cr}};function Zd(){return[d2(()=>{om(h(U$2),h(ur$2))})]}function om(n,i){!$d$1(i)||customElements.get(`nz-icon`)||Object.keys(ma).forEac
569h(e=>{let t=qd(ma[e].component,{injector:n});customElements.define(e,t)})}var yr=class n extends Bn$1{doc=h(z$2);handleError(i){try{super.handleError(i)}catch(e){this.reportError(e)}this.reportError(i)}reportError(i){let e=this.doc.defaultView;e&&e.onerror&&(typeof i==`string`?e.onerror(i):e.onerror(i.message,void 0,void 0,void 0,i))}static ɵfac=(()=>{let i;return function(t){return(i||(i=Gn(n)))(t||n)}})();static ɵprov=w({token:n,factory:n.ɵfac})};var vr=class n{i18n=h(Kr$3);static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`not-found`]],decls:9,vars:2,consts:[[`id`,`page-404`],[1,`links`],[3,`routerLink`]],template:function(e,t){e&1&&(oe$2(0,`div`,0)(1,`section`)(2,`h1`),an$3(3,`404`),he$1(),oe$2(4,`h4`),an$3(5,`The page you are looking for does not exist. You may be looking for:`),he$1(),oe$2(6,`div`,1)(7,`a`,2),an$3(8,`Back to Home`),he$1()()()()),e&2&&(A(7),ie$1(`routerLink`,hf(`/`,t.i18n.zone)))},dependencies:[ja$2],encapsulation:2})};var rm=(()=>{class n{http=h(rc);cached={};_notify=new C$1;get notify(){return this._notify.asObservable()}req(e,t){let o=`https://api.github.com/repos/${e}/${t}`;if(this.cached[o]!=null){this._notify.next(this.cached[o]);return}this.cached[o]={},this.http.get(o).subscribe(r=>{this.cached[o]=r,this._notify.next(this.cached[o])})}static ɵfac=function(t){return new(t||n)};static ɵprov=w({token:n,factory:n.ɵfac,providedIn:`root`})}return n})();var am=!(typeof document==`object`&&document);var _r=(()=>{class n{srv=h(rm);typeToLabel={stargazers:`Star`,subscribers:`Watch`,forks:`Fork`};typeToPath={forks:`network`};type=pe$1(`stargazers`);size=pe$1(`default`);namespace=pe$1.required();repo=pe$1.required();showZero=pe$1(!1,{transform:H$2});repo_url=Fe$1(()=>`//github.com/${this.namespace()}/${this.repo()}/`);count_url=Fe$1(()=>{let e=this.repo_url(),t=this.type();return`${e}${this.typeToPath[t]||t}/`});_data=G$1(null);count=Fe$1(()=>this._data()?.[`${this.type()}_count`]??0);constructor(){this.srv.notify.pipe(be$1()).subscribe(e=>{this._data.set(e)}),Jt$1(()=>{let e=this.namespace(),t=this.repo();am||this.srv.req(e,t)})}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){return Se$1({type:n,selectors:[[`github-button`]],hostVars:2,hostBindings:function(o,r){o&2&&Ze(`github-btn-large`,r.size()===`large`)},inputs:{type:[1,`type`],size:[1,`size`],namespace:[1,`namespace`],repo:[1,`repo`],showZero:[1,`showZero`]},ngContentSelectors:[`*`],decls:7,vars:6,consts:[[`target`,`_blank`,1,`gh-btn`],[`aria-hidden`,`true`,1,`gh-ico`],[1,`gh-text`],[`target`,`_blank`,1,`gh-count`]],template:function(o,r){o&1&&(yn$1(),mi$2(0,`a`,0),Md$1(1,`span`,1),mi$2(2,`span`,2),an$3(3),gi$1()(),mi$2(4,`a`,3),an$3(5),gi$1(),Wt$1(6)),o&2&&($t(`href`,r.repo_url(),J9),A(3),vr$3(r.typeToLabel[r.type()]),A(),It$2(`display`,r.showZero()||r.count()>0?`block`:`none`),$t(`href`,r.count_url(),J9),A(),Io$1(` `,r.count(),` `))},styles:[`[_nghost-%COMP%]{font:700 11px/14px Helvetica Neue,Helvetica,Arial,sans-serif;height:20px;overflow:hidden}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{content:" ";display:table}[_nghost-%COMP%]:after{clear:both;visibility:hidden;font-size:0;height:0}[_nghost-%COMP%]     .gh-btn, [_nghost-%COMP%]     .gh-count, [_nghost-%COMP%]     .gh-ico{float:left}[_nghost-%COMP%]     .gh-btn, [_nghost-%COMP%]     .gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}[_nghost-%COMP%]     .gh-btn{background-color:#eee;background-image:linear-gradient(to bottom,#fcfcfc 0,#eee);background-repeat:no-repeat;border:1px solid #d5d5d5}[_nghost-%COMP%]     .gh-btn:hover, [_nghost-%COMP%]     .gh-btn:focus{text-decoration:none;background-color:#ddd;background-image:linear-gradient(to bottom,#eee 0,#ddd);border-color:#ccc}[_nghost-%COMP%]     .gh-btn:active{background-image:none;background-color:#dcdcdc;border-color:#b5b5b5;box-shadow:inset 0 2px 4px #00000026}[_nghost-%COMP%]     .gh-ico{width:14px;height:14px;margin-right:4px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=);background-size:100% 100%;background-repeat:no-repeat}[_nghost-%COMP%]     .gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}[_nghost-%COMP%]     .gh-count:hover, [_nghost-%COMP%]     .gh-count:focus{color:#4183c4}[_nghost-%COMP%]     .gh-count:before, [_nghost-%COMP%]     .gh-count:after{content:"";position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%]     .gh-count:before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}[_nghost-%COMP%]     .gh-count:after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large[_nghost-%COMP%]{height:30px}.github-btn-large[_nghost-%COMP%]     .gh-btn, .github-btn-large[_nghost-%COMP%]     .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large[_nghost-%COMP%]     .gh-ico{width:20px;height:20px}.github-btn-large[_nghost-%COMP%]     .gh-count{margin-left:6px}.github-btn-large[_nghost-%COMP%]     .gh-count:before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large[_nghost-%COMP%]     .gh-count:after{left:-6px;
569margin-top:-7px;border-width:7px 7px 7px 0}`]})})()}return n})();var za=(()=>{class n{renderer=h(We$2);el=h($$2).nativeElement;set isActive(e){this._active=e,this.isActive?this.renderer.addClass(this.el,`slick-active`):this.renderer.removeClass(this.el,`slick-active`)}get isActive(){return this._active}_active=!1;static ɵfac=function(t){return new(t||n)};static ɵdir=j({type:n,selectors:[[``,`nz-carousel-content`,``]],hostAttrs:[1,`slick-slide`],exportAs:[`nzCarouselContent`]})}return n})();var Sr=class{cdr;renderer;platform;options;carouselComponent;contents;slickListEl;slickTrackEl;length;unitWidth;unitHeight;get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(i,e,t,o,r){this.cdr=e,this.renderer=t,this.platform=o,this.options=r,this.carouselComponent=i}withCarouselContents(i){let e=this.carouselComponent;if(this.slickListEl=e.slickListEl,this.slickTrackEl=e.slickTrackEl,this.contents=i?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){let t=e.el.getBoundingClientRect();this.unitWidth=t.width,this.unitHeight=t.height}else i?.forEach((t,o)=>{o===0?this.renderer.setStyle(t.el,`width`,`100%`):this.renderer.setStyle(t.el,`display`,`none`)})}dragging(i){}dispose(){}getFromToInBoundary(i,e){let t=this.maxIndex+1;return{from:(i+t)%t,to:(e+t)%t}}};var ha=class extends Sr{withCarouselContents(i){super.withCarouselContents(i),this.contents&&(this.slickTrackEl.style.width=`${this.length*this.unitWidth}px`,this.contents.forEach((e,t)=>{this.renderer.setStyle(e.el,`opacity`,this.carouselComponent.activeIndex===t?`1`:`0`),this.renderer.setStyle(e.el,`position`,`relative`),this.renderer.setStyle(e.el,`width`,`${this.unitWidth}px`),this.renderer.setStyle(e.el,`left`,`${-this.unitWidth*t}px`),this.renderer.setStyle(e.el,`transition`,[`opacity 500ms ease 0s`,`visibility 500ms ease 0s`])}))}switch(i,e){let{to:t}=this.getFromToInBoundary(i,e),o=new C$1;return this.contents.forEach((r,a)=>{this.renderer.setStyle(r.el,`opacity`,t===a?`1`:`0`)}),setTimeout(()=>{o.next(),o.complete()},this.carouselComponent.nzTransitionSpeed),o}dispose(){this.contents.forEach(i=>{this.renderer.setStyle(i.el,`transition`,null),this.renderer.setStyle(i.el,`opacity`,null),this.renderer.setStyle(i.el,`width`,null),this.renderer.setStyle(i.el,`left`,null)}),super.dispose()}};var fa=class extends Sr{isDragging=!1;isTransitioning=!1;get vertical(){return this.carouselComponent.vertical}constructor(i,e,t,o,r){super(i,e,t,o,r)}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,`transform`,null)}withCarouselContents(i){super.withCarouselContents(i);let t=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,`height`,`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,`width`,`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,`height`,`${this.length*this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(0, ${-t*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,`height`,`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,`width`,`${this.length*this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(${-t*this.unitWidth}px, 0, 0)`)),this.contents.forEach(o=>{this.renderer.setStyle(o.el,`position`,`relative`),this.renderer.setStyle(o.el,`width`,`${this.unitWidth}px`),this.renderer.setStyle(o.el,`height`,`${this.unitHeight}px`)}))}switch(i,e){let{to:t}=this.getFromToInBoundary(i,e),o=new C$1;return this.renderer.setStyle(this.slickTrackEl,`transition`,`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(i,e):this.horizontalTransform(i,e),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,`transition`,null),this.contents.forEach(r=>{this.renderer.setStyle(r.el,this.vertical?`top`:`left`,null)}),this.vertical?this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(0, ${-t*this.unitHeight}px, 0)`):this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(${-t*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,o.next(),o.complete()},this.carouselComponent.nzTransitionSpeed),o.asObservable()}dragging(i){if(this.isTransitioning)return;let e=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareVerticalContext(!0):e===0&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(0, ${-e*this.unitHeight+i.x}
569px, 0)`)):(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareHorizontalContext(!0):e===0&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(${-e*this.unitWidth+i.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(i,e){let{from:t,to:o}=this.getFromToInBoundary(i,e);this.length>2&&e!==o?(this.prepareVerticalContext(o<t),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(0, ${-e*this.unitHeight}px, 0)`)):this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(0, ${-o*this.unitHeight}px, 0`)}horizontalTransform(i,e){let{from:t,to:o}=this.getFromToInBoundary(i,e);this.length>2&&e!==o?(this.prepareHorizontalContext(o<t),this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(${-e*this.unitWidth}px, 0, 0)`)):this.renderer.setStyle(this.slickTrackEl,`transform`,`translate3d(${-o*this.unitWidth}px, 0, 0`)}prepareVerticalContext(i){i?(this.renderer.setStyle(this.firstEl,`top`,`${this.length*this.unitHeight}px`),this.renderer.setStyle(this.lastEl,`top`,null)):(this.renderer.setStyle(this.firstEl,`top`,null),this.renderer.setStyle(this.lastEl,`top`,`${-this.unitHeight*this.length}px`))}prepareHorizontalContext(i){i?(this.renderer.setStyle(this.firstEl,`left`,`${this.length*this.unitWidth}px`),this.renderer.setStyle(this.lastEl,`left`,null)):(this.renderer.setStyle(this.firstEl,`left`,null),this.renderer.setStyle(this.lastEl,`left`,`${-this.unitWidth*this.length}px`))}};var sm=new b$1(``);var lm=`carousel`;var Xd=(()=>{let n,i=[],e=[],t,o=[],r=[],a,d=[],m=[],g,x=[],s=[],l,z=[],b=[],T,L=[],j=[],H,S=[],v=[];return class ga{static{let N=typeof Symbol==`function`&&Symbol.metadata?Object.create(null):void 0;n=[Bo()],t=[Bo()],a=[Bo()],g=[Bo()],l=[Bo()],T=[Bo()],H=[Bo()],uo$2(null,null,n,{kind:`field`,name:`nzEffect`,static:!1,private:!1,access:{has:P=>`nzEffect`in P,get:P=>P.nzEffect,set:(P,ce)=>{P.nzEffect=ce}},metadata:N},i,e),uo$2(null,null,t,{kind:`field`,name:`nzEnableSwipe`,static:!1,private:!1,access:{has:P=>`nzEnableSwipe`in P,get:P=>P.nzEnableSwipe,set:(P,ce)=>{P.nzEnableSwipe=ce}},metadata:N},o,r),uo$2(null,null,a,{kind:`field`,name:`nzDots`,static:!1,private:!1,access:{has:P=>`nzDots`in P,get:P=>P.nzDots,set:(P,ce)=>{P.nzDots=ce}},metadata:N},d,m),uo$2(null,null,g,{kind:`field`,name:`nzAutoPlay`,static:!1,private:!1,access:{has:P=>`nzAutoPlay`in P,get:P=>P.nzAutoPlay,set:(P,ce)=>{P.nzAutoPlay=ce}},metadata:N},x,s),uo$2(null,null,l,{kind:`field`,name:`nzAutoPlaySpeed`,static:!1,private:!1,access:{has:P=>`nzAutoPlaySpeed`in P,get:P=>P.nzAutoPlaySpeed,set:(P,ce)=>{P.nzAutoPlaySpeed=ce}},metadata:N},z,b),uo$2(null,null,T,{kind:`field`,name:`nzLoop`,static:!1,private:!1,access:{has:P=>`nzLoop`in P,get:P=>P.nzLoop,set:(P,ce)=>{P.nzLoop=ce}},metadata:N},L,j),uo$2(null,null,H,{kind:`field`,name:`nzDotPosition`,static:!1,private:!1,access:{has:P=>`nzDotPosition`in P,get:P=>P.nzDotPosition,set:(P,ce)=>{P.nzDotPosition=ce}},metadata:N},S,v),N&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:N})}_nzModuleName=lm;nzConfigService=h(Xr$3);ngZone=h(B$2);renderer=h(We$2);cdr=h(Qe$1);platform=h(Me$3);resizeService=h(xB);nzDragService=h(jDe);nzResizeObserver=h(n_e);destroyRef=h(re$1);customStrategies=h(sm,{optional:!0});dir=h(Ue$1).valueSignal;carouselContents;slickList;slickTrack;nzDotRender;nzEffect=mn$3(this,i,`scrollx`);nzEnableSwipe=(mn$3(this,e),mn$3(this,o,!0));nzDots=(mn$3(this,r),mn$3(this,d,!0));nzAutoPlay=(mn$3(this,m),mn$3(this,x,!1));nzAutoPlaySpeed=(mn$3(this,s),mn$3(this,z,3e3));nzTransitionSpeed=(mn$3(this,b),500);nzLoop=mn$3(this,L,!0);nzArrows=(mn$3(this,j),!1);nzStrategyOptions=void 0;nzDotPosition=mn$3(this,S,`bottom`);nzBeforeChange=(mn$3(this,v),new O$1);nzAfterChange=new O$1;activeIndex=0;el=h($$2).nativeElement;slickListEl;slickTrackEl;strategy;vertical=!1;transitionInProgress;gestureRect=null;pointerDelta=null;isTransiting=!1;isDragging=!1;constructor(){this.nzDotPosition=`bottom`;let N=h(U$2);Rt$2(()=>{Jt$1(()=>{this.dir(),this.markContentActive(this.activeIndex)},{injector:N})}),this.destroyRef.onDestroy(()=>{this.clearScheduledTransition(),this.strategy?.dispose()})}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,A1(this.slickListEl,`keydown`).pipe(be$1(this.destroyRef)).subscribe(N=>{let{keyCode:P}=N;P!==37&&P!==39||(N.preventDefault(),this.ngZone.run(()=>{P===37?this.pre():this.next(),this.cdr.markForCheck()}))}),this.nzResizeObserver.observe(this.el).pipe(Hn$2(100),Vn$1(),be$1(this.destroyRef)).subscribe(()=>this.layout())}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.connect().pipe(be$1(this.destroyRef)).subscribe(()=>this.layout()),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>this.layout())}ngOnChanges(N){let{nzEffect:P,nzDotPosition:ce}=N;P&&!P.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),ce&&(this.vertical=ce.currentValue===`left`||ce.currentValue===`right`,ce.isFirstChange()||(this.switchStrategy(),this.markContentActive(0),this.layout())),!this.nzAutoPlay||!this.nzAutoPlaySpeed?this.clearScheduledTransition():this.scheduleNextTransition()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(N){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||N>=0&&N<this.carouselContents.length)){let P=this.carouselContents.length,ce=this.activeIndex,wt=(N+P)%P;this.isTransiting=!0,this.nzBeforeChange.emit({from:ce,to:wt}),this.strategy.switch(this.activeIndex,N).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(wt),this.isTransiting=!1}),this.markContentActive(wt),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();let N=this.customStrategies?this.customStrategies.find(P=>P.name===this.nzEffect):null;if(N){this.strategy=new N.strategy(this,this.cdr,this.renderer,this.platform);return}this.strategy=this.nzEffect===`scrollx`?new fa(this,this.cdr,this.renderer,this.platform):new ha(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=void 0)}markContentActive(N){this.activeIndex=N,this.carouselContents?.forEach((P,ce)=>P.isActive=N===ce),this.cdr.markForCheck()}pointerDown=N=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(N).subscribe({next:P=>{this.pointerDelta=P,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},complete:()=>{if(this.nzEnableSwipe&&this.isDragging){let P=this.pointerDelta?this.pointerDelta.x:0;Math.abs(P)>this.gestureRect.width/3&&(this.nzLoop||P<=0&&this.activeIndex+1<this.carouselContents.length||P>0&&this.activeIndex>0)?this.goTo(P>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}}))};layout(){this.strategy?.withCarouselContents(this.carouselContents)}static ɵfac=function(P){return new(P||ga)};static ɵcmp=(function(){let N=[`slickList`],P=[`slickTrack`],ce=[`*`],wt=ne=>({$implicit:ne});function St(ne,ue){if(ne&1){let q=on();oe$2(0,`button`,9),je$1(`click`,function(){gt$1(q);let rt=F$2();return vt(rt.pre())}),he$1()}if(ne&2){let q=F$2();Ze(`slick-disabled`,q.activeIndex===0)}}function en(ne,ue){if(ne&1){let q=on();oe$2(0,`button`,10),je$1(`click`,function(){gt$1(q);let rt=F$2();return vt(rt.next())}),he$1()}if(ne&2){let q=F$2();Ze(`slick-disabled`,q.activeIndex===q.carouselContents.length-1)}}function sn(ne,ue){}function $(ne,ue){if(ne&1){let q=on();oe$2(0,`li`,13),je$1(`click`,function(){let rt=gt$1(q).$index,D=F$2(2);return vt(D.goTo(rt))}),qe$1(1,sn,0,0,`ng-template`,14),he$1()}if(ne&2){let q=ue.$index,ot=F$2(2),rt=Wl(10);Ze(`slick-active`,q===ot.activeIndex),A(),ie$1(`ngTemplateOutlet`,ot.nzDotRender||rt)(`ngTemplateOutletContext`,ff(4,wt,q))}}function pe(ne,ue){if(ne&1&&(oe$2(0,`ul`,11),Yl(1,$,2,6,`li`,12,jl),he$1()),ne&2){let q=F$2();Ze(`slick-dots-top`,q.nzDotPosition===`top`)(`slick-dots-bottom`,q.nzDotPosition===`bottom`)(`slick-dots-left`,q.nzDotPosition===`left`)(`slick-dots-right`,q.nzDotPosition===`right`),A(),Ul(q.carouselContents)}}function B(ne,ue){if(ne&1&&(oe$2(0,`button`),an$3(1),he$1()),ne&2){let q=ue.$implicit;A(),vr$3(q+1)}}
569return Se$1({type:ga,selectors:[[`nz-carousel`]],contentQueries:function(ue,q,ot){if(ue&1&&bn$3(ot,za,4),ue&2){let rt;Ge(rt=Ke())&&(q.carouselContents=rt)}},viewQuery:function(ue,q){if(ue&1&&Kn(N,7)(P,7),ue&2){let ot;Ge(ot=Ke())&&(q.slickList=ot.first),Ge(ot=Ke())&&(q.slickTrack=ot.first)}},hostAttrs:[1,`ant-carousel`],hostVars:4,hostBindings:function(ue,q){ue&2&&Ze(`ant-carousel-vertical`,q.vertical)(`ant-carousel-rtl`,q.dir()===`rtl`)},inputs:{nzDotRender:`nzDotRender`,nzEffect:`nzEffect`,nzEnableSwipe:[2,`nzEnableSwipe`,`nzEnableSwipe`,H$2],nzDots:[2,`nzDots`,`nzDots`,H$2],nzAutoPlay:[2,`nzAutoPlay`,`nzAutoPlay`,H$2],nzAutoPlaySpeed:[2,`nzAutoPlaySpeed`,`nzAutoPlaySpeed`,Oo$1],nzTransitionSpeed:[2,`nzTransitionSpeed`,`nzTransitionSpeed`,Oo$1],nzLoop:`nzLoop`,nzArrows:[2,`nzArrows`,`nzArrows`,H$2],nzStrategyOptions:`nzStrategyOptions`,nzDotPosition:`nzDotPosition`},outputs:{nzBeforeChange:`nzBeforeChange`,nzAfterChange:`nzAfterChange`},exportAs:[`nzCarousel`],features:[Te$1],ngContentSelectors:ce,decls:11,vars:5,consts:[[`slickList`,``],[`slickTrack`,``],[`renderDotTemplate`,``],[`dir`,`ltr`,1,`slick-initialized`,`slick-slider`],[`type`,`button`,`aria-label`,`prev`,1,`slick-prev`,`slick-arrow`,3,`slick-disabled`],[`tabindex`,`-1`,1,`slick-list`,3,`mousedown`,`touchstart`],[1,`slick-track`],[`type`,`button`,`aria-label`,`next`,1,`slick-next`,`slick-arrow`,3,`slick-disabled`],[1,`slick-dots`,3,`slick-dots-top`,`slick-dots-bottom`,`slick-dots-left`,`slick-dots-right`],[`type`,`button`,`aria-label`,`prev`,1,`slick-prev`,`slick-arrow`,3,`click`],[`type`,`button`,`aria-label`,`next`,1,`slick-next`,`slick-arrow`,3,`click`],[1,`slick-dots`],[3,`slick-active`],[3,`click`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(ue,q){ue&1&&(yn$1(),oe$2(0,`div`,3),ve$1(1,St,1,2,`button`,4),oe$2(2,`div`,5,0),je$1(`mousedown`,function(rt){return q.pointerDown(rt)})(`touchstart`,function(rt){return q.pointerDown(rt)}),oe$2(4,`div`,6,1),Wt$1(6),he$1()(),ve$1(7,en,1,2,`button`,7),ve$1(8,pe,3,8,`ul`,8),he$1(),qe$1(9,B,2,1,`ng-template`,null,2,ql$1)),ue&2&&(Ze(`slick-vertical`,q.nzDotPosition===`left`||q.nzDotPosition===`right`),A(),ye$1(q.nzArrows?1:-1),A(6),ye$1(q.nzArrows?7:-1),A(),ye$1(q.nzDots?8:-1))},dependencies:[ka$1],encapsulation:2})})()}})();var Jd=(()=>{class n{static ɵfac=function(t){return new(t||n)};static ɵmod=ee$3({type:n});static ɵinj=X$2({})}return n})();function dm(n,i){n&1&&(an$3(0,` 国内镜像:`),oe$2(1,`a`,34),an$3(2,`ng-alain.gitee.io`),he$1())}function pm(n,i){n&1&&pt$1(0,`github-button`,10)}function um(n,i){if(n&1&&(oe$2(0,`div`,12)(1,`a`,35),pt$1(2,`img`,36),vi$1(3,`i18n`),vi$1(4,`i18n`),he$1()()),n&2){let e=i.$implicit;A(),$t(`href`,e.url,J9),A(),ie$1(`src`,hf(`./assets/screenshot/`,e.screenshot),J9),$t(`alt`,yi$2(3,5,`app.home.theme.`+e.type))(`title`,yi$2(4,7,`app.home.theme.`+e.type))}}function mm(n,i){if(n&1&&(oe$2(0,`div`,33)(1,`a`,37),pt$1(2,`img`,36),vi$1(3,`i18n`),vi$1(4,`i18n`),oe$2(5,`h3`),an$3(6),vi$1(7,`i18n`),he$1(),oe$2(8,`p`),an$3(9),vi$1(10,`i18n`),he$1()()()),n&2){let e=i.$implicit;A(),$t(`href`,`https://e.ng-alain.com/theme/`+e,J9)(`data-theme`,e),A(),ie$1(`src`,hf(`./assets/screenshot/`,e.screenshot),J9),$t(`alt`,yi$2(3,8,`app.home.theme.`+e.type))(`title`,yi$2(4,10,`app.home.theme.`+e.type)),A(4),vr$3(yi$2(7,12,`app.home.theme.`+e.type)),A(3),vr$3(yi$2(10,14,`app.home.theme.`+e.type+`.desc`))}}var br=class n{i18n=h(Kr$3);doc=h(z$2);platform=h(Me$3);allThemes=[{type:`data`,url:`https://e.ng-alain.com/theme/data`,screenshot:`data.webp`,buession:!0},{type:`basic`,url:`https://ng-alain.github.io/ng-alain`,screenshot:`basic.png`,buession:!1},{type:`pro`,url:`https://e.ng-alain.com/theme/pro`,screenshot:`pro.png`,buession:!0},{type:`ms`,url:`https://e.ng-alain.com/theme/ms`,screenshot:`ms.png`,buession:!0},{type:`yun`,url:`https://e.ng-alain.com/theme/yun`,screenshot:`yun.png`,buession:!0}];get bussionThemes(){return this.allThemes.filter(i=>i.buession)}get isBrowser(){return this.platform.isBrowser}get body(){return this.doc.querySelector(`body`)}ngOnInit(){this.body.classList.add(`index-page`)}ngOnDestroy(){this.body.classList.remove(`index-page`)}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`app-home`]],hostAttrs:[1,`home-wrapper`],decls:116,vars:58,consts:[[`previewTpl`,``],[1,`page-wrapper`,`page-banner`],[1,`page-banner__slogan`],[`data-aos`,`fade-up`,`data-aos-once`,`true`],[`data-aos`,`fade-up`,`data-aos-delay`,`150`,`data-aos-once`,`true`],[1,`page-banner__slogan-btn`],[3,`routerLink`],[`nz-button`,``,`nzType`,`primary`,`nzSize`,`large`],[`href`,`https://ng-alain.surge.sh/`,`target`,`_blank`,`rel`,`noopener noreferrer`,`nz-tooltip`,``,3,`nzTooltipTitle`],[`nz-button`,``,`nzSize`,`large`],[`type`,`stargazers`,`size`,`large`,`namespace`,`ng-alain`,`repo`,`ng-alain`],[`nzAutoPlay`,``,1,`page-banner__img`],[`nz-carou
569sel-content`,``],[1,`page-wrapper`,`page-feature`],[1,`page-feature__bg`],[1,`page-feature__bg-bottom`],[1,`page`],[1,`ant-row`],[1,`ant-col-xs-24`,`ant-col-md-6`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`0`,1,`page-feature__item`],[`nzType`,`heart`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`50`,1,`page-feature__item`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`100`,1,`page-feature__item`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`150`,1,`page-feature__item`],[`nzType`,`rocket`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`200`,1,`page-feature__item`],[`nzType`,`skin`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`250`,1,`page-feature__item`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`300`,1,`page-feature__item`],[`nzType`,`tool`],[`data-aos`,`fade-up`,`data-aos-easing`,`ease-in-out`,`data-aos-delay`,`350`,1,`page-feature__item`],[`nzType`,`layout`],[1,`page-wrapper`,`page-theme`],[1,`ant-col-xs-24`,`ant-col-md-12`],[`href`,`https://ng-alain.gitee.io`,`target`,`_blank`],[`target`,`_blank`],[3,`src`],[`data-aos`,`zoom-in`,`data-aos-delay`,`0`,1,`page-theme__item`]],template:function(e,t){if(e&1&&(oe$2(0,`div`,1)(1,`div`,2)(2,`h1`,3),an$3(3,`NG-ALAIN`),he$1(),oe$2(4,`p`,4),an$3(5),vi$1(6,`i18n`),he$1(),oe$2(7,`div`,5)(8,`a`,6)(9,`button`,7),an$3(10),vi$1(11,`i18n`),he$1()(),oe$2(12,`a`,8)(13,`button`,9),an$3(14),vi$1(15,`i18n`),he$1(),qe$1(16,dm,3,0,`ng-template`,null,0,ql$1),he$1(),ve$1(18,pm,1,0,`github-button`,10),he$1()(),oe$2(19,`nz-carou
569sel`,11),Yl(20,um,5,9,`div`,12,EP),he$1()(),oe$2(22,`div`,13),pt$1(23,`div`,14)(24,`div`,15),oe$2(25,`div`,16)(26,`h2`),an$3(27),vi$1(28,`i18n`),he$1(),oe$2(29,`div`,17)(30,`div`,18)(31,`div`,19),pt$1(32,`nz-icon`,20),oe$2(33,`div`)(34,`h3`),an$3(35,`Ant Design`),he$1(),oe$2(36,`p`),an$3(37),vi$1(38,`i18n`),he$1()()()(),oe$2(39,`div`,18)(40,`div`,21),pt$1(41,`nz-icon`,20),oe$2(42,`div`)(43,`h3`),an$3(44,`NG-ZORRO`),he$1(),oe$2(45,`p`),an$3(46),vi$1(47,`i18n`),he$1()()()(),oe$2(48,`div`,18)(49,`div`,22),pt$1(50,`nz-icon`,20),oe$2(51,`div`)(52,`h3`),an$3(53,`Delon`),he$1(),oe$2(54,`p`),an$3(55),vi$1(56,`i18n`),he$1()()()(),oe$2(57,`div`,18)(58,`div`,23),pt$1(59,`nz-icon`,24),oe$2(60,`div`)(61,`h3`),an$3(62),vi$1(63,`i18n`),he$1(),oe$2(64,`p`),an$3(65),vi$1(66,`i18n`),he$1()()()(),oe$2(67,`div`,18)(68,`div`,25),pt$1(69,`nz-icon`,26),oe$2(70,`div`)(71,`h3`),an$3(72),vi$1(73,`i18n`),he$1(),oe$2(74,`p`),an$3(75),vi$1(76,`i18n`),he$1()()()(),oe$2(77,`div`,18)(78,`div`,27),pt$1(79,`nz-icon`,20),oe$2(80,`div`)(81,`h3`),an$3(82),vi$1(83,`i18n`),he$1(),oe$2(84,`p`),an$3(85),vi$1(86,`i18n`),he$1()()()(),oe$2(87,`div`,18)(88,`div`,28),pt$1(89,`nz-icon`,29),oe$2(90,`div`)(91,`h3`),an$3(92),vi$1(93,`i18n`),he$1(),oe$2(94,`p`),an$3(95),vi$1(96,`i18n`),he$1()()()(),oe$2(97,`div`,18)(98,`div`,30),pt$1(99,`nz-icon`,31),oe$2(100,`div`)(101,`h3`),an$3(102),vi$1(103,`i18n`),he$1(),oe$2(104,`p`),an$3(105),vi$1(106,`i18n`),he$1()()()()()()(),oe$2(107,`div`,32)(108,`div`,16)(109,`h2`),an$3(110),vi$1(111,`i18n`),he$1(),oe$2(112,`div`,17),Yl(113,mm,11,16,`div`,33,EP),he$1()()(),pt$1(115,`app-footer`)),e&2){let o=Wl(17);A(5),vr$3(yi$2(6,22,`app.home.slogan`)),A(3),ie$1(`routerLink`,hf(`/docs/getting-started/`,t.i18n.zone)),A(2),vr$3(yi$2(11,24,`app.home.start`)),A(2),ie$1(`nzTooltipTitle`,o),A(2),vr$3(yi$2(15,26,`app.home.preview`)),A(4),ye$1(t.isBrowser?18:-1),A(2),Ul(t.allThemes),A(7),vr$3(yi$2(28,28,`app.home.feature`)),A(10),vr$3(yi$2(38,30,`app.home.feature.antd`)),A(9),vr$3(yi$2(47,32,`app.home.feature.zorro`)),A(9),vr$3(yi$2(56,34,`app.home.feature.delon`)),A(7),vr$3(yi$2(63,36,`app.home.feature.out-of-box`)),A(3),vr$3(yi$2(66,38,`app.home.feature.out-of-box.desc`)),A(7),vr$3(yi$2(73,40,`app.home.feature.less`)),A(3),vr$3(yi$2(76,42,`app.home.feature.less.desc`)),A(7),vr$3(yi$2(83,44,`app.home.feature.rep`)),A(3),vr$3(yi$2(86,46,`app.home.feature.rep.desc`)),A(7),vr$3(yi$2(93,48,`app.home.feature.tool`)),A(3),vr$3(yi$2(96,50,`app.home.feature.tool.desc`)),A(7),vr$3(yi$2(103,52,`app.home.feature.demo`)),A(3),vr$3(yi$2(106,54,`app.home.feature.demo.desc`)),A(5),vr$3(yi$2(111,56,`app.home.theme`)),A(3),Ul(t.bussionThemes)}},dependencies:[ja$2,Jd,Xd,za,Xs$1,Ys,v5,a3,f5,m5,_r,kn$2,o5],encapsulation:2})};function hm(n,i){if(n&1){let e=on();oe$2(0,`li`,8),je$1(`click`,function(){let o=gt$1(e).$implicit,r=F$2();return vt(r.onThemeChange(o.key))}),an$3(1),he$1()}if(n&2){let e=i.$implicit;A(),vr$3(e.text)}}var fm=new b$1(`ALAIN_THEME_BTN_KEYS`);var Xi=class n{doc=h(z$2);platform=h(Me$3);renderer=h(We$2);configSrv=h(ln$3);dir=h(Ue$1).valueSignal;key=h(fm,{optional:!0})??`site-theme`;theme=`default`;isDev=Od$1();types=pe$1([{key:`default`,text:`Default Theme`},{key:`dark`,text:`Dark Theme`},{key:`compact`,text:`Compact Theme`}]);devTips=pe$1(`When the dark.css file can't be found, you need to run it once: npm run theme`);deployUrl=pe$1(``);themeChange=Zl$1();constructor(){Rt$2(()=>this.initTheme())}initTheme(){this.platform.isBrowser&&(this.theme=localStorage.getItem(this.key)??`default`,this.updateChartTheme(),this.onThemeChange(this.theme))}updateChartTheme(){this.configSrv.set(`chart`,{theme:this.theme===`dark`?`dark`:``})}onThemeChange(i){if(!this.platform.isBrowser)return;this.theme=i,this.themeChange.emit(i),this.renderer.setAttribute(this.doc.body,`data-theme`,i);let e=this.doc.getElementById(this.key);if(e&&e.remove(),localStorage.removeItem(this.key),i!=="default"){let t=this.doc.createElement(`link`);t.type=`text/css`,t.rel=`stylesheet`,t.id=this.key,t.href=`${this.deployUrl()}assets/style.${i}.css`,localStorage.setItem(this.key,i),this.doc.body.append(t)}this.updateChartTheme()}ngOnDestroy(){let i=this.doc.getElementById(this.key);i!=null&&this.doc.body.removeChild(i)}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`theme-btn`]],hostAttrs:[1,`theme-btn`],hostVars:2,hostBindings:function(e,t){e&2&&Ze(`theme-btn-rtl`,t.dir()===`rtl`)},inputs:{types:[1,`types`],devTips:[1,`devTips`],deployUrl:[1,`deployUrl`]},outputs:{themeChange:`themeChange`},decls:10,vars:2,consts:[[`menu`,`nzDropdownMenu`],[`nz-dropdown`,``,`nzPlacement`,`topCenter`,1,`ant-avatar`,`ant-avatar-circle`,`ant-avatar-icon`,3,`nzDropdownMenu`],[`nz-tooltip`,``,`role`,`img`,`width`,`21`,`height`,`21`,`viewBox`,`0 0 21 21`,`fill`,`currentColor`,1,`anticon`,3,`nzTooltipTitle`],[`fill-rule`,`evenodd`],[`fill-rule`,`nonzero`],[`d`,`M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z`],[`nz-menu`,``,`nzSelectable`,``],[`nz-menu-item`,``],[`nz-menu-item`,``,3,`click`]],template:function(e,t){if(e&1&&(oe$2(0,`div`,1),dg$1(),oe$2(1,`svg`,2)(2,`g`,3)(3,`g`,4),pt$1(4,`path`,5),he$1()()(),ug$1(),oe$2(5,`nz-dropdown-menu`,null,0)(7,`ul`,6),Yl(8,hm,2,1,`li`,7,EP),he$1()()()),e&2){let o=Wl(6);ie$1(`nzDropdownMenu`,t.types().length>0?o:null),A(),ie$1(`nzTooltipTitle`,t.isDev?t.devTips():null),A(7),Ul(t.types())}},dependencies:[bt$1,Nt$1,TDe,xx,Ys],encapsulation:2})};var gm=(()=>{class n{nzBadge=pe$1(null);nzIcon=pe$1(null);nzDescription=pe$1(null);nzShape=pe$1(`circle`);static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){function e(z,b){z&1&&Xs(0)}function t(z,b){if(z&1&&(oe$2(0,`nz-badge`,1),qe$1(1,e,1,0,`ng-container`,2),he$1()),z&2){let T=F$2(),L=Wl(3);ie$1(`nzDot`,T.nzBadge()?.nzDot)(`nzShowDot`,T.nzBadge()?.nzDot)(`nzCount`,T.nzBadge()?.nzCount)(`nzShowZero`,T.nzBadge()?.nzShowZero)(`
569nzOverflowCount`,T.nzBadge()?.nzOverflowCount)(`nzColor`,T.nzBadge()?.nzColor)(`nzOffset`,T.nzBadge()?.nzOffset)(`nzSize`,T.nzBadge()?.nzSize||`default`),A(),ie$1(`ngTemplateOutlet`,L)}}function o(z,b){z&1&&Xs(0)}function r(z,b){if(z&1&&qe$1(0,o,1,0,`ng-container`,2),z&2){F$2();let T=Wl(3);ie$1(`ngTemplateOutlet`,T)}}function a(z,b){if(z&1&&(nn$1(0),pt$1(1,`nz-icon`,8),rn$3()),z&2){let T=b.$implicit;A(),ie$1(`nzType`,T)}}function d(z,b){if(z&1&&(oe$2(0,`div`,5),qe$1(1,a,2,1,`ng-container`,7),he$1()),z&2){let T=F$2(3);A(),ie$1(`nzStringTemplateOutlet`,T.nzIcon())}}function m(z,b){if(z&1&&(nn$1(0),an$3(1),rn$3()),z&2){let T=F$2(4);A(),Io$1(` `,T.nzDescription(),` `)}}function g(z,b){if(z&1&&(oe$2(0,`div`,6),qe$1(1,m,2,1,`ng-container`,7),he$1()),z&2){let T=F$2(3);A(),ie$1(`nzStringTemplateOutlet`,T.nzDescription())}}function x(z,b){if(z&1&&(ve$1(0,d,2,1,`div`,5),ve$1(1,g,2,1,`div`,6)),z&2){let T=F$2(2);ye$1(T.nzIcon()?0:-1),A(),ye$1(T.nzDescription()&&T.nzShape()===`square`?1:-1)}}function s(z,b){z&1&&(oe$2(0,`div`,5),pt$1(1,`nz-icon`,9),he$1())}function l(z,b){if(z&1&&(oe$2(0,`div`,3)(1,`div`,4),ve$1(2,x,2,2)(3,s,2,0,`div`,5),he$1()()),z&2){let T=F$2();A(2),ye$1(T.nzDescription()||T.nzIcon()?2:3)}}return Se$1({type:n,selectors:[[`nz-float-button-content`]],inputs:{nzBadge:[1,`nzBadge`],nzIcon:[1,`nzIcon`],nzDescription:[1,`nzDescription`],nzShape:[1,`nzShape`]},exportAs:[`nzFloatButtonContent`],decls:4,vars:1,consts:[[`button`,``],[3,`nzDot`,`nzShowDot`,`nzCount`,`nzShowZero`,`nzOverflowCount`,`nzColor`,`nzOffset`,`nzSize`],[4,`ngTemplateOutlet`],[1,`ant-float-btn-body`],[1,`ant-float-btn-content`],[1,`ant-float-btn-icon`],[1,`ant-float-btn-description`],[4,`nzStringTemplateOutlet`],[`nzTheme`,`outline`,3,`nzType`],[`nzType`,`file-text`,`nzTheme`,`outline`]],template:function(b,T){b&1&&(ve$1(0,t,2,9,`nz-badge`,1)(1,r,1,1,`ng-container`),qe$1(2,l,4,1,`ng-template`,null,0,ql$1)),b&2&&ye$1(T.nzBadge()?0:1)},dependencies:[xr$2,Gt$2,Jr$3,er$1,kt,ka$1],encapsulation:2})})()}return n})();var ep=`ant-float-btn`;var zm=(()=>{class n{nzHref=pe$1(null);nzTarget=pe$1(null);nzType=pe$1(`default`);nzIcon=pe$1(null);nzDescription=pe$1(null);nzShape=pe$1(`circle`);nzBadge=pe$1(null);nzOnClick=Zl$1();shape=yf(()=>this.nzShape());dir=h(Ue$1).valueSignal;class=Fe$1(()=>{let e=this.dir(),t=[ep,this.generateClass(this.shape())];return e===`rtl`&&t.push(this.generateClass(e)),t});generateClass(e){return un$1(ep,e)}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){function e(d,m){d&1&&Xs(0)}function t(d,m){if(d&1){let g=on();oe$2(0,`a`,3),je$1(`click`,function(){gt$1(g);let s=F$2();return vt(s.nzOnClick.emit(!0))}),qe$1(1,e,1,0,`ng-container`,4),he$1()}if(d&2){let g=F$2(),x=Wl(3);Ze(`ant-float-btn-default`,g.nzType()==="default"),ie$1(`target`,g.nzTarget())(`href`,g.nzHref(),J9)(`nzType`,g.nzType()),A(),ie$1(`ngTemplateOutlet`,x)}}function o(d,m){d&1&&Xs(0)}function r(d,m){if(d&1){let g=on();oe$2(0,`button`,5),je$1(`click`,function(){gt$1(g);let s=F$2();return vt(s.nzOnClick.emit(!0))}),qe$1(1,o,1,0,`ng-container`,4),he$1()}if(d&2){let g=F$2(),x=Wl(3);Ze(`ant-float-btn-default`,g.nzType()==="default"),ie$1(`nzType`,g.nzType()),A(),ie$1(`ngTemplateOutlet`,x)}}function a(d,m){if(d&1&&pt$1(0,`nz-float-button-content`,6),d&2){let g=F$2();ie$1(`nzBadge`,g.nzBadge())(`nzIcon`,g.nzIcon())(`nzDescription`,g.nzDescription())(`nzShape`,g.shape())}}return Se$1({type:n,selectors:[[`nz-float-button`]],hostVars:2,hostBindings:function(m,g){m&2&&Lt$1(g.class())},inputs:{nzHref:[1,`nzHref`],nzTarget:[1,`nzTarget`],nzType:[1,`nzType`],nzIcon:[1,`nzIcon`],nzDescription:[1,`nzDescription`],nzShape:[1,`nzShape`],nzBadge:[1,`nzBadge`]},outputs:{nzOnClick:`nzOnClick`},exportAs:[`nzFloatButton`],decls:4,vars:1,consts:[[`contentTemplate`,``],[`nz-button`,``,1,`ant-float-btn-inner`,3,`target`,`href`,`nzType`,`ant-float-btn-default`],[`nz-button`,``,1,`ant-float-btn-inner`,3,`nzType`,`ant-float-btn-default`],[`nz-button`,``,1,`ant-float-btn-inner`,3,`click`,`target`,`href`,`nzType`],[4,`ngTemplateOutlet`],[`nz-button`,``,1,`ant-float-btn-inner`,3,`click`,`nzType`],[3,`nzBadge`,`nzIcon`,`nzDescription`,`nzShape`]],template:function(m,g){m&1&&(ve$1(0,t,2,6,`a`,1)(1,r,2,4,`button`,2),qe$1(2,a,1,4,`ng-template`,null,0,ql$1)),m&2&&ye$1(g.nzHref()?0:1)},dependencies:[v5,a3,f5,m5,gm,uo,ka$1],encapsulation:2})})()}return n})();
569var Cm=d4e(`floatButton`);var Ji=`ant-float-btn`;var ym=Hp$1({passive:!0});var tp=(()=>{class n{scrollSrv=h(YDe);platform=h(Me$3);ngZone=h(B$2);directionality=h(Ue$1);destroyRef=h(re$1);document=h(z$2);backTop=sb(`backTop`,{read:$$2});nzVisibilityHeight=pe$1();nzHref=pe$1(null);nzType=pe$1(`default`);nzShape=pe$1(`circle`);nzIcon=pe$1(null);nzDescription=pe$1(null);nzTemplate=pe$1(null);nzTarget=pe$1(null);nzDuration=pe$1(450,{transform:Oo$1});nzBadge=pe$1(null);nzOnClick=Zl$1();visible=G$1(!1);visibilityHeight=Cm(`nzVisibilityHeight`,this.nzVisibilityHeight,400);shape=yf(()=>this.nzShape());class=Fe$1(()=>{let e=this.directionality.valueSignal(),t=[Ji,`${Ji}-top`,this.generateClass(this.shape())];return e===`rtl`&&t.push(this.generateClass(e)),t});fadeAnimationEnter=Ni$2(()=>`${Ji}-top-motion-enter`);fadeAnimationLeave=Ni$2(()=>`${Ji}-top-motion-leave`);target=null;backTopClickSubscription=ue$1.EMPTY;scrollListenerDestroy$=new C$1;constructor(){this.destroyRef.onDestroy(()=>{this.scrollListenerDestroy$.next(),this.scrollListenerDestroy$.complete()}),Jt$1(()=>{let e=this.nzTarget();e&&(this.target=typeof e==`string`?this.document.querySelector(e):e,this.registerScrollEvent())}),Jt$1(e=>{let t=this.backTop();return t&&(this.backTopClickSubscription.unsubscribe(),this.backTopClickSubscription=A1(t.nativeElement,`click`).pipe(be$1(this.destroyRef)).subscribe(()=>{this.scrollSrv.scrollTo(this.getTarget(),0,{duration:this.nzDuration()}),this.ngZone.run(()=>this.nzOnClick.emit(!0))})),e(()=>{this.backTopClickSubscription.unsubscribe()})}),Jt$1(()=>{this.visibilityHeight(),we$2(()=>this.handleScroll())})}ngOnInit(){this.registerScrollEvent()}getTarget(){return this.target||window}handleScroll(){!this.platform.isBrowser||this.visible()===this.scrollSrv.getScroll(this.getTarget())>this.visibilityHeight()||this.visible.update(e=>!e)}registerScrollEvent(){this.platform.isBrowser&&(this.scrollListenerDestroy$.next(),this.handleScroll(),A1(this.getTarget(),`scroll`,ym).pipe(Hn$2(50),Be(this.scrollListenerDestroy$)).subscribe(()=>this.handleScroll()))}generateClass(e){return un$1(Ji,e)}static ɵfac=function(t){return new(t||n)};static ɵcmp=(function(){let e=[`backTop`];function t(o,r){if(o&1){let a=on();oe$2(0,`nz-float-button`,1,0),hi$1(function(){gt$1(a);let m=F$2();return vt(m.fadeAnimationLeave())}),ui(function(){gt$1(a);let m=F$2();return vt(m.fadeAnimationEnter())}),he$1()}if(o&2){let a=F$2();ie$1(`nzIcon`,a.nzIcon()||`vertical-align-top`)(`nzDescription`,a.nzDescription())(`nzHref`,a.nzHref())(`nzType`,a.nzType())(`nzShape`,a.shape())(`nzBadge`,a.nzBadge())}}return Se$1({type:n,selectors:[[`nz-float-button-top`]],viewQuery:function(r,a){r&1&&_d$2(a.backTop,e,5,$$2),r&2&&Sd$1()},hostVars:2,hostBindings:function(r,a){r&2&&Lt$1(a.class())},inputs:{nzVisibilityHeight:[1,`nzVisibilityHeight`],nzHref:[1,`nzHref`],nzType:[1,`nzType`],nzShape:[1,`nzShape`],nzIcon:[1,`nzIcon`],nzDescription:[1,`nzDescription`],nzTemplate:[1,`nzTemplate`],nzTarget:[1,`nzTarget`],nzDuration:[1,`nzDuration`],nzBadge:[1,`nzBadge`]},outputs:{nzOnClick:`nzOnClick`},exportAs:[`nzFloatButtonTop`],decls:1,vars:1,consts:[[`backTop`,``],[3,`nzIcon`,`nzDescription`,`nzHref`,`nzType`,`nzShape`,`nzBadge`]],template:function(r,a){r&1&&ve$1(0,t,2,6,`nz-float-button`,1),r&2&&ye$1(a.visible()?0:-1)},dependencies:[zm],encapsulation:2})})()}return n})();var Tr=class n{i18n=h(Kr$3);platform=h(Me$3);router=h(qt$3);lazySrv=h(Dw);constructor(){Rt$2(()=>this.initDocSearch())}initDocSearch(){if(!this.platform.isBrowser)return;let i=`https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.3/docsearch.min`;this.lazySrv.load([`${i}.js`,`${i}.css`]).then(()=>{let e=location.hostname,t=e.includes(`localhost`);docsearch({appId:`KNI4PDQPLT`,apiKey:`f77b841e2a1f87742bef959fe09cc80e`,indexName:`ng-alain`,inputSelector:`#search-box input`,algoliaOptions:{hitsPerPage:5,facetFilters:[`lang:${this.i18n.zone}`]},handleSelected:(o,r,a)=>{let d=a?.url||``;if(t||e===this.getHost(d)){let m=d.replace(/.*\/\/[^\\/]*/,``);this.router.navigateByUrl(m);return}window.open(d)},debug:!1})})}getHost(i){let e=i.match(/^https?\\:\/\/([^\\/:?#]+)(?:[\\/:?#]|$)/i);return e?e[1]:``}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`header-search`]],hostVars:1,hostBindings:function(e,t){e&2&&$t(`id`,`search-box`)},decls:4,vars:3,consts:[[`searchInput`,``],[`nzType`,`search`],[`nz-input`,``,3,`placeholder`]],template:function(e,t){e&1&&(pt$1(0,`nz-icon`,1)(1,`input`,2,0),vi$1(3,`i18n`)),e&2&&(A(),ie$1(`placeholder`,yi$2(3,1,`app.header.search`)))},dependencies:[xr$2,Gt$2,_c$1,He$2,o5],encapsulation:2})};function vm(n,i){if(n&1&&(oe$2(0,`li`,14),an$3(1),vi$1(2,`i18n`),he$1()),n&2){let e=i.$implicit,t=F$2(3);ie$1(`routerLink`,vO(`/`,e.name,`/`,e.default||`getting-started`,`/`,t.i18n.zone)),A(),Ry(` @delon/`,e.name,`-`,yi$2(2,6,`app.header.menu.`+e.name),` `)}}function _m(n,i){if(n&1&&(oe$2(0,`li`,10),vi$1(1,`i18n`),oe$2(2,`ul`),Yl(3,vm,3,8,`li`,14,EP),he$1()()),n&2){let e=F$2(2);ie$1(`nzTitle`,yi$2(1,1,`app.header.menu.delon`)),A(3),Ul(e.delonLibs)}}function Sm(n,i){if(n&1&&(oe$2(0,`li`,14),an$3(1),vi$1(2,`i18n`),he$1()),n&2){let e=i.$implicit,t=F$2(3);ie$1(`routerLink`,vO(`/`,e.name,`/`,e.default||`getting-started`,`/`,t.i18n.zone)),A(),Ry(` @delon/`,e.name,`-`,yi$2(2,6,`app.header.menu.`+e.name),` `)}}function bm(n,i){if(n&1&&(oe$2(0,`li`,11)(1,`div`,15),an$3(2),vi$1(3,`i18n`),pt$1(4,`nz-icon`,16),he$1(),oe$2(5,`nz-dropdown-menu`,null,1)(7,`ul`,17),Yl(8,Sm,3,8,`li`,14,EP),he$1()()()),n&2){let e=Wl(6),t=F$2(2);ie$1(`matchRouter`,t.regexs.delon),A(),ie$1(`nzDropdownMenu`,e);let o=t.delonType();A(),Io$1(` `,yi$2(3,3,o?`app.header.menu.`+o:`app.header.menu.delon`),` `),A(6),Ul(t.delonLibs)}}function Tm(n,i){if(n&1){let e=on();oe$2(0,`a`,18),an$3(1,`Github`),he$1(),oe$2(2,`li`,19),je$1(`click`,function(){gt$1(e);let o=F$2(2);return vt(o.langChange(o.i18n.zone===`zh`?`en`:`zh`))}),an$3(3),vi$1(4,`i18n`),he$1()}n&2&&(A(3),Io$1(` `,yi$2(4,1,`app.header.lang`),` `))}function xm(n,i){if(n&1&&(oe$2(0,`ul`,8)(1,`li`,9),an$3(2),vi$1(3,`i18n`),he$1(),oe$2(4,`li`,9),an$3(5),vi$1(6,`i18n`),he$1(),ve$1(7,_m,5,3,`li`,10)(8,bm,10,5,`li`,11),oe$2(9,`li`,12)(10,`a`,13),an$3(11),vi$1(12,`i18n`),he$1()(),ve$1(13,Tm,5,3),he$1()),n&2){let e=F$2(),t=pO(0);ie$1(`nzMode`,t?`inline`:`horizontal`),A(),ie$1(`routerLink`,hf(`/docs/getting-started/`,e.i18n.zone))(`matchRouter`,e.regexs.docs),A(),Io$1(` `,yi$2(3,12,`app.header.menu.docs`),` `),A(2),ie$1(`routerLink`,hf(`/components/sv/`,e.i18n.zone))(`matchRouter`,e.regexs.components),A(),Io$1(` `,yi$2(6,14,`app.header.menu.components`),` `),A(2),ye$1(t?7:8),A(4),Io$1(` `,yi$2(12,16,`app.header.menu.themes`),` `),A(2),ye$1(t?13:-1)}}function wm(n,i){if(n&1){let e=on();oe$2(0,`nz-icon`,20),Hy(`nzPopoverVisibleChange`,function(o){gt$1(e);let r=F$2();return hO(r.menuVisible,o)||(r.menuVisible=o),vt(o)}),he$1()}if(n&2){let e=F$2(),t=Wl(2);ie$1(`nzPopoverContent`,t),Fy(`nzPopoverVisible`,e.menuVisible),ie$1(`nzPopoverTitle`,void 0)}}function Mm(n,i){}function Nm(n,i){if(n&1&&pt$1(0,`nz-option`,23),n&2){let e=i.$implicit;ie$1(`nzLabel`,e+`.x`)(`nzValue`,e)}}function km(n,i){if(n&1){let e=on();qe$1(0,Mm,0,0,`ng-template`,21),oe$2(1,`nz-select`,22),hI(),je$1(`ngModelChange`,function(o){gt$1(e);let r=F$2();return vt(r.toVersion(o))}),Yl(2,Nm,1,2,`nz-option`,23,EP),pt$1(4,`nz-option`,23),he$1(),oe$2(5,`button`,24),je$1(`click`,function(){gt$1(e);let o=F$2();return vt(o.langChange(o.i18n.zone===`zh`?`en`:`zh`))}),an$3(6),vi$1(7,`i18n`),he$1(),oe$2(8,`button`,25),je$1(`click`,function(){gt$1(e);let o=F$2();
569return vt(o.rtl.toggle())}),an$3(9),vi$1(10,`uppercase`),he$1(),pt$1(11,`github-button`,26)}if(n&2){let e=F$2(),t=Wl(2);ie$1(`ngTemplateOutlet`,t),A(),ie$1(`ngModel`,e.currentVersion),pI(),A(),Ul(e.oldVersionList),A(2),ie$1(`nzLabel`,e.currentVersion)(`nzValue`,e.currentVersion),A(2),Io$1(` `,yi$2(7,6,`app.header.lang`),` `),A(3),Io$1(` `,yi$2(10,8,e.rtl.nextDir),` `)}}var np=ye();var Dm=+np.version.split(`.`)[0]-2;var xr=class n{mobile=Hn$3;oldVersionList=[21,20,19,18,17,16,15,14,13,12,11,10,9,8,1];currentVersion=np.version;delonLibs=[{name:`theme`},{name:`auth`},{name:`acl`},{name:`form`},{name:`cache`},{name:`chart`},{name:`mock`},{name:`util`},{name:`cli`}];menuVisible=G$1(!1);regexs={docs:{regex:/^\/docs/},components:{regex:/^\/components/},cli:{regex:/^\/cli/},delon:{regex:/^\/(theme|auth|acl|form|cache|chart|mock|util)/}};delonType=G$1(void 0);get win(){return this.doc.defaultView||window}i18n=h(Kr$3);rtl=h(oM);router=h(qt$3);msg=h(lu$1);doc=h(z$2);constructor(){this.router.events.pipe(ne(i=>i instanceof wn$1),be$1()).subscribe(()=>{this.menuVisible.set(!1),this.genDelonType()}),Rt$2(()=>{this.genDelonType()})}genDelonType(){let i=this.router.url.match(this.regexs.delon.regex);this.delonType.set(i?.[1])}toVersion(i){if(i!=this.currentVersion){if(i>=Dm){this.win.location.href=`https://ng-alain.com/version/${i}.x/`;return}this.win.open(`https://github.com/ng-alain/archive-docs/blob/full/README.md`)}}langChange(i){this.i18n.use(i,{},!0);let e=`${this.i18n.getRealUrl(this.router.url)}/${i}`;this.router.navigateByUrl(e,{replaceUrl:!0})}onCopy(i){PMe(i).then(()=>this.msg.success(this.i18n.fanyi(`app.demo.copied`)))}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`app-header`]],hostAttrs:[1,`clearfix`],hostVars:1,hostBindings:function(e,t){e&2&&$t(`id`,`header`)},decls:13,vars:9,consts:[[`menu`,``],[`delonMenu`,`nzDropdownMenu`],[`nzType`,`menu`,`nz-popover`,``,`nzTooltipOverlayClassName`,`popover-menu`,`nzPopoverPlacement`,`bottomRight`,`nzPopoverTrigger`,`click`,1,`nav-phone-icon`,3,`nzPopoverContent`,`nzPopoverVisible`,`nzPopoverTitle`],[`nz-row`,``,2,`flex-flow`,`nowrap`,`height`,`64px`],[`nz-col`,``,`nzXs`,`24`,`nzSm`,`24`,`nzMd`,`24`,`nzLg`,`24`,`nzXl`,`5`,`nzXXl`,`4`],[`nz-tooltip`,``,`id`,`logo`,3,`click`,`routerLink`,`nzTooltipTitle`],[`src`,`./assets/img/logo-color.svg`,`alt`,`NG-ALAIN Logo`,`title`,`NG-ALAIN Logo`,2,`max-height`,`32px`],[`nz-col`,``,`nz-col`,``,`nzXs`,`0`,`nzSm`,`0`,`nzMd`,`0`,`nzLg`,`0`,`nzXl`,`19`,`nzXXl`,`20`,1,`menu-row`],[`nz-menu`,``,`id`,`nav`,1,`menu-site`,3,`nzMode`],[`nz-menu-item`,``,3,`routerLink`,`matchRouter`],[`nz-menu-group`,``,3,`nzTitle`],[`nz-menu-item`,``,3,`matchRouter`],[`nz-menu-item`,``],[`href`,`https://e.ng-alain.com/`,`target`,`_blank`],[`nz-menu-item`,``,3,`routerLink`],[`nz-dropdown`,``,`nzPlacement`,`bottomRight`,3,`nzDropdownMenu`],[`nzType`,`down`],[`nz-menu`,``],[`nz-menu-item`,``,`href`,`https://github.com/ng-alain/ng-alain`,`target`,`_blank`],[`nz-menu-item`,``,3,`click`],[`nzType`,`menu`,`nz-popover`,``,`nzTooltipOverlayClassName`,`popover-menu`,`nzPopoverPlacement`,`bottomRight`,`nzPopoverTrigger`,`click`,1,`nav-phone-icon`,3,`nzPopoverVisibleChange`,`nzPopoverContent`,`nzPopoverVisible`,`nzPopoverTitle`],[3,`ngTemplateOutlet`],[`nzSize`,`small`,1,`version`,3,`ngModelChange`,`ngModel`],[3,`nzLabel`,`nzValue`],[`nz-button`,``,`nzGhost`,``,`nzSize`,`small`,1,`header-button`,`header-lang-button`,3,`click`],[`nz-button`,``,`nzGhost`,``,`nzSize`,`small`,1,`header-button`,`header-direction-button`,3,`click`],[`type`,`stargazers`,`size`,`default`,`namespace`,`ng-alain`,`repo`,`ng-alain`]],template:function(e,t){if(e&1&&(By(0),qe$1(1,xm,14,18,`ng-template`,null,0,ql$1),ve$1(3,wm,1,3,`nz-icon`,2),oe$2(4,`div`,3)(5,`div`,4)(6,`a`,5),vi$1(7,`i18n`),je$1(`click`,function(){return t.onCopy(`316911865`)}),pt$1(8,`img`,6),an$3(9,` NG-ALAIN `),he$1()(),oe$2(10,`div`,7),pt$1(11,`header-search`),ve$1(12,km,12,10),he$1()()),e&2){let o=fO(t.mobile());A(3),ye$1(o?3:-1),A(3),ie$1(`routerLink`,hf(`/`,t.i18n.zone))(`nzTooltipTitle`,hf(``,yi$2(7,7,`app.footer.qqgroup`),`: 316911865`)),A(6),ye$1(o?-1:12)}},dependencies:[fr$2,jn$2,Fi,ja$2,ka$1,Tr,or,_r,zDe,TDe,xx,SB,v5,a3,f5,m5,Gl$1,Ba$1,Wa$1,xr$2,Gt$2,So$1,pn$3,Xs$1,Ys,Rt$3,bt$1,Nt$1,cn$2,sn$3,We$3,NA,o5],encapsulation:2})};function Im(n,i){n&1&&pt$1(0,`nz-spin`,0)}var ip=[{path:``,component:class n{isFetching=G$1(!1);router=h(qt$3);msg=h(lu$1);settingsSrv=h(ju$1);location=h(Wr$2);rtl=h(oM);constructor(){this.rtl.change.pipe(be$1()).subscribe(()=>this.fixDirection()),this.router.events.pipe(be$1()).subscribe(i=>{if(!this.isFetching()&&i instanceof Mu$1&&this.isFetching.set(!0),i instanceof Fa$1){this.isFetching.set(!1),this.msg.error(`\u65E0\u6CD5\u52A0\u8F7D${i.url}\u8DEF\u7531`,{nzDuration:3e3});return}i instanceof wn$1&&this.isFetching.set(!1)}),this.router.events.pipe(be$1(),ne(i=>i instanceof wn$1),go$1(100)).subscribe(()=>{this.fixDirection()})}fixDirection(){let i=this.settingsSrv.layout.direction,e=this.router.url.split(/[?#|?|#]/)[0],o=this.router.parseUrl(this.router.url).fragment;o!=null&&o.length>0?o=`#${o}`:o=``,this.location.replaceState(e,(i===`rtl`?`?direction=${`rtl`}`:``)+o)}themeChange(i){Bn$2.set(i)}static ɵfac=function(e){return new(e||n)};
569static ɵcmp=Se$1({type:n,selectors:[[`app-layout`]],hostVars:1,hostBindings:function(e,t){e&2&&$t(`id`,`ng-content`)},decls:5,vars:1,consts:[[`nzSpinning`,``,1,`fetching`],[3,`themeChange`]],template:function(e,t){e&1&&(pt$1(0,`app-header`),ve$1(1,Im,1,0,`nz-spin`,0),pt$1(2,`router-outlet`)(3,`nz-float-button-top`),oe$2(4,`theme-btn`,1),je$1(`themeChange`,function(r){return t.themeChange(r)}),he$1()),e&2&&(A(),ye$1(t.isFetching()?1:-1))},dependencies:[Dp,xr,_n$3,Sn$2,tp,Xi],encapsulation:2})},children:[{path:``,redirectTo:`en`,pathMatch:`full`},{path:`:lang`,component:br,data:{titleI18n:`slogan`}},{path:`docs`,loadChildren:()=>import(`./chunk-CnZdFgi7.js`).then(n=>n.routes)},{path:`components`,loadChildren:()=>import(`./chunk-BoW_OLZr.js`).then(n=>n.routes)},{path:`theme`,loadChildren:()=>import(`./chunk-BxoBeF_-.js`).then(n=>n.routes)},{path:`auth`,loadChildren:()=>import(`./chunk-B-5wco3n.js`).then(n=>n.routes)},{path:`acl`,loadChildren:()=>import(`./chunk-BS1dMwVF.js`).then(n=>n.routes)},{path:`cache`,loadChildren:()=>import(`./chunk-D_JiLlJ8.js`).then(n=>n.routes)},{path:`mock`,loadChildren:()=>import(`./chunk-BHzJgOrk.js`).then(n=>n.routes)},{path:`util`,loadChildren:()=>import(`./chunk-BpWgAF38.js`).then(n=>n.routes)},{path:`chart`,loadChildren:()=>import(`./chunk-ZmhlImjR.js`).then(n=>n.routes)},{path:`form`,loadChildren:()=>import(`./chunk-D_45COMp.js`).then(n=>n.routes)},{path:`form-pages`,loadChildren:()=>import(`./chunk-BcoOUbwd.js`).then(n=>n.routes)},{path:`cli`,loadChildren:()=>import(`./chunk-D2v2byil.js`).then(n=>n.routes)}]},{path:`dev`,loadChildren:()=>import(`./chunk-9ENRNCEQ.js`).then(n=>n.routes)},{path:`404`,component:vr},{path:`**`,redirectTo:`404`}];var eo=class n{msg=h(lu$1);static KEY=`test`;data;show(){this.msg.info(`click`)}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`cell-widget-test`]],hostBindings:function(e,t){e&1&&je$1(`click`,function(){return t.show()})},decls:1,vars:1,consts:[[`nz-tooltip`,``,`nzTooltipTitle`,`Client it`,1,`img`,2,`cursor`,`pointer`,3,`src`]],template:function(e,t){e&1&&pt$1(0,`img`,0),e&2&&ie$1(`src`,t.data.result.text,J9)},dependencies:[Xs$1,Ys],encapsulation:2})};var op=[{KEY:eo.KEY,type:eo}];var to=class n{msg=h(lu$1);static KEY=`img`;img;ngOnChanges(i){console.log(i)}show(){this.msg.info(`\u6B63\u5728\u6253\u5F00\u5927\u56FE${this.img}\u2026\u2026`)}static ɵfac=function(e){return new(e||n)};static ɵcmp=Se$1({type:n,selectors:[[`st-widget-img`]],hostBindings:function(e,t){e&1&&je$1(`click`,function(){return t.show()})},features:[Te$1],decls:1,vars:0,consts:[[`nz-tooltip`,``,`nzTooltipTitle`,`Click it`,`nz-image`,``,`nzSrc`,`https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png`,1,`img`,2,`cursor`,`pointer`,3,`click`]],template:function(e,t){e&1&&(oe$2(0,`img`,0),je$1(`click`,function(){return t.show()}),he$1())},dependencies:[Xs$1,Ys,To,So],encapsulation:2})};var rp=[{KEY:to.KEY,type:to}];var Em={abbr:`zh-CN`,ng:Rc,zorro:aV,date:Zc,delon:Ri};var Om={st:{ps:3},lodop:{license:`A59B099A586B3851E0F0D7FDBF37B603`,licenseA:`C94CEE276DB2187AE6B65D56B3FC2848`},chart:{echartsExtensions:[`https://cdnjs.cloudflare.com/ajax/libs/echarts/5.1.0/theme/dark.min.js`]},themeI18n:{paramNameOfUrlGuard:`lang`},zip:{url:`/assets/jszip/jszip.min.js`},media:{urls:[`assets/plyr/plyr.min.js`,`assets/plyr/plyr.css`],options:{iconUrl:`assets/plyr/plyr.svg`,blankVideo:`https://cdn.plyr.io/static/blank.mp4`}}};var Am={};var Fm=[dw(),uw()];var ap={providers:[aE(),kO(),{provide:pa$3,useValue:`ngAlainDoc`},zN(IN(),kN([Yd])),pL(ip,...Fm),bwe({config:Om,defaultLang:Em,i18nClass:Uo}),l4e(Am),Kd({data:la}),Zl(...op),yu$1(...rp),l$({widgets:[dd(),fd(),gd(),yd(),vd(),Td(),Hn$1(),Nd(),Dd(),Id(),Od(),Wd(),Hd(),Ud(),$d()]}),ee$1({defaultOptions:{scrollBeyondLastLine:!1}}),id({baseURL:`https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.2/`}),Lc(),{provide:Bn$1,useClass:yr},u2($c.register(`ngsw-worker.js`,{enabled:Qd.production})),Zd(),ci({max:2,mode:1})]};oN(jo,ap).catch(n=>console.error(n));export{te$1 as A,ca$2 as C,An$1 as D,xn$1 as E,Rt$1 as F,fs as I,mi as M,nn as N,Ni$1 as O,Cu$1 as P,Zn as S,ua$2 as T,uo as _,b as a,Pn$1 as b,mn as c,ct$1 as d,kt as f,st$1 as g,pt as h,X$1 as i,U$1 as j,zt as k,No as l,po as m,N as n,hn as o,ln$1 as p,we as r,ii as s,X as t,Pn as u,Ft as v,pa$2 as w,Un as x,Hn as y};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.